@wormhole-foundation/wormhole-connect 4.1.0-beta.1-development → 5.0.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 (352) hide show
  1. package/dist/assets/{aptos-C9pj8h2Q.js → aptos-DgUCX7ng.js} +3 -3
  2. package/dist/assets/{evm-DCydYqBI.js → evm-B6bqAPTR.js} +4 -4
  3. package/dist/assets/{evm-CJXv6IQV.js → evm-Ve5nG8Fs.js} +1 -1
  4. package/dist/assets/{index-LvDsy6wR.js → index-BJokXZAc.js} +1 -1
  5. package/dist/assets/{index-BqxX-Ey7.js → index-BJv9sngo.js} +1 -1
  6. package/dist/assets/{index-C9cy4cDs.js → index-BjZMFLjq.js} +1 -1
  7. package/dist/assets/{index-FJ-n91Op.js → index-BwbPlAQZ.js} +1 -1
  8. package/dist/assets/{index-Clu5I99l.js → index-Bzg4DNh9.js} +1 -1
  9. package/dist/assets/{index-ezhfpCvx.js → index-CKXa657f.js} +1 -1
  10. package/dist/assets/index-CXiuP738.js +1 -0
  11. package/dist/assets/{index-CNExx9Zb.js → index-CvTvoHH-.js} +1 -1
  12. package/dist/assets/{index-C25bHdOM.js → index-D1ULRVbZ.js} +1 -1
  13. package/dist/assets/{index-DpabQJOX.js → index-DlH9IMQl.js} +1 -1
  14. package/dist/assets/{index-C8u74RER.js → index-Dsb-5apv.js} +1 -1
  15. package/dist/assets/{index-D9ApKauA.js → index-_YFUWLUM.js} +1 -1
  16. package/dist/assets/{index-CoIvdDsX.js → index-jg26xdEi.js} +1 -1
  17. package/dist/assets/{provider-jsonrpc-DuMpLBV0.js → provider-jsonrpc-DNgUKjG6.js} +1 -1
  18. package/dist/assets/{solana-DWuIx6gK.js → solana-D4RepnSA.js} +2 -2
  19. package/dist/assets/{sui-BcTGBE_4.js → sui-Du5h-f8S.js} +3 -3
  20. package/dist/main.mjs +185 -140
  21. package/dist/src/components/ConfigurablePageHeader.d.ts +1 -1
  22. package/dist/src/components/ConfigurablePageHeader.d.ts.map +1 -1
  23. package/dist/src/components/Header.d.ts +1 -0
  24. package/dist/src/components/Header.d.ts.map +1 -1
  25. package/dist/src/components/PageHeader.d.ts +1 -3
  26. package/dist/src/components/PageHeader.d.ts.map +1 -1
  27. package/dist/src/components/SampleApp/index.d.ts.map +1 -1
  28. package/dist/src/components/v3/BackButton.d.ts +6 -0
  29. package/dist/src/components/v3/BackButton.d.ts.map +1 -0
  30. package/dist/src/components/v3/FormContent.d.ts +5 -0
  31. package/dist/src/components/v3/FormContent.d.ts.map +1 -0
  32. package/dist/src/config/constants.d.ts.map +1 -1
  33. package/dist/src/config/events.d.ts +2 -1
  34. package/dist/src/config/events.d.ts.map +1 -1
  35. package/dist/src/config/mainnet/chains.d.ts.map +1 -1
  36. package/dist/src/config/mainnet/rpcs.d.ts.map +1 -1
  37. package/dist/src/config/mainnet/tokens.d.ts.map +1 -1
  38. package/dist/src/config/mainnet/wrappedTokens.d.ts +6 -0
  39. package/dist/src/config/mainnet/wrappedTokens.d.ts.map +1 -1
  40. package/dist/src/config/types.d.ts +6 -11
  41. package/dist/src/config/types.d.ts.map +1 -1
  42. package/dist/src/config/ui.d.ts +9 -0
  43. package/dist/src/config/ui.d.ts.map +1 -1
  44. package/dist/src/consts/wallet.d.ts.map +1 -1
  45. package/dist/src/hooks/useAutoEnableGasDropoff.d.ts +3 -1
  46. package/dist/src/hooks/useAutoEnableGasDropoff.d.ts.map +1 -1
  47. package/dist/src/hooks/useConnectToLastUsedWallet.d.ts.map +1 -1
  48. package/dist/src/hooks/useSortedRoutesWithQuotes.d.ts.map +1 -1
  49. package/dist/src/hooks/useTransactionHistory.d.ts.map +1 -1
  50. package/dist/src/hooks/useTransactionHistoryLiFi.d.ts +2 -0
  51. package/dist/src/hooks/useTransactionHistoryLiFi.d.ts.map +1 -1
  52. package/dist/src/hooks/useTransactionHistoryMayan.d.ts +2 -0
  53. package/dist/src/hooks/useTransactionHistoryMayan.d.ts.map +1 -1
  54. package/dist/src/hooks/useTransactionHistoryWHScan.d.ts +2 -1
  55. package/dist/src/hooks/useTransactionHistoryWHScan.d.ts.map +1 -1
  56. package/dist/src/icons/PoweredBy.d.ts.map +1 -1
  57. package/dist/src/icons/TokenIcons.d.ts.map +1 -1
  58. package/dist/src/icons/Tokens/AUSD.d.ts +4 -0
  59. package/dist/src/icons/Tokens/AUSD.d.ts.map +1 -0
  60. package/dist/src/routes/lifi/LiFiRoute.d.ts.map +1 -1
  61. package/dist/src/routes/mayan/utils.d.ts.map +1 -1
  62. package/dist/src/routes/monad/consts.d.ts +1 -0
  63. package/dist/src/routes/monad/consts.d.ts.map +1 -1
  64. package/dist/src/routes/monad/monad.test.d.ts +1 -0
  65. package/dist/src/routes/monad/monad.test.d.ts.map +1 -0
  66. package/dist/src/routes/monad/utils.d.ts.map +1 -1
  67. package/dist/src/sdklegacy/config/MAINNET.d.ts.map +1 -1
  68. package/dist/src/telemetry/types.d.ts +5 -2
  69. package/dist/src/telemetry/types.d.ts.map +1 -1
  70. package/dist/src/theme.d.ts +4 -3
  71. package/dist/src/theme.d.ts.map +1 -1
  72. package/dist/src/utils/errors.d.ts +1 -0
  73. package/dist/src/utils/errors.d.ts.map +1 -1
  74. package/dist/src/utils/fees.d.ts.map +1 -1
  75. package/dist/src/utils/index.d.ts.map +1 -1
  76. package/dist/src/utils/sdkv2.d.ts.map +1 -1
  77. package/dist/src/utils/wallet/index.d.ts +1 -0
  78. package/dist/src/utils/wallet/index.d.ts.map +1 -1
  79. package/dist/src/views/Terms.d.ts.map +1 -1
  80. package/dist/src/views/TxSearch.d.ts.map +1 -1
  81. package/dist/src/views/v3/Bridge/AssetPicker/PickerModal.d.ts.map +1 -1
  82. package/dist/src/views/v3/Bridge/AssetPicker/TokenPickerButton.d.ts +17 -0
  83. package/dist/src/views/v3/Bridge/AssetPicker/TokenPickerButton.d.ts.map +1 -0
  84. package/dist/src/views/v3/Bridge/AssetPicker/TokenPickerButtonContent.d.ts +8 -0
  85. package/dist/src/views/v3/Bridge/AssetPicker/TokenPickerButtonContent.d.ts.map +1 -0
  86. package/dist/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButton.test.d.ts +2 -0
  87. package/dist/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButton.test.d.ts.map +1 -0
  88. package/dist/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButtonContent.test.d.ts +2 -0
  89. package/dist/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButtonContent.test.d.ts.map +1 -0
  90. package/dist/src/views/v3/Bridge/AssetPicker/index.d.ts.map +1 -1
  91. package/dist/src/views/v3/Bridge/GasSlider/index.d.ts.map +1 -1
  92. package/dist/src/views/v3/Bridge/Routes/SingleRoute.d.ts.map +1 -1
  93. package/dist/src/views/v3/Bridge/Routes/index.d.ts +2 -1
  94. package/dist/src/views/v3/Bridge/Routes/index.d.ts.map +1 -1
  95. package/dist/src/views/v3/Bridge/WalletConnector/Controller.d.ts.map +1 -1
  96. package/dist/src/views/v3/Bridge/WalletConnector/ExplorerLink.d.ts.map +1 -1
  97. package/dist/src/views/v3/Bridge/WalletConnector/WalletAddress.d.ts +9 -0
  98. package/dist/src/views/v3/Bridge/WalletConnector/WalletAddress.d.ts.map +1 -0
  99. package/dist/src/views/v3/Bridge/WalletConnector/WalletPickerContent.d.ts.map +1 -1
  100. package/dist/src/views/v3/Bridge/WalletConnector/__tests__/WalletAddress.test.d.ts +2 -0
  101. package/dist/src/views/v3/Bridge/WalletConnector/__tests__/WalletAddress.test.d.ts.map +1 -0
  102. package/dist/src/views/v3/Bridge/index.d.ts.map +1 -1
  103. package/dist/src/views/v3/Redeem/TransactionDetails/index.d.ts.map +1 -1
  104. package/dist/src/views/v3/Redeem/index.d.ts.map +1 -1
  105. package/dist/src/views/v3/TxHistory/Item/index.d.ts.map +1 -1
  106. package/dist/src/views/v3/TxHistory/Widget/Item.d.ts.map +1 -1
  107. package/lib/{account-cIQhxn1E.js → account-K005OXgL.js} +1 -1
  108. package/lib/{account-BVl6Reot.mjs → account-TXlxMyv4.mjs} +2 -2
  109. package/lib/{address-rVHWlcKQ.mjs → address-CX0E32ut.mjs} +1 -1
  110. package/lib/{address-W9jn6Qdk.js → address-DqbIfKOu.js} +1 -1
  111. package/lib/{aptos-DWDR5o78.js → aptos-BnjZOhUE.js} +1 -1
  112. package/lib/{aptos-CNHYHK9c.js → aptos-CnswqE-C.js} +2 -2
  113. package/lib/{aptos-D1WFzBMy.mjs → aptos-DRfXJ8Ba.mjs} +7 -7
  114. package/lib/{aptos-B84P9rJZ.mjs → aptos-fTiHvXXE.mjs} +5 -5
  115. package/lib/{associatedTokenAccount-C4vEEbG5.js → associatedTokenAccount-CeqdaO2m.js} +1 -1
  116. package/lib/{associatedTokenAccount-DF6phO3l.mjs → associatedTokenAccount-Dsm4Hq32.mjs} +3 -3
  117. package/lib/{basic-BERCwt2M.mjs → basic-BqusrmRE.mjs} +3 -3
  118. package/lib/{basic-NhXxxbR1.js → basic-BrW22Cj9.js} +1 -1
  119. package/lib/{basic-CukRIaOD.mjs → basic-CK5Bsf0B.mjs} +3 -3
  120. package/lib/{basic-DJXXfABO.js → basic-ChOmeQQk.js} +1 -1
  121. package/lib/{chunk-KJH4KKG6-Brt4fyqz.mjs → chunk-KJH4KKG6-BfVMUPsB.mjs} +3 -3
  122. package/lib/{chunk-KJH4KKG6-BbF5W1_N.js → chunk-KJH4KKG6-CJx-rDa6.js} +1 -1
  123. package/lib/constants-C1w_RyOP.js +1 -0
  124. package/lib/{constants-VaoVbllu.mjs → constants-DcDpDarO.mjs} +6 -5
  125. package/lib/{core-BCZrVb_s.mjs → core-DQ-6Q1F1.mjs} +6 -6
  126. package/lib/{core-BE6SS7Ye.js → core-FA2gBc-s.js} +3 -3
  127. package/lib/{create-CChLkbGc.mjs → create-C5dhTMHL.mjs} +1 -1
  128. package/lib/{create-4w0DrcRO.js → create-bA3Gyivs.js} +1 -1
  129. package/lib/{evm-CmmnpcFD.mjs → evm-BJ4Lx-r9.mjs} +5 -5
  130. package/lib/{evm--K7mr7Kr.js → evm-BTgO_HRP.js} +2 -2
  131. package/lib/{evm-DKaWm7eC.mjs → evm-C-vXMfGr.mjs} +7 -7
  132. package/lib/{evm-C5BixKBn.js → evm-qxndAh3z.js} +1 -1
  133. package/lib/executor.js +1 -1
  134. package/lib/executor.mjs +13 -15
  135. package/lib/hosted.js +1 -1
  136. package/lib/hosted.mjs +1 -1
  137. package/lib/hypercore-D7kZiwbe.js +4 -0
  138. package/lib/{hypercore-birmbh9T.mjs → hypercore-DKqayfki.mjs} +4858 -3107
  139. package/lib/{index-qL4D-cpk.js → index-1T4sIL8n.js} +1 -1
  140. package/lib/{index-Ap7250Gf.mjs → index-39tU5Y5t.mjs} +6 -6
  141. package/lib/{index-BUbUhbMe.js → index-3Zg1AdoI.js} +1 -1
  142. package/lib/{index-D7gCsil9.js → index-6m7yero0.js} +1 -1
  143. package/lib/{index-CH0iw38J.mjs → index-B1URQBlH.mjs} +3 -3
  144. package/lib/{index-C5I7QiZ7.mjs → index-B6Ppg6EZ.mjs} +3 -3
  145. package/lib/{index-CED5jdrg.js → index-B7b8sctd.js} +1 -1
  146. package/lib/{index-xvG6cxNx.js → index-BEIFBxtP.js} +1 -1
  147. package/lib/{index-zIzzPp6D.mjs → index-BHpJUZne.mjs} +3 -3
  148. package/lib/{index-BTcij9Np.js → index-BJ0xVutl.js} +1 -1
  149. package/lib/{index-C61IKE_V.mjs → index-BSIPYyeZ.mjs} +2 -2
  150. package/lib/{index-EbSw7SbC.js → index-BTjUHY0e.js} +1 -1
  151. package/lib/{index-C8YhpD9T.mjs → index-BVciucyT.mjs} +4 -4
  152. package/lib/{index-BuHdMHLz.mjs → index-Ba1zbu3Q.mjs} +2 -2
  153. package/lib/{index-BU35GfG0.mjs → index-Bdtj4LUz.mjs} +2 -2
  154. package/lib/{index-Bs28m4ya.js → index-BfzaCmg7.js} +1 -1
  155. package/lib/{index-CN7M4gwf.mjs → index-BviSNDV7.mjs} +5 -5
  156. package/lib/{index-BRFbmsc_.js → index-C-F8_8dY.js} +1 -1
  157. package/lib/{index-Cys9e11O.js → index-C-SMuVS3.js} +1 -1
  158. package/lib/{index-pYTU7pQK.mjs → index-C6MalNd5.mjs} +4 -3
  159. package/lib/{index-Cg1Xo1eZ.js → index-C85u3Gj5.js} +1 -1
  160. package/lib/{index-Da9rvmCc.js → index-Cb0UWLGI.js} +1 -1
  161. package/lib/{index-HrZv1SyT.js → index-Cb_8WAm1.js} +8 -8
  162. package/lib/{index-DHnmtpvA.mjs → index-CcbY14s5.mjs} +4 -4
  163. package/lib/{index-CR1itkLl.mjs → index-CgqBQ88K.mjs} +3248 -3055
  164. package/lib/{index-Txz5xwr6.mjs → index-CowAVUcg.mjs} +1 -1
  165. package/lib/{index-BKgliEPZ.mjs → index-CrWTw0Se.mjs} +2 -2
  166. package/lib/{index-B_JJ50Y-.mjs → index-D-HUNEka.mjs} +4 -4
  167. package/lib/{index-BhMcIAHt.js → index-DJ2w1fz1.js} +1 -1
  168. package/lib/{index-BN_2mA2n.mjs → index-DcFL403C.mjs} +1 -1
  169. package/lib/{index-CO4ZoIAU.mjs → index-DjmVBSGQ.mjs} +4 -4
  170. package/lib/{index-Co3mm7UN.mjs → index-DrJE8udd.mjs} +1 -1
  171. package/lib/{index-fTUcaKb4.js → index-DuhYwr0t.js} +1 -1
  172. package/lib/{index-BQ0lWQfT.mjs → index-DwEx1Hn-.mjs} +2 -2
  173. package/lib/{index-DBofyYkS.js → index-DziujHu1.js} +1 -1
  174. package/lib/{index-Dou5sFku.js → index-JWbF-m3e.js} +1 -1
  175. package/lib/index-Oxm0y6-t.js +1 -0
  176. package/lib/{index-D1odbjeH.mjs → index-VnJcNK62.mjs} +3 -3
  177. package/lib/{index-DVxmRy4C.js → index-WrXSs0ic.js} +1 -1
  178. package/lib/{index-Cw0jWBks.js → index-XjDX4fWv.js} +1 -1
  179. package/lib/{index-CsdD1TNi.js → index-aMKUba1k.js} +1 -1
  180. package/lib/{index-DSnylejH.mjs → index-dufPAW5T.mjs} +292 -269
  181. package/lib/{index-lZY5fTXF.js → index-lAqXlt-a.js} +1 -1
  182. package/lib/{index-N4FkpEh9.mjs → index-mNO1mk2F.mjs} +4 -4
  183. package/lib/{index-BScgBddV.mjs → index-o1SAPXm_.mjs} +3 -3
  184. package/lib/{index-DNZ-Pkpm.mjs → index-rxQSA9t0.mjs} +6 -6
  185. package/lib/{index-DALvn9lg.js → index-v7w8krM0.js} +1 -1
  186. package/lib/{index-japympio.js → index-wadjmD_G.js} +1 -1
  187. package/lib/{index.es-DmmqAOLD.js → index.es-B9kBDkCQ.js} +3 -3
  188. package/lib/{index.es-Dg6IFrL4.js → index.es-BZRO-bNH.js} +1 -1
  189. package/lib/{index.es-B0fk_42a.mjs → index.es-CF3YY88z.mjs} +4 -4
  190. package/lib/{index.es-CDqFguL5.mjs → index.es-CaAL5X4E.mjs} +4 -4
  191. package/lib/index.js +78 -33
  192. package/lib/index.mjs +9158 -8833
  193. package/lib/{keypair-DWucLGoA.js → keypair-DCgXFOw5.js} +1 -1
  194. package/lib/{keypair-CP7syX9B.mjs → keypair-vpG2fl-q.mjs} +3 -3
  195. package/lib/lifi.js +1 -1
  196. package/lib/lifi.mjs +75 -76
  197. package/lib/mayan.js +2 -2
  198. package/lib/mayan.mjs +11 -10
  199. package/lib/{mint-CoNdQTGM.mjs → mint-BPrKG-Zc.mjs} +3 -3
  200. package/lib/{mint-CxQ6P5lT.js → mint-DW-XgF68.js} +1 -1
  201. package/lib/monad.js +1 -1
  202. package/lib/monad.mjs +91 -58
  203. package/lib/multiToken-B9BoSxdr.js +1 -0
  204. package/lib/{multiToken-Bm-K5dRJ.mjs → multiToken-DMllgxzT.mjs} +4 -3
  205. package/lib/ntt.js +2 -2
  206. package/lib/ntt.mjs +77 -86
  207. package/lib/{platform-Cil_UtAQ.mjs → platform-CSpAb386.mjs} +2788 -2748
  208. package/lib/{platform-BMKYxqvv.js → platform-Csj1Outc.js} +1 -1
  209. package/lib/platform-DCcL7jHP.js +11 -0
  210. package/lib/{platform-vRQufc6j.mjs → platform-YzJZdSCf.mjs} +3 -3
  211. package/lib/{secp256k1-LTcmQEQ5.mjs → secp256k1-1o6o1kFy.mjs} +1 -1
  212. package/lib/{secp256k1-DzRCmd6a.mjs → secp256k1-BjlnTj1_.mjs} +1 -1
  213. package/lib/{secp256k1-CglUNI04.js → secp256k1-CeYT4ndf.js} +1 -1
  214. package/lib/{secp256k1-DROP2Lhv.mjs → secp256k1-Cw_BiEuN.mjs} +1 -1
  215. package/lib/{secp256k1-BkoM1Jum.js → secp256k1-D5cKS6q_.js} +1 -1
  216. package/lib/{secp256k1-CcVQkYNr.js → secp256k1-_QlJc7sK.js} +1 -1
  217. package/lib/{signer-0hWrZ5BZ.mjs → signer-D2GRgRrw.mjs} +2 -2
  218. package/lib/{signer-DyqulDUM.js → signer-gjSiV5v3.js} +1 -1
  219. package/lib/solana-DfW5T_64.mjs +18 -0
  220. package/lib/{solana-C4k_Yg7w.js → solana-DvHFhri3.js} +4 -4
  221. package/lib/solana-Edd9tIkX.js +1 -0
  222. package/lib/{solana-D1LVIhGd.mjs → solana-TgPr9kpk.mjs} +10 -10
  223. package/lib/{solanaEmbed.esm-AvWQUA9e.mjs → solanaEmbed.esm-Bh1-aAL4.mjs} +4 -4
  224. package/lib/{solanaEmbed.esm--Ac-IlRA.js → solanaEmbed.esm-C8TjRcIV.js} +1 -1
  225. package/lib/{solidity-CbDkqHjE.js → solidity-BW7c8rFv.js} +1 -1
  226. package/lib/{solidity-Dk_mvceo.mjs → solidity-D9gSgFcp.mjs} +1 -1
  227. package/lib/src/components/ConfigurablePageHeader.d.ts +1 -1
  228. package/lib/src/components/ConfigurablePageHeader.d.ts.map +1 -1
  229. package/lib/src/components/Header.d.ts +1 -0
  230. package/lib/src/components/Header.d.ts.map +1 -1
  231. package/lib/src/components/PageHeader.d.ts +1 -3
  232. package/lib/src/components/PageHeader.d.ts.map +1 -1
  233. package/lib/src/components/SampleApp/index.d.ts.map +1 -1
  234. package/lib/src/components/v3/BackButton.d.ts +6 -0
  235. package/lib/src/components/v3/BackButton.d.ts.map +1 -0
  236. package/lib/src/components/v3/FormContent.d.ts +5 -0
  237. package/lib/src/components/v3/FormContent.d.ts.map +1 -0
  238. package/lib/src/config/constants.d.ts.map +1 -1
  239. package/lib/src/config/events.d.ts +2 -1
  240. package/lib/src/config/events.d.ts.map +1 -1
  241. package/lib/src/config/mainnet/chains.d.ts.map +1 -1
  242. package/lib/src/config/mainnet/rpcs.d.ts.map +1 -1
  243. package/lib/src/config/mainnet/tokens.d.ts.map +1 -1
  244. package/lib/src/config/mainnet/wrappedTokens.d.ts +6 -0
  245. package/lib/src/config/mainnet/wrappedTokens.d.ts.map +1 -1
  246. package/lib/src/config/types.d.ts +6 -11
  247. package/lib/src/config/types.d.ts.map +1 -1
  248. package/lib/src/config/ui.d.ts +9 -0
  249. package/lib/src/config/ui.d.ts.map +1 -1
  250. package/lib/src/consts/wallet.d.ts.map +1 -1
  251. package/lib/src/hooks/useAutoEnableGasDropoff.d.ts +3 -1
  252. package/lib/src/hooks/useAutoEnableGasDropoff.d.ts.map +1 -1
  253. package/lib/src/hooks/useConnectToLastUsedWallet.d.ts.map +1 -1
  254. package/lib/src/hooks/useSortedRoutesWithQuotes.d.ts.map +1 -1
  255. package/lib/src/hooks/useTransactionHistory.d.ts.map +1 -1
  256. package/lib/src/hooks/useTransactionHistoryLiFi.d.ts +2 -0
  257. package/lib/src/hooks/useTransactionHistoryLiFi.d.ts.map +1 -1
  258. package/lib/src/hooks/useTransactionHistoryMayan.d.ts +2 -0
  259. package/lib/src/hooks/useTransactionHistoryMayan.d.ts.map +1 -1
  260. package/lib/src/hooks/useTransactionHistoryWHScan.d.ts +2 -1
  261. package/lib/src/hooks/useTransactionHistoryWHScan.d.ts.map +1 -1
  262. package/lib/src/icons/PoweredBy.d.ts.map +1 -1
  263. package/lib/src/icons/TokenIcons.d.ts.map +1 -1
  264. package/lib/src/icons/Tokens/AUSD.d.ts +4 -0
  265. package/lib/src/icons/Tokens/AUSD.d.ts.map +1 -0
  266. package/lib/src/routes/lifi/LiFiRoute.d.ts.map +1 -1
  267. package/lib/src/routes/mayan/utils.d.ts.map +1 -1
  268. package/lib/src/routes/monad/consts.d.ts +1 -0
  269. package/lib/src/routes/monad/consts.d.ts.map +1 -1
  270. package/lib/src/routes/monad/monad.test.d.ts +1 -0
  271. package/lib/src/routes/monad/monad.test.d.ts.map +1 -0
  272. package/lib/src/routes/monad/utils.d.ts.map +1 -1
  273. package/lib/src/sdklegacy/config/MAINNET.d.ts.map +1 -1
  274. package/lib/src/telemetry/types.d.ts +5 -2
  275. package/lib/src/telemetry/types.d.ts.map +1 -1
  276. package/lib/src/theme.d.ts +4 -3
  277. package/lib/src/theme.d.ts.map +1 -1
  278. package/lib/src/utils/errors.d.ts +1 -0
  279. package/lib/src/utils/errors.d.ts.map +1 -1
  280. package/lib/src/utils/fees.d.ts.map +1 -1
  281. package/lib/src/utils/index.d.ts.map +1 -1
  282. package/lib/src/utils/sdkv2.d.ts.map +1 -1
  283. package/lib/src/utils/wallet/index.d.ts +1 -0
  284. package/lib/src/utils/wallet/index.d.ts.map +1 -1
  285. package/lib/src/views/Terms.d.ts.map +1 -1
  286. package/lib/src/views/TxSearch.d.ts.map +1 -1
  287. package/lib/src/views/v3/Bridge/AssetPicker/PickerModal.d.ts.map +1 -1
  288. package/lib/src/views/v3/Bridge/AssetPicker/TokenPickerButton.d.ts +17 -0
  289. package/lib/src/views/v3/Bridge/AssetPicker/TokenPickerButton.d.ts.map +1 -0
  290. package/lib/src/views/v3/Bridge/AssetPicker/TokenPickerButtonContent.d.ts +8 -0
  291. package/lib/src/views/v3/Bridge/AssetPicker/TokenPickerButtonContent.d.ts.map +1 -0
  292. package/lib/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButton.test.d.ts +2 -0
  293. package/lib/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButton.test.d.ts.map +1 -0
  294. package/lib/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButtonContent.test.d.ts +2 -0
  295. package/lib/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButtonContent.test.d.ts.map +1 -0
  296. package/lib/src/views/v3/Bridge/AssetPicker/index.d.ts.map +1 -1
  297. package/lib/src/views/v3/Bridge/GasSlider/index.d.ts.map +1 -1
  298. package/lib/src/views/v3/Bridge/Routes/SingleRoute.d.ts.map +1 -1
  299. package/lib/src/views/v3/Bridge/Routes/index.d.ts +2 -1
  300. package/lib/src/views/v3/Bridge/Routes/index.d.ts.map +1 -1
  301. package/lib/src/views/v3/Bridge/WalletConnector/Controller.d.ts.map +1 -1
  302. package/lib/src/views/v3/Bridge/WalletConnector/ExplorerLink.d.ts.map +1 -1
  303. package/lib/src/views/v3/Bridge/WalletConnector/WalletAddress.d.ts +9 -0
  304. package/lib/src/views/v3/Bridge/WalletConnector/WalletAddress.d.ts.map +1 -0
  305. package/lib/src/views/v3/Bridge/WalletConnector/WalletPickerContent.d.ts.map +1 -1
  306. package/lib/src/views/v3/Bridge/WalletConnector/__tests__/WalletAddress.test.d.ts +2 -0
  307. package/lib/src/views/v3/Bridge/WalletConnector/__tests__/WalletAddress.test.d.ts.map +1 -0
  308. package/lib/src/views/v3/Bridge/index.d.ts.map +1 -1
  309. package/lib/src/views/v3/Redeem/TransactionDetails/index.d.ts.map +1 -1
  310. package/lib/src/views/v3/Redeem/index.d.ts.map +1 -1
  311. package/lib/src/views/v3/TxHistory/Item/index.d.ts.map +1 -1
  312. package/lib/src/views/v3/TxHistory/Widget/Item.d.ts.map +1 -1
  313. package/lib/{sui-LiXjD27c.js → sui-BtyZE8YC.js} +1 -1
  314. package/lib/{sui-BPAb7kcs.mjs → sui-CoWRa3vr.mjs} +4 -4
  315. package/lib/{sui-CgmDTkXK.js → sui-DwFrGd2Y.js} +1 -1
  316. package/lib/{sui-cpCvd7RC.mjs → sui-QP4AZGNc.mjs} +6 -6
  317. package/lib/{tokenHelpers-CbE0g9BP.js → tokenHelpers-CeTyb4rG.js} +1 -1
  318. package/lib/{tokenHelpers-DvWQs1tu.mjs → tokenHelpers-VYjmKUxj.mjs} +1 -1
  319. package/lib/{tokens-BJDttoCp.mjs → tokens-D6uJqrsR.mjs} +3 -3
  320. package/lib/{tokens-CvZuVW-g.js → tokens-mXZqt-qL.js} +1 -1
  321. package/lib/types-CgveSjsw.js +1 -0
  322. package/lib/{types-iFgwQ7vG.mjs → types-Dxx2g1wS.mjs} +170 -168
  323. package/lib/{unsignedTransaction-DCDxTFq8.mjs → unsignedTransaction-D2Ja0SuN.mjs} +2 -2
  324. package/lib/{unsignedTransaction-DA4tlY5u.js → unsignedTransaction-qRBv5Cnd.js} +2 -2
  325. package/lib/{utils-DMf7wRGI.js → utils-BEljbqMf.js} +1 -1
  326. package/lib/{utils-BSxsyW2c.mjs → utils-mBHX3Jpu.mjs} +4 -4
  327. package/lib/{w3m-modal-DM5Pf8SH.mjs → w3m-modal-BEe8ji9_.mjs} +2 -2
  328. package/lib/{w3m-modal-CtQ0TPA4.mjs → w3m-modal-D3eqrCT1.mjs} +2 -2
  329. package/lib/{w3m-modal-k23UDiov.js → w3m-modal-Duc13ei7.js} +1 -1
  330. package/lib/{w3m-modal-ByamyZny.js → w3m-modal-f_sUVzPx.js} +1 -1
  331. package/lib/{wallet-CMTEE6Oa.mjs → wallet-Cyosy4Hc.mjs} +1 -1
  332. package/lib/{wallet-BMli0fbu.js → wallet-a0_jwP8j.js} +1 -1
  333. package/lib/{web3-CUwFm9Lx.mjs → web3-CdErAVj5.mjs} +2 -2
  334. package/lib/{web3-DdUeM7iQ.js → web3-x1WCGDiy.js} +1 -1
  335. package/package.json +49 -47
  336. package/dist/assets/index-_UMHESh0.js +0 -1
  337. package/dist/src/components/Button.d.ts +0 -13
  338. package/dist/src/components/Button.d.ts.map +0 -1
  339. package/dist/src/icons/Down.d.ts +0 -5
  340. package/dist/src/icons/Down.d.ts.map +0 -1
  341. package/lib/constants-B9TBfA4z.js +0 -1
  342. package/lib/hypercore-4R7JGmbr.js +0 -4
  343. package/lib/index-C8eqQ_7p.js +0 -1
  344. package/lib/multiToken-YoNvxjur.js +0 -1
  345. package/lib/platform-CCG_jgOO.js +0 -11
  346. package/lib/solana-DKFJvqX8.mjs +0 -18
  347. package/lib/solana-Dmje_Si8.js +0 -1
  348. package/lib/src/components/Button.d.ts +0 -13
  349. package/lib/src/components/Button.d.ts.map +0 -1
  350. package/lib/src/icons/Down.d.ts +0 -5
  351. package/lib/src/icons/Down.d.ts.map +0 -1
  352. package/lib/types-CjNs2oB0.js +0 -1
@@ -1,15 +1,15 @@
1
- "use strict";const ti=require("./constants-B9TBfA4z.js"),xe=require("./platform-CCG_jgOO.js"),ze=require("./unsignedTransaction-DA4tlY5u.js"),sr=require("./address-W9jn6Qdk.js");require("./types-CjNs2oB0.js");const _l=require("./multiToken-YoNvxjur.js"),lf=require("react"),El={env:"Testnet",rpcs:{Bsc:"https://data-seed-prebsc-1-s3.binance.org:8545",Avalanche:"https://api.avax-test.network/ext/bc/C/rpc",Fantom:"https://rpc.testnet.fantom.network",Celo:"https://alfajores-forno.celo-testnet.org",Solana:"https://api.devnet.solana.com",Fogo:"https://testnet.fogo.io",Moonbeam:"https://rpc.api.moonbase.moonbeam.network",Sui:"https://fullnode.testnet.sui.io",Aptos:"https://fullnode.testnet.aptoslabs.com/v1",Sei:"https://rpc.atlantic-2.seinetwork.io",Klaytn:"https://public-en-kairos.node.kaia.io",Sepolia:"https://ethereum-sepolia-rpc.publicnode.com",ArbitrumSepolia:"https://sepolia-rollup.arbitrum.io/rpc",BaseSepolia:"https://base-sepolia-rpc.publicnode.com",OptimismSepolia:"https://sepolia.optimism.io",Scroll:"https://scroll-sepolia-rpc.publicnode.com",Xlayer:"https://testrpc.xlayer.tech",Mantle:"https://rpc.sepolia.mantle.xyz",Worldchain:"https://worldchain-sepolia.g.alchemy.com/public",Unichain:"https://sepolia.unichain.org",Mezo:"https://rpc.test.mezo.org",Linea:"https://linea-sepolia-rpc.publicnode.com",Sonic:"https://sonic-blaze-rpc.publicnode.com",XRPLEVM:"https://rpc.testnet.xrplevm.org/",Monad:"https://testnet-rpc.monad.xyz",Ink:"https://rpc-gel-sepolia.inkonchain.com"}},Al={env:"Mainnet",rpcs:{Ethereum:"https://ethereum-rpc.publicnode.com",Solana:"https://solana-rpc.publicnode.com",Polygon:"https://polygon-bor-rpc.publicnode.com",Bsc:"https://bscrpc.com",Avalanche:"https://avalanche-c-chain-rpc.publicnode.com",Fantom:"https://rpcapi.fantom.network",Celo:"https://celo-rpc.publicnode.com",Moonbeam:"https://moonbeam-rpc.publicnode.com",Sui:"https://rpc.mainnet.sui.io",Aptos:"https://fullnode.mainnet.aptoslabs.com/v1",Arbitrum:"https://arbitrum-one-rpc.publicnode.com",Optimism:"https://optimism-rpc.publicnode.com",Base:"https://base.publicnode.com",Sei:"",Klaytn:"https://public-en.node.kaia.io",Scroll:"https://scroll-rpc.publicnode.com",Xlayer:"https://rpc.xlayer.tech",Mantle:"https://rpc.mantle.xyz",Worldchain:"https://worldchain-mainnet.g.alchemy.com/public",Unichain:"https://mainnet.unichain.org",Berachain:"https://rpc.berachain.com",Linea:"https://linea-rpc.publicnode.com",Sonic:"https://sonic-rpc.publicnode.com",Mezo:"https://jsonrpc-mezo.boar.network",HyperEVM:"https://rpc.hyperliquid.xyz/evm",HyperCore:"https://arbitrum-one-rpc.publicnode.com",XRPLEVM:"https://rpc.xrplevm.org/",Plume:"https://rpc.plume.org",Ink:"https://ink.drpc.org",CreditCoin:"https://mainnet3.creditcoin.network",Fogo:"https://mainnet.fogo.io"}},Sl={env:"Devnet",rpcs:{Ethereum:"http://localhost:8545"}},Bl={MAINNET:Al,TESTNET:El,DEVNET:Sl},Fl={Ethereum:{displayName:"Ethereum",sdkName:"Ethereum",explorerUrl:"https://etherscan.io/",explorerName:"Etherscan",icon:"Ethereum",symbol:"ETH"},Bsc:{displayName:"BNB",sdkName:"Bsc",explorerUrl:"https://bscscan.com/",explorerName:"BscScan",icon:"Bsc",symbol:"BSC"},Polygon:{displayName:"Polygon",sdkName:"Polygon",explorerUrl:"https://polygonscan.com/",explorerName:"PolygonScan",icon:"Polygon",symbol:"POL"},Avalanche:{displayName:"Avalanche",sdkName:"Avalanche",explorerUrl:"https://snowtrace.io/",explorerName:"Snowtrace",icon:"Avalanche",symbol:"AVAX"},Fantom:{displayName:"Fantom",sdkName:"Fantom",explorerUrl:"https://explorer.fantom.network/",explorerName:"Fantom Explorer",icon:"Fantom",symbol:"FTM"},Celo:{displayName:"Celo",sdkName:"Celo",explorerUrl:"https://explorer.celo.org/mainnet/",explorerName:"Celo Explorer",icon:"Celo",symbol:"CELO"},Moonbeam:{displayName:"Moonbeam",sdkName:"Moonbeam",explorerUrl:"https://moonscan.io/",explorerName:"Moonscan",icon:"Moonbeam",symbol:"GLMR"},Solana:{displayName:"Solana",sdkName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",icon:"Solana",symbol:"SOL"},Sui:{displayName:"Sui",sdkName:"Sui",explorerUrl:"https://suiscan.xyz/",explorerName:"Suiscan",icon:"Sui",symbol:"SUI"},Aptos:{displayName:"Aptos",sdkName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",icon:"Aptos",symbol:"APT"},Base:{displayName:"Base",sdkName:"Base",explorerUrl:"https://basescan.org/",explorerName:"BaseScan",icon:"Base",symbol:"BASE"},Arbitrum:{displayName:"Arbitrum",sdkName:"Arbitrum",explorerUrl:"https://arbiscan.io/",explorerName:"Arbitrum Explorer",icon:"Arbitrum",symbol:"ARB"},Optimism:{displayName:"Optimism",sdkName:"Optimism",explorerUrl:"https://optimistic.etherscan.io/",explorerName:"Optimistic Etherscan",icon:"Optimism",symbol:"OP"},Klaytn:{displayName:"Kaia",sdkName:"Klaytn",explorerUrl:"https://kaiascan.io/",explorerName:"KaiaScan",icon:"Klaytn",symbol:"KAIA"},Scroll:{displayName:"Scroll",sdkName:"Scroll",explorerUrl:"https://scrollscan.com/",explorerName:"Scrollscan",icon:"Scroll",symbol:"SCR"},Xlayer:{displayName:"X Layer",sdkName:"Xlayer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer/",explorerName:"OKX Explorer",icon:"Xlayer",symbol:"OKX"},Mantle:{displayName:"Mantle",sdkName:"Mantle",explorerUrl:"https://explorer.mantle.xyz/",explorerName:"Mantle Explorer",icon:"Mantle",symbol:"MNT"},Worldchain:{displayName:"World Chain",sdkName:"Worldchain",explorerUrl:"https://worldscan.org/",explorerName:"World Scan",icon:"Worldchain",symbol:"WORLD"},Unichain:{displayName:"Unichain",sdkName:"Unichain",explorerUrl:"https://uniscan.xyz/",explorerName:"Uniscan",icon:"Unichain",symbol:"UNI"},Berachain:{displayName:"Berachain",sdkName:"Berachain",explorerUrl:"https://berascan.com/",explorerName:"Berascan",icon:"Berachain",symbol:"BERA"},Ink:{displayName:"Ink",sdkName:"Ink",explorerUrl:"https://explorer.inkonchain.com/",explorerName:"Ink Explorer",icon:"Ink",symbol:"INK"},Linea:{displayName:"Linea",sdkName:"Linea",explorerUrl:"https://lineascan.build/",explorerName:"Lineascan",icon:"Linea",symbol:"LINEA"},Sonic:{displayName:"Sonic",sdkName:"Sonic",explorerUrl:"https://sonicscan.org/",explorerName:"Sonicscan",icon:"Sonic",symbol:"S"},Mezo:{displayName:"Mezo",sdkName:"Mezo",explorerUrl:"https://explorer.mezo.org",explorerName:"Mezo Explorer",icon:"Mezo",symbol:"BTC"},Seievm:{displayName:"SeiEVM",sdkName:"Seievm",explorerUrl:"https://seitrace.com/?chain=pacific-1",explorerName:"Seitrace",icon:"Seievm",symbol:"SEI"},Plume:{displayName:"Plume",sdkName:"Plume",explorerUrl:"https://explorer.plume.org",explorerName:"Plume Explorer",icon:"Plume",symbol:"PLUME"},HyperEVM:{displayName:"HyperEVM",sdkName:"HyperEVM",explorerUrl:"https://hyperevmscan.io/",explorerName:"HyperEVMScan",icon:"HyperEVM",symbol:"HYPE"},HyperCore:{displayName:"HyperCore",sdkName:"HyperCore",explorerUrl:"https://app.hyperliquid.xyz/explorer/",explorerName:"Hyperliquid Explorer",icon:"HyperCore",symbol:"HyperCore"},XRPLEVM:{displayName:"XRPL EVM",sdkName:"XRPLEVM",explorerUrl:"https://explorer.xrplevm.org/",explorerName:"XRPL EVM Explorer",icon:"XRPLEVM",symbol:"XRP"},CreditCoin:{displayName:"Creditcoin",sdkName:"CreditCoin",explorerUrl:"https://creditcoin.blockscout.com",explorerName:"Blockscout",icon:"CreditCoin",symbol:"CTC"},Fogo:{displayName:"Fogo",sdkName:"Fogo",explorerUrl:"https://explorer.fogo.io/",explorerName:"Fogo Explorer",icon:"Fogo",symbol:"FOGO"}},tr=g=>{console.error(`Wormhole Connect: ${g}`)},st=(g,x)=>x?{[g]:x}:{},Cl=(g,x)=>{if(!x)return g;for(const S in x)for(const c in x[S])g[S]||(g[S]={}),g[S][c]={...x[S][c],...g[S][c]};return g},Dl=(g,x,S)=>{if(g)return g.source?.chain&&(x[g.source.chain]||(tr(`Invalid chain name "${g.source.chain}" specified for defaultInputs.source.chain`),delete g.source)),g.destination?.chain&&(x[g.destination.chain]||(tr(`Invalid chain name "${g.destination.chain}" specified for defaultInputs.destination.chain`),delete g.destination)),g.source?.token&&g.destination?.token&&g.source.token===g.destination.token&&tr("Source and destination token cannot be the same, check the defaultInputs configuration"),g.source?.chain&&g.destination?.chain&&g.requiredChain&&(x[g.requiredChain]||tr(`Invalid network value "${g.requiredChain}" specified for defaultInputs.requiredChain`),g.destination.chain!==g.requiredChain&&g.source.chain!==g.requiredChain&&tr("Source chain or destination chain must equal the required network")),g.source?.chain&&g.source?.token&&(S.findByAddressOrSymbol(g.source.chain,g.source.token)||(tr(`Invalid token "${g.source?.token}" specified for defaultInputs.source.token`),delete g.source.token)),g.destination?.chain&&g.destination?.token&&(S.findByAddressOrSymbol(g.destination.chain,g.destination.token)||(tr(`Invalid token "${g.destination?.token}" specified for defaultInputs.destination.token`),delete g.destination.token)),g},Rl=g=>g[0].toUpperCase()+g.slice(1),Tl={},{REACT_APP_ETHEREUM_RPC:Il,REACT_APP_SOLANA_RPC:kl,REACT_APP_POLYGON_RPC:Nl,REACT_APP_BSC_RPC:Pl,REACT_APP_AVALANCHE_RPC:ql,REACT_APP_FANTOM_RPC:Ol,REACT_APP_CELO_RPC:Ul,REACT_APP_MOONBEAM_RPC:Ll,REACT_APP_SUI_RPC:Hl,REACT_APP_APTOS_RPC:zl,REACT_APP_BASE_RPC:$l,REACT_APP_KLAYTN_RPC:Kl,REACT_APP_ARBITRUM_RPC:Wl,REACT_APP_OPTIMISM_RPC:jl,REACT_APP_SCROLL_RPC:Gl,REACT_APP_XLAYER_RPC:Vl,REACT_APP_MANTLE_RPC:Zl,REACT_APP_WORLDCHAIN_RPC:Xl,REACT_APP_UNICHAIN_RPC:Yl,REACT_APP_BERACHAIN_RPC:Jl,REACT_APP_INK_RPC:Ql,REACT_APP_LINEA_RPC:ed,REACT_APP_SONIC_RPC:td,REACT_APP_SEIEVM_RPC:rd,REACT_APP_MEZO_RPC:id,REACT_APP_PLUME_RPC:nd,REACT_APP_HYPEREVM_RPC:ad,REACT_APP_XRPL_RPC:fd,REACT_APP_HYPERCORE_RPC:od,REACT_APP_CREDITCOIN_RPC:sd,REACT_APP_FOGO_RPC:hd}=Tl,ud={...st("Ethereum",Il),...st("Solana",kl),...st("Polygon",Nl),...st("Bsc",Pl),...st("Avalanche",ql),...st("Fantom",Ol),...st("Celo",Ul),...st("Moonbeam",Ll),...st("Sui",Hl),...st("Aptos",zl),...st("Base",$l),...st("Arbitrum",Wl),...st("Optimism",jl),...st("Klaytn",Kl),...st("Scroll",Gl),...st("Xlayer",Vl),...st("Mantle",Zl),...st("Worldchain",Xl),...st("Unichain",Yl),...st("Berachain",Jl),...st("Ink",Ql),...st("Linea",ed),...st("Sonic",td),...st("Seievm",rd),...st("Mezo",id),...st("Plume",nd),...st("HyperEVM",ad),...st("XRPLEVM",fd),...st("HyperCore",od),...st("CreditCoin",sd),...st("Fogo",hd)};function k0(g){return{...g,showFooter:g.showFooter??!0,experimental:g.experimental??{},walletConnectProjectId:g?.walletConnectProjectId??void 0}}var Ee=(g=>(g[g.AVAX=1]="AVAX",g[g.BNB=2]="BNB",g[g.BSC=3]="BSC",g[g.CELO=4]="CELO",g[g.ETH=5]="ETH",g[g.FANTOM=6]="FANTOM",g[g.POLYGON=7]="POLYGON",g[g.SOLANA=8]="SOLANA",g[g.USDC=9]="USDC",g[g.GLMR=10]="GLMR",g[g.DAI=11]="DAI",g[g.USDT=12]="USDT",g[g.BUSD=13]="BUSD",g[g.WBTC=14]="WBTC",g[g.SUI=15]="SUI",g[g.APT=16]="APT",g[g.SEI=17]="SEI",g[g.BASE=18]="BASE",g[g.OSMO=19]="OSMO",g[g.TBTC=20]="TBTC",g[g.WSTETH=21]="WSTETH",g[g.ARBITRUM=22]="ARBITRUM",g[g.OPTIMISM=23]="OPTIMISM",g[g.ATOM=24]="ATOM",g[g.EVMOS=25]="EVMOS",g[g.KUJI=26]="KUJI",g[g.PYTH=27]="PYTH",g[g.INJ=28]="INJ",g[g.KLAY=29]="KLAY",g[g.NTT=30]="NTT",g[g.SCROLL=31]="SCROLL",g[g.XLAYER=32]="XLAYER",g[g.MANTLE=33]="MANTLE",g[g.WORLDCHAIN=34]="WORLDCHAIN",g[g.BERA=35]="BERA",g[g.INK=36]="INK",g[g.BTC=37]="BTC",g[g.SONIC=38]="SONIC",g[g.PLUME=39]="PLUME",g[g.FOGO=40]="FOGO",g[g.HYPE=41]="HYPE",g[g.XRP=42]="XRP",g[g.CTC=43]="CTC",g[g.MONAD=44]="MONAD",g))(Ee||{});const cd=Object.freeze(Object.defineProperty({__proto__:null,TokenIcon:Ee,createUiConfig:k0},Symbol.toStringTag,{value:"Module"})),ld=[{symbol:"ETH",decimals:18,icon:Ee.ETH,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",decimals:18,icon:Ee.ETH,tokenId:{chain:"Ethereum",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}},{symbol:"USDC",decimals:6,icon:Ee.USDC,tokenId:{chain:"Ethereum",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}},{symbol:"WBTC",decimals:8,icon:Ee.WBTC,tokenId:{chain:"Ethereum",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"}},{symbol:"USDT",decimals:6,icon:Ee.USDT,tokenId:{chain:"Ethereum",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7"}},{symbol:"DAI",decimals:18,icon:Ee.DAI,tokenId:{chain:"Ethereum",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}},{symbol:"BUSD",decimals:18,icon:Ee.BUSD,tokenId:{chain:"Ethereum",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}},{symbol:"POL",decimals:18,icon:Ee.POLYGON,tokenId:{chain:"Polygon",address:"native"}},{symbol:"WPOL",decimals:18,icon:Ee.POLYGON,tokenId:{chain:"Polygon",address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}},{symbol:"WETH",decimals:18,icon:Ee.ETH,tokenId:{chain:"Polygon",address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}},{symbol:"USDC",decimals:6,icon:Ee.USDC,tokenId:{chain:"Polygon",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"}},{symbol:"USDT",decimals:6,icon:Ee.USDT,tokenId:{chain:"Polygon",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}},{symbol:"BNB",decimals:18,icon:Ee.BNB,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",decimals:18,icon:Ee.BNB,tokenId:{chain:"Bsc",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}},{symbol:"USDC",decimals:18,icon:Ee.USDC,tokenId:{chain:"Bsc",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}},{symbol:"AVAX",decimals:18,icon:Ee.AVAX,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",decimals:18,icon:Ee.AVAX,tokenId:{chain:"Avalanche",address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"}},{symbol:"USDC",decimals:6,icon:Ee.USDC,tokenId:{chain:"Avalanche",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}},{symbol:"USDT",decimals:6,icon:Ee.USDT,tokenId:{chain:"Avalanche",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"}},{symbol:"WETH",decimals:18,icon:Ee.ETH,tokenId:{chain:"Avalanche",address:"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"}},{symbol:"CELO",decimals:18,icon:Ee.CELO,tokenId:{chain:"Celo",address:"0x471EcE3750Da237f93B8E339c536989b8978a438"}},{symbol:"USDT",decimals:6,icon:Ee.USDT,tokenId:{chain:"Celo",address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}},{symbol:"GLMR",decimals:18,icon:Ee.GLMR,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",decimals:18,icon:Ee.GLMR,tokenId:{chain:"Moonbeam",address:"0xAcc15dC74880C9944775448304B263D191c6077F"}},{symbol:"SOL",decimals:9,icon:Ee.SOLANA,tokenId:{chain:"Solana",address:"native"}},{symbol:"SOL",decimals:9,tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:Ee.SOLANA},{symbol:"USDC",decimals:6,tokenId:{chain:"Solana",address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},icon:Ee.USDC},{symbol:"USDT",decimals:6,icon:Ee.USDT,tokenId:{chain:"Solana",address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}},{symbol:"SUI",decimals:9,tokenId:{chain:"Sui",address:"native"},icon:Ee.SUI},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"},icon:Ee.USDC},{symbol:"APT",decimals:8,tokenId:{chain:"Aptos",address:"native"},icon:Ee.APT},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"},icon:Ee.USDC},{symbol:"ETH",decimals:18,icon:Ee.ETH,tokenId:{chain:"Arbitrum",address:"native"}},{symbol:"WETH",decimals:18,icon:Ee.ETH,tokenId:{chain:"Arbitrum",address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}},{symbol:"USDC",decimals:6,icon:Ee.USDC,tokenId:{chain:"Arbitrum",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}},{symbol:"USDT",decimals:6,icon:Ee.USDT,tokenId:{chain:"Arbitrum",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}},{symbol:"ETH",decimals:18,icon:Ee.ETH,tokenId:{chain:"Optimism",address:"native"}},{symbol:"WETH",decimals:18,icon:Ee.ETH,tokenId:{chain:"Optimism",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:Ee.USDC,tokenId:{chain:"Optimism",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},{symbol:"USDT",decimals:6,icon:Ee.USDT,tokenId:{chain:"Optimism",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}},{symbol:"WETH",decimals:18,icon:Ee.ETH,tokenId:{chain:"Bsc",address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}},{symbol:"USDT",decimals:18,icon:Ee.USDT,tokenId:{chain:"Bsc",address:"0x55d398326f99059fF775485246999027B3197955"}},{symbol:"ETH",decimals:18,icon:Ee.ETH,tokenId:{chain:"Base",address:"native"}},{symbol:"WETH",decimals:18,icon:Ee.ETH,tokenId:{chain:"Base",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:Ee.USDC,tokenId:{chain:"Base",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{symbol:"USDT",decimals:6,icon:Ee.USDT,tokenId:{chain:"Base",address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}},{symbol:"wstETH",decimals:18,tokenId:{chain:"Base",address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"},icon:Ee.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Ethereum",address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"},icon:Ee.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Arbitrum",address:"0x5979D7b546E38E414F7E9822514be443A4800529"},icon:Ee.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Optimism",address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"},icon:Ee.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Polygon",address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"},icon:Ee.WSTETH},{symbol:"KAIA",decimals:18,icon:Ee.KLAY,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"wKAIA",decimals:18,name:"wKAIA",icon:Ee.KLAY,tokenId:{chain:"Klaytn",address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}},{symbol:"PYTH",decimals:6,tokenId:{chain:"Solana",address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"},icon:Ee.PYTH},{symbol:"ETH",decimals:18,icon:Ee.SCROLL,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",decimals:18,icon:Ee.SCROLL,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"OKB",decimals:18,icon:Ee.XLAYER,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",decimals:18,icon:Ee.XLAYER,tokenId:{chain:"Xlayer",address:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"}},{symbol:"MNT",decimals:18,icon:Ee.MANTLE,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",decimals:18,icon:Ee.MANTLE,tokenId:{chain:"Mantle",address:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"}},{symbol:"tBTC",decimals:18,tokenId:{chain:"Ethereum",address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"},icon:Ee.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Polygon",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:Ee.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Optimism",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:Ee.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Arbitrum",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:Ee.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Base",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:Ee.TBTC},{symbol:"tBTC",decimals:8,tokenId:{chain:"Solana",address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"},icon:Ee.TBTC},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:Ee.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ee.WORLDCHAIN},{symbol:"USDC",tokenId:{chain:"Worldchain",address:"0x79A02482A880bCE3F13e09Da970dC34db4CD24d1"},decimals:6,icon:Ee.USDC},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:Ee.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ee.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x078D782b760474a361dDA0AF3839290b0EF57AD6"},decimals:6,icon:Ee.USDC},{symbol:"BERA",tokenId:{chain:"Berachain",address:"native"},decimals:18,icon:Ee.BERA},{symbol:"WBERA",tokenId:{chain:"Berachain",address:"0x6969696969696969696969696969696969696969"},decimals:18,icon:Ee.BERA},{symbol:"ETH",tokenId:{chain:"Ink",address:"native"},decimals:18,icon:Ee.ETH},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:Ee.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0x176211869cA2b568f2A7D4EE941E073a821EE1ff"},decimals:6,icon:Ee.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:Ee.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0x29219dd400f2Bf60E5a23d13Be72B486D4038894"},decimals:6,icon:Ee.USDC},{symbol:"SEI",tokenId:{chain:"Seievm",address:"native"},decimals:18,icon:Ee.SEI},{symbol:"USDC",tokenId:{chain:"Seievm",address:"0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392"},decimals:6,icon:Ee.USDC},{symbol:"USDC",tokenId:{chain:"Plume",address:"0x222365EF19F7947e5484218551B56bb3965Aa7aF"},decimals:6,icon:Ee.USDC},{symbol:"PLUME",tokenId:{chain:"Plume",address:"native"},decimals:18,icon:Ee.PLUME},{symbol:"BTC",tokenId:{chain:"Mezo",address:"native"},decimals:18,icon:Ee.BTC},{symbol:"HYPE",tokenId:{chain:"HyperEVM",address:"native"},decimals:18,icon:Ee.HYPE},{symbol:"wHYPE",tokenId:{chain:"HyperEVM",address:"0x5555555555555555555555555555555555555555"},decimals:18,icon:Ee.HYPE},{symbol:"USDT0",tokenId:{chain:"HyperEVM",address:"0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb"},decimals:6,icon:Ee.USDT},{symbol:"USDC",tokenId:{chain:"HyperEVM",address:"0xb88339CB7199b77E23DB6E890353E22632Ba630f"},decimals:6,icon:Ee.USDC},{symbol:"USDC",tokenId:{chain:"Ink",address:"0x2D270e6886d130D724215A266106e6832161EAEd"},decimals:6,icon:Ee.USDC},{symbol:"USDC",tokenId:{chain:"HyperCore",address:"native"},decimals:6,icon:Ee.USDC},{symbol:"XRP",tokenId:{chain:"XRPLEVM",address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"},decimals:18,icon:Ee.XRP},{symbol:"CTC",tokenId:{chain:"CreditCoin",address:"native"},decimals:18,icon:Ee.CTC},{symbol:"FOGO",icon:Ee.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"native"}},{symbol:"WFOGO",icon:Ee.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"So11111111111111111111111111111111111111112"}}],dd={Ethereum:{"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2":{Bsc:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",Polygon:"0x11CD37bb86F65419713f30673A480EA33c826872",Avalanche:"0x8b82A291F83ca07Af22120ABa21632088fC92931",Fantom:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",Celo:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",Moonbeam:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",Solana:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",Sui:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",Aptos:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",Base:"0x71b35ECb35104773537f849FBC353F81303A5860",Arbitrum:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",Optimism:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",Mantle:"0x115Fcc627AcE0457fbeb7Af3b8BcAcE7Ff6211A4",Klaytn:"0x98A8345bB9D3DDa9D808Ca1c9142a28F6b0430E1",Worldchain:"0x6938c3EfFEf84E5C69e3d7cc41eBC6Cff99EF8A7"},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":{Bsc:"0xB04906e95AB5D797aDA81508115611fee694c2b3",Polygon:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",Avalanche:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",Fantom:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",Celo:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",Moonbeam:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",Solana:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",Sui:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",Aptos:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",Base:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",Arbitrum:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",Optimism:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",Klaytn:"0x608792Deb376CCE1c9FA4D0E6B7b44f507CfFa6A",Worldchain:"0x2cbD3491d687A76bb9C53c30B212855520D47b52"},"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599":{Bsc:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",Polygon:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",Avalanche:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",Fantom:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",Celo:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",Moonbeam:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",Solana:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",Sui:"0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",Aptos:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",Base:"0xE6396f780b543dF16ee3b784D789c75B68319db0",Arbitrum:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",Optimism:"0xB214C19d81c99E75e84706a3aa0A757319023e26",Klaytn:"0x981846bE8d2d697f4dfeF6689a161A25FfbAb8F9",Worldchain:"0x06c9ec7E18A7900E79Ad5BeCc6Cc29E3eebD81EC"},"0xdAC17F958D2ee523a2206206994597C13D831ec7":{Bsc:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",Polygon:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",Avalanche:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",Fantom:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",Celo:"0x617f3112bf5397D0467D315cC709EF968D9ba546",Moonbeam:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",Solana:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",Sui:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",Aptos:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",Base:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",Arbitrum:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",Optimism:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",Klaytn:"0x5C13E303a62Fc5DEdf5B52D66873f2E59fEdADC2",Xlayer:"0x5866709f926f26C5870191F40333ac462B917bC0",Worldchain:"0x95dd0680Fd6B6c7546e75C1A4E6A3256072C0593"},"0x6B175474E89094C44Da98b954EedeAC495271d0F":{Bsc:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",Polygon:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",Avalanche:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",Fantom:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",Celo:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",Moonbeam:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",Solana:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",Aptos:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",Base:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",Arbitrum:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",Optimism:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",Sui:"0xc01c54cd767a60835bf100b0a8f7aae66ac9f4e374f76746af60f02493b6f2cf::coin::COIN",Klaytn:"0xCB2C7998696Ef7a582dFD0aAFadCd008D03E791A",Worldchain:"0x69635e59E89000e08a13C3F7B9f7293160Dc83a2"},"0x4Fabb145d64652a948d72533023f6E7A623C7C53":{Bsc:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",Polygon:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",Celo:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",Moonbeam:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",Solana:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",Aptos:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",Worldchain:"0x276719Fc6a38E62B717c6FF6E39d1C336ee633AB"},"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0":{Polygon:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",Solana:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",Arbitrum:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",Optimism:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",Base:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",Bsc:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",Avalanche:"0x11449fd2F05D93827972b40adE96F6ffBE42E35a",Fantom:"0x2a2Ec6Ad3e47C536F47934F63b95BD647F1C730E",Worldchain:"0xd977e0251db8d38155dC5d212944AB7B7a6777Ad"}},Polygon:{"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270":{Ethereum:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",Bsc:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",Avalanche:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",Fantom:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",Celo:"0x9C234706292b1144133ED509ccc5B3CD193BF712",Moonbeam:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",Solana:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",Sui:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",Aptos:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",Base:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",Arbitrum:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",Optimism:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",Mantle:"0x1d15Dc3B3DB5A182eA8E3091F21EB0549d4a72E0",Klaytn:"0x9858e5A4f8202baD619D4BD39382CA67F4CA0E63",Scroll:"0x982D057feCD66c3af27b16EBC67C4db24810bcD8",Xlayer:"0xc97E2b2d7730C34adC389563721d9dF52EDA4A2a",Worldchain:"0xDcB507ECEA06724d8c4F2f03964f7EE4da504E8C"},"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619":{Bsc:"0x1384284E16e3375522Be54F50909Bc52A69e90e4",Solana:"DQyeU3oFezEGia761GQ4iPcMCnxnH8fuLrmHZUvTYuby",Aptos:"0x2692323828f627a45a75a05eba8281dd46690c538b4f6ccb7a35ffe8199a28b7::coin::T",Sui:"0xa1ed6e76b06ff8f959cc479fbbd423820a3349dad8707b98ff4309c677fa20ad::coin::COIN",Arbitrum:"0xd2b299eD76d1369Ac8762CFEc85245fFD302FC17",Ethereum:"0x32d222E1f6386B3dF7065d639870bE0ef76D3599",Avalanche:"0x061FE51530768889dc20Ac7fCD29b5307b823395",Optimism:"0x2740220fFa4b206280907ce12b7cDC57445f3B92",Fantom:"0x1cAFd8d3301E4E54Fc1462E7117Eb678bF50C765",Base:"0x7A79923734eDA9c7f7ff69ad9ec1e234F67E7CD6",Moonbeam:"0xf1BB9A987B9edC360580b0c9F28069C808c2a7da",Celo:"0x8Ed68859f162970258992168293232e3Bdd987d0",Klaytn:"0x3eb25C7098AC38a852Cd2366161c5e216af50Df3"},"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359":{Aptos:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",Base:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",Moonbeam:"0x4415BfBDee669446550d55c749007EF60B520FC8",Sui:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",Bsc:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",Celo:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",Fantom:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",Avalanche:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",Arbitrum:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",Optimism:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",Solana:"C321jHPwWBzgfSGndosDTp5pBsiXPyMU1irxKLVcedRB",Ethereum:"0xFbcE0f9e92AD1003e893Ba647bC055D845aAa507",Klaytn:"0x59AEaD999e018a00B162D34de7a81AFFAB88bAbB"},"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD":{Base:"0xcB6D47199d60747152d7671D6497ce8D23cc1D75",Arbitrum:"0x23D3901A635fDd98D8d6509bc0720281f80a8E6D",Ethereum:"0x302F636d723c8Ed75C0d1E9D9C714009184C5624",Optimism:"0x4fad81d2268a7D9E1e0fE7dB38af07FFFA0aA56E",Celo:"0xA4c7302659eCF88a90e62e915Bd486E66B616A4C"}},Bsc:{"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c":{Ethereum:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",Polygon:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",Avalanche:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",Fantom:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",Celo:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",Moonbeam:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",Solana:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",Sui:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",Aptos:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",Base:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",Arbitrum:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",Optimism:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",Mantle:"0x9a7E85260d6F5d3c3d2a1FdDc3D980DBC78e508d",Klaytn:"0xaC9C1E4787139aF4c751B1C0fadfb513C44Ed833",Scroll:"0x5b0da0a36DC415714B53A4f24b56921332F42E7C",Xlayer:"0x8bC46166E06122603bA10D2bCA63b75091c25cAe",Worldchain:"0x59163d9c70E9b3852a504c5F1458e2daD33516Ff"},"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d":{Ethereum:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",Polygon:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",Avalanche:"0x6145E8a910aE937913426BF32De2b26039728ACF",Fantom:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",Celo:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",Moonbeam:"0x7f433E22366E03a3758CE22cCf82887d828078f8",Solana:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",Sui:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",Aptos:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",Base:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",Arbitrum:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",Optimism:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",Klaytn:"0x01B342d26FEF5749E87CBe412e16163771b0277c"},"0x2170Ed0880ac9A755fd29B2688956BD959F933F8":{Aptos:"0xd9fc4259ec5def95477dba9f0861c2882d1f8bee9a4138b476dd0720a3444547::coin::T",Solana:"FzjTz2cD1DfqYvafrbHWZvf1dK9qjwXGLuaU7xYXQjxP",Sui:"0x5029d5a94429a73b8036cd67192d9c5e09bbc2c0fee942d50075a9edba66744f::coin::COIN",Base:"0xf50509Bb6aF76E20c6E1eD493699c5f70764BcCC",Arbitrum:"0x6478377A399bE8c92bD35254aA7bF287836de32e",Ethereum:"0x5DbBB101CDc29443d12055eCDDdD7ca037Dce721",Fantom:"0xc511E3aec79CABD605021C237c475Ec553B002d4",Celo:"0x09F236D3708894581b1Cf679e582ba9eA5BE16f0",Klaytn:"0x4C07075BB44076106f3389766946b79784Fb5C58",Avalanche:"0xf0e509144CfA602d0A5e8C75d76FF74077f52f2b",Optimism:"0x8088Bc767c392b5769b94c9ec1D07c62874c8d5f",Polygon:"0x2D291e940DbDdaa9E847Ba5cC49451575f086b27",Moonbeam:"0xBefd7902B682938b29B3FD3D4AdECD9A984D5930"}},Avalanche:{"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7":{Ethereum:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",Bsc:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",Polygon:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",Fantom:"0x358CE030DC6116Cc296E8B9F002728e65459C146",Celo:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",Moonbeam:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",Solana:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",Sui:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",Aptos:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",Base:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",Arbitrum:"0x565609fAF65B92F7be02468acF86f8979423e514",Optimism:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",Mantle:"0x2cAb4233d42043AEBbbb1445af362Ef686f3C133",Klaytn:"0x45830b92443a8f750247da2A76C85c70d0f1EBF3",Scroll:"0xC043c8A3672f397e7b52bF0a04F47d6f1aA952Ed",Xlayer:"0x5208Fb676B2DBab7aFaFB56e8997237F0ceECF71",Worldchain:"0x5Bf2A0622aa1254D963A3074b593A379784C116a"},"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E":{Ethereum:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",Bsc:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",Polygon:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",Fantom:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",Celo:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",Moonbeam:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",Solana:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",Sui:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",Aptos:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",Arbitrum:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",Optimism:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",Base:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",Klaytn:"0x9C97D4c09679Dfd00A39681f6d3b61A285312B13",Scroll:"0xbEFc3d0457fB88f82364Dd982F7BA195FEE96b74"},"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB":{Aptos:"0x25ff8e0c07552c392c9e5dd4c9c07cf0382765c1bca560e80b6296a702034219::coin::T",Solana:"F9B9qLwUN3TAWGV9EGsuzFzS2PxWvKAmLhvfeqYNaS7J",Bsc:"0xBDfe278268524de38Da89B3023C1F49deBDFdA8A",Sui:"0xc1ea686a329e35808c61484d95904d50522f1d1616cab4b416d9cfa9b274bc6c::coin::COIN",Base:"0xEfe64b52bc0bDfa109790736F25cefb79724adF0",Arbitrum:"0xdF64fB41b7f45304a786695E0D5daD8d033C01eF",Polygon:"0x2912b3a9586Fc2AB177dC869e878c688DAA7d06E",Ethereum:"0xD85a87Edbe9fB3Baf6a1Bbd1E46f1C04B291331d",Optimism:"0xBe6EA3e70e2bbB0dbD093B657fbbc0DFF0BA67eC",Moonbeam:"0x9C673c6b651D6FDEF57441125A6AC16b08bba939",Celo:"0xDac2C97b5E64d7C79d040cd2906EBe02341F1Ab5",Klaytn:"0x9971F9d9170D787C4e4E01c56E1BDB308291CacF",Fantom:"0x86a09597fc91b116511B990D29CB46ddedC0fCb0"}},Fantom:{"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83":{Ethereum:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",Bsc:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",Polygon:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",Avalanche:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",Celo:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",Moonbeam:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",Solana:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",Sui:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",Aptos:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",Base:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",Arbitrum:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",Optimism:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",Mantle:"0x6BFDc59ECBC5503aE16F71851064597D0a75dA76",Klaytn:"0xF3AebeA789F30C22F3657F70f4CaA0f8b49ed676",Scroll:"0x16f077e2e9bF99Adfb1FEEc8360ee002842C44A2",Xlayer:"0x956b5E88c311b976C76CB415C7E030A5Af87373b"},"0x2F733095B80A04b38b0D10cC884524a3d09b836a":{Bsc:"0x521af8b1c43B503BE91F542d82EEFEabc0C93340",Arbitrum:"0xF68734163731ad6A6108f76A8e09862C1d412B42",Ethereum:"0xfcC349c14013EdeFAAcAE09Ba30F4ef2571b8D2c"}},Celo:{"0x471EcE3750Da237f93B8E339c536989b8978a438":{Ethereum:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",Bsc:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",Polygon:"0x922F49a9911effc034eE756196E59BE7b90D43b3",Avalanche:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",Fantom:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",Moonbeam:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",Solana:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",Sui:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",Aptos:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",Base:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",Arbitrum:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",Optimism:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",Klaytn:"0xB2b5bC9bc872c7107CBC8E8e0E2805Db0ac4FBc2",Worldchain:"0x2250A0E2532A745b585B69dd2CdC75207384917c"}},Moonbeam:{"0xAcc15dC74880C9944775448304B263D191c6077F":{Ethereum:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",Bsc:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",Polygon:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",Avalanche:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",Fantom:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",Celo:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",Solana:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",Sui:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",Aptos:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",Base:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",Arbitrum:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",Optimism:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",Klaytn:"0x52a4558f98dDc7cb40cd9114C005f0B9571258Fc",Scroll:"0x2Aba1Ed24EaFC17F801b1A7dF1c3a06737F8aB72",Xlayer:"0xE2a44Dad57004517738FbD84cdf09Bd1451b4e43",Worldchain:"0xaAe2Bd4EB640f02dD3a53bd994ad19110b4191b0"}},Solana:{So11111111111111111111111111111111111111112:{Ethereum:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",Bsc:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",Polygon:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",Avalanche:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",Fantom:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",Celo:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",Moonbeam:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",Sui:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Base:"0x1C61629598e4a901136a81BC138E5828dc150d67",Arbitrum:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",Optimism:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",Mantle:"0xDA03239f428c76A527e1ceCa0ecA6cC367A2D945",Klaytn:"0xfAA03A2AC2d1B8481Ec3fF44A0152eA818340e6d",Xlayer:"0x3a859D92da2E16Ad32C5C6F3ADAddFBa4dE3A47e",Scroll:"0xCDf95E1F720caade4b1DC83ABfE15400D2a458AD",Worldchain:"0xEfae32D1c15EDBaEA3ebdDe1e2C51003AED04d30",Unichain:"0xbdE8A5331E8Ac4831cf8ea9e42e229219EafaB97",Fogo:"HLc5hqihQGFU68488j7HkdyF6rywyJfV46BN6Dn8W5ug"},EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{Ethereum:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",Bsc:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",Polygon:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",Avalanche:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",Fantom:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",Celo:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",Moonbeam:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",Sui:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",Aptos:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",Arbitrum:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",Optimism:"0x6F974A6dfD5B166731704Be226795901c45Bb815",Base:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",Klaytn:"0xa1a7feeD29EbFa38079D943486c23f401939Ce80",Scroll:"0x883Ccb5aEfD0084f1e4D04b133675acd6D5F123F"},HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3:{Aptos:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",Bsc:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",Base:"0x4c5d8A75F3762c1561D96f177694f67378705E98",Celo:"0x985aa4814419ba338379A634785216301e51113D",Avalanche:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",Polygon:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",Fantom:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",Optimism:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",Ethereum:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",Arbitrum:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",Sui:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",Moonbeam:"0x27cc3FDbDD1F415b09a41232D0fD71345DAB8030",Xlayer:"0x057b766b3fB76527cf815c3b5C38Dfa8144335CF",Worldchain:"0x838f3045F3B2dcDFF8cB4e5CaB0c0092A69B790a"}},Sui:{native:{Ethereum:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",Bsc:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",Polygon:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",Avalanche:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",Fantom:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",Celo:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",Moonbeam:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",Solana:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",Aptos:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",Base:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",Arbitrum:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",Optimism:"0x27A533e438892DA192725b4C9AcA51447F457212",Mantle:"0x9ef1BB6072d7d6B9C935d9c040133036aD532119",Klaytn:"0xB0B40516293e0204fB376A18aA230A210cbE0305",Xlayer:"0xEa76dBFE6e449420f294e74E057518F750E99A16",Worldchain:"0xf69005c35B5d9AcC22E4DbCf52f892cAE21F83B0"}},Aptos:{native:{Ethereum:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",Bsc:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",Polygon:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",Avalanche:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",Fantom:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",Celo:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",Moonbeam:"0x25331575641d35D9765e1934acC8F0991c58e904",Solana:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",Sui:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",Base:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",Arbitrum:"0x4EdeF400eDe5309240814b5FC403F224504604e9",Optimism:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",Klaytn:"0x68d5254007BE3a6d3d2A37e2C1ad3921D049F46D",Xlayer:"0xEdF2AEaCE382A3c0722f110c4927d34b78bce34F",Worldchain:"0xfC5011f2037f2Dad9c9aC05CbB6749B383C3099c"}},Arbitrum:{"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1":{Ethereum:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",Bsc:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",Polygon:"0x6a5c59AB16268d2c872916054C50440B999e417C",Avalanche:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",Fantom:"0xE8367853A0823515D37b1538331B4704089becb4",Celo:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",Solana:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",Sui:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",Aptos:"0xe977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",Base:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",Optimism:"0x825206E1D29456337769e6f1384101E997C6A732",Moonbeam:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",Klaytn:"0x3CF1751E32c4225CB12ba953786C260C2cE89008"},"0xaf88d065e77c8cC2239327C5EDb3A432268e5831":{Ethereum:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",Bsc:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",Polygon:"0x7800FE8951cdc1cDea748d878fAce63018D97960",Avalanche:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",Celo:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",Solana:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",Sui:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",Aptos:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",Optimism:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",Base:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",Fantom:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",Moonbeam:"0xbd2B6D665439514EEaA8519f4fE87CC8C46e9167",Klaytn:"0x3d5973fF7288f47857dAa5a32C53976A9A968928",Xlayer:"0xd53bD30985B4125fc561774e388d9f679BB84117"},"0x5979D7b546E38E414F7E9822514be443A4800529":{Bsc:"0x159167e842C586a81f02E55bc043AC8EdB033E0b",Aptos:"0xd2ca17516bc4ca57c1c69577e0c9cc0129153286695b46b97f438ecc138c225e::coin::T",Solana:"8wJakbZuv7WApfHmRo2sdkeQfu6hXqfEqjb7BYXDKpKe",Sui:"0xb607aed1c09e676384d14ae638dbcb08523fc691d309e71c856c7fdcb60d4430::coin::COIN",Base:"0xbE3981b37CcE5eCb6925d2ad9D9E28dE7b165793",Optimism:"0xEae5ccc3c36beF59f6794b467e7e228CB3720415",Fantom:"0xf65BF40A3299Df500D440520dF7e6ce1BEa53E73",Ethereum:"0x906310cE867C22c5016248Bd791FA5dd162c9D6d",Polygon:"0xcf0aa97c2fD78Ee0f0C3090B9EB65d2bd6C1D81a"}},Optimism:{"0x4200000000000000000000000000000000000006":{Fantom:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",Celo:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",Solana:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",Sui:"0x0aab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",Aptos:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",Arbitrum:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",Avalanche:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",Bsc:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",Ethereum:"0x8B5653Ae095529155462eDa8CF664eD96773F557",Polygon:"0x8182De59485Bb646542Db8C7E5958148Dc699319",Base:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",Moonbeam:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",Klaytn:"0x4ab77AF7059435b71dBC3B7c5255983C8628eFdf"},"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85":{Fantom:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",Celo:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",Moonbeam:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",Base:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",Arbitrum:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",Aptos:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",Bsc:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",Avalanche:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",Polygon:"0x31F12aCb60C3c32EE884F3894a873347C097D925",Sui:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",Solana:"J8kcD4Wnd1ehne1dpL8WNtgZQR6Jpui2cTZcrmg5ybAa",Klaytn:"0x7Ee2AB1443fDB59AECEa3aDD8F81296d68c2D1e3",Ethereum:"0xe77C99b64414e0fd9aeEA48AFFBBD2E97A895020"},"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb":{Bsc:"0x1f29fAD000255BF49D72803b2A8FaC8e31947eF8",Base:"0xBb0BeaB819dEAf091C193bE4bBEeA9D5b0F5227C",Arbitrum:"0xf99C5EEd186601955a9a1027536D1b46b1f909F8",Polygon:"0x9065e1D25E65F7A1D60bb6197154386B52faA469",Ethereum:"0xB3ceE6DCa1dD528CB7CC258e32D8B50ce9Ee46f5"}},Base:{"0x4200000000000000000000000000000000000006":{Ethereum:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",Bsc:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",Polygon:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",Avalanche:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",Fantom:"0xd3365E7355230c78098b44B172eE27DAB95B041A",Celo:"0x905CADB645684140E285e2D09D39dF5a2082BC87",Moonbeam:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",Solana:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",Sui:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",Aptos:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",Arbitrum:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",Optimism:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",Mantle:"0x4a2176DE2Fb36485704965bd1Cc471854f21303B",Klaytn:"0x7Bf9ad1D104dEAE4B59Ef1be6a273Cb46BA16362"},"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913":{Solana:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",Moonbeam:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",Celo:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",Bsc:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",Optimism:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",Arbitrum:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",Polygon:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",Avalanche:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",Fantom:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",Sui:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",Aptos:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",Mantle:"0x5D628a3285a10fdd93AEa704007957F294e05F91",Ethereum:"0xc38261846c42C1E1D59E04dA675Eb1974E9cE7b1",Klaytn:"0x0a2330c1C46E9A74e8651F7117a1264410eA3C88",Scroll:"0x22C9bde4Ad49C4b6CCFB8D394B5ED42A57853d58"},"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452":{Arbitrum:"0x09E79693E44c8813A8CA25EeD7A40e5E24cD9c01",Ethereum:"0x187175c7a526f48c905202Bd2Bf8D25A457F479F",Polygon:"0x95d4C8e851D9E8c6B92aa518474E991c373E9Fb2",Optimism:"0x6ee40855c0BaB20585d17D2b9dd8d2Cd1cd41801",Avalanche:"0x5e513CA12DbD8424bDFc5B50711dF4AE999a8C58"}},Klaytn:{"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817":{Aptos:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",Ethereum:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",Celo:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",Polygon:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",Base:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",Arbitrum:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",Moonbeam:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",Fantom:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",Sui:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",Avalanche:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",Bsc:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",Optimism:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",Solana:"2b8fZGLBZjpxFugCdnJbbLLBYxvx23rsrsvLYYueiHb7",Scroll:"0xA55FB7A046454998b2f6d8D99Df5F0E108b38229",Worldchain:"0xC080f0082029fC6e8A4Bb33a9B0655B8d4f2BAB0"}},Scroll:{"0x5300000000000000000000000000000000000004":{Arbitrum:"0xAe81a542e20270b48Bd5297E3e0f280f79E46C42"}},Mantle:{"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8":{Optimism:"0xf704F6a3241609Cfb3E44Db1237E68EB6CaC7C04"}}},Iu={chains:Fl,tokens:ld,wrappedTokens:dd,rpcs:ud,guardianSet:{index:4,keys:["0x5893b5a76c3f739645648885bdccc06cd70a3cd3","0xff6cb952589bde862c25ef4392132fb9d4a42157","0x114de8460193bdf3a2fcf81f86a09765f4762fd1","0x107a0086b32d7a0977926a205131d8731d39cbeb","0x8c82b2fd82faed2711d59af0f2499d16e726f6b2","0x11b39756c042441be6d8650b69b54ebe715e2343","0x54ce5b4d348fb74b958e8966e2ec3dbd4958a7cd","0x15e7caf07c4e3dc8e7c469f92c8cd88fb8005a20","0x74a3bf913953d695260d88bc1aa25a4eee363ef0","0x000ac0076727b35fbea2dac28fee5ccb0fea768e","0xaf45ced136b9d9e24903464ae889f5c8a723fc14","0xf93124b7c738843cbb89e864c862c38cddcccf95","0xd2cc37a4dc036a8d232b48f62cdd4731412f4890","0xda798f6896a3331f64b48c12d1d57fd9cbe70811","0x71aa1be1d36cafe3867910f99c09e347899c19c3","0x8192b6e7387ccd768277c17dab1b7a5027c0b3cf","0x178e21ad2e77ae06711549cfbb1f9c7a9d8096e8","0x5e1487f35515d02a92753504a8d75471b9f49edb","0x6fbebc898f403e4773e95feb15e80c9a99c8348d"]}},pd={Bsc:{displayName:"BNB",explorerUrl:"https://testnet.bscscan.com/",explorerName:"BscScan",icon:"Bsc",symbol:"BSC",sdkName:"Bsc"},Avalanche:{displayName:"Fuji",explorerUrl:"https://testnet.snowtrace.io/",explorerName:"Snowtrace",icon:"Avalanche",symbol:"AVAX",sdkName:"Avalanche"},Fantom:{displayName:"Fantom",explorerUrl:"https://testnet.ftmscan.com/",explorerName:"FtmScan",icon:"Fantom",symbol:"FTM",sdkName:"Fantom"},Celo:{displayName:"Alfajores",explorerUrl:"https://explorer.celo.org/alfajores/",explorerName:"Celo Explorer",icon:"Celo",symbol:"CELO",sdkName:"Celo"},Moonbeam:{displayName:"Moonbase",explorerUrl:"https://moonbase.moonscan.io/",explorerName:"Moonscan",icon:"Moonbeam",symbol:"GLMR",sdkName:"Moonbeam"},Solana:{displayName:"Solana",explorerUrl:"https://explorer.solana.com/?cluster=devnet",explorerName:"Solana Explorer",icon:"Solana",symbol:"SOL",sdkName:"Solana"},Sui:{displayName:"Sui",explorerUrl:"https://suiscan.xyz/testnet/",explorerName:"Suiscan",icon:"Sui",symbol:"SUI",sdkName:"Sui"},Aptos:{displayName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",icon:"Aptos",symbol:"APT",sdkName:"Aptos"},Klaytn:{displayName:"Kaia",explorerUrl:"https://kairos.kaiascan.io/",explorerName:"KaiaScan",icon:"Klaytn",symbol:"KAIA",sdkName:"Klaytn"},Sepolia:{displayName:"Sepolia",explorerUrl:"https://sepolia.etherscan.io/",explorerName:"Etherscan",icon:"Ethereum",symbol:"ETH",sdkName:"Sepolia"},ArbitrumSepolia:{displayName:"Arbitrum Sepolia",explorerUrl:"https://sepolia.arbiscan.io/",explorerName:"Etherscan",icon:"Arbitrum",symbol:"ARB",sdkName:"ArbitrumSepolia"},BaseSepolia:{displayName:"Base Sepolia",explorerUrl:"https://base-sepolia.blockscout.com/",explorerName:"Etherscan",icon:"Base",symbol:"BASE",sdkName:"BaseSepolia"},OptimismSepolia:{displayName:"Optimism Sepolia",explorerUrl:"https://sepolia-optimistic.etherscan.io/",explorerName:"Etherscan",icon:"Optimism",symbol:"OP",sdkName:"OptimismSepolia"},Scroll:{displayName:"Scroll",explorerUrl:"https://sepolia.scrollscan.dev/",explorerName:"Scrollscan",icon:"Scroll",symbol:"SCR",sdkName:"Scroll"},Xlayer:{displayName:"X Layer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer-test/",explorerName:"OKX Explorer",icon:"Xlayer",symbol:"OKX",sdkName:"Xlayer"},Mantle:{displayName:"Mantle",explorerUrl:"https://explorer.testnet.mantle.xyz/",explorerName:"Mantle Explorer",icon:"Mantle",symbol:"MNT",sdkName:"Mantle"},Monad:{displayName:"Monad",explorerUrl:"https://testnet.monadexplorer.com/",explorerName:"Monad Explorer",icon:"Monad",symbol:"MON",sdkName:"Monad"},Worldchain:{displayName:"World Chain",explorerUrl:"https://worldchain-sepolia.explorer.alchemy.com/",explorerName:"World Scan",icon:"Worldchain",sdkName:"Worldchain",symbol:"WORLD"},Unichain:{displayName:"Unichain",explorerUrl:"https://unichain-sepolia.blockscout.com/",explorerName:"Unichain Explorer",icon:"Unichain",symbol:"UNI",sdkName:"Unichain"},Mezo:{displayName:"Mezo",explorerUrl:"https://explorer.test.mezo.org/",explorerName:"Mezo Explorer",icon:"Mezo",sdkName:"Mezo",symbol:"MEZO"},Linea:{displayName:"Linea",sdkName:"Linea",explorerUrl:"https://sepolia.lineascan.build/",explorerName:"Lineascan",icon:"Linea",symbol:"LINEA"},Sonic:{displayName:"Sonic",sdkName:"Sonic",explorerUrl:"https://testnet.sonicscan.org/",explorerName:"Sonicscan",icon:"Sonic",symbol:"S"},Seievm:{displayName:"SeiEVM",explorerUrl:"https://seitrace.com/?chain=atlantic-2",explorerName:"Seitrace",icon:"Seievm",sdkName:"Seievm",symbol:"SEI"},Plume:{displayName:"Plume",sdkName:"Plume",explorerUrl:"https://testnet-explorer.plume.org",explorerName:"Plume Explorer",icon:"Plume",symbol:"PLUME"},Fogo:{displayName:"Fogo",sdkName:"Fogo",explorerUrl:"https://explorer.fogo.io/",explorerName:"Fogo Explorer",icon:"Fogo",symbol:"FOGO"},XRPLEVM:{displayName:"XRPL EVM",sdkName:"XRPLEVM",icon:"XRPLEVM",explorerUrl:"https://explorer.testnet.xrplevm.org/",explorerName:"XRPL EVM Explorer",symbol:"XRP"},Ink:{displayName:"Ink Sepolia",sdkName:"Ink",explorerUrl:"https://explorer-sepolia.inkonchain.com/",explorerName:"Ink Sepolia Explorer",icon:"Ink",symbol:"INK"}},vd={},{REACT_APP_SEPOLIA_RPC:bd,REACT_APP_BSC_TESTNET_RPC:md,REACT_APP_FUJI_RPC:yd,REACT_APP_FANTOM_TESTNET_RPC:gd,REACT_APP_ALFAJORES_RPC:xd,REACT_APP_SOLANA_DEVNET_RPC:wd,REACT_APP_FOGO_TESTNET_RPC:Md,REACT_APP_MOONBASE_RPC:_d,REACT_APP_SUI_TESTNET_RPC:Ed,REACT_APP_APTOS_TESTNET_RPC:Ad,REACT_APP_BASE_SEPOLIA_RPC:Sd,REACT_APP_KLAYTN_TESTNET_RPC:Bd,REACT_APP_ARBITRUM_SEPOLIA_RPC:Fd,REACT_APP_OPTIMISM_SEPOLIA_RPC:Cd,REACT_APP_SCROLL_TESTNET_RPC:Dd,REACT_APP_XLAYER_TESTNET_RPC:Rd,REACT_APP_MANTLE_TESTNET_RPC:Td,REACT_APP_WORLDCHAIN_TESTNET_RPC:Id,REACT_APP_UNICHAIN_TESTNET_RPC:kd,REACT_APP_MEZO_TESTNET_RPC:Nd,REACT_APP_LINEA_TESTNET_RPC:Pd,REACT_APP_SONIC_TESTNET_RPC:qd,REACT_APP_SEIEVM_TESTNET_RPC:Od,REACT_APP_PLUME_RPC:Ud,REACT_APP_XRPLEVM_TESTNET_RPC:Ld,REACT_APP_MONAD_TESTNET_RPC:Hd,REACT_APP_INK_TESTNET_RPC:zd}=vd,$d={...st("Sepolia",bd),...st("Bsc",md),...st("Avalanche",yd),...st("Fantom",gd),...st("Celo",xd),...st("Solana",wd),...st("Fogo",Md),...st("Moonbeam",_d),...st("Sui",Ed),...st("Aptos",Ad),...st("BaseSepolia",Sd),...st("ArbitrumSepolia",Fd),...st("OptimismSepolia",Cd),...st("Klaytn",Bd),...st("Scroll",Dd),...st("Xlayer",Rd),...st("Mantle",Td),...st("Worldchain",Id),...st("Unichain",kd),...st("Mezo",Nd),...st("Linea",Pd),...st("Sonic",qd),...st("Seievm",Od),...st("Plume",Ud),...st("XRPLEVM",Ld),...st("Monad",Hd),...st("Ink",zd)},Kd=[{symbol:"BNB",icon:Ee.BNB,decimals:18,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",icon:Ee.BNB,decimals:18,tokenId:{chain:"Bsc",address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}},{symbol:"AVAX",icon:Ee.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",icon:Ee.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}},{symbol:"USDC",icon:Ee.USDC,decimals:6,tokenId:{chain:"Avalanche",address:"0x5425890298aed601595a70AB815c96711a31Bc65"}},{symbol:"CELO",icon:Ee.CELO,decimals:18,tokenId:{chain:"Celo",address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}},{symbol:"USDC.e",icon:Ee.USDC,decimals:6,tokenId:{chain:"Celo",address:"0x72CAaa7e9889E0a63e016748179b43911A3ec9e5"}},{symbol:"GLMR",icon:Ee.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",icon:Ee.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}},{symbol:"SOL",icon:Ee.SOLANA,decimals:9,tokenId:{chain:"Solana",address:"native"}},{symbol:"SOL",tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:Ee.SOLANA,decimals:9},{symbol:"FOGO",icon:Ee.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"native"}},{symbol:"WFOGO",icon:Ee.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"So11111111111111111111111111111111111111112"}},{symbol:"USDC",tokenId:{chain:"Solana",address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"},icon:Ee.USDC,decimals:6},{symbol:"SUI",tokenId:{chain:"Sui",address:"native"},icon:Ee.SUI,decimals:9},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"},icon:Ee.USDC},{symbol:"APT",tokenId:{chain:"Aptos",address:"native"},icon:Ee.APT,decimals:8},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"},icon:Ee.USDC},{symbol:"KAIA",icon:Ee.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"wKAIA",name:"wKAIA",icon:Ee.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}},{symbol:"ETH",icon:Ee.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"native"}},{symbol:"WETH",icon:Ee.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}},{symbol:"USDC",icon:Ee.USDC,decimals:6,tokenId:{chain:"Sepolia",address:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"}},{symbol:"USDT",icon:Ee.USDT,decimals:6,tokenId:{chain:"Sepolia",address:"0xaA8E23Fb1079EA71e0a56F48a2aA51851D8433D0"}},{symbol:"WBTC",icon:Ee.WBTC,decimals:8,tokenId:{chain:"Sepolia",address:"0x52eea312378ef46140ebe67de8a143ba2304fd7c"}},{symbol:"UNI",icon:"https://assets.coingecko.com/coins/images/12504/standard/uniswap-logo.png",decimals:18,tokenId:{chain:"Sepolia",address:"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}},{symbol:"ETH",icon:Ee.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"native"}},{symbol:"WETH",icon:Ee.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}},{symbol:"ETH",icon:Ee.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"native"}},{symbol:"WETH",icon:Ee.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",icon:Ee.USDC,decimals:6,tokenId:{chain:"BaseSepolia",address:"0x036CbD53842c5426634e7929541eC2318f3dCF7e"}},{symbol:"ETH",icon:Ee.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"native"}},{symbol:"WETH",icon:Ee.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:Ee.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",icon:Ee.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"OKB",icon:Ee.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",icon:Ee.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"}},{symbol:"MNT",icon:Ee.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",icon:Ee.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"}},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:Ee.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ee.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:Ee.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:Ee.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x31d0220469e10c4E71834a79b1f276d740d3768F"},decimals:6,icon:Ee.USDC},{symbol:"BTC",tokenId:{chain:"Mezo",address:"native"},decimals:18,icon:Ee.BTC},{symbol:"MON",icon:Ee.MONAD,decimals:18,tokenId:{chain:"Monad",address:"native"}},{symbol:"WMON",icon:Ee.MONAD,decimals:18,tokenId:{chain:"Monad",address:"0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701"}},{symbol:"wUSDC",icon:Ee.USDC,decimals:6,tokenId:{chain:"Monad",address:"0x4804916f7c16c20E1a557feb8E3E29418DDC54DC"}},{symbol:"wUSDT",icon:Ee.USDT,decimals:6,tokenId:{chain:"Monad",address:"0x72111141639bfAa9A1Ad7A638F546e2397f0dc7a"}},{symbol:"wWETH",icon:Ee.ETH,decimals:18,tokenId:{chain:"Monad",address:"0xA296f47E8Ff895Ed7A092b4a9498bb13C46ac768"}},{symbol:"wWBTC",icon:Ee.WBTC,decimals:8,tokenId:{chain:"Monad",address:"0x5B3540B0a48F8b30A655402eE5dcD213fd2B4BEa"}},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:Ee.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0xFEce4462D57bD51A6A552365A011b95f0E16d9B7"},decimals:6,icon:Ee.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:Ee.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0xA4879Fed32Ecbef99399e5cbC247E533421C4eC6"},decimals:6,icon:Ee.USDC},{symbol:"SEI",tokenId:{chain:"Seievm",address:"native"},decimals:18,icon:Ee.SEI},{symbol:"USDC",tokenId:{chain:"Seievm",address:"0x4fCF1784B31630811181f670Aea7A7bEF803eaED"},decimals:6,icon:Ee.USDC},{symbol:"PLUME",decimals:18,icon:Ee.PLUME,tokenId:{chain:"Plume",address:"native"}},{symbol:"USDC",tokenId:{chain:"HyperEVM",address:"0x2B3370eE501B4a559b57D449569354196457D8Ab"},decimals:6,icon:Ee.USDC},{symbol:"XRP",tokenId:{chain:"XRPLEVM",address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"},decimals:18,icon:Ee.XRP},{symbol:"ETH",icon:Ee.ETH,decimals:18,tokenId:{chain:"Ink",address:"native"}}],Wd={Bsc:{"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd":{Avalanche:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",Fantom:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",Celo:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",Moonbeam:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",Solana:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",Sui:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",Aptos:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",Klaytn:"0xEFa3626825C33C4cd83850920Ad7Ac0a392E1faE",Sepolia:"0x02CdD5eB55934663F0aD8fbA3516dC7DE4E22894"}},Avalanche:{"0xd00ae08403B9bbb9124bB305C09058E32C39A48c":{Bsc:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",Fantom:"0x0f545Be981C37fB15ab7c65404648761e99016e4",Celo:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",Moonbeam:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",Solana:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",Sui:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",Aptos:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",Klaytn:"0x10257392a2B5e3C4D4bEe1607650a1C0C738202a",Scroll:"0x5Bd1ba0040C16b13894A6EbE3d55708c91eF08bb",Xlayer:"0xb13a464ceE7455A9b2941bFAe1bB1eB5A6833867"},"0x5425890298aed601595a70AB815c96711a31Bc65":{Bsc:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",Fantom:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",Celo:"0xDDB349c976cA2C873644F21f594767Eb5390C831",Moonbeam:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",Solana:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",Sui:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",Aptos:"0x2ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T"}},Fantom:{"0xf1277d1Ed8AD466beddF92ef448A132661956621":{Bsc:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",Avalanche:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",Celo:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",Moonbeam:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",Solana:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",Sui:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",Aptos:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",Klaytn:"0x097c8878A0d852581Dc4D8820151094Ddd3663Ac",Sepolia:"0x852132647d301B7EED02589B1dc73545E73c8596"}},Celo:{"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9":{Bsc:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",Avalanche:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",Fantom:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",Moonbeam:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",Solana:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",Sui:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",Aptos:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",Klaytn:"0xC951826bbB310a8160BB78c2eEe6C98246292ba7",Sepolia:"0x648f226f3bDcAEdc844622d604F76935DC05bC24"}},Moonbeam:{"0xD909178CC99d318e4D46e7E66a972955859670E1":{Bsc:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",Avalanche:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",Fantom:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",Celo:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",Solana:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",Sui:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",Aptos:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",Sepolia:"0x3F7CD70ECd402BBe71f45A95156A2CAC0d6A822E"}},Solana:{So11111111111111111111111111111111111111112:{Bsc:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",Avalanche:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",Fantom:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",Celo:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",Sui:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Klaytn:"0x48D99C16638E6FFD2ED60375cD35ef6c139e5f41",Moonbeam:"0x5babD0d267Adf2081626654E51d1cABF8c477440",Sepolia:"0x824CB8fC742F8D3300d29f16cA8beE94471169f5",Monad:"0x369CD1E20Fa7ea1F8e6dc0759709bA0bD978abE7"},"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU":{Bsc:"0x51a3cc54eA30Da607974C5D07B8502599801AC08"}},Sui:{native:{Bsc:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",Avalanche:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",Fantom:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",Celo:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",Solana:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",Aptos:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",Moonbeam:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",Klaytn:"0xbA5F07a20681Add3A396E7606c6DC9B03d71d28A"}},Aptos:{native:{Bsc:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",Avalanche:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",Fantom:"0xAb2297E8994149BA91737944E40891881aF762a4",Celo:"0xAC0a2fF7DD597de863878a3372142b07B614C125",Moonbeam:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",Solana:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",Sui:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN"}},Klaytn:{"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106":{Bsc:"0x79D34FDb686B5D139949E4F92D83EEe376489176",Aptos:"0xa8ffe1ffe3057756019345cdf9cf3d1f1a3d9a355147dd9440878c448a057579::coin::T",Celo:"0x8e50fC4b7F8B7018E72475f78C640F973218C8Cf",Avalanche:"0x84f3298Bcc019BD5B995756494095e1Eb72B565C",Solana:"6p7qTfX4tRFtQovxwT77Jn9HFQEV7nxLbux9C31Tgm23",Fantom:"0x72A1C24dA7F08d11a7668E228Ec287Fc6ec16E48",Sepolia:"0x142D0E977768cA4De6f2161D9E5B5C9F00435F9e",Moonbeam:"0x6eFf019D79D4136e57A7FC141967F3D0AD41089a",Sui:"0xd4a59fb612b162df75a9d190c0f72098dcae883e88bd0eb28667c31f8208dc3c::coin::COIN"}},Sepolia:{"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c":{Solana:"6F5YWWrUMNpee8C6BDUc6DmRvYRMDDTgJHwKhbXuifWs",Celo:"0x890ad4a7eD5bD08b7d6638515157dF3bF4BaD1Bc",Bsc:"0x667a61Efa611399970AE927637dD6f9A16f51e40",Moonbeam:"0xa7276055a1d45fB9982575411801e10ac9970Da8",ArbitrumSepolia:"0x97Ee87C7Db6049669a518730a2Ee60d1Fc58844E",Avalanche:"0x12bFE94230daaE3d48067577F45b7b031dD357f3",Fantom:"0x7F96D67186561Aa17cEb699494E94bEE3F3499D4"},"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238":{Aptos:"0x3f2912a313c5bea312dbf19f9080101d2e762df6546a6fe9f60a4de72c93d015::coin::T",Solana:"23Adx8na44L3M1Nf9RrUpQPb41eufdRXKseg25FfcJtw",Celo:"0xD6A34325e5F6BE27b7006bf06651444196Da579a",Bsc:"0xb8850F591019F0794F813426d4A4A9b5fB8f23C8",BaseSepolia:"0x3F872340B6A75397aa9b0A463000349962a8795D",ArbitrumSepolia:"0x27B8F40Cf0915e729ae5A96970E91045Fe9724dF",Fantom:"0xa686203C86140142230f44A724281E1BEd09c369",Klaytn:"0x25f2a470a2e1E75DDAc40289AB277eDE4DD98aFa",Sui:"0x6529fef82a8a09470c550a3129bbd889030b62306f0c14161224b1a40ef1346f::coin::COIN"}},OptimismSepolia:{"0x4200000000000000000000000000000000000006":{ArbitrumSepolia:"0xa2610700cCA8361DECD27dB2564848C530f20813"}}},ku={chains:pd,tokens:Kd,wrappedTokens:Wd,rpcs:$d,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},jd={Ethereum:{sdkName:"Ethereum",displayName:"EVM",explorerUrl:"",explorerName:"",icon:"Ethereum",symbol:"ETH"}},Gd={},{REACT_APP_ETHEREUM_DEVNET_RPC:Vd}=Gd,Zd={...st("Ethereum",Vd)},Xd=[{symbol:"ETH",icon:Ee.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",icon:Ee.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E"}},{symbol:"TKN",icon:Ee.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A"}}],Yd={chains:jd,tokens:Xd,wrappedTokens:{},rpcs:Zd,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}};function Jd(g){const x=typeof window>"u"?void 0:window.location?.host;return function(S){const c={meta:{version:ti.CONNECT_VERSION,hash:ti.CONNECT_GIT_HASH,host:x},...S};if(console.debug("Wormhole Connect event:",c),g)try{g(c)}catch(E){console.error("Error handling event:",E)}}}function Qd(g){throw new Error('Could not dynamically require "'+g+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var li={exports:{}},yt={},Rr={exports:{}},df;function dr(){if(df)return Rr.exports;df=1;var g=65536,x=4294967295;function S(){throw new Error(`Secure random number generation is not supported by this browser.
2
- Use Chrome, Firefox or Internet Explorer 11`)}var c=ze.requireSafeBuffer().Buffer,E=ze.commonjsGlobal.crypto||ze.commonjsGlobal.msCrypto;E&&E.getRandomValues?Rr.exports=i:Rr.exports=S;function i(_,y){if(_>x)throw new RangeError("requested too many random bytes");var m=c.allocUnsafe(_);if(_>0)if(_>g)for(var h=0;h<_;h+=g)E.getRandomValues(m.slice(h,h+g));else E.getRandomValues(m);return typeof y=="function"?xe.process$1.nextTick(function(){y(null,m)}):m}return Rr.exports}var Tr={exports:{}},pf;function dt(){return pf||(pf=1,typeof Object.create=="function"?Tr.exports=function(x,S){S&&(x.super_=S,x.prototype=Object.create(S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}))}:Tr.exports=function(x,S){if(S){x.super_=S;var c=function(){};c.prototype=S.prototype,x.prototype=new c,x.prototype.constructor=x}}),Tr.exports}var Ir={exports:{}},vf;function pr(){if(vf)return Ir.exports;vf=1;var g=typeof Reflect=="object"?Reflect:null,x=g&&typeof g.apply=="function"?g.apply:function(K,q,Y){return Function.prototype.apply.call(K,q,Y)},S;g&&typeof g.ownKeys=="function"?S=g.ownKeys:Object.getOwnPropertySymbols?S=function(K){return Object.getOwnPropertyNames(K).concat(Object.getOwnPropertySymbols(K))}:S=function(K){return Object.getOwnPropertyNames(K)};function c(D){console&&console.warn&&console.warn(D)}var E=Number.isNaN||function(K){return K!==K};function i(){i.init.call(this)}Ir.exports=i,Ir.exports.once=F,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var _=10;function y(D){if(typeof D!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof D)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return _},set:function(D){if(typeof D!="number"||D<0||E(D))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+D+".");_=D}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(K){if(typeof K!="number"||K<0||E(K))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+K+".");return this._maxListeners=K,this};function m(D){return D._maxListeners===void 0?i.defaultMaxListeners:D._maxListeners}i.prototype.getMaxListeners=function(){return m(this)},i.prototype.emit=function(K){for(var q=[],Y=1;Y<arguments.length;Y++)q.push(arguments[Y]);var J=K==="error",V=this._events;if(V!==void 0)J=J&&V.error===void 0;else if(!J)return!1;if(J){var re;if(q.length>0&&(re=q[0]),re instanceof Error)throw re;var u=new Error("Unhandled error."+(re?" ("+re.message+")":""));throw u.context=re,u}var e=V[K];if(e===void 0)return!1;if(typeof e=="function")x(e,this,q);else for(var r=e.length,n=M(e,r),Y=0;Y<r;++Y)x(n[Y],this,q);return!0};function h(D,K,q,Y){var J,V,re;if(y(q),V=D._events,V===void 0?(V=D._events=Object.create(null),D._eventsCount=0):(V.newListener!==void 0&&(D.emit("newListener",K,q.listener?q.listener:q),V=D._events),re=V[K]),re===void 0)re=V[K]=q,++D._eventsCount;else if(typeof re=="function"?re=V[K]=Y?[q,re]:[re,q]:Y?re.unshift(q):re.push(q),J=m(D),J>0&&re.length>J&&!re.warned){re.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+re.length+" "+String(K)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=D,u.type=K,u.count=re.length,c(u)}return D}i.prototype.addListener=function(K,q){return h(this,K,q,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(K,q){return h(this,K,q,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(D,K,q){var Y={fired:!1,wrapFn:void 0,target:D,type:K,listener:q},J=d.bind(Y);return J.listener=q,Y.wrapFn=J,J}i.prototype.once=function(K,q){return y(q),this.on(K,p(this,K,q)),this},i.prototype.prependOnceListener=function(K,q){return y(q),this.prependListener(K,p(this,K,q)),this},i.prototype.removeListener=function(K,q){var Y,J,V,re,u;if(y(q),J=this._events,J===void 0)return this;if(Y=J[K],Y===void 0)return this;if(Y===q||Y.listener===q)--this._eventsCount===0?this._events=Object.create(null):(delete J[K],J.removeListener&&this.emit("removeListener",K,Y.listener||q));else if(typeof Y!="function"){for(V=-1,re=Y.length-1;re>=0;re--)if(Y[re]===q||Y[re].listener===q){u=Y[re].listener,V=re;break}if(V<0)return this;V===0?Y.shift():A(Y,V),Y.length===1&&(J[K]=Y[0]),J.removeListener!==void 0&&this.emit("removeListener",K,u||q)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(K){var q,Y,J;if(Y=this._events,Y===void 0)return this;if(Y.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Y[K]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Y[K]),this;if(arguments.length===0){var V=Object.keys(Y),re;for(J=0;J<V.length;++J)re=V[J],re!=="removeListener"&&this.removeAllListeners(re);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(q=Y[K],typeof q=="function")this.removeListener(K,q);else if(q!==void 0)for(J=q.length-1;J>=0;J--)this.removeListener(K,q[J]);return this};function v(D,K,q){var Y=D._events;if(Y===void 0)return[];var J=Y[K];return J===void 0?[]:typeof J=="function"?q?[J.listener||J]:[J]:q?B(J):M(J,J.length)}i.prototype.listeners=function(K){return v(this,K,!0)},i.prototype.rawListeners=function(K){return v(this,K,!1)},i.listenerCount=function(D,K){return typeof D.listenerCount=="function"?D.listenerCount(K):w.call(D,K)},i.prototype.listenerCount=w;function w(D){var K=this._events;if(K!==void 0){var q=K[D];if(typeof q=="function")return 1;if(q!==void 0)return q.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?S(this._events):[]};function M(D,K){for(var q=new Array(K),Y=0;Y<K;++Y)q[Y]=D[Y];return q}function A(D,K){for(;K+1<D.length;K++)D[K]=D[K+1];D.pop()}function B(D){for(var K=new Array(D.length),q=0;q<K.length;++q)K[q]=D[q].listener||D[q];return K}function F(D,K){return new Promise(function(q,Y){function J(re){D.removeListener(K,V),Y(re)}function V(){typeof D.removeListener=="function"&&D.removeListener("error",J),q([].slice.call(arguments))}R(D,K,V,{once:!0}),K!=="error"&&C(D,J,{once:!0})})}function C(D,K,q){typeof D.on=="function"&&R(D,"error",K,q)}function R(D,K,q,Y){if(typeof D.on=="function")Y.once?D.once(K,q):D.on(K,q);else if(typeof D.addEventListener=="function")D.addEventListener(K,function J(V){Y.once&&D.removeEventListener(K,J),q(V)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof D)}return Ir.exports}var di,bf;function Nu(){return bf||(bf=1,di=pr().EventEmitter),di}const e1={},t1=Object.freeze(Object.defineProperty({__proto__:null,default:e1},Symbol.toStringTag,{value:"Module"})),vr=ze.getAugmentedNamespace(t1);var pi,mf;function r1(){if(mf)return pi;mf=1;function g(M,A){var B=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);A&&(F=F.filter(function(C){return Object.getOwnPropertyDescriptor(M,C).enumerable})),B.push.apply(B,F)}return B}function x(M){for(var A=1;A<arguments.length;A++){var B=arguments[A]!=null?arguments[A]:{};A%2?g(Object(B),!0).forEach(function(F){S(M,F,B[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(B)):g(Object(B)).forEach(function(F){Object.defineProperty(M,F,Object.getOwnPropertyDescriptor(B,F))})}return M}function S(M,A,B){return A=_(A),A in M?Object.defineProperty(M,A,{value:B,enumerable:!0,configurable:!0,writable:!0}):M[A]=B,M}function c(M,A){if(!(M instanceof A))throw new TypeError("Cannot call a class as a function")}function E(M,A){for(var B=0;B<A.length;B++){var F=A[B];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,_(F.key),F)}}function i(M,A,B){return A&&E(M.prototype,A),Object.defineProperty(M,"prototype",{writable:!1}),M}function _(M){var A=y(M,"string");return typeof A=="symbol"?A:String(A)}function y(M,A){if(typeof M!="object"||M===null)return M;var B=M[Symbol.toPrimitive];if(B!==void 0){var F=B.call(M,A);if(typeof F!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}var m=ze.requireDist(),h=m.Buffer,d=vr,p=d.inspect,v=p&&p.custom||"inspect";function w(M,A,B){h.prototype.copy.call(M,A,B)}return pi=(function(){function M(){c(this,M),this.head=null,this.tail=null,this.length=0}return i(M,[{key:"push",value:function(B){var F={data:B,next:null};this.length>0?this.tail.next=F:this.head=F,this.tail=F,++this.length}},{key:"unshift",value:function(B){var F={data:B,next:this.head};this.length===0&&(this.tail=F),this.head=F,++this.length}},{key:"shift",value:function(){if(this.length!==0){var B=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,B}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(B){if(this.length===0)return"";for(var F=this.head,C=""+F.data;F=F.next;)C+=B+F.data;return C}},{key:"concat",value:function(B){if(this.length===0)return h.alloc(0);for(var F=h.allocUnsafe(B>>>0),C=this.head,R=0;C;)w(C.data,F,R),R+=C.data.length,C=C.next;return F}},{key:"consume",value:function(B,F){var C;return B<this.head.data.length?(C=this.head.data.slice(0,B),this.head.data=this.head.data.slice(B)):B===this.head.data.length?C=this.shift():C=F?this._getString(B):this._getBuffer(B),C}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(B){var F=this.head,C=1,R=F.data;for(B-=R.length;F=F.next;){var D=F.data,K=B>D.length?D.length:B;if(K===D.length?R+=D:R+=D.slice(0,B),B-=K,B===0){K===D.length?(++C,F.next?this.head=F.next:this.head=this.tail=null):(this.head=F,F.data=D.slice(K));break}++C}return this.length-=C,R}},{key:"_getBuffer",value:function(B){var F=h.allocUnsafe(B),C=this.head,R=1;for(C.data.copy(F),B-=C.data.length;C=C.next;){var D=C.data,K=B>D.length?D.length:B;if(D.copy(F,F.length-B,0,K),B-=K,B===0){K===D.length?(++R,C.next?this.head=C.next:this.head=this.tail=null):(this.head=C,C.data=D.slice(K));break}++R}return this.length-=R,F}},{key:v,value:function(B,F){return p(this,x(x({},F),{},{depth:0,customInspect:!1}))}}]),M})(),pi}var vi,yf;function Pu(){if(yf)return vi;yf=1;function g(_,y){var m=this,h=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return h||d?(y?y(_):_&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,xe.process$1.nextTick(E,this,_)):xe.process$1.nextTick(E,this,_)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(_||null,function(p){!y&&p?m._writableState?m._writableState.errorEmitted?xe.process$1.nextTick(S,m):(m._writableState.errorEmitted=!0,xe.process$1.nextTick(x,m,p)):xe.process$1.nextTick(x,m,p):y?(xe.process$1.nextTick(S,m),y(p)):xe.process$1.nextTick(S,m)}),this)}function x(_,y){E(_,y),S(_)}function S(_){_._writableState&&!_._writableState.emitClose||_._readableState&&!_._readableState.emitClose||_.emit("close")}function c(){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)}function E(_,y){_.emit("error",y)}function i(_,y){var m=_._readableState,h=_._writableState;m&&m.autoDestroy||h&&h.autoDestroy?_.destroy(y):_.emit("error",y)}return vi={destroy:g,undestroy:c,errorOrDestroy:i},vi}var bi={},gf;function br(){if(gf)return bi;gf=1;function g(y,m){y.prototype=Object.create(m.prototype),y.prototype.constructor=y,y.__proto__=m}var x={};function S(y,m,h){h||(h=Error);function d(v,w,M){return typeof m=="string"?m:m(v,w,M)}var p=(function(v){g(w,v);function w(M,A,B){return v.call(this,d(M,A,B))||this}return w})(h);p.prototype.name=h.name,p.prototype.code=y,x[y]=p}function c(y,m){if(Array.isArray(y)){var h=y.length;return y=y.map(function(d){return String(d)}),h>2?"one of ".concat(m," ").concat(y.slice(0,h-1).join(", "),", or ")+y[h-1]:h===2?"one of ".concat(m," ").concat(y[0]," or ").concat(y[1]):"of ".concat(m," ").concat(y[0])}else return"of ".concat(m," ").concat(String(y))}function E(y,m,h){return y.substr(0,m.length)===m}function i(y,m,h){return(h===void 0||h>y.length)&&(h=y.length),y.substring(h-m.length,h)===m}function _(y,m,h){return typeof h!="number"&&(h=0),h+m.length>y.length?!1:y.indexOf(m,h)!==-1}return S("ERR_INVALID_OPT_VALUE",function(y,m){return'The value "'+m+'" is invalid for option "'+y+'"'},TypeError),S("ERR_INVALID_ARG_TYPE",function(y,m,h){var d;typeof m=="string"&&E(m,"not ")?(d="must not be",m=m.replace(/^not /,"")):d="must be";var p;if(i(y," argument"))p="The ".concat(y," ").concat(d," ").concat(c(m,"type"));else{var v=_(y,".")?"property":"argument";p='The "'.concat(y,'" ').concat(v," ").concat(d," ").concat(c(m,"type"))}return p+=". Received type ".concat(typeof h),p},TypeError),S("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),S("ERR_METHOD_NOT_IMPLEMENTED",function(y){return"The "+y+" method is not implemented"}),S("ERR_STREAM_PREMATURE_CLOSE","Premature close"),S("ERR_STREAM_DESTROYED",function(y){return"Cannot call "+y+" after a stream was destroyed"}),S("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),S("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),S("ERR_STREAM_WRITE_AFTER_END","write after end"),S("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),S("ERR_UNKNOWN_ENCODING",function(y){return"Unknown encoding: "+y},TypeError),S("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),bi.codes=x,bi}var mi,xf;function qu(){if(xf)return mi;xf=1;var g=br().codes.ERR_INVALID_OPT_VALUE;function x(c,E,i){return c.highWaterMark!=null?c.highWaterMark:E?c[i]:null}function S(c,E,i,_){var y=x(E,_,i);if(y!=null){if(!(isFinite(y)&&Math.floor(y)===y)||y<0){var m=_?i:"highWaterMark";throw new g(m,y)}return Math.floor(y)}return c.objectMode?16:16*1024}return mi={getHighWaterMark:S},mi}var yi,wf;function U0(){if(wf)return yi;wf=1,yi=g;function g(S,c){if(x("noDeprecation"))return S;var E=!1;function i(){if(!E){if(x("throwDeprecation"))throw new Error(c);x("traceDeprecation")?console.trace(c):console.warn(c),E=!0}return S.apply(this,arguments)}return i}function x(S){try{if(!ze.commonjsGlobal.localStorage)return!1}catch{return!1}var c=ze.commonjsGlobal.localStorage[S];return c==null?!1:String(c).toLowerCase()==="true"}return yi}var gi,Mf;function Ou(){if(Mf)return gi;Mf=1,gi=J;function g(X){var P=this;this.next=null,this.entry=null,this.finish=function(){Q(P,X)}}var x;J.WritableState=q;var S={deprecate:U0()},c=Nu(),E=ze.requireDist().Buffer,i=(typeof ze.commonjsGlobal<"u"?ze.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _(X){return E.from(X)}function y(X){return E.isBuffer(X)||X instanceof i}var m=Pu(),h=qu(),d=h.getHighWaterMark,p=br().codes,v=p.ERR_INVALID_ARG_TYPE,w=p.ERR_METHOD_NOT_IMPLEMENTED,M=p.ERR_MULTIPLE_CALLBACK,A=p.ERR_STREAM_CANNOT_PIPE,B=p.ERR_STREAM_DESTROYED,F=p.ERR_STREAM_NULL_VALUES,C=p.ERR_STREAM_WRITE_AFTER_END,R=p.ERR_UNKNOWN_ENCODING,D=m.errorOrDestroy;dt()(J,c);function K(){}function q(X,P,H){x=x||ur(),X=X||{},typeof H!="boolean"&&(H=P instanceof x),this.objectMode=!!X.objectMode,H&&(this.objectMode=this.objectMode||!!X.writableObjectMode),this.highWaterMark=d(this,X,"writableHighWaterMark",H),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=X.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=X.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(k){o(P,k)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=X.emitClose!==!1,this.autoDestroy=!!X.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new g(this)}q.prototype.getBuffer=function(){for(var P=this.bufferedRequest,H=[];P;)H.push(P),P=P.next;return H},(function(){try{Object.defineProperty(q.prototype,"buffer",{get:S.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Y;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Y=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(P){return Y.call(this,P)?!0:this!==J?!1:P&&P._writableState instanceof q}})):Y=function(P){return P instanceof this};function J(X){x=x||ur();var P=this instanceof x;if(!P&&!Y.call(J,this))return new J(X);this._writableState=new q(X,this,P),this.writable=!0,X&&(typeof X.write=="function"&&(this._write=X.write),typeof X.writev=="function"&&(this._writev=X.writev),typeof X.destroy=="function"&&(this._destroy=X.destroy),typeof X.final=="function"&&(this._final=X.final)),c.call(this)}J.prototype.pipe=function(){D(this,new A)};function V(X,P){var H=new C;D(X,H),xe.process$1.nextTick(P,H)}function re(X,P,H,Z){var k;return H===null?k=new F:typeof H!="string"&&!P.objectMode&&(k=new v("chunk",["string","Buffer"],H)),k?(D(X,k),xe.process$1.nextTick(Z,k),!1):!0}J.prototype.write=function(X,P,H){var Z=this._writableState,k=!1,N=!Z.objectMode&&y(X);return N&&!E.isBuffer(X)&&(X=_(X)),typeof P=="function"&&(H=P,P=null),N?P="buffer":P||(P=Z.defaultEncoding),typeof H!="function"&&(H=K),Z.ending?V(this,H):(N||re(this,Z,X,H))&&(Z.pendingcb++,k=e(this,Z,N,X,P,H)),k},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var X=this._writableState;X.corked&&(X.corked--,!X.writing&&!X.corked&&!X.bufferProcessing&&X.bufferedRequest&&f(this,X))},J.prototype.setDefaultEncoding=function(P){if(typeof P=="string"&&(P=P.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((P+"").toLowerCase())>-1))throw new R(P);return this._writableState.defaultEncoding=P,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function u(X,P,H){return!X.objectMode&&X.decodeStrings!==!1&&typeof P=="string"&&(P=E.from(P,H)),P}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function e(X,P,H,Z,k,N){if(!H){var T=u(P,Z,k);Z!==T&&(H=!0,k="buffer",Z=T)}var j=P.objectMode?1:Z.length;P.length+=j;var fe=P.length<P.highWaterMark;if(fe||(P.needDrain=!0),P.writing||P.corked){var ee=P.lastBufferedRequest;P.lastBufferedRequest={chunk:Z,encoding:k,isBuf:H,callback:N,next:null},ee?ee.next=P.lastBufferedRequest:P.bufferedRequest=P.lastBufferedRequest,P.bufferedRequestCount+=1}else r(X,P,!1,j,Z,k,N);return fe}function r(X,P,H,Z,k,N,T){P.writelen=Z,P.writecb=T,P.writing=!0,P.sync=!0,P.destroyed?P.onwrite(new B("write")):H?X._writev(k,P.onwrite):X._write(k,N,P.onwrite),P.sync=!1}function n(X,P,H,Z,k){--P.pendingcb,H?(xe.process$1.nextTick(k,Z),xe.process$1.nextTick(W,X,P),X._writableState.errorEmitted=!0,D(X,Z)):(k(Z),X._writableState.errorEmitted=!0,D(X,Z),W(X,P))}function a(X){X.writing=!1,X.writecb=null,X.length-=X.writelen,X.writelen=0}function o(X,P){var H=X._writableState,Z=H.sync,k=H.writecb;if(typeof k!="function")throw new M;if(a(H),P)n(X,H,Z,P,k);else{var N=t(H)||X.destroyed;!N&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&f(X,H),Z?xe.process$1.nextTick(l,X,H,N,k):l(X,H,N,k)}}function l(X,P,H,Z){H||b(X,P),P.pendingcb--,Z(),W(X,P)}function b(X,P){P.length===0&&P.needDrain&&(P.needDrain=!1,X.emit("drain"))}function f(X,P){P.bufferProcessing=!0;var H=P.bufferedRequest;if(X._writev&&H&&H.next){var Z=P.bufferedRequestCount,k=new Array(Z),N=P.corkedRequestsFree;N.entry=H;for(var T=0,j=!0;H;)k[T]=H,H.isBuf||(j=!1),H=H.next,T+=1;k.allBuffers=j,r(X,P,!0,P.length,k,"",N.finish),P.pendingcb++,P.lastBufferedRequest=null,N.next?(P.corkedRequestsFree=N.next,N.next=null):P.corkedRequestsFree=new g(P),P.bufferedRequestCount=0}else{for(;H;){var fe=H.chunk,ee=H.encoding,te=H.callback,he=P.objectMode?1:fe.length;if(r(X,P,!1,he,fe,ee,te),H=H.next,P.bufferedRequestCount--,P.writing)break}H===null&&(P.lastBufferedRequest=null)}P.bufferedRequest=H,P.bufferProcessing=!1}J.prototype._write=function(X,P,H){H(new w("_write()"))},J.prototype._writev=null,J.prototype.end=function(X,P,H){var Z=this._writableState;return typeof X=="function"?(H=X,X=null,P=null):typeof P=="function"&&(H=P,P=null),X!=null&&this.write(X,P),Z.corked&&(Z.corked=1,this.uncork()),Z.ending||U(this,Z,H),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function t(X){return X.ending&&X.length===0&&X.bufferedRequest===null&&!X.finished&&!X.writing}function s(X,P){X._final(function(H){P.pendingcb--,H&&D(X,H),P.prefinished=!0,X.emit("prefinish"),W(X,P)})}function $(X,P){!P.prefinished&&!P.finalCalled&&(typeof X._final=="function"&&!P.destroyed?(P.pendingcb++,P.finalCalled=!0,xe.process$1.nextTick(s,X,P)):(P.prefinished=!0,X.emit("prefinish")))}function W(X,P){var H=t(P);if(H&&($(X,P),P.pendingcb===0&&(P.finished=!0,X.emit("finish"),P.autoDestroy))){var Z=X._readableState;(!Z||Z.autoDestroy&&Z.endEmitted)&&X.destroy()}return H}function U(X,P,H){P.ending=!0,W(X,P),H&&(P.finished?xe.process$1.nextTick(H):X.once("finish",H)),P.ended=!0,X.writable=!1}function Q(X,P,H){var Z=X.entry;for(X.entry=null;Z;){var k=Z.callback;P.pendingcb--,k(H),Z=Z.next}P.corkedRequestsFree.next=X}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(P){this._writableState&&(this._writableState.destroyed=P)}}),J.prototype.destroy=m.destroy,J.prototype._undestroy=m.undestroy,J.prototype._destroy=function(X,P){P(X)},gi}var xi,_f;function ur(){if(_f)return xi;_f=1;var g=Object.keys||function(h){var d=[];for(var p in h)d.push(p);return d};xi=_;var x=Uu(),S=Ou();dt()(_,x);for(var c=g(S.prototype),E=0;E<c.length;E++){var i=c[E];_.prototype[i]||(_.prototype[i]=S.prototype[i])}function _(h){if(!(this instanceof _))return new _(h);x.call(this,h),S.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",y)))}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function y(){this._writableState.ended||xe.process$1.nextTick(m,this)}function m(h){h.end()}return Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(d){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=d,this._writableState.destroyed=d)}}),xi}var wi={},kr={exports:{}},Ef;function i1(){return Ef||(Ef=1,(function(g,x){var S=ze.requireDist(),c=S.Buffer;function E(_,y){for(var m in _)y[m]=_[m]}c.from&&c.alloc&&c.allocUnsafe&&c.allocUnsafeSlow?g.exports=S:(E(S,x),x.Buffer=i);function i(_,y,m){return c(_,y,m)}E(c,i),i.from=function(_,y,m){if(typeof _=="number")throw new TypeError("Argument must not be a number");return c(_,y,m)},i.alloc=function(_,y,m){if(typeof _!="number")throw new TypeError("Argument must be a number");var h=c(_);return y!==void 0?typeof m=="string"?h.fill(y,m):h.fill(y):h.fill(0),h},i.allocUnsafe=function(_){if(typeof _!="number")throw new TypeError("Argument must be a number");return c(_)},i.allocUnsafeSlow=function(_){if(typeof _!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(_)}})(kr,kr.exports)),kr.exports}var Af;function cr(){if(Af)return wi;Af=1;var g=i1().Buffer,x=g.isEncoding||function(F){switch(F=""+F,F&&F.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 S(F){if(!F)return"utf8";for(var C;;)switch(F){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 F;default:if(C)return;F=(""+F).toLowerCase(),C=!0}}function c(F){var C=S(F);if(typeof C!="string"&&(g.isEncoding===x||!x(F)))throw new Error("Unknown encoding: "+F);return C||F}wi.StringDecoder=E;function E(F){this.encoding=c(F);var C;switch(this.encoding){case"utf16le":this.text=p,this.end=v,C=4;break;case"utf8":this.fillLast=m,C=4;break;case"base64":this.text=w,this.end=M,C=3;break;default:this.write=A,this.end=B;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=g.allocUnsafe(C)}E.prototype.write=function(F){if(F.length===0)return"";var C,R;if(this.lastNeed){if(C=this.fillLast(F),C===void 0)return"";R=this.lastNeed,this.lastNeed=0}else R=0;return R<F.length?C?C+this.text(F,R):this.text(F,R):C||""},E.prototype.end=d,E.prototype.text=h,E.prototype.fillLast=function(F){if(this.lastNeed<=F.length)return F.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);F.copy(this.lastChar,this.lastTotal-this.lastNeed,0,F.length),this.lastNeed-=F.length};function i(F){return F<=127?0:F>>5===6?2:F>>4===14?3:F>>3===30?4:F>>6===2?-1:-2}function _(F,C,R){var D=C.length-1;if(D<R)return 0;var K=i(C[D]);return K>=0?(K>0&&(F.lastNeed=K-1),K):--D<R||K===-2?0:(K=i(C[D]),K>=0?(K>0&&(F.lastNeed=K-2),K):--D<R||K===-2?0:(K=i(C[D]),K>=0?(K>0&&(K===2?K=0:F.lastNeed=K-3),K):0))}function y(F,C,R){if((C[0]&192)!==128)return F.lastNeed=0,"�";if(F.lastNeed>1&&C.length>1){if((C[1]&192)!==128)return F.lastNeed=1,"�";if(F.lastNeed>2&&C.length>2&&(C[2]&192)!==128)return F.lastNeed=2,"�"}}function m(F){var C=this.lastTotal-this.lastNeed,R=y(this,F);if(R!==void 0)return R;if(this.lastNeed<=F.length)return F.copy(this.lastChar,C,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);F.copy(this.lastChar,C,0,F.length),this.lastNeed-=F.length}function h(F,C){var R=_(this,F,C);if(!this.lastNeed)return F.toString("utf8",C);this.lastTotal=R;var D=F.length-(R-this.lastNeed);return F.copy(this.lastChar,0,D),F.toString("utf8",C,D)}function d(F){var C=F&&F.length?this.write(F):"";return this.lastNeed?C+"�":C}function p(F,C){if((F.length-C)%2===0){var R=F.toString("utf16le",C);if(R){var D=R.charCodeAt(R.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=F[F.length-2],this.lastChar[1]=F[F.length-1],R.slice(0,-1)}return R}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=F[F.length-1],F.toString("utf16le",C,F.length-1)}function v(F){var C=F&&F.length?this.write(F):"";if(this.lastNeed){var R=this.lastTotal-this.lastNeed;return C+this.lastChar.toString("utf16le",0,R)}return C}function w(F,C){var R=(F.length-C)%3;return R===0?F.toString("base64",C):(this.lastNeed=3-R,this.lastTotal=3,R===1?this.lastChar[0]=F[F.length-1]:(this.lastChar[0]=F[F.length-2],this.lastChar[1]=F[F.length-1]),F.toString("base64",C,F.length-R))}function M(F){var C=F&&F.length?this.write(F):"";return this.lastNeed?C+this.lastChar.toString("base64",0,3-this.lastNeed):C}function A(F){return F.toString(this.encoding)}function B(F){return F&&F.length?this.write(F):""}return wi}var Mi,Sf;function L0(){if(Sf)return Mi;Sf=1;var g=br().codes.ERR_STREAM_PREMATURE_CLOSE;function x(i){var _=!1;return function(){if(!_){_=!0;for(var y=arguments.length,m=new Array(y),h=0;h<y;h++)m[h]=arguments[h];i.apply(this,m)}}}function S(){}function c(i){return i.setHeader&&typeof i.abort=="function"}function E(i,_,y){if(typeof _=="function")return E(i,null,_);_||(_={}),y=x(y||S);var m=_.readable||_.readable!==!1&&i.readable,h=_.writable||_.writable!==!1&&i.writable,d=function(){i.writable||v()},p=i._writableState&&i._writableState.finished,v=function(){h=!1,p=!0,m||y.call(i)},w=i._readableState&&i._readableState.endEmitted,M=function(){m=!1,w=!0,h||y.call(i)},A=function(R){y.call(i,R)},B=function(){var R;if(m&&!w)return(!i._readableState||!i._readableState.ended)&&(R=new g),y.call(i,R);if(h&&!p)return(!i._writableState||!i._writableState.ended)&&(R=new g),y.call(i,R)},F=function(){i.req.on("finish",v)};return c(i)?(i.on("complete",v),i.on("abort",B),i.req?F():i.on("request",F)):h&&!i._writableState&&(i.on("end",d),i.on("close",d)),i.on("end",M),i.on("finish",v),_.error!==!1&&i.on("error",A),i.on("close",B),function(){i.removeListener("complete",v),i.removeListener("abort",B),i.removeListener("request",F),i.req&&i.req.removeListener("finish",v),i.removeListener("end",d),i.removeListener("close",d),i.removeListener("finish",v),i.removeListener("end",M),i.removeListener("error",A),i.removeListener("close",B)}}return Mi=E,Mi}var _i,Bf;function n1(){if(Bf)return _i;Bf=1;var g;function x(R,D,K){return D=S(D),D in R?Object.defineProperty(R,D,{value:K,enumerable:!0,configurable:!0,writable:!0}):R[D]=K,R}function S(R){var D=c(R,"string");return typeof D=="symbol"?D:String(D)}function c(R,D){if(typeof R!="object"||R===null)return R;var K=R[Symbol.toPrimitive];if(K!==void 0){var q=K.call(R,D);if(typeof q!="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(R)}var E=L0(),i=Symbol("lastResolve"),_=Symbol("lastReject"),y=Symbol("error"),m=Symbol("ended"),h=Symbol("lastPromise"),d=Symbol("handlePromise"),p=Symbol("stream");function v(R,D){return{value:R,done:D}}function w(R){var D=R[i];if(D!==null){var K=R[p].read();K!==null&&(R[h]=null,R[i]=null,R[_]=null,D(v(K,!1)))}}function M(R){xe.process$1.nextTick(w,R)}function A(R,D){return function(K,q){R.then(function(){if(D[m]){K(v(void 0,!0));return}D[d](K,q)},q)}}var B=Object.getPrototypeOf(function(){}),F=Object.setPrototypeOf((g={get stream(){return this[p]},next:function(){var D=this,K=this[y];if(K!==null)return Promise.reject(K);if(this[m])return Promise.resolve(v(void 0,!0));if(this[p].destroyed)return new Promise(function(V,re){xe.process$1.nextTick(function(){D[y]?re(D[y]):V(v(void 0,!0))})});var q=this[h],Y;if(q)Y=new Promise(A(q,this));else{var J=this[p].read();if(J!==null)return Promise.resolve(v(J,!1));Y=new Promise(this[d])}return this[h]=Y,Y}},x(g,Symbol.asyncIterator,function(){return this}),x(g,"return",function(){var D=this;return new Promise(function(K,q){D[p].destroy(null,function(Y){if(Y){q(Y);return}K(v(void 0,!0))})})}),g),B),C=function(D){var K,q=Object.create(F,(K={},x(K,p,{value:D,writable:!0}),x(K,i,{value:null,writable:!0}),x(K,_,{value:null,writable:!0}),x(K,y,{value:null,writable:!0}),x(K,m,{value:D._readableState.endEmitted,writable:!0}),x(K,d,{value:function(J,V){var re=q[p].read();re?(q[h]=null,q[i]=null,q[_]=null,J(v(re,!1))):(q[i]=J,q[_]=V)},writable:!0}),K));return q[h]=null,E(D,function(Y){if(Y&&Y.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=q[_];J!==null&&(q[h]=null,q[i]=null,q[_]=null,J(Y)),q[y]=Y;return}var V=q[i];V!==null&&(q[h]=null,q[i]=null,q[_]=null,V(v(void 0,!0))),q[m]=!0}),D.on("readable",M.bind(null,q)),q};return _i=C,_i}var Ei,Ff;function a1(){return Ff||(Ff=1,Ei=function(){throw new Error("Readable.from is not available in the browser")}),Ei}var Ai,Cf;function Uu(){if(Cf)return Ai;Cf=1,Ai=V;var g;V.ReadableState=J,pr().EventEmitter;var x=function(T,j){return T.listeners(j).length},S=Nu(),c=ze.requireDist().Buffer,E=(typeof ze.commonjsGlobal<"u"?ze.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(N){return c.from(N)}function _(N){return c.isBuffer(N)||N instanceof E}var y=vr,m;y&&y.debuglog?m=y.debuglog("stream"):m=function(){};var h=r1(),d=Pu(),p=qu(),v=p.getHighWaterMark,w=br().codes,M=w.ERR_INVALID_ARG_TYPE,A=w.ERR_STREAM_PUSH_AFTER_EOF,B=w.ERR_METHOD_NOT_IMPLEMENTED,F=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,C,R,D;dt()(V,S);var K=d.errorOrDestroy,q=["error","close","destroy","pause","resume"];function Y(N,T,j){if(typeof N.prependListener=="function")return N.prependListener(T,j);!N._events||!N._events[T]?N.on(T,j):Array.isArray(N._events[T])?N._events[T].unshift(j):N._events[T]=[j,N._events[T]]}function J(N,T,j){g=g||ur(),N=N||{},typeof j!="boolean"&&(j=T instanceof g),this.objectMode=!!N.objectMode,j&&(this.objectMode=this.objectMode||!!N.readableObjectMode),this.highWaterMark=v(this,N,"readableHighWaterMark",j),this.buffer=new h,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=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.destroyed=!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(C||(C=cr().StringDecoder),this.decoder=new C(N.encoding),this.encoding=N.encoding)}function V(N){if(g=g||ur(),!(this instanceof V))return new V(N);var T=this instanceof g;this._readableState=new J(N,this,T),this.readable=!0,N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy)),S.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(T){this._readableState&&(this._readableState.destroyed=T)}}),V.prototype.destroy=d.destroy,V.prototype._undestroy=d.undestroy,V.prototype._destroy=function(N,T){T(N)},V.prototype.push=function(N,T){var j=this._readableState,fe;return j.objectMode?fe=!0:typeof N=="string"&&(T=T||j.defaultEncoding,T!==j.encoding&&(N=c.from(N,T),T=""),fe=!0),re(this,N,T,!1,fe)},V.prototype.unshift=function(N){return re(this,N,null,!0,!1)};function re(N,T,j,fe,ee){m("readableAddChunk",T);var te=N._readableState;if(T===null)te.reading=!1,o(N,te);else{var he;if(ee||(he=e(te,T)),he)K(N,he);else if(te.objectMode||T&&T.length>0)if(typeof T!="string"&&!te.objectMode&&Object.getPrototypeOf(T)!==c.prototype&&(T=i(T)),fe)te.endEmitted?K(N,new F):u(N,te,T,!0);else if(te.ended)K(N,new A);else{if(te.destroyed)return!1;te.reading=!1,te.decoder&&!j?(T=te.decoder.write(T),te.objectMode||T.length!==0?u(N,te,T,!1):f(N,te)):u(N,te,T,!1)}else fe||(te.reading=!1,f(N,te))}return!te.ended&&(te.length<te.highWaterMark||te.length===0)}function u(N,T,j,fe){T.flowing&&T.length===0&&!T.sync?(T.awaitDrain=0,N.emit("data",j)):(T.length+=T.objectMode?1:j.length,fe?T.buffer.unshift(j):T.buffer.push(j),T.needReadable&&l(N)),f(N,T)}function e(N,T){var j;return!_(T)&&typeof T!="string"&&T!==void 0&&!N.objectMode&&(j=new M("chunk",["string","Buffer","Uint8Array"],T)),j}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(N){C||(C=cr().StringDecoder);var T=new C(N);this._readableState.decoder=T,this._readableState.encoding=this._readableState.decoder.encoding;for(var j=this._readableState.buffer.head,fe="";j!==null;)fe+=T.write(j.data),j=j.next;return this._readableState.buffer.clear(),fe!==""&&this._readableState.buffer.push(fe),this._readableState.length=fe.length,this};var r=1073741824;function n(N){return N>=r?N=r:(N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++),N}function a(N,T){return N<=0||T.length===0&&T.ended?0:T.objectMode?1:N!==N?T.flowing&&T.length?T.buffer.head.data.length:T.length:(N>T.highWaterMark&&(T.highWaterMark=n(N)),N<=T.length?N:T.ended?T.length:(T.needReadable=!0,0))}V.prototype.read=function(N){m("read",N),N=parseInt(N,10);var T=this._readableState,j=N;if(N!==0&&(T.emittedReadable=!1),N===0&&T.needReadable&&((T.highWaterMark!==0?T.length>=T.highWaterMark:T.length>0)||T.ended))return m("read: emitReadable",T.length,T.ended),T.length===0&&T.ended?H(this):l(this),null;if(N=a(N,T),N===0&&T.ended)return T.length===0&&H(this),null;var fe=T.needReadable;m("need readable",fe),(T.length===0||T.length-N<T.highWaterMark)&&(fe=!0,m("length less than watermark",fe)),T.ended||T.reading?(fe=!1,m("reading or ended",fe)):fe&&(m("do read"),T.reading=!0,T.sync=!0,T.length===0&&(T.needReadable=!0),this._read(T.highWaterMark),T.sync=!1,T.reading||(N=a(j,T)));var ee;return N>0?ee=P(N,T):ee=null,ee===null?(T.needReadable=T.length<=T.highWaterMark,N=0):(T.length-=N,T.awaitDrain=0),T.length===0&&(T.ended||(T.needReadable=!0),j!==N&&T.ended&&H(this)),ee!==null&&this.emit("data",ee),ee};function o(N,T){if(m("onEofChunk"),!T.ended){if(T.decoder){var j=T.decoder.end();j&&j.length&&(T.buffer.push(j),T.length+=T.objectMode?1:j.length)}T.ended=!0,T.sync?l(N):(T.needReadable=!1,T.emittedReadable||(T.emittedReadable=!0,b(N)))}}function l(N){var T=N._readableState;m("emitReadable",T.needReadable,T.emittedReadable),T.needReadable=!1,T.emittedReadable||(m("emitReadable",T.flowing),T.emittedReadable=!0,xe.process$1.nextTick(b,N))}function b(N){var T=N._readableState;m("emitReadable_",T.destroyed,T.length,T.ended),!T.destroyed&&(T.length||T.ended)&&(N.emit("readable"),T.emittedReadable=!1),T.needReadable=!T.flowing&&!T.ended&&T.length<=T.highWaterMark,X(N)}function f(N,T){T.readingMore||(T.readingMore=!0,xe.process$1.nextTick(t,N,T))}function t(N,T){for(;!T.reading&&!T.ended&&(T.length<T.highWaterMark||T.flowing&&T.length===0);){var j=T.length;if(m("maybeReadMore read 0"),N.read(0),j===T.length)break}T.readingMore=!1}V.prototype._read=function(N){K(this,new B("_read()"))},V.prototype.pipe=function(N,T){var j=this,fe=this._readableState;switch(fe.pipesCount){case 0:fe.pipes=N;break;case 1:fe.pipes=[fe.pipes,N];break;default:fe.pipes.push(N);break}fe.pipesCount+=1,m("pipe count=%d opts=%j",fe.pipesCount,T);var ee=(!T||T.end!==!1)&&N!==xe.process$1.stdout&&N!==xe.process$1.stderr,te=ee?ie:ot;fe.endEmitted?xe.process$1.nextTick(te):j.once("end",te),N.on("unpipe",he);function he(be,me){m("onunpipe"),be===j&&me&&me.hasUnpiped===!1&&(me.hasUnpiped=!0,oe())}function ie(){m("onend"),N.end()}var ne=s(j);N.on("drain",ne);var pe=!1;function oe(){m("cleanup"),N.removeListener("close",de),N.removeListener("finish",ve),N.removeListener("drain",ne),N.removeListener("error",Re),N.removeListener("unpipe",he),j.removeListener("end",ie),j.removeListener("end",ot),j.removeListener("data",se),pe=!0,fe.awaitDrain&&(!N._writableState||N._writableState.needDrain)&&ne()}j.on("data",se);function se(be){m("ondata");var me=N.write(be);m("dest.write",me),me===!1&&((fe.pipesCount===1&&fe.pipes===N||fe.pipesCount>1&&k(fe.pipes,N)!==-1)&&!pe&&(m("false write response, pause",fe.awaitDrain),fe.awaitDrain++),j.pause())}function Re(be){m("onerror",be),ot(),N.removeListener("error",Re),x(N,"error")===0&&K(N,be)}Y(N,"error",Re);function de(){N.removeListener("finish",ve),ot()}N.once("close",de);function ve(){m("onfinish"),N.removeListener("close",de),ot()}N.once("finish",ve);function ot(){m("unpipe"),j.unpipe(N)}return N.emit("pipe",j),fe.flowing||(m("pipe resume"),j.resume()),N};function s(N){return function(){var j=N._readableState;m("pipeOnDrain",j.awaitDrain),j.awaitDrain&&j.awaitDrain--,j.awaitDrain===0&&x(N,"data")&&(j.flowing=!0,X(N))}}V.prototype.unpipe=function(N){var T=this._readableState,j={hasUnpiped:!1};if(T.pipesCount===0)return this;if(T.pipesCount===1)return N&&N!==T.pipes?this:(N||(N=T.pipes),T.pipes=null,T.pipesCount=0,T.flowing=!1,N&&N.emit("unpipe",this,j),this);if(!N){var fe=T.pipes,ee=T.pipesCount;T.pipes=null,T.pipesCount=0,T.flowing=!1;for(var te=0;te<ee;te++)fe[te].emit("unpipe",this,{hasUnpiped:!1});return this}var he=k(T.pipes,N);return he===-1?this:(T.pipes.splice(he,1),T.pipesCount-=1,T.pipesCount===1&&(T.pipes=T.pipes[0]),N.emit("unpipe",this,j),this)},V.prototype.on=function(N,T){var j=S.prototype.on.call(this,N,T),fe=this._readableState;return N==="data"?(fe.readableListening=this.listenerCount("readable")>0,fe.flowing!==!1&&this.resume()):N==="readable"&&!fe.endEmitted&&!fe.readableListening&&(fe.readableListening=fe.needReadable=!0,fe.flowing=!1,fe.emittedReadable=!1,m("on readable",fe.length,fe.reading),fe.length?l(this):fe.reading||xe.process$1.nextTick(W,this)),j},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(N,T){var j=S.prototype.removeListener.call(this,N,T);return N==="readable"&&xe.process$1.nextTick($,this),j},V.prototype.removeAllListeners=function(N){var T=S.prototype.removeAllListeners.apply(this,arguments);return(N==="readable"||N===void 0)&&xe.process$1.nextTick($,this),T};function $(N){var T=N._readableState;T.readableListening=N.listenerCount("readable")>0,T.resumeScheduled&&!T.paused?T.flowing=!0:N.listenerCount("data")>0&&N.resume()}function W(N){m("readable nexttick read 0"),N.read(0)}V.prototype.resume=function(){var N=this._readableState;return N.flowing||(m("resume"),N.flowing=!N.readableListening,U(this,N)),N.paused=!1,this};function U(N,T){T.resumeScheduled||(T.resumeScheduled=!0,xe.process$1.nextTick(Q,N,T))}function Q(N,T){m("resume",T.reading),T.reading||N.read(0),T.resumeScheduled=!1,N.emit("resume"),X(N),T.flowing&&!T.reading&&N.read(0)}V.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function X(N){var T=N._readableState;for(m("flow",T.flowing);T.flowing&&N.read()!==null;);}V.prototype.wrap=function(N){var T=this,j=this._readableState,fe=!1;N.on("end",function(){if(m("wrapped end"),j.decoder&&!j.ended){var he=j.decoder.end();he&&he.length&&T.push(he)}T.push(null)}),N.on("data",function(he){if(m("wrapped data"),j.decoder&&(he=j.decoder.write(he)),!(j.objectMode&&he==null)&&!(!j.objectMode&&(!he||!he.length))){var ie=T.push(he);ie||(fe=!0,N.pause())}});for(var ee in N)this[ee]===void 0&&typeof N[ee]=="function"&&(this[ee]=(function(ie){return function(){return N[ie].apply(N,arguments)}})(ee));for(var te=0;te<q.length;te++)N.on(q[te],this.emit.bind(this,q[te]));return this._read=function(he){m("wrapped _read",he),fe&&(fe=!1,N.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return R===void 0&&(R=n1()),R(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(T){this._readableState&&(this._readableState.flowing=T)}}),V._fromList=P,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function P(N,T){if(T.length===0)return null;var j;return T.objectMode?j=T.buffer.shift():!N||N>=T.length?(T.decoder?j=T.buffer.join(""):T.buffer.length===1?j=T.buffer.first():j=T.buffer.concat(T.length),T.buffer.clear()):j=T.buffer.consume(N,T.decoder),j}function H(N){var T=N._readableState;m("endReadable",T.endEmitted),T.endEmitted||(T.ended=!0,xe.process$1.nextTick(Z,T,N))}function Z(N,T){if(m("endReadableNT",N.endEmitted,N.length),!N.endEmitted&&N.length===0&&(N.endEmitted=!0,T.readable=!1,T.emit("end"),N.autoDestroy)){var j=T._writableState;(!j||j.autoDestroy&&j.finished)&&T.destroy()}}typeof Symbol=="function"&&(V.from=function(N,T){return D===void 0&&(D=a1()),D(V,N,T)});function k(N,T){for(var j=0,fe=N.length;j<fe;j++)if(N[j]===T)return j;return-1}return Ai}var Si,Df;function Lu(){if(Df)return Si;Df=1,Si=y;var g=br().codes,x=g.ERR_METHOD_NOT_IMPLEMENTED,S=g.ERR_MULTIPLE_CALLBACK,c=g.ERR_TRANSFORM_ALREADY_TRANSFORMING,E=g.ERR_TRANSFORM_WITH_LENGTH_0,i=ur();dt()(y,i);function _(d,p){var v=this._transformState;v.transforming=!1;var w=v.writecb;if(w===null)return this.emit("error",new S);v.writechunk=null,v.writecb=null,p!=null&&this.push(p),w(d);var M=this._readableState;M.reading=!1,(M.needReadable||M.length<M.highWaterMark)&&this._read(M.highWaterMark)}function y(d){if(!(this instanceof y))return new y(d);i.call(this,d),this._transformState={afterTransform:_.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",m)}function m(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(p,v){h(d,p,v)}):h(this,null,null)}y.prototype.push=function(d,p){return this._transformState.needTransform=!1,i.prototype.push.call(this,d,p)},y.prototype._transform=function(d,p,v){v(new x("_transform()"))},y.prototype._write=function(d,p,v){var w=this._transformState;if(w.writecb=v,w.writechunk=d,w.writeencoding=p,!w.transforming){var M=this._readableState;(w.needTransform||M.needReadable||M.length<M.highWaterMark)&&this._read(M.highWaterMark)}},y.prototype._read=function(d){var p=this._transformState;p.writechunk!==null&&!p.transforming?(p.transforming=!0,this._transform(p.writechunk,p.writeencoding,p.afterTransform)):p.needTransform=!0},y.prototype._destroy=function(d,p){i.prototype._destroy.call(this,d,function(v){p(v)})};function h(d,p,v){if(p)return d.emit("error",p);if(v!=null&&d.push(v),d._writableState.length)throw new E;if(d._transformState.transforming)throw new c;return d.push(null)}return Si}var Bi,Rf;function f1(){if(Rf)return Bi;Rf=1,Bi=x;var g=Lu();dt()(x,g);function x(S){if(!(this instanceof x))return new x(S);g.call(this,S)}return x.prototype._transform=function(S,c,E){E(null,S)},Bi}var Fi,Tf;function o1(){if(Tf)return Fi;Tf=1;var g;function x(v){var w=!1;return function(){w||(w=!0,v.apply(void 0,arguments))}}var S=br().codes,c=S.ERR_MISSING_ARGS,E=S.ERR_STREAM_DESTROYED;function i(v){if(v)throw v}function _(v){return v.setHeader&&typeof v.abort=="function"}function y(v,w,M,A){A=x(A);var B=!1;v.on("close",function(){B=!0}),g===void 0&&(g=L0()),g(v,{readable:w,writable:M},function(C){if(C)return A(C);B=!0,A()});var F=!1;return function(C){if(!B&&!F){if(F=!0,_(v))return v.abort();if(typeof v.destroy=="function")return v.destroy();A(C||new E("pipe"))}}}function m(v){v()}function h(v,w){return v.pipe(w)}function d(v){return!v.length||typeof v[v.length-1]!="function"?i:v.pop()}function p(){for(var v=arguments.length,w=new Array(v),M=0;M<v;M++)w[M]=arguments[M];var A=d(w);if(Array.isArray(w[0])&&(w=w[0]),w.length<2)throw new c("streams");var B,F=w.map(function(C,R){var D=R<w.length-1,K=R>0;return y(C,D,K,function(q){B||(B=q),q&&F.forEach(m),!D&&(F.forEach(m),A(B))})});return w.reduce(h)}return Fi=p,Fi}var Ci,If;function ii(){if(If)return Ci;If=1,Ci=S;var g=pr().EventEmitter,x=dt();x(S,g),S.Readable=Uu(),S.Writable=Ou(),S.Duplex=ur(),S.Transform=Lu(),S.PassThrough=f1(),S.finished=L0(),S.pipeline=o1(),S.Stream=S;function S(){g.call(this)}return S.prototype.pipe=function(c,E){var i=this;function _(w){c.writable&&c.write(w)===!1&&i.pause&&i.pause()}i.on("data",_);function y(){i.readable&&i.resume&&i.resume()}c.on("drain",y),!c._isStdio&&(!E||E.end!==!1)&&(i.on("end",h),i.on("close",d));var m=!1;function h(){m||(m=!0,c.end())}function d(){m||(m=!0,typeof c.destroy=="function"&&c.destroy())}function p(w){if(v(),g.listenerCount(this,"error")===0)throw w}i.on("error",p),c.on("error",p);function v(){i.removeListener("data",_),c.removeListener("drain",y),i.removeListener("end",h),i.removeListener("close",d),i.removeListener("error",p),c.removeListener("error",p),i.removeListener("end",v),i.removeListener("close",v),c.removeListener("close",v)}return i.on("end",v),i.on("close",v),c.on("close",v),c.emit("pipe",i),c},Ci}var Di,kf;function Hu(){if(kf)return Di;kf=1;var g=ze.requireSafeBuffer().Buffer,x=ii().Transform,S=dt();function c(y){x.call(this),this._block=g.allocUnsafe(y),this._blockSize=y,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}S(c,x),c.prototype._transform=function(y,m,h){var d=null;try{this.update(y,m)}catch(p){d=p}h(d)},c.prototype._flush=function(y){var m=null;try{this.push(this.digest())}catch(h){m=h}y(m)};var E=typeof Uint8Array<"u",i=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(g.prototype instanceof Uint8Array||g.TYPED_ARRAY_SUPPORT);function _(y,m){if(y instanceof g)return y;if(typeof y=="string")return g.from(y,m);if(i&&ArrayBuffer.isView(y)){if(y.byteLength===0)return g.alloc(0);var h=g.from(y.buffer,y.byteOffset,y.byteLength);if(h.byteLength===y.byteLength)return h}if(E&&y instanceof Uint8Array||g.isBuffer(y)&&y.constructor&&typeof y.constructor.isBuffer=="function"&&y.constructor.isBuffer(y))return g.from(y);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return c.prototype.update=function(y,m){if(this._finalized)throw new Error("Digest already called");y=_(y,m);for(var h=this._block,d=0;this._blockOffset+y.length-d>=this._blockSize;){for(var p=this._blockOffset;p<this._blockSize;)h[p++]=y[d++];this._update(),this._blockOffset=0}for(;d<y.length;)h[this._blockOffset++]=y[d++];for(var v=0,w=y.length*8;w>0;++v)this._length[v]+=w,w=this._length[v]/4294967296|0,w>0&&(this._length[v]-=4294967296*w);return this},c.prototype._update=function(){throw new Error("_update is not implemented")},c.prototype.digest=function(y){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var m=this._digest();y!==void 0&&(m=m.toString(y)),this._block.fill(0),this._blockOffset=0;for(var h=0;h<4;++h)this._length[h]=0;return m},c.prototype._digest=function(){throw new Error("_digest is not implemented")},Di=c,Di}var Ri,Nf;function H0(){if(Nf)return Ri;Nf=1;var g=dt(),x=Hu(),S=ze.requireSafeBuffer().Buffer,c=new Array(16);function E(){x.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}g(E,x),E.prototype._update=function(){for(var d=c,p=0;p<16;++p)d[p]=this._block.readInt32LE(p*4);var v=this._a,w=this._b,M=this._c,A=this._d;v=_(v,w,M,A,d[0],3614090360,7),A=_(A,v,w,M,d[1],3905402710,12),M=_(M,A,v,w,d[2],606105819,17),w=_(w,M,A,v,d[3],3250441966,22),v=_(v,w,M,A,d[4],4118548399,7),A=_(A,v,w,M,d[5],1200080426,12),M=_(M,A,v,w,d[6],2821735955,17),w=_(w,M,A,v,d[7],4249261313,22),v=_(v,w,M,A,d[8],1770035416,7),A=_(A,v,w,M,d[9],2336552879,12),M=_(M,A,v,w,d[10],4294925233,17),w=_(w,M,A,v,d[11],2304563134,22),v=_(v,w,M,A,d[12],1804603682,7),A=_(A,v,w,M,d[13],4254626195,12),M=_(M,A,v,w,d[14],2792965006,17),w=_(w,M,A,v,d[15],1236535329,22),v=y(v,w,M,A,d[1],4129170786,5),A=y(A,v,w,M,d[6],3225465664,9),M=y(M,A,v,w,d[11],643717713,14),w=y(w,M,A,v,d[0],3921069994,20),v=y(v,w,M,A,d[5],3593408605,5),A=y(A,v,w,M,d[10],38016083,9),M=y(M,A,v,w,d[15],3634488961,14),w=y(w,M,A,v,d[4],3889429448,20),v=y(v,w,M,A,d[9],568446438,5),A=y(A,v,w,M,d[14],3275163606,9),M=y(M,A,v,w,d[3],4107603335,14),w=y(w,M,A,v,d[8],1163531501,20),v=y(v,w,M,A,d[13],2850285829,5),A=y(A,v,w,M,d[2],4243563512,9),M=y(M,A,v,w,d[7],1735328473,14),w=y(w,M,A,v,d[12],2368359562,20),v=m(v,w,M,A,d[5],4294588738,4),A=m(A,v,w,M,d[8],2272392833,11),M=m(M,A,v,w,d[11],1839030562,16),w=m(w,M,A,v,d[14],4259657740,23),v=m(v,w,M,A,d[1],2763975236,4),A=m(A,v,w,M,d[4],1272893353,11),M=m(M,A,v,w,d[7],4139469664,16),w=m(w,M,A,v,d[10],3200236656,23),v=m(v,w,M,A,d[13],681279174,4),A=m(A,v,w,M,d[0],3936430074,11),M=m(M,A,v,w,d[3],3572445317,16),w=m(w,M,A,v,d[6],76029189,23),v=m(v,w,M,A,d[9],3654602809,4),A=m(A,v,w,M,d[12],3873151461,11),M=m(M,A,v,w,d[15],530742520,16),w=m(w,M,A,v,d[2],3299628645,23),v=h(v,w,M,A,d[0],4096336452,6),A=h(A,v,w,M,d[7],1126891415,10),M=h(M,A,v,w,d[14],2878612391,15),w=h(w,M,A,v,d[5],4237533241,21),v=h(v,w,M,A,d[12],1700485571,6),A=h(A,v,w,M,d[3],2399980690,10),M=h(M,A,v,w,d[10],4293915773,15),w=h(w,M,A,v,d[1],2240044497,21),v=h(v,w,M,A,d[8],1873313359,6),A=h(A,v,w,M,d[15],4264355552,10),M=h(M,A,v,w,d[6],2734768916,15),w=h(w,M,A,v,d[13],1309151649,21),v=h(v,w,M,A,d[4],4149444226,6),A=h(A,v,w,M,d[11],3174756917,10),M=h(M,A,v,w,d[2],718787259,15),w=h(w,M,A,v,d[9],3951481745,21),this._a=this._a+v|0,this._b=this._b+w|0,this._c=this._c+M|0,this._d=this._d+A|0},E.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 d=S.allocUnsafe(16);return d.writeInt32LE(this._a,0),d.writeInt32LE(this._b,4),d.writeInt32LE(this._c,8),d.writeInt32LE(this._d,12),d};function i(d,p){return d<<p|d>>>32-p}function _(d,p,v,w,M,A,B){return i(d+(p&v|~p&w)+M+A|0,B)+p|0}function y(d,p,v,w,M,A,B){return i(d+(p&w|v&~w)+M+A|0,B)+p|0}function m(d,p,v,w,M,A,B){return i(d+(p^v^w)+M+A|0,B)+p|0}function h(d,p,v,w,M,A,B){return i(d+(v^(p|~w))+M+A|0,B)+p|0}return Ri=E,Ri}var Ti,Pf;function zu(){if(Pf)return Ti;Pf=1;var g=ze.requireDist().Buffer,x=dt(),S=Hu(),c=new Array(16),E=[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],i=[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],_=[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],y=[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],m=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function d(){S.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}x(d,S),d.prototype._update=function(){for(var F=c,C=0;C<16;++C)F[C]=this._block.readInt32LE(C*4);for(var R=this._a|0,D=this._b|0,K=this._c|0,q=this._d|0,Y=this._e|0,J=this._a|0,V=this._b|0,re=this._c|0,u=this._d|0,e=this._e|0,r=0;r<80;r+=1){var n,a;r<16?(n=v(R,D,K,q,Y,F[E[r]],m[0],_[r]),a=B(J,V,re,u,e,F[i[r]],h[0],y[r])):r<32?(n=w(R,D,K,q,Y,F[E[r]],m[1],_[r]),a=A(J,V,re,u,e,F[i[r]],h[1],y[r])):r<48?(n=M(R,D,K,q,Y,F[E[r]],m[2],_[r]),a=M(J,V,re,u,e,F[i[r]],h[2],y[r])):r<64?(n=A(R,D,K,q,Y,F[E[r]],m[3],_[r]),a=w(J,V,re,u,e,F[i[r]],h[3],y[r])):(n=B(R,D,K,q,Y,F[E[r]],m[4],_[r]),a=v(J,V,re,u,e,F[i[r]],h[4],y[r])),R=Y,Y=q,q=p(K,10),K=D,D=n,J=e,e=u,u=p(re,10),re=V,V=a}var o=this._b+K+u|0;this._b=this._c+q+e|0,this._c=this._d+Y+J|0,this._d=this._e+R+V|0,this._e=this._a+D+re|0,this._a=o},d.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 F=g.alloc?g.alloc(20):new g(20);return F.writeInt32LE(this._a,0),F.writeInt32LE(this._b,4),F.writeInt32LE(this._c,8),F.writeInt32LE(this._d,12),F.writeInt32LE(this._e,16),F};function p(F,C){return F<<C|F>>>32-C}function v(F,C,R,D,K,q,Y,J){return p(F+(C^R^D)+q+Y|0,J)+K|0}function w(F,C,R,D,K,q,Y,J){return p(F+(C&R|~C&D)+q+Y|0,J)+K|0}function M(F,C,R,D,K,q,Y,J){return p(F+((C|~R)^D)+q+Y|0,J)+K|0}function A(F,C,R,D,K,q,Y,J){return p(F+(C&D|R&~D)+q+Y|0,J)+K|0}function B(F,C,R,D,K,q,Y,J){return p(F+(C^(R|~D))+q+Y|0,J)+K|0}return Ti=d,Ti}var Ii={exports:{}},ki,qf;function s1(){if(qf)return ki;qf=1;var g={}.toString;return ki=Array.isArray||function(x){return g.call(x)=="[object Array]"},ki}var Ni,Of;function mr(){return Of||(Of=1,Ni=TypeError),Ni}var Pi,Uf;function z0(){return Uf||(Uf=1,Pi=Object),Pi}var qi,Lf;function h1(){return Lf||(Lf=1,qi=Error),qi}var Oi,Hf;function u1(){return Hf||(Hf=1,Oi=EvalError),Oi}var Ui,zf;function c1(){return zf||(zf=1,Ui=RangeError),Ui}var Li,$f;function l1(){return $f||($f=1,Li=ReferenceError),Li}var Hi,Kf;function $u(){return Kf||(Kf=1,Hi=SyntaxError),Hi}var zi,Wf;function d1(){return Wf||(Wf=1,zi=URIError),zi}var $i,jf;function p1(){return jf||(jf=1,$i=Math.abs),$i}var Ki,Gf;function v1(){return Gf||(Gf=1,Ki=Math.floor),Ki}var Wi,Vf;function b1(){return Vf||(Vf=1,Wi=Math.max),Wi}var ji,Zf;function m1(){return Zf||(Zf=1,ji=Math.min),ji}var Gi,Xf;function y1(){return Xf||(Xf=1,Gi=Math.pow),Gi}var Vi,Yf;function g1(){return Yf||(Yf=1,Vi=Math.round),Vi}var Zi,Jf;function x1(){return Jf||(Jf=1,Zi=Number.isNaN||function(x){return x!==x}),Zi}var Xi,Qf;function w1(){if(Qf)return Xi;Qf=1;var g=x1();return Xi=function(S){return g(S)||S===0?S:S<0?-1:1},Xi}var Yi,eo;function M1(){return eo||(eo=1,Yi=Object.getOwnPropertyDescriptor),Yi}var Ji,to;function yr(){if(to)return Ji;to=1;var g=M1();if(g)try{g([],"length")}catch{g=null}return Ji=g,Ji}var Qi,ro;function ni(){if(ro)return Qi;ro=1;var g=Object.defineProperty||!1;if(g)try{g({},"a",{value:1})}catch{g=!1}return Qi=g,Qi}var en,io;function $0(){return io||(io=1,en=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var x={},S=Symbol("test"),c=Object(S);if(typeof S=="string"||Object.prototype.toString.call(S)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var E=42;x[S]=E;for(var i in x)return!1;if(typeof Object.keys=="function"&&Object.keys(x).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(x).length!==0)return!1;var _=Object.getOwnPropertySymbols(x);if(_.length!==1||_[0]!==S||!Object.prototype.propertyIsEnumerable.call(x,S))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var y=Object.getOwnPropertyDescriptor(x,S);if(y.value!==E||y.enumerable!==!0)return!1}return!0}),en}var tn,no;function _1(){if(no)return tn;no=1;var g=typeof Symbol<"u"&&Symbol,x=$0();return tn=function(){return typeof g!="function"||typeof Symbol!="function"||typeof g("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:x()},tn}var rn,ao;function Ku(){return ao||(ao=1,rn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),rn}var nn,fo;function Wu(){if(fo)return nn;fo=1;var g=z0();return nn=g.getPrototypeOf||null,nn}var an,oo;function E1(){if(oo)return an;oo=1;var g="Function.prototype.bind called on incompatible ",x=Object.prototype.toString,S=Math.max,c="[object Function]",E=function(m,h){for(var d=[],p=0;p<m.length;p+=1)d[p]=m[p];for(var v=0;v<h.length;v+=1)d[v+m.length]=h[v];return d},i=function(m,h){for(var d=[],p=h,v=0;p<m.length;p+=1,v+=1)d[v]=m[p];return d},_=function(y,m){for(var h="",d=0;d<y.length;d+=1)h+=y[d],d+1<y.length&&(h+=m);return h};return an=function(m){var h=this;if(typeof h!="function"||x.apply(h)!==c)throw new TypeError(g+h);for(var d=i(arguments,1),p,v=function(){if(this instanceof p){var F=h.apply(this,E(d,arguments));return Object(F)===F?F:this}return h.apply(m,E(d,arguments))},w=S(0,h.length-d.length),M=[],A=0;A<w;A++)M[A]="$"+A;if(p=Function("binder","return function ("+_(M,",")+"){ return binder.apply(this,arguments); }")(v),h.prototype){var B=function(){};B.prototype=h.prototype,p.prototype=new B,B.prototype=null}return p},an}var fn,so;function Er(){if(so)return fn;so=1;var g=E1();return fn=Function.prototype.bind||g,fn}var on,ho;function K0(){return ho||(ho=1,on=Function.prototype.call),on}var sn,uo;function W0(){return uo||(uo=1,sn=Function.prototype.apply),sn}var hn,co;function A1(){return co||(co=1,hn=typeof Reflect<"u"&&Reflect&&Reflect.apply),hn}var un,lo;function ju(){if(lo)return un;lo=1;var g=Er(),x=W0(),S=K0(),c=A1();return un=c||g.call(S,x),un}var cn,po;function j0(){if(po)return cn;po=1;var g=Er(),x=mr(),S=K0(),c=ju();return cn=function(i){if(i.length<1||typeof i[0]!="function")throw new x("a function is required");return c(g,S,i)},cn}var ln,vo;function S1(){if(vo)return ln;vo=1;var g=j0(),x=yr(),S;try{S=[].__proto__===Array.prototype}catch(_){if(!_||typeof _!="object"||!("code"in _)||_.code!=="ERR_PROTO_ACCESS")throw _}var c=!!S&&x&&x(Object.prototype,"__proto__"),E=Object,i=E.getPrototypeOf;return ln=c&&typeof c.get=="function"?g([c.get]):typeof i=="function"?function(y){return i(y==null?y:E(y))}:!1,ln}var dn,bo;function G0(){if(bo)return dn;bo=1;var g=Ku(),x=Wu(),S=S1();return dn=g?function(E){return g(E)}:x?function(E){if(!E||typeof E!="object"&&typeof E!="function")throw new TypeError("getProto: not an object");return x(E)}:S?function(E){return S(E)}:null,dn}var pn,mo;function Gu(){if(mo)return pn;mo=1;var g=Function.prototype.call,x=Object.prototype.hasOwnProperty,S=Er();return pn=S.call(g,x),pn}var vn,yo;function V0(){if(yo)return vn;yo=1;var g,x=z0(),S=h1(),c=u1(),E=c1(),i=l1(),_=$u(),y=mr(),m=d1(),h=p1(),d=v1(),p=b1(),v=m1(),w=y1(),M=g1(),A=w1(),B=Function,F=function(Z){try{return B('"use strict"; return ('+Z+").constructor;")()}catch{}},C=yr(),R=ni(),D=function(){throw new y},K=C?(function(){try{return arguments.callee,D}catch{try{return C(arguments,"callee").get}catch{return D}}})():D,q=_1()(),Y=G0(),J=Wu(),V=Ku(),re=W0(),u=K0(),e={},r=typeof Uint8Array>"u"||!Y?g:Y(Uint8Array),n={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":q&&Y?Y([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":e,"%AsyncGenerator%":e,"%AsyncGeneratorFunction%":e,"%AsyncIteratorPrototype%":e,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":S,"%eval%":eval,"%EvalError%":c,"%Float16Array%":typeof Float16Array>"u"?g:Float16Array,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":B,"%GeneratorFunction%":e,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":q&&Y?Y(Y([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!q||!Y?g:Y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":x,"%Object.getOwnPropertyDescriptor%":C,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":E,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!q||!Y?g:Y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":q&&Y?Y(""[Symbol.iterator]()):g,"%Symbol%":q?Symbol:g,"%SyntaxError%":_,"%ThrowTypeError%":K,"%TypedArray%":r,"%TypeError%":y,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":m,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet,"%Function.prototype.call%":u,"%Function.prototype.apply%":re,"%Object.defineProperty%":R,"%Object.getPrototypeOf%":J,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":v,"%Math.pow%":w,"%Math.round%":M,"%Math.sign%":A,"%Reflect.getPrototypeOf%":V};if(Y)try{null.error}catch(Z){var a=Y(Y(Z));n["%Error.prototype%"]=a}var o=function Z(k){var N;if(k==="%AsyncFunction%")N=F("async function () {}");else if(k==="%GeneratorFunction%")N=F("function* () {}");else if(k==="%AsyncGeneratorFunction%")N=F("async function* () {}");else if(k==="%AsyncGenerator%"){var T=Z("%AsyncGeneratorFunction%");T&&(N=T.prototype)}else if(k==="%AsyncIteratorPrototype%"){var j=Z("%AsyncGenerator%");j&&Y&&(N=Y(j.prototype))}return n[k]=N,N},l={__proto__:null,"%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"]},b=Er(),f=Gu(),t=b.call(u,Array.prototype.concat),s=b.call(re,Array.prototype.splice),$=b.call(u,String.prototype.replace),W=b.call(u,String.prototype.slice),U=b.call(u,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,P=function(k){var N=W(k,0,1),T=W(k,-1);if(N==="%"&&T!=="%")throw new _("invalid intrinsic syntax, expected closing `%`");if(T==="%"&&N!=="%")throw new _("invalid intrinsic syntax, expected opening `%`");var j=[];return $(k,Q,function(fe,ee,te,he){j[j.length]=te?$(he,X,"$1"):ee||fe}),j},H=function(k,N){var T=k,j;if(f(l,T)&&(j=l[T],T="%"+j[0]+"%"),f(n,T)){var fe=n[T];if(fe===e&&(fe=o(T)),typeof fe>"u"&&!N)throw new y("intrinsic "+k+" exists, but is not available. Please file an issue!");return{alias:j,name:T,value:fe}}throw new _("intrinsic "+k+" does not exist!")};return vn=function(k,N){if(typeof k!="string"||k.length===0)throw new y("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof N!="boolean")throw new y('"allowMissing" argument must be a boolean');if(U(/^%?[^%]*%?$/,k)===null)throw new _("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var T=P(k),j=T.length>0?T[0]:"",fe=H("%"+j+"%",N),ee=fe.name,te=fe.value,he=!1,ie=fe.alias;ie&&(j=ie[0],s(T,t([0,1],ie)));for(var ne=1,pe=!0;ne<T.length;ne+=1){var oe=T[ne],se=W(oe,0,1),Re=W(oe,-1);if((se==='"'||se==="'"||se==="`"||Re==='"'||Re==="'"||Re==="`")&&se!==Re)throw new _("property names with quotes must have matching quotes");if((oe==="constructor"||!pe)&&(he=!0),j+="."+oe,ee="%"+j+"%",f(n,ee))te=n[ee];else if(te!=null){if(!(oe in te)){if(!N)throw new y("base intrinsic for "+k+" exists, but the property is not available.");return}if(C&&ne+1>=T.length){var de=C(te,oe);pe=!!de,pe&&"get"in de&&!("originalValue"in de.get)?te=de.get:te=te[oe]}else pe=f(te,oe),te=te[oe];pe&&!he&&(n[ee]=te)}}return te},vn}var bn,go;function Z0(){if(go)return bn;go=1;var g=V0(),x=j0(),S=x([g("%String.prototype.indexOf%")]);return bn=function(E,i){var _=g(E,!!i);return typeof _=="function"&&S(E,".prototype.")>-1?x([_]):_},bn}var mn,xo;function B1(){if(xo)return mn;xo=1;var g=Function.prototype.toString,x=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,S,c;if(typeof x=="function"&&typeof Object.defineProperty=="function")try{S=Object.defineProperty({},"length",{get:function(){throw c}}),c={},x(function(){throw 42},null,S)}catch(C){C!==c&&(x=null)}else x=null;var E=/^\s*class\b/,i=function(R){try{var D=g.call(R);return E.test(D)}catch{return!1}},_=function(R){try{return i(R)?!1:(g.call(R),!0)}catch{return!1}},y=Object.prototype.toString,m="[object Object]",h="[object Function]",d="[object GeneratorFunction]",p="[object HTMLAllCollection]",v="[object HTML document.all class]",w="[object HTMLCollection]",M=typeof Symbol=="function"&&!!Symbol.toStringTag,A=!(0 in[,]),B=function(){return!1};if(typeof document=="object"){var F=document.all;y.call(F)===y.call(document.all)&&(B=function(R){if((A||!R)&&(typeof R>"u"||typeof R=="object"))try{var D=y.call(R);return(D===p||D===v||D===w||D===m)&&R("")==null}catch{}return!1})}return mn=x?function(R){if(B(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;try{x(R,null,S)}catch(D){if(D!==c)return!1}return!i(R)&&_(R)}:function(R){if(B(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;if(M)return _(R);if(i(R))return!1;var D=y.call(R);return D!==h&&D!==d&&!/^\[object HTML/.test(D)?!1:_(R)},mn}var yn,wo;function F1(){if(wo)return yn;wo=1;var g=B1(),x=Object.prototype.toString,S=Object.prototype.hasOwnProperty,c=function(m,h,d){for(var p=0,v=m.length;p<v;p++)S.call(m,p)&&(d==null?h(m[p],p,m):h.call(d,m[p],p,m))},E=function(m,h,d){for(var p=0,v=m.length;p<v;p++)d==null?h(m.charAt(p),p,m):h.call(d,m.charAt(p),p,m)},i=function(m,h,d){for(var p in m)S.call(m,p)&&(d==null?h(m[p],p,m):h.call(d,m[p],p,m))};function _(y){return x.call(y)==="[object Array]"}return yn=function(m,h,d){if(!g(h))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=d),_(m)?c(m,h,p):typeof m=="string"?E(m,h,p):i(m,h,p)},yn}var gn,Mo;function C1(){return Mo||(Mo=1,gn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),gn}var xn,_o;function D1(){if(_o)return xn;_o=1;var g=C1(),x=typeof globalThis>"u"?ze.commonjsGlobal:globalThis;return xn=function(){for(var c=[],E=0;E<g.length;E++)typeof x[g[E]]=="function"&&(c[c.length]=g[E]);return c},xn}var wn={exports:{}},Mn,Eo;function Vu(){if(Eo)return Mn;Eo=1;var g=ni(),x=$u(),S=mr(),c=yr();return Mn=function(i,_,y){if(!i||typeof i!="object"&&typeof i!="function")throw new S("`obj` must be an object or a function`");if(typeof _!="string"&&typeof _!="symbol")throw new S("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new S("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new S("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new S("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new S("`loose`, if provided, must be a boolean");var m=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,v=!!c&&c(i,_);if(g)g(i,_,{configurable:d===null&&v?v.configurable:!d,enumerable:m===null&&v?v.enumerable:!m,value:y,writable:h===null&&v?v.writable:!h});else if(p||!m&&!h&&!d)i[_]=y;else throw new x("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mn}var _n,Ao;function Zu(){if(Ao)return _n;Ao=1;var g=ni(),x=function(){return!!g};return x.hasArrayLengthDefineBug=function(){if(!g)return null;try{return g([],"length",{value:1}).length!==1}catch{return!0}},_n=x,_n}var En,So;function R1(){if(So)return En;So=1;var g=V0(),x=Vu(),S=Zu()(),c=yr(),E=mr(),i=g("%Math.floor%");return En=function(y,m){if(typeof y!="function")throw new E("`fn` is not a function");if(typeof m!="number"||m<0||m>4294967295||i(m)!==m)throw new E("`length` must be a positive 32-bit integer");var h=arguments.length>2&&!!arguments[2],d=!0,p=!0;if("length"in y&&c){var v=c(y,"length");v&&!v.configurable&&(d=!1),v&&!v.writable&&(p=!1)}return(d||p||!h)&&(S?x(y,"length",m,!0,!0):x(y,"length",m)),y},En}var An,Bo;function T1(){if(Bo)return An;Bo=1;var g=Er(),x=W0(),S=ju();return An=function(){return S(g,x,arguments)},An}var Fo;function Xu(){return Fo||(Fo=1,(function(g){var x=R1(),S=ni(),c=j0(),E=T1();g.exports=function(_){var y=c(arguments),m=_.length-(arguments.length-1);return x(y,1+(m>0?m:0),!0)},S?S(g.exports,"apply",{value:E}):g.exports.apply=E})(wn)),wn.exports}var Sn,Co;function Yu(){if(Co)return Sn;Co=1;var g=$0();return Sn=function(){return g()&&!!Symbol.toStringTag},Sn}var Bn,Do;function Ju(){if(Do)return Bn;Do=1;var g=F1(),x=D1(),S=Xu(),c=Z0(),E=yr(),i=G0(),_=c("Object.prototype.toString"),y=Yu()(),m=typeof globalThis>"u"?ze.commonjsGlobal:globalThis,h=x(),d=c("String.prototype.slice"),p=c("Array.prototype.indexOf",!0)||function(B,F){for(var C=0;C<B.length;C+=1)if(B[C]===F)return C;return-1},v={__proto__:null};y&&E&&i?g(h,function(A){var B=new m[A];if(Symbol.toStringTag in B&&i){var F=i(B),C=E(F,Symbol.toStringTag);if(!C&&F){var R=i(F);C=E(R,Symbol.toStringTag)}v["$"+A]=S(C.get)}}):g(h,function(A){var B=new m[A],F=B.slice||B.set;F&&(v["$"+A]=S(F))});var w=function(B){var F=!1;return g(v,function(C,R){if(!F)try{"$"+C(B)===R&&(F=d(R,1))}catch{}}),F},M=function(B){var F=!1;return g(v,function(C,R){if(!F)try{C(B),F=d(R,1)}catch{}}),F};return Bn=function(B){if(!B||typeof B!="object")return!1;if(!y){var F=d(_(B),8,-1);return p(h,F)>-1?F:F!=="Object"?!1:M(B)}return E?w(B):null},Bn}var Fn,Ro;function Qu(){if(Ro)return Fn;Ro=1;var g=Ju();return Fn=function(S){return!!g(S)},Fn}var Cn,To;function I1(){if(To)return Cn;To=1;var g=mr(),x=Z0(),S=x("TypedArray.prototype.buffer",!0),c=Qu();return Cn=S||function(i){if(!c(i))throw new g("Not a Typed Array");return i.buffer},Cn}var Dn,Io;function ec(){if(Io)return Dn;Io=1;var g=ze.requireSafeBuffer().Buffer,x=s1(),S=I1(),c=ArrayBuffer.isView||function(m){try{return S(m),!0}catch{return!1}},E=typeof Uint8Array<"u",i=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",_=i&&(g.prototype instanceof Uint8Array||g.TYPED_ARRAY_SUPPORT);return Dn=function(m,h){if(m instanceof g)return m;if(typeof m=="string")return g.from(m,h);if(i&&c(m)){if(m.byteLength===0)return g.alloc(0);if(_){var d=g.from(m.buffer,m.byteOffset,m.byteLength);if(d.byteLength===m.byteLength)return d}var p=m instanceof Uint8Array?m:new Uint8Array(m.buffer,m.byteOffset,m.byteLength),v=g.from(p);if(v.length===m.byteLength)return v}if(E&&m instanceof Uint8Array)return g.from(m);var w=x(m);if(w)for(var M=0;M<m.length;M+=1){var A=m[M];if(typeof A!="number"||A<0||A>255||~~A!==A)throw new RangeError("Array items must be numbers in the range 0-255.")}if(w||g.isBuffer(m)&&m.constructor&&typeof m.constructor.isBuffer=="function"&&m.constructor.isBuffer(m))return g.from(m);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Dn}var Rn,ko;function gr(){if(ko)return Rn;ko=1;var g=ze.requireSafeBuffer().Buffer,x=ec();function S(c,E){this._block=g.alloc(c),this._finalSize=E,this._blockSize=c,this._len=0}return S.prototype.update=function(c,E){c=x(c,E||"utf8");for(var i=this._block,_=this._blockSize,y=c.length,m=this._len,h=0;h<y;){for(var d=m%_,p=Math.min(y-h,_-d),v=0;v<p;v++)i[d+v]=c[h+v];m+=p,h+=p,m%_===0&&this._update(i)}return this._len+=y,this},S.prototype.digest=function(c){var E=this._len%this._blockSize;this._block[E]=128,this._block.fill(0,E+1),E>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=this._len*8;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var _=(i&4294967295)>>>0,y=(i-_)/4294967296;this._block.writeUInt32BE(y,this._blockSize-8),this._block.writeUInt32BE(_,this._blockSize-4)}this._update(this._block);var m=this._hash();return c?m.toString(c):m},S.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Rn=S,Rn}var Tn,No;function k1(){if(No)return Tn;No=1;var g=dt(),x=gr(),S=ze.requireSafeBuffer().Buffer,c=[1518500249,1859775393,-1894007588,-899497514],E=new Array(80);function i(){this.init(),this._w=E,x.call(this,64,56)}g(i,x),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function _(h){return h<<5|h>>>27}function y(h){return h<<30|h>>>2}function m(h,d,p,v){return h===0?d&p|~d&v:h===2?d&p|d&v|p&v:d^p^v}return i.prototype._update=function(h){for(var d=this._w,p=this._a|0,v=this._b|0,w=this._c|0,M=this._d|0,A=this._e|0,B=0;B<16;++B)d[B]=h.readInt32BE(B*4);for(;B<80;++B)d[B]=d[B-3]^d[B-8]^d[B-14]^d[B-16];for(var F=0;F<80;++F){var C=~~(F/20),R=_(p)+m(C,v,w,M)+A+d[F]+c[C]|0;A=M,M=w,w=y(v),v=p,p=R}this._a=p+this._a|0,this._b=v+this._b|0,this._c=w+this._c|0,this._d=M+this._d|0,this._e=A+this._e|0},i.prototype._hash=function(){var h=S.allocUnsafe(20);return h.writeInt32BE(this._a|0,0),h.writeInt32BE(this._b|0,4),h.writeInt32BE(this._c|0,8),h.writeInt32BE(this._d|0,12),h.writeInt32BE(this._e|0,16),h},Tn=i,Tn}var In,Po;function N1(){if(Po)return In;Po=1;var g=dt(),x=gr(),S=ze.requireSafeBuffer().Buffer,c=[1518500249,1859775393,-1894007588,-899497514],E=new Array(80);function i(){this.init(),this._w=E,x.call(this,64,56)}g(i,x),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function _(d){return d<<1|d>>>31}function y(d){return d<<5|d>>>27}function m(d){return d<<30|d>>>2}function h(d,p,v,w){return d===0?p&v|~p&w:d===2?p&v|p&w|v&w:p^v^w}return i.prototype._update=function(d){for(var p=this._w,v=this._a|0,w=this._b|0,M=this._c|0,A=this._d|0,B=this._e|0,F=0;F<16;++F)p[F]=d.readInt32BE(F*4);for(;F<80;++F)p[F]=_(p[F-3]^p[F-8]^p[F-14]^p[F-16]);for(var C=0;C<80;++C){var R=~~(C/20),D=y(v)+h(R,w,M,A)+B+p[C]+c[R]|0;B=A,A=M,M=m(w),w=v,v=D}this._a=v+this._a|0,this._b=w+this._b|0,this._c=M+this._c|0,this._d=A+this._d|0,this._e=B+this._e|0},i.prototype._hash=function(){var d=S.allocUnsafe(20);return d.writeInt32BE(this._a|0,0),d.writeInt32BE(this._b|0,4),d.writeInt32BE(this._c|0,8),d.writeInt32BE(this._d|0,12),d.writeInt32BE(this._e|0,16),d},In=i,In}var kn,qo;function tc(){if(qo)return kn;qo=1;var g=dt(),x=gr(),S=ze.requireSafeBuffer().Buffer,c=[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],E=new Array(64);function i(){this.init(),this._w=E,x.call(this,64,56)}g(i,x),i.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};function _(v,w,M){return M^v&(w^M)}function y(v,w,M){return v&w|M&(v|w)}function m(v){return(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10)}function h(v){return(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7)}function d(v){return(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3}function p(v){return(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10}return i.prototype._update=function(v){for(var w=this._w,M=this._a|0,A=this._b|0,B=this._c|0,F=this._d|0,C=this._e|0,R=this._f|0,D=this._g|0,K=this._h|0,q=0;q<16;++q)w[q]=v.readInt32BE(q*4);for(;q<64;++q)w[q]=p(w[q-2])+w[q-7]+d(w[q-15])+w[q-16]|0;for(var Y=0;Y<64;++Y){var J=K+h(C)+_(C,R,D)+c[Y]+w[Y]|0,V=m(M)+y(M,A,B)|0;K=D,D=R,R=C,C=F+J|0,F=B,B=A,A=M,M=J+V|0}this._a=M+this._a|0,this._b=A+this._b|0,this._c=B+this._c|0,this._d=F+this._d|0,this._e=C+this._e|0,this._f=R+this._f|0,this._g=D+this._g|0,this._h=K+this._h|0},i.prototype._hash=function(){var v=S.allocUnsafe(32);return v.writeInt32BE(this._a,0),v.writeInt32BE(this._b,4),v.writeInt32BE(this._c,8),v.writeInt32BE(this._d,12),v.writeInt32BE(this._e,16),v.writeInt32BE(this._f,20),v.writeInt32BE(this._g,24),v.writeInt32BE(this._h,28),v},kn=i,kn}var Nn,Oo;function P1(){if(Oo)return Nn;Oo=1;var g=dt(),x=tc(),S=gr(),c=ze.requireSafeBuffer().Buffer,E=new Array(64);function i(){this.init(),this._w=E,S.call(this,64,56)}return g(i,x),i.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},i.prototype._hash=function(){var _=c.allocUnsafe(28);return _.writeInt32BE(this._a,0),_.writeInt32BE(this._b,4),_.writeInt32BE(this._c,8),_.writeInt32BE(this._d,12),_.writeInt32BE(this._e,16),_.writeInt32BE(this._f,20),_.writeInt32BE(this._g,24),_},Nn=i,Nn}var Pn,Uo;function rc(){if(Uo)return Pn;Uo=1;var g=dt(),x=gr(),S=ze.requireSafeBuffer().Buffer,c=[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],E=new Array(160);function i(){this.init(),this._w=E,x.call(this,128,112)}g(i,x),i.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};function _(A,B,F){return F^A&(B^F)}function y(A,B,F){return A&B|F&(A|B)}function m(A,B){return(A>>>28|B<<4)^(B>>>2|A<<30)^(B>>>7|A<<25)}function h(A,B){return(A>>>14|B<<18)^(A>>>18|B<<14)^(B>>>9|A<<23)}function d(A,B){return(A>>>1|B<<31)^(A>>>8|B<<24)^A>>>7}function p(A,B){return(A>>>1|B<<31)^(A>>>8|B<<24)^(A>>>7|B<<25)}function v(A,B){return(A>>>19|B<<13)^(B>>>29|A<<3)^A>>>6}function w(A,B){return(A>>>19|B<<13)^(B>>>29|A<<3)^(A>>>6|B<<26)}function M(A,B){return A>>>0<B>>>0?1:0}return i.prototype._update=function(A){for(var B=this._w,F=this._ah|0,C=this._bh|0,R=this._ch|0,D=this._dh|0,K=this._eh|0,q=this._fh|0,Y=this._gh|0,J=this._hh|0,V=this._al|0,re=this._bl|0,u=this._cl|0,e=this._dl|0,r=this._el|0,n=this._fl|0,a=this._gl|0,o=this._hl|0,l=0;l<32;l+=2)B[l]=A.readInt32BE(l*4),B[l+1]=A.readInt32BE(l*4+4);for(;l<160;l+=2){var b=B[l-30],f=B[l-30+1],t=d(b,f),s=p(f,b);b=B[l-4],f=B[l-4+1];var $=v(b,f),W=w(f,b),U=B[l-14],Q=B[l-14+1],X=B[l-32],P=B[l-32+1],H=s+Q|0,Z=t+U+M(H,s)|0;H=H+W|0,Z=Z+$+M(H,W)|0,H=H+P|0,Z=Z+X+M(H,P)|0,B[l]=Z,B[l+1]=H}for(var k=0;k<160;k+=2){Z=B[k],H=B[k+1];var N=y(F,C,R),T=y(V,re,u),j=m(F,V),fe=m(V,F),ee=h(K,r),te=h(r,K),he=c[k],ie=c[k+1],ne=_(K,q,Y),pe=_(r,n,a),oe=o+te|0,se=J+ee+M(oe,o)|0;oe=oe+pe|0,se=se+ne+M(oe,pe)|0,oe=oe+ie|0,se=se+he+M(oe,ie)|0,oe=oe+H|0,se=se+Z+M(oe,H)|0;var Re=fe+T|0,de=j+N+M(Re,fe)|0;J=Y,o=a,Y=q,a=n,q=K,n=r,r=e+oe|0,K=D+se+M(r,e)|0,D=R,e=u,R=C,u=re,C=F,re=V,V=oe+Re|0,F=se+de+M(V,oe)|0}this._al=this._al+V|0,this._bl=this._bl+re|0,this._cl=this._cl+u|0,this._dl=this._dl+e|0,this._el=this._el+r|0,this._fl=this._fl+n|0,this._gl=this._gl+a|0,this._hl=this._hl+o|0,this._ah=this._ah+F+M(this._al,V)|0,this._bh=this._bh+C+M(this._bl,re)|0,this._ch=this._ch+R+M(this._cl,u)|0,this._dh=this._dh+D+M(this._dl,e)|0,this._eh=this._eh+K+M(this._el,r)|0,this._fh=this._fh+q+M(this._fl,n)|0,this._gh=this._gh+Y+M(this._gl,a)|0,this._hh=this._hh+J+M(this._hl,o)|0},i.prototype._hash=function(){var A=S.allocUnsafe(64);function B(F,C,R){A.writeInt32BE(F,R),A.writeInt32BE(C,R+4)}return B(this._ah,this._al,0),B(this._bh,this._bl,8),B(this._ch,this._cl,16),B(this._dh,this._dl,24),B(this._eh,this._el,32),B(this._fh,this._fl,40),B(this._gh,this._gl,48),B(this._hh,this._hl,56),A},Pn=i,Pn}var qn,Lo;function q1(){if(Lo)return qn;Lo=1;var g=dt(),x=rc(),S=gr(),c=ze.requireSafeBuffer().Buffer,E=new Array(160);function i(){this.init(),this._w=E,S.call(this,128,112)}return g(i,x),i.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},i.prototype._hash=function(){var _=c.allocUnsafe(48);function y(m,h,d){_.writeInt32BE(m,d),_.writeInt32BE(h,d+4)}return y(this._ah,this._al,0),y(this._bh,this._bl,8),y(this._ch,this._cl,16),y(this._dh,this._dl,24),y(this._eh,this._el,32),y(this._fh,this._fl,40),_},qn=i,qn}var Ho;function X0(){return Ho||(Ho=1,(function(g){g.exports=function(S){var c=S.toLowerCase(),E=g.exports[c];if(!E)throw new Error(c+" is not supported (we accept pull requests)");return new E},g.exports.sha=k1(),g.exports.sha1=N1(),g.exports.sha224=P1(),g.exports.sha256=tc(),g.exports.sha384=q1(),g.exports.sha512=rc()})(Ii)),Ii.exports}var On,zo;function er(){if(zo)return On;zo=1;var g=ze.requireSafeBuffer().Buffer,x=ii().Transform,S=cr().StringDecoder,c=dt();function E(m){x.call(this),this.hashMode=typeof m=="string",this.hashMode?this[m]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}c(E,x);var i=typeof Uint8Array<"u",_=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(g.prototype instanceof Uint8Array||g.TYPED_ARRAY_SUPPORT);function y(m,h){if(m instanceof g)return m;if(typeof m=="string")return g.from(m,h);if(_&&ArrayBuffer.isView(m)){if(m.byteLength===0)return g.alloc(0);var d=g.from(m.buffer,m.byteOffset,m.byteLength);if(d.byteLength===m.byteLength)return d}if(i&&m instanceof Uint8Array||g.isBuffer(m)&&m.constructor&&typeof m.constructor.isBuffer=="function"&&m.constructor.isBuffer(m))return g.from(m);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return E.prototype.update=function(m,h,d){var p=y(m,h),v=this._update(p);return this.hashMode?this:(d&&(v=this._toString(v,d)),v)},E.prototype.setAutoPadding=function(){},E.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},E.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},E.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},E.prototype._transform=function(m,h,d){var p;try{this.hashMode?this._update(m):this.push(this._update(m))}catch(v){p=v}finally{d(p)}},E.prototype._flush=function(m){var h;try{this.push(this.__final())}catch(d){h=d}m(h)},E.prototype._finalOrDigest=function(m){var h=this.__final()||g.alloc(0);return m&&(h=this._toString(h,m,!0)),h},E.prototype._toString=function(m,h,d){if(this._decoder||(this._decoder=new S(h),this._encoding=h),this._encoding!==h)throw new Error("can’t switch encodings");var p=this._decoder.write(m);return d&&(p+=this._decoder.end()),p},On=E,On}var Un,$o;function Ar(){if($o)return Un;$o=1;var g=dt(),x=H0(),S=zu(),c=X0(),E=er();function i(_){E.call(this,"digest"),this._hash=_}return g(i,E),i.prototype._update=function(_){this._hash.update(_)},i.prototype._final=function(){return this._hash.digest()},Un=function(y){return y=y.toLowerCase(),y==="md5"?new x:y==="rmd160"||y==="ripemd160"?new S:new i(c(y))},Un}var Ln,Ko;function O1(){if(Ko)return Ln;Ko=1;var g=dt(),x=ze.requireSafeBuffer().Buffer,S=er(),c=x.alloc(128),E=64;function i(_,y){S.call(this,"digest"),typeof y=="string"&&(y=x.from(y)),this._alg=_,this._key=y,y.length>E?y=_(y):y.length<E&&(y=x.concat([y,c],E));for(var m=this._ipad=x.allocUnsafe(E),h=this._opad=x.allocUnsafe(E),d=0;d<E;d++)m[d]=y[d]^54,h[d]=y[d]^92;this._hash=[m]}return g(i,S),i.prototype._update=function(_){this._hash.push(_)},i.prototype._final=function(){var _=this._alg(x.concat(this._hash));return this._alg(x.concat([this._opad,_]))},Ln=i,Ln}var Hn,Wo;function U1(){if(Wo)return Hn;Wo=1;var g=H0();return Hn=function(x){return new g().update(x).digest()},Hn}var zn,jo;function ic(){if(jo)return zn;jo=1;var g=dt(),x=O1(),S=er(),c=ze.requireSafeBuffer().Buffer,E=U1(),i=zu(),_=X0(),y=c.alloc(128);function m(h,d){S.call(this,"digest"),typeof d=="string"&&(d=c.from(d));var p=h==="sha512"||h==="sha384"?128:64;if(this._alg=h,this._key=d,d.length>p){var v=h==="rmd160"?new i:_(h);d=v.update(d).digest()}else d.length<p&&(d=c.concat([d,y],p));for(var w=this._ipad=c.allocUnsafe(p),M=this._opad=c.allocUnsafe(p),A=0;A<p;A++)w[A]=d[A]^54,M[A]=d[A]^92;this._hash=h==="rmd160"?new i:_(h),this._hash.update(w)}return g(m,S),m.prototype._update=function(h){this._hash.update(h)},m.prototype._final=function(){var h=this._hash.digest(),d=this._alg==="rmd160"?new i:_(this._alg);return d.update(this._opad).update(h).digest()},zn=function(d,p){return d=d.toLowerCase(),d==="rmd160"||d==="ripemd160"?new m("rmd160",p):d==="md5"?new x(E,p):new m(d,p)},zn}const L1={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},H1={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},z1={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},$1={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},K1={sign:"ecdsa",hash:"sha256",id:""},W1={sign:"ecdsa",hash:"sha224",id:""},j1={sign:"ecdsa",hash:"sha384",id:""},G1={sign:"ecdsa",hash:"sha512",id:""},V1={sign:"dsa",hash:"sha1",id:""},Z1={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},X1={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},nc={sha224WithRSAEncryption:L1,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:H1,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:z1,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:$1,"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:K1,sha224:W1,sha384:j1,sha512:G1,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:V1,"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:Z1,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:X1,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var $n,Go;function Y1(){return Go||(Go=1,$n=nc),$n}var Nr={},Kn,Vo;function ac(){if(Vo)return Kn;Vo=1;var g=Math.pow(2,30)-1;return Kn=function(x,S){if(typeof x!="number")throw new TypeError("Iterations not a number");if(x<0)throw new TypeError("Bad iterations");if(typeof S!="number")throw new TypeError("Key length not a number");if(S<0||S>g||S!==S)throw new TypeError("Bad key length")},Kn}var Wn,Zo;function fc(){if(Zo)return Wn;Zo=1;var g;if(ze.commonjsGlobal.process&&ze.commonjsGlobal.process.browser)g="utf-8";else if(ze.commonjsGlobal.process&&ze.commonjsGlobal.process.version){var x=parseInt(xe.process$1.version.split(".")[0].slice(1),10);g=x>=6?"utf-8":"binary"}else g="utf-8";return Wn=g,Wn}var jn,Xo;function J1(){if(Xo)return jn;Xo=1;var g=4,x=new xe.Buffer(g);x.fill(0);var S=8,c=16;function E(i){if(i.length%g!==0){var _=i.length+(g-i.length%g);i=xe.Buffer.concat([i,x],_)}for(var y=new Array(i.length>>>2),m=0,h=0;m<i.length;m+=g,h++)y[h]=i.readInt32LE(m);return y}return jn=function(_,y){var m=y(E(_),_.length*S);_=new xe.Buffer(c);for(var h=0;h<m.length;h++)_.writeInt32LE(m[h],h<<2,!0);return _},jn}var Gn,Yo;function Q1(){if(Yo)return Gn;Yo=1;var g=J1();function x(h,d){h[d>>5]|=128<<d%32,h[(d+64>>>9<<4)+14]=d;for(var p=1732584193,v=-271733879,w=-1732584194,M=271733878,A=0;A<h.length;A+=16){var B=p,F=v,C=w,R=M;p=c(p,v,w,M,h[A+0],7,-680876936),M=c(M,p,v,w,h[A+1],12,-389564586),w=c(w,M,p,v,h[A+2],17,606105819),v=c(v,w,M,p,h[A+3],22,-1044525330),p=c(p,v,w,M,h[A+4],7,-176418897),M=c(M,p,v,w,h[A+5],12,1200080426),w=c(w,M,p,v,h[A+6],17,-1473231341),v=c(v,w,M,p,h[A+7],22,-45705983),p=c(p,v,w,M,h[A+8],7,1770035416),M=c(M,p,v,w,h[A+9],12,-1958414417),w=c(w,M,p,v,h[A+10],17,-42063),v=c(v,w,M,p,h[A+11],22,-1990404162),p=c(p,v,w,M,h[A+12],7,1804603682),M=c(M,p,v,w,h[A+13],12,-40341101),w=c(w,M,p,v,h[A+14],17,-1502002290),v=c(v,w,M,p,h[A+15],22,1236535329),p=E(p,v,w,M,h[A+1],5,-165796510),M=E(M,p,v,w,h[A+6],9,-1069501632),w=E(w,M,p,v,h[A+11],14,643717713),v=E(v,w,M,p,h[A+0],20,-373897302),p=E(p,v,w,M,h[A+5],5,-701558691),M=E(M,p,v,w,h[A+10],9,38016083),w=E(w,M,p,v,h[A+15],14,-660478335),v=E(v,w,M,p,h[A+4],20,-405537848),p=E(p,v,w,M,h[A+9],5,568446438),M=E(M,p,v,w,h[A+14],9,-1019803690),w=E(w,M,p,v,h[A+3],14,-187363961),v=E(v,w,M,p,h[A+8],20,1163531501),p=E(p,v,w,M,h[A+13],5,-1444681467),M=E(M,p,v,w,h[A+2],9,-51403784),w=E(w,M,p,v,h[A+7],14,1735328473),v=E(v,w,M,p,h[A+12],20,-1926607734),p=i(p,v,w,M,h[A+5],4,-378558),M=i(M,p,v,w,h[A+8],11,-2022574463),w=i(w,M,p,v,h[A+11],16,1839030562),v=i(v,w,M,p,h[A+14],23,-35309556),p=i(p,v,w,M,h[A+1],4,-1530992060),M=i(M,p,v,w,h[A+4],11,1272893353),w=i(w,M,p,v,h[A+7],16,-155497632),v=i(v,w,M,p,h[A+10],23,-1094730640),p=i(p,v,w,M,h[A+13],4,681279174),M=i(M,p,v,w,h[A+0],11,-358537222),w=i(w,M,p,v,h[A+3],16,-722521979),v=i(v,w,M,p,h[A+6],23,76029189),p=i(p,v,w,M,h[A+9],4,-640364487),M=i(M,p,v,w,h[A+12],11,-421815835),w=i(w,M,p,v,h[A+15],16,530742520),v=i(v,w,M,p,h[A+2],23,-995338651),p=_(p,v,w,M,h[A+0],6,-198630844),M=_(M,p,v,w,h[A+7],10,1126891415),w=_(w,M,p,v,h[A+14],15,-1416354905),v=_(v,w,M,p,h[A+5],21,-57434055),p=_(p,v,w,M,h[A+12],6,1700485571),M=_(M,p,v,w,h[A+3],10,-1894986606),w=_(w,M,p,v,h[A+10],15,-1051523),v=_(v,w,M,p,h[A+1],21,-2054922799),p=_(p,v,w,M,h[A+8],6,1873313359),M=_(M,p,v,w,h[A+15],10,-30611744),w=_(w,M,p,v,h[A+6],15,-1560198380),v=_(v,w,M,p,h[A+13],21,1309151649),p=_(p,v,w,M,h[A+4],6,-145523070),M=_(M,p,v,w,h[A+11],10,-1120210379),w=_(w,M,p,v,h[A+2],15,718787259),v=_(v,w,M,p,h[A+9],21,-343485551),p=y(p,B),v=y(v,F),w=y(w,C),M=y(M,R)}return[p,v,w,M]}function S(h,d,p,v,w,M){return y(m(y(y(d,h),y(v,M)),w),p)}function c(h,d,p,v,w,M,A){return S(d&p|~d&v,h,d,w,M,A)}function E(h,d,p,v,w,M,A){return S(d&v|p&~v,h,d,w,M,A)}function i(h,d,p,v,w,M,A){return S(d^p^v,h,d,w,M,A)}function _(h,d,p,v,w,M,A){return S(p^(d|~v),h,d,w,M,A)}function y(h,d){var p=(h&65535)+(d&65535),v=(h>>16)+(d>>16)+(p>>16);return v<<16|p&65535}function m(h,d){return h<<d|h>>>32-d}return Gn=function(d){return g(d,x)},Gn}var Vn,Jo;function ep(){if(Jo)return Vn;Jo=1;var g=ii().Transform,x=dt();function S(c){g.call(this),this._block=new xe.Buffer(c),this._blockSize=c,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return x(S,g),S.prototype._transform=function(c,E,i){var _=null;try{E!=="buffer"&&(c=new xe.Buffer(c,E)),this.update(c)}catch(y){_=y}i(_)},S.prototype._flush=function(c){var E=null;try{this.push(this._digest())}catch(i){E=i}c(E)},S.prototype.update=function(c,E){if(!xe.Buffer.isBuffer(c)&&typeof c!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");xe.Buffer.isBuffer(c)||(c=new xe.Buffer(c,E||"binary"));for(var i=this._block,_=0;this._blockOffset+c.length-_>=this._blockSize;){for(var y=this._blockOffset;y<this._blockSize;)i[y++]=c[_++];this._update(),this._blockOffset=0}for(;_<c.length;)i[this._blockOffset++]=c[_++];for(var m=0,h=c.length*8;h>0;++m)this._length[m]+=h,h=this._length[m]/4294967296|0,h>0&&(this._length[m]-=4294967296*h);return this},S.prototype._update=function(c){throw new Error("_update is not implemented")},S.prototype.digest=function(c){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var E=this._digest();return c!==void 0&&(E=E.toString(c)),E},S.prototype._digest=function(){throw new Error("_digest is not implemented")},Vn=S,Vn}var Zn,Qo;function tp(){if(Qo)return Zn;Qo=1;var g=dt(),x=ep();function S(){x.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}g(S,x),S.prototype._update=function(){for(var h=new Array(16),d=0;d<16;++d)h[d]=this._block.readInt32LE(d*4);var p=this._a,v=this._b,w=this._c,M=this._d,A=this._e;p=E(p,v,w,M,A,h[0],0,11),w=c(w,10),A=E(A,p,v,w,M,h[1],0,14),v=c(v,10),M=E(M,A,p,v,w,h[2],0,15),p=c(p,10),w=E(w,M,A,p,v,h[3],0,12),A=c(A,10),v=E(v,w,M,A,p,h[4],0,5),M=c(M,10),p=E(p,v,w,M,A,h[5],0,8),w=c(w,10),A=E(A,p,v,w,M,h[6],0,7),v=c(v,10),M=E(M,A,p,v,w,h[7],0,9),p=c(p,10),w=E(w,M,A,p,v,h[8],0,11),A=c(A,10),v=E(v,w,M,A,p,h[9],0,13),M=c(M,10),p=E(p,v,w,M,A,h[10],0,14),w=c(w,10),A=E(A,p,v,w,M,h[11],0,15),v=c(v,10),M=E(M,A,p,v,w,h[12],0,6),p=c(p,10),w=E(w,M,A,p,v,h[13],0,7),A=c(A,10),v=E(v,w,M,A,p,h[14],0,9),M=c(M,10),p=E(p,v,w,M,A,h[15],0,8),w=c(w,10),A=i(A,p,v,w,M,h[7],1518500249,7),v=c(v,10),M=i(M,A,p,v,w,h[4],1518500249,6),p=c(p,10),w=i(w,M,A,p,v,h[13],1518500249,8),A=c(A,10),v=i(v,w,M,A,p,h[1],1518500249,13),M=c(M,10),p=i(p,v,w,M,A,h[10],1518500249,11),w=c(w,10),A=i(A,p,v,w,M,h[6],1518500249,9),v=c(v,10),M=i(M,A,p,v,w,h[15],1518500249,7),p=c(p,10),w=i(w,M,A,p,v,h[3],1518500249,15),A=c(A,10),v=i(v,w,M,A,p,h[12],1518500249,7),M=c(M,10),p=i(p,v,w,M,A,h[0],1518500249,12),w=c(w,10),A=i(A,p,v,w,M,h[9],1518500249,15),v=c(v,10),M=i(M,A,p,v,w,h[5],1518500249,9),p=c(p,10),w=i(w,M,A,p,v,h[2],1518500249,11),A=c(A,10),v=i(v,w,M,A,p,h[14],1518500249,7),M=c(M,10),p=i(p,v,w,M,A,h[11],1518500249,13),w=c(w,10),A=i(A,p,v,w,M,h[8],1518500249,12),v=c(v,10),M=_(M,A,p,v,w,h[3],1859775393,11),p=c(p,10),w=_(w,M,A,p,v,h[10],1859775393,13),A=c(A,10),v=_(v,w,M,A,p,h[14],1859775393,6),M=c(M,10),p=_(p,v,w,M,A,h[4],1859775393,7),w=c(w,10),A=_(A,p,v,w,M,h[9],1859775393,14),v=c(v,10),M=_(M,A,p,v,w,h[15],1859775393,9),p=c(p,10),w=_(w,M,A,p,v,h[8],1859775393,13),A=c(A,10),v=_(v,w,M,A,p,h[1],1859775393,15),M=c(M,10),p=_(p,v,w,M,A,h[2],1859775393,14),w=c(w,10),A=_(A,p,v,w,M,h[7],1859775393,8),v=c(v,10),M=_(M,A,p,v,w,h[0],1859775393,13),p=c(p,10),w=_(w,M,A,p,v,h[6],1859775393,6),A=c(A,10),v=_(v,w,M,A,p,h[13],1859775393,5),M=c(M,10),p=_(p,v,w,M,A,h[11],1859775393,12),w=c(w,10),A=_(A,p,v,w,M,h[5],1859775393,7),v=c(v,10),M=_(M,A,p,v,w,h[12],1859775393,5),p=c(p,10),w=y(w,M,A,p,v,h[1],2400959708,11),A=c(A,10),v=y(v,w,M,A,p,h[9],2400959708,12),M=c(M,10),p=y(p,v,w,M,A,h[11],2400959708,14),w=c(w,10),A=y(A,p,v,w,M,h[10],2400959708,15),v=c(v,10),M=y(M,A,p,v,w,h[0],2400959708,14),p=c(p,10),w=y(w,M,A,p,v,h[8],2400959708,15),A=c(A,10),v=y(v,w,M,A,p,h[12],2400959708,9),M=c(M,10),p=y(p,v,w,M,A,h[4],2400959708,8),w=c(w,10),A=y(A,p,v,w,M,h[13],2400959708,9),v=c(v,10),M=y(M,A,p,v,w,h[3],2400959708,14),p=c(p,10),w=y(w,M,A,p,v,h[7],2400959708,5),A=c(A,10),v=y(v,w,M,A,p,h[15],2400959708,6),M=c(M,10),p=y(p,v,w,M,A,h[14],2400959708,8),w=c(w,10),A=y(A,p,v,w,M,h[5],2400959708,6),v=c(v,10),M=y(M,A,p,v,w,h[6],2400959708,5),p=c(p,10),w=y(w,M,A,p,v,h[2],2400959708,12),A=c(A,10),v=m(v,w,M,A,p,h[4],2840853838,9),M=c(M,10),p=m(p,v,w,M,A,h[0],2840853838,15),w=c(w,10),A=m(A,p,v,w,M,h[5],2840853838,5),v=c(v,10),M=m(M,A,p,v,w,h[9],2840853838,11),p=c(p,10),w=m(w,M,A,p,v,h[7],2840853838,6),A=c(A,10),v=m(v,w,M,A,p,h[12],2840853838,8),M=c(M,10),p=m(p,v,w,M,A,h[2],2840853838,13),w=c(w,10),A=m(A,p,v,w,M,h[10],2840853838,12),v=c(v,10),M=m(M,A,p,v,w,h[14],2840853838,5),p=c(p,10),w=m(w,M,A,p,v,h[1],2840853838,12),A=c(A,10),v=m(v,w,M,A,p,h[3],2840853838,13),M=c(M,10),p=m(p,v,w,M,A,h[8],2840853838,14),w=c(w,10),A=m(A,p,v,w,M,h[11],2840853838,11),v=c(v,10),M=m(M,A,p,v,w,h[6],2840853838,8),p=c(p,10),w=m(w,M,A,p,v,h[15],2840853838,5),A=c(A,10),v=m(v,w,M,A,p,h[13],2840853838,6),M=c(M,10);var B=this._a,F=this._b,C=this._c,R=this._d,D=this._e;B=m(B,F,C,R,D,h[5],1352829926,8),C=c(C,10),D=m(D,B,F,C,R,h[14],1352829926,9),F=c(F,10),R=m(R,D,B,F,C,h[7],1352829926,9),B=c(B,10),C=m(C,R,D,B,F,h[0],1352829926,11),D=c(D,10),F=m(F,C,R,D,B,h[9],1352829926,13),R=c(R,10),B=m(B,F,C,R,D,h[2],1352829926,15),C=c(C,10),D=m(D,B,F,C,R,h[11],1352829926,15),F=c(F,10),R=m(R,D,B,F,C,h[4],1352829926,5),B=c(B,10),C=m(C,R,D,B,F,h[13],1352829926,7),D=c(D,10),F=m(F,C,R,D,B,h[6],1352829926,7),R=c(R,10),B=m(B,F,C,R,D,h[15],1352829926,8),C=c(C,10),D=m(D,B,F,C,R,h[8],1352829926,11),F=c(F,10),R=m(R,D,B,F,C,h[1],1352829926,14),B=c(B,10),C=m(C,R,D,B,F,h[10],1352829926,14),D=c(D,10),F=m(F,C,R,D,B,h[3],1352829926,12),R=c(R,10),B=m(B,F,C,R,D,h[12],1352829926,6),C=c(C,10),D=y(D,B,F,C,R,h[6],1548603684,9),F=c(F,10),R=y(R,D,B,F,C,h[11],1548603684,13),B=c(B,10),C=y(C,R,D,B,F,h[3],1548603684,15),D=c(D,10),F=y(F,C,R,D,B,h[7],1548603684,7),R=c(R,10),B=y(B,F,C,R,D,h[0],1548603684,12),C=c(C,10),D=y(D,B,F,C,R,h[13],1548603684,8),F=c(F,10),R=y(R,D,B,F,C,h[5],1548603684,9),B=c(B,10),C=y(C,R,D,B,F,h[10],1548603684,11),D=c(D,10),F=y(F,C,R,D,B,h[14],1548603684,7),R=c(R,10),B=y(B,F,C,R,D,h[15],1548603684,7),C=c(C,10),D=y(D,B,F,C,R,h[8],1548603684,12),F=c(F,10),R=y(R,D,B,F,C,h[12],1548603684,7),B=c(B,10),C=y(C,R,D,B,F,h[4],1548603684,6),D=c(D,10),F=y(F,C,R,D,B,h[9],1548603684,15),R=c(R,10),B=y(B,F,C,R,D,h[1],1548603684,13),C=c(C,10),D=y(D,B,F,C,R,h[2],1548603684,11),F=c(F,10),R=_(R,D,B,F,C,h[15],1836072691,9),B=c(B,10),C=_(C,R,D,B,F,h[5],1836072691,7),D=c(D,10),F=_(F,C,R,D,B,h[1],1836072691,15),R=c(R,10),B=_(B,F,C,R,D,h[3],1836072691,11),C=c(C,10),D=_(D,B,F,C,R,h[7],1836072691,8),F=c(F,10),R=_(R,D,B,F,C,h[14],1836072691,6),B=c(B,10),C=_(C,R,D,B,F,h[6],1836072691,6),D=c(D,10),F=_(F,C,R,D,B,h[9],1836072691,14),R=c(R,10),B=_(B,F,C,R,D,h[11],1836072691,12),C=c(C,10),D=_(D,B,F,C,R,h[8],1836072691,13),F=c(F,10),R=_(R,D,B,F,C,h[12],1836072691,5),B=c(B,10),C=_(C,R,D,B,F,h[2],1836072691,14),D=c(D,10),F=_(F,C,R,D,B,h[10],1836072691,13),R=c(R,10),B=_(B,F,C,R,D,h[0],1836072691,13),C=c(C,10),D=_(D,B,F,C,R,h[4],1836072691,7),F=c(F,10),R=_(R,D,B,F,C,h[13],1836072691,5),B=c(B,10),C=i(C,R,D,B,F,h[8],2053994217,15),D=c(D,10),F=i(F,C,R,D,B,h[6],2053994217,5),R=c(R,10),B=i(B,F,C,R,D,h[4],2053994217,8),C=c(C,10),D=i(D,B,F,C,R,h[1],2053994217,11),F=c(F,10),R=i(R,D,B,F,C,h[3],2053994217,14),B=c(B,10),C=i(C,R,D,B,F,h[11],2053994217,14),D=c(D,10),F=i(F,C,R,D,B,h[15],2053994217,6),R=c(R,10),B=i(B,F,C,R,D,h[0],2053994217,14),C=c(C,10),D=i(D,B,F,C,R,h[5],2053994217,6),F=c(F,10),R=i(R,D,B,F,C,h[12],2053994217,9),B=c(B,10),C=i(C,R,D,B,F,h[2],2053994217,12),D=c(D,10),F=i(F,C,R,D,B,h[13],2053994217,9),R=c(R,10),B=i(B,F,C,R,D,h[9],2053994217,12),C=c(C,10),D=i(D,B,F,C,R,h[7],2053994217,5),F=c(F,10),R=i(R,D,B,F,C,h[10],2053994217,15),B=c(B,10),C=i(C,R,D,B,F,h[14],2053994217,8),D=c(D,10),F=E(F,C,R,D,B,h[12],0,8),R=c(R,10),B=E(B,F,C,R,D,h[15],0,5),C=c(C,10),D=E(D,B,F,C,R,h[10],0,12),F=c(F,10),R=E(R,D,B,F,C,h[4],0,9),B=c(B,10),C=E(C,R,D,B,F,h[1],0,12),D=c(D,10),F=E(F,C,R,D,B,h[5],0,5),R=c(R,10),B=E(B,F,C,R,D,h[8],0,14),C=c(C,10),D=E(D,B,F,C,R,h[7],0,6),F=c(F,10),R=E(R,D,B,F,C,h[6],0,8),B=c(B,10),C=E(C,R,D,B,F,h[2],0,13),D=c(D,10),F=E(F,C,R,D,B,h[13],0,6),R=c(R,10),B=E(B,F,C,R,D,h[14],0,5),C=c(C,10),D=E(D,B,F,C,R,h[0],0,15),F=c(F,10),R=E(R,D,B,F,C,h[3],0,13),B=c(B,10),C=E(C,R,D,B,F,h[9],0,11),D=c(D,10),F=E(F,C,R,D,B,h[11],0,11),R=c(R,10);var K=this._b+w+R|0;this._b=this._c+M+D|0,this._c=this._d+A+B|0,this._d=this._e+p+F|0,this._e=this._a+v+C|0,this._a=K},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 h=new xe.Buffer(20);return h.writeInt32LE(this._a,0),h.writeInt32LE(this._b,4),h.writeInt32LE(this._c,8),h.writeInt32LE(this._d,12),h.writeInt32LE(this._e,16),h};function c(h,d){return h<<d|h>>>32-d}function E(h,d,p,v,w,M,A,B){return c(h+(d^p^v)+M+A|0,B)+w|0}function i(h,d,p,v,w,M,A,B){return c(h+(d&p|~d&v)+M+A|0,B)+w|0}function _(h,d,p,v,w,M,A,B){return c(h+((d|~p)^v)+M+A|0,B)+w|0}function y(h,d,p,v,w,M,A,B){return c(h+(d&v|p&~v)+M+A|0,B)+w|0}function m(h,d,p,v,w,M,A,B){return c(h+(d^(p|~v))+M+A|0,B)+w|0}return Zn=S,Zn}var Xn,es;function oc(){if(es)return Xn;es=1;var g=ze.requireSafeBuffer().Buffer,x=ec(),S=typeof Uint8Array<"u",c=S&&typeof ArrayBuffer<"u",E=c&&ArrayBuffer.isView;return Xn=function(i,_,y){if(typeof i=="string"||g.isBuffer(i)||S&&i instanceof Uint8Array||E&&E(i))return x(i,_);throw new TypeError(y+" must be a string, a Buffer, a Uint8Array, or a DataView")},Xn}var Yn,ts;function sc(){if(ts)return Yn;ts=1;var g=Q1(),x=tp(),S=X0(),c=ze.requireSafeBuffer().Buffer,E=ac(),i=fc(),_=oc(),y=c.alloc(128),m={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},h={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function d(M){return new x().update(M).digest()}function p(M){function A(B){return S(M).update(B).digest()}return M==="rmd160"||M==="ripemd160"?d:M==="md5"?g:A}function v(M,A,B){var F=p(M),C=M==="sha512"||M==="sha384"?128:64;A.length>C?A=F(A):A.length<C&&(A=c.concat([A,y],C));for(var R=c.allocUnsafe(C+m[M]),D=c.allocUnsafe(C+m[M]),K=0;K<C;K++)R[K]=A[K]^54,D[K]=A[K]^92;var q=c.allocUnsafe(C+B+4);R.copy(q,0,0,C),this.ipad1=q,this.ipad2=R,this.opad=D,this.alg=M,this.blocksize=C,this.hash=F,this.size=m[M]}v.prototype.run=function(M,A){M.copy(A,this.blocksize);var B=this.hash(A);return B.copy(this.opad,this.blocksize),this.hash(this.opad)};function w(M,A,B,F,C){E(B,F),M=_(M,i,"Password"),A=_(A,i,"Salt");var R=(C||"sha1").toLowerCase(),D=h[R]||R,K=m[D];if(typeof K!="number"||!K)throw new TypeError("Digest algorithm not supported: "+C);var q=new v(D,M,A.length),Y=c.allocUnsafe(F),J=c.allocUnsafe(A.length+4);A.copy(J,0,0,A.length);for(var V=0,re=K,u=Math.ceil(F/re),e=1;e<=u;e++){J.writeUInt32BE(e,A.length);for(var r=q.run(J,q.ipad1),n=r,a=1;a<B;a++){n=q.run(n,q.ipad2);for(var o=0;o<re;o++)r[o]^=n[o]}r.copy(Y,V),V+=re}return Y}return Yn=w,Yn}var Jn,rs;function rp(){if(rs)return Jn;rs=1;var g=ze.requireSafeBuffer().Buffer,x=ac(),S=fc(),c=sc(),E=oc(),i,_=ze.commonjsGlobal.crypto&&ze.commonjsGlobal.crypto.subtle,y={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"},m=[],h;function d(){return h||(ze.commonjsGlobal.process&&ze.commonjsGlobal.process.nextTick?h=ze.commonjsGlobal.process.nextTick:ze.commonjsGlobal.queueMicrotask?h=ze.commonjsGlobal.queueMicrotask:ze.commonjsGlobal.setImmediate?h=ze.commonjsGlobal.setImmediate:h=ze.commonjsGlobal.setTimeout,h)}function p(M,A,B,F,C){return _.importKey("raw",M,{name:"PBKDF2"},!1,["deriveBits"]).then(function(R){return _.deriveBits({name:"PBKDF2",salt:A,iterations:B,hash:{name:C}},R,F<<3)}).then(function(R){return g.from(R)})}function v(M){if(ze.commonjsGlobal.process&&!ze.commonjsGlobal.process.browser||!_||!_.importKey||!_.deriveBits)return Promise.resolve(!1);if(m[M]!==void 0)return m[M];i=i||g.alloc(8);var A=p(i,i,10,128,M).then(function(){return!0},function(){return!1});return m[M]=A,A}function w(M,A){M.then(function(B){d()(function(){A(null,B)})},function(B){d()(function(){A(B)})})}return Jn=function(M,A,B,F,C,R){typeof C=="function"&&(R=C,C=void 0),C=C||"sha1";var D=y[C.toLowerCase()];if(!D||typeof ze.commonjsGlobal.Promise!="function"){d()(function(){var K;try{K=c(M,A,B,F,C)}catch(q){R(q);return}R(null,K)});return}if(x(B,F),M=E(M,S,"Password"),A=E(A,S,"Salt"),typeof R!="function")throw new Error("No callback provided to pbkdf2");w(v(D).then(function(K){return K?p(M,A,B,F,D):c(M,A,B,F,C)}),R)},Jn}var is;function hc(){return is||(is=1,Nr.pbkdf2=rp(),Nr.pbkdf2Sync=sc()),Nr}var Kt={},rr={},$t={},ns;function uc(){if(ns)return $t;ns=1,$t.readUInt32BE=function(E,i){var _=E[0+i]<<24|E[1+i]<<16|E[2+i]<<8|E[3+i];return _>>>0},$t.writeUInt32BE=function(E,i,_){E[0+_]=i>>>24,E[1+_]=i>>>16&255,E[2+_]=i>>>8&255,E[3+_]=i&255},$t.ip=function(E,i,_,y){for(var m=0,h=0,d=6;d>=0;d-=2){for(var p=0;p<=24;p+=8)m<<=1,m|=i>>>p+d&1;for(var p=0;p<=24;p+=8)m<<=1,m|=E>>>p+d&1}for(var d=6;d>=0;d-=2){for(var p=1;p<=25;p+=8)h<<=1,h|=i>>>p+d&1;for(var p=1;p<=25;p+=8)h<<=1,h|=E>>>p+d&1}_[y+0]=m>>>0,_[y+1]=h>>>0},$t.rip=function(E,i,_,y){for(var m=0,h=0,d=0;d<4;d++)for(var p=24;p>=0;p-=8)m<<=1,m|=i>>>p+d&1,m<<=1,m|=E>>>p+d&1;for(var d=4;d<8;d++)for(var p=24;p>=0;p-=8)h<<=1,h|=i>>>p+d&1,h<<=1,h|=E>>>p+d&1;_[y+0]=m>>>0,_[y+1]=h>>>0},$t.pc1=function(E,i,_,y){for(var m=0,h=0,d=7;d>=5;d--){for(var p=0;p<=24;p+=8)m<<=1,m|=i>>p+d&1;for(var p=0;p<=24;p+=8)m<<=1,m|=E>>p+d&1}for(var p=0;p<=24;p+=8)m<<=1,m|=i>>p+d&1;for(var d=1;d<=3;d++){for(var p=0;p<=24;p+=8)h<<=1,h|=i>>p+d&1;for(var p=0;p<=24;p+=8)h<<=1,h|=E>>p+d&1}for(var p=0;p<=24;p+=8)h<<=1,h|=E>>p+d&1;_[y+0]=m>>>0,_[y+1]=h>>>0},$t.r28shl=function(E,i){return E<<i&268435455|E>>>28-i};var g=[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,i,_,y){for(var m=0,h=0,d=g.length>>>1,p=0;p<d;p++)m<<=1,m|=E>>>g[p]&1;for(var p=d;p<g.length;p++)h<<=1,h|=i>>>g[p]&1;_[y+0]=m>>>0,_[y+1]=h>>>0},$t.expand=function(E,i,_){var y=0,m=0;y=(E&1)<<5|E>>>27;for(var h=23;h>=15;h-=4)y<<=6,y|=E>>>h&63;for(var h=11;h>=3;h-=4)m|=E>>>h&63,m<<=6;m|=(E&31)<<1|E>>>31,i[_+0]=y>>>0,i[_+1]=m>>>0};var x=[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,i){for(var _=0,y=0;y<4;y++){var m=E>>>18-y*6&63,h=x[y*64+m];_<<=4,_|=h}for(var y=0;y<4;y++){var m=i>>>18-y*6&63,h=x[256+y*64+m];_<<=4,_|=h}return _>>>0};var S=[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];return $t.permute=function(E){for(var i=0,_=0;_<S.length;_++)i<<=1,i|=E>>>S[_]&1;return i>>>0},$t.padSplit=function(E,i,_){for(var y=E.toString(2);y.length<i;)y="0"+y;for(var m=[],h=0;h<i;h+=_)m.push(y.slice(h,h+_));return m.join(" ")},$t}var Qn,as;function Gt(){if(as)return Qn;as=1,Qn=g;function g(x,S){if(!x)throw new Error(S||"Assertion failed")}return g.equal=function(S,c,E){if(S!=c)throw new Error(E||"Assertion failed: "+S+" != "+c)},Qn}var ea,fs;function Y0(){if(fs)return ea;fs=1;var g=Gt();function x(S){this.options=S,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=S.padding!==!1}return ea=x,x.prototype._init=function(){},x.prototype.update=function(c){return c.length===0?[]:this.type==="decrypt"?this._updateDecrypt(c):this._updateEncrypt(c)},x.prototype._buffer=function(c,E){for(var i=Math.min(this.buffer.length-this.bufferOff,c.length-E),_=0;_<i;_++)this.buffer[this.bufferOff+_]=c[E+_];return this.bufferOff+=i,i},x.prototype._flushBuffer=function(c,E){return this._update(this.buffer,0,c,E),this.bufferOff=0,this.blockSize},x.prototype._updateEncrypt=function(c){var E=0,i=0,_=(this.bufferOff+c.length)/this.blockSize|0,y=new Array(_*this.blockSize);this.bufferOff!==0&&(E+=this._buffer(c,E),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(y,i)));for(var m=c.length-(c.length-E)%this.blockSize;E<m;E+=this.blockSize)this._update(c,E,y,i),i+=this.blockSize;for(;E<c.length;E++,this.bufferOff++)this.buffer[this.bufferOff]=c[E];return y},x.prototype._updateDecrypt=function(c){for(var E=0,i=0,_=Math.ceil((this.bufferOff+c.length)/this.blockSize)-1,y=new Array(_*this.blockSize);_>0;_--)E+=this._buffer(c,E),i+=this._flushBuffer(y,i);return E+=this._buffer(c,E),y},x.prototype.final=function(c){var E;c&&(E=this.update(c));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),E?E.concat(i):i},x.prototype._pad=function(c,E){if(E===0)return!1;for(;E<c.length;)c[E++]=0;return!0},x.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var c=new Array(this.blockSize);return this._update(this.buffer,0,c,0),c},x.prototype._unpad=function(c){return c},x.prototype._finalDecrypt=function(){g.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var c=new Array(this.blockSize);return this._flushBuffer(c,0),this._unpad(c)},ea}var ta,os;function cc(){if(os)return ta;os=1;var g=Gt(),x=dt(),S=uc(),c=Y0();function E(){this.tmp=new Array(2),this.keys=null}function i(y){c.call(this,y);var m=new E;this._desState=m,this.deriveKeys(m,y.key)}x(i,c),ta=i,i.create=function(m){return new i(m)};var _=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return i.prototype.deriveKeys=function(m,h){m.keys=new Array(32),g.equal(h.length,this.blockSize,"Invalid key length");var d=S.readUInt32BE(h,0),p=S.readUInt32BE(h,4);S.pc1(d,p,m.tmp,0),d=m.tmp[0],p=m.tmp[1];for(var v=0;v<m.keys.length;v+=2){var w=_[v>>>1];d=S.r28shl(d,w),p=S.r28shl(p,w),S.pc2(d,p,m.keys,v)}},i.prototype._update=function(m,h,d,p){var v=this._desState,w=S.readUInt32BE(m,h),M=S.readUInt32BE(m,h+4);S.ip(w,M,v.tmp,0),w=v.tmp[0],M=v.tmp[1],this.type==="encrypt"?this._encrypt(v,w,M,v.tmp,0):this._decrypt(v,w,M,v.tmp,0),w=v.tmp[0],M=v.tmp[1],S.writeUInt32BE(d,w,p),S.writeUInt32BE(d,M,p+4)},i.prototype._pad=function(m,h){if(this.padding===!1)return!1;for(var d=m.length-h,p=h;p<m.length;p++)m[p]=d;return!0},i.prototype._unpad=function(m){if(this.padding===!1)return m;for(var h=m[m.length-1],d=m.length-h;d<m.length;d++)g.equal(m[d],h);return m.slice(0,m.length-h)},i.prototype._encrypt=function(m,h,d,p,v){for(var w=h,M=d,A=0;A<m.keys.length;A+=2){var B=m.keys[A],F=m.keys[A+1];S.expand(M,m.tmp,0),B^=m.tmp[0],F^=m.tmp[1];var C=S.substitute(B,F),R=S.permute(C),D=M;M=(w^R)>>>0,w=D}S.rip(M,w,p,v)},i.prototype._decrypt=function(m,h,d,p,v){for(var w=d,M=h,A=m.keys.length-2;A>=0;A-=2){var B=m.keys[A],F=m.keys[A+1];S.expand(w,m.tmp,0),B^=m.tmp[0],F^=m.tmp[1];var C=S.substitute(B,F),R=S.permute(C),D=w;w=(M^R)>>>0,M=D}S.rip(w,M,p,v)},ta}var ra={},ss;function ip(){if(ss)return ra;ss=1;var g=Gt(),x=dt(),S={};function c(i){g.equal(i.length,8,"Invalid IV length"),this.iv=new Array(8);for(var _=0;_<this.iv.length;_++)this.iv[_]=i[_]}function E(i){function _(d){i.call(this,d),this._cbcInit()}x(_,i);for(var y=Object.keys(S),m=0;m<y.length;m++){var h=y[m];_.prototype[h]=S[h]}return _.create=function(p){return new _(p)},_}return ra.instantiate=E,S._cbcInit=function(){var _=new c(this.options.iv);this._cbcState=_},S._update=function(_,y,m,h){var d=this._cbcState,p=this.constructor.super_.prototype,v=d.iv;if(this.type==="encrypt"){for(var w=0;w<this.blockSize;w++)v[w]^=_[y+w];p._update.call(this,v,0,m,h);for(var w=0;w<this.blockSize;w++)v[w]=m[h+w]}else{p._update.call(this,_,y,m,h);for(var w=0;w<this.blockSize;w++)m[h+w]^=v[w];for(var w=0;w<this.blockSize;w++)v[w]=_[y+w]}},ra}var ia,hs;function np(){if(hs)return ia;hs=1;var g=Gt(),x=dt(),S=Y0(),c=cc();function E(_,y){g.equal(y.length,24,"Invalid key length");var m=y.slice(0,8),h=y.slice(8,16),d=y.slice(16,24);_==="encrypt"?this.ciphers=[c.create({type:"encrypt",key:m}),c.create({type:"decrypt",key:h}),c.create({type:"encrypt",key:d})]:this.ciphers=[c.create({type:"decrypt",key:d}),c.create({type:"encrypt",key:h}),c.create({type:"decrypt",key:m})]}function i(_){S.call(this,_);var y=new E(this.type,this.options.key);this._edeState=y}return x(i,S),ia=i,i.create=function(y){return new i(y)},i.prototype._update=function(y,m,h,d){var p=this._edeState;p.ciphers[0]._update(y,m,h,d),p.ciphers[1]._update(h,d,h,d),p.ciphers[2]._update(h,d,h,d)},i.prototype._pad=c.prototype._pad,i.prototype._unpad=c.prototype._unpad,ia}var us;function ap(){return us||(us=1,rr.utils=uc(),rr.Cipher=Y0(),rr.DES=cc(),rr.CBC=ip(),rr.EDE=np()),rr}var na,cs;function fp(){if(cs)return na;cs=1;var g=er(),x=ap(),S=dt(),c=ze.requireSafeBuffer().Buffer,E={"des-ede3-cbc":x.CBC.instantiate(x.EDE),"des-ede3":x.EDE,"des-ede-cbc":x.CBC.instantiate(x.EDE),"des-ede":x.EDE,"des-cbc":x.CBC.instantiate(x.DES),"des-ecb":x.DES};E.des=E["des-cbc"],E.des3=E["des-ede3-cbc"],na=i,S(i,g);function i(_){g.call(this);var y=_.mode.toLowerCase(),m=E[y],h;_.decrypt?h="decrypt":h="encrypt";var d=_.key;c.isBuffer(d)||(d=c.from(d)),(y==="des-ede"||y==="des-ede-cbc")&&(d=c.concat([d,d.slice(0,8)]));var p=_.iv;c.isBuffer(p)||(p=c.from(p)),this._des=m.create({key:d,iv:p,type:h})}return i.prototype._update=function(_){return c.from(this._des.update(_))},i.prototype._final=function(){return c.from(this._des.final())},na}var Wt={},Pr={},qr={},ls;function op(){return ls||(ls=1,qr.encrypt=function(g,x){return g._cipher.encryptBlock(x)},qr.decrypt=function(g,x){return g._cipher.decryptBlock(x)}),qr}var Or={},aa,ds;function Sr(){return ds||(ds=1,aa=function(x,S){for(var c=Math.min(x.length,S.length),E=new xe.Buffer(c),i=0;i<c;++i)E[i]=x[i]^S[i];return E}),aa}var ps;function sp(){if(ps)return Or;ps=1;var g=Sr();return Or.encrypt=function(x,S){var c=g(S,x._prev);return x._prev=x._cipher.encryptBlock(c),x._prev},Or.decrypt=function(x,S){var c=x._prev;x._prev=S;var E=x._cipher.decryptBlock(S);return g(E,c)},Or}var fa={},vs;function hp(){if(vs)return fa;vs=1;var g=ze.requireSafeBuffer().Buffer,x=Sr();function S(c,E,i){var _=E.length,y=x(E,c._cache);return c._cache=c._cache.slice(_),c._prev=g.concat([c._prev,i?E:y]),y}return fa.encrypt=function(c,E,i){for(var _=g.allocUnsafe(0),y;E.length;)if(c._cache.length===0&&(c._cache=c._cipher.encryptBlock(c._prev),c._prev=g.allocUnsafe(0)),c._cache.length<=E.length)y=c._cache.length,_=g.concat([_,S(c,E.slice(0,y),i)]),E=E.slice(y);else{_=g.concat([_,S(c,E,i)]);break}return _},fa}var oa={},bs;function up(){if(bs)return oa;bs=1;var g=ze.requireSafeBuffer().Buffer;function x(S,c,E){var i=S._cipher.encryptBlock(S._prev),_=i[0]^c;return S._prev=g.concat([S._prev.slice(1),g.from([E?c:_])]),_}return oa.encrypt=function(S,c,E){for(var i=c.length,_=g.allocUnsafe(i),y=-1;++y<i;)_[y]=x(S,c[y],E);return _},oa}var sa={},ms;function cp(){if(ms)return sa;ms=1;var g=ze.requireSafeBuffer().Buffer;function x(c,E,i){for(var _,y=-1,m=8,h=0,d,p;++y<m;)_=c._cipher.encryptBlock(c._prev),d=E&1<<7-y?128:0,p=_[0]^d,h+=(p&128)>>y%8,c._prev=S(c._prev,i?d:p);return h}function S(c,E){var i=c.length,_=-1,y=g.allocUnsafe(c.length);for(c=g.concat([c,g.from([E])]);++_<i;)y[_]=c[_]<<1|c[_+1]>>7;return y}return sa.encrypt=function(c,E,i){for(var _=E.length,y=g.allocUnsafe(_),m=-1;++m<_;)y[m]=x(c,E[m],i);return y},sa}var ha={},ys;function lp(){if(ys)return ha;ys=1;var g=Sr();function x(S){return S._prev=S._cipher.encryptBlock(S._prev),S._prev}return ha.encrypt=function(S,c){for(;S._cache.length<c.length;)S._cache=xe.Buffer.concat([S._cache,x(S)]);var E=S._cache.slice(0,c.length);return S._cache=S._cache.slice(c.length),g(c,E)},ha}var ua={},ca,gs;function lc(){if(gs)return ca;gs=1;function g(x){for(var S=x.length,c;S--;)if(c=x.readUInt8(S),c===255)x.writeUInt8(0,S);else{c++,x.writeUInt8(c,S);break}}return ca=g,ca}var xs;function ws(){if(xs)return ua;xs=1;var g=Sr(),x=ze.requireSafeBuffer().Buffer,S=lc();function c(i){var _=i._cipher.encryptBlockRaw(i._prev);return S(i._prev),_}var E=16;return ua.encrypt=function(i,_){var y=Math.ceil(_.length/E),m=i._cache.length;i._cache=x.concat([i._cache,x.allocUnsafe(y*E)]);for(var h=0;h<y;h++){var d=c(i),p=m+h*E;i._cache.writeUInt32BE(d[0],p+0),i._cache.writeUInt32BE(d[1],p+4),i._cache.writeUInt32BE(d[2],p+8),i._cache.writeUInt32BE(d[3],p+12)}var v=i._cache.slice(0,_.length);return i._cache=i._cache.slice(_.length),g(_,v)},ua}const dp={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},pp={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},vp={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},dc={"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:dp,aes192:pp,aes256:vp,"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"}};var la,Ms;function J0(){if(Ms)return la;Ms=1;var g={ECB:op(),CBC:sp(),CFB:hp(),CFB8:up(),CFB1:cp(),OFB:lp(),CTR:ws(),GCM:ws()},x=dc;for(var S in x)x[S].module=g[x[S].mode];return la=x,la}var da={},_s;function ai(){if(_s)return da;_s=1;var g=ze.requireSafeBuffer().Buffer;function x(y){g.isBuffer(y)||(y=g.from(y));for(var m=y.length/4|0,h=new Array(m),d=0;d<m;d++)h[d]=y.readUInt32BE(d*4);return h}function S(y){for(var m=0;m<y.length;y++)y[m]=0}function c(y,m,h,d,p){for(var v=h[0],w=h[1],M=h[2],A=h[3],B=y[0]^m[0],F=y[1]^m[1],C=y[2]^m[2],R=y[3]^m[3],D,K,q,Y,J=4,V=1;V<p;V++)D=v[B>>>24]^w[F>>>16&255]^M[C>>>8&255]^A[R&255]^m[J++],K=v[F>>>24]^w[C>>>16&255]^M[R>>>8&255]^A[B&255]^m[J++],q=v[C>>>24]^w[R>>>16&255]^M[B>>>8&255]^A[F&255]^m[J++],Y=v[R>>>24]^w[B>>>16&255]^M[F>>>8&255]^A[C&255]^m[J++],B=D,F=K,C=q,R=Y;return D=(d[B>>>24]<<24|d[F>>>16&255]<<16|d[C>>>8&255]<<8|d[R&255])^m[J++],K=(d[F>>>24]<<24|d[C>>>16&255]<<16|d[R>>>8&255]<<8|d[B&255])^m[J++],q=(d[C>>>24]<<24|d[R>>>16&255]<<16|d[B>>>8&255]<<8|d[F&255])^m[J++],Y=(d[R>>>24]<<24|d[B>>>16&255]<<16|d[F>>>8&255]<<8|d[C&255])^m[J++],D=D>>>0,K=K>>>0,q=q>>>0,Y=Y>>>0,[D,K,q,Y]}var E=[0,1,2,4,8,16,32,64,128,27,54],i=(function(){for(var y=new Array(256),m=0;m<256;m++)m<128?y[m]=m<<1:y[m]=m<<1^283;for(var h=[],d=[],p=[[],[],[],[]],v=[[],[],[],[]],w=0,M=0,A=0;A<256;++A){var B=M^M<<1^M<<2^M<<3^M<<4;B=B>>>8^B&255^99,h[w]=B,d[B]=w;var F=y[w],C=y[F],R=y[C],D=y[B]*257^B*16843008;p[0][w]=D<<24|D>>>8,p[1][w]=D<<16|D>>>16,p[2][w]=D<<8|D>>>24,p[3][w]=D,D=R*16843009^C*65537^F*257^w*16843008,v[0][B]=D<<24|D>>>8,v[1][B]=D<<16|D>>>16,v[2][B]=D<<8|D>>>24,v[3][B]=D,w===0?w=M=1:(w=F^y[y[y[R^F]]],M^=y[y[M]])}return{SBOX:h,INV_SBOX:d,SUB_MIX:p,INV_SUB_MIX:v}})();function _(y){this._key=x(y),this._reset()}return _.blockSize=16,_.keySize=256/8,_.prototype.blockSize=_.blockSize,_.prototype.keySize=_.keySize,_.prototype._reset=function(){for(var y=this._key,m=y.length,h=m+6,d=(h+1)*4,p=[],v=0;v<m;v++)p[v]=y[v];for(v=m;v<d;v++){var w=p[v-1];v%m===0?(w=w<<8|w>>>24,w=i.SBOX[w>>>24]<<24|i.SBOX[w>>>16&255]<<16|i.SBOX[w>>>8&255]<<8|i.SBOX[w&255],w^=E[v/m|0]<<24):m>6&&v%m===4&&(w=i.SBOX[w>>>24]<<24|i.SBOX[w>>>16&255]<<16|i.SBOX[w>>>8&255]<<8|i.SBOX[w&255]),p[v]=p[v-m]^w}for(var M=[],A=0;A<d;A++){var B=d-A,F=p[B-(A%4?0:4)];A<4||B<=4?M[A]=F:M[A]=i.INV_SUB_MIX[0][i.SBOX[F>>>24]]^i.INV_SUB_MIX[1][i.SBOX[F>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[F>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[F&255]]}this._nRounds=h,this._keySchedule=p,this._invKeySchedule=M},_.prototype.encryptBlockRaw=function(y){return y=x(y),c(y,this._keySchedule,i.SUB_MIX,i.SBOX,this._nRounds)},_.prototype.encryptBlock=function(y){var m=this.encryptBlockRaw(y),h=g.allocUnsafe(16);return h.writeUInt32BE(m[0],0),h.writeUInt32BE(m[1],4),h.writeUInt32BE(m[2],8),h.writeUInt32BE(m[3],12),h},_.prototype.decryptBlock=function(y){y=x(y);var m=y[1];y[1]=y[3],y[3]=m;var h=c(y,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX,this._nRounds),d=g.allocUnsafe(16);return d.writeUInt32BE(h[0],0),d.writeUInt32BE(h[3],4),d.writeUInt32BE(h[2],8),d.writeUInt32BE(h[1],12),d},_.prototype.scrub=function(){S(this._keySchedule),S(this._invKeySchedule),S(this._key)},da.AES=_,da}var pa,Es;function bp(){if(Es)return pa;Es=1;var g=ze.requireSafeBuffer().Buffer,x=g.alloc(16,0);function S(i){return[i.readUInt32BE(0),i.readUInt32BE(4),i.readUInt32BE(8),i.readUInt32BE(12)]}function c(i){var _=g.allocUnsafe(16);return _.writeUInt32BE(i[0]>>>0,0),_.writeUInt32BE(i[1]>>>0,4),_.writeUInt32BE(i[2]>>>0,8),_.writeUInt32BE(i[3]>>>0,12),_}function E(i){this.h=i,this.state=g.alloc(16,0),this.cache=g.allocUnsafe(0)}return E.prototype.ghash=function(i){for(var _=-1;++_<i.length;)this.state[_]^=i[_];this._multiply()},E.prototype._multiply=function(){for(var i=S(this.h),_=[0,0,0,0],y,m,h,d=-1;++d<128;){for(m=(this.state[~~(d/8)]&1<<7-d%8)!==0,m&&(_[0]^=i[0],_[1]^=i[1],_[2]^=i[2],_[3]^=i[3]),h=(i[3]&1)!==0,y=3;y>0;y--)i[y]=i[y]>>>1|(i[y-1]&1)<<31;i[0]=i[0]>>>1,h&&(i[0]=i[0]^225<<24)}this.state=c(_)},E.prototype.update=function(i){this.cache=g.concat([this.cache,i]);for(var _;this.cache.length>=16;)_=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(_)},E.prototype.final=function(i,_){return this.cache.length&&this.ghash(g.concat([this.cache,x],16)),this.ghash(c([0,i,0,_])),this.state},pa=E,pa}var va,As;function pc(){if(As)return va;As=1;var g=ai(),x=ze.requireSafeBuffer().Buffer,S=er(),c=dt(),E=bp(),i=Sr(),_=lc();function y(d,p){var v=0;d.length!==p.length&&v++;for(var w=Math.min(d.length,p.length),M=0;M<w;++M)v+=d[M]^p[M];return v}function m(d,p,v){if(p.length===12)return d._finID=x.concat([p,x.from([0,0,0,1])]),x.concat([p,x.from([0,0,0,2])]);var w=new E(v),M=p.length,A=M%16;w.update(p),A&&(A=16-A,w.update(x.alloc(A,0))),w.update(x.alloc(8,0));var B=M*8,F=x.alloc(8);F.writeUIntBE(B,0,8),w.update(F),d._finID=w.state;var C=x.from(d._finID);return _(C),C}function h(d,p,v,w){S.call(this);var M=x.alloc(4,0);this._cipher=new g.AES(p);var A=this._cipher.encryptBlock(M);this._ghash=new E(A),v=m(this,v,A),this._prev=x.from(v),this._cache=x.allocUnsafe(0),this._secCache=x.allocUnsafe(0),this._decrypt=w,this._alen=0,this._len=0,this._mode=d,this._authTag=null,this._called=!1}return c(h,S),h.prototype._update=function(d){if(!this._called&&this._alen){var p=16-this._alen%16;p<16&&(p=x.alloc(p,0),this._ghash.update(p))}this._called=!0;var v=this._mode.encrypt(this,d);return this._decrypt?this._ghash.update(d):this._ghash.update(v),this._len+=d.length,v},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var d=i(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&y(d,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=d,this._cipher.scrub()},h.prototype.getAuthTag=function(){if(this._decrypt||!x.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},h.prototype.setAuthTag=function(p){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=p},h.prototype.setAAD=function(p){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(p),this._alen+=p.length},va=h,va}var ba,Ss;function vc(){if(Ss)return ba;Ss=1;var g=ai(),x=ze.requireSafeBuffer().Buffer,S=er(),c=dt();function E(i,_,y,m){S.call(this),this._cipher=new g.AES(_),this._prev=x.from(y),this._cache=x.allocUnsafe(0),this._secCache=x.allocUnsafe(0),this._decrypt=m,this._mode=i}return c(E,S),E.prototype._update=function(i){return this._mode.encrypt(this,i,this._decrypt)},E.prototype._final=function(){this._cipher.scrub()},ba=E,ba}var ma,Bs;function fi(){if(Bs)return ma;Bs=1;var g=ze.requireSafeBuffer().Buffer,x=H0();function S(c,E,i,_){if(g.isBuffer(c)||(c=g.from(c,"binary")),E&&(g.isBuffer(E)||(E=g.from(E,"binary")),E.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var y=i/8,m=g.alloc(y),h=g.alloc(_||0),d=g.alloc(0);y>0||_>0;){var p=new x;p.update(d),p.update(c),E&&p.update(E),d=p.digest();var v=0;if(y>0){var w=m.length-y;v=Math.min(y,d.length),d.copy(m,w,0,v),y-=v}if(v<d.length&&_>0){var M=h.length-_,A=Math.min(_,d.length-v);d.copy(h,M,v,v+A),_-=A}}return d.fill(0),{key:m,iv:h}}return ma=S,ma}var Fs;function mp(){if(Fs)return Pr;Fs=1;var g=J0(),x=pc(),S=ze.requireSafeBuffer().Buffer,c=vc(),E=er(),i=ai(),_=fi(),y=dt();function m(w,M,A){E.call(this),this._cache=new d,this._cipher=new i.AES(M),this._prev=S.from(A),this._mode=w,this._autopadding=!0}y(m,E),m.prototype._update=function(w){this._cache.add(w);for(var M,A,B=[];M=this._cache.get();)A=this._mode.encrypt(this,M),B.push(A);return S.concat(B)};var h=S.alloc(16,16);m.prototype._final=function(){var w=this._cache.flush();if(this._autopadding)return w=this._mode.encrypt(this,w),this._cipher.scrub(),w;if(!w.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(w){return this._autopadding=!!w,this};function d(){this.cache=S.allocUnsafe(0)}d.prototype.add=function(w){this.cache=S.concat([this.cache,w])},d.prototype.get=function(){if(this.cache.length>15){var w=this.cache.slice(0,16);return this.cache=this.cache.slice(16),w}return null},d.prototype.flush=function(){for(var w=16-this.cache.length,M=S.allocUnsafe(w),A=-1;++A<w;)M.writeUInt8(w,A);return S.concat([this.cache,M])};function p(w,M,A){var B=g[w.toLowerCase()];if(!B)throw new TypeError("invalid suite type");if(typeof M=="string"&&(M=S.from(M)),M.length!==B.key/8)throw new TypeError("invalid key length "+M.length);if(typeof A=="string"&&(A=S.from(A)),B.mode!=="GCM"&&A.length!==B.iv)throw new TypeError("invalid iv length "+A.length);return B.type==="stream"?new c(B.module,M,A):B.type==="auth"?new x(B.module,M,A):new m(B.module,M,A)}function v(w,M){var A=g[w.toLowerCase()];if(!A)throw new TypeError("invalid suite type");var B=_(M,!1,A.key,A.iv);return p(w,B.key,B.iv)}return Pr.createCipheriv=p,Pr.createCipher=v,Pr}var Ur={},Cs;function yp(){if(Cs)return Ur;Cs=1;var g=pc(),x=ze.requireSafeBuffer().Buffer,S=J0(),c=vc(),E=er(),i=ai(),_=fi(),y=dt();function m(w,M,A){E.call(this),this._cache=new h,this._last=void 0,this._cipher=new i.AES(M),this._prev=x.from(A),this._mode=w,this._autopadding=!0}y(m,E),m.prototype._update=function(w){this._cache.add(w);for(var M,A,B=[];M=this._cache.get(this._autopadding);)A=this._mode.decrypt(this,M),B.push(A);return x.concat(B)},m.prototype._final=function(){var w=this._cache.flush();if(this._autopadding)return d(this._mode.decrypt(this,w));if(w)throw new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(w){return this._autopadding=!!w,this};function h(){this.cache=x.allocUnsafe(0)}h.prototype.add=function(w){this.cache=x.concat([this.cache,w])},h.prototype.get=function(w){var M;if(w){if(this.cache.length>16)return M=this.cache.slice(0,16),this.cache=this.cache.slice(16),M}else if(this.cache.length>=16)return M=this.cache.slice(0,16),this.cache=this.cache.slice(16),M;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache};function d(w){var M=w[15];if(M<1||M>16)throw new Error("unable to decrypt data");for(var A=-1;++A<M;)if(w[A+(16-M)]!==M)throw new Error("unable to decrypt data");if(M!==16)return w.slice(0,16-M)}function p(w,M,A){var B=S[w.toLowerCase()];if(!B)throw new TypeError("invalid suite type");if(typeof A=="string"&&(A=x.from(A)),B.mode!=="GCM"&&A.length!==B.iv)throw new TypeError("invalid iv length "+A.length);if(typeof M=="string"&&(M=x.from(M)),M.length!==B.key/8)throw new TypeError("invalid key length "+M.length);return B.type==="stream"?new c(B.module,M,A,!0):B.type==="auth"?new g(B.module,M,A,!0):new m(B.module,M,A)}function v(w,M){var A=S[w.toLowerCase()];if(!A)throw new TypeError("invalid suite type");var B=_(M,!1,A.key,A.iv);return p(w,B.key,B.iv)}return Ur.createDecipher=v,Ur.createDecipheriv=p,Ur}var Ds;function Q0(){if(Ds)return Wt;Ds=1;var g=mp(),x=yp(),S=dc;function c(){return Object.keys(S)}return Wt.createCipher=Wt.Cipher=g.createCipher,Wt.createCipheriv=Wt.Cipheriv=g.createCipheriv,Wt.createDecipher=Wt.Decipher=x.createDecipher,Wt.createDecipheriv=Wt.Decipheriv=x.createDecipheriv,Wt.listCiphers=Wt.getCiphers=c,Wt}var ya={},Rs;function gp(){return Rs||(Rs=1,(function(g){g["des-ecb"]={key:8,iv:0},g["des-cbc"]=g.des={key:8,iv:8},g["des-ede3-cbc"]=g.des3={key:24,iv:8},g["des-ede3"]={key:24,iv:0},g["des-ede-cbc"]={key:16,iv:8},g["des-ede"]={key:16,iv:0}})(ya)),ya}var Ts;function xp(){if(Ts)return Kt;Ts=1;var g=fp(),x=Q0(),S=J0(),c=gp(),E=fi();function i(d,p){d=d.toLowerCase();var v,w;if(S[d])v=S[d].key,w=S[d].iv;else if(c[d])v=c[d].key*8,w=c[d].iv;else throw new TypeError("invalid suite type");var M=E(p,!1,v,w);return y(d,M.key,M.iv)}function _(d,p){d=d.toLowerCase();var v,w;if(S[d])v=S[d].key,w=S[d].iv;else if(c[d])v=c[d].key*8,w=c[d].iv;else throw new TypeError("invalid suite type");var M=E(p,!1,v,w);return m(d,M.key,M.iv)}function y(d,p,v){if(d=d.toLowerCase(),S[d])return x.createCipheriv(d,p,v);if(c[d])return new g({key:p,iv:v,mode:d});throw new TypeError("invalid suite type")}function m(d,p,v){if(d=d.toLowerCase(),S[d])return x.createDecipheriv(d,p,v);if(c[d])return new g({key:p,iv:v,mode:d,decrypt:!0});throw new TypeError("invalid suite type")}function h(){return Object.keys(c).concat(x.getCiphers())}return Kt.createCipher=Kt.Cipher=i,Kt.createCipheriv=Kt.Cipheriv=y,Kt.createDecipher=Kt.Decipher=_,Kt.createDecipheriv=Kt.Decipheriv=m,Kt.listCiphers=Kt.getCiphers=h,Kt}var ir={},jr={exports:{}},wp=jr.exports,Is;function bc(){return Is||(Is=1,(function(g){(function(x,S){function c(u,e){if(!u)throw new Error(e||"Assertion failed")}function E(u,e){u.super_=e;var r=function(){};r.prototype=e.prototype,u.prototype=new r,u.prototype.constructor=u}function i(u,e,r){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(u||0,e||10,r||"be"))}typeof x=="object"?x.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=ze.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),c(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(c(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(c(typeof e.length=="number"),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 a=0;a<this.length;a++)this.words[a]=0;var o,l,b=0;if(n==="be")for(a=e.length-1,o=0;a>=0;a-=3)l=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);else if(n==="le")for(a=0,o=0;a<e.length;a+=3)l=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);return this.strip()};function y(u,e){var r=u.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(u,e,r){var n=y(u,r);return r-1>=e&&(n|=y(u,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o=0,l=0,b;if(n==="be")for(a=e.length-1;a>=r;a-=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8}this.strip()};function h(u,e,r,n){for(var a=0,o=Math.min(u.length,r),l=e;l<o;l++){var b=u.charCodeAt(l)-48;a*=n,b>=49?a+=b-49+10:b>=17?a+=b-17+10:a+=b}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,o=1;o<=67108863;o*=r)a++;a--,o=o/r|0;for(var l=e.length-n,b=l%a,f=Math.min(l,l-b)+n,t=0,s=n;s<f;s+=a)t=h(e,s,s+a,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(b!==0){var $=1;for(t=h(e,s,e.length,r),s=0;s<b;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],p=[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],v=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,o=0,l=0;l<this.length;l++){var b=this.words[l],f=((b<<a|o)&16777215).toString(16);o=b>>>24-a&16777215,a+=2,a>=26&&(a-=26,l--),o!==0||l!==this.length-1?n=d[6-f.length]+f+n:n=f+n}for(o!==0&&(n=o.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=v[e];n="";var $=this.clone();for($.negative=0;!$.isZero();){var W=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?n=W+n:n=d[t-W.length]+W+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}c(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return c(typeof _<"u"),this.toArrayLike(_,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),o=n||Math.max(1,a);c(a<=o,"byte array longer than desired length"),c(o>0,"Requested array length <= 0"),this.strip();var l=r==="le",b=new e(o),f,t,s=this.clone();if(l){for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[t]=f;for(;t<o;t++)b[t]=0}else{for(t=0;t<o-a;t++)b[t]=0;for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[o-t-1]=f}return b},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(u){for(var e=new Array(u.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(u.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return c((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return c((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return c((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){c(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){c(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var o=0,l=0;l<a.length;l++)r=(n.words[l]|0)+(a.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;for(;o!==0&&l<n.length;l++)r=(n.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;if(this.length=n.length,o!==0)this.words[this.length]=o,this.length++;else if(n!==this)for(;l<n.length;l++)this.words[l]=n.words[l];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,o;n>0?(a=this,o=e):(a=e,o=this);for(var l=0,b=0;b<o.length;b++)r=(a.words[b]|0)-(o.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;for(;l!==0&&b<a.length;b++)r=(a.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;if(l===0&&b<a.length&&a!==this)for(;b<a.length;b++)this.words[b]=a.words[b];return this.length=Math.max(this.length,b),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function M(u,e,r){r.negative=e.negative^u.negative;var n=u.length+e.length|0;r.length=n,n=n-1|0;var a=u.words[0]|0,o=e.words[0]|0,l=a*o,b=l&67108863,f=l/67108864|0;r.words[0]=b;for(var t=1;t<n;t++){for(var s=f>>>26,$=f&67108863,W=Math.min(t,e.length-1),U=Math.max(0,t-u.length+1);U<=W;U++){var Q=t-U|0;a=u.words[Q]|0,o=e.words[U]|0,l=a*o+$,s+=l/67108864|0,$=l&67108863}r.words[t]=$|0,f=s|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var A=function(e,r,n){var a=e.words,o=r.words,l=n.words,b=0,f,t,s,$=a[0]|0,W=$&8191,U=$>>>13,Q=a[1]|0,X=Q&8191,P=Q>>>13,H=a[2]|0,Z=H&8191,k=H>>>13,N=a[3]|0,T=N&8191,j=N>>>13,fe=a[4]|0,ee=fe&8191,te=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,pt=o[0]|0,Ae=pt&8191,Se=pt>>>13,ct=o[1]|0,Me=ct&8191,ge=ct>>>13,wt=o[2]|0,Ce=wt&8191,De=wt>>>13,_t=o[3]|0,Te=_t&8191,Ie=_t>>>13,Dt=o[4]|0,Ne=Dt&8191,Pe=Dt>>>13,kt=o[5]|0,qe=kt&8191,Oe=kt>>>13,Pt=o[6]|0,ke=Pt&8191,Ue=Pt>>>13,O=o[7]|0,z=O&8191,L=O>>>13,I=o[8]|0,G=I&8191,ae=I>>>13,ye=o[9]|0,ue=ye&8191,le=ye>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(W,Ae),t=Math.imul(W,Se),t=t+Math.imul(U,Ae)|0,s=Math.imul(U,Se);var Je=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(X,Ae),t=Math.imul(X,Se),t=t+Math.imul(P,Ae)|0,s=Math.imul(P,Se),f=f+Math.imul(W,Me)|0,t=t+Math.imul(W,ge)|0,t=t+Math.imul(U,Me)|0,s=s+Math.imul(U,ge)|0;var We=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Z,Ae),t=Math.imul(Z,Se),t=t+Math.imul(k,Ae)|0,s=Math.imul(k,Se),f=f+Math.imul(X,Me)|0,t=t+Math.imul(X,ge)|0,t=t+Math.imul(P,Me)|0,s=s+Math.imul(P,ge)|0,f=f+Math.imul(W,Ce)|0,t=t+Math.imul(W,De)|0,t=t+Math.imul(U,Ce)|0,s=s+Math.imul(U,De)|0;var ht=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ae),t=Math.imul(T,Se),t=t+Math.imul(j,Ae)|0,s=Math.imul(j,Se),f=f+Math.imul(Z,Me)|0,t=t+Math.imul(Z,ge)|0,t=t+Math.imul(k,Me)|0,s=s+Math.imul(k,ge)|0,f=f+Math.imul(X,Ce)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(P,Ce)|0,s=s+Math.imul(P,De)|0,f=f+Math.imul(W,Te)|0,t=t+Math.imul(W,Ie)|0,t=t+Math.imul(U,Te)|0,s=s+Math.imul(U,Ie)|0;var Ve=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(ee,Ae),t=Math.imul(ee,Se),t=t+Math.imul(te,Ae)|0,s=Math.imul(te,Se),f=f+Math.imul(T,Me)|0,t=t+Math.imul(T,ge)|0,t=t+Math.imul(j,Me)|0,s=s+Math.imul(j,ge)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,s=s+Math.imul(k,De)|0,f=f+Math.imul(X,Te)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(P,Te)|0,s=s+Math.imul(P,Ie)|0,f=f+Math.imul(W,Ne)|0,t=t+Math.imul(W,Pe)|0,t=t+Math.imul(U,Ne)|0,s=s+Math.imul(U,Pe)|0;var et=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ae),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ae)|0,s=Math.imul(ne,Se),f=f+Math.imul(ee,Me)|0,t=t+Math.imul(ee,ge)|0,t=t+Math.imul(te,Me)|0,s=s+Math.imul(te,ge)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(j,Ce)|0,s=s+Math.imul(j,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,s=s+Math.imul(k,Ie)|0,f=f+Math.imul(X,Ne)|0,t=t+Math.imul(X,Pe)|0,t=t+Math.imul(P,Ne)|0,s=s+Math.imul(P,Pe)|0,f=f+Math.imul(W,qe)|0,t=t+Math.imul(W,Oe)|0,t=t+Math.imul(U,qe)|0,s=s+Math.imul(U,Oe)|0;var tt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ae),t=Math.imul(oe,Se),t=t+Math.imul(se,Ae)|0,s=Math.imul(se,Se),f=f+Math.imul(ie,Me)|0,t=t+Math.imul(ie,ge)|0,t=t+Math.imul(ne,Me)|0,s=s+Math.imul(ne,ge)|0,f=f+Math.imul(ee,Ce)|0,t=t+Math.imul(ee,De)|0,t=t+Math.imul(te,Ce)|0,s=s+Math.imul(te,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(j,Te)|0,s=s+Math.imul(j,Ie)|0,f=f+Math.imul(Z,Ne)|0,t=t+Math.imul(Z,Pe)|0,t=t+Math.imul(k,Ne)|0,s=s+Math.imul(k,Pe)|0,f=f+Math.imul(X,qe)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(P,qe)|0,s=s+Math.imul(P,Oe)|0,f=f+Math.imul(W,ke)|0,t=t+Math.imul(W,Ue)|0,t=t+Math.imul(U,ke)|0,s=s+Math.imul(U,Ue)|0;var ft=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ae),t=Math.imul(de,Se),t=t+Math.imul(ve,Ae)|0,s=Math.imul(ve,Se),f=f+Math.imul(oe,Me)|0,t=t+Math.imul(oe,ge)|0,t=t+Math.imul(se,Me)|0,s=s+Math.imul(se,ge)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,s=s+Math.imul(ne,De)|0,f=f+Math.imul(ee,Te)|0,t=t+Math.imul(ee,Ie)|0,t=t+Math.imul(te,Te)|0,s=s+Math.imul(te,Ie)|0,f=f+Math.imul(T,Ne)|0,t=t+Math.imul(T,Pe)|0,t=t+Math.imul(j,Ne)|0,s=s+Math.imul(j,Pe)|0,f=f+Math.imul(Z,qe)|0,t=t+Math.imul(Z,Oe)|0,t=t+Math.imul(k,qe)|0,s=s+Math.imul(k,Oe)|0,f=f+Math.imul(X,ke)|0,t=t+Math.imul(X,Ue)|0,t=t+Math.imul(P,ke)|0,s=s+Math.imul(P,Ue)|0,f=f+Math.imul(W,z)|0,t=t+Math.imul(W,L)|0,t=t+Math.imul(U,z)|0,s=s+Math.imul(U,L)|0;var at=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ae),t=Math.imul(be,Se),t=t+Math.imul(me,Ae)|0,s=Math.imul(me,Se),f=f+Math.imul(de,Me)|0,t=t+Math.imul(de,ge)|0,t=t+Math.imul(ve,Me)|0,s=s+Math.imul(ve,ge)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,s=s+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,s=s+Math.imul(ne,Ie)|0,f=f+Math.imul(ee,Ne)|0,t=t+Math.imul(ee,Pe)|0,t=t+Math.imul(te,Ne)|0,s=s+Math.imul(te,Pe)|0,f=f+Math.imul(T,qe)|0,t=t+Math.imul(T,Oe)|0,t=t+Math.imul(j,qe)|0,s=s+Math.imul(j,Oe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,s=s+Math.imul(k,Ue)|0,f=f+Math.imul(X,z)|0,t=t+Math.imul(X,L)|0,t=t+Math.imul(P,z)|0,s=s+Math.imul(P,L)|0,f=f+Math.imul(W,G)|0,t=t+Math.imul(W,ae)|0,t=t+Math.imul(U,G)|0,s=s+Math.imul(U,ae)|0;var rt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ae),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ae)|0,s=Math.imul(Be,Se),f=f+Math.imul(be,Me)|0,t=t+Math.imul(be,ge)|0,t=t+Math.imul(me,Me)|0,s=s+Math.imul(me,ge)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,s=s+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,s=s+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Ne)|0,t=t+Math.imul(ie,Pe)|0,t=t+Math.imul(ne,Ne)|0,s=s+Math.imul(ne,Pe)|0,f=f+Math.imul(ee,qe)|0,t=t+Math.imul(ee,Oe)|0,t=t+Math.imul(te,qe)|0,s=s+Math.imul(te,Oe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(j,ke)|0,s=s+Math.imul(j,Ue)|0,f=f+Math.imul(Z,z)|0,t=t+Math.imul(Z,L)|0,t=t+Math.imul(k,z)|0,s=s+Math.imul(k,L)|0,f=f+Math.imul(X,G)|0,t=t+Math.imul(X,ae)|0,t=t+Math.imul(P,G)|0,s=s+Math.imul(P,ae)|0,f=f+Math.imul(W,ue)|0,t=t+Math.imul(W,le)|0,t=t+Math.imul(U,ue)|0,s=s+Math.imul(U,le)|0;var nt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,Me),t=Math.imul(Fe,ge),t=t+Math.imul(Be,Me)|0,s=Math.imul(Be,ge),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,s=s+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,s=s+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Ne)|0,t=t+Math.imul(oe,Pe)|0,t=t+Math.imul(se,Ne)|0,s=s+Math.imul(se,Pe)|0,f=f+Math.imul(ie,qe)|0,t=t+Math.imul(ie,Oe)|0,t=t+Math.imul(ne,qe)|0,s=s+Math.imul(ne,Oe)|0,f=f+Math.imul(ee,ke)|0,t=t+Math.imul(ee,Ue)|0,t=t+Math.imul(te,ke)|0,s=s+Math.imul(te,Ue)|0,f=f+Math.imul(T,z)|0,t=t+Math.imul(T,L)|0,t=t+Math.imul(j,z)|0,s=s+Math.imul(j,L)|0,f=f+Math.imul(Z,G)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,G)|0,s=s+Math.imul(k,ae)|0,f=f+Math.imul(X,ue)|0,t=t+Math.imul(X,le)|0,t=t+Math.imul(P,ue)|0,s=s+Math.imul(P,le)|0;var it=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,s=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,s=s+Math.imul(me,Ie)|0,f=f+Math.imul(de,Ne)|0,t=t+Math.imul(de,Pe)|0,t=t+Math.imul(ve,Ne)|0,s=s+Math.imul(ve,Pe)|0,f=f+Math.imul(oe,qe)|0,t=t+Math.imul(oe,Oe)|0,t=t+Math.imul(se,qe)|0,s=s+Math.imul(se,Oe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,s=s+Math.imul(ne,Ue)|0,f=f+Math.imul(ee,z)|0,t=t+Math.imul(ee,L)|0,t=t+Math.imul(te,z)|0,s=s+Math.imul(te,L)|0,f=f+Math.imul(T,G)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(j,G)|0,s=s+Math.imul(j,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,s=s+Math.imul(k,le)|0;var Ze=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,s=Math.imul(Be,Ie),f=f+Math.imul(be,Ne)|0,t=t+Math.imul(be,Pe)|0,t=t+Math.imul(me,Ne)|0,s=s+Math.imul(me,Pe)|0,f=f+Math.imul(de,qe)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(ve,qe)|0,s=s+Math.imul(ve,Oe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,s=s+Math.imul(se,Ue)|0,f=f+Math.imul(ie,z)|0,t=t+Math.imul(ie,L)|0,t=t+Math.imul(ne,z)|0,s=s+Math.imul(ne,L)|0,f=f+Math.imul(ee,G)|0,t=t+Math.imul(ee,ae)|0,t=t+Math.imul(te,G)|0,s=s+Math.imul(te,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(j,ue)|0,s=s+Math.imul(j,le)|0;var Qe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,f=Math.imul(Fe,Ne),t=Math.imul(Fe,Pe),t=t+Math.imul(Be,Ne)|0,s=Math.imul(Be,Pe),f=f+Math.imul(be,qe)|0,t=t+Math.imul(be,Oe)|0,t=t+Math.imul(me,qe)|0,s=s+Math.imul(me,Oe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,s=s+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,z)|0,t=t+Math.imul(oe,L)|0,t=t+Math.imul(se,z)|0,s=s+Math.imul(se,L)|0,f=f+Math.imul(ie,G)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,G)|0,s=s+Math.imul(ne,ae)|0,f=f+Math.imul(ee,ue)|0,t=t+Math.imul(ee,le)|0,t=t+Math.imul(te,ue)|0,s=s+Math.imul(te,le)|0;var Ge=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(Fe,qe),t=Math.imul(Fe,Oe),t=t+Math.imul(Be,qe)|0,s=Math.imul(Be,Oe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,s=s+Math.imul(me,Ue)|0,f=f+Math.imul(de,z)|0,t=t+Math.imul(de,L)|0,t=t+Math.imul(ve,z)|0,s=s+Math.imul(ve,L)|0,f=f+Math.imul(oe,G)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,G)|0,s=s+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,s=s+Math.imul(ne,le)|0;var Xe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,s=Math.imul(Be,Ue),f=f+Math.imul(be,z)|0,t=t+Math.imul(be,L)|0,t=t+Math.imul(me,z)|0,s=s+Math.imul(me,L)|0,f=f+Math.imul(de,G)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,G)|0,s=s+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,s=s+Math.imul(se,le)|0;var Ye=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(Fe,z),t=Math.imul(Fe,L),t=t+Math.imul(Be,z)|0,s=Math.imul(Be,L),f=f+Math.imul(be,G)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,G)|0,s=s+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,s=s+Math.imul(ve,le)|0;var Ke=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,f=Math.imul(Fe,G),t=Math.imul(Fe,ae),t=t+Math.imul(Be,G)|0,s=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,s=s+Math.imul(me,le)|0;var we=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(we>>>26)|0,we&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,s=Math.imul(Be,le);var _e=(b+f|0)+((t&8191)<<13)|0;return b=(s+(t>>>13)|0)+(_e>>>26)|0,_e&=67108863,l[0]=Je,l[1]=We,l[2]=ht,l[3]=Ve,l[4]=et,l[5]=tt,l[6]=ft,l[7]=at,l[8]=rt,l[9]=nt,l[10]=it,l[11]=Ze,l[12]=Qe,l[13]=Ge,l[14]=Xe,l[15]=Ye,l[16]=Ke,l[17]=we,l[18]=_e,b!==0&&(l[19]=b,n.length++),n};Math.imul||(A=M);function B(u,e,r){r.negative=e.negative^u.negative,r.length=u.length+e.length;for(var n=0,a=0,o=0;o<r.length-1;o++){var l=a;a=0;for(var b=n&67108863,f=Math.min(o,e.length-1),t=Math.max(0,o-u.length+1);t<=f;t++){var s=o-t,$=u.words[s]|0,W=e.words[t]|0,U=$*W,Q=U&67108863;l=l+(U/67108864|0)|0,Q=Q+b|0,b=Q&67108863,l=l+(Q>>>26)|0,a+=l>>>26,l&=67108863}r.words[o]=b,n=l,l=a}return n!==0?r.words[o]=n:r.length--,r.strip()}function F(u,e,r){var n=new C;return n.mulp(u,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,r):a<63?n=M(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(u,e){this.x=u,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,o=0;o<r;o++)a|=(e&1)<<r-o-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,o,l){for(var b=0;b<l;b++)a[b]=r[e[b]],o[b]=n[e[b]]},C.prototype.transform=function(e,r,n,a,o,l){this.permute(l,e,r,n,a,o);for(var b=1;b<o;b<<=1)for(var f=b<<1,t=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),$=0;$<o;$+=f)for(var W=t,U=s,Q=0;Q<b;Q++){var X=n[$+Q],P=a[$+Q],H=n[$+Q+b],Z=a[$+Q+b],k=W*H-U*Z;Z=W*Z+U*H,H=k,n[$+Q]=X+H,a[$+Q]=P+Z,n[$+Q+b]=X-H,a[$+Q+b]=P-Z,Q!==f&&(k=t*W-s*U,U=t*U+s*W,W=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,o=0;for(n=n/2|0;n;n=n>>>1)o++;return 1<<o+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var o=e[a];e[a]=e[n-a-1],e[n-a-1]=o,o=r[a],r[a]=-r[n-a-1],r[n-a-1]=-o}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var o=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=o&67108863,o<67108864?n=0:n=o/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var o=0,l=0;l<r;l++)o=o+(e[l]|0),n[2*l]=o&8191,o=o>>>13,n[2*l+1]=o&8191,o=o>>>13;for(l=2*r;l<a;++l)n[l]=0;c(o===0),c((o&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(a),l=this.stub(a),b=new Array(a),f=new Array(a),t=new Array(a),s=new Array(a),$=new Array(a),W=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,b,a),this.convert13b(r.words,r.length,s,a),this.transform(b,l,f,t,a,o),this.transform(s,l,$,W,a,o);for(var Q=0;Q<a;Q++){var X=f[Q]*$[Q]-t[Q]*W[Q];t[Q]=f[Q]*W[Q]+t[Q]*$[Q],f[Q]=X}return this.conjugate(f,t,a),this.transform(f,t,U,l,a,o),this.conjugate(U,l,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){c(typeof e=="number"),c(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,o=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[n]=o&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=w(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var o=n.sqr();a<r.length;a++,o=o.sqr())r[a]!==0&&(n=n.mul(o));return n},i.prototype.iushln=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,o;if(r!==0){var l=0;for(o=0;o<this.length;o++){var b=this.words[o]&a,f=(this.words[o]|0)-b<<r;this.words[o]=f|l,l=b>>>26-r}l&&(this.words[o]=l,this.length++)}if(n!==0){for(o=this.length-1;o>=0;o--)this.words[o+n]=this.words[o];for(o=0;o<n;o++)this.words[o]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return c(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){c(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var o=e%26,l=Math.min((e-o)/26,this.length),b=67108863^67108863>>>o<<o,f=n;if(a-=l,a=Math.max(0,a),f){for(var t=0;t<l;t++)f.words[t]=this.words[t];f.length=l}if(l!==0)if(this.length>l)for(this.length-=l,t=0;t<this.length;t++)this.words[t]=this.words[t+l];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=a);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&b}return f&&s!==0&&(f.words[f.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return c(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var o=this.words[n];return!!(o&a)},i.prototype.imaskn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return c(typeof e=="number"),c(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(c(typeof e=="number"),c(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,o;this._expand(a);var l,b=0;for(o=0;o<e.length;o++){l=(this.words[o+n]|0)+b;var f=(e.words[o]|0)*r;l-=f&67108863,b=(l>>26)-(f/67108864|0),this.words[o+n]=l&67108863}for(;o<this.length-n;o++)l=(this.words[o+n]|0)+b,b=l>>26,this.words[o+n]=l&67108863;if(b===0)return this.strip();for(c(b===-1),b=0,o=0;o<this.length;o++)l=-(this.words[o]|0)+b,b=l>>26,this.words[o]=l&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),o=e,l=o.words[o.length-1]|0,b=this._countBits(l);n=26-b,n!==0&&(o=o.ushln(n),a.iushln(n),l=o.words[o.length-1]|0);var f=a.length-o.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=a.clone()._ishlnsubmul(o,1,f);$.negative===0&&(a=$,t&&(t.words[f]=1));for(var W=f-1;W>=0;W--){var U=(a.words[o.length+W]|0)*67108864+(a.words[o.length+W-1]|0);for(U=Math.min(U/l|0,67108863),a._ishlnsubmul(o,U,W);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(o,1,W),a.isZero()||(a.negative^=1);t&&(t.words[W]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(c(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,l;return this.negative!==0&&e.negative===0?(l=this.neg().divmod(e,r),r!=="mod"&&(a=l.div.neg()),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(l=this.divmod(e.neg(),r),r!=="mod"&&(a=l.div.neg()),{div:a,mod:l.mod}):(this.negative&e.negative)!==0?(l=this.neg().divmod(e.neg(),r),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),o=e.andln(1),l=n.cmp(a);return l<0||o===1&&l===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){c(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){c(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=new i(0),b=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),s=r.clone();!r.isZero();){for(var $=0,W=1;(r.words[0]&W)===0&&$<26;++$,W<<=1);if($>0)for(r.iushrn($);$-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(t),o.isub(s)),a.iushrn(1),o.iushrn(1);for(var U=0,Q=1;(n.words[0]&Q)===0&&U<26;++U,Q<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(l.isOdd()||b.isOdd())&&(l.iadd(t),b.isub(s)),l.iushrn(1),b.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(l),o.isub(b)):(n.isub(r),l.isub(a),b.isub(o))}return{a:l,b,gcd:n.iushln(f)}},i.prototype._invmp=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var b=0,f=1;(r.words[0]&f)===0&&b<26;++b,f<<=1);if(b>0)for(r.iushrn(b);b-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var t=0,s=1;(n.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(n.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(o)):(n.isub(r),o.isub(a))}var $;return r.cmpn(1)===0?$=a:$=o,$.cmpn(0)<0&&$.iadd(e),$},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=r.cmp(n);if(o<0){var l=r;r=n,n=l}else if(o===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){c(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var o=a,l=n;o!==0&&l<this.length;l++){var b=this.words[l]|0;b+=o,o=b>>>26,b&=67108863,this.words[l]=b}return o!==0&&(this.words[l]=o,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),c(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,o=e.words[n]|0;if(a!==o){a<o?r=-1:a>o&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new V(e)},i.prototype.toRed=function(e){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return c(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return c(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(u,e){this.name=u,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function K(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(K,D),K.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),o=0;o<a;o++)r.words[o]=e.words[o];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var l=e.words[9];for(r.words[r.length++]=l&n,o=10;o<e.length;o++){var b=e.words[o]|0;e.words[o-10]=(b&n)<<4|l>>>22,l=b}l>>>=22,e.words[o-10]=l,l===0&&e.length>10?e.length-=10:e.length-=9},K.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function q(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(q,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(Y,D);function J(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(J,D),J.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,o=a&67108863;a>>>=26,e.words[n]=o,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new K;else if(e==="p224")r=new q;else if(e==="p192")r=new Y;else if(e==="p25519")r=new J;else throw new Error("Unknown prime "+e);return R[e]=r,r};function V(u){if(typeof u=="string"){var e=i._prime(u);this.m=e.p,this.prime=e}else c(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}V.prototype._verify1=function(e){c(e.negative===0,"red works only with positives"),c(e.red,"red works only with red numbers")},V.prototype._verify2=function(e,r){c((e.negative|r.negative)===0,"red works only with positives"),c(e.red&&e.red===r.red,"red works only with red numbers")},V.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},V.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},V.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},V.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},V.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},V.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},V.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},V.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},V.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},V.prototype.isqr=function(e){return this.imul(e,e.clone())},V.prototype.sqr=function(e){return this.mul(e,e)},V.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(c(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);c(!a.isZero());var l=new i(1).toRed(this),b=l.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(b)!==0;)t.redIAdd(b);for(var s=this.pow(t,a),$=this.pow(e,a.addn(1).iushrn(1)),W=this.pow(e,a),U=o;W.cmp(l)!==0;){for(var Q=W,X=0;Q.cmp(l)!==0;X++)Q=Q.redSqr();c(X<U);var P=this.pow(s,new i(1).iushln(U-X-1));$=$.redMul(P),s=P.redSqr(),W=W.redMul(s),U=X}return $},V.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},V.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var l=a[0],b=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),o=r.length-1;o>=0;o--){for(var s=r.words[o],$=t-1;$>=0;$--){var W=s>>$&1;if(l!==a[0]&&(l=this.sqr(l)),W===0&&b===0){f=0;continue}b<<=1,b|=W,f++,!(f!==n&&(o!==0||$!==0))&&(l=this.mul(l,a[b]),f=0,b=0)}t=26}return l},V.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},V.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new re(e)};function re(u){V.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}E(re,V),re.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},re.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},re.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(g,wp)})(jr)),jr.exports}var Gr={exports:{}},Mp=Gr.exports,ks;function _p(){return ks||(ks=1,(function(g){(function(x,S){function c(u,e){if(!u)throw new Error(e||"Assertion failed")}function E(u,e){u.super_=e;var r=function(){};r.prototype=e.prototype,u.prototype=new r,u.prototype.constructor=u}function i(u,e,r){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(u||0,e||10,r||"be"))}typeof x=="object"?x.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=ze.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),c(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(c(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(c(typeof e.length=="number"),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 a=0;a<this.length;a++)this.words[a]=0;var o,l,b=0;if(n==="be")for(a=e.length-1,o=0;a>=0;a-=3)l=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);else if(n==="le")for(a=0,o=0;a<e.length;a+=3)l=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);return this.strip()};function y(u,e){var r=u.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(u,e,r){var n=y(u,r);return r-1>=e&&(n|=y(u,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o=0,l=0,b;if(n==="be")for(a=e.length-1;a>=r;a-=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8}this.strip()};function h(u,e,r,n){for(var a=0,o=Math.min(u.length,r),l=e;l<o;l++){var b=u.charCodeAt(l)-48;a*=n,b>=49?a+=b-49+10:b>=17?a+=b-17+10:a+=b}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,o=1;o<=67108863;o*=r)a++;a--,o=o/r|0;for(var l=e.length-n,b=l%a,f=Math.min(l,l-b)+n,t=0,s=n;s<f;s+=a)t=h(e,s,s+a,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(b!==0){var $=1;for(t=h(e,s,e.length,r),s=0;s<b;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],p=[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],v=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,o=0,l=0;l<this.length;l++){var b=this.words[l],f=((b<<a|o)&16777215).toString(16);o=b>>>24-a&16777215,a+=2,a>=26&&(a-=26,l--),o!==0||l!==this.length-1?n=d[6-f.length]+f+n:n=f+n}for(o!==0&&(n=o.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=v[e];n="";var $=this.clone();for($.negative=0;!$.isZero();){var W=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?n=W+n:n=d[t-W.length]+W+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}c(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return c(typeof _<"u"),this.toArrayLike(_,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),o=n||Math.max(1,a);c(a<=o,"byte array longer than desired length"),c(o>0,"Requested array length <= 0"),this.strip();var l=r==="le",b=new e(o),f,t,s=this.clone();if(l){for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[t]=f;for(;t<o;t++)b[t]=0}else{for(t=0;t<o-a;t++)b[t]=0;for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[o-t-1]=f}return b},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(u){for(var e=new Array(u.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(u.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return c((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return c((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return c((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){c(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){c(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var o=0,l=0;l<a.length;l++)r=(n.words[l]|0)+(a.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;for(;o!==0&&l<n.length;l++)r=(n.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;if(this.length=n.length,o!==0)this.words[this.length]=o,this.length++;else if(n!==this)for(;l<n.length;l++)this.words[l]=n.words[l];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,o;n>0?(a=this,o=e):(a=e,o=this);for(var l=0,b=0;b<o.length;b++)r=(a.words[b]|0)-(o.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;for(;l!==0&&b<a.length;b++)r=(a.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;if(l===0&&b<a.length&&a!==this)for(;b<a.length;b++)this.words[b]=a.words[b];return this.length=Math.max(this.length,b),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function M(u,e,r){r.negative=e.negative^u.negative;var n=u.length+e.length|0;r.length=n,n=n-1|0;var a=u.words[0]|0,o=e.words[0]|0,l=a*o,b=l&67108863,f=l/67108864|0;r.words[0]=b;for(var t=1;t<n;t++){for(var s=f>>>26,$=f&67108863,W=Math.min(t,e.length-1),U=Math.max(0,t-u.length+1);U<=W;U++){var Q=t-U|0;a=u.words[Q]|0,o=e.words[U]|0,l=a*o+$,s+=l/67108864|0,$=l&67108863}r.words[t]=$|0,f=s|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var A=function(e,r,n){var a=e.words,o=r.words,l=n.words,b=0,f,t,s,$=a[0]|0,W=$&8191,U=$>>>13,Q=a[1]|0,X=Q&8191,P=Q>>>13,H=a[2]|0,Z=H&8191,k=H>>>13,N=a[3]|0,T=N&8191,j=N>>>13,fe=a[4]|0,ee=fe&8191,te=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,pt=o[0]|0,Ae=pt&8191,Se=pt>>>13,ct=o[1]|0,Me=ct&8191,ge=ct>>>13,wt=o[2]|0,Ce=wt&8191,De=wt>>>13,_t=o[3]|0,Te=_t&8191,Ie=_t>>>13,Dt=o[4]|0,Ne=Dt&8191,Pe=Dt>>>13,kt=o[5]|0,qe=kt&8191,Oe=kt>>>13,Pt=o[6]|0,ke=Pt&8191,Ue=Pt>>>13,O=o[7]|0,z=O&8191,L=O>>>13,I=o[8]|0,G=I&8191,ae=I>>>13,ye=o[9]|0,ue=ye&8191,le=ye>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(W,Ae),t=Math.imul(W,Se),t=t+Math.imul(U,Ae)|0,s=Math.imul(U,Se);var Je=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(X,Ae),t=Math.imul(X,Se),t=t+Math.imul(P,Ae)|0,s=Math.imul(P,Se),f=f+Math.imul(W,Me)|0,t=t+Math.imul(W,ge)|0,t=t+Math.imul(U,Me)|0,s=s+Math.imul(U,ge)|0;var We=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Z,Ae),t=Math.imul(Z,Se),t=t+Math.imul(k,Ae)|0,s=Math.imul(k,Se),f=f+Math.imul(X,Me)|0,t=t+Math.imul(X,ge)|0,t=t+Math.imul(P,Me)|0,s=s+Math.imul(P,ge)|0,f=f+Math.imul(W,Ce)|0,t=t+Math.imul(W,De)|0,t=t+Math.imul(U,Ce)|0,s=s+Math.imul(U,De)|0;var ht=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ae),t=Math.imul(T,Se),t=t+Math.imul(j,Ae)|0,s=Math.imul(j,Se),f=f+Math.imul(Z,Me)|0,t=t+Math.imul(Z,ge)|0,t=t+Math.imul(k,Me)|0,s=s+Math.imul(k,ge)|0,f=f+Math.imul(X,Ce)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(P,Ce)|0,s=s+Math.imul(P,De)|0,f=f+Math.imul(W,Te)|0,t=t+Math.imul(W,Ie)|0,t=t+Math.imul(U,Te)|0,s=s+Math.imul(U,Ie)|0;var Ve=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(ee,Ae),t=Math.imul(ee,Se),t=t+Math.imul(te,Ae)|0,s=Math.imul(te,Se),f=f+Math.imul(T,Me)|0,t=t+Math.imul(T,ge)|0,t=t+Math.imul(j,Me)|0,s=s+Math.imul(j,ge)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,s=s+Math.imul(k,De)|0,f=f+Math.imul(X,Te)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(P,Te)|0,s=s+Math.imul(P,Ie)|0,f=f+Math.imul(W,Ne)|0,t=t+Math.imul(W,Pe)|0,t=t+Math.imul(U,Ne)|0,s=s+Math.imul(U,Pe)|0;var et=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ae),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ae)|0,s=Math.imul(ne,Se),f=f+Math.imul(ee,Me)|0,t=t+Math.imul(ee,ge)|0,t=t+Math.imul(te,Me)|0,s=s+Math.imul(te,ge)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(j,Ce)|0,s=s+Math.imul(j,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,s=s+Math.imul(k,Ie)|0,f=f+Math.imul(X,Ne)|0,t=t+Math.imul(X,Pe)|0,t=t+Math.imul(P,Ne)|0,s=s+Math.imul(P,Pe)|0,f=f+Math.imul(W,qe)|0,t=t+Math.imul(W,Oe)|0,t=t+Math.imul(U,qe)|0,s=s+Math.imul(U,Oe)|0;var tt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ae),t=Math.imul(oe,Se),t=t+Math.imul(se,Ae)|0,s=Math.imul(se,Se),f=f+Math.imul(ie,Me)|0,t=t+Math.imul(ie,ge)|0,t=t+Math.imul(ne,Me)|0,s=s+Math.imul(ne,ge)|0,f=f+Math.imul(ee,Ce)|0,t=t+Math.imul(ee,De)|0,t=t+Math.imul(te,Ce)|0,s=s+Math.imul(te,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(j,Te)|0,s=s+Math.imul(j,Ie)|0,f=f+Math.imul(Z,Ne)|0,t=t+Math.imul(Z,Pe)|0,t=t+Math.imul(k,Ne)|0,s=s+Math.imul(k,Pe)|0,f=f+Math.imul(X,qe)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(P,qe)|0,s=s+Math.imul(P,Oe)|0,f=f+Math.imul(W,ke)|0,t=t+Math.imul(W,Ue)|0,t=t+Math.imul(U,ke)|0,s=s+Math.imul(U,Ue)|0;var ft=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ae),t=Math.imul(de,Se),t=t+Math.imul(ve,Ae)|0,s=Math.imul(ve,Se),f=f+Math.imul(oe,Me)|0,t=t+Math.imul(oe,ge)|0,t=t+Math.imul(se,Me)|0,s=s+Math.imul(se,ge)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,s=s+Math.imul(ne,De)|0,f=f+Math.imul(ee,Te)|0,t=t+Math.imul(ee,Ie)|0,t=t+Math.imul(te,Te)|0,s=s+Math.imul(te,Ie)|0,f=f+Math.imul(T,Ne)|0,t=t+Math.imul(T,Pe)|0,t=t+Math.imul(j,Ne)|0,s=s+Math.imul(j,Pe)|0,f=f+Math.imul(Z,qe)|0,t=t+Math.imul(Z,Oe)|0,t=t+Math.imul(k,qe)|0,s=s+Math.imul(k,Oe)|0,f=f+Math.imul(X,ke)|0,t=t+Math.imul(X,Ue)|0,t=t+Math.imul(P,ke)|0,s=s+Math.imul(P,Ue)|0,f=f+Math.imul(W,z)|0,t=t+Math.imul(W,L)|0,t=t+Math.imul(U,z)|0,s=s+Math.imul(U,L)|0;var at=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ae),t=Math.imul(be,Se),t=t+Math.imul(me,Ae)|0,s=Math.imul(me,Se),f=f+Math.imul(de,Me)|0,t=t+Math.imul(de,ge)|0,t=t+Math.imul(ve,Me)|0,s=s+Math.imul(ve,ge)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,s=s+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,s=s+Math.imul(ne,Ie)|0,f=f+Math.imul(ee,Ne)|0,t=t+Math.imul(ee,Pe)|0,t=t+Math.imul(te,Ne)|0,s=s+Math.imul(te,Pe)|0,f=f+Math.imul(T,qe)|0,t=t+Math.imul(T,Oe)|0,t=t+Math.imul(j,qe)|0,s=s+Math.imul(j,Oe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,s=s+Math.imul(k,Ue)|0,f=f+Math.imul(X,z)|0,t=t+Math.imul(X,L)|0,t=t+Math.imul(P,z)|0,s=s+Math.imul(P,L)|0,f=f+Math.imul(W,G)|0,t=t+Math.imul(W,ae)|0,t=t+Math.imul(U,G)|0,s=s+Math.imul(U,ae)|0;var rt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ae),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ae)|0,s=Math.imul(Be,Se),f=f+Math.imul(be,Me)|0,t=t+Math.imul(be,ge)|0,t=t+Math.imul(me,Me)|0,s=s+Math.imul(me,ge)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,s=s+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,s=s+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Ne)|0,t=t+Math.imul(ie,Pe)|0,t=t+Math.imul(ne,Ne)|0,s=s+Math.imul(ne,Pe)|0,f=f+Math.imul(ee,qe)|0,t=t+Math.imul(ee,Oe)|0,t=t+Math.imul(te,qe)|0,s=s+Math.imul(te,Oe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(j,ke)|0,s=s+Math.imul(j,Ue)|0,f=f+Math.imul(Z,z)|0,t=t+Math.imul(Z,L)|0,t=t+Math.imul(k,z)|0,s=s+Math.imul(k,L)|0,f=f+Math.imul(X,G)|0,t=t+Math.imul(X,ae)|0,t=t+Math.imul(P,G)|0,s=s+Math.imul(P,ae)|0,f=f+Math.imul(W,ue)|0,t=t+Math.imul(W,le)|0,t=t+Math.imul(U,ue)|0,s=s+Math.imul(U,le)|0;var nt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,Me),t=Math.imul(Fe,ge),t=t+Math.imul(Be,Me)|0,s=Math.imul(Be,ge),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,s=s+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,s=s+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Ne)|0,t=t+Math.imul(oe,Pe)|0,t=t+Math.imul(se,Ne)|0,s=s+Math.imul(se,Pe)|0,f=f+Math.imul(ie,qe)|0,t=t+Math.imul(ie,Oe)|0,t=t+Math.imul(ne,qe)|0,s=s+Math.imul(ne,Oe)|0,f=f+Math.imul(ee,ke)|0,t=t+Math.imul(ee,Ue)|0,t=t+Math.imul(te,ke)|0,s=s+Math.imul(te,Ue)|0,f=f+Math.imul(T,z)|0,t=t+Math.imul(T,L)|0,t=t+Math.imul(j,z)|0,s=s+Math.imul(j,L)|0,f=f+Math.imul(Z,G)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,G)|0,s=s+Math.imul(k,ae)|0,f=f+Math.imul(X,ue)|0,t=t+Math.imul(X,le)|0,t=t+Math.imul(P,ue)|0,s=s+Math.imul(P,le)|0;var it=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,s=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,s=s+Math.imul(me,Ie)|0,f=f+Math.imul(de,Ne)|0,t=t+Math.imul(de,Pe)|0,t=t+Math.imul(ve,Ne)|0,s=s+Math.imul(ve,Pe)|0,f=f+Math.imul(oe,qe)|0,t=t+Math.imul(oe,Oe)|0,t=t+Math.imul(se,qe)|0,s=s+Math.imul(se,Oe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,s=s+Math.imul(ne,Ue)|0,f=f+Math.imul(ee,z)|0,t=t+Math.imul(ee,L)|0,t=t+Math.imul(te,z)|0,s=s+Math.imul(te,L)|0,f=f+Math.imul(T,G)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(j,G)|0,s=s+Math.imul(j,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,s=s+Math.imul(k,le)|0;var Ze=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,s=Math.imul(Be,Ie),f=f+Math.imul(be,Ne)|0,t=t+Math.imul(be,Pe)|0,t=t+Math.imul(me,Ne)|0,s=s+Math.imul(me,Pe)|0,f=f+Math.imul(de,qe)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(ve,qe)|0,s=s+Math.imul(ve,Oe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,s=s+Math.imul(se,Ue)|0,f=f+Math.imul(ie,z)|0,t=t+Math.imul(ie,L)|0,t=t+Math.imul(ne,z)|0,s=s+Math.imul(ne,L)|0,f=f+Math.imul(ee,G)|0,t=t+Math.imul(ee,ae)|0,t=t+Math.imul(te,G)|0,s=s+Math.imul(te,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(j,ue)|0,s=s+Math.imul(j,le)|0;var Qe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,f=Math.imul(Fe,Ne),t=Math.imul(Fe,Pe),t=t+Math.imul(Be,Ne)|0,s=Math.imul(Be,Pe),f=f+Math.imul(be,qe)|0,t=t+Math.imul(be,Oe)|0,t=t+Math.imul(me,qe)|0,s=s+Math.imul(me,Oe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,s=s+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,z)|0,t=t+Math.imul(oe,L)|0,t=t+Math.imul(se,z)|0,s=s+Math.imul(se,L)|0,f=f+Math.imul(ie,G)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,G)|0,s=s+Math.imul(ne,ae)|0,f=f+Math.imul(ee,ue)|0,t=t+Math.imul(ee,le)|0,t=t+Math.imul(te,ue)|0,s=s+Math.imul(te,le)|0;var Ge=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(Fe,qe),t=Math.imul(Fe,Oe),t=t+Math.imul(Be,qe)|0,s=Math.imul(Be,Oe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,s=s+Math.imul(me,Ue)|0,f=f+Math.imul(de,z)|0,t=t+Math.imul(de,L)|0,t=t+Math.imul(ve,z)|0,s=s+Math.imul(ve,L)|0,f=f+Math.imul(oe,G)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,G)|0,s=s+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,s=s+Math.imul(ne,le)|0;var Xe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,s=Math.imul(Be,Ue),f=f+Math.imul(be,z)|0,t=t+Math.imul(be,L)|0,t=t+Math.imul(me,z)|0,s=s+Math.imul(me,L)|0,f=f+Math.imul(de,G)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,G)|0,s=s+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,s=s+Math.imul(se,le)|0;var Ye=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(Fe,z),t=Math.imul(Fe,L),t=t+Math.imul(Be,z)|0,s=Math.imul(Be,L),f=f+Math.imul(be,G)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,G)|0,s=s+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,s=s+Math.imul(ve,le)|0;var Ke=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,f=Math.imul(Fe,G),t=Math.imul(Fe,ae),t=t+Math.imul(Be,G)|0,s=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,s=s+Math.imul(me,le)|0;var we=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(we>>>26)|0,we&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,s=Math.imul(Be,le);var _e=(b+f|0)+((t&8191)<<13)|0;return b=(s+(t>>>13)|0)+(_e>>>26)|0,_e&=67108863,l[0]=Je,l[1]=We,l[2]=ht,l[3]=Ve,l[4]=et,l[5]=tt,l[6]=ft,l[7]=at,l[8]=rt,l[9]=nt,l[10]=it,l[11]=Ze,l[12]=Qe,l[13]=Ge,l[14]=Xe,l[15]=Ye,l[16]=Ke,l[17]=we,l[18]=_e,b!==0&&(l[19]=b,n.length++),n};Math.imul||(A=M);function B(u,e,r){r.negative=e.negative^u.negative,r.length=u.length+e.length;for(var n=0,a=0,o=0;o<r.length-1;o++){var l=a;a=0;for(var b=n&67108863,f=Math.min(o,e.length-1),t=Math.max(0,o-u.length+1);t<=f;t++){var s=o-t,$=u.words[s]|0,W=e.words[t]|0,U=$*W,Q=U&67108863;l=l+(U/67108864|0)|0,Q=Q+b|0,b=Q&67108863,l=l+(Q>>>26)|0,a+=l>>>26,l&=67108863}r.words[o]=b,n=l,l=a}return n!==0?r.words[o]=n:r.length--,r.strip()}function F(u,e,r){var n=new C;return n.mulp(u,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,r):a<63?n=M(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(u,e){this.x=u,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,o=0;o<r;o++)a|=(e&1)<<r-o-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,o,l){for(var b=0;b<l;b++)a[b]=r[e[b]],o[b]=n[e[b]]},C.prototype.transform=function(e,r,n,a,o,l){this.permute(l,e,r,n,a,o);for(var b=1;b<o;b<<=1)for(var f=b<<1,t=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),$=0;$<o;$+=f)for(var W=t,U=s,Q=0;Q<b;Q++){var X=n[$+Q],P=a[$+Q],H=n[$+Q+b],Z=a[$+Q+b],k=W*H-U*Z;Z=W*Z+U*H,H=k,n[$+Q]=X+H,a[$+Q]=P+Z,n[$+Q+b]=X-H,a[$+Q+b]=P-Z,Q!==f&&(k=t*W-s*U,U=t*U+s*W,W=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,o=0;for(n=n/2|0;n;n=n>>>1)o++;return 1<<o+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var o=e[a];e[a]=e[n-a-1],e[n-a-1]=o,o=r[a],r[a]=-r[n-a-1],r[n-a-1]=-o}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var o=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=o&67108863,o<67108864?n=0:n=o/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var o=0,l=0;l<r;l++)o=o+(e[l]|0),n[2*l]=o&8191,o=o>>>13,n[2*l+1]=o&8191,o=o>>>13;for(l=2*r;l<a;++l)n[l]=0;c(o===0),c((o&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(a),l=this.stub(a),b=new Array(a),f=new Array(a),t=new Array(a),s=new Array(a),$=new Array(a),W=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,b,a),this.convert13b(r.words,r.length,s,a),this.transform(b,l,f,t,a,o),this.transform(s,l,$,W,a,o);for(var Q=0;Q<a;Q++){var X=f[Q]*$[Q]-t[Q]*W[Q];t[Q]=f[Q]*W[Q]+t[Q]*$[Q],f[Q]=X}return this.conjugate(f,t,a),this.transform(f,t,U,l,a,o),this.conjugate(U,l,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){c(typeof e=="number"),c(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,o=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[n]=o&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=w(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var o=n.sqr();a<r.length;a++,o=o.sqr())r[a]!==0&&(n=n.mul(o));return n},i.prototype.iushln=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,o;if(r!==0){var l=0;for(o=0;o<this.length;o++){var b=this.words[o]&a,f=(this.words[o]|0)-b<<r;this.words[o]=f|l,l=b>>>26-r}l&&(this.words[o]=l,this.length++)}if(n!==0){for(o=this.length-1;o>=0;o--)this.words[o+n]=this.words[o];for(o=0;o<n;o++)this.words[o]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return c(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){c(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var o=e%26,l=Math.min((e-o)/26,this.length),b=67108863^67108863>>>o<<o,f=n;if(a-=l,a=Math.max(0,a),f){for(var t=0;t<l;t++)f.words[t]=this.words[t];f.length=l}if(l!==0)if(this.length>l)for(this.length-=l,t=0;t<this.length;t++)this.words[t]=this.words[t+l];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=a);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&b}return f&&s!==0&&(f.words[f.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return c(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var o=this.words[n];return!!(o&a)},i.prototype.imaskn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return c(typeof e=="number"),c(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(c(typeof e=="number"),c(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,o;this._expand(a);var l,b=0;for(o=0;o<e.length;o++){l=(this.words[o+n]|0)+b;var f=(e.words[o]|0)*r;l-=f&67108863,b=(l>>26)-(f/67108864|0),this.words[o+n]=l&67108863}for(;o<this.length-n;o++)l=(this.words[o+n]|0)+b,b=l>>26,this.words[o+n]=l&67108863;if(b===0)return this.strip();for(c(b===-1),b=0,o=0;o<this.length;o++)l=-(this.words[o]|0)+b,b=l>>26,this.words[o]=l&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),o=e,l=o.words[o.length-1]|0,b=this._countBits(l);n=26-b,n!==0&&(o=o.ushln(n),a.iushln(n),l=o.words[o.length-1]|0);var f=a.length-o.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=a.clone()._ishlnsubmul(o,1,f);$.negative===0&&(a=$,t&&(t.words[f]=1));for(var W=f-1;W>=0;W--){var U=(a.words[o.length+W]|0)*67108864+(a.words[o.length+W-1]|0);for(U=Math.min(U/l|0,67108863),a._ishlnsubmul(o,U,W);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(o,1,W),a.isZero()||(a.negative^=1);t&&(t.words[W]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(c(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,l;return this.negative!==0&&e.negative===0?(l=this.neg().divmod(e,r),r!=="mod"&&(a=l.div.neg()),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(l=this.divmod(e.neg(),r),r!=="mod"&&(a=l.div.neg()),{div:a,mod:l.mod}):(this.negative&e.negative)!==0?(l=this.neg().divmod(e.neg(),r),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),o=e.andln(1),l=n.cmp(a);return l<0||o===1&&l===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){c(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){c(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=new i(0),b=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),s=r.clone();!r.isZero();){for(var $=0,W=1;(r.words[0]&W)===0&&$<26;++$,W<<=1);if($>0)for(r.iushrn($);$-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(t),o.isub(s)),a.iushrn(1),o.iushrn(1);for(var U=0,Q=1;(n.words[0]&Q)===0&&U<26;++U,Q<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(l.isOdd()||b.isOdd())&&(l.iadd(t),b.isub(s)),l.iushrn(1),b.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(l),o.isub(b)):(n.isub(r),l.isub(a),b.isub(o))}return{a:l,b,gcd:n.iushln(f)}},i.prototype._invmp=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var b=0,f=1;(r.words[0]&f)===0&&b<26;++b,f<<=1);if(b>0)for(r.iushrn(b);b-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var t=0,s=1;(n.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(n.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(o)):(n.isub(r),o.isub(a))}var $;return r.cmpn(1)===0?$=a:$=o,$.cmpn(0)<0&&$.iadd(e),$},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=r.cmp(n);if(o<0){var l=r;r=n,n=l}else if(o===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){c(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var o=a,l=n;o!==0&&l<this.length;l++){var b=this.words[l]|0;b+=o,o=b>>>26,b&=67108863,this.words[l]=b}return o!==0&&(this.words[l]=o,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),c(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,o=e.words[n]|0;if(a!==o){a<o?r=-1:a>o&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new V(e)},i.prototype.toRed=function(e){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return c(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return c(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(u,e){this.name=u,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function K(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(K,D),K.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),o=0;o<a;o++)r.words[o]=e.words[o];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var l=e.words[9];for(r.words[r.length++]=l&n,o=10;o<e.length;o++){var b=e.words[o]|0;e.words[o-10]=(b&n)<<4|l>>>22,l=b}l>>>=22,e.words[o-10]=l,l===0&&e.length>10?e.length-=10:e.length-=9},K.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function q(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(q,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(Y,D);function J(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(J,D),J.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,o=a&67108863;a>>>=26,e.words[n]=o,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new K;else if(e==="p224")r=new q;else if(e==="p192")r=new Y;else if(e==="p25519")r=new J;else throw new Error("Unknown prime "+e);return R[e]=r,r};function V(u){if(typeof u=="string"){var e=i._prime(u);this.m=e.p,this.prime=e}else c(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}V.prototype._verify1=function(e){c(e.negative===0,"red works only with positives"),c(e.red,"red works only with red numbers")},V.prototype._verify2=function(e,r){c((e.negative|r.negative)===0,"red works only with positives"),c(e.red&&e.red===r.red,"red works only with red numbers")},V.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},V.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},V.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},V.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},V.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},V.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},V.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},V.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},V.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},V.prototype.isqr=function(e){return this.imul(e,e.clone())},V.prototype.sqr=function(e){return this.mul(e,e)},V.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(c(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);c(!a.isZero());var l=new i(1).toRed(this),b=l.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(b)!==0;)t.redIAdd(b);for(var s=this.pow(t,a),$=this.pow(e,a.addn(1).iushrn(1)),W=this.pow(e,a),U=o;W.cmp(l)!==0;){for(var Q=W,X=0;Q.cmp(l)!==0;X++)Q=Q.redSqr();c(X<U);var P=this.pow(s,new i(1).iushln(U-X-1));$=$.redMul(P),s=P.redSqr(),W=W.redMul(s),U=X}return $},V.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},V.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var l=a[0],b=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),o=r.length-1;o>=0;o--){for(var s=r.words[o],$=t-1;$>=0;$--){var W=s>>$&1;if(l!==a[0]&&(l=this.sqr(l)),W===0&&b===0){f=0;continue}b<<=1,b|=W,f++,!(f!==n&&(o!==0||$!==0))&&(l=this.mul(l,a[b]),f=0,b=0)}t=26}return l},V.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},V.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new re(e)};function re(u){V.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}E(re,V),re.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},re.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},re.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(g,Mp)})(Gr)),Gr.exports}var Lr={exports:{}},Ns;function ef(){if(Ns)return Lr.exports;Ns=1;var g;Lr.exports=function(E){return g||(g=new x(null)),g.generate(E)};function x(c){this.rand=c}if(Lr.exports.Rand=x,x.prototype.generate=function(E){return this._rand(E)},x.prototype._rand=function(E){if(this.rand.getBytes)return this.rand.getBytes(E);for(var i=new Uint8Array(E),_=0;_<i.length;_++)i[_]=this.rand.getByte();return i},typeof self=="object")self.crypto&&self.crypto.getRandomValues?x.prototype._rand=function(E){var i=new Uint8Array(E);return self.crypto.getRandomValues(i),i}:self.msCrypto&&self.msCrypto.getRandomValues?x.prototype._rand=function(E){var i=new Uint8Array(E);return self.msCrypto.getRandomValues(i),i}:typeof window=="object"&&(x.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var S=Pc();if(typeof S.randomBytes!="function")throw new Error("Not supported");x.prototype._rand=function(E){return S.randomBytes(E)}}catch{}return Lr.exports}var ga,Ps;function mc(){if(Ps)return ga;Ps=1;var g=_p(),x=ef();function S(c){this.rand=c||new x.Rand}return ga=S,S.create=function(E){return new S(E)},S.prototype._randbelow=function(E){var i=E.bitLength(),_=Math.ceil(i/8);do var y=new g(this.rand.generate(_));while(y.cmp(E)>=0);return y},S.prototype._randrange=function(E,i){var _=i.sub(E);return E.add(this._randbelow(_))},S.prototype.test=function(E,i,_){var y=E.bitLength(),m=g.mont(E),h=new g(1).toRed(m);i||(i=Math.max(1,y/48|0));for(var d=E.subn(1),p=0;!d.testn(p);p++);for(var v=E.shrn(p),w=d.toRed(m),M=!0;i>0;i--){var A=this._randrange(new g(2),d);_&&_(A);var B=A.toRed(m).redPow(v);if(!(B.cmp(h)===0||B.cmp(w)===0)){for(var F=1;F<p;F++){if(B=B.redSqr(),B.cmp(h)===0)return!1;if(B.cmp(w)===0)break}if(F===p)return!1}}return M},S.prototype.getDivisor=function(E,i){var _=E.bitLength(),y=g.mont(E),m=new g(1).toRed(y);i||(i=Math.max(1,_/48|0));for(var h=E.subn(1),d=0;!h.testn(d);d++);for(var p=E.shrn(d),v=h.toRed(y);i>0;i--){var w=this._randrange(new g(2),h),M=E.gcd(w);if(M.cmpn(1)!==0)return M;var A=w.toRed(y).redPow(p);if(!(A.cmp(m)===0||A.cmp(v)===0)){for(var B=1;B<d;B++){if(A=A.redSqr(),A.cmp(m)===0)return A.fromRed().subn(1).gcd(E);if(A.cmp(v)===0)break}if(B===d)return A=A.redSqr(),A.fromRed().subn(1).gcd(E)}}return!1},ga}var xa,qs;function yc(){if(qs)return xa;qs=1;var g=dr();xa=B,B.simpleSieve=M,B.fermatTest=A;var x=bc(),S=new x(24),c=mc(),E=new c,i=new x(1),_=new x(2),y=new x(5);new x(16),new x(8);var m=new x(10),h=new x(3);new x(7);var d=new x(11),p=new x(4);new x(12);var v=null;function w(){if(v!==null)return v;var F=1048576,C=[];C[0]=2;for(var R=1,D=3;D<F;D+=2){for(var K=Math.ceil(Math.sqrt(D)),q=0;q<R&&C[q]<=K&&D%C[q]!==0;q++);R!==q&&C[q]<=K||(C[R++]=D)}return v=C,C}function M(F){for(var C=w(),R=0;R<C.length;R++)if(F.modn(C[R])===0)return F.cmpn(C[R])===0;return!0}function A(F){var C=x.mont(F);return _.toRed(C).redPow(F.subn(1)).fromRed().cmpn(1)===0}function B(F,C){if(F<16)return C===2||C===5?new x([140,123]):new x([140,39]);C=new x(C);for(var R,D;;){for(R=new x(g(Math.ceil(F/8)));R.bitLength()>F;)R.ishrn(1);if(R.isEven()&&R.iadd(i),R.testn(1)||R.iadd(_),C.cmp(_)){if(!C.cmp(y))for(;R.mod(m).cmp(h);)R.iadd(p)}else for(;R.mod(S).cmp(d);)R.iadd(p);if(D=R.shrn(1),M(D)&&M(R)&&A(D)&&A(R)&&E.test(D)&&E.test(R))return R}}return xa}const Ep={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},Ap={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},Sp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},Bp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},Fp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},Cp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},Dp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},Rp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},Tp={modp1:Ep,modp2:Ap,modp5:Sp,modp14:Bp,modp15:Fp,modp16:Cp,modp17:Dp,modp18:Rp};var wa,Os;function Ip(){if(Os)return wa;Os=1;var g=bc(),x=mc(),S=new x,c=new g(24),E=new g(11),i=new g(10),_=new g(3),y=new g(7),m=yc(),h=dr();wa=M;function d(B,F){return F=F||"utf8",xe.Buffer.isBuffer(B)||(B=new xe.Buffer(B,F)),this._pub=new g(B),this}function p(B,F){return F=F||"utf8",xe.Buffer.isBuffer(B)||(B=new xe.Buffer(B,F)),this._priv=new g(B),this}var v={};function w(B,F){var C=F.toString("hex"),R=[C,B.toString(16)].join("_");if(R in v)return v[R];var D=0;if(B.isEven()||!m.simpleSieve||!m.fermatTest(B)||!S.test(B))return D+=1,C==="02"||C==="05"?D+=8:D+=4,v[R]=D,D;S.test(B.shrn(1))||(D+=2);var K;switch(C){case"02":B.mod(c).cmp(E)&&(D+=8);break;case"05":K=B.mod(i),K.cmp(_)&&K.cmp(y)&&(D+=8);break;default:D+=4}return v[R]=D,D}function M(B,F,C){this.setGenerator(F),this.__prime=new g(B),this._prime=g.mont(this.__prime),this._primeLen=B.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,C?(this.setPublicKey=d,this.setPrivateKey=p):this._primeCode=8}Object.defineProperty(M.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=w(this.__prime,this.__gen)),this._primeCode}}),M.prototype.generateKeys=function(){return this._priv||(this._priv=new g(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},M.prototype.computeSecret=function(B){B=new g(B),B=B.toRed(this._prime);var F=B.redPow(this._priv).fromRed(),C=new xe.Buffer(F.toArray()),R=this.getPrime();if(C.length<R.length){var D=new xe.Buffer(R.length-C.length);D.fill(0),C=xe.Buffer.concat([D,C])}return C},M.prototype.getPublicKey=function(F){return A(this._pub,F)},M.prototype.getPrivateKey=function(F){return A(this._priv,F)},M.prototype.getPrime=function(B){return A(this.__prime,B)},M.prototype.getGenerator=function(B){return A(this._gen,B)},M.prototype.setGenerator=function(B,F){return F=F||"utf8",xe.Buffer.isBuffer(B)||(B=new xe.Buffer(B,F)),this.__gen=B,this._gen=new g(B),this};function A(B,F){var C=new xe.Buffer(B.toArray());return F?C.toString(F):C}return wa}var Us;function kp(){if(Us)return ir;Us=1;var g=yc(),x=Tp,S=Ip();function c(_){var y=new xe.Buffer(x[_].prime,"hex"),m=new xe.Buffer(x[_].gen,"hex");return new S(y,m)}var E={binary:!0,hex:!0,base64:!0};function i(_,y,m,h){return xe.Buffer.isBuffer(y)||E[y]===void 0?i(_,"binary",y,m):(y=y||"binary",h=h||"binary",m=m||new xe.Buffer([2]),xe.Buffer.isBuffer(m)||(m=new xe.Buffer(m,h)),typeof _=="number"?new S(g(_,m),m,!0):(xe.Buffer.isBuffer(_)||(_=new xe.Buffer(_,y)),new S(_,m,!0)))}return ir.DiffieHellmanGroup=ir.createDiffieHellmanGroup=ir.getDiffieHellman=c,ir.createDiffieHellman=ir.DiffieHellman=i,ir}var Hr={exports:{}},zr={exports:{}},Ls;function oi(){if(Ls)return zr.exports;Ls=1,typeof xe.process$1>"u"||!xe.process$1.version||xe.process$1.version.indexOf("v0.")===0||xe.process$1.version.indexOf("v1.")===0&&xe.process$1.version.indexOf("v1.8.")!==0?zr.exports={nextTick:g}:zr.exports=xe.process$1;function g(x,S,c,E){if(typeof x!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,_,y;switch(i){case 0:case 1:return xe.process$1.nextTick(x);case 2:return xe.process$1.nextTick(function(){x.call(null,S)});case 3:return xe.process$1.nextTick(function(){x.call(null,S,c)});case 4:return xe.process$1.nextTick(function(){x.call(null,S,c,E)});default:for(_=new Array(i-1),y=0;y<_.length;)_[y++]=arguments[y];return xe.process$1.nextTick(function(){x.apply(null,_)})}}return zr.exports}var Ma,Hs;function Np(){if(Hs)return Ma;Hs=1;var g={}.toString;return Ma=Array.isArray||function(x){return g.call(x)=="[object Array]"},Ma}var _a,zs;function gc(){return zs||(zs=1,_a=pr().EventEmitter),_a}var $r={exports:{}},$s;function tf(){return $s||($s=1,(function(g,x){var S=ze.requireDist(),c=S.Buffer;function E(_,y){for(var m in _)y[m]=_[m]}c.from&&c.alloc&&c.allocUnsafe&&c.allocUnsafeSlow?g.exports=S:(E(S,x),x.Buffer=i);function i(_,y,m){return c(_,y,m)}E(c,i),i.from=function(_,y,m){if(typeof _=="number")throw new TypeError("Argument must not be a number");return c(_,y,m)},i.alloc=function(_,y,m){if(typeof _!="number")throw new TypeError("Argument must be a number");var h=c(_);return y!==void 0?typeof m=="string"?h.fill(y,m):h.fill(y):h.fill(0),h},i.allocUnsafe=function(_){if(typeof _!="number")throw new TypeError("Argument must be a number");return c(_)},i.allocUnsafeSlow=function(_){if(typeof _!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(_)}})($r,$r.exports)),$r.exports}var Ot={},Ks;function Br(){if(Ks)return Ot;Ks=1;function g(A){return Array.isArray?Array.isArray(A):M(A)==="[object Array]"}Ot.isArray=g;function x(A){return typeof A=="boolean"}Ot.isBoolean=x;function S(A){return A===null}Ot.isNull=S;function c(A){return A==null}Ot.isNullOrUndefined=c;function E(A){return typeof A=="number"}Ot.isNumber=E;function i(A){return typeof A=="string"}Ot.isString=i;function _(A){return typeof A=="symbol"}Ot.isSymbol=_;function y(A){return A===void 0}Ot.isUndefined=y;function m(A){return M(A)==="[object RegExp]"}Ot.isRegExp=m;function h(A){return typeof A=="object"&&A!==null}Ot.isObject=h;function d(A){return M(A)==="[object Date]"}Ot.isDate=d;function p(A){return M(A)==="[object Error]"||A instanceof Error}Ot.isError=p;function v(A){return typeof A=="function"}Ot.isFunction=v;function w(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A>"u"}Ot.isPrimitive=w,Ot.isBuffer=ze.requireDist().Buffer.isBuffer;function M(A){return Object.prototype.toString.call(A)}return Ot}var Ea={exports:{}},Ws;function Pp(){return Ws||(Ws=1,(function(g){function x(i,_){if(!(i instanceof _))throw new TypeError("Cannot call a class as a function")}var S=tf().Buffer,c=vr;function E(i,_,y){i.copy(_,y)}g.exports=(function(){function i(){x(this,i),this.head=null,this.tail=null,this.length=0}return i.prototype.push=function(y){var m={data:y,next:null};this.length>0?this.tail.next=m:this.head=m,this.tail=m,++this.length},i.prototype.unshift=function(y){var m={data:y,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length},i.prototype.shift=function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(y){if(this.length===0)return"";for(var m=this.head,h=""+m.data;m=m.next;)h+=y+m.data;return h},i.prototype.concat=function(y){if(this.length===0)return S.alloc(0);for(var m=S.allocUnsafe(y>>>0),h=this.head,d=0;h;)E(h.data,m,d),d+=h.data.length,h=h.next;return m},i})(),c&&c.inspect&&c.inspect.custom&&(g.exports.prototype[c.inspect.custom]=function(){var i=c.inspect({length:this.length});return this.constructor.name+" "+i})})(Ea)),Ea.exports}var Aa,js;function xc(){if(js)return Aa;js=1;var g=oi();function x(E,i){var _=this,y=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return y||m?(i?i(E):E&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,g.nextTick(c,this,E)):g.nextTick(c,this,E)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(E||null,function(h){!i&&h?_._writableState?_._writableState.errorEmitted||(_._writableState.errorEmitted=!0,g.nextTick(c,_,h)):g.nextTick(c,_,h):i&&i(h)}),this)}function S(){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)}function c(E,i){E.emit("error",i)}return Aa={destroy:x,undestroy:S},Aa}var Sa,Gs;function wc(){if(Gs)return Sa;Gs=1;var g=oi();Sa=A;function x(l){var b=this;this.next=null,this.entry=null,this.finish=function(){o(b,l)}}var S=!xe.process$1.browser&&["v0.10","v0.9."].indexOf(xe.process$1.version.slice(0,5))>-1?setImmediate:g.nextTick,c;A.WritableState=w;var E=Object.create(Br());E.inherits=dt();var i={deprecate:U0()},_=gc(),y=tf().Buffer,m=(typeof ze.commonjsGlobal<"u"?ze.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(l){return y.from(l)}function d(l){return y.isBuffer(l)||l instanceof m}var p=xc();E.inherits(A,_);function v(){}function w(l,b){c=c||lr(),l=l||{};var f=b instanceof c;this.objectMode=!!l.objectMode,f&&(this.objectMode=this.objectMode||!!l.writableObjectMode);var t=l.highWaterMark,s=l.writableHighWaterMark,$=this.objectMode?16:16*1024;t||t===0?this.highWaterMark=t:f&&(s||s===0)?this.highWaterMark=s:this.highWaterMark=$,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var W=l.decodeStrings===!1;this.decodeStrings=!W,this.defaultEncoding=l.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){Y(b,U)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new x(this)}w.prototype.getBuffer=function(){for(var b=this.bufferedRequest,f=[];b;)f.push(b),b=b.next;return f},(function(){try{Object.defineProperty(w.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var M;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(M=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(l){return M.call(this,l)?!0:this!==A?!1:l&&l._writableState instanceof w}})):M=function(l){return l instanceof this};function A(l){if(c=c||lr(),!M.call(A,this)&&!(this instanceof c))return new A(l);this._writableState=new w(l,this),this.writable=!0,l&&(typeof l.write=="function"&&(this._write=l.write),typeof l.writev=="function"&&(this._writev=l.writev),typeof l.destroy=="function"&&(this._destroy=l.destroy),typeof l.final=="function"&&(this._final=l.final)),_.call(this)}A.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function B(l,b){var f=new Error("write after end");l.emit("error",f),g.nextTick(b,f)}function F(l,b,f,t){var s=!0,$=!1;return f===null?$=new TypeError("May not write null values to stream"):typeof f!="string"&&f!==void 0&&!b.objectMode&&($=new TypeError("Invalid non-string/buffer chunk")),$&&(l.emit("error",$),g.nextTick(t,$),s=!1),s}A.prototype.write=function(l,b,f){var t=this._writableState,s=!1,$=!t.objectMode&&d(l);return $&&!y.isBuffer(l)&&(l=h(l)),typeof b=="function"&&(f=b,b=null),$?b="buffer":b||(b=t.defaultEncoding),typeof f!="function"&&(f=v),t.ended?B(this,f):($||F(this,t,l,f))&&(t.pendingcb++,s=R(this,t,$,l,b,f)),s},A.prototype.cork=function(){var l=this._writableState;l.corked++},A.prototype.uncork=function(){var l=this._writableState;l.corked&&(l.corked--,!l.writing&&!l.corked&&!l.bufferProcessing&&l.bufferedRequest&&re(this,l))},A.prototype.setDefaultEncoding=function(b){if(typeof b=="string"&&(b=b.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((b+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+b);return this._writableState.defaultEncoding=b,this};function C(l,b,f){return!l.objectMode&&l.decodeStrings!==!1&&typeof b=="string"&&(b=y.from(b,f)),b}Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function R(l,b,f,t,s,$){if(!f){var W=C(b,t,s);t!==W&&(f=!0,s="buffer",t=W)}var U=b.objectMode?1:t.length;b.length+=U;var Q=b.length<b.highWaterMark;if(Q||(b.needDrain=!0),b.writing||b.corked){var X=b.lastBufferedRequest;b.lastBufferedRequest={chunk:t,encoding:s,isBuf:f,callback:$,next:null},X?X.next=b.lastBufferedRequest:b.bufferedRequest=b.lastBufferedRequest,b.bufferedRequestCount+=1}else D(l,b,!1,U,t,s,$);return Q}function D(l,b,f,t,s,$,W){b.writelen=t,b.writecb=W,b.writing=!0,b.sync=!0,f?l._writev(s,b.onwrite):l._write(s,$,b.onwrite),b.sync=!1}function K(l,b,f,t,s){--b.pendingcb,f?(g.nextTick(s,t),g.nextTick(n,l,b),l._writableState.errorEmitted=!0,l.emit("error",t)):(s(t),l._writableState.errorEmitted=!0,l.emit("error",t),n(l,b))}function q(l){l.writing=!1,l.writecb=null,l.length-=l.writelen,l.writelen=0}function Y(l,b){var f=l._writableState,t=f.sync,s=f.writecb;if(q(f),b)K(l,f,t,b,s);else{var $=u(f);!$&&!f.corked&&!f.bufferProcessing&&f.bufferedRequest&&re(l,f),t?S(J,l,f,$,s):J(l,f,$,s)}}function J(l,b,f,t){f||V(l,b),b.pendingcb--,t(),n(l,b)}function V(l,b){b.length===0&&b.needDrain&&(b.needDrain=!1,l.emit("drain"))}function re(l,b){b.bufferProcessing=!0;var f=b.bufferedRequest;if(l._writev&&f&&f.next){var t=b.bufferedRequestCount,s=new Array(t),$=b.corkedRequestsFree;$.entry=f;for(var W=0,U=!0;f;)s[W]=f,f.isBuf||(U=!1),f=f.next,W+=1;s.allBuffers=U,D(l,b,!0,b.length,s,"",$.finish),b.pendingcb++,b.lastBufferedRequest=null,$.next?(b.corkedRequestsFree=$.next,$.next=null):b.corkedRequestsFree=new x(b),b.bufferedRequestCount=0}else{for(;f;){var Q=f.chunk,X=f.encoding,P=f.callback,H=b.objectMode?1:Q.length;if(D(l,b,!1,H,Q,X,P),f=f.next,b.bufferedRequestCount--,b.writing)break}f===null&&(b.lastBufferedRequest=null)}b.bufferedRequest=f,b.bufferProcessing=!1}A.prototype._write=function(l,b,f){f(new Error("_write() is not implemented"))},A.prototype._writev=null,A.prototype.end=function(l,b,f){var t=this._writableState;typeof l=="function"?(f=l,l=null,b=null):typeof b=="function"&&(f=b,b=null),l!=null&&this.write(l,b),t.corked&&(t.corked=1,this.uncork()),t.ending||a(this,t,f)};function u(l){return l.ending&&l.length===0&&l.bufferedRequest===null&&!l.finished&&!l.writing}function e(l,b){l._final(function(f){b.pendingcb--,f&&l.emit("error",f),b.prefinished=!0,l.emit("prefinish"),n(l,b)})}function r(l,b){!b.prefinished&&!b.finalCalled&&(typeof l._final=="function"?(b.pendingcb++,b.finalCalled=!0,g.nextTick(e,l,b)):(b.prefinished=!0,l.emit("prefinish")))}function n(l,b){var f=u(b);return f&&(r(l,b),b.pendingcb===0&&(b.finished=!0,l.emit("finish"))),f}function a(l,b,f){b.ending=!0,n(l,b),f&&(b.finished?g.nextTick(f):l.once("finish",f)),b.ended=!0,l.writable=!1}function o(l,b,f){var t=l.entry;for(l.entry=null;t;){var s=t.callback;b.pendingcb--,s(f),t=t.next}b.corkedRequestsFree.next=l}return Object.defineProperty(A.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(l){this._writableState&&(this._writableState.destroyed=l)}}),A.prototype.destroy=p.destroy,A.prototype._undestroy=p.undestroy,A.prototype._destroy=function(l,b){this.end(),b(l)},Sa}var Ba,Vs;function lr(){if(Vs)return Ba;Vs=1;var g=oi(),x=Object.keys||function(p){var v=[];for(var w in p)v.push(w);return v};Ba=m;var S=Object.create(Br());S.inherits=dt();var c=Mc(),E=wc();S.inherits(m,c);for(var i=x(E.prototype),_=0;_<i.length;_++){var y=i[_];m.prototype[y]||(m.prototype[y]=E.prototype[y])}function m(p){if(!(this instanceof m))return new m(p);c.call(this,p),E.call(this,p),p&&p.readable===!1&&(this.readable=!1),p&&p.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,p&&p.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",h)}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function h(){this.allowHalfOpen||this._writableState.ended||g.nextTick(d,this)}function d(p){p.end()}return Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),m.prototype._destroy=function(p,v){this.push(null),this.end(),g.nextTick(v,p)},Ba}var Fa,Zs;function Mc(){if(Zs)return Fa;Zs=1;var g=oi();Fa=C;var x=Np(),S;C.ReadableState=F,pr().EventEmitter;var c=function(P,H){return P.listeners(H).length},E=gc(),i=tf().Buffer,_=(typeof ze.commonjsGlobal<"u"?ze.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function y(P){return i.from(P)}function m(P){return i.isBuffer(P)||P instanceof _}var h=Object.create(Br());h.inherits=dt();var d=vr,p=void 0;d&&d.debuglog?p=d.debuglog("stream"):p=function(){};var v=Pp(),w=xc(),M;h.inherits(C,E);var A=["error","close","destroy","pause","resume"];function B(P,H,Z){if(typeof P.prependListener=="function")return P.prependListener(H,Z);!P._events||!P._events[H]?P.on(H,Z):x(P._events[H])?P._events[H].unshift(Z):P._events[H]=[Z,P._events[H]]}function F(P,H){S=S||lr(),P=P||{};var Z=H instanceof S;this.objectMode=!!P.objectMode,Z&&(this.objectMode=this.objectMode||!!P.readableObjectMode);var k=P.highWaterMark,N=P.readableHighWaterMark,T=this.objectMode?16:16*1024;k||k===0?this.highWaterMark=k:Z&&(N||N===0)?this.highWaterMark=N:this.highWaterMark=T,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,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.destroyed=!1,this.defaultEncoding=P.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,P.encoding&&(M||(M=cr().StringDecoder),this.decoder=new M(P.encoding),this.encoding=P.encoding)}function C(P){if(S=S||lr(),!(this instanceof C))return new C(P);this._readableState=new F(P,this),this.readable=!0,P&&(typeof P.read=="function"&&(this._read=P.read),typeof P.destroy=="function"&&(this._destroy=P.destroy)),E.call(this)}Object.defineProperty(C.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(P){this._readableState&&(this._readableState.destroyed=P)}}),C.prototype.destroy=w.destroy,C.prototype._undestroy=w.undestroy,C.prototype._destroy=function(P,H){this.push(null),H(P)},C.prototype.push=function(P,H){var Z=this._readableState,k;return Z.objectMode?k=!0:typeof P=="string"&&(H=H||Z.defaultEncoding,H!==Z.encoding&&(P=i.from(P,H),H=""),k=!0),R(this,P,H,!1,k)},C.prototype.unshift=function(P){return R(this,P,null,!0,!1)};function R(P,H,Z,k,N){var T=P._readableState;if(H===null)T.reading=!1,re(P,T);else{var j;N||(j=K(T,H)),j?P.emit("error",j):T.objectMode||H&&H.length>0?(typeof H!="string"&&!T.objectMode&&Object.getPrototypeOf(H)!==i.prototype&&(H=y(H)),k?T.endEmitted?P.emit("error",new Error("stream.unshift() after end event")):D(P,T,H,!0):T.ended?P.emit("error",new Error("stream.push() after EOF")):(T.reading=!1,T.decoder&&!Z?(H=T.decoder.write(H),T.objectMode||H.length!==0?D(P,T,H,!1):r(P,T)):D(P,T,H,!1))):k||(T.reading=!1)}return q(T)}function D(P,H,Z,k){H.flowing&&H.length===0&&!H.sync?(P.emit("data",Z),P.read(0)):(H.length+=H.objectMode?1:Z.length,k?H.buffer.unshift(Z):H.buffer.push(Z),H.needReadable&&u(P)),r(P,H)}function K(P,H){var Z;return!m(H)&&typeof H!="string"&&H!==void 0&&!P.objectMode&&(Z=new TypeError("Invalid non-string/buffer chunk")),Z}function q(P){return!P.ended&&(P.needReadable||P.length<P.highWaterMark||P.length===0)}C.prototype.isPaused=function(){return this._readableState.flowing===!1},C.prototype.setEncoding=function(P){return M||(M=cr().StringDecoder),this._readableState.decoder=new M(P),this._readableState.encoding=P,this};var Y=8388608;function J(P){return P>=Y?P=Y:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function V(P,H){return P<=0||H.length===0&&H.ended?0:H.objectMode?1:P!==P?H.flowing&&H.length?H.buffer.head.data.length:H.length:(P>H.highWaterMark&&(H.highWaterMark=J(P)),P<=H.length?P:H.ended?H.length:(H.needReadable=!0,0))}C.prototype.read=function(P){p("read",P),P=parseInt(P,10);var H=this._readableState,Z=P;if(P!==0&&(H.emittedReadable=!1),P===0&&H.needReadable&&(H.length>=H.highWaterMark||H.ended))return p("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?U(this):u(this),null;if(P=V(P,H),P===0&&H.ended)return H.length===0&&U(this),null;var k=H.needReadable;p("need readable",k),(H.length===0||H.length-P<H.highWaterMark)&&(k=!0,p("length less than watermark",k)),H.ended||H.reading?(k=!1,p("reading or ended",k)):k&&(p("do read"),H.reading=!0,H.sync=!0,H.length===0&&(H.needReadable=!0),this._read(H.highWaterMark),H.sync=!1,H.reading||(P=V(Z,H)));var N;return P>0?N=t(P,H):N=null,N===null?(H.needReadable=!0,P=0):H.length-=P,H.length===0&&(H.ended||(H.needReadable=!0),Z!==P&&H.ended&&U(this)),N!==null&&this.emit("data",N),N};function re(P,H){if(!H.ended){if(H.decoder){var Z=H.decoder.end();Z&&Z.length&&(H.buffer.push(Z),H.length+=H.objectMode?1:Z.length)}H.ended=!0,u(P)}}function u(P){var H=P._readableState;H.needReadable=!1,H.emittedReadable||(p("emitReadable",H.flowing),H.emittedReadable=!0,H.sync?g.nextTick(e,P):e(P))}function e(P){p("emit readable"),P.emit("readable"),f(P)}function r(P,H){H.readingMore||(H.readingMore=!0,g.nextTick(n,P,H))}function n(P,H){for(var Z=H.length;!H.reading&&!H.flowing&&!H.ended&&H.length<H.highWaterMark&&(p("maybeReadMore read 0"),P.read(0),Z!==H.length);)Z=H.length;H.readingMore=!1}C.prototype._read=function(P){this.emit("error",new Error("_read() is not implemented"))},C.prototype.pipe=function(P,H){var Z=this,k=this._readableState;switch(k.pipesCount){case 0:k.pipes=P;break;case 1:k.pipes=[k.pipes,P];break;default:k.pipes.push(P);break}k.pipesCount+=1,p("pipe count=%d opts=%j",k.pipesCount,H);var N=(!H||H.end!==!1)&&P!==xe.process$1.stdout&&P!==xe.process$1.stderr,T=N?fe:Re;k.endEmitted?g.nextTick(T):Z.once("end",T),P.on("unpipe",j);function j(de,ve){p("onunpipe"),de===Z&&ve&&ve.hasUnpiped===!1&&(ve.hasUnpiped=!0,he())}function fe(){p("onend"),P.end()}var ee=a(Z);P.on("drain",ee);var te=!1;function he(){p("cleanup"),P.removeListener("close",oe),P.removeListener("finish",se),P.removeListener("drain",ee),P.removeListener("error",pe),P.removeListener("unpipe",j),Z.removeListener("end",fe),Z.removeListener("end",Re),Z.removeListener("data",ne),te=!0,k.awaitDrain&&(!P._writableState||P._writableState.needDrain)&&ee()}var ie=!1;Z.on("data",ne);function ne(de){p("ondata"),ie=!1;var ve=P.write(de);ve===!1&&!ie&&((k.pipesCount===1&&k.pipes===P||k.pipesCount>1&&X(k.pipes,P)!==-1)&&!te&&(p("false write response, pause",k.awaitDrain),k.awaitDrain++,ie=!0),Z.pause())}function pe(de){p("onerror",de),Re(),P.removeListener("error",pe),c(P,"error")===0&&P.emit("error",de)}B(P,"error",pe);function oe(){P.removeListener("finish",se),Re()}P.once("close",oe);function se(){p("onfinish"),P.removeListener("close",oe),Re()}P.once("finish",se);function Re(){p("unpipe"),Z.unpipe(P)}return P.emit("pipe",Z),k.flowing||(p("pipe resume"),Z.resume()),P};function a(P){return function(){var H=P._readableState;p("pipeOnDrain",H.awaitDrain),H.awaitDrain&&H.awaitDrain--,H.awaitDrain===0&&c(P,"data")&&(H.flowing=!0,f(P))}}C.prototype.unpipe=function(P){var H=this._readableState,Z={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1)return P&&P!==H.pipes?this:(P||(P=H.pipes),H.pipes=null,H.pipesCount=0,H.flowing=!1,P&&P.emit("unpipe",this,Z),this);if(!P){var k=H.pipes,N=H.pipesCount;H.pipes=null,H.pipesCount=0,H.flowing=!1;for(var T=0;T<N;T++)k[T].emit("unpipe",this,{hasUnpiped:!1});return this}var j=X(H.pipes,P);return j===-1?this:(H.pipes.splice(j,1),H.pipesCount-=1,H.pipesCount===1&&(H.pipes=H.pipes[0]),P.emit("unpipe",this,Z),this)},C.prototype.on=function(P,H){var Z=E.prototype.on.call(this,P,H);if(P==="data")this._readableState.flowing!==!1&&this.resume();else if(P==="readable"){var k=this._readableState;!k.endEmitted&&!k.readableListening&&(k.readableListening=k.needReadable=!0,k.emittedReadable=!1,k.reading?k.length&&u(this):g.nextTick(o,this))}return Z},C.prototype.addListener=C.prototype.on;function o(P){p("readable nexttick read 0"),P.read(0)}C.prototype.resume=function(){var P=this._readableState;return P.flowing||(p("resume"),P.flowing=!0,l(this,P)),this};function l(P,H){H.resumeScheduled||(H.resumeScheduled=!0,g.nextTick(b,P,H))}function b(P,H){H.reading||(p("resume read 0"),P.read(0)),H.resumeScheduled=!1,H.awaitDrain=0,P.emit("resume"),f(P),H.flowing&&!H.reading&&P.read(0)}C.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function f(P){var H=P._readableState;for(p("flow",H.flowing);H.flowing&&P.read()!==null;);}C.prototype.wrap=function(P){var H=this,Z=this._readableState,k=!1;P.on("end",function(){if(p("wrapped end"),Z.decoder&&!Z.ended){var j=Z.decoder.end();j&&j.length&&H.push(j)}H.push(null)}),P.on("data",function(j){if(p("wrapped data"),Z.decoder&&(j=Z.decoder.write(j)),!(Z.objectMode&&j==null)&&!(!Z.objectMode&&(!j||!j.length))){var fe=H.push(j);fe||(k=!0,P.pause())}});for(var N in P)this[N]===void 0&&typeof P[N]=="function"&&(this[N]=(function(j){return function(){return P[j].apply(P,arguments)}})(N));for(var T=0;T<A.length;T++)P.on(A[T],this.emit.bind(this,A[T]));return this._read=function(j){p("wrapped _read",j),k&&(k=!1,P.resume())},this},Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),C._fromList=t;function t(P,H){if(H.length===0)return null;var Z;return H.objectMode?Z=H.buffer.shift():!P||P>=H.length?(H.decoder?Z=H.buffer.join(""):H.buffer.length===1?Z=H.buffer.head.data:Z=H.buffer.concat(H.length),H.buffer.clear()):Z=s(P,H.buffer,H.decoder),Z}function s(P,H,Z){var k;return P<H.head.data.length?(k=H.head.data.slice(0,P),H.head.data=H.head.data.slice(P)):P===H.head.data.length?k=H.shift():k=Z?$(P,H):W(P,H),k}function $(P,H){var Z=H.head,k=1,N=Z.data;for(P-=N.length;Z=Z.next;){var T=Z.data,j=P>T.length?T.length:P;if(j===T.length?N+=T:N+=T.slice(0,P),P-=j,P===0){j===T.length?(++k,Z.next?H.head=Z.next:H.head=H.tail=null):(H.head=Z,Z.data=T.slice(j));break}++k}return H.length-=k,N}function W(P,H){var Z=i.allocUnsafe(P),k=H.head,N=1;for(k.data.copy(Z),P-=k.data.length;k=k.next;){var T=k.data,j=P>T.length?T.length:P;if(T.copy(Z,Z.length-P,0,j),P-=j,P===0){j===T.length?(++N,k.next?H.head=k.next:H.head=H.tail=null):(H.head=k,k.data=T.slice(j));break}++N}return H.length-=N,Z}function U(P){var H=P._readableState;if(H.length>0)throw new Error('"endReadable()" called on non-empty stream');H.endEmitted||(H.ended=!0,g.nextTick(Q,H,P))}function Q(P,H){!P.endEmitted&&P.length===0&&(P.endEmitted=!0,H.readable=!1,H.emit("end"))}function X(P,H){for(var Z=0,k=P.length;Z<k;Z++)if(P[Z]===H)return Z;return-1}return Fa}var Ca,Xs;function _c(){if(Xs)return Ca;Xs=1,Ca=c;var g=lr(),x=Object.create(Br());x.inherits=dt(),x.inherits(c,g);function S(_,y){var m=this._transformState;m.transforming=!1;var h=m.writecb;if(!h)return this.emit("error",new Error("write callback called multiple times"));m.writechunk=null,m.writecb=null,y!=null&&this.push(y),h(_);var d=this._readableState;d.reading=!1,(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function c(_){if(!(this instanceof c))return new c(_);g.call(this,_),this._transformState={afterTransform:S.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,_&&(typeof _.transform=="function"&&(this._transform=_.transform),typeof _.flush=="function"&&(this._flush=_.flush)),this.on("prefinish",E)}function E(){var _=this;typeof this._flush=="function"?this._flush(function(y,m){i(_,y,m)}):i(this,null,null)}c.prototype.push=function(_,y){return this._transformState.needTransform=!1,g.prototype.push.call(this,_,y)},c.prototype._transform=function(_,y,m){throw new Error("_transform() is not implemented")},c.prototype._write=function(_,y,m){var h=this._transformState;if(h.writecb=m,h.writechunk=_,h.writeencoding=y,!h.transforming){var d=this._readableState;(h.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}},c.prototype._read=function(_){var y=this._transformState;y.writechunk!==null&&y.writecb&&!y.transforming?(y.transforming=!0,this._transform(y.writechunk,y.writeencoding,y.afterTransform)):y.needTransform=!0},c.prototype._destroy=function(_,y){var m=this;g.prototype._destroy.call(this,_,function(h){y(h),m.emit("close")})};function i(_,y,m){if(y)return _.emit("error",y);if(m!=null&&_.push(m),_._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(_._transformState.transforming)throw new Error("Calling transform done when still transforming");return _.push(null)}return Ca}var Da,Ys;function qp(){if(Ys)return Da;Ys=1,Da=S;var g=_c(),x=Object.create(Br());x.inherits=dt(),x.inherits(S,g);function S(c){if(!(this instanceof S))return new S(c);g.call(this,c)}return S.prototype._transform=function(c,E,i){i(null,c)},Da}var Js;function Op(){return Js||(Js=1,(function(g,x){x=g.exports=Mc(),x.Stream=x,x.Readable=x,x.Writable=wc(),x.Duplex=lr(),x.Transform=_c(),x.PassThrough=qp()})(Hr,Hr.exports)),Hr.exports}var xr={exports:{}},Ra,Qs;function rf(){if(Qs)return Ra;Qs=1;var g=ze.requireBn(),x=dr(),S=ze.requireSafeBuffer().Buffer;function c(_){var y=_.modulus.byteLength(),m;do m=new g(x(y));while(m.cmp(_.modulus)>=0||!m.umod(_.prime1)||!m.umod(_.prime2));return m}function E(_){var y=c(_),m=y.toRed(g.mont(_.modulus)).redPow(new g(_.publicExponent)).fromRed();return{blinder:m,unblinder:y.invm(_.modulus)}}function i(_,y){var m=E(y),h=y.modulus.byteLength(),d=new g(_).mul(m.blinder).umod(y.modulus),p=d.toRed(g.mont(y.prime1)),v=d.toRed(g.mont(y.prime2)),w=y.coefficient,M=y.prime1,A=y.prime2,B=p.redPow(y.exponent1).fromRed(),F=v.redPow(y.exponent2).fromRed(),C=B.isub(F).imul(w).umod(M).imul(A);return F.iadd(C).imul(m.unblinder).umod(y.modulus).toArrayLike(S,"be",h)}return i.getr=c,Ra=i,Ra}var Ta={};const Up="6.6.1",Lp={version:Up};var Ia={},Vr={exports:{}},Hp=Vr.exports,eh;function Yt(){return eh||(eh=1,(function(g){(function(x,S){function c(u,e){if(!u)throw new Error(e||"Assertion failed")}function E(u,e){u.super_=e;var r=function(){};r.prototype=e.prototype,u.prototype=new r,u.prototype.constructor=u}function i(u,e,r){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(u||0,e||10,r||"be"))}typeof x=="object"?x.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=ze.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),c(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(c(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(c(typeof e.length=="number"),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 a=0;a<this.length;a++)this.words[a]=0;var o,l,b=0;if(n==="be")for(a=e.length-1,o=0;a>=0;a-=3)l=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);else if(n==="le")for(a=0,o=0;a<e.length;a+=3)l=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);return this.strip()};function y(u,e){var r=u.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(u,e,r){var n=y(u,r);return r-1>=e&&(n|=y(u,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o=0,l=0,b;if(n==="be")for(a=e.length-1;a>=r;a-=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8}this.strip()};function h(u,e,r,n){for(var a=0,o=Math.min(u.length,r),l=e;l<o;l++){var b=u.charCodeAt(l)-48;a*=n,b>=49?a+=b-49+10:b>=17?a+=b-17+10:a+=b}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,o=1;o<=67108863;o*=r)a++;a--,o=o/r|0;for(var l=e.length-n,b=l%a,f=Math.min(l,l-b)+n,t=0,s=n;s<f;s+=a)t=h(e,s,s+a,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(b!==0){var $=1;for(t=h(e,s,e.length,r),s=0;s<b;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],p=[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],v=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,o=0,l=0;l<this.length;l++){var b=this.words[l],f=((b<<a|o)&16777215).toString(16);o=b>>>24-a&16777215,a+=2,a>=26&&(a-=26,l--),o!==0||l!==this.length-1?n=d[6-f.length]+f+n:n=f+n}for(o!==0&&(n=o.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=v[e];n="";var $=this.clone();for($.negative=0;!$.isZero();){var W=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?n=W+n:n=d[t-W.length]+W+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}c(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return c(typeof _<"u"),this.toArrayLike(_,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),o=n||Math.max(1,a);c(a<=o,"byte array longer than desired length"),c(o>0,"Requested array length <= 0"),this.strip();var l=r==="le",b=new e(o),f,t,s=this.clone();if(l){for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[t]=f;for(;t<o;t++)b[t]=0}else{for(t=0;t<o-a;t++)b[t]=0;for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[o-t-1]=f}return b},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(u){for(var e=new Array(u.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(u.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return c((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return c((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return c((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){c(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){c(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var o=0,l=0;l<a.length;l++)r=(n.words[l]|0)+(a.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;for(;o!==0&&l<n.length;l++)r=(n.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;if(this.length=n.length,o!==0)this.words[this.length]=o,this.length++;else if(n!==this)for(;l<n.length;l++)this.words[l]=n.words[l];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,o;n>0?(a=this,o=e):(a=e,o=this);for(var l=0,b=0;b<o.length;b++)r=(a.words[b]|0)-(o.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;for(;l!==0&&b<a.length;b++)r=(a.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;if(l===0&&b<a.length&&a!==this)for(;b<a.length;b++)this.words[b]=a.words[b];return this.length=Math.max(this.length,b),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function M(u,e,r){r.negative=e.negative^u.negative;var n=u.length+e.length|0;r.length=n,n=n-1|0;var a=u.words[0]|0,o=e.words[0]|0,l=a*o,b=l&67108863,f=l/67108864|0;r.words[0]=b;for(var t=1;t<n;t++){for(var s=f>>>26,$=f&67108863,W=Math.min(t,e.length-1),U=Math.max(0,t-u.length+1);U<=W;U++){var Q=t-U|0;a=u.words[Q]|0,o=e.words[U]|0,l=a*o+$,s+=l/67108864|0,$=l&67108863}r.words[t]=$|0,f=s|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var A=function(e,r,n){var a=e.words,o=r.words,l=n.words,b=0,f,t,s,$=a[0]|0,W=$&8191,U=$>>>13,Q=a[1]|0,X=Q&8191,P=Q>>>13,H=a[2]|0,Z=H&8191,k=H>>>13,N=a[3]|0,T=N&8191,j=N>>>13,fe=a[4]|0,ee=fe&8191,te=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,pt=o[0]|0,Ae=pt&8191,Se=pt>>>13,ct=o[1]|0,Me=ct&8191,ge=ct>>>13,wt=o[2]|0,Ce=wt&8191,De=wt>>>13,_t=o[3]|0,Te=_t&8191,Ie=_t>>>13,Dt=o[4]|0,Ne=Dt&8191,Pe=Dt>>>13,kt=o[5]|0,qe=kt&8191,Oe=kt>>>13,Pt=o[6]|0,ke=Pt&8191,Ue=Pt>>>13,O=o[7]|0,z=O&8191,L=O>>>13,I=o[8]|0,G=I&8191,ae=I>>>13,ye=o[9]|0,ue=ye&8191,le=ye>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(W,Ae),t=Math.imul(W,Se),t=t+Math.imul(U,Ae)|0,s=Math.imul(U,Se);var Je=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(X,Ae),t=Math.imul(X,Se),t=t+Math.imul(P,Ae)|0,s=Math.imul(P,Se),f=f+Math.imul(W,Me)|0,t=t+Math.imul(W,ge)|0,t=t+Math.imul(U,Me)|0,s=s+Math.imul(U,ge)|0;var We=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Z,Ae),t=Math.imul(Z,Se),t=t+Math.imul(k,Ae)|0,s=Math.imul(k,Se),f=f+Math.imul(X,Me)|0,t=t+Math.imul(X,ge)|0,t=t+Math.imul(P,Me)|0,s=s+Math.imul(P,ge)|0,f=f+Math.imul(W,Ce)|0,t=t+Math.imul(W,De)|0,t=t+Math.imul(U,Ce)|0,s=s+Math.imul(U,De)|0;var ht=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ae),t=Math.imul(T,Se),t=t+Math.imul(j,Ae)|0,s=Math.imul(j,Se),f=f+Math.imul(Z,Me)|0,t=t+Math.imul(Z,ge)|0,t=t+Math.imul(k,Me)|0,s=s+Math.imul(k,ge)|0,f=f+Math.imul(X,Ce)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(P,Ce)|0,s=s+Math.imul(P,De)|0,f=f+Math.imul(W,Te)|0,t=t+Math.imul(W,Ie)|0,t=t+Math.imul(U,Te)|0,s=s+Math.imul(U,Ie)|0;var Ve=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(ee,Ae),t=Math.imul(ee,Se),t=t+Math.imul(te,Ae)|0,s=Math.imul(te,Se),f=f+Math.imul(T,Me)|0,t=t+Math.imul(T,ge)|0,t=t+Math.imul(j,Me)|0,s=s+Math.imul(j,ge)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,s=s+Math.imul(k,De)|0,f=f+Math.imul(X,Te)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(P,Te)|0,s=s+Math.imul(P,Ie)|0,f=f+Math.imul(W,Ne)|0,t=t+Math.imul(W,Pe)|0,t=t+Math.imul(U,Ne)|0,s=s+Math.imul(U,Pe)|0;var et=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ae),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ae)|0,s=Math.imul(ne,Se),f=f+Math.imul(ee,Me)|0,t=t+Math.imul(ee,ge)|0,t=t+Math.imul(te,Me)|0,s=s+Math.imul(te,ge)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(j,Ce)|0,s=s+Math.imul(j,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,s=s+Math.imul(k,Ie)|0,f=f+Math.imul(X,Ne)|0,t=t+Math.imul(X,Pe)|0,t=t+Math.imul(P,Ne)|0,s=s+Math.imul(P,Pe)|0,f=f+Math.imul(W,qe)|0,t=t+Math.imul(W,Oe)|0,t=t+Math.imul(U,qe)|0,s=s+Math.imul(U,Oe)|0;var tt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ae),t=Math.imul(oe,Se),t=t+Math.imul(se,Ae)|0,s=Math.imul(se,Se),f=f+Math.imul(ie,Me)|0,t=t+Math.imul(ie,ge)|0,t=t+Math.imul(ne,Me)|0,s=s+Math.imul(ne,ge)|0,f=f+Math.imul(ee,Ce)|0,t=t+Math.imul(ee,De)|0,t=t+Math.imul(te,Ce)|0,s=s+Math.imul(te,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(j,Te)|0,s=s+Math.imul(j,Ie)|0,f=f+Math.imul(Z,Ne)|0,t=t+Math.imul(Z,Pe)|0,t=t+Math.imul(k,Ne)|0,s=s+Math.imul(k,Pe)|0,f=f+Math.imul(X,qe)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(P,qe)|0,s=s+Math.imul(P,Oe)|0,f=f+Math.imul(W,ke)|0,t=t+Math.imul(W,Ue)|0,t=t+Math.imul(U,ke)|0,s=s+Math.imul(U,Ue)|0;var ft=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ae),t=Math.imul(de,Se),t=t+Math.imul(ve,Ae)|0,s=Math.imul(ve,Se),f=f+Math.imul(oe,Me)|0,t=t+Math.imul(oe,ge)|0,t=t+Math.imul(se,Me)|0,s=s+Math.imul(se,ge)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,s=s+Math.imul(ne,De)|0,f=f+Math.imul(ee,Te)|0,t=t+Math.imul(ee,Ie)|0,t=t+Math.imul(te,Te)|0,s=s+Math.imul(te,Ie)|0,f=f+Math.imul(T,Ne)|0,t=t+Math.imul(T,Pe)|0,t=t+Math.imul(j,Ne)|0,s=s+Math.imul(j,Pe)|0,f=f+Math.imul(Z,qe)|0,t=t+Math.imul(Z,Oe)|0,t=t+Math.imul(k,qe)|0,s=s+Math.imul(k,Oe)|0,f=f+Math.imul(X,ke)|0,t=t+Math.imul(X,Ue)|0,t=t+Math.imul(P,ke)|0,s=s+Math.imul(P,Ue)|0,f=f+Math.imul(W,z)|0,t=t+Math.imul(W,L)|0,t=t+Math.imul(U,z)|0,s=s+Math.imul(U,L)|0;var at=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ae),t=Math.imul(be,Se),t=t+Math.imul(me,Ae)|0,s=Math.imul(me,Se),f=f+Math.imul(de,Me)|0,t=t+Math.imul(de,ge)|0,t=t+Math.imul(ve,Me)|0,s=s+Math.imul(ve,ge)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,s=s+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,s=s+Math.imul(ne,Ie)|0,f=f+Math.imul(ee,Ne)|0,t=t+Math.imul(ee,Pe)|0,t=t+Math.imul(te,Ne)|0,s=s+Math.imul(te,Pe)|0,f=f+Math.imul(T,qe)|0,t=t+Math.imul(T,Oe)|0,t=t+Math.imul(j,qe)|0,s=s+Math.imul(j,Oe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,s=s+Math.imul(k,Ue)|0,f=f+Math.imul(X,z)|0,t=t+Math.imul(X,L)|0,t=t+Math.imul(P,z)|0,s=s+Math.imul(P,L)|0,f=f+Math.imul(W,G)|0,t=t+Math.imul(W,ae)|0,t=t+Math.imul(U,G)|0,s=s+Math.imul(U,ae)|0;var rt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ae),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ae)|0,s=Math.imul(Be,Se),f=f+Math.imul(be,Me)|0,t=t+Math.imul(be,ge)|0,t=t+Math.imul(me,Me)|0,s=s+Math.imul(me,ge)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,s=s+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,s=s+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Ne)|0,t=t+Math.imul(ie,Pe)|0,t=t+Math.imul(ne,Ne)|0,s=s+Math.imul(ne,Pe)|0,f=f+Math.imul(ee,qe)|0,t=t+Math.imul(ee,Oe)|0,t=t+Math.imul(te,qe)|0,s=s+Math.imul(te,Oe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(j,ke)|0,s=s+Math.imul(j,Ue)|0,f=f+Math.imul(Z,z)|0,t=t+Math.imul(Z,L)|0,t=t+Math.imul(k,z)|0,s=s+Math.imul(k,L)|0,f=f+Math.imul(X,G)|0,t=t+Math.imul(X,ae)|0,t=t+Math.imul(P,G)|0,s=s+Math.imul(P,ae)|0,f=f+Math.imul(W,ue)|0,t=t+Math.imul(W,le)|0,t=t+Math.imul(U,ue)|0,s=s+Math.imul(U,le)|0;var nt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,Me),t=Math.imul(Fe,ge),t=t+Math.imul(Be,Me)|0,s=Math.imul(Be,ge),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,s=s+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,s=s+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Ne)|0,t=t+Math.imul(oe,Pe)|0,t=t+Math.imul(se,Ne)|0,s=s+Math.imul(se,Pe)|0,f=f+Math.imul(ie,qe)|0,t=t+Math.imul(ie,Oe)|0,t=t+Math.imul(ne,qe)|0,s=s+Math.imul(ne,Oe)|0,f=f+Math.imul(ee,ke)|0,t=t+Math.imul(ee,Ue)|0,t=t+Math.imul(te,ke)|0,s=s+Math.imul(te,Ue)|0,f=f+Math.imul(T,z)|0,t=t+Math.imul(T,L)|0,t=t+Math.imul(j,z)|0,s=s+Math.imul(j,L)|0,f=f+Math.imul(Z,G)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,G)|0,s=s+Math.imul(k,ae)|0,f=f+Math.imul(X,ue)|0,t=t+Math.imul(X,le)|0,t=t+Math.imul(P,ue)|0,s=s+Math.imul(P,le)|0;var it=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,s=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,s=s+Math.imul(me,Ie)|0,f=f+Math.imul(de,Ne)|0,t=t+Math.imul(de,Pe)|0,t=t+Math.imul(ve,Ne)|0,s=s+Math.imul(ve,Pe)|0,f=f+Math.imul(oe,qe)|0,t=t+Math.imul(oe,Oe)|0,t=t+Math.imul(se,qe)|0,s=s+Math.imul(se,Oe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,s=s+Math.imul(ne,Ue)|0,f=f+Math.imul(ee,z)|0,t=t+Math.imul(ee,L)|0,t=t+Math.imul(te,z)|0,s=s+Math.imul(te,L)|0,f=f+Math.imul(T,G)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(j,G)|0,s=s+Math.imul(j,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,s=s+Math.imul(k,le)|0;var Ze=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,s=Math.imul(Be,Ie),f=f+Math.imul(be,Ne)|0,t=t+Math.imul(be,Pe)|0,t=t+Math.imul(me,Ne)|0,s=s+Math.imul(me,Pe)|0,f=f+Math.imul(de,qe)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(ve,qe)|0,s=s+Math.imul(ve,Oe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,s=s+Math.imul(se,Ue)|0,f=f+Math.imul(ie,z)|0,t=t+Math.imul(ie,L)|0,t=t+Math.imul(ne,z)|0,s=s+Math.imul(ne,L)|0,f=f+Math.imul(ee,G)|0,t=t+Math.imul(ee,ae)|0,t=t+Math.imul(te,G)|0,s=s+Math.imul(te,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(j,ue)|0,s=s+Math.imul(j,le)|0;var Qe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,f=Math.imul(Fe,Ne),t=Math.imul(Fe,Pe),t=t+Math.imul(Be,Ne)|0,s=Math.imul(Be,Pe),f=f+Math.imul(be,qe)|0,t=t+Math.imul(be,Oe)|0,t=t+Math.imul(me,qe)|0,s=s+Math.imul(me,Oe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,s=s+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,z)|0,t=t+Math.imul(oe,L)|0,t=t+Math.imul(se,z)|0,s=s+Math.imul(se,L)|0,f=f+Math.imul(ie,G)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,G)|0,s=s+Math.imul(ne,ae)|0,f=f+Math.imul(ee,ue)|0,t=t+Math.imul(ee,le)|0,t=t+Math.imul(te,ue)|0,s=s+Math.imul(te,le)|0;var Ge=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(Fe,qe),t=Math.imul(Fe,Oe),t=t+Math.imul(Be,qe)|0,s=Math.imul(Be,Oe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,s=s+Math.imul(me,Ue)|0,f=f+Math.imul(de,z)|0,t=t+Math.imul(de,L)|0,t=t+Math.imul(ve,z)|0,s=s+Math.imul(ve,L)|0,f=f+Math.imul(oe,G)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,G)|0,s=s+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,s=s+Math.imul(ne,le)|0;var Xe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,s=Math.imul(Be,Ue),f=f+Math.imul(be,z)|0,t=t+Math.imul(be,L)|0,t=t+Math.imul(me,z)|0,s=s+Math.imul(me,L)|0,f=f+Math.imul(de,G)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,G)|0,s=s+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,s=s+Math.imul(se,le)|0;var Ye=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(Fe,z),t=Math.imul(Fe,L),t=t+Math.imul(Be,z)|0,s=Math.imul(Be,L),f=f+Math.imul(be,G)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,G)|0,s=s+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,s=s+Math.imul(ve,le)|0;var Ke=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,f=Math.imul(Fe,G),t=Math.imul(Fe,ae),t=t+Math.imul(Be,G)|0,s=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,s=s+Math.imul(me,le)|0;var we=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(we>>>26)|0,we&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,s=Math.imul(Be,le);var _e=(b+f|0)+((t&8191)<<13)|0;return b=(s+(t>>>13)|0)+(_e>>>26)|0,_e&=67108863,l[0]=Je,l[1]=We,l[2]=ht,l[3]=Ve,l[4]=et,l[5]=tt,l[6]=ft,l[7]=at,l[8]=rt,l[9]=nt,l[10]=it,l[11]=Ze,l[12]=Qe,l[13]=Ge,l[14]=Xe,l[15]=Ye,l[16]=Ke,l[17]=we,l[18]=_e,b!==0&&(l[19]=b,n.length++),n};Math.imul||(A=M);function B(u,e,r){r.negative=e.negative^u.negative,r.length=u.length+e.length;for(var n=0,a=0,o=0;o<r.length-1;o++){var l=a;a=0;for(var b=n&67108863,f=Math.min(o,e.length-1),t=Math.max(0,o-u.length+1);t<=f;t++){var s=o-t,$=u.words[s]|0,W=e.words[t]|0,U=$*W,Q=U&67108863;l=l+(U/67108864|0)|0,Q=Q+b|0,b=Q&67108863,l=l+(Q>>>26)|0,a+=l>>>26,l&=67108863}r.words[o]=b,n=l,l=a}return n!==0?r.words[o]=n:r.length--,r.strip()}function F(u,e,r){var n=new C;return n.mulp(u,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,r):a<63?n=M(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(u,e){this.x=u,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,o=0;o<r;o++)a|=(e&1)<<r-o-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,o,l){for(var b=0;b<l;b++)a[b]=r[e[b]],o[b]=n[e[b]]},C.prototype.transform=function(e,r,n,a,o,l){this.permute(l,e,r,n,a,o);for(var b=1;b<o;b<<=1)for(var f=b<<1,t=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),$=0;$<o;$+=f)for(var W=t,U=s,Q=0;Q<b;Q++){var X=n[$+Q],P=a[$+Q],H=n[$+Q+b],Z=a[$+Q+b],k=W*H-U*Z;Z=W*Z+U*H,H=k,n[$+Q]=X+H,a[$+Q]=P+Z,n[$+Q+b]=X-H,a[$+Q+b]=P-Z,Q!==f&&(k=t*W-s*U,U=t*U+s*W,W=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,o=0;for(n=n/2|0;n;n=n>>>1)o++;return 1<<o+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var o=e[a];e[a]=e[n-a-1],e[n-a-1]=o,o=r[a],r[a]=-r[n-a-1],r[n-a-1]=-o}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var o=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=o&67108863,o<67108864?n=0:n=o/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var o=0,l=0;l<r;l++)o=o+(e[l]|0),n[2*l]=o&8191,o=o>>>13,n[2*l+1]=o&8191,o=o>>>13;for(l=2*r;l<a;++l)n[l]=0;c(o===0),c((o&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(a),l=this.stub(a),b=new Array(a),f=new Array(a),t=new Array(a),s=new Array(a),$=new Array(a),W=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,b,a),this.convert13b(r.words,r.length,s,a),this.transform(b,l,f,t,a,o),this.transform(s,l,$,W,a,o);for(var Q=0;Q<a;Q++){var X=f[Q]*$[Q]-t[Q]*W[Q];t[Q]=f[Q]*W[Q]+t[Q]*$[Q],f[Q]=X}return this.conjugate(f,t,a),this.transform(f,t,U,l,a,o),this.conjugate(U,l,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){c(typeof e=="number"),c(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,o=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[n]=o&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=w(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var o=n.sqr();a<r.length;a++,o=o.sqr())r[a]!==0&&(n=n.mul(o));return n},i.prototype.iushln=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,o;if(r!==0){var l=0;for(o=0;o<this.length;o++){var b=this.words[o]&a,f=(this.words[o]|0)-b<<r;this.words[o]=f|l,l=b>>>26-r}l&&(this.words[o]=l,this.length++)}if(n!==0){for(o=this.length-1;o>=0;o--)this.words[o+n]=this.words[o];for(o=0;o<n;o++)this.words[o]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return c(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){c(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var o=e%26,l=Math.min((e-o)/26,this.length),b=67108863^67108863>>>o<<o,f=n;if(a-=l,a=Math.max(0,a),f){for(var t=0;t<l;t++)f.words[t]=this.words[t];f.length=l}if(l!==0)if(this.length>l)for(this.length-=l,t=0;t<this.length;t++)this.words[t]=this.words[t+l];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=a);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&b}return f&&s!==0&&(f.words[f.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return c(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var o=this.words[n];return!!(o&a)},i.prototype.imaskn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return c(typeof e=="number"),c(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(c(typeof e=="number"),c(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,o;this._expand(a);var l,b=0;for(o=0;o<e.length;o++){l=(this.words[o+n]|0)+b;var f=(e.words[o]|0)*r;l-=f&67108863,b=(l>>26)-(f/67108864|0),this.words[o+n]=l&67108863}for(;o<this.length-n;o++)l=(this.words[o+n]|0)+b,b=l>>26,this.words[o+n]=l&67108863;if(b===0)return this.strip();for(c(b===-1),b=0,o=0;o<this.length;o++)l=-(this.words[o]|0)+b,b=l>>26,this.words[o]=l&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),o=e,l=o.words[o.length-1]|0,b=this._countBits(l);n=26-b,n!==0&&(o=o.ushln(n),a.iushln(n),l=o.words[o.length-1]|0);var f=a.length-o.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=a.clone()._ishlnsubmul(o,1,f);$.negative===0&&(a=$,t&&(t.words[f]=1));for(var W=f-1;W>=0;W--){var U=(a.words[o.length+W]|0)*67108864+(a.words[o.length+W-1]|0);for(U=Math.min(U/l|0,67108863),a._ishlnsubmul(o,U,W);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(o,1,W),a.isZero()||(a.negative^=1);t&&(t.words[W]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(c(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,l;return this.negative!==0&&e.negative===0?(l=this.neg().divmod(e,r),r!=="mod"&&(a=l.div.neg()),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(l=this.divmod(e.neg(),r),r!=="mod"&&(a=l.div.neg()),{div:a,mod:l.mod}):(this.negative&e.negative)!==0?(l=this.neg().divmod(e.neg(),r),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),o=e.andln(1),l=n.cmp(a);return l<0||o===1&&l===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){c(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){c(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=new i(0),b=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),s=r.clone();!r.isZero();){for(var $=0,W=1;(r.words[0]&W)===0&&$<26;++$,W<<=1);if($>0)for(r.iushrn($);$-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(t),o.isub(s)),a.iushrn(1),o.iushrn(1);for(var U=0,Q=1;(n.words[0]&Q)===0&&U<26;++U,Q<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(l.isOdd()||b.isOdd())&&(l.iadd(t),b.isub(s)),l.iushrn(1),b.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(l),o.isub(b)):(n.isub(r),l.isub(a),b.isub(o))}return{a:l,b,gcd:n.iushln(f)}},i.prototype._invmp=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var b=0,f=1;(r.words[0]&f)===0&&b<26;++b,f<<=1);if(b>0)for(r.iushrn(b);b-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var t=0,s=1;(n.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(n.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(o)):(n.isub(r),o.isub(a))}var $;return r.cmpn(1)===0?$=a:$=o,$.cmpn(0)<0&&$.iadd(e),$},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=r.cmp(n);if(o<0){var l=r;r=n,n=l}else if(o===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){c(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var o=a,l=n;o!==0&&l<this.length;l++){var b=this.words[l]|0;b+=o,o=b>>>26,b&=67108863,this.words[l]=b}return o!==0&&(this.words[l]=o,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),c(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,o=e.words[n]|0;if(a!==o){a<o?r=-1:a>o&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new V(e)},i.prototype.toRed=function(e){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return c(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return c(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(u,e){this.name=u,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function K(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(K,D),K.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),o=0;o<a;o++)r.words[o]=e.words[o];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var l=e.words[9];for(r.words[r.length++]=l&n,o=10;o<e.length;o++){var b=e.words[o]|0;e.words[o-10]=(b&n)<<4|l>>>22,l=b}l>>>=22,e.words[o-10]=l,l===0&&e.length>10?e.length-=10:e.length-=9},K.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function q(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(q,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(Y,D);function J(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(J,D),J.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,o=a&67108863;a>>>=26,e.words[n]=o,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new K;else if(e==="p224")r=new q;else if(e==="p192")r=new Y;else if(e==="p25519")r=new J;else throw new Error("Unknown prime "+e);return R[e]=r,r};function V(u){if(typeof u=="string"){var e=i._prime(u);this.m=e.p,this.prime=e}else c(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}V.prototype._verify1=function(e){c(e.negative===0,"red works only with positives"),c(e.red,"red works only with red numbers")},V.prototype._verify2=function(e,r){c((e.negative|r.negative)===0,"red works only with positives"),c(e.red&&e.red===r.red,"red works only with red numbers")},V.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},V.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},V.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},V.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},V.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},V.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},V.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},V.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},V.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},V.prototype.isqr=function(e){return this.imul(e,e.clone())},V.prototype.sqr=function(e){return this.mul(e,e)},V.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(c(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);c(!a.isZero());var l=new i(1).toRed(this),b=l.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(b)!==0;)t.redIAdd(b);for(var s=this.pow(t,a),$=this.pow(e,a.addn(1).iushrn(1)),W=this.pow(e,a),U=o;W.cmp(l)!==0;){for(var Q=W,X=0;Q.cmp(l)!==0;X++)Q=Q.redSqr();c(X<U);var P=this.pow(s,new i(1).iushln(U-X-1));$=$.redMul(P),s=P.redSqr(),W=W.redMul(s),U=X}return $},V.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},V.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var l=a[0],b=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),o=r.length-1;o>=0;o--){for(var s=r.words[o],$=t-1;$>=0;$--){var W=s>>$&1;if(l!==a[0]&&(l=this.sqr(l)),W===0&&b===0){f=0;continue}b<<=1,b|=W,f++,!(f!==n&&(o!==0||$!==0))&&(l=this.mul(l,a[b]),f=0,b=0)}t=26}return l},V.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},V.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new re(e)};function re(u){V.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}E(re,V),re.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},re.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},re.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(g,Hp)})(Vr)),Vr.exports}var ka={},th;function Ec(){return th||(th=1,(function(g){var x=g;function S(i,_){if(Array.isArray(i))return i.slice();if(!i)return[];var y=[];if(typeof i!="string"){for(var m=0;m<i.length;m++)y[m]=i[m]|0;return y}if(_==="hex"){i=i.replace(/[^a-z0-9]+/ig,""),i.length%2!==0&&(i="0"+i);for(var m=0;m<i.length;m+=2)y.push(parseInt(i[m]+i[m+1],16))}else for(var m=0;m<i.length;m++){var h=i.charCodeAt(m),d=h>>8,p=h&255;d?y.push(d,p):y.push(p)}return y}x.toArray=S;function c(i){return i.length===1?"0"+i:i}x.zero2=c;function E(i){for(var _="",y=0;y<i.length;y++)_+=c(i[y].toString(16));return _}x.toHex=E,x.encode=function(_,y){return y==="hex"?E(_):_}})(ka)),ka}var rh;function Vt(){return rh||(rh=1,(function(g){var x=g,S=Yt(),c=Gt(),E=Ec();x.assert=c,x.toArray=E.toArray,x.zero2=E.zero2,x.toHex=E.toHex,x.encode=E.encode;function i(d,p,v){var w=new Array(Math.max(d.bitLength(),v)+1),M;for(M=0;M<w.length;M+=1)w[M]=0;var A=1<<p+1,B=d.clone();for(M=0;M<w.length;M++){var F,C=B.andln(A-1);B.isOdd()?(C>(A>>1)-1?F=(A>>1)-C:F=C,B.isubn(F)):F=0,w[M]=F,B.iushrn(1)}return w}x.getNAF=i;function _(d,p){var v=[[],[]];d=d.clone(),p=p.clone();for(var w=0,M=0,A;d.cmpn(-w)>0||p.cmpn(-M)>0;){var B=d.andln(3)+w&3,F=p.andln(3)+M&3;B===3&&(B=-1),F===3&&(F=-1);var C;(B&1)===0?C=0:(A=d.andln(7)+w&7,(A===3||A===5)&&F===2?C=-B:C=B),v[0].push(C);var R;(F&1)===0?R=0:(A=p.andln(7)+M&7,(A===3||A===5)&&B===2?R=-F:R=F),v[1].push(R),2*w===C+1&&(w=1-w),2*M===R+1&&(M=1-M),d.iushrn(1),p.iushrn(1)}return v}x.getJSF=_;function y(d,p,v){var w="_"+p;d.prototype[p]=function(){return this[w]!==void 0?this[w]:this[w]=v.call(this)}}x.cachedProperty=y;function m(d){return typeof d=="string"?x.toArray(d,"hex"):d}x.parseBytes=m;function h(d){return new S(d,"hex","le")}x.intFromLE=h})(Ia)),Ia}var Na={},Pa,ih;function si(){if(ih)return Pa;ih=1;var g=Yt(),x=Vt(),S=x.getNAF,c=x.getJSF,E=x.assert;function i(y,m){this.type=y,this.p=new g(m.p,16),this.red=m.prime?g.red(m.prime):g.mont(this.p),this.zero=new g(0).toRed(this.red),this.one=new g(1).toRed(this.red),this.two=new g(2).toRed(this.red),this.n=m.n&&new g(m.n,16),this.g=m.g&&this.pointFromJSON(m.g,m.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 h=this.n&&this.p.div(this.n);!h||h.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}Pa=i,i.prototype.point=function(){throw new Error("Not implemented")},i.prototype.validate=function(){throw new Error("Not implemented")},i.prototype._fixedNafMul=function(m,h){E(m.precomputed);var d=m._getDoubles(),p=S(h,1,this._bitLength),v=(1<<d.step+1)-(d.step%2===0?2:1);v/=3;var w=[],M,A;for(M=0;M<p.length;M+=d.step){A=0;for(var B=M+d.step-1;B>=M;B--)A=(A<<1)+p[B];w.push(A)}for(var F=this.jpoint(null,null,null),C=this.jpoint(null,null,null),R=v;R>0;R--){for(M=0;M<w.length;M++)A=w[M],A===R?C=C.mixedAdd(d.points[M]):A===-R&&(C=C.mixedAdd(d.points[M].neg()));F=F.add(C)}return F.toP()},i.prototype._wnafMul=function(m,h){var d=4,p=m._getNAFPoints(d);d=p.wnd;for(var v=p.points,w=S(h,d,this._bitLength),M=this.jpoint(null,null,null),A=w.length-1;A>=0;A--){for(var B=0;A>=0&&w[A]===0;A--)B++;if(A>=0&&B++,M=M.dblp(B),A<0)break;var F=w[A];E(F!==0),m.type==="affine"?F>0?M=M.mixedAdd(v[F-1>>1]):M=M.mixedAdd(v[-F-1>>1].neg()):F>0?M=M.add(v[F-1>>1]):M=M.add(v[-F-1>>1].neg())}return m.type==="affine"?M.toP():M},i.prototype._wnafMulAdd=function(m,h,d,p,v){var w=this._wnafT1,M=this._wnafT2,A=this._wnafT3,B=0,F,C,R;for(F=0;F<p;F++){R=h[F];var D=R._getNAFPoints(m);w[F]=D.wnd,M[F]=D.points}for(F=p-1;F>=1;F-=2){var K=F-1,q=F;if(w[K]!==1||w[q]!==1){A[K]=S(d[K],w[K],this._bitLength),A[q]=S(d[q],w[q],this._bitLength),B=Math.max(A[K].length,B),B=Math.max(A[q].length,B);continue}var Y=[h[K],null,null,h[q]];h[K].y.cmp(h[q].y)===0?(Y[1]=h[K].add(h[q]),Y[2]=h[K].toJ().mixedAdd(h[q].neg())):h[K].y.cmp(h[q].y.redNeg())===0?(Y[1]=h[K].toJ().mixedAdd(h[q]),Y[2]=h[K].add(h[q].neg())):(Y[1]=h[K].toJ().mixedAdd(h[q]),Y[2]=h[K].toJ().mixedAdd(h[q].neg()));var J=[-3,-1,-5,-7,0,7,5,1,3],V=c(d[K],d[q]);for(B=Math.max(V[0].length,B),A[K]=new Array(B),A[q]=new Array(B),C=0;C<B;C++){var re=V[0][C]|0,u=V[1][C]|0;A[K][C]=J[(re+1)*3+(u+1)],A[q][C]=0,M[K]=Y}}var e=this.jpoint(null,null,null),r=this._wnafT4;for(F=B;F>=0;F--){for(var n=0;F>=0;){var a=!0;for(C=0;C<p;C++)r[C]=A[C][F]|0,r[C]!==0&&(a=!1);if(!a)break;n++,F--}if(F>=0&&n++,e=e.dblp(n),F<0)break;for(C=0;C<p;C++){var o=r[C];o!==0&&(o>0?R=M[C][o-1>>1]:o<0&&(R=M[C][-o-1>>1].neg()),R.type==="affine"?e=e.mixedAdd(R):e=e.add(R))}}for(F=0;F<p;F++)M[F]=null;return v?e:e.toP()};function _(y,m){this.curve=y,this.type=m,this.precomputed=null}return i.BasePoint=_,_.prototype.eq=function(){throw new Error("Not implemented")},_.prototype.validate=function(){return this.curve.validate(this)},i.prototype.decodePoint=function(m,h){m=x.toArray(m,h);var d=this.p.byteLength();if((m[0]===4||m[0]===6||m[0]===7)&&m.length-1===2*d){m[0]===6?E(m[m.length-1]%2===0):m[0]===7&&E(m[m.length-1]%2===1);var p=this.point(m.slice(1,1+d),m.slice(1+d,1+2*d));return p}else if((m[0]===2||m[0]===3)&&m.length-1===d)return this.pointFromX(m.slice(1,1+d),m[0]===3);throw new Error("Unknown point format")},_.prototype.encodeCompressed=function(m){return this.encode(m,!0)},_.prototype._encode=function(m){var h=this.curve.p.byteLength(),d=this.getX().toArray("be",h);return m?[this.getY().isEven()?2:3].concat(d):[4].concat(d,this.getY().toArray("be",h))},_.prototype.encode=function(m,h){return x.encode(this._encode(h),m)},_.prototype.precompute=function(m){if(this.precomputed)return this;var h={doubles:null,naf:null,beta:null};return h.naf=this._getNAFPoints(8),h.doubles=this._getDoubles(4,m),h.beta=this._getBeta(),this.precomputed=h,this},_.prototype._hasDoubles=function(m){if(!this.precomputed)return!1;var h=this.precomputed.doubles;return h?h.points.length>=Math.ceil((m.bitLength()+1)/h.step):!1},_.prototype._getDoubles=function(m,h){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var d=[this],p=this,v=0;v<h;v+=m){for(var w=0;w<m;w++)p=p.dbl();d.push(p)}return{step:m,points:d}},_.prototype._getNAFPoints=function(m){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var h=[this],d=(1<<m)-1,p=d===1?null:this.dbl(),v=1;v<d;v++)h[v]=h[v-1].add(p);return{wnd:m,points:h}},_.prototype._getBeta=function(){return null},_.prototype.dblp=function(m){for(var h=this,d=0;d<m;d++)h=h.dbl();return h},Pa}var qa,nh;function zp(){if(nh)return qa;nh=1;var g=Vt(),x=Yt(),S=dt(),c=si(),E=g.assert;function i(m){c.call(this,"short",m),this.a=new x(m.a,16).toRed(this.red),this.b=new x(m.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(m),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}S(i,c),qa=i,i.prototype._getEndomorphism=function(h){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var d,p;if(h.beta)d=new x(h.beta,16).toRed(this.red);else{var v=this._getEndoRoots(this.p);d=v[0].cmp(v[1])<0?v[0]:v[1],d=d.toRed(this.red)}if(h.lambda)p=new x(h.lambda,16);else{var w=this._getEndoRoots(this.n);this.g.mul(w[0]).x.cmp(this.g.x.redMul(d))===0?p=w[0]:(p=w[1],E(this.g.mul(p).x.cmp(this.g.x.redMul(d))===0))}var M;return h.basis?M=h.basis.map(function(A){return{a:new x(A.a,16),b:new x(A.b,16)}}):M=this._getEndoBasis(p),{beta:d,lambda:p,basis:M}}},i.prototype._getEndoRoots=function(h){var d=h===this.p?this.red:x.mont(h),p=new x(2).toRed(d).redInvm(),v=p.redNeg(),w=new x(3).toRed(d).redNeg().redSqrt().redMul(p),M=v.redAdd(w).fromRed(),A=v.redSub(w).fromRed();return[M,A]},i.prototype._getEndoBasis=function(h){for(var d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),p=h,v=this.n.clone(),w=new x(1),M=new x(0),A=new x(0),B=new x(1),F,C,R,D,K,q,Y,J=0,V,re;p.cmpn(0)!==0;){var u=v.div(p);V=v.sub(u.mul(p)),re=A.sub(u.mul(w));var e=B.sub(u.mul(M));if(!R&&V.cmp(d)<0)F=Y.neg(),C=w,R=V.neg(),D=re;else if(R&&++J===2)break;Y=V,v=p,p=V,A=w,w=re,B=M,M=e}K=V.neg(),q=re;var r=R.sqr().add(D.sqr()),n=K.sqr().add(q.sqr());return n.cmp(r)>=0&&(K=F,q=C),R.negative&&(R=R.neg(),D=D.neg()),K.negative&&(K=K.neg(),q=q.neg()),[{a:R,b:D},{a:K,b:q}]},i.prototype._endoSplit=function(h){var d=this.endo.basis,p=d[0],v=d[1],w=v.b.mul(h).divRound(this.n),M=p.b.neg().mul(h).divRound(this.n),A=w.mul(p.a),B=M.mul(v.a),F=w.mul(p.b),C=M.mul(v.b),R=h.sub(A).sub(B),D=F.add(C).neg();return{k1:R,k2:D}},i.prototype.pointFromX=function(h,d){h=new x(h,16),h.red||(h=h.toRed(this.red));var p=h.redSqr().redMul(h).redIAdd(h.redMul(this.a)).redIAdd(this.b),v=p.redSqrt();if(v.redSqr().redSub(p).cmp(this.zero)!==0)throw new Error("invalid point");var w=v.fromRed().isOdd();return(d&&!w||!d&&w)&&(v=v.redNeg()),this.point(h,v)},i.prototype.validate=function(h){if(h.inf)return!0;var d=h.x,p=h.y,v=this.a.redMul(d),w=d.redSqr().redMul(d).redIAdd(v).redIAdd(this.b);return p.redSqr().redISub(w).cmpn(0)===0},i.prototype._endoWnafMulAdd=function(h,d,p){for(var v=this._endoWnafT1,w=this._endoWnafT2,M=0;M<h.length;M++){var A=this._endoSplit(d[M]),B=h[M],F=B._getBeta();A.k1.negative&&(A.k1.ineg(),B=B.neg(!0)),A.k2.negative&&(A.k2.ineg(),F=F.neg(!0)),v[M*2]=B,v[M*2+1]=F,w[M*2]=A.k1,w[M*2+1]=A.k2}for(var C=this._wnafMulAdd(1,v,w,M*2,p),R=0;R<M*2;R++)v[R]=null,w[R]=null;return C};function _(m,h,d,p){c.BasePoint.call(this,m,"affine"),h===null&&d===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new x(h,16),this.y=new x(d,16),p&&(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)}S(_,c.BasePoint),i.prototype.point=function(h,d,p){return new _(this,h,d,p)},i.prototype.pointFromJSON=function(h,d){return _.fromJSON(this,h,d)},_.prototype._getBeta=function(){if(this.curve.endo){var h=this.precomputed;if(h&&h.beta)return h.beta;var d=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(h){var p=this.curve,v=function(w){return p.point(w.x.redMul(p.endo.beta),w.y)};h.beta=d,d.precomputed={beta:null,naf:h.naf&&{wnd:h.naf.wnd,points:h.naf.points.map(v)},doubles:h.doubles&&{step:h.doubles.step,points:h.doubles.points.map(v)}}}return d}},_.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]},_.fromJSON=function(h,d,p){typeof d=="string"&&(d=JSON.parse(d));var v=h.point(d[0],d[1],p);if(!d[2])return v;function w(A){return h.point(A[0],A[1],p)}var M=d[2];return v.precomputed={beta:null,doubles:M.doubles&&{step:M.doubles.step,points:[v].concat(M.doubles.points.map(w))},naf:M.naf&&{wnd:M.naf.wnd,points:[v].concat(M.naf.points.map(w))}},v},_.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)+">"},_.prototype.isInfinity=function(){return this.inf},_.prototype.add=function(h){if(this.inf)return h;if(h.inf)return this;if(this.eq(h))return this.dbl();if(this.neg().eq(h))return this.curve.point(null,null);if(this.x.cmp(h.x)===0)return this.curve.point(null,null);var d=this.y.redSub(h.y);d.cmpn(0)!==0&&(d=d.redMul(this.x.redSub(h.x).redInvm()));var p=d.redSqr().redISub(this.x).redISub(h.x),v=d.redMul(this.x.redSub(p)).redISub(this.y);return this.curve.point(p,v)},_.prototype.dbl=function(){if(this.inf)return this;var h=this.y.redAdd(this.y);if(h.cmpn(0)===0)return this.curve.point(null,null);var d=this.curve.a,p=this.x.redSqr(),v=h.redInvm(),w=p.redAdd(p).redIAdd(p).redIAdd(d).redMul(v),M=w.redSqr().redISub(this.x.redAdd(this.x)),A=w.redMul(this.x.redSub(M)).redISub(this.y);return this.curve.point(M,A)},_.prototype.getX=function(){return this.x.fromRed()},_.prototype.getY=function(){return this.y.fromRed()},_.prototype.mul=function(h){return h=new x(h,16),this.isInfinity()?this:this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve.endo?this.curve._endoWnafMulAdd([this],[h]):this.curve._wnafMul(this,h)},_.prototype.mulAdd=function(h,d,p){var v=[this,d],w=[h,p];return this.curve.endo?this.curve._endoWnafMulAdd(v,w):this.curve._wnafMulAdd(1,v,w,2)},_.prototype.jmulAdd=function(h,d,p){var v=[this,d],w=[h,p];return this.curve.endo?this.curve._endoWnafMulAdd(v,w,!0):this.curve._wnafMulAdd(1,v,w,2,!0)},_.prototype.eq=function(h){return this===h||this.inf===h.inf&&(this.inf||this.x.cmp(h.x)===0&&this.y.cmp(h.y)===0)},_.prototype.neg=function(h){if(this.inf)return this;var d=this.curve.point(this.x,this.y.redNeg());if(h&&this.precomputed){var p=this.precomputed,v=function(w){return w.neg()};d.precomputed={naf:p.naf&&{wnd:p.naf.wnd,points:p.naf.points.map(v)},doubles:p.doubles&&{step:p.doubles.step,points:p.doubles.points.map(v)}}}return d},_.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var h=this.curve.jpoint(this.x,this.y,this.curve.one);return h};function y(m,h,d,p){c.BasePoint.call(this,m,"jacobian"),h===null&&d===null&&p===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new x(0)):(this.x=new x(h,16),this.y=new x(d,16),this.z=new x(p,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}return S(y,c.BasePoint),i.prototype.jpoint=function(h,d,p){return new y(this,h,d,p)},y.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var h=this.z.redInvm(),d=h.redSqr(),p=this.x.redMul(d),v=this.y.redMul(d).redMul(h);return this.curve.point(p,v)},y.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},y.prototype.add=function(h){if(this.isInfinity())return h;if(h.isInfinity())return this;var d=h.z.redSqr(),p=this.z.redSqr(),v=this.x.redMul(d),w=h.x.redMul(p),M=this.y.redMul(d.redMul(h.z)),A=h.y.redMul(p.redMul(this.z)),B=v.redSub(w),F=M.redSub(A);if(B.cmpn(0)===0)return F.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var C=B.redSqr(),R=C.redMul(B),D=v.redMul(C),K=F.redSqr().redIAdd(R).redISub(D).redISub(D),q=F.redMul(D.redISub(K)).redISub(M.redMul(R)),Y=this.z.redMul(h.z).redMul(B);return this.curve.jpoint(K,q,Y)},y.prototype.mixedAdd=function(h){if(this.isInfinity())return h.toJ();if(h.isInfinity())return this;var d=this.z.redSqr(),p=this.x,v=h.x.redMul(d),w=this.y,M=h.y.redMul(d).redMul(this.z),A=p.redSub(v),B=w.redSub(M);if(A.cmpn(0)===0)return B.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var F=A.redSqr(),C=F.redMul(A),R=p.redMul(F),D=B.redSqr().redIAdd(C).redISub(R).redISub(R),K=B.redMul(R.redISub(D)).redISub(w.redMul(C)),q=this.z.redMul(A);return this.curve.jpoint(D,K,q)},y.prototype.dblp=function(h){if(h===0)return this;if(this.isInfinity())return this;if(!h)return this.dbl();var d;if(this.curve.zeroA||this.curve.threeA){var p=this;for(d=0;d<h;d++)p=p.dbl();return p}var v=this.curve.a,w=this.curve.tinv,M=this.x,A=this.y,B=this.z,F=B.redSqr().redSqr(),C=A.redAdd(A);for(d=0;d<h;d++){var R=M.redSqr(),D=C.redSqr(),K=D.redSqr(),q=R.redAdd(R).redIAdd(R).redIAdd(v.redMul(F)),Y=M.redMul(D),J=q.redSqr().redISub(Y.redAdd(Y)),V=Y.redISub(J),re=q.redMul(V);re=re.redIAdd(re).redISub(K);var u=C.redMul(B);d+1<h&&(F=F.redMul(K)),M=J,B=u,C=re}return this.curve.jpoint(M,C.redMul(w),B)},y.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},y.prototype._zeroDbl=function(){var h,d,p;if(this.zOne){var v=this.x.redSqr(),w=this.y.redSqr(),M=w.redSqr(),A=this.x.redAdd(w).redSqr().redISub(v).redISub(M);A=A.redIAdd(A);var B=v.redAdd(v).redIAdd(v),F=B.redSqr().redISub(A).redISub(A),C=M.redIAdd(M);C=C.redIAdd(C),C=C.redIAdd(C),h=F,d=B.redMul(A.redISub(F)).redISub(C),p=this.y.redAdd(this.y)}else{var R=this.x.redSqr(),D=this.y.redSqr(),K=D.redSqr(),q=this.x.redAdd(D).redSqr().redISub(R).redISub(K);q=q.redIAdd(q);var Y=R.redAdd(R).redIAdd(R),J=Y.redSqr(),V=K.redIAdd(K);V=V.redIAdd(V),V=V.redIAdd(V),h=J.redISub(q).redISub(q),d=Y.redMul(q.redISub(h)).redISub(V),p=this.y.redMul(this.z),p=p.redIAdd(p)}return this.curve.jpoint(h,d,p)},y.prototype._threeDbl=function(){var h,d,p;if(this.zOne){var v=this.x.redSqr(),w=this.y.redSqr(),M=w.redSqr(),A=this.x.redAdd(w).redSqr().redISub(v).redISub(M);A=A.redIAdd(A);var B=v.redAdd(v).redIAdd(v).redIAdd(this.curve.a),F=B.redSqr().redISub(A).redISub(A);h=F;var C=M.redIAdd(M);C=C.redIAdd(C),C=C.redIAdd(C),d=B.redMul(A.redISub(F)).redISub(C),p=this.y.redAdd(this.y)}else{var R=this.z.redSqr(),D=this.y.redSqr(),K=this.x.redMul(D),q=this.x.redSub(R).redMul(this.x.redAdd(R));q=q.redAdd(q).redIAdd(q);var Y=K.redIAdd(K);Y=Y.redIAdd(Y);var J=Y.redAdd(Y);h=q.redSqr().redISub(J),p=this.y.redAdd(this.z).redSqr().redISub(D).redISub(R);var V=D.redSqr();V=V.redIAdd(V),V=V.redIAdd(V),V=V.redIAdd(V),d=q.redMul(Y.redISub(h)).redISub(V)}return this.curve.jpoint(h,d,p)},y.prototype._dbl=function(){var h=this.curve.a,d=this.x,p=this.y,v=this.z,w=v.redSqr().redSqr(),M=d.redSqr(),A=p.redSqr(),B=M.redAdd(M).redIAdd(M).redIAdd(h.redMul(w)),F=d.redAdd(d);F=F.redIAdd(F);var C=F.redMul(A),R=B.redSqr().redISub(C.redAdd(C)),D=C.redISub(R),K=A.redSqr();K=K.redIAdd(K),K=K.redIAdd(K),K=K.redIAdd(K);var q=B.redMul(D).redISub(K),Y=p.redAdd(p).redMul(v);return this.curve.jpoint(R,q,Y)},y.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var h=this.x.redSqr(),d=this.y.redSqr(),p=this.z.redSqr(),v=d.redSqr(),w=h.redAdd(h).redIAdd(h),M=w.redSqr(),A=this.x.redAdd(d).redSqr().redISub(h).redISub(v);A=A.redIAdd(A),A=A.redAdd(A).redIAdd(A),A=A.redISub(M);var B=A.redSqr(),F=v.redIAdd(v);F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F);var C=w.redIAdd(A).redSqr().redISub(M).redISub(B).redISub(F),R=d.redMul(C);R=R.redIAdd(R),R=R.redIAdd(R);var D=this.x.redMul(B).redISub(R);D=D.redIAdd(D),D=D.redIAdd(D);var K=this.y.redMul(C.redMul(F.redISub(C)).redISub(A.redMul(B)));K=K.redIAdd(K),K=K.redIAdd(K),K=K.redIAdd(K);var q=this.z.redAdd(A).redSqr().redISub(p).redISub(B);return this.curve.jpoint(D,K,q)},y.prototype.mul=function(h,d){return h=new x(h,d),this.curve._wnafMul(this,h)},y.prototype.eq=function(h){if(h.type==="affine")return this.eq(h.toJ());if(this===h)return!0;var d=this.z.redSqr(),p=h.z.redSqr();if(this.x.redMul(p).redISub(h.x.redMul(d)).cmpn(0)!==0)return!1;var v=d.redMul(this.z),w=p.redMul(h.z);return this.y.redMul(w).redISub(h.y.redMul(v)).cmpn(0)===0},y.prototype.eqXToP=function(h){var d=this.z.redSqr(),p=h.toRed(this.curve.red).redMul(d);if(this.x.cmp(p)===0)return!0;for(var v=h.clone(),w=this.curve.redN.redMul(d);;){if(v.iadd(this.curve.n),v.cmp(this.curve.p)>=0)return!1;if(p.redIAdd(w),this.x.cmp(p)===0)return!0}},y.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)+">"},y.prototype.isInfinity=function(){return this.z.cmpn(0)===0},qa}var Oa,ah;function $p(){if(ah)return Oa;ah=1;var g=Yt(),x=dt(),S=si(),c=Vt();function E(_){S.call(this,"mont",_),this.a=new g(_.a,16).toRed(this.red),this.b=new g(_.b,16).toRed(this.red),this.i4=new g(4).toRed(this.red).redInvm(),this.two=new g(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}x(E,S),Oa=E,E.prototype.validate=function(y){var m=y.normalize().x,h=m.redSqr(),d=h.redMul(m).redAdd(h.redMul(this.a)).redAdd(m),p=d.redSqrt();return p.redSqr().cmp(d)===0};function i(_,y,m){S.BasePoint.call(this,_,"projective"),y===null&&m===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new g(y,16),this.z=new g(m,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return x(i,S.BasePoint),E.prototype.decodePoint=function(y,m){return this.point(c.toArray(y,m),1)},E.prototype.point=function(y,m){return new i(this,y,m)},E.prototype.pointFromJSON=function(y){return i.fromJSON(this,y)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(y,m){return new i(y,m[0],m[1]||y.one)},i.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)+">"},i.prototype.isInfinity=function(){return this.z.cmpn(0)===0},i.prototype.dbl=function(){var y=this.x.redAdd(this.z),m=y.redSqr(),h=this.x.redSub(this.z),d=h.redSqr(),p=m.redSub(d),v=m.redMul(d),w=p.redMul(d.redAdd(this.curve.a24.redMul(p)));return this.curve.point(v,w)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(y,m){var h=this.x.redAdd(this.z),d=this.x.redSub(this.z),p=y.x.redAdd(y.z),v=y.x.redSub(y.z),w=v.redMul(h),M=p.redMul(d),A=m.z.redMul(w.redAdd(M).redSqr()),B=m.x.redMul(w.redISub(M).redSqr());return this.curve.point(A,B)},i.prototype.mul=function(y){for(var m=y.clone(),h=this,d=this.curve.point(null,null),p=this,v=[];m.cmpn(0)!==0;m.iushrn(1))v.push(m.andln(1));for(var w=v.length-1;w>=0;w--)v[w]===0?(h=h.diffAdd(d,p),d=d.dbl()):(d=h.diffAdd(d,p),h=h.dbl());return d},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(y){return this.getX().cmp(y.getX())===0},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Oa}var Ua,fh;function Kp(){if(fh)return Ua;fh=1;var g=Vt(),x=Yt(),S=dt(),c=si(),E=g.assert;function i(y){this.twisted=(y.a|0)!==1,this.mOneA=this.twisted&&(y.a|0)===-1,this.extended=this.mOneA,c.call(this,"edwards",y),this.a=new x(y.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new x(y.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new x(y.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),E(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(y.c|0)===1}S(i,c),Ua=i,i.prototype._mulA=function(m){return this.mOneA?m.redNeg():this.a.redMul(m)},i.prototype._mulC=function(m){return this.oneC?m:this.c.redMul(m)},i.prototype.jpoint=function(m,h,d,p){return this.point(m,h,d,p)},i.prototype.pointFromX=function(m,h){m=new x(m,16),m.red||(m=m.toRed(this.red));var d=m.redSqr(),p=this.c2.redSub(this.a.redMul(d)),v=this.one.redSub(this.c2.redMul(this.d).redMul(d)),w=p.redMul(v.redInvm()),M=w.redSqrt();if(M.redSqr().redSub(w).cmp(this.zero)!==0)throw new Error("invalid point");var A=M.fromRed().isOdd();return(h&&!A||!h&&A)&&(M=M.redNeg()),this.point(m,M)},i.prototype.pointFromY=function(m,h){m=new x(m,16),m.red||(m=m.toRed(this.red));var d=m.redSqr(),p=d.redSub(this.c2),v=d.redMul(this.d).redMul(this.c2).redSub(this.a),w=p.redMul(v.redInvm());if(w.cmp(this.zero)===0){if(h)throw new Error("invalid point");return this.point(this.zero,m)}var M=w.redSqrt();if(M.redSqr().redSub(w).cmp(this.zero)!==0)throw new Error("invalid point");return M.fromRed().isOdd()!==h&&(M=M.redNeg()),this.point(M,m)},i.prototype.validate=function(m){if(m.isInfinity())return!0;m.normalize();var h=m.x.redSqr(),d=m.y.redSqr(),p=h.redMul(this.a).redAdd(d),v=this.c2.redMul(this.one.redAdd(this.d.redMul(h).redMul(d)));return p.cmp(v)===0};function _(y,m,h,d,p){c.BasePoint.call(this,y,"projective"),m===null&&h===null&&d===null?(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 x(m,16),this.y=new x(h,16),this.z=d?new x(d,16):this.curve.one,this.t=p&&new x(p,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()))))}return S(_,c.BasePoint),i.prototype.pointFromJSON=function(m){return _.fromJSON(this,m)},i.prototype.point=function(m,h,d,p){return new _(this,m,h,d,p)},_.fromJSON=function(m,h){return new _(m,h[0],h[1],h[2])},_.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)+">"},_.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},_.prototype._extDbl=function(){var m=this.x.redSqr(),h=this.y.redSqr(),d=this.z.redSqr();d=d.redIAdd(d);var p=this.curve._mulA(m),v=this.x.redAdd(this.y).redSqr().redISub(m).redISub(h),w=p.redAdd(h),M=w.redSub(d),A=p.redSub(h),B=v.redMul(M),F=w.redMul(A),C=v.redMul(A),R=M.redMul(w);return this.curve.point(B,F,R,C)},_.prototype._projDbl=function(){var m=this.x.redAdd(this.y).redSqr(),h=this.x.redSqr(),d=this.y.redSqr(),p,v,w,M,A,B;if(this.curve.twisted){M=this.curve._mulA(h);var F=M.redAdd(d);this.zOne?(p=m.redSub(h).redSub(d).redMul(F.redSub(this.curve.two)),v=F.redMul(M.redSub(d)),w=F.redSqr().redSub(F).redSub(F)):(A=this.z.redSqr(),B=F.redSub(A).redISub(A),p=m.redSub(h).redISub(d).redMul(B),v=F.redMul(M.redSub(d)),w=F.redMul(B))}else M=h.redAdd(d),A=this.curve._mulC(this.z).redSqr(),B=M.redSub(A).redSub(A),p=this.curve._mulC(m.redISub(M)).redMul(B),v=this.curve._mulC(M).redMul(h.redISub(d)),w=M.redMul(B);return this.curve.point(p,v,w)},_.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},_.prototype._extAdd=function(m){var h=this.y.redSub(this.x).redMul(m.y.redSub(m.x)),d=this.y.redAdd(this.x).redMul(m.y.redAdd(m.x)),p=this.t.redMul(this.curve.dd).redMul(m.t),v=this.z.redMul(m.z.redAdd(m.z)),w=d.redSub(h),M=v.redSub(p),A=v.redAdd(p),B=d.redAdd(h),F=w.redMul(M),C=A.redMul(B),R=w.redMul(B),D=M.redMul(A);return this.curve.point(F,C,D,R)},_.prototype._projAdd=function(m){var h=this.z.redMul(m.z),d=h.redSqr(),p=this.x.redMul(m.x),v=this.y.redMul(m.y),w=this.curve.d.redMul(p).redMul(v),M=d.redSub(w),A=d.redAdd(w),B=this.x.redAdd(this.y).redMul(m.x.redAdd(m.y)).redISub(p).redISub(v),F=h.redMul(M).redMul(B),C,R;return this.curve.twisted?(C=h.redMul(A).redMul(v.redSub(this.curve._mulA(p))),R=M.redMul(A)):(C=h.redMul(A).redMul(v.redSub(p)),R=this.curve._mulC(M).redMul(A)),this.curve.point(F,C,R)},_.prototype.add=function(m){return this.isInfinity()?m:m.isInfinity()?this:this.curve.extended?this._extAdd(m):this._projAdd(m)},_.prototype.mul=function(m){return this._hasDoubles(m)?this.curve._fixedNafMul(this,m):this.curve._wnafMul(this,m)},_.prototype.mulAdd=function(m,h,d){return this.curve._wnafMulAdd(1,[this,h],[m,d],2,!1)},_.prototype.jmulAdd=function(m,h,d){return this.curve._wnafMulAdd(1,[this,h],[m,d],2,!0)},_.prototype.normalize=function(){if(this.zOne)return this;var m=this.z.redInvm();return this.x=this.x.redMul(m),this.y=this.y.redMul(m),this.t&&(this.t=this.t.redMul(m)),this.z=this.curve.one,this.zOne=!0,this},_.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},_.prototype.getX=function(){return this.normalize(),this.x.fromRed()},_.prototype.getY=function(){return this.normalize(),this.y.fromRed()},_.prototype.eq=function(m){return this===m||this.getX().cmp(m.getX())===0&&this.getY().cmp(m.getY())===0},_.prototype.eqXToP=function(m){var h=m.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(h)===0)return!0;for(var d=m.clone(),p=this.curve.redN.redMul(this.z);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(h.redIAdd(p),this.x.cmp(h)===0)return!0}},_.prototype.toP=_.prototype.normalize,_.prototype.mixedAdd=_.prototype.add,Ua}var oh;function Ac(){return oh||(oh=1,(function(g){var x=g;x.base=si(),x.short=zp(),x.mont=$p(),x.edwards=Kp()})(Na)),Na}var La={},Ha={},Ct={},sh;function Xt(){if(sh)return Ct;sh=1;var g=Gt(),x=dt();Ct.inherits=x;function S(e,r){return(e.charCodeAt(r)&64512)!==55296||r<0||r+1>=e.length?!1:(e.charCodeAt(r+1)&64512)===56320}function c(e,r){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e=="string")if(r){if(r==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var a=0,o=0;o<e.length;o++){var l=e.charCodeAt(o);l<128?n[a++]=l:l<2048?(n[a++]=l>>6|192,n[a++]=l&63|128):S(e,o)?(l=65536+((l&1023)<<10)+(e.charCodeAt(++o)&1023),n[a++]=l>>18|240,n[a++]=l>>12&63|128,n[a++]=l>>6&63|128,n[a++]=l&63|128):(n[a++]=l>>12|224,n[a++]=l>>6&63|128,n[a++]=l&63|128)}else for(o=0;o<e.length;o++)n[o]=e[o]|0;return n}Ct.toArray=c;function E(e){for(var r="",n=0;n<e.length;n++)r+=y(e[n].toString(16));return r}Ct.toHex=E;function i(e){var r=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return r>>>0}Ct.htonl=i;function _(e,r){for(var n="",a=0;a<e.length;a++){var o=e[a];r==="little"&&(o=i(o)),n+=m(o.toString(16))}return n}Ct.toHex32=_;function y(e){return e.length===1?"0"+e:e}Ct.zero2=y;function m(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}Ct.zero8=m;function h(e,r,n,a){var o=n-r;g(o%4===0);for(var l=new Array(o/4),b=0,f=r;b<l.length;b++,f+=4){var t;a==="big"?t=e[f]<<24|e[f+1]<<16|e[f+2]<<8|e[f+3]:t=e[f+3]<<24|e[f+2]<<16|e[f+1]<<8|e[f],l[b]=t>>>0}return l}Ct.join32=h;function d(e,r){for(var n=new Array(e.length*4),a=0,o=0;a<e.length;a++,o+=4){var l=e[a];r==="big"?(n[o]=l>>>24,n[o+1]=l>>>16&255,n[o+2]=l>>>8&255,n[o+3]=l&255):(n[o+3]=l>>>24,n[o+2]=l>>>16&255,n[o+1]=l>>>8&255,n[o]=l&255)}return n}Ct.split32=d;function p(e,r){return e>>>r|e<<32-r}Ct.rotr32=p;function v(e,r){return e<<r|e>>>32-r}Ct.rotl32=v;function w(e,r){return e+r>>>0}Ct.sum32=w;function M(e,r,n){return e+r+n>>>0}Ct.sum32_3=M;function A(e,r,n,a){return e+r+n+a>>>0}Ct.sum32_4=A;function B(e,r,n,a,o){return e+r+n+a+o>>>0}Ct.sum32_5=B;function F(e,r,n,a){var o=e[r],l=e[r+1],b=a+l>>>0,f=(b<a?1:0)+n+o;e[r]=f>>>0,e[r+1]=b}Ct.sum64=F;function C(e,r,n,a){var o=r+a>>>0,l=(o<r?1:0)+e+n;return l>>>0}Ct.sum64_hi=C;function R(e,r,n,a){var o=r+a;return o>>>0}Ct.sum64_lo=R;function D(e,r,n,a,o,l,b,f){var t=0,s=r;s=s+a>>>0,t+=s<r?1:0,s=s+l>>>0,t+=s<l?1:0,s=s+f>>>0,t+=s<f?1:0;var $=e+n+o+b+t;return $>>>0}Ct.sum64_4_hi=D;function K(e,r,n,a,o,l,b,f){var t=r+a+l+f;return t>>>0}Ct.sum64_4_lo=K;function q(e,r,n,a,o,l,b,f,t,s){var $=0,W=r;W=W+a>>>0,$+=W<r?1:0,W=W+l>>>0,$+=W<l?1:0,W=W+f>>>0,$+=W<f?1:0,W=W+s>>>0,$+=W<s?1:0;var U=e+n+o+b+t+$;return U>>>0}Ct.sum64_5_hi=q;function Y(e,r,n,a,o,l,b,f,t,s){var $=r+a+l+f+s;return $>>>0}Ct.sum64_5_lo=Y;function J(e,r,n){var a=r<<32-n|e>>>n;return a>>>0}Ct.rotr64_hi=J;function V(e,r,n){var a=e<<32-n|r>>>n;return a>>>0}Ct.rotr64_lo=V;function re(e,r,n){return e>>>n}Ct.shr64_hi=re;function u(e,r,n){var a=e<<32-n|r>>>n;return a>>>0}return Ct.shr64_lo=u,Ct}var za={},hh;function Fr(){if(hh)return za;hh=1;var g=Xt(),x=Gt();function S(){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}return za.BlockHash=S,S.prototype.update=function(E,i){if(E=g.toArray(E,i),this.pending?this.pending=this.pending.concat(E):this.pending=E,this.pendingTotal+=E.length,this.pending.length>=this._delta8){E=this.pending;var _=E.length%this._delta8;this.pending=E.slice(E.length-_,E.length),this.pending.length===0&&(this.pending=null),E=g.join32(E,0,E.length-_,this.endian);for(var y=0;y<E.length;y+=this._delta32)this._update(E,y,y+this._delta32)}return this},S.prototype.digest=function(E){return this.update(this._pad()),x(this.pending===null),this._digest(E)},S.prototype._pad=function(){var E=this.pendingTotal,i=this._delta8,_=i-(E+this.padLength)%i,y=new Array(_+this.padLength);y[0]=128;for(var m=1;m<_;m++)y[m]=0;if(E<<=3,this.endian==="big"){for(var h=8;h<this.padLength;h++)y[m++]=0;y[m++]=0,y[m++]=0,y[m++]=0,y[m++]=0,y[m++]=E>>>24&255,y[m++]=E>>>16&255,y[m++]=E>>>8&255,y[m++]=E&255}else for(y[m++]=E&255,y[m++]=E>>>8&255,y[m++]=E>>>16&255,y[m++]=E>>>24&255,y[m++]=0,y[m++]=0,y[m++]=0,y[m++]=0,h=8;h<this.padLength;h++)y[m++]=0;return y},za}var nr={},Zt={},uh;function Sc(){if(uh)return Zt;uh=1;var g=Xt(),x=g.rotr32;function S(d,p,v,w){if(d===0)return c(p,v,w);if(d===1||d===3)return i(p,v,w);if(d===2)return E(p,v,w)}Zt.ft_1=S;function c(d,p,v){return d&p^~d&v}Zt.ch32=c;function E(d,p,v){return d&p^d&v^p&v}Zt.maj32=E;function i(d,p,v){return d^p^v}Zt.p32=i;function _(d){return x(d,2)^x(d,13)^x(d,22)}Zt.s0_256=_;function y(d){return x(d,6)^x(d,11)^x(d,25)}Zt.s1_256=y;function m(d){return x(d,7)^x(d,18)^d>>>3}Zt.g0_256=m;function h(d){return x(d,17)^x(d,19)^d>>>10}return Zt.g1_256=h,Zt}var $a,ch;function Wp(){if(ch)return $a;ch=1;var g=Xt(),x=Fr(),S=Sc(),c=g.rotl32,E=g.sum32,i=g.sum32_5,_=S.ft_1,y=x.BlockHash,m=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;y.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return g.inherits(h,y),$a=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(p,v){for(var w=this.W,M=0;M<16;M++)w[M]=p[v+M];for(;M<w.length;M++)w[M]=c(w[M-3]^w[M-8]^w[M-14]^w[M-16],1);var A=this.h[0],B=this.h[1],F=this.h[2],C=this.h[3],R=this.h[4];for(M=0;M<w.length;M++){var D=~~(M/20),K=i(c(A,5),_(D,B,F,C),R,w[M],m[D]);R=C,C=F,F=c(B,30),B=A,A=K}this.h[0]=E(this.h[0],A),this.h[1]=E(this.h[1],B),this.h[2]=E(this.h[2],F),this.h[3]=E(this.h[3],C),this.h[4]=E(this.h[4],R)},h.prototype._digest=function(p){return p==="hex"?g.toHex32(this.h,"big"):g.split32(this.h,"big")},$a}var Ka,lh;function Bc(){if(lh)return Ka;lh=1;var g=Xt(),x=Fr(),S=Sc(),c=Gt(),E=g.sum32,i=g.sum32_4,_=g.sum32_5,y=S.ch32,m=S.maj32,h=S.s0_256,d=S.s1_256,p=S.g0_256,v=S.g1_256,w=x.BlockHash,M=[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 A(){if(!(this instanceof A))return new A;w.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=M,this.W=new Array(64)}return g.inherits(A,w),Ka=A,A.blockSize=512,A.outSize=256,A.hmacStrength=192,A.padLength=64,A.prototype._update=function(F,C){for(var R=this.W,D=0;D<16;D++)R[D]=F[C+D];for(;D<R.length;D++)R[D]=i(v(R[D-2]),R[D-7],p(R[D-15]),R[D-16]);var K=this.h[0],q=this.h[1],Y=this.h[2],J=this.h[3],V=this.h[4],re=this.h[5],u=this.h[6],e=this.h[7];for(c(this.k.length===R.length),D=0;D<R.length;D++){var r=_(e,d(V),y(V,re,u),this.k[D],R[D]),n=E(h(K),m(K,q,Y));e=u,u=re,re=V,V=E(J,r),J=Y,Y=q,q=K,K=E(r,n)}this.h[0]=E(this.h[0],K),this.h[1]=E(this.h[1],q),this.h[2]=E(this.h[2],Y),this.h[3]=E(this.h[3],J),this.h[4]=E(this.h[4],V),this.h[5]=E(this.h[5],re),this.h[6]=E(this.h[6],u),this.h[7]=E(this.h[7],e)},A.prototype._digest=function(F){return F==="hex"?g.toHex32(this.h,"big"):g.split32(this.h,"big")},Ka}var Wa,dh;function jp(){if(dh)return Wa;dh=1;var g=Xt(),x=Bc();function S(){if(!(this instanceof S))return new S;x.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return g.inherits(S,x),Wa=S,S.blockSize=512,S.outSize=224,S.hmacStrength=192,S.padLength=64,S.prototype._digest=function(E){return E==="hex"?g.toHex32(this.h.slice(0,7),"big"):g.split32(this.h.slice(0,7),"big")},Wa}var ja,ph;function Fc(){if(ph)return ja;ph=1;var g=Xt(),x=Fr(),S=Gt(),c=g.rotr64_hi,E=g.rotr64_lo,i=g.shr64_hi,_=g.shr64_lo,y=g.sum64,m=g.sum64_hi,h=g.sum64_lo,d=g.sum64_4_hi,p=g.sum64_4_lo,v=g.sum64_5_hi,w=g.sum64_5_lo,M=x.BlockHash,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];function B(){if(!(this instanceof B))return new B;M.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=A,this.W=new Array(160)}g.inherits(B,M),ja=B,B.blockSize=1024,B.outSize=512,B.hmacStrength=192,B.padLength=128,B.prototype._prepareBlock=function(n,a){for(var o=this.W,l=0;l<32;l++)o[l]=n[a+l];for(;l<o.length;l+=2){var b=u(o[l-4],o[l-3]),f=e(o[l-4],o[l-3]),t=o[l-14],s=o[l-13],$=V(o[l-30],o[l-29]),W=re(o[l-30],o[l-29]),U=o[l-32],Q=o[l-31];o[l]=d(b,f,t,s,$,W,U,Q),o[l+1]=p(b,f,t,s,$,W,U,Q)}},B.prototype._update=function(n,a){this._prepareBlock(n,a);var o=this.W,l=this.h[0],b=this.h[1],f=this.h[2],t=this.h[3],s=this.h[4],$=this.h[5],W=this.h[6],U=this.h[7],Q=this.h[8],X=this.h[9],P=this.h[10],H=this.h[11],Z=this.h[12],k=this.h[13],N=this.h[14],T=this.h[15];S(this.k.length===o.length);for(var j=0;j<o.length;j+=2){var fe=N,ee=T,te=Y(Q,X),he=J(Q,X),ie=F(Q,X,P,H,Z),ne=C(Q,X,P,H,Z,k),pe=this.k[j],oe=this.k[j+1],se=o[j],Re=o[j+1],de=v(fe,ee,te,he,ie,ne,pe,oe,se,Re),ve=w(fe,ee,te,he,ie,ne,pe,oe,se,Re);fe=K(l,b),ee=q(l,b),te=R(l,b,f,t,s),he=D(l,b,f,t,s,$);var ot=m(fe,ee,te,he),be=h(fe,ee,te,he);N=Z,T=k,Z=P,k=H,P=Q,H=X,Q=m(W,U,de,ve),X=h(U,U,de,ve),W=s,U=$,s=f,$=t,f=l,t=b,l=m(de,ve,ot,be),b=h(de,ve,ot,be)}y(this.h,0,l,b),y(this.h,2,f,t),y(this.h,4,s,$),y(this.h,6,W,U),y(this.h,8,Q,X),y(this.h,10,P,H),y(this.h,12,Z,k),y(this.h,14,N,T)},B.prototype._digest=function(n){return n==="hex"?g.toHex32(this.h,"big"):g.split32(this.h,"big")};function F(r,n,a,o,l){var b=r&a^~r&l;return b<0&&(b+=4294967296),b}function C(r,n,a,o,l,b){var f=n&o^~n&b;return f<0&&(f+=4294967296),f}function R(r,n,a,o,l){var b=r&a^r&l^a&l;return b<0&&(b+=4294967296),b}function D(r,n,a,o,l,b){var f=n&o^n&b^o&b;return f<0&&(f+=4294967296),f}function K(r,n){var a=c(r,n,28),o=c(n,r,2),l=c(n,r,7),b=a^o^l;return b<0&&(b+=4294967296),b}function q(r,n){var a=E(r,n,28),o=E(n,r,2),l=E(n,r,7),b=a^o^l;return b<0&&(b+=4294967296),b}function Y(r,n){var a=c(r,n,14),o=c(r,n,18),l=c(n,r,9),b=a^o^l;return b<0&&(b+=4294967296),b}function J(r,n){var a=E(r,n,14),o=E(r,n,18),l=E(n,r,9),b=a^o^l;return b<0&&(b+=4294967296),b}function V(r,n){var a=c(r,n,1),o=c(r,n,8),l=i(r,n,7),b=a^o^l;return b<0&&(b+=4294967296),b}function re(r,n){var a=E(r,n,1),o=E(r,n,8),l=_(r,n,7),b=a^o^l;return b<0&&(b+=4294967296),b}function u(r,n){var a=c(r,n,19),o=c(n,r,29),l=i(r,n,6),b=a^o^l;return b<0&&(b+=4294967296),b}function e(r,n){var a=E(r,n,19),o=E(n,r,29),l=_(r,n,6),b=a^o^l;return b<0&&(b+=4294967296),b}return ja}var Ga,vh;function Gp(){if(vh)return Ga;vh=1;var g=Xt(),x=Fc();function S(){if(!(this instanceof S))return new S;x.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return g.inherits(S,x),Ga=S,S.blockSize=1024,S.outSize=384,S.hmacStrength=192,S.padLength=128,S.prototype._digest=function(E){return E==="hex"?g.toHex32(this.h.slice(0,12),"big"):g.split32(this.h.slice(0,12),"big")},Ga}var bh;function Vp(){return bh||(bh=1,nr.sha1=Wp(),nr.sha224=jp(),nr.sha256=Bc(),nr.sha384=Gp(),nr.sha512=Fc()),nr}var Va={},mh;function Zp(){if(mh)return Va;mh=1;var g=Xt(),x=Fr(),S=g.rotl32,c=g.sum32,E=g.sum32_3,i=g.sum32_4,_=x.BlockHash;function y(){if(!(this instanceof y))return new y;_.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}g.inherits(y,_),Va.ripemd160=y,y.blockSize=512,y.outSize=160,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(B,F){for(var C=this.h[0],R=this.h[1],D=this.h[2],K=this.h[3],q=this.h[4],Y=C,J=R,V=D,re=K,u=q,e=0;e<80;e++){var r=c(S(i(C,m(e,R,D,K),B[p[e]+F],h(e)),w[e]),q);C=q,q=K,K=S(D,10),D=R,R=r,r=c(S(i(Y,m(79-e,J,V,re),B[v[e]+F],d(e)),M[e]),u),Y=u,u=re,re=S(V,10),V=J,J=r}r=E(this.h[1],D,re),this.h[1]=E(this.h[2],K,u),this.h[2]=E(this.h[3],q,Y),this.h[3]=E(this.h[4],C,J),this.h[4]=E(this.h[0],R,V),this.h[0]=r},y.prototype._digest=function(B){return B==="hex"?g.toHex32(this.h,"little"):g.split32(this.h,"little")};function m(A,B,F,C){return A<=15?B^F^C:A<=31?B&F|~B&C:A<=47?(B|~F)^C:A<=63?B&C|F&~C:B^(F|~C)}function h(A){return A<=15?0:A<=31?1518500249:A<=47?1859775393:A<=63?2400959708:2840853838}function d(A){return A<=15?1352829926:A<=31?1548603684:A<=47?1836072691:A<=63?2053994217:0}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],v=[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],w=[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],M=[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];return Va}var Za,yh;function Xp(){if(yh)return Za;yh=1;var g=Xt(),x=Gt();function S(c,E,i){if(!(this instanceof S))return new S(c,E,i);this.Hash=c,this.blockSize=c.blockSize/8,this.outSize=c.outSize/8,this.inner=null,this.outer=null,this._init(g.toArray(E,i))}return Za=S,S.prototype._init=function(E){E.length>this.blockSize&&(E=new this.Hash().update(E).digest()),x(E.length<=this.blockSize);for(var i=E.length;i<this.blockSize;i++)E.push(0);for(i=0;i<E.length;i++)E[i]^=54;for(this.inner=new this.Hash().update(E),i=0;i<E.length;i++)E[i]^=106;this.outer=new this.Hash().update(E)},S.prototype.update=function(E,i){return this.inner.update(E,i),this},S.prototype.digest=function(E){return this.outer.update(this.inner.digest()),this.outer.digest(E)},Za}var gh;function nf(){return gh||(gh=1,(function(g){var x=g;x.utils=Xt(),x.common=Fr(),x.sha=Vp(),x.ripemd=Zp(),x.hmac=Xp(),x.sha1=x.sha.sha1,x.sha256=x.sha.sha256,x.sha224=x.sha.sha224,x.sha384=x.sha.sha384,x.sha512=x.sha.sha512,x.ripemd160=x.ripemd.ripemd160})(Ha)),Ha}var Xa,xh;function Yp(){return xh||(xh=1,Xa={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"]]}}),Xa}var wh;function af(){return wh||(wh=1,(function(g){var x=g,S=nf(),c=Ac(),E=Vt(),i=E.assert;function _(h){h.type==="short"?this.curve=new c.short(h):h.type==="edwards"?this.curve=new c.edwards(h):this.curve=new c.mont(h),this.g=this.curve.g,this.n=this.curve.n,this.hash=h.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}x.PresetCurve=_;function y(h,d){Object.defineProperty(x,h,{configurable:!0,enumerable:!0,get:function(){var p=new _(d);return Object.defineProperty(x,h,{configurable:!0,enumerable:!0,value:p}),p}})}y("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:S.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),y("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:S.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),y("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:S.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),y("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:S.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"]}),y("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:S.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"]}),y("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:S.sha256,gRed:!1,g:["9"]}),y("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:S.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var m;try{m=Yp()}catch{m=void 0}y("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:S.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",m]})})(La)),La}var Ya,Mh;function Jp(){if(Mh)return Ya;Mh=1;var g=nf(),x=Ec(),S=Gt();function c(E){if(!(this instanceof c))return new c(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 i=x.toArray(E.entropy,E.entropyEnc||"hex"),_=x.toArray(E.nonce,E.nonceEnc||"hex"),y=x.toArray(E.pers,E.persEnc||"hex");S(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(i,_,y)}return Ya=c,c.prototype._init=function(i,_,y){var m=i.concat(_).concat(y);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var h=0;h<this.V.length;h++)this.K[h]=0,this.V[h]=1;this._update(m),this._reseed=1,this.reseedInterval=281474976710656},c.prototype._hmac=function(){return new g.hmac(this.hash,this.K)},c.prototype._update=function(i){var _=this._hmac().update(this.V).update([0]);i&&(_=_.update(i)),this.K=_.digest(),this.V=this._hmac().update(this.V).digest(),i&&(this.K=this._hmac().update(this.V).update([1]).update(i).digest(),this.V=this._hmac().update(this.V).digest())},c.prototype.reseed=function(i,_,y,m){typeof _!="string"&&(m=y,y=_,_=null),i=x.toArray(i,_),y=x.toArray(y,m),S(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(i.concat(y||[])),this._reseed=1},c.prototype.generate=function(i,_,y,m){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof _!="string"&&(m=y,y=_,_=null),y&&(y=x.toArray(y,m||"hex"),this._update(y));for(var h=[];h.length<i;)this.V=this._hmac().update(this.V).digest(),h=h.concat(this.V);var d=h.slice(0,i);return this._update(y),this._reseed++,x.encode(d,_)},Ya}var Ja,_h;function Qp(){if(_h)return Ja;_h=1;var g=Yt(),x=Vt(),S=x.assert;function c(E,i){this.ec=E,this.priv=null,this.pub=null,i.priv&&this._importPrivate(i.priv,i.privEnc),i.pub&&this._importPublic(i.pub,i.pubEnc)}return Ja=c,c.fromPublic=function(i,_,y){return _ instanceof c?_:new c(i,{pub:_,pubEnc:y})},c.fromPrivate=function(i,_,y){return _ instanceof c?_:new c(i,{priv:_,privEnc:y})},c.prototype.validate=function(){var i=this.getPublic();return i.isInfinity()?{result:!1,reason:"Invalid public key"}:i.validate()?i.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"}},c.prototype.getPublic=function(i,_){return typeof i=="string"&&(_=i,i=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),_?this.pub.encode(_,i):this.pub},c.prototype.getPrivate=function(i){return i==="hex"?this.priv.toString(16,2):this.priv},c.prototype._importPrivate=function(i,_){this.priv=new g(i,_||16),this.priv=this.priv.umod(this.ec.curve.n)},c.prototype._importPublic=function(i,_){if(i.x||i.y){this.ec.curve.type==="mont"?S(i.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&S(i.x&&i.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(i.x,i.y);return}this.pub=this.ec.curve.decodePoint(i,_)},c.prototype.derive=function(i){return i.validate()||S(i.validate(),"public point not validated"),i.mul(this.priv).getX()},c.prototype.sign=function(i,_,y){return this.ec.sign(i,this,_,y)},c.prototype.verify=function(i,_,y){return this.ec.verify(i,_,this,void 0,y)},c.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},Ja}var Qa,Eh;function ev(){if(Eh)return Qa;Eh=1;var g=Yt(),x=Vt(),S=x.assert;function c(m,h){if(m instanceof c)return m;this._importDER(m,h)||(S(m.r&&m.s,"Signature without r or s"),this.r=new g(m.r,16),this.s=new g(m.s,16),m.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=m.recoveryParam)}Qa=c;function E(){this.place=0}function i(m,h){var d=m[h.place++];if(!(d&128))return d;var p=d&15;if(p===0||p>4||m[h.place]===0)return!1;for(var v=0,w=0,M=h.place;w<p;w++,M++)v<<=8,v|=m[M],v>>>=0;return v<=127?!1:(h.place=M,v)}function _(m){for(var h=0,d=m.length-1;!m[h]&&!(m[h+1]&128)&&h<d;)h++;return h===0?m:m.slice(h)}c.prototype._importDER=function(h,d){h=x.toArray(h,d);var p=new E;if(h[p.place++]!==48)return!1;var v=i(h,p);if(v===!1||v+p.place!==h.length||h[p.place++]!==2)return!1;var w=i(h,p);if(w===!1||(h[p.place]&128)!==0)return!1;var M=h.slice(p.place,w+p.place);if(p.place+=w,h[p.place++]!==2)return!1;var A=i(h,p);if(A===!1||h.length!==A+p.place||(h[p.place]&128)!==0)return!1;var B=h.slice(p.place,A+p.place);if(M[0]===0)if(M[1]&128)M=M.slice(1);else return!1;if(B[0]===0)if(B[1]&128)B=B.slice(1);else return!1;return this.r=new g(M),this.s=new g(B),this.recoveryParam=null,!0};function y(m,h){if(h<128){m.push(h);return}var d=1+(Math.log(h)/Math.LN2>>>3);for(m.push(d|128);--d;)m.push(h>>>(d<<3)&255);m.push(h)}return c.prototype.toDER=function(h){var d=this.r.toArray(),p=this.s.toArray();for(d[0]&128&&(d=[0].concat(d)),p[0]&128&&(p=[0].concat(p)),d=_(d),p=_(p);!p[0]&&!(p[1]&128);)p=p.slice(1);var v=[2];y(v,d.length),v=v.concat(d),v.push(2),y(v,p.length);var w=v.concat(p),M=[48];return y(M,w.length),M=M.concat(w),x.encode(M,h)},Qa}var e0,Ah;function tv(){if(Ah)return e0;Ah=1;var g=Yt(),x=Jp(),S=Vt(),c=af(),E=ef(),i=S.assert,_=Qp(),y=ev();function m(h){if(!(this instanceof m))return new m(h);typeof h=="string"&&(i(Object.prototype.hasOwnProperty.call(c,h),"Unknown curve "+h),h=c[h]),h instanceof c.PresetCurve&&(h={curve:h}),this.curve=h.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=h.curve.g,this.g.precompute(h.curve.n.bitLength()+1),this.hash=h.hash||h.curve.hash}return e0=m,m.prototype.keyPair=function(d){return new _(this,d)},m.prototype.keyFromPrivate=function(d,p){return _.fromPrivate(this,d,p)},m.prototype.keyFromPublic=function(d,p){return _.fromPublic(this,d,p)},m.prototype.genKeyPair=function(d){d||(d={});for(var p=new x({hash:this.hash,pers:d.pers,persEnc:d.persEnc||"utf8",entropy:d.entropy||E(this.hash.hmacStrength),entropyEnc:d.entropy&&d.entropyEnc||"utf8",nonce:this.n.toArray()}),v=this.n.byteLength(),w=this.n.sub(new g(2));;){var M=new g(p.generate(v));if(!(M.cmp(w)>0))return M.iaddn(1),this.keyFromPrivate(M)}},m.prototype._truncateToN=function(d,p,v){var w;if(g.isBN(d)||typeof d=="number")d=new g(d,16),w=d.byteLength();else if(typeof d=="object")w=d.length,d=new g(d,16);else{var M=d.toString();w=M.length+1>>>1,d=new g(M,16)}typeof v!="number"&&(v=w*8);var A=v-this.n.bitLength();return A>0&&(d=d.ushrn(A)),!p&&d.cmp(this.n)>=0?d.sub(this.n):d},m.prototype.sign=function(d,p,v,w){if(typeof v=="object"&&(w=v,v=null),w||(w={}),typeof d!="string"&&typeof d!="number"&&!g.isBN(d)){i(typeof d=="object"&&d&&typeof d.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),i(d.length>>>0===d.length);for(var M=0;M<d.length;M++)i((d[M]&255)===d[M])}p=this.keyFromPrivate(p,v),d=this._truncateToN(d,!1,w.msgBitLength),i(!d.isNeg(),"Can not sign a negative message");var A=this.n.byteLength(),B=p.getPrivate().toArray("be",A),F=d.toArray("be",A);i(new g(F).eq(d),"Can not sign message");for(var C=new x({hash:this.hash,entropy:B,nonce:F,pers:w.pers,persEnc:w.persEnc||"utf8"}),R=this.n.sub(new g(1)),D=0;;D++){var K=w.k?w.k(D):new g(C.generate(this.n.byteLength()));if(K=this._truncateToN(K,!0),!(K.cmpn(1)<=0||K.cmp(R)>=0)){var q=this.g.mul(K);if(!q.isInfinity()){var Y=q.getX(),J=Y.umod(this.n);if(J.cmpn(0)!==0){var V=K.invm(this.n).mul(J.mul(p.getPrivate()).iadd(d));if(V=V.umod(this.n),V.cmpn(0)!==0){var re=(q.getY().isOdd()?1:0)|(Y.cmp(J)!==0?2:0);return w.canonical&&V.cmp(this.nh)>0&&(V=this.n.sub(V),re^=1),new y({r:J,s:V,recoveryParam:re})}}}}}},m.prototype.verify=function(d,p,v,w,M){M||(M={}),d=this._truncateToN(d,!1,M.msgBitLength),v=this.keyFromPublic(v,w),p=new y(p,"hex");var A=p.r,B=p.s;if(A.cmpn(1)<0||A.cmp(this.n)>=0||B.cmpn(1)<0||B.cmp(this.n)>=0)return!1;var F=B.invm(this.n),C=F.mul(d).umod(this.n),R=F.mul(A).umod(this.n),D;return this.curve._maxwellTrick?(D=this.g.jmulAdd(C,v.getPublic(),R),D.isInfinity()?!1:D.eqXToP(A)):(D=this.g.mulAdd(C,v.getPublic(),R),D.isInfinity()?!1:D.getX().umod(this.n).cmp(A)===0)},m.prototype.recoverPubKey=function(h,d,p,v){i((3&p)===p,"The recovery param is more than two bits"),d=new y(d,v);var w=this.n,M=new g(h),A=d.r,B=d.s,F=p&1,C=p>>1;if(A.cmp(this.curve.p.umod(this.curve.n))>=0&&C)throw new Error("Unable to find sencond key candinate");C?A=this.curve.pointFromX(A.add(this.curve.n),F):A=this.curve.pointFromX(A,F);var R=d.r.invm(w),D=w.sub(M).mul(R).umod(w),K=B.mul(R).umod(w);return this.g.mulAdd(D,A,K)},m.prototype.getKeyRecoveryParam=function(h,d,p,v){if(d=new y(d,v),d.recoveryParam!==null)return d.recoveryParam;for(var w=0;w<4;w++){var M;try{M=this.recoverPubKey(h,d,w)}catch{continue}if(M.eq(p))return w}throw new Error("Unable to find valid recovery factor")},e0}var t0,Sh;function rv(){if(Sh)return t0;Sh=1;var g=Vt(),x=g.assert,S=g.parseBytes,c=g.cachedProperty;function E(i,_){this.eddsa=i,this._secret=S(_.secret),i.isPoint(_.pub)?this._pub=_.pub:this._pubBytes=S(_.pub)}return E.fromPublic=function(_,y){return y instanceof E?y:new E(_,{pub:y})},E.fromSecret=function(_,y){return y instanceof E?y:new E(_,{secret:y})},E.prototype.secret=function(){return this._secret},c(E,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),c(E,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),c(E,"privBytes",function(){var _=this.eddsa,y=this.hash(),m=_.encodingLength-1,h=y.slice(0,_.encodingLength);return h[0]&=248,h[m]&=127,h[m]|=64,h}),c(E,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),c(E,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),c(E,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),E.prototype.sign=function(_){return x(this._secret,"KeyPair can only verify"),this.eddsa.sign(_,this)},E.prototype.verify=function(_,y){return this.eddsa.verify(_,y,this)},E.prototype.getSecret=function(_){return x(this._secret,"KeyPair is public only"),g.encode(this.secret(),_)},E.prototype.getPublic=function(_){return g.encode(this.pubBytes(),_)},t0=E,t0}var r0,Bh;function iv(){if(Bh)return r0;Bh=1;var g=Yt(),x=Vt(),S=x.assert,c=x.cachedProperty,E=x.parseBytes;function i(_,y){this.eddsa=_,typeof y!="object"&&(y=E(y)),Array.isArray(y)&&(S(y.length===_.encodingLength*2,"Signature has invalid size"),y={R:y.slice(0,_.encodingLength),S:y.slice(_.encodingLength)}),S(y.R&&y.S,"Signature without R or S"),_.isPoint(y.R)&&(this._R=y.R),y.S instanceof g&&(this._S=y.S),this._Rencoded=Array.isArray(y.R)?y.R:y.Rencoded,this._Sencoded=Array.isArray(y.S)?y.S:y.Sencoded}return c(i,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),c(i,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),c(i,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),c(i,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),i.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},i.prototype.toHex=function(){return x.encode(this.toBytes(),"hex").toUpperCase()},r0=i,r0}var i0,Fh;function nv(){if(Fh)return i0;Fh=1;var g=nf(),x=af(),S=Vt(),c=S.assert,E=S.parseBytes,i=rv(),_=iv();function y(m){if(c(m==="ed25519","only tested with ed25519 so far"),!(this instanceof y))return new y(m);m=x[m].curve,this.curve=m,this.g=m.g,this.g.precompute(m.n.bitLength()+1),this.pointClass=m.point().constructor,this.encodingLength=Math.ceil(m.n.bitLength()/8),this.hash=g.sha512}return i0=y,y.prototype.sign=function(h,d){h=E(h);var p=this.keyFromSecret(d),v=this.hashInt(p.messagePrefix(),h),w=this.g.mul(v),M=this.encodePoint(w),A=this.hashInt(M,p.pubBytes(),h).mul(p.priv()),B=v.add(A).umod(this.curve.n);return this.makeSignature({R:w,S:B,Rencoded:M})},y.prototype.verify=function(h,d,p){if(h=E(h),d=this.makeSignature(d),d.S().gte(d.eddsa.curve.n)||d.S().isNeg())return!1;var v=this.keyFromPublic(p),w=this.hashInt(d.Rencoded(),v.pubBytes(),h),M=this.g.mul(d.S()),A=d.R().add(v.pub().mul(w));return A.eq(M)},y.prototype.hashInt=function(){for(var h=this.hash(),d=0;d<arguments.length;d++)h.update(arguments[d]);return S.intFromLE(h.digest()).umod(this.curve.n)},y.prototype.keyFromPublic=function(h){return i.fromPublic(this,h)},y.prototype.keyFromSecret=function(h){return i.fromSecret(this,h)},y.prototype.makeSignature=function(h){return h instanceof _?h:new _(this,h)},y.prototype.encodePoint=function(h){var d=h.getY().toArray("le",this.encodingLength);return d[this.encodingLength-1]|=h.getX().isOdd()?128:0,d},y.prototype.decodePoint=function(h){h=S.parseBytes(h);var d=h.length-1,p=h.slice(0,d).concat(h[d]&-129),v=(h[d]&128)!==0,w=S.intFromLE(p);return this.curve.pointFromY(w,v)},y.prototype.encodeInt=function(h){return h.toArray("le",this.encodingLength)},y.prototype.decodeInt=function(h){return S.intFromLE(h)},y.prototype.isPoint=function(h){return h instanceof this.pointClass},i0}var Ch;function hi(){return Ch||(Ch=1,(function(g){var x=g;x.version=Lp.version,x.utils=Vt(),x.rand=ef(),x.curve=Ac(),x.curves=af(),x.ec=tv(),x.eddsa=nv()})(Ta)),Ta}var jt={},n0={},Zr={exports:{}},av=Zr.exports,Dh;function fv(){return Dh||(Dh=1,(function(g){(function(x,S){function c(u,e){if(!u)throw new Error(e||"Assertion failed")}function E(u,e){u.super_=e;var r=function(){};r.prototype=e.prototype,u.prototype=new r,u.prototype.constructor=u}function i(u,e,r){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(u||0,e||10,r||"be"))}typeof x=="object"?x.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=ze.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),c(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(c(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(c(typeof e.length=="number"),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 a=0;a<this.length;a++)this.words[a]=0;var o,l,b=0;if(n==="be")for(a=e.length-1,o=0;a>=0;a-=3)l=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);else if(n==="le")for(a=0,o=0;a<e.length;a+=3)l=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);return this.strip()};function y(u,e){var r=u.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(u,e,r){var n=y(u,r);return r-1>=e&&(n|=y(u,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o=0,l=0,b;if(n==="be")for(a=e.length-1;a>=r;a-=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8}this.strip()};function h(u,e,r,n){for(var a=0,o=Math.min(u.length,r),l=e;l<o;l++){var b=u.charCodeAt(l)-48;a*=n,b>=49?a+=b-49+10:b>=17?a+=b-17+10:a+=b}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,o=1;o<=67108863;o*=r)a++;a--,o=o/r|0;for(var l=e.length-n,b=l%a,f=Math.min(l,l-b)+n,t=0,s=n;s<f;s+=a)t=h(e,s,s+a,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(b!==0){var $=1;for(t=h(e,s,e.length,r),s=0;s<b;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],p=[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],v=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,o=0,l=0;l<this.length;l++){var b=this.words[l],f=((b<<a|o)&16777215).toString(16);o=b>>>24-a&16777215,a+=2,a>=26&&(a-=26,l--),o!==0||l!==this.length-1?n=d[6-f.length]+f+n:n=f+n}for(o!==0&&(n=o.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=v[e];n="";var $=this.clone();for($.negative=0;!$.isZero();){var W=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?n=W+n:n=d[t-W.length]+W+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}c(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return c(typeof _<"u"),this.toArrayLike(_,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),o=n||Math.max(1,a);c(a<=o,"byte array longer than desired length"),c(o>0,"Requested array length <= 0"),this.strip();var l=r==="le",b=new e(o),f,t,s=this.clone();if(l){for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[t]=f;for(;t<o;t++)b[t]=0}else{for(t=0;t<o-a;t++)b[t]=0;for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[o-t-1]=f}return b},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(u){for(var e=new Array(u.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(u.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return c((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return c((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return c((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){c(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){c(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var o=0,l=0;l<a.length;l++)r=(n.words[l]|0)+(a.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;for(;o!==0&&l<n.length;l++)r=(n.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;if(this.length=n.length,o!==0)this.words[this.length]=o,this.length++;else if(n!==this)for(;l<n.length;l++)this.words[l]=n.words[l];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,o;n>0?(a=this,o=e):(a=e,o=this);for(var l=0,b=0;b<o.length;b++)r=(a.words[b]|0)-(o.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;for(;l!==0&&b<a.length;b++)r=(a.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;if(l===0&&b<a.length&&a!==this)for(;b<a.length;b++)this.words[b]=a.words[b];return this.length=Math.max(this.length,b),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function M(u,e,r){r.negative=e.negative^u.negative;var n=u.length+e.length|0;r.length=n,n=n-1|0;var a=u.words[0]|0,o=e.words[0]|0,l=a*o,b=l&67108863,f=l/67108864|0;r.words[0]=b;for(var t=1;t<n;t++){for(var s=f>>>26,$=f&67108863,W=Math.min(t,e.length-1),U=Math.max(0,t-u.length+1);U<=W;U++){var Q=t-U|0;a=u.words[Q]|0,o=e.words[U]|0,l=a*o+$,s+=l/67108864|0,$=l&67108863}r.words[t]=$|0,f=s|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var A=function(e,r,n){var a=e.words,o=r.words,l=n.words,b=0,f,t,s,$=a[0]|0,W=$&8191,U=$>>>13,Q=a[1]|0,X=Q&8191,P=Q>>>13,H=a[2]|0,Z=H&8191,k=H>>>13,N=a[3]|0,T=N&8191,j=N>>>13,fe=a[4]|0,ee=fe&8191,te=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,pt=o[0]|0,Ae=pt&8191,Se=pt>>>13,ct=o[1]|0,Me=ct&8191,ge=ct>>>13,wt=o[2]|0,Ce=wt&8191,De=wt>>>13,_t=o[3]|0,Te=_t&8191,Ie=_t>>>13,Dt=o[4]|0,Ne=Dt&8191,Pe=Dt>>>13,kt=o[5]|0,qe=kt&8191,Oe=kt>>>13,Pt=o[6]|0,ke=Pt&8191,Ue=Pt>>>13,O=o[7]|0,z=O&8191,L=O>>>13,I=o[8]|0,G=I&8191,ae=I>>>13,ye=o[9]|0,ue=ye&8191,le=ye>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(W,Ae),t=Math.imul(W,Se),t=t+Math.imul(U,Ae)|0,s=Math.imul(U,Se);var Je=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(X,Ae),t=Math.imul(X,Se),t=t+Math.imul(P,Ae)|0,s=Math.imul(P,Se),f=f+Math.imul(W,Me)|0,t=t+Math.imul(W,ge)|0,t=t+Math.imul(U,Me)|0,s=s+Math.imul(U,ge)|0;var We=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Z,Ae),t=Math.imul(Z,Se),t=t+Math.imul(k,Ae)|0,s=Math.imul(k,Se),f=f+Math.imul(X,Me)|0,t=t+Math.imul(X,ge)|0,t=t+Math.imul(P,Me)|0,s=s+Math.imul(P,ge)|0,f=f+Math.imul(W,Ce)|0,t=t+Math.imul(W,De)|0,t=t+Math.imul(U,Ce)|0,s=s+Math.imul(U,De)|0;var ht=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ae),t=Math.imul(T,Se),t=t+Math.imul(j,Ae)|0,s=Math.imul(j,Se),f=f+Math.imul(Z,Me)|0,t=t+Math.imul(Z,ge)|0,t=t+Math.imul(k,Me)|0,s=s+Math.imul(k,ge)|0,f=f+Math.imul(X,Ce)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(P,Ce)|0,s=s+Math.imul(P,De)|0,f=f+Math.imul(W,Te)|0,t=t+Math.imul(W,Ie)|0,t=t+Math.imul(U,Te)|0,s=s+Math.imul(U,Ie)|0;var Ve=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(ee,Ae),t=Math.imul(ee,Se),t=t+Math.imul(te,Ae)|0,s=Math.imul(te,Se),f=f+Math.imul(T,Me)|0,t=t+Math.imul(T,ge)|0,t=t+Math.imul(j,Me)|0,s=s+Math.imul(j,ge)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,s=s+Math.imul(k,De)|0,f=f+Math.imul(X,Te)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(P,Te)|0,s=s+Math.imul(P,Ie)|0,f=f+Math.imul(W,Ne)|0,t=t+Math.imul(W,Pe)|0,t=t+Math.imul(U,Ne)|0,s=s+Math.imul(U,Pe)|0;var et=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ae),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ae)|0,s=Math.imul(ne,Se),f=f+Math.imul(ee,Me)|0,t=t+Math.imul(ee,ge)|0,t=t+Math.imul(te,Me)|0,s=s+Math.imul(te,ge)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(j,Ce)|0,s=s+Math.imul(j,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,s=s+Math.imul(k,Ie)|0,f=f+Math.imul(X,Ne)|0,t=t+Math.imul(X,Pe)|0,t=t+Math.imul(P,Ne)|0,s=s+Math.imul(P,Pe)|0,f=f+Math.imul(W,qe)|0,t=t+Math.imul(W,Oe)|0,t=t+Math.imul(U,qe)|0,s=s+Math.imul(U,Oe)|0;var tt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ae),t=Math.imul(oe,Se),t=t+Math.imul(se,Ae)|0,s=Math.imul(se,Se),f=f+Math.imul(ie,Me)|0,t=t+Math.imul(ie,ge)|0,t=t+Math.imul(ne,Me)|0,s=s+Math.imul(ne,ge)|0,f=f+Math.imul(ee,Ce)|0,t=t+Math.imul(ee,De)|0,t=t+Math.imul(te,Ce)|0,s=s+Math.imul(te,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(j,Te)|0,s=s+Math.imul(j,Ie)|0,f=f+Math.imul(Z,Ne)|0,t=t+Math.imul(Z,Pe)|0,t=t+Math.imul(k,Ne)|0,s=s+Math.imul(k,Pe)|0,f=f+Math.imul(X,qe)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(P,qe)|0,s=s+Math.imul(P,Oe)|0,f=f+Math.imul(W,ke)|0,t=t+Math.imul(W,Ue)|0,t=t+Math.imul(U,ke)|0,s=s+Math.imul(U,Ue)|0;var ft=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ae),t=Math.imul(de,Se),t=t+Math.imul(ve,Ae)|0,s=Math.imul(ve,Se),f=f+Math.imul(oe,Me)|0,t=t+Math.imul(oe,ge)|0,t=t+Math.imul(se,Me)|0,s=s+Math.imul(se,ge)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,s=s+Math.imul(ne,De)|0,f=f+Math.imul(ee,Te)|0,t=t+Math.imul(ee,Ie)|0,t=t+Math.imul(te,Te)|0,s=s+Math.imul(te,Ie)|0,f=f+Math.imul(T,Ne)|0,t=t+Math.imul(T,Pe)|0,t=t+Math.imul(j,Ne)|0,s=s+Math.imul(j,Pe)|0,f=f+Math.imul(Z,qe)|0,t=t+Math.imul(Z,Oe)|0,t=t+Math.imul(k,qe)|0,s=s+Math.imul(k,Oe)|0,f=f+Math.imul(X,ke)|0,t=t+Math.imul(X,Ue)|0,t=t+Math.imul(P,ke)|0,s=s+Math.imul(P,Ue)|0,f=f+Math.imul(W,z)|0,t=t+Math.imul(W,L)|0,t=t+Math.imul(U,z)|0,s=s+Math.imul(U,L)|0;var at=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ae),t=Math.imul(be,Se),t=t+Math.imul(me,Ae)|0,s=Math.imul(me,Se),f=f+Math.imul(de,Me)|0,t=t+Math.imul(de,ge)|0,t=t+Math.imul(ve,Me)|0,s=s+Math.imul(ve,ge)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,s=s+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,s=s+Math.imul(ne,Ie)|0,f=f+Math.imul(ee,Ne)|0,t=t+Math.imul(ee,Pe)|0,t=t+Math.imul(te,Ne)|0,s=s+Math.imul(te,Pe)|0,f=f+Math.imul(T,qe)|0,t=t+Math.imul(T,Oe)|0,t=t+Math.imul(j,qe)|0,s=s+Math.imul(j,Oe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,s=s+Math.imul(k,Ue)|0,f=f+Math.imul(X,z)|0,t=t+Math.imul(X,L)|0,t=t+Math.imul(P,z)|0,s=s+Math.imul(P,L)|0,f=f+Math.imul(W,G)|0,t=t+Math.imul(W,ae)|0,t=t+Math.imul(U,G)|0,s=s+Math.imul(U,ae)|0;var rt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ae),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ae)|0,s=Math.imul(Be,Se),f=f+Math.imul(be,Me)|0,t=t+Math.imul(be,ge)|0,t=t+Math.imul(me,Me)|0,s=s+Math.imul(me,ge)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,s=s+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,s=s+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Ne)|0,t=t+Math.imul(ie,Pe)|0,t=t+Math.imul(ne,Ne)|0,s=s+Math.imul(ne,Pe)|0,f=f+Math.imul(ee,qe)|0,t=t+Math.imul(ee,Oe)|0,t=t+Math.imul(te,qe)|0,s=s+Math.imul(te,Oe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(j,ke)|0,s=s+Math.imul(j,Ue)|0,f=f+Math.imul(Z,z)|0,t=t+Math.imul(Z,L)|0,t=t+Math.imul(k,z)|0,s=s+Math.imul(k,L)|0,f=f+Math.imul(X,G)|0,t=t+Math.imul(X,ae)|0,t=t+Math.imul(P,G)|0,s=s+Math.imul(P,ae)|0,f=f+Math.imul(W,ue)|0,t=t+Math.imul(W,le)|0,t=t+Math.imul(U,ue)|0,s=s+Math.imul(U,le)|0;var nt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,Me),t=Math.imul(Fe,ge),t=t+Math.imul(Be,Me)|0,s=Math.imul(Be,ge),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,s=s+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,s=s+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Ne)|0,t=t+Math.imul(oe,Pe)|0,t=t+Math.imul(se,Ne)|0,s=s+Math.imul(se,Pe)|0,f=f+Math.imul(ie,qe)|0,t=t+Math.imul(ie,Oe)|0,t=t+Math.imul(ne,qe)|0,s=s+Math.imul(ne,Oe)|0,f=f+Math.imul(ee,ke)|0,t=t+Math.imul(ee,Ue)|0,t=t+Math.imul(te,ke)|0,s=s+Math.imul(te,Ue)|0,f=f+Math.imul(T,z)|0,t=t+Math.imul(T,L)|0,t=t+Math.imul(j,z)|0,s=s+Math.imul(j,L)|0,f=f+Math.imul(Z,G)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,G)|0,s=s+Math.imul(k,ae)|0,f=f+Math.imul(X,ue)|0,t=t+Math.imul(X,le)|0,t=t+Math.imul(P,ue)|0,s=s+Math.imul(P,le)|0;var it=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,s=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,s=s+Math.imul(me,Ie)|0,f=f+Math.imul(de,Ne)|0,t=t+Math.imul(de,Pe)|0,t=t+Math.imul(ve,Ne)|0,s=s+Math.imul(ve,Pe)|0,f=f+Math.imul(oe,qe)|0,t=t+Math.imul(oe,Oe)|0,t=t+Math.imul(se,qe)|0,s=s+Math.imul(se,Oe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,s=s+Math.imul(ne,Ue)|0,f=f+Math.imul(ee,z)|0,t=t+Math.imul(ee,L)|0,t=t+Math.imul(te,z)|0,s=s+Math.imul(te,L)|0,f=f+Math.imul(T,G)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(j,G)|0,s=s+Math.imul(j,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,s=s+Math.imul(k,le)|0;var Ze=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,s=Math.imul(Be,Ie),f=f+Math.imul(be,Ne)|0,t=t+Math.imul(be,Pe)|0,t=t+Math.imul(me,Ne)|0,s=s+Math.imul(me,Pe)|0,f=f+Math.imul(de,qe)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(ve,qe)|0,s=s+Math.imul(ve,Oe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,s=s+Math.imul(se,Ue)|0,f=f+Math.imul(ie,z)|0,t=t+Math.imul(ie,L)|0,t=t+Math.imul(ne,z)|0,s=s+Math.imul(ne,L)|0,f=f+Math.imul(ee,G)|0,t=t+Math.imul(ee,ae)|0,t=t+Math.imul(te,G)|0,s=s+Math.imul(te,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(j,ue)|0,s=s+Math.imul(j,le)|0;var Qe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,f=Math.imul(Fe,Ne),t=Math.imul(Fe,Pe),t=t+Math.imul(Be,Ne)|0,s=Math.imul(Be,Pe),f=f+Math.imul(be,qe)|0,t=t+Math.imul(be,Oe)|0,t=t+Math.imul(me,qe)|0,s=s+Math.imul(me,Oe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,s=s+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,z)|0,t=t+Math.imul(oe,L)|0,t=t+Math.imul(se,z)|0,s=s+Math.imul(se,L)|0,f=f+Math.imul(ie,G)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,G)|0,s=s+Math.imul(ne,ae)|0,f=f+Math.imul(ee,ue)|0,t=t+Math.imul(ee,le)|0,t=t+Math.imul(te,ue)|0,s=s+Math.imul(te,le)|0;var Ge=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(Fe,qe),t=Math.imul(Fe,Oe),t=t+Math.imul(Be,qe)|0,s=Math.imul(Be,Oe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,s=s+Math.imul(me,Ue)|0,f=f+Math.imul(de,z)|0,t=t+Math.imul(de,L)|0,t=t+Math.imul(ve,z)|0,s=s+Math.imul(ve,L)|0,f=f+Math.imul(oe,G)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,G)|0,s=s+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,s=s+Math.imul(ne,le)|0;var Xe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,s=Math.imul(Be,Ue),f=f+Math.imul(be,z)|0,t=t+Math.imul(be,L)|0,t=t+Math.imul(me,z)|0,s=s+Math.imul(me,L)|0,f=f+Math.imul(de,G)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,G)|0,s=s+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,s=s+Math.imul(se,le)|0;var Ye=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(Fe,z),t=Math.imul(Fe,L),t=t+Math.imul(Be,z)|0,s=Math.imul(Be,L),f=f+Math.imul(be,G)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,G)|0,s=s+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,s=s+Math.imul(ve,le)|0;var Ke=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,f=Math.imul(Fe,G),t=Math.imul(Fe,ae),t=t+Math.imul(Be,G)|0,s=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,s=s+Math.imul(me,le)|0;var we=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(we>>>26)|0,we&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,s=Math.imul(Be,le);var _e=(b+f|0)+((t&8191)<<13)|0;return b=(s+(t>>>13)|0)+(_e>>>26)|0,_e&=67108863,l[0]=Je,l[1]=We,l[2]=ht,l[3]=Ve,l[4]=et,l[5]=tt,l[6]=ft,l[7]=at,l[8]=rt,l[9]=nt,l[10]=it,l[11]=Ze,l[12]=Qe,l[13]=Ge,l[14]=Xe,l[15]=Ye,l[16]=Ke,l[17]=we,l[18]=_e,b!==0&&(l[19]=b,n.length++),n};Math.imul||(A=M);function B(u,e,r){r.negative=e.negative^u.negative,r.length=u.length+e.length;for(var n=0,a=0,o=0;o<r.length-1;o++){var l=a;a=0;for(var b=n&67108863,f=Math.min(o,e.length-1),t=Math.max(0,o-u.length+1);t<=f;t++){var s=o-t,$=u.words[s]|0,W=e.words[t]|0,U=$*W,Q=U&67108863;l=l+(U/67108864|0)|0,Q=Q+b|0,b=Q&67108863,l=l+(Q>>>26)|0,a+=l>>>26,l&=67108863}r.words[o]=b,n=l,l=a}return n!==0?r.words[o]=n:r.length--,r.strip()}function F(u,e,r){var n=new C;return n.mulp(u,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,r):a<63?n=M(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(u,e){this.x=u,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,o=0;o<r;o++)a|=(e&1)<<r-o-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,o,l){for(var b=0;b<l;b++)a[b]=r[e[b]],o[b]=n[e[b]]},C.prototype.transform=function(e,r,n,a,o,l){this.permute(l,e,r,n,a,o);for(var b=1;b<o;b<<=1)for(var f=b<<1,t=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),$=0;$<o;$+=f)for(var W=t,U=s,Q=0;Q<b;Q++){var X=n[$+Q],P=a[$+Q],H=n[$+Q+b],Z=a[$+Q+b],k=W*H-U*Z;Z=W*Z+U*H,H=k,n[$+Q]=X+H,a[$+Q]=P+Z,n[$+Q+b]=X-H,a[$+Q+b]=P-Z,Q!==f&&(k=t*W-s*U,U=t*U+s*W,W=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,o=0;for(n=n/2|0;n;n=n>>>1)o++;return 1<<o+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var o=e[a];e[a]=e[n-a-1],e[n-a-1]=o,o=r[a],r[a]=-r[n-a-1],r[n-a-1]=-o}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var o=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=o&67108863,o<67108864?n=0:n=o/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var o=0,l=0;l<r;l++)o=o+(e[l]|0),n[2*l]=o&8191,o=o>>>13,n[2*l+1]=o&8191,o=o>>>13;for(l=2*r;l<a;++l)n[l]=0;c(o===0),c((o&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(a),l=this.stub(a),b=new Array(a),f=new Array(a),t=new Array(a),s=new Array(a),$=new Array(a),W=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,b,a),this.convert13b(r.words,r.length,s,a),this.transform(b,l,f,t,a,o),this.transform(s,l,$,W,a,o);for(var Q=0;Q<a;Q++){var X=f[Q]*$[Q]-t[Q]*W[Q];t[Q]=f[Q]*W[Q]+t[Q]*$[Q],f[Q]=X}return this.conjugate(f,t,a),this.transform(f,t,U,l,a,o),this.conjugate(U,l,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){c(typeof e=="number"),c(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,o=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[n]=o&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=w(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var o=n.sqr();a<r.length;a++,o=o.sqr())r[a]!==0&&(n=n.mul(o));return n},i.prototype.iushln=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,o;if(r!==0){var l=0;for(o=0;o<this.length;o++){var b=this.words[o]&a,f=(this.words[o]|0)-b<<r;this.words[o]=f|l,l=b>>>26-r}l&&(this.words[o]=l,this.length++)}if(n!==0){for(o=this.length-1;o>=0;o--)this.words[o+n]=this.words[o];for(o=0;o<n;o++)this.words[o]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return c(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){c(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var o=e%26,l=Math.min((e-o)/26,this.length),b=67108863^67108863>>>o<<o,f=n;if(a-=l,a=Math.max(0,a),f){for(var t=0;t<l;t++)f.words[t]=this.words[t];f.length=l}if(l!==0)if(this.length>l)for(this.length-=l,t=0;t<this.length;t++)this.words[t]=this.words[t+l];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=a);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&b}return f&&s!==0&&(f.words[f.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return c(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var o=this.words[n];return!!(o&a)},i.prototype.imaskn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return c(typeof e=="number"),c(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(c(typeof e=="number"),c(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,o;this._expand(a);var l,b=0;for(o=0;o<e.length;o++){l=(this.words[o+n]|0)+b;var f=(e.words[o]|0)*r;l-=f&67108863,b=(l>>26)-(f/67108864|0),this.words[o+n]=l&67108863}for(;o<this.length-n;o++)l=(this.words[o+n]|0)+b,b=l>>26,this.words[o+n]=l&67108863;if(b===0)return this.strip();for(c(b===-1),b=0,o=0;o<this.length;o++)l=-(this.words[o]|0)+b,b=l>>26,this.words[o]=l&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),o=e,l=o.words[o.length-1]|0,b=this._countBits(l);n=26-b,n!==0&&(o=o.ushln(n),a.iushln(n),l=o.words[o.length-1]|0);var f=a.length-o.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=a.clone()._ishlnsubmul(o,1,f);$.negative===0&&(a=$,t&&(t.words[f]=1));for(var W=f-1;W>=0;W--){var U=(a.words[o.length+W]|0)*67108864+(a.words[o.length+W-1]|0);for(U=Math.min(U/l|0,67108863),a._ishlnsubmul(o,U,W);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(o,1,W),a.isZero()||(a.negative^=1);t&&(t.words[W]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(c(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,l;return this.negative!==0&&e.negative===0?(l=this.neg().divmod(e,r),r!=="mod"&&(a=l.div.neg()),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(l=this.divmod(e.neg(),r),r!=="mod"&&(a=l.div.neg()),{div:a,mod:l.mod}):(this.negative&e.negative)!==0?(l=this.neg().divmod(e.neg(),r),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),o=e.andln(1),l=n.cmp(a);return l<0||o===1&&l===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){c(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){c(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=new i(0),b=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),s=r.clone();!r.isZero();){for(var $=0,W=1;(r.words[0]&W)===0&&$<26;++$,W<<=1);if($>0)for(r.iushrn($);$-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(t),o.isub(s)),a.iushrn(1),o.iushrn(1);for(var U=0,Q=1;(n.words[0]&Q)===0&&U<26;++U,Q<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(l.isOdd()||b.isOdd())&&(l.iadd(t),b.isub(s)),l.iushrn(1),b.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(l),o.isub(b)):(n.isub(r),l.isub(a),b.isub(o))}return{a:l,b,gcd:n.iushln(f)}},i.prototype._invmp=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var b=0,f=1;(r.words[0]&f)===0&&b<26;++b,f<<=1);if(b>0)for(r.iushrn(b);b-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var t=0,s=1;(n.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(n.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(o)):(n.isub(r),o.isub(a))}var $;return r.cmpn(1)===0?$=a:$=o,$.cmpn(0)<0&&$.iadd(e),$},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=r.cmp(n);if(o<0){var l=r;r=n,n=l}else if(o===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){c(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var o=a,l=n;o!==0&&l<this.length;l++){var b=this.words[l]|0;b+=o,o=b>>>26,b&=67108863,this.words[l]=b}return o!==0&&(this.words[l]=o,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),c(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,o=e.words[n]|0;if(a!==o){a<o?r=-1:a>o&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new V(e)},i.prototype.toRed=function(e){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return c(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return c(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(u,e){this.name=u,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function K(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(K,D),K.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),o=0;o<a;o++)r.words[o]=e.words[o];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var l=e.words[9];for(r.words[r.length++]=l&n,o=10;o<e.length;o++){var b=e.words[o]|0;e.words[o-10]=(b&n)<<4|l>>>22,l=b}l>>>=22,e.words[o-10]=l,l===0&&e.length>10?e.length-=10:e.length-=9},K.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function q(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(q,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(Y,D);function J(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(J,D),J.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,o=a&67108863;a>>>=26,e.words[n]=o,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new K;else if(e==="p224")r=new q;else if(e==="p192")r=new Y;else if(e==="p25519")r=new J;else throw new Error("Unknown prime "+e);return R[e]=r,r};function V(u){if(typeof u=="string"){var e=i._prime(u);this.m=e.p,this.prime=e}else c(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}V.prototype._verify1=function(e){c(e.negative===0,"red works only with positives"),c(e.red,"red works only with red numbers")},V.prototype._verify2=function(e,r){c((e.negative|r.negative)===0,"red works only with positives"),c(e.red&&e.red===r.red,"red works only with red numbers")},V.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},V.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},V.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},V.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},V.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},V.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},V.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},V.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},V.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},V.prototype.isqr=function(e){return this.imul(e,e.clone())},V.prototype.sqr=function(e){return this.mul(e,e)},V.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(c(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);c(!a.isZero());var l=new i(1).toRed(this),b=l.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(b)!==0;)t.redIAdd(b);for(var s=this.pow(t,a),$=this.pow(e,a.addn(1).iushrn(1)),W=this.pow(e,a),U=o;W.cmp(l)!==0;){for(var Q=W,X=0;Q.cmp(l)!==0;X++)Q=Q.redSqr();c(X<U);var P=this.pow(s,new i(1).iushln(U-X-1));$=$.redMul(P),s=P.redSqr(),W=W.redMul(s),U=X}return $},V.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},V.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var l=a[0],b=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),o=r.length-1;o>=0;o--){for(var s=r.words[o],$=t-1;$>=0;$--){var W=s>>$&1;if(l!==a[0]&&(l=this.sqr(l)),W===0&&b===0){f=0;continue}b<<=1,b|=W,f++,!(f!==n&&(o!==0||$!==0))&&(l=this.mul(l,a[b]),f=0,b=0)}t=26}return l},V.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},V.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new re(e)};function re(u){V.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}E(re,V),re.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},re.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},re.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(g,av)})(Zr)),Zr.exports}var a0={},Rh;function ov(){return Rh||(Rh=1,(function(g){var x=Cr(),S=dt(),c=g;c.define=function(_,y){return new E(_,y)};function E(i,_){this.name=i,this.body=_,this.decoders={},this.encoders={}}E.prototype._createNamed=function(_){var y;try{y=vr.runInThisContext("(function "+this.name+`(entity) {
1
+ "use strict";const ti=require("./constants-C1w_RyOP.js"),we=require("./platform-DCcL7jHP.js"),ze=require("./unsignedTransaction-qRBv5Cnd.js"),hr=require("./address-DqbIfKOu.js");require("./types-CgveSjsw.js");const Sl=require("./multiToken-B9BoSxdr.js"),df=require("react"),Bl={env:"Testnet",rpcs:{Bsc:"https://data-seed-prebsc-1-s3.binance.org:8545",Avalanche:"https://api.avax-test.network/ext/bc/C/rpc",Fantom:"https://rpc.testnet.fantom.network",Celo:"https://alfajores-forno.celo-testnet.org",Solana:"https://api.devnet.solana.com",Fogo:"https://testnet.fogo.io",Moonbeam:"https://rpc.api.moonbase.moonbeam.network",Sui:"https://fullnode.testnet.sui.io",Aptos:"https://fullnode.testnet.aptoslabs.com/v1",Sei:"https://rpc.atlantic-2.seinetwork.io",Klaytn:"https://public-en-kairos.node.kaia.io",Sepolia:"https://ethereum-sepolia-rpc.publicnode.com",ArbitrumSepolia:"https://sepolia-rollup.arbitrum.io/rpc",BaseSepolia:"https://base-sepolia-rpc.publicnode.com",OptimismSepolia:"https://sepolia.optimism.io",Scroll:"https://scroll-sepolia-rpc.publicnode.com",Xlayer:"https://testrpc.xlayer.tech",Mantle:"https://rpc.sepolia.mantle.xyz",Worldchain:"https://worldchain-sepolia.g.alchemy.com/public",Unichain:"https://sepolia.unichain.org",Mezo:"https://rpc.test.mezo.org",Linea:"https://linea-sepolia-rpc.publicnode.com",Sonic:"https://sonic-blaze-rpc.publicnode.com",XRPLEVM:"https://rpc.testnet.xrplevm.org/",Monad:"https://testnet-rpc.monad.xyz",Ink:"https://rpc-gel-sepolia.inkonchain.com"}},Fl={env:"Mainnet",rpcs:{Ethereum:"https://ethereum-rpc.publicnode.com",Solana:"https://solana-rpc.publicnode.com",Polygon:"https://polygon-bor-rpc.publicnode.com",Bsc:"https://bscrpc.com",Avalanche:"https://avalanche-c-chain-rpc.publicnode.com",Fantom:"https://rpcapi.fantom.network",Celo:"https://celo-rpc.publicnode.com",Moonbeam:"https://moonbeam-rpc.publicnode.com",Sui:"https://rpc.mainnet.sui.io",Aptos:"https://fullnode.mainnet.aptoslabs.com/v1",Arbitrum:"https://arbitrum-one-rpc.publicnode.com",Optimism:"https://optimism-rpc.publicnode.com",Base:"https://base.publicnode.com",Sei:"",Klaytn:"https://public-en.node.kaia.io",Scroll:"https://scroll-rpc.publicnode.com",Xlayer:"https://rpc.xlayer.tech",Mantle:"https://rpc.mantle.xyz",Worldchain:"https://worldchain-mainnet.g.alchemy.com/public",Unichain:"https://mainnet.unichain.org",Berachain:"https://rpc.berachain.com",Linea:"https://linea-rpc.publicnode.com",Sonic:"https://sonic-rpc.publicnode.com",Mezo:"https://jsonrpc-mezo.boar.network",HyperEVM:"https://rpc.hyperliquid.xyz/evm",HyperCore:"https://arbitrum-one-rpc.publicnode.com",XRPLEVM:"https://rpc.xrplevm.org/",Plume:"https://rpc.plume.org",Ink:"https://ink.drpc.org",CreditCoin:"https://mainnet3.creditcoin.network",Fogo:"https://mainnet.fogo.io",Monad:"https://rpc.monad.xyz"}},Cl={env:"Devnet",rpcs:{Ethereum:"http://localhost:8545"}},Dl={MAINNET:Fl,TESTNET:Bl,DEVNET:Cl},Rl={Ethereum:{displayName:"Ethereum",sdkName:"Ethereum",explorerUrl:"https://etherscan.io/",explorerName:"Etherscan",icon:"Ethereum",symbol:"ETH"},Bsc:{displayName:"BNB",sdkName:"Bsc",explorerUrl:"https://bscscan.com/",explorerName:"BscScan",icon:"Bsc",symbol:"BSC"},Polygon:{displayName:"Polygon",sdkName:"Polygon",explorerUrl:"https://polygonscan.com/",explorerName:"PolygonScan",icon:"Polygon",symbol:"POL"},Avalanche:{displayName:"Avalanche",sdkName:"Avalanche",explorerUrl:"https://snowtrace.io/",explorerName:"Snowtrace",icon:"Avalanche",symbol:"AVAX"},Fantom:{displayName:"Fantom",sdkName:"Fantom",explorerUrl:"https://explorer.fantom.network/",explorerName:"Fantom Explorer",icon:"Fantom",symbol:"FTM"},Celo:{displayName:"Celo",sdkName:"Celo",explorerUrl:"https://explorer.celo.org/mainnet/",explorerName:"Celo Explorer",icon:"Celo",symbol:"CELO"},Moonbeam:{displayName:"Moonbeam",sdkName:"Moonbeam",explorerUrl:"https://moonscan.io/",explorerName:"Moonscan",icon:"Moonbeam",symbol:"GLMR"},Solana:{displayName:"Solana",sdkName:"Solana",explorerUrl:"https://explorer.solana.com/",explorerName:"Solana Explorer",icon:"Solana",symbol:"SOL"},Sui:{displayName:"Sui",sdkName:"Sui",explorerUrl:"https://suiscan.xyz/",explorerName:"Suiscan",icon:"Sui",symbol:"SUI"},Aptos:{displayName:"Aptos",sdkName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",icon:"Aptos",symbol:"APT"},Base:{displayName:"Base",sdkName:"Base",explorerUrl:"https://basescan.org/",explorerName:"BaseScan",icon:"Base",symbol:"BASE"},Arbitrum:{displayName:"Arbitrum",sdkName:"Arbitrum",explorerUrl:"https://arbiscan.io/",explorerName:"Arbitrum Explorer",icon:"Arbitrum",symbol:"ARB"},Optimism:{displayName:"Optimism",sdkName:"Optimism",explorerUrl:"https://optimistic.etherscan.io/",explorerName:"Optimistic Etherscan",icon:"Optimism",symbol:"OP"},Klaytn:{displayName:"Kaia",sdkName:"Klaytn",explorerUrl:"https://kaiascan.io/",explorerName:"KaiaScan",icon:"Klaytn",symbol:"KAIA"},Scroll:{displayName:"Scroll",sdkName:"Scroll",explorerUrl:"https://scrollscan.com/",explorerName:"Scrollscan",icon:"Scroll",symbol:"SCR"},Xlayer:{displayName:"X Layer",sdkName:"Xlayer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer/",explorerName:"OKX Explorer",icon:"Xlayer",symbol:"OKX"},Mantle:{displayName:"Mantle",sdkName:"Mantle",explorerUrl:"https://explorer.mantle.xyz/",explorerName:"Mantle Explorer",icon:"Mantle",symbol:"MNT"},Worldchain:{displayName:"World Chain",sdkName:"Worldchain",explorerUrl:"https://worldscan.org/",explorerName:"World Scan",icon:"Worldchain",symbol:"WORLD"},Unichain:{displayName:"Unichain",sdkName:"Unichain",explorerUrl:"https://uniscan.xyz/",explorerName:"Uniscan",icon:"Unichain",symbol:"UNI"},Berachain:{displayName:"Berachain",sdkName:"Berachain",explorerUrl:"https://berascan.com/",explorerName:"Berascan",icon:"Berachain",symbol:"BERA"},Ink:{displayName:"Ink",sdkName:"Ink",explorerUrl:"https://explorer.inkonchain.com/",explorerName:"Ink Explorer",icon:"Ink",symbol:"INK"},Linea:{displayName:"Linea",sdkName:"Linea",explorerUrl:"https://lineascan.build/",explorerName:"Lineascan",icon:"Linea",symbol:"LINEA"},Sonic:{displayName:"Sonic",sdkName:"Sonic",explorerUrl:"https://sonicscan.org/",explorerName:"Sonicscan",icon:"Sonic",symbol:"S"},Mezo:{displayName:"Mezo",sdkName:"Mezo",explorerUrl:"https://explorer.mezo.org",explorerName:"Mezo Explorer",icon:"Mezo",symbol:"BTC"},Seievm:{displayName:"SeiEVM",sdkName:"Seievm",explorerUrl:"https://seitrace.com/?chain=pacific-1",explorerName:"Seitrace",icon:"Seievm",symbol:"SEI"},Plume:{displayName:"Plume",sdkName:"Plume",explorerUrl:"https://explorer.plume.org",explorerName:"Plume Explorer",icon:"Plume",symbol:"PLUME"},HyperEVM:{displayName:"HyperEVM",sdkName:"HyperEVM",explorerUrl:"https://hyperevmscan.io/",explorerName:"HyperEVMScan",icon:"HyperEVM",symbol:"HYPE"},HyperCore:{displayName:"HyperCore",sdkName:"HyperCore",explorerUrl:"https://app.hyperliquid.xyz/explorer/",explorerName:"Hyperliquid Explorer",icon:"HyperCore",symbol:"HyperCore"},XRPLEVM:{displayName:"XRPL EVM",sdkName:"XRPLEVM",explorerUrl:"https://explorer.xrplevm.org/",explorerName:"XRPL EVM Explorer",icon:"XRPLEVM",symbol:"XRP"},CreditCoin:{displayName:"Creditcoin",sdkName:"CreditCoin",explorerUrl:"https://creditcoin.blockscout.com",explorerName:"Blockscout",icon:"CreditCoin",symbol:"CTC"},Fogo:{displayName:"Fogo",sdkName:"Fogo",explorerUrl:"https://explorer.fogo.io/",explorerName:"Fogo Explorer",icon:"Fogo",symbol:"FOGO"},Monad:{displayName:"Monad",sdkName:"Monad",explorerUrl:"https://monadvision.com/",explorerName:"MonadVision",icon:"Monad",symbol:"MON"}},rr=g=>{console.error(`Wormhole Connect: ${g}`)},st=(g,x)=>x?{[g]:x}:{},Tl=(g,x)=>{if(!x)return g;for(const S in x)for(const c in x[S])g[S]||(g[S]={}),g[S][c]={...x[S][c],...g[S][c]};return g},Il=(g,x,S)=>{if(g)return g.source?.chain&&(x[g.source.chain]||(rr(`Invalid chain name "${g.source.chain}" specified for defaultInputs.source.chain`),delete g.source)),g.destination?.chain&&(x[g.destination.chain]||(rr(`Invalid chain name "${g.destination.chain}" specified for defaultInputs.destination.chain`),delete g.destination)),g.source?.token&&g.destination?.token&&g.source.token===g.destination.token&&rr("Source and destination token cannot be the same, check the defaultInputs configuration"),g.source?.chain&&g.destination?.chain&&g.requiredChain&&(x[g.requiredChain]||rr(`Invalid network value "${g.requiredChain}" specified for defaultInputs.requiredChain`),g.destination.chain!==g.requiredChain&&g.source.chain!==g.requiredChain&&rr("Source chain or destination chain must equal the required network")),g.source?.chain&&g.source?.token&&(S.findByAddressOrSymbol(g.source.chain,g.source.token)||(rr(`Invalid token "${g.source?.token}" specified for defaultInputs.source.token`),delete g.source.token)),g.destination?.chain&&g.destination?.token&&(S.findByAddressOrSymbol(g.destination.chain,g.destination.token)||(rr(`Invalid token "${g.destination?.token}" specified for defaultInputs.destination.token`),delete g.destination.token)),g},kl=g=>g[0].toUpperCase()+g.slice(1),Nl={},{REACT_APP_ETHEREUM_RPC:Pl,REACT_APP_SOLANA_RPC:ql,REACT_APP_POLYGON_RPC:Ol,REACT_APP_BSC_RPC:Ul,REACT_APP_AVALANCHE_RPC:Ll,REACT_APP_FANTOM_RPC:Hl,REACT_APP_CELO_RPC:zl,REACT_APP_MOONBEAM_RPC:$l,REACT_APP_SUI_RPC:Kl,REACT_APP_APTOS_RPC:Wl,REACT_APP_BASE_RPC:jl,REACT_APP_KLAYTN_RPC:Gl,REACT_APP_ARBITRUM_RPC:Vl,REACT_APP_OPTIMISM_RPC:Zl,REACT_APP_SCROLL_RPC:Xl,REACT_APP_XLAYER_RPC:Yl,REACT_APP_MANTLE_RPC:Jl,REACT_APP_WORLDCHAIN_RPC:Ql,REACT_APP_UNICHAIN_RPC:ed,REACT_APP_BERACHAIN_RPC:td,REACT_APP_INK_RPC:rd,REACT_APP_LINEA_RPC:id,REACT_APP_SONIC_RPC:nd,REACT_APP_SEIEVM_RPC:ad,REACT_APP_MEZO_RPC:fd,REACT_APP_PLUME_RPC:od,REACT_APP_HYPEREVM_RPC:sd,REACT_APP_XRPL_RPC:hd,REACT_APP_HYPERCORE_RPC:ud,REACT_APP_CREDITCOIN_RPC:cd,REACT_APP_FOGO_RPC:ld,REACT_APP_MONAD_RPC:dd}=Nl,pd={...st("Ethereum",Pl),...st("Solana",ql),...st("Polygon",Ol),...st("Bsc",Ul),...st("Avalanche",Ll),...st("Fantom",Hl),...st("Celo",zl),...st("Moonbeam",$l),...st("Sui",Kl),...st("Aptos",Wl),...st("Base",jl),...st("Arbitrum",Vl),...st("Optimism",Zl),...st("Klaytn",Gl),...st("Scroll",Xl),...st("Xlayer",Yl),...st("Mantle",Jl),...st("Worldchain",Ql),...st("Unichain",ed),...st("Berachain",td),...st("Ink",rd),...st("Linea",id),...st("Sonic",nd),...st("Seievm",ad),...st("Mezo",fd),...st("Plume",od),...st("HyperEVM",sd),...st("XRPLEVM",hd),...st("HyperCore",ud),...st("CreditCoin",cd),...st("Fogo",ld),...st("Monad",dd)};function k0(g){return{...g,showFooter:g.showFooter??!0,experimental:g.experimental??{},walletConnectProjectId:g?.walletConnectProjectId??void 0}}var ye=(g=>(g[g.AVAX=1]="AVAX",g[g.BNB=2]="BNB",g[g.BSC=3]="BSC",g[g.CELO=4]="CELO",g[g.ETH=5]="ETH",g[g.FANTOM=6]="FANTOM",g[g.POLYGON=7]="POLYGON",g[g.SOLANA=8]="SOLANA",g[g.USDC=9]="USDC",g[g.GLMR=10]="GLMR",g[g.DAI=11]="DAI",g[g.USDT=12]="USDT",g[g.BUSD=13]="BUSD",g[g.WBTC=14]="WBTC",g[g.SUI=15]="SUI",g[g.APT=16]="APT",g[g.SEI=17]="SEI",g[g.BASE=18]="BASE",g[g.OSMO=19]="OSMO",g[g.TBTC=20]="TBTC",g[g.WSTETH=21]="WSTETH",g[g.ARBITRUM=22]="ARBITRUM",g[g.OPTIMISM=23]="OPTIMISM",g[g.ATOM=24]="ATOM",g[g.EVMOS=25]="EVMOS",g[g.KUJI=26]="KUJI",g[g.PYTH=27]="PYTH",g[g.INJ=28]="INJ",g[g.KLAY=29]="KLAY",g[g.NTT=30]="NTT",g[g.SCROLL=31]="SCROLL",g[g.XLAYER=32]="XLAYER",g[g.MANTLE=33]="MANTLE",g[g.WORLDCHAIN=34]="WORLDCHAIN",g[g.BERA=35]="BERA",g[g.INK=36]="INK",g[g.BTC=37]="BTC",g[g.SONIC=38]="SONIC",g[g.PLUME=39]="PLUME",g[g.FOGO=40]="FOGO",g[g.HYPE=41]="HYPE",g[g.XRP=42]="XRP",g[g.CTC=43]="CTC",g[g.MONAD=44]="MONAD",g[g.AUSD=45]="AUSD",g))(ye||{});const vd=Object.freeze(Object.defineProperty({__proto__:null,TokenIcon:ye,createUiConfig:k0},Symbol.toStringTag,{value:"Module"})),bd=[{symbol:"ETH",decimals:18,icon:ye.ETH,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",decimals:18,icon:ye.ETH,tokenId:{chain:"Ethereum",address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}},{symbol:"WMON",decimals:18,icon:ye.MONAD,name:"Wrapped MON",tokenId:{chain:"Ethereum",address:"0x6917037f8944201b2648198a89906edf863b9517"}},{symbol:"USDC",decimals:6,icon:ye.USDC,tokenId:{chain:"Ethereum",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}},{symbol:"WBTC",decimals:8,icon:ye.WBTC,tokenId:{chain:"Ethereum",address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"}},{symbol:"USDT",decimals:6,icon:ye.USDT,tokenId:{chain:"Ethereum",address:"0xdAC17F958D2ee523a2206206994597C13D831ec7"}},{symbol:"DAI",decimals:18,icon:ye.DAI,tokenId:{chain:"Ethereum",address:"0x6B175474E89094C44Da98b954EedeAC495271d0F"}},{symbol:"BUSD",decimals:18,icon:ye.BUSD,tokenId:{chain:"Ethereum",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}},{symbol:"POL",decimals:18,icon:ye.POLYGON,tokenId:{chain:"Polygon",address:"native"}},{symbol:"WPOL",decimals:18,icon:ye.POLYGON,tokenId:{chain:"Polygon",address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}},{symbol:"WETH",decimals:18,icon:ye.ETH,tokenId:{chain:"Polygon",address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}},{symbol:"USDC",decimals:6,icon:ye.USDC,tokenId:{chain:"Polygon",address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"}},{symbol:"USDT",decimals:6,icon:ye.USDT,tokenId:{chain:"Polygon",address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}},{symbol:"BNB",decimals:18,icon:ye.BNB,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",decimals:18,icon:ye.BNB,tokenId:{chain:"Bsc",address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}},{symbol:"USDC",decimals:18,icon:ye.USDC,tokenId:{chain:"Bsc",address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}},{symbol:"AVAX",decimals:18,icon:ye.AVAX,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",decimals:18,icon:ye.AVAX,tokenId:{chain:"Avalanche",address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7"}},{symbol:"USDC",decimals:6,icon:ye.USDC,tokenId:{chain:"Avalanche",address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"}},{symbol:"USDT",decimals:6,icon:ye.USDT,tokenId:{chain:"Avalanche",address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"}},{symbol:"WETH",decimals:18,icon:ye.ETH,tokenId:{chain:"Avalanche",address:"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB"}},{symbol:"CELO",decimals:18,icon:ye.CELO,tokenId:{chain:"Celo",address:"0x471EcE3750Da237f93B8E339c536989b8978a438"}},{symbol:"USDT",decimals:6,icon:ye.USDT,tokenId:{chain:"Celo",address:"0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e"}},{symbol:"GLMR",decimals:18,icon:ye.GLMR,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",decimals:18,icon:ye.GLMR,tokenId:{chain:"Moonbeam",address:"0xAcc15dC74880C9944775448304B263D191c6077F"}},{symbol:"SOL",decimals:9,icon:ye.SOLANA,tokenId:{chain:"Solana",address:"native"}},{symbol:"SOL",decimals:9,tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:ye.SOLANA},{symbol:"USDC",decimals:6,tokenId:{chain:"Solana",address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},icon:ye.USDC},{symbol:"USDT",decimals:6,icon:ye.USDT,tokenId:{chain:"Solana",address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}},{symbol:"SUI",decimals:9,tokenId:{chain:"Sui",address:"native"},icon:ye.SUI},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC"},icon:ye.USDC},{symbol:"APT",decimals:8,tokenId:{chain:"Aptos",address:"native"},icon:ye.APT},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0xbae207659db88bea0cbead6da0ed00aac12edcdda169e591cd41c94180b46f3b"},icon:ye.USDC},{symbol:"ETH",decimals:18,icon:ye.ETH,tokenId:{chain:"Arbitrum",address:"native"}},{symbol:"WETH",decimals:18,icon:ye.ETH,tokenId:{chain:"Arbitrum",address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}},{symbol:"USDC",decimals:6,icon:ye.USDC,tokenId:{chain:"Arbitrum",address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"}},{symbol:"USDT",decimals:6,icon:ye.USDT,tokenId:{chain:"Arbitrum",address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"}},{symbol:"ETH",decimals:18,icon:ye.ETH,tokenId:{chain:"Optimism",address:"native"}},{symbol:"WETH",decimals:18,icon:ye.ETH,tokenId:{chain:"Optimism",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:ye.USDC,tokenId:{chain:"Optimism",address:"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"}},{symbol:"USDT",decimals:6,icon:ye.USDT,tokenId:{chain:"Optimism",address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"}},{symbol:"WETH",decimals:18,icon:ye.ETH,tokenId:{chain:"Bsc",address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8"}},{symbol:"USDT",decimals:18,icon:ye.USDT,tokenId:{chain:"Bsc",address:"0x55d398326f99059fF775485246999027B3197955"}},{symbol:"ETH",decimals:18,icon:ye.ETH,tokenId:{chain:"Base",address:"native"}},{symbol:"WETH",decimals:18,icon:ye.ETH,tokenId:{chain:"Base",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",decimals:6,icon:ye.USDC,tokenId:{chain:"Base",address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{symbol:"USDT",decimals:6,icon:ye.USDT,tokenId:{chain:"Base",address:"0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2"}},{symbol:"wstETH",decimals:18,tokenId:{chain:"Base",address:"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452"},icon:ye.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Ethereum",address:"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"},icon:ye.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Arbitrum",address:"0x5979D7b546E38E414F7E9822514be443A4800529"},icon:ye.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Optimism",address:"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb"},icon:ye.WSTETH},{symbol:"wstETH",decimals:18,tokenId:{chain:"Polygon",address:"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD"},icon:ye.WSTETH},{symbol:"KAIA",decimals:18,icon:ye.KLAY,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"wKAIA",decimals:18,name:"wKAIA",icon:ye.KLAY,tokenId:{chain:"Klaytn",address:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817"}},{symbol:"PYTH",decimals:6,tokenId:{chain:"Solana",address:"HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3"},icon:ye.PYTH},{symbol:"ETH",decimals:18,icon:ye.SCROLL,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",decimals:18,icon:ye.SCROLL,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"OKB",decimals:18,icon:ye.XLAYER,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",decimals:18,icon:ye.XLAYER,tokenId:{chain:"Xlayer",address:"0xe538905cf8410324e03A5A23C1c177a474D59b2b"}},{symbol:"MNT",decimals:18,icon:ye.MANTLE,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",decimals:18,icon:ye.MANTLE,tokenId:{chain:"Mantle",address:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8"}},{symbol:"tBTC",decimals:18,tokenId:{chain:"Ethereum",address:"0x18084fbA666a33d37592fA2633fD49a74DD93a88"},icon:ye.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Polygon",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:ye.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Optimism",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:ye.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Arbitrum",address:"0x6c84a8f1c29108F47a79964b5Fe888D4f4D0dE40"},icon:ye.TBTC},{symbol:"tBTC",decimals:18,tokenId:{chain:"Base",address:"0x236aa50979D5f3De3Bd1Eeb40E81137F22ab794b"},icon:ye.TBTC},{symbol:"tBTC",decimals:8,tokenId:{chain:"Solana",address:"6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU"},icon:ye.TBTC},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:ye.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:ye.WORLDCHAIN},{symbol:"USDC",tokenId:{chain:"Worldchain",address:"0x79A02482A880bCE3F13e09Da970dC34db4CD24d1"},decimals:6,icon:ye.USDC},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:ye.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:ye.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x078D782b760474a361dDA0AF3839290b0EF57AD6"},decimals:6,icon:ye.USDC},{symbol:"USDT",tokenId:{chain:"Unichain",address:"0x9151434b16b9763660705744891fA906F660EcC5"},decimals:6,icon:ye.USDT},{symbol:"BERA",tokenId:{chain:"Berachain",address:"native"},decimals:18,icon:ye.BERA},{symbol:"WBERA",tokenId:{chain:"Berachain",address:"0x6969696969696969696969696969696969696969"},decimals:18,icon:ye.BERA},{symbol:"ETH",tokenId:{chain:"Ink",address:"native"},decimals:18,icon:ye.ETH},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:ye.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0x176211869cA2b568f2A7D4EE941E073a821EE1ff"},decimals:6,icon:ye.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:ye.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0x29219dd400f2Bf60E5a23d13Be72B486D4038894"},decimals:6,icon:ye.USDC},{symbol:"SEI",tokenId:{chain:"Seievm",address:"native"},decimals:18,icon:ye.SEI},{symbol:"USDC",tokenId:{chain:"Seievm",address:"0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392"},decimals:6,icon:ye.USDC},{symbol:"USDC",tokenId:{chain:"Plume",address:"0x222365EF19F7947e5484218551B56bb3965Aa7aF"},decimals:6,icon:ye.USDC},{symbol:"PLUME",tokenId:{chain:"Plume",address:"native"},decimals:18,icon:ye.PLUME},{symbol:"BTC",tokenId:{chain:"Mezo",address:"native"},decimals:18,icon:ye.BTC},{symbol:"HYPE",tokenId:{chain:"HyperEVM",address:"native"},decimals:18,icon:ye.HYPE},{symbol:"wHYPE",tokenId:{chain:"HyperEVM",address:"0x5555555555555555555555555555555555555555"},decimals:18,icon:ye.HYPE},{symbol:"USDT0",tokenId:{chain:"HyperEVM",address:"0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb"},decimals:6,icon:ye.USDT},{symbol:"USDC",tokenId:{chain:"HyperEVM",address:"0xb88339CB7199b77E23DB6E890353E22632Ba630f"},decimals:6,icon:ye.USDC},{symbol:"USDC",tokenId:{chain:"Ink",address:"0x2D270e6886d130D724215A266106e6832161EAEd"},decimals:6,icon:ye.USDC},{symbol:"USDC",tokenId:{chain:"HyperCore",address:"native"},decimals:6,icon:ye.USDC},{symbol:"XRP",tokenId:{chain:"XRPLEVM",address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"},decimals:18,icon:ye.XRP},{symbol:"CTC",tokenId:{chain:"CreditCoin",address:"native"},decimals:18,icon:ye.CTC},{symbol:"FOGO",icon:ye.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"native"}},{symbol:"WFOGO",icon:ye.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"So11111111111111111111111111111111111111112"}},{symbol:"MON",icon:ye.MONAD,decimals:18,tokenId:{chain:"Monad",address:"native"}},{symbol:"WMON",icon:ye.MONAD,decimals:18,tokenId:{chain:"Monad",address:"0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A"}},{symbol:"WETH",icon:ye.ETH,decimals:18,tokenId:{chain:"Monad",address:"0xEE8c0E9f1BFFb4Eb878d8f15f368A02a35481242"}},{symbol:"USDC",icon:ye.USDC,decimals:6,tokenId:{chain:"Monad",address:"0x754704Bc059F8C67012fEd69BC8A327a5aafb603"}},{symbol:"USDT",icon:ye.USDT,decimals:6,tokenId:{chain:"Monad",address:"0xe7cd86e13AC4309349F30B3435a9d337750fC82D"}},{symbol:"WBTC",icon:ye.WBTC,decimals:8,tokenId:{chain:"Monad",address:"0x0555E30da8f98308EdB960aa94C0Db47230d2B9c"}},{symbol:"AUSD",icon:ye.AUSD,decimals:6,tokenId:{chain:"Arbitrum",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ye.AUSD,decimals:6,tokenId:{chain:"Avalanche",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ye.AUSD,decimals:6,tokenId:{chain:"Base",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ye.AUSD,decimals:6,tokenId:{chain:"Bsc",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ye.AUSD,decimals:6,tokenId:{chain:"Ethereum",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ye.AUSD,decimals:6,tokenId:{chain:"Mantle",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ye.AUSD,decimals:6,tokenId:{chain:"Monad",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ye.AUSD,decimals:6,tokenId:{chain:"Plume",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ye.AUSD,decimals:6,tokenId:{chain:"Polygon",address:"0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a"}},{symbol:"AUSD",icon:ye.AUSD,decimals:6,tokenId:{chain:"Solana",address:"AUSD1jCcCyPLybk1YnvPWsHQSrZ46dxwoMniN4N2UEB9"}},{symbol:"AUSD",icon:ye.AUSD,decimals:6,tokenId:{chain:"Sui",address:"0x2053d08c1e2bd02791056171aab0fd12bd7cd7efad2ab8f6b9c8902f14df2ff2::ausd::AUSD"}}],md={Ethereum:{"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2":{Bsc:"0x4DB5a66E937A9F4473fA95b1cAF1d1E1D62E29EA",Polygon:"0x11CD37bb86F65419713f30673A480EA33c826872",Avalanche:"0x8b82A291F83ca07Af22120ABa21632088fC92931",Fantom:"0x2A126f043BDEBe5A0A9841c51915E562D9B07289",Celo:"0x66803FB87aBd4aaC3cbB3fAd7C3aa01f6F3FB207",Moonbeam:"0xab3f0245B83feB11d15AAffeFD7AD465a59817eD",Solana:"7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",Sui:"0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5::coin::COIN",Aptos:"0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T",Base:"0x71b35ECb35104773537f849FBC353F81303A5860",Arbitrum:"0xD8369C2EDA18dD6518eABb1F85BD60606dEb39Ec",Optimism:"0xb47bC3ed6D70F04fe759b2529c9bc7377889678f",Mantle:"0x115Fcc627AcE0457fbeb7Af3b8BcAcE7Ff6211A4",Klaytn:"0x98A8345bB9D3DDa9D808Ca1c9142a28F6b0430E1",Worldchain:"0x6938c3EfFEf84E5C69e3d7cc41eBC6Cff99EF8A7"},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":{Bsc:"0xB04906e95AB5D797aDA81508115611fee694c2b3",Polygon:"0x4318CB63A2b8edf2De971E2F17F77097e499459D",Avalanche:"0xB24CA28D4e2742907115fECda335b40dbda07a4C",Fantom:"0x2Ec752329c3EB419136ca5e4432Aa2CDb1eA23e6",Celo:"0x37f750B7cC259A2f741AF45294f6a16572CF5cAd",Moonbeam:"0x931715FEE2d06333043d11F658C8CE934aC61D0c",Solana:"A9mUU4qviSctJVPJdBJWkb28deg915LYJKrzQ19ji3FM",Sui:"0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN",Aptos:"0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T",Base:"0xec267C53f53807c2337C257f8AC3Fc3cC07cc0ed",Arbitrum:"0xC96F2715E2a242d50D1b0bC923dbe1740b8eCf18",Optimism:"0x711e53D031ea9B0bb0C24dD506df11b41AEA419e",Klaytn:"0x608792Deb376CCE1c9FA4D0E6B7b44f507CfFa6A",Worldchain:"0x2cbD3491d687A76bb9C53c30B212855520D47b52"},"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599":{Bsc:"0x43359676E1A3F9FbB5de095333f8e9c1B46dFA44",Polygon:"0x5D49c278340655B56609FdF8976eb0612aF3a0C3",Avalanche:"0x1C0e79C5292c59bbC13C9F9f209D204cf4d65aD6",Fantom:"0x87e9E225aD8a0755B9958fd95BE43DD6A91FF3A7",Celo:"0xd71Ffd0940c920786eC4DbB5A12306669b5b81EF",Moonbeam:"0xE57eBd2d67B462E9926e04a8e33f01cD0D64346D",Solana:"3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",Sui:"0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881::coin::COIN",Aptos:"0xae478ff7d83ed072dbc5e264250e67ef58f57c99d89b447efd8a0a2e8b2be76e::coin::T",Base:"0xE6396f780b543dF16ee3b784D789c75B68319db0",Arbitrum:"0x397846a8078d4845c7f5c6Ca76aeBbcFDc044fAe",Optimism:"0xB214C19d81c99E75e84706a3aa0A757319023e26",Klaytn:"0x981846bE8d2d697f4dfeF6689a161A25FfbAb8F9",Worldchain:"0x06c9ec7E18A7900E79Ad5BeCc6Cc29E3eebD81EC"},"0xdAC17F958D2ee523a2206206994597C13D831ec7":{Bsc:"0x524bC91Dc82d6b90EF29F76A3ECAaBAffFD490Bc",Polygon:"0x9417669fBF23357D2774e9D421307bd5eA1006d2",Avalanche:"0x9d228444FC4B7E15A2C481b48E10247A03351FD8",Fantom:"0x14BCb86aEed6a74D3452550a25D37f1c30AA0A66",Celo:"0x617f3112bf5397D0467D315cC709EF968D9ba546",Moonbeam:"0xc30E9cA94CF52f3Bf5692aaCF81353a27052c46f",Solana:"Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",Sui:"0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN",Aptos:"0xa2eda21a58856fda86451436513b867c97eecb4ba099da5775520e0f7492e852::coin::T",Base:"0xFf0C62A4979400841eFaA6faADb07Ac7d5C98b27",Arbitrum:"0xE4728F3E48E94C6DA2B53610E677cc241DAFB134",Optimism:"0xf6B4185FCf8aF291c0E3927fbEab7046b4f6A8CA",Klaytn:"0x5C13E303a62Fc5DEdf5B52D66873f2E59fEdADC2",Xlayer:"0x5866709f926f26C5870191F40333ac462B917bC0",Worldchain:"0x95dd0680Fd6B6c7546e75C1A4E6A3256072C0593"},"0x6B175474E89094C44Da98b954EedeAC495271d0F":{Bsc:"0x3413a030EF81a3dD5a302F4B4D11d911e12ed337",Polygon:"0x732EB1747ecCFC431fF19bc359ffc83755B1918c",Avalanche:"0xca319f81D147559e19A522A0a0310Dd43A96cA0F",Fantom:"0xEE786D3D73Ea645365c7248E4e40eDba08B1169F",Celo:"0x97926a82930bb7B33178E3c2f4ED1BFDc91A9FBF",Moonbeam:"0x06e605775296e851FF43b4dAa541Bb0984E9D6fD",Solana:"EjmyN6qEC1Tf1JxiG1ae7UTJhUxSwk1TCWNWqxWV4J6o",Aptos:"0x407a220699982ebb514568d007938d2447d33667e4418372ffec1ddb24491b6c::coin::T",Base:"0x617Edadb51BfB43A44Bb91C7402129C23bA52381",Arbitrum:"0x5c4f2FEFB97F7DF09E762d95C83f0Ccf8bCe8234",Optimism:"0x098EA47D630b46df1E08e389e5e4466119c7dd30",Sui:"0xc01c54cd767a60835bf100b0a8f7aae66ac9f4e374f76746af60f02493b6f2cf::coin::COIN",Klaytn:"0xCB2C7998696Ef7a582dFD0aAFadCd008D03E791A",Worldchain:"0x69635e59E89000e08a13C3F7B9f7293160Dc83a2"},"0x4Fabb145d64652a948d72533023f6E7A623C7C53":{Bsc:"0x035de3679E692C471072d1A09bEb9298fBB2BD31",Polygon:"0x95ea750420da26bE1Ab0891e209e921bCd84763f",Celo:"0x1dd42c0785ca90B677adc2ABad01dfc5ECcD0b4d",Moonbeam:"0xa2284e1F98E4d0B7Eb6a6b4f3C57f1b209C755F3",Solana:"33fsBLA8djQm82RpHmE3SuVrPGtZBWNYExsEUeKX1HXX",Aptos:"0x77400d2f56a01bad2d7c8c6fa282f62647ce3c03f43f2a8742e47ea01a91e24a::coin::T",Worldchain:"0x276719Fc6a38E62B717c6FF6E39d1C336ee633AB"},"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0":{Polygon:"0xe082a7Fc696De18172Ad08D956569Ee80BC37f06",Solana:"ZScHuTtqZukUrtZS43teTKGs2VqkKL8k4QCouR2n6Uo",Arbitrum:"0xf2717122Dfdbe988ae811E7eFB157aAa07Ff9D0F",Optimism:"0x855CFcEEe998c8ca34F9c914F584AbF72dC88B87",Base:"0xEd4e2FD35161c3c0e33cA187fce64C70d44Ce32b",Bsc:"0xad80E1A9B5824234afA9dE1F3bbDb8a994796169",Avalanche:"0x11449fd2F05D93827972b40adE96F6ffBE42E35a",Fantom:"0x2a2Ec6Ad3e47C536F47934F63b95BD647F1C730E",Worldchain:"0xd977e0251db8d38155dC5d212944AB7B7a6777Ad"}},Polygon:{"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270":{Ethereum:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",Bsc:"0xc836d8dC361E44DbE64c4862D55BA041F88Ddd39",Avalanche:"0xf2f13f0B7008ab2FA4A2418F4ccC3684E49D20Eb",Fantom:"0xb88A6064B1F3FF5B9AE4A82fFD52560b0dF9FBD3",Celo:"0x9C234706292b1144133ED509ccc5B3CD193BF712",Moonbeam:"0x82DbDa803bb52434B1f4F41A6F0Acb1242A7dFa3",Solana:"Gz7VkD4MacbEB6yC5XD3HcumEiYx2EtDYYrfikGsvopG",Sui:"0xdbe380b13a6d0f5cdedd58de8f04625263f113b3f9db32b3e1983f49e2841676::coin::COIN",Aptos:"0x6781088e2a1629d38eda521467af4a8ca7bfa7e5516338017940389595c85c0f::coin::T",Base:"0xc863399E5c5C4011B1DC3fB602902C77BA72B709",Arbitrum:"0x3ab0E28C3F56616aD7061b4db38aE337E3809AEA",Optimism:"0x8f02B6a32cebcAe44D2Fd17d87966f5B5dD14c6d",Mantle:"0x1d15Dc3B3DB5A182eA8E3091F21EB0549d4a72E0",Klaytn:"0x9858e5A4f8202baD619D4BD39382CA67F4CA0E63",Scroll:"0x982D057feCD66c3af27b16EBC67C4db24810bcD8",Xlayer:"0xc97E2b2d7730C34adC389563721d9dF52EDA4A2a",Worldchain:"0xDcB507ECEA06724d8c4F2f03964f7EE4da504E8C"},"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619":{Bsc:"0x1384284E16e3375522Be54F50909Bc52A69e90e4",Solana:"DQyeU3oFezEGia761GQ4iPcMCnxnH8fuLrmHZUvTYuby",Aptos:"0x2692323828f627a45a75a05eba8281dd46690c538b4f6ccb7a35ffe8199a28b7::coin::T",Sui:"0xa1ed6e76b06ff8f959cc479fbbd423820a3349dad8707b98ff4309c677fa20ad::coin::COIN",Arbitrum:"0xd2b299eD76d1369Ac8762CFEc85245fFD302FC17",Ethereum:"0x32d222E1f6386B3dF7065d639870bE0ef76D3599",Avalanche:"0x061FE51530768889dc20Ac7fCD29b5307b823395",Optimism:"0x2740220fFa4b206280907ce12b7cDC57445f3B92",Fantom:"0x1cAFd8d3301E4E54Fc1462E7117Eb678bF50C765",Base:"0x7A79923734eDA9c7f7ff69ad9ec1e234F67E7CD6",Moonbeam:"0xf1BB9A987B9edC360580b0c9F28069C808c2a7da",Celo:"0x8Ed68859f162970258992168293232e3Bdd987d0",Klaytn:"0x3eb25C7098AC38a852Cd2366161c5e216af50Df3"},"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359":{Aptos:"0xc5fd7820e9f053e6dd8e7dd8ca3ce8e9b10d200ba1692bdeb7a035217180ad4a::coin::T",Base:"0xFe1579BAc60363c8572CB30Bf4DD1Fd85811BBF8",Moonbeam:"0x4415BfBDee669446550d55c749007EF60B520FC8",Sui:"0x5c8c9082401982e8c2519a5c12883a5475295bf5cec4a0a13c26d35dd9a20d73::coin::COIN",Bsc:"0xe6d82Bbe75041E42E51d755e922cE1BA91af9c4d",Celo:"0x42c76808f3179A091Ee007A2955aF2522978ADE7",Fantom:"0xB4DcfD221048a1Dad989D39456BBd87762c26F06",Avalanche:"0xDb2d08f5A9C9ADBBA0DE5a69bbB1E9Ca03411692",Arbitrum:"0x599ADB10E6A012dF34935D47407450f6D7170e3C",Optimism:"0xbB1EaB9Eb8fDf65F0E291D013DA07B4b65a27a01",Solana:"C321jHPwWBzgfSGndosDTp5pBsiXPyMU1irxKLVcedRB",Ethereum:"0xFbcE0f9e92AD1003e893Ba647bC055D845aAa507",Klaytn:"0x59AEaD999e018a00B162D34de7a81AFFAB88bAbB"},"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD":{Base:"0xcB6D47199d60747152d7671D6497ce8D23cc1D75",Arbitrum:"0x23D3901A635fDd98D8d6509bc0720281f80a8E6D",Ethereum:"0x302F636d723c8Ed75C0d1E9D9C714009184C5624",Optimism:"0x4fad81d2268a7D9E1e0fE7dB38af07FFFA0aA56E",Celo:"0xA4c7302659eCF88a90e62e915Bd486E66B616A4C"}},Bsc:{"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c":{Ethereum:"0x418D75f65a02b3D53B2418FB8E1fe493759c7605",Polygon:"0xeCDCB5B88F8e3C15f95c720C51c71c9E2080525d",Avalanche:"0x442F7f22b1EE2c842bEAFf52880d4573E9201158",Fantom:"0xc033551e05907Ddd643AE14b6D4a9CA72BfF509B",Celo:"0xBf2554ce8A4D1351AFeB1aC3E5545AaF7591042d",Moonbeam:"0xE3b841C3f96e647E6dc01b468d6D0AD3562a9eeb",Solana:"9gP2kCy3wA1ctvYWQk75guqXuHfrEomqydHLtcTCqiLa",Sui:"0xb848cce11ef3a8f62eccea6eb5b35a12c4c2b1ee1af7755d02d7bd6218e8226f::coin::COIN",Aptos:"0x6312bc0a484bc4e37013befc9949df2d7c8a78e01c6fe14a34018449d136ba86::coin::T",Base:"0x7fdAa50d7399ac436943028edA6ed9a1BD89509f",Arbitrum:"0x7AF00405916D823eDb1121546EfA6F4972B51b84",Optimism:"0x6A09fE65ACa27C12573F04aAFa290bD75497E1BC",Mantle:"0x9a7E85260d6F5d3c3d2a1FdDc3D980DBC78e508d",Klaytn:"0xaC9C1E4787139aF4c751B1C0fadfb513C44Ed833",Scroll:"0x5b0da0a36DC415714B53A4f24b56921332F42E7C",Xlayer:"0x8bC46166E06122603bA10D2bCA63b75091c25cAe",Worldchain:"0x59163d9c70E9b3852a504c5F1458e2daD33516Ff"},"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d":{Ethereum:"0x7cd167B101D2808Cfd2C45d17b2E7EA9F46b74B6",Polygon:"0x4B3a922c773BDCF3BA8f1A4FDAc2029E1D0E9868",Avalanche:"0x6145E8a910aE937913426BF32De2b26039728ACF",Fantom:"0x0FcbDAC44c67A43607D3E95886dB19871ADc985F",Celo:"0x9d9abAE97a9344e3854527b4efbB366a1564bfEb",Moonbeam:"0x7f433E22366E03a3758CE22cCf82887d828078f8",Solana:"FCqfQSujuPxy6V42UvafBhsysWtEq1vhjfMN1PUbgaxA",Sui:"0x909cba62ce96d54de25bec9502de5ca7b4f28901747bbf96b76c2e63ec5f1cba::coin::COIN",Aptos:"0x79a6ed7a0607fdad2d18d67d1a0e552d4b09ebce5951f1e5c851732c02437595::coin::T",Base:"0x68E2b07F92ed506f92935d7359ECA84D5342dbb4",Arbitrum:"0x1a0590F951bc9C3818Ce75ba5Bbe92831b2cf57e",Optimism:"0x1C15057d1F3794C934a6cBC1f7EceE934050F219",Klaytn:"0x01B342d26FEF5749E87CBe412e16163771b0277c"},"0x2170Ed0880ac9A755fd29B2688956BD959F933F8":{Aptos:"0xd9fc4259ec5def95477dba9f0861c2882d1f8bee9a4138b476dd0720a3444547::coin::T",Solana:"FzjTz2cD1DfqYvafrbHWZvf1dK9qjwXGLuaU7xYXQjxP",Sui:"0x5029d5a94429a73b8036cd67192d9c5e09bbc2c0fee942d50075a9edba66744f::coin::COIN",Base:"0xf50509Bb6aF76E20c6E1eD493699c5f70764BcCC",Arbitrum:"0x6478377A399bE8c92bD35254aA7bF287836de32e",Ethereum:"0x5DbBB101CDc29443d12055eCDDdD7ca037Dce721",Fantom:"0xc511E3aec79CABD605021C237c475Ec553B002d4",Celo:"0x09F236D3708894581b1Cf679e582ba9eA5BE16f0",Klaytn:"0x4C07075BB44076106f3389766946b79784Fb5C58",Avalanche:"0xf0e509144CfA602d0A5e8C75d76FF74077f52f2b",Optimism:"0x8088Bc767c392b5769b94c9ec1D07c62874c8d5f",Polygon:"0x2D291e940DbDdaa9E847Ba5cC49451575f086b27",Moonbeam:"0xBefd7902B682938b29B3FD3D4AdECD9A984D5930"}},Avalanche:{"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7":{Ethereum:"0x85f138bfEE4ef8e540890CFb48F620571d67Eda3",Bsc:"0x96412902aa9aFf61E13f085e70D3152C6ef2a817",Polygon:"0x7Bb11E7f8b10E9e571E5d8Eace04735fDFB2358a",Fantom:"0x358CE030DC6116Cc296E8B9F002728e65459C146",Celo:"0xFFdb274b4909fC2efE26C8e4Ddc9fe91963cAA4d",Moonbeam:"0xd4937A95BeC789CC1AE1640714C61c160279B22F",Solana:"KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE",Sui:"0x1e8b532cca6569cab9f9b9ebc73f8c13885012ade714729aa3b450e0339ac766::coin::COIN",Aptos:"0x5b1bbc25524d41b17a95dac402cf2f584f56400bf5cc06b53c36b331b1ec6e8f::coin::T",Base:"0xc449A60A31E1eebFE83c42E9465fd4Dc318aE9a7",Arbitrum:"0x565609fAF65B92F7be02468acF86f8979423e514",Optimism:"0x8418C1d909842f458c9394886b83F19d62bF1A0D",Mantle:"0x2cAb4233d42043AEBbbb1445af362Ef686f3C133",Klaytn:"0x45830b92443a8f750247da2A76C85c70d0f1EBF3",Scroll:"0xC043c8A3672f397e7b52bF0a04F47d6f1aA952Ed",Xlayer:"0x5208Fb676B2DBab7aFaFB56e8997237F0ceECF71",Worldchain:"0x5Bf2A0622aa1254D963A3074b593A379784C116a"},"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E":{Ethereum:"0x39EbF69137D98FB7659Ef8D4ea21ec26394389d7",Bsc:"0xc88Dc63bf0c8c8198C97Db0945E3eF25Ca89A8e4",Polygon:"0xAEA5CC14DefbC1b845FDE729E563B717Ee6825ae",Fantom:"0xEfE7701cb2B80664385Be226d0300912CA92f66A",Celo:"0x62FFf2D2D1692D52eAf043AeeC727F7918d269D3",Moonbeam:"0xd4918c40cA9f02d42Cb53d06587aF42017Bc345D",Solana:"FHfba3ov5P3RjaiLVgh8FTv4oirxQDoVXuoUUDvHuXax",Sui:"0xe596782fbaebef51ae99ffac8731aed98a80642b9dc193ed659c97fbc2cc0f84::coin::COIN",Aptos:"0x39d84c2af3b0c9895b45d4da098049e382c451ba63bec0ce0396ff7af4bb5dff::coin::T",Arbitrum:"0x93e0FcbEd43CD6fC30DF00CcBD4669718dc74e77",Optimism:"0x355f0a8a7ecAeD971b8Fbd50994558291ff2413a",Base:"0xD83385fE100E20c269a5975D4Bf92525BcE09F87",Klaytn:"0x9C97D4c09679Dfd00A39681f6d3b61A285312B13",Scroll:"0xbEFc3d0457fB88f82364Dd982F7BA195FEE96b74"},"0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB":{Aptos:"0x25ff8e0c07552c392c9e5dd4c9c07cf0382765c1bca560e80b6296a702034219::coin::T",Solana:"F9B9qLwUN3TAWGV9EGsuzFzS2PxWvKAmLhvfeqYNaS7J",Bsc:"0xBDfe278268524de38Da89B3023C1F49deBDFdA8A",Sui:"0xc1ea686a329e35808c61484d95904d50522f1d1616cab4b416d9cfa9b274bc6c::coin::COIN",Base:"0xEfe64b52bc0bDfa109790736F25cefb79724adF0",Arbitrum:"0xdF64fB41b7f45304a786695E0D5daD8d033C01eF",Polygon:"0x2912b3a9586Fc2AB177dC869e878c688DAA7d06E",Ethereum:"0xD85a87Edbe9fB3Baf6a1Bbd1E46f1C04B291331d",Optimism:"0xBe6EA3e70e2bbB0dbD093B657fbbc0DFF0BA67eC",Moonbeam:"0x9C673c6b651D6FDEF57441125A6AC16b08bba939",Celo:"0xDac2C97b5E64d7C79d040cd2906EBe02341F1Ab5",Klaytn:"0x9971F9d9170D787C4e4E01c56E1BDB308291CacF",Fantom:"0x86a09597fc91b116511B990D29CB46ddedC0fCb0"}},Fantom:{"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83":{Ethereum:"0x4cD2690d86284e044cb63E60F1EB218a825a7e92",Bsc:"0xbF8413EE8612E0E4f66Aa63B5ebE27f3C5883d47",Polygon:"0x3726831304D77f585f1Aca9d9841cc3Ef80dAa62",Avalanche:"0xd19abc09B7b36F7558929b97a866f499a26c2f83",Celo:"0xd1A342eE2210238233a347FEd61EE7Faf9f251ce",Moonbeam:"0x609AedD990bf45926bca9E4eE988b4Fb98587D3A",Solana:"DRQBDBEWmwWGK13fRTLhSPzjbvMSUavhV6nW4RUH8W6T",Sui:"0x6081300950a4f1e2081580e919c210436a1bed49080502834950d31ee55a2396::coin::COIN",Aptos:"0xd1aa2ff36a0e93e1b4e4fecdecf8bb95bc5de399061c5e84b515281f48718842::coin::T",Base:"0x936Fa2DE8380Dc5BF34C80F1BaD53a9f3630263B",Arbitrum:"0x7f7dcDb91930033a4Eb269196EBb6fd5f0644E4B",Optimism:"0x0b0ecbe5C3995541876d27633B63296570FB34Af",Mantle:"0x6BFDc59ECBC5503aE16F71851064597D0a75dA76",Klaytn:"0xF3AebeA789F30C22F3657F70f4CaA0f8b49ed676",Scroll:"0x16f077e2e9bF99Adfb1FEEc8360ee002842C44A2",Xlayer:"0x956b5E88c311b976C76CB415C7E030A5Af87373b"},"0x2F733095B80A04b38b0D10cC884524a3d09b836a":{Bsc:"0x521af8b1c43B503BE91F542d82EEFEabc0C93340",Arbitrum:"0xF68734163731ad6A6108f76A8e09862C1d412B42",Ethereum:"0xfcC349c14013EdeFAAcAE09Ba30F4ef2571b8D2c"}},Celo:{"0x471EcE3750Da237f93B8E339c536989b8978a438":{Ethereum:"0x3294395e62F4eB6aF3f1Fcf89f5602D90Fb3Ef69",Bsc:"0x2A335e327a55b177f5B40132fEC5D7298aa0D7e6",Polygon:"0x922F49a9911effc034eE756196E59BE7b90D43b3",Avalanche:"0x494317B8521c5a5287a06DEE467dd6fe285dA4a8",Fantom:"0xF432490C6c96C9d3bF523a499a1CEaFd8208A373",Moonbeam:"0xc1a792041985F65c17Eb65E66E254DC879CF380b",Solana:"9kvAcwQbqejuJMd59mKuw2bfSsLRaQ7zuvaTVHEeBBec",Sui:"0xa198f3be41cda8c07b3bf3fee02263526e535d682499806979a111e88a5a8d0f::coin::COIN",Aptos:"0xac0c3c35d50f6ef00e3b4db6998732fe9ed6331384925fe8ec95fcd7745a9112::coin::T",Base:"0x74df3823aA29D278cAD0A3632fCB56C896a38eD4",Arbitrum:"0x4E51aC49bC5e2d87e0EF713E9e5AB2D71EF4F336",Optimism:"0x9b88D293b7a791E40d36A39765FFd5A1B9b5c349",Klaytn:"0xB2b5bC9bc872c7107CBC8E8e0E2805Db0ac4FBc2",Worldchain:"0x2250A0E2532A745b585B69dd2CdC75207384917c"}},Moonbeam:{"0xAcc15dC74880C9944775448304B263D191c6077F":{Ethereum:"0x93d3696A9F879b331f40CB5059e37015423A3Bd0",Bsc:"0x1C063db3c621BF901FC6C1D03328b08b2F9bbfba",Polygon:"0xcC48d6CF842083fEc0E01d913fB964b585975F05",Avalanche:"0x375aA6C67BF499fBf01804A9f92C03c0776F372d",Fantom:"0xBF227E92D6754EB4BFE26C40cb299ff2809Da45f",Celo:"0x383A5513AbE4Fe36e0E00d484F710148E348Aa9D",Solana:"7ixSaXGsHAFy34wogPk2YXiUX3BMmQMFdercdaHLnBby",Sui:"0x66f87084e49c38f76502d17f87d17f943f183bb94117561eb573e075fdc5ff75::coin::COIN",Aptos:"0x7ab1283a7b13c4254d4e1f803d7ce6578442c1d7a40d0faee41cd48ba4884c8a::coin::T",Base:"0xfdB7311BeC3b2CcCF8407d0585f81B97b3b5eff1",Arbitrum:"0x944C5b67a03e6Cb93Ae1E4B70081f13b04CDB6Bd",Optimism:"0xbffD46DFDb8d3a02b8D2E0F864a2cD712090a4D3",Klaytn:"0x52a4558f98dDc7cb40cd9114C005f0B9571258Fc",Scroll:"0x2Aba1Ed24EaFC17F801b1A7dF1c3a06737F8aB72",Xlayer:"0xE2a44Dad57004517738FbD84cdf09Bd1451b4e43",Worldchain:"0xaAe2Bd4EB640f02dD3a53bd994ad19110b4191b0"}},Solana:{So11111111111111111111111111111111111111112:{Ethereum:"0xD31a59c85aE9D8edEFeC411D448f90841571b89c",Bsc:"0xfA54fF1a158B5189Ebba6ae130CEd6bbd3aEA76e",Polygon:"0xd93f7E271cB87c23AaA73edC008A79646d1F9912",Avalanche:"0xFE6B19286885a4F7F55AdAD09C3Cd1f906D2478F",Fantom:"0xd99021C2A33e4Cf243010539c9e9b7c52E0236c1",Celo:"0x4581E64115d46CcdeE65Be2336bEc86c9BA54C01",Moonbeam:"0x99Fec54a5Ad36D50A4Bba3a41CAB983a5BB86A7d",Sui:"0xb7844e289a8410e50fb3ca48d69eb9cf29e27d223ef90353fe1bd8e27ff8f3f8::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Base:"0x1C61629598e4a901136a81BC138E5828dc150d67",Arbitrum:"0x2bcC6D6CdBbDC0a4071e48bb3B969b06B3330c07",Optimism:"0xba1Cf949c382A32a09A17B2AdF3587fc7fA664f1",Mantle:"0xDA03239f428c76A527e1ceCa0ecA6cC367A2D945",Klaytn:"0xfAA03A2AC2d1B8481Ec3fF44A0152eA818340e6d",Xlayer:"0x3a859D92da2E16Ad32C5C6F3ADAddFBa4dE3A47e",Scroll:"0xCDf95E1F720caade4b1DC83ABfE15400D2a458AD",Worldchain:"0xEfae32D1c15EDBaEA3ebdDe1e2C51003AED04d30",Unichain:"0xbdE8A5331E8Ac4831cf8ea9e42e229219EafaB97",Fogo:"HLc5hqihQGFU68488j7HkdyF6rywyJfV46BN6Dn8W5ug",Monad:"0xea17E5a9efEBf1477dB45082d67010E2245217f1"},EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:{Ethereum:"0x41f7B8b9b897276b7AAE926a9016935280b44E97",Bsc:"0x91Ca579B0D47E5cfD5D0862c21D5659d39C8eCf0",Polygon:"0x576Cf361711cd940CD9C397BB98C4C896cBd38De",Avalanche:"0x0950Fc1AD509358dAeaD5eB8020a3c7d8b43b9DA",Fantom:"0xb8398DA4FB3BC4306B9D9d9d13d9573e7d0E299f",Celo:"0x8B6eef6C449D3Ac723a9C06a9eaE2dCd7d308BA9",Moonbeam:"0x098d6eE48341D6a0a0A72dE5baaF80A10E0F6082",Sui:"0xb231fcda8bbddb31f2ef02e6161444aec64a514e2c89279584ac9806ce9cf037::coin::COIN",Aptos:"0xc91d826e29a3183eb3b6f6aa3a722089fdffb8e9642b94c5fcd4c48d035c0080::coin::T",Arbitrum:"0x3870546cfd600ba87e4180686d29dC993A45d3B7",Optimism:"0x6F974A6dfD5B166731704Be226795901c45Bb815",Base:"0xe8CE40EBBB844142400D21558a2F1c9683d69139",Klaytn:"0xa1a7feeD29EbFa38079D943486c23f401939Ce80",Scroll:"0x883Ccb5aEfD0084f1e4D04b133675acd6D5F123F"},HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3:{Aptos:"0x770211b47954e15bec1a4271bf33bacebc2d2adb43b7dc1ca45efa787615dd4c::coin::T",Bsc:"0xb0188B0bb2cD4a6D2744637fC83C94a284B247Da",Base:"0x4c5d8A75F3762c1561D96f177694f67378705E98",Celo:"0x985aa4814419ba338379A634785216301e51113D",Avalanche:"0x8A0691e602B7a5FCc51a27E4a08376dE50889B42",Polygon:"0xFa4B761A1e07909Ba31331a5dfa12390E3ff5583",Fantom:"0x77ad3B2dA29FBd208F12c3C701E969F4422aAD79",Optimism:"0x99C59ACeBFEF3BBFB7129DC90D1a11DB0E91187f",Ethereum:"0xeFc0CED4B3D536103e76a1c4c74F0385C8F4Bdd3",Arbitrum:"0xE4D5c6aE46ADFAF04313081e8C0052A30b6Dd724",Sui:"0x9c6d76eb273e6b5ba2ec8d708b7fa336a5531f6be59f326b5be8d4d8b12348a4::coin::COIN",Moonbeam:"0x27cc3FDbDD1F415b09a41232D0fD71345DAB8030",Xlayer:"0x057b766b3fB76527cf815c3b5C38Dfa8144335CF",Worldchain:"0x838f3045F3B2dcDFF8cB4e5CaB0c0092A69B790a"}},Sui:{native:{Ethereum:"0x84074EA631dEc7a4edcD5303d164D5dEa4c653D6",Bsc:"0x8314f6Bf1B4dd8604A0fC33C84F9AF2fc07AABC8",Polygon:"0x34bE049fEbfc6C64Ffd82Da08a8931A9a45f2cc8",Avalanche:"0x1703CB0F762D2a435199B64Ea47E5349B7C17480",Fantom:"0xC277423a21F6e32D886BF85Ef6cCB945d5D28347",Celo:"0x1Cb9859B1A16A67ef83A0c7b9A21eeC17d9a97Dc",Moonbeam:"0x484eCCE6775143D3335Ed2C7bCB22151C53B9F49",Solana:"G1vJEgzepqhnVu35BN4jrkv3wVwkujYWFFCxhbEZ1CZr",Aptos:"0xa72a97e872be9ee3d2f14d56fd511eb7e4a53f4055be3a267d8602e7685b41c0::coin::T",Base:"0x36c6FBF7B49bF65f5F82b674af219C05b2a4aDD1",Arbitrum:"0xCF79d86B8a830030aF6D835737d6eac3bE823fD7",Optimism:"0x27A533e438892DA192725b4C9AcA51447F457212",Mantle:"0x9ef1BB6072d7d6B9C935d9c040133036aD532119",Klaytn:"0xB0B40516293e0204fB376A18aA230A210cbE0305",Xlayer:"0xEa76dBFE6e449420f294e74E057518F750E99A16",Worldchain:"0xf69005c35B5d9AcC22E4DbCf52f892cAE21F83B0"}},Aptos:{native:{Ethereum:"0x8CDf7AF57E4c8B930e1B23c477c22f076530585e",Bsc:"0x2Ba98cf7Edd2c5C794e21bc3Dc6973D3C2585eE3",Polygon:"0xa4ef199d3ad524E9C3C51Ac46B303B103A307Cef",Avalanche:"0x43c588459b3243fA541B98CC4B2E995b3de553A2",Fantom:"0x3Cd9162Ca5256b8E26A0e3Ad14CCfF7C0Da0F174",Celo:"0x89F2b718Ca518db39d377F0ABBa6B42582b549F7",Moonbeam:"0x25331575641d35D9765e1934acC8F0991c58e904",Solana:"6LNeTYMqtNm1pBFN8PfhQaoLyegAH8GD32WmHU9erXKN",Sui:"0x3a5143bb1196e3bcdfab6203d1683ae29edd26294fc8bfeafe4aaa9d2704df37::coin::COIN",Base:"0x1d36126289Be1658297A35CC3EB2BB80A7D7A04b",Arbitrum:"0x4EdeF400eDe5309240814b5FC403F224504604e9",Optimism:"0xC5B3AC2DF8D8D7AC851F763a5b3Ff23B4A696d59",Klaytn:"0x68d5254007BE3a6d3d2A37e2C1ad3921D049F46D",Xlayer:"0xEdF2AEaCE382A3c0722f110c4927d34b78bce34F",Worldchain:"0xfC5011f2037f2Dad9c9aC05CbB6749B383C3099c"}},Arbitrum:{"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1":{Ethereum:"0xb945E3F853B5f8033C8513Cf3cE9F8AD9beBB1c9",Bsc:"0xaA1eEdABC48D078350ccBdD620bD088848e299E5",Polygon:"0x6a5c59AB16268d2c872916054C50440B999e417C",Avalanche:"0xDfDA518A1612030536bD77Fd67eAcbe90dDC52Ab",Fantom:"0xE8367853A0823515D37b1538331B4704089becb4",Celo:"0xc6F962fCcb140ece554AfD0E589f971532A57f14",Solana:"CSD6JQMvLi46psjHdpfFdr826mF336pEVMJgjwcoS1m4",Sui:"0x33744e7df340a4d01c23f6b18c13563f767545ea95f976f8045f056358419da3::coin::COIN",Aptos:"0xe977796d7bfb3263609b90dffd264c7bd078ce35dac42b55302858d9fa3452b::coin::T",Base:"0x9D36e0edb8BBaBeec5edE8a218dc2B9a6Fce494F",Optimism:"0x825206E1D29456337769e6f1384101E997C6A732",Moonbeam:"0x18872b45c603eD2EbC508b9C5514a85c2e2791FB",Klaytn:"0x3CF1751E32c4225CB12ba953786C260C2cE89008"},"0xaf88d065e77c8cC2239327C5EDb3A432268e5831":{Ethereum:"0xCFc006a32a98031C2338BF9d5ff8ED2c0Cae4a9e",Bsc:"0x5caa170b465122D15a6D20FD9A804a9613CE7882",Polygon:"0x7800FE8951cdc1cDea748d878fAce63018D97960",Avalanche:"0x4b5fE357Eb11c735078e47526D6e853DBff18541",Celo:"0xA41a62567d9eb960D84b72663FdaeBE0BCdE2683",Solana:"CR4xnGrhsu1fWNPoX4KbTUUtqGMF3mzRLfj4S6YEs1Yo",Sui:"0xc3f8927de33d3deb52c282a836082a413bc73c6ee0bd4d7ec7e3b6b4c28e9abf::coin::COIN",Aptos:"0xca3a2c28bc8c6c762f752dd2a4ebbfd00356ca99977ce6636e3af5897124a87a::coin::T",Optimism:"0xa6252F56cc6eEA21165d56744C795F91c8a3Cf68",Base:"0xb96B82Cd6D45d98Fb6897D16A5E4EE888329C513",Fantom:"0x2228703672906fEe5eD681Ec28e42B4506b8c336",Moonbeam:"0xbd2B6D665439514EEaA8519f4fE87CC8C46e9167",Klaytn:"0x3d5973fF7288f47857dAa5a32C53976A9A968928",Xlayer:"0xd53bD30985B4125fc561774e388d9f679BB84117"},"0x5979D7b546E38E414F7E9822514be443A4800529":{Bsc:"0x159167e842C586a81f02E55bc043AC8EdB033E0b",Aptos:"0xd2ca17516bc4ca57c1c69577e0c9cc0129153286695b46b97f438ecc138c225e::coin::T",Solana:"8wJakbZuv7WApfHmRo2sdkeQfu6hXqfEqjb7BYXDKpKe",Sui:"0xb607aed1c09e676384d14ae638dbcb08523fc691d309e71c856c7fdcb60d4430::coin::COIN",Base:"0xbE3981b37CcE5eCb6925d2ad9D9E28dE7b165793",Optimism:"0xEae5ccc3c36beF59f6794b467e7e228CB3720415",Fantom:"0xf65BF40A3299Df500D440520dF7e6ce1BEa53E73",Ethereum:"0x906310cE867C22c5016248Bd791FA5dd162c9D6d",Polygon:"0xcf0aa97c2fD78Ee0f0C3090B9EB65d2bd6C1D81a"}},Optimism:{"0x4200000000000000000000000000000000000006":{Fantom:"0xe8E8f941377A955bFA72880ec0dc2319dbC827a8",Celo:"0x8d53771b1Ec7461f8e45Bca2609c45bC0bbd0677",Solana:"8M6d63oL7dvMZ1gNbgGe3h8afMSWJEKEhtPTFM2u8h3c",Sui:"0x0aab14ec22908de73d1b0619f5e03842398f8e68262981bd35ef44b42d22b23a::coin::COIN",Aptos:"0x6a7a7f36ef5e2d0e65fcf72669c20d514d68298b0f76c7554517208f73260aaf::coin::T",Arbitrum:"0xB1fC645a86fB5085e12D8BDDb77702F728D2A26F",Avalanche:"0xDf11535274c0FD2Fe41A88bd1bBF802D72296037",Bsc:"0x94AEc09B5e2CE591e39DC6aa58A3A6E85Ed45265",Ethereum:"0x8B5653Ae095529155462eDa8CF664eD96773F557",Polygon:"0x8182De59485Bb646542Db8C7E5958148Dc699319",Base:"0xCb725aC8d9985D3bE306Dd9e1517d3702929176c",Moonbeam:"0xd4870F7F5AD8Ae5139E1a5D8AD4ac55204aE4490",Klaytn:"0x4ab77AF7059435b71dBC3B7c5255983C8628eFdf"},"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85":{Fantom:"0x385b219f0C4fa2e84EfE5aaf9692a821C57B8248",Celo:"0xEe48963C003e21EaCEdFA8a0A19BB3cbF7E776Fe",Moonbeam:"0x7143e8EA96e158381057a58AfdDF44601c7e532C",Base:"0xc6bfBeb3002aD563D2d1f72614C61C83Bf147Acd",Arbitrum:"0x3A5C2Da9E30741cb59a5e9446A23A86886fC9DC2",Aptos:"0x4f6ecb05a797902d472abc2f5804bde93a53d8b75f14f767824cdb1623a4ee83::coin::T",Bsc:"0xa41ae127D04F7ee73B5058E2C60Fb7c7A2D21F79",Avalanche:"0xBe04f76A0ba2100c3F2d6Aa1FD8484F415469573",Polygon:"0x31F12aCb60C3c32EE884F3894a873347C097D925",Sui:"0x6037801f060f0f54b3817bca05e3c8b9b9ffaa2da8e93fd5b80fa662aa3c9e55::coin::COIN",Solana:"J8kcD4Wnd1ehne1dpL8WNtgZQR6Jpui2cTZcrmg5ybAa",Klaytn:"0x7Ee2AB1443fDB59AECEa3aDD8F81296d68c2D1e3",Ethereum:"0xe77C99b64414e0fd9aeEA48AFFBBD2E97A895020"},"0x1F32b1c2345538c0c6f582fCB022739c4A194Ebb":{Bsc:"0x1f29fAD000255BF49D72803b2A8FaC8e31947eF8",Base:"0xBb0BeaB819dEAf091C193bE4bBEeA9D5b0F5227C",Arbitrum:"0xf99C5EEd186601955a9a1027536D1b46b1f909F8",Polygon:"0x9065e1D25E65F7A1D60bb6197154386B52faA469",Ethereum:"0xB3ceE6DCa1dD528CB7CC258e32D8B50ce9Ee46f5"}},Base:{"0x4200000000000000000000000000000000000006":{Ethereum:"0x1D4241F7370253C0f12EFC536B7e16E462Fb3526",Bsc:"0x9dc152F4941cE1A138326e70c3600385bf0C22dD",Polygon:"0x5BCf8d8c097FbB35C371F921E3FF3e6F6Eb54B41",Avalanche:"0xFA83178c66fE51ee99109b5cC912f8098Ff812eF",Fantom:"0xd3365E7355230c78098b44B172eE27DAB95B041A",Celo:"0x905CADB645684140E285e2D09D39dF5a2082BC87",Moonbeam:"0x6C6f83366A42fcA4D30a2D3f1914284de995Ac3a",Solana:"DWXe1hxpnb8LAH21iyXcjvMbiAGzoYyuCVQtRLvZdLYd",Sui:"0xaecbc804fa7ca7cffc74c9a05eb6ae86fda0c68375b5c1724204a1065bcb239a::coin::COIN",Aptos:"0x5b5f14781164cf77185a7b6acd8e4f3cbb7e7cfb1cd5760d2b8af81075fc153d::coin::T",Arbitrum:"0xBAfbCB010D920e0Dab9DFdcF634De1B777028a85",Optimism:"0x3F369a664fa665e01e8EB9f20bFcE03A0CAb8971",Mantle:"0x4a2176DE2Fb36485704965bd1Cc471854f21303B",Klaytn:"0x7Bf9ad1D104dEAE4B59Ef1be6a273Cb46BA16362"},"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913":{Solana:"EfqRM8ZGWhDTKJ7BHmFvNagKVu3AxQRDQs8WMMaoBCu6",Moonbeam:"0xE6d02a875CcC153c076fe418f33De3A5C420f505",Celo:"0x2e2acb1782Aad0490f8446b6fD4626C467987bD6",Bsc:"0x55CaD531c8E303Cab8B3BE4bB4744Db4f896ac81",Optimism:"0xb931c7BbD87A6e249EaA7355B13927F9c99Bce87",Arbitrum:"0x8619F97D4d08382548F536E5CE1D3e0D9bA40326",Polygon:"0x1eeCaB0F75fE93abbFa0cDFfb4fB13d1dC8706c8",Avalanche:"0xab933e939a9236BD439F7d29b87CE712f42bAC06",Fantom:"0xd9E4C283d8A49Dc3767A6F5a4dFdc1d0cEf21604",Sui:"0x7e3e74afcc1913aa9491c8cee89b02131a6e5519b090f16b54321835c1241cfb::coin::COIN",Aptos:"0xfcc4fcd734d5b8578fb629d238d15264a49eca6165c7444c21feec3b4962eb88::coin::T",Mantle:"0x5D628a3285a10fdd93AEa704007957F294e05F91",Ethereum:"0xc38261846c42C1E1D59E04dA675Eb1974E9cE7b1",Klaytn:"0x0a2330c1C46E9A74e8651F7117a1264410eA3C88",Scroll:"0x22C9bde4Ad49C4b6CCFB8D394B5ED42A57853d58"},"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452":{Arbitrum:"0x09E79693E44c8813A8CA25EeD7A40e5E24cD9c01",Ethereum:"0x187175c7a526f48c905202Bd2Bf8D25A457F479F",Polygon:"0x95d4C8e851D9E8c6B92aa518474E991c373E9Fb2",Optimism:"0x6ee40855c0BaB20585d17D2b9dd8d2Cd1cd41801",Avalanche:"0x5e513CA12DbD8424bDFc5B50711dF4AE999a8C58"}},Klaytn:{"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817":{Aptos:"0x539b652f8230a0e42adaeda4706b5639893d22362eda6ea897493c210cb48219::coin::T",Ethereum:"0x9AEA32B459e96C8eF5010f69130bf95fd129ac05",Celo:"0xe304254de5c2048F9bFb042dDFB54f84d1d77730",Polygon:"0x415ce980fde17F1FF102e1c6e4ce860Acc615D74",Base:"0x41c433c146c47Dc53FC48cDc69e406e365e298E1",Arbitrum:"0xFA95f6c796E54F9C4a99392CAE84410a25794BB3",Moonbeam:"0xf0a9476E4712123A807859f9Fd25fe98213379BD",Fantom:"0x787e2F3509583C0F03A339Be0826463C839CBE5E",Sui:"0xa5ec915864d7f37b25ca9144b2db6ebcf29e73603c2ccf9d0e765adcd9049a98::coin::COIN",Avalanche:"0x126C03982Ad6D7ef7E6aF020bF219e87185a6BC3",Bsc:"0xEA970e7b7D131Ea36c3051C9Ca11e785462fE00c",Optimism:"0xbbeF8233a0d10EEAb84E913FaDB337ab9b62F683",Solana:"2b8fZGLBZjpxFugCdnJbbLLBYxvx23rsrsvLYYueiHb7",Scroll:"0xA55FB7A046454998b2f6d8D99Df5F0E108b38229",Worldchain:"0xC080f0082029fC6e8A4Bb33a9B0655B8d4f2BAB0"}},Scroll:{"0x5300000000000000000000000000000000000004":{Arbitrum:"0xAe81a542e20270b48Bd5297E3e0f280f79E46C42"}},Mantle:{"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8":{Optimism:"0xf704F6a3241609Cfb3E44Db1237E68EB6CaC7C04"}},Monad:{"0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A":{Solana:"AXSTN3GQHS4Mc7GDZwWmfp8H8qUVqyx3Ck5rPRT9g7RM"}}},ku={chains:Rl,tokens:bd,wrappedTokens:md,rpcs:pd,guardianSet:{index:4,keys:["0x5893b5a76c3f739645648885bdccc06cd70a3cd3","0xff6cb952589bde862c25ef4392132fb9d4a42157","0x114de8460193bdf3a2fcf81f86a09765f4762fd1","0x107a0086b32d7a0977926a205131d8731d39cbeb","0x8c82b2fd82faed2711d59af0f2499d16e726f6b2","0x11b39756c042441be6d8650b69b54ebe715e2343","0x54ce5b4d348fb74b958e8966e2ec3dbd4958a7cd","0x15e7caf07c4e3dc8e7c469f92c8cd88fb8005a20","0x74a3bf913953d695260d88bc1aa25a4eee363ef0","0x000ac0076727b35fbea2dac28fee5ccb0fea768e","0xaf45ced136b9d9e24903464ae889f5c8a723fc14","0xf93124b7c738843cbb89e864c862c38cddcccf95","0xd2cc37a4dc036a8d232b48f62cdd4731412f4890","0xda798f6896a3331f64b48c12d1d57fd9cbe70811","0x71aa1be1d36cafe3867910f99c09e347899c19c3","0x8192b6e7387ccd768277c17dab1b7a5027c0b3cf","0x178e21ad2e77ae06711549cfbb1f9c7a9d8096e8","0x5e1487f35515d02a92753504a8d75471b9f49edb","0x6fbebc898f403e4773e95feb15e80c9a99c8348d"]}},yd={Bsc:{displayName:"BNB",explorerUrl:"https://testnet.bscscan.com/",explorerName:"BscScan",icon:"Bsc",symbol:"BSC",sdkName:"Bsc"},Avalanche:{displayName:"Fuji",explorerUrl:"https://testnet.snowtrace.io/",explorerName:"Snowtrace",icon:"Avalanche",symbol:"AVAX",sdkName:"Avalanche"},Fantom:{displayName:"Fantom",explorerUrl:"https://testnet.ftmscan.com/",explorerName:"FtmScan",icon:"Fantom",symbol:"FTM",sdkName:"Fantom"},Celo:{displayName:"Alfajores",explorerUrl:"https://explorer.celo.org/alfajores/",explorerName:"Celo Explorer",icon:"Celo",symbol:"CELO",sdkName:"Celo"},Moonbeam:{displayName:"Moonbase",explorerUrl:"https://moonbase.moonscan.io/",explorerName:"Moonscan",icon:"Moonbeam",symbol:"GLMR",sdkName:"Moonbeam"},Solana:{displayName:"Solana",explorerUrl:"https://explorer.solana.com/?cluster=devnet",explorerName:"Solana Explorer",icon:"Solana",symbol:"SOL",sdkName:"Solana"},Sui:{displayName:"Sui",explorerUrl:"https://suiscan.xyz/testnet/",explorerName:"Suiscan",icon:"Sui",symbol:"SUI",sdkName:"Sui"},Aptos:{displayName:"Aptos",explorerUrl:"https://explorer.aptoslabs.com/",explorerName:"Aptos Explorer",icon:"Aptos",symbol:"APT",sdkName:"Aptos"},Klaytn:{displayName:"Kaia",explorerUrl:"https://kairos.kaiascan.io/",explorerName:"KaiaScan",icon:"Klaytn",symbol:"KAIA",sdkName:"Klaytn"},Sepolia:{displayName:"Sepolia",explorerUrl:"https://sepolia.etherscan.io/",explorerName:"Etherscan",icon:"Ethereum",symbol:"ETH",sdkName:"Sepolia"},ArbitrumSepolia:{displayName:"Arbitrum Sepolia",explorerUrl:"https://sepolia.arbiscan.io/",explorerName:"Etherscan",icon:"Arbitrum",symbol:"ARB",sdkName:"ArbitrumSepolia"},BaseSepolia:{displayName:"Base Sepolia",explorerUrl:"https://base-sepolia.blockscout.com/",explorerName:"Etherscan",icon:"Base",symbol:"BASE",sdkName:"BaseSepolia"},OptimismSepolia:{displayName:"Optimism Sepolia",explorerUrl:"https://sepolia-optimistic.etherscan.io/",explorerName:"Etherscan",icon:"Optimism",symbol:"OP",sdkName:"OptimismSepolia"},Scroll:{displayName:"Scroll",explorerUrl:"https://sepolia.scrollscan.dev/",explorerName:"Scrollscan",icon:"Scroll",symbol:"SCR",sdkName:"Scroll"},Xlayer:{displayName:"X Layer",explorerUrl:"https://www.okx.com/web3/explorer/xlayer-test/",explorerName:"OKX Explorer",icon:"Xlayer",symbol:"OKX",sdkName:"Xlayer"},Mantle:{displayName:"Mantle",explorerUrl:"https://explorer.testnet.mantle.xyz/",explorerName:"Mantle Explorer",icon:"Mantle",symbol:"MNT",sdkName:"Mantle"},Monad:{displayName:"Monad",explorerUrl:"https://testnet.monadexplorer.com/",explorerName:"Monad Explorer",icon:"Monad",symbol:"MON",sdkName:"Monad"},Worldchain:{displayName:"World Chain",explorerUrl:"https://worldchain-sepolia.explorer.alchemy.com/",explorerName:"World Scan",icon:"Worldchain",sdkName:"Worldchain",symbol:"WORLD"},Unichain:{displayName:"Unichain",explorerUrl:"https://unichain-sepolia.blockscout.com/",explorerName:"Unichain Explorer",icon:"Unichain",symbol:"UNI",sdkName:"Unichain"},Mezo:{displayName:"Mezo",explorerUrl:"https://explorer.test.mezo.org/",explorerName:"Mezo Explorer",icon:"Mezo",sdkName:"Mezo",symbol:"MEZO"},Linea:{displayName:"Linea",sdkName:"Linea",explorerUrl:"https://sepolia.lineascan.build/",explorerName:"Lineascan",icon:"Linea",symbol:"LINEA"},Sonic:{displayName:"Sonic",sdkName:"Sonic",explorerUrl:"https://testnet.sonicscan.org/",explorerName:"Sonicscan",icon:"Sonic",symbol:"S"},Seievm:{displayName:"SeiEVM",explorerUrl:"https://seitrace.com/?chain=atlantic-2",explorerName:"Seitrace",icon:"Seievm",sdkName:"Seievm",symbol:"SEI"},Plume:{displayName:"Plume",sdkName:"Plume",explorerUrl:"https://testnet-explorer.plume.org",explorerName:"Plume Explorer",icon:"Plume",symbol:"PLUME"},Fogo:{displayName:"Fogo",sdkName:"Fogo",explorerUrl:"https://explorer.fogo.io/",explorerName:"Fogo Explorer",icon:"Fogo",symbol:"FOGO"},XRPLEVM:{displayName:"XRPL EVM",sdkName:"XRPLEVM",icon:"XRPLEVM",explorerUrl:"https://explorer.testnet.xrplevm.org/",explorerName:"XRPL EVM Explorer",symbol:"XRP"},Ink:{displayName:"Ink Sepolia",sdkName:"Ink",explorerUrl:"https://explorer-sepolia.inkonchain.com/",explorerName:"Ink Sepolia Explorer",icon:"Ink",symbol:"INK"}},gd={},{REACT_APP_SEPOLIA_RPC:xd,REACT_APP_BSC_TESTNET_RPC:wd,REACT_APP_FUJI_RPC:Md,REACT_APP_FANTOM_TESTNET_RPC:_d,REACT_APP_ALFAJORES_RPC:Ed,REACT_APP_SOLANA_DEVNET_RPC:Ad,REACT_APP_FOGO_TESTNET_RPC:Sd,REACT_APP_MOONBASE_RPC:Bd,REACT_APP_SUI_TESTNET_RPC:Fd,REACT_APP_APTOS_TESTNET_RPC:Cd,REACT_APP_BASE_SEPOLIA_RPC:Dd,REACT_APP_KLAYTN_TESTNET_RPC:Rd,REACT_APP_ARBITRUM_SEPOLIA_RPC:Td,REACT_APP_OPTIMISM_SEPOLIA_RPC:Id,REACT_APP_SCROLL_TESTNET_RPC:kd,REACT_APP_XLAYER_TESTNET_RPC:Nd,REACT_APP_MANTLE_TESTNET_RPC:Pd,REACT_APP_WORLDCHAIN_TESTNET_RPC:qd,REACT_APP_UNICHAIN_TESTNET_RPC:Od,REACT_APP_MEZO_TESTNET_RPC:Ud,REACT_APP_LINEA_TESTNET_RPC:Ld,REACT_APP_SONIC_TESTNET_RPC:Hd,REACT_APP_SEIEVM_TESTNET_RPC:zd,REACT_APP_PLUME_RPC:$d,REACT_APP_XRPLEVM_TESTNET_RPC:Kd,REACT_APP_MONAD_TESTNET_RPC:Wd,REACT_APP_INK_TESTNET_RPC:jd}=gd,Gd={...st("Sepolia",xd),...st("Bsc",wd),...st("Avalanche",Md),...st("Fantom",_d),...st("Celo",Ed),...st("Solana",Ad),...st("Fogo",Sd),...st("Moonbeam",Bd),...st("Sui",Fd),...st("Aptos",Cd),...st("BaseSepolia",Dd),...st("ArbitrumSepolia",Td),...st("OptimismSepolia",Id),...st("Klaytn",Rd),...st("Scroll",kd),...st("Xlayer",Nd),...st("Mantle",Pd),...st("Worldchain",qd),...st("Unichain",Od),...st("Mezo",Ud),...st("Linea",Ld),...st("Sonic",Hd),...st("Seievm",zd),...st("Plume",$d),...st("XRPLEVM",Kd),...st("Monad",Wd),...st("Ink",jd)},Vd=[{symbol:"BNB",icon:ye.BNB,decimals:18,tokenId:{chain:"Bsc",address:"native"}},{symbol:"WBNB",icon:ye.BNB,decimals:18,tokenId:{chain:"Bsc",address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd"}},{symbol:"AVAX",icon:ye.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"native"}},{symbol:"WAVAX",icon:ye.AVAX,decimals:18,tokenId:{chain:"Avalanche",address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"}},{symbol:"USDC",icon:ye.USDC,decimals:6,tokenId:{chain:"Avalanche",address:"0x5425890298aed601595a70AB815c96711a31Bc65"}},{symbol:"CELO",icon:ye.CELO,decimals:18,tokenId:{chain:"Celo",address:"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9"}},{symbol:"USDC.e",icon:ye.USDC,decimals:6,tokenId:{chain:"Celo",address:"0x72CAaa7e9889E0a63e016748179b43911A3ec9e5"}},{symbol:"GLMR",icon:ye.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"native"}},{symbol:"WGLMR",icon:ye.GLMR,decimals:18,tokenId:{chain:"Moonbeam",address:"0xD909178CC99d318e4D46e7E66a972955859670E1"}},{symbol:"SOL",icon:ye.SOLANA,decimals:9,tokenId:{chain:"Solana",address:"native"}},{symbol:"SOL",tokenId:{chain:"Solana",address:"So11111111111111111111111111111111111111112"},icon:ye.SOLANA,decimals:9},{symbol:"FOGO",icon:ye.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"native"}},{symbol:"WFOGO",icon:ye.FOGO,decimals:9,tokenId:{chain:"Fogo",address:"So11111111111111111111111111111111111111112"}},{symbol:"USDC",tokenId:{chain:"Solana",address:"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"},icon:ye.USDC,decimals:6},{symbol:"SUI",tokenId:{chain:"Sui",address:"native"},icon:ye.SUI,decimals:9},{symbol:"USDC",decimals:6,tokenId:{chain:"Sui",address:"0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC"},icon:ye.USDC},{symbol:"APT",tokenId:{chain:"Aptos",address:"native"},icon:ye.APT,decimals:8},{symbol:"USDC",decimals:6,tokenId:{chain:"Aptos",address:"0x69091fbab5f7d635ee7ac5098cf0c1efbe31d68fec0f2cd565e8d168daf52832"},icon:ye.USDC},{symbol:"KAIA",icon:ye.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"native"}},{symbol:"wKAIA",name:"wKAIA",icon:ye.KLAY,decimals:18,tokenId:{chain:"Klaytn",address:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106"}},{symbol:"ETH",icon:ye.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"native"}},{symbol:"WETH",icon:ye.ETH,decimals:18,tokenId:{chain:"Sepolia",address:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c"}},{symbol:"USDC",icon:ye.USDC,decimals:6,tokenId:{chain:"Sepolia",address:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"}},{symbol:"USDT",icon:ye.USDT,decimals:6,tokenId:{chain:"Sepolia",address:"0xaA8E23Fb1079EA71e0a56F48a2aA51851D8433D0"}},{symbol:"WBTC",icon:ye.WBTC,decimals:8,tokenId:{chain:"Sepolia",address:"0x52eea312378ef46140ebe67de8a143ba2304fd7c"}},{symbol:"UNI",icon:"https://assets.coingecko.com/coins/images/12504/standard/uniswap-logo.png",decimals:18,tokenId:{chain:"Sepolia",address:"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}},{symbol:"ETH",icon:ye.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"native"}},{symbol:"WETH",icon:ye.ETH,decimals:18,tokenId:{chain:"ArbitrumSepolia",address:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73"}},{symbol:"ETH",icon:ye.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"native"}},{symbol:"WETH",icon:ye.ETH,decimals:18,tokenId:{chain:"BaseSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"USDC",icon:ye.USDC,decimals:6,tokenId:{chain:"BaseSepolia",address:"0x036CbD53842c5426634e7929541eC2318f3dCF7e"}},{symbol:"ETH",icon:ye.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"native"}},{symbol:"WETH",icon:ye.ETH,decimals:18,tokenId:{chain:"OptimismSepolia",address:"0x4200000000000000000000000000000000000006"}},{symbol:"ETH",icon:ye.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"native"}},{symbol:"WETH",icon:ye.SCROLL,decimals:18,tokenId:{chain:"Scroll",address:"0x5300000000000000000000000000000000000004"}},{symbol:"OKB",icon:ye.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"native"}},{symbol:"WOKB",icon:ye.XLAYER,decimals:18,tokenId:{chain:"Xlayer",address:"0xa2aFfd8301BfB3c5b815829f2F509f053556D21B"}},{symbol:"MNT",icon:ye.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"native"}},{symbol:"WMNT",icon:ye.MANTLE,decimals:18,tokenId:{chain:"Mantle",address:"0xa4c4cb2A072eE99f77212Fa18c2B7Ca26DA23905"}},{symbol:"ETH",tokenId:{chain:"Worldchain",address:"native"},decimals:18,icon:ye.WORLDCHAIN},{symbol:"WETH",tokenId:{chain:"Worldchain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:ye.WORLDCHAIN},{symbol:"ETH",tokenId:{chain:"Unichain",address:"native"},decimals:18,icon:ye.ETH},{symbol:"WETH",tokenId:{chain:"Unichain",address:"0x4200000000000000000000000000000000000006"},decimals:18,icon:ye.ETH},{symbol:"USDC",tokenId:{chain:"Unichain",address:"0x31d0220469e10c4E71834a79b1f276d740d3768F"},decimals:6,icon:ye.USDC},{symbol:"BTC",tokenId:{chain:"Mezo",address:"native"},decimals:18,icon:ye.BTC},{symbol:"MON",icon:ye.MONAD,decimals:18,tokenId:{chain:"Monad",address:"native"}},{symbol:"WMON",icon:ye.MONAD,decimals:18,tokenId:{chain:"Monad",address:"0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701"}},{symbol:"wUSDC",icon:ye.USDC,decimals:6,tokenId:{chain:"Monad",address:"0x4804916f7c16c20E1a557feb8E3E29418DDC54DC"}},{symbol:"wUSDT",icon:ye.USDT,decimals:6,tokenId:{chain:"Monad",address:"0x72111141639bfAa9A1Ad7A638F546e2397f0dc7a"}},{symbol:"wWETH",icon:ye.ETH,decimals:18,tokenId:{chain:"Monad",address:"0xA296f47E8Ff895Ed7A092b4a9498bb13C46ac768"}},{symbol:"wWBTC",icon:ye.WBTC,decimals:8,tokenId:{chain:"Monad",address:"0x5B3540B0a48F8b30A655402eE5dcD213fd2B4BEa"}},{symbol:"ETH",tokenId:{chain:"Linea",address:"native"},decimals:18,icon:ye.ETH},{symbol:"USDC",tokenId:{chain:"Linea",address:"0xFEce4462D57bD51A6A552365A011b95f0E16d9B7"},decimals:6,icon:ye.USDC},{symbol:"S",tokenId:{chain:"Sonic",address:"native"},decimals:18,icon:ye.SONIC},{symbol:"USDC",tokenId:{chain:"Sonic",address:"0xA4879Fed32Ecbef99399e5cbC247E533421C4eC6"},decimals:6,icon:ye.USDC},{symbol:"SEI",tokenId:{chain:"Seievm",address:"native"},decimals:18,icon:ye.SEI},{symbol:"USDC",tokenId:{chain:"Seievm",address:"0x4fCF1784B31630811181f670Aea7A7bEF803eaED"},decimals:6,icon:ye.USDC},{symbol:"PLUME",decimals:18,icon:ye.PLUME,tokenId:{chain:"Plume",address:"native"}},{symbol:"USDC",tokenId:{chain:"HyperEVM",address:"0x2B3370eE501B4a559b57D449569354196457D8Ab"},decimals:6,icon:ye.USDC},{symbol:"XRP",tokenId:{chain:"XRPLEVM",address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"},decimals:18,icon:ye.XRP},{symbol:"ETH",icon:ye.ETH,decimals:18,tokenId:{chain:"Ink",address:"native"}}],Zd={Bsc:{"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd":{Avalanche:"0x10F1053bF2884b28ee0Bd7a2dDBa237Af3511d29",Fantom:"0xfB174b43228950C2055CFc25AE93f2DCe8E2beF0",Celo:"0xa8050be9389466c3c524F10F131f244ACbf21A0D",Moonbeam:"0x6097E80331B0c6aF4F74D7F2363E70Cb2Fd078A5",Solana:"BaGfF51MQ3a61papTRDYaNefBgTQ9ywnVne5fCff4bxT",Sui:"0xddcf8680a8a4b8a527d8c85ec203274991590c2ea898d1c4635b70164d9c584b::coin::COIN",Aptos:"0xa5894f5ddb8647e6143102aa336ff07374f7b32e88c1c703aef5b7c9a370bf80::coin::T",Klaytn:"0xEFa3626825C33C4cd83850920Ad7Ac0a392E1faE",Sepolia:"0x02CdD5eB55934663F0aD8fbA3516dC7DE4E22894"}},Avalanche:{"0xd00ae08403B9bbb9124bB305C09058E32C39A48c":{Bsc:"0x6cE9E2c8b59bbcf65dA375D3d8AB503c8524caf7",Fantom:"0x0f545Be981C37fB15ab7c65404648761e99016e4",Celo:"0x502c8C83008D9Dd812a7C5fB886C063060C73Dbf",Moonbeam:"0x2E8afeCC19842229358f3650cc3F091908dcbaB4",Solana:"3Ftc5hTz9sG4huk79onufGiebJNDMZNL8HYgdMJ9E7JR",Sui:"0xa600741c469fb57ed01497ddf101e798fa79a9c529bd176675c5c4d970811f80::coin::COIN",Aptos:"0xbe8f4301c0b54e870902b9a23eeb95ce74ac190531782aa3262337ceb145401a::coin::T",Klaytn:"0x10257392a2B5e3C4D4bEe1607650a1C0C738202a",Scroll:"0x5Bd1ba0040C16b13894A6EbE3d55708c91eF08bb",Xlayer:"0xb13a464ceE7455A9b2941bFAe1bB1eB5A6833867"},"0x5425890298aed601595a70AB815c96711a31Bc65":{Bsc:"0x1cfeCf72bcBE1E429A21A5B11E708C7c397AaC54",Fantom:"0x6BC4E8D8c1d54656D1DeBCa96efc53aFd1408aD2",Celo:"0xDDB349c976cA2C873644F21f594767Eb5390C831",Moonbeam:"0x6533CE14804D113b1F494dC56c5D60A43cb5C3b5",Solana:"GQtMXZxnuacCFTXVeTvyHi6P9F6chbtzhVc8JgD8hv7c",Sui:"0x2aa8c885d04e676c4e87b7d0f94d4f3b243b1b5d93239d1cc41d5528ce1714c1::coin::COIN",Aptos:"0x2ef7697bdb33361ca39d228671203afc0dea3202e792d79d2072b761d87c834::coin::T"}},Fantom:{"0xf1277d1Ed8AD466beddF92ef448A132661956621":{Bsc:"0x9aB305B792DBdb8253bEE909E7006611Cb45175b",Avalanche:"0x094cB577C21Ab1360178beE74B9591fa12216dAD",Celo:"0xE6F8710cA14CFe7F5aAAD3A799C3d1D92dCba938",Moonbeam:"0x566c1cebc6A4AFa1C122E039C4BEBe77043148Ee",Solana:"DMw2tLaq1bVoAEKtkoUtieSk9bfCPUvubYLatTMsSVop",Sui:"0x14e756ff65e0ac810a5f69ca5276ef5b899a6df3c4717de1f85559d8b5ae6ea6::coin::COIN",Aptos:"0x533c6ade00d15d1e014c41e29e34853e87df92c4e01a6a3f41318dbd098048d6::coin::T",Klaytn:"0x097c8878A0d852581Dc4D8820151094Ddd3663Ac",Sepolia:"0x852132647d301B7EED02589B1dc73545E73c8596"}},Celo:{"0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9":{Bsc:"0x1471698cBD9cAB0228F2EEA9303A2b3aA0ABDC2B",Avalanche:"0xC66d9c2b33c347d4A4441975f4688fcD5DD4c441",Fantom:"0xB18E73a69c3Aaea39a610372537Cf8482622d199",Moonbeam:"0x3406a9b09adf0cb36DC04c1523C4b294C6b79513",Solana:"84F2QX9278ToDmA98u4A86xSV9hz1ovazr8zwGaX6qjS",Sui:"0x81868174a6b11e1acc337b3414f9912455435d486609fb8d50b34312865085f2::coin::COIN",Aptos:"0xecbb0f7e7d049499ca83ca1358344f56557886f6f7adc740d6734cce7bfc9a14::coin::T",Klaytn:"0xC951826bbB310a8160BB78c2eEe6C98246292ba7",Sepolia:"0x648f226f3bDcAEdc844622d604F76935DC05bC24"}},Moonbeam:{"0xD909178CC99d318e4D46e7E66a972955859670E1":{Bsc:"0x5C31B36599ED7f06b09c0ffC7A2F928cE496F046",Avalanche:"0xf080782DF38eD5228D2FC2882d13D56c8f1D6f21",Fantom:"0x41E3CFDFC255A4bF3C8D3560Bc8D3D9b5080338e",Celo:"0x132D2172D89cd9CfD480A8887c6bF92360fB460e",Solana:"8987WGkYa5viiZ9DD8sS3PB5XghKmWjkEgmzvwDuoAEc",Sui:"0xeffae382de96981f7ddd2d294429924827e8f325d612487a12d6a0b249171002::coin::COIN",Aptos:"0x338373b6694f71dbeac5ca4a30503bf5f083888d71678aed31255de416be37c0::coin::T",Sepolia:"0x3F7CD70ECd402BBe71f45A95156A2CAC0d6A822E"}},Solana:{So11111111111111111111111111111111111111112:{Bsc:"0x30f19eBba919954FDc020B8A20aEF13ab5e02Af0",Avalanche:"0xb10563644a6AB8948ee6d7f5b0a1fb15AaEa1E03",Fantom:"0xED1a08Fc69A7008d225890A96aaE258c465CC7ad",Celo:"0x05EEF2AE1A7A938D78598F7d9e8b97A9bED0c9eC",Sui:"0xbc03aaab4c11eb84df8bf39fdc714fa5d5b65b16eb7d155e22c74a68c8d4e17f::coin::COIN",Aptos:"0xdd89c0e695df0692205912fb69fc290418bed0dbe6e4573d744a6d5e6bab6c13::coin::T",Klaytn:"0x48D99C16638E6FFD2ED60375cD35ef6c139e5f41",Moonbeam:"0x5babD0d267Adf2081626654E51d1cABF8c477440",Sepolia:"0x824CB8fC742F8D3300d29f16cA8beE94471169f5",Monad:"0x369CD1E20Fa7ea1F8e6dc0759709bA0bD978abE7"},"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU":{Bsc:"0x51a3cc54eA30Da607974C5D07B8502599801AC08"}},Sui:{native:{Bsc:"0x5A73D76e09Af2E428EC64aE10F91B78AC990B298",Avalanche:"0xfc5128F8556a6F059466E67740e6cC31EE5C2C47",Fantom:"0xd882AB49372eC093E8697B5153f54ab5e7738e3b",Celo:"0xa40d9E69ca9867C4bFbeC11Ce79C939991e9bf26",Solana:"BJZ72CjPQojVoH68mzrd4VQ4nr6KuhbAGnhZEZCujKxY",Aptos:"0x7b22d0e02f653d4fd1caddcfa4719a2b329da56eb81d8f27db703f02466c26a5::coin::T",Moonbeam:"0x2ed4B5B1071A3C676664E9085C0e3826542C1b27",Klaytn:"0xbA5F07a20681Add3A396E7606c6DC9B03d71d28A"}},Aptos:{native:{Bsc:"0x4A7Bd5E135f421057F97BbA8BCeeE5c18334f454",Avalanche:"0x996a3f12C1FcD7339Ea8801f629201e4d42EAD04",Fantom:"0xAb2297E8994149BA91737944E40891881aF762a4",Celo:"0xAC0a2fF7DD597de863878a3372142b07B614C125",Moonbeam:"0xCaa2A1d3BbbA0D1466571e83b4E2CbE04252593D",Solana:"7EvFD3JKCJVdtkAYdaSVKJsrPEJCzy2neJha7TREGrCa",Sui:"0x812d6feb8b84e55d47a0bfcae9fb6a4e7e09be5ec86ce0a729e0f67d5f59f477::coin::COIN"}},Klaytn:{"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106":{Bsc:"0x79D34FDb686B5D139949E4F92D83EEe376489176",Aptos:"0xa8ffe1ffe3057756019345cdf9cf3d1f1a3d9a355147dd9440878c448a057579::coin::T",Celo:"0x8e50fC4b7F8B7018E72475f78C640F973218C8Cf",Avalanche:"0x84f3298Bcc019BD5B995756494095e1Eb72B565C",Solana:"6p7qTfX4tRFtQovxwT77Jn9HFQEV7nxLbux9C31Tgm23",Fantom:"0x72A1C24dA7F08d11a7668E228Ec287Fc6ec16E48",Sepolia:"0x142D0E977768cA4De6f2161D9E5B5C9F00435F9e",Moonbeam:"0x6eFf019D79D4136e57A7FC141967F3D0AD41089a",Sui:"0xd4a59fb612b162df75a9d190c0f72098dcae883e88bd0eb28667c31f8208dc3c::coin::COIN"}},Sepolia:{"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c":{Solana:"6F5YWWrUMNpee8C6BDUc6DmRvYRMDDTgJHwKhbXuifWs",Celo:"0x890ad4a7eD5bD08b7d6638515157dF3bF4BaD1Bc",Bsc:"0x667a61Efa611399970AE927637dD6f9A16f51e40",Moonbeam:"0xa7276055a1d45fB9982575411801e10ac9970Da8",ArbitrumSepolia:"0x97Ee87C7Db6049669a518730a2Ee60d1Fc58844E",Avalanche:"0x12bFE94230daaE3d48067577F45b7b031dD357f3",Fantom:"0x7F96D67186561Aa17cEb699494E94bEE3F3499D4"},"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238":{Aptos:"0x3f2912a313c5bea312dbf19f9080101d2e762df6546a6fe9f60a4de72c93d015::coin::T",Solana:"23Adx8na44L3M1Nf9RrUpQPb41eufdRXKseg25FfcJtw",Celo:"0xD6A34325e5F6BE27b7006bf06651444196Da579a",Bsc:"0xb8850F591019F0794F813426d4A4A9b5fB8f23C8",BaseSepolia:"0x3F872340B6A75397aa9b0A463000349962a8795D",ArbitrumSepolia:"0x27B8F40Cf0915e729ae5A96970E91045Fe9724dF",Fantom:"0xa686203C86140142230f44A724281E1BEd09c369",Klaytn:"0x25f2a470a2e1E75DDAc40289AB277eDE4DD98aFa",Sui:"0x6529fef82a8a09470c550a3129bbd889030b62306f0c14161224b1a40ef1346f::coin::COIN"}},OptimismSepolia:{"0x4200000000000000000000000000000000000006":{ArbitrumSepolia:"0xa2610700cCA8361DECD27dB2564848C530f20813"}}},Nu={chains:yd,tokens:Vd,wrappedTokens:Zd,rpcs:Gd,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}},Xd={Ethereum:{sdkName:"Ethereum",displayName:"EVM",explorerUrl:"",explorerName:"",icon:"Ethereum",symbol:"ETH"}},Yd={},{REACT_APP_ETHEREUM_DEVNET_RPC:Jd}=Yd,Qd={...st("Ethereum",Jd)},e1=[{symbol:"ETH",icon:ye.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"native"}},{symbol:"WETH",icon:ye.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E"}},{symbol:"TKN",icon:ye.ETH,decimals:18,tokenId:{chain:"Ethereum",address:"0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A"}}],t1={chains:Xd,tokens:e1,wrappedTokens:{},rpcs:Qd,guardianSet:{index:0,keys:["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]}};function r1(g,x){const S=typeof window>"u"?void 0:window.location?.host;return function(c){const E={meta:{version:ti.CONNECT_VERSION,hash:ti.CONNECT_GIT_HASH,host:S,network:g},...c};if(console.debug("Wormhole Connect event:",E),x)try{x(E)}catch(i){console.error("Error handling event:",i)}}}function i1(g){throw new Error('Could not dynamically require "'+g+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var li={exports:{}},gt={},Tr={exports:{}},pf;function pr(){if(pf)return Tr.exports;pf=1;var g=65536,x=4294967295;function S(){throw new Error(`Secure random number generation is not supported by this browser.
2
+ Use Chrome, Firefox or Internet Explorer 11`)}var c=ze.requireSafeBuffer().Buffer,E=ze.commonjsGlobal.crypto||ze.commonjsGlobal.msCrypto;E&&E.getRandomValues?Tr.exports=i:Tr.exports=S;function i(_,y){if(_>x)throw new RangeError("requested too many random bytes");var m=c.allocUnsafe(_);if(_>0)if(_>g)for(var h=0;h<_;h+=g)E.getRandomValues(m.slice(h,h+g));else E.getRandomValues(m);return typeof y=="function"?we.process$1.nextTick(function(){y(null,m)}):m}return Tr.exports}var Ir={exports:{}},vf;function dt(){return vf||(vf=1,typeof Object.create=="function"?Ir.exports=function(x,S){S&&(x.super_=S,x.prototype=Object.create(S.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}))}:Ir.exports=function(x,S){if(S){x.super_=S;var c=function(){};c.prototype=S.prototype,x.prototype=new c,x.prototype.constructor=x}}),Ir.exports}var kr={exports:{}},bf;function vr(){if(bf)return kr.exports;bf=1;var g=typeof Reflect=="object"?Reflect:null,x=g&&typeof g.apply=="function"?g.apply:function(K,q,Y){return Function.prototype.apply.call(K,q,Y)},S;g&&typeof g.ownKeys=="function"?S=g.ownKeys:Object.getOwnPropertySymbols?S=function(K){return Object.getOwnPropertyNames(K).concat(Object.getOwnPropertySymbols(K))}:S=function(K){return Object.getOwnPropertyNames(K)};function c(D){console&&console.warn&&console.warn(D)}var E=Number.isNaN||function(K){return K!==K};function i(){i.init.call(this)}kr.exports=i,kr.exports.once=F,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var _=10;function y(D){if(typeof D!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof D)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return _},set:function(D){if(typeof D!="number"||D<0||E(D))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+D+".");_=D}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(K){if(typeof K!="number"||K<0||E(K))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+K+".");return this._maxListeners=K,this};function m(D){return D._maxListeners===void 0?i.defaultMaxListeners:D._maxListeners}i.prototype.getMaxListeners=function(){return m(this)},i.prototype.emit=function(K){for(var q=[],Y=1;Y<arguments.length;Y++)q.push(arguments[Y]);var J=K==="error",V=this._events;if(V!==void 0)J=J&&V.error===void 0;else if(!J)return!1;if(J){var re;if(q.length>0&&(re=q[0]),re instanceof Error)throw re;var u=new Error("Unhandled error."+(re?" ("+re.message+")":""));throw u.context=re,u}var e=V[K];if(e===void 0)return!1;if(typeof e=="function")x(e,this,q);else for(var r=e.length,n=M(e,r),Y=0;Y<r;++Y)x(n[Y],this,q);return!0};function h(D,K,q,Y){var J,V,re;if(y(q),V=D._events,V===void 0?(V=D._events=Object.create(null),D._eventsCount=0):(V.newListener!==void 0&&(D.emit("newListener",K,q.listener?q.listener:q),V=D._events),re=V[K]),re===void 0)re=V[K]=q,++D._eventsCount;else if(typeof re=="function"?re=V[K]=Y?[q,re]:[re,q]:Y?re.unshift(q):re.push(q),J=m(D),J>0&&re.length>J&&!re.warned){re.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+re.length+" "+String(K)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=D,u.type=K,u.count=re.length,c(u)}return D}i.prototype.addListener=function(K,q){return h(this,K,q,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(K,q){return h(this,K,q,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(D,K,q){var Y={fired:!1,wrapFn:void 0,target:D,type:K,listener:q},J=d.bind(Y);return J.listener=q,Y.wrapFn=J,J}i.prototype.once=function(K,q){return y(q),this.on(K,p(this,K,q)),this},i.prototype.prependOnceListener=function(K,q){return y(q),this.prependListener(K,p(this,K,q)),this},i.prototype.removeListener=function(K,q){var Y,J,V,re,u;if(y(q),J=this._events,J===void 0)return this;if(Y=J[K],Y===void 0)return this;if(Y===q||Y.listener===q)--this._eventsCount===0?this._events=Object.create(null):(delete J[K],J.removeListener&&this.emit("removeListener",K,Y.listener||q));else if(typeof Y!="function"){for(V=-1,re=Y.length-1;re>=0;re--)if(Y[re]===q||Y[re].listener===q){u=Y[re].listener,V=re;break}if(V<0)return this;V===0?Y.shift():A(Y,V),Y.length===1&&(J[K]=Y[0]),J.removeListener!==void 0&&this.emit("removeListener",K,u||q)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(K){var q,Y,J;if(Y=this._events,Y===void 0)return this;if(Y.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Y[K]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Y[K]),this;if(arguments.length===0){var V=Object.keys(Y),re;for(J=0;J<V.length;++J)re=V[J],re!=="removeListener"&&this.removeAllListeners(re);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(q=Y[K],typeof q=="function")this.removeListener(K,q);else if(q!==void 0)for(J=q.length-1;J>=0;J--)this.removeListener(K,q[J]);return this};function v(D,K,q){var Y=D._events;if(Y===void 0)return[];var J=Y[K];return J===void 0?[]:typeof J=="function"?q?[J.listener||J]:[J]:q?B(J):M(J,J.length)}i.prototype.listeners=function(K){return v(this,K,!0)},i.prototype.rawListeners=function(K){return v(this,K,!1)},i.listenerCount=function(D,K){return typeof D.listenerCount=="function"?D.listenerCount(K):w.call(D,K)},i.prototype.listenerCount=w;function w(D){var K=this._events;if(K!==void 0){var q=K[D];if(typeof q=="function")return 1;if(q!==void 0)return q.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?S(this._events):[]};function M(D,K){for(var q=new Array(K),Y=0;Y<K;++Y)q[Y]=D[Y];return q}function A(D,K){for(;K+1<D.length;K++)D[K]=D[K+1];D.pop()}function B(D){for(var K=new Array(D.length),q=0;q<K.length;++q)K[q]=D[q].listener||D[q];return K}function F(D,K){return new Promise(function(q,Y){function J(re){D.removeListener(K,V),Y(re)}function V(){typeof D.removeListener=="function"&&D.removeListener("error",J),q([].slice.call(arguments))}R(D,K,V,{once:!0}),K!=="error"&&C(D,J,{once:!0})})}function C(D,K,q){typeof D.on=="function"&&R(D,"error",K,q)}function R(D,K,q,Y){if(typeof D.on=="function")Y.once?D.once(K,q):D.on(K,q);else if(typeof D.addEventListener=="function")D.addEventListener(K,function J(V){Y.once&&D.removeEventListener(K,J),q(V)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof D)}return kr.exports}var di,mf;function Pu(){return mf||(mf=1,di=vr().EventEmitter),di}const n1={},a1=Object.freeze(Object.defineProperty({__proto__:null,default:n1},Symbol.toStringTag,{value:"Module"})),br=ze.getAugmentedNamespace(a1);var pi,yf;function f1(){if(yf)return pi;yf=1;function g(M,A){var B=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);A&&(F=F.filter(function(C){return Object.getOwnPropertyDescriptor(M,C).enumerable})),B.push.apply(B,F)}return B}function x(M){for(var A=1;A<arguments.length;A++){var B=arguments[A]!=null?arguments[A]:{};A%2?g(Object(B),!0).forEach(function(F){S(M,F,B[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(B)):g(Object(B)).forEach(function(F){Object.defineProperty(M,F,Object.getOwnPropertyDescriptor(B,F))})}return M}function S(M,A,B){return A=_(A),A in M?Object.defineProperty(M,A,{value:B,enumerable:!0,configurable:!0,writable:!0}):M[A]=B,M}function c(M,A){if(!(M instanceof A))throw new TypeError("Cannot call a class as a function")}function E(M,A){for(var B=0;B<A.length;B++){var F=A[B];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,_(F.key),F)}}function i(M,A,B){return A&&E(M.prototype,A),Object.defineProperty(M,"prototype",{writable:!1}),M}function _(M){var A=y(M,"string");return typeof A=="symbol"?A:String(A)}function y(M,A){if(typeof M!="object"||M===null)return M;var B=M[Symbol.toPrimitive];if(B!==void 0){var F=B.call(M,A);if(typeof F!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}var m=ze.requireDist(),h=m.Buffer,d=br,p=d.inspect,v=p&&p.custom||"inspect";function w(M,A,B){h.prototype.copy.call(M,A,B)}return pi=(function(){function M(){c(this,M),this.head=null,this.tail=null,this.length=0}return i(M,[{key:"push",value:function(B){var F={data:B,next:null};this.length>0?this.tail.next=F:this.head=F,this.tail=F,++this.length}},{key:"unshift",value:function(B){var F={data:B,next:this.head};this.length===0&&(this.tail=F),this.head=F,++this.length}},{key:"shift",value:function(){if(this.length!==0){var B=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,B}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(B){if(this.length===0)return"";for(var F=this.head,C=""+F.data;F=F.next;)C+=B+F.data;return C}},{key:"concat",value:function(B){if(this.length===0)return h.alloc(0);for(var F=h.allocUnsafe(B>>>0),C=this.head,R=0;C;)w(C.data,F,R),R+=C.data.length,C=C.next;return F}},{key:"consume",value:function(B,F){var C;return B<this.head.data.length?(C=this.head.data.slice(0,B),this.head.data=this.head.data.slice(B)):B===this.head.data.length?C=this.shift():C=F?this._getString(B):this._getBuffer(B),C}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(B){var F=this.head,C=1,R=F.data;for(B-=R.length;F=F.next;){var D=F.data,K=B>D.length?D.length:B;if(K===D.length?R+=D:R+=D.slice(0,B),B-=K,B===0){K===D.length?(++C,F.next?this.head=F.next:this.head=this.tail=null):(this.head=F,F.data=D.slice(K));break}++C}return this.length-=C,R}},{key:"_getBuffer",value:function(B){var F=h.allocUnsafe(B),C=this.head,R=1;for(C.data.copy(F),B-=C.data.length;C=C.next;){var D=C.data,K=B>D.length?D.length:B;if(D.copy(F,F.length-B,0,K),B-=K,B===0){K===D.length?(++R,C.next?this.head=C.next:this.head=this.tail=null):(this.head=C,C.data=D.slice(K));break}++R}return this.length-=R,F}},{key:v,value:function(B,F){return p(this,x(x({},F),{},{depth:0,customInspect:!1}))}}]),M})(),pi}var vi,gf;function qu(){if(gf)return vi;gf=1;function g(_,y){var m=this,h=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return h||d?(y?y(_):_&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,we.process$1.nextTick(E,this,_)):we.process$1.nextTick(E,this,_)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(_||null,function(p){!y&&p?m._writableState?m._writableState.errorEmitted?we.process$1.nextTick(S,m):(m._writableState.errorEmitted=!0,we.process$1.nextTick(x,m,p)):we.process$1.nextTick(x,m,p):y?(we.process$1.nextTick(S,m),y(p)):we.process$1.nextTick(S,m)}),this)}function x(_,y){E(_,y),S(_)}function S(_){_._writableState&&!_._writableState.emitClose||_._readableState&&!_._readableState.emitClose||_.emit("close")}function c(){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)}function E(_,y){_.emit("error",y)}function i(_,y){var m=_._readableState,h=_._writableState;m&&m.autoDestroy||h&&h.autoDestroy?_.destroy(y):_.emit("error",y)}return vi={destroy:g,undestroy:c,errorOrDestroy:i},vi}var bi={},xf;function mr(){if(xf)return bi;xf=1;function g(y,m){y.prototype=Object.create(m.prototype),y.prototype.constructor=y,y.__proto__=m}var x={};function S(y,m,h){h||(h=Error);function d(v,w,M){return typeof m=="string"?m:m(v,w,M)}var p=(function(v){g(w,v);function w(M,A,B){return v.call(this,d(M,A,B))||this}return w})(h);p.prototype.name=h.name,p.prototype.code=y,x[y]=p}function c(y,m){if(Array.isArray(y)){var h=y.length;return y=y.map(function(d){return String(d)}),h>2?"one of ".concat(m," ").concat(y.slice(0,h-1).join(", "),", or ")+y[h-1]:h===2?"one of ".concat(m," ").concat(y[0]," or ").concat(y[1]):"of ".concat(m," ").concat(y[0])}else return"of ".concat(m," ").concat(String(y))}function E(y,m,h){return y.substr(0,m.length)===m}function i(y,m,h){return(h===void 0||h>y.length)&&(h=y.length),y.substring(h-m.length,h)===m}function _(y,m,h){return typeof h!="number"&&(h=0),h+m.length>y.length?!1:y.indexOf(m,h)!==-1}return S("ERR_INVALID_OPT_VALUE",function(y,m){return'The value "'+m+'" is invalid for option "'+y+'"'},TypeError),S("ERR_INVALID_ARG_TYPE",function(y,m,h){var d;typeof m=="string"&&E(m,"not ")?(d="must not be",m=m.replace(/^not /,"")):d="must be";var p;if(i(y," argument"))p="The ".concat(y," ").concat(d," ").concat(c(m,"type"));else{var v=_(y,".")?"property":"argument";p='The "'.concat(y,'" ').concat(v," ").concat(d," ").concat(c(m,"type"))}return p+=". Received type ".concat(typeof h),p},TypeError),S("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),S("ERR_METHOD_NOT_IMPLEMENTED",function(y){return"The "+y+" method is not implemented"}),S("ERR_STREAM_PREMATURE_CLOSE","Premature close"),S("ERR_STREAM_DESTROYED",function(y){return"Cannot call "+y+" after a stream was destroyed"}),S("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),S("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),S("ERR_STREAM_WRITE_AFTER_END","write after end"),S("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),S("ERR_UNKNOWN_ENCODING",function(y){return"Unknown encoding: "+y},TypeError),S("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),bi.codes=x,bi}var mi,wf;function Ou(){if(wf)return mi;wf=1;var g=mr().codes.ERR_INVALID_OPT_VALUE;function x(c,E,i){return c.highWaterMark!=null?c.highWaterMark:E?c[i]:null}function S(c,E,i,_){var y=x(E,_,i);if(y!=null){if(!(isFinite(y)&&Math.floor(y)===y)||y<0){var m=_?i:"highWaterMark";throw new g(m,y)}return Math.floor(y)}return c.objectMode?16:16*1024}return mi={getHighWaterMark:S},mi}var yi,Mf;function L0(){if(Mf)return yi;Mf=1,yi=g;function g(S,c){if(x("noDeprecation"))return S;var E=!1;function i(){if(!E){if(x("throwDeprecation"))throw new Error(c);x("traceDeprecation")?console.trace(c):console.warn(c),E=!0}return S.apply(this,arguments)}return i}function x(S){try{if(!ze.commonjsGlobal.localStorage)return!1}catch{return!1}var c=ze.commonjsGlobal.localStorage[S];return c==null?!1:String(c).toLowerCase()==="true"}return yi}var gi,_f;function Uu(){if(_f)return gi;_f=1,gi=J;function g(X){var P=this;this.next=null,this.entry=null,this.finish=function(){Q(P,X)}}var x;J.WritableState=q;var S={deprecate:L0()},c=Pu(),E=ze.requireDist().Buffer,i=(typeof ze.commonjsGlobal<"u"?ze.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _(X){return E.from(X)}function y(X){return E.isBuffer(X)||X instanceof i}var m=qu(),h=Ou(),d=h.getHighWaterMark,p=mr().codes,v=p.ERR_INVALID_ARG_TYPE,w=p.ERR_METHOD_NOT_IMPLEMENTED,M=p.ERR_MULTIPLE_CALLBACK,A=p.ERR_STREAM_CANNOT_PIPE,B=p.ERR_STREAM_DESTROYED,F=p.ERR_STREAM_NULL_VALUES,C=p.ERR_STREAM_WRITE_AFTER_END,R=p.ERR_UNKNOWN_ENCODING,D=m.errorOrDestroy;dt()(J,c);function K(){}function q(X,P,H){x=x||cr(),X=X||{},typeof H!="boolean"&&(H=P instanceof x),this.objectMode=!!X.objectMode,H&&(this.objectMode=this.objectMode||!!X.writableObjectMode),this.highWaterMark=d(this,X,"writableHighWaterMark",H),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=X.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=X.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(k){o(P,k)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=X.emitClose!==!1,this.autoDestroy=!!X.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new g(this)}q.prototype.getBuffer=function(){for(var P=this.bufferedRequest,H=[];P;)H.push(P),P=P.next;return H},(function(){try{Object.defineProperty(q.prototype,"buffer",{get:S.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Y;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Y=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(P){return Y.call(this,P)?!0:this!==J?!1:P&&P._writableState instanceof q}})):Y=function(P){return P instanceof this};function J(X){x=x||cr();var P=this instanceof x;if(!P&&!Y.call(J,this))return new J(X);this._writableState=new q(X,this,P),this.writable=!0,X&&(typeof X.write=="function"&&(this._write=X.write),typeof X.writev=="function"&&(this._writev=X.writev),typeof X.destroy=="function"&&(this._destroy=X.destroy),typeof X.final=="function"&&(this._final=X.final)),c.call(this)}J.prototype.pipe=function(){D(this,new A)};function V(X,P){var H=new C;D(X,H),we.process$1.nextTick(P,H)}function re(X,P,H,Z){var k;return H===null?k=new F:typeof H!="string"&&!P.objectMode&&(k=new v("chunk",["string","Buffer"],H)),k?(D(X,k),we.process$1.nextTick(Z,k),!1):!0}J.prototype.write=function(X,P,H){var Z=this._writableState,k=!1,N=!Z.objectMode&&y(X);return N&&!E.isBuffer(X)&&(X=_(X)),typeof P=="function"&&(H=P,P=null),N?P="buffer":P||(P=Z.defaultEncoding),typeof H!="function"&&(H=K),Z.ending?V(this,H):(N||re(this,Z,X,H))&&(Z.pendingcb++,k=e(this,Z,N,X,P,H)),k},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var X=this._writableState;X.corked&&(X.corked--,!X.writing&&!X.corked&&!X.bufferProcessing&&X.bufferedRequest&&f(this,X))},J.prototype.setDefaultEncoding=function(P){if(typeof P=="string"&&(P=P.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((P+"").toLowerCase())>-1))throw new R(P);return this._writableState.defaultEncoding=P,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function u(X,P,H){return!X.objectMode&&X.decodeStrings!==!1&&typeof P=="string"&&(P=E.from(P,H)),P}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function e(X,P,H,Z,k,N){if(!H){var T=u(P,Z,k);Z!==T&&(H=!0,k="buffer",Z=T)}var j=P.objectMode?1:Z.length;P.length+=j;var fe=P.length<P.highWaterMark;if(fe||(P.needDrain=!0),P.writing||P.corked){var ee=P.lastBufferedRequest;P.lastBufferedRequest={chunk:Z,encoding:k,isBuf:H,callback:N,next:null},ee?ee.next=P.lastBufferedRequest:P.bufferedRequest=P.lastBufferedRequest,P.bufferedRequestCount+=1}else r(X,P,!1,j,Z,k,N);return fe}function r(X,P,H,Z,k,N,T){P.writelen=Z,P.writecb=T,P.writing=!0,P.sync=!0,P.destroyed?P.onwrite(new B("write")):H?X._writev(k,P.onwrite):X._write(k,N,P.onwrite),P.sync=!1}function n(X,P,H,Z,k){--P.pendingcb,H?(we.process$1.nextTick(k,Z),we.process$1.nextTick(W,X,P),X._writableState.errorEmitted=!0,D(X,Z)):(k(Z),X._writableState.errorEmitted=!0,D(X,Z),W(X,P))}function a(X){X.writing=!1,X.writecb=null,X.length-=X.writelen,X.writelen=0}function o(X,P){var H=X._writableState,Z=H.sync,k=H.writecb;if(typeof k!="function")throw new M;if(a(H),P)n(X,H,Z,P,k);else{var N=t(H)||X.destroyed;!N&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&f(X,H),Z?we.process$1.nextTick(l,X,H,N,k):l(X,H,N,k)}}function l(X,P,H,Z){H||b(X,P),P.pendingcb--,Z(),W(X,P)}function b(X,P){P.length===0&&P.needDrain&&(P.needDrain=!1,X.emit("drain"))}function f(X,P){P.bufferProcessing=!0;var H=P.bufferedRequest;if(X._writev&&H&&H.next){var Z=P.bufferedRequestCount,k=new Array(Z),N=P.corkedRequestsFree;N.entry=H;for(var T=0,j=!0;H;)k[T]=H,H.isBuf||(j=!1),H=H.next,T+=1;k.allBuffers=j,r(X,P,!0,P.length,k,"",N.finish),P.pendingcb++,P.lastBufferedRequest=null,N.next?(P.corkedRequestsFree=N.next,N.next=null):P.corkedRequestsFree=new g(P),P.bufferedRequestCount=0}else{for(;H;){var fe=H.chunk,ee=H.encoding,te=H.callback,he=P.objectMode?1:fe.length;if(r(X,P,!1,he,fe,ee,te),H=H.next,P.bufferedRequestCount--,P.writing)break}H===null&&(P.lastBufferedRequest=null)}P.bufferedRequest=H,P.bufferProcessing=!1}J.prototype._write=function(X,P,H){H(new w("_write()"))},J.prototype._writev=null,J.prototype.end=function(X,P,H){var Z=this._writableState;return typeof X=="function"?(H=X,X=null,P=null):typeof P=="function"&&(H=P,P=null),X!=null&&this.write(X,P),Z.corked&&(Z.corked=1,this.uncork()),Z.ending||U(this,Z,H),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function t(X){return X.ending&&X.length===0&&X.bufferedRequest===null&&!X.finished&&!X.writing}function s(X,P){X._final(function(H){P.pendingcb--,H&&D(X,H),P.prefinished=!0,X.emit("prefinish"),W(X,P)})}function $(X,P){!P.prefinished&&!P.finalCalled&&(typeof X._final=="function"&&!P.destroyed?(P.pendingcb++,P.finalCalled=!0,we.process$1.nextTick(s,X,P)):(P.prefinished=!0,X.emit("prefinish")))}function W(X,P){var H=t(P);if(H&&($(X,P),P.pendingcb===0&&(P.finished=!0,X.emit("finish"),P.autoDestroy))){var Z=X._readableState;(!Z||Z.autoDestroy&&Z.endEmitted)&&X.destroy()}return H}function U(X,P,H){P.ending=!0,W(X,P),H&&(P.finished?we.process$1.nextTick(H):X.once("finish",H)),P.ended=!0,X.writable=!1}function Q(X,P,H){var Z=X.entry;for(X.entry=null;Z;){var k=Z.callback;P.pendingcb--,k(H),Z=Z.next}P.corkedRequestsFree.next=X}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(P){this._writableState&&(this._writableState.destroyed=P)}}),J.prototype.destroy=m.destroy,J.prototype._undestroy=m.undestroy,J.prototype._destroy=function(X,P){P(X)},gi}var xi,Ef;function cr(){if(Ef)return xi;Ef=1;var g=Object.keys||function(h){var d=[];for(var p in h)d.push(p);return d};xi=_;var x=Lu(),S=Uu();dt()(_,x);for(var c=g(S.prototype),E=0;E<c.length;E++){var i=c[E];_.prototype[i]||(_.prototype[i]=S.prototype[i])}function _(h){if(!(this instanceof _))return new _(h);x.call(this,h),S.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",y)))}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function y(){this._writableState.ended||we.process$1.nextTick(m,this)}function m(h){h.end()}return Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(d){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=d,this._writableState.destroyed=d)}}),xi}var wi={},Nr={exports:{}},Af;function o1(){return Af||(Af=1,(function(g,x){var S=ze.requireDist(),c=S.Buffer;function E(_,y){for(var m in _)y[m]=_[m]}c.from&&c.alloc&&c.allocUnsafe&&c.allocUnsafeSlow?g.exports=S:(E(S,x),x.Buffer=i);function i(_,y,m){return c(_,y,m)}E(c,i),i.from=function(_,y,m){if(typeof _=="number")throw new TypeError("Argument must not be a number");return c(_,y,m)},i.alloc=function(_,y,m){if(typeof _!="number")throw new TypeError("Argument must be a number");var h=c(_);return y!==void 0?typeof m=="string"?h.fill(y,m):h.fill(y):h.fill(0),h},i.allocUnsafe=function(_){if(typeof _!="number")throw new TypeError("Argument must be a number");return c(_)},i.allocUnsafeSlow=function(_){if(typeof _!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(_)}})(Nr,Nr.exports)),Nr.exports}var Sf;function lr(){if(Sf)return wi;Sf=1;var g=o1().Buffer,x=g.isEncoding||function(F){switch(F=""+F,F&&F.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 S(F){if(!F)return"utf8";for(var C;;)switch(F){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 F;default:if(C)return;F=(""+F).toLowerCase(),C=!0}}function c(F){var C=S(F);if(typeof C!="string"&&(g.isEncoding===x||!x(F)))throw new Error("Unknown encoding: "+F);return C||F}wi.StringDecoder=E;function E(F){this.encoding=c(F);var C;switch(this.encoding){case"utf16le":this.text=p,this.end=v,C=4;break;case"utf8":this.fillLast=m,C=4;break;case"base64":this.text=w,this.end=M,C=3;break;default:this.write=A,this.end=B;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=g.allocUnsafe(C)}E.prototype.write=function(F){if(F.length===0)return"";var C,R;if(this.lastNeed){if(C=this.fillLast(F),C===void 0)return"";R=this.lastNeed,this.lastNeed=0}else R=0;return R<F.length?C?C+this.text(F,R):this.text(F,R):C||""},E.prototype.end=d,E.prototype.text=h,E.prototype.fillLast=function(F){if(this.lastNeed<=F.length)return F.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);F.copy(this.lastChar,this.lastTotal-this.lastNeed,0,F.length),this.lastNeed-=F.length};function i(F){return F<=127?0:F>>5===6?2:F>>4===14?3:F>>3===30?4:F>>6===2?-1:-2}function _(F,C,R){var D=C.length-1;if(D<R)return 0;var K=i(C[D]);return K>=0?(K>0&&(F.lastNeed=K-1),K):--D<R||K===-2?0:(K=i(C[D]),K>=0?(K>0&&(F.lastNeed=K-2),K):--D<R||K===-2?0:(K=i(C[D]),K>=0?(K>0&&(K===2?K=0:F.lastNeed=K-3),K):0))}function y(F,C,R){if((C[0]&192)!==128)return F.lastNeed=0,"�";if(F.lastNeed>1&&C.length>1){if((C[1]&192)!==128)return F.lastNeed=1,"�";if(F.lastNeed>2&&C.length>2&&(C[2]&192)!==128)return F.lastNeed=2,"�"}}function m(F){var C=this.lastTotal-this.lastNeed,R=y(this,F);if(R!==void 0)return R;if(this.lastNeed<=F.length)return F.copy(this.lastChar,C,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);F.copy(this.lastChar,C,0,F.length),this.lastNeed-=F.length}function h(F,C){var R=_(this,F,C);if(!this.lastNeed)return F.toString("utf8",C);this.lastTotal=R;var D=F.length-(R-this.lastNeed);return F.copy(this.lastChar,0,D),F.toString("utf8",C,D)}function d(F){var C=F&&F.length?this.write(F):"";return this.lastNeed?C+"�":C}function p(F,C){if((F.length-C)%2===0){var R=F.toString("utf16le",C);if(R){var D=R.charCodeAt(R.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=F[F.length-2],this.lastChar[1]=F[F.length-1],R.slice(0,-1)}return R}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=F[F.length-1],F.toString("utf16le",C,F.length-1)}function v(F){var C=F&&F.length?this.write(F):"";if(this.lastNeed){var R=this.lastTotal-this.lastNeed;return C+this.lastChar.toString("utf16le",0,R)}return C}function w(F,C){var R=(F.length-C)%3;return R===0?F.toString("base64",C):(this.lastNeed=3-R,this.lastTotal=3,R===1?this.lastChar[0]=F[F.length-1]:(this.lastChar[0]=F[F.length-2],this.lastChar[1]=F[F.length-1]),F.toString("base64",C,F.length-R))}function M(F){var C=F&&F.length?this.write(F):"";return this.lastNeed?C+this.lastChar.toString("base64",0,3-this.lastNeed):C}function A(F){return F.toString(this.encoding)}function B(F){return F&&F.length?this.write(F):""}return wi}var Mi,Bf;function H0(){if(Bf)return Mi;Bf=1;var g=mr().codes.ERR_STREAM_PREMATURE_CLOSE;function x(i){var _=!1;return function(){if(!_){_=!0;for(var y=arguments.length,m=new Array(y),h=0;h<y;h++)m[h]=arguments[h];i.apply(this,m)}}}function S(){}function c(i){return i.setHeader&&typeof i.abort=="function"}function E(i,_,y){if(typeof _=="function")return E(i,null,_);_||(_={}),y=x(y||S);var m=_.readable||_.readable!==!1&&i.readable,h=_.writable||_.writable!==!1&&i.writable,d=function(){i.writable||v()},p=i._writableState&&i._writableState.finished,v=function(){h=!1,p=!0,m||y.call(i)},w=i._readableState&&i._readableState.endEmitted,M=function(){m=!1,w=!0,h||y.call(i)},A=function(R){y.call(i,R)},B=function(){var R;if(m&&!w)return(!i._readableState||!i._readableState.ended)&&(R=new g),y.call(i,R);if(h&&!p)return(!i._writableState||!i._writableState.ended)&&(R=new g),y.call(i,R)},F=function(){i.req.on("finish",v)};return c(i)?(i.on("complete",v),i.on("abort",B),i.req?F():i.on("request",F)):h&&!i._writableState&&(i.on("end",d),i.on("close",d)),i.on("end",M),i.on("finish",v),_.error!==!1&&i.on("error",A),i.on("close",B),function(){i.removeListener("complete",v),i.removeListener("abort",B),i.removeListener("request",F),i.req&&i.req.removeListener("finish",v),i.removeListener("end",d),i.removeListener("close",d),i.removeListener("finish",v),i.removeListener("end",M),i.removeListener("error",A),i.removeListener("close",B)}}return Mi=E,Mi}var _i,Ff;function s1(){if(Ff)return _i;Ff=1;var g;function x(R,D,K){return D=S(D),D in R?Object.defineProperty(R,D,{value:K,enumerable:!0,configurable:!0,writable:!0}):R[D]=K,R}function S(R){var D=c(R,"string");return typeof D=="symbol"?D:String(D)}function c(R,D){if(typeof R!="object"||R===null)return R;var K=R[Symbol.toPrimitive];if(K!==void 0){var q=K.call(R,D);if(typeof q!="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(R)}var E=H0(),i=Symbol("lastResolve"),_=Symbol("lastReject"),y=Symbol("error"),m=Symbol("ended"),h=Symbol("lastPromise"),d=Symbol("handlePromise"),p=Symbol("stream");function v(R,D){return{value:R,done:D}}function w(R){var D=R[i];if(D!==null){var K=R[p].read();K!==null&&(R[h]=null,R[i]=null,R[_]=null,D(v(K,!1)))}}function M(R){we.process$1.nextTick(w,R)}function A(R,D){return function(K,q){R.then(function(){if(D[m]){K(v(void 0,!0));return}D[d](K,q)},q)}}var B=Object.getPrototypeOf(function(){}),F=Object.setPrototypeOf((g={get stream(){return this[p]},next:function(){var D=this,K=this[y];if(K!==null)return Promise.reject(K);if(this[m])return Promise.resolve(v(void 0,!0));if(this[p].destroyed)return new Promise(function(V,re){we.process$1.nextTick(function(){D[y]?re(D[y]):V(v(void 0,!0))})});var q=this[h],Y;if(q)Y=new Promise(A(q,this));else{var J=this[p].read();if(J!==null)return Promise.resolve(v(J,!1));Y=new Promise(this[d])}return this[h]=Y,Y}},x(g,Symbol.asyncIterator,function(){return this}),x(g,"return",function(){var D=this;return new Promise(function(K,q){D[p].destroy(null,function(Y){if(Y){q(Y);return}K(v(void 0,!0))})})}),g),B),C=function(D){var K,q=Object.create(F,(K={},x(K,p,{value:D,writable:!0}),x(K,i,{value:null,writable:!0}),x(K,_,{value:null,writable:!0}),x(K,y,{value:null,writable:!0}),x(K,m,{value:D._readableState.endEmitted,writable:!0}),x(K,d,{value:function(J,V){var re=q[p].read();re?(q[h]=null,q[i]=null,q[_]=null,J(v(re,!1))):(q[i]=J,q[_]=V)},writable:!0}),K));return q[h]=null,E(D,function(Y){if(Y&&Y.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=q[_];J!==null&&(q[h]=null,q[i]=null,q[_]=null,J(Y)),q[y]=Y;return}var V=q[i];V!==null&&(q[h]=null,q[i]=null,q[_]=null,V(v(void 0,!0))),q[m]=!0}),D.on("readable",M.bind(null,q)),q};return _i=C,_i}var Ei,Cf;function h1(){return Cf||(Cf=1,Ei=function(){throw new Error("Readable.from is not available in the browser")}),Ei}var Ai,Df;function Lu(){if(Df)return Ai;Df=1,Ai=V;var g;V.ReadableState=J,vr().EventEmitter;var x=function(T,j){return T.listeners(j).length},S=Pu(),c=ze.requireDist().Buffer,E=(typeof ze.commonjsGlobal<"u"?ze.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(N){return c.from(N)}function _(N){return c.isBuffer(N)||N instanceof E}var y=br,m;y&&y.debuglog?m=y.debuglog("stream"):m=function(){};var h=f1(),d=qu(),p=Ou(),v=p.getHighWaterMark,w=mr().codes,M=w.ERR_INVALID_ARG_TYPE,A=w.ERR_STREAM_PUSH_AFTER_EOF,B=w.ERR_METHOD_NOT_IMPLEMENTED,F=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,C,R,D;dt()(V,S);var K=d.errorOrDestroy,q=["error","close","destroy","pause","resume"];function Y(N,T,j){if(typeof N.prependListener=="function")return N.prependListener(T,j);!N._events||!N._events[T]?N.on(T,j):Array.isArray(N._events[T])?N._events[T].unshift(j):N._events[T]=[j,N._events[T]]}function J(N,T,j){g=g||cr(),N=N||{},typeof j!="boolean"&&(j=T instanceof g),this.objectMode=!!N.objectMode,j&&(this.objectMode=this.objectMode||!!N.readableObjectMode),this.highWaterMark=v(this,N,"readableHighWaterMark",j),this.buffer=new h,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=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.destroyed=!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(C||(C=lr().StringDecoder),this.decoder=new C(N.encoding),this.encoding=N.encoding)}function V(N){if(g=g||cr(),!(this instanceof V))return new V(N);var T=this instanceof g;this._readableState=new J(N,this,T),this.readable=!0,N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy)),S.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(T){this._readableState&&(this._readableState.destroyed=T)}}),V.prototype.destroy=d.destroy,V.prototype._undestroy=d.undestroy,V.prototype._destroy=function(N,T){T(N)},V.prototype.push=function(N,T){var j=this._readableState,fe;return j.objectMode?fe=!0:typeof N=="string"&&(T=T||j.defaultEncoding,T!==j.encoding&&(N=c.from(N,T),T=""),fe=!0),re(this,N,T,!1,fe)},V.prototype.unshift=function(N){return re(this,N,null,!0,!1)};function re(N,T,j,fe,ee){m("readableAddChunk",T);var te=N._readableState;if(T===null)te.reading=!1,o(N,te);else{var he;if(ee||(he=e(te,T)),he)K(N,he);else if(te.objectMode||T&&T.length>0)if(typeof T!="string"&&!te.objectMode&&Object.getPrototypeOf(T)!==c.prototype&&(T=i(T)),fe)te.endEmitted?K(N,new F):u(N,te,T,!0);else if(te.ended)K(N,new A);else{if(te.destroyed)return!1;te.reading=!1,te.decoder&&!j?(T=te.decoder.write(T),te.objectMode||T.length!==0?u(N,te,T,!1):f(N,te)):u(N,te,T,!1)}else fe||(te.reading=!1,f(N,te))}return!te.ended&&(te.length<te.highWaterMark||te.length===0)}function u(N,T,j,fe){T.flowing&&T.length===0&&!T.sync?(T.awaitDrain=0,N.emit("data",j)):(T.length+=T.objectMode?1:j.length,fe?T.buffer.unshift(j):T.buffer.push(j),T.needReadable&&l(N)),f(N,T)}function e(N,T){var j;return!_(T)&&typeof T!="string"&&T!==void 0&&!N.objectMode&&(j=new M("chunk",["string","Buffer","Uint8Array"],T)),j}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(N){C||(C=lr().StringDecoder);var T=new C(N);this._readableState.decoder=T,this._readableState.encoding=this._readableState.decoder.encoding;for(var j=this._readableState.buffer.head,fe="";j!==null;)fe+=T.write(j.data),j=j.next;return this._readableState.buffer.clear(),fe!==""&&this._readableState.buffer.push(fe),this._readableState.length=fe.length,this};var r=1073741824;function n(N){return N>=r?N=r:(N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++),N}function a(N,T){return N<=0||T.length===0&&T.ended?0:T.objectMode?1:N!==N?T.flowing&&T.length?T.buffer.head.data.length:T.length:(N>T.highWaterMark&&(T.highWaterMark=n(N)),N<=T.length?N:T.ended?T.length:(T.needReadable=!0,0))}V.prototype.read=function(N){m("read",N),N=parseInt(N,10);var T=this._readableState,j=N;if(N!==0&&(T.emittedReadable=!1),N===0&&T.needReadable&&((T.highWaterMark!==0?T.length>=T.highWaterMark:T.length>0)||T.ended))return m("read: emitReadable",T.length,T.ended),T.length===0&&T.ended?H(this):l(this),null;if(N=a(N,T),N===0&&T.ended)return T.length===0&&H(this),null;var fe=T.needReadable;m("need readable",fe),(T.length===0||T.length-N<T.highWaterMark)&&(fe=!0,m("length less than watermark",fe)),T.ended||T.reading?(fe=!1,m("reading or ended",fe)):fe&&(m("do read"),T.reading=!0,T.sync=!0,T.length===0&&(T.needReadable=!0),this._read(T.highWaterMark),T.sync=!1,T.reading||(N=a(j,T)));var ee;return N>0?ee=P(N,T):ee=null,ee===null?(T.needReadable=T.length<=T.highWaterMark,N=0):(T.length-=N,T.awaitDrain=0),T.length===0&&(T.ended||(T.needReadable=!0),j!==N&&T.ended&&H(this)),ee!==null&&this.emit("data",ee),ee};function o(N,T){if(m("onEofChunk"),!T.ended){if(T.decoder){var j=T.decoder.end();j&&j.length&&(T.buffer.push(j),T.length+=T.objectMode?1:j.length)}T.ended=!0,T.sync?l(N):(T.needReadable=!1,T.emittedReadable||(T.emittedReadable=!0,b(N)))}}function l(N){var T=N._readableState;m("emitReadable",T.needReadable,T.emittedReadable),T.needReadable=!1,T.emittedReadable||(m("emitReadable",T.flowing),T.emittedReadable=!0,we.process$1.nextTick(b,N))}function b(N){var T=N._readableState;m("emitReadable_",T.destroyed,T.length,T.ended),!T.destroyed&&(T.length||T.ended)&&(N.emit("readable"),T.emittedReadable=!1),T.needReadable=!T.flowing&&!T.ended&&T.length<=T.highWaterMark,X(N)}function f(N,T){T.readingMore||(T.readingMore=!0,we.process$1.nextTick(t,N,T))}function t(N,T){for(;!T.reading&&!T.ended&&(T.length<T.highWaterMark||T.flowing&&T.length===0);){var j=T.length;if(m("maybeReadMore read 0"),N.read(0),j===T.length)break}T.readingMore=!1}V.prototype._read=function(N){K(this,new B("_read()"))},V.prototype.pipe=function(N,T){var j=this,fe=this._readableState;switch(fe.pipesCount){case 0:fe.pipes=N;break;case 1:fe.pipes=[fe.pipes,N];break;default:fe.pipes.push(N);break}fe.pipesCount+=1,m("pipe count=%d opts=%j",fe.pipesCount,T);var ee=(!T||T.end!==!1)&&N!==we.process$1.stdout&&N!==we.process$1.stderr,te=ee?ie:ot;fe.endEmitted?we.process$1.nextTick(te):j.once("end",te),N.on("unpipe",he);function he(be,me){m("onunpipe"),be===j&&me&&me.hasUnpiped===!1&&(me.hasUnpiped=!0,oe())}function ie(){m("onend"),N.end()}var ne=s(j);N.on("drain",ne);var pe=!1;function oe(){m("cleanup"),N.removeListener("close",de),N.removeListener("finish",ve),N.removeListener("drain",ne),N.removeListener("error",Re),N.removeListener("unpipe",he),j.removeListener("end",ie),j.removeListener("end",ot),j.removeListener("data",se),pe=!0,fe.awaitDrain&&(!N._writableState||N._writableState.needDrain)&&ne()}j.on("data",se);function se(be){m("ondata");var me=N.write(be);m("dest.write",me),me===!1&&((fe.pipesCount===1&&fe.pipes===N||fe.pipesCount>1&&k(fe.pipes,N)!==-1)&&!pe&&(m("false write response, pause",fe.awaitDrain),fe.awaitDrain++),j.pause())}function Re(be){m("onerror",be),ot(),N.removeListener("error",Re),x(N,"error")===0&&K(N,be)}Y(N,"error",Re);function de(){N.removeListener("finish",ve),ot()}N.once("close",de);function ve(){m("onfinish"),N.removeListener("close",de),ot()}N.once("finish",ve);function ot(){m("unpipe"),j.unpipe(N)}return N.emit("pipe",j),fe.flowing||(m("pipe resume"),j.resume()),N};function s(N){return function(){var j=N._readableState;m("pipeOnDrain",j.awaitDrain),j.awaitDrain&&j.awaitDrain--,j.awaitDrain===0&&x(N,"data")&&(j.flowing=!0,X(N))}}V.prototype.unpipe=function(N){var T=this._readableState,j={hasUnpiped:!1};if(T.pipesCount===0)return this;if(T.pipesCount===1)return N&&N!==T.pipes?this:(N||(N=T.pipes),T.pipes=null,T.pipesCount=0,T.flowing=!1,N&&N.emit("unpipe",this,j),this);if(!N){var fe=T.pipes,ee=T.pipesCount;T.pipes=null,T.pipesCount=0,T.flowing=!1;for(var te=0;te<ee;te++)fe[te].emit("unpipe",this,{hasUnpiped:!1});return this}var he=k(T.pipes,N);return he===-1?this:(T.pipes.splice(he,1),T.pipesCount-=1,T.pipesCount===1&&(T.pipes=T.pipes[0]),N.emit("unpipe",this,j),this)},V.prototype.on=function(N,T){var j=S.prototype.on.call(this,N,T),fe=this._readableState;return N==="data"?(fe.readableListening=this.listenerCount("readable")>0,fe.flowing!==!1&&this.resume()):N==="readable"&&!fe.endEmitted&&!fe.readableListening&&(fe.readableListening=fe.needReadable=!0,fe.flowing=!1,fe.emittedReadable=!1,m("on readable",fe.length,fe.reading),fe.length?l(this):fe.reading||we.process$1.nextTick(W,this)),j},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(N,T){var j=S.prototype.removeListener.call(this,N,T);return N==="readable"&&we.process$1.nextTick($,this),j},V.prototype.removeAllListeners=function(N){var T=S.prototype.removeAllListeners.apply(this,arguments);return(N==="readable"||N===void 0)&&we.process$1.nextTick($,this),T};function $(N){var T=N._readableState;T.readableListening=N.listenerCount("readable")>0,T.resumeScheduled&&!T.paused?T.flowing=!0:N.listenerCount("data")>0&&N.resume()}function W(N){m("readable nexttick read 0"),N.read(0)}V.prototype.resume=function(){var N=this._readableState;return N.flowing||(m("resume"),N.flowing=!N.readableListening,U(this,N)),N.paused=!1,this};function U(N,T){T.resumeScheduled||(T.resumeScheduled=!0,we.process$1.nextTick(Q,N,T))}function Q(N,T){m("resume",T.reading),T.reading||N.read(0),T.resumeScheduled=!1,N.emit("resume"),X(N),T.flowing&&!T.reading&&N.read(0)}V.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function X(N){var T=N._readableState;for(m("flow",T.flowing);T.flowing&&N.read()!==null;);}V.prototype.wrap=function(N){var T=this,j=this._readableState,fe=!1;N.on("end",function(){if(m("wrapped end"),j.decoder&&!j.ended){var he=j.decoder.end();he&&he.length&&T.push(he)}T.push(null)}),N.on("data",function(he){if(m("wrapped data"),j.decoder&&(he=j.decoder.write(he)),!(j.objectMode&&he==null)&&!(!j.objectMode&&(!he||!he.length))){var ie=T.push(he);ie||(fe=!0,N.pause())}});for(var ee in N)this[ee]===void 0&&typeof N[ee]=="function"&&(this[ee]=(function(ie){return function(){return N[ie].apply(N,arguments)}})(ee));for(var te=0;te<q.length;te++)N.on(q[te],this.emit.bind(this,q[te]));return this._read=function(he){m("wrapped _read",he),fe&&(fe=!1,N.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return R===void 0&&(R=s1()),R(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(T){this._readableState&&(this._readableState.flowing=T)}}),V._fromList=P,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function P(N,T){if(T.length===0)return null;var j;return T.objectMode?j=T.buffer.shift():!N||N>=T.length?(T.decoder?j=T.buffer.join(""):T.buffer.length===1?j=T.buffer.first():j=T.buffer.concat(T.length),T.buffer.clear()):j=T.buffer.consume(N,T.decoder),j}function H(N){var T=N._readableState;m("endReadable",T.endEmitted),T.endEmitted||(T.ended=!0,we.process$1.nextTick(Z,T,N))}function Z(N,T){if(m("endReadableNT",N.endEmitted,N.length),!N.endEmitted&&N.length===0&&(N.endEmitted=!0,T.readable=!1,T.emit("end"),N.autoDestroy)){var j=T._writableState;(!j||j.autoDestroy&&j.finished)&&T.destroy()}}typeof Symbol=="function"&&(V.from=function(N,T){return D===void 0&&(D=h1()),D(V,N,T)});function k(N,T){for(var j=0,fe=N.length;j<fe;j++)if(N[j]===T)return j;return-1}return Ai}var Si,Rf;function Hu(){if(Rf)return Si;Rf=1,Si=y;var g=mr().codes,x=g.ERR_METHOD_NOT_IMPLEMENTED,S=g.ERR_MULTIPLE_CALLBACK,c=g.ERR_TRANSFORM_ALREADY_TRANSFORMING,E=g.ERR_TRANSFORM_WITH_LENGTH_0,i=cr();dt()(y,i);function _(d,p){var v=this._transformState;v.transforming=!1;var w=v.writecb;if(w===null)return this.emit("error",new S);v.writechunk=null,v.writecb=null,p!=null&&this.push(p),w(d);var M=this._readableState;M.reading=!1,(M.needReadable||M.length<M.highWaterMark)&&this._read(M.highWaterMark)}function y(d){if(!(this instanceof y))return new y(d);i.call(this,d),this._transformState={afterTransform:_.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",m)}function m(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(p,v){h(d,p,v)}):h(this,null,null)}y.prototype.push=function(d,p){return this._transformState.needTransform=!1,i.prototype.push.call(this,d,p)},y.prototype._transform=function(d,p,v){v(new x("_transform()"))},y.prototype._write=function(d,p,v){var w=this._transformState;if(w.writecb=v,w.writechunk=d,w.writeencoding=p,!w.transforming){var M=this._readableState;(w.needTransform||M.needReadable||M.length<M.highWaterMark)&&this._read(M.highWaterMark)}},y.prototype._read=function(d){var p=this._transformState;p.writechunk!==null&&!p.transforming?(p.transforming=!0,this._transform(p.writechunk,p.writeencoding,p.afterTransform)):p.needTransform=!0},y.prototype._destroy=function(d,p){i.prototype._destroy.call(this,d,function(v){p(v)})};function h(d,p,v){if(p)return d.emit("error",p);if(v!=null&&d.push(v),d._writableState.length)throw new E;if(d._transformState.transforming)throw new c;return d.push(null)}return Si}var Bi,Tf;function u1(){if(Tf)return Bi;Tf=1,Bi=x;var g=Hu();dt()(x,g);function x(S){if(!(this instanceof x))return new x(S);g.call(this,S)}return x.prototype._transform=function(S,c,E){E(null,S)},Bi}var Fi,If;function c1(){if(If)return Fi;If=1;var g;function x(v){var w=!1;return function(){w||(w=!0,v.apply(void 0,arguments))}}var S=mr().codes,c=S.ERR_MISSING_ARGS,E=S.ERR_STREAM_DESTROYED;function i(v){if(v)throw v}function _(v){return v.setHeader&&typeof v.abort=="function"}function y(v,w,M,A){A=x(A);var B=!1;v.on("close",function(){B=!0}),g===void 0&&(g=H0()),g(v,{readable:w,writable:M},function(C){if(C)return A(C);B=!0,A()});var F=!1;return function(C){if(!B&&!F){if(F=!0,_(v))return v.abort();if(typeof v.destroy=="function")return v.destroy();A(C||new E("pipe"))}}}function m(v){v()}function h(v,w){return v.pipe(w)}function d(v){return!v.length||typeof v[v.length-1]!="function"?i:v.pop()}function p(){for(var v=arguments.length,w=new Array(v),M=0;M<v;M++)w[M]=arguments[M];var A=d(w);if(Array.isArray(w[0])&&(w=w[0]),w.length<2)throw new c("streams");var B,F=w.map(function(C,R){var D=R<w.length-1,K=R>0;return y(C,D,K,function(q){B||(B=q),q&&F.forEach(m),!D&&(F.forEach(m),A(B))})});return w.reduce(h)}return Fi=p,Fi}var Ci,kf;function ii(){if(kf)return Ci;kf=1,Ci=S;var g=vr().EventEmitter,x=dt();x(S,g),S.Readable=Lu(),S.Writable=Uu(),S.Duplex=cr(),S.Transform=Hu(),S.PassThrough=u1(),S.finished=H0(),S.pipeline=c1(),S.Stream=S;function S(){g.call(this)}return S.prototype.pipe=function(c,E){var i=this;function _(w){c.writable&&c.write(w)===!1&&i.pause&&i.pause()}i.on("data",_);function y(){i.readable&&i.resume&&i.resume()}c.on("drain",y),!c._isStdio&&(!E||E.end!==!1)&&(i.on("end",h),i.on("close",d));var m=!1;function h(){m||(m=!0,c.end())}function d(){m||(m=!0,typeof c.destroy=="function"&&c.destroy())}function p(w){if(v(),g.listenerCount(this,"error")===0)throw w}i.on("error",p),c.on("error",p);function v(){i.removeListener("data",_),c.removeListener("drain",y),i.removeListener("end",h),i.removeListener("close",d),i.removeListener("error",p),c.removeListener("error",p),i.removeListener("end",v),i.removeListener("close",v),c.removeListener("close",v)}return i.on("end",v),i.on("close",v),c.on("close",v),c.emit("pipe",i),c},Ci}var Di,Nf;function zu(){if(Nf)return Di;Nf=1;var g=ze.requireSafeBuffer().Buffer,x=ii().Transform,S=dt();function c(y){x.call(this),this._block=g.allocUnsafe(y),this._blockSize=y,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}S(c,x),c.prototype._transform=function(y,m,h){var d=null;try{this.update(y,m)}catch(p){d=p}h(d)},c.prototype._flush=function(y){var m=null;try{this.push(this.digest())}catch(h){m=h}y(m)};var E=typeof Uint8Array<"u",i=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(g.prototype instanceof Uint8Array||g.TYPED_ARRAY_SUPPORT);function _(y,m){if(y instanceof g)return y;if(typeof y=="string")return g.from(y,m);if(i&&ArrayBuffer.isView(y)){if(y.byteLength===0)return g.alloc(0);var h=g.from(y.buffer,y.byteOffset,y.byteLength);if(h.byteLength===y.byteLength)return h}if(E&&y instanceof Uint8Array||g.isBuffer(y)&&y.constructor&&typeof y.constructor.isBuffer=="function"&&y.constructor.isBuffer(y))return g.from(y);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return c.prototype.update=function(y,m){if(this._finalized)throw new Error("Digest already called");y=_(y,m);for(var h=this._block,d=0;this._blockOffset+y.length-d>=this._blockSize;){for(var p=this._blockOffset;p<this._blockSize;)h[p++]=y[d++];this._update(),this._blockOffset=0}for(;d<y.length;)h[this._blockOffset++]=y[d++];for(var v=0,w=y.length*8;w>0;++v)this._length[v]+=w,w=this._length[v]/4294967296|0,w>0&&(this._length[v]-=4294967296*w);return this},c.prototype._update=function(){throw new Error("_update is not implemented")},c.prototype.digest=function(y){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var m=this._digest();y!==void 0&&(m=m.toString(y)),this._block.fill(0),this._blockOffset=0;for(var h=0;h<4;++h)this._length[h]=0;return m},c.prototype._digest=function(){throw new Error("_digest is not implemented")},Di=c,Di}var Ri,Pf;function z0(){if(Pf)return Ri;Pf=1;var g=dt(),x=zu(),S=ze.requireSafeBuffer().Buffer,c=new Array(16);function E(){x.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}g(E,x),E.prototype._update=function(){for(var d=c,p=0;p<16;++p)d[p]=this._block.readInt32LE(p*4);var v=this._a,w=this._b,M=this._c,A=this._d;v=_(v,w,M,A,d[0],3614090360,7),A=_(A,v,w,M,d[1],3905402710,12),M=_(M,A,v,w,d[2],606105819,17),w=_(w,M,A,v,d[3],3250441966,22),v=_(v,w,M,A,d[4],4118548399,7),A=_(A,v,w,M,d[5],1200080426,12),M=_(M,A,v,w,d[6],2821735955,17),w=_(w,M,A,v,d[7],4249261313,22),v=_(v,w,M,A,d[8],1770035416,7),A=_(A,v,w,M,d[9],2336552879,12),M=_(M,A,v,w,d[10],4294925233,17),w=_(w,M,A,v,d[11],2304563134,22),v=_(v,w,M,A,d[12],1804603682,7),A=_(A,v,w,M,d[13],4254626195,12),M=_(M,A,v,w,d[14],2792965006,17),w=_(w,M,A,v,d[15],1236535329,22),v=y(v,w,M,A,d[1],4129170786,5),A=y(A,v,w,M,d[6],3225465664,9),M=y(M,A,v,w,d[11],643717713,14),w=y(w,M,A,v,d[0],3921069994,20),v=y(v,w,M,A,d[5],3593408605,5),A=y(A,v,w,M,d[10],38016083,9),M=y(M,A,v,w,d[15],3634488961,14),w=y(w,M,A,v,d[4],3889429448,20),v=y(v,w,M,A,d[9],568446438,5),A=y(A,v,w,M,d[14],3275163606,9),M=y(M,A,v,w,d[3],4107603335,14),w=y(w,M,A,v,d[8],1163531501,20),v=y(v,w,M,A,d[13],2850285829,5),A=y(A,v,w,M,d[2],4243563512,9),M=y(M,A,v,w,d[7],1735328473,14),w=y(w,M,A,v,d[12],2368359562,20),v=m(v,w,M,A,d[5],4294588738,4),A=m(A,v,w,M,d[8],2272392833,11),M=m(M,A,v,w,d[11],1839030562,16),w=m(w,M,A,v,d[14],4259657740,23),v=m(v,w,M,A,d[1],2763975236,4),A=m(A,v,w,M,d[4],1272893353,11),M=m(M,A,v,w,d[7],4139469664,16),w=m(w,M,A,v,d[10],3200236656,23),v=m(v,w,M,A,d[13],681279174,4),A=m(A,v,w,M,d[0],3936430074,11),M=m(M,A,v,w,d[3],3572445317,16),w=m(w,M,A,v,d[6],76029189,23),v=m(v,w,M,A,d[9],3654602809,4),A=m(A,v,w,M,d[12],3873151461,11),M=m(M,A,v,w,d[15],530742520,16),w=m(w,M,A,v,d[2],3299628645,23),v=h(v,w,M,A,d[0],4096336452,6),A=h(A,v,w,M,d[7],1126891415,10),M=h(M,A,v,w,d[14],2878612391,15),w=h(w,M,A,v,d[5],4237533241,21),v=h(v,w,M,A,d[12],1700485571,6),A=h(A,v,w,M,d[3],2399980690,10),M=h(M,A,v,w,d[10],4293915773,15),w=h(w,M,A,v,d[1],2240044497,21),v=h(v,w,M,A,d[8],1873313359,6),A=h(A,v,w,M,d[15],4264355552,10),M=h(M,A,v,w,d[6],2734768916,15),w=h(w,M,A,v,d[13],1309151649,21),v=h(v,w,M,A,d[4],4149444226,6),A=h(A,v,w,M,d[11],3174756917,10),M=h(M,A,v,w,d[2],718787259,15),w=h(w,M,A,v,d[9],3951481745,21),this._a=this._a+v|0,this._b=this._b+w|0,this._c=this._c+M|0,this._d=this._d+A|0},E.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 d=S.allocUnsafe(16);return d.writeInt32LE(this._a,0),d.writeInt32LE(this._b,4),d.writeInt32LE(this._c,8),d.writeInt32LE(this._d,12),d};function i(d,p){return d<<p|d>>>32-p}function _(d,p,v,w,M,A,B){return i(d+(p&v|~p&w)+M+A|0,B)+p|0}function y(d,p,v,w,M,A,B){return i(d+(p&w|v&~w)+M+A|0,B)+p|0}function m(d,p,v,w,M,A,B){return i(d+(p^v^w)+M+A|0,B)+p|0}function h(d,p,v,w,M,A,B){return i(d+(v^(p|~w))+M+A|0,B)+p|0}return Ri=E,Ri}var Ti,qf;function $u(){if(qf)return Ti;qf=1;var g=ze.requireDist().Buffer,x=dt(),S=zu(),c=new Array(16),E=[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],i=[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],_=[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],y=[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],m=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function d(){S.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}x(d,S),d.prototype._update=function(){for(var F=c,C=0;C<16;++C)F[C]=this._block.readInt32LE(C*4);for(var R=this._a|0,D=this._b|0,K=this._c|0,q=this._d|0,Y=this._e|0,J=this._a|0,V=this._b|0,re=this._c|0,u=this._d|0,e=this._e|0,r=0;r<80;r+=1){var n,a;r<16?(n=v(R,D,K,q,Y,F[E[r]],m[0],_[r]),a=B(J,V,re,u,e,F[i[r]],h[0],y[r])):r<32?(n=w(R,D,K,q,Y,F[E[r]],m[1],_[r]),a=A(J,V,re,u,e,F[i[r]],h[1],y[r])):r<48?(n=M(R,D,K,q,Y,F[E[r]],m[2],_[r]),a=M(J,V,re,u,e,F[i[r]],h[2],y[r])):r<64?(n=A(R,D,K,q,Y,F[E[r]],m[3],_[r]),a=w(J,V,re,u,e,F[i[r]],h[3],y[r])):(n=B(R,D,K,q,Y,F[E[r]],m[4],_[r]),a=v(J,V,re,u,e,F[i[r]],h[4],y[r])),R=Y,Y=q,q=p(K,10),K=D,D=n,J=e,e=u,u=p(re,10),re=V,V=a}var o=this._b+K+u|0;this._b=this._c+q+e|0,this._c=this._d+Y+J|0,this._d=this._e+R+V|0,this._e=this._a+D+re|0,this._a=o},d.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 F=g.alloc?g.alloc(20):new g(20);return F.writeInt32LE(this._a,0),F.writeInt32LE(this._b,4),F.writeInt32LE(this._c,8),F.writeInt32LE(this._d,12),F.writeInt32LE(this._e,16),F};function p(F,C){return F<<C|F>>>32-C}function v(F,C,R,D,K,q,Y,J){return p(F+(C^R^D)+q+Y|0,J)+K|0}function w(F,C,R,D,K,q,Y,J){return p(F+(C&R|~C&D)+q+Y|0,J)+K|0}function M(F,C,R,D,K,q,Y,J){return p(F+((C|~R)^D)+q+Y|0,J)+K|0}function A(F,C,R,D,K,q,Y,J){return p(F+(C&D|R&~D)+q+Y|0,J)+K|0}function B(F,C,R,D,K,q,Y,J){return p(F+(C^(R|~D))+q+Y|0,J)+K|0}return Ti=d,Ti}var Ii={exports:{}},ki,Of;function l1(){if(Of)return ki;Of=1;var g={}.toString;return ki=Array.isArray||function(x){return g.call(x)=="[object Array]"},ki}var Ni,Uf;function yr(){return Uf||(Uf=1,Ni=TypeError),Ni}var Pi,Lf;function $0(){return Lf||(Lf=1,Pi=Object),Pi}var qi,Hf;function d1(){return Hf||(Hf=1,qi=Error),qi}var Oi,zf;function p1(){return zf||(zf=1,Oi=EvalError),Oi}var Ui,$f;function v1(){return $f||($f=1,Ui=RangeError),Ui}var Li,Kf;function b1(){return Kf||(Kf=1,Li=ReferenceError),Li}var Hi,Wf;function Ku(){return Wf||(Wf=1,Hi=SyntaxError),Hi}var zi,jf;function m1(){return jf||(jf=1,zi=URIError),zi}var $i,Gf;function y1(){return Gf||(Gf=1,$i=Math.abs),$i}var Ki,Vf;function g1(){return Vf||(Vf=1,Ki=Math.floor),Ki}var Wi,Zf;function x1(){return Zf||(Zf=1,Wi=Math.max),Wi}var ji,Xf;function w1(){return Xf||(Xf=1,ji=Math.min),ji}var Gi,Yf;function M1(){return Yf||(Yf=1,Gi=Math.pow),Gi}var Vi,Jf;function _1(){return Jf||(Jf=1,Vi=Math.round),Vi}var Zi,Qf;function E1(){return Qf||(Qf=1,Zi=Number.isNaN||function(x){return x!==x}),Zi}var Xi,eo;function A1(){if(eo)return Xi;eo=1;var g=E1();return Xi=function(S){return g(S)||S===0?S:S<0?-1:1},Xi}var Yi,to;function S1(){return to||(to=1,Yi=Object.getOwnPropertyDescriptor),Yi}var Ji,ro;function gr(){if(ro)return Ji;ro=1;var g=S1();if(g)try{g([],"length")}catch{g=null}return Ji=g,Ji}var Qi,io;function ni(){if(io)return Qi;io=1;var g=Object.defineProperty||!1;if(g)try{g({},"a",{value:1})}catch{g=!1}return Qi=g,Qi}var en,no;function K0(){return no||(no=1,en=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var x={},S=Symbol("test"),c=Object(S);if(typeof S=="string"||Object.prototype.toString.call(S)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var E=42;x[S]=E;for(var i in x)return!1;if(typeof Object.keys=="function"&&Object.keys(x).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(x).length!==0)return!1;var _=Object.getOwnPropertySymbols(x);if(_.length!==1||_[0]!==S||!Object.prototype.propertyIsEnumerable.call(x,S))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var y=Object.getOwnPropertyDescriptor(x,S);if(y.value!==E||y.enumerable!==!0)return!1}return!0}),en}var tn,ao;function B1(){if(ao)return tn;ao=1;var g=typeof Symbol<"u"&&Symbol,x=K0();return tn=function(){return typeof g!="function"||typeof Symbol!="function"||typeof g("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:x()},tn}var rn,fo;function Wu(){return fo||(fo=1,rn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),rn}var nn,oo;function ju(){if(oo)return nn;oo=1;var g=$0();return nn=g.getPrototypeOf||null,nn}var an,so;function F1(){if(so)return an;so=1;var g="Function.prototype.bind called on incompatible ",x=Object.prototype.toString,S=Math.max,c="[object Function]",E=function(m,h){for(var d=[],p=0;p<m.length;p+=1)d[p]=m[p];for(var v=0;v<h.length;v+=1)d[v+m.length]=h[v];return d},i=function(m,h){for(var d=[],p=h,v=0;p<m.length;p+=1,v+=1)d[v]=m[p];return d},_=function(y,m){for(var h="",d=0;d<y.length;d+=1)h+=y[d],d+1<y.length&&(h+=m);return h};return an=function(m){var h=this;if(typeof h!="function"||x.apply(h)!==c)throw new TypeError(g+h);for(var d=i(arguments,1),p,v=function(){if(this instanceof p){var F=h.apply(this,E(d,arguments));return Object(F)===F?F:this}return h.apply(m,E(d,arguments))},w=S(0,h.length-d.length),M=[],A=0;A<w;A++)M[A]="$"+A;if(p=Function("binder","return function ("+_(M,",")+"){ return binder.apply(this,arguments); }")(v),h.prototype){var B=function(){};B.prototype=h.prototype,p.prototype=new B,B.prototype=null}return p},an}var fn,ho;function Ar(){if(ho)return fn;ho=1;var g=F1();return fn=Function.prototype.bind||g,fn}var on,uo;function W0(){return uo||(uo=1,on=Function.prototype.call),on}var sn,co;function j0(){return co||(co=1,sn=Function.prototype.apply),sn}var hn,lo;function C1(){return lo||(lo=1,hn=typeof Reflect<"u"&&Reflect&&Reflect.apply),hn}var un,po;function Gu(){if(po)return un;po=1;var g=Ar(),x=j0(),S=W0(),c=C1();return un=c||g.call(S,x),un}var cn,vo;function G0(){if(vo)return cn;vo=1;var g=Ar(),x=yr(),S=W0(),c=Gu();return cn=function(i){if(i.length<1||typeof i[0]!="function")throw new x("a function is required");return c(g,S,i)},cn}var ln,bo;function D1(){if(bo)return ln;bo=1;var g=G0(),x=gr(),S;try{S=[].__proto__===Array.prototype}catch(_){if(!_||typeof _!="object"||!("code"in _)||_.code!=="ERR_PROTO_ACCESS")throw _}var c=!!S&&x&&x(Object.prototype,"__proto__"),E=Object,i=E.getPrototypeOf;return ln=c&&typeof c.get=="function"?g([c.get]):typeof i=="function"?function(y){return i(y==null?y:E(y))}:!1,ln}var dn,mo;function V0(){if(mo)return dn;mo=1;var g=Wu(),x=ju(),S=D1();return dn=g?function(E){return g(E)}:x?function(E){if(!E||typeof E!="object"&&typeof E!="function")throw new TypeError("getProto: not an object");return x(E)}:S?function(E){return S(E)}:null,dn}var pn,yo;function Vu(){if(yo)return pn;yo=1;var g=Function.prototype.call,x=Object.prototype.hasOwnProperty,S=Ar();return pn=S.call(g,x),pn}var vn,go;function Z0(){if(go)return vn;go=1;var g,x=$0(),S=d1(),c=p1(),E=v1(),i=b1(),_=Ku(),y=yr(),m=m1(),h=y1(),d=g1(),p=x1(),v=w1(),w=M1(),M=_1(),A=A1(),B=Function,F=function(Z){try{return B('"use strict"; return ('+Z+").constructor;")()}catch{}},C=gr(),R=ni(),D=function(){throw new y},K=C?(function(){try{return arguments.callee,D}catch{try{return C(arguments,"callee").get}catch{return D}}})():D,q=B1()(),Y=V0(),J=ju(),V=Wu(),re=j0(),u=W0(),e={},r=typeof Uint8Array>"u"||!Y?g:Y(Uint8Array),n={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":q&&Y?Y([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":e,"%AsyncGenerator%":e,"%AsyncGeneratorFunction%":e,"%AsyncIteratorPrototype%":e,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":S,"%eval%":eval,"%EvalError%":c,"%Float16Array%":typeof Float16Array>"u"?g:Float16Array,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":B,"%GeneratorFunction%":e,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":q&&Y?Y(Y([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!q||!Y?g:Y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":x,"%Object.getOwnPropertyDescriptor%":C,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":E,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!q||!Y?g:Y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":q&&Y?Y(""[Symbol.iterator]()):g,"%Symbol%":q?Symbol:g,"%SyntaxError%":_,"%ThrowTypeError%":K,"%TypedArray%":r,"%TypeError%":y,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":m,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet,"%Function.prototype.call%":u,"%Function.prototype.apply%":re,"%Object.defineProperty%":R,"%Object.getPrototypeOf%":J,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":v,"%Math.pow%":w,"%Math.round%":M,"%Math.sign%":A,"%Reflect.getPrototypeOf%":V};if(Y)try{null.error}catch(Z){var a=Y(Y(Z));n["%Error.prototype%"]=a}var o=function Z(k){var N;if(k==="%AsyncFunction%")N=F("async function () {}");else if(k==="%GeneratorFunction%")N=F("function* () {}");else if(k==="%AsyncGeneratorFunction%")N=F("async function* () {}");else if(k==="%AsyncGenerator%"){var T=Z("%AsyncGeneratorFunction%");T&&(N=T.prototype)}else if(k==="%AsyncIteratorPrototype%"){var j=Z("%AsyncGenerator%");j&&Y&&(N=Y(j.prototype))}return n[k]=N,N},l={__proto__:null,"%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"]},b=Ar(),f=Vu(),t=b.call(u,Array.prototype.concat),s=b.call(re,Array.prototype.splice),$=b.call(u,String.prototype.replace),W=b.call(u,String.prototype.slice),U=b.call(u,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,P=function(k){var N=W(k,0,1),T=W(k,-1);if(N==="%"&&T!=="%")throw new _("invalid intrinsic syntax, expected closing `%`");if(T==="%"&&N!=="%")throw new _("invalid intrinsic syntax, expected opening `%`");var j=[];return $(k,Q,function(fe,ee,te,he){j[j.length]=te?$(he,X,"$1"):ee||fe}),j},H=function(k,N){var T=k,j;if(f(l,T)&&(j=l[T],T="%"+j[0]+"%"),f(n,T)){var fe=n[T];if(fe===e&&(fe=o(T)),typeof fe>"u"&&!N)throw new y("intrinsic "+k+" exists, but is not available. Please file an issue!");return{alias:j,name:T,value:fe}}throw new _("intrinsic "+k+" does not exist!")};return vn=function(k,N){if(typeof k!="string"||k.length===0)throw new y("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof N!="boolean")throw new y('"allowMissing" argument must be a boolean');if(U(/^%?[^%]*%?$/,k)===null)throw new _("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var T=P(k),j=T.length>0?T[0]:"",fe=H("%"+j+"%",N),ee=fe.name,te=fe.value,he=!1,ie=fe.alias;ie&&(j=ie[0],s(T,t([0,1],ie)));for(var ne=1,pe=!0;ne<T.length;ne+=1){var oe=T[ne],se=W(oe,0,1),Re=W(oe,-1);if((se==='"'||se==="'"||se==="`"||Re==='"'||Re==="'"||Re==="`")&&se!==Re)throw new _("property names with quotes must have matching quotes");if((oe==="constructor"||!pe)&&(he=!0),j+="."+oe,ee="%"+j+"%",f(n,ee))te=n[ee];else if(te!=null){if(!(oe in te)){if(!N)throw new y("base intrinsic for "+k+" exists, but the property is not available.");return}if(C&&ne+1>=T.length){var de=C(te,oe);pe=!!de,pe&&"get"in de&&!("originalValue"in de.get)?te=de.get:te=te[oe]}else pe=f(te,oe),te=te[oe];pe&&!he&&(n[ee]=te)}}return te},vn}var bn,xo;function X0(){if(xo)return bn;xo=1;var g=Z0(),x=G0(),S=x([g("%String.prototype.indexOf%")]);return bn=function(E,i){var _=g(E,!!i);return typeof _=="function"&&S(E,".prototype.")>-1?x([_]):_},bn}var mn,wo;function R1(){if(wo)return mn;wo=1;var g=Function.prototype.toString,x=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,S,c;if(typeof x=="function"&&typeof Object.defineProperty=="function")try{S=Object.defineProperty({},"length",{get:function(){throw c}}),c={},x(function(){throw 42},null,S)}catch(C){C!==c&&(x=null)}else x=null;var E=/^\s*class\b/,i=function(R){try{var D=g.call(R);return E.test(D)}catch{return!1}},_=function(R){try{return i(R)?!1:(g.call(R),!0)}catch{return!1}},y=Object.prototype.toString,m="[object Object]",h="[object Function]",d="[object GeneratorFunction]",p="[object HTMLAllCollection]",v="[object HTML document.all class]",w="[object HTMLCollection]",M=typeof Symbol=="function"&&!!Symbol.toStringTag,A=!(0 in[,]),B=function(){return!1};if(typeof document=="object"){var F=document.all;y.call(F)===y.call(document.all)&&(B=function(R){if((A||!R)&&(typeof R>"u"||typeof R=="object"))try{var D=y.call(R);return(D===p||D===v||D===w||D===m)&&R("")==null}catch{}return!1})}return mn=x?function(R){if(B(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;try{x(R,null,S)}catch(D){if(D!==c)return!1}return!i(R)&&_(R)}:function(R){if(B(R))return!0;if(!R||typeof R!="function"&&typeof R!="object")return!1;if(M)return _(R);if(i(R))return!1;var D=y.call(R);return D!==h&&D!==d&&!/^\[object HTML/.test(D)?!1:_(R)},mn}var yn,Mo;function T1(){if(Mo)return yn;Mo=1;var g=R1(),x=Object.prototype.toString,S=Object.prototype.hasOwnProperty,c=function(m,h,d){for(var p=0,v=m.length;p<v;p++)S.call(m,p)&&(d==null?h(m[p],p,m):h.call(d,m[p],p,m))},E=function(m,h,d){for(var p=0,v=m.length;p<v;p++)d==null?h(m.charAt(p),p,m):h.call(d,m.charAt(p),p,m)},i=function(m,h,d){for(var p in m)S.call(m,p)&&(d==null?h(m[p],p,m):h.call(d,m[p],p,m))};function _(y){return x.call(y)==="[object Array]"}return yn=function(m,h,d){if(!g(h))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=d),_(m)?c(m,h,p):typeof m=="string"?E(m,h,p):i(m,h,p)},yn}var gn,_o;function I1(){return _o||(_o=1,gn=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),gn}var xn,Eo;function k1(){if(Eo)return xn;Eo=1;var g=I1(),x=typeof globalThis>"u"?ze.commonjsGlobal:globalThis;return xn=function(){for(var c=[],E=0;E<g.length;E++)typeof x[g[E]]=="function"&&(c[c.length]=g[E]);return c},xn}var wn={exports:{}},Mn,Ao;function Zu(){if(Ao)return Mn;Ao=1;var g=ni(),x=Ku(),S=yr(),c=gr();return Mn=function(i,_,y){if(!i||typeof i!="object"&&typeof i!="function")throw new S("`obj` must be an object or a function`");if(typeof _!="string"&&typeof _!="symbol")throw new S("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new S("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new S("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new S("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new S("`loose`, if provided, must be a boolean");var m=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,v=!!c&&c(i,_);if(g)g(i,_,{configurable:d===null&&v?v.configurable:!d,enumerable:m===null&&v?v.enumerable:!m,value:y,writable:h===null&&v?v.writable:!h});else if(p||!m&&!h&&!d)i[_]=y;else throw new x("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Mn}var _n,So;function Xu(){if(So)return _n;So=1;var g=ni(),x=function(){return!!g};return x.hasArrayLengthDefineBug=function(){if(!g)return null;try{return g([],"length",{value:1}).length!==1}catch{return!0}},_n=x,_n}var En,Bo;function N1(){if(Bo)return En;Bo=1;var g=Z0(),x=Zu(),S=Xu()(),c=gr(),E=yr(),i=g("%Math.floor%");return En=function(y,m){if(typeof y!="function")throw new E("`fn` is not a function");if(typeof m!="number"||m<0||m>4294967295||i(m)!==m)throw new E("`length` must be a positive 32-bit integer");var h=arguments.length>2&&!!arguments[2],d=!0,p=!0;if("length"in y&&c){var v=c(y,"length");v&&!v.configurable&&(d=!1),v&&!v.writable&&(p=!1)}return(d||p||!h)&&(S?x(y,"length",m,!0,!0):x(y,"length",m)),y},En}var An,Fo;function P1(){if(Fo)return An;Fo=1;var g=Ar(),x=j0(),S=Gu();return An=function(){return S(g,x,arguments)},An}var Co;function Yu(){return Co||(Co=1,(function(g){var x=N1(),S=ni(),c=G0(),E=P1();g.exports=function(_){var y=c(arguments),m=_.length-(arguments.length-1);return x(y,1+(m>0?m:0),!0)},S?S(g.exports,"apply",{value:E}):g.exports.apply=E})(wn)),wn.exports}var Sn,Do;function Ju(){if(Do)return Sn;Do=1;var g=K0();return Sn=function(){return g()&&!!Symbol.toStringTag},Sn}var Bn,Ro;function Qu(){if(Ro)return Bn;Ro=1;var g=T1(),x=k1(),S=Yu(),c=X0(),E=gr(),i=V0(),_=c("Object.prototype.toString"),y=Ju()(),m=typeof globalThis>"u"?ze.commonjsGlobal:globalThis,h=x(),d=c("String.prototype.slice"),p=c("Array.prototype.indexOf",!0)||function(B,F){for(var C=0;C<B.length;C+=1)if(B[C]===F)return C;return-1},v={__proto__:null};y&&E&&i?g(h,function(A){var B=new m[A];if(Symbol.toStringTag in B&&i){var F=i(B),C=E(F,Symbol.toStringTag);if(!C&&F){var R=i(F);C=E(R,Symbol.toStringTag)}v["$"+A]=S(C.get)}}):g(h,function(A){var B=new m[A],F=B.slice||B.set;F&&(v["$"+A]=S(F))});var w=function(B){var F=!1;return g(v,function(C,R){if(!F)try{"$"+C(B)===R&&(F=d(R,1))}catch{}}),F},M=function(B){var F=!1;return g(v,function(C,R){if(!F)try{C(B),F=d(R,1)}catch{}}),F};return Bn=function(B){if(!B||typeof B!="object")return!1;if(!y){var F=d(_(B),8,-1);return p(h,F)>-1?F:F!=="Object"?!1:M(B)}return E?w(B):null},Bn}var Fn,To;function ec(){if(To)return Fn;To=1;var g=Qu();return Fn=function(S){return!!g(S)},Fn}var Cn,Io;function q1(){if(Io)return Cn;Io=1;var g=yr(),x=X0(),S=x("TypedArray.prototype.buffer",!0),c=ec();return Cn=S||function(i){if(!c(i))throw new g("Not a Typed Array");return i.buffer},Cn}var Dn,ko;function tc(){if(ko)return Dn;ko=1;var g=ze.requireSafeBuffer().Buffer,x=l1(),S=q1(),c=ArrayBuffer.isView||function(m){try{return S(m),!0}catch{return!1}},E=typeof Uint8Array<"u",i=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",_=i&&(g.prototype instanceof Uint8Array||g.TYPED_ARRAY_SUPPORT);return Dn=function(m,h){if(m instanceof g)return m;if(typeof m=="string")return g.from(m,h);if(i&&c(m)){if(m.byteLength===0)return g.alloc(0);if(_){var d=g.from(m.buffer,m.byteOffset,m.byteLength);if(d.byteLength===m.byteLength)return d}var p=m instanceof Uint8Array?m:new Uint8Array(m.buffer,m.byteOffset,m.byteLength),v=g.from(p);if(v.length===m.byteLength)return v}if(E&&m instanceof Uint8Array)return g.from(m);var w=x(m);if(w)for(var M=0;M<m.length;M+=1){var A=m[M];if(typeof A!="number"||A<0||A>255||~~A!==A)throw new RangeError("Array items must be numbers in the range 0-255.")}if(w||g.isBuffer(m)&&m.constructor&&typeof m.constructor.isBuffer=="function"&&m.constructor.isBuffer(m))return g.from(m);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Dn}var Rn,No;function xr(){if(No)return Rn;No=1;var g=ze.requireSafeBuffer().Buffer,x=tc();function S(c,E){this._block=g.alloc(c),this._finalSize=E,this._blockSize=c,this._len=0}return S.prototype.update=function(c,E){c=x(c,E||"utf8");for(var i=this._block,_=this._blockSize,y=c.length,m=this._len,h=0;h<y;){for(var d=m%_,p=Math.min(y-h,_-d),v=0;v<p;v++)i[d+v]=c[h+v];m+=p,h+=p,m%_===0&&this._update(i)}return this._len+=y,this},S.prototype.digest=function(c){var E=this._len%this._blockSize;this._block[E]=128,this._block.fill(0,E+1),E>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=this._len*8;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var _=(i&4294967295)>>>0,y=(i-_)/4294967296;this._block.writeUInt32BE(y,this._blockSize-8),this._block.writeUInt32BE(_,this._blockSize-4)}this._update(this._block);var m=this._hash();return c?m.toString(c):m},S.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Rn=S,Rn}var Tn,Po;function O1(){if(Po)return Tn;Po=1;var g=dt(),x=xr(),S=ze.requireSafeBuffer().Buffer,c=[1518500249,1859775393,-1894007588,-899497514],E=new Array(80);function i(){this.init(),this._w=E,x.call(this,64,56)}g(i,x),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function _(h){return h<<5|h>>>27}function y(h){return h<<30|h>>>2}function m(h,d,p,v){return h===0?d&p|~d&v:h===2?d&p|d&v|p&v:d^p^v}return i.prototype._update=function(h){for(var d=this._w,p=this._a|0,v=this._b|0,w=this._c|0,M=this._d|0,A=this._e|0,B=0;B<16;++B)d[B]=h.readInt32BE(B*4);for(;B<80;++B)d[B]=d[B-3]^d[B-8]^d[B-14]^d[B-16];for(var F=0;F<80;++F){var C=~~(F/20),R=_(p)+m(C,v,w,M)+A+d[F]+c[C]|0;A=M,M=w,w=y(v),v=p,p=R}this._a=p+this._a|0,this._b=v+this._b|0,this._c=w+this._c|0,this._d=M+this._d|0,this._e=A+this._e|0},i.prototype._hash=function(){var h=S.allocUnsafe(20);return h.writeInt32BE(this._a|0,0),h.writeInt32BE(this._b|0,4),h.writeInt32BE(this._c|0,8),h.writeInt32BE(this._d|0,12),h.writeInt32BE(this._e|0,16),h},Tn=i,Tn}var In,qo;function U1(){if(qo)return In;qo=1;var g=dt(),x=xr(),S=ze.requireSafeBuffer().Buffer,c=[1518500249,1859775393,-1894007588,-899497514],E=new Array(80);function i(){this.init(),this._w=E,x.call(this,64,56)}g(i,x),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function _(d){return d<<1|d>>>31}function y(d){return d<<5|d>>>27}function m(d){return d<<30|d>>>2}function h(d,p,v,w){return d===0?p&v|~p&w:d===2?p&v|p&w|v&w:p^v^w}return i.prototype._update=function(d){for(var p=this._w,v=this._a|0,w=this._b|0,M=this._c|0,A=this._d|0,B=this._e|0,F=0;F<16;++F)p[F]=d.readInt32BE(F*4);for(;F<80;++F)p[F]=_(p[F-3]^p[F-8]^p[F-14]^p[F-16]);for(var C=0;C<80;++C){var R=~~(C/20),D=y(v)+h(R,w,M,A)+B+p[C]+c[R]|0;B=A,A=M,M=m(w),w=v,v=D}this._a=v+this._a|0,this._b=w+this._b|0,this._c=M+this._c|0,this._d=A+this._d|0,this._e=B+this._e|0},i.prototype._hash=function(){var d=S.allocUnsafe(20);return d.writeInt32BE(this._a|0,0),d.writeInt32BE(this._b|0,4),d.writeInt32BE(this._c|0,8),d.writeInt32BE(this._d|0,12),d.writeInt32BE(this._e|0,16),d},In=i,In}var kn,Oo;function rc(){if(Oo)return kn;Oo=1;var g=dt(),x=xr(),S=ze.requireSafeBuffer().Buffer,c=[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],E=new Array(64);function i(){this.init(),this._w=E,x.call(this,64,56)}g(i,x),i.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};function _(v,w,M){return M^v&(w^M)}function y(v,w,M){return v&w|M&(v|w)}function m(v){return(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10)}function h(v){return(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7)}function d(v){return(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3}function p(v){return(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10}return i.prototype._update=function(v){for(var w=this._w,M=this._a|0,A=this._b|0,B=this._c|0,F=this._d|0,C=this._e|0,R=this._f|0,D=this._g|0,K=this._h|0,q=0;q<16;++q)w[q]=v.readInt32BE(q*4);for(;q<64;++q)w[q]=p(w[q-2])+w[q-7]+d(w[q-15])+w[q-16]|0;for(var Y=0;Y<64;++Y){var J=K+h(C)+_(C,R,D)+c[Y]+w[Y]|0,V=m(M)+y(M,A,B)|0;K=D,D=R,R=C,C=F+J|0,F=B,B=A,A=M,M=J+V|0}this._a=M+this._a|0,this._b=A+this._b|0,this._c=B+this._c|0,this._d=F+this._d|0,this._e=C+this._e|0,this._f=R+this._f|0,this._g=D+this._g|0,this._h=K+this._h|0},i.prototype._hash=function(){var v=S.allocUnsafe(32);return v.writeInt32BE(this._a,0),v.writeInt32BE(this._b,4),v.writeInt32BE(this._c,8),v.writeInt32BE(this._d,12),v.writeInt32BE(this._e,16),v.writeInt32BE(this._f,20),v.writeInt32BE(this._g,24),v.writeInt32BE(this._h,28),v},kn=i,kn}var Nn,Uo;function L1(){if(Uo)return Nn;Uo=1;var g=dt(),x=rc(),S=xr(),c=ze.requireSafeBuffer().Buffer,E=new Array(64);function i(){this.init(),this._w=E,S.call(this,64,56)}return g(i,x),i.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},i.prototype._hash=function(){var _=c.allocUnsafe(28);return _.writeInt32BE(this._a,0),_.writeInt32BE(this._b,4),_.writeInt32BE(this._c,8),_.writeInt32BE(this._d,12),_.writeInt32BE(this._e,16),_.writeInt32BE(this._f,20),_.writeInt32BE(this._g,24),_},Nn=i,Nn}var Pn,Lo;function ic(){if(Lo)return Pn;Lo=1;var g=dt(),x=xr(),S=ze.requireSafeBuffer().Buffer,c=[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],E=new Array(160);function i(){this.init(),this._w=E,x.call(this,128,112)}g(i,x),i.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};function _(A,B,F){return F^A&(B^F)}function y(A,B,F){return A&B|F&(A|B)}function m(A,B){return(A>>>28|B<<4)^(B>>>2|A<<30)^(B>>>7|A<<25)}function h(A,B){return(A>>>14|B<<18)^(A>>>18|B<<14)^(B>>>9|A<<23)}function d(A,B){return(A>>>1|B<<31)^(A>>>8|B<<24)^A>>>7}function p(A,B){return(A>>>1|B<<31)^(A>>>8|B<<24)^(A>>>7|B<<25)}function v(A,B){return(A>>>19|B<<13)^(B>>>29|A<<3)^A>>>6}function w(A,B){return(A>>>19|B<<13)^(B>>>29|A<<3)^(A>>>6|B<<26)}function M(A,B){return A>>>0<B>>>0?1:0}return i.prototype._update=function(A){for(var B=this._w,F=this._ah|0,C=this._bh|0,R=this._ch|0,D=this._dh|0,K=this._eh|0,q=this._fh|0,Y=this._gh|0,J=this._hh|0,V=this._al|0,re=this._bl|0,u=this._cl|0,e=this._dl|0,r=this._el|0,n=this._fl|0,a=this._gl|0,o=this._hl|0,l=0;l<32;l+=2)B[l]=A.readInt32BE(l*4),B[l+1]=A.readInt32BE(l*4+4);for(;l<160;l+=2){var b=B[l-30],f=B[l-30+1],t=d(b,f),s=p(f,b);b=B[l-4],f=B[l-4+1];var $=v(b,f),W=w(f,b),U=B[l-14],Q=B[l-14+1],X=B[l-32],P=B[l-32+1],H=s+Q|0,Z=t+U+M(H,s)|0;H=H+W|0,Z=Z+$+M(H,W)|0,H=H+P|0,Z=Z+X+M(H,P)|0,B[l]=Z,B[l+1]=H}for(var k=0;k<160;k+=2){Z=B[k],H=B[k+1];var N=y(F,C,R),T=y(V,re,u),j=m(F,V),fe=m(V,F),ee=h(K,r),te=h(r,K),he=c[k],ie=c[k+1],ne=_(K,q,Y),pe=_(r,n,a),oe=o+te|0,se=J+ee+M(oe,o)|0;oe=oe+pe|0,se=se+ne+M(oe,pe)|0,oe=oe+ie|0,se=se+he+M(oe,ie)|0,oe=oe+H|0,se=se+Z+M(oe,H)|0;var Re=fe+T|0,de=j+N+M(Re,fe)|0;J=Y,o=a,Y=q,a=n,q=K,n=r,r=e+oe|0,K=D+se+M(r,e)|0,D=R,e=u,R=C,u=re,C=F,re=V,V=oe+Re|0,F=se+de+M(V,oe)|0}this._al=this._al+V|0,this._bl=this._bl+re|0,this._cl=this._cl+u|0,this._dl=this._dl+e|0,this._el=this._el+r|0,this._fl=this._fl+n|0,this._gl=this._gl+a|0,this._hl=this._hl+o|0,this._ah=this._ah+F+M(this._al,V)|0,this._bh=this._bh+C+M(this._bl,re)|0,this._ch=this._ch+R+M(this._cl,u)|0,this._dh=this._dh+D+M(this._dl,e)|0,this._eh=this._eh+K+M(this._el,r)|0,this._fh=this._fh+q+M(this._fl,n)|0,this._gh=this._gh+Y+M(this._gl,a)|0,this._hh=this._hh+J+M(this._hl,o)|0},i.prototype._hash=function(){var A=S.allocUnsafe(64);function B(F,C,R){A.writeInt32BE(F,R),A.writeInt32BE(C,R+4)}return B(this._ah,this._al,0),B(this._bh,this._bl,8),B(this._ch,this._cl,16),B(this._dh,this._dl,24),B(this._eh,this._el,32),B(this._fh,this._fl,40),B(this._gh,this._gl,48),B(this._hh,this._hl,56),A},Pn=i,Pn}var qn,Ho;function H1(){if(Ho)return qn;Ho=1;var g=dt(),x=ic(),S=xr(),c=ze.requireSafeBuffer().Buffer,E=new Array(160);function i(){this.init(),this._w=E,S.call(this,128,112)}return g(i,x),i.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},i.prototype._hash=function(){var _=c.allocUnsafe(48);function y(m,h,d){_.writeInt32BE(m,d),_.writeInt32BE(h,d+4)}return y(this._ah,this._al,0),y(this._bh,this._bl,8),y(this._ch,this._cl,16),y(this._dh,this._dl,24),y(this._eh,this._el,32),y(this._fh,this._fl,40),_},qn=i,qn}var zo;function Y0(){return zo||(zo=1,(function(g){g.exports=function(S){var c=S.toLowerCase(),E=g.exports[c];if(!E)throw new Error(c+" is not supported (we accept pull requests)");return new E},g.exports.sha=O1(),g.exports.sha1=U1(),g.exports.sha224=L1(),g.exports.sha256=rc(),g.exports.sha384=H1(),g.exports.sha512=ic()})(Ii)),Ii.exports}var On,$o;function tr(){if($o)return On;$o=1;var g=ze.requireSafeBuffer().Buffer,x=ii().Transform,S=lr().StringDecoder,c=dt();function E(m){x.call(this),this.hashMode=typeof m=="string",this.hashMode?this[m]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}c(E,x);var i=typeof Uint8Array<"u",_=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(g.prototype instanceof Uint8Array||g.TYPED_ARRAY_SUPPORT);function y(m,h){if(m instanceof g)return m;if(typeof m=="string")return g.from(m,h);if(_&&ArrayBuffer.isView(m)){if(m.byteLength===0)return g.alloc(0);var d=g.from(m.buffer,m.byteOffset,m.byteLength);if(d.byteLength===m.byteLength)return d}if(i&&m instanceof Uint8Array||g.isBuffer(m)&&m.constructor&&typeof m.constructor.isBuffer=="function"&&m.constructor.isBuffer(m))return g.from(m);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}return E.prototype.update=function(m,h,d){var p=y(m,h),v=this._update(p);return this.hashMode?this:(d&&(v=this._toString(v,d)),v)},E.prototype.setAutoPadding=function(){},E.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},E.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},E.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},E.prototype._transform=function(m,h,d){var p;try{this.hashMode?this._update(m):this.push(this._update(m))}catch(v){p=v}finally{d(p)}},E.prototype._flush=function(m){var h;try{this.push(this.__final())}catch(d){h=d}m(h)},E.prototype._finalOrDigest=function(m){var h=this.__final()||g.alloc(0);return m&&(h=this._toString(h,m,!0)),h},E.prototype._toString=function(m,h,d){if(this._decoder||(this._decoder=new S(h),this._encoding=h),this._encoding!==h)throw new Error("can’t switch encodings");var p=this._decoder.write(m);return d&&(p+=this._decoder.end()),p},On=E,On}var Un,Ko;function Sr(){if(Ko)return Un;Ko=1;var g=dt(),x=z0(),S=$u(),c=Y0(),E=tr();function i(_){E.call(this,"digest"),this._hash=_}return g(i,E),i.prototype._update=function(_){this._hash.update(_)},i.prototype._final=function(){return this._hash.digest()},Un=function(y){return y=y.toLowerCase(),y==="md5"?new x:y==="rmd160"||y==="ripemd160"?new S:new i(c(y))},Un}var Ln,Wo;function z1(){if(Wo)return Ln;Wo=1;var g=dt(),x=ze.requireSafeBuffer().Buffer,S=tr(),c=x.alloc(128),E=64;function i(_,y){S.call(this,"digest"),typeof y=="string"&&(y=x.from(y)),this._alg=_,this._key=y,y.length>E?y=_(y):y.length<E&&(y=x.concat([y,c],E));for(var m=this._ipad=x.allocUnsafe(E),h=this._opad=x.allocUnsafe(E),d=0;d<E;d++)m[d]=y[d]^54,h[d]=y[d]^92;this._hash=[m]}return g(i,S),i.prototype._update=function(_){this._hash.push(_)},i.prototype._final=function(){var _=this._alg(x.concat(this._hash));return this._alg(x.concat([this._opad,_]))},Ln=i,Ln}var Hn,jo;function $1(){if(jo)return Hn;jo=1;var g=z0();return Hn=function(x){return new g().update(x).digest()},Hn}var zn,Go;function nc(){if(Go)return zn;Go=1;var g=dt(),x=z1(),S=tr(),c=ze.requireSafeBuffer().Buffer,E=$1(),i=$u(),_=Y0(),y=c.alloc(128);function m(h,d){S.call(this,"digest"),typeof d=="string"&&(d=c.from(d));var p=h==="sha512"||h==="sha384"?128:64;if(this._alg=h,this._key=d,d.length>p){var v=h==="rmd160"?new i:_(h);d=v.update(d).digest()}else d.length<p&&(d=c.concat([d,y],p));for(var w=this._ipad=c.allocUnsafe(p),M=this._opad=c.allocUnsafe(p),A=0;A<p;A++)w[A]=d[A]^54,M[A]=d[A]^92;this._hash=h==="rmd160"?new i:_(h),this._hash.update(w)}return g(m,S),m.prototype._update=function(h){this._hash.update(h)},m.prototype._final=function(){var h=this._hash.digest(),d=this._alg==="rmd160"?new i:_(this._alg);return d.update(this._opad).update(h).digest()},zn=function(d,p){return d=d.toLowerCase(),d==="rmd160"||d==="ripemd160"?new m("rmd160",p):d==="md5"?new x(E,p):new m(d,p)},zn}const K1={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},W1={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},j1={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},G1={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},V1={sign:"ecdsa",hash:"sha256",id:""},Z1={sign:"ecdsa",hash:"sha224",id:""},X1={sign:"ecdsa",hash:"sha384",id:""},Y1={sign:"ecdsa",hash:"sha512",id:""},J1={sign:"dsa",hash:"sha1",id:""},Q1={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},ep={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},ac={sha224WithRSAEncryption:K1,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:W1,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:j1,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:G1,"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:V1,sha224:Z1,sha384:X1,sha512:Y1,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:J1,"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:Q1,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:ep,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var $n,Vo;function tp(){return Vo||(Vo=1,$n=ac),$n}var Pr={},Kn,Zo;function fc(){if(Zo)return Kn;Zo=1;var g=Math.pow(2,30)-1;return Kn=function(x,S){if(typeof x!="number")throw new TypeError("Iterations not a number");if(x<0)throw new TypeError("Bad iterations");if(typeof S!="number")throw new TypeError("Key length not a number");if(S<0||S>g||S!==S)throw new TypeError("Bad key length")},Kn}var Wn,Xo;function oc(){if(Xo)return Wn;Xo=1;var g;if(ze.commonjsGlobal.process&&ze.commonjsGlobal.process.browser)g="utf-8";else if(ze.commonjsGlobal.process&&ze.commonjsGlobal.process.version){var x=parseInt(we.process$1.version.split(".")[0].slice(1),10);g=x>=6?"utf-8":"binary"}else g="utf-8";return Wn=g,Wn}var jn,Yo;function rp(){if(Yo)return jn;Yo=1;var g=4,x=new we.Buffer(g);x.fill(0);var S=8,c=16;function E(i){if(i.length%g!==0){var _=i.length+(g-i.length%g);i=we.Buffer.concat([i,x],_)}for(var y=new Array(i.length>>>2),m=0,h=0;m<i.length;m+=g,h++)y[h]=i.readInt32LE(m);return y}return jn=function(_,y){var m=y(E(_),_.length*S);_=new we.Buffer(c);for(var h=0;h<m.length;h++)_.writeInt32LE(m[h],h<<2,!0);return _},jn}var Gn,Jo;function ip(){if(Jo)return Gn;Jo=1;var g=rp();function x(h,d){h[d>>5]|=128<<d%32,h[(d+64>>>9<<4)+14]=d;for(var p=1732584193,v=-271733879,w=-1732584194,M=271733878,A=0;A<h.length;A+=16){var B=p,F=v,C=w,R=M;p=c(p,v,w,M,h[A+0],7,-680876936),M=c(M,p,v,w,h[A+1],12,-389564586),w=c(w,M,p,v,h[A+2],17,606105819),v=c(v,w,M,p,h[A+3],22,-1044525330),p=c(p,v,w,M,h[A+4],7,-176418897),M=c(M,p,v,w,h[A+5],12,1200080426),w=c(w,M,p,v,h[A+6],17,-1473231341),v=c(v,w,M,p,h[A+7],22,-45705983),p=c(p,v,w,M,h[A+8],7,1770035416),M=c(M,p,v,w,h[A+9],12,-1958414417),w=c(w,M,p,v,h[A+10],17,-42063),v=c(v,w,M,p,h[A+11],22,-1990404162),p=c(p,v,w,M,h[A+12],7,1804603682),M=c(M,p,v,w,h[A+13],12,-40341101),w=c(w,M,p,v,h[A+14],17,-1502002290),v=c(v,w,M,p,h[A+15],22,1236535329),p=E(p,v,w,M,h[A+1],5,-165796510),M=E(M,p,v,w,h[A+6],9,-1069501632),w=E(w,M,p,v,h[A+11],14,643717713),v=E(v,w,M,p,h[A+0],20,-373897302),p=E(p,v,w,M,h[A+5],5,-701558691),M=E(M,p,v,w,h[A+10],9,38016083),w=E(w,M,p,v,h[A+15],14,-660478335),v=E(v,w,M,p,h[A+4],20,-405537848),p=E(p,v,w,M,h[A+9],5,568446438),M=E(M,p,v,w,h[A+14],9,-1019803690),w=E(w,M,p,v,h[A+3],14,-187363961),v=E(v,w,M,p,h[A+8],20,1163531501),p=E(p,v,w,M,h[A+13],5,-1444681467),M=E(M,p,v,w,h[A+2],9,-51403784),w=E(w,M,p,v,h[A+7],14,1735328473),v=E(v,w,M,p,h[A+12],20,-1926607734),p=i(p,v,w,M,h[A+5],4,-378558),M=i(M,p,v,w,h[A+8],11,-2022574463),w=i(w,M,p,v,h[A+11],16,1839030562),v=i(v,w,M,p,h[A+14],23,-35309556),p=i(p,v,w,M,h[A+1],4,-1530992060),M=i(M,p,v,w,h[A+4],11,1272893353),w=i(w,M,p,v,h[A+7],16,-155497632),v=i(v,w,M,p,h[A+10],23,-1094730640),p=i(p,v,w,M,h[A+13],4,681279174),M=i(M,p,v,w,h[A+0],11,-358537222),w=i(w,M,p,v,h[A+3],16,-722521979),v=i(v,w,M,p,h[A+6],23,76029189),p=i(p,v,w,M,h[A+9],4,-640364487),M=i(M,p,v,w,h[A+12],11,-421815835),w=i(w,M,p,v,h[A+15],16,530742520),v=i(v,w,M,p,h[A+2],23,-995338651),p=_(p,v,w,M,h[A+0],6,-198630844),M=_(M,p,v,w,h[A+7],10,1126891415),w=_(w,M,p,v,h[A+14],15,-1416354905),v=_(v,w,M,p,h[A+5],21,-57434055),p=_(p,v,w,M,h[A+12],6,1700485571),M=_(M,p,v,w,h[A+3],10,-1894986606),w=_(w,M,p,v,h[A+10],15,-1051523),v=_(v,w,M,p,h[A+1],21,-2054922799),p=_(p,v,w,M,h[A+8],6,1873313359),M=_(M,p,v,w,h[A+15],10,-30611744),w=_(w,M,p,v,h[A+6],15,-1560198380),v=_(v,w,M,p,h[A+13],21,1309151649),p=_(p,v,w,M,h[A+4],6,-145523070),M=_(M,p,v,w,h[A+11],10,-1120210379),w=_(w,M,p,v,h[A+2],15,718787259),v=_(v,w,M,p,h[A+9],21,-343485551),p=y(p,B),v=y(v,F),w=y(w,C),M=y(M,R)}return[p,v,w,M]}function S(h,d,p,v,w,M){return y(m(y(y(d,h),y(v,M)),w),p)}function c(h,d,p,v,w,M,A){return S(d&p|~d&v,h,d,w,M,A)}function E(h,d,p,v,w,M,A){return S(d&v|p&~v,h,d,w,M,A)}function i(h,d,p,v,w,M,A){return S(d^p^v,h,d,w,M,A)}function _(h,d,p,v,w,M,A){return S(p^(d|~v),h,d,w,M,A)}function y(h,d){var p=(h&65535)+(d&65535),v=(h>>16)+(d>>16)+(p>>16);return v<<16|p&65535}function m(h,d){return h<<d|h>>>32-d}return Gn=function(d){return g(d,x)},Gn}var Vn,Qo;function np(){if(Qo)return Vn;Qo=1;var g=ii().Transform,x=dt();function S(c){g.call(this),this._block=new we.Buffer(c),this._blockSize=c,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return x(S,g),S.prototype._transform=function(c,E,i){var _=null;try{E!=="buffer"&&(c=new we.Buffer(c,E)),this.update(c)}catch(y){_=y}i(_)},S.prototype._flush=function(c){var E=null;try{this.push(this._digest())}catch(i){E=i}c(E)},S.prototype.update=function(c,E){if(!we.Buffer.isBuffer(c)&&typeof c!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");we.Buffer.isBuffer(c)||(c=new we.Buffer(c,E||"binary"));for(var i=this._block,_=0;this._blockOffset+c.length-_>=this._blockSize;){for(var y=this._blockOffset;y<this._blockSize;)i[y++]=c[_++];this._update(),this._blockOffset=0}for(;_<c.length;)i[this._blockOffset++]=c[_++];for(var m=0,h=c.length*8;h>0;++m)this._length[m]+=h,h=this._length[m]/4294967296|0,h>0&&(this._length[m]-=4294967296*h);return this},S.prototype._update=function(c){throw new Error("_update is not implemented")},S.prototype.digest=function(c){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var E=this._digest();return c!==void 0&&(E=E.toString(c)),E},S.prototype._digest=function(){throw new Error("_digest is not implemented")},Vn=S,Vn}var Zn,es;function ap(){if(es)return Zn;es=1;var g=dt(),x=np();function S(){x.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}g(S,x),S.prototype._update=function(){for(var h=new Array(16),d=0;d<16;++d)h[d]=this._block.readInt32LE(d*4);var p=this._a,v=this._b,w=this._c,M=this._d,A=this._e;p=E(p,v,w,M,A,h[0],0,11),w=c(w,10),A=E(A,p,v,w,M,h[1],0,14),v=c(v,10),M=E(M,A,p,v,w,h[2],0,15),p=c(p,10),w=E(w,M,A,p,v,h[3],0,12),A=c(A,10),v=E(v,w,M,A,p,h[4],0,5),M=c(M,10),p=E(p,v,w,M,A,h[5],0,8),w=c(w,10),A=E(A,p,v,w,M,h[6],0,7),v=c(v,10),M=E(M,A,p,v,w,h[7],0,9),p=c(p,10),w=E(w,M,A,p,v,h[8],0,11),A=c(A,10),v=E(v,w,M,A,p,h[9],0,13),M=c(M,10),p=E(p,v,w,M,A,h[10],0,14),w=c(w,10),A=E(A,p,v,w,M,h[11],0,15),v=c(v,10),M=E(M,A,p,v,w,h[12],0,6),p=c(p,10),w=E(w,M,A,p,v,h[13],0,7),A=c(A,10),v=E(v,w,M,A,p,h[14],0,9),M=c(M,10),p=E(p,v,w,M,A,h[15],0,8),w=c(w,10),A=i(A,p,v,w,M,h[7],1518500249,7),v=c(v,10),M=i(M,A,p,v,w,h[4],1518500249,6),p=c(p,10),w=i(w,M,A,p,v,h[13],1518500249,8),A=c(A,10),v=i(v,w,M,A,p,h[1],1518500249,13),M=c(M,10),p=i(p,v,w,M,A,h[10],1518500249,11),w=c(w,10),A=i(A,p,v,w,M,h[6],1518500249,9),v=c(v,10),M=i(M,A,p,v,w,h[15],1518500249,7),p=c(p,10),w=i(w,M,A,p,v,h[3],1518500249,15),A=c(A,10),v=i(v,w,M,A,p,h[12],1518500249,7),M=c(M,10),p=i(p,v,w,M,A,h[0],1518500249,12),w=c(w,10),A=i(A,p,v,w,M,h[9],1518500249,15),v=c(v,10),M=i(M,A,p,v,w,h[5],1518500249,9),p=c(p,10),w=i(w,M,A,p,v,h[2],1518500249,11),A=c(A,10),v=i(v,w,M,A,p,h[14],1518500249,7),M=c(M,10),p=i(p,v,w,M,A,h[11],1518500249,13),w=c(w,10),A=i(A,p,v,w,M,h[8],1518500249,12),v=c(v,10),M=_(M,A,p,v,w,h[3],1859775393,11),p=c(p,10),w=_(w,M,A,p,v,h[10],1859775393,13),A=c(A,10),v=_(v,w,M,A,p,h[14],1859775393,6),M=c(M,10),p=_(p,v,w,M,A,h[4],1859775393,7),w=c(w,10),A=_(A,p,v,w,M,h[9],1859775393,14),v=c(v,10),M=_(M,A,p,v,w,h[15],1859775393,9),p=c(p,10),w=_(w,M,A,p,v,h[8],1859775393,13),A=c(A,10),v=_(v,w,M,A,p,h[1],1859775393,15),M=c(M,10),p=_(p,v,w,M,A,h[2],1859775393,14),w=c(w,10),A=_(A,p,v,w,M,h[7],1859775393,8),v=c(v,10),M=_(M,A,p,v,w,h[0],1859775393,13),p=c(p,10),w=_(w,M,A,p,v,h[6],1859775393,6),A=c(A,10),v=_(v,w,M,A,p,h[13],1859775393,5),M=c(M,10),p=_(p,v,w,M,A,h[11],1859775393,12),w=c(w,10),A=_(A,p,v,w,M,h[5],1859775393,7),v=c(v,10),M=_(M,A,p,v,w,h[12],1859775393,5),p=c(p,10),w=y(w,M,A,p,v,h[1],2400959708,11),A=c(A,10),v=y(v,w,M,A,p,h[9],2400959708,12),M=c(M,10),p=y(p,v,w,M,A,h[11],2400959708,14),w=c(w,10),A=y(A,p,v,w,M,h[10],2400959708,15),v=c(v,10),M=y(M,A,p,v,w,h[0],2400959708,14),p=c(p,10),w=y(w,M,A,p,v,h[8],2400959708,15),A=c(A,10),v=y(v,w,M,A,p,h[12],2400959708,9),M=c(M,10),p=y(p,v,w,M,A,h[4],2400959708,8),w=c(w,10),A=y(A,p,v,w,M,h[13],2400959708,9),v=c(v,10),M=y(M,A,p,v,w,h[3],2400959708,14),p=c(p,10),w=y(w,M,A,p,v,h[7],2400959708,5),A=c(A,10),v=y(v,w,M,A,p,h[15],2400959708,6),M=c(M,10),p=y(p,v,w,M,A,h[14],2400959708,8),w=c(w,10),A=y(A,p,v,w,M,h[5],2400959708,6),v=c(v,10),M=y(M,A,p,v,w,h[6],2400959708,5),p=c(p,10),w=y(w,M,A,p,v,h[2],2400959708,12),A=c(A,10),v=m(v,w,M,A,p,h[4],2840853838,9),M=c(M,10),p=m(p,v,w,M,A,h[0],2840853838,15),w=c(w,10),A=m(A,p,v,w,M,h[5],2840853838,5),v=c(v,10),M=m(M,A,p,v,w,h[9],2840853838,11),p=c(p,10),w=m(w,M,A,p,v,h[7],2840853838,6),A=c(A,10),v=m(v,w,M,A,p,h[12],2840853838,8),M=c(M,10),p=m(p,v,w,M,A,h[2],2840853838,13),w=c(w,10),A=m(A,p,v,w,M,h[10],2840853838,12),v=c(v,10),M=m(M,A,p,v,w,h[14],2840853838,5),p=c(p,10),w=m(w,M,A,p,v,h[1],2840853838,12),A=c(A,10),v=m(v,w,M,A,p,h[3],2840853838,13),M=c(M,10),p=m(p,v,w,M,A,h[8],2840853838,14),w=c(w,10),A=m(A,p,v,w,M,h[11],2840853838,11),v=c(v,10),M=m(M,A,p,v,w,h[6],2840853838,8),p=c(p,10),w=m(w,M,A,p,v,h[15],2840853838,5),A=c(A,10),v=m(v,w,M,A,p,h[13],2840853838,6),M=c(M,10);var B=this._a,F=this._b,C=this._c,R=this._d,D=this._e;B=m(B,F,C,R,D,h[5],1352829926,8),C=c(C,10),D=m(D,B,F,C,R,h[14],1352829926,9),F=c(F,10),R=m(R,D,B,F,C,h[7],1352829926,9),B=c(B,10),C=m(C,R,D,B,F,h[0],1352829926,11),D=c(D,10),F=m(F,C,R,D,B,h[9],1352829926,13),R=c(R,10),B=m(B,F,C,R,D,h[2],1352829926,15),C=c(C,10),D=m(D,B,F,C,R,h[11],1352829926,15),F=c(F,10),R=m(R,D,B,F,C,h[4],1352829926,5),B=c(B,10),C=m(C,R,D,B,F,h[13],1352829926,7),D=c(D,10),F=m(F,C,R,D,B,h[6],1352829926,7),R=c(R,10),B=m(B,F,C,R,D,h[15],1352829926,8),C=c(C,10),D=m(D,B,F,C,R,h[8],1352829926,11),F=c(F,10),R=m(R,D,B,F,C,h[1],1352829926,14),B=c(B,10),C=m(C,R,D,B,F,h[10],1352829926,14),D=c(D,10),F=m(F,C,R,D,B,h[3],1352829926,12),R=c(R,10),B=m(B,F,C,R,D,h[12],1352829926,6),C=c(C,10),D=y(D,B,F,C,R,h[6],1548603684,9),F=c(F,10),R=y(R,D,B,F,C,h[11],1548603684,13),B=c(B,10),C=y(C,R,D,B,F,h[3],1548603684,15),D=c(D,10),F=y(F,C,R,D,B,h[7],1548603684,7),R=c(R,10),B=y(B,F,C,R,D,h[0],1548603684,12),C=c(C,10),D=y(D,B,F,C,R,h[13],1548603684,8),F=c(F,10),R=y(R,D,B,F,C,h[5],1548603684,9),B=c(B,10),C=y(C,R,D,B,F,h[10],1548603684,11),D=c(D,10),F=y(F,C,R,D,B,h[14],1548603684,7),R=c(R,10),B=y(B,F,C,R,D,h[15],1548603684,7),C=c(C,10),D=y(D,B,F,C,R,h[8],1548603684,12),F=c(F,10),R=y(R,D,B,F,C,h[12],1548603684,7),B=c(B,10),C=y(C,R,D,B,F,h[4],1548603684,6),D=c(D,10),F=y(F,C,R,D,B,h[9],1548603684,15),R=c(R,10),B=y(B,F,C,R,D,h[1],1548603684,13),C=c(C,10),D=y(D,B,F,C,R,h[2],1548603684,11),F=c(F,10),R=_(R,D,B,F,C,h[15],1836072691,9),B=c(B,10),C=_(C,R,D,B,F,h[5],1836072691,7),D=c(D,10),F=_(F,C,R,D,B,h[1],1836072691,15),R=c(R,10),B=_(B,F,C,R,D,h[3],1836072691,11),C=c(C,10),D=_(D,B,F,C,R,h[7],1836072691,8),F=c(F,10),R=_(R,D,B,F,C,h[14],1836072691,6),B=c(B,10),C=_(C,R,D,B,F,h[6],1836072691,6),D=c(D,10),F=_(F,C,R,D,B,h[9],1836072691,14),R=c(R,10),B=_(B,F,C,R,D,h[11],1836072691,12),C=c(C,10),D=_(D,B,F,C,R,h[8],1836072691,13),F=c(F,10),R=_(R,D,B,F,C,h[12],1836072691,5),B=c(B,10),C=_(C,R,D,B,F,h[2],1836072691,14),D=c(D,10),F=_(F,C,R,D,B,h[10],1836072691,13),R=c(R,10),B=_(B,F,C,R,D,h[0],1836072691,13),C=c(C,10),D=_(D,B,F,C,R,h[4],1836072691,7),F=c(F,10),R=_(R,D,B,F,C,h[13],1836072691,5),B=c(B,10),C=i(C,R,D,B,F,h[8],2053994217,15),D=c(D,10),F=i(F,C,R,D,B,h[6],2053994217,5),R=c(R,10),B=i(B,F,C,R,D,h[4],2053994217,8),C=c(C,10),D=i(D,B,F,C,R,h[1],2053994217,11),F=c(F,10),R=i(R,D,B,F,C,h[3],2053994217,14),B=c(B,10),C=i(C,R,D,B,F,h[11],2053994217,14),D=c(D,10),F=i(F,C,R,D,B,h[15],2053994217,6),R=c(R,10),B=i(B,F,C,R,D,h[0],2053994217,14),C=c(C,10),D=i(D,B,F,C,R,h[5],2053994217,6),F=c(F,10),R=i(R,D,B,F,C,h[12],2053994217,9),B=c(B,10),C=i(C,R,D,B,F,h[2],2053994217,12),D=c(D,10),F=i(F,C,R,D,B,h[13],2053994217,9),R=c(R,10),B=i(B,F,C,R,D,h[9],2053994217,12),C=c(C,10),D=i(D,B,F,C,R,h[7],2053994217,5),F=c(F,10),R=i(R,D,B,F,C,h[10],2053994217,15),B=c(B,10),C=i(C,R,D,B,F,h[14],2053994217,8),D=c(D,10),F=E(F,C,R,D,B,h[12],0,8),R=c(R,10),B=E(B,F,C,R,D,h[15],0,5),C=c(C,10),D=E(D,B,F,C,R,h[10],0,12),F=c(F,10),R=E(R,D,B,F,C,h[4],0,9),B=c(B,10),C=E(C,R,D,B,F,h[1],0,12),D=c(D,10),F=E(F,C,R,D,B,h[5],0,5),R=c(R,10),B=E(B,F,C,R,D,h[8],0,14),C=c(C,10),D=E(D,B,F,C,R,h[7],0,6),F=c(F,10),R=E(R,D,B,F,C,h[6],0,8),B=c(B,10),C=E(C,R,D,B,F,h[2],0,13),D=c(D,10),F=E(F,C,R,D,B,h[13],0,6),R=c(R,10),B=E(B,F,C,R,D,h[14],0,5),C=c(C,10),D=E(D,B,F,C,R,h[0],0,15),F=c(F,10),R=E(R,D,B,F,C,h[3],0,13),B=c(B,10),C=E(C,R,D,B,F,h[9],0,11),D=c(D,10),F=E(F,C,R,D,B,h[11],0,11),R=c(R,10);var K=this._b+w+R|0;this._b=this._c+M+D|0,this._c=this._d+A+B|0,this._d=this._e+p+F|0,this._e=this._a+v+C|0,this._a=K},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 h=new we.Buffer(20);return h.writeInt32LE(this._a,0),h.writeInt32LE(this._b,4),h.writeInt32LE(this._c,8),h.writeInt32LE(this._d,12),h.writeInt32LE(this._e,16),h};function c(h,d){return h<<d|h>>>32-d}function E(h,d,p,v,w,M,A,B){return c(h+(d^p^v)+M+A|0,B)+w|0}function i(h,d,p,v,w,M,A,B){return c(h+(d&p|~d&v)+M+A|0,B)+w|0}function _(h,d,p,v,w,M,A,B){return c(h+((d|~p)^v)+M+A|0,B)+w|0}function y(h,d,p,v,w,M,A,B){return c(h+(d&v|p&~v)+M+A|0,B)+w|0}function m(h,d,p,v,w,M,A,B){return c(h+(d^(p|~v))+M+A|0,B)+w|0}return Zn=S,Zn}var Xn,ts;function sc(){if(ts)return Xn;ts=1;var g=ze.requireSafeBuffer().Buffer,x=tc(),S=typeof Uint8Array<"u",c=S&&typeof ArrayBuffer<"u",E=c&&ArrayBuffer.isView;return Xn=function(i,_,y){if(typeof i=="string"||g.isBuffer(i)||S&&i instanceof Uint8Array||E&&E(i))return x(i,_);throw new TypeError(y+" must be a string, a Buffer, a Uint8Array, or a DataView")},Xn}var Yn,rs;function hc(){if(rs)return Yn;rs=1;var g=ip(),x=ap(),S=Y0(),c=ze.requireSafeBuffer().Buffer,E=fc(),i=oc(),_=sc(),y=c.alloc(128),m={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},h={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function d(M){return new x().update(M).digest()}function p(M){function A(B){return S(M).update(B).digest()}return M==="rmd160"||M==="ripemd160"?d:M==="md5"?g:A}function v(M,A,B){var F=p(M),C=M==="sha512"||M==="sha384"?128:64;A.length>C?A=F(A):A.length<C&&(A=c.concat([A,y],C));for(var R=c.allocUnsafe(C+m[M]),D=c.allocUnsafe(C+m[M]),K=0;K<C;K++)R[K]=A[K]^54,D[K]=A[K]^92;var q=c.allocUnsafe(C+B+4);R.copy(q,0,0,C),this.ipad1=q,this.ipad2=R,this.opad=D,this.alg=M,this.blocksize=C,this.hash=F,this.size=m[M]}v.prototype.run=function(M,A){M.copy(A,this.blocksize);var B=this.hash(A);return B.copy(this.opad,this.blocksize),this.hash(this.opad)};function w(M,A,B,F,C){E(B,F),M=_(M,i,"Password"),A=_(A,i,"Salt");var R=(C||"sha1").toLowerCase(),D=h[R]||R,K=m[D];if(typeof K!="number"||!K)throw new TypeError("Digest algorithm not supported: "+C);var q=new v(D,M,A.length),Y=c.allocUnsafe(F),J=c.allocUnsafe(A.length+4);A.copy(J,0,0,A.length);for(var V=0,re=K,u=Math.ceil(F/re),e=1;e<=u;e++){J.writeUInt32BE(e,A.length);for(var r=q.run(J,q.ipad1),n=r,a=1;a<B;a++){n=q.run(n,q.ipad2);for(var o=0;o<re;o++)r[o]^=n[o]}r.copy(Y,V),V+=re}return Y}return Yn=w,Yn}var Jn,is;function fp(){if(is)return Jn;is=1;var g=ze.requireSafeBuffer().Buffer,x=fc(),S=oc(),c=hc(),E=sc(),i,_=ze.commonjsGlobal.crypto&&ze.commonjsGlobal.crypto.subtle,y={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"},m=[],h;function d(){return h||(ze.commonjsGlobal.process&&ze.commonjsGlobal.process.nextTick?h=ze.commonjsGlobal.process.nextTick:ze.commonjsGlobal.queueMicrotask?h=ze.commonjsGlobal.queueMicrotask:ze.commonjsGlobal.setImmediate?h=ze.commonjsGlobal.setImmediate:h=ze.commonjsGlobal.setTimeout,h)}function p(M,A,B,F,C){return _.importKey("raw",M,{name:"PBKDF2"},!1,["deriveBits"]).then(function(R){return _.deriveBits({name:"PBKDF2",salt:A,iterations:B,hash:{name:C}},R,F<<3)}).then(function(R){return g.from(R)})}function v(M){if(ze.commonjsGlobal.process&&!ze.commonjsGlobal.process.browser||!_||!_.importKey||!_.deriveBits)return Promise.resolve(!1);if(m[M]!==void 0)return m[M];i=i||g.alloc(8);var A=p(i,i,10,128,M).then(function(){return!0},function(){return!1});return m[M]=A,A}function w(M,A){M.then(function(B){d()(function(){A(null,B)})},function(B){d()(function(){A(B)})})}return Jn=function(M,A,B,F,C,R){typeof C=="function"&&(R=C,C=void 0),C=C||"sha1";var D=y[C.toLowerCase()];if(!D||typeof ze.commonjsGlobal.Promise!="function"){d()(function(){var K;try{K=c(M,A,B,F,C)}catch(q){R(q);return}R(null,K)});return}if(x(B,F),M=E(M,S,"Password"),A=E(A,S,"Salt"),typeof R!="function")throw new Error("No callback provided to pbkdf2");w(v(D).then(function(K){return K?p(M,A,B,F,D):c(M,A,B,F,C)}),R)},Jn}var ns;function uc(){return ns||(ns=1,Pr.pbkdf2=fp(),Pr.pbkdf2Sync=hc()),Pr}var Kt={},ir={},$t={},as;function cc(){if(as)return $t;as=1,$t.readUInt32BE=function(E,i){var _=E[0+i]<<24|E[1+i]<<16|E[2+i]<<8|E[3+i];return _>>>0},$t.writeUInt32BE=function(E,i,_){E[0+_]=i>>>24,E[1+_]=i>>>16&255,E[2+_]=i>>>8&255,E[3+_]=i&255},$t.ip=function(E,i,_,y){for(var m=0,h=0,d=6;d>=0;d-=2){for(var p=0;p<=24;p+=8)m<<=1,m|=i>>>p+d&1;for(var p=0;p<=24;p+=8)m<<=1,m|=E>>>p+d&1}for(var d=6;d>=0;d-=2){for(var p=1;p<=25;p+=8)h<<=1,h|=i>>>p+d&1;for(var p=1;p<=25;p+=8)h<<=1,h|=E>>>p+d&1}_[y+0]=m>>>0,_[y+1]=h>>>0},$t.rip=function(E,i,_,y){for(var m=0,h=0,d=0;d<4;d++)for(var p=24;p>=0;p-=8)m<<=1,m|=i>>>p+d&1,m<<=1,m|=E>>>p+d&1;for(var d=4;d<8;d++)for(var p=24;p>=0;p-=8)h<<=1,h|=i>>>p+d&1,h<<=1,h|=E>>>p+d&1;_[y+0]=m>>>0,_[y+1]=h>>>0},$t.pc1=function(E,i,_,y){for(var m=0,h=0,d=7;d>=5;d--){for(var p=0;p<=24;p+=8)m<<=1,m|=i>>p+d&1;for(var p=0;p<=24;p+=8)m<<=1,m|=E>>p+d&1}for(var p=0;p<=24;p+=8)m<<=1,m|=i>>p+d&1;for(var d=1;d<=3;d++){for(var p=0;p<=24;p+=8)h<<=1,h|=i>>p+d&1;for(var p=0;p<=24;p+=8)h<<=1,h|=E>>p+d&1}for(var p=0;p<=24;p+=8)h<<=1,h|=E>>p+d&1;_[y+0]=m>>>0,_[y+1]=h>>>0},$t.r28shl=function(E,i){return E<<i&268435455|E>>>28-i};var g=[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,i,_,y){for(var m=0,h=0,d=g.length>>>1,p=0;p<d;p++)m<<=1,m|=E>>>g[p]&1;for(var p=d;p<g.length;p++)h<<=1,h|=i>>>g[p]&1;_[y+0]=m>>>0,_[y+1]=h>>>0},$t.expand=function(E,i,_){var y=0,m=0;y=(E&1)<<5|E>>>27;for(var h=23;h>=15;h-=4)y<<=6,y|=E>>>h&63;for(var h=11;h>=3;h-=4)m|=E>>>h&63,m<<=6;m|=(E&31)<<1|E>>>31,i[_+0]=y>>>0,i[_+1]=m>>>0};var x=[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,i){for(var _=0,y=0;y<4;y++){var m=E>>>18-y*6&63,h=x[y*64+m];_<<=4,_|=h}for(var y=0;y<4;y++){var m=i>>>18-y*6&63,h=x[256+y*64+m];_<<=4,_|=h}return _>>>0};var S=[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];return $t.permute=function(E){for(var i=0,_=0;_<S.length;_++)i<<=1,i|=E>>>S[_]&1;return i>>>0},$t.padSplit=function(E,i,_){for(var y=E.toString(2);y.length<i;)y="0"+y;for(var m=[],h=0;h<i;h+=_)m.push(y.slice(h,h+_));return m.join(" ")},$t}var Qn,fs;function Gt(){if(fs)return Qn;fs=1,Qn=g;function g(x,S){if(!x)throw new Error(S||"Assertion failed")}return g.equal=function(S,c,E){if(S!=c)throw new Error(E||"Assertion failed: "+S+" != "+c)},Qn}var ea,os;function J0(){if(os)return ea;os=1;var g=Gt();function x(S){this.options=S,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=S.padding!==!1}return ea=x,x.prototype._init=function(){},x.prototype.update=function(c){return c.length===0?[]:this.type==="decrypt"?this._updateDecrypt(c):this._updateEncrypt(c)},x.prototype._buffer=function(c,E){for(var i=Math.min(this.buffer.length-this.bufferOff,c.length-E),_=0;_<i;_++)this.buffer[this.bufferOff+_]=c[E+_];return this.bufferOff+=i,i},x.prototype._flushBuffer=function(c,E){return this._update(this.buffer,0,c,E),this.bufferOff=0,this.blockSize},x.prototype._updateEncrypt=function(c){var E=0,i=0,_=(this.bufferOff+c.length)/this.blockSize|0,y=new Array(_*this.blockSize);this.bufferOff!==0&&(E+=this._buffer(c,E),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(y,i)));for(var m=c.length-(c.length-E)%this.blockSize;E<m;E+=this.blockSize)this._update(c,E,y,i),i+=this.blockSize;for(;E<c.length;E++,this.bufferOff++)this.buffer[this.bufferOff]=c[E];return y},x.prototype._updateDecrypt=function(c){for(var E=0,i=0,_=Math.ceil((this.bufferOff+c.length)/this.blockSize)-1,y=new Array(_*this.blockSize);_>0;_--)E+=this._buffer(c,E),i+=this._flushBuffer(y,i);return E+=this._buffer(c,E),y},x.prototype.final=function(c){var E;c&&(E=this.update(c));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),E?E.concat(i):i},x.prototype._pad=function(c,E){if(E===0)return!1;for(;E<c.length;)c[E++]=0;return!0},x.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var c=new Array(this.blockSize);return this._update(this.buffer,0,c,0),c},x.prototype._unpad=function(c){return c},x.prototype._finalDecrypt=function(){g.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var c=new Array(this.blockSize);return this._flushBuffer(c,0),this._unpad(c)},ea}var ta,ss;function lc(){if(ss)return ta;ss=1;var g=Gt(),x=dt(),S=cc(),c=J0();function E(){this.tmp=new Array(2),this.keys=null}function i(y){c.call(this,y);var m=new E;this._desState=m,this.deriveKeys(m,y.key)}x(i,c),ta=i,i.create=function(m){return new i(m)};var _=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return i.prototype.deriveKeys=function(m,h){m.keys=new Array(32),g.equal(h.length,this.blockSize,"Invalid key length");var d=S.readUInt32BE(h,0),p=S.readUInt32BE(h,4);S.pc1(d,p,m.tmp,0),d=m.tmp[0],p=m.tmp[1];for(var v=0;v<m.keys.length;v+=2){var w=_[v>>>1];d=S.r28shl(d,w),p=S.r28shl(p,w),S.pc2(d,p,m.keys,v)}},i.prototype._update=function(m,h,d,p){var v=this._desState,w=S.readUInt32BE(m,h),M=S.readUInt32BE(m,h+4);S.ip(w,M,v.tmp,0),w=v.tmp[0],M=v.tmp[1],this.type==="encrypt"?this._encrypt(v,w,M,v.tmp,0):this._decrypt(v,w,M,v.tmp,0),w=v.tmp[0],M=v.tmp[1],S.writeUInt32BE(d,w,p),S.writeUInt32BE(d,M,p+4)},i.prototype._pad=function(m,h){if(this.padding===!1)return!1;for(var d=m.length-h,p=h;p<m.length;p++)m[p]=d;return!0},i.prototype._unpad=function(m){if(this.padding===!1)return m;for(var h=m[m.length-1],d=m.length-h;d<m.length;d++)g.equal(m[d],h);return m.slice(0,m.length-h)},i.prototype._encrypt=function(m,h,d,p,v){for(var w=h,M=d,A=0;A<m.keys.length;A+=2){var B=m.keys[A],F=m.keys[A+1];S.expand(M,m.tmp,0),B^=m.tmp[0],F^=m.tmp[1];var C=S.substitute(B,F),R=S.permute(C),D=M;M=(w^R)>>>0,w=D}S.rip(M,w,p,v)},i.prototype._decrypt=function(m,h,d,p,v){for(var w=d,M=h,A=m.keys.length-2;A>=0;A-=2){var B=m.keys[A],F=m.keys[A+1];S.expand(w,m.tmp,0),B^=m.tmp[0],F^=m.tmp[1];var C=S.substitute(B,F),R=S.permute(C),D=w;w=(M^R)>>>0,M=D}S.rip(w,M,p,v)},ta}var ra={},hs;function op(){if(hs)return ra;hs=1;var g=Gt(),x=dt(),S={};function c(i){g.equal(i.length,8,"Invalid IV length"),this.iv=new Array(8);for(var _=0;_<this.iv.length;_++)this.iv[_]=i[_]}function E(i){function _(d){i.call(this,d),this._cbcInit()}x(_,i);for(var y=Object.keys(S),m=0;m<y.length;m++){var h=y[m];_.prototype[h]=S[h]}return _.create=function(p){return new _(p)},_}return ra.instantiate=E,S._cbcInit=function(){var _=new c(this.options.iv);this._cbcState=_},S._update=function(_,y,m,h){var d=this._cbcState,p=this.constructor.super_.prototype,v=d.iv;if(this.type==="encrypt"){for(var w=0;w<this.blockSize;w++)v[w]^=_[y+w];p._update.call(this,v,0,m,h);for(var w=0;w<this.blockSize;w++)v[w]=m[h+w]}else{p._update.call(this,_,y,m,h);for(var w=0;w<this.blockSize;w++)m[h+w]^=v[w];for(var w=0;w<this.blockSize;w++)v[w]=_[y+w]}},ra}var ia,us;function sp(){if(us)return ia;us=1;var g=Gt(),x=dt(),S=J0(),c=lc();function E(_,y){g.equal(y.length,24,"Invalid key length");var m=y.slice(0,8),h=y.slice(8,16),d=y.slice(16,24);_==="encrypt"?this.ciphers=[c.create({type:"encrypt",key:m}),c.create({type:"decrypt",key:h}),c.create({type:"encrypt",key:d})]:this.ciphers=[c.create({type:"decrypt",key:d}),c.create({type:"encrypt",key:h}),c.create({type:"decrypt",key:m})]}function i(_){S.call(this,_);var y=new E(this.type,this.options.key);this._edeState=y}return x(i,S),ia=i,i.create=function(y){return new i(y)},i.prototype._update=function(y,m,h,d){var p=this._edeState;p.ciphers[0]._update(y,m,h,d),p.ciphers[1]._update(h,d,h,d),p.ciphers[2]._update(h,d,h,d)},i.prototype._pad=c.prototype._pad,i.prototype._unpad=c.prototype._unpad,ia}var cs;function hp(){return cs||(cs=1,ir.utils=cc(),ir.Cipher=J0(),ir.DES=lc(),ir.CBC=op(),ir.EDE=sp()),ir}var na,ls;function up(){if(ls)return na;ls=1;var g=tr(),x=hp(),S=dt(),c=ze.requireSafeBuffer().Buffer,E={"des-ede3-cbc":x.CBC.instantiate(x.EDE),"des-ede3":x.EDE,"des-ede-cbc":x.CBC.instantiate(x.EDE),"des-ede":x.EDE,"des-cbc":x.CBC.instantiate(x.DES),"des-ecb":x.DES};E.des=E["des-cbc"],E.des3=E["des-ede3-cbc"],na=i,S(i,g);function i(_){g.call(this);var y=_.mode.toLowerCase(),m=E[y],h;_.decrypt?h="decrypt":h="encrypt";var d=_.key;c.isBuffer(d)||(d=c.from(d)),(y==="des-ede"||y==="des-ede-cbc")&&(d=c.concat([d,d.slice(0,8)]));var p=_.iv;c.isBuffer(p)||(p=c.from(p)),this._des=m.create({key:d,iv:p,type:h})}return i.prototype._update=function(_){return c.from(this._des.update(_))},i.prototype._final=function(){return c.from(this._des.final())},na}var Wt={},qr={},Or={},ds;function cp(){return ds||(ds=1,Or.encrypt=function(g,x){return g._cipher.encryptBlock(x)},Or.decrypt=function(g,x){return g._cipher.decryptBlock(x)}),Or}var Ur={},aa,ps;function Br(){return ps||(ps=1,aa=function(x,S){for(var c=Math.min(x.length,S.length),E=new we.Buffer(c),i=0;i<c;++i)E[i]=x[i]^S[i];return E}),aa}var vs;function lp(){if(vs)return Ur;vs=1;var g=Br();return Ur.encrypt=function(x,S){var c=g(S,x._prev);return x._prev=x._cipher.encryptBlock(c),x._prev},Ur.decrypt=function(x,S){var c=x._prev;x._prev=S;var E=x._cipher.decryptBlock(S);return g(E,c)},Ur}var fa={},bs;function dp(){if(bs)return fa;bs=1;var g=ze.requireSafeBuffer().Buffer,x=Br();function S(c,E,i){var _=E.length,y=x(E,c._cache);return c._cache=c._cache.slice(_),c._prev=g.concat([c._prev,i?E:y]),y}return fa.encrypt=function(c,E,i){for(var _=g.allocUnsafe(0),y;E.length;)if(c._cache.length===0&&(c._cache=c._cipher.encryptBlock(c._prev),c._prev=g.allocUnsafe(0)),c._cache.length<=E.length)y=c._cache.length,_=g.concat([_,S(c,E.slice(0,y),i)]),E=E.slice(y);else{_=g.concat([_,S(c,E,i)]);break}return _},fa}var oa={},ms;function pp(){if(ms)return oa;ms=1;var g=ze.requireSafeBuffer().Buffer;function x(S,c,E){var i=S._cipher.encryptBlock(S._prev),_=i[0]^c;return S._prev=g.concat([S._prev.slice(1),g.from([E?c:_])]),_}return oa.encrypt=function(S,c,E){for(var i=c.length,_=g.allocUnsafe(i),y=-1;++y<i;)_[y]=x(S,c[y],E);return _},oa}var sa={},ys;function vp(){if(ys)return sa;ys=1;var g=ze.requireSafeBuffer().Buffer;function x(c,E,i){for(var _,y=-1,m=8,h=0,d,p;++y<m;)_=c._cipher.encryptBlock(c._prev),d=E&1<<7-y?128:0,p=_[0]^d,h+=(p&128)>>y%8,c._prev=S(c._prev,i?d:p);return h}function S(c,E){var i=c.length,_=-1,y=g.allocUnsafe(c.length);for(c=g.concat([c,g.from([E])]);++_<i;)y[_]=c[_]<<1|c[_+1]>>7;return y}return sa.encrypt=function(c,E,i){for(var _=E.length,y=g.allocUnsafe(_),m=-1;++m<_;)y[m]=x(c,E[m],i);return y},sa}var ha={},gs;function bp(){if(gs)return ha;gs=1;var g=Br();function x(S){return S._prev=S._cipher.encryptBlock(S._prev),S._prev}return ha.encrypt=function(S,c){for(;S._cache.length<c.length;)S._cache=we.Buffer.concat([S._cache,x(S)]);var E=S._cache.slice(0,c.length);return S._cache=S._cache.slice(c.length),g(c,E)},ha}var ua={},ca,xs;function dc(){if(xs)return ca;xs=1;function g(x){for(var S=x.length,c;S--;)if(c=x.readUInt8(S),c===255)x.writeUInt8(0,S);else{c++,x.writeUInt8(c,S);break}}return ca=g,ca}var ws;function Ms(){if(ws)return ua;ws=1;var g=Br(),x=ze.requireSafeBuffer().Buffer,S=dc();function c(i){var _=i._cipher.encryptBlockRaw(i._prev);return S(i._prev),_}var E=16;return ua.encrypt=function(i,_){var y=Math.ceil(_.length/E),m=i._cache.length;i._cache=x.concat([i._cache,x.allocUnsafe(y*E)]);for(var h=0;h<y;h++){var d=c(i),p=m+h*E;i._cache.writeUInt32BE(d[0],p+0),i._cache.writeUInt32BE(d[1],p+4),i._cache.writeUInt32BE(d[2],p+8),i._cache.writeUInt32BE(d[3],p+12)}var v=i._cache.slice(0,_.length);return i._cache=i._cache.slice(_.length),g(_,v)},ua}const mp={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},yp={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},gp={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},pc={"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:mp,aes192:yp,aes256:gp,"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"}};var la,_s;function Q0(){if(_s)return la;_s=1;var g={ECB:cp(),CBC:lp(),CFB:dp(),CFB8:pp(),CFB1:vp(),OFB:bp(),CTR:Ms(),GCM:Ms()},x=pc;for(var S in x)x[S].module=g[x[S].mode];return la=x,la}var da={},Es;function ai(){if(Es)return da;Es=1;var g=ze.requireSafeBuffer().Buffer;function x(y){g.isBuffer(y)||(y=g.from(y));for(var m=y.length/4|0,h=new Array(m),d=0;d<m;d++)h[d]=y.readUInt32BE(d*4);return h}function S(y){for(var m=0;m<y.length;y++)y[m]=0}function c(y,m,h,d,p){for(var v=h[0],w=h[1],M=h[2],A=h[3],B=y[0]^m[0],F=y[1]^m[1],C=y[2]^m[2],R=y[3]^m[3],D,K,q,Y,J=4,V=1;V<p;V++)D=v[B>>>24]^w[F>>>16&255]^M[C>>>8&255]^A[R&255]^m[J++],K=v[F>>>24]^w[C>>>16&255]^M[R>>>8&255]^A[B&255]^m[J++],q=v[C>>>24]^w[R>>>16&255]^M[B>>>8&255]^A[F&255]^m[J++],Y=v[R>>>24]^w[B>>>16&255]^M[F>>>8&255]^A[C&255]^m[J++],B=D,F=K,C=q,R=Y;return D=(d[B>>>24]<<24|d[F>>>16&255]<<16|d[C>>>8&255]<<8|d[R&255])^m[J++],K=(d[F>>>24]<<24|d[C>>>16&255]<<16|d[R>>>8&255]<<8|d[B&255])^m[J++],q=(d[C>>>24]<<24|d[R>>>16&255]<<16|d[B>>>8&255]<<8|d[F&255])^m[J++],Y=(d[R>>>24]<<24|d[B>>>16&255]<<16|d[F>>>8&255]<<8|d[C&255])^m[J++],D=D>>>0,K=K>>>0,q=q>>>0,Y=Y>>>0,[D,K,q,Y]}var E=[0,1,2,4,8,16,32,64,128,27,54],i=(function(){for(var y=new Array(256),m=0;m<256;m++)m<128?y[m]=m<<1:y[m]=m<<1^283;for(var h=[],d=[],p=[[],[],[],[]],v=[[],[],[],[]],w=0,M=0,A=0;A<256;++A){var B=M^M<<1^M<<2^M<<3^M<<4;B=B>>>8^B&255^99,h[w]=B,d[B]=w;var F=y[w],C=y[F],R=y[C],D=y[B]*257^B*16843008;p[0][w]=D<<24|D>>>8,p[1][w]=D<<16|D>>>16,p[2][w]=D<<8|D>>>24,p[3][w]=D,D=R*16843009^C*65537^F*257^w*16843008,v[0][B]=D<<24|D>>>8,v[1][B]=D<<16|D>>>16,v[2][B]=D<<8|D>>>24,v[3][B]=D,w===0?w=M=1:(w=F^y[y[y[R^F]]],M^=y[y[M]])}return{SBOX:h,INV_SBOX:d,SUB_MIX:p,INV_SUB_MIX:v}})();function _(y){this._key=x(y),this._reset()}return _.blockSize=16,_.keySize=256/8,_.prototype.blockSize=_.blockSize,_.prototype.keySize=_.keySize,_.prototype._reset=function(){for(var y=this._key,m=y.length,h=m+6,d=(h+1)*4,p=[],v=0;v<m;v++)p[v]=y[v];for(v=m;v<d;v++){var w=p[v-1];v%m===0?(w=w<<8|w>>>24,w=i.SBOX[w>>>24]<<24|i.SBOX[w>>>16&255]<<16|i.SBOX[w>>>8&255]<<8|i.SBOX[w&255],w^=E[v/m|0]<<24):m>6&&v%m===4&&(w=i.SBOX[w>>>24]<<24|i.SBOX[w>>>16&255]<<16|i.SBOX[w>>>8&255]<<8|i.SBOX[w&255]),p[v]=p[v-m]^w}for(var M=[],A=0;A<d;A++){var B=d-A,F=p[B-(A%4?0:4)];A<4||B<=4?M[A]=F:M[A]=i.INV_SUB_MIX[0][i.SBOX[F>>>24]]^i.INV_SUB_MIX[1][i.SBOX[F>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[F>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[F&255]]}this._nRounds=h,this._keySchedule=p,this._invKeySchedule=M},_.prototype.encryptBlockRaw=function(y){return y=x(y),c(y,this._keySchedule,i.SUB_MIX,i.SBOX,this._nRounds)},_.prototype.encryptBlock=function(y){var m=this.encryptBlockRaw(y),h=g.allocUnsafe(16);return h.writeUInt32BE(m[0],0),h.writeUInt32BE(m[1],4),h.writeUInt32BE(m[2],8),h.writeUInt32BE(m[3],12),h},_.prototype.decryptBlock=function(y){y=x(y);var m=y[1];y[1]=y[3],y[3]=m;var h=c(y,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX,this._nRounds),d=g.allocUnsafe(16);return d.writeUInt32BE(h[0],0),d.writeUInt32BE(h[3],4),d.writeUInt32BE(h[2],8),d.writeUInt32BE(h[1],12),d},_.prototype.scrub=function(){S(this._keySchedule),S(this._invKeySchedule),S(this._key)},da.AES=_,da}var pa,As;function xp(){if(As)return pa;As=1;var g=ze.requireSafeBuffer().Buffer,x=g.alloc(16,0);function S(i){return[i.readUInt32BE(0),i.readUInt32BE(4),i.readUInt32BE(8),i.readUInt32BE(12)]}function c(i){var _=g.allocUnsafe(16);return _.writeUInt32BE(i[0]>>>0,0),_.writeUInt32BE(i[1]>>>0,4),_.writeUInt32BE(i[2]>>>0,8),_.writeUInt32BE(i[3]>>>0,12),_}function E(i){this.h=i,this.state=g.alloc(16,0),this.cache=g.allocUnsafe(0)}return E.prototype.ghash=function(i){for(var _=-1;++_<i.length;)this.state[_]^=i[_];this._multiply()},E.prototype._multiply=function(){for(var i=S(this.h),_=[0,0,0,0],y,m,h,d=-1;++d<128;){for(m=(this.state[~~(d/8)]&1<<7-d%8)!==0,m&&(_[0]^=i[0],_[1]^=i[1],_[2]^=i[2],_[3]^=i[3]),h=(i[3]&1)!==0,y=3;y>0;y--)i[y]=i[y]>>>1|(i[y-1]&1)<<31;i[0]=i[0]>>>1,h&&(i[0]=i[0]^225<<24)}this.state=c(_)},E.prototype.update=function(i){this.cache=g.concat([this.cache,i]);for(var _;this.cache.length>=16;)_=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(_)},E.prototype.final=function(i,_){return this.cache.length&&this.ghash(g.concat([this.cache,x],16)),this.ghash(c([0,i,0,_])),this.state},pa=E,pa}var va,Ss;function vc(){if(Ss)return va;Ss=1;var g=ai(),x=ze.requireSafeBuffer().Buffer,S=tr(),c=dt(),E=xp(),i=Br(),_=dc();function y(d,p){var v=0;d.length!==p.length&&v++;for(var w=Math.min(d.length,p.length),M=0;M<w;++M)v+=d[M]^p[M];return v}function m(d,p,v){if(p.length===12)return d._finID=x.concat([p,x.from([0,0,0,1])]),x.concat([p,x.from([0,0,0,2])]);var w=new E(v),M=p.length,A=M%16;w.update(p),A&&(A=16-A,w.update(x.alloc(A,0))),w.update(x.alloc(8,0));var B=M*8,F=x.alloc(8);F.writeUIntBE(B,0,8),w.update(F),d._finID=w.state;var C=x.from(d._finID);return _(C),C}function h(d,p,v,w){S.call(this);var M=x.alloc(4,0);this._cipher=new g.AES(p);var A=this._cipher.encryptBlock(M);this._ghash=new E(A),v=m(this,v,A),this._prev=x.from(v),this._cache=x.allocUnsafe(0),this._secCache=x.allocUnsafe(0),this._decrypt=w,this._alen=0,this._len=0,this._mode=d,this._authTag=null,this._called=!1}return c(h,S),h.prototype._update=function(d){if(!this._called&&this._alen){var p=16-this._alen%16;p<16&&(p=x.alloc(p,0),this._ghash.update(p))}this._called=!0;var v=this._mode.encrypt(this,d);return this._decrypt?this._ghash.update(d):this._ghash.update(v),this._len+=d.length,v},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var d=i(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&y(d,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=d,this._cipher.scrub()},h.prototype.getAuthTag=function(){if(this._decrypt||!x.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},h.prototype.setAuthTag=function(p){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=p},h.prototype.setAAD=function(p){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(p),this._alen+=p.length},va=h,va}var ba,Bs;function bc(){if(Bs)return ba;Bs=1;var g=ai(),x=ze.requireSafeBuffer().Buffer,S=tr(),c=dt();function E(i,_,y,m){S.call(this),this._cipher=new g.AES(_),this._prev=x.from(y),this._cache=x.allocUnsafe(0),this._secCache=x.allocUnsafe(0),this._decrypt=m,this._mode=i}return c(E,S),E.prototype._update=function(i){return this._mode.encrypt(this,i,this._decrypt)},E.prototype._final=function(){this._cipher.scrub()},ba=E,ba}var ma,Fs;function fi(){if(Fs)return ma;Fs=1;var g=ze.requireSafeBuffer().Buffer,x=z0();function S(c,E,i,_){if(g.isBuffer(c)||(c=g.from(c,"binary")),E&&(g.isBuffer(E)||(E=g.from(E,"binary")),E.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var y=i/8,m=g.alloc(y),h=g.alloc(_||0),d=g.alloc(0);y>0||_>0;){var p=new x;p.update(d),p.update(c),E&&p.update(E),d=p.digest();var v=0;if(y>0){var w=m.length-y;v=Math.min(y,d.length),d.copy(m,w,0,v),y-=v}if(v<d.length&&_>0){var M=h.length-_,A=Math.min(_,d.length-v);d.copy(h,M,v,v+A),_-=A}}return d.fill(0),{key:m,iv:h}}return ma=S,ma}var Cs;function wp(){if(Cs)return qr;Cs=1;var g=Q0(),x=vc(),S=ze.requireSafeBuffer().Buffer,c=bc(),E=tr(),i=ai(),_=fi(),y=dt();function m(w,M,A){E.call(this),this._cache=new d,this._cipher=new i.AES(M),this._prev=S.from(A),this._mode=w,this._autopadding=!0}y(m,E),m.prototype._update=function(w){this._cache.add(w);for(var M,A,B=[];M=this._cache.get();)A=this._mode.encrypt(this,M),B.push(A);return S.concat(B)};var h=S.alloc(16,16);m.prototype._final=function(){var w=this._cache.flush();if(this._autopadding)return w=this._mode.encrypt(this,w),this._cipher.scrub(),w;if(!w.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(w){return this._autopadding=!!w,this};function d(){this.cache=S.allocUnsafe(0)}d.prototype.add=function(w){this.cache=S.concat([this.cache,w])},d.prototype.get=function(){if(this.cache.length>15){var w=this.cache.slice(0,16);return this.cache=this.cache.slice(16),w}return null},d.prototype.flush=function(){for(var w=16-this.cache.length,M=S.allocUnsafe(w),A=-1;++A<w;)M.writeUInt8(w,A);return S.concat([this.cache,M])};function p(w,M,A){var B=g[w.toLowerCase()];if(!B)throw new TypeError("invalid suite type");if(typeof M=="string"&&(M=S.from(M)),M.length!==B.key/8)throw new TypeError("invalid key length "+M.length);if(typeof A=="string"&&(A=S.from(A)),B.mode!=="GCM"&&A.length!==B.iv)throw new TypeError("invalid iv length "+A.length);return B.type==="stream"?new c(B.module,M,A):B.type==="auth"?new x(B.module,M,A):new m(B.module,M,A)}function v(w,M){var A=g[w.toLowerCase()];if(!A)throw new TypeError("invalid suite type");var B=_(M,!1,A.key,A.iv);return p(w,B.key,B.iv)}return qr.createCipheriv=p,qr.createCipher=v,qr}var Lr={},Ds;function Mp(){if(Ds)return Lr;Ds=1;var g=vc(),x=ze.requireSafeBuffer().Buffer,S=Q0(),c=bc(),E=tr(),i=ai(),_=fi(),y=dt();function m(w,M,A){E.call(this),this._cache=new h,this._last=void 0,this._cipher=new i.AES(M),this._prev=x.from(A),this._mode=w,this._autopadding=!0}y(m,E),m.prototype._update=function(w){this._cache.add(w);for(var M,A,B=[];M=this._cache.get(this._autopadding);)A=this._mode.decrypt(this,M),B.push(A);return x.concat(B)},m.prototype._final=function(){var w=this._cache.flush();if(this._autopadding)return d(this._mode.decrypt(this,w));if(w)throw new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(w){return this._autopadding=!!w,this};function h(){this.cache=x.allocUnsafe(0)}h.prototype.add=function(w){this.cache=x.concat([this.cache,w])},h.prototype.get=function(w){var M;if(w){if(this.cache.length>16)return M=this.cache.slice(0,16),this.cache=this.cache.slice(16),M}else if(this.cache.length>=16)return M=this.cache.slice(0,16),this.cache=this.cache.slice(16),M;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache};function d(w){var M=w[15];if(M<1||M>16)throw new Error("unable to decrypt data");for(var A=-1;++A<M;)if(w[A+(16-M)]!==M)throw new Error("unable to decrypt data");if(M!==16)return w.slice(0,16-M)}function p(w,M,A){var B=S[w.toLowerCase()];if(!B)throw new TypeError("invalid suite type");if(typeof A=="string"&&(A=x.from(A)),B.mode!=="GCM"&&A.length!==B.iv)throw new TypeError("invalid iv length "+A.length);if(typeof M=="string"&&(M=x.from(M)),M.length!==B.key/8)throw new TypeError("invalid key length "+M.length);return B.type==="stream"?new c(B.module,M,A,!0):B.type==="auth"?new g(B.module,M,A,!0):new m(B.module,M,A)}function v(w,M){var A=S[w.toLowerCase()];if(!A)throw new TypeError("invalid suite type");var B=_(M,!1,A.key,A.iv);return p(w,B.key,B.iv)}return Lr.createDecipher=v,Lr.createDecipheriv=p,Lr}var Rs;function ef(){if(Rs)return Wt;Rs=1;var g=wp(),x=Mp(),S=pc;function c(){return Object.keys(S)}return Wt.createCipher=Wt.Cipher=g.createCipher,Wt.createCipheriv=Wt.Cipheriv=g.createCipheriv,Wt.createDecipher=Wt.Decipher=x.createDecipher,Wt.createDecipheriv=Wt.Decipheriv=x.createDecipheriv,Wt.listCiphers=Wt.getCiphers=c,Wt}var ya={},Ts;function _p(){return Ts||(Ts=1,(function(g){g["des-ecb"]={key:8,iv:0},g["des-cbc"]=g.des={key:8,iv:8},g["des-ede3-cbc"]=g.des3={key:24,iv:8},g["des-ede3"]={key:24,iv:0},g["des-ede-cbc"]={key:16,iv:8},g["des-ede"]={key:16,iv:0}})(ya)),ya}var Is;function Ep(){if(Is)return Kt;Is=1;var g=up(),x=ef(),S=Q0(),c=_p(),E=fi();function i(d,p){d=d.toLowerCase();var v,w;if(S[d])v=S[d].key,w=S[d].iv;else if(c[d])v=c[d].key*8,w=c[d].iv;else throw new TypeError("invalid suite type");var M=E(p,!1,v,w);return y(d,M.key,M.iv)}function _(d,p){d=d.toLowerCase();var v,w;if(S[d])v=S[d].key,w=S[d].iv;else if(c[d])v=c[d].key*8,w=c[d].iv;else throw new TypeError("invalid suite type");var M=E(p,!1,v,w);return m(d,M.key,M.iv)}function y(d,p,v){if(d=d.toLowerCase(),S[d])return x.createCipheriv(d,p,v);if(c[d])return new g({key:p,iv:v,mode:d});throw new TypeError("invalid suite type")}function m(d,p,v){if(d=d.toLowerCase(),S[d])return x.createDecipheriv(d,p,v);if(c[d])return new g({key:p,iv:v,mode:d,decrypt:!0});throw new TypeError("invalid suite type")}function h(){return Object.keys(c).concat(x.getCiphers())}return Kt.createCipher=Kt.Cipher=i,Kt.createCipheriv=Kt.Cipheriv=y,Kt.createDecipher=Kt.Decipher=_,Kt.createDecipheriv=Kt.Decipheriv=m,Kt.listCiphers=Kt.getCiphers=h,Kt}var nr={},Gr={exports:{}},Ap=Gr.exports,ks;function mc(){return ks||(ks=1,(function(g){(function(x,S){function c(u,e){if(!u)throw new Error(e||"Assertion failed")}function E(u,e){u.super_=e;var r=function(){};r.prototype=e.prototype,u.prototype=new r,u.prototype.constructor=u}function i(u,e,r){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(u||0,e||10,r||"be"))}typeof x=="object"?x.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=ze.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),c(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(c(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(c(typeof e.length=="number"),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 a=0;a<this.length;a++)this.words[a]=0;var o,l,b=0;if(n==="be")for(a=e.length-1,o=0;a>=0;a-=3)l=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);else if(n==="le")for(a=0,o=0;a<e.length;a+=3)l=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);return this.strip()};function y(u,e){var r=u.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(u,e,r){var n=y(u,r);return r-1>=e&&(n|=y(u,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o=0,l=0,b;if(n==="be")for(a=e.length-1;a>=r;a-=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8}this.strip()};function h(u,e,r,n){for(var a=0,o=Math.min(u.length,r),l=e;l<o;l++){var b=u.charCodeAt(l)-48;a*=n,b>=49?a+=b-49+10:b>=17?a+=b-17+10:a+=b}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,o=1;o<=67108863;o*=r)a++;a--,o=o/r|0;for(var l=e.length-n,b=l%a,f=Math.min(l,l-b)+n,t=0,s=n;s<f;s+=a)t=h(e,s,s+a,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(b!==0){var $=1;for(t=h(e,s,e.length,r),s=0;s<b;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],p=[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],v=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,o=0,l=0;l<this.length;l++){var b=this.words[l],f=((b<<a|o)&16777215).toString(16);o=b>>>24-a&16777215,a+=2,a>=26&&(a-=26,l--),o!==0||l!==this.length-1?n=d[6-f.length]+f+n:n=f+n}for(o!==0&&(n=o.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=v[e];n="";var $=this.clone();for($.negative=0;!$.isZero();){var W=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?n=W+n:n=d[t-W.length]+W+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}c(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return c(typeof _<"u"),this.toArrayLike(_,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),o=n||Math.max(1,a);c(a<=o,"byte array longer than desired length"),c(o>0,"Requested array length <= 0"),this.strip();var l=r==="le",b=new e(o),f,t,s=this.clone();if(l){for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[t]=f;for(;t<o;t++)b[t]=0}else{for(t=0;t<o-a;t++)b[t]=0;for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[o-t-1]=f}return b},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(u){for(var e=new Array(u.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(u.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return c((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return c((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return c((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){c(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){c(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var o=0,l=0;l<a.length;l++)r=(n.words[l]|0)+(a.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;for(;o!==0&&l<n.length;l++)r=(n.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;if(this.length=n.length,o!==0)this.words[this.length]=o,this.length++;else if(n!==this)for(;l<n.length;l++)this.words[l]=n.words[l];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,o;n>0?(a=this,o=e):(a=e,o=this);for(var l=0,b=0;b<o.length;b++)r=(a.words[b]|0)-(o.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;for(;l!==0&&b<a.length;b++)r=(a.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;if(l===0&&b<a.length&&a!==this)for(;b<a.length;b++)this.words[b]=a.words[b];return this.length=Math.max(this.length,b),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function M(u,e,r){r.negative=e.negative^u.negative;var n=u.length+e.length|0;r.length=n,n=n-1|0;var a=u.words[0]|0,o=e.words[0]|0,l=a*o,b=l&67108863,f=l/67108864|0;r.words[0]=b;for(var t=1;t<n;t++){for(var s=f>>>26,$=f&67108863,W=Math.min(t,e.length-1),U=Math.max(0,t-u.length+1);U<=W;U++){var Q=t-U|0;a=u.words[Q]|0,o=e.words[U]|0,l=a*o+$,s+=l/67108864|0,$=l&67108863}r.words[t]=$|0,f=s|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var A=function(e,r,n){var a=e.words,o=r.words,l=n.words,b=0,f,t,s,$=a[0]|0,W=$&8191,U=$>>>13,Q=a[1]|0,X=Q&8191,P=Q>>>13,H=a[2]|0,Z=H&8191,k=H>>>13,N=a[3]|0,T=N&8191,j=N>>>13,fe=a[4]|0,ee=fe&8191,te=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,pt=o[0]|0,Ae=pt&8191,Se=pt>>>13,ct=o[1]|0,_e=ct&8191,xe=ct>>>13,wt=o[2]|0,Ce=wt&8191,De=wt>>>13,_t=o[3]|0,Te=_t&8191,Ie=_t>>>13,Dt=o[4]|0,Ne=Dt&8191,Pe=Dt>>>13,kt=o[5]|0,qe=kt&8191,Oe=kt>>>13,Pt=o[6]|0,ke=Pt&8191,Ue=Pt>>>13,O=o[7]|0,z=O&8191,L=O>>>13,I=o[8]|0,G=I&8191,ae=I>>>13,ge=o[9]|0,ue=ge&8191,le=ge>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(W,Ae),t=Math.imul(W,Se),t=t+Math.imul(U,Ae)|0,s=Math.imul(U,Se);var Je=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(X,Ae),t=Math.imul(X,Se),t=t+Math.imul(P,Ae)|0,s=Math.imul(P,Se),f=f+Math.imul(W,_e)|0,t=t+Math.imul(W,xe)|0,t=t+Math.imul(U,_e)|0,s=s+Math.imul(U,xe)|0;var We=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Z,Ae),t=Math.imul(Z,Se),t=t+Math.imul(k,Ae)|0,s=Math.imul(k,Se),f=f+Math.imul(X,_e)|0,t=t+Math.imul(X,xe)|0,t=t+Math.imul(P,_e)|0,s=s+Math.imul(P,xe)|0,f=f+Math.imul(W,Ce)|0,t=t+Math.imul(W,De)|0,t=t+Math.imul(U,Ce)|0,s=s+Math.imul(U,De)|0;var ht=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ae),t=Math.imul(T,Se),t=t+Math.imul(j,Ae)|0,s=Math.imul(j,Se),f=f+Math.imul(Z,_e)|0,t=t+Math.imul(Z,xe)|0,t=t+Math.imul(k,_e)|0,s=s+Math.imul(k,xe)|0,f=f+Math.imul(X,Ce)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(P,Ce)|0,s=s+Math.imul(P,De)|0,f=f+Math.imul(W,Te)|0,t=t+Math.imul(W,Ie)|0,t=t+Math.imul(U,Te)|0,s=s+Math.imul(U,Ie)|0;var Ve=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(ee,Ae),t=Math.imul(ee,Se),t=t+Math.imul(te,Ae)|0,s=Math.imul(te,Se),f=f+Math.imul(T,_e)|0,t=t+Math.imul(T,xe)|0,t=t+Math.imul(j,_e)|0,s=s+Math.imul(j,xe)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,s=s+Math.imul(k,De)|0,f=f+Math.imul(X,Te)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(P,Te)|0,s=s+Math.imul(P,Ie)|0,f=f+Math.imul(W,Ne)|0,t=t+Math.imul(W,Pe)|0,t=t+Math.imul(U,Ne)|0,s=s+Math.imul(U,Pe)|0;var et=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ae),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ae)|0,s=Math.imul(ne,Se),f=f+Math.imul(ee,_e)|0,t=t+Math.imul(ee,xe)|0,t=t+Math.imul(te,_e)|0,s=s+Math.imul(te,xe)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(j,Ce)|0,s=s+Math.imul(j,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,s=s+Math.imul(k,Ie)|0,f=f+Math.imul(X,Ne)|0,t=t+Math.imul(X,Pe)|0,t=t+Math.imul(P,Ne)|0,s=s+Math.imul(P,Pe)|0,f=f+Math.imul(W,qe)|0,t=t+Math.imul(W,Oe)|0,t=t+Math.imul(U,qe)|0,s=s+Math.imul(U,Oe)|0;var tt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ae),t=Math.imul(oe,Se),t=t+Math.imul(se,Ae)|0,s=Math.imul(se,Se),f=f+Math.imul(ie,_e)|0,t=t+Math.imul(ie,xe)|0,t=t+Math.imul(ne,_e)|0,s=s+Math.imul(ne,xe)|0,f=f+Math.imul(ee,Ce)|0,t=t+Math.imul(ee,De)|0,t=t+Math.imul(te,Ce)|0,s=s+Math.imul(te,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(j,Te)|0,s=s+Math.imul(j,Ie)|0,f=f+Math.imul(Z,Ne)|0,t=t+Math.imul(Z,Pe)|0,t=t+Math.imul(k,Ne)|0,s=s+Math.imul(k,Pe)|0,f=f+Math.imul(X,qe)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(P,qe)|0,s=s+Math.imul(P,Oe)|0,f=f+Math.imul(W,ke)|0,t=t+Math.imul(W,Ue)|0,t=t+Math.imul(U,ke)|0,s=s+Math.imul(U,Ue)|0;var ft=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ae),t=Math.imul(de,Se),t=t+Math.imul(ve,Ae)|0,s=Math.imul(ve,Se),f=f+Math.imul(oe,_e)|0,t=t+Math.imul(oe,xe)|0,t=t+Math.imul(se,_e)|0,s=s+Math.imul(se,xe)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,s=s+Math.imul(ne,De)|0,f=f+Math.imul(ee,Te)|0,t=t+Math.imul(ee,Ie)|0,t=t+Math.imul(te,Te)|0,s=s+Math.imul(te,Ie)|0,f=f+Math.imul(T,Ne)|0,t=t+Math.imul(T,Pe)|0,t=t+Math.imul(j,Ne)|0,s=s+Math.imul(j,Pe)|0,f=f+Math.imul(Z,qe)|0,t=t+Math.imul(Z,Oe)|0,t=t+Math.imul(k,qe)|0,s=s+Math.imul(k,Oe)|0,f=f+Math.imul(X,ke)|0,t=t+Math.imul(X,Ue)|0,t=t+Math.imul(P,ke)|0,s=s+Math.imul(P,Ue)|0,f=f+Math.imul(W,z)|0,t=t+Math.imul(W,L)|0,t=t+Math.imul(U,z)|0,s=s+Math.imul(U,L)|0;var at=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ae),t=Math.imul(be,Se),t=t+Math.imul(me,Ae)|0,s=Math.imul(me,Se),f=f+Math.imul(de,_e)|0,t=t+Math.imul(de,xe)|0,t=t+Math.imul(ve,_e)|0,s=s+Math.imul(ve,xe)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,s=s+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,s=s+Math.imul(ne,Ie)|0,f=f+Math.imul(ee,Ne)|0,t=t+Math.imul(ee,Pe)|0,t=t+Math.imul(te,Ne)|0,s=s+Math.imul(te,Pe)|0,f=f+Math.imul(T,qe)|0,t=t+Math.imul(T,Oe)|0,t=t+Math.imul(j,qe)|0,s=s+Math.imul(j,Oe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,s=s+Math.imul(k,Ue)|0,f=f+Math.imul(X,z)|0,t=t+Math.imul(X,L)|0,t=t+Math.imul(P,z)|0,s=s+Math.imul(P,L)|0,f=f+Math.imul(W,G)|0,t=t+Math.imul(W,ae)|0,t=t+Math.imul(U,G)|0,s=s+Math.imul(U,ae)|0;var rt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ae),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ae)|0,s=Math.imul(Be,Se),f=f+Math.imul(be,_e)|0,t=t+Math.imul(be,xe)|0,t=t+Math.imul(me,_e)|0,s=s+Math.imul(me,xe)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,s=s+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,s=s+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Ne)|0,t=t+Math.imul(ie,Pe)|0,t=t+Math.imul(ne,Ne)|0,s=s+Math.imul(ne,Pe)|0,f=f+Math.imul(ee,qe)|0,t=t+Math.imul(ee,Oe)|0,t=t+Math.imul(te,qe)|0,s=s+Math.imul(te,Oe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(j,ke)|0,s=s+Math.imul(j,Ue)|0,f=f+Math.imul(Z,z)|0,t=t+Math.imul(Z,L)|0,t=t+Math.imul(k,z)|0,s=s+Math.imul(k,L)|0,f=f+Math.imul(X,G)|0,t=t+Math.imul(X,ae)|0,t=t+Math.imul(P,G)|0,s=s+Math.imul(P,ae)|0,f=f+Math.imul(W,ue)|0,t=t+Math.imul(W,le)|0,t=t+Math.imul(U,ue)|0,s=s+Math.imul(U,le)|0;var nt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,_e),t=Math.imul(Fe,xe),t=t+Math.imul(Be,_e)|0,s=Math.imul(Be,xe),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,s=s+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,s=s+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Ne)|0,t=t+Math.imul(oe,Pe)|0,t=t+Math.imul(se,Ne)|0,s=s+Math.imul(se,Pe)|0,f=f+Math.imul(ie,qe)|0,t=t+Math.imul(ie,Oe)|0,t=t+Math.imul(ne,qe)|0,s=s+Math.imul(ne,Oe)|0,f=f+Math.imul(ee,ke)|0,t=t+Math.imul(ee,Ue)|0,t=t+Math.imul(te,ke)|0,s=s+Math.imul(te,Ue)|0,f=f+Math.imul(T,z)|0,t=t+Math.imul(T,L)|0,t=t+Math.imul(j,z)|0,s=s+Math.imul(j,L)|0,f=f+Math.imul(Z,G)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,G)|0,s=s+Math.imul(k,ae)|0,f=f+Math.imul(X,ue)|0,t=t+Math.imul(X,le)|0,t=t+Math.imul(P,ue)|0,s=s+Math.imul(P,le)|0;var it=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,s=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,s=s+Math.imul(me,Ie)|0,f=f+Math.imul(de,Ne)|0,t=t+Math.imul(de,Pe)|0,t=t+Math.imul(ve,Ne)|0,s=s+Math.imul(ve,Pe)|0,f=f+Math.imul(oe,qe)|0,t=t+Math.imul(oe,Oe)|0,t=t+Math.imul(se,qe)|0,s=s+Math.imul(se,Oe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,s=s+Math.imul(ne,Ue)|0,f=f+Math.imul(ee,z)|0,t=t+Math.imul(ee,L)|0,t=t+Math.imul(te,z)|0,s=s+Math.imul(te,L)|0,f=f+Math.imul(T,G)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(j,G)|0,s=s+Math.imul(j,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,s=s+Math.imul(k,le)|0;var Ze=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,s=Math.imul(Be,Ie),f=f+Math.imul(be,Ne)|0,t=t+Math.imul(be,Pe)|0,t=t+Math.imul(me,Ne)|0,s=s+Math.imul(me,Pe)|0,f=f+Math.imul(de,qe)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(ve,qe)|0,s=s+Math.imul(ve,Oe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,s=s+Math.imul(se,Ue)|0,f=f+Math.imul(ie,z)|0,t=t+Math.imul(ie,L)|0,t=t+Math.imul(ne,z)|0,s=s+Math.imul(ne,L)|0,f=f+Math.imul(ee,G)|0,t=t+Math.imul(ee,ae)|0,t=t+Math.imul(te,G)|0,s=s+Math.imul(te,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(j,ue)|0,s=s+Math.imul(j,le)|0;var Qe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,f=Math.imul(Fe,Ne),t=Math.imul(Fe,Pe),t=t+Math.imul(Be,Ne)|0,s=Math.imul(Be,Pe),f=f+Math.imul(be,qe)|0,t=t+Math.imul(be,Oe)|0,t=t+Math.imul(me,qe)|0,s=s+Math.imul(me,Oe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,s=s+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,z)|0,t=t+Math.imul(oe,L)|0,t=t+Math.imul(se,z)|0,s=s+Math.imul(se,L)|0,f=f+Math.imul(ie,G)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,G)|0,s=s+Math.imul(ne,ae)|0,f=f+Math.imul(ee,ue)|0,t=t+Math.imul(ee,le)|0,t=t+Math.imul(te,ue)|0,s=s+Math.imul(te,le)|0;var Ge=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(Fe,qe),t=Math.imul(Fe,Oe),t=t+Math.imul(Be,qe)|0,s=Math.imul(Be,Oe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,s=s+Math.imul(me,Ue)|0,f=f+Math.imul(de,z)|0,t=t+Math.imul(de,L)|0,t=t+Math.imul(ve,z)|0,s=s+Math.imul(ve,L)|0,f=f+Math.imul(oe,G)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,G)|0,s=s+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,s=s+Math.imul(ne,le)|0;var Xe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,s=Math.imul(Be,Ue),f=f+Math.imul(be,z)|0,t=t+Math.imul(be,L)|0,t=t+Math.imul(me,z)|0,s=s+Math.imul(me,L)|0,f=f+Math.imul(de,G)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,G)|0,s=s+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,s=s+Math.imul(se,le)|0;var Ye=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(Fe,z),t=Math.imul(Fe,L),t=t+Math.imul(Be,z)|0,s=Math.imul(Be,L),f=f+Math.imul(be,G)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,G)|0,s=s+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,s=s+Math.imul(ve,le)|0;var Ke=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,f=Math.imul(Fe,G),t=Math.imul(Fe,ae),t=t+Math.imul(Be,G)|0,s=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,s=s+Math.imul(me,le)|0;var Me=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Me>>>26)|0,Me&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,s=Math.imul(Be,le);var Ee=(b+f|0)+((t&8191)<<13)|0;return b=(s+(t>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l[0]=Je,l[1]=We,l[2]=ht,l[3]=Ve,l[4]=et,l[5]=tt,l[6]=ft,l[7]=at,l[8]=rt,l[9]=nt,l[10]=it,l[11]=Ze,l[12]=Qe,l[13]=Ge,l[14]=Xe,l[15]=Ye,l[16]=Ke,l[17]=Me,l[18]=Ee,b!==0&&(l[19]=b,n.length++),n};Math.imul||(A=M);function B(u,e,r){r.negative=e.negative^u.negative,r.length=u.length+e.length;for(var n=0,a=0,o=0;o<r.length-1;o++){var l=a;a=0;for(var b=n&67108863,f=Math.min(o,e.length-1),t=Math.max(0,o-u.length+1);t<=f;t++){var s=o-t,$=u.words[s]|0,W=e.words[t]|0,U=$*W,Q=U&67108863;l=l+(U/67108864|0)|0,Q=Q+b|0,b=Q&67108863,l=l+(Q>>>26)|0,a+=l>>>26,l&=67108863}r.words[o]=b,n=l,l=a}return n!==0?r.words[o]=n:r.length--,r.strip()}function F(u,e,r){var n=new C;return n.mulp(u,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,r):a<63?n=M(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(u,e){this.x=u,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,o=0;o<r;o++)a|=(e&1)<<r-o-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,o,l){for(var b=0;b<l;b++)a[b]=r[e[b]],o[b]=n[e[b]]},C.prototype.transform=function(e,r,n,a,o,l){this.permute(l,e,r,n,a,o);for(var b=1;b<o;b<<=1)for(var f=b<<1,t=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),$=0;$<o;$+=f)for(var W=t,U=s,Q=0;Q<b;Q++){var X=n[$+Q],P=a[$+Q],H=n[$+Q+b],Z=a[$+Q+b],k=W*H-U*Z;Z=W*Z+U*H,H=k,n[$+Q]=X+H,a[$+Q]=P+Z,n[$+Q+b]=X-H,a[$+Q+b]=P-Z,Q!==f&&(k=t*W-s*U,U=t*U+s*W,W=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,o=0;for(n=n/2|0;n;n=n>>>1)o++;return 1<<o+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var o=e[a];e[a]=e[n-a-1],e[n-a-1]=o,o=r[a],r[a]=-r[n-a-1],r[n-a-1]=-o}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var o=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=o&67108863,o<67108864?n=0:n=o/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var o=0,l=0;l<r;l++)o=o+(e[l]|0),n[2*l]=o&8191,o=o>>>13,n[2*l+1]=o&8191,o=o>>>13;for(l=2*r;l<a;++l)n[l]=0;c(o===0),c((o&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(a),l=this.stub(a),b=new Array(a),f=new Array(a),t=new Array(a),s=new Array(a),$=new Array(a),W=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,b,a),this.convert13b(r.words,r.length,s,a),this.transform(b,l,f,t,a,o),this.transform(s,l,$,W,a,o);for(var Q=0;Q<a;Q++){var X=f[Q]*$[Q]-t[Q]*W[Q];t[Q]=f[Q]*W[Q]+t[Q]*$[Q],f[Q]=X}return this.conjugate(f,t,a),this.transform(f,t,U,l,a,o),this.conjugate(U,l,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){c(typeof e=="number"),c(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,o=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[n]=o&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=w(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var o=n.sqr();a<r.length;a++,o=o.sqr())r[a]!==0&&(n=n.mul(o));return n},i.prototype.iushln=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,o;if(r!==0){var l=0;for(o=0;o<this.length;o++){var b=this.words[o]&a,f=(this.words[o]|0)-b<<r;this.words[o]=f|l,l=b>>>26-r}l&&(this.words[o]=l,this.length++)}if(n!==0){for(o=this.length-1;o>=0;o--)this.words[o+n]=this.words[o];for(o=0;o<n;o++)this.words[o]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return c(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){c(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var o=e%26,l=Math.min((e-o)/26,this.length),b=67108863^67108863>>>o<<o,f=n;if(a-=l,a=Math.max(0,a),f){for(var t=0;t<l;t++)f.words[t]=this.words[t];f.length=l}if(l!==0)if(this.length>l)for(this.length-=l,t=0;t<this.length;t++)this.words[t]=this.words[t+l];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=a);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&b}return f&&s!==0&&(f.words[f.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return c(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var o=this.words[n];return!!(o&a)},i.prototype.imaskn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return c(typeof e=="number"),c(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(c(typeof e=="number"),c(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,o;this._expand(a);var l,b=0;for(o=0;o<e.length;o++){l=(this.words[o+n]|0)+b;var f=(e.words[o]|0)*r;l-=f&67108863,b=(l>>26)-(f/67108864|0),this.words[o+n]=l&67108863}for(;o<this.length-n;o++)l=(this.words[o+n]|0)+b,b=l>>26,this.words[o+n]=l&67108863;if(b===0)return this.strip();for(c(b===-1),b=0,o=0;o<this.length;o++)l=-(this.words[o]|0)+b,b=l>>26,this.words[o]=l&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),o=e,l=o.words[o.length-1]|0,b=this._countBits(l);n=26-b,n!==0&&(o=o.ushln(n),a.iushln(n),l=o.words[o.length-1]|0);var f=a.length-o.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=a.clone()._ishlnsubmul(o,1,f);$.negative===0&&(a=$,t&&(t.words[f]=1));for(var W=f-1;W>=0;W--){var U=(a.words[o.length+W]|0)*67108864+(a.words[o.length+W-1]|0);for(U=Math.min(U/l|0,67108863),a._ishlnsubmul(o,U,W);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(o,1,W),a.isZero()||(a.negative^=1);t&&(t.words[W]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(c(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,l;return this.negative!==0&&e.negative===0?(l=this.neg().divmod(e,r),r!=="mod"&&(a=l.div.neg()),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(l=this.divmod(e.neg(),r),r!=="mod"&&(a=l.div.neg()),{div:a,mod:l.mod}):(this.negative&e.negative)!==0?(l=this.neg().divmod(e.neg(),r),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),o=e.andln(1),l=n.cmp(a);return l<0||o===1&&l===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){c(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){c(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=new i(0),b=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),s=r.clone();!r.isZero();){for(var $=0,W=1;(r.words[0]&W)===0&&$<26;++$,W<<=1);if($>0)for(r.iushrn($);$-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(t),o.isub(s)),a.iushrn(1),o.iushrn(1);for(var U=0,Q=1;(n.words[0]&Q)===0&&U<26;++U,Q<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(l.isOdd()||b.isOdd())&&(l.iadd(t),b.isub(s)),l.iushrn(1),b.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(l),o.isub(b)):(n.isub(r),l.isub(a),b.isub(o))}return{a:l,b,gcd:n.iushln(f)}},i.prototype._invmp=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var b=0,f=1;(r.words[0]&f)===0&&b<26;++b,f<<=1);if(b>0)for(r.iushrn(b);b-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var t=0,s=1;(n.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(n.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(o)):(n.isub(r),o.isub(a))}var $;return r.cmpn(1)===0?$=a:$=o,$.cmpn(0)<0&&$.iadd(e),$},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=r.cmp(n);if(o<0){var l=r;r=n,n=l}else if(o===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){c(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var o=a,l=n;o!==0&&l<this.length;l++){var b=this.words[l]|0;b+=o,o=b>>>26,b&=67108863,this.words[l]=b}return o!==0&&(this.words[l]=o,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),c(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,o=e.words[n]|0;if(a!==o){a<o?r=-1:a>o&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new V(e)},i.prototype.toRed=function(e){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return c(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return c(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(u,e){this.name=u,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function K(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(K,D),K.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),o=0;o<a;o++)r.words[o]=e.words[o];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var l=e.words[9];for(r.words[r.length++]=l&n,o=10;o<e.length;o++){var b=e.words[o]|0;e.words[o-10]=(b&n)<<4|l>>>22,l=b}l>>>=22,e.words[o-10]=l,l===0&&e.length>10?e.length-=10:e.length-=9},K.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function q(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(q,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(Y,D);function J(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(J,D),J.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,o=a&67108863;a>>>=26,e.words[n]=o,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new K;else if(e==="p224")r=new q;else if(e==="p192")r=new Y;else if(e==="p25519")r=new J;else throw new Error("Unknown prime "+e);return R[e]=r,r};function V(u){if(typeof u=="string"){var e=i._prime(u);this.m=e.p,this.prime=e}else c(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}V.prototype._verify1=function(e){c(e.negative===0,"red works only with positives"),c(e.red,"red works only with red numbers")},V.prototype._verify2=function(e,r){c((e.negative|r.negative)===0,"red works only with positives"),c(e.red&&e.red===r.red,"red works only with red numbers")},V.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},V.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},V.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},V.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},V.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},V.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},V.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},V.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},V.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},V.prototype.isqr=function(e){return this.imul(e,e.clone())},V.prototype.sqr=function(e){return this.mul(e,e)},V.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(c(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);c(!a.isZero());var l=new i(1).toRed(this),b=l.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(b)!==0;)t.redIAdd(b);for(var s=this.pow(t,a),$=this.pow(e,a.addn(1).iushrn(1)),W=this.pow(e,a),U=o;W.cmp(l)!==0;){for(var Q=W,X=0;Q.cmp(l)!==0;X++)Q=Q.redSqr();c(X<U);var P=this.pow(s,new i(1).iushln(U-X-1));$=$.redMul(P),s=P.redSqr(),W=W.redMul(s),U=X}return $},V.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},V.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var l=a[0],b=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),o=r.length-1;o>=0;o--){for(var s=r.words[o],$=t-1;$>=0;$--){var W=s>>$&1;if(l!==a[0]&&(l=this.sqr(l)),W===0&&b===0){f=0;continue}b<<=1,b|=W,f++,!(f!==n&&(o!==0||$!==0))&&(l=this.mul(l,a[b]),f=0,b=0)}t=26}return l},V.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},V.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new re(e)};function re(u){V.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}E(re,V),re.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},re.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},re.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(g,Ap)})(Gr)),Gr.exports}var Vr={exports:{}},Sp=Vr.exports,Ns;function Bp(){return Ns||(Ns=1,(function(g){(function(x,S){function c(u,e){if(!u)throw new Error(e||"Assertion failed")}function E(u,e){u.super_=e;var r=function(){};r.prototype=e.prototype,u.prototype=new r,u.prototype.constructor=u}function i(u,e,r){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(u||0,e||10,r||"be"))}typeof x=="object"?x.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=ze.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),c(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(c(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(c(typeof e.length=="number"),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 a=0;a<this.length;a++)this.words[a]=0;var o,l,b=0;if(n==="be")for(a=e.length-1,o=0;a>=0;a-=3)l=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);else if(n==="le")for(a=0,o=0;a<e.length;a+=3)l=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);return this.strip()};function y(u,e){var r=u.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(u,e,r){var n=y(u,r);return r-1>=e&&(n|=y(u,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o=0,l=0,b;if(n==="be")for(a=e.length-1;a>=r;a-=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8}this.strip()};function h(u,e,r,n){for(var a=0,o=Math.min(u.length,r),l=e;l<o;l++){var b=u.charCodeAt(l)-48;a*=n,b>=49?a+=b-49+10:b>=17?a+=b-17+10:a+=b}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,o=1;o<=67108863;o*=r)a++;a--,o=o/r|0;for(var l=e.length-n,b=l%a,f=Math.min(l,l-b)+n,t=0,s=n;s<f;s+=a)t=h(e,s,s+a,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(b!==0){var $=1;for(t=h(e,s,e.length,r),s=0;s<b;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],p=[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],v=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,o=0,l=0;l<this.length;l++){var b=this.words[l],f=((b<<a|o)&16777215).toString(16);o=b>>>24-a&16777215,a+=2,a>=26&&(a-=26,l--),o!==0||l!==this.length-1?n=d[6-f.length]+f+n:n=f+n}for(o!==0&&(n=o.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=v[e];n="";var $=this.clone();for($.negative=0;!$.isZero();){var W=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?n=W+n:n=d[t-W.length]+W+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}c(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return c(typeof _<"u"),this.toArrayLike(_,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),o=n||Math.max(1,a);c(a<=o,"byte array longer than desired length"),c(o>0,"Requested array length <= 0"),this.strip();var l=r==="le",b=new e(o),f,t,s=this.clone();if(l){for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[t]=f;for(;t<o;t++)b[t]=0}else{for(t=0;t<o-a;t++)b[t]=0;for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[o-t-1]=f}return b},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(u){for(var e=new Array(u.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(u.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return c((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return c((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return c((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){c(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){c(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var o=0,l=0;l<a.length;l++)r=(n.words[l]|0)+(a.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;for(;o!==0&&l<n.length;l++)r=(n.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;if(this.length=n.length,o!==0)this.words[this.length]=o,this.length++;else if(n!==this)for(;l<n.length;l++)this.words[l]=n.words[l];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,o;n>0?(a=this,o=e):(a=e,o=this);for(var l=0,b=0;b<o.length;b++)r=(a.words[b]|0)-(o.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;for(;l!==0&&b<a.length;b++)r=(a.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;if(l===0&&b<a.length&&a!==this)for(;b<a.length;b++)this.words[b]=a.words[b];return this.length=Math.max(this.length,b),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function M(u,e,r){r.negative=e.negative^u.negative;var n=u.length+e.length|0;r.length=n,n=n-1|0;var a=u.words[0]|0,o=e.words[0]|0,l=a*o,b=l&67108863,f=l/67108864|0;r.words[0]=b;for(var t=1;t<n;t++){for(var s=f>>>26,$=f&67108863,W=Math.min(t,e.length-1),U=Math.max(0,t-u.length+1);U<=W;U++){var Q=t-U|0;a=u.words[Q]|0,o=e.words[U]|0,l=a*o+$,s+=l/67108864|0,$=l&67108863}r.words[t]=$|0,f=s|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var A=function(e,r,n){var a=e.words,o=r.words,l=n.words,b=0,f,t,s,$=a[0]|0,W=$&8191,U=$>>>13,Q=a[1]|0,X=Q&8191,P=Q>>>13,H=a[2]|0,Z=H&8191,k=H>>>13,N=a[3]|0,T=N&8191,j=N>>>13,fe=a[4]|0,ee=fe&8191,te=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,pt=o[0]|0,Ae=pt&8191,Se=pt>>>13,ct=o[1]|0,_e=ct&8191,xe=ct>>>13,wt=o[2]|0,Ce=wt&8191,De=wt>>>13,_t=o[3]|0,Te=_t&8191,Ie=_t>>>13,Dt=o[4]|0,Ne=Dt&8191,Pe=Dt>>>13,kt=o[5]|0,qe=kt&8191,Oe=kt>>>13,Pt=o[6]|0,ke=Pt&8191,Ue=Pt>>>13,O=o[7]|0,z=O&8191,L=O>>>13,I=o[8]|0,G=I&8191,ae=I>>>13,ge=o[9]|0,ue=ge&8191,le=ge>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(W,Ae),t=Math.imul(W,Se),t=t+Math.imul(U,Ae)|0,s=Math.imul(U,Se);var Je=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(X,Ae),t=Math.imul(X,Se),t=t+Math.imul(P,Ae)|0,s=Math.imul(P,Se),f=f+Math.imul(W,_e)|0,t=t+Math.imul(W,xe)|0,t=t+Math.imul(U,_e)|0,s=s+Math.imul(U,xe)|0;var We=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Z,Ae),t=Math.imul(Z,Se),t=t+Math.imul(k,Ae)|0,s=Math.imul(k,Se),f=f+Math.imul(X,_e)|0,t=t+Math.imul(X,xe)|0,t=t+Math.imul(P,_e)|0,s=s+Math.imul(P,xe)|0,f=f+Math.imul(W,Ce)|0,t=t+Math.imul(W,De)|0,t=t+Math.imul(U,Ce)|0,s=s+Math.imul(U,De)|0;var ht=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ae),t=Math.imul(T,Se),t=t+Math.imul(j,Ae)|0,s=Math.imul(j,Se),f=f+Math.imul(Z,_e)|0,t=t+Math.imul(Z,xe)|0,t=t+Math.imul(k,_e)|0,s=s+Math.imul(k,xe)|0,f=f+Math.imul(X,Ce)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(P,Ce)|0,s=s+Math.imul(P,De)|0,f=f+Math.imul(W,Te)|0,t=t+Math.imul(W,Ie)|0,t=t+Math.imul(U,Te)|0,s=s+Math.imul(U,Ie)|0;var Ve=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(ee,Ae),t=Math.imul(ee,Se),t=t+Math.imul(te,Ae)|0,s=Math.imul(te,Se),f=f+Math.imul(T,_e)|0,t=t+Math.imul(T,xe)|0,t=t+Math.imul(j,_e)|0,s=s+Math.imul(j,xe)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,s=s+Math.imul(k,De)|0,f=f+Math.imul(X,Te)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(P,Te)|0,s=s+Math.imul(P,Ie)|0,f=f+Math.imul(W,Ne)|0,t=t+Math.imul(W,Pe)|0,t=t+Math.imul(U,Ne)|0,s=s+Math.imul(U,Pe)|0;var et=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ae),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ae)|0,s=Math.imul(ne,Se),f=f+Math.imul(ee,_e)|0,t=t+Math.imul(ee,xe)|0,t=t+Math.imul(te,_e)|0,s=s+Math.imul(te,xe)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(j,Ce)|0,s=s+Math.imul(j,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,s=s+Math.imul(k,Ie)|0,f=f+Math.imul(X,Ne)|0,t=t+Math.imul(X,Pe)|0,t=t+Math.imul(P,Ne)|0,s=s+Math.imul(P,Pe)|0,f=f+Math.imul(W,qe)|0,t=t+Math.imul(W,Oe)|0,t=t+Math.imul(U,qe)|0,s=s+Math.imul(U,Oe)|0;var tt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ae),t=Math.imul(oe,Se),t=t+Math.imul(se,Ae)|0,s=Math.imul(se,Se),f=f+Math.imul(ie,_e)|0,t=t+Math.imul(ie,xe)|0,t=t+Math.imul(ne,_e)|0,s=s+Math.imul(ne,xe)|0,f=f+Math.imul(ee,Ce)|0,t=t+Math.imul(ee,De)|0,t=t+Math.imul(te,Ce)|0,s=s+Math.imul(te,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(j,Te)|0,s=s+Math.imul(j,Ie)|0,f=f+Math.imul(Z,Ne)|0,t=t+Math.imul(Z,Pe)|0,t=t+Math.imul(k,Ne)|0,s=s+Math.imul(k,Pe)|0,f=f+Math.imul(X,qe)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(P,qe)|0,s=s+Math.imul(P,Oe)|0,f=f+Math.imul(W,ke)|0,t=t+Math.imul(W,Ue)|0,t=t+Math.imul(U,ke)|0,s=s+Math.imul(U,Ue)|0;var ft=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ae),t=Math.imul(de,Se),t=t+Math.imul(ve,Ae)|0,s=Math.imul(ve,Se),f=f+Math.imul(oe,_e)|0,t=t+Math.imul(oe,xe)|0,t=t+Math.imul(se,_e)|0,s=s+Math.imul(se,xe)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,s=s+Math.imul(ne,De)|0,f=f+Math.imul(ee,Te)|0,t=t+Math.imul(ee,Ie)|0,t=t+Math.imul(te,Te)|0,s=s+Math.imul(te,Ie)|0,f=f+Math.imul(T,Ne)|0,t=t+Math.imul(T,Pe)|0,t=t+Math.imul(j,Ne)|0,s=s+Math.imul(j,Pe)|0,f=f+Math.imul(Z,qe)|0,t=t+Math.imul(Z,Oe)|0,t=t+Math.imul(k,qe)|0,s=s+Math.imul(k,Oe)|0,f=f+Math.imul(X,ke)|0,t=t+Math.imul(X,Ue)|0,t=t+Math.imul(P,ke)|0,s=s+Math.imul(P,Ue)|0,f=f+Math.imul(W,z)|0,t=t+Math.imul(W,L)|0,t=t+Math.imul(U,z)|0,s=s+Math.imul(U,L)|0;var at=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ae),t=Math.imul(be,Se),t=t+Math.imul(me,Ae)|0,s=Math.imul(me,Se),f=f+Math.imul(de,_e)|0,t=t+Math.imul(de,xe)|0,t=t+Math.imul(ve,_e)|0,s=s+Math.imul(ve,xe)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,s=s+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,s=s+Math.imul(ne,Ie)|0,f=f+Math.imul(ee,Ne)|0,t=t+Math.imul(ee,Pe)|0,t=t+Math.imul(te,Ne)|0,s=s+Math.imul(te,Pe)|0,f=f+Math.imul(T,qe)|0,t=t+Math.imul(T,Oe)|0,t=t+Math.imul(j,qe)|0,s=s+Math.imul(j,Oe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,s=s+Math.imul(k,Ue)|0,f=f+Math.imul(X,z)|0,t=t+Math.imul(X,L)|0,t=t+Math.imul(P,z)|0,s=s+Math.imul(P,L)|0,f=f+Math.imul(W,G)|0,t=t+Math.imul(W,ae)|0,t=t+Math.imul(U,G)|0,s=s+Math.imul(U,ae)|0;var rt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ae),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ae)|0,s=Math.imul(Be,Se),f=f+Math.imul(be,_e)|0,t=t+Math.imul(be,xe)|0,t=t+Math.imul(me,_e)|0,s=s+Math.imul(me,xe)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,s=s+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,s=s+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Ne)|0,t=t+Math.imul(ie,Pe)|0,t=t+Math.imul(ne,Ne)|0,s=s+Math.imul(ne,Pe)|0,f=f+Math.imul(ee,qe)|0,t=t+Math.imul(ee,Oe)|0,t=t+Math.imul(te,qe)|0,s=s+Math.imul(te,Oe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(j,ke)|0,s=s+Math.imul(j,Ue)|0,f=f+Math.imul(Z,z)|0,t=t+Math.imul(Z,L)|0,t=t+Math.imul(k,z)|0,s=s+Math.imul(k,L)|0,f=f+Math.imul(X,G)|0,t=t+Math.imul(X,ae)|0,t=t+Math.imul(P,G)|0,s=s+Math.imul(P,ae)|0,f=f+Math.imul(W,ue)|0,t=t+Math.imul(W,le)|0,t=t+Math.imul(U,ue)|0,s=s+Math.imul(U,le)|0;var nt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,_e),t=Math.imul(Fe,xe),t=t+Math.imul(Be,_e)|0,s=Math.imul(Be,xe),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,s=s+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,s=s+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Ne)|0,t=t+Math.imul(oe,Pe)|0,t=t+Math.imul(se,Ne)|0,s=s+Math.imul(se,Pe)|0,f=f+Math.imul(ie,qe)|0,t=t+Math.imul(ie,Oe)|0,t=t+Math.imul(ne,qe)|0,s=s+Math.imul(ne,Oe)|0,f=f+Math.imul(ee,ke)|0,t=t+Math.imul(ee,Ue)|0,t=t+Math.imul(te,ke)|0,s=s+Math.imul(te,Ue)|0,f=f+Math.imul(T,z)|0,t=t+Math.imul(T,L)|0,t=t+Math.imul(j,z)|0,s=s+Math.imul(j,L)|0,f=f+Math.imul(Z,G)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,G)|0,s=s+Math.imul(k,ae)|0,f=f+Math.imul(X,ue)|0,t=t+Math.imul(X,le)|0,t=t+Math.imul(P,ue)|0,s=s+Math.imul(P,le)|0;var it=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,s=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,s=s+Math.imul(me,Ie)|0,f=f+Math.imul(de,Ne)|0,t=t+Math.imul(de,Pe)|0,t=t+Math.imul(ve,Ne)|0,s=s+Math.imul(ve,Pe)|0,f=f+Math.imul(oe,qe)|0,t=t+Math.imul(oe,Oe)|0,t=t+Math.imul(se,qe)|0,s=s+Math.imul(se,Oe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,s=s+Math.imul(ne,Ue)|0,f=f+Math.imul(ee,z)|0,t=t+Math.imul(ee,L)|0,t=t+Math.imul(te,z)|0,s=s+Math.imul(te,L)|0,f=f+Math.imul(T,G)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(j,G)|0,s=s+Math.imul(j,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,s=s+Math.imul(k,le)|0;var Ze=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,s=Math.imul(Be,Ie),f=f+Math.imul(be,Ne)|0,t=t+Math.imul(be,Pe)|0,t=t+Math.imul(me,Ne)|0,s=s+Math.imul(me,Pe)|0,f=f+Math.imul(de,qe)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(ve,qe)|0,s=s+Math.imul(ve,Oe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,s=s+Math.imul(se,Ue)|0,f=f+Math.imul(ie,z)|0,t=t+Math.imul(ie,L)|0,t=t+Math.imul(ne,z)|0,s=s+Math.imul(ne,L)|0,f=f+Math.imul(ee,G)|0,t=t+Math.imul(ee,ae)|0,t=t+Math.imul(te,G)|0,s=s+Math.imul(te,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(j,ue)|0,s=s+Math.imul(j,le)|0;var Qe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,f=Math.imul(Fe,Ne),t=Math.imul(Fe,Pe),t=t+Math.imul(Be,Ne)|0,s=Math.imul(Be,Pe),f=f+Math.imul(be,qe)|0,t=t+Math.imul(be,Oe)|0,t=t+Math.imul(me,qe)|0,s=s+Math.imul(me,Oe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,s=s+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,z)|0,t=t+Math.imul(oe,L)|0,t=t+Math.imul(se,z)|0,s=s+Math.imul(se,L)|0,f=f+Math.imul(ie,G)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,G)|0,s=s+Math.imul(ne,ae)|0,f=f+Math.imul(ee,ue)|0,t=t+Math.imul(ee,le)|0,t=t+Math.imul(te,ue)|0,s=s+Math.imul(te,le)|0;var Ge=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(Fe,qe),t=Math.imul(Fe,Oe),t=t+Math.imul(Be,qe)|0,s=Math.imul(Be,Oe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,s=s+Math.imul(me,Ue)|0,f=f+Math.imul(de,z)|0,t=t+Math.imul(de,L)|0,t=t+Math.imul(ve,z)|0,s=s+Math.imul(ve,L)|0,f=f+Math.imul(oe,G)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,G)|0,s=s+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,s=s+Math.imul(ne,le)|0;var Xe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,s=Math.imul(Be,Ue),f=f+Math.imul(be,z)|0,t=t+Math.imul(be,L)|0,t=t+Math.imul(me,z)|0,s=s+Math.imul(me,L)|0,f=f+Math.imul(de,G)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,G)|0,s=s+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,s=s+Math.imul(se,le)|0;var Ye=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(Fe,z),t=Math.imul(Fe,L),t=t+Math.imul(Be,z)|0,s=Math.imul(Be,L),f=f+Math.imul(be,G)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,G)|0,s=s+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,s=s+Math.imul(ve,le)|0;var Ke=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,f=Math.imul(Fe,G),t=Math.imul(Fe,ae),t=t+Math.imul(Be,G)|0,s=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,s=s+Math.imul(me,le)|0;var Me=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Me>>>26)|0,Me&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,s=Math.imul(Be,le);var Ee=(b+f|0)+((t&8191)<<13)|0;return b=(s+(t>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l[0]=Je,l[1]=We,l[2]=ht,l[3]=Ve,l[4]=et,l[5]=tt,l[6]=ft,l[7]=at,l[8]=rt,l[9]=nt,l[10]=it,l[11]=Ze,l[12]=Qe,l[13]=Ge,l[14]=Xe,l[15]=Ye,l[16]=Ke,l[17]=Me,l[18]=Ee,b!==0&&(l[19]=b,n.length++),n};Math.imul||(A=M);function B(u,e,r){r.negative=e.negative^u.negative,r.length=u.length+e.length;for(var n=0,a=0,o=0;o<r.length-1;o++){var l=a;a=0;for(var b=n&67108863,f=Math.min(o,e.length-1),t=Math.max(0,o-u.length+1);t<=f;t++){var s=o-t,$=u.words[s]|0,W=e.words[t]|0,U=$*W,Q=U&67108863;l=l+(U/67108864|0)|0,Q=Q+b|0,b=Q&67108863,l=l+(Q>>>26)|0,a+=l>>>26,l&=67108863}r.words[o]=b,n=l,l=a}return n!==0?r.words[o]=n:r.length--,r.strip()}function F(u,e,r){var n=new C;return n.mulp(u,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,r):a<63?n=M(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(u,e){this.x=u,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,o=0;o<r;o++)a|=(e&1)<<r-o-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,o,l){for(var b=0;b<l;b++)a[b]=r[e[b]],o[b]=n[e[b]]},C.prototype.transform=function(e,r,n,a,o,l){this.permute(l,e,r,n,a,o);for(var b=1;b<o;b<<=1)for(var f=b<<1,t=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),$=0;$<o;$+=f)for(var W=t,U=s,Q=0;Q<b;Q++){var X=n[$+Q],P=a[$+Q],H=n[$+Q+b],Z=a[$+Q+b],k=W*H-U*Z;Z=W*Z+U*H,H=k,n[$+Q]=X+H,a[$+Q]=P+Z,n[$+Q+b]=X-H,a[$+Q+b]=P-Z,Q!==f&&(k=t*W-s*U,U=t*U+s*W,W=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,o=0;for(n=n/2|0;n;n=n>>>1)o++;return 1<<o+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var o=e[a];e[a]=e[n-a-1],e[n-a-1]=o,o=r[a],r[a]=-r[n-a-1],r[n-a-1]=-o}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var o=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=o&67108863,o<67108864?n=0:n=o/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var o=0,l=0;l<r;l++)o=o+(e[l]|0),n[2*l]=o&8191,o=o>>>13,n[2*l+1]=o&8191,o=o>>>13;for(l=2*r;l<a;++l)n[l]=0;c(o===0),c((o&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(a),l=this.stub(a),b=new Array(a),f=new Array(a),t=new Array(a),s=new Array(a),$=new Array(a),W=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,b,a),this.convert13b(r.words,r.length,s,a),this.transform(b,l,f,t,a,o),this.transform(s,l,$,W,a,o);for(var Q=0;Q<a;Q++){var X=f[Q]*$[Q]-t[Q]*W[Q];t[Q]=f[Q]*W[Q]+t[Q]*$[Q],f[Q]=X}return this.conjugate(f,t,a),this.transform(f,t,U,l,a,o),this.conjugate(U,l,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){c(typeof e=="number"),c(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,o=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[n]=o&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=w(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var o=n.sqr();a<r.length;a++,o=o.sqr())r[a]!==0&&(n=n.mul(o));return n},i.prototype.iushln=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,o;if(r!==0){var l=0;for(o=0;o<this.length;o++){var b=this.words[o]&a,f=(this.words[o]|0)-b<<r;this.words[o]=f|l,l=b>>>26-r}l&&(this.words[o]=l,this.length++)}if(n!==0){for(o=this.length-1;o>=0;o--)this.words[o+n]=this.words[o];for(o=0;o<n;o++)this.words[o]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return c(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){c(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var o=e%26,l=Math.min((e-o)/26,this.length),b=67108863^67108863>>>o<<o,f=n;if(a-=l,a=Math.max(0,a),f){for(var t=0;t<l;t++)f.words[t]=this.words[t];f.length=l}if(l!==0)if(this.length>l)for(this.length-=l,t=0;t<this.length;t++)this.words[t]=this.words[t+l];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=a);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&b}return f&&s!==0&&(f.words[f.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return c(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var o=this.words[n];return!!(o&a)},i.prototype.imaskn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return c(typeof e=="number"),c(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(c(typeof e=="number"),c(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,o;this._expand(a);var l,b=0;for(o=0;o<e.length;o++){l=(this.words[o+n]|0)+b;var f=(e.words[o]|0)*r;l-=f&67108863,b=(l>>26)-(f/67108864|0),this.words[o+n]=l&67108863}for(;o<this.length-n;o++)l=(this.words[o+n]|0)+b,b=l>>26,this.words[o+n]=l&67108863;if(b===0)return this.strip();for(c(b===-1),b=0,o=0;o<this.length;o++)l=-(this.words[o]|0)+b,b=l>>26,this.words[o]=l&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),o=e,l=o.words[o.length-1]|0,b=this._countBits(l);n=26-b,n!==0&&(o=o.ushln(n),a.iushln(n),l=o.words[o.length-1]|0);var f=a.length-o.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=a.clone()._ishlnsubmul(o,1,f);$.negative===0&&(a=$,t&&(t.words[f]=1));for(var W=f-1;W>=0;W--){var U=(a.words[o.length+W]|0)*67108864+(a.words[o.length+W-1]|0);for(U=Math.min(U/l|0,67108863),a._ishlnsubmul(o,U,W);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(o,1,W),a.isZero()||(a.negative^=1);t&&(t.words[W]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(c(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,l;return this.negative!==0&&e.negative===0?(l=this.neg().divmod(e,r),r!=="mod"&&(a=l.div.neg()),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(l=this.divmod(e.neg(),r),r!=="mod"&&(a=l.div.neg()),{div:a,mod:l.mod}):(this.negative&e.negative)!==0?(l=this.neg().divmod(e.neg(),r),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),o=e.andln(1),l=n.cmp(a);return l<0||o===1&&l===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){c(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){c(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=new i(0),b=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),s=r.clone();!r.isZero();){for(var $=0,W=1;(r.words[0]&W)===0&&$<26;++$,W<<=1);if($>0)for(r.iushrn($);$-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(t),o.isub(s)),a.iushrn(1),o.iushrn(1);for(var U=0,Q=1;(n.words[0]&Q)===0&&U<26;++U,Q<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(l.isOdd()||b.isOdd())&&(l.iadd(t),b.isub(s)),l.iushrn(1),b.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(l),o.isub(b)):(n.isub(r),l.isub(a),b.isub(o))}return{a:l,b,gcd:n.iushln(f)}},i.prototype._invmp=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var b=0,f=1;(r.words[0]&f)===0&&b<26;++b,f<<=1);if(b>0)for(r.iushrn(b);b-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var t=0,s=1;(n.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(n.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(o)):(n.isub(r),o.isub(a))}var $;return r.cmpn(1)===0?$=a:$=o,$.cmpn(0)<0&&$.iadd(e),$},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=r.cmp(n);if(o<0){var l=r;r=n,n=l}else if(o===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){c(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var o=a,l=n;o!==0&&l<this.length;l++){var b=this.words[l]|0;b+=o,o=b>>>26,b&=67108863,this.words[l]=b}return o!==0&&(this.words[l]=o,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),c(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,o=e.words[n]|0;if(a!==o){a<o?r=-1:a>o&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new V(e)},i.prototype.toRed=function(e){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return c(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return c(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(u,e){this.name=u,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function K(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(K,D),K.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),o=0;o<a;o++)r.words[o]=e.words[o];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var l=e.words[9];for(r.words[r.length++]=l&n,o=10;o<e.length;o++){var b=e.words[o]|0;e.words[o-10]=(b&n)<<4|l>>>22,l=b}l>>>=22,e.words[o-10]=l,l===0&&e.length>10?e.length-=10:e.length-=9},K.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function q(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(q,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(Y,D);function J(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(J,D),J.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,o=a&67108863;a>>>=26,e.words[n]=o,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new K;else if(e==="p224")r=new q;else if(e==="p192")r=new Y;else if(e==="p25519")r=new J;else throw new Error("Unknown prime "+e);return R[e]=r,r};function V(u){if(typeof u=="string"){var e=i._prime(u);this.m=e.p,this.prime=e}else c(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}V.prototype._verify1=function(e){c(e.negative===0,"red works only with positives"),c(e.red,"red works only with red numbers")},V.prototype._verify2=function(e,r){c((e.negative|r.negative)===0,"red works only with positives"),c(e.red&&e.red===r.red,"red works only with red numbers")},V.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},V.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},V.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},V.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},V.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},V.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},V.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},V.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},V.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},V.prototype.isqr=function(e){return this.imul(e,e.clone())},V.prototype.sqr=function(e){return this.mul(e,e)},V.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(c(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);c(!a.isZero());var l=new i(1).toRed(this),b=l.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(b)!==0;)t.redIAdd(b);for(var s=this.pow(t,a),$=this.pow(e,a.addn(1).iushrn(1)),W=this.pow(e,a),U=o;W.cmp(l)!==0;){for(var Q=W,X=0;Q.cmp(l)!==0;X++)Q=Q.redSqr();c(X<U);var P=this.pow(s,new i(1).iushln(U-X-1));$=$.redMul(P),s=P.redSqr(),W=W.redMul(s),U=X}return $},V.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},V.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var l=a[0],b=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),o=r.length-1;o>=0;o--){for(var s=r.words[o],$=t-1;$>=0;$--){var W=s>>$&1;if(l!==a[0]&&(l=this.sqr(l)),W===0&&b===0){f=0;continue}b<<=1,b|=W,f++,!(f!==n&&(o!==0||$!==0))&&(l=this.mul(l,a[b]),f=0,b=0)}t=26}return l},V.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},V.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new re(e)};function re(u){V.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}E(re,V),re.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},re.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},re.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(g,Sp)})(Vr)),Vr.exports}var Hr={exports:{}},Ps;function tf(){if(Ps)return Hr.exports;Ps=1;var g;Hr.exports=function(E){return g||(g=new x(null)),g.generate(E)};function x(c){this.rand=c}if(Hr.exports.Rand=x,x.prototype.generate=function(E){return this._rand(E)},x.prototype._rand=function(E){if(this.rand.getBytes)return this.rand.getBytes(E);for(var i=new Uint8Array(E),_=0;_<i.length;_++)i[_]=this.rand.getByte();return i},typeof self=="object")self.crypto&&self.crypto.getRandomValues?x.prototype._rand=function(E){var i=new Uint8Array(E);return self.crypto.getRandomValues(i),i}:self.msCrypto&&self.msCrypto.getRandomValues?x.prototype._rand=function(E){var i=new Uint8Array(E);return self.msCrypto.getRandomValues(i),i}:typeof window=="object"&&(x.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var S=qc();if(typeof S.randomBytes!="function")throw new Error("Not supported");x.prototype._rand=function(E){return S.randomBytes(E)}}catch{}return Hr.exports}var ga,qs;function yc(){if(qs)return ga;qs=1;var g=Bp(),x=tf();function S(c){this.rand=c||new x.Rand}return ga=S,S.create=function(E){return new S(E)},S.prototype._randbelow=function(E){var i=E.bitLength(),_=Math.ceil(i/8);do var y=new g(this.rand.generate(_));while(y.cmp(E)>=0);return y},S.prototype._randrange=function(E,i){var _=i.sub(E);return E.add(this._randbelow(_))},S.prototype.test=function(E,i,_){var y=E.bitLength(),m=g.mont(E),h=new g(1).toRed(m);i||(i=Math.max(1,y/48|0));for(var d=E.subn(1),p=0;!d.testn(p);p++);for(var v=E.shrn(p),w=d.toRed(m),M=!0;i>0;i--){var A=this._randrange(new g(2),d);_&&_(A);var B=A.toRed(m).redPow(v);if(!(B.cmp(h)===0||B.cmp(w)===0)){for(var F=1;F<p;F++){if(B=B.redSqr(),B.cmp(h)===0)return!1;if(B.cmp(w)===0)break}if(F===p)return!1}}return M},S.prototype.getDivisor=function(E,i){var _=E.bitLength(),y=g.mont(E),m=new g(1).toRed(y);i||(i=Math.max(1,_/48|0));for(var h=E.subn(1),d=0;!h.testn(d);d++);for(var p=E.shrn(d),v=h.toRed(y);i>0;i--){var w=this._randrange(new g(2),h),M=E.gcd(w);if(M.cmpn(1)!==0)return M;var A=w.toRed(y).redPow(p);if(!(A.cmp(m)===0||A.cmp(v)===0)){for(var B=1;B<d;B++){if(A=A.redSqr(),A.cmp(m)===0)return A.fromRed().subn(1).gcd(E);if(A.cmp(v)===0)break}if(B===d)return A=A.redSqr(),A.fromRed().subn(1).gcd(E)}}return!1},ga}var xa,Os;function gc(){if(Os)return xa;Os=1;var g=pr();xa=B,B.simpleSieve=M,B.fermatTest=A;var x=mc(),S=new x(24),c=yc(),E=new c,i=new x(1),_=new x(2),y=new x(5);new x(16),new x(8);var m=new x(10),h=new x(3);new x(7);var d=new x(11),p=new x(4);new x(12);var v=null;function w(){if(v!==null)return v;var F=1048576,C=[];C[0]=2;for(var R=1,D=3;D<F;D+=2){for(var K=Math.ceil(Math.sqrt(D)),q=0;q<R&&C[q]<=K&&D%C[q]!==0;q++);R!==q&&C[q]<=K||(C[R++]=D)}return v=C,C}function M(F){for(var C=w(),R=0;R<C.length;R++)if(F.modn(C[R])===0)return F.cmpn(C[R])===0;return!0}function A(F){var C=x.mont(F);return _.toRed(C).redPow(F.subn(1)).fromRed().cmpn(1)===0}function B(F,C){if(F<16)return C===2||C===5?new x([140,123]):new x([140,39]);C=new x(C);for(var R,D;;){for(R=new x(g(Math.ceil(F/8)));R.bitLength()>F;)R.ishrn(1);if(R.isEven()&&R.iadd(i),R.testn(1)||R.iadd(_),C.cmp(_)){if(!C.cmp(y))for(;R.mod(m).cmp(h);)R.iadd(p)}else for(;R.mod(S).cmp(d);)R.iadd(p);if(D=R.shrn(1),M(D)&&M(R)&&A(D)&&A(R)&&E.test(D)&&E.test(R))return R}}return xa}const Fp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},Cp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},Dp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},Rp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},Tp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},Ip={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},kp={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},Np={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},Pp={modp1:Fp,modp2:Cp,modp5:Dp,modp14:Rp,modp15:Tp,modp16:Ip,modp17:kp,modp18:Np};var wa,Us;function qp(){if(Us)return wa;Us=1;var g=mc(),x=yc(),S=new x,c=new g(24),E=new g(11),i=new g(10),_=new g(3),y=new g(7),m=gc(),h=pr();wa=M;function d(B,F){return F=F||"utf8",we.Buffer.isBuffer(B)||(B=new we.Buffer(B,F)),this._pub=new g(B),this}function p(B,F){return F=F||"utf8",we.Buffer.isBuffer(B)||(B=new we.Buffer(B,F)),this._priv=new g(B),this}var v={};function w(B,F){var C=F.toString("hex"),R=[C,B.toString(16)].join("_");if(R in v)return v[R];var D=0;if(B.isEven()||!m.simpleSieve||!m.fermatTest(B)||!S.test(B))return D+=1,C==="02"||C==="05"?D+=8:D+=4,v[R]=D,D;S.test(B.shrn(1))||(D+=2);var K;switch(C){case"02":B.mod(c).cmp(E)&&(D+=8);break;case"05":K=B.mod(i),K.cmp(_)&&K.cmp(y)&&(D+=8);break;default:D+=4}return v[R]=D,D}function M(B,F,C){this.setGenerator(F),this.__prime=new g(B),this._prime=g.mont(this.__prime),this._primeLen=B.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,C?(this.setPublicKey=d,this.setPrivateKey=p):this._primeCode=8}Object.defineProperty(M.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=w(this.__prime,this.__gen)),this._primeCode}}),M.prototype.generateKeys=function(){return this._priv||(this._priv=new g(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},M.prototype.computeSecret=function(B){B=new g(B),B=B.toRed(this._prime);var F=B.redPow(this._priv).fromRed(),C=new we.Buffer(F.toArray()),R=this.getPrime();if(C.length<R.length){var D=new we.Buffer(R.length-C.length);D.fill(0),C=we.Buffer.concat([D,C])}return C},M.prototype.getPublicKey=function(F){return A(this._pub,F)},M.prototype.getPrivateKey=function(F){return A(this._priv,F)},M.prototype.getPrime=function(B){return A(this.__prime,B)},M.prototype.getGenerator=function(B){return A(this._gen,B)},M.prototype.setGenerator=function(B,F){return F=F||"utf8",we.Buffer.isBuffer(B)||(B=new we.Buffer(B,F)),this.__gen=B,this._gen=new g(B),this};function A(B,F){var C=new we.Buffer(B.toArray());return F?C.toString(F):C}return wa}var Ls;function Op(){if(Ls)return nr;Ls=1;var g=gc(),x=Pp,S=qp();function c(_){var y=new we.Buffer(x[_].prime,"hex"),m=new we.Buffer(x[_].gen,"hex");return new S(y,m)}var E={binary:!0,hex:!0,base64:!0};function i(_,y,m,h){return we.Buffer.isBuffer(y)||E[y]===void 0?i(_,"binary",y,m):(y=y||"binary",h=h||"binary",m=m||new we.Buffer([2]),we.Buffer.isBuffer(m)||(m=new we.Buffer(m,h)),typeof _=="number"?new S(g(_,m),m,!0):(we.Buffer.isBuffer(_)||(_=new we.Buffer(_,y)),new S(_,m,!0)))}return nr.DiffieHellmanGroup=nr.createDiffieHellmanGroup=nr.getDiffieHellman=c,nr.createDiffieHellman=nr.DiffieHellman=i,nr}var zr={exports:{}},$r={exports:{}},Hs;function oi(){if(Hs)return $r.exports;Hs=1,typeof we.process$1>"u"||!we.process$1.version||we.process$1.version.indexOf("v0.")===0||we.process$1.version.indexOf("v1.")===0&&we.process$1.version.indexOf("v1.8.")!==0?$r.exports={nextTick:g}:$r.exports=we.process$1;function g(x,S,c,E){if(typeof x!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,_,y;switch(i){case 0:case 1:return we.process$1.nextTick(x);case 2:return we.process$1.nextTick(function(){x.call(null,S)});case 3:return we.process$1.nextTick(function(){x.call(null,S,c)});case 4:return we.process$1.nextTick(function(){x.call(null,S,c,E)});default:for(_=new Array(i-1),y=0;y<_.length;)_[y++]=arguments[y];return we.process$1.nextTick(function(){x.apply(null,_)})}}return $r.exports}var Ma,zs;function Up(){if(zs)return Ma;zs=1;var g={}.toString;return Ma=Array.isArray||function(x){return g.call(x)=="[object Array]"},Ma}var _a,$s;function xc(){return $s||($s=1,_a=vr().EventEmitter),_a}var Kr={exports:{}},Ks;function rf(){return Ks||(Ks=1,(function(g,x){var S=ze.requireDist(),c=S.Buffer;function E(_,y){for(var m in _)y[m]=_[m]}c.from&&c.alloc&&c.allocUnsafe&&c.allocUnsafeSlow?g.exports=S:(E(S,x),x.Buffer=i);function i(_,y,m){return c(_,y,m)}E(c,i),i.from=function(_,y,m){if(typeof _=="number")throw new TypeError("Argument must not be a number");return c(_,y,m)},i.alloc=function(_,y,m){if(typeof _!="number")throw new TypeError("Argument must be a number");var h=c(_);return y!==void 0?typeof m=="string"?h.fill(y,m):h.fill(y):h.fill(0),h},i.allocUnsafe=function(_){if(typeof _!="number")throw new TypeError("Argument must be a number");return c(_)},i.allocUnsafeSlow=function(_){if(typeof _!="number")throw new TypeError("Argument must be a number");return S.SlowBuffer(_)}})(Kr,Kr.exports)),Kr.exports}var Ot={},Ws;function Fr(){if(Ws)return Ot;Ws=1;function g(A){return Array.isArray?Array.isArray(A):M(A)==="[object Array]"}Ot.isArray=g;function x(A){return typeof A=="boolean"}Ot.isBoolean=x;function S(A){return A===null}Ot.isNull=S;function c(A){return A==null}Ot.isNullOrUndefined=c;function E(A){return typeof A=="number"}Ot.isNumber=E;function i(A){return typeof A=="string"}Ot.isString=i;function _(A){return typeof A=="symbol"}Ot.isSymbol=_;function y(A){return A===void 0}Ot.isUndefined=y;function m(A){return M(A)==="[object RegExp]"}Ot.isRegExp=m;function h(A){return typeof A=="object"&&A!==null}Ot.isObject=h;function d(A){return M(A)==="[object Date]"}Ot.isDate=d;function p(A){return M(A)==="[object Error]"||A instanceof Error}Ot.isError=p;function v(A){return typeof A=="function"}Ot.isFunction=v;function w(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A>"u"}Ot.isPrimitive=w,Ot.isBuffer=ze.requireDist().Buffer.isBuffer;function M(A){return Object.prototype.toString.call(A)}return Ot}var Ea={exports:{}},js;function Lp(){return js||(js=1,(function(g){function x(i,_){if(!(i instanceof _))throw new TypeError("Cannot call a class as a function")}var S=rf().Buffer,c=br;function E(i,_,y){i.copy(_,y)}g.exports=(function(){function i(){x(this,i),this.head=null,this.tail=null,this.length=0}return i.prototype.push=function(y){var m={data:y,next:null};this.length>0?this.tail.next=m:this.head=m,this.tail=m,++this.length},i.prototype.unshift=function(y){var m={data:y,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length},i.prototype.shift=function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(y){if(this.length===0)return"";for(var m=this.head,h=""+m.data;m=m.next;)h+=y+m.data;return h},i.prototype.concat=function(y){if(this.length===0)return S.alloc(0);for(var m=S.allocUnsafe(y>>>0),h=this.head,d=0;h;)E(h.data,m,d),d+=h.data.length,h=h.next;return m},i})(),c&&c.inspect&&c.inspect.custom&&(g.exports.prototype[c.inspect.custom]=function(){var i=c.inspect({length:this.length});return this.constructor.name+" "+i})})(Ea)),Ea.exports}var Aa,Gs;function wc(){if(Gs)return Aa;Gs=1;var g=oi();function x(E,i){var _=this,y=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return y||m?(i?i(E):E&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,g.nextTick(c,this,E)):g.nextTick(c,this,E)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(E||null,function(h){!i&&h?_._writableState?_._writableState.errorEmitted||(_._writableState.errorEmitted=!0,g.nextTick(c,_,h)):g.nextTick(c,_,h):i&&i(h)}),this)}function S(){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)}function c(E,i){E.emit("error",i)}return Aa={destroy:x,undestroy:S},Aa}var Sa,Vs;function Mc(){if(Vs)return Sa;Vs=1;var g=oi();Sa=A;function x(l){var b=this;this.next=null,this.entry=null,this.finish=function(){o(b,l)}}var S=!we.process$1.browser&&["v0.10","v0.9."].indexOf(we.process$1.version.slice(0,5))>-1?setImmediate:g.nextTick,c;A.WritableState=w;var E=Object.create(Fr());E.inherits=dt();var i={deprecate:L0()},_=xc(),y=rf().Buffer,m=(typeof ze.commonjsGlobal<"u"?ze.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(l){return y.from(l)}function d(l){return y.isBuffer(l)||l instanceof m}var p=wc();E.inherits(A,_);function v(){}function w(l,b){c=c||dr(),l=l||{};var f=b instanceof c;this.objectMode=!!l.objectMode,f&&(this.objectMode=this.objectMode||!!l.writableObjectMode);var t=l.highWaterMark,s=l.writableHighWaterMark,$=this.objectMode?16:16*1024;t||t===0?this.highWaterMark=t:f&&(s||s===0)?this.highWaterMark=s:this.highWaterMark=$,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var W=l.decodeStrings===!1;this.decodeStrings=!W,this.defaultEncoding=l.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){Y(b,U)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new x(this)}w.prototype.getBuffer=function(){for(var b=this.bufferedRequest,f=[];b;)f.push(b),b=b.next;return f},(function(){try{Object.defineProperty(w.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var M;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(M=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(l){return M.call(this,l)?!0:this!==A?!1:l&&l._writableState instanceof w}})):M=function(l){return l instanceof this};function A(l){if(c=c||dr(),!M.call(A,this)&&!(this instanceof c))return new A(l);this._writableState=new w(l,this),this.writable=!0,l&&(typeof l.write=="function"&&(this._write=l.write),typeof l.writev=="function"&&(this._writev=l.writev),typeof l.destroy=="function"&&(this._destroy=l.destroy),typeof l.final=="function"&&(this._final=l.final)),_.call(this)}A.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function B(l,b){var f=new Error("write after end");l.emit("error",f),g.nextTick(b,f)}function F(l,b,f,t){var s=!0,$=!1;return f===null?$=new TypeError("May not write null values to stream"):typeof f!="string"&&f!==void 0&&!b.objectMode&&($=new TypeError("Invalid non-string/buffer chunk")),$&&(l.emit("error",$),g.nextTick(t,$),s=!1),s}A.prototype.write=function(l,b,f){var t=this._writableState,s=!1,$=!t.objectMode&&d(l);return $&&!y.isBuffer(l)&&(l=h(l)),typeof b=="function"&&(f=b,b=null),$?b="buffer":b||(b=t.defaultEncoding),typeof f!="function"&&(f=v),t.ended?B(this,f):($||F(this,t,l,f))&&(t.pendingcb++,s=R(this,t,$,l,b,f)),s},A.prototype.cork=function(){var l=this._writableState;l.corked++},A.prototype.uncork=function(){var l=this._writableState;l.corked&&(l.corked--,!l.writing&&!l.corked&&!l.bufferProcessing&&l.bufferedRequest&&re(this,l))},A.prototype.setDefaultEncoding=function(b){if(typeof b=="string"&&(b=b.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((b+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+b);return this._writableState.defaultEncoding=b,this};function C(l,b,f){return!l.objectMode&&l.decodeStrings!==!1&&typeof b=="string"&&(b=y.from(b,f)),b}Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function R(l,b,f,t,s,$){if(!f){var W=C(b,t,s);t!==W&&(f=!0,s="buffer",t=W)}var U=b.objectMode?1:t.length;b.length+=U;var Q=b.length<b.highWaterMark;if(Q||(b.needDrain=!0),b.writing||b.corked){var X=b.lastBufferedRequest;b.lastBufferedRequest={chunk:t,encoding:s,isBuf:f,callback:$,next:null},X?X.next=b.lastBufferedRequest:b.bufferedRequest=b.lastBufferedRequest,b.bufferedRequestCount+=1}else D(l,b,!1,U,t,s,$);return Q}function D(l,b,f,t,s,$,W){b.writelen=t,b.writecb=W,b.writing=!0,b.sync=!0,f?l._writev(s,b.onwrite):l._write(s,$,b.onwrite),b.sync=!1}function K(l,b,f,t,s){--b.pendingcb,f?(g.nextTick(s,t),g.nextTick(n,l,b),l._writableState.errorEmitted=!0,l.emit("error",t)):(s(t),l._writableState.errorEmitted=!0,l.emit("error",t),n(l,b))}function q(l){l.writing=!1,l.writecb=null,l.length-=l.writelen,l.writelen=0}function Y(l,b){var f=l._writableState,t=f.sync,s=f.writecb;if(q(f),b)K(l,f,t,b,s);else{var $=u(f);!$&&!f.corked&&!f.bufferProcessing&&f.bufferedRequest&&re(l,f),t?S(J,l,f,$,s):J(l,f,$,s)}}function J(l,b,f,t){f||V(l,b),b.pendingcb--,t(),n(l,b)}function V(l,b){b.length===0&&b.needDrain&&(b.needDrain=!1,l.emit("drain"))}function re(l,b){b.bufferProcessing=!0;var f=b.bufferedRequest;if(l._writev&&f&&f.next){var t=b.bufferedRequestCount,s=new Array(t),$=b.corkedRequestsFree;$.entry=f;for(var W=0,U=!0;f;)s[W]=f,f.isBuf||(U=!1),f=f.next,W+=1;s.allBuffers=U,D(l,b,!0,b.length,s,"",$.finish),b.pendingcb++,b.lastBufferedRequest=null,$.next?(b.corkedRequestsFree=$.next,$.next=null):b.corkedRequestsFree=new x(b),b.bufferedRequestCount=0}else{for(;f;){var Q=f.chunk,X=f.encoding,P=f.callback,H=b.objectMode?1:Q.length;if(D(l,b,!1,H,Q,X,P),f=f.next,b.bufferedRequestCount--,b.writing)break}f===null&&(b.lastBufferedRequest=null)}b.bufferedRequest=f,b.bufferProcessing=!1}A.prototype._write=function(l,b,f){f(new Error("_write() is not implemented"))},A.prototype._writev=null,A.prototype.end=function(l,b,f){var t=this._writableState;typeof l=="function"?(f=l,l=null,b=null):typeof b=="function"&&(f=b,b=null),l!=null&&this.write(l,b),t.corked&&(t.corked=1,this.uncork()),t.ending||a(this,t,f)};function u(l){return l.ending&&l.length===0&&l.bufferedRequest===null&&!l.finished&&!l.writing}function e(l,b){l._final(function(f){b.pendingcb--,f&&l.emit("error",f),b.prefinished=!0,l.emit("prefinish"),n(l,b)})}function r(l,b){!b.prefinished&&!b.finalCalled&&(typeof l._final=="function"?(b.pendingcb++,b.finalCalled=!0,g.nextTick(e,l,b)):(b.prefinished=!0,l.emit("prefinish")))}function n(l,b){var f=u(b);return f&&(r(l,b),b.pendingcb===0&&(b.finished=!0,l.emit("finish"))),f}function a(l,b,f){b.ending=!0,n(l,b),f&&(b.finished?g.nextTick(f):l.once("finish",f)),b.ended=!0,l.writable=!1}function o(l,b,f){var t=l.entry;for(l.entry=null;t;){var s=t.callback;b.pendingcb--,s(f),t=t.next}b.corkedRequestsFree.next=l}return Object.defineProperty(A.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(l){this._writableState&&(this._writableState.destroyed=l)}}),A.prototype.destroy=p.destroy,A.prototype._undestroy=p.undestroy,A.prototype._destroy=function(l,b){this.end(),b(l)},Sa}var Ba,Zs;function dr(){if(Zs)return Ba;Zs=1;var g=oi(),x=Object.keys||function(p){var v=[];for(var w in p)v.push(w);return v};Ba=m;var S=Object.create(Fr());S.inherits=dt();var c=_c(),E=Mc();S.inherits(m,c);for(var i=x(E.prototype),_=0;_<i.length;_++){var y=i[_];m.prototype[y]||(m.prototype[y]=E.prototype[y])}function m(p){if(!(this instanceof m))return new m(p);c.call(this,p),E.call(this,p),p&&p.readable===!1&&(this.readable=!1),p&&p.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,p&&p.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",h)}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function h(){this.allowHalfOpen||this._writableState.ended||g.nextTick(d,this)}function d(p){p.end()}return Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),m.prototype._destroy=function(p,v){this.push(null),this.end(),g.nextTick(v,p)},Ba}var Fa,Xs;function _c(){if(Xs)return Fa;Xs=1;var g=oi();Fa=C;var x=Up(),S;C.ReadableState=F,vr().EventEmitter;var c=function(P,H){return P.listeners(H).length},E=xc(),i=rf().Buffer,_=(typeof ze.commonjsGlobal<"u"?ze.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function y(P){return i.from(P)}function m(P){return i.isBuffer(P)||P instanceof _}var h=Object.create(Fr());h.inherits=dt();var d=br,p=void 0;d&&d.debuglog?p=d.debuglog("stream"):p=function(){};var v=Lp(),w=wc(),M;h.inherits(C,E);var A=["error","close","destroy","pause","resume"];function B(P,H,Z){if(typeof P.prependListener=="function")return P.prependListener(H,Z);!P._events||!P._events[H]?P.on(H,Z):x(P._events[H])?P._events[H].unshift(Z):P._events[H]=[Z,P._events[H]]}function F(P,H){S=S||dr(),P=P||{};var Z=H instanceof S;this.objectMode=!!P.objectMode,Z&&(this.objectMode=this.objectMode||!!P.readableObjectMode);var k=P.highWaterMark,N=P.readableHighWaterMark,T=this.objectMode?16:16*1024;k||k===0?this.highWaterMark=k:Z&&(N||N===0)?this.highWaterMark=N:this.highWaterMark=T,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,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.destroyed=!1,this.defaultEncoding=P.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,P.encoding&&(M||(M=lr().StringDecoder),this.decoder=new M(P.encoding),this.encoding=P.encoding)}function C(P){if(S=S||dr(),!(this instanceof C))return new C(P);this._readableState=new F(P,this),this.readable=!0,P&&(typeof P.read=="function"&&(this._read=P.read),typeof P.destroy=="function"&&(this._destroy=P.destroy)),E.call(this)}Object.defineProperty(C.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(P){this._readableState&&(this._readableState.destroyed=P)}}),C.prototype.destroy=w.destroy,C.prototype._undestroy=w.undestroy,C.prototype._destroy=function(P,H){this.push(null),H(P)},C.prototype.push=function(P,H){var Z=this._readableState,k;return Z.objectMode?k=!0:typeof P=="string"&&(H=H||Z.defaultEncoding,H!==Z.encoding&&(P=i.from(P,H),H=""),k=!0),R(this,P,H,!1,k)},C.prototype.unshift=function(P){return R(this,P,null,!0,!1)};function R(P,H,Z,k,N){var T=P._readableState;if(H===null)T.reading=!1,re(P,T);else{var j;N||(j=K(T,H)),j?P.emit("error",j):T.objectMode||H&&H.length>0?(typeof H!="string"&&!T.objectMode&&Object.getPrototypeOf(H)!==i.prototype&&(H=y(H)),k?T.endEmitted?P.emit("error",new Error("stream.unshift() after end event")):D(P,T,H,!0):T.ended?P.emit("error",new Error("stream.push() after EOF")):(T.reading=!1,T.decoder&&!Z?(H=T.decoder.write(H),T.objectMode||H.length!==0?D(P,T,H,!1):r(P,T)):D(P,T,H,!1))):k||(T.reading=!1)}return q(T)}function D(P,H,Z,k){H.flowing&&H.length===0&&!H.sync?(P.emit("data",Z),P.read(0)):(H.length+=H.objectMode?1:Z.length,k?H.buffer.unshift(Z):H.buffer.push(Z),H.needReadable&&u(P)),r(P,H)}function K(P,H){var Z;return!m(H)&&typeof H!="string"&&H!==void 0&&!P.objectMode&&(Z=new TypeError("Invalid non-string/buffer chunk")),Z}function q(P){return!P.ended&&(P.needReadable||P.length<P.highWaterMark||P.length===0)}C.prototype.isPaused=function(){return this._readableState.flowing===!1},C.prototype.setEncoding=function(P){return M||(M=lr().StringDecoder),this._readableState.decoder=new M(P),this._readableState.encoding=P,this};var Y=8388608;function J(P){return P>=Y?P=Y:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function V(P,H){return P<=0||H.length===0&&H.ended?0:H.objectMode?1:P!==P?H.flowing&&H.length?H.buffer.head.data.length:H.length:(P>H.highWaterMark&&(H.highWaterMark=J(P)),P<=H.length?P:H.ended?H.length:(H.needReadable=!0,0))}C.prototype.read=function(P){p("read",P),P=parseInt(P,10);var H=this._readableState,Z=P;if(P!==0&&(H.emittedReadable=!1),P===0&&H.needReadable&&(H.length>=H.highWaterMark||H.ended))return p("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?U(this):u(this),null;if(P=V(P,H),P===0&&H.ended)return H.length===0&&U(this),null;var k=H.needReadable;p("need readable",k),(H.length===0||H.length-P<H.highWaterMark)&&(k=!0,p("length less than watermark",k)),H.ended||H.reading?(k=!1,p("reading or ended",k)):k&&(p("do read"),H.reading=!0,H.sync=!0,H.length===0&&(H.needReadable=!0),this._read(H.highWaterMark),H.sync=!1,H.reading||(P=V(Z,H)));var N;return P>0?N=t(P,H):N=null,N===null?(H.needReadable=!0,P=0):H.length-=P,H.length===0&&(H.ended||(H.needReadable=!0),Z!==P&&H.ended&&U(this)),N!==null&&this.emit("data",N),N};function re(P,H){if(!H.ended){if(H.decoder){var Z=H.decoder.end();Z&&Z.length&&(H.buffer.push(Z),H.length+=H.objectMode?1:Z.length)}H.ended=!0,u(P)}}function u(P){var H=P._readableState;H.needReadable=!1,H.emittedReadable||(p("emitReadable",H.flowing),H.emittedReadable=!0,H.sync?g.nextTick(e,P):e(P))}function e(P){p("emit readable"),P.emit("readable"),f(P)}function r(P,H){H.readingMore||(H.readingMore=!0,g.nextTick(n,P,H))}function n(P,H){for(var Z=H.length;!H.reading&&!H.flowing&&!H.ended&&H.length<H.highWaterMark&&(p("maybeReadMore read 0"),P.read(0),Z!==H.length);)Z=H.length;H.readingMore=!1}C.prototype._read=function(P){this.emit("error",new Error("_read() is not implemented"))},C.prototype.pipe=function(P,H){var Z=this,k=this._readableState;switch(k.pipesCount){case 0:k.pipes=P;break;case 1:k.pipes=[k.pipes,P];break;default:k.pipes.push(P);break}k.pipesCount+=1,p("pipe count=%d opts=%j",k.pipesCount,H);var N=(!H||H.end!==!1)&&P!==we.process$1.stdout&&P!==we.process$1.stderr,T=N?fe:Re;k.endEmitted?g.nextTick(T):Z.once("end",T),P.on("unpipe",j);function j(de,ve){p("onunpipe"),de===Z&&ve&&ve.hasUnpiped===!1&&(ve.hasUnpiped=!0,he())}function fe(){p("onend"),P.end()}var ee=a(Z);P.on("drain",ee);var te=!1;function he(){p("cleanup"),P.removeListener("close",oe),P.removeListener("finish",se),P.removeListener("drain",ee),P.removeListener("error",pe),P.removeListener("unpipe",j),Z.removeListener("end",fe),Z.removeListener("end",Re),Z.removeListener("data",ne),te=!0,k.awaitDrain&&(!P._writableState||P._writableState.needDrain)&&ee()}var ie=!1;Z.on("data",ne);function ne(de){p("ondata"),ie=!1;var ve=P.write(de);ve===!1&&!ie&&((k.pipesCount===1&&k.pipes===P||k.pipesCount>1&&X(k.pipes,P)!==-1)&&!te&&(p("false write response, pause",k.awaitDrain),k.awaitDrain++,ie=!0),Z.pause())}function pe(de){p("onerror",de),Re(),P.removeListener("error",pe),c(P,"error")===0&&P.emit("error",de)}B(P,"error",pe);function oe(){P.removeListener("finish",se),Re()}P.once("close",oe);function se(){p("onfinish"),P.removeListener("close",oe),Re()}P.once("finish",se);function Re(){p("unpipe"),Z.unpipe(P)}return P.emit("pipe",Z),k.flowing||(p("pipe resume"),Z.resume()),P};function a(P){return function(){var H=P._readableState;p("pipeOnDrain",H.awaitDrain),H.awaitDrain&&H.awaitDrain--,H.awaitDrain===0&&c(P,"data")&&(H.flowing=!0,f(P))}}C.prototype.unpipe=function(P){var H=this._readableState,Z={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1)return P&&P!==H.pipes?this:(P||(P=H.pipes),H.pipes=null,H.pipesCount=0,H.flowing=!1,P&&P.emit("unpipe",this,Z),this);if(!P){var k=H.pipes,N=H.pipesCount;H.pipes=null,H.pipesCount=0,H.flowing=!1;for(var T=0;T<N;T++)k[T].emit("unpipe",this,{hasUnpiped:!1});return this}var j=X(H.pipes,P);return j===-1?this:(H.pipes.splice(j,1),H.pipesCount-=1,H.pipesCount===1&&(H.pipes=H.pipes[0]),P.emit("unpipe",this,Z),this)},C.prototype.on=function(P,H){var Z=E.prototype.on.call(this,P,H);if(P==="data")this._readableState.flowing!==!1&&this.resume();else if(P==="readable"){var k=this._readableState;!k.endEmitted&&!k.readableListening&&(k.readableListening=k.needReadable=!0,k.emittedReadable=!1,k.reading?k.length&&u(this):g.nextTick(o,this))}return Z},C.prototype.addListener=C.prototype.on;function o(P){p("readable nexttick read 0"),P.read(0)}C.prototype.resume=function(){var P=this._readableState;return P.flowing||(p("resume"),P.flowing=!0,l(this,P)),this};function l(P,H){H.resumeScheduled||(H.resumeScheduled=!0,g.nextTick(b,P,H))}function b(P,H){H.reading||(p("resume read 0"),P.read(0)),H.resumeScheduled=!1,H.awaitDrain=0,P.emit("resume"),f(P),H.flowing&&!H.reading&&P.read(0)}C.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function f(P){var H=P._readableState;for(p("flow",H.flowing);H.flowing&&P.read()!==null;);}C.prototype.wrap=function(P){var H=this,Z=this._readableState,k=!1;P.on("end",function(){if(p("wrapped end"),Z.decoder&&!Z.ended){var j=Z.decoder.end();j&&j.length&&H.push(j)}H.push(null)}),P.on("data",function(j){if(p("wrapped data"),Z.decoder&&(j=Z.decoder.write(j)),!(Z.objectMode&&j==null)&&!(!Z.objectMode&&(!j||!j.length))){var fe=H.push(j);fe||(k=!0,P.pause())}});for(var N in P)this[N]===void 0&&typeof P[N]=="function"&&(this[N]=(function(j){return function(){return P[j].apply(P,arguments)}})(N));for(var T=0;T<A.length;T++)P.on(A[T],this.emit.bind(this,A[T]));return this._read=function(j){p("wrapped _read",j),k&&(k=!1,P.resume())},this},Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),C._fromList=t;function t(P,H){if(H.length===0)return null;var Z;return H.objectMode?Z=H.buffer.shift():!P||P>=H.length?(H.decoder?Z=H.buffer.join(""):H.buffer.length===1?Z=H.buffer.head.data:Z=H.buffer.concat(H.length),H.buffer.clear()):Z=s(P,H.buffer,H.decoder),Z}function s(P,H,Z){var k;return P<H.head.data.length?(k=H.head.data.slice(0,P),H.head.data=H.head.data.slice(P)):P===H.head.data.length?k=H.shift():k=Z?$(P,H):W(P,H),k}function $(P,H){var Z=H.head,k=1,N=Z.data;for(P-=N.length;Z=Z.next;){var T=Z.data,j=P>T.length?T.length:P;if(j===T.length?N+=T:N+=T.slice(0,P),P-=j,P===0){j===T.length?(++k,Z.next?H.head=Z.next:H.head=H.tail=null):(H.head=Z,Z.data=T.slice(j));break}++k}return H.length-=k,N}function W(P,H){var Z=i.allocUnsafe(P),k=H.head,N=1;for(k.data.copy(Z),P-=k.data.length;k=k.next;){var T=k.data,j=P>T.length?T.length:P;if(T.copy(Z,Z.length-P,0,j),P-=j,P===0){j===T.length?(++N,k.next?H.head=k.next:H.head=H.tail=null):(H.head=k,k.data=T.slice(j));break}++N}return H.length-=N,Z}function U(P){var H=P._readableState;if(H.length>0)throw new Error('"endReadable()" called on non-empty stream');H.endEmitted||(H.ended=!0,g.nextTick(Q,H,P))}function Q(P,H){!P.endEmitted&&P.length===0&&(P.endEmitted=!0,H.readable=!1,H.emit("end"))}function X(P,H){for(var Z=0,k=P.length;Z<k;Z++)if(P[Z]===H)return Z;return-1}return Fa}var Ca,Ys;function Ec(){if(Ys)return Ca;Ys=1,Ca=c;var g=dr(),x=Object.create(Fr());x.inherits=dt(),x.inherits(c,g);function S(_,y){var m=this._transformState;m.transforming=!1;var h=m.writecb;if(!h)return this.emit("error",new Error("write callback called multiple times"));m.writechunk=null,m.writecb=null,y!=null&&this.push(y),h(_);var d=this._readableState;d.reading=!1,(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function c(_){if(!(this instanceof c))return new c(_);g.call(this,_),this._transformState={afterTransform:S.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,_&&(typeof _.transform=="function"&&(this._transform=_.transform),typeof _.flush=="function"&&(this._flush=_.flush)),this.on("prefinish",E)}function E(){var _=this;typeof this._flush=="function"?this._flush(function(y,m){i(_,y,m)}):i(this,null,null)}c.prototype.push=function(_,y){return this._transformState.needTransform=!1,g.prototype.push.call(this,_,y)},c.prototype._transform=function(_,y,m){throw new Error("_transform() is not implemented")},c.prototype._write=function(_,y,m){var h=this._transformState;if(h.writecb=m,h.writechunk=_,h.writeencoding=y,!h.transforming){var d=this._readableState;(h.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}},c.prototype._read=function(_){var y=this._transformState;y.writechunk!==null&&y.writecb&&!y.transforming?(y.transforming=!0,this._transform(y.writechunk,y.writeencoding,y.afterTransform)):y.needTransform=!0},c.prototype._destroy=function(_,y){var m=this;g.prototype._destroy.call(this,_,function(h){y(h),m.emit("close")})};function i(_,y,m){if(y)return _.emit("error",y);if(m!=null&&_.push(m),_._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(_._transformState.transforming)throw new Error("Calling transform done when still transforming");return _.push(null)}return Ca}var Da,Js;function Hp(){if(Js)return Da;Js=1,Da=S;var g=Ec(),x=Object.create(Fr());x.inherits=dt(),x.inherits(S,g);function S(c){if(!(this instanceof S))return new S(c);g.call(this,c)}return S.prototype._transform=function(c,E,i){i(null,c)},Da}var Qs;function zp(){return Qs||(Qs=1,(function(g,x){x=g.exports=_c(),x.Stream=x,x.Readable=x,x.Writable=Mc(),x.Duplex=dr(),x.Transform=Ec(),x.PassThrough=Hp()})(zr,zr.exports)),zr.exports}var wr={exports:{}},Ra,eh;function nf(){if(eh)return Ra;eh=1;var g=ze.requireBn(),x=pr(),S=ze.requireSafeBuffer().Buffer;function c(_){var y=_.modulus.byteLength(),m;do m=new g(x(y));while(m.cmp(_.modulus)>=0||!m.umod(_.prime1)||!m.umod(_.prime2));return m}function E(_){var y=c(_),m=y.toRed(g.mont(_.modulus)).redPow(new g(_.publicExponent)).fromRed();return{blinder:m,unblinder:y.invm(_.modulus)}}function i(_,y){var m=E(y),h=y.modulus.byteLength(),d=new g(_).mul(m.blinder).umod(y.modulus),p=d.toRed(g.mont(y.prime1)),v=d.toRed(g.mont(y.prime2)),w=y.coefficient,M=y.prime1,A=y.prime2,B=p.redPow(y.exponent1).fromRed(),F=v.redPow(y.exponent2).fromRed(),C=B.isub(F).imul(w).umod(M).imul(A);return F.iadd(C).imul(m.unblinder).umod(y.modulus).toArrayLike(S,"be",h)}return i.getr=c,Ra=i,Ra}var Ta={};const $p="6.6.1",Kp={version:$p};var Ia={},Zr={exports:{}},Wp=Zr.exports,th;function Yt(){return th||(th=1,(function(g){(function(x,S){function c(u,e){if(!u)throw new Error(e||"Assertion failed")}function E(u,e){u.super_=e;var r=function(){};r.prototype=e.prototype,u.prototype=new r,u.prototype.constructor=u}function i(u,e,r){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(u||0,e||10,r||"be"))}typeof x=="object"?x.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=ze.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),c(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(c(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(c(typeof e.length=="number"),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 a=0;a<this.length;a++)this.words[a]=0;var o,l,b=0;if(n==="be")for(a=e.length-1,o=0;a>=0;a-=3)l=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);else if(n==="le")for(a=0,o=0;a<e.length;a+=3)l=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);return this.strip()};function y(u,e){var r=u.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(u,e,r){var n=y(u,r);return r-1>=e&&(n|=y(u,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o=0,l=0,b;if(n==="be")for(a=e.length-1;a>=r;a-=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8}this.strip()};function h(u,e,r,n){for(var a=0,o=Math.min(u.length,r),l=e;l<o;l++){var b=u.charCodeAt(l)-48;a*=n,b>=49?a+=b-49+10:b>=17?a+=b-17+10:a+=b}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,o=1;o<=67108863;o*=r)a++;a--,o=o/r|0;for(var l=e.length-n,b=l%a,f=Math.min(l,l-b)+n,t=0,s=n;s<f;s+=a)t=h(e,s,s+a,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(b!==0){var $=1;for(t=h(e,s,e.length,r),s=0;s<b;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],p=[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],v=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,o=0,l=0;l<this.length;l++){var b=this.words[l],f=((b<<a|o)&16777215).toString(16);o=b>>>24-a&16777215,a+=2,a>=26&&(a-=26,l--),o!==0||l!==this.length-1?n=d[6-f.length]+f+n:n=f+n}for(o!==0&&(n=o.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=v[e];n="";var $=this.clone();for($.negative=0;!$.isZero();){var W=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?n=W+n:n=d[t-W.length]+W+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}c(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return c(typeof _<"u"),this.toArrayLike(_,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),o=n||Math.max(1,a);c(a<=o,"byte array longer than desired length"),c(o>0,"Requested array length <= 0"),this.strip();var l=r==="le",b=new e(o),f,t,s=this.clone();if(l){for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[t]=f;for(;t<o;t++)b[t]=0}else{for(t=0;t<o-a;t++)b[t]=0;for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[o-t-1]=f}return b},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(u){for(var e=new Array(u.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(u.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return c((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return c((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return c((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){c(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){c(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var o=0,l=0;l<a.length;l++)r=(n.words[l]|0)+(a.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;for(;o!==0&&l<n.length;l++)r=(n.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;if(this.length=n.length,o!==0)this.words[this.length]=o,this.length++;else if(n!==this)for(;l<n.length;l++)this.words[l]=n.words[l];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,o;n>0?(a=this,o=e):(a=e,o=this);for(var l=0,b=0;b<o.length;b++)r=(a.words[b]|0)-(o.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;for(;l!==0&&b<a.length;b++)r=(a.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;if(l===0&&b<a.length&&a!==this)for(;b<a.length;b++)this.words[b]=a.words[b];return this.length=Math.max(this.length,b),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function M(u,e,r){r.negative=e.negative^u.negative;var n=u.length+e.length|0;r.length=n,n=n-1|0;var a=u.words[0]|0,o=e.words[0]|0,l=a*o,b=l&67108863,f=l/67108864|0;r.words[0]=b;for(var t=1;t<n;t++){for(var s=f>>>26,$=f&67108863,W=Math.min(t,e.length-1),U=Math.max(0,t-u.length+1);U<=W;U++){var Q=t-U|0;a=u.words[Q]|0,o=e.words[U]|0,l=a*o+$,s+=l/67108864|0,$=l&67108863}r.words[t]=$|0,f=s|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var A=function(e,r,n){var a=e.words,o=r.words,l=n.words,b=0,f,t,s,$=a[0]|0,W=$&8191,U=$>>>13,Q=a[1]|0,X=Q&8191,P=Q>>>13,H=a[2]|0,Z=H&8191,k=H>>>13,N=a[3]|0,T=N&8191,j=N>>>13,fe=a[4]|0,ee=fe&8191,te=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,pt=o[0]|0,Ae=pt&8191,Se=pt>>>13,ct=o[1]|0,_e=ct&8191,xe=ct>>>13,wt=o[2]|0,Ce=wt&8191,De=wt>>>13,_t=o[3]|0,Te=_t&8191,Ie=_t>>>13,Dt=o[4]|0,Ne=Dt&8191,Pe=Dt>>>13,kt=o[5]|0,qe=kt&8191,Oe=kt>>>13,Pt=o[6]|0,ke=Pt&8191,Ue=Pt>>>13,O=o[7]|0,z=O&8191,L=O>>>13,I=o[8]|0,G=I&8191,ae=I>>>13,ge=o[9]|0,ue=ge&8191,le=ge>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(W,Ae),t=Math.imul(W,Se),t=t+Math.imul(U,Ae)|0,s=Math.imul(U,Se);var Je=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(X,Ae),t=Math.imul(X,Se),t=t+Math.imul(P,Ae)|0,s=Math.imul(P,Se),f=f+Math.imul(W,_e)|0,t=t+Math.imul(W,xe)|0,t=t+Math.imul(U,_e)|0,s=s+Math.imul(U,xe)|0;var We=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Z,Ae),t=Math.imul(Z,Se),t=t+Math.imul(k,Ae)|0,s=Math.imul(k,Se),f=f+Math.imul(X,_e)|0,t=t+Math.imul(X,xe)|0,t=t+Math.imul(P,_e)|0,s=s+Math.imul(P,xe)|0,f=f+Math.imul(W,Ce)|0,t=t+Math.imul(W,De)|0,t=t+Math.imul(U,Ce)|0,s=s+Math.imul(U,De)|0;var ht=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ae),t=Math.imul(T,Se),t=t+Math.imul(j,Ae)|0,s=Math.imul(j,Se),f=f+Math.imul(Z,_e)|0,t=t+Math.imul(Z,xe)|0,t=t+Math.imul(k,_e)|0,s=s+Math.imul(k,xe)|0,f=f+Math.imul(X,Ce)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(P,Ce)|0,s=s+Math.imul(P,De)|0,f=f+Math.imul(W,Te)|0,t=t+Math.imul(W,Ie)|0,t=t+Math.imul(U,Te)|0,s=s+Math.imul(U,Ie)|0;var Ve=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(ee,Ae),t=Math.imul(ee,Se),t=t+Math.imul(te,Ae)|0,s=Math.imul(te,Se),f=f+Math.imul(T,_e)|0,t=t+Math.imul(T,xe)|0,t=t+Math.imul(j,_e)|0,s=s+Math.imul(j,xe)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,s=s+Math.imul(k,De)|0,f=f+Math.imul(X,Te)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(P,Te)|0,s=s+Math.imul(P,Ie)|0,f=f+Math.imul(W,Ne)|0,t=t+Math.imul(W,Pe)|0,t=t+Math.imul(U,Ne)|0,s=s+Math.imul(U,Pe)|0;var et=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ae),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ae)|0,s=Math.imul(ne,Se),f=f+Math.imul(ee,_e)|0,t=t+Math.imul(ee,xe)|0,t=t+Math.imul(te,_e)|0,s=s+Math.imul(te,xe)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(j,Ce)|0,s=s+Math.imul(j,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,s=s+Math.imul(k,Ie)|0,f=f+Math.imul(X,Ne)|0,t=t+Math.imul(X,Pe)|0,t=t+Math.imul(P,Ne)|0,s=s+Math.imul(P,Pe)|0,f=f+Math.imul(W,qe)|0,t=t+Math.imul(W,Oe)|0,t=t+Math.imul(U,qe)|0,s=s+Math.imul(U,Oe)|0;var tt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ae),t=Math.imul(oe,Se),t=t+Math.imul(se,Ae)|0,s=Math.imul(se,Se),f=f+Math.imul(ie,_e)|0,t=t+Math.imul(ie,xe)|0,t=t+Math.imul(ne,_e)|0,s=s+Math.imul(ne,xe)|0,f=f+Math.imul(ee,Ce)|0,t=t+Math.imul(ee,De)|0,t=t+Math.imul(te,Ce)|0,s=s+Math.imul(te,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(j,Te)|0,s=s+Math.imul(j,Ie)|0,f=f+Math.imul(Z,Ne)|0,t=t+Math.imul(Z,Pe)|0,t=t+Math.imul(k,Ne)|0,s=s+Math.imul(k,Pe)|0,f=f+Math.imul(X,qe)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(P,qe)|0,s=s+Math.imul(P,Oe)|0,f=f+Math.imul(W,ke)|0,t=t+Math.imul(W,Ue)|0,t=t+Math.imul(U,ke)|0,s=s+Math.imul(U,Ue)|0;var ft=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ae),t=Math.imul(de,Se),t=t+Math.imul(ve,Ae)|0,s=Math.imul(ve,Se),f=f+Math.imul(oe,_e)|0,t=t+Math.imul(oe,xe)|0,t=t+Math.imul(se,_e)|0,s=s+Math.imul(se,xe)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,s=s+Math.imul(ne,De)|0,f=f+Math.imul(ee,Te)|0,t=t+Math.imul(ee,Ie)|0,t=t+Math.imul(te,Te)|0,s=s+Math.imul(te,Ie)|0,f=f+Math.imul(T,Ne)|0,t=t+Math.imul(T,Pe)|0,t=t+Math.imul(j,Ne)|0,s=s+Math.imul(j,Pe)|0,f=f+Math.imul(Z,qe)|0,t=t+Math.imul(Z,Oe)|0,t=t+Math.imul(k,qe)|0,s=s+Math.imul(k,Oe)|0,f=f+Math.imul(X,ke)|0,t=t+Math.imul(X,Ue)|0,t=t+Math.imul(P,ke)|0,s=s+Math.imul(P,Ue)|0,f=f+Math.imul(W,z)|0,t=t+Math.imul(W,L)|0,t=t+Math.imul(U,z)|0,s=s+Math.imul(U,L)|0;var at=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ae),t=Math.imul(be,Se),t=t+Math.imul(me,Ae)|0,s=Math.imul(me,Se),f=f+Math.imul(de,_e)|0,t=t+Math.imul(de,xe)|0,t=t+Math.imul(ve,_e)|0,s=s+Math.imul(ve,xe)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,s=s+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,s=s+Math.imul(ne,Ie)|0,f=f+Math.imul(ee,Ne)|0,t=t+Math.imul(ee,Pe)|0,t=t+Math.imul(te,Ne)|0,s=s+Math.imul(te,Pe)|0,f=f+Math.imul(T,qe)|0,t=t+Math.imul(T,Oe)|0,t=t+Math.imul(j,qe)|0,s=s+Math.imul(j,Oe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,s=s+Math.imul(k,Ue)|0,f=f+Math.imul(X,z)|0,t=t+Math.imul(X,L)|0,t=t+Math.imul(P,z)|0,s=s+Math.imul(P,L)|0,f=f+Math.imul(W,G)|0,t=t+Math.imul(W,ae)|0,t=t+Math.imul(U,G)|0,s=s+Math.imul(U,ae)|0;var rt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ae),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ae)|0,s=Math.imul(Be,Se),f=f+Math.imul(be,_e)|0,t=t+Math.imul(be,xe)|0,t=t+Math.imul(me,_e)|0,s=s+Math.imul(me,xe)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,s=s+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,s=s+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Ne)|0,t=t+Math.imul(ie,Pe)|0,t=t+Math.imul(ne,Ne)|0,s=s+Math.imul(ne,Pe)|0,f=f+Math.imul(ee,qe)|0,t=t+Math.imul(ee,Oe)|0,t=t+Math.imul(te,qe)|0,s=s+Math.imul(te,Oe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(j,ke)|0,s=s+Math.imul(j,Ue)|0,f=f+Math.imul(Z,z)|0,t=t+Math.imul(Z,L)|0,t=t+Math.imul(k,z)|0,s=s+Math.imul(k,L)|0,f=f+Math.imul(X,G)|0,t=t+Math.imul(X,ae)|0,t=t+Math.imul(P,G)|0,s=s+Math.imul(P,ae)|0,f=f+Math.imul(W,ue)|0,t=t+Math.imul(W,le)|0,t=t+Math.imul(U,ue)|0,s=s+Math.imul(U,le)|0;var nt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,_e),t=Math.imul(Fe,xe),t=t+Math.imul(Be,_e)|0,s=Math.imul(Be,xe),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,s=s+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,s=s+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Ne)|0,t=t+Math.imul(oe,Pe)|0,t=t+Math.imul(se,Ne)|0,s=s+Math.imul(se,Pe)|0,f=f+Math.imul(ie,qe)|0,t=t+Math.imul(ie,Oe)|0,t=t+Math.imul(ne,qe)|0,s=s+Math.imul(ne,Oe)|0,f=f+Math.imul(ee,ke)|0,t=t+Math.imul(ee,Ue)|0,t=t+Math.imul(te,ke)|0,s=s+Math.imul(te,Ue)|0,f=f+Math.imul(T,z)|0,t=t+Math.imul(T,L)|0,t=t+Math.imul(j,z)|0,s=s+Math.imul(j,L)|0,f=f+Math.imul(Z,G)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,G)|0,s=s+Math.imul(k,ae)|0,f=f+Math.imul(X,ue)|0,t=t+Math.imul(X,le)|0,t=t+Math.imul(P,ue)|0,s=s+Math.imul(P,le)|0;var it=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,s=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,s=s+Math.imul(me,Ie)|0,f=f+Math.imul(de,Ne)|0,t=t+Math.imul(de,Pe)|0,t=t+Math.imul(ve,Ne)|0,s=s+Math.imul(ve,Pe)|0,f=f+Math.imul(oe,qe)|0,t=t+Math.imul(oe,Oe)|0,t=t+Math.imul(se,qe)|0,s=s+Math.imul(se,Oe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,s=s+Math.imul(ne,Ue)|0,f=f+Math.imul(ee,z)|0,t=t+Math.imul(ee,L)|0,t=t+Math.imul(te,z)|0,s=s+Math.imul(te,L)|0,f=f+Math.imul(T,G)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(j,G)|0,s=s+Math.imul(j,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,s=s+Math.imul(k,le)|0;var Ze=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,s=Math.imul(Be,Ie),f=f+Math.imul(be,Ne)|0,t=t+Math.imul(be,Pe)|0,t=t+Math.imul(me,Ne)|0,s=s+Math.imul(me,Pe)|0,f=f+Math.imul(de,qe)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(ve,qe)|0,s=s+Math.imul(ve,Oe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,s=s+Math.imul(se,Ue)|0,f=f+Math.imul(ie,z)|0,t=t+Math.imul(ie,L)|0,t=t+Math.imul(ne,z)|0,s=s+Math.imul(ne,L)|0,f=f+Math.imul(ee,G)|0,t=t+Math.imul(ee,ae)|0,t=t+Math.imul(te,G)|0,s=s+Math.imul(te,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(j,ue)|0,s=s+Math.imul(j,le)|0;var Qe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,f=Math.imul(Fe,Ne),t=Math.imul(Fe,Pe),t=t+Math.imul(Be,Ne)|0,s=Math.imul(Be,Pe),f=f+Math.imul(be,qe)|0,t=t+Math.imul(be,Oe)|0,t=t+Math.imul(me,qe)|0,s=s+Math.imul(me,Oe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,s=s+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,z)|0,t=t+Math.imul(oe,L)|0,t=t+Math.imul(se,z)|0,s=s+Math.imul(se,L)|0,f=f+Math.imul(ie,G)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,G)|0,s=s+Math.imul(ne,ae)|0,f=f+Math.imul(ee,ue)|0,t=t+Math.imul(ee,le)|0,t=t+Math.imul(te,ue)|0,s=s+Math.imul(te,le)|0;var Ge=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(Fe,qe),t=Math.imul(Fe,Oe),t=t+Math.imul(Be,qe)|0,s=Math.imul(Be,Oe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,s=s+Math.imul(me,Ue)|0,f=f+Math.imul(de,z)|0,t=t+Math.imul(de,L)|0,t=t+Math.imul(ve,z)|0,s=s+Math.imul(ve,L)|0,f=f+Math.imul(oe,G)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,G)|0,s=s+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,s=s+Math.imul(ne,le)|0;var Xe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,s=Math.imul(Be,Ue),f=f+Math.imul(be,z)|0,t=t+Math.imul(be,L)|0,t=t+Math.imul(me,z)|0,s=s+Math.imul(me,L)|0,f=f+Math.imul(de,G)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,G)|0,s=s+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,s=s+Math.imul(se,le)|0;var Ye=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(Fe,z),t=Math.imul(Fe,L),t=t+Math.imul(Be,z)|0,s=Math.imul(Be,L),f=f+Math.imul(be,G)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,G)|0,s=s+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,s=s+Math.imul(ve,le)|0;var Ke=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,f=Math.imul(Fe,G),t=Math.imul(Fe,ae),t=t+Math.imul(Be,G)|0,s=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,s=s+Math.imul(me,le)|0;var Me=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Me>>>26)|0,Me&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,s=Math.imul(Be,le);var Ee=(b+f|0)+((t&8191)<<13)|0;return b=(s+(t>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l[0]=Je,l[1]=We,l[2]=ht,l[3]=Ve,l[4]=et,l[5]=tt,l[6]=ft,l[7]=at,l[8]=rt,l[9]=nt,l[10]=it,l[11]=Ze,l[12]=Qe,l[13]=Ge,l[14]=Xe,l[15]=Ye,l[16]=Ke,l[17]=Me,l[18]=Ee,b!==0&&(l[19]=b,n.length++),n};Math.imul||(A=M);function B(u,e,r){r.negative=e.negative^u.negative,r.length=u.length+e.length;for(var n=0,a=0,o=0;o<r.length-1;o++){var l=a;a=0;for(var b=n&67108863,f=Math.min(o,e.length-1),t=Math.max(0,o-u.length+1);t<=f;t++){var s=o-t,$=u.words[s]|0,W=e.words[t]|0,U=$*W,Q=U&67108863;l=l+(U/67108864|0)|0,Q=Q+b|0,b=Q&67108863,l=l+(Q>>>26)|0,a+=l>>>26,l&=67108863}r.words[o]=b,n=l,l=a}return n!==0?r.words[o]=n:r.length--,r.strip()}function F(u,e,r){var n=new C;return n.mulp(u,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,r):a<63?n=M(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(u,e){this.x=u,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,o=0;o<r;o++)a|=(e&1)<<r-o-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,o,l){for(var b=0;b<l;b++)a[b]=r[e[b]],o[b]=n[e[b]]},C.prototype.transform=function(e,r,n,a,o,l){this.permute(l,e,r,n,a,o);for(var b=1;b<o;b<<=1)for(var f=b<<1,t=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),$=0;$<o;$+=f)for(var W=t,U=s,Q=0;Q<b;Q++){var X=n[$+Q],P=a[$+Q],H=n[$+Q+b],Z=a[$+Q+b],k=W*H-U*Z;Z=W*Z+U*H,H=k,n[$+Q]=X+H,a[$+Q]=P+Z,n[$+Q+b]=X-H,a[$+Q+b]=P-Z,Q!==f&&(k=t*W-s*U,U=t*U+s*W,W=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,o=0;for(n=n/2|0;n;n=n>>>1)o++;return 1<<o+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var o=e[a];e[a]=e[n-a-1],e[n-a-1]=o,o=r[a],r[a]=-r[n-a-1],r[n-a-1]=-o}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var o=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=o&67108863,o<67108864?n=0:n=o/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var o=0,l=0;l<r;l++)o=o+(e[l]|0),n[2*l]=o&8191,o=o>>>13,n[2*l+1]=o&8191,o=o>>>13;for(l=2*r;l<a;++l)n[l]=0;c(o===0),c((o&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(a),l=this.stub(a),b=new Array(a),f=new Array(a),t=new Array(a),s=new Array(a),$=new Array(a),W=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,b,a),this.convert13b(r.words,r.length,s,a),this.transform(b,l,f,t,a,o),this.transform(s,l,$,W,a,o);for(var Q=0;Q<a;Q++){var X=f[Q]*$[Q]-t[Q]*W[Q];t[Q]=f[Q]*W[Q]+t[Q]*$[Q],f[Q]=X}return this.conjugate(f,t,a),this.transform(f,t,U,l,a,o),this.conjugate(U,l,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){c(typeof e=="number"),c(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,o=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[n]=o&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=w(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var o=n.sqr();a<r.length;a++,o=o.sqr())r[a]!==0&&(n=n.mul(o));return n},i.prototype.iushln=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,o;if(r!==0){var l=0;for(o=0;o<this.length;o++){var b=this.words[o]&a,f=(this.words[o]|0)-b<<r;this.words[o]=f|l,l=b>>>26-r}l&&(this.words[o]=l,this.length++)}if(n!==0){for(o=this.length-1;o>=0;o--)this.words[o+n]=this.words[o];for(o=0;o<n;o++)this.words[o]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return c(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){c(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var o=e%26,l=Math.min((e-o)/26,this.length),b=67108863^67108863>>>o<<o,f=n;if(a-=l,a=Math.max(0,a),f){for(var t=0;t<l;t++)f.words[t]=this.words[t];f.length=l}if(l!==0)if(this.length>l)for(this.length-=l,t=0;t<this.length;t++)this.words[t]=this.words[t+l];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=a);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&b}return f&&s!==0&&(f.words[f.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return c(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var o=this.words[n];return!!(o&a)},i.prototype.imaskn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return c(typeof e=="number"),c(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(c(typeof e=="number"),c(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,o;this._expand(a);var l,b=0;for(o=0;o<e.length;o++){l=(this.words[o+n]|0)+b;var f=(e.words[o]|0)*r;l-=f&67108863,b=(l>>26)-(f/67108864|0),this.words[o+n]=l&67108863}for(;o<this.length-n;o++)l=(this.words[o+n]|0)+b,b=l>>26,this.words[o+n]=l&67108863;if(b===0)return this.strip();for(c(b===-1),b=0,o=0;o<this.length;o++)l=-(this.words[o]|0)+b,b=l>>26,this.words[o]=l&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),o=e,l=o.words[o.length-1]|0,b=this._countBits(l);n=26-b,n!==0&&(o=o.ushln(n),a.iushln(n),l=o.words[o.length-1]|0);var f=a.length-o.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=a.clone()._ishlnsubmul(o,1,f);$.negative===0&&(a=$,t&&(t.words[f]=1));for(var W=f-1;W>=0;W--){var U=(a.words[o.length+W]|0)*67108864+(a.words[o.length+W-1]|0);for(U=Math.min(U/l|0,67108863),a._ishlnsubmul(o,U,W);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(o,1,W),a.isZero()||(a.negative^=1);t&&(t.words[W]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(c(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,l;return this.negative!==0&&e.negative===0?(l=this.neg().divmod(e,r),r!=="mod"&&(a=l.div.neg()),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(l=this.divmod(e.neg(),r),r!=="mod"&&(a=l.div.neg()),{div:a,mod:l.mod}):(this.negative&e.negative)!==0?(l=this.neg().divmod(e.neg(),r),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),o=e.andln(1),l=n.cmp(a);return l<0||o===1&&l===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){c(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){c(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=new i(0),b=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),s=r.clone();!r.isZero();){for(var $=0,W=1;(r.words[0]&W)===0&&$<26;++$,W<<=1);if($>0)for(r.iushrn($);$-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(t),o.isub(s)),a.iushrn(1),o.iushrn(1);for(var U=0,Q=1;(n.words[0]&Q)===0&&U<26;++U,Q<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(l.isOdd()||b.isOdd())&&(l.iadd(t),b.isub(s)),l.iushrn(1),b.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(l),o.isub(b)):(n.isub(r),l.isub(a),b.isub(o))}return{a:l,b,gcd:n.iushln(f)}},i.prototype._invmp=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var b=0,f=1;(r.words[0]&f)===0&&b<26;++b,f<<=1);if(b>0)for(r.iushrn(b);b-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var t=0,s=1;(n.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(n.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(o)):(n.isub(r),o.isub(a))}var $;return r.cmpn(1)===0?$=a:$=o,$.cmpn(0)<0&&$.iadd(e),$},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=r.cmp(n);if(o<0){var l=r;r=n,n=l}else if(o===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){c(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var o=a,l=n;o!==0&&l<this.length;l++){var b=this.words[l]|0;b+=o,o=b>>>26,b&=67108863,this.words[l]=b}return o!==0&&(this.words[l]=o,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),c(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,o=e.words[n]|0;if(a!==o){a<o?r=-1:a>o&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new V(e)},i.prototype.toRed=function(e){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return c(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return c(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(u,e){this.name=u,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function K(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(K,D),K.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),o=0;o<a;o++)r.words[o]=e.words[o];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var l=e.words[9];for(r.words[r.length++]=l&n,o=10;o<e.length;o++){var b=e.words[o]|0;e.words[o-10]=(b&n)<<4|l>>>22,l=b}l>>>=22,e.words[o-10]=l,l===0&&e.length>10?e.length-=10:e.length-=9},K.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function q(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(q,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(Y,D);function J(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(J,D),J.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,o=a&67108863;a>>>=26,e.words[n]=o,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new K;else if(e==="p224")r=new q;else if(e==="p192")r=new Y;else if(e==="p25519")r=new J;else throw new Error("Unknown prime "+e);return R[e]=r,r};function V(u){if(typeof u=="string"){var e=i._prime(u);this.m=e.p,this.prime=e}else c(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}V.prototype._verify1=function(e){c(e.negative===0,"red works only with positives"),c(e.red,"red works only with red numbers")},V.prototype._verify2=function(e,r){c((e.negative|r.negative)===0,"red works only with positives"),c(e.red&&e.red===r.red,"red works only with red numbers")},V.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},V.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},V.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},V.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},V.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},V.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},V.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},V.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},V.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},V.prototype.isqr=function(e){return this.imul(e,e.clone())},V.prototype.sqr=function(e){return this.mul(e,e)},V.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(c(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);c(!a.isZero());var l=new i(1).toRed(this),b=l.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(b)!==0;)t.redIAdd(b);for(var s=this.pow(t,a),$=this.pow(e,a.addn(1).iushrn(1)),W=this.pow(e,a),U=o;W.cmp(l)!==0;){for(var Q=W,X=0;Q.cmp(l)!==0;X++)Q=Q.redSqr();c(X<U);var P=this.pow(s,new i(1).iushln(U-X-1));$=$.redMul(P),s=P.redSqr(),W=W.redMul(s),U=X}return $},V.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},V.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var l=a[0],b=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),o=r.length-1;o>=0;o--){for(var s=r.words[o],$=t-1;$>=0;$--){var W=s>>$&1;if(l!==a[0]&&(l=this.sqr(l)),W===0&&b===0){f=0;continue}b<<=1,b|=W,f++,!(f!==n&&(o!==0||$!==0))&&(l=this.mul(l,a[b]),f=0,b=0)}t=26}return l},V.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},V.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new re(e)};function re(u){V.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}E(re,V),re.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},re.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},re.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(g,Wp)})(Zr)),Zr.exports}var ka={},rh;function Ac(){return rh||(rh=1,(function(g){var x=g;function S(i,_){if(Array.isArray(i))return i.slice();if(!i)return[];var y=[];if(typeof i!="string"){for(var m=0;m<i.length;m++)y[m]=i[m]|0;return y}if(_==="hex"){i=i.replace(/[^a-z0-9]+/ig,""),i.length%2!==0&&(i="0"+i);for(var m=0;m<i.length;m+=2)y.push(parseInt(i[m]+i[m+1],16))}else for(var m=0;m<i.length;m++){var h=i.charCodeAt(m),d=h>>8,p=h&255;d?y.push(d,p):y.push(p)}return y}x.toArray=S;function c(i){return i.length===1?"0"+i:i}x.zero2=c;function E(i){for(var _="",y=0;y<i.length;y++)_+=c(i[y].toString(16));return _}x.toHex=E,x.encode=function(_,y){return y==="hex"?E(_):_}})(ka)),ka}var ih;function Vt(){return ih||(ih=1,(function(g){var x=g,S=Yt(),c=Gt(),E=Ac();x.assert=c,x.toArray=E.toArray,x.zero2=E.zero2,x.toHex=E.toHex,x.encode=E.encode;function i(d,p,v){var w=new Array(Math.max(d.bitLength(),v)+1),M;for(M=0;M<w.length;M+=1)w[M]=0;var A=1<<p+1,B=d.clone();for(M=0;M<w.length;M++){var F,C=B.andln(A-1);B.isOdd()?(C>(A>>1)-1?F=(A>>1)-C:F=C,B.isubn(F)):F=0,w[M]=F,B.iushrn(1)}return w}x.getNAF=i;function _(d,p){var v=[[],[]];d=d.clone(),p=p.clone();for(var w=0,M=0,A;d.cmpn(-w)>0||p.cmpn(-M)>0;){var B=d.andln(3)+w&3,F=p.andln(3)+M&3;B===3&&(B=-1),F===3&&(F=-1);var C;(B&1)===0?C=0:(A=d.andln(7)+w&7,(A===3||A===5)&&F===2?C=-B:C=B),v[0].push(C);var R;(F&1)===0?R=0:(A=p.andln(7)+M&7,(A===3||A===5)&&B===2?R=-F:R=F),v[1].push(R),2*w===C+1&&(w=1-w),2*M===R+1&&(M=1-M),d.iushrn(1),p.iushrn(1)}return v}x.getJSF=_;function y(d,p,v){var w="_"+p;d.prototype[p]=function(){return this[w]!==void 0?this[w]:this[w]=v.call(this)}}x.cachedProperty=y;function m(d){return typeof d=="string"?x.toArray(d,"hex"):d}x.parseBytes=m;function h(d){return new S(d,"hex","le")}x.intFromLE=h})(Ia)),Ia}var Na={},Pa,nh;function si(){if(nh)return Pa;nh=1;var g=Yt(),x=Vt(),S=x.getNAF,c=x.getJSF,E=x.assert;function i(y,m){this.type=y,this.p=new g(m.p,16),this.red=m.prime?g.red(m.prime):g.mont(this.p),this.zero=new g(0).toRed(this.red),this.one=new g(1).toRed(this.red),this.two=new g(2).toRed(this.red),this.n=m.n&&new g(m.n,16),this.g=m.g&&this.pointFromJSON(m.g,m.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 h=this.n&&this.p.div(this.n);!h||h.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}Pa=i,i.prototype.point=function(){throw new Error("Not implemented")},i.prototype.validate=function(){throw new Error("Not implemented")},i.prototype._fixedNafMul=function(m,h){E(m.precomputed);var d=m._getDoubles(),p=S(h,1,this._bitLength),v=(1<<d.step+1)-(d.step%2===0?2:1);v/=3;var w=[],M,A;for(M=0;M<p.length;M+=d.step){A=0;for(var B=M+d.step-1;B>=M;B--)A=(A<<1)+p[B];w.push(A)}for(var F=this.jpoint(null,null,null),C=this.jpoint(null,null,null),R=v;R>0;R--){for(M=0;M<w.length;M++)A=w[M],A===R?C=C.mixedAdd(d.points[M]):A===-R&&(C=C.mixedAdd(d.points[M].neg()));F=F.add(C)}return F.toP()},i.prototype._wnafMul=function(m,h){var d=4,p=m._getNAFPoints(d);d=p.wnd;for(var v=p.points,w=S(h,d,this._bitLength),M=this.jpoint(null,null,null),A=w.length-1;A>=0;A--){for(var B=0;A>=0&&w[A]===0;A--)B++;if(A>=0&&B++,M=M.dblp(B),A<0)break;var F=w[A];E(F!==0),m.type==="affine"?F>0?M=M.mixedAdd(v[F-1>>1]):M=M.mixedAdd(v[-F-1>>1].neg()):F>0?M=M.add(v[F-1>>1]):M=M.add(v[-F-1>>1].neg())}return m.type==="affine"?M.toP():M},i.prototype._wnafMulAdd=function(m,h,d,p,v){var w=this._wnafT1,M=this._wnafT2,A=this._wnafT3,B=0,F,C,R;for(F=0;F<p;F++){R=h[F];var D=R._getNAFPoints(m);w[F]=D.wnd,M[F]=D.points}for(F=p-1;F>=1;F-=2){var K=F-1,q=F;if(w[K]!==1||w[q]!==1){A[K]=S(d[K],w[K],this._bitLength),A[q]=S(d[q],w[q],this._bitLength),B=Math.max(A[K].length,B),B=Math.max(A[q].length,B);continue}var Y=[h[K],null,null,h[q]];h[K].y.cmp(h[q].y)===0?(Y[1]=h[K].add(h[q]),Y[2]=h[K].toJ().mixedAdd(h[q].neg())):h[K].y.cmp(h[q].y.redNeg())===0?(Y[1]=h[K].toJ().mixedAdd(h[q]),Y[2]=h[K].add(h[q].neg())):(Y[1]=h[K].toJ().mixedAdd(h[q]),Y[2]=h[K].toJ().mixedAdd(h[q].neg()));var J=[-3,-1,-5,-7,0,7,5,1,3],V=c(d[K],d[q]);for(B=Math.max(V[0].length,B),A[K]=new Array(B),A[q]=new Array(B),C=0;C<B;C++){var re=V[0][C]|0,u=V[1][C]|0;A[K][C]=J[(re+1)*3+(u+1)],A[q][C]=0,M[K]=Y}}var e=this.jpoint(null,null,null),r=this._wnafT4;for(F=B;F>=0;F--){for(var n=0;F>=0;){var a=!0;for(C=0;C<p;C++)r[C]=A[C][F]|0,r[C]!==0&&(a=!1);if(!a)break;n++,F--}if(F>=0&&n++,e=e.dblp(n),F<0)break;for(C=0;C<p;C++){var o=r[C];o!==0&&(o>0?R=M[C][o-1>>1]:o<0&&(R=M[C][-o-1>>1].neg()),R.type==="affine"?e=e.mixedAdd(R):e=e.add(R))}}for(F=0;F<p;F++)M[F]=null;return v?e:e.toP()};function _(y,m){this.curve=y,this.type=m,this.precomputed=null}return i.BasePoint=_,_.prototype.eq=function(){throw new Error("Not implemented")},_.prototype.validate=function(){return this.curve.validate(this)},i.prototype.decodePoint=function(m,h){m=x.toArray(m,h);var d=this.p.byteLength();if((m[0]===4||m[0]===6||m[0]===7)&&m.length-1===2*d){m[0]===6?E(m[m.length-1]%2===0):m[0]===7&&E(m[m.length-1]%2===1);var p=this.point(m.slice(1,1+d),m.slice(1+d,1+2*d));return p}else if((m[0]===2||m[0]===3)&&m.length-1===d)return this.pointFromX(m.slice(1,1+d),m[0]===3);throw new Error("Unknown point format")},_.prototype.encodeCompressed=function(m){return this.encode(m,!0)},_.prototype._encode=function(m){var h=this.curve.p.byteLength(),d=this.getX().toArray("be",h);return m?[this.getY().isEven()?2:3].concat(d):[4].concat(d,this.getY().toArray("be",h))},_.prototype.encode=function(m,h){return x.encode(this._encode(h),m)},_.prototype.precompute=function(m){if(this.precomputed)return this;var h={doubles:null,naf:null,beta:null};return h.naf=this._getNAFPoints(8),h.doubles=this._getDoubles(4,m),h.beta=this._getBeta(),this.precomputed=h,this},_.prototype._hasDoubles=function(m){if(!this.precomputed)return!1;var h=this.precomputed.doubles;return h?h.points.length>=Math.ceil((m.bitLength()+1)/h.step):!1},_.prototype._getDoubles=function(m,h){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var d=[this],p=this,v=0;v<h;v+=m){for(var w=0;w<m;w++)p=p.dbl();d.push(p)}return{step:m,points:d}},_.prototype._getNAFPoints=function(m){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var h=[this],d=(1<<m)-1,p=d===1?null:this.dbl(),v=1;v<d;v++)h[v]=h[v-1].add(p);return{wnd:m,points:h}},_.prototype._getBeta=function(){return null},_.prototype.dblp=function(m){for(var h=this,d=0;d<m;d++)h=h.dbl();return h},Pa}var qa,ah;function jp(){if(ah)return qa;ah=1;var g=Vt(),x=Yt(),S=dt(),c=si(),E=g.assert;function i(m){c.call(this,"short",m),this.a=new x(m.a,16).toRed(this.red),this.b=new x(m.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(m),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}S(i,c),qa=i,i.prototype._getEndomorphism=function(h){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var d,p;if(h.beta)d=new x(h.beta,16).toRed(this.red);else{var v=this._getEndoRoots(this.p);d=v[0].cmp(v[1])<0?v[0]:v[1],d=d.toRed(this.red)}if(h.lambda)p=new x(h.lambda,16);else{var w=this._getEndoRoots(this.n);this.g.mul(w[0]).x.cmp(this.g.x.redMul(d))===0?p=w[0]:(p=w[1],E(this.g.mul(p).x.cmp(this.g.x.redMul(d))===0))}var M;return h.basis?M=h.basis.map(function(A){return{a:new x(A.a,16),b:new x(A.b,16)}}):M=this._getEndoBasis(p),{beta:d,lambda:p,basis:M}}},i.prototype._getEndoRoots=function(h){var d=h===this.p?this.red:x.mont(h),p=new x(2).toRed(d).redInvm(),v=p.redNeg(),w=new x(3).toRed(d).redNeg().redSqrt().redMul(p),M=v.redAdd(w).fromRed(),A=v.redSub(w).fromRed();return[M,A]},i.prototype._getEndoBasis=function(h){for(var d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),p=h,v=this.n.clone(),w=new x(1),M=new x(0),A=new x(0),B=new x(1),F,C,R,D,K,q,Y,J=0,V,re;p.cmpn(0)!==0;){var u=v.div(p);V=v.sub(u.mul(p)),re=A.sub(u.mul(w));var e=B.sub(u.mul(M));if(!R&&V.cmp(d)<0)F=Y.neg(),C=w,R=V.neg(),D=re;else if(R&&++J===2)break;Y=V,v=p,p=V,A=w,w=re,B=M,M=e}K=V.neg(),q=re;var r=R.sqr().add(D.sqr()),n=K.sqr().add(q.sqr());return n.cmp(r)>=0&&(K=F,q=C),R.negative&&(R=R.neg(),D=D.neg()),K.negative&&(K=K.neg(),q=q.neg()),[{a:R,b:D},{a:K,b:q}]},i.prototype._endoSplit=function(h){var d=this.endo.basis,p=d[0],v=d[1],w=v.b.mul(h).divRound(this.n),M=p.b.neg().mul(h).divRound(this.n),A=w.mul(p.a),B=M.mul(v.a),F=w.mul(p.b),C=M.mul(v.b),R=h.sub(A).sub(B),D=F.add(C).neg();return{k1:R,k2:D}},i.prototype.pointFromX=function(h,d){h=new x(h,16),h.red||(h=h.toRed(this.red));var p=h.redSqr().redMul(h).redIAdd(h.redMul(this.a)).redIAdd(this.b),v=p.redSqrt();if(v.redSqr().redSub(p).cmp(this.zero)!==0)throw new Error("invalid point");var w=v.fromRed().isOdd();return(d&&!w||!d&&w)&&(v=v.redNeg()),this.point(h,v)},i.prototype.validate=function(h){if(h.inf)return!0;var d=h.x,p=h.y,v=this.a.redMul(d),w=d.redSqr().redMul(d).redIAdd(v).redIAdd(this.b);return p.redSqr().redISub(w).cmpn(0)===0},i.prototype._endoWnafMulAdd=function(h,d,p){for(var v=this._endoWnafT1,w=this._endoWnafT2,M=0;M<h.length;M++){var A=this._endoSplit(d[M]),B=h[M],F=B._getBeta();A.k1.negative&&(A.k1.ineg(),B=B.neg(!0)),A.k2.negative&&(A.k2.ineg(),F=F.neg(!0)),v[M*2]=B,v[M*2+1]=F,w[M*2]=A.k1,w[M*2+1]=A.k2}for(var C=this._wnafMulAdd(1,v,w,M*2,p),R=0;R<M*2;R++)v[R]=null,w[R]=null;return C};function _(m,h,d,p){c.BasePoint.call(this,m,"affine"),h===null&&d===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new x(h,16),this.y=new x(d,16),p&&(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)}S(_,c.BasePoint),i.prototype.point=function(h,d,p){return new _(this,h,d,p)},i.prototype.pointFromJSON=function(h,d){return _.fromJSON(this,h,d)},_.prototype._getBeta=function(){if(this.curve.endo){var h=this.precomputed;if(h&&h.beta)return h.beta;var d=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(h){var p=this.curve,v=function(w){return p.point(w.x.redMul(p.endo.beta),w.y)};h.beta=d,d.precomputed={beta:null,naf:h.naf&&{wnd:h.naf.wnd,points:h.naf.points.map(v)},doubles:h.doubles&&{step:h.doubles.step,points:h.doubles.points.map(v)}}}return d}},_.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]},_.fromJSON=function(h,d,p){typeof d=="string"&&(d=JSON.parse(d));var v=h.point(d[0],d[1],p);if(!d[2])return v;function w(A){return h.point(A[0],A[1],p)}var M=d[2];return v.precomputed={beta:null,doubles:M.doubles&&{step:M.doubles.step,points:[v].concat(M.doubles.points.map(w))},naf:M.naf&&{wnd:M.naf.wnd,points:[v].concat(M.naf.points.map(w))}},v},_.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)+">"},_.prototype.isInfinity=function(){return this.inf},_.prototype.add=function(h){if(this.inf)return h;if(h.inf)return this;if(this.eq(h))return this.dbl();if(this.neg().eq(h))return this.curve.point(null,null);if(this.x.cmp(h.x)===0)return this.curve.point(null,null);var d=this.y.redSub(h.y);d.cmpn(0)!==0&&(d=d.redMul(this.x.redSub(h.x).redInvm()));var p=d.redSqr().redISub(this.x).redISub(h.x),v=d.redMul(this.x.redSub(p)).redISub(this.y);return this.curve.point(p,v)},_.prototype.dbl=function(){if(this.inf)return this;var h=this.y.redAdd(this.y);if(h.cmpn(0)===0)return this.curve.point(null,null);var d=this.curve.a,p=this.x.redSqr(),v=h.redInvm(),w=p.redAdd(p).redIAdd(p).redIAdd(d).redMul(v),M=w.redSqr().redISub(this.x.redAdd(this.x)),A=w.redMul(this.x.redSub(M)).redISub(this.y);return this.curve.point(M,A)},_.prototype.getX=function(){return this.x.fromRed()},_.prototype.getY=function(){return this.y.fromRed()},_.prototype.mul=function(h){return h=new x(h,16),this.isInfinity()?this:this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve.endo?this.curve._endoWnafMulAdd([this],[h]):this.curve._wnafMul(this,h)},_.prototype.mulAdd=function(h,d,p){var v=[this,d],w=[h,p];return this.curve.endo?this.curve._endoWnafMulAdd(v,w):this.curve._wnafMulAdd(1,v,w,2)},_.prototype.jmulAdd=function(h,d,p){var v=[this,d],w=[h,p];return this.curve.endo?this.curve._endoWnafMulAdd(v,w,!0):this.curve._wnafMulAdd(1,v,w,2,!0)},_.prototype.eq=function(h){return this===h||this.inf===h.inf&&(this.inf||this.x.cmp(h.x)===0&&this.y.cmp(h.y)===0)},_.prototype.neg=function(h){if(this.inf)return this;var d=this.curve.point(this.x,this.y.redNeg());if(h&&this.precomputed){var p=this.precomputed,v=function(w){return w.neg()};d.precomputed={naf:p.naf&&{wnd:p.naf.wnd,points:p.naf.points.map(v)},doubles:p.doubles&&{step:p.doubles.step,points:p.doubles.points.map(v)}}}return d},_.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var h=this.curve.jpoint(this.x,this.y,this.curve.one);return h};function y(m,h,d,p){c.BasePoint.call(this,m,"jacobian"),h===null&&d===null&&p===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new x(0)):(this.x=new x(h,16),this.y=new x(d,16),this.z=new x(p,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}return S(y,c.BasePoint),i.prototype.jpoint=function(h,d,p){return new y(this,h,d,p)},y.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var h=this.z.redInvm(),d=h.redSqr(),p=this.x.redMul(d),v=this.y.redMul(d).redMul(h);return this.curve.point(p,v)},y.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},y.prototype.add=function(h){if(this.isInfinity())return h;if(h.isInfinity())return this;var d=h.z.redSqr(),p=this.z.redSqr(),v=this.x.redMul(d),w=h.x.redMul(p),M=this.y.redMul(d.redMul(h.z)),A=h.y.redMul(p.redMul(this.z)),B=v.redSub(w),F=M.redSub(A);if(B.cmpn(0)===0)return F.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var C=B.redSqr(),R=C.redMul(B),D=v.redMul(C),K=F.redSqr().redIAdd(R).redISub(D).redISub(D),q=F.redMul(D.redISub(K)).redISub(M.redMul(R)),Y=this.z.redMul(h.z).redMul(B);return this.curve.jpoint(K,q,Y)},y.prototype.mixedAdd=function(h){if(this.isInfinity())return h.toJ();if(h.isInfinity())return this;var d=this.z.redSqr(),p=this.x,v=h.x.redMul(d),w=this.y,M=h.y.redMul(d).redMul(this.z),A=p.redSub(v),B=w.redSub(M);if(A.cmpn(0)===0)return B.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var F=A.redSqr(),C=F.redMul(A),R=p.redMul(F),D=B.redSqr().redIAdd(C).redISub(R).redISub(R),K=B.redMul(R.redISub(D)).redISub(w.redMul(C)),q=this.z.redMul(A);return this.curve.jpoint(D,K,q)},y.prototype.dblp=function(h){if(h===0)return this;if(this.isInfinity())return this;if(!h)return this.dbl();var d;if(this.curve.zeroA||this.curve.threeA){var p=this;for(d=0;d<h;d++)p=p.dbl();return p}var v=this.curve.a,w=this.curve.tinv,M=this.x,A=this.y,B=this.z,F=B.redSqr().redSqr(),C=A.redAdd(A);for(d=0;d<h;d++){var R=M.redSqr(),D=C.redSqr(),K=D.redSqr(),q=R.redAdd(R).redIAdd(R).redIAdd(v.redMul(F)),Y=M.redMul(D),J=q.redSqr().redISub(Y.redAdd(Y)),V=Y.redISub(J),re=q.redMul(V);re=re.redIAdd(re).redISub(K);var u=C.redMul(B);d+1<h&&(F=F.redMul(K)),M=J,B=u,C=re}return this.curve.jpoint(M,C.redMul(w),B)},y.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},y.prototype._zeroDbl=function(){var h,d,p;if(this.zOne){var v=this.x.redSqr(),w=this.y.redSqr(),M=w.redSqr(),A=this.x.redAdd(w).redSqr().redISub(v).redISub(M);A=A.redIAdd(A);var B=v.redAdd(v).redIAdd(v),F=B.redSqr().redISub(A).redISub(A),C=M.redIAdd(M);C=C.redIAdd(C),C=C.redIAdd(C),h=F,d=B.redMul(A.redISub(F)).redISub(C),p=this.y.redAdd(this.y)}else{var R=this.x.redSqr(),D=this.y.redSqr(),K=D.redSqr(),q=this.x.redAdd(D).redSqr().redISub(R).redISub(K);q=q.redIAdd(q);var Y=R.redAdd(R).redIAdd(R),J=Y.redSqr(),V=K.redIAdd(K);V=V.redIAdd(V),V=V.redIAdd(V),h=J.redISub(q).redISub(q),d=Y.redMul(q.redISub(h)).redISub(V),p=this.y.redMul(this.z),p=p.redIAdd(p)}return this.curve.jpoint(h,d,p)},y.prototype._threeDbl=function(){var h,d,p;if(this.zOne){var v=this.x.redSqr(),w=this.y.redSqr(),M=w.redSqr(),A=this.x.redAdd(w).redSqr().redISub(v).redISub(M);A=A.redIAdd(A);var B=v.redAdd(v).redIAdd(v).redIAdd(this.curve.a),F=B.redSqr().redISub(A).redISub(A);h=F;var C=M.redIAdd(M);C=C.redIAdd(C),C=C.redIAdd(C),d=B.redMul(A.redISub(F)).redISub(C),p=this.y.redAdd(this.y)}else{var R=this.z.redSqr(),D=this.y.redSqr(),K=this.x.redMul(D),q=this.x.redSub(R).redMul(this.x.redAdd(R));q=q.redAdd(q).redIAdd(q);var Y=K.redIAdd(K);Y=Y.redIAdd(Y);var J=Y.redAdd(Y);h=q.redSqr().redISub(J),p=this.y.redAdd(this.z).redSqr().redISub(D).redISub(R);var V=D.redSqr();V=V.redIAdd(V),V=V.redIAdd(V),V=V.redIAdd(V),d=q.redMul(Y.redISub(h)).redISub(V)}return this.curve.jpoint(h,d,p)},y.prototype._dbl=function(){var h=this.curve.a,d=this.x,p=this.y,v=this.z,w=v.redSqr().redSqr(),M=d.redSqr(),A=p.redSqr(),B=M.redAdd(M).redIAdd(M).redIAdd(h.redMul(w)),F=d.redAdd(d);F=F.redIAdd(F);var C=F.redMul(A),R=B.redSqr().redISub(C.redAdd(C)),D=C.redISub(R),K=A.redSqr();K=K.redIAdd(K),K=K.redIAdd(K),K=K.redIAdd(K);var q=B.redMul(D).redISub(K),Y=p.redAdd(p).redMul(v);return this.curve.jpoint(R,q,Y)},y.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var h=this.x.redSqr(),d=this.y.redSqr(),p=this.z.redSqr(),v=d.redSqr(),w=h.redAdd(h).redIAdd(h),M=w.redSqr(),A=this.x.redAdd(d).redSqr().redISub(h).redISub(v);A=A.redIAdd(A),A=A.redAdd(A).redIAdd(A),A=A.redISub(M);var B=A.redSqr(),F=v.redIAdd(v);F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F);var C=w.redIAdd(A).redSqr().redISub(M).redISub(B).redISub(F),R=d.redMul(C);R=R.redIAdd(R),R=R.redIAdd(R);var D=this.x.redMul(B).redISub(R);D=D.redIAdd(D),D=D.redIAdd(D);var K=this.y.redMul(C.redMul(F.redISub(C)).redISub(A.redMul(B)));K=K.redIAdd(K),K=K.redIAdd(K),K=K.redIAdd(K);var q=this.z.redAdd(A).redSqr().redISub(p).redISub(B);return this.curve.jpoint(D,K,q)},y.prototype.mul=function(h,d){return h=new x(h,d),this.curve._wnafMul(this,h)},y.prototype.eq=function(h){if(h.type==="affine")return this.eq(h.toJ());if(this===h)return!0;var d=this.z.redSqr(),p=h.z.redSqr();if(this.x.redMul(p).redISub(h.x.redMul(d)).cmpn(0)!==0)return!1;var v=d.redMul(this.z),w=p.redMul(h.z);return this.y.redMul(w).redISub(h.y.redMul(v)).cmpn(0)===0},y.prototype.eqXToP=function(h){var d=this.z.redSqr(),p=h.toRed(this.curve.red).redMul(d);if(this.x.cmp(p)===0)return!0;for(var v=h.clone(),w=this.curve.redN.redMul(d);;){if(v.iadd(this.curve.n),v.cmp(this.curve.p)>=0)return!1;if(p.redIAdd(w),this.x.cmp(p)===0)return!0}},y.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)+">"},y.prototype.isInfinity=function(){return this.z.cmpn(0)===0},qa}var Oa,fh;function Gp(){if(fh)return Oa;fh=1;var g=Yt(),x=dt(),S=si(),c=Vt();function E(_){S.call(this,"mont",_),this.a=new g(_.a,16).toRed(this.red),this.b=new g(_.b,16).toRed(this.red),this.i4=new g(4).toRed(this.red).redInvm(),this.two=new g(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}x(E,S),Oa=E,E.prototype.validate=function(y){var m=y.normalize().x,h=m.redSqr(),d=h.redMul(m).redAdd(h.redMul(this.a)).redAdd(m),p=d.redSqrt();return p.redSqr().cmp(d)===0};function i(_,y,m){S.BasePoint.call(this,_,"projective"),y===null&&m===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new g(y,16),this.z=new g(m,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}return x(i,S.BasePoint),E.prototype.decodePoint=function(y,m){return this.point(c.toArray(y,m),1)},E.prototype.point=function(y,m){return new i(this,y,m)},E.prototype.pointFromJSON=function(y){return i.fromJSON(this,y)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(y,m){return new i(y,m[0],m[1]||y.one)},i.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)+">"},i.prototype.isInfinity=function(){return this.z.cmpn(0)===0},i.prototype.dbl=function(){var y=this.x.redAdd(this.z),m=y.redSqr(),h=this.x.redSub(this.z),d=h.redSqr(),p=m.redSub(d),v=m.redMul(d),w=p.redMul(d.redAdd(this.curve.a24.redMul(p)));return this.curve.point(v,w)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(y,m){var h=this.x.redAdd(this.z),d=this.x.redSub(this.z),p=y.x.redAdd(y.z),v=y.x.redSub(y.z),w=v.redMul(h),M=p.redMul(d),A=m.z.redMul(w.redAdd(M).redSqr()),B=m.x.redMul(w.redISub(M).redSqr());return this.curve.point(A,B)},i.prototype.mul=function(y){for(var m=y.clone(),h=this,d=this.curve.point(null,null),p=this,v=[];m.cmpn(0)!==0;m.iushrn(1))v.push(m.andln(1));for(var w=v.length-1;w>=0;w--)v[w]===0?(h=h.diffAdd(d,p),d=d.dbl()):(d=h.diffAdd(d,p),h=h.dbl());return d},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(y){return this.getX().cmp(y.getX())===0},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Oa}var Ua,oh;function Vp(){if(oh)return Ua;oh=1;var g=Vt(),x=Yt(),S=dt(),c=si(),E=g.assert;function i(y){this.twisted=(y.a|0)!==1,this.mOneA=this.twisted&&(y.a|0)===-1,this.extended=this.mOneA,c.call(this,"edwards",y),this.a=new x(y.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new x(y.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new x(y.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),E(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(y.c|0)===1}S(i,c),Ua=i,i.prototype._mulA=function(m){return this.mOneA?m.redNeg():this.a.redMul(m)},i.prototype._mulC=function(m){return this.oneC?m:this.c.redMul(m)},i.prototype.jpoint=function(m,h,d,p){return this.point(m,h,d,p)},i.prototype.pointFromX=function(m,h){m=new x(m,16),m.red||(m=m.toRed(this.red));var d=m.redSqr(),p=this.c2.redSub(this.a.redMul(d)),v=this.one.redSub(this.c2.redMul(this.d).redMul(d)),w=p.redMul(v.redInvm()),M=w.redSqrt();if(M.redSqr().redSub(w).cmp(this.zero)!==0)throw new Error("invalid point");var A=M.fromRed().isOdd();return(h&&!A||!h&&A)&&(M=M.redNeg()),this.point(m,M)},i.prototype.pointFromY=function(m,h){m=new x(m,16),m.red||(m=m.toRed(this.red));var d=m.redSqr(),p=d.redSub(this.c2),v=d.redMul(this.d).redMul(this.c2).redSub(this.a),w=p.redMul(v.redInvm());if(w.cmp(this.zero)===0){if(h)throw new Error("invalid point");return this.point(this.zero,m)}var M=w.redSqrt();if(M.redSqr().redSub(w).cmp(this.zero)!==0)throw new Error("invalid point");return M.fromRed().isOdd()!==h&&(M=M.redNeg()),this.point(M,m)},i.prototype.validate=function(m){if(m.isInfinity())return!0;m.normalize();var h=m.x.redSqr(),d=m.y.redSqr(),p=h.redMul(this.a).redAdd(d),v=this.c2.redMul(this.one.redAdd(this.d.redMul(h).redMul(d)));return p.cmp(v)===0};function _(y,m,h,d,p){c.BasePoint.call(this,y,"projective"),m===null&&h===null&&d===null?(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 x(m,16),this.y=new x(h,16),this.z=d?new x(d,16):this.curve.one,this.t=p&&new x(p,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()))))}return S(_,c.BasePoint),i.prototype.pointFromJSON=function(m){return _.fromJSON(this,m)},i.prototype.point=function(m,h,d,p){return new _(this,m,h,d,p)},_.fromJSON=function(m,h){return new _(m,h[0],h[1],h[2])},_.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)+">"},_.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},_.prototype._extDbl=function(){var m=this.x.redSqr(),h=this.y.redSqr(),d=this.z.redSqr();d=d.redIAdd(d);var p=this.curve._mulA(m),v=this.x.redAdd(this.y).redSqr().redISub(m).redISub(h),w=p.redAdd(h),M=w.redSub(d),A=p.redSub(h),B=v.redMul(M),F=w.redMul(A),C=v.redMul(A),R=M.redMul(w);return this.curve.point(B,F,R,C)},_.prototype._projDbl=function(){var m=this.x.redAdd(this.y).redSqr(),h=this.x.redSqr(),d=this.y.redSqr(),p,v,w,M,A,B;if(this.curve.twisted){M=this.curve._mulA(h);var F=M.redAdd(d);this.zOne?(p=m.redSub(h).redSub(d).redMul(F.redSub(this.curve.two)),v=F.redMul(M.redSub(d)),w=F.redSqr().redSub(F).redSub(F)):(A=this.z.redSqr(),B=F.redSub(A).redISub(A),p=m.redSub(h).redISub(d).redMul(B),v=F.redMul(M.redSub(d)),w=F.redMul(B))}else M=h.redAdd(d),A=this.curve._mulC(this.z).redSqr(),B=M.redSub(A).redSub(A),p=this.curve._mulC(m.redISub(M)).redMul(B),v=this.curve._mulC(M).redMul(h.redISub(d)),w=M.redMul(B);return this.curve.point(p,v,w)},_.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},_.prototype._extAdd=function(m){var h=this.y.redSub(this.x).redMul(m.y.redSub(m.x)),d=this.y.redAdd(this.x).redMul(m.y.redAdd(m.x)),p=this.t.redMul(this.curve.dd).redMul(m.t),v=this.z.redMul(m.z.redAdd(m.z)),w=d.redSub(h),M=v.redSub(p),A=v.redAdd(p),B=d.redAdd(h),F=w.redMul(M),C=A.redMul(B),R=w.redMul(B),D=M.redMul(A);return this.curve.point(F,C,D,R)},_.prototype._projAdd=function(m){var h=this.z.redMul(m.z),d=h.redSqr(),p=this.x.redMul(m.x),v=this.y.redMul(m.y),w=this.curve.d.redMul(p).redMul(v),M=d.redSub(w),A=d.redAdd(w),B=this.x.redAdd(this.y).redMul(m.x.redAdd(m.y)).redISub(p).redISub(v),F=h.redMul(M).redMul(B),C,R;return this.curve.twisted?(C=h.redMul(A).redMul(v.redSub(this.curve._mulA(p))),R=M.redMul(A)):(C=h.redMul(A).redMul(v.redSub(p)),R=this.curve._mulC(M).redMul(A)),this.curve.point(F,C,R)},_.prototype.add=function(m){return this.isInfinity()?m:m.isInfinity()?this:this.curve.extended?this._extAdd(m):this._projAdd(m)},_.prototype.mul=function(m){return this._hasDoubles(m)?this.curve._fixedNafMul(this,m):this.curve._wnafMul(this,m)},_.prototype.mulAdd=function(m,h,d){return this.curve._wnafMulAdd(1,[this,h],[m,d],2,!1)},_.prototype.jmulAdd=function(m,h,d){return this.curve._wnafMulAdd(1,[this,h],[m,d],2,!0)},_.prototype.normalize=function(){if(this.zOne)return this;var m=this.z.redInvm();return this.x=this.x.redMul(m),this.y=this.y.redMul(m),this.t&&(this.t=this.t.redMul(m)),this.z=this.curve.one,this.zOne=!0,this},_.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},_.prototype.getX=function(){return this.normalize(),this.x.fromRed()},_.prototype.getY=function(){return this.normalize(),this.y.fromRed()},_.prototype.eq=function(m){return this===m||this.getX().cmp(m.getX())===0&&this.getY().cmp(m.getY())===0},_.prototype.eqXToP=function(m){var h=m.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(h)===0)return!0;for(var d=m.clone(),p=this.curve.redN.redMul(this.z);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(h.redIAdd(p),this.x.cmp(h)===0)return!0}},_.prototype.toP=_.prototype.normalize,_.prototype.mixedAdd=_.prototype.add,Ua}var sh;function Sc(){return sh||(sh=1,(function(g){var x=g;x.base=si(),x.short=jp(),x.mont=Gp(),x.edwards=Vp()})(Na)),Na}var La={},Ha={},Ct={},hh;function Xt(){if(hh)return Ct;hh=1;var g=Gt(),x=dt();Ct.inherits=x;function S(e,r){return(e.charCodeAt(r)&64512)!==55296||r<0||r+1>=e.length?!1:(e.charCodeAt(r+1)&64512)===56320}function c(e,r){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e=="string")if(r){if(r==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var a=0,o=0;o<e.length;o++){var l=e.charCodeAt(o);l<128?n[a++]=l:l<2048?(n[a++]=l>>6|192,n[a++]=l&63|128):S(e,o)?(l=65536+((l&1023)<<10)+(e.charCodeAt(++o)&1023),n[a++]=l>>18|240,n[a++]=l>>12&63|128,n[a++]=l>>6&63|128,n[a++]=l&63|128):(n[a++]=l>>12|224,n[a++]=l>>6&63|128,n[a++]=l&63|128)}else for(o=0;o<e.length;o++)n[o]=e[o]|0;return n}Ct.toArray=c;function E(e){for(var r="",n=0;n<e.length;n++)r+=y(e[n].toString(16));return r}Ct.toHex=E;function i(e){var r=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return r>>>0}Ct.htonl=i;function _(e,r){for(var n="",a=0;a<e.length;a++){var o=e[a];r==="little"&&(o=i(o)),n+=m(o.toString(16))}return n}Ct.toHex32=_;function y(e){return e.length===1?"0"+e:e}Ct.zero2=y;function m(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}Ct.zero8=m;function h(e,r,n,a){var o=n-r;g(o%4===0);for(var l=new Array(o/4),b=0,f=r;b<l.length;b++,f+=4){var t;a==="big"?t=e[f]<<24|e[f+1]<<16|e[f+2]<<8|e[f+3]:t=e[f+3]<<24|e[f+2]<<16|e[f+1]<<8|e[f],l[b]=t>>>0}return l}Ct.join32=h;function d(e,r){for(var n=new Array(e.length*4),a=0,o=0;a<e.length;a++,o+=4){var l=e[a];r==="big"?(n[o]=l>>>24,n[o+1]=l>>>16&255,n[o+2]=l>>>8&255,n[o+3]=l&255):(n[o+3]=l>>>24,n[o+2]=l>>>16&255,n[o+1]=l>>>8&255,n[o]=l&255)}return n}Ct.split32=d;function p(e,r){return e>>>r|e<<32-r}Ct.rotr32=p;function v(e,r){return e<<r|e>>>32-r}Ct.rotl32=v;function w(e,r){return e+r>>>0}Ct.sum32=w;function M(e,r,n){return e+r+n>>>0}Ct.sum32_3=M;function A(e,r,n,a){return e+r+n+a>>>0}Ct.sum32_4=A;function B(e,r,n,a,o){return e+r+n+a+o>>>0}Ct.sum32_5=B;function F(e,r,n,a){var o=e[r],l=e[r+1],b=a+l>>>0,f=(b<a?1:0)+n+o;e[r]=f>>>0,e[r+1]=b}Ct.sum64=F;function C(e,r,n,a){var o=r+a>>>0,l=(o<r?1:0)+e+n;return l>>>0}Ct.sum64_hi=C;function R(e,r,n,a){var o=r+a;return o>>>0}Ct.sum64_lo=R;function D(e,r,n,a,o,l,b,f){var t=0,s=r;s=s+a>>>0,t+=s<r?1:0,s=s+l>>>0,t+=s<l?1:0,s=s+f>>>0,t+=s<f?1:0;var $=e+n+o+b+t;return $>>>0}Ct.sum64_4_hi=D;function K(e,r,n,a,o,l,b,f){var t=r+a+l+f;return t>>>0}Ct.sum64_4_lo=K;function q(e,r,n,a,o,l,b,f,t,s){var $=0,W=r;W=W+a>>>0,$+=W<r?1:0,W=W+l>>>0,$+=W<l?1:0,W=W+f>>>0,$+=W<f?1:0,W=W+s>>>0,$+=W<s?1:0;var U=e+n+o+b+t+$;return U>>>0}Ct.sum64_5_hi=q;function Y(e,r,n,a,o,l,b,f,t,s){var $=r+a+l+f+s;return $>>>0}Ct.sum64_5_lo=Y;function J(e,r,n){var a=r<<32-n|e>>>n;return a>>>0}Ct.rotr64_hi=J;function V(e,r,n){var a=e<<32-n|r>>>n;return a>>>0}Ct.rotr64_lo=V;function re(e,r,n){return e>>>n}Ct.shr64_hi=re;function u(e,r,n){var a=e<<32-n|r>>>n;return a>>>0}return Ct.shr64_lo=u,Ct}var za={},uh;function Cr(){if(uh)return za;uh=1;var g=Xt(),x=Gt();function S(){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}return za.BlockHash=S,S.prototype.update=function(E,i){if(E=g.toArray(E,i),this.pending?this.pending=this.pending.concat(E):this.pending=E,this.pendingTotal+=E.length,this.pending.length>=this._delta8){E=this.pending;var _=E.length%this._delta8;this.pending=E.slice(E.length-_,E.length),this.pending.length===0&&(this.pending=null),E=g.join32(E,0,E.length-_,this.endian);for(var y=0;y<E.length;y+=this._delta32)this._update(E,y,y+this._delta32)}return this},S.prototype.digest=function(E){return this.update(this._pad()),x(this.pending===null),this._digest(E)},S.prototype._pad=function(){var E=this.pendingTotal,i=this._delta8,_=i-(E+this.padLength)%i,y=new Array(_+this.padLength);y[0]=128;for(var m=1;m<_;m++)y[m]=0;if(E<<=3,this.endian==="big"){for(var h=8;h<this.padLength;h++)y[m++]=0;y[m++]=0,y[m++]=0,y[m++]=0,y[m++]=0,y[m++]=E>>>24&255,y[m++]=E>>>16&255,y[m++]=E>>>8&255,y[m++]=E&255}else for(y[m++]=E&255,y[m++]=E>>>8&255,y[m++]=E>>>16&255,y[m++]=E>>>24&255,y[m++]=0,y[m++]=0,y[m++]=0,y[m++]=0,h=8;h<this.padLength;h++)y[m++]=0;return y},za}var ar={},Zt={},ch;function Bc(){if(ch)return Zt;ch=1;var g=Xt(),x=g.rotr32;function S(d,p,v,w){if(d===0)return c(p,v,w);if(d===1||d===3)return i(p,v,w);if(d===2)return E(p,v,w)}Zt.ft_1=S;function c(d,p,v){return d&p^~d&v}Zt.ch32=c;function E(d,p,v){return d&p^d&v^p&v}Zt.maj32=E;function i(d,p,v){return d^p^v}Zt.p32=i;function _(d){return x(d,2)^x(d,13)^x(d,22)}Zt.s0_256=_;function y(d){return x(d,6)^x(d,11)^x(d,25)}Zt.s1_256=y;function m(d){return x(d,7)^x(d,18)^d>>>3}Zt.g0_256=m;function h(d){return x(d,17)^x(d,19)^d>>>10}return Zt.g1_256=h,Zt}var $a,lh;function Zp(){if(lh)return $a;lh=1;var g=Xt(),x=Cr(),S=Bc(),c=g.rotl32,E=g.sum32,i=g.sum32_5,_=S.ft_1,y=x.BlockHash,m=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;y.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return g.inherits(h,y),$a=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(p,v){for(var w=this.W,M=0;M<16;M++)w[M]=p[v+M];for(;M<w.length;M++)w[M]=c(w[M-3]^w[M-8]^w[M-14]^w[M-16],1);var A=this.h[0],B=this.h[1],F=this.h[2],C=this.h[3],R=this.h[4];for(M=0;M<w.length;M++){var D=~~(M/20),K=i(c(A,5),_(D,B,F,C),R,w[M],m[D]);R=C,C=F,F=c(B,30),B=A,A=K}this.h[0]=E(this.h[0],A),this.h[1]=E(this.h[1],B),this.h[2]=E(this.h[2],F),this.h[3]=E(this.h[3],C),this.h[4]=E(this.h[4],R)},h.prototype._digest=function(p){return p==="hex"?g.toHex32(this.h,"big"):g.split32(this.h,"big")},$a}var Ka,dh;function Fc(){if(dh)return Ka;dh=1;var g=Xt(),x=Cr(),S=Bc(),c=Gt(),E=g.sum32,i=g.sum32_4,_=g.sum32_5,y=S.ch32,m=S.maj32,h=S.s0_256,d=S.s1_256,p=S.g0_256,v=S.g1_256,w=x.BlockHash,M=[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 A(){if(!(this instanceof A))return new A;w.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=M,this.W=new Array(64)}return g.inherits(A,w),Ka=A,A.blockSize=512,A.outSize=256,A.hmacStrength=192,A.padLength=64,A.prototype._update=function(F,C){for(var R=this.W,D=0;D<16;D++)R[D]=F[C+D];for(;D<R.length;D++)R[D]=i(v(R[D-2]),R[D-7],p(R[D-15]),R[D-16]);var K=this.h[0],q=this.h[1],Y=this.h[2],J=this.h[3],V=this.h[4],re=this.h[5],u=this.h[6],e=this.h[7];for(c(this.k.length===R.length),D=0;D<R.length;D++){var r=_(e,d(V),y(V,re,u),this.k[D],R[D]),n=E(h(K),m(K,q,Y));e=u,u=re,re=V,V=E(J,r),J=Y,Y=q,q=K,K=E(r,n)}this.h[0]=E(this.h[0],K),this.h[1]=E(this.h[1],q),this.h[2]=E(this.h[2],Y),this.h[3]=E(this.h[3],J),this.h[4]=E(this.h[4],V),this.h[5]=E(this.h[5],re),this.h[6]=E(this.h[6],u),this.h[7]=E(this.h[7],e)},A.prototype._digest=function(F){return F==="hex"?g.toHex32(this.h,"big"):g.split32(this.h,"big")},Ka}var Wa,ph;function Xp(){if(ph)return Wa;ph=1;var g=Xt(),x=Fc();function S(){if(!(this instanceof S))return new S;x.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return g.inherits(S,x),Wa=S,S.blockSize=512,S.outSize=224,S.hmacStrength=192,S.padLength=64,S.prototype._digest=function(E){return E==="hex"?g.toHex32(this.h.slice(0,7),"big"):g.split32(this.h.slice(0,7),"big")},Wa}var ja,vh;function Cc(){if(vh)return ja;vh=1;var g=Xt(),x=Cr(),S=Gt(),c=g.rotr64_hi,E=g.rotr64_lo,i=g.shr64_hi,_=g.shr64_lo,y=g.sum64,m=g.sum64_hi,h=g.sum64_lo,d=g.sum64_4_hi,p=g.sum64_4_lo,v=g.sum64_5_hi,w=g.sum64_5_lo,M=x.BlockHash,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];function B(){if(!(this instanceof B))return new B;M.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=A,this.W=new Array(160)}g.inherits(B,M),ja=B,B.blockSize=1024,B.outSize=512,B.hmacStrength=192,B.padLength=128,B.prototype._prepareBlock=function(n,a){for(var o=this.W,l=0;l<32;l++)o[l]=n[a+l];for(;l<o.length;l+=2){var b=u(o[l-4],o[l-3]),f=e(o[l-4],o[l-3]),t=o[l-14],s=o[l-13],$=V(o[l-30],o[l-29]),W=re(o[l-30],o[l-29]),U=o[l-32],Q=o[l-31];o[l]=d(b,f,t,s,$,W,U,Q),o[l+1]=p(b,f,t,s,$,W,U,Q)}},B.prototype._update=function(n,a){this._prepareBlock(n,a);var o=this.W,l=this.h[0],b=this.h[1],f=this.h[2],t=this.h[3],s=this.h[4],$=this.h[5],W=this.h[6],U=this.h[7],Q=this.h[8],X=this.h[9],P=this.h[10],H=this.h[11],Z=this.h[12],k=this.h[13],N=this.h[14],T=this.h[15];S(this.k.length===o.length);for(var j=0;j<o.length;j+=2){var fe=N,ee=T,te=Y(Q,X),he=J(Q,X),ie=F(Q,X,P,H,Z),ne=C(Q,X,P,H,Z,k),pe=this.k[j],oe=this.k[j+1],se=o[j],Re=o[j+1],de=v(fe,ee,te,he,ie,ne,pe,oe,se,Re),ve=w(fe,ee,te,he,ie,ne,pe,oe,se,Re);fe=K(l,b),ee=q(l,b),te=R(l,b,f,t,s),he=D(l,b,f,t,s,$);var ot=m(fe,ee,te,he),be=h(fe,ee,te,he);N=Z,T=k,Z=P,k=H,P=Q,H=X,Q=m(W,U,de,ve),X=h(U,U,de,ve),W=s,U=$,s=f,$=t,f=l,t=b,l=m(de,ve,ot,be),b=h(de,ve,ot,be)}y(this.h,0,l,b),y(this.h,2,f,t),y(this.h,4,s,$),y(this.h,6,W,U),y(this.h,8,Q,X),y(this.h,10,P,H),y(this.h,12,Z,k),y(this.h,14,N,T)},B.prototype._digest=function(n){return n==="hex"?g.toHex32(this.h,"big"):g.split32(this.h,"big")};function F(r,n,a,o,l){var b=r&a^~r&l;return b<0&&(b+=4294967296),b}function C(r,n,a,o,l,b){var f=n&o^~n&b;return f<0&&(f+=4294967296),f}function R(r,n,a,o,l){var b=r&a^r&l^a&l;return b<0&&(b+=4294967296),b}function D(r,n,a,o,l,b){var f=n&o^n&b^o&b;return f<0&&(f+=4294967296),f}function K(r,n){var a=c(r,n,28),o=c(n,r,2),l=c(n,r,7),b=a^o^l;return b<0&&(b+=4294967296),b}function q(r,n){var a=E(r,n,28),o=E(n,r,2),l=E(n,r,7),b=a^o^l;return b<0&&(b+=4294967296),b}function Y(r,n){var a=c(r,n,14),o=c(r,n,18),l=c(n,r,9),b=a^o^l;return b<0&&(b+=4294967296),b}function J(r,n){var a=E(r,n,14),o=E(r,n,18),l=E(n,r,9),b=a^o^l;return b<0&&(b+=4294967296),b}function V(r,n){var a=c(r,n,1),o=c(r,n,8),l=i(r,n,7),b=a^o^l;return b<0&&(b+=4294967296),b}function re(r,n){var a=E(r,n,1),o=E(r,n,8),l=_(r,n,7),b=a^o^l;return b<0&&(b+=4294967296),b}function u(r,n){var a=c(r,n,19),o=c(n,r,29),l=i(r,n,6),b=a^o^l;return b<0&&(b+=4294967296),b}function e(r,n){var a=E(r,n,19),o=E(n,r,29),l=_(r,n,6),b=a^o^l;return b<0&&(b+=4294967296),b}return ja}var Ga,bh;function Yp(){if(bh)return Ga;bh=1;var g=Xt(),x=Cc();function S(){if(!(this instanceof S))return new S;x.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return g.inherits(S,x),Ga=S,S.blockSize=1024,S.outSize=384,S.hmacStrength=192,S.padLength=128,S.prototype._digest=function(E){return E==="hex"?g.toHex32(this.h.slice(0,12),"big"):g.split32(this.h.slice(0,12),"big")},Ga}var mh;function Jp(){return mh||(mh=1,ar.sha1=Zp(),ar.sha224=Xp(),ar.sha256=Fc(),ar.sha384=Yp(),ar.sha512=Cc()),ar}var Va={},yh;function Qp(){if(yh)return Va;yh=1;var g=Xt(),x=Cr(),S=g.rotl32,c=g.sum32,E=g.sum32_3,i=g.sum32_4,_=x.BlockHash;function y(){if(!(this instanceof y))return new y;_.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}g.inherits(y,_),Va.ripemd160=y,y.blockSize=512,y.outSize=160,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(B,F){for(var C=this.h[0],R=this.h[1],D=this.h[2],K=this.h[3],q=this.h[4],Y=C,J=R,V=D,re=K,u=q,e=0;e<80;e++){var r=c(S(i(C,m(e,R,D,K),B[p[e]+F],h(e)),w[e]),q);C=q,q=K,K=S(D,10),D=R,R=r,r=c(S(i(Y,m(79-e,J,V,re),B[v[e]+F],d(e)),M[e]),u),Y=u,u=re,re=S(V,10),V=J,J=r}r=E(this.h[1],D,re),this.h[1]=E(this.h[2],K,u),this.h[2]=E(this.h[3],q,Y),this.h[3]=E(this.h[4],C,J),this.h[4]=E(this.h[0],R,V),this.h[0]=r},y.prototype._digest=function(B){return B==="hex"?g.toHex32(this.h,"little"):g.split32(this.h,"little")};function m(A,B,F,C){return A<=15?B^F^C:A<=31?B&F|~B&C:A<=47?(B|~F)^C:A<=63?B&C|F&~C:B^(F|~C)}function h(A){return A<=15?0:A<=31?1518500249:A<=47?1859775393:A<=63?2400959708:2840853838}function d(A){return A<=15?1352829926:A<=31?1548603684:A<=47?1836072691:A<=63?2053994217:0}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],v=[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],w=[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],M=[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];return Va}var Za,gh;function ev(){if(gh)return Za;gh=1;var g=Xt(),x=Gt();function S(c,E,i){if(!(this instanceof S))return new S(c,E,i);this.Hash=c,this.blockSize=c.blockSize/8,this.outSize=c.outSize/8,this.inner=null,this.outer=null,this._init(g.toArray(E,i))}return Za=S,S.prototype._init=function(E){E.length>this.blockSize&&(E=new this.Hash().update(E).digest()),x(E.length<=this.blockSize);for(var i=E.length;i<this.blockSize;i++)E.push(0);for(i=0;i<E.length;i++)E[i]^=54;for(this.inner=new this.Hash().update(E),i=0;i<E.length;i++)E[i]^=106;this.outer=new this.Hash().update(E)},S.prototype.update=function(E,i){return this.inner.update(E,i),this},S.prototype.digest=function(E){return this.outer.update(this.inner.digest()),this.outer.digest(E)},Za}var xh;function af(){return xh||(xh=1,(function(g){var x=g;x.utils=Xt(),x.common=Cr(),x.sha=Jp(),x.ripemd=Qp(),x.hmac=ev(),x.sha1=x.sha.sha1,x.sha256=x.sha.sha256,x.sha224=x.sha.sha224,x.sha384=x.sha.sha384,x.sha512=x.sha.sha512,x.ripemd160=x.ripemd.ripemd160})(Ha)),Ha}var Xa,wh;function tv(){return wh||(wh=1,Xa={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"]]}}),Xa}var Mh;function ff(){return Mh||(Mh=1,(function(g){var x=g,S=af(),c=Sc(),E=Vt(),i=E.assert;function _(h){h.type==="short"?this.curve=new c.short(h):h.type==="edwards"?this.curve=new c.edwards(h):this.curve=new c.mont(h),this.g=this.curve.g,this.n=this.curve.n,this.hash=h.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}x.PresetCurve=_;function y(h,d){Object.defineProperty(x,h,{configurable:!0,enumerable:!0,get:function(){var p=new _(d);return Object.defineProperty(x,h,{configurable:!0,enumerable:!0,value:p}),p}})}y("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:S.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),y("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:S.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),y("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:S.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),y("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:S.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"]}),y("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:S.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"]}),y("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:S.sha256,gRed:!1,g:["9"]}),y("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:S.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var m;try{m=tv()}catch{m=void 0}y("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:S.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",m]})})(La)),La}var Ya,_h;function rv(){if(_h)return Ya;_h=1;var g=af(),x=Ac(),S=Gt();function c(E){if(!(this instanceof c))return new c(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 i=x.toArray(E.entropy,E.entropyEnc||"hex"),_=x.toArray(E.nonce,E.nonceEnc||"hex"),y=x.toArray(E.pers,E.persEnc||"hex");S(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(i,_,y)}return Ya=c,c.prototype._init=function(i,_,y){var m=i.concat(_).concat(y);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var h=0;h<this.V.length;h++)this.K[h]=0,this.V[h]=1;this._update(m),this._reseed=1,this.reseedInterval=281474976710656},c.prototype._hmac=function(){return new g.hmac(this.hash,this.K)},c.prototype._update=function(i){var _=this._hmac().update(this.V).update([0]);i&&(_=_.update(i)),this.K=_.digest(),this.V=this._hmac().update(this.V).digest(),i&&(this.K=this._hmac().update(this.V).update([1]).update(i).digest(),this.V=this._hmac().update(this.V).digest())},c.prototype.reseed=function(i,_,y,m){typeof _!="string"&&(m=y,y=_,_=null),i=x.toArray(i,_),y=x.toArray(y,m),S(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(i.concat(y||[])),this._reseed=1},c.prototype.generate=function(i,_,y,m){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof _!="string"&&(m=y,y=_,_=null),y&&(y=x.toArray(y,m||"hex"),this._update(y));for(var h=[];h.length<i;)this.V=this._hmac().update(this.V).digest(),h=h.concat(this.V);var d=h.slice(0,i);return this._update(y),this._reseed++,x.encode(d,_)},Ya}var Ja,Eh;function iv(){if(Eh)return Ja;Eh=1;var g=Yt(),x=Vt(),S=x.assert;function c(E,i){this.ec=E,this.priv=null,this.pub=null,i.priv&&this._importPrivate(i.priv,i.privEnc),i.pub&&this._importPublic(i.pub,i.pubEnc)}return Ja=c,c.fromPublic=function(i,_,y){return _ instanceof c?_:new c(i,{pub:_,pubEnc:y})},c.fromPrivate=function(i,_,y){return _ instanceof c?_:new c(i,{priv:_,privEnc:y})},c.prototype.validate=function(){var i=this.getPublic();return i.isInfinity()?{result:!1,reason:"Invalid public key"}:i.validate()?i.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"}},c.prototype.getPublic=function(i,_){return typeof i=="string"&&(_=i,i=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),_?this.pub.encode(_,i):this.pub},c.prototype.getPrivate=function(i){return i==="hex"?this.priv.toString(16,2):this.priv},c.prototype._importPrivate=function(i,_){this.priv=new g(i,_||16),this.priv=this.priv.umod(this.ec.curve.n)},c.prototype._importPublic=function(i,_){if(i.x||i.y){this.ec.curve.type==="mont"?S(i.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&S(i.x&&i.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(i.x,i.y);return}this.pub=this.ec.curve.decodePoint(i,_)},c.prototype.derive=function(i){return i.validate()||S(i.validate(),"public point not validated"),i.mul(this.priv).getX()},c.prototype.sign=function(i,_,y){return this.ec.sign(i,this,_,y)},c.prototype.verify=function(i,_,y){return this.ec.verify(i,_,this,void 0,y)},c.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},Ja}var Qa,Ah;function nv(){if(Ah)return Qa;Ah=1;var g=Yt(),x=Vt(),S=x.assert;function c(m,h){if(m instanceof c)return m;this._importDER(m,h)||(S(m.r&&m.s,"Signature without r or s"),this.r=new g(m.r,16),this.s=new g(m.s,16),m.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=m.recoveryParam)}Qa=c;function E(){this.place=0}function i(m,h){var d=m[h.place++];if(!(d&128))return d;var p=d&15;if(p===0||p>4||m[h.place]===0)return!1;for(var v=0,w=0,M=h.place;w<p;w++,M++)v<<=8,v|=m[M],v>>>=0;return v<=127?!1:(h.place=M,v)}function _(m){for(var h=0,d=m.length-1;!m[h]&&!(m[h+1]&128)&&h<d;)h++;return h===0?m:m.slice(h)}c.prototype._importDER=function(h,d){h=x.toArray(h,d);var p=new E;if(h[p.place++]!==48)return!1;var v=i(h,p);if(v===!1||v+p.place!==h.length||h[p.place++]!==2)return!1;var w=i(h,p);if(w===!1||(h[p.place]&128)!==0)return!1;var M=h.slice(p.place,w+p.place);if(p.place+=w,h[p.place++]!==2)return!1;var A=i(h,p);if(A===!1||h.length!==A+p.place||(h[p.place]&128)!==0)return!1;var B=h.slice(p.place,A+p.place);if(M[0]===0)if(M[1]&128)M=M.slice(1);else return!1;if(B[0]===0)if(B[1]&128)B=B.slice(1);else return!1;return this.r=new g(M),this.s=new g(B),this.recoveryParam=null,!0};function y(m,h){if(h<128){m.push(h);return}var d=1+(Math.log(h)/Math.LN2>>>3);for(m.push(d|128);--d;)m.push(h>>>(d<<3)&255);m.push(h)}return c.prototype.toDER=function(h){var d=this.r.toArray(),p=this.s.toArray();for(d[0]&128&&(d=[0].concat(d)),p[0]&128&&(p=[0].concat(p)),d=_(d),p=_(p);!p[0]&&!(p[1]&128);)p=p.slice(1);var v=[2];y(v,d.length),v=v.concat(d),v.push(2),y(v,p.length);var w=v.concat(p),M=[48];return y(M,w.length),M=M.concat(w),x.encode(M,h)},Qa}var e0,Sh;function av(){if(Sh)return e0;Sh=1;var g=Yt(),x=rv(),S=Vt(),c=ff(),E=tf(),i=S.assert,_=iv(),y=nv();function m(h){if(!(this instanceof m))return new m(h);typeof h=="string"&&(i(Object.prototype.hasOwnProperty.call(c,h),"Unknown curve "+h),h=c[h]),h instanceof c.PresetCurve&&(h={curve:h}),this.curve=h.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=h.curve.g,this.g.precompute(h.curve.n.bitLength()+1),this.hash=h.hash||h.curve.hash}return e0=m,m.prototype.keyPair=function(d){return new _(this,d)},m.prototype.keyFromPrivate=function(d,p){return _.fromPrivate(this,d,p)},m.prototype.keyFromPublic=function(d,p){return _.fromPublic(this,d,p)},m.prototype.genKeyPair=function(d){d||(d={});for(var p=new x({hash:this.hash,pers:d.pers,persEnc:d.persEnc||"utf8",entropy:d.entropy||E(this.hash.hmacStrength),entropyEnc:d.entropy&&d.entropyEnc||"utf8",nonce:this.n.toArray()}),v=this.n.byteLength(),w=this.n.sub(new g(2));;){var M=new g(p.generate(v));if(!(M.cmp(w)>0))return M.iaddn(1),this.keyFromPrivate(M)}},m.prototype._truncateToN=function(d,p,v){var w;if(g.isBN(d)||typeof d=="number")d=new g(d,16),w=d.byteLength();else if(typeof d=="object")w=d.length,d=new g(d,16);else{var M=d.toString();w=M.length+1>>>1,d=new g(M,16)}typeof v!="number"&&(v=w*8);var A=v-this.n.bitLength();return A>0&&(d=d.ushrn(A)),!p&&d.cmp(this.n)>=0?d.sub(this.n):d},m.prototype.sign=function(d,p,v,w){if(typeof v=="object"&&(w=v,v=null),w||(w={}),typeof d!="string"&&typeof d!="number"&&!g.isBN(d)){i(typeof d=="object"&&d&&typeof d.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),i(d.length>>>0===d.length);for(var M=0;M<d.length;M++)i((d[M]&255)===d[M])}p=this.keyFromPrivate(p,v),d=this._truncateToN(d,!1,w.msgBitLength),i(!d.isNeg(),"Can not sign a negative message");var A=this.n.byteLength(),B=p.getPrivate().toArray("be",A),F=d.toArray("be",A);i(new g(F).eq(d),"Can not sign message");for(var C=new x({hash:this.hash,entropy:B,nonce:F,pers:w.pers,persEnc:w.persEnc||"utf8"}),R=this.n.sub(new g(1)),D=0;;D++){var K=w.k?w.k(D):new g(C.generate(this.n.byteLength()));if(K=this._truncateToN(K,!0),!(K.cmpn(1)<=0||K.cmp(R)>=0)){var q=this.g.mul(K);if(!q.isInfinity()){var Y=q.getX(),J=Y.umod(this.n);if(J.cmpn(0)!==0){var V=K.invm(this.n).mul(J.mul(p.getPrivate()).iadd(d));if(V=V.umod(this.n),V.cmpn(0)!==0){var re=(q.getY().isOdd()?1:0)|(Y.cmp(J)!==0?2:0);return w.canonical&&V.cmp(this.nh)>0&&(V=this.n.sub(V),re^=1),new y({r:J,s:V,recoveryParam:re})}}}}}},m.prototype.verify=function(d,p,v,w,M){M||(M={}),d=this._truncateToN(d,!1,M.msgBitLength),v=this.keyFromPublic(v,w),p=new y(p,"hex");var A=p.r,B=p.s;if(A.cmpn(1)<0||A.cmp(this.n)>=0||B.cmpn(1)<0||B.cmp(this.n)>=0)return!1;var F=B.invm(this.n),C=F.mul(d).umod(this.n),R=F.mul(A).umod(this.n),D;return this.curve._maxwellTrick?(D=this.g.jmulAdd(C,v.getPublic(),R),D.isInfinity()?!1:D.eqXToP(A)):(D=this.g.mulAdd(C,v.getPublic(),R),D.isInfinity()?!1:D.getX().umod(this.n).cmp(A)===0)},m.prototype.recoverPubKey=function(h,d,p,v){i((3&p)===p,"The recovery param is more than two bits"),d=new y(d,v);var w=this.n,M=new g(h),A=d.r,B=d.s,F=p&1,C=p>>1;if(A.cmp(this.curve.p.umod(this.curve.n))>=0&&C)throw new Error("Unable to find sencond key candinate");C?A=this.curve.pointFromX(A.add(this.curve.n),F):A=this.curve.pointFromX(A,F);var R=d.r.invm(w),D=w.sub(M).mul(R).umod(w),K=B.mul(R).umod(w);return this.g.mulAdd(D,A,K)},m.prototype.getKeyRecoveryParam=function(h,d,p,v){if(d=new y(d,v),d.recoveryParam!==null)return d.recoveryParam;for(var w=0;w<4;w++){var M;try{M=this.recoverPubKey(h,d,w)}catch{continue}if(M.eq(p))return w}throw new Error("Unable to find valid recovery factor")},e0}var t0,Bh;function fv(){if(Bh)return t0;Bh=1;var g=Vt(),x=g.assert,S=g.parseBytes,c=g.cachedProperty;function E(i,_){this.eddsa=i,this._secret=S(_.secret),i.isPoint(_.pub)?this._pub=_.pub:this._pubBytes=S(_.pub)}return E.fromPublic=function(_,y){return y instanceof E?y:new E(_,{pub:y})},E.fromSecret=function(_,y){return y instanceof E?y:new E(_,{secret:y})},E.prototype.secret=function(){return this._secret},c(E,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),c(E,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),c(E,"privBytes",function(){var _=this.eddsa,y=this.hash(),m=_.encodingLength-1,h=y.slice(0,_.encodingLength);return h[0]&=248,h[m]&=127,h[m]|=64,h}),c(E,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),c(E,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),c(E,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),E.prototype.sign=function(_){return x(this._secret,"KeyPair can only verify"),this.eddsa.sign(_,this)},E.prototype.verify=function(_,y){return this.eddsa.verify(_,y,this)},E.prototype.getSecret=function(_){return x(this._secret,"KeyPair is public only"),g.encode(this.secret(),_)},E.prototype.getPublic=function(_){return g.encode(this.pubBytes(),_)},t0=E,t0}var r0,Fh;function ov(){if(Fh)return r0;Fh=1;var g=Yt(),x=Vt(),S=x.assert,c=x.cachedProperty,E=x.parseBytes;function i(_,y){this.eddsa=_,typeof y!="object"&&(y=E(y)),Array.isArray(y)&&(S(y.length===_.encodingLength*2,"Signature has invalid size"),y={R:y.slice(0,_.encodingLength),S:y.slice(_.encodingLength)}),S(y.R&&y.S,"Signature without R or S"),_.isPoint(y.R)&&(this._R=y.R),y.S instanceof g&&(this._S=y.S),this._Rencoded=Array.isArray(y.R)?y.R:y.Rencoded,this._Sencoded=Array.isArray(y.S)?y.S:y.Sencoded}return c(i,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),c(i,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),c(i,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),c(i,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),i.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},i.prototype.toHex=function(){return x.encode(this.toBytes(),"hex").toUpperCase()},r0=i,r0}var i0,Ch;function sv(){if(Ch)return i0;Ch=1;var g=af(),x=ff(),S=Vt(),c=S.assert,E=S.parseBytes,i=fv(),_=ov();function y(m){if(c(m==="ed25519","only tested with ed25519 so far"),!(this instanceof y))return new y(m);m=x[m].curve,this.curve=m,this.g=m.g,this.g.precompute(m.n.bitLength()+1),this.pointClass=m.point().constructor,this.encodingLength=Math.ceil(m.n.bitLength()/8),this.hash=g.sha512}return i0=y,y.prototype.sign=function(h,d){h=E(h);var p=this.keyFromSecret(d),v=this.hashInt(p.messagePrefix(),h),w=this.g.mul(v),M=this.encodePoint(w),A=this.hashInt(M,p.pubBytes(),h).mul(p.priv()),B=v.add(A).umod(this.curve.n);return this.makeSignature({R:w,S:B,Rencoded:M})},y.prototype.verify=function(h,d,p){if(h=E(h),d=this.makeSignature(d),d.S().gte(d.eddsa.curve.n)||d.S().isNeg())return!1;var v=this.keyFromPublic(p),w=this.hashInt(d.Rencoded(),v.pubBytes(),h),M=this.g.mul(d.S()),A=d.R().add(v.pub().mul(w));return A.eq(M)},y.prototype.hashInt=function(){for(var h=this.hash(),d=0;d<arguments.length;d++)h.update(arguments[d]);return S.intFromLE(h.digest()).umod(this.curve.n)},y.prototype.keyFromPublic=function(h){return i.fromPublic(this,h)},y.prototype.keyFromSecret=function(h){return i.fromSecret(this,h)},y.prototype.makeSignature=function(h){return h instanceof _?h:new _(this,h)},y.prototype.encodePoint=function(h){var d=h.getY().toArray("le",this.encodingLength);return d[this.encodingLength-1]|=h.getX().isOdd()?128:0,d},y.prototype.decodePoint=function(h){h=S.parseBytes(h);var d=h.length-1,p=h.slice(0,d).concat(h[d]&-129),v=(h[d]&128)!==0,w=S.intFromLE(p);return this.curve.pointFromY(w,v)},y.prototype.encodeInt=function(h){return h.toArray("le",this.encodingLength)},y.prototype.decodeInt=function(h){return S.intFromLE(h)},y.prototype.isPoint=function(h){return h instanceof this.pointClass},i0}var Dh;function hi(){return Dh||(Dh=1,(function(g){var x=g;x.version=Kp.version,x.utils=Vt(),x.rand=tf(),x.curve=Sc(),x.curves=ff(),x.ec=av(),x.eddsa=sv()})(Ta)),Ta}var jt={},n0={},Xr={exports:{}},hv=Xr.exports,Rh;function uv(){return Rh||(Rh=1,(function(g){(function(x,S){function c(u,e){if(!u)throw new Error(e||"Assertion failed")}function E(u,e){u.super_=e;var r=function(){};r.prototype=e.prototype,u.prototype=new r,u.prototype.constructor=u}function i(u,e,r){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(u||0,e||10,r||"be"))}typeof x=="object"?x.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=ze.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),c(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(c(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(c(typeof e.length=="number"),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 a=0;a<this.length;a++)this.words[a]=0;var o,l,b=0;if(n==="be")for(a=e.length-1,o=0;a>=0;a-=3)l=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);else if(n==="le")for(a=0,o=0;a<e.length;a+=3)l=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);return this.strip()};function y(u,e){var r=u.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(u,e,r){var n=y(u,r);return r-1>=e&&(n|=y(u,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o=0,l=0,b;if(n==="be")for(a=e.length-1;a>=r;a-=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8}this.strip()};function h(u,e,r,n){for(var a=0,o=Math.min(u.length,r),l=e;l<o;l++){var b=u.charCodeAt(l)-48;a*=n,b>=49?a+=b-49+10:b>=17?a+=b-17+10:a+=b}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,o=1;o<=67108863;o*=r)a++;a--,o=o/r|0;for(var l=e.length-n,b=l%a,f=Math.min(l,l-b)+n,t=0,s=n;s<f;s+=a)t=h(e,s,s+a,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(b!==0){var $=1;for(t=h(e,s,e.length,r),s=0;s<b;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],p=[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],v=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,o=0,l=0;l<this.length;l++){var b=this.words[l],f=((b<<a|o)&16777215).toString(16);o=b>>>24-a&16777215,a+=2,a>=26&&(a-=26,l--),o!==0||l!==this.length-1?n=d[6-f.length]+f+n:n=f+n}for(o!==0&&(n=o.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=v[e];n="";var $=this.clone();for($.negative=0;!$.isZero();){var W=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?n=W+n:n=d[t-W.length]+W+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}c(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return c(typeof _<"u"),this.toArrayLike(_,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),o=n||Math.max(1,a);c(a<=o,"byte array longer than desired length"),c(o>0,"Requested array length <= 0"),this.strip();var l=r==="le",b=new e(o),f,t,s=this.clone();if(l){for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[t]=f;for(;t<o;t++)b[t]=0}else{for(t=0;t<o-a;t++)b[t]=0;for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[o-t-1]=f}return b},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(u){for(var e=new Array(u.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(u.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return c((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return c((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return c((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){c(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){c(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var o=0,l=0;l<a.length;l++)r=(n.words[l]|0)+(a.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;for(;o!==0&&l<n.length;l++)r=(n.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;if(this.length=n.length,o!==0)this.words[this.length]=o,this.length++;else if(n!==this)for(;l<n.length;l++)this.words[l]=n.words[l];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,o;n>0?(a=this,o=e):(a=e,o=this);for(var l=0,b=0;b<o.length;b++)r=(a.words[b]|0)-(o.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;for(;l!==0&&b<a.length;b++)r=(a.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;if(l===0&&b<a.length&&a!==this)for(;b<a.length;b++)this.words[b]=a.words[b];return this.length=Math.max(this.length,b),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function M(u,e,r){r.negative=e.negative^u.negative;var n=u.length+e.length|0;r.length=n,n=n-1|0;var a=u.words[0]|0,o=e.words[0]|0,l=a*o,b=l&67108863,f=l/67108864|0;r.words[0]=b;for(var t=1;t<n;t++){for(var s=f>>>26,$=f&67108863,W=Math.min(t,e.length-1),U=Math.max(0,t-u.length+1);U<=W;U++){var Q=t-U|0;a=u.words[Q]|0,o=e.words[U]|0,l=a*o+$,s+=l/67108864|0,$=l&67108863}r.words[t]=$|0,f=s|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var A=function(e,r,n){var a=e.words,o=r.words,l=n.words,b=0,f,t,s,$=a[0]|0,W=$&8191,U=$>>>13,Q=a[1]|0,X=Q&8191,P=Q>>>13,H=a[2]|0,Z=H&8191,k=H>>>13,N=a[3]|0,T=N&8191,j=N>>>13,fe=a[4]|0,ee=fe&8191,te=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,pt=o[0]|0,Ae=pt&8191,Se=pt>>>13,ct=o[1]|0,_e=ct&8191,xe=ct>>>13,wt=o[2]|0,Ce=wt&8191,De=wt>>>13,_t=o[3]|0,Te=_t&8191,Ie=_t>>>13,Dt=o[4]|0,Ne=Dt&8191,Pe=Dt>>>13,kt=o[5]|0,qe=kt&8191,Oe=kt>>>13,Pt=o[6]|0,ke=Pt&8191,Ue=Pt>>>13,O=o[7]|0,z=O&8191,L=O>>>13,I=o[8]|0,G=I&8191,ae=I>>>13,ge=o[9]|0,ue=ge&8191,le=ge>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(W,Ae),t=Math.imul(W,Se),t=t+Math.imul(U,Ae)|0,s=Math.imul(U,Se);var Je=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(X,Ae),t=Math.imul(X,Se),t=t+Math.imul(P,Ae)|0,s=Math.imul(P,Se),f=f+Math.imul(W,_e)|0,t=t+Math.imul(W,xe)|0,t=t+Math.imul(U,_e)|0,s=s+Math.imul(U,xe)|0;var We=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Z,Ae),t=Math.imul(Z,Se),t=t+Math.imul(k,Ae)|0,s=Math.imul(k,Se),f=f+Math.imul(X,_e)|0,t=t+Math.imul(X,xe)|0,t=t+Math.imul(P,_e)|0,s=s+Math.imul(P,xe)|0,f=f+Math.imul(W,Ce)|0,t=t+Math.imul(W,De)|0,t=t+Math.imul(U,Ce)|0,s=s+Math.imul(U,De)|0;var ht=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ae),t=Math.imul(T,Se),t=t+Math.imul(j,Ae)|0,s=Math.imul(j,Se),f=f+Math.imul(Z,_e)|0,t=t+Math.imul(Z,xe)|0,t=t+Math.imul(k,_e)|0,s=s+Math.imul(k,xe)|0,f=f+Math.imul(X,Ce)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(P,Ce)|0,s=s+Math.imul(P,De)|0,f=f+Math.imul(W,Te)|0,t=t+Math.imul(W,Ie)|0,t=t+Math.imul(U,Te)|0,s=s+Math.imul(U,Ie)|0;var Ve=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(ee,Ae),t=Math.imul(ee,Se),t=t+Math.imul(te,Ae)|0,s=Math.imul(te,Se),f=f+Math.imul(T,_e)|0,t=t+Math.imul(T,xe)|0,t=t+Math.imul(j,_e)|0,s=s+Math.imul(j,xe)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,s=s+Math.imul(k,De)|0,f=f+Math.imul(X,Te)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(P,Te)|0,s=s+Math.imul(P,Ie)|0,f=f+Math.imul(W,Ne)|0,t=t+Math.imul(W,Pe)|0,t=t+Math.imul(U,Ne)|0,s=s+Math.imul(U,Pe)|0;var et=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ae),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ae)|0,s=Math.imul(ne,Se),f=f+Math.imul(ee,_e)|0,t=t+Math.imul(ee,xe)|0,t=t+Math.imul(te,_e)|0,s=s+Math.imul(te,xe)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(j,Ce)|0,s=s+Math.imul(j,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,s=s+Math.imul(k,Ie)|0,f=f+Math.imul(X,Ne)|0,t=t+Math.imul(X,Pe)|0,t=t+Math.imul(P,Ne)|0,s=s+Math.imul(P,Pe)|0,f=f+Math.imul(W,qe)|0,t=t+Math.imul(W,Oe)|0,t=t+Math.imul(U,qe)|0,s=s+Math.imul(U,Oe)|0;var tt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ae),t=Math.imul(oe,Se),t=t+Math.imul(se,Ae)|0,s=Math.imul(se,Se),f=f+Math.imul(ie,_e)|0,t=t+Math.imul(ie,xe)|0,t=t+Math.imul(ne,_e)|0,s=s+Math.imul(ne,xe)|0,f=f+Math.imul(ee,Ce)|0,t=t+Math.imul(ee,De)|0,t=t+Math.imul(te,Ce)|0,s=s+Math.imul(te,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(j,Te)|0,s=s+Math.imul(j,Ie)|0,f=f+Math.imul(Z,Ne)|0,t=t+Math.imul(Z,Pe)|0,t=t+Math.imul(k,Ne)|0,s=s+Math.imul(k,Pe)|0,f=f+Math.imul(X,qe)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(P,qe)|0,s=s+Math.imul(P,Oe)|0,f=f+Math.imul(W,ke)|0,t=t+Math.imul(W,Ue)|0,t=t+Math.imul(U,ke)|0,s=s+Math.imul(U,Ue)|0;var ft=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ae),t=Math.imul(de,Se),t=t+Math.imul(ve,Ae)|0,s=Math.imul(ve,Se),f=f+Math.imul(oe,_e)|0,t=t+Math.imul(oe,xe)|0,t=t+Math.imul(se,_e)|0,s=s+Math.imul(se,xe)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,s=s+Math.imul(ne,De)|0,f=f+Math.imul(ee,Te)|0,t=t+Math.imul(ee,Ie)|0,t=t+Math.imul(te,Te)|0,s=s+Math.imul(te,Ie)|0,f=f+Math.imul(T,Ne)|0,t=t+Math.imul(T,Pe)|0,t=t+Math.imul(j,Ne)|0,s=s+Math.imul(j,Pe)|0,f=f+Math.imul(Z,qe)|0,t=t+Math.imul(Z,Oe)|0,t=t+Math.imul(k,qe)|0,s=s+Math.imul(k,Oe)|0,f=f+Math.imul(X,ke)|0,t=t+Math.imul(X,Ue)|0,t=t+Math.imul(P,ke)|0,s=s+Math.imul(P,Ue)|0,f=f+Math.imul(W,z)|0,t=t+Math.imul(W,L)|0,t=t+Math.imul(U,z)|0,s=s+Math.imul(U,L)|0;var at=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ae),t=Math.imul(be,Se),t=t+Math.imul(me,Ae)|0,s=Math.imul(me,Se),f=f+Math.imul(de,_e)|0,t=t+Math.imul(de,xe)|0,t=t+Math.imul(ve,_e)|0,s=s+Math.imul(ve,xe)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,s=s+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,s=s+Math.imul(ne,Ie)|0,f=f+Math.imul(ee,Ne)|0,t=t+Math.imul(ee,Pe)|0,t=t+Math.imul(te,Ne)|0,s=s+Math.imul(te,Pe)|0,f=f+Math.imul(T,qe)|0,t=t+Math.imul(T,Oe)|0,t=t+Math.imul(j,qe)|0,s=s+Math.imul(j,Oe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,s=s+Math.imul(k,Ue)|0,f=f+Math.imul(X,z)|0,t=t+Math.imul(X,L)|0,t=t+Math.imul(P,z)|0,s=s+Math.imul(P,L)|0,f=f+Math.imul(W,G)|0,t=t+Math.imul(W,ae)|0,t=t+Math.imul(U,G)|0,s=s+Math.imul(U,ae)|0;var rt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ae),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ae)|0,s=Math.imul(Be,Se),f=f+Math.imul(be,_e)|0,t=t+Math.imul(be,xe)|0,t=t+Math.imul(me,_e)|0,s=s+Math.imul(me,xe)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,s=s+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,s=s+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Ne)|0,t=t+Math.imul(ie,Pe)|0,t=t+Math.imul(ne,Ne)|0,s=s+Math.imul(ne,Pe)|0,f=f+Math.imul(ee,qe)|0,t=t+Math.imul(ee,Oe)|0,t=t+Math.imul(te,qe)|0,s=s+Math.imul(te,Oe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(j,ke)|0,s=s+Math.imul(j,Ue)|0,f=f+Math.imul(Z,z)|0,t=t+Math.imul(Z,L)|0,t=t+Math.imul(k,z)|0,s=s+Math.imul(k,L)|0,f=f+Math.imul(X,G)|0,t=t+Math.imul(X,ae)|0,t=t+Math.imul(P,G)|0,s=s+Math.imul(P,ae)|0,f=f+Math.imul(W,ue)|0,t=t+Math.imul(W,le)|0,t=t+Math.imul(U,ue)|0,s=s+Math.imul(U,le)|0;var nt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,_e),t=Math.imul(Fe,xe),t=t+Math.imul(Be,_e)|0,s=Math.imul(Be,xe),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,s=s+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,s=s+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Ne)|0,t=t+Math.imul(oe,Pe)|0,t=t+Math.imul(se,Ne)|0,s=s+Math.imul(se,Pe)|0,f=f+Math.imul(ie,qe)|0,t=t+Math.imul(ie,Oe)|0,t=t+Math.imul(ne,qe)|0,s=s+Math.imul(ne,Oe)|0,f=f+Math.imul(ee,ke)|0,t=t+Math.imul(ee,Ue)|0,t=t+Math.imul(te,ke)|0,s=s+Math.imul(te,Ue)|0,f=f+Math.imul(T,z)|0,t=t+Math.imul(T,L)|0,t=t+Math.imul(j,z)|0,s=s+Math.imul(j,L)|0,f=f+Math.imul(Z,G)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,G)|0,s=s+Math.imul(k,ae)|0,f=f+Math.imul(X,ue)|0,t=t+Math.imul(X,le)|0,t=t+Math.imul(P,ue)|0,s=s+Math.imul(P,le)|0;var it=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,s=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,s=s+Math.imul(me,Ie)|0,f=f+Math.imul(de,Ne)|0,t=t+Math.imul(de,Pe)|0,t=t+Math.imul(ve,Ne)|0,s=s+Math.imul(ve,Pe)|0,f=f+Math.imul(oe,qe)|0,t=t+Math.imul(oe,Oe)|0,t=t+Math.imul(se,qe)|0,s=s+Math.imul(se,Oe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,s=s+Math.imul(ne,Ue)|0,f=f+Math.imul(ee,z)|0,t=t+Math.imul(ee,L)|0,t=t+Math.imul(te,z)|0,s=s+Math.imul(te,L)|0,f=f+Math.imul(T,G)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(j,G)|0,s=s+Math.imul(j,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,s=s+Math.imul(k,le)|0;var Ze=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,s=Math.imul(Be,Ie),f=f+Math.imul(be,Ne)|0,t=t+Math.imul(be,Pe)|0,t=t+Math.imul(me,Ne)|0,s=s+Math.imul(me,Pe)|0,f=f+Math.imul(de,qe)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(ve,qe)|0,s=s+Math.imul(ve,Oe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,s=s+Math.imul(se,Ue)|0,f=f+Math.imul(ie,z)|0,t=t+Math.imul(ie,L)|0,t=t+Math.imul(ne,z)|0,s=s+Math.imul(ne,L)|0,f=f+Math.imul(ee,G)|0,t=t+Math.imul(ee,ae)|0,t=t+Math.imul(te,G)|0,s=s+Math.imul(te,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(j,ue)|0,s=s+Math.imul(j,le)|0;var Qe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,f=Math.imul(Fe,Ne),t=Math.imul(Fe,Pe),t=t+Math.imul(Be,Ne)|0,s=Math.imul(Be,Pe),f=f+Math.imul(be,qe)|0,t=t+Math.imul(be,Oe)|0,t=t+Math.imul(me,qe)|0,s=s+Math.imul(me,Oe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,s=s+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,z)|0,t=t+Math.imul(oe,L)|0,t=t+Math.imul(se,z)|0,s=s+Math.imul(se,L)|0,f=f+Math.imul(ie,G)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,G)|0,s=s+Math.imul(ne,ae)|0,f=f+Math.imul(ee,ue)|0,t=t+Math.imul(ee,le)|0,t=t+Math.imul(te,ue)|0,s=s+Math.imul(te,le)|0;var Ge=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(Fe,qe),t=Math.imul(Fe,Oe),t=t+Math.imul(Be,qe)|0,s=Math.imul(Be,Oe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,s=s+Math.imul(me,Ue)|0,f=f+Math.imul(de,z)|0,t=t+Math.imul(de,L)|0,t=t+Math.imul(ve,z)|0,s=s+Math.imul(ve,L)|0,f=f+Math.imul(oe,G)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,G)|0,s=s+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,s=s+Math.imul(ne,le)|0;var Xe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,s=Math.imul(Be,Ue),f=f+Math.imul(be,z)|0,t=t+Math.imul(be,L)|0,t=t+Math.imul(me,z)|0,s=s+Math.imul(me,L)|0,f=f+Math.imul(de,G)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,G)|0,s=s+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,s=s+Math.imul(se,le)|0;var Ye=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(Fe,z),t=Math.imul(Fe,L),t=t+Math.imul(Be,z)|0,s=Math.imul(Be,L),f=f+Math.imul(be,G)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,G)|0,s=s+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,s=s+Math.imul(ve,le)|0;var Ke=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,f=Math.imul(Fe,G),t=Math.imul(Fe,ae),t=t+Math.imul(Be,G)|0,s=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,s=s+Math.imul(me,le)|0;var Me=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Me>>>26)|0,Me&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,s=Math.imul(Be,le);var Ee=(b+f|0)+((t&8191)<<13)|0;return b=(s+(t>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l[0]=Je,l[1]=We,l[2]=ht,l[3]=Ve,l[4]=et,l[5]=tt,l[6]=ft,l[7]=at,l[8]=rt,l[9]=nt,l[10]=it,l[11]=Ze,l[12]=Qe,l[13]=Ge,l[14]=Xe,l[15]=Ye,l[16]=Ke,l[17]=Me,l[18]=Ee,b!==0&&(l[19]=b,n.length++),n};Math.imul||(A=M);function B(u,e,r){r.negative=e.negative^u.negative,r.length=u.length+e.length;for(var n=0,a=0,o=0;o<r.length-1;o++){var l=a;a=0;for(var b=n&67108863,f=Math.min(o,e.length-1),t=Math.max(0,o-u.length+1);t<=f;t++){var s=o-t,$=u.words[s]|0,W=e.words[t]|0,U=$*W,Q=U&67108863;l=l+(U/67108864|0)|0,Q=Q+b|0,b=Q&67108863,l=l+(Q>>>26)|0,a+=l>>>26,l&=67108863}r.words[o]=b,n=l,l=a}return n!==0?r.words[o]=n:r.length--,r.strip()}function F(u,e,r){var n=new C;return n.mulp(u,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,r):a<63?n=M(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(u,e){this.x=u,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,o=0;o<r;o++)a|=(e&1)<<r-o-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,o,l){for(var b=0;b<l;b++)a[b]=r[e[b]],o[b]=n[e[b]]},C.prototype.transform=function(e,r,n,a,o,l){this.permute(l,e,r,n,a,o);for(var b=1;b<o;b<<=1)for(var f=b<<1,t=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),$=0;$<o;$+=f)for(var W=t,U=s,Q=0;Q<b;Q++){var X=n[$+Q],P=a[$+Q],H=n[$+Q+b],Z=a[$+Q+b],k=W*H-U*Z;Z=W*Z+U*H,H=k,n[$+Q]=X+H,a[$+Q]=P+Z,n[$+Q+b]=X-H,a[$+Q+b]=P-Z,Q!==f&&(k=t*W-s*U,U=t*U+s*W,W=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,o=0;for(n=n/2|0;n;n=n>>>1)o++;return 1<<o+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var o=e[a];e[a]=e[n-a-1],e[n-a-1]=o,o=r[a],r[a]=-r[n-a-1],r[n-a-1]=-o}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var o=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=o&67108863,o<67108864?n=0:n=o/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var o=0,l=0;l<r;l++)o=o+(e[l]|0),n[2*l]=o&8191,o=o>>>13,n[2*l+1]=o&8191,o=o>>>13;for(l=2*r;l<a;++l)n[l]=0;c(o===0),c((o&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(a),l=this.stub(a),b=new Array(a),f=new Array(a),t=new Array(a),s=new Array(a),$=new Array(a),W=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,b,a),this.convert13b(r.words,r.length,s,a),this.transform(b,l,f,t,a,o),this.transform(s,l,$,W,a,o);for(var Q=0;Q<a;Q++){var X=f[Q]*$[Q]-t[Q]*W[Q];t[Q]=f[Q]*W[Q]+t[Q]*$[Q],f[Q]=X}return this.conjugate(f,t,a),this.transform(f,t,U,l,a,o),this.conjugate(U,l,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){c(typeof e=="number"),c(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,o=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[n]=o&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=w(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var o=n.sqr();a<r.length;a++,o=o.sqr())r[a]!==0&&(n=n.mul(o));return n},i.prototype.iushln=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,o;if(r!==0){var l=0;for(o=0;o<this.length;o++){var b=this.words[o]&a,f=(this.words[o]|0)-b<<r;this.words[o]=f|l,l=b>>>26-r}l&&(this.words[o]=l,this.length++)}if(n!==0){for(o=this.length-1;o>=0;o--)this.words[o+n]=this.words[o];for(o=0;o<n;o++)this.words[o]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return c(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){c(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var o=e%26,l=Math.min((e-o)/26,this.length),b=67108863^67108863>>>o<<o,f=n;if(a-=l,a=Math.max(0,a),f){for(var t=0;t<l;t++)f.words[t]=this.words[t];f.length=l}if(l!==0)if(this.length>l)for(this.length-=l,t=0;t<this.length;t++)this.words[t]=this.words[t+l];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=a);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&b}return f&&s!==0&&(f.words[f.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return c(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var o=this.words[n];return!!(o&a)},i.prototype.imaskn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return c(typeof e=="number"),c(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(c(typeof e=="number"),c(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,o;this._expand(a);var l,b=0;for(o=0;o<e.length;o++){l=(this.words[o+n]|0)+b;var f=(e.words[o]|0)*r;l-=f&67108863,b=(l>>26)-(f/67108864|0),this.words[o+n]=l&67108863}for(;o<this.length-n;o++)l=(this.words[o+n]|0)+b,b=l>>26,this.words[o+n]=l&67108863;if(b===0)return this.strip();for(c(b===-1),b=0,o=0;o<this.length;o++)l=-(this.words[o]|0)+b,b=l>>26,this.words[o]=l&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),o=e,l=o.words[o.length-1]|0,b=this._countBits(l);n=26-b,n!==0&&(o=o.ushln(n),a.iushln(n),l=o.words[o.length-1]|0);var f=a.length-o.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=a.clone()._ishlnsubmul(o,1,f);$.negative===0&&(a=$,t&&(t.words[f]=1));for(var W=f-1;W>=0;W--){var U=(a.words[o.length+W]|0)*67108864+(a.words[o.length+W-1]|0);for(U=Math.min(U/l|0,67108863),a._ishlnsubmul(o,U,W);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(o,1,W),a.isZero()||(a.negative^=1);t&&(t.words[W]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(c(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,l;return this.negative!==0&&e.negative===0?(l=this.neg().divmod(e,r),r!=="mod"&&(a=l.div.neg()),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(l=this.divmod(e.neg(),r),r!=="mod"&&(a=l.div.neg()),{div:a,mod:l.mod}):(this.negative&e.negative)!==0?(l=this.neg().divmod(e.neg(),r),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),o=e.andln(1),l=n.cmp(a);return l<0||o===1&&l===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){c(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){c(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=new i(0),b=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),s=r.clone();!r.isZero();){for(var $=0,W=1;(r.words[0]&W)===0&&$<26;++$,W<<=1);if($>0)for(r.iushrn($);$-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(t),o.isub(s)),a.iushrn(1),o.iushrn(1);for(var U=0,Q=1;(n.words[0]&Q)===0&&U<26;++U,Q<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(l.isOdd()||b.isOdd())&&(l.iadd(t),b.isub(s)),l.iushrn(1),b.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(l),o.isub(b)):(n.isub(r),l.isub(a),b.isub(o))}return{a:l,b,gcd:n.iushln(f)}},i.prototype._invmp=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var b=0,f=1;(r.words[0]&f)===0&&b<26;++b,f<<=1);if(b>0)for(r.iushrn(b);b-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var t=0,s=1;(n.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(n.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(o)):(n.isub(r),o.isub(a))}var $;return r.cmpn(1)===0?$=a:$=o,$.cmpn(0)<0&&$.iadd(e),$},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=r.cmp(n);if(o<0){var l=r;r=n,n=l}else if(o===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){c(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var o=a,l=n;o!==0&&l<this.length;l++){var b=this.words[l]|0;b+=o,o=b>>>26,b&=67108863,this.words[l]=b}return o!==0&&(this.words[l]=o,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),c(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,o=e.words[n]|0;if(a!==o){a<o?r=-1:a>o&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new V(e)},i.prototype.toRed=function(e){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return c(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return c(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(u,e){this.name=u,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function K(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(K,D),K.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),o=0;o<a;o++)r.words[o]=e.words[o];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var l=e.words[9];for(r.words[r.length++]=l&n,o=10;o<e.length;o++){var b=e.words[o]|0;e.words[o-10]=(b&n)<<4|l>>>22,l=b}l>>>=22,e.words[o-10]=l,l===0&&e.length>10?e.length-=10:e.length-=9},K.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function q(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(q,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(Y,D);function J(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(J,D),J.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,o=a&67108863;a>>>=26,e.words[n]=o,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new K;else if(e==="p224")r=new q;else if(e==="p192")r=new Y;else if(e==="p25519")r=new J;else throw new Error("Unknown prime "+e);return R[e]=r,r};function V(u){if(typeof u=="string"){var e=i._prime(u);this.m=e.p,this.prime=e}else c(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}V.prototype._verify1=function(e){c(e.negative===0,"red works only with positives"),c(e.red,"red works only with red numbers")},V.prototype._verify2=function(e,r){c((e.negative|r.negative)===0,"red works only with positives"),c(e.red&&e.red===r.red,"red works only with red numbers")},V.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},V.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},V.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},V.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},V.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},V.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},V.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},V.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},V.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},V.prototype.isqr=function(e){return this.imul(e,e.clone())},V.prototype.sqr=function(e){return this.mul(e,e)},V.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(c(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);c(!a.isZero());var l=new i(1).toRed(this),b=l.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(b)!==0;)t.redIAdd(b);for(var s=this.pow(t,a),$=this.pow(e,a.addn(1).iushrn(1)),W=this.pow(e,a),U=o;W.cmp(l)!==0;){for(var Q=W,X=0;Q.cmp(l)!==0;X++)Q=Q.redSqr();c(X<U);var P=this.pow(s,new i(1).iushln(U-X-1));$=$.redMul(P),s=P.redSqr(),W=W.redMul(s),U=X}return $},V.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},V.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var l=a[0],b=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),o=r.length-1;o>=0;o--){for(var s=r.words[o],$=t-1;$>=0;$--){var W=s>>$&1;if(l!==a[0]&&(l=this.sqr(l)),W===0&&b===0){f=0;continue}b<<=1,b|=W,f++,!(f!==n&&(o!==0||$!==0))&&(l=this.mul(l,a[b]),f=0,b=0)}t=26}return l},V.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},V.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new re(e)};function re(u){V.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}E(re,V),re.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},re.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},re.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(g,hv)})(Xr)),Xr.exports}var a0={},Th;function cv(){return Th||(Th=1,(function(g){var x=Dr(),S=dt(),c=g;c.define=function(_,y){return new E(_,y)};function E(i,_){this.name=i,this.body=_,this.decoders={},this.encoders={}}E.prototype._createNamed=function(_){var y;try{y=br.runInThisContext("(function "+this.name+`(entity) {
3
3
  this._initNamed(entity);
4
- })`)}catch{y=function(h){this._initNamed(h)}}return S(y,_),y.prototype._initNamed=function(h){_.call(this,h)},new y(this)},E.prototype._getDecoder=function(_){return _=_||"der",this.decoders.hasOwnProperty(_)||(this.decoders[_]=this._createNamed(x.decoders[_])),this.decoders[_]},E.prototype.decode=function(_,y,m){return this._getDecoder(y).decode(_,m)},E.prototype._getEncoder=function(_){return _=_||"der",this.encoders.hasOwnProperty(_)||(this.encoders[_]=this._createNamed(x.encoders[_])),this.encoders[_]},E.prototype.encode=function(_,y,m){return this._getEncoder(y).encode(_,m)}})(a0)),a0}var f0={},o0={},Th;function sv(){if(Th)return o0;Th=1;var g=dt();function x(c){this._reporterState={obj:null,path:[],options:c||{},errors:[]}}o0.Reporter=x,x.prototype.isError=function(E){return E instanceof S},x.prototype.save=function(){var E=this._reporterState;return{obj:E.obj,pathLen:E.path.length}},x.prototype.restore=function(E){var i=this._reporterState;i.obj=E.obj,i.path=i.path.slice(0,E.pathLen)},x.prototype.enterKey=function(E){return this._reporterState.path.push(E)},x.prototype.exitKey=function(E){var i=this._reporterState;i.path=i.path.slice(0,E-1)},x.prototype.leaveKey=function(E,i,_){var y=this._reporterState;this.exitKey(E),y.obj!==null&&(y.obj[i]=_)},x.prototype.path=function(){return this._reporterState.path.join("/")},x.prototype.enterObject=function(){var E=this._reporterState,i=E.obj;return E.obj={},i},x.prototype.leaveObject=function(E){var i=this._reporterState,_=i.obj;return i.obj=E,_},x.prototype.error=function(E){var i,_=this._reporterState,y=E instanceof S;if(y?i=E:i=new S(_.path.map(function(m){return"["+JSON.stringify(m)+"]"}).join(""),E.message||E,E.stack),!_.options.partial)throw i;return y||_.errors.push(i),i},x.prototype.wrapResult=function(E){var i=this._reporterState;return i.options.partial?{result:this.isError(E)?null:E,errors:i.errors}:E};function S(c,E){this.path=c,this.rethrow(E)}return g(S,Error),S.prototype.rethrow=function(E){if(this.message=E+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,S),!this.stack)try{throw new Error(this.message)}catch(i){this.stack=i.stack}return this},o0}var Kr={},Ih;function kh(){if(Ih)return Kr;Ih=1;var g=dt(),x=Mr().Reporter,S=ze.requireDist().Buffer;function c(i,_){if(x.call(this,_),!S.isBuffer(i)){this.error("Input not Buffer");return}this.base=i,this.offset=0,this.length=i.length}g(c,x),Kr.DecoderBuffer=c,c.prototype.save=function(){return{offset:this.offset,reporter:x.prototype.save.call(this)}},c.prototype.restore=function(_){var y=new c(this.base);return y.offset=_.offset,y.length=this.offset,this.offset=_.offset,x.prototype.restore.call(this,_.reporter),y},c.prototype.isEmpty=function(){return this.offset===this.length},c.prototype.readUInt8=function(_){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(_||"DecoderBuffer overrun")},c.prototype.skip=function(_,y){if(!(this.offset+_<=this.length))return this.error(y||"DecoderBuffer overrun");var m=new c(this.base);return m._reporterState=this._reporterState,m.offset=this.offset,m.length=this.offset+_,this.offset+=_,m},c.prototype.raw=function(_){return this.base.slice(_?_.offset:this.offset,this.length)};function E(i,_){if(Array.isArray(i))this.length=0,this.value=i.map(function(y){return y instanceof E||(y=new E(y,_)),this.length+=y.length,y},this);else if(typeof i=="number"){if(!(0<=i&&i<=255))return _.error("non-byte EncoderBuffer value");this.value=i,this.length=1}else if(typeof i=="string")this.value=i,this.length=S.byteLength(i);else if(S.isBuffer(i))this.value=i,this.length=i.length;else return _.error("Unsupported type: "+typeof i)}return Kr.EncoderBuffer=E,E.prototype.join=function(_,y){return _||(_=new S(this.length)),y||(y=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(m){m.join(_,y),y+=m.length}):(typeof this.value=="number"?_[y]=this.value:typeof this.value=="string"?_.write(this.value,y):S.isBuffer(this.value)&&this.value.copy(_,y),y+=this.length)),_},Kr}var s0,Nh;function hv(){if(Nh)return s0;Nh=1;var g=Mr().Reporter,x=Mr().EncoderBuffer,S=Mr().DecoderBuffer,c=Gt(),E=["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"],i=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(E),_=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function y(h,d){var p={};this._baseState=p,p.enc=h,p.parent=d||null,p.children=null,p.tag=null,p.args=null,p.reverseArgs=null,p.choice=null,p.optional=!1,p.any=!1,p.obj=!1,p.use=null,p.useDecoder=null,p.key=null,p.default=null,p.explicit=null,p.implicit=null,p.contains=null,p.parent||(p.children=[],this._wrap())}s0=y;var m=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return y.prototype.clone=function(){var d=this._baseState,p={};m.forEach(function(w){p[w]=d[w]});var v=new this.constructor(p.parent);return v._baseState=p,v},y.prototype._wrap=function(){var d=this._baseState;i.forEach(function(p){this[p]=function(){var w=new this.constructor(this);return d.children.push(w),w[p].apply(w,arguments)}},this)},y.prototype._init=function(d){var p=this._baseState;c(p.parent===null),d.call(this),p.children=p.children.filter(function(v){return v._baseState.parent===this},this),c.equal(p.children.length,1,"Root node can have only one child")},y.prototype._useArgs=function(d){var p=this._baseState,v=d.filter(function(w){return w instanceof this.constructor},this);d=d.filter(function(w){return!(w instanceof this.constructor)},this),v.length!==0&&(c(p.children===null),p.children=v,v.forEach(function(w){w._baseState.parent=this},this)),d.length!==0&&(c(p.args===null),p.args=d,p.reverseArgs=d.map(function(w){if(typeof w!="object"||w.constructor!==Object)return w;var M={};return Object.keys(w).forEach(function(A){A==(A|0)&&(A|=0);var B=w[A];M[B]=A}),M}))},_.forEach(function(h){y.prototype[h]=function(){var p=this._baseState;throw new Error(h+" not implemented for encoding: "+p.enc)}}),E.forEach(function(h){y.prototype[h]=function(){var p=this._baseState,v=Array.prototype.slice.call(arguments);return c(p.tag===null),p.tag=h,this._useArgs(v),this}}),y.prototype.use=function(d){c(d);var p=this._baseState;return c(p.use===null),p.use=d,this},y.prototype.optional=function(){var d=this._baseState;return d.optional=!0,this},y.prototype.def=function(d){var p=this._baseState;return c(p.default===null),p.default=d,p.optional=!0,this},y.prototype.explicit=function(d){var p=this._baseState;return c(p.explicit===null&&p.implicit===null),p.explicit=d,this},y.prototype.implicit=function(d){var p=this._baseState;return c(p.explicit===null&&p.implicit===null),p.implicit=d,this},y.prototype.obj=function(){var d=this._baseState,p=Array.prototype.slice.call(arguments);return d.obj=!0,p.length!==0&&this._useArgs(p),this},y.prototype.key=function(d){var p=this._baseState;return c(p.key===null),p.key=d,this},y.prototype.any=function(){var d=this._baseState;return d.any=!0,this},y.prototype.choice=function(d){var p=this._baseState;return c(p.choice===null),p.choice=d,this._useArgs(Object.keys(d).map(function(v){return d[v]})),this},y.prototype.contains=function(d){var p=this._baseState;return c(p.use===null),p.contains=d,this},y.prototype._decode=function(d,p){var v=this._baseState;if(v.parent===null)return d.wrapResult(v.children[0]._decode(d,p));var w=v.default,M=!0,A=null;if(v.key!==null&&(A=d.enterKey(v.key)),v.optional){var B=null;if(v.explicit!==null?B=v.explicit:v.implicit!==null?B=v.implicit:v.tag!==null&&(B=v.tag),B===null&&!v.any){var F=d.save();try{v.choice===null?this._decodeGeneric(v.tag,d,p):this._decodeChoice(d,p),M=!0}catch{M=!1}d.restore(F)}else if(M=this._peekTag(d,B,v.any),d.isError(M))return M}var C;if(v.obj&&M&&(C=d.enterObject()),M){if(v.explicit!==null){var R=this._decodeTag(d,v.explicit);if(d.isError(R))return R;d=R}var D=d.offset;if(v.use===null&&v.choice===null){if(v.any)var F=d.save();var K=this._decodeTag(d,v.implicit!==null?v.implicit:v.tag,v.any);if(d.isError(K))return K;v.any?w=d.raw(F):d=K}if(p&&p.track&&v.tag!==null&&p.track(d.path(),D,d.length,"tagged"),p&&p.track&&v.tag!==null&&p.track(d.path(),d.offset,d.length,"content"),v.any?w=w:v.choice===null?w=this._decodeGeneric(v.tag,d,p):w=this._decodeChoice(d,p),d.isError(w))return w;if(!v.any&&v.choice===null&&v.children!==null&&v.children.forEach(function(J){J._decode(d,p)}),v.contains&&(v.tag==="octstr"||v.tag==="bitstr")){var q=new S(w);w=this._getUse(v.contains,d._reporterState.obj)._decode(q,p)}}return v.obj&&M&&(w=d.leaveObject(C)),v.key!==null&&(w!==null||M===!0)?d.leaveKey(A,v.key,w):A!==null&&d.exitKey(A),w},y.prototype._decodeGeneric=function(d,p,v){var w=this._baseState;return d==="seq"||d==="set"?null:d==="seqof"||d==="setof"?this._decodeList(p,d,w.args[0],v):/str$/.test(d)?this._decodeStr(p,d,v):d==="objid"&&w.args?this._decodeObjid(p,w.args[0],w.args[1],v):d==="objid"?this._decodeObjid(p,null,null,v):d==="gentime"||d==="utctime"?this._decodeTime(p,d,v):d==="null_"?this._decodeNull(p,v):d==="bool"?this._decodeBool(p,v):d==="objDesc"?this._decodeStr(p,d,v):d==="int"||d==="enum"?this._decodeInt(p,w.args&&w.args[0],v):w.use!==null?this._getUse(w.use,p._reporterState.obj)._decode(p,v):p.error("unknown tag: "+d)},y.prototype._getUse=function(d,p){var v=this._baseState;return v.useDecoder=this._use(d,p),c(v.useDecoder._baseState.parent===null),v.useDecoder=v.useDecoder._baseState.children[0],v.implicit!==v.useDecoder._baseState.implicit&&(v.useDecoder=v.useDecoder.clone(),v.useDecoder._baseState.implicit=v.implicit),v.useDecoder},y.prototype._decodeChoice=function(d,p){var v=this._baseState,w=null,M=!1;return Object.keys(v.choice).some(function(A){var B=d.save(),F=v.choice[A];try{var C=F._decode(d,p);if(d.isError(C))return!1;w={type:A,value:C},M=!0}catch{return d.restore(B),!1}return!0},this),M?w:d.error("Choice not matched")},y.prototype._createEncoderBuffer=function(d){return new x(d,this.reporter)},y.prototype._encode=function(d,p,v){var w=this._baseState;if(!(w.default!==null&&w.default===d)){var M=this._encodeValue(d,p,v);if(M!==void 0&&!this._skipDefault(M,p,v))return M}},y.prototype._encodeValue=function(d,p,v){var w=this._baseState;if(w.parent===null)return w.children[0]._encode(d,p||new g);var F=null;if(this.reporter=p,w.optional&&d===void 0)if(w.default!==null)d=w.default;else return;var M=null,A=!1;if(w.any)F=this._createEncoderBuffer(d);else if(w.choice)F=this._encodeChoice(d,p);else if(w.contains)M=this._getUse(w.contains,v)._encode(d,p),A=!0;else if(w.children)M=w.children.map(function(D){if(D._baseState.tag==="null_")return D._encode(null,p,d);if(D._baseState.key===null)return p.error("Child should have a key");var K=p.enterKey(D._baseState.key);if(typeof d!="object")return p.error("Child expected, but input is not object");var q=D._encode(d[D._baseState.key],p,d);return p.leaveKey(K),q},this).filter(function(D){return D}),M=this._createEncoderBuffer(M);else if(w.tag==="seqof"||w.tag==="setof"){if(!(w.args&&w.args.length===1))return p.error("Too many args for : "+w.tag);if(!Array.isArray(d))return p.error("seqof/setof, but data is not Array");var B=this.clone();B._baseState.implicit=null,M=this._createEncoderBuffer(d.map(function(D){var K=this._baseState;return this._getUse(K.args[0],d)._encode(D,p)},B))}else w.use!==null?F=this._getUse(w.use,v)._encode(d,p):(M=this._encodePrimitive(w.tag,d),A=!0);var F;if(!w.any&&w.choice===null){var C=w.implicit!==null?w.implicit:w.tag,R=w.implicit===null?"universal":"context";C===null?w.use===null&&p.error("Tag could be omitted only for .use()"):w.use===null&&(F=this._encodeComposite(C,A,R,M))}return w.explicit!==null&&(F=this._encodeComposite(w.explicit,!1,"context",F)),F},y.prototype._encodeChoice=function(d,p){var v=this._baseState,w=v.choice[d.type];return w||c(!1,d.type+" not found in "+JSON.stringify(Object.keys(v.choice))),w._encode(d.value,p)},y.prototype._encodePrimitive=function(d,p){var v=this._baseState;if(/str$/.test(d))return this._encodeStr(p,d);if(d==="objid"&&v.args)return this._encodeObjid(p,v.reverseArgs[0],v.args[1]);if(d==="objid")return this._encodeObjid(p,null,null);if(d==="gentime"||d==="utctime")return this._encodeTime(p,d);if(d==="null_")return this._encodeNull();if(d==="int"||d==="enum")return this._encodeInt(p,v.args&&v.reverseArgs[0]);if(d==="bool")return this._encodeBool(p);if(d==="objDesc")return this._encodeStr(p,d);throw new Error("Unsupported tag: "+d)},y.prototype._isNumstr=function(d){return/^[0-9 ]*$/.test(d)},y.prototype._isPrintstr=function(d){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(d)},s0}var Ph;function Mr(){return Ph||(Ph=1,(function(g){var x=g;x.Reporter=sv().Reporter,x.DecoderBuffer=kh().DecoderBuffer,x.EncoderBuffer=kh().EncoderBuffer,x.Node=hv()})(f0)),f0}var h0={},u0={},qh;function uv(){return qh||(qh=1,(function(g){var x=Cc();g.tagClass={0:"universal",1:"application",2:"context",3:"private"},g.tagClassByName=x._reverse(g.tagClass),g.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"},g.tagByName=x._reverse(g.tag)})(u0)),u0}var Oh;function Cc(){return Oh||(Oh=1,(function(g){var x=g;x._reverse=function(c){var E={};return Object.keys(c).forEach(function(i){(i|0)==i&&(i=i|0);var _=c[i];E[_]=i}),E},x.der=uv()})(h0)),h0}var c0={},l0,Uh;function Dc(){if(Uh)return l0;Uh=1;var g=dt(),x=Cr(),S=x.base,c=x.bignum,E=x.constants.der;function i(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new _,this.tree._init(h.body)}l0=i,i.prototype.decode=function(d,p){return d instanceof S.DecoderBuffer||(d=new S.DecoderBuffer(d,p)),this.tree._decode(d,p)};function _(h){S.Node.call(this,"der",h)}g(_,S.Node),_.prototype._peekTag=function(d,p,v){if(d.isEmpty())return!1;var w=d.save(),M=y(d,'Failed to peek tag: "'+p+'"');return d.isError(M)?M:(d.restore(w),M.tag===p||M.tagStr===p||M.tagStr+"of"===p||v)},_.prototype._decodeTag=function(d,p,v){var w=y(d,'Failed to decode tag of "'+p+'"');if(d.isError(w))return w;var M=m(d,w.primitive,'Failed to get length of "'+p+'"');if(d.isError(M))return M;if(!v&&w.tag!==p&&w.tagStr!==p&&w.tagStr+"of"!==p)return d.error('Failed to match tag: "'+p+'"');if(w.primitive||M!==null)return d.skip(M,'Failed to match body of: "'+p+'"');var A=d.save(),B=this._skipUntilEnd(d,'Failed to skip indefinite length body: "'+this.tag+'"');return d.isError(B)?B:(M=d.offset-A.offset,d.restore(A),d.skip(M,'Failed to match body of: "'+p+'"'))},_.prototype._skipUntilEnd=function(d,p){for(;;){var v=y(d,p);if(d.isError(v))return v;var w=m(d,v.primitive,p);if(d.isError(w))return w;var M;if(v.primitive||w!==null?M=d.skip(w):M=this._skipUntilEnd(d,p),d.isError(M))return M;if(v.tagStr==="end")break}},_.prototype._decodeList=function(d,p,v,w){for(var M=[];!d.isEmpty();){var A=this._peekTag(d,"end");if(d.isError(A))return A;var B=v.decode(d,"der",w);if(d.isError(B)&&A)break;M.push(B)}return M},_.prototype._decodeStr=function(d,p){if(p==="bitstr"){var v=d.readUInt8();return d.isError(v)?v:{unused:v,data:d.raw()}}else if(p==="bmpstr"){var w=d.raw();if(w.length%2===1)return d.error("Decoding of string type: bmpstr length mismatch");for(var M="",A=0;A<w.length/2;A++)M+=String.fromCharCode(w.readUInt16BE(A*2));return M}else if(p==="numstr"){var B=d.raw().toString("ascii");return this._isNumstr(B)?B:d.error("Decoding of string type: numstr unsupported characters")}else{if(p==="octstr")return d.raw();if(p==="objDesc")return d.raw();if(p==="printstr"){var F=d.raw().toString("ascii");return this._isPrintstr(F)?F:d.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(p)?d.raw().toString():d.error("Decoding of string type: "+p+" unsupported")}},_.prototype._decodeObjid=function(d,p,v){for(var w,M=[],A=0;!d.isEmpty();){var B=d.readUInt8();A<<=7,A|=B&127,(B&128)===0&&(M.push(A),A=0)}B&128&&M.push(A);var F=M[0]/40|0,C=M[0]%40;if(v?w=M:w=[F,C].concat(M.slice(1)),p){var R=p[w.join(" ")];R===void 0&&(R=p[w.join(".")]),R!==void 0&&(w=R)}return w},_.prototype._decodeTime=function(d,p){var v=d.raw().toString();if(p==="gentime")var w=v.slice(0,4)|0,M=v.slice(4,6)|0,A=v.slice(6,8)|0,B=v.slice(8,10)|0,F=v.slice(10,12)|0,C=v.slice(12,14)|0;else if(p==="utctime"){var w=v.slice(0,2)|0,M=v.slice(2,4)|0,A=v.slice(4,6)|0,B=v.slice(6,8)|0,F=v.slice(8,10)|0,C=v.slice(10,12)|0;w<70?w=2e3+w:w=1900+w}else return d.error("Decoding "+p+" time is not supported yet");return Date.UTC(w,M-1,A,B,F,C,0)},_.prototype._decodeNull=function(d){return null},_.prototype._decodeBool=function(d){var p=d.readUInt8();return d.isError(p)?p:p!==0},_.prototype._decodeInt=function(d,p){var v=d.raw(),w=new c(v);return p&&(w=p[w.toString(10)]||w),w},_.prototype._use=function(d,p){return typeof d=="function"&&(d=d(p)),d._getDecoder("der").tree};function y(h,d){var p=h.readUInt8(d);if(h.isError(p))return p;var v=E.tagClass[p>>6],w=(p&32)===0;if((p&31)===31){var M=p;for(p=0;(M&128)===128;){if(M=h.readUInt8(d),h.isError(M))return M;p<<=7,p|=M&127}}else p&=31;var A=E.tag[p];return{cls:v,primitive:w,tag:p,tagStr:A}}function m(h,d,p){var v=h.readUInt8(p);if(h.isError(v))return v;if(!d&&v===128)return null;if((v&128)===0)return v;var w=v&127;if(w>4)return h.error("length octect is too long");v=0;for(var M=0;M<w;M++){v<<=8;var A=h.readUInt8(p);if(h.isError(A))return A;v|=A}return v}return l0}var d0,Lh;function cv(){if(Lh)return d0;Lh=1;var g=dt(),x=ze.requireDist().Buffer,S=Dc();function c(E){S.call(this,E),this.enc="pem"}return g(c,S),d0=c,c.prototype.decode=function(i,_){for(var y=i.toString().split(/[\r\n]+/g),m=_.label.toUpperCase(),h=/^-----(BEGIN|END) ([^-]+)-----$/,d=-1,p=-1,v=0;v<y.length;v++){var w=y[v].match(h);if(w!==null&&w[2]===m)if(d===-1){if(w[1]!=="BEGIN")break;d=v}else{if(w[1]!=="END")break;p=v;break}}if(d===-1||p===-1)throw new Error("PEM section not found for: "+m);var M=y.slice(d+1,p).join("");M.replace(/[^a-z0-9\+\/=]+/gi,"");var A=new x(M,"base64");return S.prototype.decode.call(this,A,_)},d0}var Hh;function lv(){return Hh||(Hh=1,(function(g){var x=g;x.der=Dc(),x.pem=cv()})(c0)),c0}var p0={},v0,zh;function Rc(){if(zh)return v0;zh=1;var g=dt(),x=ze.requireDist().Buffer,S=Cr(),c=S.base,E=S.constants.der;function i(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new _,this.tree._init(h.body)}v0=i,i.prototype.encode=function(d,p){return this.tree._encode(d,p).join()};function _(h){c.Node.call(this,"der",h)}g(_,c.Node),_.prototype._encodeComposite=function(d,p,v,w){var M=m(d,p,v,this.reporter);if(w.length<128){var F=new x(2);return F[0]=M,F[1]=w.length,this._createEncoderBuffer([F,w])}for(var A=1,B=w.length;B>=256;B>>=8)A++;var F=new x(2+A);F[0]=M,F[1]=128|A;for(var B=1+A,C=w.length;C>0;B--,C>>=8)F[B]=C&255;return this._createEncoderBuffer([F,w])},_.prototype._encodeStr=function(d,p){if(p==="bitstr")return this._createEncoderBuffer([d.unused|0,d.data]);if(p==="bmpstr"){for(var v=new x(d.length*2),w=0;w<d.length;w++)v.writeUInt16BE(d.charCodeAt(w),w*2);return this._createEncoderBuffer(v)}else return p==="numstr"?this._isNumstr(d)?this._createEncoderBuffer(d):this.reporter.error("Encoding of string type: numstr supports only digits and space"):p==="printstr"?this._isPrintstr(d)?this._createEncoderBuffer(d):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(p)?this._createEncoderBuffer(d):p==="objDesc"?this._createEncoderBuffer(d):this.reporter.error("Encoding of string type: "+p+" unsupported")},_.prototype._encodeObjid=function(d,p,v){if(typeof d=="string"){if(!p)return this.reporter.error("string objid given, but no values map found");if(!p.hasOwnProperty(d))return this.reporter.error("objid not found in values map");d=p[d].split(/[\s\.]+/g);for(var w=0;w<d.length;w++)d[w]|=0}else if(Array.isArray(d)){d=d.slice();for(var w=0;w<d.length;w++)d[w]|=0}if(!Array.isArray(d))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(d));if(!v){if(d[1]>=40)return this.reporter.error("Second objid identifier OOB");d.splice(0,2,d[0]*40+d[1])}for(var M=0,w=0;w<d.length;w++){var A=d[w];for(M++;A>=128;A>>=7)M++}for(var B=new x(M),F=B.length-1,w=d.length-1;w>=0;w--){var A=d[w];for(B[F--]=A&127;(A>>=7)>0;)B[F--]=128|A&127}return this._createEncoderBuffer(B)};function y(h){return h<10?"0"+h:h}_.prototype._encodeTime=function(d,p){var v,w=new Date(d);return p==="gentime"?v=[y(w.getFullYear()),y(w.getUTCMonth()+1),y(w.getUTCDate()),y(w.getUTCHours()),y(w.getUTCMinutes()),y(w.getUTCSeconds()),"Z"].join(""):p==="utctime"?v=[y(w.getFullYear()%100),y(w.getUTCMonth()+1),y(w.getUTCDate()),y(w.getUTCHours()),y(w.getUTCMinutes()),y(w.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+p+" time is not supported yet"),this._encodeStr(v,"octstr")},_.prototype._encodeNull=function(){return this._createEncoderBuffer("")},_.prototype._encodeInt=function(d,p){if(typeof d=="string"){if(!p)return this.reporter.error("String int or enum given, but no values map");if(!p.hasOwnProperty(d))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(d));d=p[d]}if(typeof d!="number"&&!x.isBuffer(d)){var v=d.toArray();!d.sign&&v[0]&128&&v.unshift(0),d=new x(v)}if(x.isBuffer(d)){var w=d.length;d.length===0&&w++;var A=new x(w);return d.copy(A),d.length===0&&(A[0]=0),this._createEncoderBuffer(A)}if(d<128)return this._createEncoderBuffer(d);if(d<256)return this._createEncoderBuffer([0,d]);for(var w=1,M=d;M>=256;M>>=8)w++;for(var A=new Array(w),M=A.length-1;M>=0;M--)A[M]=d&255,d>>=8;return A[0]&128&&A.unshift(0),this._createEncoderBuffer(new x(A))},_.prototype._encodeBool=function(d){return this._createEncoderBuffer(d?255:0)},_.prototype._use=function(d,p){return typeof d=="function"&&(d=d(p)),d._getEncoder("der").tree},_.prototype._skipDefault=function(d,p,v){var w=this._baseState,M;if(w.default===null)return!1;var A=d.join();if(w.defaultBuffer===void 0&&(w.defaultBuffer=this._encodeValue(w.default,p,v).join()),A.length!==w.defaultBuffer.length)return!1;for(M=0;M<A.length;M++)if(A[M]!==w.defaultBuffer[M])return!1;return!0};function m(h,d,p,v){var w;if(h==="seqof"?h="seq":h==="setof"&&(h="set"),E.tagByName.hasOwnProperty(h))w=E.tagByName[h];else if(typeof h=="number"&&(h|0)===h)w=h;else return v.error("Unknown tag: "+h);return w>=31?v.error("Multi-octet tag encoding unsupported"):(d||(w|=32),w|=E.tagClassByName[p||"universal"]<<6,w)}return v0}var b0,$h;function dv(){if($h)return b0;$h=1;var g=dt(),x=Rc();function S(c){x.call(this,c),this.enc="pem"}return g(S,x),b0=S,S.prototype.encode=function(E,i){for(var _=x.prototype.encode.call(this,E),y=_.toString("base64"),m=["-----BEGIN "+i.label+"-----"],h=0;h<y.length;h+=64)m.push(y.slice(h,h+64));return m.push("-----END "+i.label+"-----"),m.join(`
5
- `)},b0}var Kh;function pv(){return Kh||(Kh=1,(function(g){var x=g;x.der=Rc(),x.pem=dv()})(p0)),p0}var Wh;function Cr(){return Wh||(Wh=1,(function(g){var x=g;x.bignum=fv(),x.define=ov().define,x.base=Mr(),x.constants=Cc(),x.decoders=lv(),x.encoders=pv()})(n0)),n0}var m0,jh;function vv(){if(jh)return m0;jh=1;var g=Cr(),x=g.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),S=g.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),c=g.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),E=g.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())}),i=g.define("RelativeDistinguishedName",function(){this.setof(S)}),_=g.define("RDNSequence",function(){this.seqof(i)}),y=g.define("Name",function(){this.choice({rdnSequence:this.use(_)})}),m=g.define("Validity",function(){this.seq().obj(this.key("notBefore").use(x),this.key("notAfter").use(x))}),h=g.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=g.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(c),this.key("issuer").use(y),this.key("validity").use(m),this.key("subject").use(y),this.key("subjectPublicKeyInfo").use(E),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}),p=g.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(c),this.key("signatureValue").bitstr())});return m0=p,m0}var Gh;function bv(){if(Gh)return jt;Gh=1;var g=Cr();jt.certificate=vv();var x=g.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())});jt.RSAPrivateKey=x;var S=g.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});jt.RSAPublicKey=S;var c=g.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())}),E=g.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())});jt.PublicKey=E;var i=g.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(c),this.key("subjectPrivateKey").octstr())});jt.PrivateKey=i;var _=g.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())});jt.EncryptedPrivateKey=_;var y=g.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())});jt.DSAPrivateKey=y,jt.DSAparam=g.define("DSAparam",function(){this.int()});var m=g.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),h=g.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(m),this.key("publicKey").optional().explicit(1).bitstr())});return jt.ECPrivateKey=h,jt.signature=g.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}),jt}const mv={"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"};var y0,Vh;function yv(){if(Vh)return y0;Vh=1;var g=/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,x=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,S=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,c=fi(),E=Q0(),i=ze.requireSafeBuffer().Buffer;return y0=function(_,y){var m=_.toString(),h=m.match(g),d;if(h){var v="aes"+h[1],w=i.from(h[2],"hex"),M=i.from(h[3].replace(/[\r\n]/g,""),"base64"),A=c(y,w.slice(0,8),parseInt(h[1],10)).key,B=[],F=E.createDecipheriv(v,A,w);B.push(F.update(M)),B.push(F.final()),d=i.concat(B)}else{var p=m.match(S);d=i.from(p[2].replace(/[\r\n]/g,""),"base64")}var C=m.match(x)[1];return{tag:C,data:d}},y0}var g0,Zh;function ui(){if(Zh)return g0;Zh=1;var g=bv(),x=mv,S=yv(),c=Q0(),E=hc(),i=ze.requireSafeBuffer().Buffer;function _(m,h){var d=m.algorithm.decrypt.kde.kdeparams.salt,p=parseInt(m.algorithm.decrypt.kde.kdeparams.iters.toString(),10),v=x[m.algorithm.decrypt.cipher.algo.join(".")],w=m.algorithm.decrypt.cipher.iv,M=m.subjectPrivateKey,A=parseInt(v.split("-")[1],10)/8,B=E.pbkdf2Sync(h,d,p,A,"sha1"),F=c.createDecipheriv(v,B,w),C=[];return C.push(F.update(M)),C.push(F.final()),i.concat(C)}function y(m){var h;typeof m=="object"&&!i.isBuffer(m)&&(h=m.passphrase,m=m.key),typeof m=="string"&&(m=i.from(m));var d=S(m,h),p=d.tag,v=d.data,w,M;switch(p){case"CERTIFICATE":M=g.certificate.decode(v,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(M||(M=g.PublicKey.decode(v,"der")),w=M.algorithm.algorithm.join("."),w){case"1.2.840.113549.1.1.1":return g.RSAPublicKey.decode(M.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return M.subjectPrivateKey=M.subjectPublicKey,{type:"ec",data:M};case"1.2.840.10040.4.1":return M.algorithm.params.pub_key=g.DSAparam.decode(M.subjectPublicKey.data,"der"),{type:"dsa",data:M.algorithm.params};default:throw new Error("unknown key id "+w)}case"ENCRYPTED PRIVATE KEY":v=g.EncryptedPrivateKey.decode(v,"der"),v=_(v,h);case"PRIVATE KEY":switch(M=g.PrivateKey.decode(v,"der"),w=M.algorithm.algorithm.join("."),w){case"1.2.840.113549.1.1.1":return g.RSAPrivateKey.decode(M.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:M.algorithm.curve,privateKey:g.ECPrivateKey.decode(M.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return M.algorithm.params.priv_key=g.DSAparam.decode(M.subjectPrivateKey,"der"),{type:"dsa",params:M.algorithm.params};default:throw new Error("unknown key id "+w)}case"RSA PUBLIC KEY":return g.RSAPublicKey.decode(v,"der");case"RSA PRIVATE KEY":return g.RSAPrivateKey.decode(v,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:g.DSAPrivateKey.decode(v,"der")};case"EC PRIVATE KEY":return v=g.ECPrivateKey.decode(v,"der"),{curve:v.parameters.value,privateKey:v.privateKey};default:throw new Error("unknown key type "+p)}}return y.signature=g.signature,g0=y,g0}const Tc={"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"};var Xh;function gv(){if(Xh)return xr.exports;Xh=1;var g=ze.requireSafeBuffer().Buffer,x=ic(),S=rf(),c=hi().ec,E=ze.requireBn(),i=ui(),_=Tc,y=1;function m(F,C,R,D,K){var q=i(C);if(q.curve){if(D!=="ecdsa"&&D!=="ecdsa/rsa")throw new Error("wrong private key type");return h(F,q)}else if(q.type==="dsa"){if(D!=="dsa")throw new Error("wrong private key type");return d(F,q,R)}if(D!=="rsa"&&D!=="ecdsa/rsa")throw new Error("wrong private key type");if(C.padding!==void 0&&C.padding!==y)throw new Error("illegal or unsupported padding mode");F=g.concat([K,F]);for(var Y=q.modulus.byteLength(),J=[0,1];F.length+J.length+1<Y;)J.push(255);J.push(0);for(var V=-1;++V<F.length;)J.push(F[V]);var re=S(J,q);return re}function h(F,C){var R=_[C.curve.join(".")];if(!R)throw new Error("unknown curve "+C.curve.join("."));var D=new c(R),K=D.keyFromPrivate(C.privateKey),q=K.sign(F);return g.from(q.toDER())}function d(F,C,R){for(var D=C.params.priv_key,K=C.params.p,q=C.params.q,Y=C.params.g,J=new E(0),V,re=w(F,q).mod(q),u=!1,e=v(D,q,F,R);u===!1;)V=A(q,e,R),J=B(Y,V,K,q),u=V.invm(q).imul(re.add(D.mul(J))).mod(q),u.cmpn(0)===0&&(u=!1,J=new E(0));return p(J,u)}function p(F,C){F=F.toArray(),C=C.toArray(),F[0]&128&&(F=[0].concat(F)),C[0]&128&&(C=[0].concat(C));var R=F.length+C.length+4,D=[48,R,2,F.length];return D=D.concat(F,[2,C.length],C),g.from(D)}function v(F,C,R,D){if(F=g.from(F.toArray()),F.length<C.byteLength()){var K=g.alloc(C.byteLength()-F.length);F=g.concat([K,F])}var q=R.length,Y=M(R,C),J=g.alloc(q);J.fill(1);var V=g.alloc(q);return V=x(D,V).update(J).update(g.from([0])).update(F).update(Y).digest(),J=x(D,V).update(J).digest(),V=x(D,V).update(J).update(g.from([1])).update(F).update(Y).digest(),J=x(D,V).update(J).digest(),{k:V,v:J}}function w(F,C){var R=new E(F),D=(F.length<<3)-C.bitLength();return D>0&&R.ishrn(D),R}function M(F,C){F=w(F,C),F=F.mod(C);var R=g.from(F.toArray());if(R.length<C.byteLength()){var D=g.alloc(C.byteLength()-R.length);R=g.concat([D,R])}return R}function A(F,C,R){var D,K;do{for(D=g.alloc(0);D.length*8<F.bitLength();)C.v=x(R,C.k).update(C.v).digest(),D=g.concat([D,C.v]);K=w(D,F),C.k=x(R,C.k).update(C.v).update(g.from([0])).digest(),C.v=x(R,C.k).update(C.v).digest()}while(K.cmp(F)!==-1);return K}function B(F,C,R,D){return F.toRed(E.mont(R)).redPow(C).fromRed().mod(D)}return xr.exports=m,xr.exports.getKey=v,xr.exports.makeKey=A,xr.exports}var x0,Yh;function xv(){if(Yh)return x0;Yh=1;var g=ze.requireSafeBuffer().Buffer,x=ze.requireBn(),S=hi().ec,c=ui(),E=Tc;function i(h,d,p,v,w){var M=c(p);if(M.type==="ec"){if(v!=="ecdsa"&&v!=="ecdsa/rsa")throw new Error("wrong public key type");return _(h,d,M)}else if(M.type==="dsa"){if(v!=="dsa")throw new Error("wrong public key type");return y(h,d,M)}if(v!=="rsa"&&v!=="ecdsa/rsa")throw new Error("wrong public key type");d=g.concat([w,d]);for(var A=M.modulus.byteLength(),B=[1],F=0;d.length+B.length+2<A;)B.push(255),F+=1;B.push(0);for(var C=-1;++C<d.length;)B.push(d[C]);B=g.from(B);var R=x.mont(M.modulus);h=new x(h).toRed(R),h=h.redPow(new x(M.publicExponent)),h=g.from(h.fromRed().toArray());var D=F<8?1:0;for(A=Math.min(h.length,B.length),h.length!==B.length&&(D=1),C=-1;++C<A;)D|=h[C]^B[C];return D===0}function _(h,d,p){var v=E[p.data.algorithm.curve.join(".")];if(!v)throw new Error("unknown curve "+p.data.algorithm.curve.join("."));var w=new S(v),M=p.data.subjectPrivateKey.data;return w.verify(d,h,M)}function y(h,d,p){var v=p.data.p,w=p.data.q,M=p.data.g,A=p.data.pub_key,B=c.signature.decode(h,"der"),F=B.s,C=B.r;m(F,w),m(C,w);var R=x.mont(v),D=F.invm(w),K=M.toRed(R).redPow(new x(d).mul(D).mod(w)).fromRed().mul(A.toRed(R).redPow(C.mul(D).mod(w)).fromRed()).mod(v).mod(w);return K.cmp(C)===0}function m(h,d){if(h.cmpn(0)<=0)throw new Error("invalid sig");if(h.cmp(d)>=0)throw new Error("invalid sig")}return x0=i,x0}var w0,Jh;function wv(){if(Jh)return w0;Jh=1;var g=ze.requireSafeBuffer().Buffer,x=Ar(),S=Op(),c=dt(),E=gv(),i=xv(),_=nc;Object.keys(_).forEach(function(p){_[p].id=g.from(_[p].id,"hex"),_[p.toLowerCase()]=_[p]});function y(p){S.Writable.call(this);var v=_[p];if(!v)throw new Error("Unknown message digest");this._hashType=v.hash,this._hash=x(v.hash),this._tag=v.id,this._signType=v.sign}c(y,S.Writable),y.prototype._write=function(v,w,M){this._hash.update(v),M()},y.prototype.update=function(v,w){return this._hash.update(typeof v=="string"?g.from(v,w):v),this},y.prototype.sign=function(v,w){this.end();var M=this._hash.digest(),A=E(M,v,this._hashType,this._signType,this._tag);return w?A.toString(w):A};function m(p){S.Writable.call(this);var v=_[p];if(!v)throw new Error("Unknown message digest");this._hash=x(v.hash),this._tag=v.id,this._signType=v.sign}c(m,S.Writable),m.prototype._write=function(v,w,M){this._hash.update(v),M()},m.prototype.update=function(v,w){return this._hash.update(typeof v=="string"?g.from(v,w):v),this},m.prototype.verify=function(v,w,M){var A=typeof w=="string"?g.from(w,M):w;this.end();var B=this._hash.digest();return i(A,B,v,this._signType,this._tag)};function h(p){return new y(p)}function d(p){return new m(p)}return w0={Sign:h,Verify:d,createSign:h,createVerify:d},w0}var Xr={exports:{}},Mv=Xr.exports,Qh;function _v(){return Qh||(Qh=1,(function(g){(function(x,S){function c(u,e){if(!u)throw new Error(e||"Assertion failed")}function E(u,e){u.super_=e;var r=function(){};r.prototype=e.prototype,u.prototype=new r,u.prototype.constructor=u}function i(u,e,r){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(u||0,e||10,r||"be"))}typeof x=="object"?x.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=ze.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),c(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(c(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(c(typeof e.length=="number"),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 a=0;a<this.length;a++)this.words[a]=0;var o,l,b=0;if(n==="be")for(a=e.length-1,o=0;a>=0;a-=3)l=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);else if(n==="le")for(a=0,o=0;a<e.length;a+=3)l=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);return this.strip()};function y(u,e){var r=u.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(u,e,r){var n=y(u,r);return r-1>=e&&(n|=y(u,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o=0,l=0,b;if(n==="be")for(a=e.length-1;a>=r;a-=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8}this.strip()};function h(u,e,r,n){for(var a=0,o=Math.min(u.length,r),l=e;l<o;l++){var b=u.charCodeAt(l)-48;a*=n,b>=49?a+=b-49+10:b>=17?a+=b-17+10:a+=b}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,o=1;o<=67108863;o*=r)a++;a--,o=o/r|0;for(var l=e.length-n,b=l%a,f=Math.min(l,l-b)+n,t=0,s=n;s<f;s+=a)t=h(e,s,s+a,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(b!==0){var $=1;for(t=h(e,s,e.length,r),s=0;s<b;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],p=[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],v=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,o=0,l=0;l<this.length;l++){var b=this.words[l],f=((b<<a|o)&16777215).toString(16);o=b>>>24-a&16777215,a+=2,a>=26&&(a-=26,l--),o!==0||l!==this.length-1?n=d[6-f.length]+f+n:n=f+n}for(o!==0&&(n=o.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=v[e];n="";var $=this.clone();for($.negative=0;!$.isZero();){var W=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?n=W+n:n=d[t-W.length]+W+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}c(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return c(typeof _<"u"),this.toArrayLike(_,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),o=n||Math.max(1,a);c(a<=o,"byte array longer than desired length"),c(o>0,"Requested array length <= 0"),this.strip();var l=r==="le",b=new e(o),f,t,s=this.clone();if(l){for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[t]=f;for(;t<o;t++)b[t]=0}else{for(t=0;t<o-a;t++)b[t]=0;for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[o-t-1]=f}return b},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(u){for(var e=new Array(u.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(u.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return c((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return c((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return c((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){c(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){c(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var o=0,l=0;l<a.length;l++)r=(n.words[l]|0)+(a.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;for(;o!==0&&l<n.length;l++)r=(n.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;if(this.length=n.length,o!==0)this.words[this.length]=o,this.length++;else if(n!==this)for(;l<n.length;l++)this.words[l]=n.words[l];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,o;n>0?(a=this,o=e):(a=e,o=this);for(var l=0,b=0;b<o.length;b++)r=(a.words[b]|0)-(o.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;for(;l!==0&&b<a.length;b++)r=(a.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;if(l===0&&b<a.length&&a!==this)for(;b<a.length;b++)this.words[b]=a.words[b];return this.length=Math.max(this.length,b),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function M(u,e,r){r.negative=e.negative^u.negative;var n=u.length+e.length|0;r.length=n,n=n-1|0;var a=u.words[0]|0,o=e.words[0]|0,l=a*o,b=l&67108863,f=l/67108864|0;r.words[0]=b;for(var t=1;t<n;t++){for(var s=f>>>26,$=f&67108863,W=Math.min(t,e.length-1),U=Math.max(0,t-u.length+1);U<=W;U++){var Q=t-U|0;a=u.words[Q]|0,o=e.words[U]|0,l=a*o+$,s+=l/67108864|0,$=l&67108863}r.words[t]=$|0,f=s|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var A=function(e,r,n){var a=e.words,o=r.words,l=n.words,b=0,f,t,s,$=a[0]|0,W=$&8191,U=$>>>13,Q=a[1]|0,X=Q&8191,P=Q>>>13,H=a[2]|0,Z=H&8191,k=H>>>13,N=a[3]|0,T=N&8191,j=N>>>13,fe=a[4]|0,ee=fe&8191,te=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,pt=o[0]|0,Ae=pt&8191,Se=pt>>>13,ct=o[1]|0,Me=ct&8191,ge=ct>>>13,wt=o[2]|0,Ce=wt&8191,De=wt>>>13,_t=o[3]|0,Te=_t&8191,Ie=_t>>>13,Dt=o[4]|0,Ne=Dt&8191,Pe=Dt>>>13,kt=o[5]|0,qe=kt&8191,Oe=kt>>>13,Pt=o[6]|0,ke=Pt&8191,Ue=Pt>>>13,O=o[7]|0,z=O&8191,L=O>>>13,I=o[8]|0,G=I&8191,ae=I>>>13,ye=o[9]|0,ue=ye&8191,le=ye>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(W,Ae),t=Math.imul(W,Se),t=t+Math.imul(U,Ae)|0,s=Math.imul(U,Se);var Je=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(X,Ae),t=Math.imul(X,Se),t=t+Math.imul(P,Ae)|0,s=Math.imul(P,Se),f=f+Math.imul(W,Me)|0,t=t+Math.imul(W,ge)|0,t=t+Math.imul(U,Me)|0,s=s+Math.imul(U,ge)|0;var We=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Z,Ae),t=Math.imul(Z,Se),t=t+Math.imul(k,Ae)|0,s=Math.imul(k,Se),f=f+Math.imul(X,Me)|0,t=t+Math.imul(X,ge)|0,t=t+Math.imul(P,Me)|0,s=s+Math.imul(P,ge)|0,f=f+Math.imul(W,Ce)|0,t=t+Math.imul(W,De)|0,t=t+Math.imul(U,Ce)|0,s=s+Math.imul(U,De)|0;var ht=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ae),t=Math.imul(T,Se),t=t+Math.imul(j,Ae)|0,s=Math.imul(j,Se),f=f+Math.imul(Z,Me)|0,t=t+Math.imul(Z,ge)|0,t=t+Math.imul(k,Me)|0,s=s+Math.imul(k,ge)|0,f=f+Math.imul(X,Ce)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(P,Ce)|0,s=s+Math.imul(P,De)|0,f=f+Math.imul(W,Te)|0,t=t+Math.imul(W,Ie)|0,t=t+Math.imul(U,Te)|0,s=s+Math.imul(U,Ie)|0;var Ve=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(ee,Ae),t=Math.imul(ee,Se),t=t+Math.imul(te,Ae)|0,s=Math.imul(te,Se),f=f+Math.imul(T,Me)|0,t=t+Math.imul(T,ge)|0,t=t+Math.imul(j,Me)|0,s=s+Math.imul(j,ge)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,s=s+Math.imul(k,De)|0,f=f+Math.imul(X,Te)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(P,Te)|0,s=s+Math.imul(P,Ie)|0,f=f+Math.imul(W,Ne)|0,t=t+Math.imul(W,Pe)|0,t=t+Math.imul(U,Ne)|0,s=s+Math.imul(U,Pe)|0;var et=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ae),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ae)|0,s=Math.imul(ne,Se),f=f+Math.imul(ee,Me)|0,t=t+Math.imul(ee,ge)|0,t=t+Math.imul(te,Me)|0,s=s+Math.imul(te,ge)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(j,Ce)|0,s=s+Math.imul(j,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,s=s+Math.imul(k,Ie)|0,f=f+Math.imul(X,Ne)|0,t=t+Math.imul(X,Pe)|0,t=t+Math.imul(P,Ne)|0,s=s+Math.imul(P,Pe)|0,f=f+Math.imul(W,qe)|0,t=t+Math.imul(W,Oe)|0,t=t+Math.imul(U,qe)|0,s=s+Math.imul(U,Oe)|0;var tt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ae),t=Math.imul(oe,Se),t=t+Math.imul(se,Ae)|0,s=Math.imul(se,Se),f=f+Math.imul(ie,Me)|0,t=t+Math.imul(ie,ge)|0,t=t+Math.imul(ne,Me)|0,s=s+Math.imul(ne,ge)|0,f=f+Math.imul(ee,Ce)|0,t=t+Math.imul(ee,De)|0,t=t+Math.imul(te,Ce)|0,s=s+Math.imul(te,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(j,Te)|0,s=s+Math.imul(j,Ie)|0,f=f+Math.imul(Z,Ne)|0,t=t+Math.imul(Z,Pe)|0,t=t+Math.imul(k,Ne)|0,s=s+Math.imul(k,Pe)|0,f=f+Math.imul(X,qe)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(P,qe)|0,s=s+Math.imul(P,Oe)|0,f=f+Math.imul(W,ke)|0,t=t+Math.imul(W,Ue)|0,t=t+Math.imul(U,ke)|0,s=s+Math.imul(U,Ue)|0;var ft=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ae),t=Math.imul(de,Se),t=t+Math.imul(ve,Ae)|0,s=Math.imul(ve,Se),f=f+Math.imul(oe,Me)|0,t=t+Math.imul(oe,ge)|0,t=t+Math.imul(se,Me)|0,s=s+Math.imul(se,ge)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,s=s+Math.imul(ne,De)|0,f=f+Math.imul(ee,Te)|0,t=t+Math.imul(ee,Ie)|0,t=t+Math.imul(te,Te)|0,s=s+Math.imul(te,Ie)|0,f=f+Math.imul(T,Ne)|0,t=t+Math.imul(T,Pe)|0,t=t+Math.imul(j,Ne)|0,s=s+Math.imul(j,Pe)|0,f=f+Math.imul(Z,qe)|0,t=t+Math.imul(Z,Oe)|0,t=t+Math.imul(k,qe)|0,s=s+Math.imul(k,Oe)|0,f=f+Math.imul(X,ke)|0,t=t+Math.imul(X,Ue)|0,t=t+Math.imul(P,ke)|0,s=s+Math.imul(P,Ue)|0,f=f+Math.imul(W,z)|0,t=t+Math.imul(W,L)|0,t=t+Math.imul(U,z)|0,s=s+Math.imul(U,L)|0;var at=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ae),t=Math.imul(be,Se),t=t+Math.imul(me,Ae)|0,s=Math.imul(me,Se),f=f+Math.imul(de,Me)|0,t=t+Math.imul(de,ge)|0,t=t+Math.imul(ve,Me)|0,s=s+Math.imul(ve,ge)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,s=s+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,s=s+Math.imul(ne,Ie)|0,f=f+Math.imul(ee,Ne)|0,t=t+Math.imul(ee,Pe)|0,t=t+Math.imul(te,Ne)|0,s=s+Math.imul(te,Pe)|0,f=f+Math.imul(T,qe)|0,t=t+Math.imul(T,Oe)|0,t=t+Math.imul(j,qe)|0,s=s+Math.imul(j,Oe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,s=s+Math.imul(k,Ue)|0,f=f+Math.imul(X,z)|0,t=t+Math.imul(X,L)|0,t=t+Math.imul(P,z)|0,s=s+Math.imul(P,L)|0,f=f+Math.imul(W,G)|0,t=t+Math.imul(W,ae)|0,t=t+Math.imul(U,G)|0,s=s+Math.imul(U,ae)|0;var rt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ae),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ae)|0,s=Math.imul(Be,Se),f=f+Math.imul(be,Me)|0,t=t+Math.imul(be,ge)|0,t=t+Math.imul(me,Me)|0,s=s+Math.imul(me,ge)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,s=s+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,s=s+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Ne)|0,t=t+Math.imul(ie,Pe)|0,t=t+Math.imul(ne,Ne)|0,s=s+Math.imul(ne,Pe)|0,f=f+Math.imul(ee,qe)|0,t=t+Math.imul(ee,Oe)|0,t=t+Math.imul(te,qe)|0,s=s+Math.imul(te,Oe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(j,ke)|0,s=s+Math.imul(j,Ue)|0,f=f+Math.imul(Z,z)|0,t=t+Math.imul(Z,L)|0,t=t+Math.imul(k,z)|0,s=s+Math.imul(k,L)|0,f=f+Math.imul(X,G)|0,t=t+Math.imul(X,ae)|0,t=t+Math.imul(P,G)|0,s=s+Math.imul(P,ae)|0,f=f+Math.imul(W,ue)|0,t=t+Math.imul(W,le)|0,t=t+Math.imul(U,ue)|0,s=s+Math.imul(U,le)|0;var nt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,Me),t=Math.imul(Fe,ge),t=t+Math.imul(Be,Me)|0,s=Math.imul(Be,ge),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,s=s+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,s=s+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Ne)|0,t=t+Math.imul(oe,Pe)|0,t=t+Math.imul(se,Ne)|0,s=s+Math.imul(se,Pe)|0,f=f+Math.imul(ie,qe)|0,t=t+Math.imul(ie,Oe)|0,t=t+Math.imul(ne,qe)|0,s=s+Math.imul(ne,Oe)|0,f=f+Math.imul(ee,ke)|0,t=t+Math.imul(ee,Ue)|0,t=t+Math.imul(te,ke)|0,s=s+Math.imul(te,Ue)|0,f=f+Math.imul(T,z)|0,t=t+Math.imul(T,L)|0,t=t+Math.imul(j,z)|0,s=s+Math.imul(j,L)|0,f=f+Math.imul(Z,G)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,G)|0,s=s+Math.imul(k,ae)|0,f=f+Math.imul(X,ue)|0,t=t+Math.imul(X,le)|0,t=t+Math.imul(P,ue)|0,s=s+Math.imul(P,le)|0;var it=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,s=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,s=s+Math.imul(me,Ie)|0,f=f+Math.imul(de,Ne)|0,t=t+Math.imul(de,Pe)|0,t=t+Math.imul(ve,Ne)|0,s=s+Math.imul(ve,Pe)|0,f=f+Math.imul(oe,qe)|0,t=t+Math.imul(oe,Oe)|0,t=t+Math.imul(se,qe)|0,s=s+Math.imul(se,Oe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,s=s+Math.imul(ne,Ue)|0,f=f+Math.imul(ee,z)|0,t=t+Math.imul(ee,L)|0,t=t+Math.imul(te,z)|0,s=s+Math.imul(te,L)|0,f=f+Math.imul(T,G)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(j,G)|0,s=s+Math.imul(j,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,s=s+Math.imul(k,le)|0;var Ze=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,s=Math.imul(Be,Ie),f=f+Math.imul(be,Ne)|0,t=t+Math.imul(be,Pe)|0,t=t+Math.imul(me,Ne)|0,s=s+Math.imul(me,Pe)|0,f=f+Math.imul(de,qe)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(ve,qe)|0,s=s+Math.imul(ve,Oe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,s=s+Math.imul(se,Ue)|0,f=f+Math.imul(ie,z)|0,t=t+Math.imul(ie,L)|0,t=t+Math.imul(ne,z)|0,s=s+Math.imul(ne,L)|0,f=f+Math.imul(ee,G)|0,t=t+Math.imul(ee,ae)|0,t=t+Math.imul(te,G)|0,s=s+Math.imul(te,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(j,ue)|0,s=s+Math.imul(j,le)|0;var Qe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,f=Math.imul(Fe,Ne),t=Math.imul(Fe,Pe),t=t+Math.imul(Be,Ne)|0,s=Math.imul(Be,Pe),f=f+Math.imul(be,qe)|0,t=t+Math.imul(be,Oe)|0,t=t+Math.imul(me,qe)|0,s=s+Math.imul(me,Oe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,s=s+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,z)|0,t=t+Math.imul(oe,L)|0,t=t+Math.imul(se,z)|0,s=s+Math.imul(se,L)|0,f=f+Math.imul(ie,G)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,G)|0,s=s+Math.imul(ne,ae)|0,f=f+Math.imul(ee,ue)|0,t=t+Math.imul(ee,le)|0,t=t+Math.imul(te,ue)|0,s=s+Math.imul(te,le)|0;var Ge=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(Fe,qe),t=Math.imul(Fe,Oe),t=t+Math.imul(Be,qe)|0,s=Math.imul(Be,Oe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,s=s+Math.imul(me,Ue)|0,f=f+Math.imul(de,z)|0,t=t+Math.imul(de,L)|0,t=t+Math.imul(ve,z)|0,s=s+Math.imul(ve,L)|0,f=f+Math.imul(oe,G)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,G)|0,s=s+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,s=s+Math.imul(ne,le)|0;var Xe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,s=Math.imul(Be,Ue),f=f+Math.imul(be,z)|0,t=t+Math.imul(be,L)|0,t=t+Math.imul(me,z)|0,s=s+Math.imul(me,L)|0,f=f+Math.imul(de,G)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,G)|0,s=s+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,s=s+Math.imul(se,le)|0;var Ye=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(Fe,z),t=Math.imul(Fe,L),t=t+Math.imul(Be,z)|0,s=Math.imul(Be,L),f=f+Math.imul(be,G)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,G)|0,s=s+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,s=s+Math.imul(ve,le)|0;var Ke=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,f=Math.imul(Fe,G),t=Math.imul(Fe,ae),t=t+Math.imul(Be,G)|0,s=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,s=s+Math.imul(me,le)|0;var we=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(we>>>26)|0,we&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,s=Math.imul(Be,le);var _e=(b+f|0)+((t&8191)<<13)|0;return b=(s+(t>>>13)|0)+(_e>>>26)|0,_e&=67108863,l[0]=Je,l[1]=We,l[2]=ht,l[3]=Ve,l[4]=et,l[5]=tt,l[6]=ft,l[7]=at,l[8]=rt,l[9]=nt,l[10]=it,l[11]=Ze,l[12]=Qe,l[13]=Ge,l[14]=Xe,l[15]=Ye,l[16]=Ke,l[17]=we,l[18]=_e,b!==0&&(l[19]=b,n.length++),n};Math.imul||(A=M);function B(u,e,r){r.negative=e.negative^u.negative,r.length=u.length+e.length;for(var n=0,a=0,o=0;o<r.length-1;o++){var l=a;a=0;for(var b=n&67108863,f=Math.min(o,e.length-1),t=Math.max(0,o-u.length+1);t<=f;t++){var s=o-t,$=u.words[s]|0,W=e.words[t]|0,U=$*W,Q=U&67108863;l=l+(U/67108864|0)|0,Q=Q+b|0,b=Q&67108863,l=l+(Q>>>26)|0,a+=l>>>26,l&=67108863}r.words[o]=b,n=l,l=a}return n!==0?r.words[o]=n:r.length--,r.strip()}function F(u,e,r){var n=new C;return n.mulp(u,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,r):a<63?n=M(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(u,e){this.x=u,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,o=0;o<r;o++)a|=(e&1)<<r-o-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,o,l){for(var b=0;b<l;b++)a[b]=r[e[b]],o[b]=n[e[b]]},C.prototype.transform=function(e,r,n,a,o,l){this.permute(l,e,r,n,a,o);for(var b=1;b<o;b<<=1)for(var f=b<<1,t=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),$=0;$<o;$+=f)for(var W=t,U=s,Q=0;Q<b;Q++){var X=n[$+Q],P=a[$+Q],H=n[$+Q+b],Z=a[$+Q+b],k=W*H-U*Z;Z=W*Z+U*H,H=k,n[$+Q]=X+H,a[$+Q]=P+Z,n[$+Q+b]=X-H,a[$+Q+b]=P-Z,Q!==f&&(k=t*W-s*U,U=t*U+s*W,W=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,o=0;for(n=n/2|0;n;n=n>>>1)o++;return 1<<o+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var o=e[a];e[a]=e[n-a-1],e[n-a-1]=o,o=r[a],r[a]=-r[n-a-1],r[n-a-1]=-o}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var o=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=o&67108863,o<67108864?n=0:n=o/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var o=0,l=0;l<r;l++)o=o+(e[l]|0),n[2*l]=o&8191,o=o>>>13,n[2*l+1]=o&8191,o=o>>>13;for(l=2*r;l<a;++l)n[l]=0;c(o===0),c((o&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(a),l=this.stub(a),b=new Array(a),f=new Array(a),t=new Array(a),s=new Array(a),$=new Array(a),W=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,b,a),this.convert13b(r.words,r.length,s,a),this.transform(b,l,f,t,a,o),this.transform(s,l,$,W,a,o);for(var Q=0;Q<a;Q++){var X=f[Q]*$[Q]-t[Q]*W[Q];t[Q]=f[Q]*W[Q]+t[Q]*$[Q],f[Q]=X}return this.conjugate(f,t,a),this.transform(f,t,U,l,a,o),this.conjugate(U,l,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){c(typeof e=="number"),c(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,o=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[n]=o&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=w(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var o=n.sqr();a<r.length;a++,o=o.sqr())r[a]!==0&&(n=n.mul(o));return n},i.prototype.iushln=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,o;if(r!==0){var l=0;for(o=0;o<this.length;o++){var b=this.words[o]&a,f=(this.words[o]|0)-b<<r;this.words[o]=f|l,l=b>>>26-r}l&&(this.words[o]=l,this.length++)}if(n!==0){for(o=this.length-1;o>=0;o--)this.words[o+n]=this.words[o];for(o=0;o<n;o++)this.words[o]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return c(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){c(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var o=e%26,l=Math.min((e-o)/26,this.length),b=67108863^67108863>>>o<<o,f=n;if(a-=l,a=Math.max(0,a),f){for(var t=0;t<l;t++)f.words[t]=this.words[t];f.length=l}if(l!==0)if(this.length>l)for(this.length-=l,t=0;t<this.length;t++)this.words[t]=this.words[t+l];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=a);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&b}return f&&s!==0&&(f.words[f.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return c(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var o=this.words[n];return!!(o&a)},i.prototype.imaskn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return c(typeof e=="number"),c(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(c(typeof e=="number"),c(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,o;this._expand(a);var l,b=0;for(o=0;o<e.length;o++){l=(this.words[o+n]|0)+b;var f=(e.words[o]|0)*r;l-=f&67108863,b=(l>>26)-(f/67108864|0),this.words[o+n]=l&67108863}for(;o<this.length-n;o++)l=(this.words[o+n]|0)+b,b=l>>26,this.words[o+n]=l&67108863;if(b===0)return this.strip();for(c(b===-1),b=0,o=0;o<this.length;o++)l=-(this.words[o]|0)+b,b=l>>26,this.words[o]=l&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),o=e,l=o.words[o.length-1]|0,b=this._countBits(l);n=26-b,n!==0&&(o=o.ushln(n),a.iushln(n),l=o.words[o.length-1]|0);var f=a.length-o.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=a.clone()._ishlnsubmul(o,1,f);$.negative===0&&(a=$,t&&(t.words[f]=1));for(var W=f-1;W>=0;W--){var U=(a.words[o.length+W]|0)*67108864+(a.words[o.length+W-1]|0);for(U=Math.min(U/l|0,67108863),a._ishlnsubmul(o,U,W);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(o,1,W),a.isZero()||(a.negative^=1);t&&(t.words[W]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(c(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,l;return this.negative!==0&&e.negative===0?(l=this.neg().divmod(e,r),r!=="mod"&&(a=l.div.neg()),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(l=this.divmod(e.neg(),r),r!=="mod"&&(a=l.div.neg()),{div:a,mod:l.mod}):(this.negative&e.negative)!==0?(l=this.neg().divmod(e.neg(),r),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),o=e.andln(1),l=n.cmp(a);return l<0||o===1&&l===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){c(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){c(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=new i(0),b=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),s=r.clone();!r.isZero();){for(var $=0,W=1;(r.words[0]&W)===0&&$<26;++$,W<<=1);if($>0)for(r.iushrn($);$-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(t),o.isub(s)),a.iushrn(1),o.iushrn(1);for(var U=0,Q=1;(n.words[0]&Q)===0&&U<26;++U,Q<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(l.isOdd()||b.isOdd())&&(l.iadd(t),b.isub(s)),l.iushrn(1),b.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(l),o.isub(b)):(n.isub(r),l.isub(a),b.isub(o))}return{a:l,b,gcd:n.iushln(f)}},i.prototype._invmp=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var b=0,f=1;(r.words[0]&f)===0&&b<26;++b,f<<=1);if(b>0)for(r.iushrn(b);b-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var t=0,s=1;(n.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(n.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(o)):(n.isub(r),o.isub(a))}var $;return r.cmpn(1)===0?$=a:$=o,$.cmpn(0)<0&&$.iadd(e),$},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=r.cmp(n);if(o<0){var l=r;r=n,n=l}else if(o===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){c(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var o=a,l=n;o!==0&&l<this.length;l++){var b=this.words[l]|0;b+=o,o=b>>>26,b&=67108863,this.words[l]=b}return o!==0&&(this.words[l]=o,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),c(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,o=e.words[n]|0;if(a!==o){a<o?r=-1:a>o&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new V(e)},i.prototype.toRed=function(e){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return c(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return c(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(u,e){this.name=u,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function K(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(K,D),K.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),o=0;o<a;o++)r.words[o]=e.words[o];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var l=e.words[9];for(r.words[r.length++]=l&n,o=10;o<e.length;o++){var b=e.words[o]|0;e.words[o-10]=(b&n)<<4|l>>>22,l=b}l>>>=22,e.words[o-10]=l,l===0&&e.length>10?e.length-=10:e.length-=9},K.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function q(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(q,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(Y,D);function J(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(J,D),J.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,o=a&67108863;a>>>=26,e.words[n]=o,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new K;else if(e==="p224")r=new q;else if(e==="p192")r=new Y;else if(e==="p25519")r=new J;else throw new Error("Unknown prime "+e);return R[e]=r,r};function V(u){if(typeof u=="string"){var e=i._prime(u);this.m=e.p,this.prime=e}else c(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}V.prototype._verify1=function(e){c(e.negative===0,"red works only with positives"),c(e.red,"red works only with red numbers")},V.prototype._verify2=function(e,r){c((e.negative|r.negative)===0,"red works only with positives"),c(e.red&&e.red===r.red,"red works only with red numbers")},V.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},V.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},V.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},V.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},V.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},V.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},V.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},V.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},V.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},V.prototype.isqr=function(e){return this.imul(e,e.clone())},V.prototype.sqr=function(e){return this.mul(e,e)},V.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(c(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);c(!a.isZero());var l=new i(1).toRed(this),b=l.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(b)!==0;)t.redIAdd(b);for(var s=this.pow(t,a),$=this.pow(e,a.addn(1).iushrn(1)),W=this.pow(e,a),U=o;W.cmp(l)!==0;){for(var Q=W,X=0;Q.cmp(l)!==0;X++)Q=Q.redSqr();c(X<U);var P=this.pow(s,new i(1).iushln(U-X-1));$=$.redMul(P),s=P.redSqr(),W=W.redMul(s),U=X}return $},V.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},V.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var l=a[0],b=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),o=r.length-1;o>=0;o--){for(var s=r.words[o],$=t-1;$>=0;$--){var W=s>>$&1;if(l!==a[0]&&(l=this.sqr(l)),W===0&&b===0){f=0;continue}b<<=1,b|=W,f++,!(f!==n&&(o!==0||$!==0))&&(l=this.mul(l,a[b]),f=0,b=0)}t=26}return l},V.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},V.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new re(e)};function re(u){V.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}E(re,V),re.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},re.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},re.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(g,Mv)})(Xr)),Xr.exports}var M0,eu;function Ev(){if(eu)return M0;eu=1;var g=hi(),x=_v();M0=function(_){return new c(_)};var S={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}};S.p224=S.secp224r1,S.p256=S.secp256r1=S.prime256v1,S.p192=S.secp192r1=S.prime192v1,S.p384=S.secp384r1,S.p521=S.secp521r1;function c(i){this.curveType=S[i],this.curveType||(this.curveType={name:i}),this.curve=new g.ec(this.curveType.name),this.keys=void 0}c.prototype.generateKeys=function(i,_){return this.keys=this.curve.genKeyPair(),this.getPublicKey(i,_)},c.prototype.computeSecret=function(i,_,y){_=_||"utf8",xe.Buffer.isBuffer(i)||(i=new xe.Buffer(i,_));var m=this.curve.keyFromPublic(i).getPublic(),h=m.mul(this.keys.getPrivate()).getX();return E(h,y,this.curveType.byteLength)},c.prototype.getPublicKey=function(i,_){var y=this.keys.getPublic(_==="compressed",!0);return _==="hybrid"&&(y[y.length-1]%2?y[0]=7:y[0]=6),E(y,i)},c.prototype.getPrivateKey=function(i){return E(this.keys.getPrivate(),i)},c.prototype.setPublicKey=function(i,_){return _=_||"utf8",xe.Buffer.isBuffer(i)||(i=new xe.Buffer(i,_)),this.keys._importPublic(i),this},c.prototype.setPrivateKey=function(i,_){_=_||"utf8",xe.Buffer.isBuffer(i)||(i=new xe.Buffer(i,_));var y=new x(i);return y=y.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(y),this};function E(i,_,y){Array.isArray(i)||(i=i.toArray());var m=new xe.Buffer(i);if(y&&m.length<y){var h=new xe.Buffer(y-m.length);h.fill(0),m=xe.Buffer.concat([h,m])}return _?m.toString(_):m}return M0}var _0={},E0,tu;function Ic(){if(tu)return E0;tu=1;var g=Ar(),x=ze.requireSafeBuffer().Buffer;E0=function(c,E){for(var i=x.alloc(0),_=0,y;i.length<E;)y=S(_++),i=x.concat([i,g("sha1").update(c).update(y).digest()]);return i.slice(0,E)};function S(c){var E=x.allocUnsafe(4);return E.writeUInt32BE(c,0),E}return E0}var A0,ru;function kc(){return ru||(ru=1,A0=function(x,S){for(var c=x.length,E=-1;++E<c;)x[E]^=S[E];return x}),A0}var Yr={exports:{}},Av=Yr.exports,iu;function ff(){return iu||(iu=1,(function(g){(function(x,S){function c(u,e){if(!u)throw new Error(e||"Assertion failed")}function E(u,e){u.super_=e;var r=function(){};r.prototype=e.prototype,u.prototype=new r,u.prototype.constructor=u}function i(u,e,r){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(u||0,e||10,r||"be"))}typeof x=="object"?x.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=ze.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),c(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(c(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(c(typeof e.length=="number"),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 a=0;a<this.length;a++)this.words[a]=0;var o,l,b=0;if(n==="be")for(a=e.length-1,o=0;a>=0;a-=3)l=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);else if(n==="le")for(a=0,o=0;a<e.length;a+=3)l=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);return this.strip()};function y(u,e){var r=u.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(u,e,r){var n=y(u,r);return r-1>=e&&(n|=y(u,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o=0,l=0,b;if(n==="be")for(a=e.length-1;a>=r;a-=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8}this.strip()};function h(u,e,r,n){for(var a=0,o=Math.min(u.length,r),l=e;l<o;l++){var b=u.charCodeAt(l)-48;a*=n,b>=49?a+=b-49+10:b>=17?a+=b-17+10:a+=b}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,o=1;o<=67108863;o*=r)a++;a--,o=o/r|0;for(var l=e.length-n,b=l%a,f=Math.min(l,l-b)+n,t=0,s=n;s<f;s+=a)t=h(e,s,s+a,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(b!==0){var $=1;for(t=h(e,s,e.length,r),s=0;s<b;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],p=[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],v=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,o=0,l=0;l<this.length;l++){var b=this.words[l],f=((b<<a|o)&16777215).toString(16);o=b>>>24-a&16777215,a+=2,a>=26&&(a-=26,l--),o!==0||l!==this.length-1?n=d[6-f.length]+f+n:n=f+n}for(o!==0&&(n=o.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=v[e];n="";var $=this.clone();for($.negative=0;!$.isZero();){var W=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?n=W+n:n=d[t-W.length]+W+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}c(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return c(typeof _<"u"),this.toArrayLike(_,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),o=n||Math.max(1,a);c(a<=o,"byte array longer than desired length"),c(o>0,"Requested array length <= 0"),this.strip();var l=r==="le",b=new e(o),f,t,s=this.clone();if(l){for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[t]=f;for(;t<o;t++)b[t]=0}else{for(t=0;t<o-a;t++)b[t]=0;for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[o-t-1]=f}return b},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(u){for(var e=new Array(u.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(u.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return c((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return c((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return c((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){c(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){c(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var o=0,l=0;l<a.length;l++)r=(n.words[l]|0)+(a.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;for(;o!==0&&l<n.length;l++)r=(n.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;if(this.length=n.length,o!==0)this.words[this.length]=o,this.length++;else if(n!==this)for(;l<n.length;l++)this.words[l]=n.words[l];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,o;n>0?(a=this,o=e):(a=e,o=this);for(var l=0,b=0;b<o.length;b++)r=(a.words[b]|0)-(o.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;for(;l!==0&&b<a.length;b++)r=(a.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;if(l===0&&b<a.length&&a!==this)for(;b<a.length;b++)this.words[b]=a.words[b];return this.length=Math.max(this.length,b),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function M(u,e,r){r.negative=e.negative^u.negative;var n=u.length+e.length|0;r.length=n,n=n-1|0;var a=u.words[0]|0,o=e.words[0]|0,l=a*o,b=l&67108863,f=l/67108864|0;r.words[0]=b;for(var t=1;t<n;t++){for(var s=f>>>26,$=f&67108863,W=Math.min(t,e.length-1),U=Math.max(0,t-u.length+1);U<=W;U++){var Q=t-U|0;a=u.words[Q]|0,o=e.words[U]|0,l=a*o+$,s+=l/67108864|0,$=l&67108863}r.words[t]=$|0,f=s|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var A=function(e,r,n){var a=e.words,o=r.words,l=n.words,b=0,f,t,s,$=a[0]|0,W=$&8191,U=$>>>13,Q=a[1]|0,X=Q&8191,P=Q>>>13,H=a[2]|0,Z=H&8191,k=H>>>13,N=a[3]|0,T=N&8191,j=N>>>13,fe=a[4]|0,ee=fe&8191,te=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,pt=o[0]|0,Ae=pt&8191,Se=pt>>>13,ct=o[1]|0,Me=ct&8191,ge=ct>>>13,wt=o[2]|0,Ce=wt&8191,De=wt>>>13,_t=o[3]|0,Te=_t&8191,Ie=_t>>>13,Dt=o[4]|0,Ne=Dt&8191,Pe=Dt>>>13,kt=o[5]|0,qe=kt&8191,Oe=kt>>>13,Pt=o[6]|0,ke=Pt&8191,Ue=Pt>>>13,O=o[7]|0,z=O&8191,L=O>>>13,I=o[8]|0,G=I&8191,ae=I>>>13,ye=o[9]|0,ue=ye&8191,le=ye>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(W,Ae),t=Math.imul(W,Se),t=t+Math.imul(U,Ae)|0,s=Math.imul(U,Se);var Je=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(X,Ae),t=Math.imul(X,Se),t=t+Math.imul(P,Ae)|0,s=Math.imul(P,Se),f=f+Math.imul(W,Me)|0,t=t+Math.imul(W,ge)|0,t=t+Math.imul(U,Me)|0,s=s+Math.imul(U,ge)|0;var We=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Z,Ae),t=Math.imul(Z,Se),t=t+Math.imul(k,Ae)|0,s=Math.imul(k,Se),f=f+Math.imul(X,Me)|0,t=t+Math.imul(X,ge)|0,t=t+Math.imul(P,Me)|0,s=s+Math.imul(P,ge)|0,f=f+Math.imul(W,Ce)|0,t=t+Math.imul(W,De)|0,t=t+Math.imul(U,Ce)|0,s=s+Math.imul(U,De)|0;var ht=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ae),t=Math.imul(T,Se),t=t+Math.imul(j,Ae)|0,s=Math.imul(j,Se),f=f+Math.imul(Z,Me)|0,t=t+Math.imul(Z,ge)|0,t=t+Math.imul(k,Me)|0,s=s+Math.imul(k,ge)|0,f=f+Math.imul(X,Ce)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(P,Ce)|0,s=s+Math.imul(P,De)|0,f=f+Math.imul(W,Te)|0,t=t+Math.imul(W,Ie)|0,t=t+Math.imul(U,Te)|0,s=s+Math.imul(U,Ie)|0;var Ve=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(ee,Ae),t=Math.imul(ee,Se),t=t+Math.imul(te,Ae)|0,s=Math.imul(te,Se),f=f+Math.imul(T,Me)|0,t=t+Math.imul(T,ge)|0,t=t+Math.imul(j,Me)|0,s=s+Math.imul(j,ge)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,s=s+Math.imul(k,De)|0,f=f+Math.imul(X,Te)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(P,Te)|0,s=s+Math.imul(P,Ie)|0,f=f+Math.imul(W,Ne)|0,t=t+Math.imul(W,Pe)|0,t=t+Math.imul(U,Ne)|0,s=s+Math.imul(U,Pe)|0;var et=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ae),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ae)|0,s=Math.imul(ne,Se),f=f+Math.imul(ee,Me)|0,t=t+Math.imul(ee,ge)|0,t=t+Math.imul(te,Me)|0,s=s+Math.imul(te,ge)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(j,Ce)|0,s=s+Math.imul(j,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,s=s+Math.imul(k,Ie)|0,f=f+Math.imul(X,Ne)|0,t=t+Math.imul(X,Pe)|0,t=t+Math.imul(P,Ne)|0,s=s+Math.imul(P,Pe)|0,f=f+Math.imul(W,qe)|0,t=t+Math.imul(W,Oe)|0,t=t+Math.imul(U,qe)|0,s=s+Math.imul(U,Oe)|0;var tt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ae),t=Math.imul(oe,Se),t=t+Math.imul(se,Ae)|0,s=Math.imul(se,Se),f=f+Math.imul(ie,Me)|0,t=t+Math.imul(ie,ge)|0,t=t+Math.imul(ne,Me)|0,s=s+Math.imul(ne,ge)|0,f=f+Math.imul(ee,Ce)|0,t=t+Math.imul(ee,De)|0,t=t+Math.imul(te,Ce)|0,s=s+Math.imul(te,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(j,Te)|0,s=s+Math.imul(j,Ie)|0,f=f+Math.imul(Z,Ne)|0,t=t+Math.imul(Z,Pe)|0,t=t+Math.imul(k,Ne)|0,s=s+Math.imul(k,Pe)|0,f=f+Math.imul(X,qe)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(P,qe)|0,s=s+Math.imul(P,Oe)|0,f=f+Math.imul(W,ke)|0,t=t+Math.imul(W,Ue)|0,t=t+Math.imul(U,ke)|0,s=s+Math.imul(U,Ue)|0;var ft=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ae),t=Math.imul(de,Se),t=t+Math.imul(ve,Ae)|0,s=Math.imul(ve,Se),f=f+Math.imul(oe,Me)|0,t=t+Math.imul(oe,ge)|0,t=t+Math.imul(se,Me)|0,s=s+Math.imul(se,ge)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,s=s+Math.imul(ne,De)|0,f=f+Math.imul(ee,Te)|0,t=t+Math.imul(ee,Ie)|0,t=t+Math.imul(te,Te)|0,s=s+Math.imul(te,Ie)|0,f=f+Math.imul(T,Ne)|0,t=t+Math.imul(T,Pe)|0,t=t+Math.imul(j,Ne)|0,s=s+Math.imul(j,Pe)|0,f=f+Math.imul(Z,qe)|0,t=t+Math.imul(Z,Oe)|0,t=t+Math.imul(k,qe)|0,s=s+Math.imul(k,Oe)|0,f=f+Math.imul(X,ke)|0,t=t+Math.imul(X,Ue)|0,t=t+Math.imul(P,ke)|0,s=s+Math.imul(P,Ue)|0,f=f+Math.imul(W,z)|0,t=t+Math.imul(W,L)|0,t=t+Math.imul(U,z)|0,s=s+Math.imul(U,L)|0;var at=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ae),t=Math.imul(be,Se),t=t+Math.imul(me,Ae)|0,s=Math.imul(me,Se),f=f+Math.imul(de,Me)|0,t=t+Math.imul(de,ge)|0,t=t+Math.imul(ve,Me)|0,s=s+Math.imul(ve,ge)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,s=s+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,s=s+Math.imul(ne,Ie)|0,f=f+Math.imul(ee,Ne)|0,t=t+Math.imul(ee,Pe)|0,t=t+Math.imul(te,Ne)|0,s=s+Math.imul(te,Pe)|0,f=f+Math.imul(T,qe)|0,t=t+Math.imul(T,Oe)|0,t=t+Math.imul(j,qe)|0,s=s+Math.imul(j,Oe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,s=s+Math.imul(k,Ue)|0,f=f+Math.imul(X,z)|0,t=t+Math.imul(X,L)|0,t=t+Math.imul(P,z)|0,s=s+Math.imul(P,L)|0,f=f+Math.imul(W,G)|0,t=t+Math.imul(W,ae)|0,t=t+Math.imul(U,G)|0,s=s+Math.imul(U,ae)|0;var rt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ae),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ae)|0,s=Math.imul(Be,Se),f=f+Math.imul(be,Me)|0,t=t+Math.imul(be,ge)|0,t=t+Math.imul(me,Me)|0,s=s+Math.imul(me,ge)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,s=s+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,s=s+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Ne)|0,t=t+Math.imul(ie,Pe)|0,t=t+Math.imul(ne,Ne)|0,s=s+Math.imul(ne,Pe)|0,f=f+Math.imul(ee,qe)|0,t=t+Math.imul(ee,Oe)|0,t=t+Math.imul(te,qe)|0,s=s+Math.imul(te,Oe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(j,ke)|0,s=s+Math.imul(j,Ue)|0,f=f+Math.imul(Z,z)|0,t=t+Math.imul(Z,L)|0,t=t+Math.imul(k,z)|0,s=s+Math.imul(k,L)|0,f=f+Math.imul(X,G)|0,t=t+Math.imul(X,ae)|0,t=t+Math.imul(P,G)|0,s=s+Math.imul(P,ae)|0,f=f+Math.imul(W,ue)|0,t=t+Math.imul(W,le)|0,t=t+Math.imul(U,ue)|0,s=s+Math.imul(U,le)|0;var nt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,Me),t=Math.imul(Fe,ge),t=t+Math.imul(Be,Me)|0,s=Math.imul(Be,ge),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,s=s+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,s=s+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Ne)|0,t=t+Math.imul(oe,Pe)|0,t=t+Math.imul(se,Ne)|0,s=s+Math.imul(se,Pe)|0,f=f+Math.imul(ie,qe)|0,t=t+Math.imul(ie,Oe)|0,t=t+Math.imul(ne,qe)|0,s=s+Math.imul(ne,Oe)|0,f=f+Math.imul(ee,ke)|0,t=t+Math.imul(ee,Ue)|0,t=t+Math.imul(te,ke)|0,s=s+Math.imul(te,Ue)|0,f=f+Math.imul(T,z)|0,t=t+Math.imul(T,L)|0,t=t+Math.imul(j,z)|0,s=s+Math.imul(j,L)|0,f=f+Math.imul(Z,G)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,G)|0,s=s+Math.imul(k,ae)|0,f=f+Math.imul(X,ue)|0,t=t+Math.imul(X,le)|0,t=t+Math.imul(P,ue)|0,s=s+Math.imul(P,le)|0;var it=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,s=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,s=s+Math.imul(me,Ie)|0,f=f+Math.imul(de,Ne)|0,t=t+Math.imul(de,Pe)|0,t=t+Math.imul(ve,Ne)|0,s=s+Math.imul(ve,Pe)|0,f=f+Math.imul(oe,qe)|0,t=t+Math.imul(oe,Oe)|0,t=t+Math.imul(se,qe)|0,s=s+Math.imul(se,Oe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,s=s+Math.imul(ne,Ue)|0,f=f+Math.imul(ee,z)|0,t=t+Math.imul(ee,L)|0,t=t+Math.imul(te,z)|0,s=s+Math.imul(te,L)|0,f=f+Math.imul(T,G)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(j,G)|0,s=s+Math.imul(j,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,s=s+Math.imul(k,le)|0;var Ze=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,s=Math.imul(Be,Ie),f=f+Math.imul(be,Ne)|0,t=t+Math.imul(be,Pe)|0,t=t+Math.imul(me,Ne)|0,s=s+Math.imul(me,Pe)|0,f=f+Math.imul(de,qe)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(ve,qe)|0,s=s+Math.imul(ve,Oe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,s=s+Math.imul(se,Ue)|0,f=f+Math.imul(ie,z)|0,t=t+Math.imul(ie,L)|0,t=t+Math.imul(ne,z)|0,s=s+Math.imul(ne,L)|0,f=f+Math.imul(ee,G)|0,t=t+Math.imul(ee,ae)|0,t=t+Math.imul(te,G)|0,s=s+Math.imul(te,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(j,ue)|0,s=s+Math.imul(j,le)|0;var Qe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,f=Math.imul(Fe,Ne),t=Math.imul(Fe,Pe),t=t+Math.imul(Be,Ne)|0,s=Math.imul(Be,Pe),f=f+Math.imul(be,qe)|0,t=t+Math.imul(be,Oe)|0,t=t+Math.imul(me,qe)|0,s=s+Math.imul(me,Oe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,s=s+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,z)|0,t=t+Math.imul(oe,L)|0,t=t+Math.imul(se,z)|0,s=s+Math.imul(se,L)|0,f=f+Math.imul(ie,G)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,G)|0,s=s+Math.imul(ne,ae)|0,f=f+Math.imul(ee,ue)|0,t=t+Math.imul(ee,le)|0,t=t+Math.imul(te,ue)|0,s=s+Math.imul(te,le)|0;var Ge=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(Fe,qe),t=Math.imul(Fe,Oe),t=t+Math.imul(Be,qe)|0,s=Math.imul(Be,Oe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,s=s+Math.imul(me,Ue)|0,f=f+Math.imul(de,z)|0,t=t+Math.imul(de,L)|0,t=t+Math.imul(ve,z)|0,s=s+Math.imul(ve,L)|0,f=f+Math.imul(oe,G)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,G)|0,s=s+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,s=s+Math.imul(ne,le)|0;var Xe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,s=Math.imul(Be,Ue),f=f+Math.imul(be,z)|0,t=t+Math.imul(be,L)|0,t=t+Math.imul(me,z)|0,s=s+Math.imul(me,L)|0,f=f+Math.imul(de,G)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,G)|0,s=s+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,s=s+Math.imul(se,le)|0;var Ye=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(Fe,z),t=Math.imul(Fe,L),t=t+Math.imul(Be,z)|0,s=Math.imul(Be,L),f=f+Math.imul(be,G)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,G)|0,s=s+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,s=s+Math.imul(ve,le)|0;var Ke=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,f=Math.imul(Fe,G),t=Math.imul(Fe,ae),t=t+Math.imul(Be,G)|0,s=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,s=s+Math.imul(me,le)|0;var we=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(we>>>26)|0,we&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,s=Math.imul(Be,le);var _e=(b+f|0)+((t&8191)<<13)|0;return b=(s+(t>>>13)|0)+(_e>>>26)|0,_e&=67108863,l[0]=Je,l[1]=We,l[2]=ht,l[3]=Ve,l[4]=et,l[5]=tt,l[6]=ft,l[7]=at,l[8]=rt,l[9]=nt,l[10]=it,l[11]=Ze,l[12]=Qe,l[13]=Ge,l[14]=Xe,l[15]=Ye,l[16]=Ke,l[17]=we,l[18]=_e,b!==0&&(l[19]=b,n.length++),n};Math.imul||(A=M);function B(u,e,r){r.negative=e.negative^u.negative,r.length=u.length+e.length;for(var n=0,a=0,o=0;o<r.length-1;o++){var l=a;a=0;for(var b=n&67108863,f=Math.min(o,e.length-1),t=Math.max(0,o-u.length+1);t<=f;t++){var s=o-t,$=u.words[s]|0,W=e.words[t]|0,U=$*W,Q=U&67108863;l=l+(U/67108864|0)|0,Q=Q+b|0,b=Q&67108863,l=l+(Q>>>26)|0,a+=l>>>26,l&=67108863}r.words[o]=b,n=l,l=a}return n!==0?r.words[o]=n:r.length--,r.strip()}function F(u,e,r){var n=new C;return n.mulp(u,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,r):a<63?n=M(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(u,e){this.x=u,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,o=0;o<r;o++)a|=(e&1)<<r-o-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,o,l){for(var b=0;b<l;b++)a[b]=r[e[b]],o[b]=n[e[b]]},C.prototype.transform=function(e,r,n,a,o,l){this.permute(l,e,r,n,a,o);for(var b=1;b<o;b<<=1)for(var f=b<<1,t=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),$=0;$<o;$+=f)for(var W=t,U=s,Q=0;Q<b;Q++){var X=n[$+Q],P=a[$+Q],H=n[$+Q+b],Z=a[$+Q+b],k=W*H-U*Z;Z=W*Z+U*H,H=k,n[$+Q]=X+H,a[$+Q]=P+Z,n[$+Q+b]=X-H,a[$+Q+b]=P-Z,Q!==f&&(k=t*W-s*U,U=t*U+s*W,W=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,o=0;for(n=n/2|0;n;n=n>>>1)o++;return 1<<o+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var o=e[a];e[a]=e[n-a-1],e[n-a-1]=o,o=r[a],r[a]=-r[n-a-1],r[n-a-1]=-o}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var o=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=o&67108863,o<67108864?n=0:n=o/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var o=0,l=0;l<r;l++)o=o+(e[l]|0),n[2*l]=o&8191,o=o>>>13,n[2*l+1]=o&8191,o=o>>>13;for(l=2*r;l<a;++l)n[l]=0;c(o===0),c((o&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(a),l=this.stub(a),b=new Array(a),f=new Array(a),t=new Array(a),s=new Array(a),$=new Array(a),W=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,b,a),this.convert13b(r.words,r.length,s,a),this.transform(b,l,f,t,a,o),this.transform(s,l,$,W,a,o);for(var Q=0;Q<a;Q++){var X=f[Q]*$[Q]-t[Q]*W[Q];t[Q]=f[Q]*W[Q]+t[Q]*$[Q],f[Q]=X}return this.conjugate(f,t,a),this.transform(f,t,U,l,a,o),this.conjugate(U,l,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){c(typeof e=="number"),c(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,o=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[n]=o&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=w(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var o=n.sqr();a<r.length;a++,o=o.sqr())r[a]!==0&&(n=n.mul(o));return n},i.prototype.iushln=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,o;if(r!==0){var l=0;for(o=0;o<this.length;o++){var b=this.words[o]&a,f=(this.words[o]|0)-b<<r;this.words[o]=f|l,l=b>>>26-r}l&&(this.words[o]=l,this.length++)}if(n!==0){for(o=this.length-1;o>=0;o--)this.words[o+n]=this.words[o];for(o=0;o<n;o++)this.words[o]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return c(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){c(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var o=e%26,l=Math.min((e-o)/26,this.length),b=67108863^67108863>>>o<<o,f=n;if(a-=l,a=Math.max(0,a),f){for(var t=0;t<l;t++)f.words[t]=this.words[t];f.length=l}if(l!==0)if(this.length>l)for(this.length-=l,t=0;t<this.length;t++)this.words[t]=this.words[t+l];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=a);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&b}return f&&s!==0&&(f.words[f.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return c(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var o=this.words[n];return!!(o&a)},i.prototype.imaskn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return c(typeof e=="number"),c(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(c(typeof e=="number"),c(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,o;this._expand(a);var l,b=0;for(o=0;o<e.length;o++){l=(this.words[o+n]|0)+b;var f=(e.words[o]|0)*r;l-=f&67108863,b=(l>>26)-(f/67108864|0),this.words[o+n]=l&67108863}for(;o<this.length-n;o++)l=(this.words[o+n]|0)+b,b=l>>26,this.words[o+n]=l&67108863;if(b===0)return this.strip();for(c(b===-1),b=0,o=0;o<this.length;o++)l=-(this.words[o]|0)+b,b=l>>26,this.words[o]=l&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),o=e,l=o.words[o.length-1]|0,b=this._countBits(l);n=26-b,n!==0&&(o=o.ushln(n),a.iushln(n),l=o.words[o.length-1]|0);var f=a.length-o.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=a.clone()._ishlnsubmul(o,1,f);$.negative===0&&(a=$,t&&(t.words[f]=1));for(var W=f-1;W>=0;W--){var U=(a.words[o.length+W]|0)*67108864+(a.words[o.length+W-1]|0);for(U=Math.min(U/l|0,67108863),a._ishlnsubmul(o,U,W);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(o,1,W),a.isZero()||(a.negative^=1);t&&(t.words[W]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(c(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,l;return this.negative!==0&&e.negative===0?(l=this.neg().divmod(e,r),r!=="mod"&&(a=l.div.neg()),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(l=this.divmod(e.neg(),r),r!=="mod"&&(a=l.div.neg()),{div:a,mod:l.mod}):(this.negative&e.negative)!==0?(l=this.neg().divmod(e.neg(),r),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),o=e.andln(1),l=n.cmp(a);return l<0||o===1&&l===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){c(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){c(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=new i(0),b=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),s=r.clone();!r.isZero();){for(var $=0,W=1;(r.words[0]&W)===0&&$<26;++$,W<<=1);if($>0)for(r.iushrn($);$-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(t),o.isub(s)),a.iushrn(1),o.iushrn(1);for(var U=0,Q=1;(n.words[0]&Q)===0&&U<26;++U,Q<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(l.isOdd()||b.isOdd())&&(l.iadd(t),b.isub(s)),l.iushrn(1),b.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(l),o.isub(b)):(n.isub(r),l.isub(a),b.isub(o))}return{a:l,b,gcd:n.iushln(f)}},i.prototype._invmp=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var b=0,f=1;(r.words[0]&f)===0&&b<26;++b,f<<=1);if(b>0)for(r.iushrn(b);b-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var t=0,s=1;(n.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(n.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(o)):(n.isub(r),o.isub(a))}var $;return r.cmpn(1)===0?$=a:$=o,$.cmpn(0)<0&&$.iadd(e),$},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=r.cmp(n);if(o<0){var l=r;r=n,n=l}else if(o===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){c(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var o=a,l=n;o!==0&&l<this.length;l++){var b=this.words[l]|0;b+=o,o=b>>>26,b&=67108863,this.words[l]=b}return o!==0&&(this.words[l]=o,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),c(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,o=e.words[n]|0;if(a!==o){a<o?r=-1:a>o&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new V(e)},i.prototype.toRed=function(e){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return c(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return c(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(u,e){this.name=u,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function K(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(K,D),K.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),o=0;o<a;o++)r.words[o]=e.words[o];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var l=e.words[9];for(r.words[r.length++]=l&n,o=10;o<e.length;o++){var b=e.words[o]|0;e.words[o-10]=(b&n)<<4|l>>>22,l=b}l>>>=22,e.words[o-10]=l,l===0&&e.length>10?e.length-=10:e.length-=9},K.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function q(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(q,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(Y,D);function J(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(J,D),J.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,o=a&67108863;a>>>=26,e.words[n]=o,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new K;else if(e==="p224")r=new q;else if(e==="p192")r=new Y;else if(e==="p25519")r=new J;else throw new Error("Unknown prime "+e);return R[e]=r,r};function V(u){if(typeof u=="string"){var e=i._prime(u);this.m=e.p,this.prime=e}else c(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}V.prototype._verify1=function(e){c(e.negative===0,"red works only with positives"),c(e.red,"red works only with red numbers")},V.prototype._verify2=function(e,r){c((e.negative|r.negative)===0,"red works only with positives"),c(e.red&&e.red===r.red,"red works only with red numbers")},V.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},V.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},V.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},V.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},V.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},V.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},V.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},V.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},V.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},V.prototype.isqr=function(e){return this.imul(e,e.clone())},V.prototype.sqr=function(e){return this.mul(e,e)},V.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(c(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);c(!a.isZero());var l=new i(1).toRed(this),b=l.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(b)!==0;)t.redIAdd(b);for(var s=this.pow(t,a),$=this.pow(e,a.addn(1).iushrn(1)),W=this.pow(e,a),U=o;W.cmp(l)!==0;){for(var Q=W,X=0;Q.cmp(l)!==0;X++)Q=Q.redSqr();c(X<U);var P=this.pow(s,new i(1).iushln(U-X-1));$=$.redMul(P),s=P.redSqr(),W=W.redMul(s),U=X}return $},V.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},V.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var l=a[0],b=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),o=r.length-1;o>=0;o--){for(var s=r.words[o],$=t-1;$>=0;$--){var W=s>>$&1;if(l!==a[0]&&(l=this.sqr(l)),W===0&&b===0){f=0;continue}b<<=1,b|=W,f++,!(f!==n&&(o!==0||$!==0))&&(l=this.mul(l,a[b]),f=0,b=0)}t=26}return l},V.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},V.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new re(e)};function re(u){V.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}E(re,V),re.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},re.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},re.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(g,Av)})(Yr)),Yr.exports}var S0,nu;function Nc(){if(nu)return S0;nu=1;var g=ff(),x=ze.requireSafeBuffer().Buffer;function S(c,E){return x.from(c.toRed(g.mont(E.modulus)).redPow(new g(E.publicExponent)).fromRed().toArray())}return S0=S,S0}var B0,au;function Sv(){if(au)return B0;au=1;var g=ui(),x=dr(),S=Ar(),c=Ic(),E=kc(),i=ff(),_=Nc(),y=rf(),m=ze.requireSafeBuffer().Buffer;B0=function(w,M,A){var B;w.padding?B=w.padding:A?B=1:B=4;var F=g(w),C;if(B===4)C=h(F,M);else if(B===1)C=d(F,M,A);else if(B===3){if(C=new i(M),C.cmp(F.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return A?y(C,F):_(C,F)};function h(v,w){var M=v.modulus.byteLength(),A=w.length,B=S("sha1").update(m.alloc(0)).digest(),F=B.length,C=2*F;if(A>M-C-2)throw new Error("message too long");var R=m.alloc(M-A-C-2),D=M-F-1,K=x(F),q=E(m.concat([B,R,m.alloc(1,1),w],D),c(K,D)),Y=E(K,c(q,F));return new i(m.concat([m.alloc(1),Y,q],M))}function d(v,w,M){var A=w.length,B=v.modulus.byteLength();if(A>B-11)throw new Error("message too long");var F;return M?F=m.alloc(B-A-3,255):F=p(B-A-3),new i(m.concat([m.from([0,M?1:2]),F,m.alloc(1),w],B))}function p(v){for(var w=m.allocUnsafe(v),M=0,A=x(v*2),B=0,F;M<v;)B===A.length&&(A=x(v*2),B=0),F=A[B++],F&&(w[M++]=F);return w}return B0}var F0,fu;function Bv(){if(fu)return F0;fu=1;var g=ui(),x=Ic(),S=kc(),c=ff(),E=rf(),i=Ar(),_=Nc(),y=ze.requireSafeBuffer().Buffer;F0=function(v,w,M){var A;v.padding?A=v.padding:M?A=1:A=4;var B=g(v),F=B.modulus.byteLength();if(w.length>F||new c(w).cmp(B.modulus)>=0)throw new Error("decryption error");var C;M?C=_(new c(w),B):C=E(w,B);var R=y.alloc(F-C.length);if(C=y.concat([R,C],F),A===4)return m(B,C);if(A===1)return h(B,C,M);if(A===3)return C;throw new Error("unknown padding")};function m(p,v){var w=p.modulus.byteLength(),M=i("sha1").update(y.alloc(0)).digest(),A=M.length;if(v[0]!==0)throw new Error("decryption error");var B=v.slice(1,A+1),F=v.slice(A+1),C=S(B,x(F,A)),R=S(F,x(C,w-A-1));if(d(M,R.slice(0,A)))throw new Error("decryption error");for(var D=A;R[D]===0;)D++;if(R[D++]!==1)throw new Error("decryption error");return R.slice(D)}function h(p,v,w){for(var M=v.slice(0,2),A=2,B=0;v[A++]!==0;)if(A>=v.length){B++;break}var F=v.slice(2,A-1);if((M.toString("hex")!=="0002"&&!w||M.toString("hex")!=="0001"&&w)&&B++,F.length<8&&B++,B)throw new Error("decryption error");return v.slice(A)}function d(p,v){p=y.from(p),v=y.from(v);var w=0,M=p.length;p.length!==v.length&&(w++,M=Math.min(p.length,v.length));for(var A=-1;++A<M;)w+=p[A]^v[A];return w}return F0}var ou;function Fv(){return ou||(ou=1,(function(g){g.publicEncrypt=Sv(),g.privateDecrypt=Bv(),g.privateEncrypt=function(S,c){return g.publicEncrypt(S,c,!0)},g.publicDecrypt=function(S,c){return g.privateDecrypt(S,c,!0)}})(_0)),_0}var or={},su;function Cv(){if(su)return or;su=1;function g(){throw new Error(`secure random number generation not supported by this browser
6
- use chrome, FireFox or Internet Explorer 11`)}var x=ze.requireSafeBuffer(),S=dr(),c=x.Buffer,E=x.kMaxLength,i=ze.commonjsGlobal.crypto||ze.commonjsGlobal.msCrypto,_=Math.pow(2,32)-1;function y(v,w){if(typeof v!="number"||v!==v)throw new TypeError("offset must be a number");if(v>_||v<0)throw new TypeError("offset must be a uint32");if(v>E||v>w)throw new RangeError("offset out of range")}function m(v,w,M){if(typeof v!="number"||v!==v)throw new TypeError("size must be a number");if(v>_||v<0)throw new TypeError("size must be a uint32");if(v+w>M||v>E)throw new RangeError("buffer too small")}i&&i.getRandomValues||!xe.process$1.browser?(or.randomFill=h,or.randomFillSync=p):(or.randomFill=g,or.randomFillSync=g);function h(v,w,M,A){if(!c.isBuffer(v)&&!(v instanceof ze.commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof w=="function")A=w,w=0,M=v.length;else if(typeof M=="function")A=M,M=v.length-w;else if(typeof A!="function")throw new TypeError('"cb" argument must be a function');return y(w,v.length),m(M,w,v.length),d(v,w,M,A)}function d(v,w,M,A){if(xe.process$1.browser){var B=v.buffer,F=new Uint8Array(B,w,M);if(i.getRandomValues(F),A){xe.process$1.nextTick(function(){A(null,v)});return}return v}if(A){S(M,function(R,D){if(R)return A(R);D.copy(v,w),A(null,v)});return}var C=S(M);return C.copy(v,w),v}function p(v,w,M){if(typeof w>"u"&&(w=0),!c.isBuffer(v)&&!(v instanceof ze.commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return y(w,v.length),M===void 0&&(M=v.length-w),m(M,w,v.length),d(v,w,M)}return or}var hu;function Pc(){if(hu)return yt;hu=1,yt.randomBytes=yt.rng=yt.pseudoRandomBytes=yt.prng=dr(),yt.createHash=yt.Hash=Ar(),yt.createHmac=yt.Hmac=ic();var g=Y1(),x=Object.keys(g),S=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(x);yt.getHashes=function(){return S};var c=hc();yt.pbkdf2=c.pbkdf2,yt.pbkdf2Sync=c.pbkdf2Sync;var E=xp();yt.Cipher=E.Cipher,yt.createCipher=E.createCipher,yt.Cipheriv=E.Cipheriv,yt.createCipheriv=E.createCipheriv,yt.Decipher=E.Decipher,yt.createDecipher=E.createDecipher,yt.Decipheriv=E.Decipheriv,yt.createDecipheriv=E.createDecipheriv,yt.getCiphers=E.getCiphers,yt.listCiphers=E.listCiphers;var i=kp();yt.DiffieHellmanGroup=i.DiffieHellmanGroup,yt.createDiffieHellmanGroup=i.createDiffieHellmanGroup,yt.getDiffieHellman=i.getDiffieHellman,yt.createDiffieHellman=i.createDiffieHellman,yt.DiffieHellman=i.DiffieHellman;var _=wv();yt.createSign=_.createSign,yt.Sign=_.Sign,yt.createVerify=_.createVerify,yt.Verify=_.Verify,yt.createECDH=Ev();var y=Fv();yt.publicEncrypt=y.publicEncrypt,yt.privateEncrypt=y.privateEncrypt,yt.publicDecrypt=y.publicDecrypt,yt.privateDecrypt=y.privateDecrypt;var m=Cv();return yt.randomFill=m.randomFill,yt.randomFillSync=m.randomFillSync,yt.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
4
+ })`)}catch{y=function(h){this._initNamed(h)}}return S(y,_),y.prototype._initNamed=function(h){_.call(this,h)},new y(this)},E.prototype._getDecoder=function(_){return _=_||"der",this.decoders.hasOwnProperty(_)||(this.decoders[_]=this._createNamed(x.decoders[_])),this.decoders[_]},E.prototype.decode=function(_,y,m){return this._getDecoder(y).decode(_,m)},E.prototype._getEncoder=function(_){return _=_||"der",this.encoders.hasOwnProperty(_)||(this.encoders[_]=this._createNamed(x.encoders[_])),this.encoders[_]},E.prototype.encode=function(_,y,m){return this._getEncoder(y).encode(_,m)}})(a0)),a0}var f0={},o0={},Ih;function lv(){if(Ih)return o0;Ih=1;var g=dt();function x(c){this._reporterState={obj:null,path:[],options:c||{},errors:[]}}o0.Reporter=x,x.prototype.isError=function(E){return E instanceof S},x.prototype.save=function(){var E=this._reporterState;return{obj:E.obj,pathLen:E.path.length}},x.prototype.restore=function(E){var i=this._reporterState;i.obj=E.obj,i.path=i.path.slice(0,E.pathLen)},x.prototype.enterKey=function(E){return this._reporterState.path.push(E)},x.prototype.exitKey=function(E){var i=this._reporterState;i.path=i.path.slice(0,E-1)},x.prototype.leaveKey=function(E,i,_){var y=this._reporterState;this.exitKey(E),y.obj!==null&&(y.obj[i]=_)},x.prototype.path=function(){return this._reporterState.path.join("/")},x.prototype.enterObject=function(){var E=this._reporterState,i=E.obj;return E.obj={},i},x.prototype.leaveObject=function(E){var i=this._reporterState,_=i.obj;return i.obj=E,_},x.prototype.error=function(E){var i,_=this._reporterState,y=E instanceof S;if(y?i=E:i=new S(_.path.map(function(m){return"["+JSON.stringify(m)+"]"}).join(""),E.message||E,E.stack),!_.options.partial)throw i;return y||_.errors.push(i),i},x.prototype.wrapResult=function(E){var i=this._reporterState;return i.options.partial?{result:this.isError(E)?null:E,errors:i.errors}:E};function S(c,E){this.path=c,this.rethrow(E)}return g(S,Error),S.prototype.rethrow=function(E){if(this.message=E+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,S),!this.stack)try{throw new Error(this.message)}catch(i){this.stack=i.stack}return this},o0}var Wr={},kh;function Nh(){if(kh)return Wr;kh=1;var g=dt(),x=_r().Reporter,S=ze.requireDist().Buffer;function c(i,_){if(x.call(this,_),!S.isBuffer(i)){this.error("Input not Buffer");return}this.base=i,this.offset=0,this.length=i.length}g(c,x),Wr.DecoderBuffer=c,c.prototype.save=function(){return{offset:this.offset,reporter:x.prototype.save.call(this)}},c.prototype.restore=function(_){var y=new c(this.base);return y.offset=_.offset,y.length=this.offset,this.offset=_.offset,x.prototype.restore.call(this,_.reporter),y},c.prototype.isEmpty=function(){return this.offset===this.length},c.prototype.readUInt8=function(_){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(_||"DecoderBuffer overrun")},c.prototype.skip=function(_,y){if(!(this.offset+_<=this.length))return this.error(y||"DecoderBuffer overrun");var m=new c(this.base);return m._reporterState=this._reporterState,m.offset=this.offset,m.length=this.offset+_,this.offset+=_,m},c.prototype.raw=function(_){return this.base.slice(_?_.offset:this.offset,this.length)};function E(i,_){if(Array.isArray(i))this.length=0,this.value=i.map(function(y){return y instanceof E||(y=new E(y,_)),this.length+=y.length,y},this);else if(typeof i=="number"){if(!(0<=i&&i<=255))return _.error("non-byte EncoderBuffer value");this.value=i,this.length=1}else if(typeof i=="string")this.value=i,this.length=S.byteLength(i);else if(S.isBuffer(i))this.value=i,this.length=i.length;else return _.error("Unsupported type: "+typeof i)}return Wr.EncoderBuffer=E,E.prototype.join=function(_,y){return _||(_=new S(this.length)),y||(y=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(m){m.join(_,y),y+=m.length}):(typeof this.value=="number"?_[y]=this.value:typeof this.value=="string"?_.write(this.value,y):S.isBuffer(this.value)&&this.value.copy(_,y),y+=this.length)),_},Wr}var s0,Ph;function dv(){if(Ph)return s0;Ph=1;var g=_r().Reporter,x=_r().EncoderBuffer,S=_r().DecoderBuffer,c=Gt(),E=["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"],i=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(E),_=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function y(h,d){var p={};this._baseState=p,p.enc=h,p.parent=d||null,p.children=null,p.tag=null,p.args=null,p.reverseArgs=null,p.choice=null,p.optional=!1,p.any=!1,p.obj=!1,p.use=null,p.useDecoder=null,p.key=null,p.default=null,p.explicit=null,p.implicit=null,p.contains=null,p.parent||(p.children=[],this._wrap())}s0=y;var m=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return y.prototype.clone=function(){var d=this._baseState,p={};m.forEach(function(w){p[w]=d[w]});var v=new this.constructor(p.parent);return v._baseState=p,v},y.prototype._wrap=function(){var d=this._baseState;i.forEach(function(p){this[p]=function(){var w=new this.constructor(this);return d.children.push(w),w[p].apply(w,arguments)}},this)},y.prototype._init=function(d){var p=this._baseState;c(p.parent===null),d.call(this),p.children=p.children.filter(function(v){return v._baseState.parent===this},this),c.equal(p.children.length,1,"Root node can have only one child")},y.prototype._useArgs=function(d){var p=this._baseState,v=d.filter(function(w){return w instanceof this.constructor},this);d=d.filter(function(w){return!(w instanceof this.constructor)},this),v.length!==0&&(c(p.children===null),p.children=v,v.forEach(function(w){w._baseState.parent=this},this)),d.length!==0&&(c(p.args===null),p.args=d,p.reverseArgs=d.map(function(w){if(typeof w!="object"||w.constructor!==Object)return w;var M={};return Object.keys(w).forEach(function(A){A==(A|0)&&(A|=0);var B=w[A];M[B]=A}),M}))},_.forEach(function(h){y.prototype[h]=function(){var p=this._baseState;throw new Error(h+" not implemented for encoding: "+p.enc)}}),E.forEach(function(h){y.prototype[h]=function(){var p=this._baseState,v=Array.prototype.slice.call(arguments);return c(p.tag===null),p.tag=h,this._useArgs(v),this}}),y.prototype.use=function(d){c(d);var p=this._baseState;return c(p.use===null),p.use=d,this},y.prototype.optional=function(){var d=this._baseState;return d.optional=!0,this},y.prototype.def=function(d){var p=this._baseState;return c(p.default===null),p.default=d,p.optional=!0,this},y.prototype.explicit=function(d){var p=this._baseState;return c(p.explicit===null&&p.implicit===null),p.explicit=d,this},y.prototype.implicit=function(d){var p=this._baseState;return c(p.explicit===null&&p.implicit===null),p.implicit=d,this},y.prototype.obj=function(){var d=this._baseState,p=Array.prototype.slice.call(arguments);return d.obj=!0,p.length!==0&&this._useArgs(p),this},y.prototype.key=function(d){var p=this._baseState;return c(p.key===null),p.key=d,this},y.prototype.any=function(){var d=this._baseState;return d.any=!0,this},y.prototype.choice=function(d){var p=this._baseState;return c(p.choice===null),p.choice=d,this._useArgs(Object.keys(d).map(function(v){return d[v]})),this},y.prototype.contains=function(d){var p=this._baseState;return c(p.use===null),p.contains=d,this},y.prototype._decode=function(d,p){var v=this._baseState;if(v.parent===null)return d.wrapResult(v.children[0]._decode(d,p));var w=v.default,M=!0,A=null;if(v.key!==null&&(A=d.enterKey(v.key)),v.optional){var B=null;if(v.explicit!==null?B=v.explicit:v.implicit!==null?B=v.implicit:v.tag!==null&&(B=v.tag),B===null&&!v.any){var F=d.save();try{v.choice===null?this._decodeGeneric(v.tag,d,p):this._decodeChoice(d,p),M=!0}catch{M=!1}d.restore(F)}else if(M=this._peekTag(d,B,v.any),d.isError(M))return M}var C;if(v.obj&&M&&(C=d.enterObject()),M){if(v.explicit!==null){var R=this._decodeTag(d,v.explicit);if(d.isError(R))return R;d=R}var D=d.offset;if(v.use===null&&v.choice===null){if(v.any)var F=d.save();var K=this._decodeTag(d,v.implicit!==null?v.implicit:v.tag,v.any);if(d.isError(K))return K;v.any?w=d.raw(F):d=K}if(p&&p.track&&v.tag!==null&&p.track(d.path(),D,d.length,"tagged"),p&&p.track&&v.tag!==null&&p.track(d.path(),d.offset,d.length,"content"),v.any?w=w:v.choice===null?w=this._decodeGeneric(v.tag,d,p):w=this._decodeChoice(d,p),d.isError(w))return w;if(!v.any&&v.choice===null&&v.children!==null&&v.children.forEach(function(J){J._decode(d,p)}),v.contains&&(v.tag==="octstr"||v.tag==="bitstr")){var q=new S(w);w=this._getUse(v.contains,d._reporterState.obj)._decode(q,p)}}return v.obj&&M&&(w=d.leaveObject(C)),v.key!==null&&(w!==null||M===!0)?d.leaveKey(A,v.key,w):A!==null&&d.exitKey(A),w},y.prototype._decodeGeneric=function(d,p,v){var w=this._baseState;return d==="seq"||d==="set"?null:d==="seqof"||d==="setof"?this._decodeList(p,d,w.args[0],v):/str$/.test(d)?this._decodeStr(p,d,v):d==="objid"&&w.args?this._decodeObjid(p,w.args[0],w.args[1],v):d==="objid"?this._decodeObjid(p,null,null,v):d==="gentime"||d==="utctime"?this._decodeTime(p,d,v):d==="null_"?this._decodeNull(p,v):d==="bool"?this._decodeBool(p,v):d==="objDesc"?this._decodeStr(p,d,v):d==="int"||d==="enum"?this._decodeInt(p,w.args&&w.args[0],v):w.use!==null?this._getUse(w.use,p._reporterState.obj)._decode(p,v):p.error("unknown tag: "+d)},y.prototype._getUse=function(d,p){var v=this._baseState;return v.useDecoder=this._use(d,p),c(v.useDecoder._baseState.parent===null),v.useDecoder=v.useDecoder._baseState.children[0],v.implicit!==v.useDecoder._baseState.implicit&&(v.useDecoder=v.useDecoder.clone(),v.useDecoder._baseState.implicit=v.implicit),v.useDecoder},y.prototype._decodeChoice=function(d,p){var v=this._baseState,w=null,M=!1;return Object.keys(v.choice).some(function(A){var B=d.save(),F=v.choice[A];try{var C=F._decode(d,p);if(d.isError(C))return!1;w={type:A,value:C},M=!0}catch{return d.restore(B),!1}return!0},this),M?w:d.error("Choice not matched")},y.prototype._createEncoderBuffer=function(d){return new x(d,this.reporter)},y.prototype._encode=function(d,p,v){var w=this._baseState;if(!(w.default!==null&&w.default===d)){var M=this._encodeValue(d,p,v);if(M!==void 0&&!this._skipDefault(M,p,v))return M}},y.prototype._encodeValue=function(d,p,v){var w=this._baseState;if(w.parent===null)return w.children[0]._encode(d,p||new g);var F=null;if(this.reporter=p,w.optional&&d===void 0)if(w.default!==null)d=w.default;else return;var M=null,A=!1;if(w.any)F=this._createEncoderBuffer(d);else if(w.choice)F=this._encodeChoice(d,p);else if(w.contains)M=this._getUse(w.contains,v)._encode(d,p),A=!0;else if(w.children)M=w.children.map(function(D){if(D._baseState.tag==="null_")return D._encode(null,p,d);if(D._baseState.key===null)return p.error("Child should have a key");var K=p.enterKey(D._baseState.key);if(typeof d!="object")return p.error("Child expected, but input is not object");var q=D._encode(d[D._baseState.key],p,d);return p.leaveKey(K),q},this).filter(function(D){return D}),M=this._createEncoderBuffer(M);else if(w.tag==="seqof"||w.tag==="setof"){if(!(w.args&&w.args.length===1))return p.error("Too many args for : "+w.tag);if(!Array.isArray(d))return p.error("seqof/setof, but data is not Array");var B=this.clone();B._baseState.implicit=null,M=this._createEncoderBuffer(d.map(function(D){var K=this._baseState;return this._getUse(K.args[0],d)._encode(D,p)},B))}else w.use!==null?F=this._getUse(w.use,v)._encode(d,p):(M=this._encodePrimitive(w.tag,d),A=!0);var F;if(!w.any&&w.choice===null){var C=w.implicit!==null?w.implicit:w.tag,R=w.implicit===null?"universal":"context";C===null?w.use===null&&p.error("Tag could be omitted only for .use()"):w.use===null&&(F=this._encodeComposite(C,A,R,M))}return w.explicit!==null&&(F=this._encodeComposite(w.explicit,!1,"context",F)),F},y.prototype._encodeChoice=function(d,p){var v=this._baseState,w=v.choice[d.type];return w||c(!1,d.type+" not found in "+JSON.stringify(Object.keys(v.choice))),w._encode(d.value,p)},y.prototype._encodePrimitive=function(d,p){var v=this._baseState;if(/str$/.test(d))return this._encodeStr(p,d);if(d==="objid"&&v.args)return this._encodeObjid(p,v.reverseArgs[0],v.args[1]);if(d==="objid")return this._encodeObjid(p,null,null);if(d==="gentime"||d==="utctime")return this._encodeTime(p,d);if(d==="null_")return this._encodeNull();if(d==="int"||d==="enum")return this._encodeInt(p,v.args&&v.reverseArgs[0]);if(d==="bool")return this._encodeBool(p);if(d==="objDesc")return this._encodeStr(p,d);throw new Error("Unsupported tag: "+d)},y.prototype._isNumstr=function(d){return/^[0-9 ]*$/.test(d)},y.prototype._isPrintstr=function(d){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(d)},s0}var qh;function _r(){return qh||(qh=1,(function(g){var x=g;x.Reporter=lv().Reporter,x.DecoderBuffer=Nh().DecoderBuffer,x.EncoderBuffer=Nh().EncoderBuffer,x.Node=dv()})(f0)),f0}var h0={},u0={},Oh;function pv(){return Oh||(Oh=1,(function(g){var x=Dc();g.tagClass={0:"universal",1:"application",2:"context",3:"private"},g.tagClassByName=x._reverse(g.tagClass),g.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"},g.tagByName=x._reverse(g.tag)})(u0)),u0}var Uh;function Dc(){return Uh||(Uh=1,(function(g){var x=g;x._reverse=function(c){var E={};return Object.keys(c).forEach(function(i){(i|0)==i&&(i=i|0);var _=c[i];E[_]=i}),E},x.der=pv()})(h0)),h0}var c0={},l0,Lh;function Rc(){if(Lh)return l0;Lh=1;var g=dt(),x=Dr(),S=x.base,c=x.bignum,E=x.constants.der;function i(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new _,this.tree._init(h.body)}l0=i,i.prototype.decode=function(d,p){return d instanceof S.DecoderBuffer||(d=new S.DecoderBuffer(d,p)),this.tree._decode(d,p)};function _(h){S.Node.call(this,"der",h)}g(_,S.Node),_.prototype._peekTag=function(d,p,v){if(d.isEmpty())return!1;var w=d.save(),M=y(d,'Failed to peek tag: "'+p+'"');return d.isError(M)?M:(d.restore(w),M.tag===p||M.tagStr===p||M.tagStr+"of"===p||v)},_.prototype._decodeTag=function(d,p,v){var w=y(d,'Failed to decode tag of "'+p+'"');if(d.isError(w))return w;var M=m(d,w.primitive,'Failed to get length of "'+p+'"');if(d.isError(M))return M;if(!v&&w.tag!==p&&w.tagStr!==p&&w.tagStr+"of"!==p)return d.error('Failed to match tag: "'+p+'"');if(w.primitive||M!==null)return d.skip(M,'Failed to match body of: "'+p+'"');var A=d.save(),B=this._skipUntilEnd(d,'Failed to skip indefinite length body: "'+this.tag+'"');return d.isError(B)?B:(M=d.offset-A.offset,d.restore(A),d.skip(M,'Failed to match body of: "'+p+'"'))},_.prototype._skipUntilEnd=function(d,p){for(;;){var v=y(d,p);if(d.isError(v))return v;var w=m(d,v.primitive,p);if(d.isError(w))return w;var M;if(v.primitive||w!==null?M=d.skip(w):M=this._skipUntilEnd(d,p),d.isError(M))return M;if(v.tagStr==="end")break}},_.prototype._decodeList=function(d,p,v,w){for(var M=[];!d.isEmpty();){var A=this._peekTag(d,"end");if(d.isError(A))return A;var B=v.decode(d,"der",w);if(d.isError(B)&&A)break;M.push(B)}return M},_.prototype._decodeStr=function(d,p){if(p==="bitstr"){var v=d.readUInt8();return d.isError(v)?v:{unused:v,data:d.raw()}}else if(p==="bmpstr"){var w=d.raw();if(w.length%2===1)return d.error("Decoding of string type: bmpstr length mismatch");for(var M="",A=0;A<w.length/2;A++)M+=String.fromCharCode(w.readUInt16BE(A*2));return M}else if(p==="numstr"){var B=d.raw().toString("ascii");return this._isNumstr(B)?B:d.error("Decoding of string type: numstr unsupported characters")}else{if(p==="octstr")return d.raw();if(p==="objDesc")return d.raw();if(p==="printstr"){var F=d.raw().toString("ascii");return this._isPrintstr(F)?F:d.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(p)?d.raw().toString():d.error("Decoding of string type: "+p+" unsupported")}},_.prototype._decodeObjid=function(d,p,v){for(var w,M=[],A=0;!d.isEmpty();){var B=d.readUInt8();A<<=7,A|=B&127,(B&128)===0&&(M.push(A),A=0)}B&128&&M.push(A);var F=M[0]/40|0,C=M[0]%40;if(v?w=M:w=[F,C].concat(M.slice(1)),p){var R=p[w.join(" ")];R===void 0&&(R=p[w.join(".")]),R!==void 0&&(w=R)}return w},_.prototype._decodeTime=function(d,p){var v=d.raw().toString();if(p==="gentime")var w=v.slice(0,4)|0,M=v.slice(4,6)|0,A=v.slice(6,8)|0,B=v.slice(8,10)|0,F=v.slice(10,12)|0,C=v.slice(12,14)|0;else if(p==="utctime"){var w=v.slice(0,2)|0,M=v.slice(2,4)|0,A=v.slice(4,6)|0,B=v.slice(6,8)|0,F=v.slice(8,10)|0,C=v.slice(10,12)|0;w<70?w=2e3+w:w=1900+w}else return d.error("Decoding "+p+" time is not supported yet");return Date.UTC(w,M-1,A,B,F,C,0)},_.prototype._decodeNull=function(d){return null},_.prototype._decodeBool=function(d){var p=d.readUInt8();return d.isError(p)?p:p!==0},_.prototype._decodeInt=function(d,p){var v=d.raw(),w=new c(v);return p&&(w=p[w.toString(10)]||w),w},_.prototype._use=function(d,p){return typeof d=="function"&&(d=d(p)),d._getDecoder("der").tree};function y(h,d){var p=h.readUInt8(d);if(h.isError(p))return p;var v=E.tagClass[p>>6],w=(p&32)===0;if((p&31)===31){var M=p;for(p=0;(M&128)===128;){if(M=h.readUInt8(d),h.isError(M))return M;p<<=7,p|=M&127}}else p&=31;var A=E.tag[p];return{cls:v,primitive:w,tag:p,tagStr:A}}function m(h,d,p){var v=h.readUInt8(p);if(h.isError(v))return v;if(!d&&v===128)return null;if((v&128)===0)return v;var w=v&127;if(w>4)return h.error("length octect is too long");v=0;for(var M=0;M<w;M++){v<<=8;var A=h.readUInt8(p);if(h.isError(A))return A;v|=A}return v}return l0}var d0,Hh;function vv(){if(Hh)return d0;Hh=1;var g=dt(),x=ze.requireDist().Buffer,S=Rc();function c(E){S.call(this,E),this.enc="pem"}return g(c,S),d0=c,c.prototype.decode=function(i,_){for(var y=i.toString().split(/[\r\n]+/g),m=_.label.toUpperCase(),h=/^-----(BEGIN|END) ([^-]+)-----$/,d=-1,p=-1,v=0;v<y.length;v++){var w=y[v].match(h);if(w!==null&&w[2]===m)if(d===-1){if(w[1]!=="BEGIN")break;d=v}else{if(w[1]!=="END")break;p=v;break}}if(d===-1||p===-1)throw new Error("PEM section not found for: "+m);var M=y.slice(d+1,p).join("");M.replace(/[^a-z0-9\+\/=]+/gi,"");var A=new x(M,"base64");return S.prototype.decode.call(this,A,_)},d0}var zh;function bv(){return zh||(zh=1,(function(g){var x=g;x.der=Rc(),x.pem=vv()})(c0)),c0}var p0={},v0,$h;function Tc(){if($h)return v0;$h=1;var g=dt(),x=ze.requireDist().Buffer,S=Dr(),c=S.base,E=S.constants.der;function i(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new _,this.tree._init(h.body)}v0=i,i.prototype.encode=function(d,p){return this.tree._encode(d,p).join()};function _(h){c.Node.call(this,"der",h)}g(_,c.Node),_.prototype._encodeComposite=function(d,p,v,w){var M=m(d,p,v,this.reporter);if(w.length<128){var F=new x(2);return F[0]=M,F[1]=w.length,this._createEncoderBuffer([F,w])}for(var A=1,B=w.length;B>=256;B>>=8)A++;var F=new x(2+A);F[0]=M,F[1]=128|A;for(var B=1+A,C=w.length;C>0;B--,C>>=8)F[B]=C&255;return this._createEncoderBuffer([F,w])},_.prototype._encodeStr=function(d,p){if(p==="bitstr")return this._createEncoderBuffer([d.unused|0,d.data]);if(p==="bmpstr"){for(var v=new x(d.length*2),w=0;w<d.length;w++)v.writeUInt16BE(d.charCodeAt(w),w*2);return this._createEncoderBuffer(v)}else return p==="numstr"?this._isNumstr(d)?this._createEncoderBuffer(d):this.reporter.error("Encoding of string type: numstr supports only digits and space"):p==="printstr"?this._isPrintstr(d)?this._createEncoderBuffer(d):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(p)?this._createEncoderBuffer(d):p==="objDesc"?this._createEncoderBuffer(d):this.reporter.error("Encoding of string type: "+p+" unsupported")},_.prototype._encodeObjid=function(d,p,v){if(typeof d=="string"){if(!p)return this.reporter.error("string objid given, but no values map found");if(!p.hasOwnProperty(d))return this.reporter.error("objid not found in values map");d=p[d].split(/[\s\.]+/g);for(var w=0;w<d.length;w++)d[w]|=0}else if(Array.isArray(d)){d=d.slice();for(var w=0;w<d.length;w++)d[w]|=0}if(!Array.isArray(d))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(d));if(!v){if(d[1]>=40)return this.reporter.error("Second objid identifier OOB");d.splice(0,2,d[0]*40+d[1])}for(var M=0,w=0;w<d.length;w++){var A=d[w];for(M++;A>=128;A>>=7)M++}for(var B=new x(M),F=B.length-1,w=d.length-1;w>=0;w--){var A=d[w];for(B[F--]=A&127;(A>>=7)>0;)B[F--]=128|A&127}return this._createEncoderBuffer(B)};function y(h){return h<10?"0"+h:h}_.prototype._encodeTime=function(d,p){var v,w=new Date(d);return p==="gentime"?v=[y(w.getFullYear()),y(w.getUTCMonth()+1),y(w.getUTCDate()),y(w.getUTCHours()),y(w.getUTCMinutes()),y(w.getUTCSeconds()),"Z"].join(""):p==="utctime"?v=[y(w.getFullYear()%100),y(w.getUTCMonth()+1),y(w.getUTCDate()),y(w.getUTCHours()),y(w.getUTCMinutes()),y(w.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+p+" time is not supported yet"),this._encodeStr(v,"octstr")},_.prototype._encodeNull=function(){return this._createEncoderBuffer("")},_.prototype._encodeInt=function(d,p){if(typeof d=="string"){if(!p)return this.reporter.error("String int or enum given, but no values map");if(!p.hasOwnProperty(d))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(d));d=p[d]}if(typeof d!="number"&&!x.isBuffer(d)){var v=d.toArray();!d.sign&&v[0]&128&&v.unshift(0),d=new x(v)}if(x.isBuffer(d)){var w=d.length;d.length===0&&w++;var A=new x(w);return d.copy(A),d.length===0&&(A[0]=0),this._createEncoderBuffer(A)}if(d<128)return this._createEncoderBuffer(d);if(d<256)return this._createEncoderBuffer([0,d]);for(var w=1,M=d;M>=256;M>>=8)w++;for(var A=new Array(w),M=A.length-1;M>=0;M--)A[M]=d&255,d>>=8;return A[0]&128&&A.unshift(0),this._createEncoderBuffer(new x(A))},_.prototype._encodeBool=function(d){return this._createEncoderBuffer(d?255:0)},_.prototype._use=function(d,p){return typeof d=="function"&&(d=d(p)),d._getEncoder("der").tree},_.prototype._skipDefault=function(d,p,v){var w=this._baseState,M;if(w.default===null)return!1;var A=d.join();if(w.defaultBuffer===void 0&&(w.defaultBuffer=this._encodeValue(w.default,p,v).join()),A.length!==w.defaultBuffer.length)return!1;for(M=0;M<A.length;M++)if(A[M]!==w.defaultBuffer[M])return!1;return!0};function m(h,d,p,v){var w;if(h==="seqof"?h="seq":h==="setof"&&(h="set"),E.tagByName.hasOwnProperty(h))w=E.tagByName[h];else if(typeof h=="number"&&(h|0)===h)w=h;else return v.error("Unknown tag: "+h);return w>=31?v.error("Multi-octet tag encoding unsupported"):(d||(w|=32),w|=E.tagClassByName[p||"universal"]<<6,w)}return v0}var b0,Kh;function mv(){if(Kh)return b0;Kh=1;var g=dt(),x=Tc();function S(c){x.call(this,c),this.enc="pem"}return g(S,x),b0=S,S.prototype.encode=function(E,i){for(var _=x.prototype.encode.call(this,E),y=_.toString("base64"),m=["-----BEGIN "+i.label+"-----"],h=0;h<y.length;h+=64)m.push(y.slice(h,h+64));return m.push("-----END "+i.label+"-----"),m.join(`
5
+ `)},b0}var Wh;function yv(){return Wh||(Wh=1,(function(g){var x=g;x.der=Tc(),x.pem=mv()})(p0)),p0}var jh;function Dr(){return jh||(jh=1,(function(g){var x=g;x.bignum=uv(),x.define=cv().define,x.base=_r(),x.constants=Dc(),x.decoders=bv(),x.encoders=yv()})(n0)),n0}var m0,Gh;function gv(){if(Gh)return m0;Gh=1;var g=Dr(),x=g.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),S=g.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),c=g.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),E=g.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())}),i=g.define("RelativeDistinguishedName",function(){this.setof(S)}),_=g.define("RDNSequence",function(){this.seqof(i)}),y=g.define("Name",function(){this.choice({rdnSequence:this.use(_)})}),m=g.define("Validity",function(){this.seq().obj(this.key("notBefore").use(x),this.key("notAfter").use(x))}),h=g.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=g.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(c),this.key("issuer").use(y),this.key("validity").use(m),this.key("subject").use(y),this.key("subjectPublicKeyInfo").use(E),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}),p=g.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(c),this.key("signatureValue").bitstr())});return m0=p,m0}var Vh;function xv(){if(Vh)return jt;Vh=1;var g=Dr();jt.certificate=gv();var x=g.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())});jt.RSAPrivateKey=x;var S=g.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});jt.RSAPublicKey=S;var c=g.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())}),E=g.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())});jt.PublicKey=E;var i=g.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(c),this.key("subjectPrivateKey").octstr())});jt.PrivateKey=i;var _=g.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())});jt.EncryptedPrivateKey=_;var y=g.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())});jt.DSAPrivateKey=y,jt.DSAparam=g.define("DSAparam",function(){this.int()});var m=g.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),h=g.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(m),this.key("publicKey").optional().explicit(1).bitstr())});return jt.ECPrivateKey=h,jt.signature=g.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}),jt}const wv={"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"};var y0,Zh;function Mv(){if(Zh)return y0;Zh=1;var g=/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,x=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,S=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,c=fi(),E=ef(),i=ze.requireSafeBuffer().Buffer;return y0=function(_,y){var m=_.toString(),h=m.match(g),d;if(h){var v="aes"+h[1],w=i.from(h[2],"hex"),M=i.from(h[3].replace(/[\r\n]/g,""),"base64"),A=c(y,w.slice(0,8),parseInt(h[1],10)).key,B=[],F=E.createDecipheriv(v,A,w);B.push(F.update(M)),B.push(F.final()),d=i.concat(B)}else{var p=m.match(S);d=i.from(p[2].replace(/[\r\n]/g,""),"base64")}var C=m.match(x)[1];return{tag:C,data:d}},y0}var g0,Xh;function ui(){if(Xh)return g0;Xh=1;var g=xv(),x=wv,S=Mv(),c=ef(),E=uc(),i=ze.requireSafeBuffer().Buffer;function _(m,h){var d=m.algorithm.decrypt.kde.kdeparams.salt,p=parseInt(m.algorithm.decrypt.kde.kdeparams.iters.toString(),10),v=x[m.algorithm.decrypt.cipher.algo.join(".")],w=m.algorithm.decrypt.cipher.iv,M=m.subjectPrivateKey,A=parseInt(v.split("-")[1],10)/8,B=E.pbkdf2Sync(h,d,p,A,"sha1"),F=c.createDecipheriv(v,B,w),C=[];return C.push(F.update(M)),C.push(F.final()),i.concat(C)}function y(m){var h;typeof m=="object"&&!i.isBuffer(m)&&(h=m.passphrase,m=m.key),typeof m=="string"&&(m=i.from(m));var d=S(m,h),p=d.tag,v=d.data,w,M;switch(p){case"CERTIFICATE":M=g.certificate.decode(v,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(M||(M=g.PublicKey.decode(v,"der")),w=M.algorithm.algorithm.join("."),w){case"1.2.840.113549.1.1.1":return g.RSAPublicKey.decode(M.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return M.subjectPrivateKey=M.subjectPublicKey,{type:"ec",data:M};case"1.2.840.10040.4.1":return M.algorithm.params.pub_key=g.DSAparam.decode(M.subjectPublicKey.data,"der"),{type:"dsa",data:M.algorithm.params};default:throw new Error("unknown key id "+w)}case"ENCRYPTED PRIVATE KEY":v=g.EncryptedPrivateKey.decode(v,"der"),v=_(v,h);case"PRIVATE KEY":switch(M=g.PrivateKey.decode(v,"der"),w=M.algorithm.algorithm.join("."),w){case"1.2.840.113549.1.1.1":return g.RSAPrivateKey.decode(M.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:M.algorithm.curve,privateKey:g.ECPrivateKey.decode(M.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return M.algorithm.params.priv_key=g.DSAparam.decode(M.subjectPrivateKey,"der"),{type:"dsa",params:M.algorithm.params};default:throw new Error("unknown key id "+w)}case"RSA PUBLIC KEY":return g.RSAPublicKey.decode(v,"der");case"RSA PRIVATE KEY":return g.RSAPrivateKey.decode(v,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:g.DSAPrivateKey.decode(v,"der")};case"EC PRIVATE KEY":return v=g.ECPrivateKey.decode(v,"der"),{curve:v.parameters.value,privateKey:v.privateKey};default:throw new Error("unknown key type "+p)}}return y.signature=g.signature,g0=y,g0}const Ic={"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"};var Yh;function _v(){if(Yh)return wr.exports;Yh=1;var g=ze.requireSafeBuffer().Buffer,x=nc(),S=nf(),c=hi().ec,E=ze.requireBn(),i=ui(),_=Ic,y=1;function m(F,C,R,D,K){var q=i(C);if(q.curve){if(D!=="ecdsa"&&D!=="ecdsa/rsa")throw new Error("wrong private key type");return h(F,q)}else if(q.type==="dsa"){if(D!=="dsa")throw new Error("wrong private key type");return d(F,q,R)}if(D!=="rsa"&&D!=="ecdsa/rsa")throw new Error("wrong private key type");if(C.padding!==void 0&&C.padding!==y)throw new Error("illegal or unsupported padding mode");F=g.concat([K,F]);for(var Y=q.modulus.byteLength(),J=[0,1];F.length+J.length+1<Y;)J.push(255);J.push(0);for(var V=-1;++V<F.length;)J.push(F[V]);var re=S(J,q);return re}function h(F,C){var R=_[C.curve.join(".")];if(!R)throw new Error("unknown curve "+C.curve.join("."));var D=new c(R),K=D.keyFromPrivate(C.privateKey),q=K.sign(F);return g.from(q.toDER())}function d(F,C,R){for(var D=C.params.priv_key,K=C.params.p,q=C.params.q,Y=C.params.g,J=new E(0),V,re=w(F,q).mod(q),u=!1,e=v(D,q,F,R);u===!1;)V=A(q,e,R),J=B(Y,V,K,q),u=V.invm(q).imul(re.add(D.mul(J))).mod(q),u.cmpn(0)===0&&(u=!1,J=new E(0));return p(J,u)}function p(F,C){F=F.toArray(),C=C.toArray(),F[0]&128&&(F=[0].concat(F)),C[0]&128&&(C=[0].concat(C));var R=F.length+C.length+4,D=[48,R,2,F.length];return D=D.concat(F,[2,C.length],C),g.from(D)}function v(F,C,R,D){if(F=g.from(F.toArray()),F.length<C.byteLength()){var K=g.alloc(C.byteLength()-F.length);F=g.concat([K,F])}var q=R.length,Y=M(R,C),J=g.alloc(q);J.fill(1);var V=g.alloc(q);return V=x(D,V).update(J).update(g.from([0])).update(F).update(Y).digest(),J=x(D,V).update(J).digest(),V=x(D,V).update(J).update(g.from([1])).update(F).update(Y).digest(),J=x(D,V).update(J).digest(),{k:V,v:J}}function w(F,C){var R=new E(F),D=(F.length<<3)-C.bitLength();return D>0&&R.ishrn(D),R}function M(F,C){F=w(F,C),F=F.mod(C);var R=g.from(F.toArray());if(R.length<C.byteLength()){var D=g.alloc(C.byteLength()-R.length);R=g.concat([D,R])}return R}function A(F,C,R){var D,K;do{for(D=g.alloc(0);D.length*8<F.bitLength();)C.v=x(R,C.k).update(C.v).digest(),D=g.concat([D,C.v]);K=w(D,F),C.k=x(R,C.k).update(C.v).update(g.from([0])).digest(),C.v=x(R,C.k).update(C.v).digest()}while(K.cmp(F)!==-1);return K}function B(F,C,R,D){return F.toRed(E.mont(R)).redPow(C).fromRed().mod(D)}return wr.exports=m,wr.exports.getKey=v,wr.exports.makeKey=A,wr.exports}var x0,Jh;function Ev(){if(Jh)return x0;Jh=1;var g=ze.requireSafeBuffer().Buffer,x=ze.requireBn(),S=hi().ec,c=ui(),E=Ic;function i(h,d,p,v,w){var M=c(p);if(M.type==="ec"){if(v!=="ecdsa"&&v!=="ecdsa/rsa")throw new Error("wrong public key type");return _(h,d,M)}else if(M.type==="dsa"){if(v!=="dsa")throw new Error("wrong public key type");return y(h,d,M)}if(v!=="rsa"&&v!=="ecdsa/rsa")throw new Error("wrong public key type");d=g.concat([w,d]);for(var A=M.modulus.byteLength(),B=[1],F=0;d.length+B.length+2<A;)B.push(255),F+=1;B.push(0);for(var C=-1;++C<d.length;)B.push(d[C]);B=g.from(B);var R=x.mont(M.modulus);h=new x(h).toRed(R),h=h.redPow(new x(M.publicExponent)),h=g.from(h.fromRed().toArray());var D=F<8?1:0;for(A=Math.min(h.length,B.length),h.length!==B.length&&(D=1),C=-1;++C<A;)D|=h[C]^B[C];return D===0}function _(h,d,p){var v=E[p.data.algorithm.curve.join(".")];if(!v)throw new Error("unknown curve "+p.data.algorithm.curve.join("."));var w=new S(v),M=p.data.subjectPrivateKey.data;return w.verify(d,h,M)}function y(h,d,p){var v=p.data.p,w=p.data.q,M=p.data.g,A=p.data.pub_key,B=c.signature.decode(h,"der"),F=B.s,C=B.r;m(F,w),m(C,w);var R=x.mont(v),D=F.invm(w),K=M.toRed(R).redPow(new x(d).mul(D).mod(w)).fromRed().mul(A.toRed(R).redPow(C.mul(D).mod(w)).fromRed()).mod(v).mod(w);return K.cmp(C)===0}function m(h,d){if(h.cmpn(0)<=0)throw new Error("invalid sig");if(h.cmp(d)>=0)throw new Error("invalid sig")}return x0=i,x0}var w0,Qh;function Av(){if(Qh)return w0;Qh=1;var g=ze.requireSafeBuffer().Buffer,x=Sr(),S=zp(),c=dt(),E=_v(),i=Ev(),_=ac;Object.keys(_).forEach(function(p){_[p].id=g.from(_[p].id,"hex"),_[p.toLowerCase()]=_[p]});function y(p){S.Writable.call(this);var v=_[p];if(!v)throw new Error("Unknown message digest");this._hashType=v.hash,this._hash=x(v.hash),this._tag=v.id,this._signType=v.sign}c(y,S.Writable),y.prototype._write=function(v,w,M){this._hash.update(v),M()},y.prototype.update=function(v,w){return this._hash.update(typeof v=="string"?g.from(v,w):v),this},y.prototype.sign=function(v,w){this.end();var M=this._hash.digest(),A=E(M,v,this._hashType,this._signType,this._tag);return w?A.toString(w):A};function m(p){S.Writable.call(this);var v=_[p];if(!v)throw new Error("Unknown message digest");this._hash=x(v.hash),this._tag=v.id,this._signType=v.sign}c(m,S.Writable),m.prototype._write=function(v,w,M){this._hash.update(v),M()},m.prototype.update=function(v,w){return this._hash.update(typeof v=="string"?g.from(v,w):v),this},m.prototype.verify=function(v,w,M){var A=typeof w=="string"?g.from(w,M):w;this.end();var B=this._hash.digest();return i(A,B,v,this._signType,this._tag)};function h(p){return new y(p)}function d(p){return new m(p)}return w0={Sign:h,Verify:d,createSign:h,createVerify:d},w0}var Yr={exports:{}},Sv=Yr.exports,eu;function Bv(){return eu||(eu=1,(function(g){(function(x,S){function c(u,e){if(!u)throw new Error(e||"Assertion failed")}function E(u,e){u.super_=e;var r=function(){};r.prototype=e.prototype,u.prototype=new r,u.prototype.constructor=u}function i(u,e,r){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(u||0,e||10,r||"be"))}typeof x=="object"?x.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=ze.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),c(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(c(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(c(typeof e.length=="number"),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 a=0;a<this.length;a++)this.words[a]=0;var o,l,b=0;if(n==="be")for(a=e.length-1,o=0;a>=0;a-=3)l=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);else if(n==="le")for(a=0,o=0;a<e.length;a+=3)l=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);return this.strip()};function y(u,e){var r=u.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(u,e,r){var n=y(u,r);return r-1>=e&&(n|=y(u,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o=0,l=0,b;if(n==="be")for(a=e.length-1;a>=r;a-=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8}this.strip()};function h(u,e,r,n){for(var a=0,o=Math.min(u.length,r),l=e;l<o;l++){var b=u.charCodeAt(l)-48;a*=n,b>=49?a+=b-49+10:b>=17?a+=b-17+10:a+=b}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,o=1;o<=67108863;o*=r)a++;a--,o=o/r|0;for(var l=e.length-n,b=l%a,f=Math.min(l,l-b)+n,t=0,s=n;s<f;s+=a)t=h(e,s,s+a,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(b!==0){var $=1;for(t=h(e,s,e.length,r),s=0;s<b;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],p=[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],v=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,o=0,l=0;l<this.length;l++){var b=this.words[l],f=((b<<a|o)&16777215).toString(16);o=b>>>24-a&16777215,a+=2,a>=26&&(a-=26,l--),o!==0||l!==this.length-1?n=d[6-f.length]+f+n:n=f+n}for(o!==0&&(n=o.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=v[e];n="";var $=this.clone();for($.negative=0;!$.isZero();){var W=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?n=W+n:n=d[t-W.length]+W+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}c(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return c(typeof _<"u"),this.toArrayLike(_,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),o=n||Math.max(1,a);c(a<=o,"byte array longer than desired length"),c(o>0,"Requested array length <= 0"),this.strip();var l=r==="le",b=new e(o),f,t,s=this.clone();if(l){for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[t]=f;for(;t<o;t++)b[t]=0}else{for(t=0;t<o-a;t++)b[t]=0;for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[o-t-1]=f}return b},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(u){for(var e=new Array(u.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(u.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return c((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return c((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return c((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){c(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){c(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var o=0,l=0;l<a.length;l++)r=(n.words[l]|0)+(a.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;for(;o!==0&&l<n.length;l++)r=(n.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;if(this.length=n.length,o!==0)this.words[this.length]=o,this.length++;else if(n!==this)for(;l<n.length;l++)this.words[l]=n.words[l];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,o;n>0?(a=this,o=e):(a=e,o=this);for(var l=0,b=0;b<o.length;b++)r=(a.words[b]|0)-(o.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;for(;l!==0&&b<a.length;b++)r=(a.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;if(l===0&&b<a.length&&a!==this)for(;b<a.length;b++)this.words[b]=a.words[b];return this.length=Math.max(this.length,b),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function M(u,e,r){r.negative=e.negative^u.negative;var n=u.length+e.length|0;r.length=n,n=n-1|0;var a=u.words[0]|0,o=e.words[0]|0,l=a*o,b=l&67108863,f=l/67108864|0;r.words[0]=b;for(var t=1;t<n;t++){for(var s=f>>>26,$=f&67108863,W=Math.min(t,e.length-1),U=Math.max(0,t-u.length+1);U<=W;U++){var Q=t-U|0;a=u.words[Q]|0,o=e.words[U]|0,l=a*o+$,s+=l/67108864|0,$=l&67108863}r.words[t]=$|0,f=s|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var A=function(e,r,n){var a=e.words,o=r.words,l=n.words,b=0,f,t,s,$=a[0]|0,W=$&8191,U=$>>>13,Q=a[1]|0,X=Q&8191,P=Q>>>13,H=a[2]|0,Z=H&8191,k=H>>>13,N=a[3]|0,T=N&8191,j=N>>>13,fe=a[4]|0,ee=fe&8191,te=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,pt=o[0]|0,Ae=pt&8191,Se=pt>>>13,ct=o[1]|0,_e=ct&8191,xe=ct>>>13,wt=o[2]|0,Ce=wt&8191,De=wt>>>13,_t=o[3]|0,Te=_t&8191,Ie=_t>>>13,Dt=o[4]|0,Ne=Dt&8191,Pe=Dt>>>13,kt=o[5]|0,qe=kt&8191,Oe=kt>>>13,Pt=o[6]|0,ke=Pt&8191,Ue=Pt>>>13,O=o[7]|0,z=O&8191,L=O>>>13,I=o[8]|0,G=I&8191,ae=I>>>13,ge=o[9]|0,ue=ge&8191,le=ge>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(W,Ae),t=Math.imul(W,Se),t=t+Math.imul(U,Ae)|0,s=Math.imul(U,Se);var Je=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(X,Ae),t=Math.imul(X,Se),t=t+Math.imul(P,Ae)|0,s=Math.imul(P,Se),f=f+Math.imul(W,_e)|0,t=t+Math.imul(W,xe)|0,t=t+Math.imul(U,_e)|0,s=s+Math.imul(U,xe)|0;var We=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Z,Ae),t=Math.imul(Z,Se),t=t+Math.imul(k,Ae)|0,s=Math.imul(k,Se),f=f+Math.imul(X,_e)|0,t=t+Math.imul(X,xe)|0,t=t+Math.imul(P,_e)|0,s=s+Math.imul(P,xe)|0,f=f+Math.imul(W,Ce)|0,t=t+Math.imul(W,De)|0,t=t+Math.imul(U,Ce)|0,s=s+Math.imul(U,De)|0;var ht=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ae),t=Math.imul(T,Se),t=t+Math.imul(j,Ae)|0,s=Math.imul(j,Se),f=f+Math.imul(Z,_e)|0,t=t+Math.imul(Z,xe)|0,t=t+Math.imul(k,_e)|0,s=s+Math.imul(k,xe)|0,f=f+Math.imul(X,Ce)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(P,Ce)|0,s=s+Math.imul(P,De)|0,f=f+Math.imul(W,Te)|0,t=t+Math.imul(W,Ie)|0,t=t+Math.imul(U,Te)|0,s=s+Math.imul(U,Ie)|0;var Ve=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(ee,Ae),t=Math.imul(ee,Se),t=t+Math.imul(te,Ae)|0,s=Math.imul(te,Se),f=f+Math.imul(T,_e)|0,t=t+Math.imul(T,xe)|0,t=t+Math.imul(j,_e)|0,s=s+Math.imul(j,xe)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,s=s+Math.imul(k,De)|0,f=f+Math.imul(X,Te)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(P,Te)|0,s=s+Math.imul(P,Ie)|0,f=f+Math.imul(W,Ne)|0,t=t+Math.imul(W,Pe)|0,t=t+Math.imul(U,Ne)|0,s=s+Math.imul(U,Pe)|0;var et=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ae),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ae)|0,s=Math.imul(ne,Se),f=f+Math.imul(ee,_e)|0,t=t+Math.imul(ee,xe)|0,t=t+Math.imul(te,_e)|0,s=s+Math.imul(te,xe)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(j,Ce)|0,s=s+Math.imul(j,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,s=s+Math.imul(k,Ie)|0,f=f+Math.imul(X,Ne)|0,t=t+Math.imul(X,Pe)|0,t=t+Math.imul(P,Ne)|0,s=s+Math.imul(P,Pe)|0,f=f+Math.imul(W,qe)|0,t=t+Math.imul(W,Oe)|0,t=t+Math.imul(U,qe)|0,s=s+Math.imul(U,Oe)|0;var tt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ae),t=Math.imul(oe,Se),t=t+Math.imul(se,Ae)|0,s=Math.imul(se,Se),f=f+Math.imul(ie,_e)|0,t=t+Math.imul(ie,xe)|0,t=t+Math.imul(ne,_e)|0,s=s+Math.imul(ne,xe)|0,f=f+Math.imul(ee,Ce)|0,t=t+Math.imul(ee,De)|0,t=t+Math.imul(te,Ce)|0,s=s+Math.imul(te,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(j,Te)|0,s=s+Math.imul(j,Ie)|0,f=f+Math.imul(Z,Ne)|0,t=t+Math.imul(Z,Pe)|0,t=t+Math.imul(k,Ne)|0,s=s+Math.imul(k,Pe)|0,f=f+Math.imul(X,qe)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(P,qe)|0,s=s+Math.imul(P,Oe)|0,f=f+Math.imul(W,ke)|0,t=t+Math.imul(W,Ue)|0,t=t+Math.imul(U,ke)|0,s=s+Math.imul(U,Ue)|0;var ft=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ae),t=Math.imul(de,Se),t=t+Math.imul(ve,Ae)|0,s=Math.imul(ve,Se),f=f+Math.imul(oe,_e)|0,t=t+Math.imul(oe,xe)|0,t=t+Math.imul(se,_e)|0,s=s+Math.imul(se,xe)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,s=s+Math.imul(ne,De)|0,f=f+Math.imul(ee,Te)|0,t=t+Math.imul(ee,Ie)|0,t=t+Math.imul(te,Te)|0,s=s+Math.imul(te,Ie)|0,f=f+Math.imul(T,Ne)|0,t=t+Math.imul(T,Pe)|0,t=t+Math.imul(j,Ne)|0,s=s+Math.imul(j,Pe)|0,f=f+Math.imul(Z,qe)|0,t=t+Math.imul(Z,Oe)|0,t=t+Math.imul(k,qe)|0,s=s+Math.imul(k,Oe)|0,f=f+Math.imul(X,ke)|0,t=t+Math.imul(X,Ue)|0,t=t+Math.imul(P,ke)|0,s=s+Math.imul(P,Ue)|0,f=f+Math.imul(W,z)|0,t=t+Math.imul(W,L)|0,t=t+Math.imul(U,z)|0,s=s+Math.imul(U,L)|0;var at=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ae),t=Math.imul(be,Se),t=t+Math.imul(me,Ae)|0,s=Math.imul(me,Se),f=f+Math.imul(de,_e)|0,t=t+Math.imul(de,xe)|0,t=t+Math.imul(ve,_e)|0,s=s+Math.imul(ve,xe)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,s=s+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,s=s+Math.imul(ne,Ie)|0,f=f+Math.imul(ee,Ne)|0,t=t+Math.imul(ee,Pe)|0,t=t+Math.imul(te,Ne)|0,s=s+Math.imul(te,Pe)|0,f=f+Math.imul(T,qe)|0,t=t+Math.imul(T,Oe)|0,t=t+Math.imul(j,qe)|0,s=s+Math.imul(j,Oe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,s=s+Math.imul(k,Ue)|0,f=f+Math.imul(X,z)|0,t=t+Math.imul(X,L)|0,t=t+Math.imul(P,z)|0,s=s+Math.imul(P,L)|0,f=f+Math.imul(W,G)|0,t=t+Math.imul(W,ae)|0,t=t+Math.imul(U,G)|0,s=s+Math.imul(U,ae)|0;var rt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ae),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ae)|0,s=Math.imul(Be,Se),f=f+Math.imul(be,_e)|0,t=t+Math.imul(be,xe)|0,t=t+Math.imul(me,_e)|0,s=s+Math.imul(me,xe)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,s=s+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,s=s+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Ne)|0,t=t+Math.imul(ie,Pe)|0,t=t+Math.imul(ne,Ne)|0,s=s+Math.imul(ne,Pe)|0,f=f+Math.imul(ee,qe)|0,t=t+Math.imul(ee,Oe)|0,t=t+Math.imul(te,qe)|0,s=s+Math.imul(te,Oe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(j,ke)|0,s=s+Math.imul(j,Ue)|0,f=f+Math.imul(Z,z)|0,t=t+Math.imul(Z,L)|0,t=t+Math.imul(k,z)|0,s=s+Math.imul(k,L)|0,f=f+Math.imul(X,G)|0,t=t+Math.imul(X,ae)|0,t=t+Math.imul(P,G)|0,s=s+Math.imul(P,ae)|0,f=f+Math.imul(W,ue)|0,t=t+Math.imul(W,le)|0,t=t+Math.imul(U,ue)|0,s=s+Math.imul(U,le)|0;var nt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,_e),t=Math.imul(Fe,xe),t=t+Math.imul(Be,_e)|0,s=Math.imul(Be,xe),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,s=s+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,s=s+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Ne)|0,t=t+Math.imul(oe,Pe)|0,t=t+Math.imul(se,Ne)|0,s=s+Math.imul(se,Pe)|0,f=f+Math.imul(ie,qe)|0,t=t+Math.imul(ie,Oe)|0,t=t+Math.imul(ne,qe)|0,s=s+Math.imul(ne,Oe)|0,f=f+Math.imul(ee,ke)|0,t=t+Math.imul(ee,Ue)|0,t=t+Math.imul(te,ke)|0,s=s+Math.imul(te,Ue)|0,f=f+Math.imul(T,z)|0,t=t+Math.imul(T,L)|0,t=t+Math.imul(j,z)|0,s=s+Math.imul(j,L)|0,f=f+Math.imul(Z,G)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,G)|0,s=s+Math.imul(k,ae)|0,f=f+Math.imul(X,ue)|0,t=t+Math.imul(X,le)|0,t=t+Math.imul(P,ue)|0,s=s+Math.imul(P,le)|0;var it=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,s=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,s=s+Math.imul(me,Ie)|0,f=f+Math.imul(de,Ne)|0,t=t+Math.imul(de,Pe)|0,t=t+Math.imul(ve,Ne)|0,s=s+Math.imul(ve,Pe)|0,f=f+Math.imul(oe,qe)|0,t=t+Math.imul(oe,Oe)|0,t=t+Math.imul(se,qe)|0,s=s+Math.imul(se,Oe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,s=s+Math.imul(ne,Ue)|0,f=f+Math.imul(ee,z)|0,t=t+Math.imul(ee,L)|0,t=t+Math.imul(te,z)|0,s=s+Math.imul(te,L)|0,f=f+Math.imul(T,G)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(j,G)|0,s=s+Math.imul(j,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,s=s+Math.imul(k,le)|0;var Ze=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,s=Math.imul(Be,Ie),f=f+Math.imul(be,Ne)|0,t=t+Math.imul(be,Pe)|0,t=t+Math.imul(me,Ne)|0,s=s+Math.imul(me,Pe)|0,f=f+Math.imul(de,qe)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(ve,qe)|0,s=s+Math.imul(ve,Oe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,s=s+Math.imul(se,Ue)|0,f=f+Math.imul(ie,z)|0,t=t+Math.imul(ie,L)|0,t=t+Math.imul(ne,z)|0,s=s+Math.imul(ne,L)|0,f=f+Math.imul(ee,G)|0,t=t+Math.imul(ee,ae)|0,t=t+Math.imul(te,G)|0,s=s+Math.imul(te,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(j,ue)|0,s=s+Math.imul(j,le)|0;var Qe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,f=Math.imul(Fe,Ne),t=Math.imul(Fe,Pe),t=t+Math.imul(Be,Ne)|0,s=Math.imul(Be,Pe),f=f+Math.imul(be,qe)|0,t=t+Math.imul(be,Oe)|0,t=t+Math.imul(me,qe)|0,s=s+Math.imul(me,Oe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,s=s+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,z)|0,t=t+Math.imul(oe,L)|0,t=t+Math.imul(se,z)|0,s=s+Math.imul(se,L)|0,f=f+Math.imul(ie,G)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,G)|0,s=s+Math.imul(ne,ae)|0,f=f+Math.imul(ee,ue)|0,t=t+Math.imul(ee,le)|0,t=t+Math.imul(te,ue)|0,s=s+Math.imul(te,le)|0;var Ge=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(Fe,qe),t=Math.imul(Fe,Oe),t=t+Math.imul(Be,qe)|0,s=Math.imul(Be,Oe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,s=s+Math.imul(me,Ue)|0,f=f+Math.imul(de,z)|0,t=t+Math.imul(de,L)|0,t=t+Math.imul(ve,z)|0,s=s+Math.imul(ve,L)|0,f=f+Math.imul(oe,G)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,G)|0,s=s+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,s=s+Math.imul(ne,le)|0;var Xe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,s=Math.imul(Be,Ue),f=f+Math.imul(be,z)|0,t=t+Math.imul(be,L)|0,t=t+Math.imul(me,z)|0,s=s+Math.imul(me,L)|0,f=f+Math.imul(de,G)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,G)|0,s=s+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,s=s+Math.imul(se,le)|0;var Ye=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(Fe,z),t=Math.imul(Fe,L),t=t+Math.imul(Be,z)|0,s=Math.imul(Be,L),f=f+Math.imul(be,G)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,G)|0,s=s+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,s=s+Math.imul(ve,le)|0;var Ke=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,f=Math.imul(Fe,G),t=Math.imul(Fe,ae),t=t+Math.imul(Be,G)|0,s=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,s=s+Math.imul(me,le)|0;var Me=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Me>>>26)|0,Me&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,s=Math.imul(Be,le);var Ee=(b+f|0)+((t&8191)<<13)|0;return b=(s+(t>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l[0]=Je,l[1]=We,l[2]=ht,l[3]=Ve,l[4]=et,l[5]=tt,l[6]=ft,l[7]=at,l[8]=rt,l[9]=nt,l[10]=it,l[11]=Ze,l[12]=Qe,l[13]=Ge,l[14]=Xe,l[15]=Ye,l[16]=Ke,l[17]=Me,l[18]=Ee,b!==0&&(l[19]=b,n.length++),n};Math.imul||(A=M);function B(u,e,r){r.negative=e.negative^u.negative,r.length=u.length+e.length;for(var n=0,a=0,o=0;o<r.length-1;o++){var l=a;a=0;for(var b=n&67108863,f=Math.min(o,e.length-1),t=Math.max(0,o-u.length+1);t<=f;t++){var s=o-t,$=u.words[s]|0,W=e.words[t]|0,U=$*W,Q=U&67108863;l=l+(U/67108864|0)|0,Q=Q+b|0,b=Q&67108863,l=l+(Q>>>26)|0,a+=l>>>26,l&=67108863}r.words[o]=b,n=l,l=a}return n!==0?r.words[o]=n:r.length--,r.strip()}function F(u,e,r){var n=new C;return n.mulp(u,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,r):a<63?n=M(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(u,e){this.x=u,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,o=0;o<r;o++)a|=(e&1)<<r-o-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,o,l){for(var b=0;b<l;b++)a[b]=r[e[b]],o[b]=n[e[b]]},C.prototype.transform=function(e,r,n,a,o,l){this.permute(l,e,r,n,a,o);for(var b=1;b<o;b<<=1)for(var f=b<<1,t=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),$=0;$<o;$+=f)for(var W=t,U=s,Q=0;Q<b;Q++){var X=n[$+Q],P=a[$+Q],H=n[$+Q+b],Z=a[$+Q+b],k=W*H-U*Z;Z=W*Z+U*H,H=k,n[$+Q]=X+H,a[$+Q]=P+Z,n[$+Q+b]=X-H,a[$+Q+b]=P-Z,Q!==f&&(k=t*W-s*U,U=t*U+s*W,W=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,o=0;for(n=n/2|0;n;n=n>>>1)o++;return 1<<o+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var o=e[a];e[a]=e[n-a-1],e[n-a-1]=o,o=r[a],r[a]=-r[n-a-1],r[n-a-1]=-o}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var o=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=o&67108863,o<67108864?n=0:n=o/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var o=0,l=0;l<r;l++)o=o+(e[l]|0),n[2*l]=o&8191,o=o>>>13,n[2*l+1]=o&8191,o=o>>>13;for(l=2*r;l<a;++l)n[l]=0;c(o===0),c((o&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(a),l=this.stub(a),b=new Array(a),f=new Array(a),t=new Array(a),s=new Array(a),$=new Array(a),W=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,b,a),this.convert13b(r.words,r.length,s,a),this.transform(b,l,f,t,a,o),this.transform(s,l,$,W,a,o);for(var Q=0;Q<a;Q++){var X=f[Q]*$[Q]-t[Q]*W[Q];t[Q]=f[Q]*W[Q]+t[Q]*$[Q],f[Q]=X}return this.conjugate(f,t,a),this.transform(f,t,U,l,a,o),this.conjugate(U,l,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){c(typeof e=="number"),c(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,o=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[n]=o&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=w(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var o=n.sqr();a<r.length;a++,o=o.sqr())r[a]!==0&&(n=n.mul(o));return n},i.prototype.iushln=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,o;if(r!==0){var l=0;for(o=0;o<this.length;o++){var b=this.words[o]&a,f=(this.words[o]|0)-b<<r;this.words[o]=f|l,l=b>>>26-r}l&&(this.words[o]=l,this.length++)}if(n!==0){for(o=this.length-1;o>=0;o--)this.words[o+n]=this.words[o];for(o=0;o<n;o++)this.words[o]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return c(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){c(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var o=e%26,l=Math.min((e-o)/26,this.length),b=67108863^67108863>>>o<<o,f=n;if(a-=l,a=Math.max(0,a),f){for(var t=0;t<l;t++)f.words[t]=this.words[t];f.length=l}if(l!==0)if(this.length>l)for(this.length-=l,t=0;t<this.length;t++)this.words[t]=this.words[t+l];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=a);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&b}return f&&s!==0&&(f.words[f.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return c(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var o=this.words[n];return!!(o&a)},i.prototype.imaskn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return c(typeof e=="number"),c(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(c(typeof e=="number"),c(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,o;this._expand(a);var l,b=0;for(o=0;o<e.length;o++){l=(this.words[o+n]|0)+b;var f=(e.words[o]|0)*r;l-=f&67108863,b=(l>>26)-(f/67108864|0),this.words[o+n]=l&67108863}for(;o<this.length-n;o++)l=(this.words[o+n]|0)+b,b=l>>26,this.words[o+n]=l&67108863;if(b===0)return this.strip();for(c(b===-1),b=0,o=0;o<this.length;o++)l=-(this.words[o]|0)+b,b=l>>26,this.words[o]=l&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),o=e,l=o.words[o.length-1]|0,b=this._countBits(l);n=26-b,n!==0&&(o=o.ushln(n),a.iushln(n),l=o.words[o.length-1]|0);var f=a.length-o.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=a.clone()._ishlnsubmul(o,1,f);$.negative===0&&(a=$,t&&(t.words[f]=1));for(var W=f-1;W>=0;W--){var U=(a.words[o.length+W]|0)*67108864+(a.words[o.length+W-1]|0);for(U=Math.min(U/l|0,67108863),a._ishlnsubmul(o,U,W);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(o,1,W),a.isZero()||(a.negative^=1);t&&(t.words[W]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(c(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,l;return this.negative!==0&&e.negative===0?(l=this.neg().divmod(e,r),r!=="mod"&&(a=l.div.neg()),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(l=this.divmod(e.neg(),r),r!=="mod"&&(a=l.div.neg()),{div:a,mod:l.mod}):(this.negative&e.negative)!==0?(l=this.neg().divmod(e.neg(),r),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),o=e.andln(1),l=n.cmp(a);return l<0||o===1&&l===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){c(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){c(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=new i(0),b=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),s=r.clone();!r.isZero();){for(var $=0,W=1;(r.words[0]&W)===0&&$<26;++$,W<<=1);if($>0)for(r.iushrn($);$-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(t),o.isub(s)),a.iushrn(1),o.iushrn(1);for(var U=0,Q=1;(n.words[0]&Q)===0&&U<26;++U,Q<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(l.isOdd()||b.isOdd())&&(l.iadd(t),b.isub(s)),l.iushrn(1),b.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(l),o.isub(b)):(n.isub(r),l.isub(a),b.isub(o))}return{a:l,b,gcd:n.iushln(f)}},i.prototype._invmp=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var b=0,f=1;(r.words[0]&f)===0&&b<26;++b,f<<=1);if(b>0)for(r.iushrn(b);b-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var t=0,s=1;(n.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(n.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(o)):(n.isub(r),o.isub(a))}var $;return r.cmpn(1)===0?$=a:$=o,$.cmpn(0)<0&&$.iadd(e),$},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=r.cmp(n);if(o<0){var l=r;r=n,n=l}else if(o===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){c(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var o=a,l=n;o!==0&&l<this.length;l++){var b=this.words[l]|0;b+=o,o=b>>>26,b&=67108863,this.words[l]=b}return o!==0&&(this.words[l]=o,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),c(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,o=e.words[n]|0;if(a!==o){a<o?r=-1:a>o&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new V(e)},i.prototype.toRed=function(e){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return c(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return c(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(u,e){this.name=u,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function K(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(K,D),K.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),o=0;o<a;o++)r.words[o]=e.words[o];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var l=e.words[9];for(r.words[r.length++]=l&n,o=10;o<e.length;o++){var b=e.words[o]|0;e.words[o-10]=(b&n)<<4|l>>>22,l=b}l>>>=22,e.words[o-10]=l,l===0&&e.length>10?e.length-=10:e.length-=9},K.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function q(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(q,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(Y,D);function J(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(J,D),J.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,o=a&67108863;a>>>=26,e.words[n]=o,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new K;else if(e==="p224")r=new q;else if(e==="p192")r=new Y;else if(e==="p25519")r=new J;else throw new Error("Unknown prime "+e);return R[e]=r,r};function V(u){if(typeof u=="string"){var e=i._prime(u);this.m=e.p,this.prime=e}else c(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}V.prototype._verify1=function(e){c(e.negative===0,"red works only with positives"),c(e.red,"red works only with red numbers")},V.prototype._verify2=function(e,r){c((e.negative|r.negative)===0,"red works only with positives"),c(e.red&&e.red===r.red,"red works only with red numbers")},V.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},V.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},V.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},V.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},V.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},V.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},V.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},V.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},V.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},V.prototype.isqr=function(e){return this.imul(e,e.clone())},V.prototype.sqr=function(e){return this.mul(e,e)},V.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(c(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);c(!a.isZero());var l=new i(1).toRed(this),b=l.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(b)!==0;)t.redIAdd(b);for(var s=this.pow(t,a),$=this.pow(e,a.addn(1).iushrn(1)),W=this.pow(e,a),U=o;W.cmp(l)!==0;){for(var Q=W,X=0;Q.cmp(l)!==0;X++)Q=Q.redSqr();c(X<U);var P=this.pow(s,new i(1).iushln(U-X-1));$=$.redMul(P),s=P.redSqr(),W=W.redMul(s),U=X}return $},V.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},V.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var l=a[0],b=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),o=r.length-1;o>=0;o--){for(var s=r.words[o],$=t-1;$>=0;$--){var W=s>>$&1;if(l!==a[0]&&(l=this.sqr(l)),W===0&&b===0){f=0;continue}b<<=1,b|=W,f++,!(f!==n&&(o!==0||$!==0))&&(l=this.mul(l,a[b]),f=0,b=0)}t=26}return l},V.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},V.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new re(e)};function re(u){V.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}E(re,V),re.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},re.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},re.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(g,Sv)})(Yr)),Yr.exports}var M0,tu;function Fv(){if(tu)return M0;tu=1;var g=hi(),x=Bv();M0=function(_){return new c(_)};var S={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}};S.p224=S.secp224r1,S.p256=S.secp256r1=S.prime256v1,S.p192=S.secp192r1=S.prime192v1,S.p384=S.secp384r1,S.p521=S.secp521r1;function c(i){this.curveType=S[i],this.curveType||(this.curveType={name:i}),this.curve=new g.ec(this.curveType.name),this.keys=void 0}c.prototype.generateKeys=function(i,_){return this.keys=this.curve.genKeyPair(),this.getPublicKey(i,_)},c.prototype.computeSecret=function(i,_,y){_=_||"utf8",we.Buffer.isBuffer(i)||(i=new we.Buffer(i,_));var m=this.curve.keyFromPublic(i).getPublic(),h=m.mul(this.keys.getPrivate()).getX();return E(h,y,this.curveType.byteLength)},c.prototype.getPublicKey=function(i,_){var y=this.keys.getPublic(_==="compressed",!0);return _==="hybrid"&&(y[y.length-1]%2?y[0]=7:y[0]=6),E(y,i)},c.prototype.getPrivateKey=function(i){return E(this.keys.getPrivate(),i)},c.prototype.setPublicKey=function(i,_){return _=_||"utf8",we.Buffer.isBuffer(i)||(i=new we.Buffer(i,_)),this.keys._importPublic(i),this},c.prototype.setPrivateKey=function(i,_){_=_||"utf8",we.Buffer.isBuffer(i)||(i=new we.Buffer(i,_));var y=new x(i);return y=y.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(y),this};function E(i,_,y){Array.isArray(i)||(i=i.toArray());var m=new we.Buffer(i);if(y&&m.length<y){var h=new we.Buffer(y-m.length);h.fill(0),m=we.Buffer.concat([h,m])}return _?m.toString(_):m}return M0}var _0={},E0,ru;function kc(){if(ru)return E0;ru=1;var g=Sr(),x=ze.requireSafeBuffer().Buffer;E0=function(c,E){for(var i=x.alloc(0),_=0,y;i.length<E;)y=S(_++),i=x.concat([i,g("sha1").update(c).update(y).digest()]);return i.slice(0,E)};function S(c){var E=x.allocUnsafe(4);return E.writeUInt32BE(c,0),E}return E0}var A0,iu;function Nc(){return iu||(iu=1,A0=function(x,S){for(var c=x.length,E=-1;++E<c;)x[E]^=S[E];return x}),A0}var Jr={exports:{}},Cv=Jr.exports,nu;function of(){return nu||(nu=1,(function(g){(function(x,S){function c(u,e){if(!u)throw new Error(e||"Assertion failed")}function E(u,e){u.super_=e;var r=function(){};r.prototype=e.prototype,u.prototype=new r,u.prototype.constructor=u}function i(u,e,r){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(u||0,e||10,r||"be"))}typeof x=="object"?x.exports=i:S.BN=i,i.BN=i,i.wordSize=26;var _;try{typeof window<"u"&&typeof window.Buffer<"u"?_=window.Buffer:_=ze.requireDist().Buffer}catch{}i.isBN=function(e){return e instanceof i?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,r){return e.cmp(r)>0?e:r},i.min=function(e,r){return e.cmp(r)<0?e:r},i.prototype._init=function(e,r,n){if(typeof e=="number")return this._initNumber(e,r,n);if(typeof e=="object")return this._initArray(e,r,n);r==="hex"&&(r=16),c(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(r===16?this._parseHex(e,a,n):(this._parseBase(e,r,a),n==="le"&&this._initArray(this.toArray(),r,n)))},i.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(c(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),r,n)},i.prototype._initArray=function(e,r,n){if(c(typeof e.length=="number"),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 a=0;a<this.length;a++)this.words[a]=0;var o,l,b=0;if(n==="be")for(a=e.length-1,o=0;a>=0;a-=3)l=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);else if(n==="le")for(a=0,o=0;a<e.length;a+=3)l=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=l<<b&67108863,this.words[o+1]=l>>>26-b&67108863,b+=24,b>=26&&(b-=26,o++);return this.strip()};function y(u,e){var r=u.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(u,e,r){var n=y(u,r);return r-1>=e&&(n|=y(u,r-1)<<4),n}i.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o=0,l=0,b;if(n==="be")for(a=e.length-1;a>=r;a-=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8;else{var f=e.length-r;for(a=f%2===0?r+1:r;a<e.length;a+=2)b=m(e,r,a)<<o,this.words[l]|=b&67108863,o>=18?(o-=18,l+=1,this.words[l]|=b>>>26):o+=8}this.strip()};function h(u,e,r,n){for(var a=0,o=Math.min(u.length,r),l=e;l<o;l++){var b=u.charCodeAt(l)-48;a*=n,b>=49?a+=b-49+10:b>=17?a+=b-17+10:a+=b}return a}i.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var a=0,o=1;o<=67108863;o*=r)a++;a--,o=o/r|0;for(var l=e.length-n,b=l%a,f=Math.min(l,l-b)+n,t=0,s=n;s<f;s+=a)t=h(e,s,s+a,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(b!==0){var $=1;for(t=h(e,s,e.length,r),s=0;s<b;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],p=[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],v=[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];i.prototype.toString=function(e,r){e=e||10,r=r|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,o=0,l=0;l<this.length;l++){var b=this.words[l],f=((b<<a|o)&16777215).toString(16);o=b>>>24-a&16777215,a+=2,a>=26&&(a-=26,l--),o!==0||l!==this.length-1?n=d[6-f.length]+f+n:n=f+n}for(o!==0&&(n=o.toString(16)+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=v[e];n="";var $=this.clone();for($.negative=0;!$.isZero();){var W=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?n=W+n:n=d[t-W.length]+W+n}for(this.isZero()&&(n="0"+n);n.length%r!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}c(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&c(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,r){return c(typeof _<"u"),this.toArrayLike(_,e,r)},i.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},i.prototype.toArrayLike=function(e,r,n){var a=this.byteLength(),o=n||Math.max(1,a);c(a<=o,"byte array longer than desired length"),c(o>0,"Requested array length <= 0"),this.strip();var l=r==="le",b=new e(o),f,t,s=this.clone();if(l){for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[t]=f;for(;t<o;t++)b[t]=0}else{for(t=0;t<o-a;t++)b[t]=0;for(t=0;!s.isZero();t++)f=s.andln(255),s.iushrn(8),b[o-t-1]=f}return b},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},i.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,n=0;return(r&8191)===0&&(n+=13,r>>>=13),(r&127)===0&&(n+=7,r>>>=7),(r&15)===0&&(n+=4,r>>>=4),(r&3)===0&&(n+=2,r>>>=2),(r&1)===0&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(u){for(var e=new Array(u.bitLength()),r=0;r<e.length;r++){var n=r/26|0,a=r%26;e[r]=(u.words[n]&1<<a)>>>a}return e}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,n!==26)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},i.prototype.ior=function(e){return c((this.negative|e.negative)===0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this.strip()},i.prototype.iand=function(e){return c((this.negative|e.negative)===0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=r.words[a]^n.words[a];if(this!==r)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=r.length,this.strip()},i.prototype.ixor=function(e){return c((this.negative|e.negative)===0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){c(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,n=e%26;this._expand(r),n>0&&r--;for(var a=0;a<r;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,r){c(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),r?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},i.prototype.iadd=function(e){var r;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var o=0,l=0;l<a.length;l++)r=(n.words[l]|0)+(a.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;for(;o!==0&&l<n.length;l++)r=(n.words[l]|0)+o,this.words[l]=r&67108863,o=r>>>26;if(this.length=n.length,o!==0)this.words[this.length]=o,this.length++;else if(n!==this)for(;l<n.length;l++)this.words[l]=n.words[l];return this},i.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,o;n>0?(a=this,o=e):(a=e,o=this);for(var l=0,b=0;b<o.length;b++)r=(a.words[b]|0)-(o.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;for(;l!==0&&b<a.length;b++)r=(a.words[b]|0)+l,l=r>>26,this.words[b]=r&67108863;if(l===0&&b<a.length&&a!==this)for(;b<a.length;b++)this.words[b]=a.words[b];return this.length=Math.max(this.length,b),a!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};function M(u,e,r){r.negative=e.negative^u.negative;var n=u.length+e.length|0;r.length=n,n=n-1|0;var a=u.words[0]|0,o=e.words[0]|0,l=a*o,b=l&67108863,f=l/67108864|0;r.words[0]=b;for(var t=1;t<n;t++){for(var s=f>>>26,$=f&67108863,W=Math.min(t,e.length-1),U=Math.max(0,t-u.length+1);U<=W;U++){var Q=t-U|0;a=u.words[Q]|0,o=e.words[U]|0,l=a*o+$,s+=l/67108864|0,$=l&67108863}r.words[t]=$|0,f=s|0}return f!==0?r.words[t]=f|0:r.length--,r.strip()}var A=function(e,r,n){var a=e.words,o=r.words,l=n.words,b=0,f,t,s,$=a[0]|0,W=$&8191,U=$>>>13,Q=a[1]|0,X=Q&8191,P=Q>>>13,H=a[2]|0,Z=H&8191,k=H>>>13,N=a[3]|0,T=N&8191,j=N>>>13,fe=a[4]|0,ee=fe&8191,te=fe>>>13,he=a[5]|0,ie=he&8191,ne=he>>>13,pe=a[6]|0,oe=pe&8191,se=pe>>>13,Re=a[7]|0,de=Re&8191,ve=Re>>>13,ot=a[8]|0,be=ot&8191,me=ot>>>13,ut=a[9]|0,Fe=ut&8191,Be=ut>>>13,pt=o[0]|0,Ae=pt&8191,Se=pt>>>13,ct=o[1]|0,_e=ct&8191,xe=ct>>>13,wt=o[2]|0,Ce=wt&8191,De=wt>>>13,_t=o[3]|0,Te=_t&8191,Ie=_t>>>13,Dt=o[4]|0,Ne=Dt&8191,Pe=Dt>>>13,kt=o[5]|0,qe=kt&8191,Oe=kt>>>13,Pt=o[6]|0,ke=Pt&8191,Ue=Pt>>>13,O=o[7]|0,z=O&8191,L=O>>>13,I=o[8]|0,G=I&8191,ae=I>>>13,ge=o[9]|0,ue=ge&8191,le=ge>>>13;n.negative=e.negative^r.negative,n.length=19,f=Math.imul(W,Ae),t=Math.imul(W,Se),t=t+Math.imul(U,Ae)|0,s=Math.imul(U,Se);var Je=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,f=Math.imul(X,Ae),t=Math.imul(X,Se),t=t+Math.imul(P,Ae)|0,s=Math.imul(P,Se),f=f+Math.imul(W,_e)|0,t=t+Math.imul(W,xe)|0,t=t+Math.imul(U,_e)|0,s=s+Math.imul(U,xe)|0;var We=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,f=Math.imul(Z,Ae),t=Math.imul(Z,Se),t=t+Math.imul(k,Ae)|0,s=Math.imul(k,Se),f=f+Math.imul(X,_e)|0,t=t+Math.imul(X,xe)|0,t=t+Math.imul(P,_e)|0,s=s+Math.imul(P,xe)|0,f=f+Math.imul(W,Ce)|0,t=t+Math.imul(W,De)|0,t=t+Math.imul(U,Ce)|0,s=s+Math.imul(U,De)|0;var ht=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ht>>>26)|0,ht&=67108863,f=Math.imul(T,Ae),t=Math.imul(T,Se),t=t+Math.imul(j,Ae)|0,s=Math.imul(j,Se),f=f+Math.imul(Z,_e)|0,t=t+Math.imul(Z,xe)|0,t=t+Math.imul(k,_e)|0,s=s+Math.imul(k,xe)|0,f=f+Math.imul(X,Ce)|0,t=t+Math.imul(X,De)|0,t=t+Math.imul(P,Ce)|0,s=s+Math.imul(P,De)|0,f=f+Math.imul(W,Te)|0,t=t+Math.imul(W,Ie)|0,t=t+Math.imul(U,Te)|0,s=s+Math.imul(U,Ie)|0;var Ve=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,f=Math.imul(ee,Ae),t=Math.imul(ee,Se),t=t+Math.imul(te,Ae)|0,s=Math.imul(te,Se),f=f+Math.imul(T,_e)|0,t=t+Math.imul(T,xe)|0,t=t+Math.imul(j,_e)|0,s=s+Math.imul(j,xe)|0,f=f+Math.imul(Z,Ce)|0,t=t+Math.imul(Z,De)|0,t=t+Math.imul(k,Ce)|0,s=s+Math.imul(k,De)|0,f=f+Math.imul(X,Te)|0,t=t+Math.imul(X,Ie)|0,t=t+Math.imul(P,Te)|0,s=s+Math.imul(P,Ie)|0,f=f+Math.imul(W,Ne)|0,t=t+Math.imul(W,Pe)|0,t=t+Math.imul(U,Ne)|0,s=s+Math.imul(U,Pe)|0;var et=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(et>>>26)|0,et&=67108863,f=Math.imul(ie,Ae),t=Math.imul(ie,Se),t=t+Math.imul(ne,Ae)|0,s=Math.imul(ne,Se),f=f+Math.imul(ee,_e)|0,t=t+Math.imul(ee,xe)|0,t=t+Math.imul(te,_e)|0,s=s+Math.imul(te,xe)|0,f=f+Math.imul(T,Ce)|0,t=t+Math.imul(T,De)|0,t=t+Math.imul(j,Ce)|0,s=s+Math.imul(j,De)|0,f=f+Math.imul(Z,Te)|0,t=t+Math.imul(Z,Ie)|0,t=t+Math.imul(k,Te)|0,s=s+Math.imul(k,Ie)|0,f=f+Math.imul(X,Ne)|0,t=t+Math.imul(X,Pe)|0,t=t+Math.imul(P,Ne)|0,s=s+Math.imul(P,Pe)|0,f=f+Math.imul(W,qe)|0,t=t+Math.imul(W,Oe)|0,t=t+Math.imul(U,qe)|0,s=s+Math.imul(U,Oe)|0;var tt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,f=Math.imul(oe,Ae),t=Math.imul(oe,Se),t=t+Math.imul(se,Ae)|0,s=Math.imul(se,Se),f=f+Math.imul(ie,_e)|0,t=t+Math.imul(ie,xe)|0,t=t+Math.imul(ne,_e)|0,s=s+Math.imul(ne,xe)|0,f=f+Math.imul(ee,Ce)|0,t=t+Math.imul(ee,De)|0,t=t+Math.imul(te,Ce)|0,s=s+Math.imul(te,De)|0,f=f+Math.imul(T,Te)|0,t=t+Math.imul(T,Ie)|0,t=t+Math.imul(j,Te)|0,s=s+Math.imul(j,Ie)|0,f=f+Math.imul(Z,Ne)|0,t=t+Math.imul(Z,Pe)|0,t=t+Math.imul(k,Ne)|0,s=s+Math.imul(k,Pe)|0,f=f+Math.imul(X,qe)|0,t=t+Math.imul(X,Oe)|0,t=t+Math.imul(P,qe)|0,s=s+Math.imul(P,Oe)|0,f=f+Math.imul(W,ke)|0,t=t+Math.imul(W,Ue)|0,t=t+Math.imul(U,ke)|0,s=s+Math.imul(U,Ue)|0;var ft=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(ft>>>26)|0,ft&=67108863,f=Math.imul(de,Ae),t=Math.imul(de,Se),t=t+Math.imul(ve,Ae)|0,s=Math.imul(ve,Se),f=f+Math.imul(oe,_e)|0,t=t+Math.imul(oe,xe)|0,t=t+Math.imul(se,_e)|0,s=s+Math.imul(se,xe)|0,f=f+Math.imul(ie,Ce)|0,t=t+Math.imul(ie,De)|0,t=t+Math.imul(ne,Ce)|0,s=s+Math.imul(ne,De)|0,f=f+Math.imul(ee,Te)|0,t=t+Math.imul(ee,Ie)|0,t=t+Math.imul(te,Te)|0,s=s+Math.imul(te,Ie)|0,f=f+Math.imul(T,Ne)|0,t=t+Math.imul(T,Pe)|0,t=t+Math.imul(j,Ne)|0,s=s+Math.imul(j,Pe)|0,f=f+Math.imul(Z,qe)|0,t=t+Math.imul(Z,Oe)|0,t=t+Math.imul(k,qe)|0,s=s+Math.imul(k,Oe)|0,f=f+Math.imul(X,ke)|0,t=t+Math.imul(X,Ue)|0,t=t+Math.imul(P,ke)|0,s=s+Math.imul(P,Ue)|0,f=f+Math.imul(W,z)|0,t=t+Math.imul(W,L)|0,t=t+Math.imul(U,z)|0,s=s+Math.imul(U,L)|0;var at=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(at>>>26)|0,at&=67108863,f=Math.imul(be,Ae),t=Math.imul(be,Se),t=t+Math.imul(me,Ae)|0,s=Math.imul(me,Se),f=f+Math.imul(de,_e)|0,t=t+Math.imul(de,xe)|0,t=t+Math.imul(ve,_e)|0,s=s+Math.imul(ve,xe)|0,f=f+Math.imul(oe,Ce)|0,t=t+Math.imul(oe,De)|0,t=t+Math.imul(se,Ce)|0,s=s+Math.imul(se,De)|0,f=f+Math.imul(ie,Te)|0,t=t+Math.imul(ie,Ie)|0,t=t+Math.imul(ne,Te)|0,s=s+Math.imul(ne,Ie)|0,f=f+Math.imul(ee,Ne)|0,t=t+Math.imul(ee,Pe)|0,t=t+Math.imul(te,Ne)|0,s=s+Math.imul(te,Pe)|0,f=f+Math.imul(T,qe)|0,t=t+Math.imul(T,Oe)|0,t=t+Math.imul(j,qe)|0,s=s+Math.imul(j,Oe)|0,f=f+Math.imul(Z,ke)|0,t=t+Math.imul(Z,Ue)|0,t=t+Math.imul(k,ke)|0,s=s+Math.imul(k,Ue)|0,f=f+Math.imul(X,z)|0,t=t+Math.imul(X,L)|0,t=t+Math.imul(P,z)|0,s=s+Math.imul(P,L)|0,f=f+Math.imul(W,G)|0,t=t+Math.imul(W,ae)|0,t=t+Math.imul(U,G)|0,s=s+Math.imul(U,ae)|0;var rt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(rt>>>26)|0,rt&=67108863,f=Math.imul(Fe,Ae),t=Math.imul(Fe,Se),t=t+Math.imul(Be,Ae)|0,s=Math.imul(Be,Se),f=f+Math.imul(be,_e)|0,t=t+Math.imul(be,xe)|0,t=t+Math.imul(me,_e)|0,s=s+Math.imul(me,xe)|0,f=f+Math.imul(de,Ce)|0,t=t+Math.imul(de,De)|0,t=t+Math.imul(ve,Ce)|0,s=s+Math.imul(ve,De)|0,f=f+Math.imul(oe,Te)|0,t=t+Math.imul(oe,Ie)|0,t=t+Math.imul(se,Te)|0,s=s+Math.imul(se,Ie)|0,f=f+Math.imul(ie,Ne)|0,t=t+Math.imul(ie,Pe)|0,t=t+Math.imul(ne,Ne)|0,s=s+Math.imul(ne,Pe)|0,f=f+Math.imul(ee,qe)|0,t=t+Math.imul(ee,Oe)|0,t=t+Math.imul(te,qe)|0,s=s+Math.imul(te,Oe)|0,f=f+Math.imul(T,ke)|0,t=t+Math.imul(T,Ue)|0,t=t+Math.imul(j,ke)|0,s=s+Math.imul(j,Ue)|0,f=f+Math.imul(Z,z)|0,t=t+Math.imul(Z,L)|0,t=t+Math.imul(k,z)|0,s=s+Math.imul(k,L)|0,f=f+Math.imul(X,G)|0,t=t+Math.imul(X,ae)|0,t=t+Math.imul(P,G)|0,s=s+Math.imul(P,ae)|0,f=f+Math.imul(W,ue)|0,t=t+Math.imul(W,le)|0,t=t+Math.imul(U,ue)|0,s=s+Math.imul(U,le)|0;var nt=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(nt>>>26)|0,nt&=67108863,f=Math.imul(Fe,_e),t=Math.imul(Fe,xe),t=t+Math.imul(Be,_e)|0,s=Math.imul(Be,xe),f=f+Math.imul(be,Ce)|0,t=t+Math.imul(be,De)|0,t=t+Math.imul(me,Ce)|0,s=s+Math.imul(me,De)|0,f=f+Math.imul(de,Te)|0,t=t+Math.imul(de,Ie)|0,t=t+Math.imul(ve,Te)|0,s=s+Math.imul(ve,Ie)|0,f=f+Math.imul(oe,Ne)|0,t=t+Math.imul(oe,Pe)|0,t=t+Math.imul(se,Ne)|0,s=s+Math.imul(se,Pe)|0,f=f+Math.imul(ie,qe)|0,t=t+Math.imul(ie,Oe)|0,t=t+Math.imul(ne,qe)|0,s=s+Math.imul(ne,Oe)|0,f=f+Math.imul(ee,ke)|0,t=t+Math.imul(ee,Ue)|0,t=t+Math.imul(te,ke)|0,s=s+Math.imul(te,Ue)|0,f=f+Math.imul(T,z)|0,t=t+Math.imul(T,L)|0,t=t+Math.imul(j,z)|0,s=s+Math.imul(j,L)|0,f=f+Math.imul(Z,G)|0,t=t+Math.imul(Z,ae)|0,t=t+Math.imul(k,G)|0,s=s+Math.imul(k,ae)|0,f=f+Math.imul(X,ue)|0,t=t+Math.imul(X,le)|0,t=t+Math.imul(P,ue)|0,s=s+Math.imul(P,le)|0;var it=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(it>>>26)|0,it&=67108863,f=Math.imul(Fe,Ce),t=Math.imul(Fe,De),t=t+Math.imul(Be,Ce)|0,s=Math.imul(Be,De),f=f+Math.imul(be,Te)|0,t=t+Math.imul(be,Ie)|0,t=t+Math.imul(me,Te)|0,s=s+Math.imul(me,Ie)|0,f=f+Math.imul(de,Ne)|0,t=t+Math.imul(de,Pe)|0,t=t+Math.imul(ve,Ne)|0,s=s+Math.imul(ve,Pe)|0,f=f+Math.imul(oe,qe)|0,t=t+Math.imul(oe,Oe)|0,t=t+Math.imul(se,qe)|0,s=s+Math.imul(se,Oe)|0,f=f+Math.imul(ie,ke)|0,t=t+Math.imul(ie,Ue)|0,t=t+Math.imul(ne,ke)|0,s=s+Math.imul(ne,Ue)|0,f=f+Math.imul(ee,z)|0,t=t+Math.imul(ee,L)|0,t=t+Math.imul(te,z)|0,s=s+Math.imul(te,L)|0,f=f+Math.imul(T,G)|0,t=t+Math.imul(T,ae)|0,t=t+Math.imul(j,G)|0,s=s+Math.imul(j,ae)|0,f=f+Math.imul(Z,ue)|0,t=t+Math.imul(Z,le)|0,t=t+Math.imul(k,ue)|0,s=s+Math.imul(k,le)|0;var Ze=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,f=Math.imul(Fe,Te),t=Math.imul(Fe,Ie),t=t+Math.imul(Be,Te)|0,s=Math.imul(Be,Ie),f=f+Math.imul(be,Ne)|0,t=t+Math.imul(be,Pe)|0,t=t+Math.imul(me,Ne)|0,s=s+Math.imul(me,Pe)|0,f=f+Math.imul(de,qe)|0,t=t+Math.imul(de,Oe)|0,t=t+Math.imul(ve,qe)|0,s=s+Math.imul(ve,Oe)|0,f=f+Math.imul(oe,ke)|0,t=t+Math.imul(oe,Ue)|0,t=t+Math.imul(se,ke)|0,s=s+Math.imul(se,Ue)|0,f=f+Math.imul(ie,z)|0,t=t+Math.imul(ie,L)|0,t=t+Math.imul(ne,z)|0,s=s+Math.imul(ne,L)|0,f=f+Math.imul(ee,G)|0,t=t+Math.imul(ee,ae)|0,t=t+Math.imul(te,G)|0,s=s+Math.imul(te,ae)|0,f=f+Math.imul(T,ue)|0,t=t+Math.imul(T,le)|0,t=t+Math.imul(j,ue)|0,s=s+Math.imul(j,le)|0;var Qe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,f=Math.imul(Fe,Ne),t=Math.imul(Fe,Pe),t=t+Math.imul(Be,Ne)|0,s=Math.imul(Be,Pe),f=f+Math.imul(be,qe)|0,t=t+Math.imul(be,Oe)|0,t=t+Math.imul(me,qe)|0,s=s+Math.imul(me,Oe)|0,f=f+Math.imul(de,ke)|0,t=t+Math.imul(de,Ue)|0,t=t+Math.imul(ve,ke)|0,s=s+Math.imul(ve,Ue)|0,f=f+Math.imul(oe,z)|0,t=t+Math.imul(oe,L)|0,t=t+Math.imul(se,z)|0,s=s+Math.imul(se,L)|0,f=f+Math.imul(ie,G)|0,t=t+Math.imul(ie,ae)|0,t=t+Math.imul(ne,G)|0,s=s+Math.imul(ne,ae)|0,f=f+Math.imul(ee,ue)|0,t=t+Math.imul(ee,le)|0,t=t+Math.imul(te,ue)|0,s=s+Math.imul(te,le)|0;var Ge=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,f=Math.imul(Fe,qe),t=Math.imul(Fe,Oe),t=t+Math.imul(Be,qe)|0,s=Math.imul(Be,Oe),f=f+Math.imul(be,ke)|0,t=t+Math.imul(be,Ue)|0,t=t+Math.imul(me,ke)|0,s=s+Math.imul(me,Ue)|0,f=f+Math.imul(de,z)|0,t=t+Math.imul(de,L)|0,t=t+Math.imul(ve,z)|0,s=s+Math.imul(ve,L)|0,f=f+Math.imul(oe,G)|0,t=t+Math.imul(oe,ae)|0,t=t+Math.imul(se,G)|0,s=s+Math.imul(se,ae)|0,f=f+Math.imul(ie,ue)|0,t=t+Math.imul(ie,le)|0,t=t+Math.imul(ne,ue)|0,s=s+Math.imul(ne,le)|0;var Xe=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,f=Math.imul(Fe,ke),t=Math.imul(Fe,Ue),t=t+Math.imul(Be,ke)|0,s=Math.imul(Be,Ue),f=f+Math.imul(be,z)|0,t=t+Math.imul(be,L)|0,t=t+Math.imul(me,z)|0,s=s+Math.imul(me,L)|0,f=f+Math.imul(de,G)|0,t=t+Math.imul(de,ae)|0,t=t+Math.imul(ve,G)|0,s=s+Math.imul(ve,ae)|0,f=f+Math.imul(oe,ue)|0,t=t+Math.imul(oe,le)|0,t=t+Math.imul(se,ue)|0,s=s+Math.imul(se,le)|0;var Ye=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,f=Math.imul(Fe,z),t=Math.imul(Fe,L),t=t+Math.imul(Be,z)|0,s=Math.imul(Be,L),f=f+Math.imul(be,G)|0,t=t+Math.imul(be,ae)|0,t=t+Math.imul(me,G)|0,s=s+Math.imul(me,ae)|0,f=f+Math.imul(de,ue)|0,t=t+Math.imul(de,le)|0,t=t+Math.imul(ve,ue)|0,s=s+Math.imul(ve,le)|0;var Ke=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,f=Math.imul(Fe,G),t=Math.imul(Fe,ae),t=t+Math.imul(Be,G)|0,s=Math.imul(Be,ae),f=f+Math.imul(be,ue)|0,t=t+Math.imul(be,le)|0,t=t+Math.imul(me,ue)|0,s=s+Math.imul(me,le)|0;var Me=(b+f|0)+((t&8191)<<13)|0;b=(s+(t>>>13)|0)+(Me>>>26)|0,Me&=67108863,f=Math.imul(Fe,ue),t=Math.imul(Fe,le),t=t+Math.imul(Be,ue)|0,s=Math.imul(Be,le);var Ee=(b+f|0)+((t&8191)<<13)|0;return b=(s+(t>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,l[0]=Je,l[1]=We,l[2]=ht,l[3]=Ve,l[4]=et,l[5]=tt,l[6]=ft,l[7]=at,l[8]=rt,l[9]=nt,l[10]=it,l[11]=Ze,l[12]=Qe,l[13]=Ge,l[14]=Xe,l[15]=Ye,l[16]=Ke,l[17]=Me,l[18]=Ee,b!==0&&(l[19]=b,n.length++),n};Math.imul||(A=M);function B(u,e,r){r.negative=e.negative^u.negative,r.length=u.length+e.length;for(var n=0,a=0,o=0;o<r.length-1;o++){var l=a;a=0;for(var b=n&67108863,f=Math.min(o,e.length-1),t=Math.max(0,o-u.length+1);t<=f;t++){var s=o-t,$=u.words[s]|0,W=e.words[t]|0,U=$*W,Q=U&67108863;l=l+(U/67108864|0)|0,Q=Q+b|0,b=Q&67108863,l=l+(Q>>>26)|0,a+=l>>>26,l&=67108863}r.words[o]=b,n=l,l=a}return n!==0?r.words[o]=n:r.length--,r.strip()}function F(u,e,r){var n=new C;return n.mulp(u,e,r)}i.prototype.mulTo=function(e,r){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,r):a<63?n=M(this,e,r):a<1024?n=B(this,e,r):n=F(this,e,r),n};function C(u,e){this.x=u,this.y=e}C.prototype.makeRBT=function(e){for(var r=new Array(e),n=i.prototype._countBits(e)-1,a=0;a<e;a++)r[a]=this.revBin(a,n,e);return r},C.prototype.revBin=function(e,r,n){if(e===0||e===n-1)return e;for(var a=0,o=0;o<r;o++)a|=(e&1)<<r-o-1,e>>=1;return a},C.prototype.permute=function(e,r,n,a,o,l){for(var b=0;b<l;b++)a[b]=r[e[b]],o[b]=n[e[b]]},C.prototype.transform=function(e,r,n,a,o,l){this.permute(l,e,r,n,a,o);for(var b=1;b<o;b<<=1)for(var f=b<<1,t=Math.cos(2*Math.PI/f),s=Math.sin(2*Math.PI/f),$=0;$<o;$+=f)for(var W=t,U=s,Q=0;Q<b;Q++){var X=n[$+Q],P=a[$+Q],H=n[$+Q+b],Z=a[$+Q+b],k=W*H-U*Z;Z=W*Z+U*H,H=k,n[$+Q]=X+H,a[$+Q]=P+Z,n[$+Q+b]=X-H,a[$+Q+b]=P-Z,Q!==f&&(k=t*W-s*U,U=t*U+s*W,W=k)}},C.prototype.guessLen13b=function(e,r){var n=Math.max(r,e)|1,a=n&1,o=0;for(n=n/2|0;n;n=n>>>1)o++;return 1<<o+1+a},C.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var a=0;a<n/2;a++){var o=e[a];e[a]=e[n-a-1],e[n-a-1]=o,o=r[a],r[a]=-r[n-a-1],r[n-a-1]=-o}},C.prototype.normalize13b=function(e,r){for(var n=0,a=0;a<r/2;a++){var o=Math.round(e[2*a+1]/r)*8192+Math.round(e[2*a]/r)+n;e[a]=o&67108863,o<67108864?n=0:n=o/67108864|0}return e},C.prototype.convert13b=function(e,r,n,a){for(var o=0,l=0;l<r;l++)o=o+(e[l]|0),n[2*l]=o&8191,o=o>>>13,n[2*l+1]=o&8191,o=o>>>13;for(l=2*r;l<a;++l)n[l]=0;c(o===0),c((o&-8192)===0)},C.prototype.stub=function(e){for(var r=new Array(e),n=0;n<e;n++)r[n]=0;return r},C.prototype.mulp=function(e,r,n){var a=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(a),l=this.stub(a),b=new Array(a),f=new Array(a),t=new Array(a),s=new Array(a),$=new Array(a),W=new Array(a),U=n.words;U.length=a,this.convert13b(e.words,e.length,b,a),this.convert13b(r.words,r.length,s,a),this.transform(b,l,f,t,a,o),this.transform(s,l,$,W,a,o);for(var Q=0;Q<a;Q++){var X=f[Q]*$[Q]-t[Q]*W[Q];t[Q]=f[Q]*W[Q]+t[Q]*$[Q],f[Q]=X}return this.conjugate(f,t,a),this.transform(f,t,U,l,a,o),this.conjugate(U,l,a),this.normalize13b(U,a),n.negative=e.negative^r.negative,n.length=e.length+r.length,n.strip()},i.prototype.mul=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},i.prototype.mulf=function(e){var r=new i(null);return r.words=new Array(this.length+e.length),F(this,e,r)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){c(typeof e=="number"),c(e<67108864);for(var r=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,o=(a&67108863)+(r&67108863);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[n]=o&67108863}return r!==0&&(this.words[n]=r,this.length++),this.length=e===0?1:this.length,this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var r=w(e);if(r.length===0)return new i(1);for(var n=this,a=0;a<r.length&&r[a]===0;a++,n=n.sqr());if(++a<r.length)for(var o=n.sqr();a<r.length;a++,o=o.sqr())r[a]!==0&&(n=n.mul(o));return n},i.prototype.iushln=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=67108863>>>26-r<<26-r,o;if(r!==0){var l=0;for(o=0;o<this.length;o++){var b=this.words[o]&a,f=(this.words[o]|0)-b<<r;this.words[o]=f|l,l=b>>>26-r}l&&(this.words[o]=l,this.length++)}if(n!==0){for(o=this.length-1;o>=0;o--)this.words[o+n]=this.words[o];for(o=0;o<n;o++)this.words[o]=0;this.length+=n}return this.strip()},i.prototype.ishln=function(e){return c(this.negative===0),this.iushln(e)},i.prototype.iushrn=function(e,r,n){c(typeof e=="number"&&e>=0);var a;r?a=(r-r%26)/26:a=0;var o=e%26,l=Math.min((e-o)/26,this.length),b=67108863^67108863>>>o<<o,f=n;if(a-=l,a=Math.max(0,a),f){for(var t=0;t<l;t++)f.words[t]=this.words[t];f.length=l}if(l!==0)if(this.length>l)for(this.length-=l,t=0;t<this.length;t++)this.words[t]=this.words[t+l];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=a);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&b}return f&&s!==0&&(f.words[f.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,r,n){return c(this.negative===0),this.iushrn(e,r,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return!1;var o=this.words[n];return!!(o&a)},i.prototype.imaskn=function(e){c(typeof e=="number"&&e>=0);var r=e%26,n=(e-r)/26;if(c(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(r!==0&&n++,this.length=Math.min(n,this.length),r!==0){var a=67108863^67108863>>>r<<r;this.words[this.length-1]&=a}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return c(typeof e=="number"),c(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},i.prototype.isubn=function(e){if(c(typeof e=="number"),c(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,r,n){var a=e.length+n,o;this._expand(a);var l,b=0;for(o=0;o<e.length;o++){l=(this.words[o+n]|0)+b;var f=(e.words[o]|0)*r;l-=f&67108863,b=(l>>26)-(f/67108864|0),this.words[o+n]=l&67108863}for(;o<this.length-n;o++)l=(this.words[o+n]|0)+b,b=l>>26,this.words[o+n]=l&67108863;if(b===0)return this.strip();for(c(b===-1),b=0,o=0;o<this.length;o++)l=-(this.words[o]|0)+b,b=l>>26,this.words[o]=l&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,r){var n=this.length-e.length,a=this.clone(),o=e,l=o.words[o.length-1]|0,b=this._countBits(l);n=26-b,n!==0&&(o=o.ushln(n),a.iushln(n),l=o.words[o.length-1]|0);var f=a.length-o.length,t;if(r!=="mod"){t=new i(null),t.length=f+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=a.clone()._ishlnsubmul(o,1,f);$.negative===0&&(a=$,t&&(t.words[f]=1));for(var W=f-1;W>=0;W--){var U=(a.words[o.length+W]|0)*67108864+(a.words[o.length+W-1]|0);for(U=Math.min(U/l|0,67108863),a._ishlnsubmul(o,U,W);a.negative!==0;)U--,a.negative=0,a._ishlnsubmul(o,1,W),a.isZero()||(a.negative^=1);t&&(t.words[W]=U)}return t&&t.strip(),a.strip(),r!=="div"&&n!==0&&a.iushrn(n),{div:t||null,mod:a}},i.prototype.divmod=function(e,r,n){if(c(!e.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var a,o,l;return this.negative!==0&&e.negative===0?(l=this.neg().divmod(e,r),r!=="mod"&&(a=l.div.neg()),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.iadd(e)),{div:a,mod:o}):this.negative===0&&e.negative!==0?(l=this.divmod(e.neg(),r),r!=="mod"&&(a=l.div.neg()),{div:a,mod:l.mod}):(this.negative&e.negative)!==0?(l=this.neg().divmod(e.neg(),r),r!=="div"&&(o=l.mod.neg(),n&&o.negative!==0&&o.isub(e)),{div:l.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,r)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod,a=e.ushrn(1),o=e.andln(1),l=n.cmp(a);return l<0||o===1&&l===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},i.prototype.modn=function(e){c(e<=67108863);for(var r=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(this.words[a]|0))%e;return n},i.prototype.idivn=function(e){c(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+r*67108864;this.words[n]=a/e|0,r=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=new i(0),b=new i(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var t=n.clone(),s=r.clone();!r.isZero();){for(var $=0,W=1;(r.words[0]&W)===0&&$<26;++$,W<<=1);if($>0)for(r.iushrn($);$-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(t),o.isub(s)),a.iushrn(1),o.iushrn(1);for(var U=0,Q=1;(n.words[0]&Q)===0&&U<26;++U,Q<<=1);if(U>0)for(n.iushrn(U);U-- >0;)(l.isOdd()||b.isOdd())&&(l.iadd(t),b.isub(s)),l.iushrn(1),b.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(l),o.isub(b)):(n.isub(r),l.isub(a),b.isub(o))}return{a:l,b,gcd:n.iushln(f)}},i.prototype._invmp=function(e){c(e.negative===0),c(!e.isZero());var r=this,n=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var a=new i(1),o=new i(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var b=0,f=1;(r.words[0]&f)===0&&b<26;++b,f<<=1);if(b>0)for(r.iushrn(b);b-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var t=0,s=1;(n.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(n.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(o)):(n.isub(r),o.isub(a))}var $;return r.cmpn(1)===0?$=a:$=o,$.cmpn(0)<0&&$.iadd(e),$},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var a=0;r.isEven()&&n.isEven();a++)r.iushrn(1),n.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=r.cmp(n);if(o<0){var l=r;r=n,n=l}else if(o===0||n.cmpn(1)===0)break;r.isub(n)}while(!0);return n.iushln(a)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){c(typeof e=="number");var r=e%26,n=(e-r)/26,a=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var o=a,l=n;o!==0&&l<this.length;l++){var b=this.words[l]|0;b+=o,o=b>>>26,b&=67108863,this.words[l]=b}return o!==0&&(this.words[l]=o,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1)n=1;else{r&&(e=-e),c(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},i.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?-r|0:r},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,o=e.words[n]|0;if(a!==o){a<o?r=-1:a>o&&(r=1);break}}return r},i.prototype.gtn=function(e){return this.cmpn(e)===1},i.prototype.gt=function(e){return this.cmp(e)===1},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return this.cmpn(e)===-1},i.prototype.lt=function(e){return this.cmp(e)===-1},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return this.cmpn(e)===0},i.prototype.eq=function(e){return this.cmp(e)===0},i.red=function(e){return new V(e)},i.prototype.toRed=function(e){return c(!this.red,"Already a number in reduction context"),c(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return c(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return c(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return c(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return c(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return c(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return c(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return c(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return c(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return c(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return c(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return c(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return c(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return c(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return c(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var R={k256:null,p224:null,p192:null,p25519:null};function D(u,e){this.name=u,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},D.prototype.ireduce=function(e){var r=e,n;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),n=r.bitLength();while(n>this.n);var a=n<this.n?-1:r.ucmp(this.p);return a===0?(r.words[0]=0,r.length=1):a>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},D.prototype.split=function(e,r){e.iushrn(this.n,0,r)},D.prototype.imulK=function(e){return e.imul(this.k)};function K(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}E(K,D),K.prototype.split=function(e,r){for(var n=4194303,a=Math.min(e.length,9),o=0;o<a;o++)r.words[o]=e.words[o];if(r.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var l=e.words[9];for(r.words[r.length++]=l&n,o=10;o<e.length;o++){var b=e.words[o]|0;e.words[o-10]=(b&n)<<4|l>>>22,l=b}l>>>=22,e.words[o-10]=l,l===0&&e.length>10?e.length-=10:e.length-=9},K.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var a=e.words[n]|0;r+=a*977,e.words[n]=r&67108863,r=a*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function q(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}E(q,D);function Y(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}E(Y,D);function J(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}E(J,D),J.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+r,o=a&67108863;a>>>=26,e.words[n]=o,r=a}return r!==0&&(e.words[e.length++]=r),e},i._prime=function(e){if(R[e])return R[e];var r;if(e==="k256")r=new K;else if(e==="p224")r=new q;else if(e==="p192")r=new Y;else if(e==="p25519")r=new J;else throw new Error("Unknown prime "+e);return R[e]=r,r};function V(u){if(typeof u=="string"){var e=i._prime(u);this.m=e.p,this.prime=e}else c(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}V.prototype._verify1=function(e){c(e.negative===0,"red works only with positives"),c(e.red,"red works only with red numbers")},V.prototype._verify2=function(e,r){c((e.negative|r.negative)===0,"red works only with positives"),c(e.red&&e.red===r.red,"red works only with red numbers")},V.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},V.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},V.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},V.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},V.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},V.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},V.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},V.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},V.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},V.prototype.isqr=function(e){return this.imul(e,e.clone())},V.prototype.sqr=function(e){return this.mul(e,e)},V.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(c(r%2===1),r===3){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&a.andln(1)===0;)o++,a.iushrn(1);c(!a.isZero());var l=new i(1).toRed(this),b=l.redNeg(),f=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new i(2*t*t).toRed(this);this.pow(t,f).cmp(b)!==0;)t.redIAdd(b);for(var s=this.pow(t,a),$=this.pow(e,a.addn(1).iushrn(1)),W=this.pow(e,a),U=o;W.cmp(l)!==0;){for(var Q=W,X=0;Q.cmp(l)!==0;X++)Q=Q.redSqr();c(X<U);var P=this.pow(s,new i(1).iushln(U-X-1));$=$.redMul(P),s=P.redSqr(),W=W.redMul(s),U=X}return $},V.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},V.prototype.pow=function(e,r){if(r.isZero())return new i(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new i(1).toRed(this),a[1]=e;for(var o=2;o<a.length;o++)a[o]=this.mul(a[o-1],e);var l=a[0],b=0,f=0,t=r.bitLength()%26;for(t===0&&(t=26),o=r.length-1;o>=0;o--){for(var s=r.words[o],$=t-1;$>=0;$--){var W=s>>$&1;if(l!==a[0]&&(l=this.sqr(l)),W===0&&b===0){f=0;continue}b<<=1,b|=W,f++,!(f!==n&&(o!==0||$!==0))&&(l=this.mul(l,a[b]),f=0,b=0)}t=26}return l},V.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},V.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},i.mont=function(e){return new re(e)};function re(u){V.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}E(re,V),re.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},re.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},re.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new i(0)._forceRed(this);var n=e.mul(r),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(a).iushrn(this.shift),l=o;return o.cmp(this.m)>=0?l=o.isub(this.m):o.cmpn(0)<0&&(l=o.iadd(this.m)),l._forceRed(this)},re.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(g,Cv)})(Jr)),Jr.exports}var S0,au;function Pc(){if(au)return S0;au=1;var g=of(),x=ze.requireSafeBuffer().Buffer;function S(c,E){return x.from(c.toRed(g.mont(E.modulus)).redPow(new g(E.publicExponent)).fromRed().toArray())}return S0=S,S0}var B0,fu;function Dv(){if(fu)return B0;fu=1;var g=ui(),x=pr(),S=Sr(),c=kc(),E=Nc(),i=of(),_=Pc(),y=nf(),m=ze.requireSafeBuffer().Buffer;B0=function(w,M,A){var B;w.padding?B=w.padding:A?B=1:B=4;var F=g(w),C;if(B===4)C=h(F,M);else if(B===1)C=d(F,M,A);else if(B===3){if(C=new i(M),C.cmp(F.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return A?y(C,F):_(C,F)};function h(v,w){var M=v.modulus.byteLength(),A=w.length,B=S("sha1").update(m.alloc(0)).digest(),F=B.length,C=2*F;if(A>M-C-2)throw new Error("message too long");var R=m.alloc(M-A-C-2),D=M-F-1,K=x(F),q=E(m.concat([B,R,m.alloc(1,1),w],D),c(K,D)),Y=E(K,c(q,F));return new i(m.concat([m.alloc(1),Y,q],M))}function d(v,w,M){var A=w.length,B=v.modulus.byteLength();if(A>B-11)throw new Error("message too long");var F;return M?F=m.alloc(B-A-3,255):F=p(B-A-3),new i(m.concat([m.from([0,M?1:2]),F,m.alloc(1),w],B))}function p(v){for(var w=m.allocUnsafe(v),M=0,A=x(v*2),B=0,F;M<v;)B===A.length&&(A=x(v*2),B=0),F=A[B++],F&&(w[M++]=F);return w}return B0}var F0,ou;function Rv(){if(ou)return F0;ou=1;var g=ui(),x=kc(),S=Nc(),c=of(),E=nf(),i=Sr(),_=Pc(),y=ze.requireSafeBuffer().Buffer;F0=function(v,w,M){var A;v.padding?A=v.padding:M?A=1:A=4;var B=g(v),F=B.modulus.byteLength();if(w.length>F||new c(w).cmp(B.modulus)>=0)throw new Error("decryption error");var C;M?C=_(new c(w),B):C=E(w,B);var R=y.alloc(F-C.length);if(C=y.concat([R,C],F),A===4)return m(B,C);if(A===1)return h(B,C,M);if(A===3)return C;throw new Error("unknown padding")};function m(p,v){var w=p.modulus.byteLength(),M=i("sha1").update(y.alloc(0)).digest(),A=M.length;if(v[0]!==0)throw new Error("decryption error");var B=v.slice(1,A+1),F=v.slice(A+1),C=S(B,x(F,A)),R=S(F,x(C,w-A-1));if(d(M,R.slice(0,A)))throw new Error("decryption error");for(var D=A;R[D]===0;)D++;if(R[D++]!==1)throw new Error("decryption error");return R.slice(D)}function h(p,v,w){for(var M=v.slice(0,2),A=2,B=0;v[A++]!==0;)if(A>=v.length){B++;break}var F=v.slice(2,A-1);if((M.toString("hex")!=="0002"&&!w||M.toString("hex")!=="0001"&&w)&&B++,F.length<8&&B++,B)throw new Error("decryption error");return v.slice(A)}function d(p,v){p=y.from(p),v=y.from(v);var w=0,M=p.length;p.length!==v.length&&(w++,M=Math.min(p.length,v.length));for(var A=-1;++A<M;)w+=p[A]^v[A];return w}return F0}var su;function Tv(){return su||(su=1,(function(g){g.publicEncrypt=Dv(),g.privateDecrypt=Rv(),g.privateEncrypt=function(S,c){return g.publicEncrypt(S,c,!0)},g.publicDecrypt=function(S,c){return g.privateDecrypt(S,c,!0)}})(_0)),_0}var sr={},hu;function Iv(){if(hu)return sr;hu=1;function g(){throw new Error(`secure random number generation not supported by this browser
6
+ use chrome, FireFox or Internet Explorer 11`)}var x=ze.requireSafeBuffer(),S=pr(),c=x.Buffer,E=x.kMaxLength,i=ze.commonjsGlobal.crypto||ze.commonjsGlobal.msCrypto,_=Math.pow(2,32)-1;function y(v,w){if(typeof v!="number"||v!==v)throw new TypeError("offset must be a number");if(v>_||v<0)throw new TypeError("offset must be a uint32");if(v>E||v>w)throw new RangeError("offset out of range")}function m(v,w,M){if(typeof v!="number"||v!==v)throw new TypeError("size must be a number");if(v>_||v<0)throw new TypeError("size must be a uint32");if(v+w>M||v>E)throw new RangeError("buffer too small")}i&&i.getRandomValues||!we.process$1.browser?(sr.randomFill=h,sr.randomFillSync=p):(sr.randomFill=g,sr.randomFillSync=g);function h(v,w,M,A){if(!c.isBuffer(v)&&!(v instanceof ze.commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof w=="function")A=w,w=0,M=v.length;else if(typeof M=="function")A=M,M=v.length-w;else if(typeof A!="function")throw new TypeError('"cb" argument must be a function');return y(w,v.length),m(M,w,v.length),d(v,w,M,A)}function d(v,w,M,A){if(we.process$1.browser){var B=v.buffer,F=new Uint8Array(B,w,M);if(i.getRandomValues(F),A){we.process$1.nextTick(function(){A(null,v)});return}return v}if(A){S(M,function(R,D){if(R)return A(R);D.copy(v,w),A(null,v)});return}var C=S(M);return C.copy(v,w),v}function p(v,w,M){if(typeof w>"u"&&(w=0),!c.isBuffer(v)&&!(v instanceof ze.commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return y(w,v.length),M===void 0&&(M=v.length-w),m(M,w,v.length),d(v,w,M)}return sr}var uu;function qc(){if(uu)return gt;uu=1,gt.randomBytes=gt.rng=gt.pseudoRandomBytes=gt.prng=pr(),gt.createHash=gt.Hash=Sr(),gt.createHmac=gt.Hmac=nc();var g=tp(),x=Object.keys(g),S=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(x);gt.getHashes=function(){return S};var c=uc();gt.pbkdf2=c.pbkdf2,gt.pbkdf2Sync=c.pbkdf2Sync;var E=Ep();gt.Cipher=E.Cipher,gt.createCipher=E.createCipher,gt.Cipheriv=E.Cipheriv,gt.createCipheriv=E.createCipheriv,gt.Decipher=E.Decipher,gt.createDecipher=E.createDecipher,gt.Decipheriv=E.Decipheriv,gt.createDecipheriv=E.createDecipheriv,gt.getCiphers=E.getCiphers,gt.listCiphers=E.listCiphers;var i=Op();gt.DiffieHellmanGroup=i.DiffieHellmanGroup,gt.createDiffieHellmanGroup=i.createDiffieHellmanGroup,gt.getDiffieHellman=i.getDiffieHellman,gt.createDiffieHellman=i.createDiffieHellman,gt.DiffieHellman=i.DiffieHellman;var _=Av();gt.createSign=_.createSign,gt.Sign=_.Sign,gt.createVerify=_.createVerify,gt.Verify=_.Verify,gt.createECDH=Fv();var y=Tv();gt.publicEncrypt=y.publicEncrypt,gt.privateEncrypt=y.privateEncrypt,gt.publicDecrypt=y.publicDecrypt,gt.privateDecrypt=y.privateDecrypt;var m=Iv();return gt.randomFill=m.randomFill,gt.randomFillSync=m.randomFillSync,gt.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
7
7
  we accept pull requests
8
- https://github.com/browserify/crypto-browserify`)},yt.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},yt}var uu;function qc(){return uu||(uu=1,(function(g){(function(x){var S=function(O){var z,L=new Float64Array(16);if(O)for(z=0;z<O.length;z++)L[z]=O[z];return L},c=function(){throw new Error("no PRNG")},E=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var _=S(),y=S([1]),m=S([56129,1]),h=S([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),d=S([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),p=S([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),v=S([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),w=S([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function M(O,z,L,I){O[z]=L>>24&255,O[z+1]=L>>16&255,O[z+2]=L>>8&255,O[z+3]=L&255,O[z+4]=I>>24&255,O[z+5]=I>>16&255,O[z+6]=I>>8&255,O[z+7]=I&255}function A(O,z,L,I,G){var ae,ye=0;for(ae=0;ae<G;ae++)ye|=O[z+ae]^L[I+ae];return(1&ye-1>>>8)-1}function B(O,z,L,I){return A(O,z,L,I,16)}function F(O,z,L,I){return A(O,z,L,I,32)}function C(O,z,L,I){for(var G=I[0]&255|(I[1]&255)<<8|(I[2]&255)<<16|(I[3]&255)<<24,ae=L[0]&255|(L[1]&255)<<8|(L[2]&255)<<16|(L[3]&255)<<24,ye=L[4]&255|(L[5]&255)<<8|(L[6]&255)<<16|(L[7]&255)<<24,ue=L[8]&255|(L[9]&255)<<8|(L[10]&255)<<16|(L[11]&255)<<24,le=L[12]&255|(L[13]&255)<<8|(L[14]&255)<<16|(L[15]&255)<<24,Je=I[4]&255|(I[5]&255)<<8|(I[6]&255)<<16|(I[7]&255)<<24,We=z[0]&255|(z[1]&255)<<8|(z[2]&255)<<16|(z[3]&255)<<24,ht=z[4]&255|(z[5]&255)<<8|(z[6]&255)<<16|(z[7]&255)<<24,Ve=z[8]&255|(z[9]&255)<<8|(z[10]&255)<<16|(z[11]&255)<<24,et=z[12]&255|(z[13]&255)<<8|(z[14]&255)<<16|(z[15]&255)<<24,tt=I[8]&255|(I[9]&255)<<8|(I[10]&255)<<16|(I[11]&255)<<24,ft=L[16]&255|(L[17]&255)<<8|(L[18]&255)<<16|(L[19]&255)<<24,at=L[20]&255|(L[21]&255)<<8|(L[22]&255)<<16|(L[23]&255)<<24,rt=L[24]&255|(L[25]&255)<<8|(L[26]&255)<<16|(L[27]&255)<<24,nt=L[28]&255|(L[29]&255)<<8|(L[30]&255)<<16|(L[31]&255)<<24,it=I[12]&255|(I[13]&255)<<8|(I[14]&255)<<16|(I[15]&255)<<24,Ze=G,Qe=ae,Ge=ye,Xe=ue,Ye=le,Ke=Je,we=We,_e=ht,$e=Ve,Le=et,He=tt,je=ft,lt=at,vt=rt,mt=nt,bt=it,ce,Mt=0;Mt<20;Mt+=2)ce=Ze+lt|0,Ye^=ce<<7|ce>>>25,ce=Ye+Ze|0,$e^=ce<<9|ce>>>23,ce=$e+Ye|0,lt^=ce<<13|ce>>>19,ce=lt+$e|0,Ze^=ce<<18|ce>>>14,ce=Ke+Qe|0,Le^=ce<<7|ce>>>25,ce=Le+Ke|0,vt^=ce<<9|ce>>>23,ce=vt+Le|0,Qe^=ce<<13|ce>>>19,ce=Qe+vt|0,Ke^=ce<<18|ce>>>14,ce=He+we|0,mt^=ce<<7|ce>>>25,ce=mt+He|0,Ge^=ce<<9|ce>>>23,ce=Ge+mt|0,we^=ce<<13|ce>>>19,ce=we+Ge|0,He^=ce<<18|ce>>>14,ce=bt+je|0,Xe^=ce<<7|ce>>>25,ce=Xe+bt|0,_e^=ce<<9|ce>>>23,ce=_e+Xe|0,je^=ce<<13|ce>>>19,ce=je+_e|0,bt^=ce<<18|ce>>>14,ce=Ze+Xe|0,Qe^=ce<<7|ce>>>25,ce=Qe+Ze|0,Ge^=ce<<9|ce>>>23,ce=Ge+Qe|0,Xe^=ce<<13|ce>>>19,ce=Xe+Ge|0,Ze^=ce<<18|ce>>>14,ce=Ke+Ye|0,we^=ce<<7|ce>>>25,ce=we+Ke|0,_e^=ce<<9|ce>>>23,ce=_e+we|0,Ye^=ce<<13|ce>>>19,ce=Ye+_e|0,Ke^=ce<<18|ce>>>14,ce=He+Le|0,je^=ce<<7|ce>>>25,ce=je+He|0,$e^=ce<<9|ce>>>23,ce=$e+je|0,Le^=ce<<13|ce>>>19,ce=Le+$e|0,He^=ce<<18|ce>>>14,ce=bt+mt|0,lt^=ce<<7|ce>>>25,ce=lt+bt|0,vt^=ce<<9|ce>>>23,ce=vt+lt|0,mt^=ce<<13|ce>>>19,ce=mt+vt|0,bt^=ce<<18|ce>>>14;Ze=Ze+G|0,Qe=Qe+ae|0,Ge=Ge+ye|0,Xe=Xe+ue|0,Ye=Ye+le|0,Ke=Ke+Je|0,we=we+We|0,_e=_e+ht|0,$e=$e+Ve|0,Le=Le+et|0,He=He+tt|0,je=je+ft|0,lt=lt+at|0,vt=vt+rt|0,mt=mt+nt|0,bt=bt+it|0,O[0]=Ze>>>0&255,O[1]=Ze>>>8&255,O[2]=Ze>>>16&255,O[3]=Ze>>>24&255,O[4]=Qe>>>0&255,O[5]=Qe>>>8&255,O[6]=Qe>>>16&255,O[7]=Qe>>>24&255,O[8]=Ge>>>0&255,O[9]=Ge>>>8&255,O[10]=Ge>>>16&255,O[11]=Ge>>>24&255,O[12]=Xe>>>0&255,O[13]=Xe>>>8&255,O[14]=Xe>>>16&255,O[15]=Xe>>>24&255,O[16]=Ye>>>0&255,O[17]=Ye>>>8&255,O[18]=Ye>>>16&255,O[19]=Ye>>>24&255,O[20]=Ke>>>0&255,O[21]=Ke>>>8&255,O[22]=Ke>>>16&255,O[23]=Ke>>>24&255,O[24]=we>>>0&255,O[25]=we>>>8&255,O[26]=we>>>16&255,O[27]=we>>>24&255,O[28]=_e>>>0&255,O[29]=_e>>>8&255,O[30]=_e>>>16&255,O[31]=_e>>>24&255,O[32]=$e>>>0&255,O[33]=$e>>>8&255,O[34]=$e>>>16&255,O[35]=$e>>>24&255,O[36]=Le>>>0&255,O[37]=Le>>>8&255,O[38]=Le>>>16&255,O[39]=Le>>>24&255,O[40]=He>>>0&255,O[41]=He>>>8&255,O[42]=He>>>16&255,O[43]=He>>>24&255,O[44]=je>>>0&255,O[45]=je>>>8&255,O[46]=je>>>16&255,O[47]=je>>>24&255,O[48]=lt>>>0&255,O[49]=lt>>>8&255,O[50]=lt>>>16&255,O[51]=lt>>>24&255,O[52]=vt>>>0&255,O[53]=vt>>>8&255,O[54]=vt>>>16&255,O[55]=vt>>>24&255,O[56]=mt>>>0&255,O[57]=mt>>>8&255,O[58]=mt>>>16&255,O[59]=mt>>>24&255,O[60]=bt>>>0&255,O[61]=bt>>>8&255,O[62]=bt>>>16&255,O[63]=bt>>>24&255}function R(O,z,L,I){for(var G=I[0]&255|(I[1]&255)<<8|(I[2]&255)<<16|(I[3]&255)<<24,ae=L[0]&255|(L[1]&255)<<8|(L[2]&255)<<16|(L[3]&255)<<24,ye=L[4]&255|(L[5]&255)<<8|(L[6]&255)<<16|(L[7]&255)<<24,ue=L[8]&255|(L[9]&255)<<8|(L[10]&255)<<16|(L[11]&255)<<24,le=L[12]&255|(L[13]&255)<<8|(L[14]&255)<<16|(L[15]&255)<<24,Je=I[4]&255|(I[5]&255)<<8|(I[6]&255)<<16|(I[7]&255)<<24,We=z[0]&255|(z[1]&255)<<8|(z[2]&255)<<16|(z[3]&255)<<24,ht=z[4]&255|(z[5]&255)<<8|(z[6]&255)<<16|(z[7]&255)<<24,Ve=z[8]&255|(z[9]&255)<<8|(z[10]&255)<<16|(z[11]&255)<<24,et=z[12]&255|(z[13]&255)<<8|(z[14]&255)<<16|(z[15]&255)<<24,tt=I[8]&255|(I[9]&255)<<8|(I[10]&255)<<16|(I[11]&255)<<24,ft=L[16]&255|(L[17]&255)<<8|(L[18]&255)<<16|(L[19]&255)<<24,at=L[20]&255|(L[21]&255)<<8|(L[22]&255)<<16|(L[23]&255)<<24,rt=L[24]&255|(L[25]&255)<<8|(L[26]&255)<<16|(L[27]&255)<<24,nt=L[28]&255|(L[29]&255)<<8|(L[30]&255)<<16|(L[31]&255)<<24,it=I[12]&255|(I[13]&255)<<8|(I[14]&255)<<16|(I[15]&255)<<24,Ze=G,Qe=ae,Ge=ye,Xe=ue,Ye=le,Ke=Je,we=We,_e=ht,$e=Ve,Le=et,He=tt,je=ft,lt=at,vt=rt,mt=nt,bt=it,ce,Mt=0;Mt<20;Mt+=2)ce=Ze+lt|0,Ye^=ce<<7|ce>>>25,ce=Ye+Ze|0,$e^=ce<<9|ce>>>23,ce=$e+Ye|0,lt^=ce<<13|ce>>>19,ce=lt+$e|0,Ze^=ce<<18|ce>>>14,ce=Ke+Qe|0,Le^=ce<<7|ce>>>25,ce=Le+Ke|0,vt^=ce<<9|ce>>>23,ce=vt+Le|0,Qe^=ce<<13|ce>>>19,ce=Qe+vt|0,Ke^=ce<<18|ce>>>14,ce=He+we|0,mt^=ce<<7|ce>>>25,ce=mt+He|0,Ge^=ce<<9|ce>>>23,ce=Ge+mt|0,we^=ce<<13|ce>>>19,ce=we+Ge|0,He^=ce<<18|ce>>>14,ce=bt+je|0,Xe^=ce<<7|ce>>>25,ce=Xe+bt|0,_e^=ce<<9|ce>>>23,ce=_e+Xe|0,je^=ce<<13|ce>>>19,ce=je+_e|0,bt^=ce<<18|ce>>>14,ce=Ze+Xe|0,Qe^=ce<<7|ce>>>25,ce=Qe+Ze|0,Ge^=ce<<9|ce>>>23,ce=Ge+Qe|0,Xe^=ce<<13|ce>>>19,ce=Xe+Ge|0,Ze^=ce<<18|ce>>>14,ce=Ke+Ye|0,we^=ce<<7|ce>>>25,ce=we+Ke|0,_e^=ce<<9|ce>>>23,ce=_e+we|0,Ye^=ce<<13|ce>>>19,ce=Ye+_e|0,Ke^=ce<<18|ce>>>14,ce=He+Le|0,je^=ce<<7|ce>>>25,ce=je+He|0,$e^=ce<<9|ce>>>23,ce=$e+je|0,Le^=ce<<13|ce>>>19,ce=Le+$e|0,He^=ce<<18|ce>>>14,ce=bt+mt|0,lt^=ce<<7|ce>>>25,ce=lt+bt|0,vt^=ce<<9|ce>>>23,ce=vt+lt|0,mt^=ce<<13|ce>>>19,ce=mt+vt|0,bt^=ce<<18|ce>>>14;O[0]=Ze>>>0&255,O[1]=Ze>>>8&255,O[2]=Ze>>>16&255,O[3]=Ze>>>24&255,O[4]=Ke>>>0&255,O[5]=Ke>>>8&255,O[6]=Ke>>>16&255,O[7]=Ke>>>24&255,O[8]=He>>>0&255,O[9]=He>>>8&255,O[10]=He>>>16&255,O[11]=He>>>24&255,O[12]=bt>>>0&255,O[13]=bt>>>8&255,O[14]=bt>>>16&255,O[15]=bt>>>24&255,O[16]=we>>>0&255,O[17]=we>>>8&255,O[18]=we>>>16&255,O[19]=we>>>24&255,O[20]=_e>>>0&255,O[21]=_e>>>8&255,O[22]=_e>>>16&255,O[23]=_e>>>24&255,O[24]=$e>>>0&255,O[25]=$e>>>8&255,O[26]=$e>>>16&255,O[27]=$e>>>24&255,O[28]=Le>>>0&255,O[29]=Le>>>8&255,O[30]=Le>>>16&255,O[31]=Le>>>24&255}function D(O,z,L,I){C(O,z,L,I)}function K(O,z,L,I){R(O,z,L,I)}var q=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Y(O,z,L,I,G,ae,ye){var ue=new Uint8Array(16),le=new Uint8Array(64),Je,We;for(We=0;We<16;We++)ue[We]=0;for(We=0;We<8;We++)ue[We]=ae[We];for(;G>=64;){for(D(le,ue,ye,q),We=0;We<64;We++)O[z+We]=L[I+We]^le[We];for(Je=1,We=8;We<16;We++)Je=Je+(ue[We]&255)|0,ue[We]=Je&255,Je>>>=8;G-=64,z+=64,I+=64}if(G>0)for(D(le,ue,ye,q),We=0;We<G;We++)O[z+We]=L[I+We]^le[We];return 0}function J(O,z,L,I,G){var ae=new Uint8Array(16),ye=new Uint8Array(64),ue,le;for(le=0;le<16;le++)ae[le]=0;for(le=0;le<8;le++)ae[le]=I[le];for(;L>=64;){for(D(ye,ae,G,q),le=0;le<64;le++)O[z+le]=ye[le];for(ue=1,le=8;le<16;le++)ue=ue+(ae[le]&255)|0,ae[le]=ue&255,ue>>>=8;L-=64,z+=64}if(L>0)for(D(ye,ae,G,q),le=0;le<L;le++)O[z+le]=ye[le];return 0}function V(O,z,L,I,G){var ae=new Uint8Array(32);K(ae,I,G,q);for(var ye=new Uint8Array(8),ue=0;ue<8;ue++)ye[ue]=I[ue+16];return J(O,z,L,ye,ae)}function re(O,z,L,I,G,ae,ye){var ue=new Uint8Array(32);K(ue,ae,ye,q);for(var le=new Uint8Array(8),Je=0;Je<8;Je++)le[Je]=ae[Je+16];return Y(O,z,L,I,G,le,ue)}var u=function(O){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var z,L,I,G,ae,ye,ue,le;z=O[0]&255|(O[1]&255)<<8,this.r[0]=z&8191,L=O[2]&255|(O[3]&255)<<8,this.r[1]=(z>>>13|L<<3)&8191,I=O[4]&255|(O[5]&255)<<8,this.r[2]=(L>>>10|I<<6)&7939,G=O[6]&255|(O[7]&255)<<8,this.r[3]=(I>>>7|G<<9)&8191,ae=O[8]&255|(O[9]&255)<<8,this.r[4]=(G>>>4|ae<<12)&255,this.r[5]=ae>>>1&8190,ye=O[10]&255|(O[11]&255)<<8,this.r[6]=(ae>>>14|ye<<2)&8191,ue=O[12]&255|(O[13]&255)<<8,this.r[7]=(ye>>>11|ue<<5)&8065,le=O[14]&255|(O[15]&255)<<8,this.r[8]=(ue>>>8|le<<8)&8191,this.r[9]=le>>>5&127,this.pad[0]=O[16]&255|(O[17]&255)<<8,this.pad[1]=O[18]&255|(O[19]&255)<<8,this.pad[2]=O[20]&255|(O[21]&255)<<8,this.pad[3]=O[22]&255|(O[23]&255)<<8,this.pad[4]=O[24]&255|(O[25]&255)<<8,this.pad[5]=O[26]&255|(O[27]&255)<<8,this.pad[6]=O[28]&255|(O[29]&255)<<8,this.pad[7]=O[30]&255|(O[31]&255)<<8};u.prototype.blocks=function(O,z,L){for(var I=this.fin?0:2048,G,ae,ye,ue,le,Je,We,ht,Ve,et,tt,ft,at,rt,nt,it,Ze,Qe,Ge,Xe=this.h[0],Ye=this.h[1],Ke=this.h[2],we=this.h[3],_e=this.h[4],$e=this.h[5],Le=this.h[6],He=this.h[7],je=this.h[8],lt=this.h[9],vt=this.r[0],mt=this.r[1],bt=this.r[2],ce=this.r[3],Mt=this.r[4],St=this.r[5],Bt=this.r[6],xt=this.r[7],Et=this.r[8],At=this.r[9];L>=16;)G=O[z+0]&255|(O[z+1]&255)<<8,Xe+=G&8191,ae=O[z+2]&255|(O[z+3]&255)<<8,Ye+=(G>>>13|ae<<3)&8191,ye=O[z+4]&255|(O[z+5]&255)<<8,Ke+=(ae>>>10|ye<<6)&8191,ue=O[z+6]&255|(O[z+7]&255)<<8,we+=(ye>>>7|ue<<9)&8191,le=O[z+8]&255|(O[z+9]&255)<<8,_e+=(ue>>>4|le<<12)&8191,$e+=le>>>1&8191,Je=O[z+10]&255|(O[z+11]&255)<<8,Le+=(le>>>14|Je<<2)&8191,We=O[z+12]&255|(O[z+13]&255)<<8,He+=(Je>>>11|We<<5)&8191,ht=O[z+14]&255|(O[z+15]&255)<<8,je+=(We>>>8|ht<<8)&8191,lt+=ht>>>5|I,Ve=0,et=Ve,et+=Xe*vt,et+=Ye*(5*At),et+=Ke*(5*Et),et+=we*(5*xt),et+=_e*(5*Bt),Ve=et>>>13,et&=8191,et+=$e*(5*St),et+=Le*(5*Mt),et+=He*(5*ce),et+=je*(5*bt),et+=lt*(5*mt),Ve+=et>>>13,et&=8191,tt=Ve,tt+=Xe*mt,tt+=Ye*vt,tt+=Ke*(5*At),tt+=we*(5*Et),tt+=_e*(5*xt),Ve=tt>>>13,tt&=8191,tt+=$e*(5*Bt),tt+=Le*(5*St),tt+=He*(5*Mt),tt+=je*(5*ce),tt+=lt*(5*bt),Ve+=tt>>>13,tt&=8191,ft=Ve,ft+=Xe*bt,ft+=Ye*mt,ft+=Ke*vt,ft+=we*(5*At),ft+=_e*(5*Et),Ve=ft>>>13,ft&=8191,ft+=$e*(5*xt),ft+=Le*(5*Bt),ft+=He*(5*St),ft+=je*(5*Mt),ft+=lt*(5*ce),Ve+=ft>>>13,ft&=8191,at=Ve,at+=Xe*ce,at+=Ye*bt,at+=Ke*mt,at+=we*vt,at+=_e*(5*At),Ve=at>>>13,at&=8191,at+=$e*(5*Et),at+=Le*(5*xt),at+=He*(5*Bt),at+=je*(5*St),at+=lt*(5*Mt),Ve+=at>>>13,at&=8191,rt=Ve,rt+=Xe*Mt,rt+=Ye*ce,rt+=Ke*bt,rt+=we*mt,rt+=_e*vt,Ve=rt>>>13,rt&=8191,rt+=$e*(5*At),rt+=Le*(5*Et),rt+=He*(5*xt),rt+=je*(5*Bt),rt+=lt*(5*St),Ve+=rt>>>13,rt&=8191,nt=Ve,nt+=Xe*St,nt+=Ye*Mt,nt+=Ke*ce,nt+=we*bt,nt+=_e*mt,Ve=nt>>>13,nt&=8191,nt+=$e*vt,nt+=Le*(5*At),nt+=He*(5*Et),nt+=je*(5*xt),nt+=lt*(5*Bt),Ve+=nt>>>13,nt&=8191,it=Ve,it+=Xe*Bt,it+=Ye*St,it+=Ke*Mt,it+=we*ce,it+=_e*bt,Ve=it>>>13,it&=8191,it+=$e*mt,it+=Le*vt,it+=He*(5*At),it+=je*(5*Et),it+=lt*(5*xt),Ve+=it>>>13,it&=8191,Ze=Ve,Ze+=Xe*xt,Ze+=Ye*Bt,Ze+=Ke*St,Ze+=we*Mt,Ze+=_e*ce,Ve=Ze>>>13,Ze&=8191,Ze+=$e*bt,Ze+=Le*mt,Ze+=He*vt,Ze+=je*(5*At),Ze+=lt*(5*Et),Ve+=Ze>>>13,Ze&=8191,Qe=Ve,Qe+=Xe*Et,Qe+=Ye*xt,Qe+=Ke*Bt,Qe+=we*St,Qe+=_e*Mt,Ve=Qe>>>13,Qe&=8191,Qe+=$e*ce,Qe+=Le*bt,Qe+=He*mt,Qe+=je*vt,Qe+=lt*(5*At),Ve+=Qe>>>13,Qe&=8191,Ge=Ve,Ge+=Xe*At,Ge+=Ye*Et,Ge+=Ke*xt,Ge+=we*Bt,Ge+=_e*St,Ve=Ge>>>13,Ge&=8191,Ge+=$e*Mt,Ge+=Le*ce,Ge+=He*bt,Ge+=je*mt,Ge+=lt*vt,Ve+=Ge>>>13,Ge&=8191,Ve=(Ve<<2)+Ve|0,Ve=Ve+et|0,et=Ve&8191,Ve=Ve>>>13,tt+=Ve,Xe=et,Ye=tt,Ke=ft,we=at,_e=rt,$e=nt,Le=it,He=Ze,je=Qe,lt=Ge,z+=16,L-=16;this.h[0]=Xe,this.h[1]=Ye,this.h[2]=Ke,this.h[3]=we,this.h[4]=_e,this.h[5]=$e,this.h[6]=Le,this.h[7]=He,this.h[8]=je,this.h[9]=lt},u.prototype.finish=function(O,z){var L=new Uint16Array(10),I,G,ae,ye;if(this.leftover){for(ye=this.leftover,this.buffer[ye++]=1;ye<16;ye++)this.buffer[ye]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(I=this.h[1]>>>13,this.h[1]&=8191,ye=2;ye<10;ye++)this.h[ye]+=I,I=this.h[ye]>>>13,this.h[ye]&=8191;for(this.h[0]+=I*5,I=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=I,I=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=I,L[0]=this.h[0]+5,I=L[0]>>>13,L[0]&=8191,ye=1;ye<10;ye++)L[ye]=this.h[ye]+I,I=L[ye]>>>13,L[ye]&=8191;for(L[9]-=8192,G=(I^1)-1,ye=0;ye<10;ye++)L[ye]&=G;for(G=~G,ye=0;ye<10;ye++)this.h[ye]=this.h[ye]&G|L[ye];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,ae=this.h[0]+this.pad[0],this.h[0]=ae&65535,ye=1;ye<8;ye++)ae=(this.h[ye]+this.pad[ye]|0)+(ae>>>16)|0,this.h[ye]=ae&65535;O[z+0]=this.h[0]>>>0&255,O[z+1]=this.h[0]>>>8&255,O[z+2]=this.h[1]>>>0&255,O[z+3]=this.h[1]>>>8&255,O[z+4]=this.h[2]>>>0&255,O[z+5]=this.h[2]>>>8&255,O[z+6]=this.h[3]>>>0&255,O[z+7]=this.h[3]>>>8&255,O[z+8]=this.h[4]>>>0&255,O[z+9]=this.h[4]>>>8&255,O[z+10]=this.h[5]>>>0&255,O[z+11]=this.h[5]>>>8&255,O[z+12]=this.h[6]>>>0&255,O[z+13]=this.h[6]>>>8&255,O[z+14]=this.h[7]>>>0&255,O[z+15]=this.h[7]>>>8&255},u.prototype.update=function(O,z,L){var I,G;if(this.leftover){for(G=16-this.leftover,G>L&&(G=L),I=0;I<G;I++)this.buffer[this.leftover+I]=O[z+I];if(L-=G,z+=G,this.leftover+=G,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(L>=16&&(G=L-L%16,this.blocks(O,z,G),z+=G,L-=G),L){for(I=0;I<L;I++)this.buffer[this.leftover+I]=O[z+I];this.leftover+=L}};function e(O,z,L,I,G,ae){var ye=new u(ae);return ye.update(L,I,G),ye.finish(O,z),0}function r(O,z,L,I,G,ae){var ye=new Uint8Array(16);return e(ye,0,L,I,G,ae),B(O,z,ye,0)}function n(O,z,L,I,G){var ae;if(L<32)return-1;for(re(O,0,z,0,L,I,G),e(O,16,O,32,L-32,O),ae=0;ae<16;ae++)O[ae]=0;return 0}function a(O,z,L,I,G){var ae,ye=new Uint8Array(32);if(L<32||(V(ye,0,32,I,G),r(z,16,z,32,L-32,ye)!==0))return-1;for(re(O,0,z,0,L,I,G),ae=0;ae<32;ae++)O[ae]=0;return 0}function o(O,z){var L;for(L=0;L<16;L++)O[L]=z[L]|0}function l(O){var z,L,I=1;for(z=0;z<16;z++)L=O[z]+I+65535,I=Math.floor(L/65536),O[z]=L-I*65536;O[0]+=I-1+37*(I-1)}function b(O,z,L){for(var I,G=~(L-1),ae=0;ae<16;ae++)I=G&(O[ae]^z[ae]),O[ae]^=I,z[ae]^=I}function f(O,z){var L,I,G,ae=S(),ye=S();for(L=0;L<16;L++)ye[L]=z[L];for(l(ye),l(ye),l(ye),I=0;I<2;I++){for(ae[0]=ye[0]-65517,L=1;L<15;L++)ae[L]=ye[L]-65535-(ae[L-1]>>16&1),ae[L-1]&=65535;ae[15]=ye[15]-32767-(ae[14]>>16&1),G=ae[15]>>16&1,ae[14]&=65535,b(ye,ae,1-G)}for(L=0;L<16;L++)O[2*L]=ye[L]&255,O[2*L+1]=ye[L]>>8}function t(O,z){var L=new Uint8Array(32),I=new Uint8Array(32);return f(L,O),f(I,z),F(L,0,I,0)}function s(O){var z=new Uint8Array(32);return f(z,O),z[0]&1}function $(O,z){var L;for(L=0;L<16;L++)O[L]=z[2*L]+(z[2*L+1]<<8);O[15]&=32767}function W(O,z,L){for(var I=0;I<16;I++)O[I]=z[I]+L[I]}function U(O,z,L){for(var I=0;I<16;I++)O[I]=z[I]-L[I]}function Q(O,z,L){var I,G,ae=0,ye=0,ue=0,le=0,Je=0,We=0,ht=0,Ve=0,et=0,tt=0,ft=0,at=0,rt=0,nt=0,it=0,Ze=0,Qe=0,Ge=0,Xe=0,Ye=0,Ke=0,we=0,_e=0,$e=0,Le=0,He=0,je=0,lt=0,vt=0,mt=0,bt=0,ce=L[0],Mt=L[1],St=L[2],Bt=L[3],xt=L[4],Et=L[5],At=L[6],Nt=L[7],Ft=L[8],Rt=L[9],Tt=L[10],It=L[11],qt=L[12],Ut=L[13],Lt=L[14],Ht=L[15];I=z[0],ae+=I*ce,ye+=I*Mt,ue+=I*St,le+=I*Bt,Je+=I*xt,We+=I*Et,ht+=I*At,Ve+=I*Nt,et+=I*Ft,tt+=I*Rt,ft+=I*Tt,at+=I*It,rt+=I*qt,nt+=I*Ut,it+=I*Lt,Ze+=I*Ht,I=z[1],ye+=I*ce,ue+=I*Mt,le+=I*St,Je+=I*Bt,We+=I*xt,ht+=I*Et,Ve+=I*At,et+=I*Nt,tt+=I*Ft,ft+=I*Rt,at+=I*Tt,rt+=I*It,nt+=I*qt,it+=I*Ut,Ze+=I*Lt,Qe+=I*Ht,I=z[2],ue+=I*ce,le+=I*Mt,Je+=I*St,We+=I*Bt,ht+=I*xt,Ve+=I*Et,et+=I*At,tt+=I*Nt,ft+=I*Ft,at+=I*Rt,rt+=I*Tt,nt+=I*It,it+=I*qt,Ze+=I*Ut,Qe+=I*Lt,Ge+=I*Ht,I=z[3],le+=I*ce,Je+=I*Mt,We+=I*St,ht+=I*Bt,Ve+=I*xt,et+=I*Et,tt+=I*At,ft+=I*Nt,at+=I*Ft,rt+=I*Rt,nt+=I*Tt,it+=I*It,Ze+=I*qt,Qe+=I*Ut,Ge+=I*Lt,Xe+=I*Ht,I=z[4],Je+=I*ce,We+=I*Mt,ht+=I*St,Ve+=I*Bt,et+=I*xt,tt+=I*Et,ft+=I*At,at+=I*Nt,rt+=I*Ft,nt+=I*Rt,it+=I*Tt,Ze+=I*It,Qe+=I*qt,Ge+=I*Ut,Xe+=I*Lt,Ye+=I*Ht,I=z[5],We+=I*ce,ht+=I*Mt,Ve+=I*St,et+=I*Bt,tt+=I*xt,ft+=I*Et,at+=I*At,rt+=I*Nt,nt+=I*Ft,it+=I*Rt,Ze+=I*Tt,Qe+=I*It,Ge+=I*qt,Xe+=I*Ut,Ye+=I*Lt,Ke+=I*Ht,I=z[6],ht+=I*ce,Ve+=I*Mt,et+=I*St,tt+=I*Bt,ft+=I*xt,at+=I*Et,rt+=I*At,nt+=I*Nt,it+=I*Ft,Ze+=I*Rt,Qe+=I*Tt,Ge+=I*It,Xe+=I*qt,Ye+=I*Ut,Ke+=I*Lt,we+=I*Ht,I=z[7],Ve+=I*ce,et+=I*Mt,tt+=I*St,ft+=I*Bt,at+=I*xt,rt+=I*Et,nt+=I*At,it+=I*Nt,Ze+=I*Ft,Qe+=I*Rt,Ge+=I*Tt,Xe+=I*It,Ye+=I*qt,Ke+=I*Ut,we+=I*Lt,_e+=I*Ht,I=z[8],et+=I*ce,tt+=I*Mt,ft+=I*St,at+=I*Bt,rt+=I*xt,nt+=I*Et,it+=I*At,Ze+=I*Nt,Qe+=I*Ft,Ge+=I*Rt,Xe+=I*Tt,Ye+=I*It,Ke+=I*qt,we+=I*Ut,_e+=I*Lt,$e+=I*Ht,I=z[9],tt+=I*ce,ft+=I*Mt,at+=I*St,rt+=I*Bt,nt+=I*xt,it+=I*Et,Ze+=I*At,Qe+=I*Nt,Ge+=I*Ft,Xe+=I*Rt,Ye+=I*Tt,Ke+=I*It,we+=I*qt,_e+=I*Ut,$e+=I*Lt,Le+=I*Ht,I=z[10],ft+=I*ce,at+=I*Mt,rt+=I*St,nt+=I*Bt,it+=I*xt,Ze+=I*Et,Qe+=I*At,Ge+=I*Nt,Xe+=I*Ft,Ye+=I*Rt,Ke+=I*Tt,we+=I*It,_e+=I*qt,$e+=I*Ut,Le+=I*Lt,He+=I*Ht,I=z[11],at+=I*ce,rt+=I*Mt,nt+=I*St,it+=I*Bt,Ze+=I*xt,Qe+=I*Et,Ge+=I*At,Xe+=I*Nt,Ye+=I*Ft,Ke+=I*Rt,we+=I*Tt,_e+=I*It,$e+=I*qt,Le+=I*Ut,He+=I*Lt,je+=I*Ht,I=z[12],rt+=I*ce,nt+=I*Mt,it+=I*St,Ze+=I*Bt,Qe+=I*xt,Ge+=I*Et,Xe+=I*At,Ye+=I*Nt,Ke+=I*Ft,we+=I*Rt,_e+=I*Tt,$e+=I*It,Le+=I*qt,He+=I*Ut,je+=I*Lt,lt+=I*Ht,I=z[13],nt+=I*ce,it+=I*Mt,Ze+=I*St,Qe+=I*Bt,Ge+=I*xt,Xe+=I*Et,Ye+=I*At,Ke+=I*Nt,we+=I*Ft,_e+=I*Rt,$e+=I*Tt,Le+=I*It,He+=I*qt,je+=I*Ut,lt+=I*Lt,vt+=I*Ht,I=z[14],it+=I*ce,Ze+=I*Mt,Qe+=I*St,Ge+=I*Bt,Xe+=I*xt,Ye+=I*Et,Ke+=I*At,we+=I*Nt,_e+=I*Ft,$e+=I*Rt,Le+=I*Tt,He+=I*It,je+=I*qt,lt+=I*Ut,vt+=I*Lt,mt+=I*Ht,I=z[15],Ze+=I*ce,Qe+=I*Mt,Ge+=I*St,Xe+=I*Bt,Ye+=I*xt,Ke+=I*Et,we+=I*At,_e+=I*Nt,$e+=I*Ft,Le+=I*Rt,He+=I*Tt,je+=I*It,lt+=I*qt,vt+=I*Ut,mt+=I*Lt,bt+=I*Ht,ae+=38*Qe,ye+=38*Ge,ue+=38*Xe,le+=38*Ye,Je+=38*Ke,We+=38*we,ht+=38*_e,Ve+=38*$e,et+=38*Le,tt+=38*He,ft+=38*je,at+=38*lt,rt+=38*vt,nt+=38*mt,it+=38*bt,G=1,I=ae+G+65535,G=Math.floor(I/65536),ae=I-G*65536,I=ye+G+65535,G=Math.floor(I/65536),ye=I-G*65536,I=ue+G+65535,G=Math.floor(I/65536),ue=I-G*65536,I=le+G+65535,G=Math.floor(I/65536),le=I-G*65536,I=Je+G+65535,G=Math.floor(I/65536),Je=I-G*65536,I=We+G+65535,G=Math.floor(I/65536),We=I-G*65536,I=ht+G+65535,G=Math.floor(I/65536),ht=I-G*65536,I=Ve+G+65535,G=Math.floor(I/65536),Ve=I-G*65536,I=et+G+65535,G=Math.floor(I/65536),et=I-G*65536,I=tt+G+65535,G=Math.floor(I/65536),tt=I-G*65536,I=ft+G+65535,G=Math.floor(I/65536),ft=I-G*65536,I=at+G+65535,G=Math.floor(I/65536),at=I-G*65536,I=rt+G+65535,G=Math.floor(I/65536),rt=I-G*65536,I=nt+G+65535,G=Math.floor(I/65536),nt=I-G*65536,I=it+G+65535,G=Math.floor(I/65536),it=I-G*65536,I=Ze+G+65535,G=Math.floor(I/65536),Ze=I-G*65536,ae+=G-1+37*(G-1),G=1,I=ae+G+65535,G=Math.floor(I/65536),ae=I-G*65536,I=ye+G+65535,G=Math.floor(I/65536),ye=I-G*65536,I=ue+G+65535,G=Math.floor(I/65536),ue=I-G*65536,I=le+G+65535,G=Math.floor(I/65536),le=I-G*65536,I=Je+G+65535,G=Math.floor(I/65536),Je=I-G*65536,I=We+G+65535,G=Math.floor(I/65536),We=I-G*65536,I=ht+G+65535,G=Math.floor(I/65536),ht=I-G*65536,I=Ve+G+65535,G=Math.floor(I/65536),Ve=I-G*65536,I=et+G+65535,G=Math.floor(I/65536),et=I-G*65536,I=tt+G+65535,G=Math.floor(I/65536),tt=I-G*65536,I=ft+G+65535,G=Math.floor(I/65536),ft=I-G*65536,I=at+G+65535,G=Math.floor(I/65536),at=I-G*65536,I=rt+G+65535,G=Math.floor(I/65536),rt=I-G*65536,I=nt+G+65535,G=Math.floor(I/65536),nt=I-G*65536,I=it+G+65535,G=Math.floor(I/65536),it=I-G*65536,I=Ze+G+65535,G=Math.floor(I/65536),Ze=I-G*65536,ae+=G-1+37*(G-1),O[0]=ae,O[1]=ye,O[2]=ue,O[3]=le,O[4]=Je,O[5]=We,O[6]=ht,O[7]=Ve,O[8]=et,O[9]=tt,O[10]=ft,O[11]=at,O[12]=rt,O[13]=nt,O[14]=it,O[15]=Ze}function X(O,z){Q(O,z,z)}function P(O,z){var L=S(),I;for(I=0;I<16;I++)L[I]=z[I];for(I=253;I>=0;I--)X(L,L),I!==2&&I!==4&&Q(L,L,z);for(I=0;I<16;I++)O[I]=L[I]}function H(O,z){var L=S(),I;for(I=0;I<16;I++)L[I]=z[I];for(I=250;I>=0;I--)X(L,L),I!==1&&Q(L,L,z);for(I=0;I<16;I++)O[I]=L[I]}function Z(O,z,L){var I=new Uint8Array(32),G=new Float64Array(80),ae,ye,ue=S(),le=S(),Je=S(),We=S(),ht=S(),Ve=S();for(ye=0;ye<31;ye++)I[ye]=z[ye];for(I[31]=z[31]&127|64,I[0]&=248,$(G,L),ye=0;ye<16;ye++)le[ye]=G[ye],We[ye]=ue[ye]=Je[ye]=0;for(ue[0]=We[0]=1,ye=254;ye>=0;--ye)ae=I[ye>>>3]>>>(ye&7)&1,b(ue,le,ae),b(Je,We,ae),W(ht,ue,Je),U(ue,ue,Je),W(Je,le,We),U(le,le,We),X(We,ht),X(Ve,ue),Q(ue,Je,ue),Q(Je,le,ht),W(ht,ue,Je),U(ue,ue,Je),X(le,ue),U(Je,We,Ve),Q(ue,Je,m),W(ue,ue,We),Q(Je,Je,ue),Q(ue,We,Ve),Q(We,le,G),X(le,ht),b(ue,le,ae),b(Je,We,ae);for(ye=0;ye<16;ye++)G[ye+16]=ue[ye],G[ye+32]=Je[ye],G[ye+48]=le[ye],G[ye+64]=We[ye];var et=G.subarray(32),tt=G.subarray(16);return P(et,et),Q(tt,tt,et),f(O,tt),0}function k(O,z){return Z(O,z,i)}function N(O,z){return c(z,32),k(O,z)}function T(O,z,L){var I=new Uint8Array(32);return Z(I,L,z),K(O,E,I,q)}var j=n,fe=a;function ee(O,z,L,I,G,ae){var ye=new Uint8Array(32);return T(ye,G,ae),j(O,z,L,I,ye)}function te(O,z,L,I,G,ae){var ye=new Uint8Array(32);return T(ye,G,ae),fe(O,z,L,I,ye)}var he=[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 ie(O,z,L,I){for(var G=new Int32Array(16),ae=new Int32Array(16),ye,ue,le,Je,We,ht,Ve,et,tt,ft,at,rt,nt,it,Ze,Qe,Ge,Xe,Ye,Ke,we,_e,$e,Le,He,je,lt=O[0],vt=O[1],mt=O[2],bt=O[3],ce=O[4],Mt=O[5],St=O[6],Bt=O[7],xt=z[0],Et=z[1],At=z[2],Nt=z[3],Ft=z[4],Rt=z[5],Tt=z[6],It=z[7],qt=0;I>=128;){for(Ye=0;Ye<16;Ye++)Ke=8*Ye+qt,G[Ye]=L[Ke+0]<<24|L[Ke+1]<<16|L[Ke+2]<<8|L[Ke+3],ae[Ye]=L[Ke+4]<<24|L[Ke+5]<<16|L[Ke+6]<<8|L[Ke+7];for(Ye=0;Ye<80;Ye++)if(ye=lt,ue=vt,le=mt,Je=bt,We=ce,ht=Mt,Ve=St,et=Bt,tt=xt,ft=Et,at=At,rt=Nt,nt=Ft,it=Rt,Ze=Tt,Qe=It,we=Bt,_e=It,$e=_e&65535,Le=_e>>>16,He=we&65535,je=we>>>16,we=(ce>>>14|Ft<<18)^(ce>>>18|Ft<<14)^(Ft>>>9|ce<<23),_e=(Ft>>>14|ce<<18)^(Ft>>>18|ce<<14)^(ce>>>9|Ft<<23),$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,we=ce&Mt^~ce&St,_e=Ft&Rt^~Ft&Tt,$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,we=he[Ye*2],_e=he[Ye*2+1],$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,we=G[Ye%16],_e=ae[Ye%16],$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,Ge=He&65535|je<<16,Xe=$e&65535|Le<<16,we=Ge,_e=Xe,$e=_e&65535,Le=_e>>>16,He=we&65535,je=we>>>16,we=(lt>>>28|xt<<4)^(xt>>>2|lt<<30)^(xt>>>7|lt<<25),_e=(xt>>>28|lt<<4)^(lt>>>2|xt<<30)^(lt>>>7|xt<<25),$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,we=lt&vt^lt&mt^vt&mt,_e=xt&Et^xt&At^Et&At,$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,et=He&65535|je<<16,Qe=$e&65535|Le<<16,we=Je,_e=rt,$e=_e&65535,Le=_e>>>16,He=we&65535,je=we>>>16,we=Ge,_e=Xe,$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,Je=He&65535|je<<16,rt=$e&65535|Le<<16,vt=ye,mt=ue,bt=le,ce=Je,Mt=We,St=ht,Bt=Ve,lt=et,Et=tt,At=ft,Nt=at,Ft=rt,Rt=nt,Tt=it,It=Ze,xt=Qe,Ye%16===15)for(Ke=0;Ke<16;Ke++)we=G[Ke],_e=ae[Ke],$e=_e&65535,Le=_e>>>16,He=we&65535,je=we>>>16,we=G[(Ke+9)%16],_e=ae[(Ke+9)%16],$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Ge=G[(Ke+1)%16],Xe=ae[(Ke+1)%16],we=(Ge>>>1|Xe<<31)^(Ge>>>8|Xe<<24)^Ge>>>7,_e=(Xe>>>1|Ge<<31)^(Xe>>>8|Ge<<24)^(Xe>>>7|Ge<<25),$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Ge=G[(Ke+14)%16],Xe=ae[(Ke+14)%16],we=(Ge>>>19|Xe<<13)^(Xe>>>29|Ge<<3)^Ge>>>6,_e=(Xe>>>19|Ge<<13)^(Ge>>>29|Xe<<3)^(Xe>>>6|Ge<<26),$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,G[Ke]=He&65535|je<<16,ae[Ke]=$e&65535|Le<<16;we=lt,_e=xt,$e=_e&65535,Le=_e>>>16,He=we&65535,je=we>>>16,we=O[0],_e=z[0],$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[0]=lt=He&65535|je<<16,z[0]=xt=$e&65535|Le<<16,we=vt,_e=Et,$e=_e&65535,Le=_e>>>16,He=we&65535,je=we>>>16,we=O[1],_e=z[1],$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[1]=vt=He&65535|je<<16,z[1]=Et=$e&65535|Le<<16,we=mt,_e=At,$e=_e&65535,Le=_e>>>16,He=we&65535,je=we>>>16,we=O[2],_e=z[2],$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[2]=mt=He&65535|je<<16,z[2]=At=$e&65535|Le<<16,we=bt,_e=Nt,$e=_e&65535,Le=_e>>>16,He=we&65535,je=we>>>16,we=O[3],_e=z[3],$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[3]=bt=He&65535|je<<16,z[3]=Nt=$e&65535|Le<<16,we=ce,_e=Ft,$e=_e&65535,Le=_e>>>16,He=we&65535,je=we>>>16,we=O[4],_e=z[4],$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[4]=ce=He&65535|je<<16,z[4]=Ft=$e&65535|Le<<16,we=Mt,_e=Rt,$e=_e&65535,Le=_e>>>16,He=we&65535,je=we>>>16,we=O[5],_e=z[5],$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[5]=Mt=He&65535|je<<16,z[5]=Rt=$e&65535|Le<<16,we=St,_e=Tt,$e=_e&65535,Le=_e>>>16,He=we&65535,je=we>>>16,we=O[6],_e=z[6],$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[6]=St=He&65535|je<<16,z[6]=Tt=$e&65535|Le<<16,we=Bt,_e=It,$e=_e&65535,Le=_e>>>16,He=we&65535,je=we>>>16,we=O[7],_e=z[7],$e+=_e&65535,Le+=_e>>>16,He+=we&65535,je+=we>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[7]=Bt=He&65535|je<<16,z[7]=It=$e&65535|Le<<16,qt+=128,I-=128}return I}function ne(O,z,L){var I=new Int32Array(8),G=new Int32Array(8),ae=new Uint8Array(256),ye,ue=L;for(I[0]=1779033703,I[1]=3144134277,I[2]=1013904242,I[3]=2773480762,I[4]=1359893119,I[5]=2600822924,I[6]=528734635,I[7]=1541459225,G[0]=4089235720,G[1]=2227873595,G[2]=4271175723,G[3]=1595750129,G[4]=2917565137,G[5]=725511199,G[6]=4215389547,G[7]=327033209,ie(I,G,z,L),L%=128,ye=0;ye<L;ye++)ae[ye]=z[ue-L+ye];for(ae[L]=128,L=256-128*(L<112?1:0),ae[L-9]=0,M(ae,L-8,ue/536870912|0,ue<<3),ie(I,G,ae,L),ye=0;ye<8;ye++)M(O,8*ye,I[ye],G[ye]);return 0}function pe(O,z){var L=S(),I=S(),G=S(),ae=S(),ye=S(),ue=S(),le=S(),Je=S(),We=S();U(L,O[1],O[0]),U(We,z[1],z[0]),Q(L,L,We),W(I,O[0],O[1]),W(We,z[0],z[1]),Q(I,I,We),Q(G,O[3],z[3]),Q(G,G,d),Q(ae,O[2],z[2]),W(ae,ae,ae),U(ye,I,L),U(ue,ae,G),W(le,ae,G),W(Je,I,L),Q(O[0],ye,ue),Q(O[1],Je,le),Q(O[2],le,ue),Q(O[3],ye,Je)}function oe(O,z,L){var I;for(I=0;I<4;I++)b(O[I],z[I],L)}function se(O,z){var L=S(),I=S(),G=S();P(G,z[2]),Q(L,z[0],G),Q(I,z[1],G),f(O,I),O[31]^=s(L)<<7}function Re(O,z,L){var I,G;for(o(O[0],_),o(O[1],y),o(O[2],y),o(O[3],_),G=255;G>=0;--G)I=L[G/8|0]>>(G&7)&1,oe(O,z,I),pe(z,O),pe(O,O),oe(O,z,I)}function de(O,z){var L=[S(),S(),S(),S()];o(L[0],p),o(L[1],v),o(L[2],y),Q(L[3],p,v),Re(O,L,z)}function ve(O,z,L){var I=new Uint8Array(64),G=[S(),S(),S(),S()],ae;for(L||c(z,32),ne(I,z,32),I[0]&=248,I[31]&=127,I[31]|=64,de(G,I),se(O,G),ae=0;ae<32;ae++)z[ae+32]=O[ae];return 0}var ot=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function be(O,z){var L,I,G,ae;for(I=63;I>=32;--I){for(L=0,G=I-32,ae=I-12;G<ae;++G)z[G]+=L-16*z[I]*ot[G-(I-32)],L=Math.floor((z[G]+128)/256),z[G]-=L*256;z[G]+=L,z[I]=0}for(L=0,G=0;G<32;G++)z[G]+=L-(z[31]>>4)*ot[G],L=z[G]>>8,z[G]&=255;for(G=0;G<32;G++)z[G]-=L*ot[G];for(I=0;I<32;I++)z[I+1]+=z[I]>>8,O[I]=z[I]&255}function me(O){var z=new Float64Array(64),L;for(L=0;L<64;L++)z[L]=O[L];for(L=0;L<64;L++)O[L]=0;be(O,z)}function ut(O,z,L,I){var G=new Uint8Array(64),ae=new Uint8Array(64),ye=new Uint8Array(64),ue,le,Je=new Float64Array(64),We=[S(),S(),S(),S()];ne(G,I,32),G[0]&=248,G[31]&=127,G[31]|=64;var ht=L+64;for(ue=0;ue<L;ue++)O[64+ue]=z[ue];for(ue=0;ue<32;ue++)O[32+ue]=G[32+ue];for(ne(ye,O.subarray(32),L+32),me(ye),de(We,ye),se(O,We),ue=32;ue<64;ue++)O[ue]=I[ue];for(ne(ae,O,L+64),me(ae),ue=0;ue<64;ue++)Je[ue]=0;for(ue=0;ue<32;ue++)Je[ue]=ye[ue];for(ue=0;ue<32;ue++)for(le=0;le<32;le++)Je[ue+le]+=ae[ue]*G[le];return be(O.subarray(32),Je),ht}function Fe(O,z){var L=S(),I=S(),G=S(),ae=S(),ye=S(),ue=S(),le=S();return o(O[2],y),$(O[1],z),X(G,O[1]),Q(ae,G,h),U(G,G,O[2]),W(ae,O[2],ae),X(ye,ae),X(ue,ye),Q(le,ue,ye),Q(L,le,G),Q(L,L,ae),H(L,L),Q(L,L,G),Q(L,L,ae),Q(L,L,ae),Q(O[0],L,ae),X(I,O[0]),Q(I,I,ae),t(I,G)&&Q(O[0],O[0],w),X(I,O[0]),Q(I,I,ae),t(I,G)?-1:(s(O[0])===z[31]>>7&&U(O[0],_,O[0]),Q(O[3],O[0],O[1]),0)}function Be(O,z,L,I){var G,ae=new Uint8Array(32),ye=new Uint8Array(64),ue=[S(),S(),S(),S()],le=[S(),S(),S(),S()];if(L<64||Fe(le,I))return-1;for(G=0;G<L;G++)O[G]=z[G];for(G=0;G<32;G++)O[G+32]=I[G];if(ne(ye,O,L),me(ye),Re(ue,le,ye),de(le,z.subarray(32)),pe(ue,le),se(ae,ue),L-=64,F(z,0,ae,0)){for(G=0;G<L;G++)O[G]=0;return-1}for(G=0;G<L;G++)O[G]=z[G+64];return L}var pt=32,Ae=24,Se=32,ct=16,Me=32,ge=32,wt=32,Ce=32,De=32,_t=Ae,Te=Se,Ie=ct,Dt=64,Ne=32,Pe=64,kt=32,qe=64;x.lowlevel={crypto_core_hsalsa20:K,crypto_stream_xor:re,crypto_stream:V,crypto_stream_salsa20_xor:Y,crypto_stream_salsa20:J,crypto_onetimeauth:e,crypto_onetimeauth_verify:r,crypto_verify_16:B,crypto_verify_32:F,crypto_secretbox:n,crypto_secretbox_open:a,crypto_scalarmult:Z,crypto_scalarmult_base:k,crypto_box_beforenm:T,crypto_box_afternm:j,crypto_box:ee,crypto_box_open:te,crypto_box_keypair:N,crypto_hash:ne,crypto_sign:ut,crypto_sign_keypair:ve,crypto_sign_open:Be,crypto_secretbox_KEYBYTES:pt,crypto_secretbox_NONCEBYTES:Ae,crypto_secretbox_ZEROBYTES:Se,crypto_secretbox_BOXZEROBYTES:ct,crypto_scalarmult_BYTES:Me,crypto_scalarmult_SCALARBYTES:ge,crypto_box_PUBLICKEYBYTES:wt,crypto_box_SECRETKEYBYTES:Ce,crypto_box_BEFORENMBYTES:De,crypto_box_NONCEBYTES:_t,crypto_box_ZEROBYTES:Te,crypto_box_BOXZEROBYTES:Ie,crypto_sign_BYTES:Dt,crypto_sign_PUBLICKEYBYTES:Ne,crypto_sign_SECRETKEYBYTES:Pe,crypto_sign_SEEDBYTES:kt,crypto_hash_BYTES:qe,gf:S,D:h,L:ot,pack25519:f,unpack25519:$,M:Q,A:W,S:X,Z:U,pow2523:H,add:pe,set25519:o,modL:be,scalarmult:Re,scalarbase:de};function Oe(O,z){if(O.length!==pt)throw new Error("bad key size");if(z.length!==Ae)throw new Error("bad nonce size")}function Pt(O,z){if(O.length!==wt)throw new Error("bad public key size");if(z.length!==Ce)throw new Error("bad secret key size")}function ke(){for(var O=0;O<arguments.length;O++)if(!(arguments[O]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Ue(O){for(var z=0;z<O.length;z++)O[z]=0}x.randomBytes=function(O){var z=new Uint8Array(O);return c(z,O),z},x.secretbox=function(O,z,L){ke(O,z,L),Oe(L,z);for(var I=new Uint8Array(Se+O.length),G=new Uint8Array(I.length),ae=0;ae<O.length;ae++)I[ae+Se]=O[ae];return n(G,I,I.length,z,L),G.subarray(ct)},x.secretbox.open=function(O,z,L){ke(O,z,L),Oe(L,z);for(var I=new Uint8Array(ct+O.length),G=new Uint8Array(I.length),ae=0;ae<O.length;ae++)I[ae+ct]=O[ae];return I.length<32||a(G,I,I.length,z,L)!==0?null:G.subarray(Se)},x.secretbox.keyLength=pt,x.secretbox.nonceLength=Ae,x.secretbox.overheadLength=ct,x.scalarMult=function(O,z){if(ke(O,z),O.length!==ge)throw new Error("bad n size");if(z.length!==Me)throw new Error("bad p size");var L=new Uint8Array(Me);return Z(L,O,z),L},x.scalarMult.base=function(O){if(ke(O),O.length!==ge)throw new Error("bad n size");var z=new Uint8Array(Me);return k(z,O),z},x.scalarMult.scalarLength=ge,x.scalarMult.groupElementLength=Me,x.box=function(O,z,L,I){var G=x.box.before(L,I);return x.secretbox(O,z,G)},x.box.before=function(O,z){ke(O,z),Pt(O,z);var L=new Uint8Array(De);return T(L,O,z),L},x.box.after=x.secretbox,x.box.open=function(O,z,L,I){var G=x.box.before(L,I);return x.secretbox.open(O,z,G)},x.box.open.after=x.secretbox.open,x.box.keyPair=function(){var O=new Uint8Array(wt),z=new Uint8Array(Ce);return N(O,z),{publicKey:O,secretKey:z}},x.box.keyPair.fromSecretKey=function(O){if(ke(O),O.length!==Ce)throw new Error("bad secret key size");var z=new Uint8Array(wt);return k(z,O),{publicKey:z,secretKey:new Uint8Array(O)}},x.box.publicKeyLength=wt,x.box.secretKeyLength=Ce,x.box.sharedKeyLength=De,x.box.nonceLength=_t,x.box.overheadLength=x.secretbox.overheadLength,x.sign=function(O,z){if(ke(O,z),z.length!==Pe)throw new Error("bad secret key size");var L=new Uint8Array(Dt+O.length);return ut(L,O,O.length,z),L},x.sign.open=function(O,z){if(ke(O,z),z.length!==Ne)throw new Error("bad public key size");var L=new Uint8Array(O.length),I=Be(L,O,O.length,z);if(I<0)return null;for(var G=new Uint8Array(I),ae=0;ae<G.length;ae++)G[ae]=L[ae];return G},x.sign.detached=function(O,z){for(var L=x.sign(O,z),I=new Uint8Array(Dt),G=0;G<I.length;G++)I[G]=L[G];return I},x.sign.detached.verify=function(O,z,L){if(ke(O,z,L),z.length!==Dt)throw new Error("bad signature size");if(L.length!==Ne)throw new Error("bad public key size");var I=new Uint8Array(Dt+O.length),G=new Uint8Array(Dt+O.length),ae;for(ae=0;ae<Dt;ae++)I[ae]=z[ae];for(ae=0;ae<O.length;ae++)I[ae+Dt]=O[ae];return Be(G,I,I.length,L)>=0},x.sign.keyPair=function(){var O=new Uint8Array(Ne),z=new Uint8Array(Pe);return ve(O,z),{publicKey:O,secretKey:z}},x.sign.keyPair.fromSecretKey=function(O){if(ke(O),O.length!==Pe)throw new Error("bad secret key size");for(var z=new Uint8Array(Ne),L=0;L<z.length;L++)z[L]=O[32+L];return{publicKey:z,secretKey:new Uint8Array(O)}},x.sign.keyPair.fromSeed=function(O){if(ke(O),O.length!==kt)throw new Error("bad seed size");for(var z=new Uint8Array(Ne),L=new Uint8Array(Pe),I=0;I<32;I++)L[I]=O[I];return ve(z,L,!0),{publicKey:z,secretKey:L}},x.sign.publicKeyLength=Ne,x.sign.secretKeyLength=Pe,x.sign.seedLength=kt,x.sign.signatureLength=Dt,x.hash=function(O){ke(O);var z=new Uint8Array(qe);return ne(z,O,O.length),z},x.hash.hashLength=qe,x.verify=function(O,z){return ke(O,z),O.length===0||z.length===0||O.length!==z.length?!1:A(O,0,z,0,O.length)===0},x.setPRNG=function(O){c=O},(function(){var O=typeof self<"u"?self.crypto||self.msCrypto:null;if(O&&O.getRandomValues){var z=65536;x.setPRNG(function(L,I){var G,ae=new Uint8Array(I);for(G=0;G<I;G+=z)O.getRandomValues(ae.subarray(G,G+Math.min(I-G,z)));for(G=0;G<I;G++)L[G]=ae[G];Ue(ae)})}else typeof Qd<"u"&&(O=Pc(),O&&O.randomBytes&&x.setPRNG(function(L,I){var G,ae=O.randomBytes(I);for(G=0;G<I;G++)L[G]=ae[G];Ue(ae)}))})()})(g.exports?g.exports:self.nacl=self.nacl||{})})(li)),li.exports}var Dv=qc();const of=ze.getDefaultExportFromCjs(Dv);var C0={exports:{}},cu;function Rv(){return cu||(cu=1,(function(g){(function(){var x="input is invalid type",S="finalize already called",c=typeof window=="object",E=c?window:{};E.JS_SHA512_NO_WINDOW&&(c=!1);var i=!c&&typeof self=="object",_=!E.JS_SHA512_NO_NODE_JS&&typeof xe.process$1=="object"&&xe.process$1.versions&&xe.process$1.versions.node;_?E=ze.commonjsGlobal:i&&(E=self);var y=!E.JS_SHA512_NO_COMMON_JS&&!0&&g.exports,m=!E.JS_SHA512_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),d=[-2147483648,8388608,32768,128],p=[24,16,8,0],v=[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],w=["hex","array","digest","arrayBuffer"],M=[];(E.JS_SHA512_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(q){return Object.prototype.toString.call(q)==="[object Array]"}),m&&(E.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(q){return typeof q=="object"&&q.buffer&&q.buffer.constructor===ArrayBuffer});var A=function(q,Y){return function(J){return new R(Y,!0).update(J)[q]()}},B=function(q){var Y=A("hex",q);Y.create=function(){return new R(q)},Y.update=function(re){return Y.create().update(re)};for(var J=0;J<w.length;++J){var V=w[J];Y[V]=A(V,q)}return Y},F=function(q,Y){return function(J,V){return new D(J,Y,!0).update(V)[q]()}},C=function(q){var Y=F("hex",q);Y.create=function(re){return new D(re,q)},Y.update=function(re,u){return Y.create(re).update(u)};for(var J=0;J<w.length;++J){var V=w[J];Y[V]=F(V,q)}return Y};function R(q,Y){Y?(M[0]=M[1]=M[2]=M[3]=M[4]=M[5]=M[6]=M[7]=M[8]=M[9]=M[10]=M[11]=M[12]=M[13]=M[14]=M[15]=M[16]=M[17]=M[18]=M[19]=M[20]=M[21]=M[22]=M[23]=M[24]=M[25]=M[26]=M[27]=M[28]=M[29]=M[30]=M[31]=M[32]=0,this.blocks=M):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],q==384?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):q==256?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):q==224?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=q,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}R.prototype.update=function(q){if(this.finalized)throw new Error(S);var Y,J=typeof q;if(J!=="string"){if(J==="object"){if(q===null)throw new Error(x);if(m&&q.constructor===ArrayBuffer)q=new Uint8Array(q);else if(!Array.isArray(q)&&(!m||!ArrayBuffer.isView(q)))throw new Error(x)}else throw new Error(x);Y=!0}for(var V,re=0,u,e=q.length,r=this.blocks;re<e;){if(this.hashed&&(this.hashed=!1,r[0]=this.block,r[1]=r[2]=r[3]=r[4]=r[5]=r[6]=r[7]=r[8]=r[9]=r[10]=r[11]=r[12]=r[13]=r[14]=r[15]=r[16]=r[17]=r[18]=r[19]=r[20]=r[21]=r[22]=r[23]=r[24]=r[25]=r[26]=r[27]=r[28]=r[29]=r[30]=r[31]=r[32]=0),Y)for(u=this.start;re<e&&u<128;++re)r[u>>2]|=q[re]<<p[u++&3];else for(u=this.start;re<e&&u<128;++re)V=q.charCodeAt(re),V<128?r[u>>2]|=V<<p[u++&3]:V<2048?(r[u>>2]|=(192|V>>6)<<p[u++&3],r[u>>2]|=(128|V&63)<<p[u++&3]):V<55296||V>=57344?(r[u>>2]|=(224|V>>12)<<p[u++&3],r[u>>2]|=(128|V>>6&63)<<p[u++&3],r[u>>2]|=(128|V&63)<<p[u++&3]):(V=65536+((V&1023)<<10|q.charCodeAt(++re)&1023),r[u>>2]|=(240|V>>18)<<p[u++&3],r[u>>2]|=(128|V>>12&63)<<p[u++&3],r[u>>2]|=(128|V>>6&63)<<p[u++&3],r[u>>2]|=(128|V&63)<<p[u++&3]);this.lastByteIndex=u,this.bytes+=u-this.start,u>=128?(this.block=r[32],this.start=u-128,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},R.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var q=this.blocks,Y=this.lastByteIndex;q[32]=this.block,q[Y>>2]|=d[Y&3],this.block=q[32],Y>=112&&(this.hashed||this.hash(),q[0]=this.block,q[1]=q[2]=q[3]=q[4]=q[5]=q[6]=q[7]=q[8]=q[9]=q[10]=q[11]=q[12]=q[13]=q[14]=q[15]=q[16]=q[17]=q[18]=q[19]=q[20]=q[21]=q[22]=q[23]=q[24]=q[25]=q[26]=q[27]=q[28]=q[29]=q[30]=q[31]=q[32]=0),q[30]=this.hBytes<<3|this.bytes>>>29,q[31]=this.bytes<<3,this.hash()}},R.prototype.hash=function(){var q=this.h0h,Y=this.h0l,J=this.h1h,V=this.h1l,re=this.h2h,u=this.h2l,e=this.h3h,r=this.h3l,n=this.h4h,a=this.h4l,o=this.h5h,l=this.h5l,b=this.h6h,f=this.h6l,t=this.h7h,s=this.h7l,$=this.blocks,W,U,Q,X,P,H,Z,k,N,T,j,fe,ee,te,he,ie,ne,pe,oe,se,Re,de,ve,ot,be;for(W=32;W<160;W+=2)se=$[W-30],Re=$[W-29],U=(se>>>1|Re<<31)^(se>>>8|Re<<24)^se>>>7,Q=(Re>>>1|se<<31)^(Re>>>8|se<<24)^(Re>>>7|se<<25),se=$[W-4],Re=$[W-3],X=(se>>>19|Re<<13)^(Re>>>29|se<<3)^se>>>6,P=(Re>>>19|se<<13)^(se>>>29|Re<<3)^(Re>>>6|se<<26),se=$[W-32],Re=$[W-31],de=$[W-14],ve=$[W-13],H=(ve&65535)+(Re&65535)+(Q&65535)+(P&65535),Z=(ve>>>16)+(Re>>>16)+(Q>>>16)+(P>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(U&65535)+(X&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(U>>>16)+(X>>>16)+(k>>>16),$[W]=N<<16|k&65535,$[W+1]=Z<<16|H&65535;var me=q,ut=Y,Fe=J,Be=V,pt=re,Ae=u,Se=e,ct=r,Me=n,ge=a,wt=o,Ce=l,De=b,_t=f,Te=t,Ie=s;for(ie=Fe&pt,ne=Be&Ae,W=0;W<160;W+=8)U=(me>>>28|ut<<4)^(ut>>>2|me<<30)^(ut>>>7|me<<25),Q=(ut>>>28|me<<4)^(me>>>2|ut<<30)^(me>>>7|ut<<25),X=(Me>>>14|ge<<18)^(Me>>>18|ge<<14)^(ge>>>9|Me<<23),P=(ge>>>14|Me<<18)^(ge>>>18|Me<<14)^(Me>>>9|ge<<23),T=me&Fe,j=ut&Be,pe=T^me&pt^ie,oe=j^ut&Ae^ne,ot=Me&wt^~Me&De,be=ge&Ce^~ge&_t,se=$[W],Re=$[W+1],de=v[W],ve=v[W+1],H=(ve&65535)+(Re&65535)+(be&65535)+(P&65535)+(Ie&65535),Z=(ve>>>16)+(Re>>>16)+(be>>>16)+(P>>>16)+(Ie>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(ot&65535)+(X&65535)+(Te&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(ot>>>16)+(X>>>16)+(Te>>>16)+(k>>>16),se=N<<16|k&65535,Re=Z<<16|H&65535,H=(oe&65535)+(Q&65535),Z=(oe>>>16)+(Q>>>16)+(H>>>16),k=(pe&65535)+(U&65535)+(Z>>>16),N=(pe>>>16)+(U>>>16)+(k>>>16),de=N<<16|k&65535,ve=Z<<16|H&65535,H=(ct&65535)+(Re&65535),Z=(ct>>>16)+(Re>>>16)+(H>>>16),k=(Se&65535)+(se&65535)+(Z>>>16),N=(Se>>>16)+(se>>>16)+(k>>>16),Te=N<<16|k&65535,Ie=Z<<16|H&65535,H=(ve&65535)+(Re&65535),Z=(ve>>>16)+(Re>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(k>>>16),Se=N<<16|k&65535,ct=Z<<16|H&65535,U=(Se>>>28|ct<<4)^(ct>>>2|Se<<30)^(ct>>>7|Se<<25),Q=(ct>>>28|Se<<4)^(Se>>>2|ct<<30)^(Se>>>7|ct<<25),X=(Te>>>14|Ie<<18)^(Te>>>18|Ie<<14)^(Ie>>>9|Te<<23),P=(Ie>>>14|Te<<18)^(Ie>>>18|Te<<14)^(Te>>>9|Ie<<23),fe=Se&me,ee=ct&ut,pe=fe^Se&Fe^T,oe=ee^ct&Be^j,ot=Te&Me^~Te&wt,be=Ie&ge^~Ie&Ce,se=$[W+2],Re=$[W+3],de=v[W+2],ve=v[W+3],H=(ve&65535)+(Re&65535)+(be&65535)+(P&65535)+(_t&65535),Z=(ve>>>16)+(Re>>>16)+(be>>>16)+(P>>>16)+(_t>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(ot&65535)+(X&65535)+(De&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(ot>>>16)+(X>>>16)+(De>>>16)+(k>>>16),se=N<<16|k&65535,Re=Z<<16|H&65535,H=(oe&65535)+(Q&65535),Z=(oe>>>16)+(Q>>>16)+(H>>>16),k=(pe&65535)+(U&65535)+(Z>>>16),N=(pe>>>16)+(U>>>16)+(k>>>16),de=N<<16|k&65535,ve=Z<<16|H&65535,H=(Ae&65535)+(Re&65535),Z=(Ae>>>16)+(Re>>>16)+(H>>>16),k=(pt&65535)+(se&65535)+(Z>>>16),N=(pt>>>16)+(se>>>16)+(k>>>16),De=N<<16|k&65535,_t=Z<<16|H&65535,H=(ve&65535)+(Re&65535),Z=(ve>>>16)+(Re>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(k>>>16),pt=N<<16|k&65535,Ae=Z<<16|H&65535,U=(pt>>>28|Ae<<4)^(Ae>>>2|pt<<30)^(Ae>>>7|pt<<25),Q=(Ae>>>28|pt<<4)^(pt>>>2|Ae<<30)^(pt>>>7|Ae<<25),X=(De>>>14|_t<<18)^(De>>>18|_t<<14)^(_t>>>9|De<<23),P=(_t>>>14|De<<18)^(_t>>>18|De<<14)^(De>>>9|_t<<23),te=pt&Se,he=Ae&ct,pe=te^pt&me^fe,oe=he^Ae&ut^ee,ot=De&Te^~De&Me,be=_t&Ie^~_t&ge,se=$[W+4],Re=$[W+5],de=v[W+4],ve=v[W+5],H=(ve&65535)+(Re&65535)+(be&65535)+(P&65535)+(Ce&65535),Z=(ve>>>16)+(Re>>>16)+(be>>>16)+(P>>>16)+(Ce>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(ot&65535)+(X&65535)+(wt&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(ot>>>16)+(X>>>16)+(wt>>>16)+(k>>>16),se=N<<16|k&65535,Re=Z<<16|H&65535,H=(oe&65535)+(Q&65535),Z=(oe>>>16)+(Q>>>16)+(H>>>16),k=(pe&65535)+(U&65535)+(Z>>>16),N=(pe>>>16)+(U>>>16)+(k>>>16),de=N<<16|k&65535,ve=Z<<16|H&65535,H=(Be&65535)+(Re&65535),Z=(Be>>>16)+(Re>>>16)+(H>>>16),k=(Fe&65535)+(se&65535)+(Z>>>16),N=(Fe>>>16)+(se>>>16)+(k>>>16),wt=N<<16|k&65535,Ce=Z<<16|H&65535,H=(ve&65535)+(Re&65535),Z=(ve>>>16)+(Re>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(k>>>16),Fe=N<<16|k&65535,Be=Z<<16|H&65535,U=(Fe>>>28|Be<<4)^(Be>>>2|Fe<<30)^(Be>>>7|Fe<<25),Q=(Be>>>28|Fe<<4)^(Fe>>>2|Be<<30)^(Fe>>>7|Be<<25),X=(wt>>>14|Ce<<18)^(wt>>>18|Ce<<14)^(Ce>>>9|wt<<23),P=(Ce>>>14|wt<<18)^(Ce>>>18|wt<<14)^(wt>>>9|Ce<<23),ie=Fe&pt,ne=Be&Ae,pe=ie^Fe&Se^te,oe=ne^Be&ct^he,ot=wt&De^~wt&Te,be=Ce&_t^~Ce&Ie,se=$[W+6],Re=$[W+7],de=v[W+6],ve=v[W+7],H=(ve&65535)+(Re&65535)+(be&65535)+(P&65535)+(ge&65535),Z=(ve>>>16)+(Re>>>16)+(be>>>16)+(P>>>16)+(ge>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(ot&65535)+(X&65535)+(Me&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(ot>>>16)+(X>>>16)+(Me>>>16)+(k>>>16),se=N<<16|k&65535,Re=Z<<16|H&65535,H=(oe&65535)+(Q&65535),Z=(oe>>>16)+(Q>>>16)+(H>>>16),k=(pe&65535)+(U&65535)+(Z>>>16),N=(pe>>>16)+(U>>>16)+(k>>>16),de=N<<16|k&65535,ve=Z<<16|H&65535,H=(ut&65535)+(Re&65535),Z=(ut>>>16)+(Re>>>16)+(H>>>16),k=(me&65535)+(se&65535)+(Z>>>16),N=(me>>>16)+(se>>>16)+(k>>>16),Me=N<<16|k&65535,ge=Z<<16|H&65535,H=(ve&65535)+(Re&65535),Z=(ve>>>16)+(Re>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(k>>>16),me=N<<16|k&65535,ut=Z<<16|H&65535;H=(Y&65535)+(ut&65535),Z=(Y>>>16)+(ut>>>16)+(H>>>16),k=(q&65535)+(me&65535)+(Z>>>16),N=(q>>>16)+(me>>>16)+(k>>>16),this.h0h=N<<16|k&65535,this.h0l=Z<<16|H&65535,H=(V&65535)+(Be&65535),Z=(V>>>16)+(Be>>>16)+(H>>>16),k=(J&65535)+(Fe&65535)+(Z>>>16),N=(J>>>16)+(Fe>>>16)+(k>>>16),this.h1h=N<<16|k&65535,this.h1l=Z<<16|H&65535,H=(u&65535)+(Ae&65535),Z=(u>>>16)+(Ae>>>16)+(H>>>16),k=(re&65535)+(pt&65535)+(Z>>>16),N=(re>>>16)+(pt>>>16)+(k>>>16),this.h2h=N<<16|k&65535,this.h2l=Z<<16|H&65535,H=(r&65535)+(ct&65535),Z=(r>>>16)+(ct>>>16)+(H>>>16),k=(e&65535)+(Se&65535)+(Z>>>16),N=(e>>>16)+(Se>>>16)+(k>>>16),this.h3h=N<<16|k&65535,this.h3l=Z<<16|H&65535,H=(a&65535)+(ge&65535),Z=(a>>>16)+(ge>>>16)+(H>>>16),k=(n&65535)+(Me&65535)+(Z>>>16),N=(n>>>16)+(Me>>>16)+(k>>>16),this.h4h=N<<16|k&65535,this.h4l=Z<<16|H&65535,H=(l&65535)+(Ce&65535),Z=(l>>>16)+(Ce>>>16)+(H>>>16),k=(o&65535)+(wt&65535)+(Z>>>16),N=(o>>>16)+(wt>>>16)+(k>>>16),this.h5h=N<<16|k&65535,this.h5l=Z<<16|H&65535,H=(f&65535)+(_t&65535),Z=(f>>>16)+(_t>>>16)+(H>>>16),k=(b&65535)+(De&65535)+(Z>>>16),N=(b>>>16)+(De>>>16)+(k>>>16),this.h6h=N<<16|k&65535,this.h6l=Z<<16|H&65535,H=(s&65535)+(Ie&65535),Z=(s>>>16)+(Ie>>>16)+(H>>>16),k=(t&65535)+(Te&65535)+(Z>>>16),N=(t>>>16)+(Te>>>16)+(k>>>16),this.h7h=N<<16|k&65535,this.h7l=Z<<16|H&65535},R.prototype.hex=function(){this.finalize();var q=this.h0h,Y=this.h0l,J=this.h1h,V=this.h1l,re=this.h2h,u=this.h2l,e=this.h3h,r=this.h3l,n=this.h4h,a=this.h4l,o=this.h5h,l=this.h5l,b=this.h6h,f=this.h6l,t=this.h7h,s=this.h7l,$=this.bits,W=h[q>>28&15]+h[q>>24&15]+h[q>>20&15]+h[q>>16&15]+h[q>>12&15]+h[q>>8&15]+h[q>>4&15]+h[q&15]+h[Y>>28&15]+h[Y>>24&15]+h[Y>>20&15]+h[Y>>16&15]+h[Y>>12&15]+h[Y>>8&15]+h[Y>>4&15]+h[Y&15]+h[J>>28&15]+h[J>>24&15]+h[J>>20&15]+h[J>>16&15]+h[J>>12&15]+h[J>>8&15]+h[J>>4&15]+h[J&15]+h[V>>28&15]+h[V>>24&15]+h[V>>20&15]+h[V>>16&15]+h[V>>12&15]+h[V>>8&15]+h[V>>4&15]+h[V&15]+h[re>>28&15]+h[re>>24&15]+h[re>>20&15]+h[re>>16&15]+h[re>>12&15]+h[re>>8&15]+h[re>>4&15]+h[re&15]+h[u>>28&15]+h[u>>24&15]+h[u>>20&15]+h[u>>16&15]+h[u>>12&15]+h[u>>8&15]+h[u>>4&15]+h[u&15]+h[e>>28&15]+h[e>>24&15]+h[e>>20&15]+h[e>>16&15]+h[e>>12&15]+h[e>>8&15]+h[e>>4&15]+h[e&15];return $>=256&&(W+=h[r>>28&15]+h[r>>24&15]+h[r>>20&15]+h[r>>16&15]+h[r>>12&15]+h[r>>8&15]+h[r>>4&15]+h[r&15]),$>=384&&(W+=h[n>>28&15]+h[n>>24&15]+h[n>>20&15]+h[n>>16&15]+h[n>>12&15]+h[n>>8&15]+h[n>>4&15]+h[n&15]+h[a>>28&15]+h[a>>24&15]+h[a>>20&15]+h[a>>16&15]+h[a>>12&15]+h[a>>8&15]+h[a>>4&15]+h[a&15]+h[o>>28&15]+h[o>>24&15]+h[o>>20&15]+h[o>>16&15]+h[o>>12&15]+h[o>>8&15]+h[o>>4&15]+h[o&15]+h[l>>28&15]+h[l>>24&15]+h[l>>20&15]+h[l>>16&15]+h[l>>12&15]+h[l>>8&15]+h[l>>4&15]+h[l&15]),$==512&&(W+=h[b>>28&15]+h[b>>24&15]+h[b>>20&15]+h[b>>16&15]+h[b>>12&15]+h[b>>8&15]+h[b>>4&15]+h[b&15]+h[f>>28&15]+h[f>>24&15]+h[f>>20&15]+h[f>>16&15]+h[f>>12&15]+h[f>>8&15]+h[f>>4&15]+h[f&15]+h[t>>28&15]+h[t>>24&15]+h[t>>20&15]+h[t>>16&15]+h[t>>12&15]+h[t>>8&15]+h[t>>4&15]+h[t&15]+h[s>>28&15]+h[s>>24&15]+h[s>>20&15]+h[s>>16&15]+h[s>>12&15]+h[s>>8&15]+h[s>>4&15]+h[s&15]),W},R.prototype.toString=R.prototype.hex,R.prototype.digest=function(){this.finalize();var q=this.h0h,Y=this.h0l,J=this.h1h,V=this.h1l,re=this.h2h,u=this.h2l,e=this.h3h,r=this.h3l,n=this.h4h,a=this.h4l,o=this.h5h,l=this.h5l,b=this.h6h,f=this.h6l,t=this.h7h,s=this.h7l,$=this.bits,W=[q>>24&255,q>>16&255,q>>8&255,q&255,Y>>24&255,Y>>16&255,Y>>8&255,Y&255,J>>24&255,J>>16&255,J>>8&255,J&255,V>>24&255,V>>16&255,V>>8&255,V&255,re>>24&255,re>>16&255,re>>8&255,re&255,u>>24&255,u>>16&255,u>>8&255,u&255,e>>24&255,e>>16&255,e>>8&255,e&255];return $>=256&&W.push(r>>24&255,r>>16&255,r>>8&255,r&255),$>=384&&W.push(n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,o>>24&255,o>>16&255,o>>8&255,o&255,l>>24&255,l>>16&255,l>>8&255,l&255),$==512&&W.push(b>>24&255,b>>16&255,b>>8&255,b&255,f>>24&255,f>>16&255,f>>8&255,f&255,t>>24&255,t>>16&255,t>>8&255,t&255,s>>24&255,s>>16&255,s>>8&255,s&255),W},R.prototype.array=R.prototype.digest,R.prototype.arrayBuffer=function(){this.finalize();var q=this.bits,Y=new ArrayBuffer(q/8),J=new DataView(Y);return J.setUint32(0,this.h0h),J.setUint32(4,this.h0l),J.setUint32(8,this.h1h),J.setUint32(12,this.h1l),J.setUint32(16,this.h2h),J.setUint32(20,this.h2l),J.setUint32(24,this.h3h),q>=256&&J.setUint32(28,this.h3l),q>=384&&(J.setUint32(32,this.h4h),J.setUint32(36,this.h4l),J.setUint32(40,this.h5h),J.setUint32(44,this.h5l)),q==512&&(J.setUint32(48,this.h6h),J.setUint32(52,this.h6l),J.setUint32(56,this.h7h),J.setUint32(60,this.h7l)),Y},R.prototype.clone=function(){var q=new R(this.bits,!1);return this.copyTo(q),q},R.prototype.copyTo=function(q){var Y=0,J=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(Y=0;Y<J.length;++Y)q[J[Y]]=this[J[Y]];for(Y=0;Y<this.blocks.length;++Y)q.blocks[Y]=this.blocks[Y]};function D(q,Y,J){var V,re=typeof q;if(re!=="string"){if(re==="object"){if(q===null)throw new Error(x);if(m&&q.constructor===ArrayBuffer)q=new Uint8Array(q);else if(!Array.isArray(q)&&(!m||!ArrayBuffer.isView(q)))throw new Error(x)}else throw new Error(x);V=!0}var u=q.length;if(!V){for(var e=[],u=q.length,r=0,n,a=0;a<u;++a)n=q.charCodeAt(a),n<128?e[r++]=n:n<2048?(e[r++]=192|n>>6,e[r++]=128|n&63):n<55296||n>=57344?(e[r++]=224|n>>12,e[r++]=128|n>>6&63,e[r++]=128|n&63):(n=65536+((n&1023)<<10|q.charCodeAt(++a)&1023),e[r++]=240|n>>18,e[r++]=128|n>>12&63,e[r++]=128|n>>6&63,e[r++]=128|n&63);q=e}q.length>128&&(q=new R(Y,!0).update(q).array());for(var o=[],l=[],a=0;a<128;++a){var b=q[a]||0;o[a]=92^b,l[a]=54^b}R.call(this,Y,J),this.update(l),this.oKeyPad=o,this.inner=!0,this.sharedMemory=J}D.prototype=new R,D.prototype.finalize=function(){if(R.prototype.finalize.call(this),this.inner){this.inner=!1;var q=this.array();R.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(q),R.prototype.finalize.call(this)}},D.prototype.clone=function(){var q=new D([],this.bits,!1);this.copyTo(q),q.inner=this.inner;for(var Y=0;Y<this.oKeyPad.length;++Y)q.oKeyPad[Y]=this.oKeyPad[Y];return q};var K=B(512);K.sha512=K,K.sha384=B(384),K.sha512_256=B(256),K.sha512_224=B(224),K.sha512.hmac=C(512),K.sha384.hmac=C(384),K.sha512_256.hmac=C(256),K.sha512_224.hmac=C(224),y?g.exports=K:(E.sha512=K.sha512,E.sha384=K.sha384,E.sha512_256=K.sha512_256,E.sha512_224=K.sha512_224)})()})(C0)),C0.exports}var Tv=Rv();const Iv=ze.getDefaultExportFromCjs(Tv);var wr={exports:{}},D0={exports:{}},Jr={exports:{}},kv=Jr.exports,lu;function Oc(){return lu||(lu=1,(function(g){(function(x){var S,c=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,E=Math.ceil,i=Math.floor,_="[BigNumber Error] ",y=_+"Number primitive has more than 15 significant digits: ",m=1e14,h=14,d=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],v=1e7,w=1e9;function M(q){var Y,J,V,re=U.prototype={constructor:U,toString:null,valueOf:null},u=new U(1),e=20,r=4,n=-7,a=21,o=-1e7,l=1e7,b=!1,f=1,t=0,s={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},$="0123456789abcdefghijklmnopqrstuvwxyz",W=!0;function U(k,N){var T,j,fe,ee,te,he,ie,ne,pe=this;if(!(pe instanceof U))return new U(k,N);if(N==null){if(k&&k._isBigNumber===!0){pe.s=k.s,!k.c||k.e>l?pe.c=pe.e=null:k.e<o?pe.c=[pe.e=0]:(pe.e=k.e,pe.c=k.c.slice());return}if((he=typeof k=="number")&&k*0==0){if(pe.s=1/k<0?(k=-k,-1):1,k===~~k){for(ee=0,te=k;te>=10;te/=10,ee++);ee>l?pe.c=pe.e=null:(pe.e=ee,pe.c=[k]);return}ne=String(k)}else{if(!c.test(ne=String(k)))return V(pe,ne,he);pe.s=ne.charCodeAt(0)==45?(ne=ne.slice(1),-1):1}(ee=ne.indexOf("."))>-1&&(ne=ne.replace(".","")),(te=ne.search(/e/i))>0?(ee<0&&(ee=te),ee+=+ne.slice(te+1),ne=ne.substring(0,te)):ee<0&&(ee=ne.length)}else{if(C(N,2,$.length,"Base"),N==10&&W)return pe=new U(k),H(pe,e+pe.e+1,r);if(ne=String(k),he=typeof k=="number"){if(k*0!=0)return V(pe,ne,he,N);if(pe.s=1/k<0?(ne=ne.slice(1),-1):1,U.DEBUG&&ne.replace(/^0\.0*|\./,"").length>15)throw Error(y+k)}else pe.s=ne.charCodeAt(0)===45?(ne=ne.slice(1),-1):1;for(T=$.slice(0,N),ee=te=0,ie=ne.length;te<ie;te++)if(T.indexOf(j=ne.charAt(te))<0){if(j=="."){if(te>ee){ee=ie;continue}}else if(!fe&&(ne==ne.toUpperCase()&&(ne=ne.toLowerCase())||ne==ne.toLowerCase()&&(ne=ne.toUpperCase()))){fe=!0,te=-1,ee=0;continue}return V(pe,String(k),he,N)}he=!1,ne=J(ne,N,10,pe.s),(ee=ne.indexOf("."))>-1?ne=ne.replace(".",""):ee=ne.length}for(te=0;ne.charCodeAt(te)===48;te++);for(ie=ne.length;ne.charCodeAt(--ie)===48;);if(ne=ne.slice(te,++ie)){if(ie-=te,he&&U.DEBUG&&ie>15&&(k>d||k!==i(k)))throw Error(y+pe.s*k);if((ee=ee-te-1)>l)pe.c=pe.e=null;else if(ee<o)pe.c=[pe.e=0];else{if(pe.e=ee,pe.c=[],te=(ee+1)%h,ee<0&&(te+=h),te<ie){for(te&&pe.c.push(+ne.slice(0,te)),ie-=h;te<ie;)pe.c.push(+ne.slice(te,te+=h));te=h-(ne=ne.slice(te)).length}else te-=ie;for(;te--;ne+="0");pe.c.push(+ne)}}else pe.c=[pe.e=0]}U.clone=M,U.ROUND_UP=0,U.ROUND_DOWN=1,U.ROUND_CEIL=2,U.ROUND_FLOOR=3,U.ROUND_HALF_UP=4,U.ROUND_HALF_DOWN=5,U.ROUND_HALF_EVEN=6,U.ROUND_HALF_CEIL=7,U.ROUND_HALF_FLOOR=8,U.EUCLID=9,U.config=U.set=function(k){var N,T;if(k!=null)if(typeof k=="object"){if(k.hasOwnProperty(N="DECIMAL_PLACES")&&(T=k[N],C(T,0,w,N),e=T),k.hasOwnProperty(N="ROUNDING_MODE")&&(T=k[N],C(T,0,8,N),r=T),k.hasOwnProperty(N="EXPONENTIAL_AT")&&(T=k[N],T&&T.pop?(C(T[0],-w,0,N),C(T[1],0,w,N),n=T[0],a=T[1]):(C(T,-w,w,N),n=-(a=T<0?-T:T))),k.hasOwnProperty(N="RANGE"))if(T=k[N],T&&T.pop)C(T[0],-w,-1,N),C(T[1],1,w,N),o=T[0],l=T[1];else if(C(T,-w,w,N),T)o=-(l=T<0?-T:T);else throw Error(_+N+" cannot be zero: "+T);if(k.hasOwnProperty(N="CRYPTO"))if(T=k[N],T===!!T)if(T)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))b=T;else throw b=!T,Error(_+"crypto unavailable");else b=T;else throw Error(_+N+" not true or false: "+T);if(k.hasOwnProperty(N="MODULO_MODE")&&(T=k[N],C(T,0,9,N),f=T),k.hasOwnProperty(N="POW_PRECISION")&&(T=k[N],C(T,0,w,N),t=T),k.hasOwnProperty(N="FORMAT"))if(T=k[N],typeof T=="object")s=T;else throw Error(_+N+" not an object: "+T);if(k.hasOwnProperty(N="ALPHABET"))if(T=k[N],typeof T=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(T))W=T.slice(0,10)=="0123456789",$=T;else throw Error(_+N+" invalid: "+T)}else throw Error(_+"Object expected: "+k);return{DECIMAL_PLACES:e,ROUNDING_MODE:r,EXPONENTIAL_AT:[n,a],RANGE:[o,l],CRYPTO:b,MODULO_MODE:f,POW_PRECISION:t,FORMAT:s,ALPHABET:$}},U.isBigNumber=function(k){if(!k||k._isBigNumber!==!0)return!1;if(!U.DEBUG)return!0;var N,T,j=k.c,fe=k.e,ee=k.s;e:if({}.toString.call(j)=="[object Array]"){if((ee===1||ee===-1)&&fe>=-w&&fe<=w&&fe===i(fe)){if(j[0]===0){if(fe===0&&j.length===1)return!0;break e}if(N=(fe+1)%h,N<1&&(N+=h),String(j[0]).length==N){for(N=0;N<j.length;N++)if(T=j[N],T<0||T>=m||T!==i(T))break e;if(T!==0)return!0}}}else if(j===null&&fe===null&&(ee===null||ee===1||ee===-1))return!0;throw Error(_+"Invalid BigNumber: "+k)},U.maximum=U.max=function(){return X(arguments,-1)},U.minimum=U.min=function(){return X(arguments,1)},U.random=(function(){var k=9007199254740992,N=Math.random()*k&2097151?function(){return i(Math.random()*k)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(T){var j,fe,ee,te,he,ie=0,ne=[],pe=new U(u);if(T==null?T=e:C(T,0,w),te=E(T/h),b)if(crypto.getRandomValues){for(j=crypto.getRandomValues(new Uint32Array(te*=2));ie<te;)he=j[ie]*131072+(j[ie+1]>>>11),he>=9e15?(fe=crypto.getRandomValues(new Uint32Array(2)),j[ie]=fe[0],j[ie+1]=fe[1]):(ne.push(he%1e14),ie+=2);ie=te/2}else if(crypto.randomBytes){for(j=crypto.randomBytes(te*=7);ie<te;)he=(j[ie]&31)*281474976710656+j[ie+1]*1099511627776+j[ie+2]*4294967296+j[ie+3]*16777216+(j[ie+4]<<16)+(j[ie+5]<<8)+j[ie+6],he>=9e15?crypto.randomBytes(7).copy(j,ie):(ne.push(he%1e14),ie+=7);ie=te/7}else throw b=!1,Error(_+"crypto unavailable");if(!b)for(;ie<te;)he=N(),he<9e15&&(ne[ie++]=he%1e14);for(te=ne[--ie],T%=h,te&&T&&(he=p[h-T],ne[ie]=i(te/he)*he);ne[ie]===0;ne.pop(),ie--);if(ie<0)ne=[ee=0];else{for(ee=-1;ne[0]===0;ne.splice(0,1),ee-=h);for(ie=1,he=ne[0];he>=10;he/=10,ie++);ie<h&&(ee-=h-ie)}return pe.e=ee,pe.c=ne,pe}})(),U.sum=function(){for(var k=1,N=arguments,T=new U(N[0]);k<N.length;)T=T.plus(N[k++]);return T},J=(function(){var k="0123456789";function N(T,j,fe,ee){for(var te,he=[0],ie,ne=0,pe=T.length;ne<pe;){for(ie=he.length;ie--;he[ie]*=j);for(he[0]+=ee.indexOf(T.charAt(ne++)),te=0;te<he.length;te++)he[te]>fe-1&&(he[te+1]==null&&(he[te+1]=0),he[te+1]+=he[te]/fe|0,he[te]%=fe)}return he.reverse()}return function(T,j,fe,ee,te){var he,ie,ne,pe,oe,se,Re,de,ve=T.indexOf("."),ot=e,be=r;for(ve>=0&&(pe=t,t=0,T=T.replace(".",""),de=new U(j),se=de.pow(T.length-ve),t=pe,de.c=N(K(B(se.c),se.e,"0"),10,fe,k),de.e=de.c.length),Re=N(T,j,fe,te?(he=$,k):(he=k,$)),ne=pe=Re.length;Re[--pe]==0;Re.pop());if(!Re[0])return he.charAt(0);if(ve<0?--ne:(se.c=Re,se.e=ne,se.s=ee,se=Y(se,de,ot,be,fe),Re=se.c,oe=se.r,ne=se.e),ie=ne+ot+1,ve=Re[ie],pe=fe/2,oe=oe||ie<0||Re[ie+1]!=null,oe=be<4?(ve!=null||oe)&&(be==0||be==(se.s<0?3:2)):ve>pe||ve==pe&&(be==4||oe||be==6&&Re[ie-1]&1||be==(se.s<0?8:7)),ie<1||!Re[0])T=oe?K(he.charAt(1),-ot,he.charAt(0)):he.charAt(0);else{if(Re.length=ie,oe)for(--fe;++Re[--ie]>fe;)Re[ie]=0,ie||(++ne,Re=[1].concat(Re));for(pe=Re.length;!Re[--pe];);for(ve=0,T="";ve<=pe;T+=he.charAt(Re[ve++]));T=K(T,ne,he.charAt(0))}return T}})(),Y=(function(){function k(j,fe,ee){var te,he,ie,ne,pe=0,oe=j.length,se=fe%v,Re=fe/v|0;for(j=j.slice();oe--;)ie=j[oe]%v,ne=j[oe]/v|0,te=Re*ie+ne*se,he=se*ie+te%v*v+pe,pe=(he/ee|0)+(te/v|0)+Re*ne,j[oe]=he%ee;return pe&&(j=[pe].concat(j)),j}function N(j,fe,ee,te){var he,ie;if(ee!=te)ie=ee>te?1:-1;else for(he=ie=0;he<ee;he++)if(j[he]!=fe[he]){ie=j[he]>fe[he]?1:-1;break}return ie}function T(j,fe,ee,te){for(var he=0;ee--;)j[ee]-=he,he=j[ee]<fe[ee]?1:0,j[ee]=he*te+j[ee]-fe[ee];for(;!j[0]&&j.length>1;j.splice(0,1));}return function(j,fe,ee,te,he){var ie,ne,pe,oe,se,Re,de,ve,ot,be,me,ut,Fe,Be,pt,Ae,Se,ct=j.s==fe.s?1:-1,Me=j.c,ge=fe.c;if(!Me||!Me[0]||!ge||!ge[0])return new U(!j.s||!fe.s||(Me?ge&&Me[0]==ge[0]:!ge)?NaN:Me&&Me[0]==0||!ge?ct*0:ct/0);for(ve=new U(ct),ot=ve.c=[],ne=j.e-fe.e,ct=ee+ne+1,he||(he=m,ne=A(j.e/h)-A(fe.e/h),ct=ct/h|0),pe=0;ge[pe]==(Me[pe]||0);pe++);if(ge[pe]>(Me[pe]||0)&&ne--,ct<0)ot.push(1),oe=!0;else{for(Be=Me.length,Ae=ge.length,pe=0,ct+=2,se=i(he/(ge[0]+1)),se>1&&(ge=k(ge,se,he),Me=k(Me,se,he),Ae=ge.length,Be=Me.length),Fe=Ae,be=Me.slice(0,Ae),me=be.length;me<Ae;be[me++]=0);Se=ge.slice(),Se=[0].concat(Se),pt=ge[0],ge[1]>=he/2&&pt++;do{if(se=0,ie=N(ge,be,Ae,me),ie<0){if(ut=be[0],Ae!=me&&(ut=ut*he+(be[1]||0)),se=i(ut/pt),se>1)for(se>=he&&(se=he-1),Re=k(ge,se,he),de=Re.length,me=be.length;N(Re,be,de,me)==1;)se--,T(Re,Ae<de?Se:ge,de,he),de=Re.length,ie=1;else se==0&&(ie=se=1),Re=ge.slice(),de=Re.length;if(de<me&&(Re=[0].concat(Re)),T(be,Re,me,he),me=be.length,ie==-1)for(;N(ge,be,Ae,me)<1;)se++,T(be,Ae<me?Se:ge,me,he),me=be.length}else ie===0&&(se++,be=[0]);ot[pe++]=se,be[0]?be[me++]=Me[Fe]||0:(be=[Me[Fe]],me=1)}while((Fe++<Be||be[0]!=null)&&ct--);oe=be[0]!=null,ot[0]||ot.splice(0,1)}if(he==m){for(pe=1,ct=ot[0];ct>=10;ct/=10,pe++);H(ve,ee+(ve.e=pe+ne*h-1)+1,te,oe)}else ve.e=ne,ve.r=+oe;return ve}})();function Q(k,N,T,j){var fe,ee,te,he,ie;if(T==null?T=r:C(T,0,8),!k.c)return k.toString();if(fe=k.c[0],te=k.e,N==null)ie=B(k.c),ie=j==1||j==2&&(te<=n||te>=a)?D(ie,te):K(ie,te,"0");else if(k=H(new U(k),N,T),ee=k.e,ie=B(k.c),he=ie.length,j==1||j==2&&(N<=ee||ee<=n)){for(;he<N;ie+="0",he++);ie=D(ie,ee)}else if(N-=te+(j===2&&ee>te),ie=K(ie,ee,"0"),ee+1>he){if(--N>0)for(ie+=".";N--;ie+="0");}else if(N+=ee-he,N>0)for(ee+1==he&&(ie+=".");N--;ie+="0");return k.s<0&&fe?"-"+ie:ie}function X(k,N){for(var T,j,fe=1,ee=new U(k[0]);fe<k.length;fe++)j=new U(k[fe]),(!j.s||(T=F(ee,j))===N||T===0&&ee.s===N)&&(ee=j);return ee}function P(k,N,T){for(var j=1,fe=N.length;!N[--fe];N.pop());for(fe=N[0];fe>=10;fe/=10,j++);return(T=j+T*h-1)>l?k.c=k.e=null:T<o?k.c=[k.e=0]:(k.e=T,k.c=N),k}V=(function(){var k=/^(-?)0([xbo])(?=\w[\w.]*$)/i,N=/^([^.]+)\.$/,T=/^\.([^.]+)$/,j=/^-?(Infinity|NaN)$/,fe=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(ee,te,he,ie){var ne,pe=he?te:te.replace(fe,"");if(j.test(pe))ee.s=isNaN(pe)?null:pe<0?-1:1;else{if(!he&&(pe=pe.replace(k,function(oe,se,Re){return ne=(Re=Re.toLowerCase())=="x"?16:Re=="b"?2:8,!ie||ie==ne?se:oe}),ie&&(ne=ie,pe=pe.replace(N,"$1").replace(T,"0.$1")),te!=pe))return new U(pe,ne);if(U.DEBUG)throw Error(_+"Not a"+(ie?" base "+ie:"")+" number: "+te);ee.s=null}ee.c=ee.e=null}})();function H(k,N,T,j){var fe,ee,te,he,ie,ne,pe,oe=k.c,se=p;if(oe){e:{for(fe=1,he=oe[0];he>=10;he/=10,fe++);if(ee=N-fe,ee<0)ee+=h,te=N,ie=oe[ne=0],pe=i(ie/se[fe-te-1]%10);else if(ne=E((ee+1)/h),ne>=oe.length)if(j){for(;oe.length<=ne;oe.push(0));ie=pe=0,fe=1,ee%=h,te=ee-h+1}else break e;else{for(ie=he=oe[ne],fe=1;he>=10;he/=10,fe++);ee%=h,te=ee-h+fe,pe=te<0?0:i(ie/se[fe-te-1]%10)}if(j=j||N<0||oe[ne+1]!=null||(te<0?ie:ie%se[fe-te-1]),j=T<4?(pe||j)&&(T==0||T==(k.s<0?3:2)):pe>5||pe==5&&(T==4||j||T==6&&(ee>0?te>0?ie/se[fe-te]:0:oe[ne-1])%10&1||T==(k.s<0?8:7)),N<1||!oe[0])return oe.length=0,j?(N-=k.e+1,oe[0]=se[(h-N%h)%h],k.e=-N||0):oe[0]=k.e=0,k;if(ee==0?(oe.length=ne,he=1,ne--):(oe.length=ne+1,he=se[h-ee],oe[ne]=te>0?i(ie/se[fe-te]%se[te])*he:0),j)for(;;)if(ne==0){for(ee=1,te=oe[0];te>=10;te/=10,ee++);for(te=oe[0]+=he,he=1;te>=10;te/=10,he++);ee!=he&&(k.e++,oe[0]==m&&(oe[0]=1));break}else{if(oe[ne]+=he,oe[ne]!=m)break;oe[ne--]=0,he=1}for(ee=oe.length;oe[--ee]===0;oe.pop());}k.e>l?k.c=k.e=null:k.e<o&&(k.c=[k.e=0])}return k}function Z(k){var N,T=k.e;return T===null?k.toString():(N=B(k.c),N=T<=n||T>=a?D(N,T):K(N,T,"0"),k.s<0?"-"+N:N)}return re.absoluteValue=re.abs=function(){var k=new U(this);return k.s<0&&(k.s=1),k},re.comparedTo=function(k,N){return F(this,new U(k,N))},re.decimalPlaces=re.dp=function(k,N){var T,j,fe,ee=this;if(k!=null)return C(k,0,w),N==null?N=r:C(N,0,8),H(new U(ee),k+ee.e+1,N);if(!(T=ee.c))return null;if(j=((fe=T.length-1)-A(this.e/h))*h,fe=T[fe])for(;fe%10==0;fe/=10,j--);return j<0&&(j=0),j},re.dividedBy=re.div=function(k,N){return Y(this,new U(k,N),e,r)},re.dividedToIntegerBy=re.idiv=function(k,N){return Y(this,new U(k,N),0,1)},re.exponentiatedBy=re.pow=function(k,N){var T,j,fe,ee,te,he,ie,ne,pe,oe=this;if(k=new U(k),k.c&&!k.isInteger())throw Error(_+"Exponent not an integer: "+Z(k));if(N!=null&&(N=new U(N)),he=k.e>14,!oe.c||!oe.c[0]||oe.c[0]==1&&!oe.e&&oe.c.length==1||!k.c||!k.c[0])return pe=new U(Math.pow(+Z(oe),he?k.s*(2-R(k)):+Z(k))),N?pe.mod(N):pe;if(ie=k.s<0,N){if(N.c?!N.c[0]:!N.s)return new U(NaN);j=!ie&&oe.isInteger()&&N.isInteger(),j&&(oe=oe.mod(N))}else{if(k.e>9&&(oe.e>0||oe.e<-1||(oe.e==0?oe.c[0]>1||he&&oe.c[1]>=24e7:oe.c[0]<8e13||he&&oe.c[0]<=9999975e7)))return ee=oe.s<0&&R(k)?-0:0,oe.e>-1&&(ee=1/ee),new U(ie?1/ee:ee);t&&(ee=E(t/h+2))}for(he?(T=new U(.5),ie&&(k.s=1),ne=R(k)):(fe=Math.abs(+Z(k)),ne=fe%2),pe=new U(u);;){if(ne){if(pe=pe.times(oe),!pe.c)break;ee?pe.c.length>ee&&(pe.c.length=ee):j&&(pe=pe.mod(N))}if(fe){if(fe=i(fe/2),fe===0)break;ne=fe%2}else if(k=k.times(T),H(k,k.e+1,1),k.e>14)ne=R(k);else{if(fe=+Z(k),fe===0)break;ne=fe%2}oe=oe.times(oe),ee?oe.c&&oe.c.length>ee&&(oe.c.length=ee):j&&(oe=oe.mod(N))}return j?pe:(ie&&(pe=u.div(pe)),N?pe.mod(N):ee?H(pe,t,r,te):pe)},re.integerValue=function(k){var N=new U(this);return k==null?k=r:C(k,0,8),H(N,N.e+1,k)},re.isEqualTo=re.eq=function(k,N){return F(this,new U(k,N))===0},re.isFinite=function(){return!!this.c},re.isGreaterThan=re.gt=function(k,N){return F(this,new U(k,N))>0},re.isGreaterThanOrEqualTo=re.gte=function(k,N){return(N=F(this,new U(k,N)))===1||N===0},re.isInteger=function(){return!!this.c&&A(this.e/h)>this.c.length-2},re.isLessThan=re.lt=function(k,N){return F(this,new U(k,N))<0},re.isLessThanOrEqualTo=re.lte=function(k,N){return(N=F(this,new U(k,N)))===-1||N===0},re.isNaN=function(){return!this.s},re.isNegative=function(){return this.s<0},re.isPositive=function(){return this.s>0},re.isZero=function(){return!!this.c&&this.c[0]==0},re.minus=function(k,N){var T,j,fe,ee,te=this,he=te.s;if(k=new U(k,N),N=k.s,!he||!N)return new U(NaN);if(he!=N)return k.s=-N,te.plus(k);var ie=te.e/h,ne=k.e/h,pe=te.c,oe=k.c;if(!ie||!ne){if(!pe||!oe)return pe?(k.s=-N,k):new U(oe?te:NaN);if(!pe[0]||!oe[0])return oe[0]?(k.s=-N,k):new U(pe[0]?te:r==3?-0:0)}if(ie=A(ie),ne=A(ne),pe=pe.slice(),he=ie-ne){for((ee=he<0)?(he=-he,fe=pe):(ne=ie,fe=oe),fe.reverse(),N=he;N--;fe.push(0));fe.reverse()}else for(j=(ee=(he=pe.length)<(N=oe.length))?he:N,he=N=0;N<j;N++)if(pe[N]!=oe[N]){ee=pe[N]<oe[N];break}if(ee&&(fe=pe,pe=oe,oe=fe,k.s=-k.s),N=(j=oe.length)-(T=pe.length),N>0)for(;N--;pe[T++]=0);for(N=m-1;j>he;){if(pe[--j]<oe[j]){for(T=j;T&&!pe[--T];pe[T]=N);--pe[T],pe[j]+=m}pe[j]-=oe[j]}for(;pe[0]==0;pe.splice(0,1),--ne);return pe[0]?P(k,pe,ne):(k.s=r==3?-1:1,k.c=[k.e=0],k)},re.modulo=re.mod=function(k,N){var T,j,fe=this;return k=new U(k,N),!fe.c||!k.s||k.c&&!k.c[0]?new U(NaN):!k.c||fe.c&&!fe.c[0]?new U(fe):(f==9?(j=k.s,k.s=1,T=Y(fe,k,0,3),k.s=j,T.s*=j):T=Y(fe,k,0,f),k=fe.minus(T.times(k)),!k.c[0]&&f==1&&(k.s=fe.s),k)},re.multipliedBy=re.times=function(k,N){var T,j,fe,ee,te,he,ie,ne,pe,oe,se,Re,de,ve,ot,be=this,me=be.c,ut=(k=new U(k,N)).c;if(!me||!ut||!me[0]||!ut[0])return!be.s||!k.s||me&&!me[0]&&!ut||ut&&!ut[0]&&!me?k.c=k.e=k.s=null:(k.s*=be.s,!me||!ut?k.c=k.e=null:(k.c=[0],k.e=0)),k;for(j=A(be.e/h)+A(k.e/h),k.s*=be.s,ie=me.length,oe=ut.length,ie<oe&&(de=me,me=ut,ut=de,fe=ie,ie=oe,oe=fe),fe=ie+oe,de=[];fe--;de.push(0));for(ve=m,ot=v,fe=oe;--fe>=0;){for(T=0,se=ut[fe]%ot,Re=ut[fe]/ot|0,te=ie,ee=fe+te;ee>fe;)ne=me[--te]%ot,pe=me[te]/ot|0,he=Re*ne+pe*se,ne=se*ne+he%ot*ot+de[ee]+T,T=(ne/ve|0)+(he/ot|0)+Re*pe,de[ee--]=ne%ve;de[ee]=T}return T?++j:de.splice(0,1),P(k,de,j)},re.negated=function(){var k=new U(this);return k.s=-k.s||null,k},re.plus=function(k,N){var T,j=this,fe=j.s;if(k=new U(k,N),N=k.s,!fe||!N)return new U(NaN);if(fe!=N)return k.s=-N,j.minus(k);var ee=j.e/h,te=k.e/h,he=j.c,ie=k.c;if(!ee||!te){if(!he||!ie)return new U(fe/0);if(!he[0]||!ie[0])return ie[0]?k:new U(he[0]?j:fe*0)}if(ee=A(ee),te=A(te),he=he.slice(),fe=ee-te){for(fe>0?(te=ee,T=ie):(fe=-fe,T=he),T.reverse();fe--;T.push(0));T.reverse()}for(fe=he.length,N=ie.length,fe-N<0&&(T=ie,ie=he,he=T,N=fe),fe=0;N;)fe=(he[--N]=he[N]+ie[N]+fe)/m|0,he[N]=m===he[N]?0:he[N]%m;return fe&&(he=[fe].concat(he),++te),P(k,he,te)},re.precision=re.sd=function(k,N){var T,j,fe,ee=this;if(k!=null&&k!==!!k)return C(k,1,w),N==null?N=r:C(N,0,8),H(new U(ee),k,N);if(!(T=ee.c))return null;if(fe=T.length-1,j=fe*h+1,fe=T[fe]){for(;fe%10==0;fe/=10,j--);for(fe=T[0];fe>=10;fe/=10,j++);}return k&&ee.e+1>j&&(j=ee.e+1),j},re.shiftedBy=function(k){return C(k,-d,d),this.times("1e"+k)},re.squareRoot=re.sqrt=function(){var k,N,T,j,fe,ee=this,te=ee.c,he=ee.s,ie=ee.e,ne=e+4,pe=new U("0.5");if(he!==1||!te||!te[0])return new U(!he||he<0&&(!te||te[0])?NaN:te?ee:1/0);if(he=Math.sqrt(+Z(ee)),he==0||he==1/0?(N=B(te),(N.length+ie)%2==0&&(N+="0"),he=Math.sqrt(+N),ie=A((ie+1)/2)-(ie<0||ie%2),he==1/0?N="5e"+ie:(N=he.toExponential(),N=N.slice(0,N.indexOf("e")+1)+ie),T=new U(N)):T=new U(he+""),T.c[0]){for(ie=T.e,he=ie+ne,he<3&&(he=0);;)if(fe=T,T=pe.times(fe.plus(Y(ee,fe,ne,1))),B(fe.c).slice(0,he)===(N=B(T.c)).slice(0,he))if(T.e<ie&&--he,N=N.slice(he-3,he+1),N=="9999"||!j&&N=="4999"){if(!j&&(H(fe,fe.e+e+2,0),fe.times(fe).eq(ee))){T=fe;break}ne+=4,he+=4,j=1}else{(!+N||!+N.slice(1)&&N.charAt(0)=="5")&&(H(T,T.e+e+2,1),k=!T.times(T).eq(ee));break}}return H(T,T.e+e+1,r,k)},re.toExponential=function(k,N){return k!=null&&(C(k,0,w),k++),Q(this,k,N,1)},re.toFixed=function(k,N){return k!=null&&(C(k,0,w),k=k+this.e+1),Q(this,k,N)},re.toFormat=function(k,N,T){var j,fe=this;if(T==null)k!=null&&N&&typeof N=="object"?(T=N,N=null):k&&typeof k=="object"?(T=k,k=N=null):T=s;else if(typeof T!="object")throw Error(_+"Argument not an object: "+T);if(j=fe.toFixed(k,N),fe.c){var ee,te=j.split("."),he=+T.groupSize,ie=+T.secondaryGroupSize,ne=T.groupSeparator||"",pe=te[0],oe=te[1],se=fe.s<0,Re=se?pe.slice(1):pe,de=Re.length;if(ie&&(ee=he,he=ie,ie=ee,de-=ee),he>0&&de>0){for(ee=de%he||he,pe=Re.substr(0,ee);ee<de;ee+=he)pe+=ne+Re.substr(ee,he);ie>0&&(pe+=ne+Re.slice(ee)),se&&(pe="-"+pe)}j=oe?pe+(T.decimalSeparator||"")+((ie=+T.fractionGroupSize)?oe.replace(new RegExp("\\d{"+ie+"}\\B","g"),"$&"+(T.fractionGroupSeparator||"")):oe):pe}return(T.prefix||"")+j+(T.suffix||"")},re.toFraction=function(k){var N,T,j,fe,ee,te,he,ie,ne,pe,oe,se,Re=this,de=Re.c;if(k!=null&&(he=new U(k),!he.isInteger()&&(he.c||he.s!==1)||he.lt(u)))throw Error(_+"Argument "+(he.isInteger()?"out of range: ":"not an integer: ")+Z(he));if(!de)return new U(Re);for(N=new U(u),ne=T=new U(u),j=ie=new U(u),se=B(de),ee=N.e=se.length-Re.e-1,N.c[0]=p[(te=ee%h)<0?h+te:te],k=!k||he.comparedTo(N)>0?ee>0?N:ne:he,te=l,l=1/0,he=new U(se),ie.c[0]=0;pe=Y(he,N,0,1),fe=T.plus(pe.times(j)),fe.comparedTo(k)!=1;)T=j,j=fe,ne=ie.plus(pe.times(fe=ne)),ie=fe,N=he.minus(pe.times(fe=N)),he=fe;return fe=Y(k.minus(T),j,0,1),ie=ie.plus(fe.times(ne)),T=T.plus(fe.times(j)),ie.s=ne.s=Re.s,ee=ee*2,oe=Y(ne,j,ee,r).minus(Re).abs().comparedTo(Y(ie,T,ee,r).minus(Re).abs())<1?[ne,j]:[ie,T],l=te,oe},re.toNumber=function(){return+Z(this)},re.toPrecision=function(k,N){return k!=null&&C(k,1,w),Q(this,k,N,2)},re.toString=function(k){var N,T=this,j=T.s,fe=T.e;return fe===null?j?(N="Infinity",j<0&&(N="-"+N)):N="NaN":(k==null?N=fe<=n||fe>=a?D(B(T.c),fe):K(B(T.c),fe,"0"):k===10&&W?(T=H(new U(T),e+fe+1,r),N=K(B(T.c),T.e,"0")):(C(k,2,$.length,"Base"),N=J(K(B(T.c),fe,"0"),10,k,j,!0)),j<0&&T.c[0]&&(N="-"+N)),N},re.valueOf=re.toJSON=function(){return Z(this)},re._isBigNumber=!0,q!=null&&U.set(q),U}function A(q){var Y=q|0;return q>0||q===Y?Y:Y-1}function B(q){for(var Y,J,V=1,re=q.length,u=q[0]+"";V<re;){for(Y=q[V++]+"",J=h-Y.length;J--;Y="0"+Y);u+=Y}for(re=u.length;u.charCodeAt(--re)===48;);return u.slice(0,re+1||1)}function F(q,Y){var J,V,re=q.c,u=Y.c,e=q.s,r=Y.s,n=q.e,a=Y.e;if(!e||!r)return null;if(J=re&&!re[0],V=u&&!u[0],J||V)return J?V?0:-r:e;if(e!=r)return e;if(J=e<0,V=n==a,!re||!u)return V?0:!re^J?1:-1;if(!V)return n>a^J?1:-1;for(r=(n=re.length)<(a=u.length)?n:a,e=0;e<r;e++)if(re[e]!=u[e])return re[e]>u[e]^J?1:-1;return n==a?0:n>a^J?1:-1}function C(q,Y,J,V){if(q<Y||q>J||q!==i(q))throw Error(_+(V||"Argument")+(typeof q=="number"?q<Y||q>J?" out of range: ":" not an integer: ":" not a primitive number: ")+String(q))}function R(q){var Y=q.c.length-1;return A(q.e/h)==Y&&q.c[Y]%2!=0}function D(q,Y){return(q.length>1?q.charAt(0)+"."+q.slice(1):q)+(Y<0?"e":"e+")+Y}function K(q,Y,J){var V,re;if(Y<0){for(re=J+".";++Y;re+=J);q=re+q}else if(V=q.length,++Y>V){for(re=J,Y-=V;--Y;re+=J);q+=re}else Y<V&&(q=q.slice(0,Y)+"."+q.slice(Y));return q}S=M(),S.default=S.BigNumber=S,g.exports?g.exports=S:(x||(x=typeof self<"u"&&self?self:window),x.BigNumber=S)})(kv)})(Jr)),Jr.exports}var du;function Nv(){return du||(du=1,(function(g){var x=Oc(),S=g.exports;(function(){var c=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,E,i,_={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},y;function m(d){return c.lastIndex=0,c.test(d)?'"'+d.replace(c,function(p){var v=_[p];return typeof v=="string"?v:"\\u"+("0000"+p.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+d+'"'}function h(d,p){var v,w,M,A,B=E,F,C=p[d],R=C!=null&&(C instanceof x||x.isBigNumber(C));switch(C&&typeof C=="object"&&typeof C.toJSON=="function"&&(C=C.toJSON(d)),typeof y=="function"&&(C=y.call(p,d,C)),typeof C){case"string":return R?C:m(C);case"number":return isFinite(C)?String(C):"null";case"boolean":case"null":case"bigint":return String(C);case"object":if(!C)return"null";if(E+=i,F=[],Object.prototype.toString.apply(C)==="[object Array]"){for(A=C.length,v=0;v<A;v+=1)F[v]=h(v,C)||"null";return M=F.length===0?"[]":E?`[
8
+ https://github.com/browserify/crypto-browserify`)},gt.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},gt}var cu;function Oc(){return cu||(cu=1,(function(g){(function(x){var S=function(O){var z,L=new Float64Array(16);if(O)for(z=0;z<O.length;z++)L[z]=O[z];return L},c=function(){throw new Error("no PRNG")},E=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var _=S(),y=S([1]),m=S([56129,1]),h=S([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),d=S([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),p=S([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),v=S([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),w=S([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function M(O,z,L,I){O[z]=L>>24&255,O[z+1]=L>>16&255,O[z+2]=L>>8&255,O[z+3]=L&255,O[z+4]=I>>24&255,O[z+5]=I>>16&255,O[z+6]=I>>8&255,O[z+7]=I&255}function A(O,z,L,I,G){var ae,ge=0;for(ae=0;ae<G;ae++)ge|=O[z+ae]^L[I+ae];return(1&ge-1>>>8)-1}function B(O,z,L,I){return A(O,z,L,I,16)}function F(O,z,L,I){return A(O,z,L,I,32)}function C(O,z,L,I){for(var G=I[0]&255|(I[1]&255)<<8|(I[2]&255)<<16|(I[3]&255)<<24,ae=L[0]&255|(L[1]&255)<<8|(L[2]&255)<<16|(L[3]&255)<<24,ge=L[4]&255|(L[5]&255)<<8|(L[6]&255)<<16|(L[7]&255)<<24,ue=L[8]&255|(L[9]&255)<<8|(L[10]&255)<<16|(L[11]&255)<<24,le=L[12]&255|(L[13]&255)<<8|(L[14]&255)<<16|(L[15]&255)<<24,Je=I[4]&255|(I[5]&255)<<8|(I[6]&255)<<16|(I[7]&255)<<24,We=z[0]&255|(z[1]&255)<<8|(z[2]&255)<<16|(z[3]&255)<<24,ht=z[4]&255|(z[5]&255)<<8|(z[6]&255)<<16|(z[7]&255)<<24,Ve=z[8]&255|(z[9]&255)<<8|(z[10]&255)<<16|(z[11]&255)<<24,et=z[12]&255|(z[13]&255)<<8|(z[14]&255)<<16|(z[15]&255)<<24,tt=I[8]&255|(I[9]&255)<<8|(I[10]&255)<<16|(I[11]&255)<<24,ft=L[16]&255|(L[17]&255)<<8|(L[18]&255)<<16|(L[19]&255)<<24,at=L[20]&255|(L[21]&255)<<8|(L[22]&255)<<16|(L[23]&255)<<24,rt=L[24]&255|(L[25]&255)<<8|(L[26]&255)<<16|(L[27]&255)<<24,nt=L[28]&255|(L[29]&255)<<8|(L[30]&255)<<16|(L[31]&255)<<24,it=I[12]&255|(I[13]&255)<<8|(I[14]&255)<<16|(I[15]&255)<<24,Ze=G,Qe=ae,Ge=ge,Xe=ue,Ye=le,Ke=Je,Me=We,Ee=ht,$e=Ve,Le=et,He=tt,je=ft,lt=at,vt=rt,yt=nt,bt=it,ce,Mt=0;Mt<20;Mt+=2)ce=Ze+lt|0,Ye^=ce<<7|ce>>>25,ce=Ye+Ze|0,$e^=ce<<9|ce>>>23,ce=$e+Ye|0,lt^=ce<<13|ce>>>19,ce=lt+$e|0,Ze^=ce<<18|ce>>>14,ce=Ke+Qe|0,Le^=ce<<7|ce>>>25,ce=Le+Ke|0,vt^=ce<<9|ce>>>23,ce=vt+Le|0,Qe^=ce<<13|ce>>>19,ce=Qe+vt|0,Ke^=ce<<18|ce>>>14,ce=He+Me|0,yt^=ce<<7|ce>>>25,ce=yt+He|0,Ge^=ce<<9|ce>>>23,ce=Ge+yt|0,Me^=ce<<13|ce>>>19,ce=Me+Ge|0,He^=ce<<18|ce>>>14,ce=bt+je|0,Xe^=ce<<7|ce>>>25,ce=Xe+bt|0,Ee^=ce<<9|ce>>>23,ce=Ee+Xe|0,je^=ce<<13|ce>>>19,ce=je+Ee|0,bt^=ce<<18|ce>>>14,ce=Ze+Xe|0,Qe^=ce<<7|ce>>>25,ce=Qe+Ze|0,Ge^=ce<<9|ce>>>23,ce=Ge+Qe|0,Xe^=ce<<13|ce>>>19,ce=Xe+Ge|0,Ze^=ce<<18|ce>>>14,ce=Ke+Ye|0,Me^=ce<<7|ce>>>25,ce=Me+Ke|0,Ee^=ce<<9|ce>>>23,ce=Ee+Me|0,Ye^=ce<<13|ce>>>19,ce=Ye+Ee|0,Ke^=ce<<18|ce>>>14,ce=He+Le|0,je^=ce<<7|ce>>>25,ce=je+He|0,$e^=ce<<9|ce>>>23,ce=$e+je|0,Le^=ce<<13|ce>>>19,ce=Le+$e|0,He^=ce<<18|ce>>>14,ce=bt+yt|0,lt^=ce<<7|ce>>>25,ce=lt+bt|0,vt^=ce<<9|ce>>>23,ce=vt+lt|0,yt^=ce<<13|ce>>>19,ce=yt+vt|0,bt^=ce<<18|ce>>>14;Ze=Ze+G|0,Qe=Qe+ae|0,Ge=Ge+ge|0,Xe=Xe+ue|0,Ye=Ye+le|0,Ke=Ke+Je|0,Me=Me+We|0,Ee=Ee+ht|0,$e=$e+Ve|0,Le=Le+et|0,He=He+tt|0,je=je+ft|0,lt=lt+at|0,vt=vt+rt|0,yt=yt+nt|0,bt=bt+it|0,O[0]=Ze>>>0&255,O[1]=Ze>>>8&255,O[2]=Ze>>>16&255,O[3]=Ze>>>24&255,O[4]=Qe>>>0&255,O[5]=Qe>>>8&255,O[6]=Qe>>>16&255,O[7]=Qe>>>24&255,O[8]=Ge>>>0&255,O[9]=Ge>>>8&255,O[10]=Ge>>>16&255,O[11]=Ge>>>24&255,O[12]=Xe>>>0&255,O[13]=Xe>>>8&255,O[14]=Xe>>>16&255,O[15]=Xe>>>24&255,O[16]=Ye>>>0&255,O[17]=Ye>>>8&255,O[18]=Ye>>>16&255,O[19]=Ye>>>24&255,O[20]=Ke>>>0&255,O[21]=Ke>>>8&255,O[22]=Ke>>>16&255,O[23]=Ke>>>24&255,O[24]=Me>>>0&255,O[25]=Me>>>8&255,O[26]=Me>>>16&255,O[27]=Me>>>24&255,O[28]=Ee>>>0&255,O[29]=Ee>>>8&255,O[30]=Ee>>>16&255,O[31]=Ee>>>24&255,O[32]=$e>>>0&255,O[33]=$e>>>8&255,O[34]=$e>>>16&255,O[35]=$e>>>24&255,O[36]=Le>>>0&255,O[37]=Le>>>8&255,O[38]=Le>>>16&255,O[39]=Le>>>24&255,O[40]=He>>>0&255,O[41]=He>>>8&255,O[42]=He>>>16&255,O[43]=He>>>24&255,O[44]=je>>>0&255,O[45]=je>>>8&255,O[46]=je>>>16&255,O[47]=je>>>24&255,O[48]=lt>>>0&255,O[49]=lt>>>8&255,O[50]=lt>>>16&255,O[51]=lt>>>24&255,O[52]=vt>>>0&255,O[53]=vt>>>8&255,O[54]=vt>>>16&255,O[55]=vt>>>24&255,O[56]=yt>>>0&255,O[57]=yt>>>8&255,O[58]=yt>>>16&255,O[59]=yt>>>24&255,O[60]=bt>>>0&255,O[61]=bt>>>8&255,O[62]=bt>>>16&255,O[63]=bt>>>24&255}function R(O,z,L,I){for(var G=I[0]&255|(I[1]&255)<<8|(I[2]&255)<<16|(I[3]&255)<<24,ae=L[0]&255|(L[1]&255)<<8|(L[2]&255)<<16|(L[3]&255)<<24,ge=L[4]&255|(L[5]&255)<<8|(L[6]&255)<<16|(L[7]&255)<<24,ue=L[8]&255|(L[9]&255)<<8|(L[10]&255)<<16|(L[11]&255)<<24,le=L[12]&255|(L[13]&255)<<8|(L[14]&255)<<16|(L[15]&255)<<24,Je=I[4]&255|(I[5]&255)<<8|(I[6]&255)<<16|(I[7]&255)<<24,We=z[0]&255|(z[1]&255)<<8|(z[2]&255)<<16|(z[3]&255)<<24,ht=z[4]&255|(z[5]&255)<<8|(z[6]&255)<<16|(z[7]&255)<<24,Ve=z[8]&255|(z[9]&255)<<8|(z[10]&255)<<16|(z[11]&255)<<24,et=z[12]&255|(z[13]&255)<<8|(z[14]&255)<<16|(z[15]&255)<<24,tt=I[8]&255|(I[9]&255)<<8|(I[10]&255)<<16|(I[11]&255)<<24,ft=L[16]&255|(L[17]&255)<<8|(L[18]&255)<<16|(L[19]&255)<<24,at=L[20]&255|(L[21]&255)<<8|(L[22]&255)<<16|(L[23]&255)<<24,rt=L[24]&255|(L[25]&255)<<8|(L[26]&255)<<16|(L[27]&255)<<24,nt=L[28]&255|(L[29]&255)<<8|(L[30]&255)<<16|(L[31]&255)<<24,it=I[12]&255|(I[13]&255)<<8|(I[14]&255)<<16|(I[15]&255)<<24,Ze=G,Qe=ae,Ge=ge,Xe=ue,Ye=le,Ke=Je,Me=We,Ee=ht,$e=Ve,Le=et,He=tt,je=ft,lt=at,vt=rt,yt=nt,bt=it,ce,Mt=0;Mt<20;Mt+=2)ce=Ze+lt|0,Ye^=ce<<7|ce>>>25,ce=Ye+Ze|0,$e^=ce<<9|ce>>>23,ce=$e+Ye|0,lt^=ce<<13|ce>>>19,ce=lt+$e|0,Ze^=ce<<18|ce>>>14,ce=Ke+Qe|0,Le^=ce<<7|ce>>>25,ce=Le+Ke|0,vt^=ce<<9|ce>>>23,ce=vt+Le|0,Qe^=ce<<13|ce>>>19,ce=Qe+vt|0,Ke^=ce<<18|ce>>>14,ce=He+Me|0,yt^=ce<<7|ce>>>25,ce=yt+He|0,Ge^=ce<<9|ce>>>23,ce=Ge+yt|0,Me^=ce<<13|ce>>>19,ce=Me+Ge|0,He^=ce<<18|ce>>>14,ce=bt+je|0,Xe^=ce<<7|ce>>>25,ce=Xe+bt|0,Ee^=ce<<9|ce>>>23,ce=Ee+Xe|0,je^=ce<<13|ce>>>19,ce=je+Ee|0,bt^=ce<<18|ce>>>14,ce=Ze+Xe|0,Qe^=ce<<7|ce>>>25,ce=Qe+Ze|0,Ge^=ce<<9|ce>>>23,ce=Ge+Qe|0,Xe^=ce<<13|ce>>>19,ce=Xe+Ge|0,Ze^=ce<<18|ce>>>14,ce=Ke+Ye|0,Me^=ce<<7|ce>>>25,ce=Me+Ke|0,Ee^=ce<<9|ce>>>23,ce=Ee+Me|0,Ye^=ce<<13|ce>>>19,ce=Ye+Ee|0,Ke^=ce<<18|ce>>>14,ce=He+Le|0,je^=ce<<7|ce>>>25,ce=je+He|0,$e^=ce<<9|ce>>>23,ce=$e+je|0,Le^=ce<<13|ce>>>19,ce=Le+$e|0,He^=ce<<18|ce>>>14,ce=bt+yt|0,lt^=ce<<7|ce>>>25,ce=lt+bt|0,vt^=ce<<9|ce>>>23,ce=vt+lt|0,yt^=ce<<13|ce>>>19,ce=yt+vt|0,bt^=ce<<18|ce>>>14;O[0]=Ze>>>0&255,O[1]=Ze>>>8&255,O[2]=Ze>>>16&255,O[3]=Ze>>>24&255,O[4]=Ke>>>0&255,O[5]=Ke>>>8&255,O[6]=Ke>>>16&255,O[7]=Ke>>>24&255,O[8]=He>>>0&255,O[9]=He>>>8&255,O[10]=He>>>16&255,O[11]=He>>>24&255,O[12]=bt>>>0&255,O[13]=bt>>>8&255,O[14]=bt>>>16&255,O[15]=bt>>>24&255,O[16]=Me>>>0&255,O[17]=Me>>>8&255,O[18]=Me>>>16&255,O[19]=Me>>>24&255,O[20]=Ee>>>0&255,O[21]=Ee>>>8&255,O[22]=Ee>>>16&255,O[23]=Ee>>>24&255,O[24]=$e>>>0&255,O[25]=$e>>>8&255,O[26]=$e>>>16&255,O[27]=$e>>>24&255,O[28]=Le>>>0&255,O[29]=Le>>>8&255,O[30]=Le>>>16&255,O[31]=Le>>>24&255}function D(O,z,L,I){C(O,z,L,I)}function K(O,z,L,I){R(O,z,L,I)}var q=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Y(O,z,L,I,G,ae,ge){var ue=new Uint8Array(16),le=new Uint8Array(64),Je,We;for(We=0;We<16;We++)ue[We]=0;for(We=0;We<8;We++)ue[We]=ae[We];for(;G>=64;){for(D(le,ue,ge,q),We=0;We<64;We++)O[z+We]=L[I+We]^le[We];for(Je=1,We=8;We<16;We++)Je=Je+(ue[We]&255)|0,ue[We]=Je&255,Je>>>=8;G-=64,z+=64,I+=64}if(G>0)for(D(le,ue,ge,q),We=0;We<G;We++)O[z+We]=L[I+We]^le[We];return 0}function J(O,z,L,I,G){var ae=new Uint8Array(16),ge=new Uint8Array(64),ue,le;for(le=0;le<16;le++)ae[le]=0;for(le=0;le<8;le++)ae[le]=I[le];for(;L>=64;){for(D(ge,ae,G,q),le=0;le<64;le++)O[z+le]=ge[le];for(ue=1,le=8;le<16;le++)ue=ue+(ae[le]&255)|0,ae[le]=ue&255,ue>>>=8;L-=64,z+=64}if(L>0)for(D(ge,ae,G,q),le=0;le<L;le++)O[z+le]=ge[le];return 0}function V(O,z,L,I,G){var ae=new Uint8Array(32);K(ae,I,G,q);for(var ge=new Uint8Array(8),ue=0;ue<8;ue++)ge[ue]=I[ue+16];return J(O,z,L,ge,ae)}function re(O,z,L,I,G,ae,ge){var ue=new Uint8Array(32);K(ue,ae,ge,q);for(var le=new Uint8Array(8),Je=0;Je<8;Je++)le[Je]=ae[Je+16];return Y(O,z,L,I,G,le,ue)}var u=function(O){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var z,L,I,G,ae,ge,ue,le;z=O[0]&255|(O[1]&255)<<8,this.r[0]=z&8191,L=O[2]&255|(O[3]&255)<<8,this.r[1]=(z>>>13|L<<3)&8191,I=O[4]&255|(O[5]&255)<<8,this.r[2]=(L>>>10|I<<6)&7939,G=O[6]&255|(O[7]&255)<<8,this.r[3]=(I>>>7|G<<9)&8191,ae=O[8]&255|(O[9]&255)<<8,this.r[4]=(G>>>4|ae<<12)&255,this.r[5]=ae>>>1&8190,ge=O[10]&255|(O[11]&255)<<8,this.r[6]=(ae>>>14|ge<<2)&8191,ue=O[12]&255|(O[13]&255)<<8,this.r[7]=(ge>>>11|ue<<5)&8065,le=O[14]&255|(O[15]&255)<<8,this.r[8]=(ue>>>8|le<<8)&8191,this.r[9]=le>>>5&127,this.pad[0]=O[16]&255|(O[17]&255)<<8,this.pad[1]=O[18]&255|(O[19]&255)<<8,this.pad[2]=O[20]&255|(O[21]&255)<<8,this.pad[3]=O[22]&255|(O[23]&255)<<8,this.pad[4]=O[24]&255|(O[25]&255)<<8,this.pad[5]=O[26]&255|(O[27]&255)<<8,this.pad[6]=O[28]&255|(O[29]&255)<<8,this.pad[7]=O[30]&255|(O[31]&255)<<8};u.prototype.blocks=function(O,z,L){for(var I=this.fin?0:2048,G,ae,ge,ue,le,Je,We,ht,Ve,et,tt,ft,at,rt,nt,it,Ze,Qe,Ge,Xe=this.h[0],Ye=this.h[1],Ke=this.h[2],Me=this.h[3],Ee=this.h[4],$e=this.h[5],Le=this.h[6],He=this.h[7],je=this.h[8],lt=this.h[9],vt=this.r[0],yt=this.r[1],bt=this.r[2],ce=this.r[3],Mt=this.r[4],St=this.r[5],Bt=this.r[6],xt=this.r[7],Et=this.r[8],At=this.r[9];L>=16;)G=O[z+0]&255|(O[z+1]&255)<<8,Xe+=G&8191,ae=O[z+2]&255|(O[z+3]&255)<<8,Ye+=(G>>>13|ae<<3)&8191,ge=O[z+4]&255|(O[z+5]&255)<<8,Ke+=(ae>>>10|ge<<6)&8191,ue=O[z+6]&255|(O[z+7]&255)<<8,Me+=(ge>>>7|ue<<9)&8191,le=O[z+8]&255|(O[z+9]&255)<<8,Ee+=(ue>>>4|le<<12)&8191,$e+=le>>>1&8191,Je=O[z+10]&255|(O[z+11]&255)<<8,Le+=(le>>>14|Je<<2)&8191,We=O[z+12]&255|(O[z+13]&255)<<8,He+=(Je>>>11|We<<5)&8191,ht=O[z+14]&255|(O[z+15]&255)<<8,je+=(We>>>8|ht<<8)&8191,lt+=ht>>>5|I,Ve=0,et=Ve,et+=Xe*vt,et+=Ye*(5*At),et+=Ke*(5*Et),et+=Me*(5*xt),et+=Ee*(5*Bt),Ve=et>>>13,et&=8191,et+=$e*(5*St),et+=Le*(5*Mt),et+=He*(5*ce),et+=je*(5*bt),et+=lt*(5*yt),Ve+=et>>>13,et&=8191,tt=Ve,tt+=Xe*yt,tt+=Ye*vt,tt+=Ke*(5*At),tt+=Me*(5*Et),tt+=Ee*(5*xt),Ve=tt>>>13,tt&=8191,tt+=$e*(5*Bt),tt+=Le*(5*St),tt+=He*(5*Mt),tt+=je*(5*ce),tt+=lt*(5*bt),Ve+=tt>>>13,tt&=8191,ft=Ve,ft+=Xe*bt,ft+=Ye*yt,ft+=Ke*vt,ft+=Me*(5*At),ft+=Ee*(5*Et),Ve=ft>>>13,ft&=8191,ft+=$e*(5*xt),ft+=Le*(5*Bt),ft+=He*(5*St),ft+=je*(5*Mt),ft+=lt*(5*ce),Ve+=ft>>>13,ft&=8191,at=Ve,at+=Xe*ce,at+=Ye*bt,at+=Ke*yt,at+=Me*vt,at+=Ee*(5*At),Ve=at>>>13,at&=8191,at+=$e*(5*Et),at+=Le*(5*xt),at+=He*(5*Bt),at+=je*(5*St),at+=lt*(5*Mt),Ve+=at>>>13,at&=8191,rt=Ve,rt+=Xe*Mt,rt+=Ye*ce,rt+=Ke*bt,rt+=Me*yt,rt+=Ee*vt,Ve=rt>>>13,rt&=8191,rt+=$e*(5*At),rt+=Le*(5*Et),rt+=He*(5*xt),rt+=je*(5*Bt),rt+=lt*(5*St),Ve+=rt>>>13,rt&=8191,nt=Ve,nt+=Xe*St,nt+=Ye*Mt,nt+=Ke*ce,nt+=Me*bt,nt+=Ee*yt,Ve=nt>>>13,nt&=8191,nt+=$e*vt,nt+=Le*(5*At),nt+=He*(5*Et),nt+=je*(5*xt),nt+=lt*(5*Bt),Ve+=nt>>>13,nt&=8191,it=Ve,it+=Xe*Bt,it+=Ye*St,it+=Ke*Mt,it+=Me*ce,it+=Ee*bt,Ve=it>>>13,it&=8191,it+=$e*yt,it+=Le*vt,it+=He*(5*At),it+=je*(5*Et),it+=lt*(5*xt),Ve+=it>>>13,it&=8191,Ze=Ve,Ze+=Xe*xt,Ze+=Ye*Bt,Ze+=Ke*St,Ze+=Me*Mt,Ze+=Ee*ce,Ve=Ze>>>13,Ze&=8191,Ze+=$e*bt,Ze+=Le*yt,Ze+=He*vt,Ze+=je*(5*At),Ze+=lt*(5*Et),Ve+=Ze>>>13,Ze&=8191,Qe=Ve,Qe+=Xe*Et,Qe+=Ye*xt,Qe+=Ke*Bt,Qe+=Me*St,Qe+=Ee*Mt,Ve=Qe>>>13,Qe&=8191,Qe+=$e*ce,Qe+=Le*bt,Qe+=He*yt,Qe+=je*vt,Qe+=lt*(5*At),Ve+=Qe>>>13,Qe&=8191,Ge=Ve,Ge+=Xe*At,Ge+=Ye*Et,Ge+=Ke*xt,Ge+=Me*Bt,Ge+=Ee*St,Ve=Ge>>>13,Ge&=8191,Ge+=$e*Mt,Ge+=Le*ce,Ge+=He*bt,Ge+=je*yt,Ge+=lt*vt,Ve+=Ge>>>13,Ge&=8191,Ve=(Ve<<2)+Ve|0,Ve=Ve+et|0,et=Ve&8191,Ve=Ve>>>13,tt+=Ve,Xe=et,Ye=tt,Ke=ft,Me=at,Ee=rt,$e=nt,Le=it,He=Ze,je=Qe,lt=Ge,z+=16,L-=16;this.h[0]=Xe,this.h[1]=Ye,this.h[2]=Ke,this.h[3]=Me,this.h[4]=Ee,this.h[5]=$e,this.h[6]=Le,this.h[7]=He,this.h[8]=je,this.h[9]=lt},u.prototype.finish=function(O,z){var L=new Uint16Array(10),I,G,ae,ge;if(this.leftover){for(ge=this.leftover,this.buffer[ge++]=1;ge<16;ge++)this.buffer[ge]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(I=this.h[1]>>>13,this.h[1]&=8191,ge=2;ge<10;ge++)this.h[ge]+=I,I=this.h[ge]>>>13,this.h[ge]&=8191;for(this.h[0]+=I*5,I=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=I,I=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=I,L[0]=this.h[0]+5,I=L[0]>>>13,L[0]&=8191,ge=1;ge<10;ge++)L[ge]=this.h[ge]+I,I=L[ge]>>>13,L[ge]&=8191;for(L[9]-=8192,G=(I^1)-1,ge=0;ge<10;ge++)L[ge]&=G;for(G=~G,ge=0;ge<10;ge++)this.h[ge]=this.h[ge]&G|L[ge];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,ae=this.h[0]+this.pad[0],this.h[0]=ae&65535,ge=1;ge<8;ge++)ae=(this.h[ge]+this.pad[ge]|0)+(ae>>>16)|0,this.h[ge]=ae&65535;O[z+0]=this.h[0]>>>0&255,O[z+1]=this.h[0]>>>8&255,O[z+2]=this.h[1]>>>0&255,O[z+3]=this.h[1]>>>8&255,O[z+4]=this.h[2]>>>0&255,O[z+5]=this.h[2]>>>8&255,O[z+6]=this.h[3]>>>0&255,O[z+7]=this.h[3]>>>8&255,O[z+8]=this.h[4]>>>0&255,O[z+9]=this.h[4]>>>8&255,O[z+10]=this.h[5]>>>0&255,O[z+11]=this.h[5]>>>8&255,O[z+12]=this.h[6]>>>0&255,O[z+13]=this.h[6]>>>8&255,O[z+14]=this.h[7]>>>0&255,O[z+15]=this.h[7]>>>8&255},u.prototype.update=function(O,z,L){var I,G;if(this.leftover){for(G=16-this.leftover,G>L&&(G=L),I=0;I<G;I++)this.buffer[this.leftover+I]=O[z+I];if(L-=G,z+=G,this.leftover+=G,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(L>=16&&(G=L-L%16,this.blocks(O,z,G),z+=G,L-=G),L){for(I=0;I<L;I++)this.buffer[this.leftover+I]=O[z+I];this.leftover+=L}};function e(O,z,L,I,G,ae){var ge=new u(ae);return ge.update(L,I,G),ge.finish(O,z),0}function r(O,z,L,I,G,ae){var ge=new Uint8Array(16);return e(ge,0,L,I,G,ae),B(O,z,ge,0)}function n(O,z,L,I,G){var ae;if(L<32)return-1;for(re(O,0,z,0,L,I,G),e(O,16,O,32,L-32,O),ae=0;ae<16;ae++)O[ae]=0;return 0}function a(O,z,L,I,G){var ae,ge=new Uint8Array(32);if(L<32||(V(ge,0,32,I,G),r(z,16,z,32,L-32,ge)!==0))return-1;for(re(O,0,z,0,L,I,G),ae=0;ae<32;ae++)O[ae]=0;return 0}function o(O,z){var L;for(L=0;L<16;L++)O[L]=z[L]|0}function l(O){var z,L,I=1;for(z=0;z<16;z++)L=O[z]+I+65535,I=Math.floor(L/65536),O[z]=L-I*65536;O[0]+=I-1+37*(I-1)}function b(O,z,L){for(var I,G=~(L-1),ae=0;ae<16;ae++)I=G&(O[ae]^z[ae]),O[ae]^=I,z[ae]^=I}function f(O,z){var L,I,G,ae=S(),ge=S();for(L=0;L<16;L++)ge[L]=z[L];for(l(ge),l(ge),l(ge),I=0;I<2;I++){for(ae[0]=ge[0]-65517,L=1;L<15;L++)ae[L]=ge[L]-65535-(ae[L-1]>>16&1),ae[L-1]&=65535;ae[15]=ge[15]-32767-(ae[14]>>16&1),G=ae[15]>>16&1,ae[14]&=65535,b(ge,ae,1-G)}for(L=0;L<16;L++)O[2*L]=ge[L]&255,O[2*L+1]=ge[L]>>8}function t(O,z){var L=new Uint8Array(32),I=new Uint8Array(32);return f(L,O),f(I,z),F(L,0,I,0)}function s(O){var z=new Uint8Array(32);return f(z,O),z[0]&1}function $(O,z){var L;for(L=0;L<16;L++)O[L]=z[2*L]+(z[2*L+1]<<8);O[15]&=32767}function W(O,z,L){for(var I=0;I<16;I++)O[I]=z[I]+L[I]}function U(O,z,L){for(var I=0;I<16;I++)O[I]=z[I]-L[I]}function Q(O,z,L){var I,G,ae=0,ge=0,ue=0,le=0,Je=0,We=0,ht=0,Ve=0,et=0,tt=0,ft=0,at=0,rt=0,nt=0,it=0,Ze=0,Qe=0,Ge=0,Xe=0,Ye=0,Ke=0,Me=0,Ee=0,$e=0,Le=0,He=0,je=0,lt=0,vt=0,yt=0,bt=0,ce=L[0],Mt=L[1],St=L[2],Bt=L[3],xt=L[4],Et=L[5],At=L[6],Nt=L[7],Ft=L[8],Rt=L[9],Tt=L[10],It=L[11],qt=L[12],Ut=L[13],Lt=L[14],Ht=L[15];I=z[0],ae+=I*ce,ge+=I*Mt,ue+=I*St,le+=I*Bt,Je+=I*xt,We+=I*Et,ht+=I*At,Ve+=I*Nt,et+=I*Ft,tt+=I*Rt,ft+=I*Tt,at+=I*It,rt+=I*qt,nt+=I*Ut,it+=I*Lt,Ze+=I*Ht,I=z[1],ge+=I*ce,ue+=I*Mt,le+=I*St,Je+=I*Bt,We+=I*xt,ht+=I*Et,Ve+=I*At,et+=I*Nt,tt+=I*Ft,ft+=I*Rt,at+=I*Tt,rt+=I*It,nt+=I*qt,it+=I*Ut,Ze+=I*Lt,Qe+=I*Ht,I=z[2],ue+=I*ce,le+=I*Mt,Je+=I*St,We+=I*Bt,ht+=I*xt,Ve+=I*Et,et+=I*At,tt+=I*Nt,ft+=I*Ft,at+=I*Rt,rt+=I*Tt,nt+=I*It,it+=I*qt,Ze+=I*Ut,Qe+=I*Lt,Ge+=I*Ht,I=z[3],le+=I*ce,Je+=I*Mt,We+=I*St,ht+=I*Bt,Ve+=I*xt,et+=I*Et,tt+=I*At,ft+=I*Nt,at+=I*Ft,rt+=I*Rt,nt+=I*Tt,it+=I*It,Ze+=I*qt,Qe+=I*Ut,Ge+=I*Lt,Xe+=I*Ht,I=z[4],Je+=I*ce,We+=I*Mt,ht+=I*St,Ve+=I*Bt,et+=I*xt,tt+=I*Et,ft+=I*At,at+=I*Nt,rt+=I*Ft,nt+=I*Rt,it+=I*Tt,Ze+=I*It,Qe+=I*qt,Ge+=I*Ut,Xe+=I*Lt,Ye+=I*Ht,I=z[5],We+=I*ce,ht+=I*Mt,Ve+=I*St,et+=I*Bt,tt+=I*xt,ft+=I*Et,at+=I*At,rt+=I*Nt,nt+=I*Ft,it+=I*Rt,Ze+=I*Tt,Qe+=I*It,Ge+=I*qt,Xe+=I*Ut,Ye+=I*Lt,Ke+=I*Ht,I=z[6],ht+=I*ce,Ve+=I*Mt,et+=I*St,tt+=I*Bt,ft+=I*xt,at+=I*Et,rt+=I*At,nt+=I*Nt,it+=I*Ft,Ze+=I*Rt,Qe+=I*Tt,Ge+=I*It,Xe+=I*qt,Ye+=I*Ut,Ke+=I*Lt,Me+=I*Ht,I=z[7],Ve+=I*ce,et+=I*Mt,tt+=I*St,ft+=I*Bt,at+=I*xt,rt+=I*Et,nt+=I*At,it+=I*Nt,Ze+=I*Ft,Qe+=I*Rt,Ge+=I*Tt,Xe+=I*It,Ye+=I*qt,Ke+=I*Ut,Me+=I*Lt,Ee+=I*Ht,I=z[8],et+=I*ce,tt+=I*Mt,ft+=I*St,at+=I*Bt,rt+=I*xt,nt+=I*Et,it+=I*At,Ze+=I*Nt,Qe+=I*Ft,Ge+=I*Rt,Xe+=I*Tt,Ye+=I*It,Ke+=I*qt,Me+=I*Ut,Ee+=I*Lt,$e+=I*Ht,I=z[9],tt+=I*ce,ft+=I*Mt,at+=I*St,rt+=I*Bt,nt+=I*xt,it+=I*Et,Ze+=I*At,Qe+=I*Nt,Ge+=I*Ft,Xe+=I*Rt,Ye+=I*Tt,Ke+=I*It,Me+=I*qt,Ee+=I*Ut,$e+=I*Lt,Le+=I*Ht,I=z[10],ft+=I*ce,at+=I*Mt,rt+=I*St,nt+=I*Bt,it+=I*xt,Ze+=I*Et,Qe+=I*At,Ge+=I*Nt,Xe+=I*Ft,Ye+=I*Rt,Ke+=I*Tt,Me+=I*It,Ee+=I*qt,$e+=I*Ut,Le+=I*Lt,He+=I*Ht,I=z[11],at+=I*ce,rt+=I*Mt,nt+=I*St,it+=I*Bt,Ze+=I*xt,Qe+=I*Et,Ge+=I*At,Xe+=I*Nt,Ye+=I*Ft,Ke+=I*Rt,Me+=I*Tt,Ee+=I*It,$e+=I*qt,Le+=I*Ut,He+=I*Lt,je+=I*Ht,I=z[12],rt+=I*ce,nt+=I*Mt,it+=I*St,Ze+=I*Bt,Qe+=I*xt,Ge+=I*Et,Xe+=I*At,Ye+=I*Nt,Ke+=I*Ft,Me+=I*Rt,Ee+=I*Tt,$e+=I*It,Le+=I*qt,He+=I*Ut,je+=I*Lt,lt+=I*Ht,I=z[13],nt+=I*ce,it+=I*Mt,Ze+=I*St,Qe+=I*Bt,Ge+=I*xt,Xe+=I*Et,Ye+=I*At,Ke+=I*Nt,Me+=I*Ft,Ee+=I*Rt,$e+=I*Tt,Le+=I*It,He+=I*qt,je+=I*Ut,lt+=I*Lt,vt+=I*Ht,I=z[14],it+=I*ce,Ze+=I*Mt,Qe+=I*St,Ge+=I*Bt,Xe+=I*xt,Ye+=I*Et,Ke+=I*At,Me+=I*Nt,Ee+=I*Ft,$e+=I*Rt,Le+=I*Tt,He+=I*It,je+=I*qt,lt+=I*Ut,vt+=I*Lt,yt+=I*Ht,I=z[15],Ze+=I*ce,Qe+=I*Mt,Ge+=I*St,Xe+=I*Bt,Ye+=I*xt,Ke+=I*Et,Me+=I*At,Ee+=I*Nt,$e+=I*Ft,Le+=I*Rt,He+=I*Tt,je+=I*It,lt+=I*qt,vt+=I*Ut,yt+=I*Lt,bt+=I*Ht,ae+=38*Qe,ge+=38*Ge,ue+=38*Xe,le+=38*Ye,Je+=38*Ke,We+=38*Me,ht+=38*Ee,Ve+=38*$e,et+=38*Le,tt+=38*He,ft+=38*je,at+=38*lt,rt+=38*vt,nt+=38*yt,it+=38*bt,G=1,I=ae+G+65535,G=Math.floor(I/65536),ae=I-G*65536,I=ge+G+65535,G=Math.floor(I/65536),ge=I-G*65536,I=ue+G+65535,G=Math.floor(I/65536),ue=I-G*65536,I=le+G+65535,G=Math.floor(I/65536),le=I-G*65536,I=Je+G+65535,G=Math.floor(I/65536),Je=I-G*65536,I=We+G+65535,G=Math.floor(I/65536),We=I-G*65536,I=ht+G+65535,G=Math.floor(I/65536),ht=I-G*65536,I=Ve+G+65535,G=Math.floor(I/65536),Ve=I-G*65536,I=et+G+65535,G=Math.floor(I/65536),et=I-G*65536,I=tt+G+65535,G=Math.floor(I/65536),tt=I-G*65536,I=ft+G+65535,G=Math.floor(I/65536),ft=I-G*65536,I=at+G+65535,G=Math.floor(I/65536),at=I-G*65536,I=rt+G+65535,G=Math.floor(I/65536),rt=I-G*65536,I=nt+G+65535,G=Math.floor(I/65536),nt=I-G*65536,I=it+G+65535,G=Math.floor(I/65536),it=I-G*65536,I=Ze+G+65535,G=Math.floor(I/65536),Ze=I-G*65536,ae+=G-1+37*(G-1),G=1,I=ae+G+65535,G=Math.floor(I/65536),ae=I-G*65536,I=ge+G+65535,G=Math.floor(I/65536),ge=I-G*65536,I=ue+G+65535,G=Math.floor(I/65536),ue=I-G*65536,I=le+G+65535,G=Math.floor(I/65536),le=I-G*65536,I=Je+G+65535,G=Math.floor(I/65536),Je=I-G*65536,I=We+G+65535,G=Math.floor(I/65536),We=I-G*65536,I=ht+G+65535,G=Math.floor(I/65536),ht=I-G*65536,I=Ve+G+65535,G=Math.floor(I/65536),Ve=I-G*65536,I=et+G+65535,G=Math.floor(I/65536),et=I-G*65536,I=tt+G+65535,G=Math.floor(I/65536),tt=I-G*65536,I=ft+G+65535,G=Math.floor(I/65536),ft=I-G*65536,I=at+G+65535,G=Math.floor(I/65536),at=I-G*65536,I=rt+G+65535,G=Math.floor(I/65536),rt=I-G*65536,I=nt+G+65535,G=Math.floor(I/65536),nt=I-G*65536,I=it+G+65535,G=Math.floor(I/65536),it=I-G*65536,I=Ze+G+65535,G=Math.floor(I/65536),Ze=I-G*65536,ae+=G-1+37*(G-1),O[0]=ae,O[1]=ge,O[2]=ue,O[3]=le,O[4]=Je,O[5]=We,O[6]=ht,O[7]=Ve,O[8]=et,O[9]=tt,O[10]=ft,O[11]=at,O[12]=rt,O[13]=nt,O[14]=it,O[15]=Ze}function X(O,z){Q(O,z,z)}function P(O,z){var L=S(),I;for(I=0;I<16;I++)L[I]=z[I];for(I=253;I>=0;I--)X(L,L),I!==2&&I!==4&&Q(L,L,z);for(I=0;I<16;I++)O[I]=L[I]}function H(O,z){var L=S(),I;for(I=0;I<16;I++)L[I]=z[I];for(I=250;I>=0;I--)X(L,L),I!==1&&Q(L,L,z);for(I=0;I<16;I++)O[I]=L[I]}function Z(O,z,L){var I=new Uint8Array(32),G=new Float64Array(80),ae,ge,ue=S(),le=S(),Je=S(),We=S(),ht=S(),Ve=S();for(ge=0;ge<31;ge++)I[ge]=z[ge];for(I[31]=z[31]&127|64,I[0]&=248,$(G,L),ge=0;ge<16;ge++)le[ge]=G[ge],We[ge]=ue[ge]=Je[ge]=0;for(ue[0]=We[0]=1,ge=254;ge>=0;--ge)ae=I[ge>>>3]>>>(ge&7)&1,b(ue,le,ae),b(Je,We,ae),W(ht,ue,Je),U(ue,ue,Je),W(Je,le,We),U(le,le,We),X(We,ht),X(Ve,ue),Q(ue,Je,ue),Q(Je,le,ht),W(ht,ue,Je),U(ue,ue,Je),X(le,ue),U(Je,We,Ve),Q(ue,Je,m),W(ue,ue,We),Q(Je,Je,ue),Q(ue,We,Ve),Q(We,le,G),X(le,ht),b(ue,le,ae),b(Je,We,ae);for(ge=0;ge<16;ge++)G[ge+16]=ue[ge],G[ge+32]=Je[ge],G[ge+48]=le[ge],G[ge+64]=We[ge];var et=G.subarray(32),tt=G.subarray(16);return P(et,et),Q(tt,tt,et),f(O,tt),0}function k(O,z){return Z(O,z,i)}function N(O,z){return c(z,32),k(O,z)}function T(O,z,L){var I=new Uint8Array(32);return Z(I,L,z),K(O,E,I,q)}var j=n,fe=a;function ee(O,z,L,I,G,ae){var ge=new Uint8Array(32);return T(ge,G,ae),j(O,z,L,I,ge)}function te(O,z,L,I,G,ae){var ge=new Uint8Array(32);return T(ge,G,ae),fe(O,z,L,I,ge)}var he=[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 ie(O,z,L,I){for(var G=new Int32Array(16),ae=new Int32Array(16),ge,ue,le,Je,We,ht,Ve,et,tt,ft,at,rt,nt,it,Ze,Qe,Ge,Xe,Ye,Ke,Me,Ee,$e,Le,He,je,lt=O[0],vt=O[1],yt=O[2],bt=O[3],ce=O[4],Mt=O[5],St=O[6],Bt=O[7],xt=z[0],Et=z[1],At=z[2],Nt=z[3],Ft=z[4],Rt=z[5],Tt=z[6],It=z[7],qt=0;I>=128;){for(Ye=0;Ye<16;Ye++)Ke=8*Ye+qt,G[Ye]=L[Ke+0]<<24|L[Ke+1]<<16|L[Ke+2]<<8|L[Ke+3],ae[Ye]=L[Ke+4]<<24|L[Ke+5]<<16|L[Ke+6]<<8|L[Ke+7];for(Ye=0;Ye<80;Ye++)if(ge=lt,ue=vt,le=yt,Je=bt,We=ce,ht=Mt,Ve=St,et=Bt,tt=xt,ft=Et,at=At,rt=Nt,nt=Ft,it=Rt,Ze=Tt,Qe=It,Me=Bt,Ee=It,$e=Ee&65535,Le=Ee>>>16,He=Me&65535,je=Me>>>16,Me=(ce>>>14|Ft<<18)^(ce>>>18|Ft<<14)^(Ft>>>9|ce<<23),Ee=(Ft>>>14|ce<<18)^(Ft>>>18|ce<<14)^(ce>>>9|Ft<<23),$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Me=ce&Mt^~ce&St,Ee=Ft&Rt^~Ft&Tt,$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Me=he[Ye*2],Ee=he[Ye*2+1],$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Me=G[Ye%16],Ee=ae[Ye%16],$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,Ge=He&65535|je<<16,Xe=$e&65535|Le<<16,Me=Ge,Ee=Xe,$e=Ee&65535,Le=Ee>>>16,He=Me&65535,je=Me>>>16,Me=(lt>>>28|xt<<4)^(xt>>>2|lt<<30)^(xt>>>7|lt<<25),Ee=(xt>>>28|lt<<4)^(lt>>>2|xt<<30)^(lt>>>7|xt<<25),$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Me=lt&vt^lt&yt^vt&yt,Ee=xt&Et^xt&At^Et&At,$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,et=He&65535|je<<16,Qe=$e&65535|Le<<16,Me=Je,Ee=rt,$e=Ee&65535,Le=Ee>>>16,He=Me&65535,je=Me>>>16,Me=Ge,Ee=Xe,$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,Je=He&65535|je<<16,rt=$e&65535|Le<<16,vt=ge,yt=ue,bt=le,ce=Je,Mt=We,St=ht,Bt=Ve,lt=et,Et=tt,At=ft,Nt=at,Ft=rt,Rt=nt,Tt=it,It=Ze,xt=Qe,Ye%16===15)for(Ke=0;Ke<16;Ke++)Me=G[Ke],Ee=ae[Ke],$e=Ee&65535,Le=Ee>>>16,He=Me&65535,je=Me>>>16,Me=G[(Ke+9)%16],Ee=ae[(Ke+9)%16],$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Ge=G[(Ke+1)%16],Xe=ae[(Ke+1)%16],Me=(Ge>>>1|Xe<<31)^(Ge>>>8|Xe<<24)^Ge>>>7,Ee=(Xe>>>1|Ge<<31)^(Xe>>>8|Ge<<24)^(Xe>>>7|Ge<<25),$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Ge=G[(Ke+14)%16],Xe=ae[(Ke+14)%16],Me=(Ge>>>19|Xe<<13)^(Xe>>>29|Ge<<3)^Ge>>>6,Ee=(Xe>>>19|Ge<<13)^(Ge>>>29|Xe<<3)^(Xe>>>6|Ge<<26),$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,G[Ke]=He&65535|je<<16,ae[Ke]=$e&65535|Le<<16;Me=lt,Ee=xt,$e=Ee&65535,Le=Ee>>>16,He=Me&65535,je=Me>>>16,Me=O[0],Ee=z[0],$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[0]=lt=He&65535|je<<16,z[0]=xt=$e&65535|Le<<16,Me=vt,Ee=Et,$e=Ee&65535,Le=Ee>>>16,He=Me&65535,je=Me>>>16,Me=O[1],Ee=z[1],$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[1]=vt=He&65535|je<<16,z[1]=Et=$e&65535|Le<<16,Me=yt,Ee=At,$e=Ee&65535,Le=Ee>>>16,He=Me&65535,je=Me>>>16,Me=O[2],Ee=z[2],$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[2]=yt=He&65535|je<<16,z[2]=At=$e&65535|Le<<16,Me=bt,Ee=Nt,$e=Ee&65535,Le=Ee>>>16,He=Me&65535,je=Me>>>16,Me=O[3],Ee=z[3],$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[3]=bt=He&65535|je<<16,z[3]=Nt=$e&65535|Le<<16,Me=ce,Ee=Ft,$e=Ee&65535,Le=Ee>>>16,He=Me&65535,je=Me>>>16,Me=O[4],Ee=z[4],$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[4]=ce=He&65535|je<<16,z[4]=Ft=$e&65535|Le<<16,Me=Mt,Ee=Rt,$e=Ee&65535,Le=Ee>>>16,He=Me&65535,je=Me>>>16,Me=O[5],Ee=z[5],$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[5]=Mt=He&65535|je<<16,z[5]=Rt=$e&65535|Le<<16,Me=St,Ee=Tt,$e=Ee&65535,Le=Ee>>>16,He=Me&65535,je=Me>>>16,Me=O[6],Ee=z[6],$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[6]=St=He&65535|je<<16,z[6]=Tt=$e&65535|Le<<16,Me=Bt,Ee=It,$e=Ee&65535,Le=Ee>>>16,He=Me&65535,je=Me>>>16,Me=O[7],Ee=z[7],$e+=Ee&65535,Le+=Ee>>>16,He+=Me&65535,je+=Me>>>16,Le+=$e>>>16,He+=Le>>>16,je+=He>>>16,O[7]=Bt=He&65535|je<<16,z[7]=It=$e&65535|Le<<16,qt+=128,I-=128}return I}function ne(O,z,L){var I=new Int32Array(8),G=new Int32Array(8),ae=new Uint8Array(256),ge,ue=L;for(I[0]=1779033703,I[1]=3144134277,I[2]=1013904242,I[3]=2773480762,I[4]=1359893119,I[5]=2600822924,I[6]=528734635,I[7]=1541459225,G[0]=4089235720,G[1]=2227873595,G[2]=4271175723,G[3]=1595750129,G[4]=2917565137,G[5]=725511199,G[6]=4215389547,G[7]=327033209,ie(I,G,z,L),L%=128,ge=0;ge<L;ge++)ae[ge]=z[ue-L+ge];for(ae[L]=128,L=256-128*(L<112?1:0),ae[L-9]=0,M(ae,L-8,ue/536870912|0,ue<<3),ie(I,G,ae,L),ge=0;ge<8;ge++)M(O,8*ge,I[ge],G[ge]);return 0}function pe(O,z){var L=S(),I=S(),G=S(),ae=S(),ge=S(),ue=S(),le=S(),Je=S(),We=S();U(L,O[1],O[0]),U(We,z[1],z[0]),Q(L,L,We),W(I,O[0],O[1]),W(We,z[0],z[1]),Q(I,I,We),Q(G,O[3],z[3]),Q(G,G,d),Q(ae,O[2],z[2]),W(ae,ae,ae),U(ge,I,L),U(ue,ae,G),W(le,ae,G),W(Je,I,L),Q(O[0],ge,ue),Q(O[1],Je,le),Q(O[2],le,ue),Q(O[3],ge,Je)}function oe(O,z,L){var I;for(I=0;I<4;I++)b(O[I],z[I],L)}function se(O,z){var L=S(),I=S(),G=S();P(G,z[2]),Q(L,z[0],G),Q(I,z[1],G),f(O,I),O[31]^=s(L)<<7}function Re(O,z,L){var I,G;for(o(O[0],_),o(O[1],y),o(O[2],y),o(O[3],_),G=255;G>=0;--G)I=L[G/8|0]>>(G&7)&1,oe(O,z,I),pe(z,O),pe(O,O),oe(O,z,I)}function de(O,z){var L=[S(),S(),S(),S()];o(L[0],p),o(L[1],v),o(L[2],y),Q(L[3],p,v),Re(O,L,z)}function ve(O,z,L){var I=new Uint8Array(64),G=[S(),S(),S(),S()],ae;for(L||c(z,32),ne(I,z,32),I[0]&=248,I[31]&=127,I[31]|=64,de(G,I),se(O,G),ae=0;ae<32;ae++)z[ae+32]=O[ae];return 0}var ot=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function be(O,z){var L,I,G,ae;for(I=63;I>=32;--I){for(L=0,G=I-32,ae=I-12;G<ae;++G)z[G]+=L-16*z[I]*ot[G-(I-32)],L=Math.floor((z[G]+128)/256),z[G]-=L*256;z[G]+=L,z[I]=0}for(L=0,G=0;G<32;G++)z[G]+=L-(z[31]>>4)*ot[G],L=z[G]>>8,z[G]&=255;for(G=0;G<32;G++)z[G]-=L*ot[G];for(I=0;I<32;I++)z[I+1]+=z[I]>>8,O[I]=z[I]&255}function me(O){var z=new Float64Array(64),L;for(L=0;L<64;L++)z[L]=O[L];for(L=0;L<64;L++)O[L]=0;be(O,z)}function ut(O,z,L,I){var G=new Uint8Array(64),ae=new Uint8Array(64),ge=new Uint8Array(64),ue,le,Je=new Float64Array(64),We=[S(),S(),S(),S()];ne(G,I,32),G[0]&=248,G[31]&=127,G[31]|=64;var ht=L+64;for(ue=0;ue<L;ue++)O[64+ue]=z[ue];for(ue=0;ue<32;ue++)O[32+ue]=G[32+ue];for(ne(ge,O.subarray(32),L+32),me(ge),de(We,ge),se(O,We),ue=32;ue<64;ue++)O[ue]=I[ue];for(ne(ae,O,L+64),me(ae),ue=0;ue<64;ue++)Je[ue]=0;for(ue=0;ue<32;ue++)Je[ue]=ge[ue];for(ue=0;ue<32;ue++)for(le=0;le<32;le++)Je[ue+le]+=ae[ue]*G[le];return be(O.subarray(32),Je),ht}function Fe(O,z){var L=S(),I=S(),G=S(),ae=S(),ge=S(),ue=S(),le=S();return o(O[2],y),$(O[1],z),X(G,O[1]),Q(ae,G,h),U(G,G,O[2]),W(ae,O[2],ae),X(ge,ae),X(ue,ge),Q(le,ue,ge),Q(L,le,G),Q(L,L,ae),H(L,L),Q(L,L,G),Q(L,L,ae),Q(L,L,ae),Q(O[0],L,ae),X(I,O[0]),Q(I,I,ae),t(I,G)&&Q(O[0],O[0],w),X(I,O[0]),Q(I,I,ae),t(I,G)?-1:(s(O[0])===z[31]>>7&&U(O[0],_,O[0]),Q(O[3],O[0],O[1]),0)}function Be(O,z,L,I){var G,ae=new Uint8Array(32),ge=new Uint8Array(64),ue=[S(),S(),S(),S()],le=[S(),S(),S(),S()];if(L<64||Fe(le,I))return-1;for(G=0;G<L;G++)O[G]=z[G];for(G=0;G<32;G++)O[G+32]=I[G];if(ne(ge,O,L),me(ge),Re(ue,le,ge),de(le,z.subarray(32)),pe(ue,le),se(ae,ue),L-=64,F(z,0,ae,0)){for(G=0;G<L;G++)O[G]=0;return-1}for(G=0;G<L;G++)O[G]=z[G+64];return L}var pt=32,Ae=24,Se=32,ct=16,_e=32,xe=32,wt=32,Ce=32,De=32,_t=Ae,Te=Se,Ie=ct,Dt=64,Ne=32,Pe=64,kt=32,qe=64;x.lowlevel={crypto_core_hsalsa20:K,crypto_stream_xor:re,crypto_stream:V,crypto_stream_salsa20_xor:Y,crypto_stream_salsa20:J,crypto_onetimeauth:e,crypto_onetimeauth_verify:r,crypto_verify_16:B,crypto_verify_32:F,crypto_secretbox:n,crypto_secretbox_open:a,crypto_scalarmult:Z,crypto_scalarmult_base:k,crypto_box_beforenm:T,crypto_box_afternm:j,crypto_box:ee,crypto_box_open:te,crypto_box_keypair:N,crypto_hash:ne,crypto_sign:ut,crypto_sign_keypair:ve,crypto_sign_open:Be,crypto_secretbox_KEYBYTES:pt,crypto_secretbox_NONCEBYTES:Ae,crypto_secretbox_ZEROBYTES:Se,crypto_secretbox_BOXZEROBYTES:ct,crypto_scalarmult_BYTES:_e,crypto_scalarmult_SCALARBYTES:xe,crypto_box_PUBLICKEYBYTES:wt,crypto_box_SECRETKEYBYTES:Ce,crypto_box_BEFORENMBYTES:De,crypto_box_NONCEBYTES:_t,crypto_box_ZEROBYTES:Te,crypto_box_BOXZEROBYTES:Ie,crypto_sign_BYTES:Dt,crypto_sign_PUBLICKEYBYTES:Ne,crypto_sign_SECRETKEYBYTES:Pe,crypto_sign_SEEDBYTES:kt,crypto_hash_BYTES:qe,gf:S,D:h,L:ot,pack25519:f,unpack25519:$,M:Q,A:W,S:X,Z:U,pow2523:H,add:pe,set25519:o,modL:be,scalarmult:Re,scalarbase:de};function Oe(O,z){if(O.length!==pt)throw new Error("bad key size");if(z.length!==Ae)throw new Error("bad nonce size")}function Pt(O,z){if(O.length!==wt)throw new Error("bad public key size");if(z.length!==Ce)throw new Error("bad secret key size")}function ke(){for(var O=0;O<arguments.length;O++)if(!(arguments[O]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Ue(O){for(var z=0;z<O.length;z++)O[z]=0}x.randomBytes=function(O){var z=new Uint8Array(O);return c(z,O),z},x.secretbox=function(O,z,L){ke(O,z,L),Oe(L,z);for(var I=new Uint8Array(Se+O.length),G=new Uint8Array(I.length),ae=0;ae<O.length;ae++)I[ae+Se]=O[ae];return n(G,I,I.length,z,L),G.subarray(ct)},x.secretbox.open=function(O,z,L){ke(O,z,L),Oe(L,z);for(var I=new Uint8Array(ct+O.length),G=new Uint8Array(I.length),ae=0;ae<O.length;ae++)I[ae+ct]=O[ae];return I.length<32||a(G,I,I.length,z,L)!==0?null:G.subarray(Se)},x.secretbox.keyLength=pt,x.secretbox.nonceLength=Ae,x.secretbox.overheadLength=ct,x.scalarMult=function(O,z){if(ke(O,z),O.length!==xe)throw new Error("bad n size");if(z.length!==_e)throw new Error("bad p size");var L=new Uint8Array(_e);return Z(L,O,z),L},x.scalarMult.base=function(O){if(ke(O),O.length!==xe)throw new Error("bad n size");var z=new Uint8Array(_e);return k(z,O),z},x.scalarMult.scalarLength=xe,x.scalarMult.groupElementLength=_e,x.box=function(O,z,L,I){var G=x.box.before(L,I);return x.secretbox(O,z,G)},x.box.before=function(O,z){ke(O,z),Pt(O,z);var L=new Uint8Array(De);return T(L,O,z),L},x.box.after=x.secretbox,x.box.open=function(O,z,L,I){var G=x.box.before(L,I);return x.secretbox.open(O,z,G)},x.box.open.after=x.secretbox.open,x.box.keyPair=function(){var O=new Uint8Array(wt),z=new Uint8Array(Ce);return N(O,z),{publicKey:O,secretKey:z}},x.box.keyPair.fromSecretKey=function(O){if(ke(O),O.length!==Ce)throw new Error("bad secret key size");var z=new Uint8Array(wt);return k(z,O),{publicKey:z,secretKey:new Uint8Array(O)}},x.box.publicKeyLength=wt,x.box.secretKeyLength=Ce,x.box.sharedKeyLength=De,x.box.nonceLength=_t,x.box.overheadLength=x.secretbox.overheadLength,x.sign=function(O,z){if(ke(O,z),z.length!==Pe)throw new Error("bad secret key size");var L=new Uint8Array(Dt+O.length);return ut(L,O,O.length,z),L},x.sign.open=function(O,z){if(ke(O,z),z.length!==Ne)throw new Error("bad public key size");var L=new Uint8Array(O.length),I=Be(L,O,O.length,z);if(I<0)return null;for(var G=new Uint8Array(I),ae=0;ae<G.length;ae++)G[ae]=L[ae];return G},x.sign.detached=function(O,z){for(var L=x.sign(O,z),I=new Uint8Array(Dt),G=0;G<I.length;G++)I[G]=L[G];return I},x.sign.detached.verify=function(O,z,L){if(ke(O,z,L),z.length!==Dt)throw new Error("bad signature size");if(L.length!==Ne)throw new Error("bad public key size");var I=new Uint8Array(Dt+O.length),G=new Uint8Array(Dt+O.length),ae;for(ae=0;ae<Dt;ae++)I[ae]=z[ae];for(ae=0;ae<O.length;ae++)I[ae+Dt]=O[ae];return Be(G,I,I.length,L)>=0},x.sign.keyPair=function(){var O=new Uint8Array(Ne),z=new Uint8Array(Pe);return ve(O,z),{publicKey:O,secretKey:z}},x.sign.keyPair.fromSecretKey=function(O){if(ke(O),O.length!==Pe)throw new Error("bad secret key size");for(var z=new Uint8Array(Ne),L=0;L<z.length;L++)z[L]=O[32+L];return{publicKey:z,secretKey:new Uint8Array(O)}},x.sign.keyPair.fromSeed=function(O){if(ke(O),O.length!==kt)throw new Error("bad seed size");for(var z=new Uint8Array(Ne),L=new Uint8Array(Pe),I=0;I<32;I++)L[I]=O[I];return ve(z,L,!0),{publicKey:z,secretKey:L}},x.sign.publicKeyLength=Ne,x.sign.secretKeyLength=Pe,x.sign.seedLength=kt,x.sign.signatureLength=Dt,x.hash=function(O){ke(O);var z=new Uint8Array(qe);return ne(z,O,O.length),z},x.hash.hashLength=qe,x.verify=function(O,z){return ke(O,z),O.length===0||z.length===0||O.length!==z.length?!1:A(O,0,z,0,O.length)===0},x.setPRNG=function(O){c=O},(function(){var O=typeof self<"u"?self.crypto||self.msCrypto:null;if(O&&O.getRandomValues){var z=65536;x.setPRNG(function(L,I){var G,ae=new Uint8Array(I);for(G=0;G<I;G+=z)O.getRandomValues(ae.subarray(G,G+Math.min(I-G,z)));for(G=0;G<I;G++)L[G]=ae[G];Ue(ae)})}else typeof i1<"u"&&(O=qc(),O&&O.randomBytes&&x.setPRNG(function(L,I){var G,ae=O.randomBytes(I);for(G=0;G<I;G++)L[G]=ae[G];Ue(ae)}))})()})(g.exports?g.exports:self.nacl=self.nacl||{})})(li)),li.exports}var kv=Oc();const sf=ze.getDefaultExportFromCjs(kv);var C0={exports:{}},lu;function Nv(){return lu||(lu=1,(function(g){(function(){var x="input is invalid type",S="finalize already called",c=typeof window=="object",E=c?window:{};E.JS_SHA512_NO_WINDOW&&(c=!1);var i=!c&&typeof self=="object",_=!E.JS_SHA512_NO_NODE_JS&&typeof we.process$1=="object"&&we.process$1.versions&&we.process$1.versions.node;_?E=ze.commonjsGlobal:i&&(E=self);var y=!E.JS_SHA512_NO_COMMON_JS&&!0&&g.exports,m=!E.JS_SHA512_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",h="0123456789abcdef".split(""),d=[-2147483648,8388608,32768,128],p=[24,16,8,0],v=[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],w=["hex","array","digest","arrayBuffer"],M=[];(E.JS_SHA512_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(q){return Object.prototype.toString.call(q)==="[object Array]"}),m&&(E.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(q){return typeof q=="object"&&q.buffer&&q.buffer.constructor===ArrayBuffer});var A=function(q,Y){return function(J){return new R(Y,!0).update(J)[q]()}},B=function(q){var Y=A("hex",q);Y.create=function(){return new R(q)},Y.update=function(re){return Y.create().update(re)};for(var J=0;J<w.length;++J){var V=w[J];Y[V]=A(V,q)}return Y},F=function(q,Y){return function(J,V){return new D(J,Y,!0).update(V)[q]()}},C=function(q){var Y=F("hex",q);Y.create=function(re){return new D(re,q)},Y.update=function(re,u){return Y.create(re).update(u)};for(var J=0;J<w.length;++J){var V=w[J];Y[V]=F(V,q)}return Y};function R(q,Y){Y?(M[0]=M[1]=M[2]=M[3]=M[4]=M[5]=M[6]=M[7]=M[8]=M[9]=M[10]=M[11]=M[12]=M[13]=M[14]=M[15]=M[16]=M[17]=M[18]=M[19]=M[20]=M[21]=M[22]=M[23]=M[24]=M[25]=M[26]=M[27]=M[28]=M[29]=M[30]=M[31]=M[32]=0,this.blocks=M):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],q==384?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):q==256?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):q==224?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=q,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}R.prototype.update=function(q){if(this.finalized)throw new Error(S);var Y,J=typeof q;if(J!=="string"){if(J==="object"){if(q===null)throw new Error(x);if(m&&q.constructor===ArrayBuffer)q=new Uint8Array(q);else if(!Array.isArray(q)&&(!m||!ArrayBuffer.isView(q)))throw new Error(x)}else throw new Error(x);Y=!0}for(var V,re=0,u,e=q.length,r=this.blocks;re<e;){if(this.hashed&&(this.hashed=!1,r[0]=this.block,r[1]=r[2]=r[3]=r[4]=r[5]=r[6]=r[7]=r[8]=r[9]=r[10]=r[11]=r[12]=r[13]=r[14]=r[15]=r[16]=r[17]=r[18]=r[19]=r[20]=r[21]=r[22]=r[23]=r[24]=r[25]=r[26]=r[27]=r[28]=r[29]=r[30]=r[31]=r[32]=0),Y)for(u=this.start;re<e&&u<128;++re)r[u>>2]|=q[re]<<p[u++&3];else for(u=this.start;re<e&&u<128;++re)V=q.charCodeAt(re),V<128?r[u>>2]|=V<<p[u++&3]:V<2048?(r[u>>2]|=(192|V>>6)<<p[u++&3],r[u>>2]|=(128|V&63)<<p[u++&3]):V<55296||V>=57344?(r[u>>2]|=(224|V>>12)<<p[u++&3],r[u>>2]|=(128|V>>6&63)<<p[u++&3],r[u>>2]|=(128|V&63)<<p[u++&3]):(V=65536+((V&1023)<<10|q.charCodeAt(++re)&1023),r[u>>2]|=(240|V>>18)<<p[u++&3],r[u>>2]|=(128|V>>12&63)<<p[u++&3],r[u>>2]|=(128|V>>6&63)<<p[u++&3],r[u>>2]|=(128|V&63)<<p[u++&3]);this.lastByteIndex=u,this.bytes+=u-this.start,u>=128?(this.block=r[32],this.start=u-128,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},R.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var q=this.blocks,Y=this.lastByteIndex;q[32]=this.block,q[Y>>2]|=d[Y&3],this.block=q[32],Y>=112&&(this.hashed||this.hash(),q[0]=this.block,q[1]=q[2]=q[3]=q[4]=q[5]=q[6]=q[7]=q[8]=q[9]=q[10]=q[11]=q[12]=q[13]=q[14]=q[15]=q[16]=q[17]=q[18]=q[19]=q[20]=q[21]=q[22]=q[23]=q[24]=q[25]=q[26]=q[27]=q[28]=q[29]=q[30]=q[31]=q[32]=0),q[30]=this.hBytes<<3|this.bytes>>>29,q[31]=this.bytes<<3,this.hash()}},R.prototype.hash=function(){var q=this.h0h,Y=this.h0l,J=this.h1h,V=this.h1l,re=this.h2h,u=this.h2l,e=this.h3h,r=this.h3l,n=this.h4h,a=this.h4l,o=this.h5h,l=this.h5l,b=this.h6h,f=this.h6l,t=this.h7h,s=this.h7l,$=this.blocks,W,U,Q,X,P,H,Z,k,N,T,j,fe,ee,te,he,ie,ne,pe,oe,se,Re,de,ve,ot,be;for(W=32;W<160;W+=2)se=$[W-30],Re=$[W-29],U=(se>>>1|Re<<31)^(se>>>8|Re<<24)^se>>>7,Q=(Re>>>1|se<<31)^(Re>>>8|se<<24)^(Re>>>7|se<<25),se=$[W-4],Re=$[W-3],X=(se>>>19|Re<<13)^(Re>>>29|se<<3)^se>>>6,P=(Re>>>19|se<<13)^(se>>>29|Re<<3)^(Re>>>6|se<<26),se=$[W-32],Re=$[W-31],de=$[W-14],ve=$[W-13],H=(ve&65535)+(Re&65535)+(Q&65535)+(P&65535),Z=(ve>>>16)+(Re>>>16)+(Q>>>16)+(P>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(U&65535)+(X&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(U>>>16)+(X>>>16)+(k>>>16),$[W]=N<<16|k&65535,$[W+1]=Z<<16|H&65535;var me=q,ut=Y,Fe=J,Be=V,pt=re,Ae=u,Se=e,ct=r,_e=n,xe=a,wt=o,Ce=l,De=b,_t=f,Te=t,Ie=s;for(ie=Fe&pt,ne=Be&Ae,W=0;W<160;W+=8)U=(me>>>28|ut<<4)^(ut>>>2|me<<30)^(ut>>>7|me<<25),Q=(ut>>>28|me<<4)^(me>>>2|ut<<30)^(me>>>7|ut<<25),X=(_e>>>14|xe<<18)^(_e>>>18|xe<<14)^(xe>>>9|_e<<23),P=(xe>>>14|_e<<18)^(xe>>>18|_e<<14)^(_e>>>9|xe<<23),T=me&Fe,j=ut&Be,pe=T^me&pt^ie,oe=j^ut&Ae^ne,ot=_e&wt^~_e&De,be=xe&Ce^~xe&_t,se=$[W],Re=$[W+1],de=v[W],ve=v[W+1],H=(ve&65535)+(Re&65535)+(be&65535)+(P&65535)+(Ie&65535),Z=(ve>>>16)+(Re>>>16)+(be>>>16)+(P>>>16)+(Ie>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(ot&65535)+(X&65535)+(Te&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(ot>>>16)+(X>>>16)+(Te>>>16)+(k>>>16),se=N<<16|k&65535,Re=Z<<16|H&65535,H=(oe&65535)+(Q&65535),Z=(oe>>>16)+(Q>>>16)+(H>>>16),k=(pe&65535)+(U&65535)+(Z>>>16),N=(pe>>>16)+(U>>>16)+(k>>>16),de=N<<16|k&65535,ve=Z<<16|H&65535,H=(ct&65535)+(Re&65535),Z=(ct>>>16)+(Re>>>16)+(H>>>16),k=(Se&65535)+(se&65535)+(Z>>>16),N=(Se>>>16)+(se>>>16)+(k>>>16),Te=N<<16|k&65535,Ie=Z<<16|H&65535,H=(ve&65535)+(Re&65535),Z=(ve>>>16)+(Re>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(k>>>16),Se=N<<16|k&65535,ct=Z<<16|H&65535,U=(Se>>>28|ct<<4)^(ct>>>2|Se<<30)^(ct>>>7|Se<<25),Q=(ct>>>28|Se<<4)^(Se>>>2|ct<<30)^(Se>>>7|ct<<25),X=(Te>>>14|Ie<<18)^(Te>>>18|Ie<<14)^(Ie>>>9|Te<<23),P=(Ie>>>14|Te<<18)^(Ie>>>18|Te<<14)^(Te>>>9|Ie<<23),fe=Se&me,ee=ct&ut,pe=fe^Se&Fe^T,oe=ee^ct&Be^j,ot=Te&_e^~Te&wt,be=Ie&xe^~Ie&Ce,se=$[W+2],Re=$[W+3],de=v[W+2],ve=v[W+3],H=(ve&65535)+(Re&65535)+(be&65535)+(P&65535)+(_t&65535),Z=(ve>>>16)+(Re>>>16)+(be>>>16)+(P>>>16)+(_t>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(ot&65535)+(X&65535)+(De&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(ot>>>16)+(X>>>16)+(De>>>16)+(k>>>16),se=N<<16|k&65535,Re=Z<<16|H&65535,H=(oe&65535)+(Q&65535),Z=(oe>>>16)+(Q>>>16)+(H>>>16),k=(pe&65535)+(U&65535)+(Z>>>16),N=(pe>>>16)+(U>>>16)+(k>>>16),de=N<<16|k&65535,ve=Z<<16|H&65535,H=(Ae&65535)+(Re&65535),Z=(Ae>>>16)+(Re>>>16)+(H>>>16),k=(pt&65535)+(se&65535)+(Z>>>16),N=(pt>>>16)+(se>>>16)+(k>>>16),De=N<<16|k&65535,_t=Z<<16|H&65535,H=(ve&65535)+(Re&65535),Z=(ve>>>16)+(Re>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(k>>>16),pt=N<<16|k&65535,Ae=Z<<16|H&65535,U=(pt>>>28|Ae<<4)^(Ae>>>2|pt<<30)^(Ae>>>7|pt<<25),Q=(Ae>>>28|pt<<4)^(pt>>>2|Ae<<30)^(pt>>>7|Ae<<25),X=(De>>>14|_t<<18)^(De>>>18|_t<<14)^(_t>>>9|De<<23),P=(_t>>>14|De<<18)^(_t>>>18|De<<14)^(De>>>9|_t<<23),te=pt&Se,he=Ae&ct,pe=te^pt&me^fe,oe=he^Ae&ut^ee,ot=De&Te^~De&_e,be=_t&Ie^~_t&xe,se=$[W+4],Re=$[W+5],de=v[W+4],ve=v[W+5],H=(ve&65535)+(Re&65535)+(be&65535)+(P&65535)+(Ce&65535),Z=(ve>>>16)+(Re>>>16)+(be>>>16)+(P>>>16)+(Ce>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(ot&65535)+(X&65535)+(wt&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(ot>>>16)+(X>>>16)+(wt>>>16)+(k>>>16),se=N<<16|k&65535,Re=Z<<16|H&65535,H=(oe&65535)+(Q&65535),Z=(oe>>>16)+(Q>>>16)+(H>>>16),k=(pe&65535)+(U&65535)+(Z>>>16),N=(pe>>>16)+(U>>>16)+(k>>>16),de=N<<16|k&65535,ve=Z<<16|H&65535,H=(Be&65535)+(Re&65535),Z=(Be>>>16)+(Re>>>16)+(H>>>16),k=(Fe&65535)+(se&65535)+(Z>>>16),N=(Fe>>>16)+(se>>>16)+(k>>>16),wt=N<<16|k&65535,Ce=Z<<16|H&65535,H=(ve&65535)+(Re&65535),Z=(ve>>>16)+(Re>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(k>>>16),Fe=N<<16|k&65535,Be=Z<<16|H&65535,U=(Fe>>>28|Be<<4)^(Be>>>2|Fe<<30)^(Be>>>7|Fe<<25),Q=(Be>>>28|Fe<<4)^(Fe>>>2|Be<<30)^(Fe>>>7|Be<<25),X=(wt>>>14|Ce<<18)^(wt>>>18|Ce<<14)^(Ce>>>9|wt<<23),P=(Ce>>>14|wt<<18)^(Ce>>>18|wt<<14)^(wt>>>9|Ce<<23),ie=Fe&pt,ne=Be&Ae,pe=ie^Fe&Se^te,oe=ne^Be&ct^he,ot=wt&De^~wt&Te,be=Ce&_t^~Ce&Ie,se=$[W+6],Re=$[W+7],de=v[W+6],ve=v[W+7],H=(ve&65535)+(Re&65535)+(be&65535)+(P&65535)+(xe&65535),Z=(ve>>>16)+(Re>>>16)+(be>>>16)+(P>>>16)+(xe>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(ot&65535)+(X&65535)+(_e&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(ot>>>16)+(X>>>16)+(_e>>>16)+(k>>>16),se=N<<16|k&65535,Re=Z<<16|H&65535,H=(oe&65535)+(Q&65535),Z=(oe>>>16)+(Q>>>16)+(H>>>16),k=(pe&65535)+(U&65535)+(Z>>>16),N=(pe>>>16)+(U>>>16)+(k>>>16),de=N<<16|k&65535,ve=Z<<16|H&65535,H=(ut&65535)+(Re&65535),Z=(ut>>>16)+(Re>>>16)+(H>>>16),k=(me&65535)+(se&65535)+(Z>>>16),N=(me>>>16)+(se>>>16)+(k>>>16),_e=N<<16|k&65535,xe=Z<<16|H&65535,H=(ve&65535)+(Re&65535),Z=(ve>>>16)+(Re>>>16)+(H>>>16),k=(de&65535)+(se&65535)+(Z>>>16),N=(de>>>16)+(se>>>16)+(k>>>16),me=N<<16|k&65535,ut=Z<<16|H&65535;H=(Y&65535)+(ut&65535),Z=(Y>>>16)+(ut>>>16)+(H>>>16),k=(q&65535)+(me&65535)+(Z>>>16),N=(q>>>16)+(me>>>16)+(k>>>16),this.h0h=N<<16|k&65535,this.h0l=Z<<16|H&65535,H=(V&65535)+(Be&65535),Z=(V>>>16)+(Be>>>16)+(H>>>16),k=(J&65535)+(Fe&65535)+(Z>>>16),N=(J>>>16)+(Fe>>>16)+(k>>>16),this.h1h=N<<16|k&65535,this.h1l=Z<<16|H&65535,H=(u&65535)+(Ae&65535),Z=(u>>>16)+(Ae>>>16)+(H>>>16),k=(re&65535)+(pt&65535)+(Z>>>16),N=(re>>>16)+(pt>>>16)+(k>>>16),this.h2h=N<<16|k&65535,this.h2l=Z<<16|H&65535,H=(r&65535)+(ct&65535),Z=(r>>>16)+(ct>>>16)+(H>>>16),k=(e&65535)+(Se&65535)+(Z>>>16),N=(e>>>16)+(Se>>>16)+(k>>>16),this.h3h=N<<16|k&65535,this.h3l=Z<<16|H&65535,H=(a&65535)+(xe&65535),Z=(a>>>16)+(xe>>>16)+(H>>>16),k=(n&65535)+(_e&65535)+(Z>>>16),N=(n>>>16)+(_e>>>16)+(k>>>16),this.h4h=N<<16|k&65535,this.h4l=Z<<16|H&65535,H=(l&65535)+(Ce&65535),Z=(l>>>16)+(Ce>>>16)+(H>>>16),k=(o&65535)+(wt&65535)+(Z>>>16),N=(o>>>16)+(wt>>>16)+(k>>>16),this.h5h=N<<16|k&65535,this.h5l=Z<<16|H&65535,H=(f&65535)+(_t&65535),Z=(f>>>16)+(_t>>>16)+(H>>>16),k=(b&65535)+(De&65535)+(Z>>>16),N=(b>>>16)+(De>>>16)+(k>>>16),this.h6h=N<<16|k&65535,this.h6l=Z<<16|H&65535,H=(s&65535)+(Ie&65535),Z=(s>>>16)+(Ie>>>16)+(H>>>16),k=(t&65535)+(Te&65535)+(Z>>>16),N=(t>>>16)+(Te>>>16)+(k>>>16),this.h7h=N<<16|k&65535,this.h7l=Z<<16|H&65535},R.prototype.hex=function(){this.finalize();var q=this.h0h,Y=this.h0l,J=this.h1h,V=this.h1l,re=this.h2h,u=this.h2l,e=this.h3h,r=this.h3l,n=this.h4h,a=this.h4l,o=this.h5h,l=this.h5l,b=this.h6h,f=this.h6l,t=this.h7h,s=this.h7l,$=this.bits,W=h[q>>28&15]+h[q>>24&15]+h[q>>20&15]+h[q>>16&15]+h[q>>12&15]+h[q>>8&15]+h[q>>4&15]+h[q&15]+h[Y>>28&15]+h[Y>>24&15]+h[Y>>20&15]+h[Y>>16&15]+h[Y>>12&15]+h[Y>>8&15]+h[Y>>4&15]+h[Y&15]+h[J>>28&15]+h[J>>24&15]+h[J>>20&15]+h[J>>16&15]+h[J>>12&15]+h[J>>8&15]+h[J>>4&15]+h[J&15]+h[V>>28&15]+h[V>>24&15]+h[V>>20&15]+h[V>>16&15]+h[V>>12&15]+h[V>>8&15]+h[V>>4&15]+h[V&15]+h[re>>28&15]+h[re>>24&15]+h[re>>20&15]+h[re>>16&15]+h[re>>12&15]+h[re>>8&15]+h[re>>4&15]+h[re&15]+h[u>>28&15]+h[u>>24&15]+h[u>>20&15]+h[u>>16&15]+h[u>>12&15]+h[u>>8&15]+h[u>>4&15]+h[u&15]+h[e>>28&15]+h[e>>24&15]+h[e>>20&15]+h[e>>16&15]+h[e>>12&15]+h[e>>8&15]+h[e>>4&15]+h[e&15];return $>=256&&(W+=h[r>>28&15]+h[r>>24&15]+h[r>>20&15]+h[r>>16&15]+h[r>>12&15]+h[r>>8&15]+h[r>>4&15]+h[r&15]),$>=384&&(W+=h[n>>28&15]+h[n>>24&15]+h[n>>20&15]+h[n>>16&15]+h[n>>12&15]+h[n>>8&15]+h[n>>4&15]+h[n&15]+h[a>>28&15]+h[a>>24&15]+h[a>>20&15]+h[a>>16&15]+h[a>>12&15]+h[a>>8&15]+h[a>>4&15]+h[a&15]+h[o>>28&15]+h[o>>24&15]+h[o>>20&15]+h[o>>16&15]+h[o>>12&15]+h[o>>8&15]+h[o>>4&15]+h[o&15]+h[l>>28&15]+h[l>>24&15]+h[l>>20&15]+h[l>>16&15]+h[l>>12&15]+h[l>>8&15]+h[l>>4&15]+h[l&15]),$==512&&(W+=h[b>>28&15]+h[b>>24&15]+h[b>>20&15]+h[b>>16&15]+h[b>>12&15]+h[b>>8&15]+h[b>>4&15]+h[b&15]+h[f>>28&15]+h[f>>24&15]+h[f>>20&15]+h[f>>16&15]+h[f>>12&15]+h[f>>8&15]+h[f>>4&15]+h[f&15]+h[t>>28&15]+h[t>>24&15]+h[t>>20&15]+h[t>>16&15]+h[t>>12&15]+h[t>>8&15]+h[t>>4&15]+h[t&15]+h[s>>28&15]+h[s>>24&15]+h[s>>20&15]+h[s>>16&15]+h[s>>12&15]+h[s>>8&15]+h[s>>4&15]+h[s&15]),W},R.prototype.toString=R.prototype.hex,R.prototype.digest=function(){this.finalize();var q=this.h0h,Y=this.h0l,J=this.h1h,V=this.h1l,re=this.h2h,u=this.h2l,e=this.h3h,r=this.h3l,n=this.h4h,a=this.h4l,o=this.h5h,l=this.h5l,b=this.h6h,f=this.h6l,t=this.h7h,s=this.h7l,$=this.bits,W=[q>>24&255,q>>16&255,q>>8&255,q&255,Y>>24&255,Y>>16&255,Y>>8&255,Y&255,J>>24&255,J>>16&255,J>>8&255,J&255,V>>24&255,V>>16&255,V>>8&255,V&255,re>>24&255,re>>16&255,re>>8&255,re&255,u>>24&255,u>>16&255,u>>8&255,u&255,e>>24&255,e>>16&255,e>>8&255,e&255];return $>=256&&W.push(r>>24&255,r>>16&255,r>>8&255,r&255),$>=384&&W.push(n>>24&255,n>>16&255,n>>8&255,n&255,a>>24&255,a>>16&255,a>>8&255,a&255,o>>24&255,o>>16&255,o>>8&255,o&255,l>>24&255,l>>16&255,l>>8&255,l&255),$==512&&W.push(b>>24&255,b>>16&255,b>>8&255,b&255,f>>24&255,f>>16&255,f>>8&255,f&255,t>>24&255,t>>16&255,t>>8&255,t&255,s>>24&255,s>>16&255,s>>8&255,s&255),W},R.prototype.array=R.prototype.digest,R.prototype.arrayBuffer=function(){this.finalize();var q=this.bits,Y=new ArrayBuffer(q/8),J=new DataView(Y);return J.setUint32(0,this.h0h),J.setUint32(4,this.h0l),J.setUint32(8,this.h1h),J.setUint32(12,this.h1l),J.setUint32(16,this.h2h),J.setUint32(20,this.h2l),J.setUint32(24,this.h3h),q>=256&&J.setUint32(28,this.h3l),q>=384&&(J.setUint32(32,this.h4h),J.setUint32(36,this.h4l),J.setUint32(40,this.h5h),J.setUint32(44,this.h5l)),q==512&&(J.setUint32(48,this.h6h),J.setUint32(52,this.h6l),J.setUint32(56,this.h7h),J.setUint32(60,this.h7l)),Y},R.prototype.clone=function(){var q=new R(this.bits,!1);return this.copyTo(q),q},R.prototype.copyTo=function(q){var Y=0,J=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(Y=0;Y<J.length;++Y)q[J[Y]]=this[J[Y]];for(Y=0;Y<this.blocks.length;++Y)q.blocks[Y]=this.blocks[Y]};function D(q,Y,J){var V,re=typeof q;if(re!=="string"){if(re==="object"){if(q===null)throw new Error(x);if(m&&q.constructor===ArrayBuffer)q=new Uint8Array(q);else if(!Array.isArray(q)&&(!m||!ArrayBuffer.isView(q)))throw new Error(x)}else throw new Error(x);V=!0}var u=q.length;if(!V){for(var e=[],u=q.length,r=0,n,a=0;a<u;++a)n=q.charCodeAt(a),n<128?e[r++]=n:n<2048?(e[r++]=192|n>>6,e[r++]=128|n&63):n<55296||n>=57344?(e[r++]=224|n>>12,e[r++]=128|n>>6&63,e[r++]=128|n&63):(n=65536+((n&1023)<<10|q.charCodeAt(++a)&1023),e[r++]=240|n>>18,e[r++]=128|n>>12&63,e[r++]=128|n>>6&63,e[r++]=128|n&63);q=e}q.length>128&&(q=new R(Y,!0).update(q).array());for(var o=[],l=[],a=0;a<128;++a){var b=q[a]||0;o[a]=92^b,l[a]=54^b}R.call(this,Y,J),this.update(l),this.oKeyPad=o,this.inner=!0,this.sharedMemory=J}D.prototype=new R,D.prototype.finalize=function(){if(R.prototype.finalize.call(this),this.inner){this.inner=!1;var q=this.array();R.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(q),R.prototype.finalize.call(this)}},D.prototype.clone=function(){var q=new D([],this.bits,!1);this.copyTo(q),q.inner=this.inner;for(var Y=0;Y<this.oKeyPad.length;++Y)q.oKeyPad[Y]=this.oKeyPad[Y];return q};var K=B(512);K.sha512=K,K.sha384=B(384),K.sha512_256=B(256),K.sha512_224=B(224),K.sha512.hmac=C(512),K.sha384.hmac=C(384),K.sha512_256.hmac=C(256),K.sha512_224.hmac=C(224),y?g.exports=K:(E.sha512=K.sha512,E.sha384=K.sha384,E.sha512_256=K.sha512_256,E.sha512_224=K.sha512_224)})()})(C0)),C0.exports}var Pv=Nv();const qv=ze.getDefaultExportFromCjs(Pv);var Mr={exports:{}},D0={exports:{}},Qr={exports:{}},Ov=Qr.exports,du;function Uc(){return du||(du=1,(function(g){(function(x){var S,c=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,E=Math.ceil,i=Math.floor,_="[BigNumber Error] ",y=_+"Number primitive has more than 15 significant digits: ",m=1e14,h=14,d=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],v=1e7,w=1e9;function M(q){var Y,J,V,re=U.prototype={constructor:U,toString:null,valueOf:null},u=new U(1),e=20,r=4,n=-7,a=21,o=-1e7,l=1e7,b=!1,f=1,t=0,s={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},$="0123456789abcdefghijklmnopqrstuvwxyz",W=!0;function U(k,N){var T,j,fe,ee,te,he,ie,ne,pe=this;if(!(pe instanceof U))return new U(k,N);if(N==null){if(k&&k._isBigNumber===!0){pe.s=k.s,!k.c||k.e>l?pe.c=pe.e=null:k.e<o?pe.c=[pe.e=0]:(pe.e=k.e,pe.c=k.c.slice());return}if((he=typeof k=="number")&&k*0==0){if(pe.s=1/k<0?(k=-k,-1):1,k===~~k){for(ee=0,te=k;te>=10;te/=10,ee++);ee>l?pe.c=pe.e=null:(pe.e=ee,pe.c=[k]);return}ne=String(k)}else{if(!c.test(ne=String(k)))return V(pe,ne,he);pe.s=ne.charCodeAt(0)==45?(ne=ne.slice(1),-1):1}(ee=ne.indexOf("."))>-1&&(ne=ne.replace(".","")),(te=ne.search(/e/i))>0?(ee<0&&(ee=te),ee+=+ne.slice(te+1),ne=ne.substring(0,te)):ee<0&&(ee=ne.length)}else{if(C(N,2,$.length,"Base"),N==10&&W)return pe=new U(k),H(pe,e+pe.e+1,r);if(ne=String(k),he=typeof k=="number"){if(k*0!=0)return V(pe,ne,he,N);if(pe.s=1/k<0?(ne=ne.slice(1),-1):1,U.DEBUG&&ne.replace(/^0\.0*|\./,"").length>15)throw Error(y+k)}else pe.s=ne.charCodeAt(0)===45?(ne=ne.slice(1),-1):1;for(T=$.slice(0,N),ee=te=0,ie=ne.length;te<ie;te++)if(T.indexOf(j=ne.charAt(te))<0){if(j=="."){if(te>ee){ee=ie;continue}}else if(!fe&&(ne==ne.toUpperCase()&&(ne=ne.toLowerCase())||ne==ne.toLowerCase()&&(ne=ne.toUpperCase()))){fe=!0,te=-1,ee=0;continue}return V(pe,String(k),he,N)}he=!1,ne=J(ne,N,10,pe.s),(ee=ne.indexOf("."))>-1?ne=ne.replace(".",""):ee=ne.length}for(te=0;ne.charCodeAt(te)===48;te++);for(ie=ne.length;ne.charCodeAt(--ie)===48;);if(ne=ne.slice(te,++ie)){if(ie-=te,he&&U.DEBUG&&ie>15&&(k>d||k!==i(k)))throw Error(y+pe.s*k);if((ee=ee-te-1)>l)pe.c=pe.e=null;else if(ee<o)pe.c=[pe.e=0];else{if(pe.e=ee,pe.c=[],te=(ee+1)%h,ee<0&&(te+=h),te<ie){for(te&&pe.c.push(+ne.slice(0,te)),ie-=h;te<ie;)pe.c.push(+ne.slice(te,te+=h));te=h-(ne=ne.slice(te)).length}else te-=ie;for(;te--;ne+="0");pe.c.push(+ne)}}else pe.c=[pe.e=0]}U.clone=M,U.ROUND_UP=0,U.ROUND_DOWN=1,U.ROUND_CEIL=2,U.ROUND_FLOOR=3,U.ROUND_HALF_UP=4,U.ROUND_HALF_DOWN=5,U.ROUND_HALF_EVEN=6,U.ROUND_HALF_CEIL=7,U.ROUND_HALF_FLOOR=8,U.EUCLID=9,U.config=U.set=function(k){var N,T;if(k!=null)if(typeof k=="object"){if(k.hasOwnProperty(N="DECIMAL_PLACES")&&(T=k[N],C(T,0,w,N),e=T),k.hasOwnProperty(N="ROUNDING_MODE")&&(T=k[N],C(T,0,8,N),r=T),k.hasOwnProperty(N="EXPONENTIAL_AT")&&(T=k[N],T&&T.pop?(C(T[0],-w,0,N),C(T[1],0,w,N),n=T[0],a=T[1]):(C(T,-w,w,N),n=-(a=T<0?-T:T))),k.hasOwnProperty(N="RANGE"))if(T=k[N],T&&T.pop)C(T[0],-w,-1,N),C(T[1],1,w,N),o=T[0],l=T[1];else if(C(T,-w,w,N),T)o=-(l=T<0?-T:T);else throw Error(_+N+" cannot be zero: "+T);if(k.hasOwnProperty(N="CRYPTO"))if(T=k[N],T===!!T)if(T)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))b=T;else throw b=!T,Error(_+"crypto unavailable");else b=T;else throw Error(_+N+" not true or false: "+T);if(k.hasOwnProperty(N="MODULO_MODE")&&(T=k[N],C(T,0,9,N),f=T),k.hasOwnProperty(N="POW_PRECISION")&&(T=k[N],C(T,0,w,N),t=T),k.hasOwnProperty(N="FORMAT"))if(T=k[N],typeof T=="object")s=T;else throw Error(_+N+" not an object: "+T);if(k.hasOwnProperty(N="ALPHABET"))if(T=k[N],typeof T=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(T))W=T.slice(0,10)=="0123456789",$=T;else throw Error(_+N+" invalid: "+T)}else throw Error(_+"Object expected: "+k);return{DECIMAL_PLACES:e,ROUNDING_MODE:r,EXPONENTIAL_AT:[n,a],RANGE:[o,l],CRYPTO:b,MODULO_MODE:f,POW_PRECISION:t,FORMAT:s,ALPHABET:$}},U.isBigNumber=function(k){if(!k||k._isBigNumber!==!0)return!1;if(!U.DEBUG)return!0;var N,T,j=k.c,fe=k.e,ee=k.s;e:if({}.toString.call(j)=="[object Array]"){if((ee===1||ee===-1)&&fe>=-w&&fe<=w&&fe===i(fe)){if(j[0]===0){if(fe===0&&j.length===1)return!0;break e}if(N=(fe+1)%h,N<1&&(N+=h),String(j[0]).length==N){for(N=0;N<j.length;N++)if(T=j[N],T<0||T>=m||T!==i(T))break e;if(T!==0)return!0}}}else if(j===null&&fe===null&&(ee===null||ee===1||ee===-1))return!0;throw Error(_+"Invalid BigNumber: "+k)},U.maximum=U.max=function(){return X(arguments,-1)},U.minimum=U.min=function(){return X(arguments,1)},U.random=(function(){var k=9007199254740992,N=Math.random()*k&2097151?function(){return i(Math.random()*k)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(T){var j,fe,ee,te,he,ie=0,ne=[],pe=new U(u);if(T==null?T=e:C(T,0,w),te=E(T/h),b)if(crypto.getRandomValues){for(j=crypto.getRandomValues(new Uint32Array(te*=2));ie<te;)he=j[ie]*131072+(j[ie+1]>>>11),he>=9e15?(fe=crypto.getRandomValues(new Uint32Array(2)),j[ie]=fe[0],j[ie+1]=fe[1]):(ne.push(he%1e14),ie+=2);ie=te/2}else if(crypto.randomBytes){for(j=crypto.randomBytes(te*=7);ie<te;)he=(j[ie]&31)*281474976710656+j[ie+1]*1099511627776+j[ie+2]*4294967296+j[ie+3]*16777216+(j[ie+4]<<16)+(j[ie+5]<<8)+j[ie+6],he>=9e15?crypto.randomBytes(7).copy(j,ie):(ne.push(he%1e14),ie+=7);ie=te/7}else throw b=!1,Error(_+"crypto unavailable");if(!b)for(;ie<te;)he=N(),he<9e15&&(ne[ie++]=he%1e14);for(te=ne[--ie],T%=h,te&&T&&(he=p[h-T],ne[ie]=i(te/he)*he);ne[ie]===0;ne.pop(),ie--);if(ie<0)ne=[ee=0];else{for(ee=-1;ne[0]===0;ne.splice(0,1),ee-=h);for(ie=1,he=ne[0];he>=10;he/=10,ie++);ie<h&&(ee-=h-ie)}return pe.e=ee,pe.c=ne,pe}})(),U.sum=function(){for(var k=1,N=arguments,T=new U(N[0]);k<N.length;)T=T.plus(N[k++]);return T},J=(function(){var k="0123456789";function N(T,j,fe,ee){for(var te,he=[0],ie,ne=0,pe=T.length;ne<pe;){for(ie=he.length;ie--;he[ie]*=j);for(he[0]+=ee.indexOf(T.charAt(ne++)),te=0;te<he.length;te++)he[te]>fe-1&&(he[te+1]==null&&(he[te+1]=0),he[te+1]+=he[te]/fe|0,he[te]%=fe)}return he.reverse()}return function(T,j,fe,ee,te){var he,ie,ne,pe,oe,se,Re,de,ve=T.indexOf("."),ot=e,be=r;for(ve>=0&&(pe=t,t=0,T=T.replace(".",""),de=new U(j),se=de.pow(T.length-ve),t=pe,de.c=N(K(B(se.c),se.e,"0"),10,fe,k),de.e=de.c.length),Re=N(T,j,fe,te?(he=$,k):(he=k,$)),ne=pe=Re.length;Re[--pe]==0;Re.pop());if(!Re[0])return he.charAt(0);if(ve<0?--ne:(se.c=Re,se.e=ne,se.s=ee,se=Y(se,de,ot,be,fe),Re=se.c,oe=se.r,ne=se.e),ie=ne+ot+1,ve=Re[ie],pe=fe/2,oe=oe||ie<0||Re[ie+1]!=null,oe=be<4?(ve!=null||oe)&&(be==0||be==(se.s<0?3:2)):ve>pe||ve==pe&&(be==4||oe||be==6&&Re[ie-1]&1||be==(se.s<0?8:7)),ie<1||!Re[0])T=oe?K(he.charAt(1),-ot,he.charAt(0)):he.charAt(0);else{if(Re.length=ie,oe)for(--fe;++Re[--ie]>fe;)Re[ie]=0,ie||(++ne,Re=[1].concat(Re));for(pe=Re.length;!Re[--pe];);for(ve=0,T="";ve<=pe;T+=he.charAt(Re[ve++]));T=K(T,ne,he.charAt(0))}return T}})(),Y=(function(){function k(j,fe,ee){var te,he,ie,ne,pe=0,oe=j.length,se=fe%v,Re=fe/v|0;for(j=j.slice();oe--;)ie=j[oe]%v,ne=j[oe]/v|0,te=Re*ie+ne*se,he=se*ie+te%v*v+pe,pe=(he/ee|0)+(te/v|0)+Re*ne,j[oe]=he%ee;return pe&&(j=[pe].concat(j)),j}function N(j,fe,ee,te){var he,ie;if(ee!=te)ie=ee>te?1:-1;else for(he=ie=0;he<ee;he++)if(j[he]!=fe[he]){ie=j[he]>fe[he]?1:-1;break}return ie}function T(j,fe,ee,te){for(var he=0;ee--;)j[ee]-=he,he=j[ee]<fe[ee]?1:0,j[ee]=he*te+j[ee]-fe[ee];for(;!j[0]&&j.length>1;j.splice(0,1));}return function(j,fe,ee,te,he){var ie,ne,pe,oe,se,Re,de,ve,ot,be,me,ut,Fe,Be,pt,Ae,Se,ct=j.s==fe.s?1:-1,_e=j.c,xe=fe.c;if(!_e||!_e[0]||!xe||!xe[0])return new U(!j.s||!fe.s||(_e?xe&&_e[0]==xe[0]:!xe)?NaN:_e&&_e[0]==0||!xe?ct*0:ct/0);for(ve=new U(ct),ot=ve.c=[],ne=j.e-fe.e,ct=ee+ne+1,he||(he=m,ne=A(j.e/h)-A(fe.e/h),ct=ct/h|0),pe=0;xe[pe]==(_e[pe]||0);pe++);if(xe[pe]>(_e[pe]||0)&&ne--,ct<0)ot.push(1),oe=!0;else{for(Be=_e.length,Ae=xe.length,pe=0,ct+=2,se=i(he/(xe[0]+1)),se>1&&(xe=k(xe,se,he),_e=k(_e,se,he),Ae=xe.length,Be=_e.length),Fe=Ae,be=_e.slice(0,Ae),me=be.length;me<Ae;be[me++]=0);Se=xe.slice(),Se=[0].concat(Se),pt=xe[0],xe[1]>=he/2&&pt++;do{if(se=0,ie=N(xe,be,Ae,me),ie<0){if(ut=be[0],Ae!=me&&(ut=ut*he+(be[1]||0)),se=i(ut/pt),se>1)for(se>=he&&(se=he-1),Re=k(xe,se,he),de=Re.length,me=be.length;N(Re,be,de,me)==1;)se--,T(Re,Ae<de?Se:xe,de,he),de=Re.length,ie=1;else se==0&&(ie=se=1),Re=xe.slice(),de=Re.length;if(de<me&&(Re=[0].concat(Re)),T(be,Re,me,he),me=be.length,ie==-1)for(;N(xe,be,Ae,me)<1;)se++,T(be,Ae<me?Se:xe,me,he),me=be.length}else ie===0&&(se++,be=[0]);ot[pe++]=se,be[0]?be[me++]=_e[Fe]||0:(be=[_e[Fe]],me=1)}while((Fe++<Be||be[0]!=null)&&ct--);oe=be[0]!=null,ot[0]||ot.splice(0,1)}if(he==m){for(pe=1,ct=ot[0];ct>=10;ct/=10,pe++);H(ve,ee+(ve.e=pe+ne*h-1)+1,te,oe)}else ve.e=ne,ve.r=+oe;return ve}})();function Q(k,N,T,j){var fe,ee,te,he,ie;if(T==null?T=r:C(T,0,8),!k.c)return k.toString();if(fe=k.c[0],te=k.e,N==null)ie=B(k.c),ie=j==1||j==2&&(te<=n||te>=a)?D(ie,te):K(ie,te,"0");else if(k=H(new U(k),N,T),ee=k.e,ie=B(k.c),he=ie.length,j==1||j==2&&(N<=ee||ee<=n)){for(;he<N;ie+="0",he++);ie=D(ie,ee)}else if(N-=te+(j===2&&ee>te),ie=K(ie,ee,"0"),ee+1>he){if(--N>0)for(ie+=".";N--;ie+="0");}else if(N+=ee-he,N>0)for(ee+1==he&&(ie+=".");N--;ie+="0");return k.s<0&&fe?"-"+ie:ie}function X(k,N){for(var T,j,fe=1,ee=new U(k[0]);fe<k.length;fe++)j=new U(k[fe]),(!j.s||(T=F(ee,j))===N||T===0&&ee.s===N)&&(ee=j);return ee}function P(k,N,T){for(var j=1,fe=N.length;!N[--fe];N.pop());for(fe=N[0];fe>=10;fe/=10,j++);return(T=j+T*h-1)>l?k.c=k.e=null:T<o?k.c=[k.e=0]:(k.e=T,k.c=N),k}V=(function(){var k=/^(-?)0([xbo])(?=\w[\w.]*$)/i,N=/^([^.]+)\.$/,T=/^\.([^.]+)$/,j=/^-?(Infinity|NaN)$/,fe=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(ee,te,he,ie){var ne,pe=he?te:te.replace(fe,"");if(j.test(pe))ee.s=isNaN(pe)?null:pe<0?-1:1;else{if(!he&&(pe=pe.replace(k,function(oe,se,Re){return ne=(Re=Re.toLowerCase())=="x"?16:Re=="b"?2:8,!ie||ie==ne?se:oe}),ie&&(ne=ie,pe=pe.replace(N,"$1").replace(T,"0.$1")),te!=pe))return new U(pe,ne);if(U.DEBUG)throw Error(_+"Not a"+(ie?" base "+ie:"")+" number: "+te);ee.s=null}ee.c=ee.e=null}})();function H(k,N,T,j){var fe,ee,te,he,ie,ne,pe,oe=k.c,se=p;if(oe){e:{for(fe=1,he=oe[0];he>=10;he/=10,fe++);if(ee=N-fe,ee<0)ee+=h,te=N,ie=oe[ne=0],pe=i(ie/se[fe-te-1]%10);else if(ne=E((ee+1)/h),ne>=oe.length)if(j){for(;oe.length<=ne;oe.push(0));ie=pe=0,fe=1,ee%=h,te=ee-h+1}else break e;else{for(ie=he=oe[ne],fe=1;he>=10;he/=10,fe++);ee%=h,te=ee-h+fe,pe=te<0?0:i(ie/se[fe-te-1]%10)}if(j=j||N<0||oe[ne+1]!=null||(te<0?ie:ie%se[fe-te-1]),j=T<4?(pe||j)&&(T==0||T==(k.s<0?3:2)):pe>5||pe==5&&(T==4||j||T==6&&(ee>0?te>0?ie/se[fe-te]:0:oe[ne-1])%10&1||T==(k.s<0?8:7)),N<1||!oe[0])return oe.length=0,j?(N-=k.e+1,oe[0]=se[(h-N%h)%h],k.e=-N||0):oe[0]=k.e=0,k;if(ee==0?(oe.length=ne,he=1,ne--):(oe.length=ne+1,he=se[h-ee],oe[ne]=te>0?i(ie/se[fe-te]%se[te])*he:0),j)for(;;)if(ne==0){for(ee=1,te=oe[0];te>=10;te/=10,ee++);for(te=oe[0]+=he,he=1;te>=10;te/=10,he++);ee!=he&&(k.e++,oe[0]==m&&(oe[0]=1));break}else{if(oe[ne]+=he,oe[ne]!=m)break;oe[ne--]=0,he=1}for(ee=oe.length;oe[--ee]===0;oe.pop());}k.e>l?k.c=k.e=null:k.e<o&&(k.c=[k.e=0])}return k}function Z(k){var N,T=k.e;return T===null?k.toString():(N=B(k.c),N=T<=n||T>=a?D(N,T):K(N,T,"0"),k.s<0?"-"+N:N)}return re.absoluteValue=re.abs=function(){var k=new U(this);return k.s<0&&(k.s=1),k},re.comparedTo=function(k,N){return F(this,new U(k,N))},re.decimalPlaces=re.dp=function(k,N){var T,j,fe,ee=this;if(k!=null)return C(k,0,w),N==null?N=r:C(N,0,8),H(new U(ee),k+ee.e+1,N);if(!(T=ee.c))return null;if(j=((fe=T.length-1)-A(this.e/h))*h,fe=T[fe])for(;fe%10==0;fe/=10,j--);return j<0&&(j=0),j},re.dividedBy=re.div=function(k,N){return Y(this,new U(k,N),e,r)},re.dividedToIntegerBy=re.idiv=function(k,N){return Y(this,new U(k,N),0,1)},re.exponentiatedBy=re.pow=function(k,N){var T,j,fe,ee,te,he,ie,ne,pe,oe=this;if(k=new U(k),k.c&&!k.isInteger())throw Error(_+"Exponent not an integer: "+Z(k));if(N!=null&&(N=new U(N)),he=k.e>14,!oe.c||!oe.c[0]||oe.c[0]==1&&!oe.e&&oe.c.length==1||!k.c||!k.c[0])return pe=new U(Math.pow(+Z(oe),he?k.s*(2-R(k)):+Z(k))),N?pe.mod(N):pe;if(ie=k.s<0,N){if(N.c?!N.c[0]:!N.s)return new U(NaN);j=!ie&&oe.isInteger()&&N.isInteger(),j&&(oe=oe.mod(N))}else{if(k.e>9&&(oe.e>0||oe.e<-1||(oe.e==0?oe.c[0]>1||he&&oe.c[1]>=24e7:oe.c[0]<8e13||he&&oe.c[0]<=9999975e7)))return ee=oe.s<0&&R(k)?-0:0,oe.e>-1&&(ee=1/ee),new U(ie?1/ee:ee);t&&(ee=E(t/h+2))}for(he?(T=new U(.5),ie&&(k.s=1),ne=R(k)):(fe=Math.abs(+Z(k)),ne=fe%2),pe=new U(u);;){if(ne){if(pe=pe.times(oe),!pe.c)break;ee?pe.c.length>ee&&(pe.c.length=ee):j&&(pe=pe.mod(N))}if(fe){if(fe=i(fe/2),fe===0)break;ne=fe%2}else if(k=k.times(T),H(k,k.e+1,1),k.e>14)ne=R(k);else{if(fe=+Z(k),fe===0)break;ne=fe%2}oe=oe.times(oe),ee?oe.c&&oe.c.length>ee&&(oe.c.length=ee):j&&(oe=oe.mod(N))}return j?pe:(ie&&(pe=u.div(pe)),N?pe.mod(N):ee?H(pe,t,r,te):pe)},re.integerValue=function(k){var N=new U(this);return k==null?k=r:C(k,0,8),H(N,N.e+1,k)},re.isEqualTo=re.eq=function(k,N){return F(this,new U(k,N))===0},re.isFinite=function(){return!!this.c},re.isGreaterThan=re.gt=function(k,N){return F(this,new U(k,N))>0},re.isGreaterThanOrEqualTo=re.gte=function(k,N){return(N=F(this,new U(k,N)))===1||N===0},re.isInteger=function(){return!!this.c&&A(this.e/h)>this.c.length-2},re.isLessThan=re.lt=function(k,N){return F(this,new U(k,N))<0},re.isLessThanOrEqualTo=re.lte=function(k,N){return(N=F(this,new U(k,N)))===-1||N===0},re.isNaN=function(){return!this.s},re.isNegative=function(){return this.s<0},re.isPositive=function(){return this.s>0},re.isZero=function(){return!!this.c&&this.c[0]==0},re.minus=function(k,N){var T,j,fe,ee,te=this,he=te.s;if(k=new U(k,N),N=k.s,!he||!N)return new U(NaN);if(he!=N)return k.s=-N,te.plus(k);var ie=te.e/h,ne=k.e/h,pe=te.c,oe=k.c;if(!ie||!ne){if(!pe||!oe)return pe?(k.s=-N,k):new U(oe?te:NaN);if(!pe[0]||!oe[0])return oe[0]?(k.s=-N,k):new U(pe[0]?te:r==3?-0:0)}if(ie=A(ie),ne=A(ne),pe=pe.slice(),he=ie-ne){for((ee=he<0)?(he=-he,fe=pe):(ne=ie,fe=oe),fe.reverse(),N=he;N--;fe.push(0));fe.reverse()}else for(j=(ee=(he=pe.length)<(N=oe.length))?he:N,he=N=0;N<j;N++)if(pe[N]!=oe[N]){ee=pe[N]<oe[N];break}if(ee&&(fe=pe,pe=oe,oe=fe,k.s=-k.s),N=(j=oe.length)-(T=pe.length),N>0)for(;N--;pe[T++]=0);for(N=m-1;j>he;){if(pe[--j]<oe[j]){for(T=j;T&&!pe[--T];pe[T]=N);--pe[T],pe[j]+=m}pe[j]-=oe[j]}for(;pe[0]==0;pe.splice(0,1),--ne);return pe[0]?P(k,pe,ne):(k.s=r==3?-1:1,k.c=[k.e=0],k)},re.modulo=re.mod=function(k,N){var T,j,fe=this;return k=new U(k,N),!fe.c||!k.s||k.c&&!k.c[0]?new U(NaN):!k.c||fe.c&&!fe.c[0]?new U(fe):(f==9?(j=k.s,k.s=1,T=Y(fe,k,0,3),k.s=j,T.s*=j):T=Y(fe,k,0,f),k=fe.minus(T.times(k)),!k.c[0]&&f==1&&(k.s=fe.s),k)},re.multipliedBy=re.times=function(k,N){var T,j,fe,ee,te,he,ie,ne,pe,oe,se,Re,de,ve,ot,be=this,me=be.c,ut=(k=new U(k,N)).c;if(!me||!ut||!me[0]||!ut[0])return!be.s||!k.s||me&&!me[0]&&!ut||ut&&!ut[0]&&!me?k.c=k.e=k.s=null:(k.s*=be.s,!me||!ut?k.c=k.e=null:(k.c=[0],k.e=0)),k;for(j=A(be.e/h)+A(k.e/h),k.s*=be.s,ie=me.length,oe=ut.length,ie<oe&&(de=me,me=ut,ut=de,fe=ie,ie=oe,oe=fe),fe=ie+oe,de=[];fe--;de.push(0));for(ve=m,ot=v,fe=oe;--fe>=0;){for(T=0,se=ut[fe]%ot,Re=ut[fe]/ot|0,te=ie,ee=fe+te;ee>fe;)ne=me[--te]%ot,pe=me[te]/ot|0,he=Re*ne+pe*se,ne=se*ne+he%ot*ot+de[ee]+T,T=(ne/ve|0)+(he/ot|0)+Re*pe,de[ee--]=ne%ve;de[ee]=T}return T?++j:de.splice(0,1),P(k,de,j)},re.negated=function(){var k=new U(this);return k.s=-k.s||null,k},re.plus=function(k,N){var T,j=this,fe=j.s;if(k=new U(k,N),N=k.s,!fe||!N)return new U(NaN);if(fe!=N)return k.s=-N,j.minus(k);var ee=j.e/h,te=k.e/h,he=j.c,ie=k.c;if(!ee||!te){if(!he||!ie)return new U(fe/0);if(!he[0]||!ie[0])return ie[0]?k:new U(he[0]?j:fe*0)}if(ee=A(ee),te=A(te),he=he.slice(),fe=ee-te){for(fe>0?(te=ee,T=ie):(fe=-fe,T=he),T.reverse();fe--;T.push(0));T.reverse()}for(fe=he.length,N=ie.length,fe-N<0&&(T=ie,ie=he,he=T,N=fe),fe=0;N;)fe=(he[--N]=he[N]+ie[N]+fe)/m|0,he[N]=m===he[N]?0:he[N]%m;return fe&&(he=[fe].concat(he),++te),P(k,he,te)},re.precision=re.sd=function(k,N){var T,j,fe,ee=this;if(k!=null&&k!==!!k)return C(k,1,w),N==null?N=r:C(N,0,8),H(new U(ee),k,N);if(!(T=ee.c))return null;if(fe=T.length-1,j=fe*h+1,fe=T[fe]){for(;fe%10==0;fe/=10,j--);for(fe=T[0];fe>=10;fe/=10,j++);}return k&&ee.e+1>j&&(j=ee.e+1),j},re.shiftedBy=function(k){return C(k,-d,d),this.times("1e"+k)},re.squareRoot=re.sqrt=function(){var k,N,T,j,fe,ee=this,te=ee.c,he=ee.s,ie=ee.e,ne=e+4,pe=new U("0.5");if(he!==1||!te||!te[0])return new U(!he||he<0&&(!te||te[0])?NaN:te?ee:1/0);if(he=Math.sqrt(+Z(ee)),he==0||he==1/0?(N=B(te),(N.length+ie)%2==0&&(N+="0"),he=Math.sqrt(+N),ie=A((ie+1)/2)-(ie<0||ie%2),he==1/0?N="5e"+ie:(N=he.toExponential(),N=N.slice(0,N.indexOf("e")+1)+ie),T=new U(N)):T=new U(he+""),T.c[0]){for(ie=T.e,he=ie+ne,he<3&&(he=0);;)if(fe=T,T=pe.times(fe.plus(Y(ee,fe,ne,1))),B(fe.c).slice(0,he)===(N=B(T.c)).slice(0,he))if(T.e<ie&&--he,N=N.slice(he-3,he+1),N=="9999"||!j&&N=="4999"){if(!j&&(H(fe,fe.e+e+2,0),fe.times(fe).eq(ee))){T=fe;break}ne+=4,he+=4,j=1}else{(!+N||!+N.slice(1)&&N.charAt(0)=="5")&&(H(T,T.e+e+2,1),k=!T.times(T).eq(ee));break}}return H(T,T.e+e+1,r,k)},re.toExponential=function(k,N){return k!=null&&(C(k,0,w),k++),Q(this,k,N,1)},re.toFixed=function(k,N){return k!=null&&(C(k,0,w),k=k+this.e+1),Q(this,k,N)},re.toFormat=function(k,N,T){var j,fe=this;if(T==null)k!=null&&N&&typeof N=="object"?(T=N,N=null):k&&typeof k=="object"?(T=k,k=N=null):T=s;else if(typeof T!="object")throw Error(_+"Argument not an object: "+T);if(j=fe.toFixed(k,N),fe.c){var ee,te=j.split("."),he=+T.groupSize,ie=+T.secondaryGroupSize,ne=T.groupSeparator||"",pe=te[0],oe=te[1],se=fe.s<0,Re=se?pe.slice(1):pe,de=Re.length;if(ie&&(ee=he,he=ie,ie=ee,de-=ee),he>0&&de>0){for(ee=de%he||he,pe=Re.substr(0,ee);ee<de;ee+=he)pe+=ne+Re.substr(ee,he);ie>0&&(pe+=ne+Re.slice(ee)),se&&(pe="-"+pe)}j=oe?pe+(T.decimalSeparator||"")+((ie=+T.fractionGroupSize)?oe.replace(new RegExp("\\d{"+ie+"}\\B","g"),"$&"+(T.fractionGroupSeparator||"")):oe):pe}return(T.prefix||"")+j+(T.suffix||"")},re.toFraction=function(k){var N,T,j,fe,ee,te,he,ie,ne,pe,oe,se,Re=this,de=Re.c;if(k!=null&&(he=new U(k),!he.isInteger()&&(he.c||he.s!==1)||he.lt(u)))throw Error(_+"Argument "+(he.isInteger()?"out of range: ":"not an integer: ")+Z(he));if(!de)return new U(Re);for(N=new U(u),ne=T=new U(u),j=ie=new U(u),se=B(de),ee=N.e=se.length-Re.e-1,N.c[0]=p[(te=ee%h)<0?h+te:te],k=!k||he.comparedTo(N)>0?ee>0?N:ne:he,te=l,l=1/0,he=new U(se),ie.c[0]=0;pe=Y(he,N,0,1),fe=T.plus(pe.times(j)),fe.comparedTo(k)!=1;)T=j,j=fe,ne=ie.plus(pe.times(fe=ne)),ie=fe,N=he.minus(pe.times(fe=N)),he=fe;return fe=Y(k.minus(T),j,0,1),ie=ie.plus(fe.times(ne)),T=T.plus(fe.times(j)),ie.s=ne.s=Re.s,ee=ee*2,oe=Y(ne,j,ee,r).minus(Re).abs().comparedTo(Y(ie,T,ee,r).minus(Re).abs())<1?[ne,j]:[ie,T],l=te,oe},re.toNumber=function(){return+Z(this)},re.toPrecision=function(k,N){return k!=null&&C(k,1,w),Q(this,k,N,2)},re.toString=function(k){var N,T=this,j=T.s,fe=T.e;return fe===null?j?(N="Infinity",j<0&&(N="-"+N)):N="NaN":(k==null?N=fe<=n||fe>=a?D(B(T.c),fe):K(B(T.c),fe,"0"):k===10&&W?(T=H(new U(T),e+fe+1,r),N=K(B(T.c),T.e,"0")):(C(k,2,$.length,"Base"),N=J(K(B(T.c),fe,"0"),10,k,j,!0)),j<0&&T.c[0]&&(N="-"+N)),N},re.valueOf=re.toJSON=function(){return Z(this)},re._isBigNumber=!0,q!=null&&U.set(q),U}function A(q){var Y=q|0;return q>0||q===Y?Y:Y-1}function B(q){for(var Y,J,V=1,re=q.length,u=q[0]+"";V<re;){for(Y=q[V++]+"",J=h-Y.length;J--;Y="0"+Y);u+=Y}for(re=u.length;u.charCodeAt(--re)===48;);return u.slice(0,re+1||1)}function F(q,Y){var J,V,re=q.c,u=Y.c,e=q.s,r=Y.s,n=q.e,a=Y.e;if(!e||!r)return null;if(J=re&&!re[0],V=u&&!u[0],J||V)return J?V?0:-r:e;if(e!=r)return e;if(J=e<0,V=n==a,!re||!u)return V?0:!re^J?1:-1;if(!V)return n>a^J?1:-1;for(r=(n=re.length)<(a=u.length)?n:a,e=0;e<r;e++)if(re[e]!=u[e])return re[e]>u[e]^J?1:-1;return n==a?0:n>a^J?1:-1}function C(q,Y,J,V){if(q<Y||q>J||q!==i(q))throw Error(_+(V||"Argument")+(typeof q=="number"?q<Y||q>J?" out of range: ":" not an integer: ":" not a primitive number: ")+String(q))}function R(q){var Y=q.c.length-1;return A(q.e/h)==Y&&q.c[Y]%2!=0}function D(q,Y){return(q.length>1?q.charAt(0)+"."+q.slice(1):q)+(Y<0?"e":"e+")+Y}function K(q,Y,J){var V,re;if(Y<0){for(re=J+".";++Y;re+=J);q=re+q}else if(V=q.length,++Y>V){for(re=J,Y-=V;--Y;re+=J);q+=re}else Y<V&&(q=q.slice(0,Y)+"."+q.slice(Y));return q}S=M(),S.default=S.BigNumber=S,g.exports?g.exports=S:(x||(x=typeof self<"u"&&self?self:window),x.BigNumber=S)})(Ov)})(Qr)),Qr.exports}var pu;function Uv(){return pu||(pu=1,(function(g){var x=Uc(),S=g.exports;(function(){var c=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,E,i,_={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},y;function m(d){return c.lastIndex=0,c.test(d)?'"'+d.replace(c,function(p){var v=_[p];return typeof v=="string"?v:"\\u"+("0000"+p.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+d+'"'}function h(d,p){var v,w,M,A,B=E,F,C=p[d],R=C!=null&&(C instanceof x||x.isBigNumber(C));switch(C&&typeof C=="object"&&typeof C.toJSON=="function"&&(C=C.toJSON(d)),typeof y=="function"&&(C=y.call(p,d,C)),typeof C){case"string":return R?C:m(C);case"number":return isFinite(C)?String(C):"null";case"boolean":case"null":case"bigint":return String(C);case"object":if(!C)return"null";if(E+=i,F=[],Object.prototype.toString.apply(C)==="[object Array]"){for(A=C.length,v=0;v<A;v+=1)F[v]=h(v,C)||"null";return M=F.length===0?"[]":E?`[
9
9
  `+E+F.join(`,
10
10
  `+E)+`
11
11
  `+B+"]":"["+F.join(",")+"]",E=B,M}if(y&&typeof y=="object")for(A=y.length,v=0;v<A;v+=1)typeof y[v]=="string"&&(w=y[v],M=h(w,C),M&&F.push(m(w)+(E?": ":":")+M));else Object.keys(C).forEach(function(D){var K=h(D,C);K&&F.push(m(D)+(E?": ":":")+K)});return M=F.length===0?"{}":E?`{
12
12
  `+E+F.join(`,
13
13
  `+E)+`
14
- `+B+"}":"{"+F.join(",")+"}",E=B,M}}typeof S.stringify!="function"&&(S.stringify=function(d,p,v){var w;if(E="",i="",typeof v=="number")for(w=0;w<v;w+=1)i+=" ";else typeof v=="string"&&(i=v);if(y=p,p&&typeof p!="function"&&(typeof p!="object"||typeof p.length!="number"))throw new Error("JSON.stringify");return h("",{"":d})})})()})(D0)),D0.exports}var R0,pu;function Pv(){if(pu)return R0;pu=1;var g=null;const x=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,S=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var c=function(E){var i={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(E!=null){if(E.strict===!0&&(i.strict=!0),E.storeAsString===!0&&(i.storeAsString=!0),i.alwaysParseAsBig=E.alwaysParseAsBig===!0?E.alwaysParseAsBig:!1,i.useNativeBigInt=E.useNativeBigInt===!0?E.useNativeBigInt:!1,typeof E.constructorAction<"u")if(E.constructorAction==="error"||E.constructorAction==="ignore"||E.constructorAction==="preserve")i.constructorAction=E.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${E.constructorAction}`);if(typeof E.protoAction<"u")if(E.protoAction==="error"||E.protoAction==="ignore"||E.protoAction==="preserve")i.protoAction=E.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${E.protoAction}`)}var _,y,m={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
15
- `,r:"\r",t:" "},h,d=function(R){throw{name:"SyntaxError",message:R,at:_,text:h}},p=function(R){return R&&R!==y&&d("Expected '"+R+"' instead of '"+y+"'"),y=h.charAt(_),_+=1,y},v=function(){var R,D="";for(y==="-"&&(D="-",p("-"));y>="0"&&y<="9";)D+=y,p();if(y===".")for(D+=".";p()&&y>="0"&&y<="9";)D+=y;if(y==="e"||y==="E")for(D+=y,p(),(y==="-"||y==="+")&&(D+=y,p());y>="0"&&y<="9";)D+=y,p();if(R=+D,!isFinite(R))d("Bad number");else return g==null&&(g=Oc()),D.length>15?i.storeAsString?D:i.useNativeBigInt?BigInt(D):new g(D):i.alwaysParseAsBig?i.useNativeBigInt?BigInt(R):new g(R):R},w=function(){var R,D,K="",q;if(y==='"')for(var Y=_;p();){if(y==='"')return _-1>Y&&(K+=h.substring(Y,_-1)),p(),K;if(y==="\\"){if(_-1>Y&&(K+=h.substring(Y,_-1)),p(),y==="u"){for(q=0,D=0;D<4&&(R=parseInt(p(),16),!!isFinite(R));D+=1)q=q*16+R;K+=String.fromCharCode(q)}else if(typeof m[y]=="string")K+=m[y];else break;Y=_}}d("Bad string")},M=function(){for(;y&&y<=" ";)p()},A=function(){switch(y){case"t":return p("t"),p("r"),p("u"),p("e"),!0;case"f":return p("f"),p("a"),p("l"),p("s"),p("e"),!1;case"n":return p("n"),p("u"),p("l"),p("l"),null}d("Unexpected '"+y+"'")},B,F=function(){var R=[];if(y==="["){if(p("["),M(),y==="]")return p("]"),R;for(;y;){if(R.push(B()),M(),y==="]")return p("]"),R;p(","),M()}}d("Bad array")},C=function(){var R,D=Object.create(null);if(y==="{"){if(p("{"),M(),y==="}")return p("}"),D;for(;y;){if(R=w(),M(),p(":"),i.strict===!0&&Object.hasOwnProperty.call(D,R)&&d('Duplicate key "'+R+'"'),x.test(R)===!0?i.protoAction==="error"?d("Object contains forbidden prototype property"):i.protoAction==="ignore"?B():D[R]=B():S.test(R)===!0?i.constructorAction==="error"?d("Object contains forbidden constructor property"):i.constructorAction==="ignore"?B():D[R]=B():D[R]=B(),M(),y==="}")return p("}"),D;p(","),M()}}d("Bad object")};return B=function(){switch(M(),y){case"{":return C();case"[":return F();case'"':return w();case"-":return v();default:return y>="0"&&y<="9"?v():A()}},function(R,D){var K;return h=R+"",_=0,y=" ",K=B(),M(),y&&d("Syntax error"),typeof D=="function"?(function q(Y,J){var V,re=Y[J];return re&&typeof re=="object"&&Object.keys(re).forEach(function(u){V=q(re,u),V!==void 0?re[u]=V:delete re[u]}),D.call(Y,J,re)})({"":K},""):K}};return R0=c,R0}var vu;function qv(){if(vu)return wr.exports;vu=1;var g=Nv().stringify,x=Pv();return wr.exports=function(S){return{parse:x(S),stringify:g}},wr.exports.parse=x(),wr.exports.stringify=g,wr.exports}var Ov=qv();const Uv=ze.getDefaultExportFromCjs(Ov);var bu;(function(g){g.DEFAULT="default",g.SAFE="safe",g.MIXED="mixed",g.BIGINT="bigint"})(bu||(bu={}));Uv({useNativeBigInt:!0,strict:!0});function Lv(g,x){return g.length!==x.length?!1:Array.from(g).every((S,c)=>S===x[c])}function Hv(...g){const x=g.reduce((E,i)=>E+i.length,0),S=new Uint8Array(x);let c=0;for(let E=0;E<g.length;E++)S.set(g[E],c),c+=g[E].length;return S}function Uc(g){return Iv.sha512_256.array(g)}const N0=of.sign.publicKeyLength;of.sign.secretKeyLength;const mu=32;var T0={exports:{}},yu;function zv(){return yu||(yu=1,(function(g){(function(){var x=typeof window=="object"?window:{},S=!x.HI_BASE32_NO_NODE_JS&&typeof xe.process$1=="object"&&xe.process$1.versions&&xe.process$1.versions.node;S&&(x=ze.commonjsGlobal);var c=!x.HI_BASE32_NO_COMMON_JS&&!0&&g.exports,E="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),i={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},_=[0,0,0,0,0,0,0,0],y=function(B,F){F.length>10&&(F="..."+F.substr(-10));var C=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+B+" bytes: "+F+" <-");throw C.position=B,C},m=function(B){for(var F="",C=B.length,R=0,D=0,K,q;R<C;){if(K=B[R++],K<=127){F+=String.fromCharCode(K);continue}else K>191&&K<=223?(q=K&31,D=1):K<=239?(q=K&15,D=2):K<=247?(q=K&7,D=3):y(R,F);for(var Y=0;Y<D;++Y)K=B[R++],(K<128||K>191)&&y(R,F),q<<=6,q+=K&63;q>=55296&&q<=57343&&y(R,F),q>1114111&&y(R,F),q<=65535?F+=String.fromCharCode(q):(q-=65536,F+=String.fromCharCode((q>>10)+55296),F+=String.fromCharCode((q&1023)+56320))}return F},h=function(B){if(B==="")return[];if(!/^[A-Z2-7=]+$/.test(B))throw new Error("Invalid base32 characters");B=B.replace(/=/g,"");for(var F,C,R,D,K,q,Y,J,V=[],re=0,u=B.length,e=0,r=u>>3<<3;e<r;)F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],q=i[B.charAt(e++)],Y=i[B.charAt(e++)],J=i[B.charAt(e++)],V[re++]=(F<<3|C>>>2)&255,V[re++]=(C<<6|R<<1|D>>>4)&255,V[re++]=(D<<4|K>>>1)&255,V[re++]=(K<<7|q<<2|Y>>>3)&255,V[re++]=(Y<<5|J)&255;var n=u-r;return n===2?(F=i[B.charAt(e++)],C=i[B.charAt(e++)],V[re++]=(F<<3|C>>>2)&255):n===4?(F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],V[re++]=(F<<3|C>>>2)&255,V[re++]=(C<<6|R<<1|D>>>4)&255):n===5?(F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],V[re++]=(F<<3|C>>>2)&255,V[re++]=(C<<6|R<<1|D>>>4)&255,V[re++]=(D<<4|K>>>1)&255):n===7&&(F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],q=i[B.charAt(e++)],Y=i[B.charAt(e++)],V[re++]=(F<<3|C>>>2)&255,V[re++]=(C<<6|R<<1|D>>>4)&255,V[re++]=(D<<4|K>>>1)&255,V[re++]=(K<<7|q<<2|Y>>>3)&255),V},d=function(B){for(var F,C,R,D,K,q="",Y=B.length,J=0,V=parseInt(Y/5)*5;J<V;)F=B.charCodeAt(J++),C=B.charCodeAt(J++),R=B.charCodeAt(J++),D=B.charCodeAt(J++),K=B.charCodeAt(J++),q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[(R<<1|D>>>7)&31]+E[D>>>2&31]+E[(D<<3|K>>>5)&31]+E[K&31];var re=Y-V;return re===1?(F=B.charCodeAt(J),q+=E[F>>>3]+E[F<<2&31]+"======"):re===2?(F=B.charCodeAt(J++),C=B.charCodeAt(J),q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[C<<4&31]+"===="):re===3?(F=B.charCodeAt(J++),C=B.charCodeAt(J++),R=B.charCodeAt(J),q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[R<<1&31]+"==="):re===4&&(F=B.charCodeAt(J++),C=B.charCodeAt(J++),R=B.charCodeAt(J++),D=B.charCodeAt(J),q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[(R<<1|D>>>7)&31]+E[D>>>2&31]+E[D<<3&31]+"="),q},p=function(B){var F,C,R,D,K,q,Y=!1,J="",V=0,re,u=0,e=B.length;if(B==="")return J;do{for(_[0]=_[5],_[1]=_[6],_[2]=_[7],re=u;V<e&&re<5;++V)q=B.charCodeAt(V),q<128?_[re++]=q:q<2048?(_[re++]=192|q>>6,_[re++]=128|q&63):q<55296||q>=57344?(_[re++]=224|q>>12,_[re++]=128|q>>6&63,_[re++]=128|q&63):(q=65536+((q&1023)<<10|B.charCodeAt(++V)&1023),_[re++]=240|q>>18,_[re++]=128|q>>12&63,_[re++]=128|q>>6&63,_[re++]=128|q&63);u=re-5,V===e&&++V,V>e&&re<6&&(Y=!0),F=_[0],re>4?(C=_[1],R=_[2],D=_[3],K=_[4],J+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[(R<<1|D>>>7)&31]+E[D>>>2&31]+E[(D<<3|K>>>5)&31]+E[K&31]):re===1?J+=E[F>>>3]+E[F<<2&31]+"======":re===2?(C=_[1],J+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[C<<4&31]+"===="):re===3?(C=_[1],R=_[2],J+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[R<<1&31]+"==="):(C=_[1],R=_[2],D=_[3],J+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[(R<<1|D>>>7)&31]+E[D>>>2&31]+E[D<<3&31]+"=")}while(!Y);return J},v=function(B){for(var F,C,R,D,K,q="",Y=B.length,J=0,V=parseInt(Y/5)*5;J<V;)F=B[J++],C=B[J++],R=B[J++],D=B[J++],K=B[J++],q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[(R<<1|D>>>7)&31]+E[D>>>2&31]+E[(D<<3|K>>>5)&31]+E[K&31];var re=Y-V;return re===1?(F=B[J],q+=E[F>>>3]+E[F<<2&31]+"======"):re===2?(F=B[J++],C=B[J],q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[C<<4&31]+"===="):re===3?(F=B[J++],C=B[J++],R=B[J],q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[R<<1&31]+"==="):re===4&&(F=B[J++],C=B[J++],R=B[J++],D=B[J],q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[(R<<1|D>>>7)&31]+E[D>>>2&31]+E[D<<3&31]+"="),q},w=function(B,F){var C=typeof B!="string";return C&&B.constructor===ArrayBuffer&&(B=new Uint8Array(B)),C?v(B):F?d(B):p(B)},M=function(B,F){if(!F)return m(h(B));if(B==="")return"";if(!/^[A-Z2-7=]+$/.test(B))throw new Error("Invalid base32 characters");var C,R,D,K,q,Y,J,V,re="",u=B.indexOf("=");u===-1&&(u=B.length);for(var e=0,r=u>>3<<3;e<r;)C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],q=i[B.charAt(e++)],Y=i[B.charAt(e++)],J=i[B.charAt(e++)],V=i[B.charAt(e++)],re+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|K>>>4)&255)+String.fromCharCode((K<<4|q>>>1)&255)+String.fromCharCode((q<<7|Y<<2|J>>>3)&255)+String.fromCharCode((J<<5|V)&255);var n=u-r;return n===2?(C=i[B.charAt(e++)],R=i[B.charAt(e++)],re+=String.fromCharCode((C<<3|R>>>2)&255)):n===4?(C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],re+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|K>>>4)&255)):n===5?(C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],q=i[B.charAt(e++)],re+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|K>>>4)&255)+String.fromCharCode((K<<4|q>>>1)&255)):n===7&&(C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],q=i[B.charAt(e++)],Y=i[B.charAt(e++)],J=i[B.charAt(e++)],re+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|K>>>4)&255)+String.fromCharCode((K<<4|q>>>1)&255)+String.fromCharCode((q<<7|Y<<2|J>>>3)&255)),re},A={encode:w,decode:M};M.asBytes=h,c?g.exports=A:x.base32=A})()})(T0)),T0.exports}var $v=zv();const Lc=ze.getDefaultExportFromCjs($v),I0=36,P0=4,Hc=58;xe.Buffer$1.from("appID");const gu="address seems to be malformed",Kv="wrong checksum for address";function zc(g){if(typeof g!="string"||g.length!==Hc)throw new Error(gu);const x=Lc.decode.asBytes(g.toString());if(x.length!==I0)throw new Error(gu);const S=new Uint8Array(x.slice(0,I0-P0)),c=new Uint8Array(x.slice(N0,I0)),E=Uc(S).slice(mu-P0,mu);if(!Lv(E,c))throw new Error(Kv);return{publicKey:S,checksum:c}}function Wv(g){try{zc(g)}catch{return!1}return!0}function jv(g){const x=Uc(g).slice(N0-P0,N0);return Lc.encode(Hv(g,x)).toString().slice(0,Hc)}var xu;(function(g){g.pay="pay",g.keyreg="keyreg",g.acfg="acfg",g.axfer="axfer",g.afrz="afrz",g.appl="appl",g.stpf="stpf"})(xu||(xu={}));var wu;(function(g){g[g.NoOpOC=0]="NoOpOC",g[g.OptInOC=1]="OptInOC",g[g.CloseOutOC=2]="CloseOutOC",g[g.ClearStateOC=3]="ClearStateOC",g[g.UpdateApplicationOC=4]="UpdateApplicationOC",g[g.DeleteApplicationOC=5]="DeleteApplicationOC"})(wu||(wu={}));xe.Buffer$1.from("ProgData");"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(g,x){});var Mu;(function(g){g.any="txn",g.pay="pay",g.keyreg="keyreg",g.acfg="acfg",g.axfer="axfer",g.afrz="afrz",g.appl="appl"})(Mu||(Mu={}));var _u;(function(g){g.account="account",g.application="application",g.asset="asset"})(_u||(_u={}));xe.Buffer$1.from([21,31,124,117]);var Eu;(function(g){g[g.BUILDING=0]="BUILDING",g[g.BUILT=1]="BUILT",g[g.SIGNED=2]="SIGNED",g[g.SUBMITTED=3]="SUBMITTED",g[g.COMMITTED=4]="COMMITTED"})(Eu||(Eu={}));xe.Buffer$1.from([77,88]);const q0="Algorand";function Gv(g){if(g<BigInt(Number.MIN_SAFE_INTEGER)||g>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("Integer is unsafe");return Number(g)}class Jt{static byteSize=32;static platform=q0;type="Native";address;constructor(x){if(Jt.instanceof(x))this.address=x.address;else if(xe.UniversalAddress.instanceof(x))this.address=x.toUint8Array();else if(x instanceof Uint8Array&&x.byteLength===Jt.byteSize)this.address=x;else if(typeof x=="string"&&Wv(x))this.address=zc(x).publicKey;else if(typeof x=="string"&&!isNaN(parseInt(x)))this.address=xe.bytes.zpad(xe.bignum.toBytes(BigInt(x),8),Jt.byteSize);else if(typeof x=="bigint")this.address=xe.bytes.zpad(xe.bignum.toBytes(x,8),Jt.byteSize);else if(x instanceof Uint8Array&&x.byteLength===8)this.address=xe.bytes.zpad(x,Jt.byteSize);else throw new Error(`Invalid Algorand address or ASA ID: ${x}`)}unwrap(){return this.toString()}toString(){return jv(this.address)}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){return new xe.UniversalAddress(this.toUint8Array())}toBigInt(){return xe.bignum.decode(this.toUint8Array().slice(24,32))}toInt(){return Gv(this.toBigInt())}equals(x){return Jt.instanceof(x)?x.address===this.address:this.toUniversalAddress().equals(x)}static instanceof(x){return x.constructor.platform===q0}}xe.registerNative(q0,Jt);const $c=[["Cosmoshub","cosmos"],["Evmos","evmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","osmo"],["Sei","sei"],["Wormchain","wormhole"],["Celestia","celestia"],["Stargaze","stars"],["Dymension","dym"],["Neutron","neutron"],["Seda","seda"],["Provenance","pb"],["Noble","noble"]],Vv=xe.constMap($c);xe.constMap($c,[1,[0]]);const Kc=[["Mainnet",[["Cosmoshub","uatom"],["Evmos","aevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Wormchain","uworm"],["Celestia","utia"],["Dymension","adym"],["Stargaze","ustars"],["Neutron","untrn"],["Provenance","nhash"],["Noble","uusdc"]]],["Testnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Wormchain","uworm"],["Seda","aseda"]]],["Devnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Wormchain","uworm"]]]];xe.constMap(Kc);xe.constMap(Kc,[[0,2],[1]]);const Zv=[["Mainnet",[["Wormchain",{Osmosis:"channel-3",Evmos:"channel-5",Kujira:"channel-9",Stargaze:"channel-12",Injective:"channel-13",Dymension:"channel-15"}],["Osmosis",{Wormchain:"channel-2186"}],["Evmos",{Wormchain:"channel-94"}],["Kujira",{Wormchain:"channel-113"}],["Injective",{Wormchain:"channel-183"}],["Dymension",{Wormchain:"channel-36"}],["Stargaze",{Wormchain:"channel-278"}]]],["Testnet",[["Wormchain",{Cosmoshub:"channel-5",Injective:"channel-15",Kujira:"channel-16",Stargaze:"channel-17",Osmosis:"channel-19",Dymension:"channel-18",Evmos:"channel-20"}],["Cosmoshub",{Wormchain:"channel-3086"}],["Injective",{Wormchain:"channel-76973"}],["Kujira",{Wormchain:"channel-114"}],["Osmosis",{Wormchain:"channel-7904"}],["Stargaze",{Wormchain:"channel-949"}],["Evmos",{Wormchain:"channel-240"}],["Dymension",{Wormchain:"channel-23"}]]],["Devnet",[["Wormchain",{Cosmoshub:"channel-1",Osmosis:"channel-2"}],["Cosmoshub",{Wormchain:"channel-1"}],["Osmosis",{Wormchain:"channel-1"}]]]];xe.constMap(Zv);const Xv=[["Mainnet",[["Injective","https://lcd.injective.network"],["Evmos","https://rest.bd.evmos.org:1317"]]],["Testnet",[["Injective","https://k8s.testnet.lcd.injective.network"],["Evmos","https://rest.bd.evmos.dev:1317"]]],["Devnet",[["Injective","https://localhost:1234"],["Evmos","https://localhost:1233"]]]];xe.constMap(Xv);const Yv=[["Mainnet",[["Osmosis","0.025"],["Sei","0.02"],["Cosmoshub","0.025"],["Kujira","0.0051"],["Neutron","0.075"],["Celestia","0.02"],["Stargaze","1.1"],["Injective","700000000"],["Evmos","25000000000"],["Dymension","5000000000"],["Provenance","2100"],["Noble","0.1"]]]];xe.constMap(Yv);const Wc="Cosmwasm";function Au(g){try{const x=xe.bech32.decodeToBytes(g);return{data:x.bytes,prefix:x.prefix}}catch{}try{return{data:xe.hex.decode(g)}}catch{}try{return{data:xe.b64.decode(g)}}catch{}throw new Error(`Cannot decode: ${g}`)}class zt{static contractAddressByteSize=32;static accountAddressByteSize=20;static platform=Wc;address;domain;denom;denomType;constructor(x){if(zt.instanceof(x)){const S=x;this.address=S.address,this.domain=S.domain,this.denom=S.denom,this.denomType=S.denomType;return}if(typeof x=="string"){if(x.length<=8){this.address=new Uint8Array(0),this.denom=x,this.denomType="native";return}if(x.indexOf("/")!==-1){const S=x.split("/");if(S.length>=3){const{data:c,prefix:E}=Au(S[S.length-2]);this.address=c,this.domain=E,this.denom=S[S.length-1],this.denomType=S.slice(0,S.length-2).join("/")}else{const{data:c}=Au(S[1]);this.address=c,this.denomType=S[0]}}else{if(!zt.isValidAddress(x))throw new Error(`Invalid Cosmwasm address: ${x}`);const{bytes:S,prefix:c}=xe.bech32.decodeToBytes(x);this.address=S,this.domain=c}}else if(x instanceof Uint8Array)this.address=x;else if(xe.UniversalAddress.instanceof(x))this.address=x.toUint8Array();else throw new Error(`Invalid Cosmwasm address ${x}`);if(!zt.validAddressLength(this.address))throw new Error("Expected 20 or 32 bytes address")}unwrap(){return this.toString()}toString(){return this.denomType!==void 0?this.denomType==="native"?this.denom:this.denomType==="ibc"?`${this.denomType.toLowerCase()}/${xe.hex.encode(this.address).toUpperCase()}`:`${this.denomType}/${zt.encode(this.domain,this.address)}/${this.denom}`:zt.encode(this.domain,this.address)}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){const x=new Uint8Array(xe.UniversalAddress.byteSize);return x.set(this.address,xe.UniversalAddress.byteSize-this.address.length),new xe.UniversalAddress(x)}setChain(x){this.domain=Vv.get(x)}static isValidAddress(x){try{const S=xe.bech32.decodeToBytes(x);return zt.validAddressLength(S.bytes)}catch{}return!1}static encode(x,S){return xe.bech32.encode(x,xe.bech32.toWords(S))}static validAddressLength(x){if(x.length!==zt.contractAddressByteSize&&x.length!==zt.accountAddressByteSize)throw new Error(`Invalid Cosmwasm address, expected ${zt.contractAddressByteSize} or ${zt.accountAddressByteSize} bytes but got ${x.length}`);return!0}static instanceof(x){return x.constructor.platform===zt.platform}equals(x){return zt.instanceof(x)?this.toString()===x.toString():x.equals(this.toUniversalAddress())}}xe.registerNative(Wc,zt);async function Jv(g){try{const x=await Promise.all(g.map(async S=>S()));return await Promise.all(x.map(async S=>await Qv(S))),x}catch(x){throw console.error("Failed to load required packages",x),x}}async function Qv(g,x){try{let S=Object.entries(g.protocols);await Promise.all(S.map(([,c])=>c()))}catch(S){throw console.error("Failed to load required packages",S),S}}async function e2(g,x,S){const c=(await Jv(x)).map(E=>E.Platform);return new xe.Wormhole(g,c,S)}const t2=async()=>(await Promise.resolve().then(()=>require("./evm-C5BixKBn.js"))).default,r2=async()=>(await Promise.resolve().then(()=>require("./solana-Dmje_Si8.js"))).default,i2=async()=>(await Promise.resolve().then(()=>require("./aptos-CNHYHK9c.js"))).default,n2=async()=>(await Promise.resolve().then(()=>require("./sui-LiXjD27c.js"))).default,a2="https://api.coingecko.com",f2="https://pro-api.coingecko.com",Su={Solana:"solana",Ethereum:"ethereum",Arbitrum:"ethereum",Optimism:"ethereum",Base:"ethereum",Scroll:"ethereum",Bsc:"binancecoin",Polygon:"matic-network",Avalanche:"avalanche-2",Fantom:"fantom",Moonbeam:"moonbeam",Klaytn:"kaia",Xlayer:"okb",Mantle:"mantle",Aptos:"aptos",Sui:"sui",Berachain:"berachain-bera",Unichain:"ethereum",Sonic:"sonic-3",Linea:"ethereum",Worldchain:"ethereum",Seievm:"sei",Mezo:"wrapped-bitcoin",Plume:"plume",Ink:"ethereum",HyperEVM:"hyperliquid",HyperCore:"usd-coin",CreditCoin:"wrapped-ctc",Monad:"monad",Fogo:"fogo"},o2={Bsc:"binance-smart-chain",Arbitrum:"arbitrum-one",Optimism:"optimistic-ethereum",Polygon:"polygon-pos",Klaytn:"klay-token",Xlayer:"x-layer",Worldchain:"world-chain",Seievm:"sei-v2",Mezo:"mezo",HyperEVM:"hyperevm",Plume:"plume-network",Ink:"ink",HyperCore:"hypercore",Monad:"monad",Fogo:"fogo"},O0=async(g,x)=>{const S=new Headers({...gt.coingecko?.apiKey?{"x-cg-pro-api-key":gt.coingecko.apiKey}:{}}),c=gt.coingecko?.customUrl?gt.coingecko.customUrl:gt.coingecko?.apiKey?f2:a2;return fetch(`${c}${g}`,{signal:x?.abort?.signal,headers:S}).then(E=>E.json()).catch(E=>(console.error("Error fetching from Coingecko",E),null))},s2=async(g,x)=>gt.network!=="Mainnet"?null:O0(`/api/v3/coins/${g.chain.toLowerCase()}/contract/${g.address.toString()}`,x),h2=async(g,x)=>{const S=new Dr;if(gt.network!=="Mainnet")return S;const c={},E=[];for(const y of g)xe.isNative(y.address)?E.push(y):(c[y.chain]===void 0&&(c[y.chain]=[]),c[y.chain].push(y.address.toString()));const i=Object.keys(c).map(y=>{const m=c[y];return new Promise((h,d)=>{const p=m.join(","),v=o2[y]||y.toLowerCase();O0(`/api/v3/simple/token_price/${v}?contract_addresses=${p}&vs_currencies=usd`,x).then(w=>{w.error!==void 0||w.error_code!==void 0?d(w.error):h(Object.keys(w).map(M=>{try{const A=xe.Wormhole.tokenId(y,M);return w[M]?{tokenId:A,price:w[M].usd}:null}catch(A){return console.error("Coingecko error",A),null}}).filter(M=>M!==null))}).catch(d)})});E.length>0&&i.push(new Promise((y,m)=>{const h=[];for(const d of E){const p=Su[d.chain];p?h.push(p):console.error(`Don't know a coingecko ID for native token for chain ${d.chain}`)}O0(`/api/v3/simple/price?ids=${h.join(",")}&vs_currencies=usd`,x).then(d=>y(E.map(p=>{const v=Su[p.chain];if(v){const{usd:w}=d[v];return{tokenId:p,price:w}}else return null}).filter(p=>!!p))).catch(m)}));const _=(await Promise.allSettled(i)).map(y=>y.status==="fulfilled"?y.value:null).filter(y=>!!y).flat();for(const{tokenId:y,price:m}of _)S.add(y,m);return S},u2=1,Bu=typeof localStorage<"u";class fr{chain;addressString;_address;constructor(x,S){this.chain=x,this.addressString=S}get address(){return xe.isNative(this.addressString)?this.addressString:(this._address||(this._address=xe.toNative(this.chain,this.addressString)),this._address)}static fromTokenTuple(x){return new fr(x[0],x[1])}}class Qt extends fr{decimals;symbol;name;icon;tokenBridgeOriginalTokenId;coingeckoWebId;isBuiltin;isUnattested;constructor({chain:x,address:S,decimals:c,symbol:E,name:i,icon:_,tokenBridgeOriginalTokenId:y,coingeckoId:m,isUnattested:h}){super(x,S),this.decimals=c,this.symbol=E,this.name=i,this.icon=_,this.tokenBridgeOriginalTokenId=y,this.coingeckoWebId=m,this.isUnattested=h}get display(){return this.name?this.name:this.symbol!==""?this.symbol:this.shortAddress}get shortAddress(){const x=this.addressString;return`${x.substring(0,5)}...${x.substring(x.length-6)}`}get tuple(){return[this.chain,this.addressString]}get key(){return ci(this.tokenId)}get tokenId(){return{chain:this.chain,address:this.address}}get isNativeGasToken(){return xe.isNative(this.address)}get isTokenBridgeWrappedToken(){return!!this.tokenBridgeOriginalTokenId}get nativeChain(){return this.tokenBridgeOriginalTokenId?.chain||this.chain}equals(x){return Vc(this,x)}toJson(){return{chain:this.chain,address:this.addressString,decimals:this.decimals,symbol:this.symbol,name:this.name??"",icon:this.icon?this.icon:"",tokenBridgeOriginalTokenId:this.tokenBridgeOriginalTokenId?jc(this.tokenBridgeOriginalTokenId):void 0,coingeckoWebId:this.coingeckoWebId}}static fromJson({chain:x,address:S,decimals:c,symbol:E,name:i,icon:_,tokenBridgeOriginalTokenId:y,coingeckoWebId:m}){return new Qt({chain:x,address:S,decimals:c,symbol:E,name:i,icon:_===""?void 0:_,tokenBridgeOriginalTokenId:y?hf(y):void 0,coingeckoId:m})}}class Dr{lastUpdate;_localStorageKey;_mapping;size;constructor(){this.lastUpdate=new Date,this._mapping=new Map,this.size=0}add(x,S){this._mapping.has(x.chain)||this._mapping.set(x.chain,new Map),this._mapping.get(x.chain).set(_r(x).toLowerCase(),S),this.lastUpdate=new Date,this.size+=1}get(x,S){if(typeof x=="string"&&typeof S=="string"&&xe.isChain(x))return this._mapping.get(x)?.get(S.toLowerCase());if(x instanceof fr)return this._mapping.get(x.chain)?.get(x.addressString.toLowerCase());if(xe.isTokenId(x))return this._mapping.get(x.chain)?.get(x.address.toString().toLowerCase());if(sf(x))return this._mapping.get(x[0])?.get(x[1].toLowerCase());{const c=Gc(x);return this._mapping.get(c.chain)?.get(_r(c).toLowerCase())}}mustGet(x,S){const c=this.get(x,S);if(!c)throw new Error("Failed to get token");return c}getList(x){return x.map(S=>this.get(S)).filter(S=>S!==void 0)}getAllForChain(x){const S=this._mapping.get(x);return S?Array.from(S.values()):[]}getAll(){return Array.from(this._mapping.values()).flatMap(x=>Array.from(x.values()))}get chains(){return Array.from(this._mapping.keys())}merge(x){x.forEach(this.add)}clear(){this.lastUpdate=new Date,this._mapping=new Map,this.size=0}forEach(x){this._mapping.forEach((S,c)=>{S.forEach((E,i)=>{const _=new fr(c,i);x(_,E)})})}get empty(){return this.size===0}clone(){const x=new Dr;return this.forEach((S,c)=>{x.add(S,c)}),x}}class ri extends Dr{add(x){if(x.tokenBridgeOriginalTokenId){const S=this.get(x.tokenBridgeOriginalTokenId);S&&(x.icon=S.icon,x.name=S.name,x.symbol=S.symbol)}super.add(x,x)}getGasToken(x){return x==="Celo"?this.findBySymbol("Celo","CELO"):x==="XRPLEVM"?this.findBySymbol("XRPLEVM","XRP"):this.get(x,"native")}findByAddressOrSymbol(x,S){const c=this.get(x,S);if(c)return c;const E=this.findBySymbol(x,S);if(E)return E}queryBySymbol(x,S){return this.getAllForChain(x).filter(c=>c.symbol.toLowerCase().startsWith(S.toLowerCase())||c.name?.toLowerCase().startsWith(S.toLowerCase()))}findBySymbol(x,S){const c=gt.ui?.tokenNameOverrides?.[x],E=S.toLowerCase();let i=this.getAllForChain(x).filter(_=>{const y=E===_.symbol.toLowerCase(),m=E===c?.[_.address.toString()]?.toLowerCase();return y||m});if(i.length>1&&(i=i.filter(_=>!_.isTokenBridgeWrappedToken)),i.length===1)return i[0];if(i.length>1){const _=i.find(y=>y.address==="native");if(_)return _;console.error(`Ambiguous token symbol: ${S}`)}}setLocalStorageKey(x){this._localStorageKey=x}async addFromTokenId(x){if(x.chain==="Sui"&&!ze.isValidSuiType(x.address.toString()))throw new Error(`Not a valid Sui token address: ${x.address.toString()}`);if(xe.isUnattestedTokenId(x)){const w=this.get(x.originalTokenId);console.debug(`Token ${x} is unattested`);const M=new Qt({chain:x.chain,address:xe.canonicalAddress(x),decimals:x.decimals,symbol:w?.symbol||"",name:w?.name,icon:w?.icon,isUnattested:!0});return this.add(M),M}const S=await hr(),c=S.getChain(x.chain),E=await c.getDecimals(x.address);let i={};try{i=await s2(x)||{}}catch(w){console.error("Error fetching token metadata:",w)}let _=i?.symbol?.toUpperCase()||"",y=i?.name||"",m=i?.image?.large||null;const h=i?.web_slug;if(!_){const{getTokenMetadataFromRpc:w}=await Promise.resolve().then(()=>require("./tokens-CvZuVW-g.js")),M=await w(x);M&&(console.info("Got metadata from RPC",M),_=M.symbol,y=M.name,m=M.icon)}let d,p;try{p=await c.getTokenBridge()}catch{}if(p&&await p.isWrappedAsset(x.address)&&(d=await p.getOriginalAsset(x.address),xe.UniversalAddress.instanceof(d.address)&&(d.address=await S.getTokenNativeAddress(d.chain,d.chain,d.address)),d)){const w=this.get(d);w&&w.icon&&(m=w.icon,_=w.symbol)}if(!d&&(!_||!m))try{const w=gt.routes.get("MonadBridgeExecutorRoute");if(w?.isSupportedChain(x.chain)){const M=new w.rc(S);if(M instanceof _l.MultiTokenNttExecutorRoute&&await M.isWrappedToken(x)){const A=await M.getOriginalToken(x),B=this.get(A);B&&(m=m??B.icon,_=_??B.symbol)}}}catch{}const v=new Qt({chain:x.chain,address:xe.canonicalAddress(x),decimals:E,symbol:_,name:y,icon:m,tokenBridgeOriginalTokenId:d,coingeckoId:h});return this.add(v),v}persist(){if(Bu&&this._localStorageKey){const x={version:u2,tokens:{}};this.forEach((c,E)=>{E.isUnattested||(x.tokens[ci(c)]=E.toJson())});const S=JSON.stringify(x);localStorage.setItem(this._localStorageKey,S)}}static load(x){if(Bu){const c=localStorage.getItem(x);if(c)try{const E=JSON.parse(c),i=new ri;i.setLocalStorageKey(x);for(const[,_]of Object.entries(E.tokens)){const y=Qt.fromJson(_);i.add(y)}return i}catch(E){console.error("Error parsing cached TokenCache",E)}}const S=new ri;return S.setLocalStorageKey(x),S}}function c2(g,x,S){const c=ri.load(S);for(const{tokenId:E,symbol:i,name:_,icon:y,decimals:m}of g){const h=new Qt({chain:E.chain,address:E.address.toString(),decimals:m,symbol:i,name:_,icon:y});h.isBuiltin=!0,c.add(h)}for(const E in x)for(const i in x[E]){const _=x[E][i];for(const y in _){const m=c.get(E,i);if(m){const h=_[y];let d=xe.chainToPlatform(y)==="Evm"?18:8;d=Math.min(d,m.decimals);const p=new Qt({chain:y,address:h,decimals:d,symbol:m.symbol,name:m.name,icon:m.icon,tokenBridgeOriginalTokenId:m});p.isBuiltin=!0,c.add(p)}}}return c.persist(),c}function sf(g){return Array.isArray(g)&&g.length==2&&xe.isChain(g[0])}function jc(g){return[g.chain,_r(g)]}function hf(g){return fr.fromTokenTuple(g)}function ci(g,x){return JSON.stringify(typeof g=="string"?[g,x]:jc(g))}function Gc(g){const x=JSON.parse(g);if(sf(x))return hf(x);throw new Error(`Invalid token key "${g}"; couldn't parse`)}function _r(g){return g instanceof fr?g.addressString:g.address.toString()}function Vc(g,x){return g.chain===x.chain&&g.addressString===x.addressString}const Zc="insufficient_allowance",l2="swap_failed",d2="source_contract_paused",p2="destination_contract_paused",v2="unsupported_abi_version",Qr="insufficient_gas",Xc="amount_too_large",Yc="amount_too_small",Jc="user_rejected",Qc="user_timeout",el="unknown",tl="relay_failed";var rl=(g=>(g.SelectSrcToken="select.src.token",g.SelectSrcChain="select.src.chain",g.SelectDestToken="select.dest.token",g.SelectDestChain="select.dest.chain",g))(rl||{});const il={Mainnet:{Arbitrum:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",Avalanche:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",Base:"0x4200000000000000000000000000000000000006",Bsc:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",Celo:"0x0000000000000000000000000000000000000000",Ethereum:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",Fantom:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",Klaytn:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817",Moonbeam:"0xAcc15dC74880C9944775448304B263D191c6077F",Optimism:"0x4200000000000000000000000000000000000006",Polygon:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",Mantle:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",Scroll:"0x5300000000000000000000000000000000000004",Berachain:"0x6969696969696969696969696969696969696969",Unichain:"0x4200000000000000000000000000000000000006",Worldchain:"0x4200000000000000000000000000000000000006",Ink:"0x4200000000000000000000000000000000000006",Sonic:"0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38",Monad:"0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A"},Testnet:{Avalanche:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",Bsc:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",Celo:"0x524d97A67f50F4A062C28c74F60703Aec9028a94",Fantom:"0xf1277d1Ed8AD466beddF92ef448A132661956621",Klaytn:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106",Moonbeam:"0xD909178CC99d318e4D46e7E66a972955859670E1",Sepolia:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c",ArbitrumSepolia:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73",BaseSepolia:"0x4200000000000000000000000000000000000006",OptimismSepolia:"0x4200000000000000000000000000000000000006",PolygonSepolia:"0x0000000000000000000000000000000000000000",Scroll:"0x5300000000000000000000000000000000000004",Linea:"0x0000000000000000000000000000000000000000",Berachain:"0x6969696969696969696969696969696969696969",Seievm:"0x3921eA6Cf927BE80211Bb57f19830700285b0AdA",Unichain:"0x4200000000000000000000000000000000000006",Worldchain:"0x4200000000000000000000000000000000000006",Ink:"0x4200000000000000000000000000000000000006",Monad:"0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701",Mezo:"0x0000000000000000000000000000000000000000",Sonic:"0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38"},Devnet:{}},b2="So11111111111111111111111111111111111111112";function uf(g,x){const S=xe.chainToPlatform(x);if(S==="Evm")return il[g]?.[x];if(S==="Solana")return b2;if(S==="Aptos")return"0x1::aptos_coin::AptosCoin";if(S==="Sui")return"0x2::sui::SUI"}function nl(g,x,S){if(!g)return!1;const c=g.address.toString(),E=S.address.toString();if(E===c)return!0;if(x){const i=xe.isNative(g.address),_=c.toLowerCase()===x,y=E.toLowerCase()===x,m=xe.isNative(S.address);if(i&&y||_&&m)return!0}return!1}function m2(g){return g.length===22?g:`0x${g.slice(g.length-40,g.length)}`}function ei(g,x=6){return g.slice(0,x)+"..."+g.slice(g.length-4,g.length)}function y2(g,x=6,S=4){const c=g.slice(0,x),E=g.slice(g.length-S,g.length);return`${c}...${E}`}function g2(g,x){return g?g==="Evm"?ei(m2(x)):g==="Solana"?ei(x,4):ei(x):""}function al(g){const x=gt.tokens.getGasToken(g);if(!x)throw new Error(`gas token not found for ${g}`);return x}function fl(g){const x=gt.ui?.tokenNameOverrides?.[g.chain];if(!x)return g.display;const S=g.addressString.toLowerCase();for(const[c,E]of Object.entries(x))if(c.toLowerCase()===S)return E;return g.display}function ol(g){const x=gt.chains[g];return x?x.displayName:g}function Fu(g){const x=document.createElement("textarea");x.value=g,x.style.top="0",x.style.left="0",x.style.position="fixed",document.body.appendChild(x),x.focus(),x.select();try{return document.execCommand("copy"),!0}catch{return!1}finally{document.body.removeChild(x)}}function x2(g){return navigator.clipboard&&navigator.clipboard.writeText(g).then(function(){return!0},function(){return Fu(g)}),Fu(g)}function w2(g){return g.startsWith("0x")?g:`0x${g}`}function M2(g,x){return g==="Sui"?ze.isValidTransactionDigest(x):g==="Sei"?xe.isHexString(w2(x),32):x.startsWith("0x")&&x.length===66?!0:x.length>70&&x.length<100}function _2(g){const x=lf.useRef(void 0);return lf.useEffect(()=>{x.current=g}),x.current}async function sl(g){return new Promise(x=>setTimeout(x,g))}const hl=g=>typeof g>"u"?"":g===0?"$0":g>0&&g<.01?"<$0.01":Intl.NumberFormat("en-EN",{style:"currency",currency:"USD"}).format(g),ul=(g,x,S)=>{if(typeof x>"u"||!S)return;const c=typeof g=="function"?g(S):g;if(c)return typeof x=="number"?x*c:xe.whole(x)*c},E2=(g,x,S)=>hl(ul(g,x,S)),A2=g=>{if(g==null)return!0;for(const x in g)if(g.hasOwnProperty.call(g,x))return!1;return!0},ar=(g,x)=>{const S=new URL(g),c=S.pathname.replace(/\/+$/,""),E=x.replace(/^\/+/,"");return S.pathname=`${c}/${E}`,S.toString()},S2=(g,x)=>{const S=gt.chains[g];if(!S?.explorerUrl)return;const c=S.explorerUrl;switch(g){case"Sui":return ar(c,`coin/${x}`);case"Aptos":return ar(c,`${xe.isHexString(x)?"fungible_asset":"coin"}/${x}`);case"Fantom":case"Solana":case"Fogo":return`${c}address/${x}`;default:return ar(c,`token/${x}`)}},B2=(g,x)=>{const S=gt.chains[g];if(!S?.explorerUrl)return;const c=S.explorerUrl;return g==="Aptos"?ar(c,`txn/${x}`):ar(c,`tx/${x}`)},F2=(g,x)=>{const S=gt.chains[g];if(!S?.explorerUrl)return;const c=S.explorerUrl;return g==="Aptos"?ar(c,`account/${x}`):ar(c,`address/${x}`)},cl=(g,x)=>{if(!g.isTokenBridgeWrappedToken)return!1;const{nativeChain:S,symbol:c}=g;if(c==="USDC"||g.symbol==="tBTC")return!0;const{tokenBridgeOriginalTokenId:E}=g;if(E){const i=["Ethereum","Sepolia"];if(x==="Monad"&&i.includes(E.chain)||i.includes(x)&&E.chain==="Monad"){if(E.address==="native")return!0;const y=uf(gt.network,E.chain);return!!y&&xe.isSameToken(E,xe.Wormhole.tokenId(E.chain,y))}}return S!=="Ethereum"&&["ETH","WETH","wstETH","USDT","USDC","USDC.e"].includes(c)},C2=g=>g>=2*6e4?`${Math.ceil(g/6e4)} min`:`${Math.ceil(g/1e3)} sec`,D2=g=>{if(g>864e5){const E=Math.floor(g/864e5);return`${E} ${E===1?"day":"days"} ago`}else if(g>36e5){const E=Math.floor(g/36e5);return`${E} ${E===1?"hour":"hours"} ago`}else if(g>6e4){const E=Math.floor(g/6e4);return`${E} ${E===1?"minute":"minutes"} ago`}else return"1 minute ago"},R2=g=>{if(g<60)return g===1?`${g} second`:`${g} seconds`;if(g<3600){const x=Math.floor(g/60);return x===1?`${x} minute`:`${x} minutes`}else{const x=Math.floor(g/3600);return x===1?`${x} hour`:`${x} hours`}},ll=g=>g?g.endsWith("ExecutorRoute"):!1,T2=g=>JSON.stringify(g,(x,S)=>typeof S=="bigint"?S.toString():S),I2=/insufficient token allowance/im,k2=/insufficient lamports.*?(\d+).*?(\d+)/im,N2=/simulation failed:.*accountnotfound/i,P2=new RegExp("user rejected|rejected the request|rejected from user|user cancel|aborted by user|plugin closed|denied request signature|user denied|action_rejected|ethers-user-denied|approval denied","mi"),q2=new RegExp("AmountInTooSmall","m"),O2=/insufficient funds for gas|insufficient.*gas/gim,U2=/insufficient funds/gim,Cu="Insufficient funds for network fees. Please add more funds and try again",L2="Insufficient funds for this transfer. Please add more funds and try again";function H2(g,x){let S="Error with transfer, please try again",c=el;if(g.message){if(g instanceof xe.RelayFailedError)S=g.message,c=tl;else if(I2.test(g?.message))S="Error with transfer, please try again",c=Zc;else if(g.name==="TransactionExpiredTimeoutError"||g.name==="TransactionExpiredBlockheightExceededError")S="Transfer timed out, please try again",c=Qc;else if(O2.test(g?.message))S=Cu,c=Qr;else if(U2.test(g?.message))S=L2,c=Qr;else if(P2.test(g?.message))S="Wallet request declined. Transfer not started.",c=Jc;else if(q2.test(g?.message))S="Amount is too small for the selected route",c=Yc;else if(x.route.includes("CCTP")&&/burn.*exceed/i.test(g?.toString())){const{amount:i}=x;S=`Amount exceeds Circle limit${i!==void 0&&xe.whole(i)>1e6?" of 1,000,000":""}. Please reduce transfer amount.`,c=Xc}else if(N2.test(g?.message)||k2.test(g?.message)){const E=x.fromChain;try{const i=al(E),_=fl(i),y=ol(E),m=y?` on ${y}`:"";S=`Insufficient ${_} for fees${m}. Please add more ${_} and try again`}catch{S=Cu}c=Qr}}return[S,{type:c,original:g}]}function dl(g,x){g instanceof Error&&g.message.startsWith("No protocols registered for")||console.error(x?`${x}: ${g}`:g)}var Wr={exports:{}},Du;function z2(){if(Du)return Wr.exports;Du=1;function g(p,v){var w=v&&v.cache?v.cache:d,M=v&&v.serializer?v.serializer:m,A=v&&v.strategy?v.strategy:i;return A(p,{cache:w,serializer:M})}function x(p){return p==null||typeof p=="number"||typeof p=="boolean"}function S(p,v,w,M){var A=x(M)?M:w(M),B=v.get(A);return typeof B>"u"&&(B=p.call(this,M),v.set(A,B)),B}function c(p,v,w){var M=Array.prototype.slice.call(arguments,3),A=w(M),B=v.get(A);return typeof B>"u"&&(B=p.apply(this,M),v.set(A,B)),B}function E(p,v,w,M,A){return w.bind(v,p,M,A)}function i(p,v){var w=p.length===1?S:c;return E(p,this,w,v.cache.create(),v.serializer)}function _(p,v){var w=c;return E(p,this,w,v.cache.create(),v.serializer)}function y(p,v){var w=S;return E(p,this,w,v.cache.create(),v.serializer)}function m(){return JSON.stringify(arguments)}function h(){this.cache=Object.create(null)}h.prototype.has=function(p){return p in this.cache},h.prototype.get=function(p){return this.cache[p]},h.prototype.set=function(p,v){this.cache[p]=v};var d={create:function(){return new h}};return Wr.exports=g,Wr.exports.strategies={variadic:_,monadic:y},Wr.exports}var $2=z2();const pl=ze.getDefaultExportFromCjs($2);class K2{constructor(x){this.TTLms=x}cache=new Map;pendingRequests=new Map;async requestWithCache(x,S){const c=Date.now(),E=this.cache.get(x);if(E&&c-E.timestamp<this.TTLms){if(console.debug("[Cache Debug] Cache HIT - using cached value"),E.isError)throw E.value;return E.value}let i=this.pendingRequests.get(x);return i?console.debug("[Cache Debug] Cache MISS - using pending request"):(console.debug("[Cache Debug] Cache MISS - initiating new request"),i=S().then(_=>(this.cache.set(x,{value:_,timestamp:Date.now(),isError:!1}),this.pendingRequests.delete(x),_)).catch(_=>{throw console.debug("[Cache Debug] Cache ERROR - storing error"),this.cache.set(x,{value:_,timestamp:Date.now(),isError:!0}),this.pendingRequests.delete(x),_}),this.pendingRequests.set(x,i)),i}}const vl=["ManualNtt","AutomaticNtt","M0AutomaticRoute","NttExecutorRoute"],bl=g=>{const x=gt.routes.get(g);if(!x)return;const S=x.rc.config;if(S)return g==="NttExecutorRoute"?S.ntt?.tokens:S.tokens},ml=g=>{const x=_r(g);for(const S of vl){const c=bl(S);if(c)for(const E in c){const i=c[E];if(!i)continue;if(i.some(y=>y.chain===g.chain&&y.token===x))return!0}}return!1},W2=g=>{const x=[],S=_r(g);for(const c of vl){const E=bl(c);if(E)for(const i in E){const _=E[i];if(!_)continue;if(_.some(m=>m.chain===g.chain&&m.token===S)){for(const m of _)if(m.chain!==g.chain||m.token!==S){const h=gt.tokens.get(m.chain,m.token);h&&x.push(h)}return x}}}return x};class yl{constructor(x){this.rc=x,this.IS_TOKEN_BRIDGE_ROUTE=["ManualTokenBridge","AutomaticTokenBridge","TokenBridgeExecutorRoute"].includes(x.meta.name),this.IS_MONAD_BRIDGE_ROUTE=["MonadBridgeManualRoute","MonadBridgeExecutorRoute"].includes(x.meta.name)}IS_TOKEN_BRIDGE_ROUTE=!1;IS_MONAD_BRIDGE_ROUTE=!1;tokenCache=new K2(1440*60*1e3);get AUTOMATIC_DEPOSIT(){return this.rc.IS_AUTOMATIC}get NATIVE_GAS_DROPOFF_SUPPORTED(){return this.rc.NATIVE_GAS_DROPOFF_SUPPORTED}async getV2ChainContext(x){const c=(await hr()).getPlatform(xe.chainToPlatform(x)).getChain(x);return{chain:x,context:c}}async isRouteSupported(x,S,c,E){if(c===E&&!this.rc.supportsSameChainSwaps?.(gt.network,c))return!1;const _=await this.getV2ChainContext(c),y=await this.getV2ChainContext(E),m=this.rc.supportedChains(gt.network),h=m.includes(_.chain),d=m.includes(y.chain);if(!h||!d)return!1;try{return!!(await this.supportedDestTokens(x,c,E)).find(v=>xe.isSameToken(v,S))}catch(p){return console.error("Error checking route support:",p),!1}}isSupportedChain(x){return this.rc.supportedChains(gt.network).includes(x)}async supportedDestTokens(x,S,c){if(!S||!c||!x)return[];const E=await this.getV2ChainContext(S),i=await this.getV2ChainContext(c);if(await this.isIlliquidDestToken(x,c))return[];const y=S===c,m=`supportedDestTokens-${x.address}-${S}-${c}`,h=async()=>{try{return await this.rc.supportedDestinationTokens(x.tokenId,E.context,i.context)}catch{return[]}},d=await this.tokenCache.requestWithCache(m,h),p=y?uf(gt.network,i.chain)?.toLowerCase():void 0;return d.filter(w=>{const M=gt.tokens.get(w);return M&&cl(M,i.chain)?!1:y?!nl(x,p,w):!0})}async getQuote(x,S,c,E,i,_,y,m){if(!E||!i||!S||!c)throw new Error("Malformed quote request");const h=await this.createRequest(S,c,E,i,y,m),d=await this.createRouteInstance(),p=await d.validate(h,{amount:xe.display(x),options:_});if(!p.valid)throw p.error;const v=await d.quote(h,p.params);return{routeInstance:d,quote:v,request:h}}async createRouteInstance(){const x=await hr();return new this.rc(x)}async createRequest(x,S,c,E,i,_){const y=(await this.getV2ChainContext(c)).context,m=(await this.getV2ChainContext(E)).context,h=await hr();return await sr.RouteTransferRequest.create(h,{source:x.tokenId,destination:S.tokenId,sender:i?xe.Wormhole.chainAddress(c,i):void 0,recipient:_?xe.Wormhole.chainAddress(E,_):void 0,sourceDecimals:x.decimals,destinationDecimals:S.decimals},y,m)}async send(x,S,c,E){const{quote:i,routeInstance:_,request:y}=x;if(!i.success)throw i.error;let m=await _.initiate(y,S,i,xe.Wormhole.chainAddress(c,E));if(m.state===xe.TransferState.SourceInitiated||m.state===xe.TransferState.SourceFinalized)return[_,m];let h=0;const d=5,p=1e3;for(;h<d;)try{for await(m of _.track(m,120*1e3))if(m.state>=xe.TransferState.SourceInitiated)return[_,m]}catch(v){console.error(`Error tracking transfer (attempt ${h+1} / ${d}):`,v);const w=p*Math.pow(2,h);await sl(w),h++}throw new Error("Never got a SourceInitiated state in receipt")}async resumeIfManual(x){const S=await hr(),c=new this.rc(S);return xe.isManual(c)||xe.isFinalizable(c)?c.resume(x):null}async isIlliquidDestToken(x,S){if(this.IS_MONAD_BRIDGE_ROUTE&&x?.isTokenBridgeWrappedToken)return!0;if(this.IS_TOKEN_BRIDGE_ROUTE){if(ml(x))return!0;const{symbol:E,nativeChain:i}=x;if(["ETH","WETH"].includes(E)&&i==="Ethereum"&&["Scroll","Xlayer","Mantle","Unichain"].includes(S))return!0}return!1}}function j2(g,x,S=6){if(x<=S)return g;const c=10n**BigInt(x-S),E=g%c;return g-E}function Ru(g,x,S){let c=xe.units(g)*x/(S-x);return c=j2(c,g.decimals),xe.fromBaseUnits(c,g.decimals)}function gl(g,x,S,c){if(!S||!x||!g||xe.units(x)===0n||S.chain===c?.chain)return;let i;if(typeof g=="string"){if(i=gt.routes.get(g),!i)return}else if(g instanceof yl)i=g;else return;if(i.rc.meta.name.startsWith("MayanSwap")){const m=i.rc;if(m.getReferrerBps&&S&&c){const h={source:{id:S.tokenId||{chain:S.chain,address:S.address},symbol:S.symbol,decimals:S.decimals},destination:{id:c.tokenId||{chain:c.chain,address:c.address},symbol:c.symbol,decimals:c.decimals}},d=m.getReferrerBps(h);if(d>0)return Ru(x,BigInt(d),10000n)}return}const _=i.rc.config;if(!_)return;let y=0n;if(ll(i.rc.meta.name)){if(_.referrerFeeDbps!==void 0)y=_.referrerFeeDbps;else if(_.referrerFee?.feeDbps!==void 0)if(_.referrerFee.perTokenOverrides!==void 0&&S){const m=_.referrerFee.perTokenOverrides[S.addressString];m?.referrerFeeDbps!==void 0?y=m.referrerFeeDbps:y=_.referrerFee.feeDbps}else y=_.referrerFee.feeDbps;else if(_.referrerFee?.referrerFeeDbps!==void 0)if(_.referrerFee.tokenFeeOverrides&&S){const m=_.referrerFee.tokenFeeOverrides[S.addressString];m?.referrerFeeDbps!==void 0?y=m.referrerFeeDbps:y=_.referrerFee.referrerFeeDbps}else y=_.referrerFee.referrerFeeDbps}if(y!==0n)return Ru(x,y,100000n)}const G2=(g,x)=>{let S={name:"",eta:1/0},c={name:"",amountOut:0n};for(const E of g){const i=x[E];if(!i||!i.success)continue;if(i.eta!==void 0&&i.eta<S.eta&&(S={name:E,eta:i.eta}),gt.routes.get(E)?.AUTOMATIC_DEPOSIT){const y=BigInt(i.destinationToken.amount.amount);y>c.amountOut&&(c={name:E,amountOut:y})}}return{fastestRoute:S,cheapestRoute:c}};function xl(g){return new Date(g+3e4)}function V2(g){const x=Date.now();return g instanceof Date&&g.getTime()>x+5e3?g:xl(x)}const wl=[sr.AutomaticCCTPRoute,sr.CCTPRoute,sr.AutomaticTokenBridgeRoute,sr.TokenBridgeRoute,sr.TBTCRoute];class Z2{preference;routes;quoteMetadataCache;constructor(x=wl){const S={},c=[];for(const E of x){const i=E.meta.name;if(i==="")throw new Error("Route has empty meta.name");if(i in S)throw new Error(`Route has duplicate meta.name: ${i}`);c.push(i),S[i]=new yl(E)}this.routes=S,this.preference=c,this.quoteMetadataCache=new X2}get(x){return this.routes[x]}async forEach(x){return Promise.all(this.preference.map(S=>x(S,this.routes[S])))}async resumeFromTx(x){return new Promise((S,c)=>{const E=Object.keys(this.routes).length;let i=0;this.forEach((_,y)=>{y.resumeIfManual(x).then(m=>{m!==null?S({route:_,receipt:m}):i+=1}).catch(m=>{i+=1}).finally(()=>{i===E&&S(null)})})})}allSupportedChains(){const x=new Set;for(const S of this.preference)this.routes[S].rc.supportedChains(gt.network).forEach(i=>x.add(i));return Array.from(x)}async allSupportedDestTokens(x,S,c){const E=new Map;return await this.forEach(async(i,_)=>{try{const y=await _.supportedDestTokens(x,S,c);for(const m of y){const h=ci(m);xe.isUnattestedTokenId(m)?E.set(h,m):E.set(h,Gc(h))}}catch(y){dl(y)}}),[...E.values()]}async getQuotes(x,S){const c=await Promise.allSettled(x.map(i=>{const _=this.quoteMetadataCache.get(i,S);return _?.quote?_.quote:this.quoteMetadataCache.fetchQuote(i,S,this.get(i))})),E={};for(let i=0;i<x.length;i++){const _=x[i],y=c[i];y.status==="rejected"?E[_]={success:!1,error:y.reason}:E[_]=y.value}return E}isSameChainSwapSupported=pl(x=>Object.values(this.routes).some(c=>{const{supportsSameChainSwaps:E,supportedChains:i}=c.rc;return typeof E=="function"&&E(gt.network,x)&&i(gt.network).includes(x)}));async execute(x,S,c,E,i,_,y,m,h,d){const p=this.get(x),v={amount:c,sourceChain:E,sourceToken:S,destChain:_,destToken:h,nativeGas:d.nativeGas,sender:y,recipient:m};let w=this.quoteMetadataCache.get(x,v);return w||(w=await p.getQuote(c,S,h,E,_,d,y,m)),p.send(w,i,_,m)}}class X2{cache;pending;constructor(){this.cache={},this.pending={}}quoteParamsKey(x,S){return`${x}:${S.sourceChain}:${S.sourceToken.address.toString()}:${S.destChain}:${S.destToken.address.toString()}:${xe.units(S.amount)}:${S.nativeGas}:${S.recipient}:${S.sender}`}get(x,S){const c=this.quoteParamsKey(x,S),E=this.cache[c],i=E?.ttl()<=5e3;return!E||i?(delete this.cache[c],null):{quote:E.quote,request:E.request,routeInstance:E.routeInstance}}async fetchQuote(x,S,c){console.debug("Fetching quote using",x,S);const E=this.quoteParamsKey(x,S),i=this.pending[E];if(i)return new Promise((y,m)=>{i.push({resolve:y,reject:m})});let _=S.amount;if(gt.ui?.experimental?.feeOffsetting){const y=gl(c,S.amount,S.sourceToken,S.destToken);y&&xe.units(y)>0n&&(_=xe.fromBaseUnits(xe.units(S.amount)+xe.units(y),S.amount.decimals))}return c.getQuote(_,S.sourceToken,S.destToken,S.sourceChain,S.destChain,{nativeGas:S.nativeGas},S.sender,S.recipient).then(({routeInstance:y,quote:m,request:h})=>{console.debug("\x1B[32mSuccessfully fetched quote using",x,m);const d=this.pending[E];for(const{resolve:p}of d)p(m);delete this.pending[E],m.success&&(m.expires=V2(m.expires)),this.cache[E]=new Tu(m,y,h)}).catch(y=>{console.debug("\x1B[31mFailed to fetch quote using",x,y);const m=this.pending[E];for(const{reject:h}of m)h(y);delete this.pending[E],this.cache[E]=new Tu({success:!1,error:y},{},{})}),new Promise((y,m)=>{this.pending[E]=[{resolve:y,reject:m}]})}nextExpiry(x,S){const c=x.map(E=>{const i=this.quoteParamsKey(E,S);if(this.cache[i])return this.cache[i].expires()}).filter(E=>E!==void 0).sort((E,i)=>E.valueOf()-i.valueOf());if(c.length>0)return c[0]}}class Tu{quote;timestamp;routeInstance;request;constructor(x,S,c){this.quote=x,this.routeInstance=S,this.request=c,this.timestamp=new Date}expires(){return this.quote.success?this.quote.expires??xl(this.timestamp.getTime()):new Date(this.timestamp.getTime()+12e4)}ttl(){return this.expires().getTime()-Date.now()}}function cf(g={}){const x=Rl(g.network||void 0||"Mainnet");if(!["Mainnet","Testnet","Devnet"].includes(x))throw new Error(`Invalid env "${x}": Use "Testnet", "Devnet", or "Mainnet"`);const S={MAINNET:Iu,DEVNET:Yd,TESTNET:ku}[x.toUpperCase()],c=Cl(S.wrappedTokens,g.wrappedTokens),E=h=>g.cacheNamespace?`wormhole-connect:${g.cacheNamespace}:${h}`:`wormhole-connect:${h}`,i=c2([...S.tokens,...g.tokensConfig?Object.values(g.tokensConfig):[]],c,E(`token-cache:${x}`)),_=Bl[x.toUpperCase()],y=Object.assign({},_.rpcs,S.rpcs,g.rpcs);g.ui?.defaultInputs&&Dl(g.ui.defaultInputs,S.chains,i);const m=k0(g.ui??{});return g.tokens&&g.tokens.length>0&&m.disableUserInputtedTokens===void 0&&(m.disableUserInputtedTokens=!0),{sdkConfig:_,network:x,isMainnet:x==="Mainnet",rpcs:y,evmIndexers:g.evmIndexers,mayanApi:"https://explorer-api.mayan.finance",lifiExplorerUrl:"https://li.quest",wormholeApi:{Mainnet:"https://api.wormholescan.io/",Testnet:"https://api.testnet.wormholescan.io/",Devnet:""}[x],wormholeRpcHosts:{Mainnet:["https://wormhole-v2-mainnet-api.mcf.rocks","https://wormhole-v2-mainnet-api.chainlayer.network","https://wormhole-v2-mainnet-api.staking.fund"],Testnet:["https://guardian.testnet.xlabs.xyz","https://guardian-01.testnet.xlabs.xyz","https://guardian-02.testnet.xlabs.xyz"],Devnet:["http://localhost:7071"]}[x],coingecko:g.coingecko,triggerEvent:Jd(g.eventHandler),validateTransfer:g.validateTransferHandler,isChainSupportedHandler:g.isChainSupportedHandler,isRouteSupportedHandler:g.isRouteSupportedHandler,isTokenSupportedHandler:g.isTokenSupportedHandler,filterRoutes:g.filterRoutes,chains:S.chains,chainsArr:Object.values(S.chains).filter(h=>g.chains?g.chains.includes(h.sdkName):!0).sort((h,d)=>{const p=ti.CHAIN_ORDER.indexOf(h.sdkName),v=ti.CHAIN_ORDER.indexOf(d.sdkName);return p>=0&&v>=0?p-v:p===-1?1:v===-1?-1:0}),tokens:i,tokenWhitelist:g.tokens,routes:new Z2(g.routes),ui:k0({...g.ui}),cacheKey:E,guardianSet:S.guardianSet,transactionSettings:g?.transactionSettings||{}}}const gt=cf();async function hr(){return gt._v2Wormhole||(gt._v2Wormhole=await Y2()),gt._v2Wormhole}async function Ml(){delete gt._v2Wormhole}async function Y2(){const g={chains:{}};for(const x in gt.chains){const S=x,c=gt.rpcs[S],E={};for(const i of gt.tokens.getAllForChain(S)){const _={key:i.key,chain:S,symbol:i.symbol,address:i.address.toString(),decimals:i.decimals};E[i.address.toString()]=_}g.chains[S]={rpc:c,tokenMap:E}}return await e2(gt.network,[t2,r2,i2,n2],g)}function J2(g={}){const x=cf(g);Ml();for(const S in x)gt[S]=x[S];typeof window<"u"&&(window._connectConfig=gt)}exports.DEFAULT_ROUTES=wl;exports.ERR_AMOUNT_TOO_LARGE=Xc;exports.ERR_AMOUNT_TOO_SMALL=Yc;exports.ERR_DESTINATION_CONTRACT_PAUSED=p2;exports.ERR_INSUFFICIENT_ALLOWANCE=Zc;exports.ERR_INSUFFICIENT_GAS=Qr;exports.ERR_NOT_ENOUGH_CAPACITY=l2;exports.ERR_RELAY_FAILED=tl;exports.ERR_SOURCE_CONTRACT_PAUSED=d2;exports.ERR_TIMEOUT=Qc;exports.ERR_UNKNOWN=el;exports.ERR_UNSUPPORTED_ABI_VERSION=v2;exports.ERR_USER_REJECTED=Jc;exports.MAINNET=Iu;exports.TESTNET=ku;exports.Token=Qt;exports.TokenIcon=Ee;exports.TokenMapping=Dr;exports.UserActions=rl;exports.WETH_CONTRACTS=il;exports.buildConfig=cf;exports.calculateFeeOffset=gl;exports.calculateUSDPrice=E2;exports.calculateUSDPriceRaw=ul;exports.chainDisplayName=ol;exports.clearWormholeContextV2=Ml;exports.config=gt;exports.copyTextToClipboard=x2;exports.displayWalletAddress=g2;exports.fetchTokenPrices=h2;exports.formatDuration=R2;exports.getBestRoutes=G2;exports.getGasToken=al;exports.getNttTokenGroup=W2;exports.getTokenDisplaySymbolByTokenAddress=fl;exports.getTokenExplorerUrl=S2;exports.getTransactionExplorerUrl=B2;exports.getUSDFormat=hl;exports.getWalletExplorerUrl=F2;exports.getWormholeContextV2=hr;exports.getWrappedNativeToken=uf;exports.interpretTransferError=H2;exports.isEmptyObject=A2;exports.isExecutorRoute=ll;exports.isFrankensteinToken=cl;exports.isNttToken=ml;exports.isSameToken=Vc;exports.isTokenTuple=sf;exports.isValidTxId=M2;exports.maybeLogSdkError=dl;exports.memoize=pl;exports.millisToHumanString=C2;exports.millisToRelativeTime=D2;exports.nacl2=of;exports.require$$2=vr;exports.requireBrowser=U0;exports.requireCallBind=Xu;exports.requireCallBound=Z0;exports.requireDefineDataProperty=Vu;exports.requireElliptic=hi;exports.requireEsObjectAtoms=z0;exports.requireEvents=pr;exports.requireGetIntrinsic=V0;exports.requireGetProto=G0;exports.requireGopd=yr;exports.requireHasPropertyDescriptors=Zu;exports.requireHasown=Gu;exports.requireInherits_browser=dt;exports.requireIsTypedArray=Qu;exports.requireNaclFast=qc;exports.requireShams=Yu;exports.requireShams$1=$0;exports.requireStreamBrowserify=ii;exports.requireString_decoder=cr;exports.requireType=mr;exports.requireWhichTypedArray=Ju;exports.setConfig=J2;exports.shouldFilterSameChainToken=nl;exports.sleep=sl;exports.stringifyWithBigInt=T2;exports.tokenIdFromTuple=hf;exports.tokenKey=ci;exports.trimAddress=ei;exports.trimTxHash=y2;exports.types=cd;exports.usePrevious=_2;
14
+ `+B+"}":"{"+F.join(",")+"}",E=B,M}}typeof S.stringify!="function"&&(S.stringify=function(d,p,v){var w;if(E="",i="",typeof v=="number")for(w=0;w<v;w+=1)i+=" ";else typeof v=="string"&&(i=v);if(y=p,p&&typeof p!="function"&&(typeof p!="object"||typeof p.length!="number"))throw new Error("JSON.stringify");return h("",{"":d})})})()})(D0)),D0.exports}var R0,vu;function Lv(){if(vu)return R0;vu=1;var g=null;const x=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,S=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var c=function(E){var i={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(E!=null){if(E.strict===!0&&(i.strict=!0),E.storeAsString===!0&&(i.storeAsString=!0),i.alwaysParseAsBig=E.alwaysParseAsBig===!0?E.alwaysParseAsBig:!1,i.useNativeBigInt=E.useNativeBigInt===!0?E.useNativeBigInt:!1,typeof E.constructorAction<"u")if(E.constructorAction==="error"||E.constructorAction==="ignore"||E.constructorAction==="preserve")i.constructorAction=E.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${E.constructorAction}`);if(typeof E.protoAction<"u")if(E.protoAction==="error"||E.protoAction==="ignore"||E.protoAction==="preserve")i.protoAction=E.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${E.protoAction}`)}var _,y,m={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
15
+ `,r:"\r",t:" "},h,d=function(R){throw{name:"SyntaxError",message:R,at:_,text:h}},p=function(R){return R&&R!==y&&d("Expected '"+R+"' instead of '"+y+"'"),y=h.charAt(_),_+=1,y},v=function(){var R,D="";for(y==="-"&&(D="-",p("-"));y>="0"&&y<="9";)D+=y,p();if(y===".")for(D+=".";p()&&y>="0"&&y<="9";)D+=y;if(y==="e"||y==="E")for(D+=y,p(),(y==="-"||y==="+")&&(D+=y,p());y>="0"&&y<="9";)D+=y,p();if(R=+D,!isFinite(R))d("Bad number");else return g==null&&(g=Uc()),D.length>15?i.storeAsString?D:i.useNativeBigInt?BigInt(D):new g(D):i.alwaysParseAsBig?i.useNativeBigInt?BigInt(R):new g(R):R},w=function(){var R,D,K="",q;if(y==='"')for(var Y=_;p();){if(y==='"')return _-1>Y&&(K+=h.substring(Y,_-1)),p(),K;if(y==="\\"){if(_-1>Y&&(K+=h.substring(Y,_-1)),p(),y==="u"){for(q=0,D=0;D<4&&(R=parseInt(p(),16),!!isFinite(R));D+=1)q=q*16+R;K+=String.fromCharCode(q)}else if(typeof m[y]=="string")K+=m[y];else break;Y=_}}d("Bad string")},M=function(){for(;y&&y<=" ";)p()},A=function(){switch(y){case"t":return p("t"),p("r"),p("u"),p("e"),!0;case"f":return p("f"),p("a"),p("l"),p("s"),p("e"),!1;case"n":return p("n"),p("u"),p("l"),p("l"),null}d("Unexpected '"+y+"'")},B,F=function(){var R=[];if(y==="["){if(p("["),M(),y==="]")return p("]"),R;for(;y;){if(R.push(B()),M(),y==="]")return p("]"),R;p(","),M()}}d("Bad array")},C=function(){var R,D=Object.create(null);if(y==="{"){if(p("{"),M(),y==="}")return p("}"),D;for(;y;){if(R=w(),M(),p(":"),i.strict===!0&&Object.hasOwnProperty.call(D,R)&&d('Duplicate key "'+R+'"'),x.test(R)===!0?i.protoAction==="error"?d("Object contains forbidden prototype property"):i.protoAction==="ignore"?B():D[R]=B():S.test(R)===!0?i.constructorAction==="error"?d("Object contains forbidden constructor property"):i.constructorAction==="ignore"?B():D[R]=B():D[R]=B(),M(),y==="}")return p("}"),D;p(","),M()}}d("Bad object")};return B=function(){switch(M(),y){case"{":return C();case"[":return F();case'"':return w();case"-":return v();default:return y>="0"&&y<="9"?v():A()}},function(R,D){var K;return h=R+"",_=0,y=" ",K=B(),M(),y&&d("Syntax error"),typeof D=="function"?(function q(Y,J){var V,re=Y[J];return re&&typeof re=="object"&&Object.keys(re).forEach(function(u){V=q(re,u),V!==void 0?re[u]=V:delete re[u]}),D.call(Y,J,re)})({"":K},""):K}};return R0=c,R0}var bu;function Hv(){if(bu)return Mr.exports;bu=1;var g=Uv().stringify,x=Lv();return Mr.exports=function(S){return{parse:x(S),stringify:g}},Mr.exports.parse=x(),Mr.exports.stringify=g,Mr.exports}var zv=Hv();const $v=ze.getDefaultExportFromCjs(zv);var mu;(function(g){g.DEFAULT="default",g.SAFE="safe",g.MIXED="mixed",g.BIGINT="bigint"})(mu||(mu={}));$v({useNativeBigInt:!0,strict:!0});function Kv(g,x){return g.length!==x.length?!1:Array.from(g).every((S,c)=>S===x[c])}function Wv(...g){const x=g.reduce((E,i)=>E+i.length,0),S=new Uint8Array(x);let c=0;for(let E=0;E<g.length;E++)S.set(g[E],c),c+=g[E].length;return S}function Lc(g){return qv.sha512_256.array(g)}const N0=sf.sign.publicKeyLength;sf.sign.secretKeyLength;const yu=32;var T0={exports:{}},gu;function jv(){return gu||(gu=1,(function(g){(function(){var x=typeof window=="object"?window:{},S=!x.HI_BASE32_NO_NODE_JS&&typeof we.process$1=="object"&&we.process$1.versions&&we.process$1.versions.node;S&&(x=ze.commonjsGlobal);var c=!x.HI_BASE32_NO_COMMON_JS&&!0&&g.exports,E="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),i={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},_=[0,0,0,0,0,0,0,0],y=function(B,F){F.length>10&&(F="..."+F.substr(-10));var C=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+B+" bytes: "+F+" <-");throw C.position=B,C},m=function(B){for(var F="",C=B.length,R=0,D=0,K,q;R<C;){if(K=B[R++],K<=127){F+=String.fromCharCode(K);continue}else K>191&&K<=223?(q=K&31,D=1):K<=239?(q=K&15,D=2):K<=247?(q=K&7,D=3):y(R,F);for(var Y=0;Y<D;++Y)K=B[R++],(K<128||K>191)&&y(R,F),q<<=6,q+=K&63;q>=55296&&q<=57343&&y(R,F),q>1114111&&y(R,F),q<=65535?F+=String.fromCharCode(q):(q-=65536,F+=String.fromCharCode((q>>10)+55296),F+=String.fromCharCode((q&1023)+56320))}return F},h=function(B){if(B==="")return[];if(!/^[A-Z2-7=]+$/.test(B))throw new Error("Invalid base32 characters");B=B.replace(/=/g,"");for(var F,C,R,D,K,q,Y,J,V=[],re=0,u=B.length,e=0,r=u>>3<<3;e<r;)F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],q=i[B.charAt(e++)],Y=i[B.charAt(e++)],J=i[B.charAt(e++)],V[re++]=(F<<3|C>>>2)&255,V[re++]=(C<<6|R<<1|D>>>4)&255,V[re++]=(D<<4|K>>>1)&255,V[re++]=(K<<7|q<<2|Y>>>3)&255,V[re++]=(Y<<5|J)&255;var n=u-r;return n===2?(F=i[B.charAt(e++)],C=i[B.charAt(e++)],V[re++]=(F<<3|C>>>2)&255):n===4?(F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],V[re++]=(F<<3|C>>>2)&255,V[re++]=(C<<6|R<<1|D>>>4)&255):n===5?(F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],V[re++]=(F<<3|C>>>2)&255,V[re++]=(C<<6|R<<1|D>>>4)&255,V[re++]=(D<<4|K>>>1)&255):n===7&&(F=i[B.charAt(e++)],C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],q=i[B.charAt(e++)],Y=i[B.charAt(e++)],V[re++]=(F<<3|C>>>2)&255,V[re++]=(C<<6|R<<1|D>>>4)&255,V[re++]=(D<<4|K>>>1)&255,V[re++]=(K<<7|q<<2|Y>>>3)&255),V},d=function(B){for(var F,C,R,D,K,q="",Y=B.length,J=0,V=parseInt(Y/5)*5;J<V;)F=B.charCodeAt(J++),C=B.charCodeAt(J++),R=B.charCodeAt(J++),D=B.charCodeAt(J++),K=B.charCodeAt(J++),q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[(R<<1|D>>>7)&31]+E[D>>>2&31]+E[(D<<3|K>>>5)&31]+E[K&31];var re=Y-V;return re===1?(F=B.charCodeAt(J),q+=E[F>>>3]+E[F<<2&31]+"======"):re===2?(F=B.charCodeAt(J++),C=B.charCodeAt(J),q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[C<<4&31]+"===="):re===3?(F=B.charCodeAt(J++),C=B.charCodeAt(J++),R=B.charCodeAt(J),q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[R<<1&31]+"==="):re===4&&(F=B.charCodeAt(J++),C=B.charCodeAt(J++),R=B.charCodeAt(J++),D=B.charCodeAt(J),q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[(R<<1|D>>>7)&31]+E[D>>>2&31]+E[D<<3&31]+"="),q},p=function(B){var F,C,R,D,K,q,Y=!1,J="",V=0,re,u=0,e=B.length;if(B==="")return J;do{for(_[0]=_[5],_[1]=_[6],_[2]=_[7],re=u;V<e&&re<5;++V)q=B.charCodeAt(V),q<128?_[re++]=q:q<2048?(_[re++]=192|q>>6,_[re++]=128|q&63):q<55296||q>=57344?(_[re++]=224|q>>12,_[re++]=128|q>>6&63,_[re++]=128|q&63):(q=65536+((q&1023)<<10|B.charCodeAt(++V)&1023),_[re++]=240|q>>18,_[re++]=128|q>>12&63,_[re++]=128|q>>6&63,_[re++]=128|q&63);u=re-5,V===e&&++V,V>e&&re<6&&(Y=!0),F=_[0],re>4?(C=_[1],R=_[2],D=_[3],K=_[4],J+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[(R<<1|D>>>7)&31]+E[D>>>2&31]+E[(D<<3|K>>>5)&31]+E[K&31]):re===1?J+=E[F>>>3]+E[F<<2&31]+"======":re===2?(C=_[1],J+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[C<<4&31]+"===="):re===3?(C=_[1],R=_[2],J+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[R<<1&31]+"==="):(C=_[1],R=_[2],D=_[3],J+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[(R<<1|D>>>7)&31]+E[D>>>2&31]+E[D<<3&31]+"=")}while(!Y);return J},v=function(B){for(var F,C,R,D,K,q="",Y=B.length,J=0,V=parseInt(Y/5)*5;J<V;)F=B[J++],C=B[J++],R=B[J++],D=B[J++],K=B[J++],q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[(R<<1|D>>>7)&31]+E[D>>>2&31]+E[(D<<3|K>>>5)&31]+E[K&31];var re=Y-V;return re===1?(F=B[J],q+=E[F>>>3]+E[F<<2&31]+"======"):re===2?(F=B[J++],C=B[J],q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[C<<4&31]+"===="):re===3?(F=B[J++],C=B[J++],R=B[J],q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[R<<1&31]+"==="):re===4&&(F=B[J++],C=B[J++],R=B[J++],D=B[J],q+=E[F>>>3]+E[(F<<2|C>>>6)&31]+E[C>>>1&31]+E[(C<<4|R>>>4)&31]+E[(R<<1|D>>>7)&31]+E[D>>>2&31]+E[D<<3&31]+"="),q},w=function(B,F){var C=typeof B!="string";return C&&B.constructor===ArrayBuffer&&(B=new Uint8Array(B)),C?v(B):F?d(B):p(B)},M=function(B,F){if(!F)return m(h(B));if(B==="")return"";if(!/^[A-Z2-7=]+$/.test(B))throw new Error("Invalid base32 characters");var C,R,D,K,q,Y,J,V,re="",u=B.indexOf("=");u===-1&&(u=B.length);for(var e=0,r=u>>3<<3;e<r;)C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],q=i[B.charAt(e++)],Y=i[B.charAt(e++)],J=i[B.charAt(e++)],V=i[B.charAt(e++)],re+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|K>>>4)&255)+String.fromCharCode((K<<4|q>>>1)&255)+String.fromCharCode((q<<7|Y<<2|J>>>3)&255)+String.fromCharCode((J<<5|V)&255);var n=u-r;return n===2?(C=i[B.charAt(e++)],R=i[B.charAt(e++)],re+=String.fromCharCode((C<<3|R>>>2)&255)):n===4?(C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],re+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|K>>>4)&255)):n===5?(C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],q=i[B.charAt(e++)],re+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|K>>>4)&255)+String.fromCharCode((K<<4|q>>>1)&255)):n===7&&(C=i[B.charAt(e++)],R=i[B.charAt(e++)],D=i[B.charAt(e++)],K=i[B.charAt(e++)],q=i[B.charAt(e++)],Y=i[B.charAt(e++)],J=i[B.charAt(e++)],re+=String.fromCharCode((C<<3|R>>>2)&255)+String.fromCharCode((R<<6|D<<1|K>>>4)&255)+String.fromCharCode((K<<4|q>>>1)&255)+String.fromCharCode((q<<7|Y<<2|J>>>3)&255)),re},A={encode:w,decode:M};M.asBytes=h,c?g.exports=A:x.base32=A})()})(T0)),T0.exports}var Gv=jv();const Hc=ze.getDefaultExportFromCjs(Gv),I0=36,P0=4,zc=58;we.Buffer$1.from("appID");const xu="address seems to be malformed",Vv="wrong checksum for address";function $c(g){if(typeof g!="string"||g.length!==zc)throw new Error(xu);const x=Hc.decode.asBytes(g.toString());if(x.length!==I0)throw new Error(xu);const S=new Uint8Array(x.slice(0,I0-P0)),c=new Uint8Array(x.slice(N0,I0)),E=Lc(S).slice(yu-P0,yu);if(!Kv(E,c))throw new Error(Vv);return{publicKey:S,checksum:c}}function Zv(g){try{$c(g)}catch{return!1}return!0}function Xv(g){const x=Lc(g).slice(N0-P0,N0);return Hc.encode(Wv(g,x)).toString().slice(0,zc)}var wu;(function(g){g.pay="pay",g.keyreg="keyreg",g.acfg="acfg",g.axfer="axfer",g.afrz="afrz",g.appl="appl",g.stpf="stpf"})(wu||(wu={}));var Mu;(function(g){g[g.NoOpOC=0]="NoOpOC",g[g.OptInOC=1]="OptInOC",g[g.CloseOutOC=2]="CloseOutOC",g[g.ClearStateOC=3]="ClearStateOC",g[g.UpdateApplicationOC=4]="UpdateApplicationOC",g[g.DeleteApplicationOC=5]="DeleteApplicationOC"})(Mu||(Mu={}));we.Buffer$1.from("ProgData");"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(g,x){});var _u;(function(g){g.any="txn",g.pay="pay",g.keyreg="keyreg",g.acfg="acfg",g.axfer="axfer",g.afrz="afrz",g.appl="appl"})(_u||(_u={}));var Eu;(function(g){g.account="account",g.application="application",g.asset="asset"})(Eu||(Eu={}));we.Buffer$1.from([21,31,124,117]);var Au;(function(g){g[g.BUILDING=0]="BUILDING",g[g.BUILT=1]="BUILT",g[g.SIGNED=2]="SIGNED",g[g.SUBMITTED=3]="SUBMITTED",g[g.COMMITTED=4]="COMMITTED"})(Au||(Au={}));we.Buffer$1.from([77,88]);const q0="Algorand";function Yv(g){if(g<BigInt(Number.MIN_SAFE_INTEGER)||g>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("Integer is unsafe");return Number(g)}class Qt{static byteSize=32;static platform=q0;type="Native";address;constructor(x){if(Qt.instanceof(x))this.address=x.address;else if(we.UniversalAddress.instanceof(x))this.address=x.toUint8Array();else if(x instanceof Uint8Array&&x.byteLength===Qt.byteSize)this.address=x;else if(typeof x=="string"&&Zv(x))this.address=$c(x).publicKey;else if(typeof x=="string"&&!isNaN(parseInt(x)))this.address=we.bytes.zpad(we.bignum.toBytes(BigInt(x),8),Qt.byteSize);else if(typeof x=="bigint")this.address=we.bytes.zpad(we.bignum.toBytes(x,8),Qt.byteSize);else if(x instanceof Uint8Array&&x.byteLength===8)this.address=we.bytes.zpad(x,Qt.byteSize);else throw new Error(`Invalid Algorand address or ASA ID: ${x}`)}unwrap(){return this.toString()}toString(){return Xv(this.address)}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){return new we.UniversalAddress(this.toUint8Array())}toBigInt(){return we.bignum.decode(this.toUint8Array().slice(24,32))}toInt(){return Yv(this.toBigInt())}equals(x){return Qt.instanceof(x)?x.address===this.address:this.toUniversalAddress().equals(x)}static instanceof(x){return x.constructor.platform===q0}}we.registerNative(q0,Qt);const Kc=[["Cosmoshub","cosmos"],["Evmos","evmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","osmo"],["Sei","sei"],["Wormchain","wormhole"],["Celestia","celestia"],["Stargaze","stars"],["Dymension","dym"],["Neutron","neutron"],["Seda","seda"],["Provenance","pb"],["Noble","noble"]],Jv=we.constMap(Kc);we.constMap(Kc,[1,[0]]);const Wc=[["Mainnet",[["Cosmoshub","uatom"],["Evmos","aevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Wormchain","uworm"],["Celestia","utia"],["Dymension","adym"],["Stargaze","ustars"],["Neutron","untrn"],["Provenance","nhash"],["Noble","uusdc"]]],["Testnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Wormchain","uworm"],["Seda","aseda"]]],["Devnet",[["Cosmoshub","uatom"],["Evmos","atevmos"],["Injective","inj"],["Kujira","kuji"],["Osmosis","uosmo"],["Sei","usei"],["Wormchain","uworm"]]]];we.constMap(Wc);we.constMap(Wc,[[0,2],[1]]);const Qv=[["Mainnet",[["Wormchain",{Osmosis:"channel-3",Evmos:"channel-5",Kujira:"channel-9",Stargaze:"channel-12",Injective:"channel-13",Dymension:"channel-15"}],["Osmosis",{Wormchain:"channel-2186"}],["Evmos",{Wormchain:"channel-94"}],["Kujira",{Wormchain:"channel-113"}],["Injective",{Wormchain:"channel-183"}],["Dymension",{Wormchain:"channel-36"}],["Stargaze",{Wormchain:"channel-278"}]]],["Testnet",[["Wormchain",{Cosmoshub:"channel-5",Injective:"channel-15",Kujira:"channel-16",Stargaze:"channel-17",Osmosis:"channel-19",Dymension:"channel-18",Evmos:"channel-20"}],["Cosmoshub",{Wormchain:"channel-3086"}],["Injective",{Wormchain:"channel-76973"}],["Kujira",{Wormchain:"channel-114"}],["Osmosis",{Wormchain:"channel-7904"}],["Stargaze",{Wormchain:"channel-949"}],["Evmos",{Wormchain:"channel-240"}],["Dymension",{Wormchain:"channel-23"}]]],["Devnet",[["Wormchain",{Cosmoshub:"channel-1",Osmosis:"channel-2"}],["Cosmoshub",{Wormchain:"channel-1"}],["Osmosis",{Wormchain:"channel-1"}]]]];we.constMap(Qv);const e2=[["Mainnet",[["Injective","https://lcd.injective.network"],["Evmos","https://rest.bd.evmos.org:1317"]]],["Testnet",[["Injective","https://k8s.testnet.lcd.injective.network"],["Evmos","https://rest.bd.evmos.dev:1317"]]],["Devnet",[["Injective","https://localhost:1234"],["Evmos","https://localhost:1233"]]]];we.constMap(e2);const t2=[["Mainnet",[["Osmosis","0.025"],["Sei","0.02"],["Cosmoshub","0.025"],["Kujira","0.0051"],["Neutron","0.075"],["Celestia","0.02"],["Stargaze","1.1"],["Injective","700000000"],["Evmos","25000000000"],["Dymension","5000000000"],["Provenance","2100"],["Noble","0.1"]]]];we.constMap(t2);const jc="Cosmwasm";function Su(g){try{const x=we.bech32.decodeToBytes(g);return{data:x.bytes,prefix:x.prefix}}catch{}try{return{data:we.hex.decode(g)}}catch{}try{return{data:we.b64.decode(g)}}catch{}throw new Error(`Cannot decode: ${g}`)}class zt{static contractAddressByteSize=32;static accountAddressByteSize=20;static platform=jc;address;domain;denom;denomType;constructor(x){if(zt.instanceof(x)){const S=x;this.address=S.address,this.domain=S.domain,this.denom=S.denom,this.denomType=S.denomType;return}if(typeof x=="string"){if(x.length<=8){this.address=new Uint8Array(0),this.denom=x,this.denomType="native";return}if(x.indexOf("/")!==-1){const S=x.split("/");if(S.length>=3){const{data:c,prefix:E}=Su(S[S.length-2]);this.address=c,this.domain=E,this.denom=S[S.length-1],this.denomType=S.slice(0,S.length-2).join("/")}else{const{data:c}=Su(S[1]);this.address=c,this.denomType=S[0]}}else{if(!zt.isValidAddress(x))throw new Error(`Invalid Cosmwasm address: ${x}`);const{bytes:S,prefix:c}=we.bech32.decodeToBytes(x);this.address=S,this.domain=c}}else if(x instanceof Uint8Array)this.address=x;else if(we.UniversalAddress.instanceof(x))this.address=x.toUint8Array();else throw new Error(`Invalid Cosmwasm address ${x}`);if(!zt.validAddressLength(this.address))throw new Error("Expected 20 or 32 bytes address")}unwrap(){return this.toString()}toString(){return this.denomType!==void 0?this.denomType==="native"?this.denom:this.denomType==="ibc"?`${this.denomType.toLowerCase()}/${we.hex.encode(this.address).toUpperCase()}`:`${this.denomType}/${zt.encode(this.domain,this.address)}/${this.denom}`:zt.encode(this.domain,this.address)}toNative(){return this}toUint8Array(){return this.address}toUniversalAddress(){const x=new Uint8Array(we.UniversalAddress.byteSize);return x.set(this.address,we.UniversalAddress.byteSize-this.address.length),new we.UniversalAddress(x)}setChain(x){this.domain=Jv.get(x)}static isValidAddress(x){try{const S=we.bech32.decodeToBytes(x);return zt.validAddressLength(S.bytes)}catch{}return!1}static encode(x,S){return we.bech32.encode(x,we.bech32.toWords(S))}static validAddressLength(x){if(x.length!==zt.contractAddressByteSize&&x.length!==zt.accountAddressByteSize)throw new Error(`Invalid Cosmwasm address, expected ${zt.contractAddressByteSize} or ${zt.accountAddressByteSize} bytes but got ${x.length}`);return!0}static instanceof(x){return x.constructor.platform===zt.platform}equals(x){return zt.instanceof(x)?this.toString()===x.toString():x.equals(this.toUniversalAddress())}}we.registerNative(jc,zt);async function r2(g){try{const x=await Promise.all(g.map(async S=>S()));return await Promise.all(x.map(async S=>await i2(S))),x}catch(x){throw console.error("Failed to load required packages",x),x}}async function i2(g,x){try{let S=Object.entries(g.protocols);await Promise.all(S.map(([,c])=>c()))}catch(S){throw console.error("Failed to load required packages",S),S}}async function n2(g,x,S){const c=(await r2(x)).map(E=>E.Platform);return new we.Wormhole(g,c,S)}const a2=async()=>(await Promise.resolve().then(()=>require("./evm-qxndAh3z.js"))).default,f2=async()=>(await Promise.resolve().then(()=>require("./solana-Edd9tIkX.js"))).default,o2=async()=>(await Promise.resolve().then(()=>require("./aptos-CnswqE-C.js"))).default,s2=async()=>(await Promise.resolve().then(()=>require("./sui-BtyZE8YC.js"))).default,h2="https://api.coingecko.com",u2="https://pro-api.coingecko.com",Bu={Solana:"solana",Ethereum:"ethereum",Arbitrum:"ethereum",Optimism:"ethereum",Base:"ethereum",Scroll:"ethereum",Bsc:"binancecoin",Polygon:"matic-network",Avalanche:"avalanche-2",Fantom:"fantom",Moonbeam:"moonbeam",Klaytn:"kaia",Xlayer:"okb",Mantle:"mantle",Aptos:"aptos",Sui:"sui",Berachain:"berachain-bera",Unichain:"ethereum",Sonic:"sonic-3",Linea:"ethereum",Worldchain:"ethereum",Seievm:"sei",Mezo:"wrapped-bitcoin",Plume:"plume",Ink:"ethereum",HyperEVM:"hyperliquid",HyperCore:"usd-coin",CreditCoin:"wrapped-ctc",Monad:"monad",Fogo:"fogo"},c2={Bsc:"binance-smart-chain",Arbitrum:"arbitrum-one",Optimism:"optimistic-ethereum",Polygon:"polygon-pos",Klaytn:"klay-token",Xlayer:"x-layer",Worldchain:"world-chain",Seievm:"sei-v2",Mezo:"mezo",HyperEVM:"hyperevm",Plume:"plume-network",Ink:"ink",HyperCore:"hypercore",Monad:"monad",Fogo:"fogo"},O0=async(g,x)=>{const S=new Headers({...mt.coingecko?.apiKey?{"x-cg-pro-api-key":mt.coingecko.apiKey}:{}}),c=mt.coingecko?.customUrl?mt.coingecko.customUrl:mt.coingecko?.apiKey?u2:h2;return fetch(`${c}${g}`,{signal:x?.abort?.signal,headers:S}).then(E=>E.json()).catch(E=>(console.error("Error fetching from Coingecko",E),null))},l2=async(g,x)=>mt.network!=="Mainnet"?null:O0(`/api/v3/coins/${g.chain.toLowerCase()}/contract/${g.address.toString()}`,x),d2=async(g,x)=>{const S=new Rr;if(mt.network!=="Mainnet")return S;const c={},E=[];for(const y of g)we.isNative(y.address)?E.push(y):(c[y.chain]===void 0&&(c[y.chain]=[]),c[y.chain].push(y.address.toString()));const i=Object.keys(c).map(y=>{const m=c[y];return new Promise((h,d)=>{const p=m.join(","),v=c2[y]||y.toLowerCase();O0(`/api/v3/simple/token_price/${v}?contract_addresses=${p}&vs_currencies=usd`,x).then(w=>{w.error!==void 0||w.error_code!==void 0?d(w.error):h(Object.keys(w).map(M=>{try{const A=we.Wormhole.tokenId(y,M);return w[M]?{tokenId:A,price:w[M].usd}:null}catch(A){return console.error("Coingecko error",A),null}}).filter(M=>M!==null))}).catch(d)})});E.length>0&&i.push(new Promise((y,m)=>{const h=[];for(const d of E){const p=Bu[d.chain];p?h.push(p):console.error(`Don't know a coingecko ID for native token for chain ${d.chain}`)}O0(`/api/v3/simple/price?ids=${h.join(",")}&vs_currencies=usd`,x).then(d=>y(E.map(p=>{const v=Bu[p.chain];if(v){const{usd:w}=d[v];return{tokenId:p,price:w}}else return null}).filter(p=>!!p))).catch(m)}));const _=(await Promise.allSettled(i)).map(y=>y.status==="fulfilled"?y.value:null).filter(y=>!!y).flat();for(const{tokenId:y,price:m}of _)S.add(y,m);return S},p2=1,Fu=typeof localStorage<"u";class or{chain;addressString;_address;constructor(x,S){this.chain=x,this.addressString=S}get address(){return we.isNative(this.addressString)?this.addressString:(this._address||(this._address=we.toNative(this.chain,this.addressString)),this._address)}static fromTokenTuple(x){return new or(x[0],x[1])}}class er extends or{decimals;symbol;name;icon;tokenBridgeOriginalTokenId;coingeckoWebId;isBuiltin;isUnattested;constructor({chain:x,address:S,decimals:c,symbol:E,name:i,icon:_,tokenBridgeOriginalTokenId:y,coingeckoId:m,isUnattested:h}){super(x,S),this.decimals=c,this.symbol=E,this.name=i,this.icon=_,this.tokenBridgeOriginalTokenId=y,this.coingeckoWebId=m,this.isUnattested=h}get display(){return this.name?this.name:this.symbol!==""?this.symbol:this.shortAddress}get shortAddress(){const x=this.addressString;return`${x.substring(0,5)}...${x.substring(x.length-6)}`}get tuple(){return[this.chain,this.addressString]}get key(){return ci(this.tokenId)}get tokenId(){return{chain:this.chain,address:this.address}}get isNativeGasToken(){return we.isNative(this.address)}get isTokenBridgeWrappedToken(){return!!this.tokenBridgeOriginalTokenId}get nativeChain(){return this.tokenBridgeOriginalTokenId?.chain||this.chain}equals(x){return Zc(this,x)}toJson(){return{chain:this.chain,address:this.addressString,decimals:this.decimals,symbol:this.symbol,name:this.name??"",icon:this.icon?this.icon:"",tokenBridgeOriginalTokenId:this.tokenBridgeOriginalTokenId?Gc(this.tokenBridgeOriginalTokenId):void 0,coingeckoWebId:this.coingeckoWebId}}static fromJson({chain:x,address:S,decimals:c,symbol:E,name:i,icon:_,tokenBridgeOriginalTokenId:y,coingeckoWebId:m}){return new er({chain:x,address:S,decimals:c,symbol:E,name:i,icon:_===""?void 0:_,tokenBridgeOriginalTokenId:y?uf(y):void 0,coingeckoId:m})}}class Rr{lastUpdate;_localStorageKey;_mapping;size;constructor(){this.lastUpdate=new Date,this._mapping=new Map,this.size=0}add(x,S){this._mapping.has(x.chain)||this._mapping.set(x.chain,new Map),this._mapping.get(x.chain).set(Er(x).toLowerCase(),S),this.lastUpdate=new Date,this.size+=1}get(x,S){if(typeof x=="string"&&typeof S=="string"&&we.isChain(x))return this._mapping.get(x)?.get(S.toLowerCase());if(x instanceof or)return this._mapping.get(x.chain)?.get(x.addressString.toLowerCase());if(we.isTokenId(x))return this._mapping.get(x.chain)?.get(x.address.toString().toLowerCase());if(hf(x))return this._mapping.get(x[0])?.get(x[1].toLowerCase());{const c=Vc(x);return this._mapping.get(c.chain)?.get(Er(c).toLowerCase())}}mustGet(x,S){const c=this.get(x,S);if(!c)throw new Error("Failed to get token");return c}getList(x){return x.map(S=>this.get(S)).filter(S=>S!==void 0)}getAllForChain(x){const S=this._mapping.get(x);return S?Array.from(S.values()):[]}getAll(){return Array.from(this._mapping.values()).flatMap(x=>Array.from(x.values()))}get chains(){return Array.from(this._mapping.keys())}merge(x){x.forEach(this.add)}clear(){this.lastUpdate=new Date,this._mapping=new Map,this.size=0}forEach(x){this._mapping.forEach((S,c)=>{S.forEach((E,i)=>{const _=new or(c,i);x(_,E)})})}get empty(){return this.size===0}clone(){const x=new Rr;return this.forEach((S,c)=>{x.add(S,c)}),x}}class ri extends Rr{add(x){if(x.tokenBridgeOriginalTokenId){const S=this.get(x.tokenBridgeOriginalTokenId);S&&(x.icon=S.icon,x.name=S.name,x.symbol=S.symbol)}super.add(x,x)}getGasToken(x){return x==="Celo"?this.findBySymbol("Celo","CELO"):x==="XRPLEVM"?this.findBySymbol("XRPLEVM","XRP"):this.get(x,"native")}findByAddressOrSymbol(x,S){const c=this.get(x,S);if(c)return c;const E=this.findBySymbol(x,S);if(E)return E}queryBySymbol(x,S){return this.getAllForChain(x).filter(c=>c.symbol.toLowerCase().startsWith(S.toLowerCase())||c.name?.toLowerCase().startsWith(S.toLowerCase()))}findBySymbol(x,S){const c=mt.ui?.tokenNameOverrides?.[x],E=S.toLowerCase();let i=this.getAllForChain(x).filter(_=>{const y=E===_.symbol.toLowerCase(),m=E===c?.[_.address.toString()]?.toLowerCase();return y||m});if(i.length>1&&(i=i.filter(_=>!_.isTokenBridgeWrappedToken)),i.length===1)return i[0];if(i.length>1){const _=i.find(y=>y.address==="native");if(_)return _;console.error(`Ambiguous token symbol: ${S}`)}}setLocalStorageKey(x){this._localStorageKey=x}async addFromTokenId(x){if(x.chain==="Sui"&&!ze.isValidSuiType(x.address.toString()))throw new Error(`Not a valid Sui token address: ${x.address.toString()}`);if(we.isUnattestedTokenId(x)){const w=this.get(x.originalTokenId);console.debug(`Token ${x} is unattested`);const M=new er({chain:x.chain,address:we.canonicalAddress(x),decimals:x.decimals,symbol:w?.symbol||"",name:w?.name,icon:w?.icon,isUnattested:!0});return this.add(M),M}const S=await ur(),c=S.getChain(x.chain),E=await c.getDecimals(x.address);let i={};try{i=await l2(x)||{}}catch(w){console.error("Error fetching token metadata:",w)}let _=i?.symbol?.toUpperCase()||"",y=i?.name||"",m=i?.image?.large||null;const h=i?.web_slug;if(!_){const{getTokenMetadataFromRpc:w}=await Promise.resolve().then(()=>require("./tokens-mXZqt-qL.js")),M=await w(x);M&&(console.info("Got metadata from RPC",M),_=M.symbol,y=M.name,m=M.icon)}let d,p;try{p=await c.getTokenBridge()}catch{}if(p&&await p.isWrappedAsset(x.address)&&(d=await p.getOriginalAsset(x.address),we.UniversalAddress.instanceof(d.address)&&(d.address=await S.getTokenNativeAddress(d.chain,d.chain,d.address)),d)){const w=this.get(d);w&&w.icon&&(m=w.icon,_=w.symbol)}if(!d&&(!_||!m))try{const w=mt.routes.get("MonadBridgeExecutorRoute");if(w?.isSupportedChain(x.chain)){const M=new w.rc(S);if(M instanceof Sl.MultiTokenNttExecutorRoute&&await M.isWrappedToken(x)){const A=await M.getOriginalToken(x),B=this.get(A);B&&(m=m??B.icon,_=_??B.symbol)}}}catch{}const v=new er({chain:x.chain,address:we.canonicalAddress(x),decimals:E,symbol:_,name:y,icon:m,tokenBridgeOriginalTokenId:d,coingeckoId:h});return this.add(v),v}persist(){if(Fu&&this._localStorageKey){const x={version:p2,tokens:{}};this.forEach((c,E)=>{E.isUnattested||(x.tokens[ci(c)]=E.toJson())});const S=JSON.stringify(x);localStorage.setItem(this._localStorageKey,S)}}static load(x){if(Fu){const c=localStorage.getItem(x);if(c)try{const E=JSON.parse(c),i=new ri;i.setLocalStorageKey(x);for(const[,_]of Object.entries(E.tokens)){const y=er.fromJson(_);i.add(y)}return i}catch(E){console.error("Error parsing cached TokenCache",E)}}const S=new ri;return S.setLocalStorageKey(x),S}}function v2(g,x,S){const c=ri.load(S);for(const{tokenId:E,symbol:i,name:_,icon:y,decimals:m}of g){const h=new er({chain:E.chain,address:E.address.toString(),decimals:m,symbol:i,name:_,icon:y});h.isBuiltin=!0,c.add(h)}for(const E in x)for(const i in x[E]){const _=x[E][i];for(const y in _){const m=c.get(E,i);if(m){const h=_[y];let d=we.chainToPlatform(y)==="Evm"?18:8;d=Math.min(d,m.decimals);const p=new er({chain:y,address:h,decimals:d,symbol:m.symbol,name:m.name,icon:m.icon,tokenBridgeOriginalTokenId:m});p.isBuiltin=!0,c.add(p)}}}return c.persist(),c}function hf(g){return Array.isArray(g)&&g.length==2&&we.isChain(g[0])}function Gc(g){return[g.chain,Er(g)]}function uf(g){return or.fromTokenTuple(g)}function ci(g,x){return JSON.stringify(typeof g=="string"?[g,x]:Gc(g))}function Vc(g){const x=JSON.parse(g);if(hf(x))return uf(x);throw new Error(`Invalid token key "${g}"; couldn't parse`)}function Er(g){return g instanceof or?g.addressString:g.address.toString()}function Zc(g,x){return g.chain===x.chain&&g.addressString===x.addressString}const Xc="insufficient_allowance",b2="swap_failed",m2="source_contract_paused",y2="destination_contract_paused",g2="unsupported_abi_version",U0="insufficient_gas",Yc="insufficient_funds",Jc="amount_too_large",Qc="amount_too_small",el="user_rejected",tl="user_timeout",rl="unknown",il="relay_failed",nl="slippage_exceeded";var al=(g=>(g.SelectSrcToken="select.src.token",g.SelectSrcChain="select.src.chain",g.SelectDestToken="select.dest.token",g.SelectDestChain="select.dest.chain",g))(al||{});const fl={Mainnet:{Arbitrum:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",Avalanche:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",Base:"0x4200000000000000000000000000000000000006",Bsc:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",Celo:"0x0000000000000000000000000000000000000000",Ethereum:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",Fantom:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",Klaytn:"0xe4f05A66Ec68B54A58B17c22107b02e0232cC817",Moonbeam:"0xAcc15dC74880C9944775448304B263D191c6077F",Optimism:"0x4200000000000000000000000000000000000006",Polygon:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",Mantle:"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",Scroll:"0x5300000000000000000000000000000000000004",Berachain:"0x6969696969696969696969696969696969696969",Unichain:"0x4200000000000000000000000000000000000006",Worldchain:"0x4200000000000000000000000000000000000006",Ink:"0x4200000000000000000000000000000000000006",Sonic:"0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38",Monad:"0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A"},Testnet:{Avalanche:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",Bsc:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",Fantom:"0xf1277d1Ed8AD466beddF92ef448A132661956621",Klaytn:"0x0339d5Eb6D195Ba90B13ed1BCeAa97EbD198b106",Moonbeam:"0xD909178CC99d318e4D46e7E66a972955859670E1",Sepolia:"0xeef12A83EE5b7161D3873317c8E0E7B76e0B5D9c",ArbitrumSepolia:"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73",BaseSepolia:"0x4200000000000000000000000000000000000006",OptimismSepolia:"0x4200000000000000000000000000000000000006",PolygonSepolia:"0x0000000000000000000000000000000000000000",Scroll:"0x5300000000000000000000000000000000000004",Linea:"0x0000000000000000000000000000000000000000",Berachain:"0x6969696969696969696969696969696969696969",Seievm:"0x3921eA6Cf927BE80211Bb57f19830700285b0AdA",Unichain:"0x4200000000000000000000000000000000000006",Worldchain:"0x4200000000000000000000000000000000000006",Ink:"0x4200000000000000000000000000000000000006",Monad:"0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701",Mezo:"0x0000000000000000000000000000000000000000",Sonic:"0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38"},Devnet:{}},x2="So11111111111111111111111111111111111111112";function cf(g,x){const S=we.chainToPlatform(x);if(S==="Evm")return fl[g]?.[x];if(S==="Solana")return x2;if(S==="Aptos")return"0x1::aptos_coin::AptosCoin";if(S==="Sui")return"0x2::sui::SUI"}function ol(g,x,S){if(!g)return!1;const c=g.address.toString(),E=S.address.toString();if(E===c)return!0;if(x){const i=we.isNative(g.address),_=c.toLowerCase()===x,y=E.toLowerCase()===x,m=we.isNative(S.address);if(i&&y||_&&m)return!0}return!1}function w2(g){return g.length===22?g:`0x${g.slice(g.length-40,g.length)}`}function ei(g,x=6){return g.slice(0,x)+"..."+g.slice(g.length-4,g.length)}function M2(g,x=6,S=4){const c=g.slice(0,x),E=g.slice(g.length-S,g.length);return`${c}...${E}`}function _2(g,x){return g?g==="Evm"?ei(w2(x)):g==="Solana"?ei(x,4):ei(x):""}function sl(g){const x=mt.tokens.getGasToken(g);if(!x)throw new Error(`gas token not found for ${g}`);return x}function hl(g){const x=mt.ui?.tokenNameOverrides?.[g.chain];if(!x)return g.display;const S=g.addressString.toLowerCase();for(const[c,E]of Object.entries(x))if(c.toLowerCase()===S)return E;return g.display}function ul(g){const x=mt.chains[g];return x?x.displayName:g}function Cu(g){const x=document.createElement("textarea");x.value=g,x.style.top="0",x.style.left="0",x.style.position="fixed",document.body.appendChild(x),x.focus(),x.select();try{return document.execCommand("copy"),!0}catch{return!1}finally{document.body.removeChild(x)}}function E2(g){return navigator.clipboard&&navigator.clipboard.writeText(g).then(function(){return!0},function(){return Cu(g)}),Cu(g)}function A2(g){return g.startsWith("0x")?g:`0x${g}`}function S2(g,x){return g==="Sui"?ze.isValidTransactionDigest(x):g==="Sei"?we.isHexString(A2(x),32):x.startsWith("0x")&&x.length===66?!0:x.length>70&&x.length<100}function B2(g){const x=df.useRef(void 0);return df.useEffect(()=>{x.current=g}),x.current}async function cl(g){return new Promise(x=>setTimeout(x,g))}const ll=g=>typeof g>"u"?"":g===0?"$0":g>0&&g<.01?"<$0.01":Intl.NumberFormat("en-EN",{style:"currency",currency:"USD"}).format(g),dl=(g,x,S)=>{if(typeof x>"u"||!S)return;const c=typeof g=="function"?g(S):g;if(c)return typeof x=="number"?x*c:we.whole(x)*c},F2=(g,x,S)=>ll(dl(g,x,S)),C2=g=>{if(g==null)return!0;for(const x in g)if(g.hasOwnProperty.call(g,x))return!1;return!0},fr=(g,x)=>{const S=new URL(g),c=S.pathname.replace(/\/+$/,""),E=x.replace(/^\/+/,"");return S.pathname=`${c}/${E}`,S.toString()},D2=(g,x)=>{const S=mt.chains[g];if(!S?.explorerUrl)return;const c=S.explorerUrl;switch(g){case"Sui":return fr(c,`coin/${x}`);case"Aptos":return fr(c,`${we.isHexString(x)?"fungible_asset":"coin"}/${x}`);case"Fantom":case"Solana":case"Fogo":return`${c}address/${x}`;default:return fr(c,`token/${x}`)}},R2=(g,x)=>{const S=mt.chains[g];if(!S?.explorerUrl)return;const c=S.explorerUrl;return g==="Aptos"?fr(c,`txn/${x}`):fr(c,`tx/${x}`)},T2=(g,x)=>{const S=mt.chains[g];if(!S?.explorerUrl)return;const c=S.explorerUrl;return g==="Aptos"?fr(c,`account/${x}`):fr(c,`address/${x}`)},pl=(g,x)=>{if(!g.isTokenBridgeWrappedToken)return!1;const{nativeChain:S,symbol:c}=g;if(c==="USDC"||g.symbol==="tBTC"||g.symbol==="WMON"&&x==="Solana")return!0;const{tokenBridgeOriginalTokenId:E}=g;if(E){const i=["Ethereum","Sepolia"];if(x==="Monad"&&i.includes(E.chain)||i.includes(x)&&E.chain==="Monad"){if(E.address==="native")return!0;const y=cf(mt.network,E.chain);return!!y&&we.isSameToken(E,we.Wormhole.tokenId(E.chain,y))}}return S!=="Ethereum"&&["ETH","WETH","wstETH","USDT","USDC","USDC.e"].includes(c)},I2=g=>g>=2*6e4?`${Math.ceil(g/6e4)} min`:`${Math.ceil(g/1e3)} sec`,k2=g=>{if(g>864e5){const E=Math.floor(g/864e5);return`${E} ${E===1?"day":"days"} ago`}else if(g>36e5){const E=Math.floor(g/36e5);return`${E} ${E===1?"hour":"hours"} ago`}else if(g>6e4){const E=Math.floor(g/6e4);return`${E} ${E===1?"minute":"minutes"} ago`}else return"1 minute ago"},N2=g=>{if(g<60)return g===1?`${g} second`:`${g} seconds`;if(g<3600){const x=Math.floor(g/60);return x===1?`${x} minute`:`${x} minutes`}else{const x=Math.floor(g/3600);return x===1?`${x} hour`:`${x} hours`}},vl=g=>g?g.endsWith("ExecutorRoute"):!1,P2=g=>JSON.stringify(g,(x,S)=>typeof S=="bigint"?S.toString():S),q2=/insufficient token allowance/im,O2=/insufficient lamports.*?(\d+).*?(\d+)/im,U2=/simulation failed:.*accountnotfound/i,L2=new RegExp("user rejected|rejected the request|rejected from user|user cancel|aborted by user|plugin closed|denied request signature|user denied|action_rejected|ethers-user-denied|approval denied","mi"),H2=new RegExp("AmountInTooSmall","m"),z2=/Simulation failed:.*InstructionError.*Custom.*6001/,$2=/insufficient.*(gas|fee|lamports|rent|intrinsic|settlement)/gi,K2=/insufficient (funds|balance)/gi,Du="Insufficient gas for this transfer. Please add more gas and try again",W2="Insufficient funds for this transfer. Please add more funds and try again";function Jt(g,x){return x.test(g?.message)||x.test(g?.info?.error?.message)||x.test(g?.info?.error?.data?.message)}function j2(g,x){let S="Error with transfer, please try again",c=rl;if(g.message){if(g instanceof we.RelayFailedError)S=g.message,c=il;else if(x.route.includes("MayanSwapMONOCHAIN")&&Jt(g,z2))S="Slippage exceeded. Please try again",c=nl;else if(Jt(g,q2))S="Error with transfer, please try again",c=Xc;else if(g.name==="TransactionExpiredTimeoutError"||g.name==="TransactionExpiredBlockheightExceededError")S="Transfer timed out, please try again",c=tl;else if(Jt(g,$2))S=Du,c=U0;else if(Jt(g,K2))S=W2,c=Yc;else if(Jt(g,L2))S="Wallet request declined. Transfer not started.",c=el;else if(Jt(g,H2))S="Amount is too small for the selected route",c=Qc;else if(x.route.includes("CCTP")&&/burn.*exceed/i.test(g?.toString())){const{amount:i}=x;S=`Amount exceeds Circle limit${i!==void 0&&we.whole(i)>1e6?" of 10,000,000":""}. Please reduce transfer amount.`,c=Jc}else if(Jt(g,U2)||Jt(g,O2)){const E=x.fromChain;try{const i=sl(E),_=hl(i),y=ul(E),m=y?` on ${y}`:"";S=`Insufficient ${_} for fees${m}. Please add more ${_} and try again`}catch{S=Du}c=U0}}return[S,{type:c,original:g}]}function bl(g,x){g instanceof Error&&g.message.startsWith("No protocols registered for")||console.error(x?`${x}: ${g}`:g)}var jr={exports:{}},Ru;function G2(){if(Ru)return jr.exports;Ru=1;function g(p,v){var w=v&&v.cache?v.cache:d,M=v&&v.serializer?v.serializer:m,A=v&&v.strategy?v.strategy:i;return A(p,{cache:w,serializer:M})}function x(p){return p==null||typeof p=="number"||typeof p=="boolean"}function S(p,v,w,M){var A=x(M)?M:w(M),B=v.get(A);return typeof B>"u"&&(B=p.call(this,M),v.set(A,B)),B}function c(p,v,w){var M=Array.prototype.slice.call(arguments,3),A=w(M),B=v.get(A);return typeof B>"u"&&(B=p.apply(this,M),v.set(A,B)),B}function E(p,v,w,M,A){return w.bind(v,p,M,A)}function i(p,v){var w=p.length===1?S:c;return E(p,this,w,v.cache.create(),v.serializer)}function _(p,v){var w=c;return E(p,this,w,v.cache.create(),v.serializer)}function y(p,v){var w=S;return E(p,this,w,v.cache.create(),v.serializer)}function m(){return JSON.stringify(arguments)}function h(){this.cache=Object.create(null)}h.prototype.has=function(p){return p in this.cache},h.prototype.get=function(p){return this.cache[p]},h.prototype.set=function(p,v){this.cache[p]=v};var d={create:function(){return new h}};return jr.exports=g,jr.exports.strategies={variadic:_,monadic:y},jr.exports}var V2=G2();const ml=ze.getDefaultExportFromCjs(V2);class Z2{constructor(x){this.TTLms=x}cache=new Map;pendingRequests=new Map;async requestWithCache(x,S){const c=Date.now(),E=this.cache.get(x);if(E&&c-E.timestamp<this.TTLms){if(console.debug("[Cache Debug] Cache HIT - using cached value"),E.isError)throw E.value;return E.value}let i=this.pendingRequests.get(x);return i?console.debug("[Cache Debug] Cache MISS - using pending request"):(console.debug("[Cache Debug] Cache MISS - initiating new request"),i=S().then(_=>(this.cache.set(x,{value:_,timestamp:Date.now(),isError:!1}),this.pendingRequests.delete(x),_)).catch(_=>{throw console.debug("[Cache Debug] Cache ERROR - storing error"),this.cache.set(x,{value:_,timestamp:Date.now(),isError:!0}),this.pendingRequests.delete(x),_}),this.pendingRequests.set(x,i)),i}}const yl=["ManualNtt","AutomaticNtt","M0AutomaticRoute","NttExecutorRoute"],gl=g=>{const x=mt.routes.get(g);if(!x)return;const S=x.rc.config;if(S)return g==="NttExecutorRoute"?S.ntt?.tokens:S.tokens},xl=g=>{const x=Er(g);for(const S of yl){const c=gl(S);if(c)for(const E in c){const i=c[E];if(!i)continue;if(i.some(y=>y.chain===g.chain&&y.token===x))return!0}}return!1},X2=g=>{const x=[],S=Er(g);for(const c of yl){const E=gl(c);if(E)for(const i in E){const _=E[i];if(!_)continue;if(_.some(m=>m.chain===g.chain&&m.token===S)){for(const m of _)if(m.chain!==g.chain||m.token!==S){const h=mt.tokens.get(m.chain,m.token);h&&x.push(h)}return x}}}return x};class wl{constructor(x){this.rc=x,this.IS_TOKEN_BRIDGE_ROUTE=["ManualTokenBridge","AutomaticTokenBridge","TokenBridgeExecutorRoute"].includes(x.meta.name),this.IS_MONAD_BRIDGE_ROUTE=["MonadBridgeManualRoute","MonadBridgeExecutorRoute"].includes(x.meta.name)}IS_TOKEN_BRIDGE_ROUTE=!1;IS_MONAD_BRIDGE_ROUTE=!1;tokenCache=new Z2(1440*60*1e3);get AUTOMATIC_DEPOSIT(){return this.rc.IS_AUTOMATIC}get NATIVE_GAS_DROPOFF_SUPPORTED(){return this.rc.NATIVE_GAS_DROPOFF_SUPPORTED}async getV2ChainContext(x){const c=(await ur()).getPlatform(we.chainToPlatform(x)).getChain(x);return{chain:x,context:c}}async isRouteSupported(x,S,c,E){if(c===E&&!this.rc.supportsSameChainSwaps?.(mt.network,c))return!1;const _=await this.getV2ChainContext(c),y=await this.getV2ChainContext(E),m=this.rc.supportedChains(mt.network),h=m.includes(_.chain),d=m.includes(y.chain);if(!h||!d)return!1;try{return!!(await this.supportedDestTokens(x,c,E)).find(v=>we.isSameToken(v,S))}catch(p){return console.error("Error checking route support:",p),!1}}isSupportedChain(x){return this.rc.supportedChains(mt.network).includes(x)}async supportedDestTokens(x,S,c){if(!S||!c||!x)return[];const E=await this.getV2ChainContext(S),i=await this.getV2ChainContext(c);if(await this.isIlliquidDestToken(x,c))return[];const y=S===c,m=`supportedDestTokens-${x.address}-${S}-${c}`,h=async()=>{try{return await this.rc.supportedDestinationTokens(x.tokenId,E.context,i.context)}catch{return[]}},d=await this.tokenCache.requestWithCache(m,h),p=y?cf(mt.network,i.chain)?.toLowerCase():void 0;return d.filter(w=>{const M=mt.tokens.get(w);return M&&pl(M,i.chain)?!1:y?!ol(x,p,w):!0})}async getQuote(x,S,c,E,i,_,y,m){if(!E||!i||!S||!c)throw new Error("Malformed quote request");const h=await this.createRequest(S,c,E,i,y,m),d=await this.createRouteInstance(),p=await d.validate(h,{amount:we.display(x),options:_});if(!p.valid)throw p.error;const v=await d.quote(h,p.params);return{routeInstance:d,quote:v,request:h}}async createRouteInstance(){const x=await ur();return new this.rc(x)}async createRequest(x,S,c,E,i,_){const y=(await this.getV2ChainContext(c)).context,m=(await this.getV2ChainContext(E)).context,h=await ur();return await hr.RouteTransferRequest.create(h,{source:x.tokenId,destination:S.tokenId,sender:i?we.Wormhole.chainAddress(c,i):void 0,recipient:_?we.Wormhole.chainAddress(E,_):void 0,sourceDecimals:x.decimals,destinationDecimals:S.decimals},y,m)}async send(x,S,c,E){const{quote:i,routeInstance:_,request:y}=x;if(!i.success)throw i.error;let m=await _.initiate(y,S,i,we.Wormhole.chainAddress(c,E));if(m.state===we.TransferState.SourceInitiated||m.state===we.TransferState.SourceFinalized)return[_,m];let h=0;const d=5,p=1e3;for(;h<d;)try{for await(m of _.track(m,120*1e3))if(m.state>=we.TransferState.SourceInitiated)return[_,m]}catch(v){console.error(`Error tracking transfer (attempt ${h+1} / ${d}):`,v);const w=p*Math.pow(2,h);await cl(w),h++}throw new Error("Never got a SourceInitiated state in receipt")}async resumeIfManual(x){const S=await ur(),c=new this.rc(S);return we.isManual(c)||we.isFinalizable(c)?c.resume(x):null}async isIlliquidDestToken(x,S){if(this.IS_MONAD_BRIDGE_ROUTE&&x?.isTokenBridgeWrappedToken)return!0;if(this.IS_TOKEN_BRIDGE_ROUTE){if(xl(x))return!0;const{symbol:E,nativeChain:i}=x;if(["ETH","WETH"].includes(E)&&i==="Ethereum"&&["Scroll","Xlayer","Mantle","Unichain"].includes(S))return!0}return!1}}function Y2(g,x,S=6){if(x<=S)return g;const c=10n**BigInt(x-S),E=g%c;return g-E}function Tu(g,x,S){let c=we.units(g)*x/(S-x);return c=Y2(c,g.decimals),we.fromBaseUnits(c,g.decimals)}function Ml(g,x,S,c){if(!S||!x||!g||we.units(x)===0n||S.chain===c?.chain)return;let i;if(typeof g=="string"){if(i=mt.routes.get(g),!i)return}else if(g instanceof wl)i=g;else return;if(i.rc.meta.name.startsWith("MayanSwap")){const m=i.rc;if(m.getReferrerBps&&S&&c){const h={source:{id:S.tokenId||{chain:S.chain,address:S.address},symbol:S.symbol,decimals:S.decimals},destination:{id:c.tokenId||{chain:c.chain,address:c.address},symbol:c.symbol,decimals:c.decimals}},d=m.getReferrerBps(h);if(d>0)return Tu(x,BigInt(d),10000n)}return}const _=i.rc.config;if(!_)return;let y=0n;if(vl(i.rc.meta.name)){if(_.referrerFeeDbps!==void 0)y=_.referrerFeeDbps;else if(_.referrerFee?.feeDbps!==void 0)if(_.referrerFee.perTokenOverrides!==void 0&&S){const m=_.referrerFee.perTokenOverrides[S.chain]?.[S.addressString];m?.referrerFeeDbps!==void 0?y=m.referrerFeeDbps:y=_.referrerFee.feeDbps}else y=_.referrerFee.feeDbps;else if(_.referrerFee?.referrerFeeDbps!==void 0)if(_.referrerFee.tokenFeeOverrides&&S){const m=_.referrerFee.tokenFeeOverrides[mt.network]?.[S.chain]?.[S.addressString];m!==void 0?y=m:y=_.referrerFee.referrerFeeDbps}else y=_.referrerFee.referrerFeeDbps}if(y!==0n)return Tu(x,y,100000n)}const J2=(g,x)=>{let S={name:"",eta:1/0},c={name:"",amountOut:0n};for(const E of g){const i=x[E];if(!i||!i.success)continue;if(i.eta!==void 0&&i.eta<S.eta&&(S={name:E,eta:i.eta}),mt.routes.get(E)?.AUTOMATIC_DEPOSIT){const y=BigInt(i.destinationToken.amount.amount);y>c.amountOut&&(c={name:E,amountOut:y})}}return{fastestRoute:S,cheapestRoute:c}};function _l(g){return new Date(g+3e4)}function Q2(g){const x=Date.now();return g instanceof Date&&g.getTime()>x+5e3?g:_l(x)}const El=[hr.AutomaticCCTPRoute,hr.CCTPRoute,hr.AutomaticTokenBridgeRoute,hr.TokenBridgeRoute,hr.TBTCRoute];class e6{preference;routes;quoteMetadataCache;constructor(x=El){const S={},c=[];for(const E of x){const i=E.meta.name;if(i==="")throw new Error("Route has empty meta.name");if(i in S)throw new Error(`Route has duplicate meta.name: ${i}`);c.push(i),S[i]=new wl(E)}this.routes=S,this.preference=c,this.quoteMetadataCache=new t6}get(x){return this.routes[x]}async forEach(x){return Promise.all(this.preference.map(S=>x(S,this.routes[S])))}async resumeFromTx(x){return new Promise((S,c)=>{const E=Object.keys(this.routes).length;let i=0;this.forEach((_,y)=>{y.resumeIfManual(x).then(m=>{m!==null?S({route:_,receipt:m}):i+=1}).catch(m=>{i+=1}).finally(()=>{i===E&&S(null)})})})}allSupportedChains(){const x=new Set;for(const S of this.preference)this.routes[S].rc.supportedChains(mt.network).forEach(i=>x.add(i));return Array.from(x)}async allSupportedDestTokens(x,S,c){const E=new Map;return await this.forEach(async(i,_)=>{try{const y=await _.supportedDestTokens(x,S,c);for(const m of y){const h=ci(m);we.isUnattestedTokenId(m)?E.set(h,m):E.set(h,Vc(h))}}catch(y){bl(y)}}),[...E.values()]}async getQuotes(x,S){const c=await Promise.allSettled(x.map(i=>{const _=this.quoteMetadataCache.get(i,S);return _?.quote?_.quote:this.quoteMetadataCache.fetchQuote(i,S,this.get(i))})),E={};for(let i=0;i<x.length;i++){const _=x[i],y=c[i];y.status==="rejected"?E[_]={success:!1,error:y.reason}:E[_]=y.value}return E}isSameChainSwapSupported=ml(x=>Object.values(this.routes).some(c=>{const{supportsSameChainSwaps:E,supportedChains:i}=c.rc;return typeof E=="function"&&E(mt.network,x)&&i(mt.network).includes(x)}));async execute(x,S,c,E,i,_,y,m,h,d){const p=this.get(x),v={amount:c,sourceChain:E,sourceToken:S,destChain:_,destToken:h,nativeGas:d.nativeGas,sender:y,recipient:m};let w=this.quoteMetadataCache.get(x,v);return w||(w=await p.getQuote(c,S,h,E,_,d,y,m)),p.send(w,i,_,m)}}class t6{cache;pending;constructor(){this.cache={},this.pending={}}quoteParamsKey(x,S){return`${x}:${S.sourceChain}:${S.sourceToken.address.toString()}:${S.destChain}:${S.destToken.address.toString()}:${we.units(S.amount)}:${S.nativeGas}:${S.recipient}:${S.sender}`}get(x,S){const c=this.quoteParamsKey(x,S),E=this.cache[c],i=E?.ttl()<=5e3;return!E||i?(delete this.cache[c],null):{quote:E.quote,request:E.request,routeInstance:E.routeInstance}}async fetchQuote(x,S,c){console.debug("Fetching quote using",x,S);const E=this.quoteParamsKey(x,S),i=this.pending[E];if(i)return new Promise((y,m)=>{i.push({resolve:y,reject:m})});let _=S.amount;if(mt.ui?.experimental?.feeOffsetting){const y=Ml(c,S.amount,S.sourceToken,S.destToken);y&&we.units(y)>0n&&(_=we.fromBaseUnits(we.units(S.amount)+we.units(y),S.amount.decimals))}return c.getQuote(_,S.sourceToken,S.destToken,S.sourceChain,S.destChain,{nativeGas:S.nativeGas},S.sender,S.recipient).then(({routeInstance:y,quote:m,request:h})=>{console.debug("\x1B[32mSuccessfully fetched quote using",x,m);const d=this.pending[E];for(const{resolve:p}of d)p(m);delete this.pending[E],m.success&&(m.expires=Q2(m.expires)),this.cache[E]=new Iu(m,y,h)}).catch(y=>{console.debug("\x1B[31mFailed to fetch quote using",x,y);const m=this.pending[E];for(const{reject:h}of m)h(y);delete this.pending[E],this.cache[E]=new Iu({success:!1,error:y},{},{})}),new Promise((y,m)=>{this.pending[E]=[{resolve:y,reject:m}]})}nextExpiry(x,S){const c=x.map(E=>{const i=this.quoteParamsKey(E,S);if(this.cache[i])return this.cache[i].expires()}).filter(E=>E!==void 0).sort((E,i)=>E.valueOf()-i.valueOf());if(c.length>0)return c[0]}}class Iu{quote;timestamp;routeInstance;request;constructor(x,S,c){this.quote=x,this.routeInstance=S,this.request=c,this.timestamp=new Date}expires(){return this.quote.success?this.quote.expires??_l(this.timestamp.getTime()):new Date(this.timestamp.getTime()+12e4)}ttl(){return this.expires().getTime()-Date.now()}}function lf(g={}){const x=kl(g.network||void 0||"Mainnet");if(!["Mainnet","Testnet","Devnet"].includes(x))throw new Error(`Invalid env "${x}": Use "Testnet", "Devnet", or "Mainnet"`);const S={MAINNET:ku,DEVNET:t1,TESTNET:Nu}[x.toUpperCase()],c=Tl(S.wrappedTokens,g.wrappedTokens),E=h=>g.cacheNamespace?`wormhole-connect:${g.cacheNamespace}:${h}`:`wormhole-connect:${h}`,i=v2([...S.tokens,...g.tokensConfig?Object.values(g.tokensConfig):[]],c,E(`token-cache:${x}`)),_=Dl[x.toUpperCase()],y=Object.assign({},_.rpcs,S.rpcs,g.rpcs);g.ui?.defaultInputs&&Il(g.ui.defaultInputs,S.chains,i);const m=k0(g.ui??{});return g.tokens&&g.tokens.length>0&&m.disableUserInputtedTokens===void 0&&(m.disableUserInputtedTokens=!0),{sdkConfig:_,network:x,isMainnet:x==="Mainnet",rpcs:y,evmIndexers:g.evmIndexers,mayanApi:"https://explorer-api.mayan.finance",lifiExplorerUrl:"https://li.quest",wormholeApi:{Mainnet:"https://api.wormholescan.io/",Testnet:"https://api.testnet.wormholescan.io/",Devnet:""}[x],wormholeRpcHosts:{Mainnet:["https://wormhole-v2-mainnet-api.mcf.rocks","https://wormhole-v2-mainnet-api.chainlayer.network","https://wormhole-v2-mainnet-api.staking.fund"],Testnet:["https://guardian.testnet.xlabs.xyz","https://guardian-01.testnet.xlabs.xyz","https://guardian-02.testnet.xlabs.xyz"],Devnet:["http://localhost:7071"]}[x],coingecko:g.coingecko,triggerEvent:r1(x,g.eventHandler),validateTransfer:g.validateTransferHandler,isChainSupportedHandler:g.isChainSupportedHandler,isRouteSupportedHandler:g.isRouteSupportedHandler,isTokenSupportedHandler:g.isTokenSupportedHandler,filterRoutes:g.filterRoutes,chains:S.chains,chainsArr:Object.values(S.chains).filter(h=>g.chains?g.chains.includes(h.sdkName):!0).sort((h,d)=>{const p=ti.CHAIN_ORDER.indexOf(h.sdkName),v=ti.CHAIN_ORDER.indexOf(d.sdkName);return p>=0&&v>=0?p-v:p===-1?1:v===-1?-1:0}),tokens:i,tokenWhitelist:g.tokens,routes:new e6(g.routes),ui:k0({...g.ui}),cacheKey:E,guardianSet:S.guardianSet,transactionSettings:g?.transactionSettings||{}}}const mt=lf();async function ur(){return mt._v2Wormhole||(mt._v2Wormhole=await r6()),mt._v2Wormhole}async function Al(){delete mt._v2Wormhole}async function r6(){const g={chains:{}};for(const x in mt.chains){const S=x,c=mt.rpcs[S],E={};for(const i of mt.tokens.getAllForChain(S)){const _={key:i.key,chain:S,symbol:i.symbol,address:i.address.toString(),decimals:i.decimals};E[i.address.toString()]=_}g.chains[S]={rpc:c,tokenMap:E}}return await n2(mt.network,[a2,f2,o2,s2],g)}function i6(g={}){const x=lf(g);Al();for(const S in x)mt[S]=x[S];typeof window<"u"&&(window._connectConfig=mt)}exports.DEFAULT_ROUTES=El;exports.ERR_AMOUNT_TOO_LARGE=Jc;exports.ERR_AMOUNT_TOO_SMALL=Qc;exports.ERR_DESTINATION_CONTRACT_PAUSED=y2;exports.ERR_INSUFFICIENT_ALLOWANCE=Xc;exports.ERR_INSUFFICIENT_FUNDS=Yc;exports.ERR_INSUFFICIENT_GAS=U0;exports.ERR_NOT_ENOUGH_CAPACITY=b2;exports.ERR_RELAY_FAILED=il;exports.ERR_SLIPPAGE_EXCEEDED=nl;exports.ERR_SOURCE_CONTRACT_PAUSED=m2;exports.ERR_TIMEOUT=tl;exports.ERR_UNKNOWN=rl;exports.ERR_UNSUPPORTED_ABI_VERSION=g2;exports.ERR_USER_REJECTED=el;exports.MAINNET=ku;exports.TESTNET=Nu;exports.Token=er;exports.TokenIcon=ye;exports.TokenMapping=Rr;exports.UserActions=al;exports.WETH_CONTRACTS=fl;exports.buildConfig=lf;exports.calculateFeeOffset=Ml;exports.calculateUSDPrice=F2;exports.calculateUSDPriceRaw=dl;exports.chainDisplayName=ul;exports.clearWormholeContextV2=Al;exports.config=mt;exports.copyTextToClipboard=E2;exports.displayWalletAddress=_2;exports.fetchTokenPrices=d2;exports.formatDuration=N2;exports.getBestRoutes=J2;exports.getGasToken=sl;exports.getNttTokenGroup=X2;exports.getTokenDisplaySymbolByTokenAddress=hl;exports.getTokenExplorerUrl=D2;exports.getTransactionExplorerUrl=R2;exports.getUSDFormat=ll;exports.getWalletExplorerUrl=T2;exports.getWormholeContextV2=ur;exports.getWrappedNativeToken=cf;exports.interpretTransferError=j2;exports.isEmptyObject=C2;exports.isExecutorRoute=vl;exports.isFrankensteinToken=pl;exports.isNttToken=xl;exports.isSameToken=Zc;exports.isTokenTuple=hf;exports.isValidTxId=S2;exports.maybeLogSdkError=bl;exports.memoize=ml;exports.millisToHumanString=I2;exports.millisToRelativeTime=k2;exports.nacl2=sf;exports.require$$2=br;exports.requireBrowser=L0;exports.requireCallBind=Yu;exports.requireCallBound=X0;exports.requireDefineDataProperty=Zu;exports.requireElliptic=hi;exports.requireEsObjectAtoms=$0;exports.requireEvents=vr;exports.requireGetIntrinsic=Z0;exports.requireGetProto=V0;exports.requireGopd=gr;exports.requireHasPropertyDescriptors=Xu;exports.requireHasown=Vu;exports.requireInherits_browser=dt;exports.requireIsTypedArray=ec;exports.requireNaclFast=Oc;exports.requireShams=Ju;exports.requireShams$1=K0;exports.requireStreamBrowserify=ii;exports.requireString_decoder=lr;exports.requireType=yr;exports.requireWhichTypedArray=Qu;exports.setConfig=i6;exports.shouldFilterSameChainToken=ol;exports.sleep=cl;exports.stringifyWithBigInt=P2;exports.tokenIdFromTuple=uf;exports.tokenKey=ci;exports.trimAddress=ei;exports.trimTxHash=M2;exports.types=vd;exports.usePrevious=B2;