@dcl/shop 1.11.2-33050849044.commit-d710ef0 → 1.11.2

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 (228) hide show
  1. package/_assets/{Activity-Cb8UPooR.js → Activity-BhrsqnTy.js} +8 -8
  2. package/_assets/{AnimatedBackground-DTrZDJA8.js → AnimatedBackground-DB2urHfN.js} +2 -2
  3. package/_assets/{Assets-BeMy0zBm.js → Assets-CEOKXfHN.js} +3 -3
  4. package/_assets/{Authorizations-DncizvNg.js → Authorizations-zY_jkrdd.js} +2 -2
  5. package/_assets/{Cart-DT8eTjju.js → Cart-CD3QMZMU.js} +2 -2
  6. package/_assets/{Collection-DCZ3YJU4.js → Collection-fLHFUGHo.js} +2 -2
  7. package/_assets/{CollectionCarousel-0tR5Mlt1.js → CollectionCarousel-Cs01J4sG.js} +3 -3
  8. package/_assets/{Confetti-ViY_Tl_x.js → Confetti-DI93CkCr.js} +4 -4
  9. package/_assets/{ConstantsUtil-CPnBLCKC.js → ConstantsUtil-9orAwS_V.js} +2 -2
  10. package/_assets/{ContentClient-BkKFRXIG.js → ContentClient-Dr4IkAbb.js} +2 -2
  11. package/_assets/{Creator-eDokOdG6.js → Creator-DGT3lqoW.js} +2 -2
  12. package/_assets/{DeploymentBuilder-sKGEh439.js → DeploymentBuilder-BsQ4GIy9.js} +2 -2
  13. package/_assets/{EmotePlaybackBar-Dhz63yAz.js → EmotePlaybackBar-WqjOzm12.js} +3 -3
  14. package/_assets/{ErrorNotice-CSHOj_36.js → ErrorNotice-BanVYx_o.js} +2 -2
  15. package/_assets/{ExchangeController-CsKQzi2K.js → ExchangeController-BWLF9BXM.js} +2 -2
  16. package/_assets/{Faq-DDRZibDb.js → Faq-Dt8RPaHZ.js} +2 -2
  17. package/_assets/{GetCredits-CpP-OsF7.js → GetCredits-BtM_F2J_.js} +2 -2
  18. package/_assets/{Grow-DCgFqXHz.js → Grow-DqnkmJ7j.js} +2 -2
  19. package/_assets/{HelpersUtil-iJ1yh8Qr.js → HelpersUtil-BtPtcaFe.js} +2 -2
  20. package/_assets/{ItemDetail-DwAqmdIu.js → ItemDetail-C28UgJKw.js} +2 -2
  21. package/_assets/{LoadMore-BwZO73du.js → LoadMore-hoiSVN2H.js} +2 -2
  22. package/_assets/{ManaPricingBanner.styles-DGJbiC1Z.js → ManaPricingBanner.styles-rIYX7xjf.js} +2 -2
  23. package/_assets/{MyAssets-hcKLnv5g.js → MyAssets-BtAcjcuT.js} +2 -2
  24. package/_assets/{MyFavorites-Bp6GPtXE.js → MyFavorites-C3BVkIkn.js} +2 -2
  25. package/_assets/{NetworkUtil-DbL_V1jR.js → NetworkUtil-BIUbrPWa.js} +2 -2
  26. package/_assets/{NotFound-CTb_1gzv.js → NotFound-BgmQ5oFS.js} +2 -2
  27. package/_assets/{NotificationsBell--siTbfxL.js → NotificationsBell-Bjpu5hGT.js} +2 -2
  28. package/_assets/{OutfitDetail-pb_IcBaj.js → OutfitDetail-CIeX74fk.js} +2 -2
  29. package/_assets/{OutfitPreview-CSV0Ba-9.js → OutfitPreview-Clicok_x.js} +2 -2
  30. package/_assets/{OutfitStudio-CtmMGesj.js → OutfitStudio-DLStaax_.js} +2 -2
  31. package/_assets/{StoreSettings-8ag4TiMf.js → StoreSettings-DwoVLG99.js} +2 -2
  32. package/_assets/{Success-CYW7s5SU.js → Success-BKkeu6d7.js} +2 -2
  33. package/_assets/{SwapController-uLupOCWo.js → SwapController-Cnrhnusk.js} +2 -2
  34. package/_assets/{TradeService-CRFzT-Hr.js → TradeService-BgsoZh0O.js} +2 -2
  35. package/_assets/{W3MFrameProviderSingleton-Cb17Fn7X.js → W3MFrameProviderSingleton-DqaMm2mV.js} +4 -4
  36. package/_assets/{WebCryptoP256-CgN7P_px.js → WebCryptoP256-R5qc29Sl.js} +2 -2
  37. package/_assets/{authorizations-ChjDHhq0.js → authorizations-DC168PVR.js} +2 -2
  38. package/_assets/{basic-DJQVI2W6.js → basic-CcMC-Noe.js} +2 -2
  39. package/_assets/{biconomy-ZY5p1Lnz.js → biconomy-MuBR1fCG.js} +2 -2
  40. package/_assets/{browseLayout.styles-BGMKaxNl.js → browseLayout.styles-C_vn8XYJ.js} +2 -2
  41. package/_assets/{browser-DrZivzFf.js → browser-CTTbQgwQ.js} +2 -2
  42. package/_assets/{browser-ponyfill-BNOW_pBr.js → browser-ponyfill-2MY_3eYQ.js} +2 -2
  43. package/_assets/{builder-BfRqFJQ4.js → builder-CpxipFmE.js} +2 -2
  44. package/_assets/{buy-Cmc6VGNE.js → buy-C9vFcpIy.js} +2 -2
  45. package/_assets/{buy-gasless-SuVAuIoA.js → buy-gasless-Co1yjKqt.js} +2 -2
  46. package/_assets/{categories-CcQWbCI7.js → categories-DSulO5YB.js} +2 -2
  47. package/_assets/{ccip-DwiL0Ome.js → ccip-BGKWaLZd.js} +2 -2
  48. package/_assets/{ccip-DwRl-KxC.js → ccip-CIGFVe9f.js} +2 -2
  49. package/_assets/{chains-DsUWcPpA.js → chains-B_96BGTk.js} +2 -2
  50. package/_assets/collectionPage.styles-DUDsxvQH.js +40 -0
  51. package/_assets/{common-CraL5c5H.js → common-nayH6Qb7.js} +2 -2
  52. package/_assets/{controller-BuSjdOVC.js → controller-BoM50IGk.js} +3 -3
  53. package/_assets/{core-C68iFRG-.js → core-C6U0AzoB.js} +5 -5
  54. package/_assets/{createSvgIcon-CGmCpEG5.js → createSvgIcon-DLtjIgIX.js} +2 -2
  55. package/_assets/{custom-4GcYKxl5.js → custom-BDzyroM1.js} +2 -2
  56. package/_assets/{data-capture-Cyiav8vl.js → data-capture-Zb8-AfOh.js} +2 -2
  57. package/_assets/{dcl-schemas-Z_oWg9h9.js → dcl-schemas-OH8G4Ndl.js} +2 -2
  58. package/_assets/{decimals-Bq-S3aqE.js → decimals-DwmaOPpT.js} +2 -2
  59. package/_assets/{decimals-CArBdPn5.js → decimals-gxw11IoF.js} +2 -2
  60. package/_assets/{detectExtension-Dt_yYPg7.js → detectExtension-GZk2y11b.js} +2 -2
  61. package/_assets/{disposePreview-D4xN-rbE.js → disposePreview-CoU0o2LJ.js} +2 -2
  62. package/_assets/{email-CZ4jC6eQ.js → email-Bs2nQCjl.js} +2 -2
  63. package/_assets/{embedded-wallet-DZADS08N.js → embedded-wallet-DaMZY5wt.js} +2 -2
  64. package/_assets/{emotion-styled.browser.esm-beWfTrJ9.js → emotion-styled.browser.esm-pl53fr_X.js} +2 -2
  65. package/_assets/{engine-BSXxNgo0.js → engine-_-Y9EygX.js} +2 -2
  66. package/_assets/{errors-BOK5UzVJ.js → errors-ISVrHVty.js} +2 -2
  67. package/_assets/{estimate-l1-fee-GVxA6iNo.js → estimate-l1-fee-C2MojaUq.js} +2 -2
  68. package/_assets/{eth_estimateGas-etehgmZh.js → eth_estimateGas-ByaJEeM-.js} +2 -2
  69. package/_assets/{eth_getStorageAt-CbdzG1l_.js → eth_getStorageAt-CfRtAGD-.js} +2 -2
  70. package/_assets/{eth_getTransactionCount-B5PZdzoN.js → eth_getTransactionCount-DCx1pf2k.js} +2 -2
  71. package/_assets/{ethereum-CS-n5Xr7.js → ethereum-BgVZC6F_.js} +2 -2
  72. package/_assets/{ethers-Cpz0Q6xx.js → ethers-DwK2TdL6.js} +2 -2
  73. package/_assets/{events-DACjjuYo.js → events-CSIN-_05.js} +2 -2
  74. package/_assets/{execute-D9BdF3-v.js → execute-wmZZdldV.js} +3 -3
  75. package/_assets/{extractIPFS-nIeATqsF.js → extractIPFS-BS6I288E.js} +2 -2
  76. package/_assets/{features-C_LEXfeO.js → features-DimRp-1s.js} +2 -2
  77. package/_assets/{fetchTokenMetadata-0K65OHg2.js → fetchTokenMetadata-DZy_tSZt.js} +3 -3
  78. package/_assets/{field.styles-Cc8geV5i.js → field.styles-6_NAJBdz.js} +2 -2
  79. package/_assets/{fortmatic-BQvAbAE8.js → fortmatic-D-iEWKOV.js} +2 -2
  80. package/_assets/{get-bytecode-CUOf1h_g.js → get-bytecode-We_Yud0L.js} +2 -2
  81. package/_assets/{get-ecosystem-wallet-info-CRF2DpN6.js → get-ecosystem-wallet-info-CZ2Y-cLY.js} +2 -2
  82. package/_assets/{getBalance-CZZhOPZE.js → getBalance-SeTBLCzL.js} +3 -3
  83. package/_assets/{getInstalledModules-jGEvSZtN.js → getInstalledModules-Dj-K4xQC.js} +2 -2
  84. package/_assets/{getNFT-CitsyjuX.js → getNFT-BCYWBTK4.js} +3 -3
  85. package/_assets/{getNFT-WfSacIBg.js → getNFT-BiPo4cEC.js} +2 -2
  86. package/_assets/{grid.styles-BgULreOR.js → grid.styles-DlGaOCzf.js} +2 -2
  87. package/_assets/{hashTypedData-C6vCQMAc.js → hashTypedData-Dr6t3Q-D.js} +2 -2
  88. package/_assets/{hashTypedData-ByJYgeO9.js → hashTypedData-OCiZaYsv.js} +2 -2
  89. package/_assets/{in-app-DelW162t.js → in-app-CVvPAYT7.js} +2 -2
  90. package/_assets/{in-app-wallet-calls-GZEjZInR.js → in-app-wallet-calls-ChA73nJF.js} +2 -2
  91. package/_assets/{index-CFDDMQJK.js → index-2aK4zhJE.js} +2 -2
  92. package/_assets/{index-CIKEzKBH.js → index-ARGrbe3A.js} +3 -3
  93. package/_assets/{index-BhStT_cc.js → index-Axq2dKdE.js} +2 -2
  94. package/_assets/{index-_K5f8PeG.js → index-B0OkSRGZ.js} +2 -2
  95. package/_assets/{index-Cw7Rqo2-.js → index-B1wSCmue.js} +2 -2
  96. package/_assets/{index-D4aVxZvs.js → index-B2uxq6bU.js} +2 -2
  97. package/_assets/{index-C_qbG0dy.js → index-B3Ji4DRo.js} +2 -2
  98. package/_assets/{index-nlnz8IwV.js → index-B9Up_SK0.js} +2 -2
  99. package/_assets/{index-CPtUYput.js → index-BACBbqlk.js} +2 -2
  100. package/_assets/{index-DNVhmP-g.js → index-BDJuqgxU.js} +2 -2
  101. package/_assets/{index-Ch-uhgiT.js → index-BHbHN01N.js} +2 -2
  102. package/_assets/{index-DgrGQPbb.js → index-BJA_2Ynv.js} +2 -2
  103. package/_assets/{index-j6WPFSGW.js → index-BPQVwfa5.js} +2 -2
  104. package/_assets/{index-BfFqEUOq.js → index-BPinodm9.js} +2 -2
  105. package/_assets/{index-Q6NI03qq.js → index-BWEvNyOP.js} +2 -2
  106. package/_assets/{index-CUxOFwrr.js → index-BiAbz-7Q.js} +2 -2
  107. package/_assets/{index-CnKfDln2.js → index-BjdjqJv4.js} +4 -4
  108. package/_assets/{index-vSQyyLPX.js → index-BlorBoCd.js} +2 -2
  109. package/_assets/{index-06nAp6_P.js → index-C3LVhWuY.js} +2 -2
  110. package/_assets/{index-B3hIuOjX.js → index-CATjpM0W.js} +2 -2
  111. package/_assets/{index-Bzl3YxsW.js → index-CFGlj3ri.js} +2 -2
  112. package/_assets/{index-BiFC9g1V.js → index-CGdQ1CYx.js} +3 -3
  113. package/_assets/{index-nAcepwRH.js → index-CK4WqWqO.js} +2 -2
  114. package/_assets/{index-478kymCd.js → index-CO9qakt0.js} +2 -2
  115. package/_assets/{index-qNV8isBD.js → index-CQvLWK26.js} +2 -2
  116. package/_assets/{index-zyHGk9oP.js → index-CS1VnyR1.js} +2 -2
  117. package/_assets/{index-D6uAgsgt.js → index-CUa90VgH.js} +2 -2
  118. package/_assets/{index-DLfuFdyq.js → index-CWThS2BY.js} +2 -2
  119. package/_assets/{index-Btp9BlB2.js → index-CY38y8q8.js} +2 -2
  120. package/_assets/{index-6H7SIWE4.js → index-CbMw0H1W.js} +3 -3
  121. package/_assets/{index-BQcRovWk.js → index-ChNIU-k1.js} +2 -2
  122. package/_assets/{index-DKaHo61X.js → index-Cj5zg5gT.js} +2 -2
  123. package/_assets/{index-0drXYznK.js → index-CmcTFc5W.js} +4 -4
  124. package/_assets/{index-DZwiznKc.js → index-CmcvBNcU.js} +2 -2
  125. package/_assets/{index-B3Z7srlP.js → index-Cst1nEOO.js} +2 -2
  126. package/_assets/{index-DrtJak5c.js → index-Ct9dUkSX.js} +2 -2
  127. package/_assets/{index-KxXBUjbr.js → index-CtayMM8a.js} +4 -4
  128. package/_assets/{index-oUqiABFT.js → index-D0Wlf6gr.js} +2 -2
  129. package/_assets/{index-BBxO56gH.js → index-D0q045Px.js} +2 -2
  130. package/_assets/{index-B_2Mo4bu.js → index-D1jUYM4a.js} +2 -2
  131. package/_assets/{index-COOTjCVL.js → index-D2CYJ9zD.js} +2 -2
  132. package/_assets/{index-C9Nt4S9K.js → index-D7_zDlZP.js} +2 -2
  133. package/_assets/{index-BhuPVo5e.js → index-D8QWWYMI.js} +2 -2
  134. package/_assets/{index-DeqZWYRQ.js → index-DAqd6v3r.js} +2 -2
  135. package/_assets/{index-DSfy1hBC.js → index-DCE7JXu8.js} +2 -2
  136. package/_assets/{index-0GqxSgjs.js → index-DGUzkX-I.js} +2 -2
  137. package/_assets/{index-HKZSXNsr.js → index-DGwAzxg5.js} +2 -2
  138. package/_assets/{index-ZdJgkDfq.js → index-DJXUib_8.js} +2 -2
  139. package/_assets/{index-_YF7EieY.js → index-DKiFTtAe.js} +3 -3
  140. package/_assets/{index-DRS8NbOe.js → index-DLKAGp7r.js} +2 -2
  141. package/_assets/{index-BMxAuVf4.js → index-DRR34LYo.js} +2 -2
  142. package/_assets/{index-Oc8g3W54.js → index-DZcNiUa1.js} +2 -2
  143. package/_assets/{index-MVmOAy4C.js → index-DejzmYQv.js} +2 -2
  144. package/_assets/{index-8ROQzz_g.js → index-DibFNBla.js} +2 -2
  145. package/_assets/{index-7k0c5Qcy.js → index-Dn8vBHwo.js} +2 -2
  146. package/_assets/{index-1oZGCxrR.js → index-Dxe6AOQE.js} +2 -2
  147. package/_assets/{index-Zw_hjMg7.js → index-G5AacsmF.js} +2 -2
  148. package/_assets/{index-CHxIVaGD.js → index-MZXf7D1W.js} +2 -2
  149. package/_assets/{index-C-bEpZKt.js → index-_-VFmxzj.js} +2 -2
  150. package/_assets/{index-DO2w-wQR.js → index-bJXcZSYa.js} +12 -12
  151. package/_assets/{index-BqDmiiZ-.js → index-ficvqfHi.js} +2 -2
  152. package/_assets/{index-B0FVA0eZ.js → index-gAex9EE8.js} +2 -2
  153. package/_assets/{index-YBa5NFZw.js → index-gm_D0aNI.js} +2 -2
  154. package/_assets/{index-Bl045Uro.js → index-n4qOUE64.js} +2 -2
  155. package/_assets/{index-DtNLghFi.js → index-nQ3hptXe.js} +2 -2
  156. package/_assets/{index-D3bYCsfh.js → index-ncctYqB-.js} +2 -2
  157. package/_assets/{index-RB8sYWdK.js → index-zkaZwO7E.js} +2 -2
  158. package/_assets/{index.es-BPsWV599.js → index.es-4xrWWZcO.js} +2 -2
  159. package/_assets/{index.es-DxzKuifY.js → index.es-CstVHWlV.js} +5 -5
  160. package/_assets/{index.es-Tp1KZ2HQ.js → index.es-DYbPPtM5.js} +2 -2
  161. package/_assets/{index.es-BOCjx120.js → index.es-DzLQ6Fnb.js} +2 -2
  162. package/_assets/items-empty-CpzVwMne.js +2 -0
  163. package/_assets/{jump-DErRvLju.js → jump-CVtY0iTz.js} +2 -2
  164. package/_assets/{linkAccount-YghbSYWp.js → linkAccount-6NTQv8aT.js} +2 -2
  165. package/_assets/{localBatchGatewayRequest-BExIf5_1.js → localBatchGatewayRequest-Dks7VfkN.js} +2 -2
  166. package/_assets/{native-c1T6eoXp.js → native-CXAGKkI7.js} +2 -2
  167. package/_assets/{networks-B-wEMoJV.js → networks-DtT18tMT.js} +2 -2
  168. package/_assets/{onramp-CDCcNQHe.js → onramp-CUVL5AKN.js} +2 -2
  169. package/_assets/{openzeppelin-CpRja1Th.js → openzeppelin-C6HmSX5F.js} +2 -2
  170. package/_assets/{ownerOf-C70qi64U.js → ownerOf-iHeO-A0L.js} +2 -2
  171. package/_assets/{parseNft-CZOYTgLm.js → parseNft-_qkiBgGY.js} +3 -3
  172. package/_assets/{parseSignature-DzR-8mQD.js → parseSignature-DCX2Homx.js} +4 -4
  173. package/_assets/{parseSignature-BEsyV8el.js → parseSignature-DpYJxwtD.js} +2 -2
  174. package/_assets/{passkeys-yBovAv90.js → passkeys-CaDDwDfa.js} +2 -2
  175. package/_assets/{pay-with-exchange-7bhrHbog.js → pay-with-exchange-mjjMFDoB.js} +2 -2
  176. package/_assets/{prepare-contract-call-h84PINiM.js → prepare-contract-call-B3PEXjk8.js} +2 -2
  177. package/_assets/{qr-overlay-WkRjHKs6.js → qr-overlay-Dte-FwLF.js} +4 -4
  178. package/_assets/{react-C_gdQiCE.js → react-Io5Wove7.js} +2 -2
  179. package/_assets/{receive-Do89clPB.js → receive-BOylnCCD.js} +2 -2
  180. package/_assets/{resolveImplementation-B9JWy09W.js → resolveImplementation-eqKe_Jd_.js} +2 -2
  181. package/_assets/{resume-buy-BC0M_EmE.js → resume-buy-l-MsHDN-.js} +2 -2
  182. package/_assets/{rpc-BSS6zm8k.js → rpc-Bd3ag8E4.js} +2 -2
  183. package/_assets/{sales-empty-DYbL-9_y.js → sales-empty-71lDTBeo.js} +2 -2
  184. package/_assets/{search-empty-CZAYhXXz.js → search-empty-C2pIWVz4.js} +2 -2
  185. package/_assets/{secp256k1-BBFBLxON.js → secp256k1-BCTY01q6.js} +2 -2
  186. package/_assets/{secp256k1-ZJxm9Bys.js → secp256k1-ChjjZr2n.js} +2 -2
  187. package/_assets/{secp256k1-BYDa0XLp.js → secp256k1-D89skxyt.js} +2 -2
  188. package/_assets/{send-ClRYnajv.js → send-BoRH3tdn.js} +2 -2
  189. package/_assets/{send-batch-transaction-DwvLC0W4.js → send-batch-transaction-qs3ijcbz.js} +2 -2
  190. package/_assets/{send-eip712-transaction-DvY1NVgK.js → send-eip712-transaction-BLU365vg.js} +3 -3
  191. package/_assets/{send-gasless-transaction-o1auSTit.js → send-gasless-transaction-COE6PePF.js} +3 -3
  192. package/_assets/{send-transaction-Br2a0g7W.js → send-transaction-DWia223-.js} +3 -3
  193. package/_assets/{sendMetaTransaction-Bu8b5LeI.js → sendMetaTransaction-Bnb1e1Oo.js} +2 -2
  194. package/_assets/{sendRawTransaction-BpeJI0sp.js → sendRawTransaction-QUpRtv1T.js} +4 -4
  195. package/_assets/{sentry-Cxy688Uv.js → sentry-faeuEJiQ.js} +3 -3
  196. package/_assets/{serializeTransaction-FQ6RV9RE.js → serializeTransaction-Bzap5VIj.js} +2 -2
  197. package/_assets/{session-proposal-C6u2LdKL.js → session-proposal-BRPQA6_F.js} +2 -2
  198. package/_assets/{session-request-w0C1Tobh.js → session-request-DE3BfIwL.js} +3 -3
  199. package/_assets/{sha256-CTCuMrwW.js → sha256-my9t8oLg.js} +2 -2
  200. package/_assets/{signing-D3zt3At6.js → signing-BKRnKKdl.js} +4 -4
  201. package/_assets/{skeleton.styles-B1HNltmx.js → skeleton.styles-Cjpy58bn.js} +2 -2
  202. package/_assets/{socials-DfbgvKTd.js → socials-CHs46oCs.js} +2 -2
  203. package/_assets/{styled-Cuj3EyKZ.js → styled-3e6FPpFM.js} +2 -2
  204. package/_assets/{swaps-b1I3uEg7.js → swaps-BQAfj8hR.js} +2 -2
  205. package/_assets/{thirdweb-auekSJDk.js → thirdweb-I3ycy-sq.js} +4 -4
  206. package/_assets/{to-serializable-transaction-CfmjnNDu.js → to-serializable-transaction-D4JXNF6K.js} +3 -3
  207. package/_assets/{totalSupply-BUwJKf4f.js → totalSupply-RRjcgrsd.js} +2 -2
  208. package/_assets/{transaction-DnOh3Eg-.js → transaction-CpNDZT6H.js} +2 -2
  209. package/_assets/{transactionReceipt-CqUJCou2.js → transactionReceipt-BsGymDgp.js} +2 -2
  210. package/_assets/{transactions-C3x5-V61.js → transactions-ZyGjrTz1.js} +2 -2
  211. package/_assets/{useCreditPacks-DCsNOyZ8.js → useCreditPacks-RKaHRtDl.js} +2 -2
  212. package/_assets/{useInfiniteGrid-R77Z-ty5.js → useInfiniteGrid-CKUOL3of.js} +2 -2
  213. package/_assets/{useStore-D2qLhY6J.js → useStore-zwLaMv5E.js} +3 -3
  214. package/_assets/{useTheme-BGjlT7WM.js → useTheme-6lXtg_We.js} +2 -2
  215. package/_assets/{utils-BtZfUVLs.js → utils-DmCacC3Z.js} +2 -2
  216. package/_assets/{verifyHash-DPHC3ZIF.js → verifyHash-BnLy1LQ8.js} +2 -2
  217. package/_assets/{w3m-modal-CbZN_Q63.js → w3m-modal-CqeYEpsp.js} +2 -2
  218. package/_assets/{w3m-modal-D0JziRdg.js → w3m-modal-igkHA2Yg.js} +2 -2
  219. package/_assets/{wait-for-tx-receipt-DZiNnQbl.js → wait-for-tx-receipt-BBZ5JG62.js} +2 -2
  220. package/_assets/{wallets-rH1kVf3P.js → wallets-BUa02PiV.js} +6 -6
  221. package/_assets/{web-connector-COam_ETk.js → web-connector-C7j-Aqf_.js} +4 -4
  222. package/_assets/{writeContract-14h9tGQE.js → writeContract-DUS_4K4j.js} +2 -2
  223. package/_assets/{zora-sepolia-CutqFesD.js → zora-sepolia-CDPQd0aL.js} +2 -2
  224. package/_assets/{zoraTestnet-bXAN-i92.js → zoraTestnet-DzzH_a_k.js} +2 -2
  225. package/index.html +11 -11
  226. package/package.json +1 -1
  227. package/_assets/collectionPage.styles-DVsIiXb2.js +0 -40
  228. package/_assets/items-empty-x6ksK26N.js +0 -2
@@ -1,4 +1,4 @@
1
- import{c as commonjsGlobal}from"./react-C_gdQiCE.js";import{p as process$1}from"./sentry-Cxy688Uv.js";import{r as requireSafeBuffer$1,a as requireToBuffer$2,b as requireUtil$1,c as requireBrowser$b,d as requireString_decoder,e as requireSha_js}from"./index-CPtUYput.js";import{c as requireDist,d as requireInherits_browser,e as requireMinimalisticAssert,g as requireBn$6,i as requireHash}from"./ethers-Cpz0Q6xx.js";import{r as requireEvents}from"./events-DACjjuYo.js";import{B as Buffer}from"./dcl-schemas-Z_oWg9h9.js";(function(){try{var R=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},x=new R.Error().stack;x&&(R._sentryDebugIds=R._sentryDebugIds||{},R._sentryDebugIds[x]="f210dd4d-a803-464e-9b17-91feffe420d4",R._sentryDebugIdIdentifier="sentry-dbid-f210dd4d-a803-464e-9b17-91feffe420d4")}catch{}})();var cryptoBrowserify={},browser$a={exports:{}},hasRequiredBrowser$a;function requireBrowser$a(){if(hasRequiredBrowser$a)return browser$a.exports;hasRequiredBrowser$a=1;var R=65536,x=4294967295;function B(){throw new Error(`Secure random number generation is not supported by this browser.
1
+ import{c as commonjsGlobal}from"./react-Io5Wove7.js";import{p as process$1}from"./sentry-faeuEJiQ.js";import{r as requireSafeBuffer$1,a as requireToBuffer$2,b as requireUtil$1,c as requireBrowser$b,d as requireString_decoder,e as requireSha_js}from"./index-BACBbqlk.js";import{c as requireDist,d as requireInherits_browser,e as requireMinimalisticAssert,g as requireBn$6,i as requireHash}from"./ethers-DwK2TdL6.js";import{r as requireEvents}from"./events-CSIN-_05.js";import{B as Buffer}from"./dcl-schemas-OH8G4Ndl.js";(function(){try{var R=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},x=new R.Error().stack;x&&(R._sentryDebugIds=R._sentryDebugIds||{},R._sentryDebugIds[x]="f210dd4d-a803-464e-9b17-91feffe420d4",R._sentryDebugIdIdentifier="sentry-dbid-f210dd4d-a803-464e-9b17-91feffe420d4")}catch{}})();var cryptoBrowserify={},browser$a={exports:{}},hasRequiredBrowser$a;function requireBrowser$a(){if(hasRequiredBrowser$a)return browser$a.exports;hasRequiredBrowser$a=1;var R=65536,x=4294967295;function B(){throw new Error(`Secure random number generation is not supported by this browser.
2
2
  Use Chrome, Firefox or Internet Explorer 11`)}var v=requireSafeBuffer$1().Buffer,q=commonjsGlobal.crypto||commonjsGlobal.msCrypto;q&&q.getRandomValues?browser$a.exports=n:browser$a.exports=B;function n(y,b){if(y>x)throw new RangeError("requested too many random bytes");var m=v.allocUnsafe(y);if(y>0)if(y>R)for(var c=0;c<y;c+=R)q.getRandomValues(m.slice(c,c+R));else q.getRandomValues(m);return typeof b=="function"?process$1.nextTick(function(){b(null,m)}):m}return browser$a.exports}var toBuffer_1$1,hasRequiredToBuffer$1;function requireToBuffer$1(){if(hasRequiredToBuffer$1)return toBuffer_1$1;hasRequiredToBuffer$1=1;var R=requireSafeBuffer$1().Buffer,x=requireToBuffer$2(),B=typeof Uint8Array<"u",v=B&&typeof ArrayBuffer<"u",q=v&&ArrayBuffer.isView;return toBuffer_1$1=function(n,y){if(typeof n=="string"||R.isBuffer(n)||B&&n instanceof Uint8Array||q&&q(n))return x(n,y);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')},toBuffer_1$1}var readableBrowser={exports:{}},processNextickArgs={exports:{}},hasRequiredProcessNextickArgs;function requireProcessNextickArgs(){if(hasRequiredProcessNextickArgs)return processNextickArgs.exports;hasRequiredProcessNextickArgs=1,typeof process$1>"u"||!process$1.version||process$1.version.indexOf("v0.")===0||process$1.version.indexOf("v1.")===0&&process$1.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick:R}:processNextickArgs.exports=process$1;function R(x,B,v,q){if(typeof x!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,y,b;switch(n){case 0:case 1:return process$1.nextTick(x);case 2:return process$1.nextTick(function(){x.call(null,B)});case 3:return process$1.nextTick(function(){x.call(null,B,v)});case 4:return process$1.nextTick(function(){x.call(null,B,v,q)});default:for(y=new Array(n-1),b=0;b<y.length;)y[b++]=arguments[b];return process$1.nextTick(function(){x.apply(null,y)})}}return processNextickArgs.exports}var isarray,hasRequiredIsarray;function requireIsarray(){if(hasRequiredIsarray)return isarray;hasRequiredIsarray=1;var R={}.toString;return isarray=Array.isArray||function(x){return R.call(x)=="[object Array]"},isarray}var streamBrowser$1,hasRequiredStreamBrowser$1;function requireStreamBrowser$1(){return hasRequiredStreamBrowser$1||(hasRequiredStreamBrowser$1=1,streamBrowser$1=requireEvents().EventEmitter),streamBrowser$1}var safeBuffer={exports:{}},hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,(function(R,x){var B=requireDist(),v=B.Buffer;function q(y,b){for(var m in y)b[m]=y[m]}v.from&&v.alloc&&v.allocUnsafe&&v.allocUnsafeSlow?R.exports=B:(q(B,x),x.Buffer=n);function n(y,b,m){return v(y,b,m)}q(v,n),n.from=function(y,b,m){if(typeof y=="number")throw new TypeError("Argument must not be a number");return v(y,b,m)},n.alloc=function(y,b,m){if(typeof y!="number")throw new TypeError("Argument must be a number");var c=v(y);return b!==void 0?typeof m=="string"?c.fill(b,m):c.fill(b):c.fill(0),c},n.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return v(y)},n.allocUnsafeSlow=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return B.SlowBuffer(y)}})(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var util={},hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util;hasRequiredUtil=1;function R(_){return Array.isArray?Array.isArray(_):M(_)==="[object Array]"}util.isArray=R;function x(_){return typeof _=="boolean"}util.isBoolean=x;function B(_){return _===null}util.isNull=B;function v(_){return _==null}util.isNullOrUndefined=v;function q(_){return typeof _=="number"}util.isNumber=q;function n(_){return typeof _=="string"}util.isString=n;function y(_){return typeof _=="symbol"}util.isSymbol=y;function b(_){return _===void 0}util.isUndefined=b;function m(_){return M(_)==="[object RegExp]"}util.isRegExp=m;function c(_){return typeof _=="object"&&_!==null}util.isObject=c;function l(_){return M(_)==="[object Date]"}util.isDate=l;function p(_){return M(_)==="[object Error]"||_ instanceof Error}util.isError=p;function g(_){return typeof _=="function"}util.isFunction=g;function w(_){return _===null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"||typeof _=="symbol"||typeof _>"u"}util.isPrimitive=w,util.isBuffer=requireDist().Buffer.isBuffer;function M(_){return Object.prototype.toString.call(_)}return util}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,(function(R){function x(n,y){if(!(n instanceof y))throw new TypeError("Cannot call a class as a function")}var B=requireSafeBuffer().Buffer,v=requireUtil$1();function q(n,y,b){n.copy(y,b)}R.exports=(function(){function n(){x(this,n),this.head=null,this.tail=null,this.length=0}return n.prototype.push=function(b){var m={data:b,next:null};this.length>0?this.tail.next=m:this.head=m,this.tail=m,++this.length},n.prototype.unshift=function(b){var m={data:b,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length},n.prototype.shift=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}},n.prototype.clear=function(){this.head=this.tail=null,this.length=0},n.prototype.join=function(b){if(this.length===0)return"";for(var m=this.head,c=""+m.data;m=m.next;)c+=b+m.data;return c},n.prototype.concat=function(b){if(this.length===0)return B.alloc(0);for(var m=B.allocUnsafe(b>>>0),c=this.head,l=0;c;)q(c.data,m,l),l+=c.data.length,c=c.next;return m},n})(),v&&v.inspect&&v.inspect.custom&&(R.exports.prototype[v.inspect.custom]=function(){var n=v.inspect({length:this.length});return this.constructor.name+" "+n})})(BufferList)),BufferList.exports}var destroy_1$1,hasRequiredDestroy$1;function requireDestroy$1(){if(hasRequiredDestroy$1)return destroy_1$1;hasRequiredDestroy$1=1;var R=requireProcessNextickArgs();function x(q,n){var y=this,b=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return b||m?(n?n(q):q&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,R.nextTick(v,this,q)):R.nextTick(v,this,q)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(q||null,function(c){!n&&c?y._writableState?y._writableState.errorEmitted||(y._writableState.errorEmitted=!0,R.nextTick(v,y,c)):R.nextTick(v,y,c):n&&n(c)}),this)}function B(){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 v(q,n){q.emit("error",n)}return destroy_1$1={destroy:x,undestroy:B},destroy_1$1}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1;var R=requireProcessNextickArgs();_stream_writable$1=_;function x(u){var d=this;this.next=null,this.entry=null,this.finish=function(){o(d,u)}}var B=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:R.nextTick,v;_.WritableState=w;var q=Object.create(requireUtil());q.inherits=requireInherits_browser();var n={deprecate:requireBrowser$b()},y=requireStreamBrowser$1(),b=requireSafeBuffer().Buffer,m=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c(u){return b.from(u)}function l(u){return b.isBuffer(u)||u instanceof m}var p=requireDestroy$1();q.inherits(_,y);function g(){}function w(u,d){v=v||require_stream_duplex$1(),u=u||{};var a=d instanceof v;this.objectMode=!!u.objectMode,a&&(this.objectMode=this.objectMode||!!u.writableObjectMode);var t=u.highWaterMark,s=u.writableHighWaterMark,$=this.objectMode?16:16*1024;t||t===0?this.highWaterMark=t:a&&(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 T=u.decodeStrings===!1;this.decodeStrings=!T,this.defaultEncoding=u.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(D){Re(d,D)},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 d=this.bufferedRequest,a=[];d;)a.push(d),d=d.next;return a},(function(){try{Object.defineProperty(w.prototype,"buffer",{get:n.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(_,Symbol.hasInstance,{value:function(u){return M.call(this,u)?!0:this!==_?!1:u&&u._writableState instanceof w}})):M=function(u){return u instanceof this};function _(u){if(v=v||require_stream_duplex$1(),!M.call(_,this)&&!(this instanceof v))return new _(u);this._writableState=new w(u,this),this.writable=!0,u&&(typeof u.write=="function"&&(this._write=u.write),typeof u.writev=="function"&&(this._writev=u.writev),typeof u.destroy=="function"&&(this._destroy=u.destroy),typeof u.final=="function"&&(this._final=u.final)),y.call(this)}_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function k(u,d){var a=new Error("write after end");u.emit("error",a),R.nextTick(d,a)}function E(u,d,a,t){var s=!0,$=!1;return a===null?$=new TypeError("May not write null values to stream"):typeof a!="string"&&a!==void 0&&!d.objectMode&&($=new TypeError("Invalid non-string/buffer chunk")),$&&(u.emit("error",$),R.nextTick(t,$),s=!1),s}_.prototype.write=function(u,d,a){var t=this._writableState,s=!1,$=!t.objectMode&&l(u);return $&&!b.isBuffer(u)&&(u=c(u)),typeof d=="function"&&(a=d,d=null),$?d="buffer":d||(d=t.defaultEncoding),typeof a!="function"&&(a=g),t.ended?k(this,a):($||E(this,t,u,a))&&(t.pendingcb++,s=O(this,t,$,u,d,a)),s},_.prototype.cork=function(){var u=this._writableState;u.corked++},_.prototype.uncork=function(){var u=this._writableState;u.corked&&(u.corked--,!u.writing&&!u.corked&&!u.bufferProcessing&&u.bufferedRequest&&Be(this,u))},_.prototype.setDefaultEncoding=function(d){if(typeof d=="string"&&(d=d.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((d+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+d);return this._writableState.defaultEncoding=d,this};function A(u,d,a){return!u.objectMode&&u.decodeStrings!==!1&&typeof d=="string"&&(d=b.from(d,a)),d}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function O(u,d,a,t,s,$){if(!a){var T=A(d,t,s);t!==T&&(a=!0,s="buffer",t=T)}var D=d.objectMode?1:t.length;d.length+=D;var z=d.length<d.highWaterMark;if(z||(d.needDrain=!0),d.writing||d.corked){var N=d.lastBufferedRequest;d.lastBufferedRequest={chunk:t,encoding:s,isBuf:a,callback:$,next:null},N?N.next=d.lastBufferedRequest:d.bufferedRequest=d.lastBufferedRequest,d.bufferedRequestCount+=1}else C(u,d,!1,D,t,s,$);return z}function C(u,d,a,t,s,$,T){d.writelen=t,d.writecb=T,d.writing=!0,d.sync=!0,a?u._writev(s,d.onwrite):u._write(s,$,d.onwrite),d.sync=!1}function j(u,d,a,t,s){--d.pendingcb,a?(R.nextTick(s,t),R.nextTick(i,u,d),u._writableState.errorEmitted=!0,u.emit("error",t)):(s(t),u._writableState.errorEmitted=!0,u.emit("error",t),i(u,d))}function Z(u){u.writing=!1,u.writecb=null,u.length-=u.writelen,u.writelen=0}function Re(u,d){var a=u._writableState,t=a.sync,s=a.writecb;if(Z(a),d)j(u,a,t,d,s);else{var $=h(a);!$&&!a.corked&&!a.bufferProcessing&&a.bufferedRequest&&Be(u,a),t?B(Q,u,a,$,s):Q(u,a,$,s)}}function Q(u,d,a,t){a||H(u,d),d.pendingcb--,t(),i(u,d)}function H(u,d){d.length===0&&d.needDrain&&(d.needDrain=!1,u.emit("drain"))}function Be(u,d){d.bufferProcessing=!0;var a=d.bufferedRequest;if(u._writev&&a&&a.next){var t=d.bufferedRequestCount,s=new Array(t),$=d.corkedRequestsFree;$.entry=a;for(var T=0,D=!0;a;)s[T]=a,a.isBuf||(D=!1),a=a.next,T+=1;s.allBuffers=D,C(u,d,!0,d.length,s,"",$.finish),d.pendingcb++,d.lastBufferedRequest=null,$.next?(d.corkedRequestsFree=$.next,$.next=null):d.corkedRequestsFree=new x(d),d.bufferedRequestCount=0}else{for(;a;){var z=a.chunk,N=a.encoding,S=a.callback,P=d.objectMode?1:z.length;if(C(u,d,!1,P,z,N,S),a=a.next,d.bufferedRequestCount--,d.writing)break}a===null&&(d.lastBufferedRequest=null)}d.bufferedRequest=a,d.bufferProcessing=!1}_.prototype._write=function(u,d,a){a(new Error("_write() is not implemented"))},_.prototype._writev=null,_.prototype.end=function(u,d,a){var t=this._writableState;typeof u=="function"?(a=u,u=null,d=null):typeof d=="function"&&(a=d,d=null),u!=null&&this.write(u,d),t.corked&&(t.corked=1,this.uncork()),t.ending||f(this,t,a)};function h(u){return u.ending&&u.length===0&&u.bufferedRequest===null&&!u.finished&&!u.writing}function e(u,d){u._final(function(a){d.pendingcb--,a&&u.emit("error",a),d.prefinished=!0,u.emit("prefinish"),i(u,d)})}function r(u,d){!d.prefinished&&!d.finalCalled&&(typeof u._final=="function"?(d.pendingcb++,d.finalCalled=!0,R.nextTick(e,u,d)):(d.prefinished=!0,u.emit("prefinish")))}function i(u,d){var a=h(d);return a&&(r(u,d),d.pendingcb===0&&(d.finished=!0,u.emit("finish"))),a}function f(u,d,a){d.ending=!0,i(u,d),a&&(d.finished?R.nextTick(a):u.once("finish",a)),d.ended=!0,u.writable=!1}function o(u,d,a){var t=u.entry;for(u.entry=null;t;){var s=t.callback;d.pendingcb--,s(a),t=t.next}d.corkedRequestsFree.next=u}return Object.defineProperty(_.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(u){this._writableState&&(this._writableState.destroyed=u)}}),_.prototype.destroy=p.destroy,_.prototype._undestroy=p.undestroy,_.prototype._destroy=function(u,d){this.end(),d(u)},_stream_writable$1}var _stream_duplex$1,hasRequired_stream_duplex$1;function require_stream_duplex$1(){if(hasRequired_stream_duplex$1)return _stream_duplex$1;hasRequired_stream_duplex$1=1;var R=requireProcessNextickArgs(),x=Object.keys||function(p){var g=[];for(var w in p)g.push(w);return g};_stream_duplex$1=m;var B=Object.create(requireUtil());B.inherits=requireInherits_browser();var v=require_stream_readable$1(),q=require_stream_writable$1();B.inherits(m,v);for(var n=x(q.prototype),y=0;y<n.length;y++){var b=n[y];m.prototype[b]||(m.prototype[b]=q.prototype[b])}function m(p){if(!(this instanceof m))return new m(p);v.call(this,p),q.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",c)}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function c(){this.allowHalfOpen||this._writableState.ended||R.nextTick(l,this)}function l(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,g){this.push(null),this.end(),R.nextTick(g,p)},_stream_duplex$1}var _stream_readable$1,hasRequired_stream_readable$1;function require_stream_readable$1(){if(hasRequired_stream_readable$1)return _stream_readable$1;hasRequired_stream_readable$1=1;var R=requireProcessNextickArgs();_stream_readable$1=A;var x=requireIsarray(),B;A.ReadableState=E,requireEvents().EventEmitter;var v=function(S,P){return S.listeners(P).length},q=requireStreamBrowser$1(),n=requireSafeBuffer().Buffer,y=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function b(S){return n.from(S)}function m(S){return n.isBuffer(S)||S instanceof y}var c=Object.create(requireUtil());c.inherits=requireInherits_browser();var l=requireUtil$1(),p=void 0;l&&l.debuglog?p=l.debuglog("stream"):p=function(){};var g=requireBufferList(),w=requireDestroy$1(),M;c.inherits(A,q);var _=["error","close","destroy","pause","resume"];function k(S,P,U){if(typeof S.prependListener=="function")return S.prependListener(P,U);!S._events||!S._events[P]?S.on(P,U):x(S._events[P])?S._events[P].unshift(U):S._events[P]=[U,S._events[P]]}function E(S,P){B=B||require_stream_duplex$1(),S=S||{};var U=P instanceof B;this.objectMode=!!S.objectMode,U&&(this.objectMode=this.objectMode||!!S.readableObjectMode);var K=S.highWaterMark,L=S.readableHighWaterMark,I=this.objectMode?16:16*1024;K||K===0?this.highWaterMark=K:U&&(L||L===0)?this.highWaterMark=L:this.highWaterMark=I,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,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=S.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,S.encoding&&(M||(M=requireString_decoder().StringDecoder),this.decoder=new M(S.encoding),this.encoding=S.encoding)}function A(S){if(B=B||require_stream_duplex$1(),!(this instanceof A))return new A(S);this._readableState=new E(S,this),this.readable=!0,S&&(typeof S.read=="function"&&(this._read=S.read),typeof S.destroy=="function"&&(this._destroy=S.destroy)),q.call(this)}Object.defineProperty(A.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(S){this._readableState&&(this._readableState.destroyed=S)}}),A.prototype.destroy=w.destroy,A.prototype._undestroy=w.undestroy,A.prototype._destroy=function(S,P){this.push(null),P(S)},A.prototype.push=function(S,P){var U=this._readableState,K;return U.objectMode?K=!0:typeof S=="string"&&(P=P||U.defaultEncoding,P!==U.encoding&&(S=n.from(S,P),P=""),K=!0),O(this,S,P,!1,K)},A.prototype.unshift=function(S){return O(this,S,null,!0,!1)};function O(S,P,U,K,L){var I=S._readableState;if(P===null)I.reading=!1,Be(S,I);else{var F;L||(F=j(I,P)),F?S.emit("error",F):I.objectMode||P&&P.length>0?(typeof P!="string"&&!I.objectMode&&Object.getPrototypeOf(P)!==n.prototype&&(P=b(P)),K?I.endEmitted?S.emit("error",new Error("stream.unshift() after end event")):C(S,I,P,!0):I.ended?S.emit("error",new Error("stream.push() after EOF")):(I.reading=!1,I.decoder&&!U?(P=I.decoder.write(P),I.objectMode||P.length!==0?C(S,I,P,!1):r(S,I)):C(S,I,P,!1))):K||(I.reading=!1)}return Z(I)}function C(S,P,U,K){P.flowing&&P.length===0&&!P.sync?(S.emit("data",U),S.read(0)):(P.length+=P.objectMode?1:U.length,K?P.buffer.unshift(U):P.buffer.push(U),P.needReadable&&h(S)),r(S,P)}function j(S,P){var U;return!m(P)&&typeof P!="string"&&P!==void 0&&!S.objectMode&&(U=new TypeError("Invalid non-string/buffer chunk")),U}function Z(S){return!S.ended&&(S.needReadable||S.length<S.highWaterMark||S.length===0)}A.prototype.isPaused=function(){return this._readableState.flowing===!1},A.prototype.setEncoding=function(S){return M||(M=requireString_decoder().StringDecoder),this._readableState.decoder=new M(S),this._readableState.encoding=S,this};var Re=8388608;function Q(S){return S>=Re?S=Re:(S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++),S}function H(S,P){return S<=0||P.length===0&&P.ended?0:P.objectMode?1:S!==S?P.flowing&&P.length?P.buffer.head.data.length:P.length:(S>P.highWaterMark&&(P.highWaterMark=Q(S)),S<=P.length?S:P.ended?P.length:(P.needReadable=!0,0))}A.prototype.read=function(S){p("read",S),S=parseInt(S,10);var P=this._readableState,U=S;if(S!==0&&(P.emittedReadable=!1),S===0&&P.needReadable&&(P.length>=P.highWaterMark||P.ended))return p("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?D(this):h(this),null;if(S=H(S,P),S===0&&P.ended)return P.length===0&&D(this),null;var K=P.needReadable;p("need readable",K),(P.length===0||P.length-S<P.highWaterMark)&&(K=!0,p("length less than watermark",K)),P.ended||P.reading?(K=!1,p("reading or ended",K)):K&&(p("do read"),P.reading=!0,P.sync=!0,P.length===0&&(P.needReadable=!0),this._read(P.highWaterMark),P.sync=!1,P.reading||(S=H(U,P)));var L;return S>0?L=t(S,P):L=null,L===null?(P.needReadable=!0,S=0):P.length-=S,P.length===0&&(P.ended||(P.needReadable=!0),U!==S&&P.ended&&D(this)),L!==null&&this.emit("data",L),L};function Be(S,P){if(!P.ended){if(P.decoder){var U=P.decoder.end();U&&U.length&&(P.buffer.push(U),P.length+=P.objectMode?1:U.length)}P.ended=!0,h(S)}}function h(S){var P=S._readableState;P.needReadable=!1,P.emittedReadable||(p("emitReadable",P.flowing),P.emittedReadable=!0,P.sync?R.nextTick(e,S):e(S))}function e(S){p("emit readable"),S.emit("readable"),a(S)}function r(S,P){P.readingMore||(P.readingMore=!0,R.nextTick(i,S,P))}function i(S,P){for(var U=P.length;!P.reading&&!P.flowing&&!P.ended&&P.length<P.highWaterMark&&(p("maybeReadMore read 0"),S.read(0),U!==P.length);)U=P.length;P.readingMore=!1}A.prototype._read=function(S){this.emit("error",new Error("_read() is not implemented"))},A.prototype.pipe=function(S,P){var U=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=S;break;case 1:K.pipes=[K.pipes,S];break;default:K.pipes.push(S);break}K.pipesCount+=1,p("pipe count=%d opts=%j",K.pipesCount,P);var L=(!P||P.end!==!1)&&S!==process$1.stdout&&S!==process$1.stderr,I=L?Ee:ke;K.endEmitted?R.nextTick(I):U.once("end",I),S.on("unpipe",F);function F(X,J){p("onunpipe"),X===U&&J&&J.hasUnpiped===!1&&(J.hasUnpiped=!0,Ae())}function Ee(){p("onend"),S.end()}var V=f(U);S.on("drain",V);var W=!1;function Ae(){p("cleanup"),S.removeListener("close",ie),S.removeListener("finish",ee),S.removeListener("drain",V),S.removeListener("error",Ie),S.removeListener("unpipe",F),U.removeListener("end",Ee),U.removeListener("end",ke),U.removeListener("data",Y),W=!0,K.awaitDrain&&(!S._writableState||S._writableState.needDrain)&&V()}var G=!1;U.on("data",Y);function Y(X){p("ondata"),G=!1;var J=S.write(X);J===!1&&!G&&((K.pipesCount===1&&K.pipes===S||K.pipesCount>1&&N(K.pipes,S)!==-1)&&!W&&(p("false write response, pause",K.awaitDrain),K.awaitDrain++,G=!0),U.pause())}function Ie(X){p("onerror",X),ke(),S.removeListener("error",Ie),v(S,"error")===0&&S.emit("error",X)}k(S,"error",Ie);function ie(){S.removeListener("finish",ee),ke()}S.once("close",ie);function ee(){p("onfinish"),S.removeListener("close",ie),ke()}S.once("finish",ee);function ke(){p("unpipe"),U.unpipe(S)}return S.emit("pipe",U),K.flowing||(p("pipe resume"),U.resume()),S};function f(S){return function(){var P=S._readableState;p("pipeOnDrain",P.awaitDrain),P.awaitDrain&&P.awaitDrain--,P.awaitDrain===0&&v(S,"data")&&(P.flowing=!0,a(S))}}A.prototype.unpipe=function(S){var P=this._readableState,U={hasUnpiped:!1};if(P.pipesCount===0)return this;if(P.pipesCount===1)return S&&S!==P.pipes?this:(S||(S=P.pipes),P.pipes=null,P.pipesCount=0,P.flowing=!1,S&&S.emit("unpipe",this,U),this);if(!S){var K=P.pipes,L=P.pipesCount;P.pipes=null,P.pipesCount=0,P.flowing=!1;for(var I=0;I<L;I++)K[I].emit("unpipe",this,{hasUnpiped:!1});return this}var F=N(P.pipes,S);return F===-1?this:(P.pipes.splice(F,1),P.pipesCount-=1,P.pipesCount===1&&(P.pipes=P.pipes[0]),S.emit("unpipe",this,U),this)},A.prototype.on=function(S,P){var U=q.prototype.on.call(this,S,P);if(S==="data")this._readableState.flowing!==!1&&this.resume();else if(S==="readable"){var K=this._readableState;!K.endEmitted&&!K.readableListening&&(K.readableListening=K.needReadable=!0,K.emittedReadable=!1,K.reading?K.length&&h(this):R.nextTick(o,this))}return U},A.prototype.addListener=A.prototype.on;function o(S){p("readable nexttick read 0"),S.read(0)}A.prototype.resume=function(){var S=this._readableState;return S.flowing||(p("resume"),S.flowing=!0,u(this,S)),this};function u(S,P){P.resumeScheduled||(P.resumeScheduled=!0,R.nextTick(d,S,P))}function d(S,P){P.reading||(p("resume read 0"),S.read(0)),P.resumeScheduled=!1,P.awaitDrain=0,S.emit("resume"),a(S),P.flowing&&!P.reading&&S.read(0)}A.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 a(S){var P=S._readableState;for(p("flow",P.flowing);P.flowing&&S.read()!==null;);}A.prototype.wrap=function(S){var P=this,U=this._readableState,K=!1;S.on("end",function(){if(p("wrapped end"),U.decoder&&!U.ended){var F=U.decoder.end();F&&F.length&&P.push(F)}P.push(null)}),S.on("data",function(F){if(p("wrapped data"),U.decoder&&(F=U.decoder.write(F)),!(U.objectMode&&F==null)&&!(!U.objectMode&&(!F||!F.length))){var Ee=P.push(F);Ee||(K=!0,S.pause())}});for(var L in S)this[L]===void 0&&typeof S[L]=="function"&&(this[L]=(function(F){return function(){return S[F].apply(S,arguments)}})(L));for(var I=0;I<_.length;I++)S.on(_[I],this.emit.bind(this,_[I]));return this._read=function(F){p("wrapped _read",F),K&&(K=!1,S.resume())},this},Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),A._fromList=t;function t(S,P){if(P.length===0)return null;var U;return P.objectMode?U=P.buffer.shift():!S||S>=P.length?(P.decoder?U=P.buffer.join(""):P.buffer.length===1?U=P.buffer.head.data:U=P.buffer.concat(P.length),P.buffer.clear()):U=s(S,P.buffer,P.decoder),U}function s(S,P,U){var K;return S<P.head.data.length?(K=P.head.data.slice(0,S),P.head.data=P.head.data.slice(S)):S===P.head.data.length?K=P.shift():K=U?$(S,P):T(S,P),K}function $(S,P){var U=P.head,K=1,L=U.data;for(S-=L.length;U=U.next;){var I=U.data,F=S>I.length?I.length:S;if(F===I.length?L+=I:L+=I.slice(0,S),S-=F,S===0){F===I.length?(++K,U.next?P.head=U.next:P.head=P.tail=null):(P.head=U,U.data=I.slice(F));break}++K}return P.length-=K,L}function T(S,P){var U=n.allocUnsafe(S),K=P.head,L=1;for(K.data.copy(U),S-=K.data.length;K=K.next;){var I=K.data,F=S>I.length?I.length:S;if(I.copy(U,U.length-S,0,F),S-=F,S===0){F===I.length?(++L,K.next?P.head=K.next:P.head=P.tail=null):(P.head=K,K.data=I.slice(F));break}++L}return P.length-=L,U}function D(S){var P=S._readableState;if(P.length>0)throw new Error('"endReadable()" called on non-empty stream');P.endEmitted||(P.ended=!0,R.nextTick(z,P,S))}function z(S,P){!S.endEmitted&&S.length===0&&(S.endEmitted=!0,P.readable=!1,P.emit("end"))}function N(S,P){for(var U=0,K=S.length;U<K;U++)if(S[U]===P)return U;return-1}return _stream_readable$1}var _stream_transform$1,hasRequired_stream_transform$1;function require_stream_transform$1(){if(hasRequired_stream_transform$1)return _stream_transform$1;hasRequired_stream_transform$1=1,_stream_transform$1=v;var R=require_stream_duplex$1(),x=Object.create(requireUtil());x.inherits=requireInherits_browser(),x.inherits(v,R);function B(y,b){var m=this._transformState;m.transforming=!1;var c=m.writecb;if(!c)return this.emit("error",new Error("write callback called multiple times"));m.writechunk=null,m.writecb=null,b!=null&&this.push(b),c(y);var l=this._readableState;l.reading=!1,(l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}function v(y){if(!(this instanceof v))return new v(y);R.call(this,y),this._transformState={afterTransform:B.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,y&&(typeof y.transform=="function"&&(this._transform=y.transform),typeof y.flush=="function"&&(this._flush=y.flush)),this.on("prefinish",q)}function q(){var y=this;typeof this._flush=="function"?this._flush(function(b,m){n(y,b,m)}):n(this,null,null)}v.prototype.push=function(y,b){return this._transformState.needTransform=!1,R.prototype.push.call(this,y,b)},v.prototype._transform=function(y,b,m){throw new Error("_transform() is not implemented")},v.prototype._write=function(y,b,m){var c=this._transformState;if(c.writecb=m,c.writechunk=y,c.writeencoding=b,!c.transforming){var l=this._readableState;(c.needTransform||l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}},v.prototype._read=function(y){var b=this._transformState;b.writechunk!==null&&b.writecb&&!b.transforming?(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform)):b.needTransform=!0},v.prototype._destroy=function(y,b){var m=this;R.prototype._destroy.call(this,y,function(c){b(c),m.emit("close")})};function n(y,b,m){if(b)return y.emit("error",b);if(m!=null&&y.push(m),y._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(y._transformState.transforming)throw new Error("Calling transform done when still transforming");return y.push(null)}return _stream_transform$1}var _stream_passthrough$1,hasRequired_stream_passthrough$1;function require_stream_passthrough$1(){if(hasRequired_stream_passthrough$1)return _stream_passthrough$1;hasRequired_stream_passthrough$1=1,_stream_passthrough$1=B;var R=require_stream_transform$1(),x=Object.create(requireUtil());x.inherits=requireInherits_browser(),x.inherits(B,R);function B(v){if(!(this instanceof B))return new B(v);R.call(this,v)}return B.prototype._transform=function(v,q,n){n(null,v)},_stream_passthrough$1}var hasRequiredReadableBrowser;function requireReadableBrowser(){return hasRequiredReadableBrowser||(hasRequiredReadableBrowser=1,(function(R,x){x=R.exports=require_stream_readable$1(),x.Stream=x,x.Readable=x,x.Writable=require_stream_writable$1(),x.Duplex=require_stream_duplex$1(),x.Transform=require_stream_transform$1(),x.PassThrough=require_stream_passthrough$1()})(readableBrowser,readableBrowser.exports)),readableBrowser.exports}var hashBase,hasRequiredHashBase;function requireHashBase(){if(hasRequiredHashBase)return hashBase;hasRequiredHashBase=1;var R=requireSafeBuffer$1().Buffer,x=requireToBuffer$1(),B=requireReadableBrowser().Transform,v=requireInherits_browser();function q(n){B.call(this),this._block=R.allocUnsafe(n),this._blockSize=n,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}return v(q,B),q.prototype._transform=function(n,y,b){var m=null;try{this.update(n,y)}catch(c){m=c}b(m)},q.prototype._flush=function(n){var y=null;try{this.push(this.digest())}catch(b){y=b}n(y)},q.prototype.update=function(n,y){if(this._finalized)throw new Error("Digest already called");for(var b=x(n,y),m=this._block,c=0;this._blockOffset+b.length-c>=this._blockSize;){for(var l=this._blockOffset;l<this._blockSize;)m[l]=b[c],l+=1,c+=1;this._update(),this._blockOffset=0}for(;c<b.length;)m[this._blockOffset]=b[c],this._blockOffset+=1,c+=1;for(var p=0,g=b.length*8;g>0;++p)this._length[p]+=g,g=this._length[p]/4294967296|0,g>0&&(this._length[p]-=4294967296*g);return this},q.prototype._update=function(){throw new Error("_update is not implemented")},q.prototype.digest=function(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var y=this._digest();n!==void 0&&(y=y.toString(n)),this._block.fill(0),this._blockOffset=0;for(var b=0;b<4;++b)this._length[b]=0;return y},q.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase=q,hashBase}var md5_js,hasRequiredMd5_js;function requireMd5_js(){if(hasRequiredMd5_js)return md5_js;hasRequiredMd5_js=1;var R=requireInherits_browser(),x=requireHashBase(),B=requireSafeBuffer$1().Buffer,v=new Array(16);function q(){x.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}R(q,x),q.prototype._update=function(){for(var l=v,p=0;p<16;++p)l[p]=this._block.readInt32LE(p*4);var g=this._a,w=this._b,M=this._c,_=this._d;g=y(g,w,M,_,l[0],3614090360,7),_=y(_,g,w,M,l[1],3905402710,12),M=y(M,_,g,w,l[2],606105819,17),w=y(w,M,_,g,l[3],3250441966,22),g=y(g,w,M,_,l[4],4118548399,7),_=y(_,g,w,M,l[5],1200080426,12),M=y(M,_,g,w,l[6],2821735955,17),w=y(w,M,_,g,l[7],4249261313,22),g=y(g,w,M,_,l[8],1770035416,7),_=y(_,g,w,M,l[9],2336552879,12),M=y(M,_,g,w,l[10],4294925233,17),w=y(w,M,_,g,l[11],2304563134,22),g=y(g,w,M,_,l[12],1804603682,7),_=y(_,g,w,M,l[13],4254626195,12),M=y(M,_,g,w,l[14],2792965006,17),w=y(w,M,_,g,l[15],1236535329,22),g=b(g,w,M,_,l[1],4129170786,5),_=b(_,g,w,M,l[6],3225465664,9),M=b(M,_,g,w,l[11],643717713,14),w=b(w,M,_,g,l[0],3921069994,20),g=b(g,w,M,_,l[5],3593408605,5),_=b(_,g,w,M,l[10],38016083,9),M=b(M,_,g,w,l[15],3634488961,14),w=b(w,M,_,g,l[4],3889429448,20),g=b(g,w,M,_,l[9],568446438,5),_=b(_,g,w,M,l[14],3275163606,9),M=b(M,_,g,w,l[3],4107603335,14),w=b(w,M,_,g,l[8],1163531501,20),g=b(g,w,M,_,l[13],2850285829,5),_=b(_,g,w,M,l[2],4243563512,9),M=b(M,_,g,w,l[7],1735328473,14),w=b(w,M,_,g,l[12],2368359562,20),g=m(g,w,M,_,l[5],4294588738,4),_=m(_,g,w,M,l[8],2272392833,11),M=m(M,_,g,w,l[11],1839030562,16),w=m(w,M,_,g,l[14],4259657740,23),g=m(g,w,M,_,l[1],2763975236,4),_=m(_,g,w,M,l[4],1272893353,11),M=m(M,_,g,w,l[7],4139469664,16),w=m(w,M,_,g,l[10],3200236656,23),g=m(g,w,M,_,l[13],681279174,4),_=m(_,g,w,M,l[0],3936430074,11),M=m(M,_,g,w,l[3],3572445317,16),w=m(w,M,_,g,l[6],76029189,23),g=m(g,w,M,_,l[9],3654602809,4),_=m(_,g,w,M,l[12],3873151461,11),M=m(M,_,g,w,l[15],530742520,16),w=m(w,M,_,g,l[2],3299628645,23),g=c(g,w,M,_,l[0],4096336452,6),_=c(_,g,w,M,l[7],1126891415,10),M=c(M,_,g,w,l[14],2878612391,15),w=c(w,M,_,g,l[5],4237533241,21),g=c(g,w,M,_,l[12],1700485571,6),_=c(_,g,w,M,l[3],2399980690,10),M=c(M,_,g,w,l[10],4293915773,15),w=c(w,M,_,g,l[1],2240044497,21),g=c(g,w,M,_,l[8],1873313359,6),_=c(_,g,w,M,l[15],4264355552,10),M=c(M,_,g,w,l[6],2734768916,15),w=c(w,M,_,g,l[13],1309151649,21),g=c(g,w,M,_,l[4],4149444226,6),_=c(_,g,w,M,l[11],3174756917,10),M=c(M,_,g,w,l[2],718787259,15),w=c(w,M,_,g,l[9],3951481745,21),this._a=this._a+g|0,this._b=this._b+w|0,this._c=this._c+M|0,this._d=this._d+_|0},q.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 l=B.allocUnsafe(16);return l.writeInt32LE(this._a,0),l.writeInt32LE(this._b,4),l.writeInt32LE(this._c,8),l.writeInt32LE(this._d,12),l};function n(l,p){return l<<p|l>>>32-p}function y(l,p,g,w,M,_,k){return n(l+(p&g|~p&w)+M+_|0,k)+p|0}function b(l,p,g,w,M,_,k){return n(l+(p&w|g&~w)+M+_|0,k)+p|0}function m(l,p,g,w,M,_,k){return n(l+(p^g^w)+M+_|0,k)+p|0}function c(l,p,g,w,M,_,k){return n(l+(g^(p|~w))+M+_|0,k)+p|0}return md5_js=q,md5_js}var ripemd160,hasRequiredRipemd160;function requireRipemd160(){if(hasRequiredRipemd160)return ripemd160;hasRequiredRipemd160=1;var R=requireDist().Buffer,x=requireInherits_browser(),B=requireHashBase(),v=new Array(16),q=[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],n=[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],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],m=[0,1518500249,1859775393,2400959708,2840853838],c=[1352829926,1548603684,1836072691,2053994217,0];function l(E,A){return E<<A|E>>>32-A}function p(E,A,O,C,j,Z,Re,Q){return l(E+(A^O^C)+Z+Re|0,Q)+j|0}function g(E,A,O,C,j,Z,Re,Q){return l(E+(A&O|~A&C)+Z+Re|0,Q)+j|0}function w(E,A,O,C,j,Z,Re,Q){return l(E+((A|~O)^C)+Z+Re|0,Q)+j|0}function M(E,A,O,C,j,Z,Re,Q){return l(E+(A&C|O&~C)+Z+Re|0,Q)+j|0}function _(E,A,O,C,j,Z,Re,Q){return l(E+(A^(O|~C))+Z+Re|0,Q)+j|0}function k(){B.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}return x(k,B),k.prototype._update=function(){for(var E=v,A=0;A<16;++A)E[A]=this._block.readInt32LE(A*4);for(var O=this._a|0,C=this._b|0,j=this._c|0,Z=this._d|0,Re=this._e|0,Q=this._a|0,H=this._b|0,Be=this._c|0,h=this._d|0,e=this._e|0,r=0;r<80;r+=1){var i,f;r<16?(i=p(O,C,j,Z,Re,E[q[r]],m[0],y[r]),f=_(Q,H,Be,h,e,E[n[r]],c[0],b[r])):r<32?(i=g(O,C,j,Z,Re,E[q[r]],m[1],y[r]),f=M(Q,H,Be,h,e,E[n[r]],c[1],b[r])):r<48?(i=w(O,C,j,Z,Re,E[q[r]],m[2],y[r]),f=w(Q,H,Be,h,e,E[n[r]],c[2],b[r])):r<64?(i=M(O,C,j,Z,Re,E[q[r]],m[3],y[r]),f=g(Q,H,Be,h,e,E[n[r]],c[3],b[r])):(i=_(O,C,j,Z,Re,E[q[r]],m[4],y[r]),f=p(Q,H,Be,h,e,E[n[r]],c[4],b[r])),O=Re,Re=Z,Z=l(j,10),j=C,C=i,Q=e,e=h,h=l(Be,10),Be=H,H=f}var o=this._b+j+h|0;this._b=this._c+Z+e|0,this._c=this._d+Re+Q|0,this._d=this._e+O+H|0,this._e=this._a+C+Be|0,this._a=o},k.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var E=R.alloc?R.alloc(20):new R(20);return E.writeInt32LE(this._a,0),E.writeInt32LE(this._b,4),E.writeInt32LE(this._c,8),E.writeInt32LE(this._d,12),E.writeInt32LE(this._e,16),E},ripemd160=k,ripemd160}var streamBrowser,hasRequiredStreamBrowser;function requireStreamBrowser(){return hasRequiredStreamBrowser||(hasRequiredStreamBrowser=1,streamBrowser=requireEvents().EventEmitter),streamBrowser}var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function R(M,_){var k=Object.keys(M);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(M);_&&(E=E.filter(function(A){return Object.getOwnPropertyDescriptor(M,A).enumerable})),k.push.apply(k,E)}return k}function x(M){for(var _=1;_<arguments.length;_++){var k=arguments[_]!=null?arguments[_]:{};_%2?R(Object(k),!0).forEach(function(E){B(M,E,k[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(k)):R(Object(k)).forEach(function(E){Object.defineProperty(M,E,Object.getOwnPropertyDescriptor(k,E))})}return M}function B(M,_,k){return _=y(_),_ in M?Object.defineProperty(M,_,{value:k,enumerable:!0,configurable:!0,writable:!0}):M[_]=k,M}function v(M,_){if(!(M instanceof _))throw new TypeError("Cannot call a class as a function")}function q(M,_){for(var k=0;k<_.length;k++){var E=_[k];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(M,y(E.key),E)}}function n(M,_,k){return _&&q(M.prototype,_),Object.defineProperty(M,"prototype",{writable:!1}),M}function y(M){var _=b(M,"string");return typeof _=="symbol"?_:String(_)}function b(M,_){if(typeof M!="object"||M===null)return M;var k=M[Symbol.toPrimitive];if(k!==void 0){var E=k.call(M,_);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}var m=requireDist(),c=m.Buffer,l=requireUtil$1(),p=l.inspect,g=p&&p.custom||"inspect";function w(M,_,k){c.prototype.copy.call(M,_,k)}return buffer_list=(function(){function M(){v(this,M),this.head=null,this.tail=null,this.length=0}return n(M,[{key:"push",value:function(k){var E={data:k,next:null};this.length>0?this.tail.next=E:this.head=E,this.tail=E,++this.length}},{key:"unshift",value:function(k){var E={data:k,next:this.head};this.length===0&&(this.tail=E),this.head=E,++this.length}},{key:"shift",value:function(){if(this.length!==0){var k=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,k}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(k){if(this.length===0)return"";for(var E=this.head,A=""+E.data;E=E.next;)A+=k+E.data;return A}},{key:"concat",value:function(k){if(this.length===0)return c.alloc(0);for(var E=c.allocUnsafe(k>>>0),A=this.head,O=0;A;)w(A.data,E,O),O+=A.data.length,A=A.next;return E}},{key:"consume",value:function(k,E){var A;return k<this.head.data.length?(A=this.head.data.slice(0,k),this.head.data=this.head.data.slice(k)):k===this.head.data.length?A=this.shift():A=E?this._getString(k):this._getBuffer(k),A}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(k){var E=this.head,A=1,O=E.data;for(k-=O.length;E=E.next;){var C=E.data,j=k>C.length?C.length:k;if(j===C.length?O+=C:O+=C.slice(0,k),k-=j,k===0){j===C.length?(++A,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=C.slice(j));break}++A}return this.length-=A,O}},{key:"_getBuffer",value:function(k){var E=c.allocUnsafe(k),A=this.head,O=1;for(A.data.copy(E),k-=A.data.length;A=A.next;){var C=A.data,j=k>C.length?C.length:k;if(C.copy(E,E.length-k,0,j),k-=j,k===0){j===C.length?(++O,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=C.slice(j));break}++O}return this.length-=O,E}},{key:g,value:function(k,E){return p(this,x(x({},E),{},{depth:0,customInspect:!1}))}}]),M})(),buffer_list}var destroy_1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1;hasRequiredDestroy=1;function R(y,b){var m=this,c=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return c||l?(b?b(y):y&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1.nextTick(q,this,y)):process$1.nextTick(q,this,y)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(p){!b&&p?m._writableState?m._writableState.errorEmitted?process$1.nextTick(B,m):(m._writableState.errorEmitted=!0,process$1.nextTick(x,m,p)):process$1.nextTick(x,m,p):b?(process$1.nextTick(B,m),b(p)):process$1.nextTick(B,m)}),this)}function x(y,b){q(y,b),B(y)}function B(y){y._writableState&&!y._writableState.emitClose||y._readableState&&!y._readableState.emitClose||y.emit("close")}function v(){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 q(y,b){y.emit("error",b)}function n(y,b){var m=y._readableState,c=y._writableState;m&&m.autoDestroy||c&&c.autoDestroy?y.destroy(b):y.emit("error",b)}return destroy_1={destroy:R,undestroy:v,errorOrDestroy:n},destroy_1}var errorsBrowser={},hasRequiredErrorsBrowser;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;function R(b,m){b.prototype=Object.create(m.prototype),b.prototype.constructor=b,b.__proto__=m}var x={};function B(b,m,c){c||(c=Error);function l(g,w,M){return typeof m=="string"?m:m(g,w,M)}var p=(function(g){R(w,g);function w(M,_,k){return g.call(this,l(M,_,k))||this}return w})(c);p.prototype.name=c.name,p.prototype.code=b,x[b]=p}function v(b,m){if(Array.isArray(b)){var c=b.length;return b=b.map(function(l){return String(l)}),c>2?"one of ".concat(m," ").concat(b.slice(0,c-1).join(", "),", or ")+b[c-1]:c===2?"one of ".concat(m," ").concat(b[0]," or ").concat(b[1]):"of ".concat(m," ").concat(b[0])}else return"of ".concat(m," ").concat(String(b))}function q(b,m,c){return b.substr(0,m.length)===m}function n(b,m,c){return(c===void 0||c>b.length)&&(c=b.length),b.substring(c-m.length,c)===m}function y(b,m,c){return typeof c!="number"&&(c=0),c+m.length>b.length?!1:b.indexOf(m,c)!==-1}return B("ERR_INVALID_OPT_VALUE",function(b,m){return'The value "'+m+'" is invalid for option "'+b+'"'},TypeError),B("ERR_INVALID_ARG_TYPE",function(b,m,c){var l;typeof m=="string"&&q(m,"not ")?(l="must not be",m=m.replace(/^not /,"")):l="must be";var p;if(n(b," argument"))p="The ".concat(b," ").concat(l," ").concat(v(m,"type"));else{var g=y(b,".")?"property":"argument";p='The "'.concat(b,'" ').concat(g," ").concat(l," ").concat(v(m,"type"))}return p+=". Received type ".concat(typeof c),p},TypeError),B("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),B("ERR_METHOD_NOT_IMPLEMENTED",function(b){return"The "+b+" method is not implemented"}),B("ERR_STREAM_PREMATURE_CLOSE","Premature close"),B("ERR_STREAM_DESTROYED",function(b){return"Cannot call "+b+" after a stream was destroyed"}),B("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),B("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),B("ERR_STREAM_WRITE_AFTER_END","write after end"),B("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),B("ERR_UNKNOWN_ENCODING",function(b){return"Unknown encoding: "+b},TypeError),B("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=x,errorsBrowser}var state,hasRequiredState;function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var R=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;function x(v,q,n){return v.highWaterMark!=null?v.highWaterMark:q?v[n]:null}function B(v,q,n,y){var b=x(q,y,n);if(b!=null){if(!(isFinite(b)&&Math.floor(b)===b)||b<0){var m=y?n:"highWaterMark";throw new R(m,b)}return Math.floor(b)}return v.objectMode?16:16*1024}return state={getHighWaterMark:B},state}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=Q;function R(N){var S=this;this.next=null,this.entry=null,this.finish=function(){z(S,N)}}var x;Q.WritableState=Z;var B={deprecate:requireBrowser$b()},v=requireStreamBrowser(),q=requireDist().Buffer,n=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function y(N){return q.from(N)}function b(N){return q.isBuffer(N)||N instanceof n}var m=requireDestroy(),c=requireState(),l=c.getHighWaterMark,p=requireErrorsBrowser().codes,g=p.ERR_INVALID_ARG_TYPE,w=p.ERR_METHOD_NOT_IMPLEMENTED,M=p.ERR_MULTIPLE_CALLBACK,_=p.ERR_STREAM_CANNOT_PIPE,k=p.ERR_STREAM_DESTROYED,E=p.ERR_STREAM_NULL_VALUES,A=p.ERR_STREAM_WRITE_AFTER_END,O=p.ERR_UNKNOWN_ENCODING,C=m.errorOrDestroy;requireInherits_browser()(Q,v);function j(){}function Z(N,S,P){x=x||require_stream_duplex(),N=N||{},typeof P!="boolean"&&(P=S instanceof x),this.objectMode=!!N.objectMode,P&&(this.objectMode=this.objectMode||!!N.writableObjectMode),this.highWaterMark=l(this,N,"writableHighWaterMark",P),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var U=N.decodeStrings===!1;this.decodeStrings=!U,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(K){o(S,K)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new R(this)}Z.prototype.getBuffer=function(){for(var S=this.bufferedRequest,P=[];S;)P.push(S),S=S.next;return P},(function(){try{Object.defineProperty(Z.prototype,"buffer",{get:B.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Re;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Re=Function.prototype[Symbol.hasInstance],Object.defineProperty(Q,Symbol.hasInstance,{value:function(S){return Re.call(this,S)?!0:this!==Q?!1:S&&S._writableState instanceof Z}})):Re=function(S){return S instanceof this};function Q(N){x=x||require_stream_duplex();var S=this instanceof x;if(!S&&!Re.call(Q,this))return new Q(N);this._writableState=new Z(N,this,S),this.writable=!0,N&&(typeof N.write=="function"&&(this._write=N.write),typeof N.writev=="function"&&(this._writev=N.writev),typeof N.destroy=="function"&&(this._destroy=N.destroy),typeof N.final=="function"&&(this._final=N.final)),v.call(this)}Q.prototype.pipe=function(){C(this,new _)};function H(N,S){var P=new A;C(N,P),process$1.nextTick(S,P)}function Be(N,S,P,U){var K;return P===null?K=new E:typeof P!="string"&&!S.objectMode&&(K=new g("chunk",["string","Buffer"],P)),K?(C(N,K),process$1.nextTick(U,K),!1):!0}Q.prototype.write=function(N,S,P){var U=this._writableState,K=!1,L=!U.objectMode&&b(N);return L&&!q.isBuffer(N)&&(N=y(N)),typeof S=="function"&&(P=S,S=null),L?S="buffer":S||(S=U.defaultEncoding),typeof P!="function"&&(P=j),U.ending?H(this,P):(L||Be(this,U,N,P))&&(U.pendingcb++,K=e(this,U,L,N,S,P)),K},Q.prototype.cork=function(){this._writableState.corked++},Q.prototype.uncork=function(){var N=this._writableState;N.corked&&(N.corked--,!N.writing&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&a(this,N))},Q.prototype.setDefaultEncoding=function(S){if(typeof S=="string"&&(S=S.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((S+"").toLowerCase())>-1))throw new O(S);return this._writableState.defaultEncoding=S,this},Object.defineProperty(Q.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function h(N,S,P){return!N.objectMode&&N.decodeStrings!==!1&&typeof S=="string"&&(S=q.from(S,P)),S}Object.defineProperty(Q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function e(N,S,P,U,K,L){if(!P){var I=h(S,U,K);U!==I&&(P=!0,K="buffer",U=I)}var F=S.objectMode?1:U.length;S.length+=F;var Ee=S.length<S.highWaterMark;if(Ee||(S.needDrain=!0),S.writing||S.corked){var V=S.lastBufferedRequest;S.lastBufferedRequest={chunk:U,encoding:K,isBuf:P,callback:L,next:null},V?V.next=S.lastBufferedRequest:S.bufferedRequest=S.lastBufferedRequest,S.bufferedRequestCount+=1}else r(N,S,!1,F,U,K,L);return Ee}function r(N,S,P,U,K,L,I){S.writelen=U,S.writecb=I,S.writing=!0,S.sync=!0,S.destroyed?S.onwrite(new k("write")):P?N._writev(K,S.onwrite):N._write(K,L,S.onwrite),S.sync=!1}function i(N,S,P,U,K){--S.pendingcb,P?(process$1.nextTick(K,U),process$1.nextTick(T,N,S),N._writableState.errorEmitted=!0,C(N,U)):(K(U),N._writableState.errorEmitted=!0,C(N,U),T(N,S))}function f(N){N.writing=!1,N.writecb=null,N.length-=N.writelen,N.writelen=0}function o(N,S){var P=N._writableState,U=P.sync,K=P.writecb;if(typeof K!="function")throw new M;if(f(P),S)i(N,P,U,S,K);else{var L=t(P)||N.destroyed;!L&&!P.corked&&!P.bufferProcessing&&P.bufferedRequest&&a(N,P),U?process$1.nextTick(u,N,P,L,K):u(N,P,L,K)}}function u(N,S,P,U){P||d(N,S),S.pendingcb--,U(),T(N,S)}function d(N,S){S.length===0&&S.needDrain&&(S.needDrain=!1,N.emit("drain"))}function a(N,S){S.bufferProcessing=!0;var P=S.bufferedRequest;if(N._writev&&P&&P.next){var U=S.bufferedRequestCount,K=new Array(U),L=S.corkedRequestsFree;L.entry=P;for(var I=0,F=!0;P;)K[I]=P,P.isBuf||(F=!1),P=P.next,I+=1;K.allBuffers=F,r(N,S,!0,S.length,K,"",L.finish),S.pendingcb++,S.lastBufferedRequest=null,L.next?(S.corkedRequestsFree=L.next,L.next=null):S.corkedRequestsFree=new R(S),S.bufferedRequestCount=0}else{for(;P;){var Ee=P.chunk,V=P.encoding,W=P.callback,Ae=S.objectMode?1:Ee.length;if(r(N,S,!1,Ae,Ee,V,W),P=P.next,S.bufferedRequestCount--,S.writing)break}P===null&&(S.lastBufferedRequest=null)}S.bufferedRequest=P,S.bufferProcessing=!1}Q.prototype._write=function(N,S,P){P(new w("_write()"))},Q.prototype._writev=null,Q.prototype.end=function(N,S,P){var U=this._writableState;return typeof N=="function"?(P=N,N=null,S=null):typeof S=="function"&&(P=S,S=null),N!=null&&this.write(N,S),U.corked&&(U.corked=1,this.uncork()),U.ending||D(this,U,P),this},Object.defineProperty(Q.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function t(N){return N.ending&&N.length===0&&N.bufferedRequest===null&&!N.finished&&!N.writing}function s(N,S){N._final(function(P){S.pendingcb--,P&&C(N,P),S.prefinished=!0,N.emit("prefinish"),T(N,S)})}function $(N,S){!S.prefinished&&!S.finalCalled&&(typeof N._final=="function"&&!S.destroyed?(S.pendingcb++,S.finalCalled=!0,process$1.nextTick(s,N,S)):(S.prefinished=!0,N.emit("prefinish")))}function T(N,S){var P=t(S);if(P&&($(N,S),S.pendingcb===0&&(S.finished=!0,N.emit("finish"),S.autoDestroy))){var U=N._readableState;(!U||U.autoDestroy&&U.endEmitted)&&N.destroy()}return P}function D(N,S,P){S.ending=!0,T(N,S),P&&(S.finished?process$1.nextTick(P):N.once("finish",P)),S.ended=!0,N.writable=!1}function z(N,S,P){var U=N.entry;for(N.entry=null;U;){var K=U.callback;S.pendingcb--,K(P),U=U.next}S.corkedRequestsFree.next=N}return Object.defineProperty(Q.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(S){this._writableState&&(this._writableState.destroyed=S)}}),Q.prototype.destroy=m.destroy,Q.prototype._undestroy=m.undestroy,Q.prototype._destroy=function(N,S){S(N)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var R=Object.keys||function(c){var l=[];for(var p in c)l.push(p);return l};_stream_duplex=y;var x=require_stream_readable(),B=require_stream_writable();requireInherits_browser()(y,x);for(var v=R(B.prototype),q=0;q<v.length;q++){var n=v[q];y.prototype[n]||(y.prototype[n]=B.prototype[n])}function y(c){if(!(this instanceof y))return new y(c);x.call(this,c),B.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",b)))}Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function b(){this._writableState.ended||process$1.nextTick(m,this)}function m(c){c.end()}return Object.defineProperty(y.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(l){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=l,this._writableState.destroyed=l)}}),_stream_duplex}var endOfStream,hasRequiredEndOfStream;function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var R=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function x(n){var y=!1;return function(){if(!y){y=!0;for(var b=arguments.length,m=new Array(b),c=0;c<b;c++)m[c]=arguments[c];n.apply(this,m)}}}function B(){}function v(n){return n.setHeader&&typeof n.abort=="function"}function q(n,y,b){if(typeof y=="function")return q(n,null,y);y||(y={}),b=x(b||B);var m=y.readable||y.readable!==!1&&n.readable,c=y.writable||y.writable!==!1&&n.writable,l=function(){n.writable||g()},p=n._writableState&&n._writableState.finished,g=function(){c=!1,p=!0,m||b.call(n)},w=n._readableState&&n._readableState.endEmitted,M=function(){m=!1,w=!0,c||b.call(n)},_=function(O){b.call(n,O)},k=function(){var O;if(m&&!w)return(!n._readableState||!n._readableState.ended)&&(O=new R),b.call(n,O);if(c&&!p)return(!n._writableState||!n._writableState.ended)&&(O=new R),b.call(n,O)},E=function(){n.req.on("finish",g)};return v(n)?(n.on("complete",g),n.on("abort",k),n.req?E():n.on("request",E)):c&&!n._writableState&&(n.on("end",l),n.on("close",l)),n.on("end",M),n.on("finish",g),y.error!==!1&&n.on("error",_),n.on("close",k),function(){n.removeListener("complete",g),n.removeListener("abort",k),n.removeListener("request",E),n.req&&n.req.removeListener("finish",g),n.removeListener("end",l),n.removeListener("close",l),n.removeListener("finish",g),n.removeListener("end",M),n.removeListener("error",_),n.removeListener("close",k)}}return endOfStream=q,endOfStream}var async_iterator,hasRequiredAsync_iterator;function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;hasRequiredAsync_iterator=1;var R;function x(O,C,j){return C=B(C),C in O?Object.defineProperty(O,C,{value:j,enumerable:!0,configurable:!0,writable:!0}):O[C]=j,O}function B(O){var C=v(O,"string");return typeof C=="symbol"?C:String(C)}function v(O,C){if(typeof O!="object"||O===null)return O;var j=O[Symbol.toPrimitive];if(j!==void 0){var Z=j.call(O,C);if(typeof Z!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(O)}var q=requireEndOfStream(),n=Symbol("lastResolve"),y=Symbol("lastReject"),b=Symbol("error"),m=Symbol("ended"),c=Symbol("lastPromise"),l=Symbol("handlePromise"),p=Symbol("stream");function g(O,C){return{value:O,done:C}}function w(O){var C=O[n];if(C!==null){var j=O[p].read();j!==null&&(O[c]=null,O[n]=null,O[y]=null,C(g(j,!1)))}}function M(O){process$1.nextTick(w,O)}function _(O,C){return function(j,Z){O.then(function(){if(C[m]){j(g(void 0,!0));return}C[l](j,Z)},Z)}}var k=Object.getPrototypeOf(function(){}),E=Object.setPrototypeOf((R={get stream(){return this[p]},next:function(){var C=this,j=this[b];if(j!==null)return Promise.reject(j);if(this[m])return Promise.resolve(g(void 0,!0));if(this[p].destroyed)return new Promise(function(H,Be){process$1.nextTick(function(){C[b]?Be(C[b]):H(g(void 0,!0))})});var Z=this[c],Re;if(Z)Re=new Promise(_(Z,this));else{var Q=this[p].read();if(Q!==null)return Promise.resolve(g(Q,!1));Re=new Promise(this[l])}return this[c]=Re,Re}},x(R,Symbol.asyncIterator,function(){return this}),x(R,"return",function(){var C=this;return new Promise(function(j,Z){C[p].destroy(null,function(Re){if(Re){Z(Re);return}j(g(void 0,!0))})})}),R),k),A=function(C){var j,Z=Object.create(E,(j={},x(j,p,{value:C,writable:!0}),x(j,n,{value:null,writable:!0}),x(j,y,{value:null,writable:!0}),x(j,b,{value:null,writable:!0}),x(j,m,{value:C._readableState.endEmitted,writable:!0}),x(j,l,{value:function(Q,H){var Be=Z[p].read();Be?(Z[c]=null,Z[n]=null,Z[y]=null,Q(g(Be,!1))):(Z[n]=Q,Z[y]=H)},writable:!0}),j));return Z[c]=null,q(C,function(Re){if(Re&&Re.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Q=Z[y];Q!==null&&(Z[c]=null,Z[n]=null,Z[y]=null,Q(Re)),Z[b]=Re;return}var H=Z[n];H!==null&&(Z[c]=null,Z[n]=null,Z[y]=null,H(g(void 0,!0))),Z[m]=!0}),C.on("readable",M.bind(null,Z)),Z};return async_iterator=A,async_iterator}var fromBrowser,hasRequiredFromBrowser;function requireFromBrowser(){return hasRequiredFromBrowser||(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")}),fromBrowser}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1,_stream_readable=H;var R;H.ReadableState=Q,requireEvents().EventEmitter;var x=function(I,F){return I.listeners(F).length},B=requireStreamBrowser(),v=requireDist().Buffer,q=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(L){return v.from(L)}function y(L){return v.isBuffer(L)||L instanceof q}var b=requireUtil$1(),m;b&&b.debuglog?m=b.debuglog("stream"):m=function(){};var c=requireBuffer_list(),l=requireDestroy(),p=requireState(),g=p.getHighWaterMark,w=requireErrorsBrowser().codes,M=w.ERR_INVALID_ARG_TYPE,_=w.ERR_STREAM_PUSH_AFTER_EOF,k=w.ERR_METHOD_NOT_IMPLEMENTED,E=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,A,O,C;requireInherits_browser()(H,B);var j=l.errorOrDestroy,Z=["error","close","destroy","pause","resume"];function Re(L,I,F){if(typeof L.prependListener=="function")return L.prependListener(I,F);!L._events||!L._events[I]?L.on(I,F):Array.isArray(L._events[I])?L._events[I].unshift(F):L._events[I]=[F,L._events[I]]}function Q(L,I,F){R=R||require_stream_duplex(),L=L||{},typeof F!="boolean"&&(F=I instanceof R),this.objectMode=!!L.objectMode,F&&(this.objectMode=this.objectMode||!!L.readableObjectMode),this.highWaterMark=g(this,L,"readableHighWaterMark",F),this.buffer=new c,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=L.emitClose!==!1,this.autoDestroy=!!L.autoDestroy,this.destroyed=!1,this.defaultEncoding=L.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&(A||(A=requireString_decoder().StringDecoder),this.decoder=new A(L.encoding),this.encoding=L.encoding)}function H(L){if(R=R||require_stream_duplex(),!(this instanceof H))return new H(L);var I=this instanceof R;this._readableState=new Q(L,this,I),this.readable=!0,L&&(typeof L.read=="function"&&(this._read=L.read),typeof L.destroy=="function"&&(this._destroy=L.destroy)),B.call(this)}Object.defineProperty(H.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(I){this._readableState&&(this._readableState.destroyed=I)}}),H.prototype.destroy=l.destroy,H.prototype._undestroy=l.undestroy,H.prototype._destroy=function(L,I){I(L)},H.prototype.push=function(L,I){var F=this._readableState,Ee;return F.objectMode?Ee=!0:typeof L=="string"&&(I=I||F.defaultEncoding,I!==F.encoding&&(L=v.from(L,I),I=""),Ee=!0),Be(this,L,I,!1,Ee)},H.prototype.unshift=function(L){return Be(this,L,null,!0,!1)};function Be(L,I,F,Ee,V){m("readableAddChunk",I);var W=L._readableState;if(I===null)W.reading=!1,o(L,W);else{var Ae;if(V||(Ae=e(W,I)),Ae)j(L,Ae);else if(W.objectMode||I&&I.length>0)if(typeof I!="string"&&!W.objectMode&&Object.getPrototypeOf(I)!==v.prototype&&(I=n(I)),Ee)W.endEmitted?j(L,new E):h(L,W,I,!0);else if(W.ended)j(L,new _);else{if(W.destroyed)return!1;W.reading=!1,W.decoder&&!F?(I=W.decoder.write(I),W.objectMode||I.length!==0?h(L,W,I,!1):a(L,W)):h(L,W,I,!1)}else Ee||(W.reading=!1,a(L,W))}return!W.ended&&(W.length<W.highWaterMark||W.length===0)}function h(L,I,F,Ee){I.flowing&&I.length===0&&!I.sync?(I.awaitDrain=0,L.emit("data",F)):(I.length+=I.objectMode?1:F.length,Ee?I.buffer.unshift(F):I.buffer.push(F),I.needReadable&&u(L)),a(L,I)}function e(L,I){var F;return!y(I)&&typeof I!="string"&&I!==void 0&&!L.objectMode&&(F=new M("chunk",["string","Buffer","Uint8Array"],I)),F}H.prototype.isPaused=function(){return this._readableState.flowing===!1},H.prototype.setEncoding=function(L){A||(A=requireString_decoder().StringDecoder);var I=new A(L);this._readableState.decoder=I,this._readableState.encoding=this._readableState.decoder.encoding;for(var F=this._readableState.buffer.head,Ee="";F!==null;)Ee+=I.write(F.data),F=F.next;return this._readableState.buffer.clear(),Ee!==""&&this._readableState.buffer.push(Ee),this._readableState.length=Ee.length,this};var r=1073741824;function i(L){return L>=r?L=r:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}function f(L,I){return L<=0||I.length===0&&I.ended?0:I.objectMode?1:L!==L?I.flowing&&I.length?I.buffer.head.data.length:I.length:(L>I.highWaterMark&&(I.highWaterMark=i(L)),L<=I.length?L:I.ended?I.length:(I.needReadable=!0,0))}H.prototype.read=function(L){m("read",L),L=parseInt(L,10);var I=this._readableState,F=L;if(L!==0&&(I.emittedReadable=!1),L===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended))return m("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?P(this):u(this),null;if(L=f(L,I),L===0&&I.ended)return I.length===0&&P(this),null;var Ee=I.needReadable;m("need readable",Ee),(I.length===0||I.length-L<I.highWaterMark)&&(Ee=!0,m("length less than watermark",Ee)),I.ended||I.reading?(Ee=!1,m("reading or ended",Ee)):Ee&&(m("do read"),I.reading=!0,I.sync=!0,I.length===0&&(I.needReadable=!0),this._read(I.highWaterMark),I.sync=!1,I.reading||(L=f(F,I)));var V;return L>0?V=S(L,I):V=null,V===null?(I.needReadable=I.length<=I.highWaterMark,L=0):(I.length-=L,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),F!==L&&I.ended&&P(this)),V!==null&&this.emit("data",V),V};function o(L,I){if(m("onEofChunk"),!I.ended){if(I.decoder){var F=I.decoder.end();F&&F.length&&(I.buffer.push(F),I.length+=I.objectMode?1:F.length)}I.ended=!0,I.sync?u(L):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,d(L)))}}function u(L){var I=L._readableState;m("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(m("emitReadable",I.flowing),I.emittedReadable=!0,process$1.nextTick(d,L))}function d(L){var I=L._readableState;m("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(L.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,N(L)}function a(L,I){I.readingMore||(I.readingMore=!0,process$1.nextTick(t,L,I))}function t(L,I){for(;!I.reading&&!I.ended&&(I.length<I.highWaterMark||I.flowing&&I.length===0);){var F=I.length;if(m("maybeReadMore read 0"),L.read(0),F===I.length)break}I.readingMore=!1}H.prototype._read=function(L){j(this,new k("_read()"))},H.prototype.pipe=function(L,I){var F=this,Ee=this._readableState;switch(Ee.pipesCount){case 0:Ee.pipes=L;break;case 1:Ee.pipes=[Ee.pipes,L];break;default:Ee.pipes.push(L);break}Ee.pipesCount+=1,m("pipe count=%d opts=%j",Ee.pipesCount,I);var V=(!I||I.end!==!1)&&L!==process$1.stdout&&L!==process$1.stderr,W=V?G:$e;Ee.endEmitted?process$1.nextTick(W):F.once("end",W),L.on("unpipe",Ae);function Ae(te,re){m("onunpipe"),te===F&&re&&re.hasUnpiped===!1&&(re.hasUnpiped=!0,ie())}function G(){m("onend"),L.end()}var Y=s(F);L.on("drain",Y);var Ie=!1;function ie(){m("cleanup"),L.removeListener("close",X),L.removeListener("finish",J),L.removeListener("drain",Y),L.removeListener("error",ke),L.removeListener("unpipe",Ae),F.removeListener("end",G),F.removeListener("end",$e),F.removeListener("data",ee),Ie=!0,Ee.awaitDrain&&(!L._writableState||L._writableState.needDrain)&&Y()}F.on("data",ee);function ee(te){m("ondata");var re=L.write(te);m("dest.write",re),re===!1&&((Ee.pipesCount===1&&Ee.pipes===L||Ee.pipesCount>1&&K(Ee.pipes,L)!==-1)&&!Ie&&(m("false write response, pause",Ee.awaitDrain),Ee.awaitDrain++),F.pause())}function ke(te){m("onerror",te),$e(),L.removeListener("error",ke),x(L,"error")===0&&j(L,te)}Re(L,"error",ke);function X(){L.removeListener("finish",J),$e()}L.once("close",X);function J(){m("onfinish"),L.removeListener("close",X),$e()}L.once("finish",J);function $e(){m("unpipe"),F.unpipe(L)}return L.emit("pipe",F),Ee.flowing||(m("pipe resume"),F.resume()),L};function s(L){return function(){var F=L._readableState;m("pipeOnDrain",F.awaitDrain),F.awaitDrain&&F.awaitDrain--,F.awaitDrain===0&&x(L,"data")&&(F.flowing=!0,N(L))}}H.prototype.unpipe=function(L){var I=this._readableState,F={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return L&&L!==I.pipes?this:(L||(L=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,L&&L.emit("unpipe",this,F),this);if(!L){var Ee=I.pipes,V=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var W=0;W<V;W++)Ee[W].emit("unpipe",this,{hasUnpiped:!1});return this}var Ae=K(I.pipes,L);return Ae===-1?this:(I.pipes.splice(Ae,1),I.pipesCount-=1,I.pipesCount===1&&(I.pipes=I.pipes[0]),L.emit("unpipe",this,F),this)},H.prototype.on=function(L,I){var F=B.prototype.on.call(this,L,I),Ee=this._readableState;return L==="data"?(Ee.readableListening=this.listenerCount("readable")>0,Ee.flowing!==!1&&this.resume()):L==="readable"&&!Ee.endEmitted&&!Ee.readableListening&&(Ee.readableListening=Ee.needReadable=!0,Ee.flowing=!1,Ee.emittedReadable=!1,m("on readable",Ee.length,Ee.reading),Ee.length?u(this):Ee.reading||process$1.nextTick(T,this)),F},H.prototype.addListener=H.prototype.on,H.prototype.removeListener=function(L,I){var F=B.prototype.removeListener.call(this,L,I);return L==="readable"&&process$1.nextTick($,this),F},H.prototype.removeAllListeners=function(L){var I=B.prototype.removeAllListeners.apply(this,arguments);return(L==="readable"||L===void 0)&&process$1.nextTick($,this),I};function $(L){var I=L._readableState;I.readableListening=L.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:L.listenerCount("data")>0&&L.resume()}function T(L){m("readable nexttick read 0"),L.read(0)}H.prototype.resume=function(){var L=this._readableState;return L.flowing||(m("resume"),L.flowing=!L.readableListening,D(this,L)),L.paused=!1,this};function D(L,I){I.resumeScheduled||(I.resumeScheduled=!0,process$1.nextTick(z,L,I))}function z(L,I){m("resume",I.reading),I.reading||L.read(0),I.resumeScheduled=!1,L.emit("resume"),N(L),I.flowing&&!I.reading&&L.read(0)}H.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 N(L){var I=L._readableState;for(m("flow",I.flowing);I.flowing&&L.read()!==null;);}H.prototype.wrap=function(L){var I=this,F=this._readableState,Ee=!1;L.on("end",function(){if(m("wrapped end"),F.decoder&&!F.ended){var Ae=F.decoder.end();Ae&&Ae.length&&I.push(Ae)}I.push(null)}),L.on("data",function(Ae){if(m("wrapped data"),F.decoder&&(Ae=F.decoder.write(Ae)),!(F.objectMode&&Ae==null)&&!(!F.objectMode&&(!Ae||!Ae.length))){var G=I.push(Ae);G||(Ee=!0,L.pause())}});for(var V in L)this[V]===void 0&&typeof L[V]=="function"&&(this[V]=(function(G){return function(){return L[G].apply(L,arguments)}})(V));for(var W=0;W<Z.length;W++)L.on(Z[W],this.emit.bind(this,Z[W]));return this._read=function(Ae){m("wrapped _read",Ae),Ee&&(Ee=!1,L.resume())},this},typeof Symbol=="function"&&(H.prototype[Symbol.asyncIterator]=function(){return O===void 0&&(O=requireAsync_iterator()),O(this)}),Object.defineProperty(H.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(H.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(H.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(I){this._readableState&&(this._readableState.flowing=I)}}),H._fromList=S,Object.defineProperty(H.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function S(L,I){if(I.length===0)return null;var F;return I.objectMode?F=I.buffer.shift():!L||L>=I.length?(I.decoder?F=I.buffer.join(""):I.buffer.length===1?F=I.buffer.first():F=I.buffer.concat(I.length),I.buffer.clear()):F=I.buffer.consume(L,I.decoder),F}function P(L){var I=L._readableState;m("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,process$1.nextTick(U,I,L))}function U(L,I){if(m("endReadableNT",L.endEmitted,L.length),!L.endEmitted&&L.length===0&&(L.endEmitted=!0,I.readable=!1,I.emit("end"),L.autoDestroy)){var F=I._writableState;(!F||F.autoDestroy&&F.finished)&&I.destroy()}}typeof Symbol=="function"&&(H.from=function(L,I){return C===void 0&&(C=requireFromBrowser()),C(H,L,I)});function K(L,I){for(var F=0,Ee=L.length;F<Ee;F++)if(L[F]===I)return F;return-1}return _stream_readable}var _stream_transform,hasRequired_stream_transform;function require_stream_transform(){if(hasRequired_stream_transform)return _stream_transform;hasRequired_stream_transform=1,_stream_transform=b;var R=requireErrorsBrowser().codes,x=R.ERR_METHOD_NOT_IMPLEMENTED,B=R.ERR_MULTIPLE_CALLBACK,v=R.ERR_TRANSFORM_ALREADY_TRANSFORMING,q=R.ERR_TRANSFORM_WITH_LENGTH_0,n=require_stream_duplex();requireInherits_browser()(b,n);function y(l,p){var g=this._transformState;g.transforming=!1;var w=g.writecb;if(w===null)return this.emit("error",new B);g.writechunk=null,g.writecb=null,p!=null&&this.push(p),w(l);var M=this._readableState;M.reading=!1,(M.needReadable||M.length<M.highWaterMark)&&this._read(M.highWaterMark)}function b(l){if(!(this instanceof b))return new b(l);n.call(this,l),this._transformState={afterTransform:y.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",m)}function m(){var l=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(p,g){c(l,p,g)}):c(this,null,null)}b.prototype.push=function(l,p){return this._transformState.needTransform=!1,n.prototype.push.call(this,l,p)},b.prototype._transform=function(l,p,g){g(new x("_transform()"))},b.prototype._write=function(l,p,g){var w=this._transformState;if(w.writecb=g,w.writechunk=l,w.writeencoding=p,!w.transforming){var M=this._readableState;(w.needTransform||M.needReadable||M.length<M.highWaterMark)&&this._read(M.highWaterMark)}},b.prototype._read=function(l){var p=this._transformState;p.writechunk!==null&&!p.transforming?(p.transforming=!0,this._transform(p.writechunk,p.writeencoding,p.afterTransform)):p.needTransform=!0},b.prototype._destroy=function(l,p){n.prototype._destroy.call(this,l,function(g){p(g)})};function c(l,p,g){if(p)return l.emit("error",p);if(g!=null&&l.push(g),l._writableState.length)throw new q;if(l._transformState.transforming)throw new v;return l.push(null)}return _stream_transform}var _stream_passthrough,hasRequired_stream_passthrough;function require_stream_passthrough(){if(hasRequired_stream_passthrough)return _stream_passthrough;hasRequired_stream_passthrough=1,_stream_passthrough=x;var R=require_stream_transform();requireInherits_browser()(x,R);function x(B){if(!(this instanceof x))return new x(B);R.call(this,B)}return x.prototype._transform=function(B,v,q){q(null,B)},_stream_passthrough}var pipeline_1,hasRequiredPipeline;function requirePipeline(){if(hasRequiredPipeline)return pipeline_1;hasRequiredPipeline=1;var R;function x(g){var w=!1;return function(){w||(w=!0,g.apply(void 0,arguments))}}var B=requireErrorsBrowser().codes,v=B.ERR_MISSING_ARGS,q=B.ERR_STREAM_DESTROYED;function n(g){if(g)throw g}function y(g){return g.setHeader&&typeof g.abort=="function"}function b(g,w,M,_){_=x(_);var k=!1;g.on("close",function(){k=!0}),R===void 0&&(R=requireEndOfStream()),R(g,{readable:w,writable:M},function(A){if(A)return _(A);k=!0,_()});var E=!1;return function(A){if(!k&&!E){if(E=!0,y(g))return g.abort();if(typeof g.destroy=="function")return g.destroy();_(A||new q("pipe"))}}}function m(g){g()}function c(g,w){return g.pipe(w)}function l(g){return!g.length||typeof g[g.length-1]!="function"?n:g.pop()}function p(){for(var g=arguments.length,w=new Array(g),M=0;M<g;M++)w[M]=arguments[M];var _=l(w);if(Array.isArray(w[0])&&(w=w[0]),w.length<2)throw new v("streams");var k,E=w.map(function(A,O){var C=O<w.length-1,j=O>0;return b(A,C,j,function(Z){k||(k=Z),Z&&E.forEach(m),!C&&(E.forEach(m),_(k))})});return w.reduce(c)}return pipeline_1=p,pipeline_1}var streamBrowserify,hasRequiredStreamBrowserify;function requireStreamBrowserify(){if(hasRequiredStreamBrowserify)return streamBrowserify;hasRequiredStreamBrowserify=1,streamBrowserify=B;var R=requireEvents().EventEmitter,x=requireInherits_browser();x(B,R),B.Readable=require_stream_readable(),B.Writable=require_stream_writable(),B.Duplex=require_stream_duplex(),B.Transform=require_stream_transform(),B.PassThrough=require_stream_passthrough(),B.finished=requireEndOfStream(),B.pipeline=requirePipeline(),B.Stream=B;function B(){R.call(this)}return B.prototype.pipe=function(v,q){var n=this;function y(w){v.writable&&v.write(w)===!1&&n.pause&&n.pause()}n.on("data",y);function b(){n.readable&&n.resume&&n.resume()}v.on("drain",b),!v._isStdio&&(!q||q.end!==!1)&&(n.on("end",c),n.on("close",l));var m=!1;function c(){m||(m=!0,v.end())}function l(){m||(m=!0,typeof v.destroy=="function"&&v.destroy())}function p(w){if(g(),R.listenerCount(this,"error")===0)throw w}n.on("error",p),v.on("error",p);function g(){n.removeListener("data",y),v.removeListener("drain",b),n.removeListener("end",c),n.removeListener("close",l),n.removeListener("error",p),v.removeListener("error",p),n.removeListener("end",g),n.removeListener("close",g),v.removeListener("close",g)}return n.on("end",g),n.on("close",g),v.on("close",g),v.emit("pipe",n),v},streamBrowserify}var cipherBase,hasRequiredCipherBase;function requireCipherBase(){if(hasRequiredCipherBase)return cipherBase;hasRequiredCipherBase=1;var R=requireSafeBuffer$1().Buffer,x=requireStreamBrowserify().Transform,B=requireString_decoder().StringDecoder,v=requireInherits_browser(),q=requireToBuffer$2();function n(y){x.call(this),this.hashMode=typeof y=="string",this.hashMode?this[y]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}return v(n,x),n.prototype.update=function(y,b,m){var c=q(y,b),l=this._update(c);return this.hashMode?this:(m&&(l=this._toString(l,m)),l)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(y,b,m){var c;try{this.hashMode?this._update(y):this.push(this._update(y))}catch(l){c=l}finally{m(c)}},n.prototype._flush=function(y){var b;try{this.push(this.__final())}catch(m){b=m}y(b)},n.prototype._finalOrDigest=function(y){var b=this.__final()||R.alloc(0);return y&&(b=this._toString(b,y,!0)),b},n.prototype._toString=function(y,b,m){if(this._decoder||(this._decoder=new B(b),this._encoding=b),this._encoding!==b)throw new Error("can’t switch encodings");var c=this._decoder.write(y);return m&&(c+=this._decoder.end()),c},cipherBase=n,cipherBase}var browser$9,hasRequiredBrowser$9;function requireBrowser$9(){if(hasRequiredBrowser$9)return browser$9;hasRequiredBrowser$9=1;var R=requireInherits_browser(),x=requireMd5_js(),B=requireRipemd160(),v=requireSha_js(),q=requireCipherBase();function n(y){q.call(this,"digest"),this._hash=y}return R(n,q),n.prototype._update=function(y){this._hash.update(y)},n.prototype._final=function(){return this._hash.digest()},browser$9=function(b){return b=b.toLowerCase(),b==="md5"?new x:b==="rmd160"||b==="ripemd160"?new B:new n(v(b))},browser$9}var legacy,hasRequiredLegacy;function requireLegacy(){if(hasRequiredLegacy)return legacy;hasRequiredLegacy=1;var R=requireInherits_browser(),x=requireSafeBuffer$1().Buffer,B=requireCipherBase(),v=x.alloc(128),q=64;function n(y,b){B.call(this,"digest"),typeof b=="string"&&(b=x.from(b)),this._alg=y,this._key=b,b.length>q?b=y(b):b.length<q&&(b=x.concat([b,v],q));for(var m=this._ipad=x.allocUnsafe(q),c=this._opad=x.allocUnsafe(q),l=0;l<q;l++)m[l]=b[l]^54,c[l]=b[l]^92;this._hash=[m]}return R(n,B),n.prototype._update=function(y){this._hash.push(y)},n.prototype._final=function(){var y=this._alg(x.concat(this._hash));return this._alg(x.concat([this._opad,y]))},legacy=n,legacy}var md5,hasRequiredMd5;function requireMd5(){if(hasRequiredMd5)return md5;hasRequiredMd5=1;var R=requireMd5_js();return md5=function(x){return new R().update(x).digest()},md5}var browser$8,hasRequiredBrowser$8;function requireBrowser$8(){if(hasRequiredBrowser$8)return browser$8;hasRequiredBrowser$8=1;var R=requireInherits_browser(),x=requireLegacy(),B=requireCipherBase(),v=requireSafeBuffer$1().Buffer,q=requireMd5(),n=requireRipemd160(),y=requireSha_js(),b=v.alloc(128);function m(c,l){B.call(this,"digest"),typeof l=="string"&&(l=v.from(l));var p=c==="sha512"||c==="sha384"?128:64;if(this._alg=c,this._key=l,l.length>p){var g=c==="rmd160"?new n:y(c);l=g.update(l).digest()}else l.length<p&&(l=v.concat([l,b],p));for(var w=this._ipad=v.allocUnsafe(p),M=this._opad=v.allocUnsafe(p),_=0;_<p;_++)w[_]=l[_]^54,M[_]=l[_]^92;this._hash=c==="rmd160"?new n:y(c),this._hash.update(w)}return R(m,B),m.prototype._update=function(c){this._hash.update(c)},m.prototype._final=function(){var c=this._hash.digest(),l=this._alg==="rmd160"?new n:y(this._alg);return l.update(this._opad).update(c).digest()},browser$8=function(l,p){return l=l.toLowerCase(),l==="rmd160"||l==="ripemd160"?new m("rmd160",p):l==="md5"?new x(q,p):new m(l,p)},browser$8}const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256={sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha224={sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha384={sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512={sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},require$$6={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"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,sha224,sha384,sha512,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"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,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var algos,hasRequiredAlgos;function requireAlgos(){return hasRequiredAlgos||(hasRequiredAlgos=1,algos=require$$6),algos}var browser$7={},precondition,hasRequiredPrecondition;function requirePrecondition(){if(hasRequiredPrecondition)return precondition;hasRequiredPrecondition=1;var R=isFinite,x=Math.pow(2,30)-1;return precondition=function(B,v){if(typeof B!="number")throw new TypeError("Iterations not a number");if(B<0||!R(B))throw new TypeError("Bad iterations");if(typeof v!="number")throw new TypeError("Key length not a number");if(v<0||v>x||v!==v)throw new TypeError("Bad key length");return v+0},precondition}var defaultEncoding_1,hasRequiredDefaultEncoding;function requireDefaultEncoding(){if(hasRequiredDefaultEncoding)return defaultEncoding_1;hasRequiredDefaultEncoding=1;var R;if(commonjsGlobal.process&&commonjsGlobal.process.browser)R="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var x=parseInt(process$1.version.split(".")[0].slice(1),10);R=x>=6?"utf-8":"binary"}else R="utf-8";return defaultEncoding_1=R,defaultEncoding_1}var toBuffer_1,hasRequiredToBuffer;function requireToBuffer(){if(hasRequiredToBuffer)return toBuffer_1;hasRequiredToBuffer=1;var R=requireSafeBuffer$1().Buffer,x=requireToBuffer$2(),B=typeof Uint8Array<"u",v=B&&typeof ArrayBuffer<"u",q=v&&ArrayBuffer.isView;return toBuffer_1=function(n,y,b){if(typeof n=="string"||R.isBuffer(n)||B&&n instanceof Uint8Array||q&&q(n))return x(n,y);throw new TypeError(b+" must be a string, a Buffer, a Uint8Array, or a DataView")},toBuffer_1}var syncBrowser,hasRequiredSyncBrowser;function requireSyncBrowser(){if(hasRequiredSyncBrowser)return syncBrowser;hasRequiredSyncBrowser=1;var R=requireMd5(),x=requireRipemd160(),B=requireSha_js(),v=requireSafeBuffer$1().Buffer,q=requirePrecondition(),n=requireDefaultEncoding(),y=requireToBuffer(),b=v.alloc(128),m={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},c={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function l(M){return new x().update(M).digest()}function p(M){function _(k){return B(M).update(k).digest()}return M==="rmd160"||M==="ripemd160"?l:M==="md5"?R:_}function g(M,_,k){var E=p(M),A=M==="sha512"||M==="sha384"?128:64;_.length>A?_=E(_):_.length<A&&(_=v.concat([_,b],A));for(var O=v.allocUnsafe(A+m[M]),C=v.allocUnsafe(A+m[M]),j=0;j<A;j++)O[j]=_[j]^54,C[j]=_[j]^92;var Z=v.allocUnsafe(A+k+4);O.copy(Z,0,0,A),this.ipad1=Z,this.ipad2=O,this.opad=C,this.alg=M,this.blocksize=A,this.hash=E,this.size=m[M]}g.prototype.run=function(M,_){M.copy(_,this.blocksize);var k=this.hash(_);return k.copy(this.opad,this.blocksize),this.hash(this.opad)};function w(M,_,k,E,A){E=q(k,E),M=y(M,n,"Password"),_=y(_,n,"Salt");var O=(A||"sha1").toLowerCase(),C=c[O]||O,j=m[C];if(typeof j!="number"||!j)throw new TypeError("Digest algorithm not supported: "+A);var Z=new g(C,M,_.length),Re=v.allocUnsafe(E),Q=v.allocUnsafe(_.length+4);_.copy(Q,0,0,_.length);for(var H=0,Be=j,h=Math.ceil(E/Be),e=1;e<=h;e++){Q.writeUInt32BE(e,_.length);for(var r=Z.run(Q,Z.ipad1),i=r,f=1;f<k;f++){i=Z.run(i,Z.ipad2);for(var o=0;o<Be;o++)r[o]^=i[o]}r.copy(Re,H),H+=Be}return Re}return syncBrowser=w,syncBrowser}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var R=requireSafeBuffer$1().Buffer,x=requirePrecondition(),B=requireDefaultEncoding(),v=requireSyncBrowser(),q=requireToBuffer(),n,y=commonjsGlobal.crypto&&commonjsGlobal.crypto.subtle,b={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=[],c;function l(){return c||(commonjsGlobal.process&&commonjsGlobal.process.nextTick?c=commonjsGlobal.process.nextTick:commonjsGlobal.queueMicrotask?c=commonjsGlobal.queueMicrotask:commonjsGlobal.setImmediate?c=commonjsGlobal.setImmediate:c=commonjsGlobal.setTimeout,c)}function p(M,_,k,E,A){return y.importKey("raw",M,{name:"PBKDF2"},!1,["deriveBits"]).then(function(O){return y.deriveBits({name:"PBKDF2",salt:_,iterations:k,hash:{name:A}},O,E<<3)}).then(function(O){return R.from(O)})}function g(M){if(commonjsGlobal.process&&!commonjsGlobal.process.browser||!y||!y.importKey||!y.deriveBits)return Promise.resolve(!1);if(m[M]!==void 0)return m[M];n=n||R.alloc(8);var _=p(n,n,10,128,M).then(function(){return!0},function(){return!1});return m[M]=_,_}function w(M,_){M.then(function(k){l()(function(){_(null,k)})},function(k){l()(function(){_(k)})})}return async=function(M,_,k,E,A,O){if(typeof A=="function"&&(O=A,A=void 0),E=x(k,E),M=q(M,B,"Password"),_=q(_,B,"Salt"),typeof O!="function")throw new Error("No callback provided to pbkdf2");A=A||"sha1";var C=b[A.toLowerCase()];if(!C||typeof commonjsGlobal.Promise!="function"){l()(function(){var j;try{j=v(M,_,k,E,A)}catch(Z){O(Z);return}O(null,j)});return}w(g(C).then(function(j){return j?p(M,_,k,E,C):v(M,_,k,E,A)}),O)},async}var hasRequiredBrowser$7;function requireBrowser$7(){return hasRequiredBrowser$7||(hasRequiredBrowser$7=1,browser$7.pbkdf2=requireAsync(),browser$7.pbkdf2Sync=requireSyncBrowser()),browser$7}var browser$6={},des$1={},utils$2={},hasRequiredUtils$2;function requireUtils$2(){if(hasRequiredUtils$2)return utils$2;hasRequiredUtils$2=1,utils$2.readUInt32BE=function(q,n){var y=q[0+n]<<24|q[1+n]<<16|q[2+n]<<8|q[3+n];return y>>>0},utils$2.writeUInt32BE=function(q,n,y){q[0+y]=n>>>24,q[1+y]=n>>>16&255,q[2+y]=n>>>8&255,q[3+y]=n&255},utils$2.ip=function(q,n,y,b){for(var m=0,c=0,l=6;l>=0;l-=2){for(var p=0;p<=24;p+=8)m<<=1,m|=n>>>p+l&1;for(var p=0;p<=24;p+=8)m<<=1,m|=q>>>p+l&1}for(var l=6;l>=0;l-=2){for(var p=1;p<=25;p+=8)c<<=1,c|=n>>>p+l&1;for(var p=1;p<=25;p+=8)c<<=1,c|=q>>>p+l&1}y[b+0]=m>>>0,y[b+1]=c>>>0},utils$2.rip=function(q,n,y,b){for(var m=0,c=0,l=0;l<4;l++)for(var p=24;p>=0;p-=8)m<<=1,m|=n>>>p+l&1,m<<=1,m|=q>>>p+l&1;for(var l=4;l<8;l++)for(var p=24;p>=0;p-=8)c<<=1,c|=n>>>p+l&1,c<<=1,c|=q>>>p+l&1;y[b+0]=m>>>0,y[b+1]=c>>>0},utils$2.pc1=function(q,n,y,b){for(var m=0,c=0,l=7;l>=5;l--){for(var p=0;p<=24;p+=8)m<<=1,m|=n>>p+l&1;for(var p=0;p<=24;p+=8)m<<=1,m|=q>>p+l&1}for(var p=0;p<=24;p+=8)m<<=1,m|=n>>p+l&1;for(var l=1;l<=3;l++){for(var p=0;p<=24;p+=8)c<<=1,c|=n>>p+l&1;for(var p=0;p<=24;p+=8)c<<=1,c|=q>>p+l&1}for(var p=0;p<=24;p+=8)c<<=1,c|=q>>p+l&1;y[b+0]=m>>>0,y[b+1]=c>>>0},utils$2.r28shl=function(q,n){return q<<n&268435455|q>>>28-n};var R=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$2.pc2=function(q,n,y,b){for(var m=0,c=0,l=R.length>>>1,p=0;p<l;p++)m<<=1,m|=q>>>R[p]&1;for(var p=l;p<R.length;p++)c<<=1,c|=n>>>R[p]&1;y[b+0]=m>>>0,y[b+1]=c>>>0},utils$2.expand=function(q,n,y){var b=0,m=0;b=(q&1)<<5|q>>>27;for(var c=23;c>=15;c-=4)b<<=6,b|=q>>>c&63;for(var c=11;c>=3;c-=4)m|=q>>>c&63,m<<=6;m|=(q&31)<<1|q>>>31,n[y+0]=b>>>0,n[y+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];utils$2.substitute=function(q,n){for(var y=0,b=0;b<4;b++){var m=q>>>18-b*6&63,c=x[b*64+m];y<<=4,y|=c}for(var b=0;b<4;b++){var m=n>>>18-b*6&63,c=x[256+b*64+m];y<<=4,y|=c}return y>>>0};var B=[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 utils$2.permute=function(q){for(var n=0,y=0;y<B.length;y++)n<<=1,n|=q>>>B[y]&1;return n>>>0},utils$2.padSplit=function(q,n,y){for(var b=q.toString(2);b.length<n;)b="0"+b;for(var m=[],c=0;c<n;c+=y)m.push(b.slice(c,c+y));return m.join(" ")},utils$2}var cipher,hasRequiredCipher;function requireCipher(){if(hasRequiredCipher)return cipher;hasRequiredCipher=1;var R=requireMinimalisticAssert();function x(B){this.options=B,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=B.padding!==!1}return cipher=x,x.prototype._init=function(){},x.prototype.update=function(v){return v.length===0?[]:this.type==="decrypt"?this._updateDecrypt(v):this._updateEncrypt(v)},x.prototype._buffer=function(v,q){for(var n=Math.min(this.buffer.length-this.bufferOff,v.length-q),y=0;y<n;y++)this.buffer[this.bufferOff+y]=v[q+y];return this.bufferOff+=n,n},x.prototype._flushBuffer=function(v,q){return this._update(this.buffer,0,v,q),this.bufferOff=0,this.blockSize},x.prototype._updateEncrypt=function(v){var q=0,n=0,y=(this.bufferOff+v.length)/this.blockSize|0,b=new Array(y*this.blockSize);this.bufferOff!==0&&(q+=this._buffer(v,q),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(b,n)));for(var m=v.length-(v.length-q)%this.blockSize;q<m;q+=this.blockSize)this._update(v,q,b,n),n+=this.blockSize;for(;q<v.length;q++,this.bufferOff++)this.buffer[this.bufferOff]=v[q];return b},x.prototype._updateDecrypt=function(v){for(var q=0,n=0,y=Math.ceil((this.bufferOff+v.length)/this.blockSize)-1,b=new Array(y*this.blockSize);y>0;y--)q+=this._buffer(v,q),n+=this._flushBuffer(b,n);return q+=this._buffer(v,q),b},x.prototype.final=function(v){var q;v&&(q=this.update(v));var n;return this.type==="encrypt"?n=this._finalEncrypt():n=this._finalDecrypt(),q?q.concat(n):n},x.prototype._pad=function(v,q){if(q===0)return!1;for(;q<v.length;)v[q++]=0;return!0},x.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var v=new Array(this.blockSize);return this._update(this.buffer,0,v,0),v},x.prototype._unpad=function(v){return v},x.prototype._finalDecrypt=function(){R.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var v=new Array(this.blockSize);return this._flushBuffer(v,0),this._unpad(v)},cipher}var des,hasRequiredDes$1;function requireDes$1(){if(hasRequiredDes$1)return des;hasRequiredDes$1=1;var R=requireMinimalisticAssert(),x=requireInherits_browser(),B=requireUtils$2(),v=requireCipher();function q(){this.tmp=new Array(2),this.keys=null}function n(b){v.call(this,b);var m=new q;this._desState=m,this.deriveKeys(m,b.key)}x(n,v),des=n,n.create=function(m){return new n(m)};var y=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];return n.prototype.deriveKeys=function(m,c){m.keys=new Array(32),R.equal(c.length,this.blockSize,"Invalid key length");var l=B.readUInt32BE(c,0),p=B.readUInt32BE(c,4);B.pc1(l,p,m.tmp,0),l=m.tmp[0],p=m.tmp[1];for(var g=0;g<m.keys.length;g+=2){var w=y[g>>>1];l=B.r28shl(l,w),p=B.r28shl(p,w),B.pc2(l,p,m.keys,g)}},n.prototype._update=function(m,c,l,p){var g=this._desState,w=B.readUInt32BE(m,c),M=B.readUInt32BE(m,c+4);B.ip(w,M,g.tmp,0),w=g.tmp[0],M=g.tmp[1],this.type==="encrypt"?this._encrypt(g,w,M,g.tmp,0):this._decrypt(g,w,M,g.tmp,0),w=g.tmp[0],M=g.tmp[1],B.writeUInt32BE(l,w,p),B.writeUInt32BE(l,M,p+4)},n.prototype._pad=function(m,c){if(this.padding===!1)return!1;for(var l=m.length-c,p=c;p<m.length;p++)m[p]=l;return!0},n.prototype._unpad=function(m){if(this.padding===!1)return m;for(var c=m[m.length-1],l=m.length-c;l<m.length;l++)R.equal(m[l],c);return m.slice(0,m.length-c)},n.prototype._encrypt=function(m,c,l,p,g){for(var w=c,M=l,_=0;_<m.keys.length;_+=2){var k=m.keys[_],E=m.keys[_+1];B.expand(M,m.tmp,0),k^=m.tmp[0],E^=m.tmp[1];var A=B.substitute(k,E),O=B.permute(A),C=M;M=(w^O)>>>0,w=C}B.rip(M,w,p,g)},n.prototype._decrypt=function(m,c,l,p,g){for(var w=l,M=c,_=m.keys.length-2;_>=0;_-=2){var k=m.keys[_],E=m.keys[_+1];B.expand(w,m.tmp,0),k^=m.tmp[0],E^=m.tmp[1];var A=B.substitute(k,E),O=B.permute(A),C=w;w=(M^O)>>>0,M=C}B.rip(w,M,p,g)},des}var cbc$1={},hasRequiredCbc$1;function requireCbc$1(){if(hasRequiredCbc$1)return cbc$1;hasRequiredCbc$1=1;var R=requireMinimalisticAssert(),x=requireInherits_browser(),B={};function v(n){R.equal(n.length,8,"Invalid IV length"),this.iv=new Array(8);for(var y=0;y<this.iv.length;y++)this.iv[y]=n[y]}function q(n){function y(l){n.call(this,l),this._cbcInit()}x(y,n);for(var b=Object.keys(B),m=0;m<b.length;m++){var c=b[m];y.prototype[c]=B[c]}return y.create=function(p){return new y(p)},y}return cbc$1.instantiate=q,B._cbcInit=function(){var y=new v(this.options.iv);this._cbcState=y},B._update=function(y,b,m,c){var l=this._cbcState,p=this.constructor.super_.prototype,g=l.iv;if(this.type==="encrypt"){for(var w=0;w<this.blockSize;w++)g[w]^=y[b+w];p._update.call(this,g,0,m,c);for(var w=0;w<this.blockSize;w++)g[w]=m[c+w]}else{p._update.call(this,y,b,m,c);for(var w=0;w<this.blockSize;w++)m[c+w]^=g[w];for(var w=0;w<this.blockSize;w++)g[w]=y[b+w]}},cbc$1}var ede,hasRequiredEde;function requireEde(){if(hasRequiredEde)return ede;hasRequiredEde=1;var R=requireMinimalisticAssert(),x=requireInherits_browser(),B=requireCipher(),v=requireDes$1();function q(y,b){R.equal(b.length,24,"Invalid key length");var m=b.slice(0,8),c=b.slice(8,16),l=b.slice(16,24);y==="encrypt"?this.ciphers=[v.create({type:"encrypt",key:m}),v.create({type:"decrypt",key:c}),v.create({type:"encrypt",key:l})]:this.ciphers=[v.create({type:"decrypt",key:l}),v.create({type:"encrypt",key:c}),v.create({type:"decrypt",key:m})]}function n(y){B.call(this,y);var b=new q(this.type,this.options.key);this._edeState=b}return x(n,B),ede=n,n.create=function(b){return new n(b)},n.prototype._update=function(b,m,c,l){var p=this._edeState;p.ciphers[0]._update(b,m,c,l),p.ciphers[1]._update(c,l,c,l),p.ciphers[2]._update(c,l,c,l)},n.prototype._pad=v.prototype._pad,n.prototype._unpad=v.prototype._unpad,ede}var hasRequiredDes;function requireDes(){return hasRequiredDes||(hasRequiredDes=1,des$1.utils=requireUtils$2(),des$1.Cipher=requireCipher(),des$1.DES=requireDes$1(),des$1.CBC=requireCbc$1(),des$1.EDE=requireEde()),des$1}var browserifyDes,hasRequiredBrowserifyDes;function requireBrowserifyDes(){if(hasRequiredBrowserifyDes)return browserifyDes;hasRequiredBrowserifyDes=1;var R=requireCipherBase(),x=requireDes(),B=requireInherits_browser(),v=requireSafeBuffer$1().Buffer,q={"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};q.des=q["des-cbc"],q.des3=q["des-ede3-cbc"],browserifyDes=n,B(n,R);function n(y){R.call(this);var b=y.mode.toLowerCase(),m=q[b],c;y.decrypt?c="decrypt":c="encrypt";var l=y.key;v.isBuffer(l)||(l=v.from(l)),(b==="des-ede"||b==="des-ede-cbc")&&(l=v.concat([l,l.slice(0,8)]));var p=y.iv;v.isBuffer(p)||(p=v.from(p)),this._des=m.create({key:l,iv:p,type:c})}return n.prototype._update=function(y){return v.from(this._des.update(y))},n.prototype._final=function(){return v.from(this._des.final())},browserifyDes}var browser$5={},encrypter={},ecb={},hasRequiredEcb;function requireEcb(){return hasRequiredEcb||(hasRequiredEcb=1,ecb.encrypt=function(R,x){return R._cipher.encryptBlock(x)},ecb.decrypt=function(R,x){return R._cipher.decryptBlock(x)}),ecb}var cbc={},bufferXor,hasRequiredBufferXor;function requireBufferXor(){return hasRequiredBufferXor||(hasRequiredBufferXor=1,bufferXor=function(x,B){for(var v=Math.min(x.length,B.length),q=new Buffer(v),n=0;n<v;++n)q[n]=x[n]^B[n];return q}),bufferXor}var hasRequiredCbc;function requireCbc(){if(hasRequiredCbc)return cbc;hasRequiredCbc=1;var R=requireBufferXor();return cbc.encrypt=function(x,B){var v=R(B,x._prev);return x._prev=x._cipher.encryptBlock(v),x._prev},cbc.decrypt=function(x,B){var v=x._prev;x._prev=B;var q=x._cipher.decryptBlock(B);return R(q,v)},cbc}var cfb={},hasRequiredCfb;function requireCfb(){if(hasRequiredCfb)return cfb;hasRequiredCfb=1;var R=requireSafeBuffer$1().Buffer,x=requireBufferXor();function B(v,q,n){var y=q.length,b=x(q,v._cache);return v._cache=v._cache.slice(y),v._prev=R.concat([v._prev,n?q:b]),b}return cfb.encrypt=function(v,q,n){for(var y=R.allocUnsafe(0),b;q.length;)if(v._cache.length===0&&(v._cache=v._cipher.encryptBlock(v._prev),v._prev=R.allocUnsafe(0)),v._cache.length<=q.length)b=v._cache.length,y=R.concat([y,B(v,q.slice(0,b),n)]),q=q.slice(b);else{y=R.concat([y,B(v,q,n)]);break}return y},cfb}var cfb8={},hasRequiredCfb8;function requireCfb8(){if(hasRequiredCfb8)return cfb8;hasRequiredCfb8=1;var R=requireSafeBuffer$1().Buffer;function x(B,v,q){var n=B._cipher.encryptBlock(B._prev),y=n[0]^v;return B._prev=R.concat([B._prev.slice(1),R.from([q?v:y])]),y}return cfb8.encrypt=function(B,v,q){for(var n=v.length,y=R.allocUnsafe(n),b=-1;++b<n;)y[b]=x(B,v[b],q);return y},cfb8}var cfb1={},hasRequiredCfb1;function requireCfb1(){if(hasRequiredCfb1)return cfb1;hasRequiredCfb1=1;var R=requireSafeBuffer$1().Buffer;function x(v,q,n){for(var y,b=-1,m=8,c=0,l,p;++b<m;)y=v._cipher.encryptBlock(v._prev),l=q&1<<7-b?128:0,p=y[0]^l,c+=(p&128)>>b%8,v._prev=B(v._prev,n?l:p);return c}function B(v,q){var n=v.length,y=-1,b=R.allocUnsafe(v.length);for(v=R.concat([v,R.from([q])]);++y<n;)b[y]=v[y]<<1|v[y+1]>>7;return b}return cfb1.encrypt=function(v,q,n){for(var y=q.length,b=R.allocUnsafe(y),m=-1;++m<y;)b[m]=x(v,q[m],n);return b},cfb1}var ofb={},hasRequiredOfb;function requireOfb(){if(hasRequiredOfb)return ofb;hasRequiredOfb=1;var R=requireBufferXor();function x(B){return B._prev=B._cipher.encryptBlock(B._prev),B._prev}return ofb.encrypt=function(B,v){for(;B._cache.length<v.length;)B._cache=Buffer.concat([B._cache,x(B)]);var q=B._cache.slice(0,v.length);return B._cache=B._cache.slice(v.length),R(v,q)},ofb}var ctr={},incr32_1,hasRequiredIncr32;function requireIncr32(){if(hasRequiredIncr32)return incr32_1;hasRequiredIncr32=1;function R(x){for(var B=x.length,v;B--;)if(v=x.readUInt8(B),v===255)x.writeUInt8(0,B);else{v++,x.writeUInt8(v,B);break}}return incr32_1=R,incr32_1}var hasRequiredCtr;function requireCtr(){if(hasRequiredCtr)return ctr;hasRequiredCtr=1;var R=requireBufferXor(),x=requireSafeBuffer$1().Buffer,B=requireIncr32();function v(n){var y=n._cipher.encryptBlockRaw(n._prev);return B(n._prev),y}var q=16;return ctr.encrypt=function(n,y){var b=Math.ceil(y.length/q),m=n._cache.length;n._cache=x.concat([n._cache,x.allocUnsafe(b*q)]);for(var c=0;c<b;c++){var l=v(n),p=m+c*q;n._cache.writeUInt32BE(l[0],p+0),n._cache.writeUInt32BE(l[1],p+4),n._cache.writeUInt32BE(l[2],p+8),n._cache.writeUInt32BE(l[3],p+12)}var g=n._cache.slice(0,y.length);return n._cache=n._cache.slice(y.length),R(y,g)},ctr}const aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},require$$2={"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,aes192,aes256,"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 modes_1,hasRequiredModes$1;function requireModes$1(){if(hasRequiredModes$1)return modes_1;hasRequiredModes$1=1;var R={ECB:requireEcb(),CBC:requireCbc(),CFB:requireCfb(),CFB8:requireCfb8(),CFB1:requireCfb1(),OFB:requireOfb(),CTR:requireCtr(),GCM:requireCtr()},x=require$$2;for(var B in x)x[B].module=R[x[B].mode];return modes_1=x,modes_1}var aes={},hasRequiredAes;function requireAes(){if(hasRequiredAes)return aes;hasRequiredAes=1;var R=requireSafeBuffer$1().Buffer;function x(b){R.isBuffer(b)||(b=R.from(b));for(var m=b.length/4|0,c=new Array(m),l=0;l<m;l++)c[l]=b.readUInt32BE(l*4);return c}function B(b){for(var m=0;m<b.length;b++)b[m]=0}function v(b,m,c,l,p){for(var g=c[0],w=c[1],M=c[2],_=c[3],k=b[0]^m[0],E=b[1]^m[1],A=b[2]^m[2],O=b[3]^m[3],C,j,Z,Re,Q=4,H=1;H<p;H++)C=g[k>>>24]^w[E>>>16&255]^M[A>>>8&255]^_[O&255]^m[Q++],j=g[E>>>24]^w[A>>>16&255]^M[O>>>8&255]^_[k&255]^m[Q++],Z=g[A>>>24]^w[O>>>16&255]^M[k>>>8&255]^_[E&255]^m[Q++],Re=g[O>>>24]^w[k>>>16&255]^M[E>>>8&255]^_[A&255]^m[Q++],k=C,E=j,A=Z,O=Re;return C=(l[k>>>24]<<24|l[E>>>16&255]<<16|l[A>>>8&255]<<8|l[O&255])^m[Q++],j=(l[E>>>24]<<24|l[A>>>16&255]<<16|l[O>>>8&255]<<8|l[k&255])^m[Q++],Z=(l[A>>>24]<<24|l[O>>>16&255]<<16|l[k>>>8&255]<<8|l[E&255])^m[Q++],Re=(l[O>>>24]<<24|l[k>>>16&255]<<16|l[E>>>8&255]<<8|l[A&255])^m[Q++],C=C>>>0,j=j>>>0,Z=Z>>>0,Re=Re>>>0,[C,j,Z,Re]}var q=[0,1,2,4,8,16,32,64,128,27,54],n=(function(){for(var b=new Array(256),m=0;m<256;m++)m<128?b[m]=m<<1:b[m]=m<<1^283;for(var c=[],l=[],p=[[],[],[],[]],g=[[],[],[],[]],w=0,M=0,_=0;_<256;++_){var k=M^M<<1^M<<2^M<<3^M<<4;k=k>>>8^k&255^99,c[w]=k,l[k]=w;var E=b[w],A=b[E],O=b[A],C=b[k]*257^k*16843008;p[0][w]=C<<24|C>>>8,p[1][w]=C<<16|C>>>16,p[2][w]=C<<8|C>>>24,p[3][w]=C,C=O*16843009^A*65537^E*257^w*16843008,g[0][k]=C<<24|C>>>8,g[1][k]=C<<16|C>>>16,g[2][k]=C<<8|C>>>24,g[3][k]=C,w===0?w=M=1:(w=E^b[b[b[O^E]]],M^=b[b[M]])}return{SBOX:c,INV_SBOX:l,SUB_MIX:p,INV_SUB_MIX:g}})();function y(b){this._key=x(b),this._reset()}return y.blockSize=16,y.keySize=256/8,y.prototype.blockSize=y.blockSize,y.prototype.keySize=y.keySize,y.prototype._reset=function(){for(var b=this._key,m=b.length,c=m+6,l=(c+1)*4,p=[],g=0;g<m;g++)p[g]=b[g];for(g=m;g<l;g++){var w=p[g-1];g%m===0?(w=w<<8|w>>>24,w=n.SBOX[w>>>24]<<24|n.SBOX[w>>>16&255]<<16|n.SBOX[w>>>8&255]<<8|n.SBOX[w&255],w^=q[g/m|0]<<24):m>6&&g%m===4&&(w=n.SBOX[w>>>24]<<24|n.SBOX[w>>>16&255]<<16|n.SBOX[w>>>8&255]<<8|n.SBOX[w&255]),p[g]=p[g-m]^w}for(var M=[],_=0;_<l;_++){var k=l-_,E=p[k-(_%4?0:4)];_<4||k<=4?M[_]=E:M[_]=n.INV_SUB_MIX[0][n.SBOX[E>>>24]]^n.INV_SUB_MIX[1][n.SBOX[E>>>16&255]]^n.INV_SUB_MIX[2][n.SBOX[E>>>8&255]]^n.INV_SUB_MIX[3][n.SBOX[E&255]]}this._nRounds=c,this._keySchedule=p,this._invKeySchedule=M},y.prototype.encryptBlockRaw=function(b){return b=x(b),v(b,this._keySchedule,n.SUB_MIX,n.SBOX,this._nRounds)},y.prototype.encryptBlock=function(b){var m=this.encryptBlockRaw(b),c=R.allocUnsafe(16);return c.writeUInt32BE(m[0],0),c.writeUInt32BE(m[1],4),c.writeUInt32BE(m[2],8),c.writeUInt32BE(m[3],12),c},y.prototype.decryptBlock=function(b){b=x(b);var m=b[1];b[1]=b[3],b[3]=m;var c=v(b,this._invKeySchedule,n.INV_SUB_MIX,n.INV_SBOX,this._nRounds),l=R.allocUnsafe(16);return l.writeUInt32BE(c[0],0),l.writeUInt32BE(c[3],4),l.writeUInt32BE(c[2],8),l.writeUInt32BE(c[1],12),l},y.prototype.scrub=function(){B(this._keySchedule),B(this._invKeySchedule),B(this._key)},aes.AES=y,aes}var ghash,hasRequiredGhash;function requireGhash(){if(hasRequiredGhash)return ghash;hasRequiredGhash=1;var R=requireSafeBuffer$1().Buffer,x=R.alloc(16,0);function B(n){return[n.readUInt32BE(0),n.readUInt32BE(4),n.readUInt32BE(8),n.readUInt32BE(12)]}function v(n){var y=R.allocUnsafe(16);return y.writeUInt32BE(n[0]>>>0,0),y.writeUInt32BE(n[1]>>>0,4),y.writeUInt32BE(n[2]>>>0,8),y.writeUInt32BE(n[3]>>>0,12),y}function q(n){this.h=n,this.state=R.alloc(16,0),this.cache=R.allocUnsafe(0)}return q.prototype.ghash=function(n){for(var y=-1;++y<n.length;)this.state[y]^=n[y];this._multiply()},q.prototype._multiply=function(){for(var n=B(this.h),y=[0,0,0,0],b,m,c,l=-1;++l<128;){for(m=(this.state[~~(l/8)]&1<<7-l%8)!==0,m&&(y[0]^=n[0],y[1]^=n[1],y[2]^=n[2],y[3]^=n[3]),c=(n[3]&1)!==0,b=3;b>0;b--)n[b]=n[b]>>>1|(n[b-1]&1)<<31;n[0]=n[0]>>>1,c&&(n[0]=n[0]^225<<24)}this.state=v(y)},q.prototype.update=function(n){this.cache=R.concat([this.cache,n]);for(var y;this.cache.length>=16;)y=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(y)},q.prototype.final=function(n,y){return this.cache.length&&this.ghash(R.concat([this.cache,x],16)),this.ghash(v([0,n,0,y])),this.state},ghash=q,ghash}var authCipher,hasRequiredAuthCipher;function requireAuthCipher(){if(hasRequiredAuthCipher)return authCipher;hasRequiredAuthCipher=1;var R=requireAes(),x=requireSafeBuffer$1().Buffer,B=requireCipherBase(),v=requireInherits_browser(),q=requireGhash(),n=requireBufferXor(),y=requireIncr32();function b(l,p){var g=0;l.length!==p.length&&g++;for(var w=Math.min(l.length,p.length),M=0;M<w;++M)g+=l[M]^p[M];return g}function m(l,p,g){if(p.length===12)return l._finID=x.concat([p,x.from([0,0,0,1])]),x.concat([p,x.from([0,0,0,2])]);var w=new q(g),M=p.length,_=M%16;w.update(p),_&&(_=16-_,w.update(x.alloc(_,0))),w.update(x.alloc(8,0));var k=M*8,E=x.alloc(8);E.writeUIntBE(k,0,8),w.update(E),l._finID=w.state;var A=x.from(l._finID);return y(A),A}function c(l,p,g,w){B.call(this);var M=x.alloc(4,0);this._cipher=new R.AES(p);var _=this._cipher.encryptBlock(M);this._ghash=new q(_),g=m(this,g,_),this._prev=x.from(g),this._cache=x.allocUnsafe(0),this._secCache=x.allocUnsafe(0),this._decrypt=w,this._alen=0,this._len=0,this._mode=l,this._authTag=null,this._called=!1}return v(c,B),c.prototype._update=function(l){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 g=this._mode.encrypt(this,l);return this._decrypt?this._ghash.update(l):this._ghash.update(g),this._len+=l.length,g},c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var l=n(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&b(l,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=l,this._cipher.scrub()},c.prototype.getAuthTag=function(){if(this._decrypt||!x.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},c.prototype.setAuthTag=function(p){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=p},c.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},authCipher=c,authCipher}var streamCipher,hasRequiredStreamCipher;function requireStreamCipher(){if(hasRequiredStreamCipher)return streamCipher;hasRequiredStreamCipher=1;var R=requireAes(),x=requireSafeBuffer$1().Buffer,B=requireCipherBase(),v=requireInherits_browser();function q(n,y,b,m){B.call(this),this._cipher=new R.AES(y),this._prev=x.from(b),this._cache=x.allocUnsafe(0),this._secCache=x.allocUnsafe(0),this._decrypt=m,this._mode=n}return v(q,B),q.prototype._update=function(n){return this._mode.encrypt(this,n,this._decrypt)},q.prototype._final=function(){this._cipher.scrub()},streamCipher=q,streamCipher}var evp_bytestokey,hasRequiredEvp_bytestokey;function requireEvp_bytestokey(){if(hasRequiredEvp_bytestokey)return evp_bytestokey;hasRequiredEvp_bytestokey=1;var R=requireSafeBuffer$1().Buffer,x=requireMd5_js();function B(v,q,n,y){if(R.isBuffer(v)||(v=R.from(v,"binary")),q&&(R.isBuffer(q)||(q=R.from(q,"binary")),q.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var b=n/8,m=R.alloc(b),c=R.alloc(y||0),l=R.alloc(0);b>0||y>0;){var p=new x;p.update(l),p.update(v),q&&p.update(q),l=p.digest();var g=0;if(b>0){var w=m.length-b;g=Math.min(b,l.length),l.copy(m,w,0,g),b-=g}if(g<l.length&&y>0){var M=c.length-y,_=Math.min(y,l.length-g);l.copy(c,M,g,g+_),y-=_}}return l.fill(0),{key:m,iv:c}}return evp_bytestokey=B,evp_bytestokey}var hasRequiredEncrypter;function requireEncrypter(){if(hasRequiredEncrypter)return encrypter;hasRequiredEncrypter=1;var R=requireModes$1(),x=requireAuthCipher(),B=requireSafeBuffer$1().Buffer,v=requireStreamCipher(),q=requireCipherBase(),n=requireAes(),y=requireEvp_bytestokey(),b=requireInherits_browser();function m(w,M,_){q.call(this),this._cache=new l,this._cipher=new n.AES(M),this._prev=B.from(_),this._mode=w,this._autopadding=!0}b(m,q),m.prototype._update=function(w){this._cache.add(w);for(var M,_,k=[];M=this._cache.get();)_=this._mode.encrypt(this,M),k.push(_);return B.concat(k)};var c=B.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(c))throw this._cipher.scrub(),new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(w){return this._autopadding=!!w,this};function l(){this.cache=B.allocUnsafe(0)}l.prototype.add=function(w){this.cache=B.concat([this.cache,w])},l.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},l.prototype.flush=function(){for(var w=16-this.cache.length,M=B.allocUnsafe(w),_=-1;++_<w;)M.writeUInt8(w,_);return B.concat([this.cache,M])};function p(w,M,_){var k=R[w.toLowerCase()];if(!k)throw new TypeError("invalid suite type");if(typeof M=="string"&&(M=B.from(M)),M.length!==k.key/8)throw new TypeError("invalid key length "+M.length);if(typeof _=="string"&&(_=B.from(_)),k.mode!=="GCM"&&_.length!==k.iv)throw new TypeError("invalid iv length "+_.length);return k.type==="stream"?new v(k.module,M,_):k.type==="auth"?new x(k.module,M,_):new m(k.module,M,_)}function g(w,M){var _=R[w.toLowerCase()];if(!_)throw new TypeError("invalid suite type");var k=y(M,!1,_.key,_.iv);return p(w,k.key,k.iv)}return encrypter.createCipheriv=p,encrypter.createCipher=g,encrypter}var decrypter={},hasRequiredDecrypter;function requireDecrypter(){if(hasRequiredDecrypter)return decrypter;hasRequiredDecrypter=1;var R=requireAuthCipher(),x=requireSafeBuffer$1().Buffer,B=requireModes$1(),v=requireStreamCipher(),q=requireCipherBase(),n=requireAes(),y=requireEvp_bytestokey(),b=requireInherits_browser();function m(w,M,_){q.call(this),this._cache=new c,this._last=void 0,this._cipher=new n.AES(M),this._prev=x.from(_),this._mode=w,this._autopadding=!0}b(m,q),m.prototype._update=function(w){this._cache.add(w);for(var M,_,k=[];M=this._cache.get(this._autopadding);)_=this._mode.decrypt(this,M),k.push(_);return x.concat(k)},m.prototype._final=function(){var w=this._cache.flush();if(this._autopadding)return l(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 c(){this.cache=x.allocUnsafe(0)}c.prototype.add=function(w){this.cache=x.concat([this.cache,w])},c.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},c.prototype.flush=function(){if(this.cache.length)return this.cache};function l(w){var M=w[15];if(M<1||M>16)throw new Error("unable to decrypt data");for(var _=-1;++_<M;)if(w[_+(16-M)]!==M)throw new Error("unable to decrypt data");if(M!==16)return w.slice(0,16-M)}function p(w,M,_){var k=B[w.toLowerCase()];if(!k)throw new TypeError("invalid suite type");if(typeof _=="string"&&(_=x.from(_)),k.mode!=="GCM"&&_.length!==k.iv)throw new TypeError("invalid iv length "+_.length);if(typeof M=="string"&&(M=x.from(M)),M.length!==k.key/8)throw new TypeError("invalid key length "+M.length);return k.type==="stream"?new v(k.module,M,_,!0):k.type==="auth"?new R(k.module,M,_,!0):new m(k.module,M,_)}function g(w,M){var _=B[w.toLowerCase()];if(!_)throw new TypeError("invalid suite type");var k=y(M,!1,_.key,_.iv);return p(w,k.key,k.iv)}return decrypter.createDecipher=g,decrypter.createDecipheriv=p,decrypter}var hasRequiredBrowser$6;function requireBrowser$6(){if(hasRequiredBrowser$6)return browser$5;hasRequiredBrowser$6=1;var R=requireEncrypter(),x=requireDecrypter(),B=require$$2;function v(){return Object.keys(B)}return browser$5.createCipher=browser$5.Cipher=R.createCipher,browser$5.createCipheriv=browser$5.Cipheriv=R.createCipheriv,browser$5.createDecipher=browser$5.Decipher=x.createDecipher,browser$5.createDecipheriv=browser$5.Decipheriv=x.createDecipheriv,browser$5.listCiphers=browser$5.getCiphers=v,browser$5}var modes={},hasRequiredModes;function requireModes(){return hasRequiredModes||(hasRequiredModes=1,(function(R){R["des-ecb"]={key:8,iv:0},R["des-cbc"]=R.des={key:8,iv:8},R["des-ede3-cbc"]=R.des3={key:24,iv:8},R["des-ede3"]={key:24,iv:0},R["des-ede-cbc"]={key:16,iv:8},R["des-ede"]={key:16,iv:0}})(modes)),modes}var hasRequiredBrowser$5;function requireBrowser$5(){if(hasRequiredBrowser$5)return browser$6;hasRequiredBrowser$5=1;var R=requireBrowserifyDes(),x=requireBrowser$6(),B=requireModes$1(),v=requireModes(),q=requireEvp_bytestokey();function n(l,p){l=l.toLowerCase();var g,w;if(B[l])g=B[l].key,w=B[l].iv;else if(v[l])g=v[l].key*8,w=v[l].iv;else throw new TypeError("invalid suite type");var M=q(p,!1,g,w);return b(l,M.key,M.iv)}function y(l,p){l=l.toLowerCase();var g,w;if(B[l])g=B[l].key,w=B[l].iv;else if(v[l])g=v[l].key*8,w=v[l].iv;else throw new TypeError("invalid suite type");var M=q(p,!1,g,w);return m(l,M.key,M.iv)}function b(l,p,g){if(l=l.toLowerCase(),B[l])return x.createCipheriv(l,p,g);if(v[l])return new R({key:p,iv:g,mode:l});throw new TypeError("invalid suite type")}function m(l,p,g){if(l=l.toLowerCase(),B[l])return x.createDecipheriv(l,p,g);if(v[l])return new R({key:p,iv:g,mode:l,decrypt:!0});throw new TypeError("invalid suite type")}function c(){return Object.keys(v).concat(x.getCiphers())}return browser$6.createCipher=browser$6.Cipher=n,browser$6.createCipheriv=browser$6.Cipheriv=b,browser$6.createDecipher=browser$6.Decipher=y,browser$6.createDecipheriv=browser$6.Decipheriv=m,browser$6.listCiphers=browser$6.getCiphers=c,browser$6}var browser$4={},bn$b={exports:{}},bn$a=bn$b.exports,hasRequiredBn$5;function requireBn$5(){return hasRequiredBn$5||(hasRequiredBn$5=1,(function(R){(function(x,B){function v(h,e){if(!h)throw new Error(e||"Assertion failed")}function q(h,e){h.super_=e;var r=function(){};r.prototype=e.prototype,h.prototype=new r,h.prototype.constructor=h}function n(h,e,r){if(n.isBN(h))return h;this.negative=0,this.words=null,this.length=0,this.red=null,h!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(h||0,e||10,r||"be"))}typeof x=="object"?x.exports=n:B.BN=n,n.BN=n,n.wordSize=26;var y;try{typeof window<"u"&&typeof window.Buffer<"u"?y=window.Buffer:y=requireDist().Buffer}catch{}n.isBN=function(e){return e instanceof n?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,r){return e.cmp(r)>0?e:r},n.min=function(e,r){return e.cmp(r)<0?e:r},n.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),v(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var f=0;e[0]==="-"&&(f++,this.negative=1),f<e.length&&(r===16?this._parseHex(e,f,i):(this._parseBase(e,r,f),i==="le"&&this._initArray(this.toArray(),r,i)))},n.prototype._initNumber=function(e,r,i){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):(v(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},n.prototype._initArray=function(e,r,i){if(v(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 f=0;f<this.length;f++)this.words[f]=0;var o,u,d=0;if(i==="be")for(f=e.length-1,o=0;f>=0;f-=3)u=e[f]|e[f-1]<<8|e[f-2]<<16,this.words[o]|=u<<d&67108863,this.words[o+1]=u>>>26-d&67108863,d+=24,d>=26&&(d-=26,o++);else if(i==="le")for(f=0,o=0;f<e.length;f+=3)u=e[f]|e[f+1]<<8|e[f+2]<<16,this.words[o]|=u<<d&67108863,this.words[o+1]=u>>>26-d&67108863,d+=24,d>=26&&(d-=26,o++);return this.strip()};function b(h,e){var r=h.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(h,e,r){var i=b(h,r);return r-1>=e&&(i|=b(h,r-1)<<4),i}n.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var o=0,u=0,d;if(i==="be")for(f=e.length-1;f>=r;f-=2)d=m(e,r,f)<<o,this.words[u]|=d&67108863,o>=18?(o-=18,u+=1,this.words[u]|=d>>>26):o+=8;else{var a=e.length-r;for(f=a%2===0?r+1:r;f<e.length;f+=2)d=m(e,r,f)<<o,this.words[u]|=d&67108863,o>=18?(o-=18,u+=1,this.words[u]|=d>>>26):o+=8}this.strip()};function c(h,e,r,i){for(var f=0,o=Math.min(h.length,r),u=e;u<o;u++){var d=h.charCodeAt(u)-48;f*=i,d>=49?f+=d-49+10:d>=17?f+=d-17+10:f+=d}return f}n.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var f=0,o=1;o<=67108863;o*=r)f++;f--,o=o/r|0;for(var u=e.length-i,d=u%f,a=Math.min(u,u-d)+i,t=0,s=i;s<a;s+=f)t=c(e,s,s+f,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(d!==0){var $=1;for(t=c(e,s,e.length,r),s=0;s<d;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},n.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},n.prototype.clone=function(){var e=new n(null);return this.copy(e),e},n.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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],g=[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];n.prototype.toString=function(e,r){e=e||10,r=r|0||1;var i;if(e===16||e==="hex"){i="";for(var f=0,o=0,u=0;u<this.length;u++){var d=this.words[u],a=((d<<f|o)&16777215).toString(16);o=d>>>24-f&16777215,f+=2,f>=26&&(f-=26,u--),o!==0||u!==this.length-1?i=l[6-a.length]+a+i:i=a+i}for(o!==0&&(i=o.toString(16)+i);i.length%r!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=g[e];i="";var $=this.clone();for($.negative=0;!$.isZero();){var T=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?i=T+i:i=l[t-T.length]+T+i}for(this.isZero()&&(i="0"+i);i.length%r!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}v(!1,"Base should be between 2 and 36")},n.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&&v(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,r){return v(typeof y<"u"),this.toArrayLike(y,e,r)},n.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},n.prototype.toArrayLike=function(e,r,i){var f=this.byteLength(),o=i||Math.max(1,f);v(f<=o,"byte array longer than desired length"),v(o>0,"Requested array length <= 0"),this.strip();var u=r==="le",d=new e(o),a,t,s=this.clone();if(u){for(t=0;!s.isZero();t++)a=s.andln(255),s.iushrn(8),d[t]=a;for(;t<o;t++)d[t]=0}else{for(t=0;t<o-f;t++)d[t]=0;for(t=0;!s.isZero();t++)a=s.andln(255),s.iushrn(8),d[o-t-1]=a}return d},Math.clz32?n.prototype._countBits=function(e){return 32-Math.clz32(e)}:n.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},n.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return(r&8191)===0&&(i+=13,r>>>=13),(r&127)===0&&(i+=7,r>>>=7),(r&15)===0&&(i+=4,r>>>=4),(r&3)===0&&(i+=2,r>>>=2),(r&1)===0&&i++,i},n.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(h){for(var e=new Array(h.bitLength()),r=0;r<e.length;r++){var i=r/26|0,f=r%26;e[r]=(h.words[i]&1<<f)>>>f}return e}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},n.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.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()},n.prototype.ior=function(e){return v((this.negative|e.negative)===0),this.iuor(e)},n.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},n.prototype.iand=function(e){return v((this.negative|e.negative)===0),this.iuand(e)},n.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var f=0;f<i.length;f++)this.words[f]=r.words[f]^i.words[f];if(this!==r)for(;f<r.length;f++)this.words[f]=r.words[f];return this.length=r.length,this.strip()},n.prototype.ixor=function(e){return v((this.negative|e.negative)===0),this.iuxor(e)},n.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){v(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,i=e%26;this._expand(r),i>0&&r--;for(var f=0;f<r;f++)this.words[f]=~this.words[f]&67108863;for(i>0&&(this.words[f]=~this.words[f]&67108863>>26-i,f++);f<this.length;f++)this.words[f]=0;return this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,r){v(typeof e=="number"&&e>=0);var i=e/26|0,f=e%26;return this._expand(i+1),r?this.words[i]=this.words[i]|1<<f:this.words[i]=this.words[i]&~(1<<f),this.strip()},n.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 i,f;this.length>e.length?(i=this,f=e):(i=e,f=this);for(var o=0,u=0;u<f.length;u++)r=(i.words[u]|0)+(f.words[u]|0)+o,this.words[u]=r&67108863,o=r>>>26;for(;o!==0&&u<i.length;u++)r=(i.words[u]|0)+o,this.words[u]=r&67108863,o=r>>>26;if(this.length=i.length,o!==0)this.words[this.length]=o,this.length++;else if(i!==this)for(;u<i.length;u++)this.words[u]=i.words[u];return this},n.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)},n.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 i=this.cmp(e);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,o;i>0?(f=this,o=e):(f=e,o=this);for(var u=0,d=0;d<o.length;d++)r=(f.words[d]|0)-(o.words[d]|0)+u,u=r>>26,this.words[d]=r&67108863;for(;u!==0&&d<f.length;d++)r=(f.words[d]|0)+u,u=r>>26,this.words[d]=r&67108863;if(u===0&&d<f.length&&f!==this)for(;d<f.length;d++)this.words[d]=f.words[d];return this.length=Math.max(this.length,d),f!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(e){return this.clone().isub(e)};function M(h,e,r){r.negative=e.negative^h.negative;var i=h.length+e.length|0;r.length=i,i=i-1|0;var f=h.words[0]|0,o=e.words[0]|0,u=f*o,d=u&67108863,a=u/67108864|0;r.words[0]=d;for(var t=1;t<i;t++){for(var s=a>>>26,$=a&67108863,T=Math.min(t,e.length-1),D=Math.max(0,t-h.length+1);D<=T;D++){var z=t-D|0;f=h.words[z]|0,o=e.words[D]|0,u=f*o+$,s+=u/67108864|0,$=u&67108863}r.words[t]=$|0,a=s|0}return a!==0?r.words[t]=a|0:r.length--,r.strip()}var _=function(e,r,i){var f=e.words,o=r.words,u=i.words,d=0,a,t,s,$=f[0]|0,T=$&8191,D=$>>>13,z=f[1]|0,N=z&8191,S=z>>>13,P=f[2]|0,U=P&8191,K=P>>>13,L=f[3]|0,I=L&8191,F=L>>>13,Ee=f[4]|0,V=Ee&8191,W=Ee>>>13,Ae=f[5]|0,G=Ae&8191,Y=Ae>>>13,Ie=f[6]|0,ie=Ie&8191,ee=Ie>>>13,ke=f[7]|0,X=ke&8191,J=ke>>>13,$e=f[8]|0,te=$e&8191,re=$e>>>13,Ye=f[9]|0,ne=Ye&8191,fe=Ye>>>13,Qe=o[0]|0,ae=Qe&8191,se=Qe>>>13,et=o[1]|0,oe=et&8191,he=et>>>13,tt=o[2]|0,ue=tt&8191,de=tt>>>13,rt=o[3]|0,le=rt&8191,ce=rt>>>13,it=o[4]|0,ve=it&8191,pe=it>>>13,nt=o[5]|0,me=nt&8191,be=nt>>>13,ft=o[6]|0,ge=ft&8191,ye=ft>>>13,at=o[7]|0,we=at&8191,Me=at>>>13,st=o[8]|0,_e=st&8191,xe=st>>>13,ot=o[9]|0,Se=ot&8191,qe=ot>>>13;i.negative=e.negative^r.negative,i.length=19,a=Math.imul(T,ae),t=Math.imul(T,se),t=t+Math.imul(D,ae)|0,s=Math.imul(D,se);var Te=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Te>>>26)|0,Te&=67108863,a=Math.imul(N,ae),t=Math.imul(N,se),t=t+Math.imul(S,ae)|0,s=Math.imul(S,se),a=a+Math.imul(T,oe)|0,t=t+Math.imul(T,he)|0,t=t+Math.imul(D,oe)|0,s=s+Math.imul(D,he)|0;var Pe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,a=Math.imul(U,ae),t=Math.imul(U,se),t=t+Math.imul(K,ae)|0,s=Math.imul(K,se),a=a+Math.imul(N,oe)|0,t=t+Math.imul(N,he)|0,t=t+Math.imul(S,oe)|0,s=s+Math.imul(S,he)|0,a=a+Math.imul(T,ue)|0,t=t+Math.imul(T,de)|0,t=t+Math.imul(D,ue)|0,s=s+Math.imul(D,de)|0;var De=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(De>>>26)|0,De&=67108863,a=Math.imul(I,ae),t=Math.imul(I,se),t=t+Math.imul(F,ae)|0,s=Math.imul(F,se),a=a+Math.imul(U,oe)|0,t=t+Math.imul(U,he)|0,t=t+Math.imul(K,oe)|0,s=s+Math.imul(K,he)|0,a=a+Math.imul(N,ue)|0,t=t+Math.imul(N,de)|0,t=t+Math.imul(S,ue)|0,s=s+Math.imul(S,de)|0,a=a+Math.imul(T,le)|0,t=t+Math.imul(T,ce)|0,t=t+Math.imul(D,le)|0,s=s+Math.imul(D,ce)|0;var Ce=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,a=Math.imul(V,ae),t=Math.imul(V,se),t=t+Math.imul(W,ae)|0,s=Math.imul(W,se),a=a+Math.imul(I,oe)|0,t=t+Math.imul(I,he)|0,t=t+Math.imul(F,oe)|0,s=s+Math.imul(F,he)|0,a=a+Math.imul(U,ue)|0,t=t+Math.imul(U,de)|0,t=t+Math.imul(K,ue)|0,s=s+Math.imul(K,de)|0,a=a+Math.imul(N,le)|0,t=t+Math.imul(N,ce)|0,t=t+Math.imul(S,le)|0,s=s+Math.imul(S,ce)|0,a=a+Math.imul(T,ve)|0,t=t+Math.imul(T,pe)|0,t=t+Math.imul(D,ve)|0,s=s+Math.imul(D,pe)|0;var Ne=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,a=Math.imul(G,ae),t=Math.imul(G,se),t=t+Math.imul(Y,ae)|0,s=Math.imul(Y,se),a=a+Math.imul(V,oe)|0,t=t+Math.imul(V,he)|0,t=t+Math.imul(W,oe)|0,s=s+Math.imul(W,he)|0,a=a+Math.imul(I,ue)|0,t=t+Math.imul(I,de)|0,t=t+Math.imul(F,ue)|0,s=s+Math.imul(F,de)|0,a=a+Math.imul(U,le)|0,t=t+Math.imul(U,ce)|0,t=t+Math.imul(K,le)|0,s=s+Math.imul(K,ce)|0,a=a+Math.imul(N,ve)|0,t=t+Math.imul(N,pe)|0,t=t+Math.imul(S,ve)|0,s=s+Math.imul(S,pe)|0,a=a+Math.imul(T,me)|0,t=t+Math.imul(T,be)|0,t=t+Math.imul(D,me)|0,s=s+Math.imul(D,be)|0;var Oe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,a=Math.imul(ie,ae),t=Math.imul(ie,se),t=t+Math.imul(ee,ae)|0,s=Math.imul(ee,se),a=a+Math.imul(G,oe)|0,t=t+Math.imul(G,he)|0,t=t+Math.imul(Y,oe)|0,s=s+Math.imul(Y,he)|0,a=a+Math.imul(V,ue)|0,t=t+Math.imul(V,de)|0,t=t+Math.imul(W,ue)|0,s=s+Math.imul(W,de)|0,a=a+Math.imul(I,le)|0,t=t+Math.imul(I,ce)|0,t=t+Math.imul(F,le)|0,s=s+Math.imul(F,ce)|0,a=a+Math.imul(U,ve)|0,t=t+Math.imul(U,pe)|0,t=t+Math.imul(K,ve)|0,s=s+Math.imul(K,pe)|0,a=a+Math.imul(N,me)|0,t=t+Math.imul(N,be)|0,t=t+Math.imul(S,me)|0,s=s+Math.imul(S,be)|0,a=a+Math.imul(T,ge)|0,t=t+Math.imul(T,ye)|0,t=t+Math.imul(D,ge)|0,s=s+Math.imul(D,ye)|0;var Le=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Le>>>26)|0,Le&=67108863,a=Math.imul(X,ae),t=Math.imul(X,se),t=t+Math.imul(J,ae)|0,s=Math.imul(J,se),a=a+Math.imul(ie,oe)|0,t=t+Math.imul(ie,he)|0,t=t+Math.imul(ee,oe)|0,s=s+Math.imul(ee,he)|0,a=a+Math.imul(G,ue)|0,t=t+Math.imul(G,de)|0,t=t+Math.imul(Y,ue)|0,s=s+Math.imul(Y,de)|0,a=a+Math.imul(V,le)|0,t=t+Math.imul(V,ce)|0,t=t+Math.imul(W,le)|0,s=s+Math.imul(W,ce)|0,a=a+Math.imul(I,ve)|0,t=t+Math.imul(I,pe)|0,t=t+Math.imul(F,ve)|0,s=s+Math.imul(F,pe)|0,a=a+Math.imul(U,me)|0,t=t+Math.imul(U,be)|0,t=t+Math.imul(K,me)|0,s=s+Math.imul(K,be)|0,a=a+Math.imul(N,ge)|0,t=t+Math.imul(N,ye)|0,t=t+Math.imul(S,ge)|0,s=s+Math.imul(S,ye)|0,a=a+Math.imul(T,we)|0,t=t+Math.imul(T,Me)|0,t=t+Math.imul(D,we)|0,s=s+Math.imul(D,Me)|0;var Ue=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,a=Math.imul(te,ae),t=Math.imul(te,se),t=t+Math.imul(re,ae)|0,s=Math.imul(re,se),a=a+Math.imul(X,oe)|0,t=t+Math.imul(X,he)|0,t=t+Math.imul(J,oe)|0,s=s+Math.imul(J,he)|0,a=a+Math.imul(ie,ue)|0,t=t+Math.imul(ie,de)|0,t=t+Math.imul(ee,ue)|0,s=s+Math.imul(ee,de)|0,a=a+Math.imul(G,le)|0,t=t+Math.imul(G,ce)|0,t=t+Math.imul(Y,le)|0,s=s+Math.imul(Y,ce)|0,a=a+Math.imul(V,ve)|0,t=t+Math.imul(V,pe)|0,t=t+Math.imul(W,ve)|0,s=s+Math.imul(W,pe)|0,a=a+Math.imul(I,me)|0,t=t+Math.imul(I,be)|0,t=t+Math.imul(F,me)|0,s=s+Math.imul(F,be)|0,a=a+Math.imul(U,ge)|0,t=t+Math.imul(U,ye)|0,t=t+Math.imul(K,ge)|0,s=s+Math.imul(K,ye)|0,a=a+Math.imul(N,we)|0,t=t+Math.imul(N,Me)|0,t=t+Math.imul(S,we)|0,s=s+Math.imul(S,Me)|0,a=a+Math.imul(T,_e)|0,t=t+Math.imul(T,xe)|0,t=t+Math.imul(D,_e)|0,s=s+Math.imul(D,xe)|0;var ze=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(ze>>>26)|0,ze&=67108863,a=Math.imul(ne,ae),t=Math.imul(ne,se),t=t+Math.imul(fe,ae)|0,s=Math.imul(fe,se),a=a+Math.imul(te,oe)|0,t=t+Math.imul(te,he)|0,t=t+Math.imul(re,oe)|0,s=s+Math.imul(re,he)|0,a=a+Math.imul(X,ue)|0,t=t+Math.imul(X,de)|0,t=t+Math.imul(J,ue)|0,s=s+Math.imul(J,de)|0,a=a+Math.imul(ie,le)|0,t=t+Math.imul(ie,ce)|0,t=t+Math.imul(ee,le)|0,s=s+Math.imul(ee,ce)|0,a=a+Math.imul(G,ve)|0,t=t+Math.imul(G,pe)|0,t=t+Math.imul(Y,ve)|0,s=s+Math.imul(Y,pe)|0,a=a+Math.imul(V,me)|0,t=t+Math.imul(V,be)|0,t=t+Math.imul(W,me)|0,s=s+Math.imul(W,be)|0,a=a+Math.imul(I,ge)|0,t=t+Math.imul(I,ye)|0,t=t+Math.imul(F,ge)|0,s=s+Math.imul(F,ye)|0,a=a+Math.imul(U,we)|0,t=t+Math.imul(U,Me)|0,t=t+Math.imul(K,we)|0,s=s+Math.imul(K,Me)|0,a=a+Math.imul(N,_e)|0,t=t+Math.imul(N,xe)|0,t=t+Math.imul(S,_e)|0,s=s+Math.imul(S,xe)|0,a=a+Math.imul(T,Se)|0,t=t+Math.imul(T,qe)|0,t=t+Math.imul(D,Se)|0,s=s+Math.imul(D,qe)|0;var Ke=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,a=Math.imul(ne,oe),t=Math.imul(ne,he),t=t+Math.imul(fe,oe)|0,s=Math.imul(fe,he),a=a+Math.imul(te,ue)|0,t=t+Math.imul(te,de)|0,t=t+Math.imul(re,ue)|0,s=s+Math.imul(re,de)|0,a=a+Math.imul(X,le)|0,t=t+Math.imul(X,ce)|0,t=t+Math.imul(J,le)|0,s=s+Math.imul(J,ce)|0,a=a+Math.imul(ie,ve)|0,t=t+Math.imul(ie,pe)|0,t=t+Math.imul(ee,ve)|0,s=s+Math.imul(ee,pe)|0,a=a+Math.imul(G,me)|0,t=t+Math.imul(G,be)|0,t=t+Math.imul(Y,me)|0,s=s+Math.imul(Y,be)|0,a=a+Math.imul(V,ge)|0,t=t+Math.imul(V,ye)|0,t=t+Math.imul(W,ge)|0,s=s+Math.imul(W,ye)|0,a=a+Math.imul(I,we)|0,t=t+Math.imul(I,Me)|0,t=t+Math.imul(F,we)|0,s=s+Math.imul(F,Me)|0,a=a+Math.imul(U,_e)|0,t=t+Math.imul(U,xe)|0,t=t+Math.imul(K,_e)|0,s=s+Math.imul(K,xe)|0,a=a+Math.imul(N,Se)|0,t=t+Math.imul(N,qe)|0,t=t+Math.imul(S,Se)|0,s=s+Math.imul(S,qe)|0;var Fe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,a=Math.imul(ne,ue),t=Math.imul(ne,de),t=t+Math.imul(fe,ue)|0,s=Math.imul(fe,de),a=a+Math.imul(te,le)|0,t=t+Math.imul(te,ce)|0,t=t+Math.imul(re,le)|0,s=s+Math.imul(re,ce)|0,a=a+Math.imul(X,ve)|0,t=t+Math.imul(X,pe)|0,t=t+Math.imul(J,ve)|0,s=s+Math.imul(J,pe)|0,a=a+Math.imul(ie,me)|0,t=t+Math.imul(ie,be)|0,t=t+Math.imul(ee,me)|0,s=s+Math.imul(ee,be)|0,a=a+Math.imul(G,ge)|0,t=t+Math.imul(G,ye)|0,t=t+Math.imul(Y,ge)|0,s=s+Math.imul(Y,ye)|0,a=a+Math.imul(V,we)|0,t=t+Math.imul(V,Me)|0,t=t+Math.imul(W,we)|0,s=s+Math.imul(W,Me)|0,a=a+Math.imul(I,_e)|0,t=t+Math.imul(I,xe)|0,t=t+Math.imul(F,_e)|0,s=s+Math.imul(F,xe)|0,a=a+Math.imul(U,Se)|0,t=t+Math.imul(U,qe)|0,t=t+Math.imul(K,Se)|0,s=s+Math.imul(K,qe)|0;var He=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(He>>>26)|0,He&=67108863,a=Math.imul(ne,le),t=Math.imul(ne,ce),t=t+Math.imul(fe,le)|0,s=Math.imul(fe,ce),a=a+Math.imul(te,ve)|0,t=t+Math.imul(te,pe)|0,t=t+Math.imul(re,ve)|0,s=s+Math.imul(re,pe)|0,a=a+Math.imul(X,me)|0,t=t+Math.imul(X,be)|0,t=t+Math.imul(J,me)|0,s=s+Math.imul(J,be)|0,a=a+Math.imul(ie,ge)|0,t=t+Math.imul(ie,ye)|0,t=t+Math.imul(ee,ge)|0,s=s+Math.imul(ee,ye)|0,a=a+Math.imul(G,we)|0,t=t+Math.imul(G,Me)|0,t=t+Math.imul(Y,we)|0,s=s+Math.imul(Y,Me)|0,a=a+Math.imul(V,_e)|0,t=t+Math.imul(V,xe)|0,t=t+Math.imul(W,_e)|0,s=s+Math.imul(W,xe)|0,a=a+Math.imul(I,Se)|0,t=t+Math.imul(I,qe)|0,t=t+Math.imul(F,Se)|0,s=s+Math.imul(F,qe)|0;var je=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(je>>>26)|0,je&=67108863,a=Math.imul(ne,ve),t=Math.imul(ne,pe),t=t+Math.imul(fe,ve)|0,s=Math.imul(fe,pe),a=a+Math.imul(te,me)|0,t=t+Math.imul(te,be)|0,t=t+Math.imul(re,me)|0,s=s+Math.imul(re,be)|0,a=a+Math.imul(X,ge)|0,t=t+Math.imul(X,ye)|0,t=t+Math.imul(J,ge)|0,s=s+Math.imul(J,ye)|0,a=a+Math.imul(ie,we)|0,t=t+Math.imul(ie,Me)|0,t=t+Math.imul(ee,we)|0,s=s+Math.imul(ee,Me)|0,a=a+Math.imul(G,_e)|0,t=t+Math.imul(G,xe)|0,t=t+Math.imul(Y,_e)|0,s=s+Math.imul(Y,xe)|0,a=a+Math.imul(V,Se)|0,t=t+Math.imul(V,qe)|0,t=t+Math.imul(W,Se)|0,s=s+Math.imul(W,qe)|0;var Ze=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,a=Math.imul(ne,me),t=Math.imul(ne,be),t=t+Math.imul(fe,me)|0,s=Math.imul(fe,be),a=a+Math.imul(te,ge)|0,t=t+Math.imul(te,ye)|0,t=t+Math.imul(re,ge)|0,s=s+Math.imul(re,ye)|0,a=a+Math.imul(X,we)|0,t=t+Math.imul(X,Me)|0,t=t+Math.imul(J,we)|0,s=s+Math.imul(J,Me)|0,a=a+Math.imul(ie,_e)|0,t=t+Math.imul(ie,xe)|0,t=t+Math.imul(ee,_e)|0,s=s+Math.imul(ee,xe)|0,a=a+Math.imul(G,Se)|0,t=t+Math.imul(G,qe)|0,t=t+Math.imul(Y,Se)|0,s=s+Math.imul(Y,qe)|0;var We=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,a=Math.imul(ne,ge),t=Math.imul(ne,ye),t=t+Math.imul(fe,ge)|0,s=Math.imul(fe,ye),a=a+Math.imul(te,we)|0,t=t+Math.imul(te,Me)|0,t=t+Math.imul(re,we)|0,s=s+Math.imul(re,Me)|0,a=a+Math.imul(X,_e)|0,t=t+Math.imul(X,xe)|0,t=t+Math.imul(J,_e)|0,s=s+Math.imul(J,xe)|0,a=a+Math.imul(ie,Se)|0,t=t+Math.imul(ie,qe)|0,t=t+Math.imul(ee,Se)|0,s=s+Math.imul(ee,qe)|0;var Ve=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,a=Math.imul(ne,we),t=Math.imul(ne,Me),t=t+Math.imul(fe,we)|0,s=Math.imul(fe,Me),a=a+Math.imul(te,_e)|0,t=t+Math.imul(te,xe)|0,t=t+Math.imul(re,_e)|0,s=s+Math.imul(re,xe)|0,a=a+Math.imul(X,Se)|0,t=t+Math.imul(X,qe)|0,t=t+Math.imul(J,Se)|0,s=s+Math.imul(J,qe)|0;var Ge=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,a=Math.imul(ne,_e),t=Math.imul(ne,xe),t=t+Math.imul(fe,_e)|0,s=Math.imul(fe,xe),a=a+Math.imul(te,Se)|0,t=t+Math.imul(te,qe)|0,t=t+Math.imul(re,Se)|0,s=s+Math.imul(re,qe)|0;var Xe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,a=Math.imul(ne,Se),t=Math.imul(ne,qe),t=t+Math.imul(fe,Se)|0,s=Math.imul(fe,qe);var Je=(d+a|0)+((t&8191)<<13)|0;return d=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,u[0]=Te,u[1]=Pe,u[2]=De,u[3]=Ce,u[4]=Ne,u[5]=Oe,u[6]=Le,u[7]=Ue,u[8]=ze,u[9]=Ke,u[10]=Fe,u[11]=He,u[12]=je,u[13]=Ze,u[14]=We,u[15]=Ve,u[16]=Ge,u[17]=Xe,u[18]=Je,d!==0&&(u[19]=d,i.length++),i};Math.imul||(_=M);function k(h,e,r){r.negative=e.negative^h.negative,r.length=h.length+e.length;for(var i=0,f=0,o=0;o<r.length-1;o++){var u=f;f=0;for(var d=i&67108863,a=Math.min(o,e.length-1),t=Math.max(0,o-h.length+1);t<=a;t++){var s=o-t,$=h.words[s]|0,T=e.words[t]|0,D=$*T,z=D&67108863;u=u+(D/67108864|0)|0,z=z+d|0,d=z&67108863,u=u+(z>>>26)|0,f+=u>>>26,u&=67108863}r.words[o]=d,i=u,u=f}return i!==0?r.words[o]=i:r.length--,r.strip()}function E(h,e,r){var i=new A;return i.mulp(h,e,r)}n.prototype.mulTo=function(e,r){var i,f=this.length+e.length;return this.length===10&&e.length===10?i=_(this,e,r):f<63?i=M(this,e,r):f<1024?i=k(this,e,r):i=E(this,e,r),i};function A(h,e){this.x=h,this.y=e}A.prototype.makeRBT=function(e){for(var r=new Array(e),i=n.prototype._countBits(e)-1,f=0;f<e;f++)r[f]=this.revBin(f,i,e);return r},A.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var f=0,o=0;o<r;o++)f|=(e&1)<<r-o-1,e>>=1;return f},A.prototype.permute=function(e,r,i,f,o,u){for(var d=0;d<u;d++)f[d]=r[e[d]],o[d]=i[e[d]]},A.prototype.transform=function(e,r,i,f,o,u){this.permute(u,e,r,i,f,o);for(var d=1;d<o;d<<=1)for(var a=d<<1,t=Math.cos(2*Math.PI/a),s=Math.sin(2*Math.PI/a),$=0;$<o;$+=a)for(var T=t,D=s,z=0;z<d;z++){var N=i[$+z],S=f[$+z],P=i[$+z+d],U=f[$+z+d],K=T*P-D*U;U=T*U+D*P,P=K,i[$+z]=N+P,f[$+z]=S+U,i[$+z+d]=N-P,f[$+z+d]=S-U,z!==a&&(K=t*T-s*D,D=t*D+s*T,T=K)}},A.prototype.guessLen13b=function(e,r){var i=Math.max(r,e)|1,f=i&1,o=0;for(i=i/2|0;i;i=i>>>1)o++;return 1<<o+1+f},A.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var f=0;f<i/2;f++){var o=e[f];e[f]=e[i-f-1],e[i-f-1]=o,o=r[f],r[f]=-r[i-f-1],r[i-f-1]=-o}},A.prototype.normalize13b=function(e,r){for(var i=0,f=0;f<r/2;f++){var o=Math.round(e[2*f+1]/r)*8192+Math.round(e[2*f]/r)+i;e[f]=o&67108863,o<67108864?i=0:i=o/67108864|0}return e},A.prototype.convert13b=function(e,r,i,f){for(var o=0,u=0;u<r;u++)o=o+(e[u]|0),i[2*u]=o&8191,o=o>>>13,i[2*u+1]=o&8191,o=o>>>13;for(u=2*r;u<f;++u)i[u]=0;v(o===0),v((o&-8192)===0)},A.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},A.prototype.mulp=function(e,r,i){var f=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(f),u=this.stub(f),d=new Array(f),a=new Array(f),t=new Array(f),s=new Array(f),$=new Array(f),T=new Array(f),D=i.words;D.length=f,this.convert13b(e.words,e.length,d,f),this.convert13b(r.words,r.length,s,f),this.transform(d,u,a,t,f,o),this.transform(s,u,$,T,f,o);for(var z=0;z<f;z++){var N=a[z]*$[z]-t[z]*T[z];t[z]=a[z]*T[z]+t[z]*$[z],a[z]=N}return this.conjugate(a,t,f),this.transform(a,t,D,u,f,o),this.conjugate(D,u,f),this.normalize13b(D,f),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},n.prototype.mul=function(e){var r=new n(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},n.prototype.mulf=function(e){var r=new n(null);return r.words=new Array(this.length+e.length),E(this,e,r)},n.prototype.imul=function(e){return this.clone().mulTo(e,this)},n.prototype.imuln=function(e){v(typeof e=="number"),v(e<67108864);for(var r=0,i=0;i<this.length;i++){var f=(this.words[i]|0)*e,o=(f&67108863)+(r&67108863);r>>=26,r+=f/67108864|0,r+=o>>>26,this.words[i]=o&67108863}return r!==0&&(this.words[i]=r,this.length++),this.length=e===0?1:this.length,this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var r=w(e);if(r.length===0)return new n(1);for(var i=this,f=0;f<r.length&&r[f]===0;f++,i=i.sqr());if(++f<r.length)for(var o=i.sqr();f<r.length;f++,o=o.sqr())r[f]!==0&&(i=i.mul(o));return i},n.prototype.iushln=function(e){v(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,f=67108863>>>26-r<<26-r,o;if(r!==0){var u=0;for(o=0;o<this.length;o++){var d=this.words[o]&f,a=(this.words[o]|0)-d<<r;this.words[o]=a|u,u=d>>>26-r}u&&(this.words[o]=u,this.length++)}if(i!==0){for(o=this.length-1;o>=0;o--)this.words[o+i]=this.words[o];for(o=0;o<i;o++)this.words[o]=0;this.length+=i}return this.strip()},n.prototype.ishln=function(e){return v(this.negative===0),this.iushln(e)},n.prototype.iushrn=function(e,r,i){v(typeof e=="number"&&e>=0);var f;r?f=(r-r%26)/26:f=0;var o=e%26,u=Math.min((e-o)/26,this.length),d=67108863^67108863>>>o<<o,a=i;if(f-=u,f=Math.max(0,f),a){for(var t=0;t<u;t++)a.words[t]=this.words[t];a.length=u}if(u!==0)if(this.length>u)for(this.length-=u,t=0;t<this.length;t++)this.words[t]=this.words[t+u];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=f);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&d}return a&&s!==0&&(a.words[a.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,r,i){return v(this.negative===0),this.iushrn(e,r,i)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){v(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,f=1<<r;if(this.length<=i)return!1;var o=this.words[i];return!!(o&f)},n.prototype.imaskn=function(e){v(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(v(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var f=67108863^67108863>>>r<<r;this.words[this.length-1]&=f}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.maskn=function(e){return this.clone().imaskn(e)},n.prototype.iaddn=function(e){return v(typeof e=="number"),v(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)},n.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},n.prototype.isubn=function(e){if(v(typeof e=="number"),v(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()},n.prototype.addn=function(e){return this.clone().iaddn(e)},n.prototype.subn=function(e){return this.clone().isubn(e)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(e,r,i){var f=e.length+i,o;this._expand(f);var u,d=0;for(o=0;o<e.length;o++){u=(this.words[o+i]|0)+d;var a=(e.words[o]|0)*r;u-=a&67108863,d=(u>>26)-(a/67108864|0),this.words[o+i]=u&67108863}for(;o<this.length-i;o++)u=(this.words[o+i]|0)+d,d=u>>26,this.words[o+i]=u&67108863;if(d===0)return this.strip();for(v(d===-1),d=0,o=0;o<this.length;o++)u=-(this.words[o]|0)+d,d=u>>26,this.words[o]=u&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,r){var i=this.length-e.length,f=this.clone(),o=e,u=o.words[o.length-1]|0,d=this._countBits(u);i=26-d,i!==0&&(o=o.ushln(i),f.iushln(i),u=o.words[o.length-1]|0);var a=f.length-o.length,t;if(r!=="mod"){t=new n(null),t.length=a+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=f.clone()._ishlnsubmul(o,1,a);$.negative===0&&(f=$,t&&(t.words[a]=1));for(var T=a-1;T>=0;T--){var D=(f.words[o.length+T]|0)*67108864+(f.words[o.length+T-1]|0);for(D=Math.min(D/u|0,67108863),f._ishlnsubmul(o,D,T);f.negative!==0;)D--,f.negative=0,f._ishlnsubmul(o,1,T),f.isZero()||(f.negative^=1);t&&(t.words[T]=D)}return t&&t.strip(),f.strip(),r!=="div"&&i!==0&&f.iushrn(i),{div:t||null,mod:f}},n.prototype.divmod=function(e,r,i){if(v(!e.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var f,o,u;return this.negative!==0&&e.negative===0?(u=this.neg().divmod(e,r),r!=="mod"&&(f=u.div.neg()),r!=="div"&&(o=u.mod.neg(),i&&o.negative!==0&&o.iadd(e)),{div:f,mod:o}):this.negative===0&&e.negative!==0?(u=this.divmod(e.neg(),r),r!=="mod"&&(f=u.div.neg()),{div:f,mod:u.mod}):(this.negative&e.negative)!==0?(u=this.neg().divmod(e.neg(),r),r!=="div"&&(o=u.mod.neg(),i&&o.negative!==0&&o.isub(e)),{div:u.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,r)},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,f=e.ushrn(1),o=e.andln(1),u=i.cmp(f);return u<0||o===1&&u===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(e){v(e<=67108863);for(var r=(1<<26)%e,i=0,f=this.length-1;f>=0;f--)i=(r*i+(this.words[f]|0))%e;return i},n.prototype.idivn=function(e){v(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var f=(this.words[i]|0)+r*67108864;this.words[i]=f/e|0,r=f%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){v(e.negative===0),v(!e.isZero());var r=this,i=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var f=new n(1),o=new n(0),u=new n(0),d=new n(1),a=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++a;for(var t=i.clone(),s=r.clone();!r.isZero();){for(var $=0,T=1;(r.words[0]&T)===0&&$<26;++$,T<<=1);if($>0)for(r.iushrn($);$-- >0;)(f.isOdd()||o.isOdd())&&(f.iadd(t),o.isub(s)),f.iushrn(1),o.iushrn(1);for(var D=0,z=1;(i.words[0]&z)===0&&D<26;++D,z<<=1);if(D>0)for(i.iushrn(D);D-- >0;)(u.isOdd()||d.isOdd())&&(u.iadd(t),d.isub(s)),u.iushrn(1),d.iushrn(1);r.cmp(i)>=0?(r.isub(i),f.isub(u),o.isub(d)):(i.isub(r),u.isub(f),d.isub(o))}return{a:u,b:d,gcd:i.iushln(a)}},n.prototype._invmp=function(e){v(e.negative===0),v(!e.isZero());var r=this,i=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var f=new n(1),o=new n(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var d=0,a=1;(r.words[0]&a)===0&&d<26;++d,a<<=1);if(d>0)for(r.iushrn(d);d-- >0;)f.isOdd()&&f.iadd(u),f.iushrn(1);for(var t=0,s=1;(i.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(i.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),f.isub(o)):(i.isub(r),o.isub(f))}var $;return r.cmpn(1)===0?$=f:$=o,$.cmpn(0)<0&&$.iadd(e),$},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var f=0;r.isEven()&&i.isEven();f++)r.iushrn(1),i.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var o=r.cmp(i);if(o<0){var u=r;r=i,i=u}else if(o===0||i.cmpn(1)===0)break;r.isub(i)}while(!0);return i.iushln(f)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){v(typeof e=="number");var r=e%26,i=(e-r)/26,f=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=f,this;for(var o=f,u=i;o!==0&&u<this.length;u++){var d=this.words[u]|0;d+=o,o=d>>>26,d&=67108863,this.words[u]=d}return o!==0&&(this.words[u]=o,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.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 i;if(this.length>1)i=1;else{r&&(e=-e),v(e<=67108863,"Number is too big");var f=this.words[0]|0;i=f===e?0:f<e?-1:1}return this.negative!==0?-i|0:i},n.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},n.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var f=this.words[i]|0,o=e.words[i]|0;if(f!==o){f<o?r=-1:f>o&&(r=1);break}}return r},n.prototype.gtn=function(e){return this.cmpn(e)===1},n.prototype.gt=function(e){return this.cmp(e)===1},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return this.cmpn(e)===-1},n.prototype.lt=function(e){return this.cmp(e)===-1},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return this.cmpn(e)===0},n.prototype.eq=function(e){return this.cmp(e)===0},n.red=function(e){return new H(e)},n.prototype.toRed=function(e){return v(!this.red,"Already a number in reduction context"),v(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return v(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return v(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var O={k256:null,p224:null,p192:null,p25519:null};function C(h,e){this.name=h,this.p=new n(e,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}C.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},C.prototype.ireduce=function(e){var r=e,i;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),i=r.bitLength();while(i>this.n);var f=i<this.n?-1:r.ucmp(this.p);return f===0?(r.words[0]=0,r.length=1):f>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},C.prototype.split=function(e,r){e.iushrn(this.n,0,r)},C.prototype.imulK=function(e){return e.imul(this.k)};function j(){C.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}q(j,C),j.prototype.split=function(e,r){for(var i=4194303,f=Math.min(e.length,9),o=0;o<f;o++)r.words[o]=e.words[o];if(r.length=f,e.length<=9){e.words[0]=0,e.length=1;return}var u=e.words[9];for(r.words[r.length++]=u&i,o=10;o<e.length;o++){var d=e.words[o]|0;e.words[o-10]=(d&i)<<4|u>>>22,u=d}u>>>=22,e.words[o-10]=u,u===0&&e.length>10?e.length-=10:e.length-=9},j.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var f=e.words[i]|0;r+=f*977,e.words[i]=r&67108863,r=f*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function Z(){C.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}q(Z,C);function Re(){C.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}q(Re,C);function Q(){C.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}q(Q,C),Q.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var f=(e.words[i]|0)*19+r,o=f&67108863;f>>>=26,e.words[i]=o,r=f}return r!==0&&(e.words[e.length++]=r),e},n._prime=function(e){if(O[e])return O[e];var r;if(e==="k256")r=new j;else if(e==="p224")r=new Z;else if(e==="p192")r=new Re;else if(e==="p25519")r=new Q;else throw new Error("Unknown prime "+e);return O[e]=r,r};function H(h){if(typeof h=="string"){var e=n._prime(h);this.m=e.p,this.prime=e}else v(h.gtn(1),"modulus must be greater than 1"),this.m=h,this.prime=null}H.prototype._verify1=function(e){v(e.negative===0,"red works only with positives"),v(e.red,"red works only with red numbers")},H.prototype._verify2=function(e,r){v((e.negative|r.negative)===0,"red works only with positives"),v(e.red&&e.red===r.red,"red works only with red numbers")},H.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},H.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},H.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},H.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},H.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},H.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},H.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},H.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},H.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},H.prototype.isqr=function(e){return this.imul(e,e.clone())},H.prototype.sqr=function(e){return this.mul(e,e)},H.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(v(r%2===1),r===3){var i=this.m.add(new n(1)).iushrn(2);return this.pow(e,i)}for(var f=this.m.subn(1),o=0;!f.isZero()&&f.andln(1)===0;)o++,f.iushrn(1);v(!f.isZero());var u=new n(1).toRed(this),d=u.redNeg(),a=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new n(2*t*t).toRed(this);this.pow(t,a).cmp(d)!==0;)t.redIAdd(d);for(var s=this.pow(t,f),$=this.pow(e,f.addn(1).iushrn(1)),T=this.pow(e,f),D=o;T.cmp(u)!==0;){for(var z=T,N=0;z.cmp(u)!==0;N++)z=z.redSqr();v(N<D);var S=this.pow(s,new n(1).iushln(D-N-1));$=$.redMul(S),s=S.redSqr(),T=T.redMul(s),D=N}return $},H.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},H.prototype.pow=function(e,r){if(r.isZero())return new n(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=4,f=new Array(1<<i);f[0]=new n(1).toRed(this),f[1]=e;for(var o=2;o<f.length;o++)f[o]=this.mul(f[o-1],e);var u=f[0],d=0,a=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 T=s>>$&1;if(u!==f[0]&&(u=this.sqr(u)),T===0&&d===0){a=0;continue}d<<=1,d|=T,a++,!(a!==i&&(o!==0||$!==0))&&(u=this.mul(u,f[d]),a=0,d=0)}t=26}return u},H.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},H.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},n.mont=function(e){return new Be(e)};function Be(h){H.call(this,h),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}q(Be,H),Be.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Be.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},Be.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),f=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=i.isub(f).iushrn(this.shift),u=o;return o.cmp(this.m)>=0?u=o.isub(this.m):o.cmpn(0)<0&&(u=o.iadd(this.m)),u._forceRed(this)},Be.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new n(0)._forceRed(this);var i=e.mul(r),f=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=i.isub(f).iushrn(this.shift),u=o;return o.cmp(this.m)>=0?u=o.isub(this.m):o.cmpn(0)<0&&(u=o.iadd(this.m)),u._forceRed(this)},Be.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(R,bn$a)})(bn$b)),bn$b.exports}var bn$9={exports:{}},bn$8=bn$9.exports,hasRequiredBn$4;function requireBn$4(){return hasRequiredBn$4||(hasRequiredBn$4=1,(function(R){(function(x,B){function v(h,e){if(!h)throw new Error(e||"Assertion failed")}function q(h,e){h.super_=e;var r=function(){};r.prototype=e.prototype,h.prototype=new r,h.prototype.constructor=h}function n(h,e,r){if(n.isBN(h))return h;this.negative=0,this.words=null,this.length=0,this.red=null,h!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(h||0,e||10,r||"be"))}typeof x=="object"?x.exports=n:B.BN=n,n.BN=n,n.wordSize=26;var y;try{typeof window<"u"&&typeof window.Buffer<"u"?y=window.Buffer:y=requireDist().Buffer}catch{}n.isBN=function(e){return e instanceof n?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,r){return e.cmp(r)>0?e:r},n.min=function(e,r){return e.cmp(r)<0?e:r},n.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),v(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var f=0;e[0]==="-"&&(f++,this.negative=1),f<e.length&&(r===16?this._parseHex(e,f,i):(this._parseBase(e,r,f),i==="le"&&this._initArray(this.toArray(),r,i)))},n.prototype._initNumber=function(e,r,i){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):(v(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},n.prototype._initArray=function(e,r,i){if(v(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 f=0;f<this.length;f++)this.words[f]=0;var o,u,d=0;if(i==="be")for(f=e.length-1,o=0;f>=0;f-=3)u=e[f]|e[f-1]<<8|e[f-2]<<16,this.words[o]|=u<<d&67108863,this.words[o+1]=u>>>26-d&67108863,d+=24,d>=26&&(d-=26,o++);else if(i==="le")for(f=0,o=0;f<e.length;f+=3)u=e[f]|e[f+1]<<8|e[f+2]<<16,this.words[o]|=u<<d&67108863,this.words[o+1]=u>>>26-d&67108863,d+=24,d>=26&&(d-=26,o++);return this.strip()};function b(h,e){var r=h.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(h,e,r){var i=b(h,r);return r-1>=e&&(i|=b(h,r-1)<<4),i}n.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var o=0,u=0,d;if(i==="be")for(f=e.length-1;f>=r;f-=2)d=m(e,r,f)<<o,this.words[u]|=d&67108863,o>=18?(o-=18,u+=1,this.words[u]|=d>>>26):o+=8;else{var a=e.length-r;for(f=a%2===0?r+1:r;f<e.length;f+=2)d=m(e,r,f)<<o,this.words[u]|=d&67108863,o>=18?(o-=18,u+=1,this.words[u]|=d>>>26):o+=8}this.strip()};function c(h,e,r,i){for(var f=0,o=Math.min(h.length,r),u=e;u<o;u++){var d=h.charCodeAt(u)-48;f*=i,d>=49?f+=d-49+10:d>=17?f+=d-17+10:f+=d}return f}n.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var f=0,o=1;o<=67108863;o*=r)f++;f--,o=o/r|0;for(var u=e.length-i,d=u%f,a=Math.min(u,u-d)+i,t=0,s=i;s<a;s+=f)t=c(e,s,s+f,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(d!==0){var $=1;for(t=c(e,s,e.length,r),s=0;s<d;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},n.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},n.prototype.clone=function(){var e=new n(null);return this.copy(e),e},n.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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],g=[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];n.prototype.toString=function(e,r){e=e||10,r=r|0||1;var i;if(e===16||e==="hex"){i="";for(var f=0,o=0,u=0;u<this.length;u++){var d=this.words[u],a=((d<<f|o)&16777215).toString(16);o=d>>>24-f&16777215,f+=2,f>=26&&(f-=26,u--),o!==0||u!==this.length-1?i=l[6-a.length]+a+i:i=a+i}for(o!==0&&(i=o.toString(16)+i);i.length%r!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=g[e];i="";var $=this.clone();for($.negative=0;!$.isZero();){var T=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?i=T+i:i=l[t-T.length]+T+i}for(this.isZero()&&(i="0"+i);i.length%r!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}v(!1,"Base should be between 2 and 36")},n.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&&v(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,r){return v(typeof y<"u"),this.toArrayLike(y,e,r)},n.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},n.prototype.toArrayLike=function(e,r,i){var f=this.byteLength(),o=i||Math.max(1,f);v(f<=o,"byte array longer than desired length"),v(o>0,"Requested array length <= 0"),this.strip();var u=r==="le",d=new e(o),a,t,s=this.clone();if(u){for(t=0;!s.isZero();t++)a=s.andln(255),s.iushrn(8),d[t]=a;for(;t<o;t++)d[t]=0}else{for(t=0;t<o-f;t++)d[t]=0;for(t=0;!s.isZero();t++)a=s.andln(255),s.iushrn(8),d[o-t-1]=a}return d},Math.clz32?n.prototype._countBits=function(e){return 32-Math.clz32(e)}:n.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},n.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return(r&8191)===0&&(i+=13,r>>>=13),(r&127)===0&&(i+=7,r>>>=7),(r&15)===0&&(i+=4,r>>>=4),(r&3)===0&&(i+=2,r>>>=2),(r&1)===0&&i++,i},n.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(h){for(var e=new Array(h.bitLength()),r=0;r<e.length;r++){var i=r/26|0,f=r%26;e[r]=(h.words[i]&1<<f)>>>f}return e}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},n.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.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()},n.prototype.ior=function(e){return v((this.negative|e.negative)===0),this.iuor(e)},n.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},n.prototype.iand=function(e){return v((this.negative|e.negative)===0),this.iuand(e)},n.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var f=0;f<i.length;f++)this.words[f]=r.words[f]^i.words[f];if(this!==r)for(;f<r.length;f++)this.words[f]=r.words[f];return this.length=r.length,this.strip()},n.prototype.ixor=function(e){return v((this.negative|e.negative)===0),this.iuxor(e)},n.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){v(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,i=e%26;this._expand(r),i>0&&r--;for(var f=0;f<r;f++)this.words[f]=~this.words[f]&67108863;for(i>0&&(this.words[f]=~this.words[f]&67108863>>26-i,f++);f<this.length;f++)this.words[f]=0;return this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,r){v(typeof e=="number"&&e>=0);var i=e/26|0,f=e%26;return this._expand(i+1),r?this.words[i]=this.words[i]|1<<f:this.words[i]=this.words[i]&~(1<<f),this.strip()},n.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 i,f;this.length>e.length?(i=this,f=e):(i=e,f=this);for(var o=0,u=0;u<f.length;u++)r=(i.words[u]|0)+(f.words[u]|0)+o,this.words[u]=r&67108863,o=r>>>26;for(;o!==0&&u<i.length;u++)r=(i.words[u]|0)+o,this.words[u]=r&67108863,o=r>>>26;if(this.length=i.length,o!==0)this.words[this.length]=o,this.length++;else if(i!==this)for(;u<i.length;u++)this.words[u]=i.words[u];return this},n.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)},n.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 i=this.cmp(e);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,o;i>0?(f=this,o=e):(f=e,o=this);for(var u=0,d=0;d<o.length;d++)r=(f.words[d]|0)-(o.words[d]|0)+u,u=r>>26,this.words[d]=r&67108863;for(;u!==0&&d<f.length;d++)r=(f.words[d]|0)+u,u=r>>26,this.words[d]=r&67108863;if(u===0&&d<f.length&&f!==this)for(;d<f.length;d++)this.words[d]=f.words[d];return this.length=Math.max(this.length,d),f!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(e){return this.clone().isub(e)};function M(h,e,r){r.negative=e.negative^h.negative;var i=h.length+e.length|0;r.length=i,i=i-1|0;var f=h.words[0]|0,o=e.words[0]|0,u=f*o,d=u&67108863,a=u/67108864|0;r.words[0]=d;for(var t=1;t<i;t++){for(var s=a>>>26,$=a&67108863,T=Math.min(t,e.length-1),D=Math.max(0,t-h.length+1);D<=T;D++){var z=t-D|0;f=h.words[z]|0,o=e.words[D]|0,u=f*o+$,s+=u/67108864|0,$=u&67108863}r.words[t]=$|0,a=s|0}return a!==0?r.words[t]=a|0:r.length--,r.strip()}var _=function(e,r,i){var f=e.words,o=r.words,u=i.words,d=0,a,t,s,$=f[0]|0,T=$&8191,D=$>>>13,z=f[1]|0,N=z&8191,S=z>>>13,P=f[2]|0,U=P&8191,K=P>>>13,L=f[3]|0,I=L&8191,F=L>>>13,Ee=f[4]|0,V=Ee&8191,W=Ee>>>13,Ae=f[5]|0,G=Ae&8191,Y=Ae>>>13,Ie=f[6]|0,ie=Ie&8191,ee=Ie>>>13,ke=f[7]|0,X=ke&8191,J=ke>>>13,$e=f[8]|0,te=$e&8191,re=$e>>>13,Ye=f[9]|0,ne=Ye&8191,fe=Ye>>>13,Qe=o[0]|0,ae=Qe&8191,se=Qe>>>13,et=o[1]|0,oe=et&8191,he=et>>>13,tt=o[2]|0,ue=tt&8191,de=tt>>>13,rt=o[3]|0,le=rt&8191,ce=rt>>>13,it=o[4]|0,ve=it&8191,pe=it>>>13,nt=o[5]|0,me=nt&8191,be=nt>>>13,ft=o[6]|0,ge=ft&8191,ye=ft>>>13,at=o[7]|0,we=at&8191,Me=at>>>13,st=o[8]|0,_e=st&8191,xe=st>>>13,ot=o[9]|0,Se=ot&8191,qe=ot>>>13;i.negative=e.negative^r.negative,i.length=19,a=Math.imul(T,ae),t=Math.imul(T,se),t=t+Math.imul(D,ae)|0,s=Math.imul(D,se);var Te=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Te>>>26)|0,Te&=67108863,a=Math.imul(N,ae),t=Math.imul(N,se),t=t+Math.imul(S,ae)|0,s=Math.imul(S,se),a=a+Math.imul(T,oe)|0,t=t+Math.imul(T,he)|0,t=t+Math.imul(D,oe)|0,s=s+Math.imul(D,he)|0;var Pe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,a=Math.imul(U,ae),t=Math.imul(U,se),t=t+Math.imul(K,ae)|0,s=Math.imul(K,se),a=a+Math.imul(N,oe)|0,t=t+Math.imul(N,he)|0,t=t+Math.imul(S,oe)|0,s=s+Math.imul(S,he)|0,a=a+Math.imul(T,ue)|0,t=t+Math.imul(T,de)|0,t=t+Math.imul(D,ue)|0,s=s+Math.imul(D,de)|0;var De=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(De>>>26)|0,De&=67108863,a=Math.imul(I,ae),t=Math.imul(I,se),t=t+Math.imul(F,ae)|0,s=Math.imul(F,se),a=a+Math.imul(U,oe)|0,t=t+Math.imul(U,he)|0,t=t+Math.imul(K,oe)|0,s=s+Math.imul(K,he)|0,a=a+Math.imul(N,ue)|0,t=t+Math.imul(N,de)|0,t=t+Math.imul(S,ue)|0,s=s+Math.imul(S,de)|0,a=a+Math.imul(T,le)|0,t=t+Math.imul(T,ce)|0,t=t+Math.imul(D,le)|0,s=s+Math.imul(D,ce)|0;var Ce=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,a=Math.imul(V,ae),t=Math.imul(V,se),t=t+Math.imul(W,ae)|0,s=Math.imul(W,se),a=a+Math.imul(I,oe)|0,t=t+Math.imul(I,he)|0,t=t+Math.imul(F,oe)|0,s=s+Math.imul(F,he)|0,a=a+Math.imul(U,ue)|0,t=t+Math.imul(U,de)|0,t=t+Math.imul(K,ue)|0,s=s+Math.imul(K,de)|0,a=a+Math.imul(N,le)|0,t=t+Math.imul(N,ce)|0,t=t+Math.imul(S,le)|0,s=s+Math.imul(S,ce)|0,a=a+Math.imul(T,ve)|0,t=t+Math.imul(T,pe)|0,t=t+Math.imul(D,ve)|0,s=s+Math.imul(D,pe)|0;var Ne=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,a=Math.imul(G,ae),t=Math.imul(G,se),t=t+Math.imul(Y,ae)|0,s=Math.imul(Y,se),a=a+Math.imul(V,oe)|0,t=t+Math.imul(V,he)|0,t=t+Math.imul(W,oe)|0,s=s+Math.imul(W,he)|0,a=a+Math.imul(I,ue)|0,t=t+Math.imul(I,de)|0,t=t+Math.imul(F,ue)|0,s=s+Math.imul(F,de)|0,a=a+Math.imul(U,le)|0,t=t+Math.imul(U,ce)|0,t=t+Math.imul(K,le)|0,s=s+Math.imul(K,ce)|0,a=a+Math.imul(N,ve)|0,t=t+Math.imul(N,pe)|0,t=t+Math.imul(S,ve)|0,s=s+Math.imul(S,pe)|0,a=a+Math.imul(T,me)|0,t=t+Math.imul(T,be)|0,t=t+Math.imul(D,me)|0,s=s+Math.imul(D,be)|0;var Oe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,a=Math.imul(ie,ae),t=Math.imul(ie,se),t=t+Math.imul(ee,ae)|0,s=Math.imul(ee,se),a=a+Math.imul(G,oe)|0,t=t+Math.imul(G,he)|0,t=t+Math.imul(Y,oe)|0,s=s+Math.imul(Y,he)|0,a=a+Math.imul(V,ue)|0,t=t+Math.imul(V,de)|0,t=t+Math.imul(W,ue)|0,s=s+Math.imul(W,de)|0,a=a+Math.imul(I,le)|0,t=t+Math.imul(I,ce)|0,t=t+Math.imul(F,le)|0,s=s+Math.imul(F,ce)|0,a=a+Math.imul(U,ve)|0,t=t+Math.imul(U,pe)|0,t=t+Math.imul(K,ve)|0,s=s+Math.imul(K,pe)|0,a=a+Math.imul(N,me)|0,t=t+Math.imul(N,be)|0,t=t+Math.imul(S,me)|0,s=s+Math.imul(S,be)|0,a=a+Math.imul(T,ge)|0,t=t+Math.imul(T,ye)|0,t=t+Math.imul(D,ge)|0,s=s+Math.imul(D,ye)|0;var Le=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Le>>>26)|0,Le&=67108863,a=Math.imul(X,ae),t=Math.imul(X,se),t=t+Math.imul(J,ae)|0,s=Math.imul(J,se),a=a+Math.imul(ie,oe)|0,t=t+Math.imul(ie,he)|0,t=t+Math.imul(ee,oe)|0,s=s+Math.imul(ee,he)|0,a=a+Math.imul(G,ue)|0,t=t+Math.imul(G,de)|0,t=t+Math.imul(Y,ue)|0,s=s+Math.imul(Y,de)|0,a=a+Math.imul(V,le)|0,t=t+Math.imul(V,ce)|0,t=t+Math.imul(W,le)|0,s=s+Math.imul(W,ce)|0,a=a+Math.imul(I,ve)|0,t=t+Math.imul(I,pe)|0,t=t+Math.imul(F,ve)|0,s=s+Math.imul(F,pe)|0,a=a+Math.imul(U,me)|0,t=t+Math.imul(U,be)|0,t=t+Math.imul(K,me)|0,s=s+Math.imul(K,be)|0,a=a+Math.imul(N,ge)|0,t=t+Math.imul(N,ye)|0,t=t+Math.imul(S,ge)|0,s=s+Math.imul(S,ye)|0,a=a+Math.imul(T,we)|0,t=t+Math.imul(T,Me)|0,t=t+Math.imul(D,we)|0,s=s+Math.imul(D,Me)|0;var Ue=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,a=Math.imul(te,ae),t=Math.imul(te,se),t=t+Math.imul(re,ae)|0,s=Math.imul(re,se),a=a+Math.imul(X,oe)|0,t=t+Math.imul(X,he)|0,t=t+Math.imul(J,oe)|0,s=s+Math.imul(J,he)|0,a=a+Math.imul(ie,ue)|0,t=t+Math.imul(ie,de)|0,t=t+Math.imul(ee,ue)|0,s=s+Math.imul(ee,de)|0,a=a+Math.imul(G,le)|0,t=t+Math.imul(G,ce)|0,t=t+Math.imul(Y,le)|0,s=s+Math.imul(Y,ce)|0,a=a+Math.imul(V,ve)|0,t=t+Math.imul(V,pe)|0,t=t+Math.imul(W,ve)|0,s=s+Math.imul(W,pe)|0,a=a+Math.imul(I,me)|0,t=t+Math.imul(I,be)|0,t=t+Math.imul(F,me)|0,s=s+Math.imul(F,be)|0,a=a+Math.imul(U,ge)|0,t=t+Math.imul(U,ye)|0,t=t+Math.imul(K,ge)|0,s=s+Math.imul(K,ye)|0,a=a+Math.imul(N,we)|0,t=t+Math.imul(N,Me)|0,t=t+Math.imul(S,we)|0,s=s+Math.imul(S,Me)|0,a=a+Math.imul(T,_e)|0,t=t+Math.imul(T,xe)|0,t=t+Math.imul(D,_e)|0,s=s+Math.imul(D,xe)|0;var ze=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(ze>>>26)|0,ze&=67108863,a=Math.imul(ne,ae),t=Math.imul(ne,se),t=t+Math.imul(fe,ae)|0,s=Math.imul(fe,se),a=a+Math.imul(te,oe)|0,t=t+Math.imul(te,he)|0,t=t+Math.imul(re,oe)|0,s=s+Math.imul(re,he)|0,a=a+Math.imul(X,ue)|0,t=t+Math.imul(X,de)|0,t=t+Math.imul(J,ue)|0,s=s+Math.imul(J,de)|0,a=a+Math.imul(ie,le)|0,t=t+Math.imul(ie,ce)|0,t=t+Math.imul(ee,le)|0,s=s+Math.imul(ee,ce)|0,a=a+Math.imul(G,ve)|0,t=t+Math.imul(G,pe)|0,t=t+Math.imul(Y,ve)|0,s=s+Math.imul(Y,pe)|0,a=a+Math.imul(V,me)|0,t=t+Math.imul(V,be)|0,t=t+Math.imul(W,me)|0,s=s+Math.imul(W,be)|0,a=a+Math.imul(I,ge)|0,t=t+Math.imul(I,ye)|0,t=t+Math.imul(F,ge)|0,s=s+Math.imul(F,ye)|0,a=a+Math.imul(U,we)|0,t=t+Math.imul(U,Me)|0,t=t+Math.imul(K,we)|0,s=s+Math.imul(K,Me)|0,a=a+Math.imul(N,_e)|0,t=t+Math.imul(N,xe)|0,t=t+Math.imul(S,_e)|0,s=s+Math.imul(S,xe)|0,a=a+Math.imul(T,Se)|0,t=t+Math.imul(T,qe)|0,t=t+Math.imul(D,Se)|0,s=s+Math.imul(D,qe)|0;var Ke=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,a=Math.imul(ne,oe),t=Math.imul(ne,he),t=t+Math.imul(fe,oe)|0,s=Math.imul(fe,he),a=a+Math.imul(te,ue)|0,t=t+Math.imul(te,de)|0,t=t+Math.imul(re,ue)|0,s=s+Math.imul(re,de)|0,a=a+Math.imul(X,le)|0,t=t+Math.imul(X,ce)|0,t=t+Math.imul(J,le)|0,s=s+Math.imul(J,ce)|0,a=a+Math.imul(ie,ve)|0,t=t+Math.imul(ie,pe)|0,t=t+Math.imul(ee,ve)|0,s=s+Math.imul(ee,pe)|0,a=a+Math.imul(G,me)|0,t=t+Math.imul(G,be)|0,t=t+Math.imul(Y,me)|0,s=s+Math.imul(Y,be)|0,a=a+Math.imul(V,ge)|0,t=t+Math.imul(V,ye)|0,t=t+Math.imul(W,ge)|0,s=s+Math.imul(W,ye)|0,a=a+Math.imul(I,we)|0,t=t+Math.imul(I,Me)|0,t=t+Math.imul(F,we)|0,s=s+Math.imul(F,Me)|0,a=a+Math.imul(U,_e)|0,t=t+Math.imul(U,xe)|0,t=t+Math.imul(K,_e)|0,s=s+Math.imul(K,xe)|0,a=a+Math.imul(N,Se)|0,t=t+Math.imul(N,qe)|0,t=t+Math.imul(S,Se)|0,s=s+Math.imul(S,qe)|0;var Fe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,a=Math.imul(ne,ue),t=Math.imul(ne,de),t=t+Math.imul(fe,ue)|0,s=Math.imul(fe,de),a=a+Math.imul(te,le)|0,t=t+Math.imul(te,ce)|0,t=t+Math.imul(re,le)|0,s=s+Math.imul(re,ce)|0,a=a+Math.imul(X,ve)|0,t=t+Math.imul(X,pe)|0,t=t+Math.imul(J,ve)|0,s=s+Math.imul(J,pe)|0,a=a+Math.imul(ie,me)|0,t=t+Math.imul(ie,be)|0,t=t+Math.imul(ee,me)|0,s=s+Math.imul(ee,be)|0,a=a+Math.imul(G,ge)|0,t=t+Math.imul(G,ye)|0,t=t+Math.imul(Y,ge)|0,s=s+Math.imul(Y,ye)|0,a=a+Math.imul(V,we)|0,t=t+Math.imul(V,Me)|0,t=t+Math.imul(W,we)|0,s=s+Math.imul(W,Me)|0,a=a+Math.imul(I,_e)|0,t=t+Math.imul(I,xe)|0,t=t+Math.imul(F,_e)|0,s=s+Math.imul(F,xe)|0,a=a+Math.imul(U,Se)|0,t=t+Math.imul(U,qe)|0,t=t+Math.imul(K,Se)|0,s=s+Math.imul(K,qe)|0;var He=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(He>>>26)|0,He&=67108863,a=Math.imul(ne,le),t=Math.imul(ne,ce),t=t+Math.imul(fe,le)|0,s=Math.imul(fe,ce),a=a+Math.imul(te,ve)|0,t=t+Math.imul(te,pe)|0,t=t+Math.imul(re,ve)|0,s=s+Math.imul(re,pe)|0,a=a+Math.imul(X,me)|0,t=t+Math.imul(X,be)|0,t=t+Math.imul(J,me)|0,s=s+Math.imul(J,be)|0,a=a+Math.imul(ie,ge)|0,t=t+Math.imul(ie,ye)|0,t=t+Math.imul(ee,ge)|0,s=s+Math.imul(ee,ye)|0,a=a+Math.imul(G,we)|0,t=t+Math.imul(G,Me)|0,t=t+Math.imul(Y,we)|0,s=s+Math.imul(Y,Me)|0,a=a+Math.imul(V,_e)|0,t=t+Math.imul(V,xe)|0,t=t+Math.imul(W,_e)|0,s=s+Math.imul(W,xe)|0,a=a+Math.imul(I,Se)|0,t=t+Math.imul(I,qe)|0,t=t+Math.imul(F,Se)|0,s=s+Math.imul(F,qe)|0;var je=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(je>>>26)|0,je&=67108863,a=Math.imul(ne,ve),t=Math.imul(ne,pe),t=t+Math.imul(fe,ve)|0,s=Math.imul(fe,pe),a=a+Math.imul(te,me)|0,t=t+Math.imul(te,be)|0,t=t+Math.imul(re,me)|0,s=s+Math.imul(re,be)|0,a=a+Math.imul(X,ge)|0,t=t+Math.imul(X,ye)|0,t=t+Math.imul(J,ge)|0,s=s+Math.imul(J,ye)|0,a=a+Math.imul(ie,we)|0,t=t+Math.imul(ie,Me)|0,t=t+Math.imul(ee,we)|0,s=s+Math.imul(ee,Me)|0,a=a+Math.imul(G,_e)|0,t=t+Math.imul(G,xe)|0,t=t+Math.imul(Y,_e)|0,s=s+Math.imul(Y,xe)|0,a=a+Math.imul(V,Se)|0,t=t+Math.imul(V,qe)|0,t=t+Math.imul(W,Se)|0,s=s+Math.imul(W,qe)|0;var Ze=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,a=Math.imul(ne,me),t=Math.imul(ne,be),t=t+Math.imul(fe,me)|0,s=Math.imul(fe,be),a=a+Math.imul(te,ge)|0,t=t+Math.imul(te,ye)|0,t=t+Math.imul(re,ge)|0,s=s+Math.imul(re,ye)|0,a=a+Math.imul(X,we)|0,t=t+Math.imul(X,Me)|0,t=t+Math.imul(J,we)|0,s=s+Math.imul(J,Me)|0,a=a+Math.imul(ie,_e)|0,t=t+Math.imul(ie,xe)|0,t=t+Math.imul(ee,_e)|0,s=s+Math.imul(ee,xe)|0,a=a+Math.imul(G,Se)|0,t=t+Math.imul(G,qe)|0,t=t+Math.imul(Y,Se)|0,s=s+Math.imul(Y,qe)|0;var We=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,a=Math.imul(ne,ge),t=Math.imul(ne,ye),t=t+Math.imul(fe,ge)|0,s=Math.imul(fe,ye),a=a+Math.imul(te,we)|0,t=t+Math.imul(te,Me)|0,t=t+Math.imul(re,we)|0,s=s+Math.imul(re,Me)|0,a=a+Math.imul(X,_e)|0,t=t+Math.imul(X,xe)|0,t=t+Math.imul(J,_e)|0,s=s+Math.imul(J,xe)|0,a=a+Math.imul(ie,Se)|0,t=t+Math.imul(ie,qe)|0,t=t+Math.imul(ee,Se)|0,s=s+Math.imul(ee,qe)|0;var Ve=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,a=Math.imul(ne,we),t=Math.imul(ne,Me),t=t+Math.imul(fe,we)|0,s=Math.imul(fe,Me),a=a+Math.imul(te,_e)|0,t=t+Math.imul(te,xe)|0,t=t+Math.imul(re,_e)|0,s=s+Math.imul(re,xe)|0,a=a+Math.imul(X,Se)|0,t=t+Math.imul(X,qe)|0,t=t+Math.imul(J,Se)|0,s=s+Math.imul(J,qe)|0;var Ge=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,a=Math.imul(ne,_e),t=Math.imul(ne,xe),t=t+Math.imul(fe,_e)|0,s=Math.imul(fe,xe),a=a+Math.imul(te,Se)|0,t=t+Math.imul(te,qe)|0,t=t+Math.imul(re,Se)|0,s=s+Math.imul(re,qe)|0;var Xe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,a=Math.imul(ne,Se),t=Math.imul(ne,qe),t=t+Math.imul(fe,Se)|0,s=Math.imul(fe,qe);var Je=(d+a|0)+((t&8191)<<13)|0;return d=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,u[0]=Te,u[1]=Pe,u[2]=De,u[3]=Ce,u[4]=Ne,u[5]=Oe,u[6]=Le,u[7]=Ue,u[8]=ze,u[9]=Ke,u[10]=Fe,u[11]=He,u[12]=je,u[13]=Ze,u[14]=We,u[15]=Ve,u[16]=Ge,u[17]=Xe,u[18]=Je,d!==0&&(u[19]=d,i.length++),i};Math.imul||(_=M);function k(h,e,r){r.negative=e.negative^h.negative,r.length=h.length+e.length;for(var i=0,f=0,o=0;o<r.length-1;o++){var u=f;f=0;for(var d=i&67108863,a=Math.min(o,e.length-1),t=Math.max(0,o-h.length+1);t<=a;t++){var s=o-t,$=h.words[s]|0,T=e.words[t]|0,D=$*T,z=D&67108863;u=u+(D/67108864|0)|0,z=z+d|0,d=z&67108863,u=u+(z>>>26)|0,f+=u>>>26,u&=67108863}r.words[o]=d,i=u,u=f}return i!==0?r.words[o]=i:r.length--,r.strip()}function E(h,e,r){var i=new A;return i.mulp(h,e,r)}n.prototype.mulTo=function(e,r){var i,f=this.length+e.length;return this.length===10&&e.length===10?i=_(this,e,r):f<63?i=M(this,e,r):f<1024?i=k(this,e,r):i=E(this,e,r),i};function A(h,e){this.x=h,this.y=e}A.prototype.makeRBT=function(e){for(var r=new Array(e),i=n.prototype._countBits(e)-1,f=0;f<e;f++)r[f]=this.revBin(f,i,e);return r},A.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var f=0,o=0;o<r;o++)f|=(e&1)<<r-o-1,e>>=1;return f},A.prototype.permute=function(e,r,i,f,o,u){for(var d=0;d<u;d++)f[d]=r[e[d]],o[d]=i[e[d]]},A.prototype.transform=function(e,r,i,f,o,u){this.permute(u,e,r,i,f,o);for(var d=1;d<o;d<<=1)for(var a=d<<1,t=Math.cos(2*Math.PI/a),s=Math.sin(2*Math.PI/a),$=0;$<o;$+=a)for(var T=t,D=s,z=0;z<d;z++){var N=i[$+z],S=f[$+z],P=i[$+z+d],U=f[$+z+d],K=T*P-D*U;U=T*U+D*P,P=K,i[$+z]=N+P,f[$+z]=S+U,i[$+z+d]=N-P,f[$+z+d]=S-U,z!==a&&(K=t*T-s*D,D=t*D+s*T,T=K)}},A.prototype.guessLen13b=function(e,r){var i=Math.max(r,e)|1,f=i&1,o=0;for(i=i/2|0;i;i=i>>>1)o++;return 1<<o+1+f},A.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var f=0;f<i/2;f++){var o=e[f];e[f]=e[i-f-1],e[i-f-1]=o,o=r[f],r[f]=-r[i-f-1],r[i-f-1]=-o}},A.prototype.normalize13b=function(e,r){for(var i=0,f=0;f<r/2;f++){var o=Math.round(e[2*f+1]/r)*8192+Math.round(e[2*f]/r)+i;e[f]=o&67108863,o<67108864?i=0:i=o/67108864|0}return e},A.prototype.convert13b=function(e,r,i,f){for(var o=0,u=0;u<r;u++)o=o+(e[u]|0),i[2*u]=o&8191,o=o>>>13,i[2*u+1]=o&8191,o=o>>>13;for(u=2*r;u<f;++u)i[u]=0;v(o===0),v((o&-8192)===0)},A.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},A.prototype.mulp=function(e,r,i){var f=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(f),u=this.stub(f),d=new Array(f),a=new Array(f),t=new Array(f),s=new Array(f),$=new Array(f),T=new Array(f),D=i.words;D.length=f,this.convert13b(e.words,e.length,d,f),this.convert13b(r.words,r.length,s,f),this.transform(d,u,a,t,f,o),this.transform(s,u,$,T,f,o);for(var z=0;z<f;z++){var N=a[z]*$[z]-t[z]*T[z];t[z]=a[z]*T[z]+t[z]*$[z],a[z]=N}return this.conjugate(a,t,f),this.transform(a,t,D,u,f,o),this.conjugate(D,u,f),this.normalize13b(D,f),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},n.prototype.mul=function(e){var r=new n(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},n.prototype.mulf=function(e){var r=new n(null);return r.words=new Array(this.length+e.length),E(this,e,r)},n.prototype.imul=function(e){return this.clone().mulTo(e,this)},n.prototype.imuln=function(e){v(typeof e=="number"),v(e<67108864);for(var r=0,i=0;i<this.length;i++){var f=(this.words[i]|0)*e,o=(f&67108863)+(r&67108863);r>>=26,r+=f/67108864|0,r+=o>>>26,this.words[i]=o&67108863}return r!==0&&(this.words[i]=r,this.length++),this.length=e===0?1:this.length,this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var r=w(e);if(r.length===0)return new n(1);for(var i=this,f=0;f<r.length&&r[f]===0;f++,i=i.sqr());if(++f<r.length)for(var o=i.sqr();f<r.length;f++,o=o.sqr())r[f]!==0&&(i=i.mul(o));return i},n.prototype.iushln=function(e){v(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,f=67108863>>>26-r<<26-r,o;if(r!==0){var u=0;for(o=0;o<this.length;o++){var d=this.words[o]&f,a=(this.words[o]|0)-d<<r;this.words[o]=a|u,u=d>>>26-r}u&&(this.words[o]=u,this.length++)}if(i!==0){for(o=this.length-1;o>=0;o--)this.words[o+i]=this.words[o];for(o=0;o<i;o++)this.words[o]=0;this.length+=i}return this.strip()},n.prototype.ishln=function(e){return v(this.negative===0),this.iushln(e)},n.prototype.iushrn=function(e,r,i){v(typeof e=="number"&&e>=0);var f;r?f=(r-r%26)/26:f=0;var o=e%26,u=Math.min((e-o)/26,this.length),d=67108863^67108863>>>o<<o,a=i;if(f-=u,f=Math.max(0,f),a){for(var t=0;t<u;t++)a.words[t]=this.words[t];a.length=u}if(u!==0)if(this.length>u)for(this.length-=u,t=0;t<this.length;t++)this.words[t]=this.words[t+u];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=f);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&d}return a&&s!==0&&(a.words[a.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,r,i){return v(this.negative===0),this.iushrn(e,r,i)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){v(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,f=1<<r;if(this.length<=i)return!1;var o=this.words[i];return!!(o&f)},n.prototype.imaskn=function(e){v(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(v(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var f=67108863^67108863>>>r<<r;this.words[this.length-1]&=f}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.maskn=function(e){return this.clone().imaskn(e)},n.prototype.iaddn=function(e){return v(typeof e=="number"),v(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)},n.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},n.prototype.isubn=function(e){if(v(typeof e=="number"),v(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()},n.prototype.addn=function(e){return this.clone().iaddn(e)},n.prototype.subn=function(e){return this.clone().isubn(e)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(e,r,i){var f=e.length+i,o;this._expand(f);var u,d=0;for(o=0;o<e.length;o++){u=(this.words[o+i]|0)+d;var a=(e.words[o]|0)*r;u-=a&67108863,d=(u>>26)-(a/67108864|0),this.words[o+i]=u&67108863}for(;o<this.length-i;o++)u=(this.words[o+i]|0)+d,d=u>>26,this.words[o+i]=u&67108863;if(d===0)return this.strip();for(v(d===-1),d=0,o=0;o<this.length;o++)u=-(this.words[o]|0)+d,d=u>>26,this.words[o]=u&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,r){var i=this.length-e.length,f=this.clone(),o=e,u=o.words[o.length-1]|0,d=this._countBits(u);i=26-d,i!==0&&(o=o.ushln(i),f.iushln(i),u=o.words[o.length-1]|0);var a=f.length-o.length,t;if(r!=="mod"){t=new n(null),t.length=a+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=f.clone()._ishlnsubmul(o,1,a);$.negative===0&&(f=$,t&&(t.words[a]=1));for(var T=a-1;T>=0;T--){var D=(f.words[o.length+T]|0)*67108864+(f.words[o.length+T-1]|0);for(D=Math.min(D/u|0,67108863),f._ishlnsubmul(o,D,T);f.negative!==0;)D--,f.negative=0,f._ishlnsubmul(o,1,T),f.isZero()||(f.negative^=1);t&&(t.words[T]=D)}return t&&t.strip(),f.strip(),r!=="div"&&i!==0&&f.iushrn(i),{div:t||null,mod:f}},n.prototype.divmod=function(e,r,i){if(v(!e.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var f,o,u;return this.negative!==0&&e.negative===0?(u=this.neg().divmod(e,r),r!=="mod"&&(f=u.div.neg()),r!=="div"&&(o=u.mod.neg(),i&&o.negative!==0&&o.iadd(e)),{div:f,mod:o}):this.negative===0&&e.negative!==0?(u=this.divmod(e.neg(),r),r!=="mod"&&(f=u.div.neg()),{div:f,mod:u.mod}):(this.negative&e.negative)!==0?(u=this.neg().divmod(e.neg(),r),r!=="div"&&(o=u.mod.neg(),i&&o.negative!==0&&o.isub(e)),{div:u.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,r)},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,f=e.ushrn(1),o=e.andln(1),u=i.cmp(f);return u<0||o===1&&u===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(e){v(e<=67108863);for(var r=(1<<26)%e,i=0,f=this.length-1;f>=0;f--)i=(r*i+(this.words[f]|0))%e;return i},n.prototype.idivn=function(e){v(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var f=(this.words[i]|0)+r*67108864;this.words[i]=f/e|0,r=f%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){v(e.negative===0),v(!e.isZero());var r=this,i=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var f=new n(1),o=new n(0),u=new n(0),d=new n(1),a=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++a;for(var t=i.clone(),s=r.clone();!r.isZero();){for(var $=0,T=1;(r.words[0]&T)===0&&$<26;++$,T<<=1);if($>0)for(r.iushrn($);$-- >0;)(f.isOdd()||o.isOdd())&&(f.iadd(t),o.isub(s)),f.iushrn(1),o.iushrn(1);for(var D=0,z=1;(i.words[0]&z)===0&&D<26;++D,z<<=1);if(D>0)for(i.iushrn(D);D-- >0;)(u.isOdd()||d.isOdd())&&(u.iadd(t),d.isub(s)),u.iushrn(1),d.iushrn(1);r.cmp(i)>=0?(r.isub(i),f.isub(u),o.isub(d)):(i.isub(r),u.isub(f),d.isub(o))}return{a:u,b:d,gcd:i.iushln(a)}},n.prototype._invmp=function(e){v(e.negative===0),v(!e.isZero());var r=this,i=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var f=new n(1),o=new n(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var d=0,a=1;(r.words[0]&a)===0&&d<26;++d,a<<=1);if(d>0)for(r.iushrn(d);d-- >0;)f.isOdd()&&f.iadd(u),f.iushrn(1);for(var t=0,s=1;(i.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(i.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),f.isub(o)):(i.isub(r),o.isub(f))}var $;return r.cmpn(1)===0?$=f:$=o,$.cmpn(0)<0&&$.iadd(e),$},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var f=0;r.isEven()&&i.isEven();f++)r.iushrn(1),i.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var o=r.cmp(i);if(o<0){var u=r;r=i,i=u}else if(o===0||i.cmpn(1)===0)break;r.isub(i)}while(!0);return i.iushln(f)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){v(typeof e=="number");var r=e%26,i=(e-r)/26,f=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=f,this;for(var o=f,u=i;o!==0&&u<this.length;u++){var d=this.words[u]|0;d+=o,o=d>>>26,d&=67108863,this.words[u]=d}return o!==0&&(this.words[u]=o,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.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 i;if(this.length>1)i=1;else{r&&(e=-e),v(e<=67108863,"Number is too big");var f=this.words[0]|0;i=f===e?0:f<e?-1:1}return this.negative!==0?-i|0:i},n.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},n.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var f=this.words[i]|0,o=e.words[i]|0;if(f!==o){f<o?r=-1:f>o&&(r=1);break}}return r},n.prototype.gtn=function(e){return this.cmpn(e)===1},n.prototype.gt=function(e){return this.cmp(e)===1},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return this.cmpn(e)===-1},n.prototype.lt=function(e){return this.cmp(e)===-1},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return this.cmpn(e)===0},n.prototype.eq=function(e){return this.cmp(e)===0},n.red=function(e){return new H(e)},n.prototype.toRed=function(e){return v(!this.red,"Already a number in reduction context"),v(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return v(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return v(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var O={k256:null,p224:null,p192:null,p25519:null};function C(h,e){this.name=h,this.p=new n(e,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}C.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},C.prototype.ireduce=function(e){var r=e,i;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),i=r.bitLength();while(i>this.n);var f=i<this.n?-1:r.ucmp(this.p);return f===0?(r.words[0]=0,r.length=1):f>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},C.prototype.split=function(e,r){e.iushrn(this.n,0,r)},C.prototype.imulK=function(e){return e.imul(this.k)};function j(){C.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}q(j,C),j.prototype.split=function(e,r){for(var i=4194303,f=Math.min(e.length,9),o=0;o<f;o++)r.words[o]=e.words[o];if(r.length=f,e.length<=9){e.words[0]=0,e.length=1;return}var u=e.words[9];for(r.words[r.length++]=u&i,o=10;o<e.length;o++){var d=e.words[o]|0;e.words[o-10]=(d&i)<<4|u>>>22,u=d}u>>>=22,e.words[o-10]=u,u===0&&e.length>10?e.length-=10:e.length-=9},j.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var f=e.words[i]|0;r+=f*977,e.words[i]=r&67108863,r=f*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function Z(){C.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}q(Z,C);function Re(){C.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}q(Re,C);function Q(){C.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}q(Q,C),Q.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var f=(e.words[i]|0)*19+r,o=f&67108863;f>>>=26,e.words[i]=o,r=f}return r!==0&&(e.words[e.length++]=r),e},n._prime=function(e){if(O[e])return O[e];var r;if(e==="k256")r=new j;else if(e==="p224")r=new Z;else if(e==="p192")r=new Re;else if(e==="p25519")r=new Q;else throw new Error("Unknown prime "+e);return O[e]=r,r};function H(h){if(typeof h=="string"){var e=n._prime(h);this.m=e.p,this.prime=e}else v(h.gtn(1),"modulus must be greater than 1"),this.m=h,this.prime=null}H.prototype._verify1=function(e){v(e.negative===0,"red works only with positives"),v(e.red,"red works only with red numbers")},H.prototype._verify2=function(e,r){v((e.negative|r.negative)===0,"red works only with positives"),v(e.red&&e.red===r.red,"red works only with red numbers")},H.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},H.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},H.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},H.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},H.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},H.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},H.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},H.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},H.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},H.prototype.isqr=function(e){return this.imul(e,e.clone())},H.prototype.sqr=function(e){return this.mul(e,e)},H.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(v(r%2===1),r===3){var i=this.m.add(new n(1)).iushrn(2);return this.pow(e,i)}for(var f=this.m.subn(1),o=0;!f.isZero()&&f.andln(1)===0;)o++,f.iushrn(1);v(!f.isZero());var u=new n(1).toRed(this),d=u.redNeg(),a=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new n(2*t*t).toRed(this);this.pow(t,a).cmp(d)!==0;)t.redIAdd(d);for(var s=this.pow(t,f),$=this.pow(e,f.addn(1).iushrn(1)),T=this.pow(e,f),D=o;T.cmp(u)!==0;){for(var z=T,N=0;z.cmp(u)!==0;N++)z=z.redSqr();v(N<D);var S=this.pow(s,new n(1).iushln(D-N-1));$=$.redMul(S),s=S.redSqr(),T=T.redMul(s),D=N}return $},H.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},H.prototype.pow=function(e,r){if(r.isZero())return new n(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=4,f=new Array(1<<i);f[0]=new n(1).toRed(this),f[1]=e;for(var o=2;o<f.length;o++)f[o]=this.mul(f[o-1],e);var u=f[0],d=0,a=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 T=s>>$&1;if(u!==f[0]&&(u=this.sqr(u)),T===0&&d===0){a=0;continue}d<<=1,d|=T,a++,!(a!==i&&(o!==0||$!==0))&&(u=this.mul(u,f[d]),a=0,d=0)}t=26}return u},H.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},H.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},n.mont=function(e){return new Be(e)};function Be(h){H.call(this,h),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}q(Be,H),Be.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Be.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},Be.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),f=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=i.isub(f).iushrn(this.shift),u=o;return o.cmp(this.m)>=0?u=o.isub(this.m):o.cmpn(0)<0&&(u=o.iadd(this.m)),u._forceRed(this)},Be.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new n(0)._forceRed(this);var i=e.mul(r),f=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=i.isub(f).iushrn(this.shift),u=o;return o.cmp(this.m)>=0?u=o.isub(this.m):o.cmpn(0)<0&&(u=o.iadd(this.m)),u._forceRed(this)},Be.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(R,bn$8)})(bn$9)),bn$9.exports}var brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var R;brorand.exports=function(q){return R||(R=new x(null)),R.generate(q)};function x(v){this.rand=v}if(brorand.exports.Rand=x,x.prototype.generate=function(q){return this._rand(q)},x.prototype._rand=function(q){if(this.rand.getBytes)return this.rand.getBytes(q);for(var n=new Uint8Array(q),y=0;y<n.length;y++)n[y]=this.rand.getByte();return n},typeof self=="object")self.crypto&&self.crypto.getRandomValues?x.prototype._rand=function(q){var n=new Uint8Array(q);return self.crypto.getRandomValues(n),n}:self.msCrypto&&self.msCrypto.getRandomValues?x.prototype._rand=function(q){var n=new Uint8Array(q);return self.msCrypto.getRandomValues(n),n}:typeof window=="object"&&(x.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var B=requireCryptoBrowserify();if(typeof B.randomBytes!="function")throw new Error("Not supported");x.prototype._rand=function(q){return B.randomBytes(q)}}catch{}return brorand.exports}var mr,hasRequiredMr;function requireMr(){if(hasRequiredMr)return mr;hasRequiredMr=1;var R=requireBn$4(),x=requireBrorand();function B(v){this.rand=v||new x.Rand}return mr=B,B.create=function(q){return new B(q)},B.prototype._randbelow=function(q){var n=q.bitLength(),y=Math.ceil(n/8);do var b=new R(this.rand.generate(y));while(b.cmp(q)>=0);return b},B.prototype._randrange=function(q,n){var y=n.sub(q);return q.add(this._randbelow(y))},B.prototype.test=function(q,n,y){var b=q.bitLength(),m=R.mont(q),c=new R(1).toRed(m);n||(n=Math.max(1,b/48|0));for(var l=q.subn(1),p=0;!l.testn(p);p++);for(var g=q.shrn(p),w=l.toRed(m),M=!0;n>0;n--){var _=this._randrange(new R(2),l);y&&y(_);var k=_.toRed(m).redPow(g);if(!(k.cmp(c)===0||k.cmp(w)===0)){for(var E=1;E<p;E++){if(k=k.redSqr(),k.cmp(c)===0)return!1;if(k.cmp(w)===0)break}if(E===p)return!1}}return M},B.prototype.getDivisor=function(q,n){var y=q.bitLength(),b=R.mont(q),m=new R(1).toRed(b);n||(n=Math.max(1,y/48|0));for(var c=q.subn(1),l=0;!c.testn(l);l++);for(var p=q.shrn(l),g=c.toRed(b);n>0;n--){var w=this._randrange(new R(2),c),M=q.gcd(w);if(M.cmpn(1)!==0)return M;var _=w.toRed(b).redPow(p);if(!(_.cmp(m)===0||_.cmp(g)===0)){for(var k=1;k<l;k++){if(_=_.redSqr(),_.cmp(m)===0)return _.fromRed().subn(1).gcd(q);if(_.cmp(g)===0)break}if(k===l)return _=_.redSqr(),_.fromRed().subn(1).gcd(q)}}return!1},mr}var generatePrime,hasRequiredGeneratePrime;function requireGeneratePrime(){if(hasRequiredGeneratePrime)return generatePrime;hasRequiredGeneratePrime=1;var R=requireBrowser$a();generatePrime=k,k.simpleSieve=M,k.fermatTest=_;var x=requireBn$5(),B=new x(24),v=requireMr(),q=new v,n=new x(1),y=new x(2),b=new x(5);new x(16),new x(8);var m=new x(10),c=new x(3);new x(7);var l=new x(11),p=new x(4);new x(12);var g=null;function w(){if(g!==null)return g;var E=1048576,A=[];A[0]=2;for(var O=1,C=3;C<E;C+=2){for(var j=Math.ceil(Math.sqrt(C)),Z=0;Z<O&&A[Z]<=j&&C%A[Z]!==0;Z++);O!==Z&&A[Z]<=j||(A[O++]=C)}return g=A,A}function M(E){for(var A=w(),O=0;O<A.length;O++)if(E.modn(A[O])===0)return E.cmpn(A[O])===0;return!0}function _(E){var A=x.mont(E);return y.toRed(A).redPow(E.subn(1)).fromRed().cmpn(1)===0}function k(E,A){if(E<16)return A===2||A===5?new x([140,123]):new x([140,39]);A=new x(A);for(var O,C;;){for(O=new x(R(Math.ceil(E/8)));O.bitLength()>E;)O.ishrn(1);if(O.isEven()&&O.iadd(n),O.testn(1)||O.iadd(y),A.cmp(y)){if(!A.cmp(b))for(;O.mod(m).cmp(c);)O.iadd(p)}else for(;O.mod(B).cmp(l);)O.iadd(p);if(C=O.shrn(1),M(C)&&M(O)&&_(C)&&_(O)&&q.test(C)&&q.test(O))return O}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var R=requireBn$5(),x=requireMr(),B=new x,v=new R(24),q=new R(11),n=new R(10),y=new R(3),b=new R(7),m=requireGeneratePrime(),c=requireBrowser$a();dh=M;function l(k,E){return E=E||"utf8",Buffer.isBuffer(k)||(k=new Buffer(k,E)),this._pub=new R(k),this}function p(k,E){return E=E||"utf8",Buffer.isBuffer(k)||(k=new Buffer(k,E)),this._priv=new R(k),this}var g={};function w(k,E){var A=E.toString("hex"),O=[A,k.toString(16)].join("_");if(O in g)return g[O];var C=0;if(k.isEven()||!m.simpleSieve||!m.fermatTest(k)||!B.test(k))return C+=1,A==="02"||A==="05"?C+=8:C+=4,g[O]=C,C;B.test(k.shrn(1))||(C+=2);var j;switch(A){case"02":k.mod(v).cmp(q)&&(C+=8);break;case"05":j=k.mod(n),j.cmp(y)&&j.cmp(b)&&(C+=8);break;default:C+=4}return g[O]=C,C}function M(k,E,A){this.setGenerator(E),this.__prime=new R(k),this._prime=R.mont(this.__prime),this._primeLen=k.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,A?(this.setPublicKey=l,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 R(c(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},M.prototype.computeSecret=function(k){k=new R(k),k=k.toRed(this._prime);var E=k.redPow(this._priv).fromRed(),A=new Buffer(E.toArray()),O=this.getPrime();if(A.length<O.length){var C=new Buffer(O.length-A.length);C.fill(0),A=Buffer.concat([C,A])}return A},M.prototype.getPublicKey=function(E){return _(this._pub,E)},M.prototype.getPrivateKey=function(E){return _(this._priv,E)},M.prototype.getPrime=function(k){return _(this.__prime,k)},M.prototype.getGenerator=function(k){return _(this._gen,k)},M.prototype.setGenerator=function(k,E){return E=E||"utf8",Buffer.isBuffer(k)||(k=new Buffer(k,E)),this.__gen=k,this._gen=new R(k),this};function _(k,E){var A=new Buffer(k.toArray());return E?A.toString(E):A}return dh}var hasRequiredBrowser$4;function requireBrowser$4(){if(hasRequiredBrowser$4)return browser$4;hasRequiredBrowser$4=1;var R=requireGeneratePrime(),x=require$$1$1,B=requireDh();function v(y){var b=new Buffer(x[y].prime,"hex"),m=new Buffer(x[y].gen,"hex");return new B(b,m)}var q={binary:!0,hex:!0,base64:!0};function n(y,b,m,c){return Buffer.isBuffer(b)||q[b]===void 0?n(y,"binary",b,m):(b=b||"binary",c=c||"binary",m=m||new Buffer([2]),Buffer.isBuffer(m)||(m=new Buffer(m,c)),typeof y=="number"?new B(R(y,m),m,!0):(Buffer.isBuffer(y)||(y=new Buffer(y,b)),new B(y,m,!0)))}return browser$4.DiffieHellmanGroup=browser$4.createDiffieHellmanGroup=browser$4.getDiffieHellman=v,browser$4.createDiffieHellman=browser$4.DiffieHellman=n,browser$4}var sign={exports:{}},browserifyRsa,hasRequiredBrowserifyRsa;function requireBrowserifyRsa(){if(hasRequiredBrowserifyRsa)return browserifyRsa;hasRequiredBrowserifyRsa=1;var R=requireBn$6(),x=requireBrowser$a(),B=requireSafeBuffer$1().Buffer;function v(y){var b=y.modulus.byteLength(),m;do m=new R(x(b));while(m.cmp(y.modulus)>=0||!m.umod(y.prime1)||!m.umod(y.prime2));return m}function q(y){var b=v(y),m=b.toRed(R.mont(y.modulus)).redPow(new R(y.publicExponent)).fromRed();return{blinder:m,unblinder:b.invm(y.modulus)}}function n(y,b){var m=q(b),c=b.modulus.byteLength(),l=new R(y).mul(m.blinder).umod(b.modulus),p=l.toRed(R.mont(b.prime1)),g=l.toRed(R.mont(b.prime2)),w=b.coefficient,M=b.prime1,_=b.prime2,k=p.redPow(b.exponent1).fromRed(),E=g.redPow(b.exponent2).fromRed(),A=k.isub(E).imul(w).umod(M).imul(_);return E.iadd(A).imul(m.unblinder).umod(b.modulus).toArrayLike(B,"be",c)}return n.getr=v,browserifyRsa=n,browserifyRsa}var elliptic={};const version="6.6.1",require$$0={version};var utils$1={},bn$7={exports:{}},bn$6=bn$7.exports,hasRequiredBn$3;function requireBn$3(){return hasRequiredBn$3||(hasRequiredBn$3=1,(function(R){(function(x,B){function v(h,e){if(!h)throw new Error(e||"Assertion failed")}function q(h,e){h.super_=e;var r=function(){};r.prototype=e.prototype,h.prototype=new r,h.prototype.constructor=h}function n(h,e,r){if(n.isBN(h))return h;this.negative=0,this.words=null,this.length=0,this.red=null,h!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(h||0,e||10,r||"be"))}typeof x=="object"?x.exports=n:B.BN=n,n.BN=n,n.wordSize=26;var y;try{typeof window<"u"&&typeof window.Buffer<"u"?y=window.Buffer:y=requireDist().Buffer}catch{}n.isBN=function(e){return e instanceof n?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,r){return e.cmp(r)>0?e:r},n.min=function(e,r){return e.cmp(r)<0?e:r},n.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),v(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var f=0;e[0]==="-"&&(f++,this.negative=1),f<e.length&&(r===16?this._parseHex(e,f,i):(this._parseBase(e,r,f),i==="le"&&this._initArray(this.toArray(),r,i)))},n.prototype._initNumber=function(e,r,i){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):(v(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},n.prototype._initArray=function(e,r,i){if(v(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 f=0;f<this.length;f++)this.words[f]=0;var o,u,d=0;if(i==="be")for(f=e.length-1,o=0;f>=0;f-=3)u=e[f]|e[f-1]<<8|e[f-2]<<16,this.words[o]|=u<<d&67108863,this.words[o+1]=u>>>26-d&67108863,d+=24,d>=26&&(d-=26,o++);else if(i==="le")for(f=0,o=0;f<e.length;f+=3)u=e[f]|e[f+1]<<8|e[f+2]<<16,this.words[o]|=u<<d&67108863,this.words[o+1]=u>>>26-d&67108863,d+=24,d>=26&&(d-=26,o++);return this.strip()};function b(h,e){var r=h.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(h,e,r){var i=b(h,r);return r-1>=e&&(i|=b(h,r-1)<<4),i}n.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var o=0,u=0,d;if(i==="be")for(f=e.length-1;f>=r;f-=2)d=m(e,r,f)<<o,this.words[u]|=d&67108863,o>=18?(o-=18,u+=1,this.words[u]|=d>>>26):o+=8;else{var a=e.length-r;for(f=a%2===0?r+1:r;f<e.length;f+=2)d=m(e,r,f)<<o,this.words[u]|=d&67108863,o>=18?(o-=18,u+=1,this.words[u]|=d>>>26):o+=8}this.strip()};function c(h,e,r,i){for(var f=0,o=Math.min(h.length,r),u=e;u<o;u++){var d=h.charCodeAt(u)-48;f*=i,d>=49?f+=d-49+10:d>=17?f+=d-17+10:f+=d}return f}n.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var f=0,o=1;o<=67108863;o*=r)f++;f--,o=o/r|0;for(var u=e.length-i,d=u%f,a=Math.min(u,u-d)+i,t=0,s=i;s<a;s+=f)t=c(e,s,s+f,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(d!==0){var $=1;for(t=c(e,s,e.length,r),s=0;s<d;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},n.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},n.prototype.clone=function(){var e=new n(null);return this.copy(e),e},n.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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],g=[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];n.prototype.toString=function(e,r){e=e||10,r=r|0||1;var i;if(e===16||e==="hex"){i="";for(var f=0,o=0,u=0;u<this.length;u++){var d=this.words[u],a=((d<<f|o)&16777215).toString(16);o=d>>>24-f&16777215,f+=2,f>=26&&(f-=26,u--),o!==0||u!==this.length-1?i=l[6-a.length]+a+i:i=a+i}for(o!==0&&(i=o.toString(16)+i);i.length%r!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=g[e];i="";var $=this.clone();for($.negative=0;!$.isZero();){var T=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?i=T+i:i=l[t-T.length]+T+i}for(this.isZero()&&(i="0"+i);i.length%r!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}v(!1,"Base should be between 2 and 36")},n.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&&v(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,r){return v(typeof y<"u"),this.toArrayLike(y,e,r)},n.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},n.prototype.toArrayLike=function(e,r,i){var f=this.byteLength(),o=i||Math.max(1,f);v(f<=o,"byte array longer than desired length"),v(o>0,"Requested array length <= 0"),this.strip();var u=r==="le",d=new e(o),a,t,s=this.clone();if(u){for(t=0;!s.isZero();t++)a=s.andln(255),s.iushrn(8),d[t]=a;for(;t<o;t++)d[t]=0}else{for(t=0;t<o-f;t++)d[t]=0;for(t=0;!s.isZero();t++)a=s.andln(255),s.iushrn(8),d[o-t-1]=a}return d},Math.clz32?n.prototype._countBits=function(e){return 32-Math.clz32(e)}:n.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},n.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return(r&8191)===0&&(i+=13,r>>>=13),(r&127)===0&&(i+=7,r>>>=7),(r&15)===0&&(i+=4,r>>>=4),(r&3)===0&&(i+=2,r>>>=2),(r&1)===0&&i++,i},n.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(h){for(var e=new Array(h.bitLength()),r=0;r<e.length;r++){var i=r/26|0,f=r%26;e[r]=(h.words[i]&1<<f)>>>f}return e}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},n.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.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()},n.prototype.ior=function(e){return v((this.negative|e.negative)===0),this.iuor(e)},n.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},n.prototype.iand=function(e){return v((this.negative|e.negative)===0),this.iuand(e)},n.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var f=0;f<i.length;f++)this.words[f]=r.words[f]^i.words[f];if(this!==r)for(;f<r.length;f++)this.words[f]=r.words[f];return this.length=r.length,this.strip()},n.prototype.ixor=function(e){return v((this.negative|e.negative)===0),this.iuxor(e)},n.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){v(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,i=e%26;this._expand(r),i>0&&r--;for(var f=0;f<r;f++)this.words[f]=~this.words[f]&67108863;for(i>0&&(this.words[f]=~this.words[f]&67108863>>26-i,f++);f<this.length;f++)this.words[f]=0;return this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,r){v(typeof e=="number"&&e>=0);var i=e/26|0,f=e%26;return this._expand(i+1),r?this.words[i]=this.words[i]|1<<f:this.words[i]=this.words[i]&~(1<<f),this.strip()},n.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 i,f;this.length>e.length?(i=this,f=e):(i=e,f=this);for(var o=0,u=0;u<f.length;u++)r=(i.words[u]|0)+(f.words[u]|0)+o,this.words[u]=r&67108863,o=r>>>26;for(;o!==0&&u<i.length;u++)r=(i.words[u]|0)+o,this.words[u]=r&67108863,o=r>>>26;if(this.length=i.length,o!==0)this.words[this.length]=o,this.length++;else if(i!==this)for(;u<i.length;u++)this.words[u]=i.words[u];return this},n.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)},n.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 i=this.cmp(e);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,o;i>0?(f=this,o=e):(f=e,o=this);for(var u=0,d=0;d<o.length;d++)r=(f.words[d]|0)-(o.words[d]|0)+u,u=r>>26,this.words[d]=r&67108863;for(;u!==0&&d<f.length;d++)r=(f.words[d]|0)+u,u=r>>26,this.words[d]=r&67108863;if(u===0&&d<f.length&&f!==this)for(;d<f.length;d++)this.words[d]=f.words[d];return this.length=Math.max(this.length,d),f!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(e){return this.clone().isub(e)};function M(h,e,r){r.negative=e.negative^h.negative;var i=h.length+e.length|0;r.length=i,i=i-1|0;var f=h.words[0]|0,o=e.words[0]|0,u=f*o,d=u&67108863,a=u/67108864|0;r.words[0]=d;for(var t=1;t<i;t++){for(var s=a>>>26,$=a&67108863,T=Math.min(t,e.length-1),D=Math.max(0,t-h.length+1);D<=T;D++){var z=t-D|0;f=h.words[z]|0,o=e.words[D]|0,u=f*o+$,s+=u/67108864|0,$=u&67108863}r.words[t]=$|0,a=s|0}return a!==0?r.words[t]=a|0:r.length--,r.strip()}var _=function(e,r,i){var f=e.words,o=r.words,u=i.words,d=0,a,t,s,$=f[0]|0,T=$&8191,D=$>>>13,z=f[1]|0,N=z&8191,S=z>>>13,P=f[2]|0,U=P&8191,K=P>>>13,L=f[3]|0,I=L&8191,F=L>>>13,Ee=f[4]|0,V=Ee&8191,W=Ee>>>13,Ae=f[5]|0,G=Ae&8191,Y=Ae>>>13,Ie=f[6]|0,ie=Ie&8191,ee=Ie>>>13,ke=f[7]|0,X=ke&8191,J=ke>>>13,$e=f[8]|0,te=$e&8191,re=$e>>>13,Ye=f[9]|0,ne=Ye&8191,fe=Ye>>>13,Qe=o[0]|0,ae=Qe&8191,se=Qe>>>13,et=o[1]|0,oe=et&8191,he=et>>>13,tt=o[2]|0,ue=tt&8191,de=tt>>>13,rt=o[3]|0,le=rt&8191,ce=rt>>>13,it=o[4]|0,ve=it&8191,pe=it>>>13,nt=o[5]|0,me=nt&8191,be=nt>>>13,ft=o[6]|0,ge=ft&8191,ye=ft>>>13,at=o[7]|0,we=at&8191,Me=at>>>13,st=o[8]|0,_e=st&8191,xe=st>>>13,ot=o[9]|0,Se=ot&8191,qe=ot>>>13;i.negative=e.negative^r.negative,i.length=19,a=Math.imul(T,ae),t=Math.imul(T,se),t=t+Math.imul(D,ae)|0,s=Math.imul(D,se);var Te=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Te>>>26)|0,Te&=67108863,a=Math.imul(N,ae),t=Math.imul(N,se),t=t+Math.imul(S,ae)|0,s=Math.imul(S,se),a=a+Math.imul(T,oe)|0,t=t+Math.imul(T,he)|0,t=t+Math.imul(D,oe)|0,s=s+Math.imul(D,he)|0;var Pe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,a=Math.imul(U,ae),t=Math.imul(U,se),t=t+Math.imul(K,ae)|0,s=Math.imul(K,se),a=a+Math.imul(N,oe)|0,t=t+Math.imul(N,he)|0,t=t+Math.imul(S,oe)|0,s=s+Math.imul(S,he)|0,a=a+Math.imul(T,ue)|0,t=t+Math.imul(T,de)|0,t=t+Math.imul(D,ue)|0,s=s+Math.imul(D,de)|0;var De=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(De>>>26)|0,De&=67108863,a=Math.imul(I,ae),t=Math.imul(I,se),t=t+Math.imul(F,ae)|0,s=Math.imul(F,se),a=a+Math.imul(U,oe)|0,t=t+Math.imul(U,he)|0,t=t+Math.imul(K,oe)|0,s=s+Math.imul(K,he)|0,a=a+Math.imul(N,ue)|0,t=t+Math.imul(N,de)|0,t=t+Math.imul(S,ue)|0,s=s+Math.imul(S,de)|0,a=a+Math.imul(T,le)|0,t=t+Math.imul(T,ce)|0,t=t+Math.imul(D,le)|0,s=s+Math.imul(D,ce)|0;var Ce=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,a=Math.imul(V,ae),t=Math.imul(V,se),t=t+Math.imul(W,ae)|0,s=Math.imul(W,se),a=a+Math.imul(I,oe)|0,t=t+Math.imul(I,he)|0,t=t+Math.imul(F,oe)|0,s=s+Math.imul(F,he)|0,a=a+Math.imul(U,ue)|0,t=t+Math.imul(U,de)|0,t=t+Math.imul(K,ue)|0,s=s+Math.imul(K,de)|0,a=a+Math.imul(N,le)|0,t=t+Math.imul(N,ce)|0,t=t+Math.imul(S,le)|0,s=s+Math.imul(S,ce)|0,a=a+Math.imul(T,ve)|0,t=t+Math.imul(T,pe)|0,t=t+Math.imul(D,ve)|0,s=s+Math.imul(D,pe)|0;var Ne=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,a=Math.imul(G,ae),t=Math.imul(G,se),t=t+Math.imul(Y,ae)|0,s=Math.imul(Y,se),a=a+Math.imul(V,oe)|0,t=t+Math.imul(V,he)|0,t=t+Math.imul(W,oe)|0,s=s+Math.imul(W,he)|0,a=a+Math.imul(I,ue)|0,t=t+Math.imul(I,de)|0,t=t+Math.imul(F,ue)|0,s=s+Math.imul(F,de)|0,a=a+Math.imul(U,le)|0,t=t+Math.imul(U,ce)|0,t=t+Math.imul(K,le)|0,s=s+Math.imul(K,ce)|0,a=a+Math.imul(N,ve)|0,t=t+Math.imul(N,pe)|0,t=t+Math.imul(S,ve)|0,s=s+Math.imul(S,pe)|0,a=a+Math.imul(T,me)|0,t=t+Math.imul(T,be)|0,t=t+Math.imul(D,me)|0,s=s+Math.imul(D,be)|0;var Oe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,a=Math.imul(ie,ae),t=Math.imul(ie,se),t=t+Math.imul(ee,ae)|0,s=Math.imul(ee,se),a=a+Math.imul(G,oe)|0,t=t+Math.imul(G,he)|0,t=t+Math.imul(Y,oe)|0,s=s+Math.imul(Y,he)|0,a=a+Math.imul(V,ue)|0,t=t+Math.imul(V,de)|0,t=t+Math.imul(W,ue)|0,s=s+Math.imul(W,de)|0,a=a+Math.imul(I,le)|0,t=t+Math.imul(I,ce)|0,t=t+Math.imul(F,le)|0,s=s+Math.imul(F,ce)|0,a=a+Math.imul(U,ve)|0,t=t+Math.imul(U,pe)|0,t=t+Math.imul(K,ve)|0,s=s+Math.imul(K,pe)|0,a=a+Math.imul(N,me)|0,t=t+Math.imul(N,be)|0,t=t+Math.imul(S,me)|0,s=s+Math.imul(S,be)|0,a=a+Math.imul(T,ge)|0,t=t+Math.imul(T,ye)|0,t=t+Math.imul(D,ge)|0,s=s+Math.imul(D,ye)|0;var Le=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Le>>>26)|0,Le&=67108863,a=Math.imul(X,ae),t=Math.imul(X,se),t=t+Math.imul(J,ae)|0,s=Math.imul(J,se),a=a+Math.imul(ie,oe)|0,t=t+Math.imul(ie,he)|0,t=t+Math.imul(ee,oe)|0,s=s+Math.imul(ee,he)|0,a=a+Math.imul(G,ue)|0,t=t+Math.imul(G,de)|0,t=t+Math.imul(Y,ue)|0,s=s+Math.imul(Y,de)|0,a=a+Math.imul(V,le)|0,t=t+Math.imul(V,ce)|0,t=t+Math.imul(W,le)|0,s=s+Math.imul(W,ce)|0,a=a+Math.imul(I,ve)|0,t=t+Math.imul(I,pe)|0,t=t+Math.imul(F,ve)|0,s=s+Math.imul(F,pe)|0,a=a+Math.imul(U,me)|0,t=t+Math.imul(U,be)|0,t=t+Math.imul(K,me)|0,s=s+Math.imul(K,be)|0,a=a+Math.imul(N,ge)|0,t=t+Math.imul(N,ye)|0,t=t+Math.imul(S,ge)|0,s=s+Math.imul(S,ye)|0,a=a+Math.imul(T,we)|0,t=t+Math.imul(T,Me)|0,t=t+Math.imul(D,we)|0,s=s+Math.imul(D,Me)|0;var Ue=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,a=Math.imul(te,ae),t=Math.imul(te,se),t=t+Math.imul(re,ae)|0,s=Math.imul(re,se),a=a+Math.imul(X,oe)|0,t=t+Math.imul(X,he)|0,t=t+Math.imul(J,oe)|0,s=s+Math.imul(J,he)|0,a=a+Math.imul(ie,ue)|0,t=t+Math.imul(ie,de)|0,t=t+Math.imul(ee,ue)|0,s=s+Math.imul(ee,de)|0,a=a+Math.imul(G,le)|0,t=t+Math.imul(G,ce)|0,t=t+Math.imul(Y,le)|0,s=s+Math.imul(Y,ce)|0,a=a+Math.imul(V,ve)|0,t=t+Math.imul(V,pe)|0,t=t+Math.imul(W,ve)|0,s=s+Math.imul(W,pe)|0,a=a+Math.imul(I,me)|0,t=t+Math.imul(I,be)|0,t=t+Math.imul(F,me)|0,s=s+Math.imul(F,be)|0,a=a+Math.imul(U,ge)|0,t=t+Math.imul(U,ye)|0,t=t+Math.imul(K,ge)|0,s=s+Math.imul(K,ye)|0,a=a+Math.imul(N,we)|0,t=t+Math.imul(N,Me)|0,t=t+Math.imul(S,we)|0,s=s+Math.imul(S,Me)|0,a=a+Math.imul(T,_e)|0,t=t+Math.imul(T,xe)|0,t=t+Math.imul(D,_e)|0,s=s+Math.imul(D,xe)|0;var ze=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(ze>>>26)|0,ze&=67108863,a=Math.imul(ne,ae),t=Math.imul(ne,se),t=t+Math.imul(fe,ae)|0,s=Math.imul(fe,se),a=a+Math.imul(te,oe)|0,t=t+Math.imul(te,he)|0,t=t+Math.imul(re,oe)|0,s=s+Math.imul(re,he)|0,a=a+Math.imul(X,ue)|0,t=t+Math.imul(X,de)|0,t=t+Math.imul(J,ue)|0,s=s+Math.imul(J,de)|0,a=a+Math.imul(ie,le)|0,t=t+Math.imul(ie,ce)|0,t=t+Math.imul(ee,le)|0,s=s+Math.imul(ee,ce)|0,a=a+Math.imul(G,ve)|0,t=t+Math.imul(G,pe)|0,t=t+Math.imul(Y,ve)|0,s=s+Math.imul(Y,pe)|0,a=a+Math.imul(V,me)|0,t=t+Math.imul(V,be)|0,t=t+Math.imul(W,me)|0,s=s+Math.imul(W,be)|0,a=a+Math.imul(I,ge)|0,t=t+Math.imul(I,ye)|0,t=t+Math.imul(F,ge)|0,s=s+Math.imul(F,ye)|0,a=a+Math.imul(U,we)|0,t=t+Math.imul(U,Me)|0,t=t+Math.imul(K,we)|0,s=s+Math.imul(K,Me)|0,a=a+Math.imul(N,_e)|0,t=t+Math.imul(N,xe)|0,t=t+Math.imul(S,_e)|0,s=s+Math.imul(S,xe)|0,a=a+Math.imul(T,Se)|0,t=t+Math.imul(T,qe)|0,t=t+Math.imul(D,Se)|0,s=s+Math.imul(D,qe)|0;var Ke=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,a=Math.imul(ne,oe),t=Math.imul(ne,he),t=t+Math.imul(fe,oe)|0,s=Math.imul(fe,he),a=a+Math.imul(te,ue)|0,t=t+Math.imul(te,de)|0,t=t+Math.imul(re,ue)|0,s=s+Math.imul(re,de)|0,a=a+Math.imul(X,le)|0,t=t+Math.imul(X,ce)|0,t=t+Math.imul(J,le)|0,s=s+Math.imul(J,ce)|0,a=a+Math.imul(ie,ve)|0,t=t+Math.imul(ie,pe)|0,t=t+Math.imul(ee,ve)|0,s=s+Math.imul(ee,pe)|0,a=a+Math.imul(G,me)|0,t=t+Math.imul(G,be)|0,t=t+Math.imul(Y,me)|0,s=s+Math.imul(Y,be)|0,a=a+Math.imul(V,ge)|0,t=t+Math.imul(V,ye)|0,t=t+Math.imul(W,ge)|0,s=s+Math.imul(W,ye)|0,a=a+Math.imul(I,we)|0,t=t+Math.imul(I,Me)|0,t=t+Math.imul(F,we)|0,s=s+Math.imul(F,Me)|0,a=a+Math.imul(U,_e)|0,t=t+Math.imul(U,xe)|0,t=t+Math.imul(K,_e)|0,s=s+Math.imul(K,xe)|0,a=a+Math.imul(N,Se)|0,t=t+Math.imul(N,qe)|0,t=t+Math.imul(S,Se)|0,s=s+Math.imul(S,qe)|0;var Fe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,a=Math.imul(ne,ue),t=Math.imul(ne,de),t=t+Math.imul(fe,ue)|0,s=Math.imul(fe,de),a=a+Math.imul(te,le)|0,t=t+Math.imul(te,ce)|0,t=t+Math.imul(re,le)|0,s=s+Math.imul(re,ce)|0,a=a+Math.imul(X,ve)|0,t=t+Math.imul(X,pe)|0,t=t+Math.imul(J,ve)|0,s=s+Math.imul(J,pe)|0,a=a+Math.imul(ie,me)|0,t=t+Math.imul(ie,be)|0,t=t+Math.imul(ee,me)|0,s=s+Math.imul(ee,be)|0,a=a+Math.imul(G,ge)|0,t=t+Math.imul(G,ye)|0,t=t+Math.imul(Y,ge)|0,s=s+Math.imul(Y,ye)|0,a=a+Math.imul(V,we)|0,t=t+Math.imul(V,Me)|0,t=t+Math.imul(W,we)|0,s=s+Math.imul(W,Me)|0,a=a+Math.imul(I,_e)|0,t=t+Math.imul(I,xe)|0,t=t+Math.imul(F,_e)|0,s=s+Math.imul(F,xe)|0,a=a+Math.imul(U,Se)|0,t=t+Math.imul(U,qe)|0,t=t+Math.imul(K,Se)|0,s=s+Math.imul(K,qe)|0;var He=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(He>>>26)|0,He&=67108863,a=Math.imul(ne,le),t=Math.imul(ne,ce),t=t+Math.imul(fe,le)|0,s=Math.imul(fe,ce),a=a+Math.imul(te,ve)|0,t=t+Math.imul(te,pe)|0,t=t+Math.imul(re,ve)|0,s=s+Math.imul(re,pe)|0,a=a+Math.imul(X,me)|0,t=t+Math.imul(X,be)|0,t=t+Math.imul(J,me)|0,s=s+Math.imul(J,be)|0,a=a+Math.imul(ie,ge)|0,t=t+Math.imul(ie,ye)|0,t=t+Math.imul(ee,ge)|0,s=s+Math.imul(ee,ye)|0,a=a+Math.imul(G,we)|0,t=t+Math.imul(G,Me)|0,t=t+Math.imul(Y,we)|0,s=s+Math.imul(Y,Me)|0,a=a+Math.imul(V,_e)|0,t=t+Math.imul(V,xe)|0,t=t+Math.imul(W,_e)|0,s=s+Math.imul(W,xe)|0,a=a+Math.imul(I,Se)|0,t=t+Math.imul(I,qe)|0,t=t+Math.imul(F,Se)|0,s=s+Math.imul(F,qe)|0;var je=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(je>>>26)|0,je&=67108863,a=Math.imul(ne,ve),t=Math.imul(ne,pe),t=t+Math.imul(fe,ve)|0,s=Math.imul(fe,pe),a=a+Math.imul(te,me)|0,t=t+Math.imul(te,be)|0,t=t+Math.imul(re,me)|0,s=s+Math.imul(re,be)|0,a=a+Math.imul(X,ge)|0,t=t+Math.imul(X,ye)|0,t=t+Math.imul(J,ge)|0,s=s+Math.imul(J,ye)|0,a=a+Math.imul(ie,we)|0,t=t+Math.imul(ie,Me)|0,t=t+Math.imul(ee,we)|0,s=s+Math.imul(ee,Me)|0,a=a+Math.imul(G,_e)|0,t=t+Math.imul(G,xe)|0,t=t+Math.imul(Y,_e)|0,s=s+Math.imul(Y,xe)|0,a=a+Math.imul(V,Se)|0,t=t+Math.imul(V,qe)|0,t=t+Math.imul(W,Se)|0,s=s+Math.imul(W,qe)|0;var Ze=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,a=Math.imul(ne,me),t=Math.imul(ne,be),t=t+Math.imul(fe,me)|0,s=Math.imul(fe,be),a=a+Math.imul(te,ge)|0,t=t+Math.imul(te,ye)|0,t=t+Math.imul(re,ge)|0,s=s+Math.imul(re,ye)|0,a=a+Math.imul(X,we)|0,t=t+Math.imul(X,Me)|0,t=t+Math.imul(J,we)|0,s=s+Math.imul(J,Me)|0,a=a+Math.imul(ie,_e)|0,t=t+Math.imul(ie,xe)|0,t=t+Math.imul(ee,_e)|0,s=s+Math.imul(ee,xe)|0,a=a+Math.imul(G,Se)|0,t=t+Math.imul(G,qe)|0,t=t+Math.imul(Y,Se)|0,s=s+Math.imul(Y,qe)|0;var We=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,a=Math.imul(ne,ge),t=Math.imul(ne,ye),t=t+Math.imul(fe,ge)|0,s=Math.imul(fe,ye),a=a+Math.imul(te,we)|0,t=t+Math.imul(te,Me)|0,t=t+Math.imul(re,we)|0,s=s+Math.imul(re,Me)|0,a=a+Math.imul(X,_e)|0,t=t+Math.imul(X,xe)|0,t=t+Math.imul(J,_e)|0,s=s+Math.imul(J,xe)|0,a=a+Math.imul(ie,Se)|0,t=t+Math.imul(ie,qe)|0,t=t+Math.imul(ee,Se)|0,s=s+Math.imul(ee,qe)|0;var Ve=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,a=Math.imul(ne,we),t=Math.imul(ne,Me),t=t+Math.imul(fe,we)|0,s=Math.imul(fe,Me),a=a+Math.imul(te,_e)|0,t=t+Math.imul(te,xe)|0,t=t+Math.imul(re,_e)|0,s=s+Math.imul(re,xe)|0,a=a+Math.imul(X,Se)|0,t=t+Math.imul(X,qe)|0,t=t+Math.imul(J,Se)|0,s=s+Math.imul(J,qe)|0;var Ge=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,a=Math.imul(ne,_e),t=Math.imul(ne,xe),t=t+Math.imul(fe,_e)|0,s=Math.imul(fe,xe),a=a+Math.imul(te,Se)|0,t=t+Math.imul(te,qe)|0,t=t+Math.imul(re,Se)|0,s=s+Math.imul(re,qe)|0;var Xe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,a=Math.imul(ne,Se),t=Math.imul(ne,qe),t=t+Math.imul(fe,Se)|0,s=Math.imul(fe,qe);var Je=(d+a|0)+((t&8191)<<13)|0;return d=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,u[0]=Te,u[1]=Pe,u[2]=De,u[3]=Ce,u[4]=Ne,u[5]=Oe,u[6]=Le,u[7]=Ue,u[8]=ze,u[9]=Ke,u[10]=Fe,u[11]=He,u[12]=je,u[13]=Ze,u[14]=We,u[15]=Ve,u[16]=Ge,u[17]=Xe,u[18]=Je,d!==0&&(u[19]=d,i.length++),i};Math.imul||(_=M);function k(h,e,r){r.negative=e.negative^h.negative,r.length=h.length+e.length;for(var i=0,f=0,o=0;o<r.length-1;o++){var u=f;f=0;for(var d=i&67108863,a=Math.min(o,e.length-1),t=Math.max(0,o-h.length+1);t<=a;t++){var s=o-t,$=h.words[s]|0,T=e.words[t]|0,D=$*T,z=D&67108863;u=u+(D/67108864|0)|0,z=z+d|0,d=z&67108863,u=u+(z>>>26)|0,f+=u>>>26,u&=67108863}r.words[o]=d,i=u,u=f}return i!==0?r.words[o]=i:r.length--,r.strip()}function E(h,e,r){var i=new A;return i.mulp(h,e,r)}n.prototype.mulTo=function(e,r){var i,f=this.length+e.length;return this.length===10&&e.length===10?i=_(this,e,r):f<63?i=M(this,e,r):f<1024?i=k(this,e,r):i=E(this,e,r),i};function A(h,e){this.x=h,this.y=e}A.prototype.makeRBT=function(e){for(var r=new Array(e),i=n.prototype._countBits(e)-1,f=0;f<e;f++)r[f]=this.revBin(f,i,e);return r},A.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var f=0,o=0;o<r;o++)f|=(e&1)<<r-o-1,e>>=1;return f},A.prototype.permute=function(e,r,i,f,o,u){for(var d=0;d<u;d++)f[d]=r[e[d]],o[d]=i[e[d]]},A.prototype.transform=function(e,r,i,f,o,u){this.permute(u,e,r,i,f,o);for(var d=1;d<o;d<<=1)for(var a=d<<1,t=Math.cos(2*Math.PI/a),s=Math.sin(2*Math.PI/a),$=0;$<o;$+=a)for(var T=t,D=s,z=0;z<d;z++){var N=i[$+z],S=f[$+z],P=i[$+z+d],U=f[$+z+d],K=T*P-D*U;U=T*U+D*P,P=K,i[$+z]=N+P,f[$+z]=S+U,i[$+z+d]=N-P,f[$+z+d]=S-U,z!==a&&(K=t*T-s*D,D=t*D+s*T,T=K)}},A.prototype.guessLen13b=function(e,r){var i=Math.max(r,e)|1,f=i&1,o=0;for(i=i/2|0;i;i=i>>>1)o++;return 1<<o+1+f},A.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var f=0;f<i/2;f++){var o=e[f];e[f]=e[i-f-1],e[i-f-1]=o,o=r[f],r[f]=-r[i-f-1],r[i-f-1]=-o}},A.prototype.normalize13b=function(e,r){for(var i=0,f=0;f<r/2;f++){var o=Math.round(e[2*f+1]/r)*8192+Math.round(e[2*f]/r)+i;e[f]=o&67108863,o<67108864?i=0:i=o/67108864|0}return e},A.prototype.convert13b=function(e,r,i,f){for(var o=0,u=0;u<r;u++)o=o+(e[u]|0),i[2*u]=o&8191,o=o>>>13,i[2*u+1]=o&8191,o=o>>>13;for(u=2*r;u<f;++u)i[u]=0;v(o===0),v((o&-8192)===0)},A.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},A.prototype.mulp=function(e,r,i){var f=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(f),u=this.stub(f),d=new Array(f),a=new Array(f),t=new Array(f),s=new Array(f),$=new Array(f),T=new Array(f),D=i.words;D.length=f,this.convert13b(e.words,e.length,d,f),this.convert13b(r.words,r.length,s,f),this.transform(d,u,a,t,f,o),this.transform(s,u,$,T,f,o);for(var z=0;z<f;z++){var N=a[z]*$[z]-t[z]*T[z];t[z]=a[z]*T[z]+t[z]*$[z],a[z]=N}return this.conjugate(a,t,f),this.transform(a,t,D,u,f,o),this.conjugate(D,u,f),this.normalize13b(D,f),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},n.prototype.mul=function(e){var r=new n(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},n.prototype.mulf=function(e){var r=new n(null);return r.words=new Array(this.length+e.length),E(this,e,r)},n.prototype.imul=function(e){return this.clone().mulTo(e,this)},n.prototype.imuln=function(e){v(typeof e=="number"),v(e<67108864);for(var r=0,i=0;i<this.length;i++){var f=(this.words[i]|0)*e,o=(f&67108863)+(r&67108863);r>>=26,r+=f/67108864|0,r+=o>>>26,this.words[i]=o&67108863}return r!==0&&(this.words[i]=r,this.length++),this.length=e===0?1:this.length,this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var r=w(e);if(r.length===0)return new n(1);for(var i=this,f=0;f<r.length&&r[f]===0;f++,i=i.sqr());if(++f<r.length)for(var o=i.sqr();f<r.length;f++,o=o.sqr())r[f]!==0&&(i=i.mul(o));return i},n.prototype.iushln=function(e){v(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,f=67108863>>>26-r<<26-r,o;if(r!==0){var u=0;for(o=0;o<this.length;o++){var d=this.words[o]&f,a=(this.words[o]|0)-d<<r;this.words[o]=a|u,u=d>>>26-r}u&&(this.words[o]=u,this.length++)}if(i!==0){for(o=this.length-1;o>=0;o--)this.words[o+i]=this.words[o];for(o=0;o<i;o++)this.words[o]=0;this.length+=i}return this.strip()},n.prototype.ishln=function(e){return v(this.negative===0),this.iushln(e)},n.prototype.iushrn=function(e,r,i){v(typeof e=="number"&&e>=0);var f;r?f=(r-r%26)/26:f=0;var o=e%26,u=Math.min((e-o)/26,this.length),d=67108863^67108863>>>o<<o,a=i;if(f-=u,f=Math.max(0,f),a){for(var t=0;t<u;t++)a.words[t]=this.words[t];a.length=u}if(u!==0)if(this.length>u)for(this.length-=u,t=0;t<this.length;t++)this.words[t]=this.words[t+u];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=f);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&d}return a&&s!==0&&(a.words[a.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,r,i){return v(this.negative===0),this.iushrn(e,r,i)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){v(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,f=1<<r;if(this.length<=i)return!1;var o=this.words[i];return!!(o&f)},n.prototype.imaskn=function(e){v(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(v(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var f=67108863^67108863>>>r<<r;this.words[this.length-1]&=f}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.maskn=function(e){return this.clone().imaskn(e)},n.prototype.iaddn=function(e){return v(typeof e=="number"),v(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)},n.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},n.prototype.isubn=function(e){if(v(typeof e=="number"),v(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()},n.prototype.addn=function(e){return this.clone().iaddn(e)},n.prototype.subn=function(e){return this.clone().isubn(e)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(e,r,i){var f=e.length+i,o;this._expand(f);var u,d=0;for(o=0;o<e.length;o++){u=(this.words[o+i]|0)+d;var a=(e.words[o]|0)*r;u-=a&67108863,d=(u>>26)-(a/67108864|0),this.words[o+i]=u&67108863}for(;o<this.length-i;o++)u=(this.words[o+i]|0)+d,d=u>>26,this.words[o+i]=u&67108863;if(d===0)return this.strip();for(v(d===-1),d=0,o=0;o<this.length;o++)u=-(this.words[o]|0)+d,d=u>>26,this.words[o]=u&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,r){var i=this.length-e.length,f=this.clone(),o=e,u=o.words[o.length-1]|0,d=this._countBits(u);i=26-d,i!==0&&(o=o.ushln(i),f.iushln(i),u=o.words[o.length-1]|0);var a=f.length-o.length,t;if(r!=="mod"){t=new n(null),t.length=a+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=f.clone()._ishlnsubmul(o,1,a);$.negative===0&&(f=$,t&&(t.words[a]=1));for(var T=a-1;T>=0;T--){var D=(f.words[o.length+T]|0)*67108864+(f.words[o.length+T-1]|0);for(D=Math.min(D/u|0,67108863),f._ishlnsubmul(o,D,T);f.negative!==0;)D--,f.negative=0,f._ishlnsubmul(o,1,T),f.isZero()||(f.negative^=1);t&&(t.words[T]=D)}return t&&t.strip(),f.strip(),r!=="div"&&i!==0&&f.iushrn(i),{div:t||null,mod:f}},n.prototype.divmod=function(e,r,i){if(v(!e.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var f,o,u;return this.negative!==0&&e.negative===0?(u=this.neg().divmod(e,r),r!=="mod"&&(f=u.div.neg()),r!=="div"&&(o=u.mod.neg(),i&&o.negative!==0&&o.iadd(e)),{div:f,mod:o}):this.negative===0&&e.negative!==0?(u=this.divmod(e.neg(),r),r!=="mod"&&(f=u.div.neg()),{div:f,mod:u.mod}):(this.negative&e.negative)!==0?(u=this.neg().divmod(e.neg(),r),r!=="div"&&(o=u.mod.neg(),i&&o.negative!==0&&o.isub(e)),{div:u.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,r)},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,f=e.ushrn(1),o=e.andln(1),u=i.cmp(f);return u<0||o===1&&u===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(e){v(e<=67108863);for(var r=(1<<26)%e,i=0,f=this.length-1;f>=0;f--)i=(r*i+(this.words[f]|0))%e;return i},n.prototype.idivn=function(e){v(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var f=(this.words[i]|0)+r*67108864;this.words[i]=f/e|0,r=f%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){v(e.negative===0),v(!e.isZero());var r=this,i=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var f=new n(1),o=new n(0),u=new n(0),d=new n(1),a=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++a;for(var t=i.clone(),s=r.clone();!r.isZero();){for(var $=0,T=1;(r.words[0]&T)===0&&$<26;++$,T<<=1);if($>0)for(r.iushrn($);$-- >0;)(f.isOdd()||o.isOdd())&&(f.iadd(t),o.isub(s)),f.iushrn(1),o.iushrn(1);for(var D=0,z=1;(i.words[0]&z)===0&&D<26;++D,z<<=1);if(D>0)for(i.iushrn(D);D-- >0;)(u.isOdd()||d.isOdd())&&(u.iadd(t),d.isub(s)),u.iushrn(1),d.iushrn(1);r.cmp(i)>=0?(r.isub(i),f.isub(u),o.isub(d)):(i.isub(r),u.isub(f),d.isub(o))}return{a:u,b:d,gcd:i.iushln(a)}},n.prototype._invmp=function(e){v(e.negative===0),v(!e.isZero());var r=this,i=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var f=new n(1),o=new n(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var d=0,a=1;(r.words[0]&a)===0&&d<26;++d,a<<=1);if(d>0)for(r.iushrn(d);d-- >0;)f.isOdd()&&f.iadd(u),f.iushrn(1);for(var t=0,s=1;(i.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(i.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),f.isub(o)):(i.isub(r),o.isub(f))}var $;return r.cmpn(1)===0?$=f:$=o,$.cmpn(0)<0&&$.iadd(e),$},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var f=0;r.isEven()&&i.isEven();f++)r.iushrn(1),i.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var o=r.cmp(i);if(o<0){var u=r;r=i,i=u}else if(o===0||i.cmpn(1)===0)break;r.isub(i)}while(!0);return i.iushln(f)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){v(typeof e=="number");var r=e%26,i=(e-r)/26,f=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=f,this;for(var o=f,u=i;o!==0&&u<this.length;u++){var d=this.words[u]|0;d+=o,o=d>>>26,d&=67108863,this.words[u]=d}return o!==0&&(this.words[u]=o,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.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 i;if(this.length>1)i=1;else{r&&(e=-e),v(e<=67108863,"Number is too big");var f=this.words[0]|0;i=f===e?0:f<e?-1:1}return this.negative!==0?-i|0:i},n.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},n.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var f=this.words[i]|0,o=e.words[i]|0;if(f!==o){f<o?r=-1:f>o&&(r=1);break}}return r},n.prototype.gtn=function(e){return this.cmpn(e)===1},n.prototype.gt=function(e){return this.cmp(e)===1},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return this.cmpn(e)===-1},n.prototype.lt=function(e){return this.cmp(e)===-1},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return this.cmpn(e)===0},n.prototype.eq=function(e){return this.cmp(e)===0},n.red=function(e){return new H(e)},n.prototype.toRed=function(e){return v(!this.red,"Already a number in reduction context"),v(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return v(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return v(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var O={k256:null,p224:null,p192:null,p25519:null};function C(h,e){this.name=h,this.p=new n(e,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}C.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},C.prototype.ireduce=function(e){var r=e,i;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),i=r.bitLength();while(i>this.n);var f=i<this.n?-1:r.ucmp(this.p);return f===0?(r.words[0]=0,r.length=1):f>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},C.prototype.split=function(e,r){e.iushrn(this.n,0,r)},C.prototype.imulK=function(e){return e.imul(this.k)};function j(){C.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}q(j,C),j.prototype.split=function(e,r){for(var i=4194303,f=Math.min(e.length,9),o=0;o<f;o++)r.words[o]=e.words[o];if(r.length=f,e.length<=9){e.words[0]=0,e.length=1;return}var u=e.words[9];for(r.words[r.length++]=u&i,o=10;o<e.length;o++){var d=e.words[o]|0;e.words[o-10]=(d&i)<<4|u>>>22,u=d}u>>>=22,e.words[o-10]=u,u===0&&e.length>10?e.length-=10:e.length-=9},j.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var f=e.words[i]|0;r+=f*977,e.words[i]=r&67108863,r=f*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function Z(){C.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}q(Z,C);function Re(){C.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}q(Re,C);function Q(){C.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}q(Q,C),Q.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var f=(e.words[i]|0)*19+r,o=f&67108863;f>>>=26,e.words[i]=o,r=f}return r!==0&&(e.words[e.length++]=r),e},n._prime=function(e){if(O[e])return O[e];var r;if(e==="k256")r=new j;else if(e==="p224")r=new Z;else if(e==="p192")r=new Re;else if(e==="p25519")r=new Q;else throw new Error("Unknown prime "+e);return O[e]=r,r};function H(h){if(typeof h=="string"){var e=n._prime(h);this.m=e.p,this.prime=e}else v(h.gtn(1),"modulus must be greater than 1"),this.m=h,this.prime=null}H.prototype._verify1=function(e){v(e.negative===0,"red works only with positives"),v(e.red,"red works only with red numbers")},H.prototype._verify2=function(e,r){v((e.negative|r.negative)===0,"red works only with positives"),v(e.red&&e.red===r.red,"red works only with red numbers")},H.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},H.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},H.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},H.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},H.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},H.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},H.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},H.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},H.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},H.prototype.isqr=function(e){return this.imul(e,e.clone())},H.prototype.sqr=function(e){return this.mul(e,e)},H.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(v(r%2===1),r===3){var i=this.m.add(new n(1)).iushrn(2);return this.pow(e,i)}for(var f=this.m.subn(1),o=0;!f.isZero()&&f.andln(1)===0;)o++,f.iushrn(1);v(!f.isZero());var u=new n(1).toRed(this),d=u.redNeg(),a=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new n(2*t*t).toRed(this);this.pow(t,a).cmp(d)!==0;)t.redIAdd(d);for(var s=this.pow(t,f),$=this.pow(e,f.addn(1).iushrn(1)),T=this.pow(e,f),D=o;T.cmp(u)!==0;){for(var z=T,N=0;z.cmp(u)!==0;N++)z=z.redSqr();v(N<D);var S=this.pow(s,new n(1).iushln(D-N-1));$=$.redMul(S),s=S.redSqr(),T=T.redMul(s),D=N}return $},H.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},H.prototype.pow=function(e,r){if(r.isZero())return new n(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=4,f=new Array(1<<i);f[0]=new n(1).toRed(this),f[1]=e;for(var o=2;o<f.length;o++)f[o]=this.mul(f[o-1],e);var u=f[0],d=0,a=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 T=s>>$&1;if(u!==f[0]&&(u=this.sqr(u)),T===0&&d===0){a=0;continue}d<<=1,d|=T,a++,!(a!==i&&(o!==0||$!==0))&&(u=this.mul(u,f[d]),a=0,d=0)}t=26}return u},H.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},H.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},n.mont=function(e){return new Be(e)};function Be(h){H.call(this,h),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}q(Be,H),Be.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Be.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},Be.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),f=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=i.isub(f).iushrn(this.shift),u=o;return o.cmp(this.m)>=0?u=o.isub(this.m):o.cmpn(0)<0&&(u=o.iadd(this.m)),u._forceRed(this)},Be.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new n(0)._forceRed(this);var i=e.mul(r),f=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=i.isub(f).iushrn(this.shift),u=o;return o.cmp(this.m)>=0?u=o.isub(this.m):o.cmpn(0)<0&&(u=o.iadd(this.m)),u._forceRed(this)},Be.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(R,bn$6)})(bn$7)),bn$7.exports}var utils={},hasRequiredUtils$1;function requireUtils$1(){return hasRequiredUtils$1||(hasRequiredUtils$1=1,(function(R){var x=R;function B(n,y){if(Array.isArray(n))return n.slice();if(!n)return[];var b=[];if(typeof n!="string"){for(var m=0;m<n.length;m++)b[m]=n[m]|0;return b}if(y==="hex"){n=n.replace(/[^a-z0-9]+/ig,""),n.length%2!==0&&(n="0"+n);for(var m=0;m<n.length;m+=2)b.push(parseInt(n[m]+n[m+1],16))}else for(var m=0;m<n.length;m++){var c=n.charCodeAt(m),l=c>>8,p=c&255;l?b.push(l,p):b.push(p)}return b}x.toArray=B;function v(n){return n.length===1?"0"+n:n}x.zero2=v;function q(n){for(var y="",b=0;b<n.length;b++)y+=v(n[b].toString(16));return y}x.toHex=q,x.encode=function(y,b){return b==="hex"?q(y):y}})(utils)),utils}var hasRequiredUtils;function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,(function(R){var x=R,B=requireBn$3(),v=requireMinimalisticAssert(),q=requireUtils$1();x.assert=v,x.toArray=q.toArray,x.zero2=q.zero2,x.toHex=q.toHex,x.encode=q.encode;function n(l,p,g){var w=new Array(Math.max(l.bitLength(),g)+1),M;for(M=0;M<w.length;M+=1)w[M]=0;var _=1<<p+1,k=l.clone();for(M=0;M<w.length;M++){var E,A=k.andln(_-1);k.isOdd()?(A>(_>>1)-1?E=(_>>1)-A:E=A,k.isubn(E)):E=0,w[M]=E,k.iushrn(1)}return w}x.getNAF=n;function y(l,p){var g=[[],[]];l=l.clone(),p=p.clone();for(var w=0,M=0,_;l.cmpn(-w)>0||p.cmpn(-M)>0;){var k=l.andln(3)+w&3,E=p.andln(3)+M&3;k===3&&(k=-1),E===3&&(E=-1);var A;(k&1)===0?A=0:(_=l.andln(7)+w&7,(_===3||_===5)&&E===2?A=-k:A=k),g[0].push(A);var O;(E&1)===0?O=0:(_=p.andln(7)+M&7,(_===3||_===5)&&k===2?O=-E:O=E),g[1].push(O),2*w===A+1&&(w=1-w),2*M===O+1&&(M=1-M),l.iushrn(1),p.iushrn(1)}return g}x.getJSF=y;function b(l,p,g){var w="_"+p;l.prototype[p]=function(){return this[w]!==void 0?this[w]:this[w]=g.call(this)}}x.cachedProperty=b;function m(l){return typeof l=="string"?x.toArray(l,"hex"):l}x.parseBytes=m;function c(l){return new B(l,"hex","le")}x.intFromLE=c})(utils$1)),utils$1}var curve={},base$1,hasRequiredBase$1;function requireBase$1(){if(hasRequiredBase$1)return base$1;hasRequiredBase$1=1;var R=requireBn$3(),x=requireUtils(),B=x.getNAF,v=x.getJSF,q=x.assert;function n(b,m){this.type=b,this.p=new R(m.p,16),this.red=m.prime?R.red(m.prime):R.mont(this.p),this.zero=new R(0).toRed(this.red),this.one=new R(1).toRed(this.red),this.two=new R(2).toRed(this.red),this.n=m.n&&new R(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 c=this.n&&this.p.div(this.n);!c||c.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}base$1=n,n.prototype.point=function(){throw new Error("Not implemented")},n.prototype.validate=function(){throw new Error("Not implemented")},n.prototype._fixedNafMul=function(m,c){q(m.precomputed);var l=m._getDoubles(),p=B(c,1,this._bitLength),g=(1<<l.step+1)-(l.step%2===0?2:1);g/=3;var w=[],M,_;for(M=0;M<p.length;M+=l.step){_=0;for(var k=M+l.step-1;k>=M;k--)_=(_<<1)+p[k];w.push(_)}for(var E=this.jpoint(null,null,null),A=this.jpoint(null,null,null),O=g;O>0;O--){for(M=0;M<w.length;M++)_=w[M],_===O?A=A.mixedAdd(l.points[M]):_===-O&&(A=A.mixedAdd(l.points[M].neg()));E=E.add(A)}return E.toP()},n.prototype._wnafMul=function(m,c){var l=4,p=m._getNAFPoints(l);l=p.wnd;for(var g=p.points,w=B(c,l,this._bitLength),M=this.jpoint(null,null,null),_=w.length-1;_>=0;_--){for(var k=0;_>=0&&w[_]===0;_--)k++;if(_>=0&&k++,M=M.dblp(k),_<0)break;var E=w[_];q(E!==0),m.type==="affine"?E>0?M=M.mixedAdd(g[E-1>>1]):M=M.mixedAdd(g[-E-1>>1].neg()):E>0?M=M.add(g[E-1>>1]):M=M.add(g[-E-1>>1].neg())}return m.type==="affine"?M.toP():M},n.prototype._wnafMulAdd=function(m,c,l,p,g){var w=this._wnafT1,M=this._wnafT2,_=this._wnafT3,k=0,E,A,O;for(E=0;E<p;E++){O=c[E];var C=O._getNAFPoints(m);w[E]=C.wnd,M[E]=C.points}for(E=p-1;E>=1;E-=2){var j=E-1,Z=E;if(w[j]!==1||w[Z]!==1){_[j]=B(l[j],w[j],this._bitLength),_[Z]=B(l[Z],w[Z],this._bitLength),k=Math.max(_[j].length,k),k=Math.max(_[Z].length,k);continue}var Re=[c[j],null,null,c[Z]];c[j].y.cmp(c[Z].y)===0?(Re[1]=c[j].add(c[Z]),Re[2]=c[j].toJ().mixedAdd(c[Z].neg())):c[j].y.cmp(c[Z].y.redNeg())===0?(Re[1]=c[j].toJ().mixedAdd(c[Z]),Re[2]=c[j].add(c[Z].neg())):(Re[1]=c[j].toJ().mixedAdd(c[Z]),Re[2]=c[j].toJ().mixedAdd(c[Z].neg()));var Q=[-3,-1,-5,-7,0,7,5,1,3],H=v(l[j],l[Z]);for(k=Math.max(H[0].length,k),_[j]=new Array(k),_[Z]=new Array(k),A=0;A<k;A++){var Be=H[0][A]|0,h=H[1][A]|0;_[j][A]=Q[(Be+1)*3+(h+1)],_[Z][A]=0,M[j]=Re}}var e=this.jpoint(null,null,null),r=this._wnafT4;for(E=k;E>=0;E--){for(var i=0;E>=0;){var f=!0;for(A=0;A<p;A++)r[A]=_[A][E]|0,r[A]!==0&&(f=!1);if(!f)break;i++,E--}if(E>=0&&i++,e=e.dblp(i),E<0)break;for(A=0;A<p;A++){var o=r[A];o!==0&&(o>0?O=M[A][o-1>>1]:o<0&&(O=M[A][-o-1>>1].neg()),O.type==="affine"?e=e.mixedAdd(O):e=e.add(O))}}for(E=0;E<p;E++)M[E]=null;return g?e:e.toP()};function y(b,m){this.curve=b,this.type=m,this.precomputed=null}return n.BasePoint=y,y.prototype.eq=function(){throw new Error("Not implemented")},y.prototype.validate=function(){return this.curve.validate(this)},n.prototype.decodePoint=function(m,c){m=x.toArray(m,c);var l=this.p.byteLength();if((m[0]===4||m[0]===6||m[0]===7)&&m.length-1===2*l){m[0]===6?q(m[m.length-1]%2===0):m[0]===7&&q(m[m.length-1]%2===1);var p=this.point(m.slice(1,1+l),m.slice(1+l,1+2*l));return p}else if((m[0]===2||m[0]===3)&&m.length-1===l)return this.pointFromX(m.slice(1,1+l),m[0]===3);throw new Error("Unknown point format")},y.prototype.encodeCompressed=function(m){return this.encode(m,!0)},y.prototype._encode=function(m){var c=this.curve.p.byteLength(),l=this.getX().toArray("be",c);return m?[this.getY().isEven()?2:3].concat(l):[4].concat(l,this.getY().toArray("be",c))},y.prototype.encode=function(m,c){return x.encode(this._encode(c),m)},y.prototype.precompute=function(m){if(this.precomputed)return this;var c={doubles:null,naf:null,beta:null};return c.naf=this._getNAFPoints(8),c.doubles=this._getDoubles(4,m),c.beta=this._getBeta(),this.precomputed=c,this},y.prototype._hasDoubles=function(m){if(!this.precomputed)return!1;var c=this.precomputed.doubles;return c?c.points.length>=Math.ceil((m.bitLength()+1)/c.step):!1},y.prototype._getDoubles=function(m,c){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var l=[this],p=this,g=0;g<c;g+=m){for(var w=0;w<m;w++)p=p.dbl();l.push(p)}return{step:m,points:l}},y.prototype._getNAFPoints=function(m){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var c=[this],l=(1<<m)-1,p=l===1?null:this.dbl(),g=1;g<l;g++)c[g]=c[g-1].add(p);return{wnd:m,points:c}},y.prototype._getBeta=function(){return null},y.prototype.dblp=function(m){for(var c=this,l=0;l<m;l++)c=c.dbl();return c},base$1}var short,hasRequiredShort;function requireShort(){if(hasRequiredShort)return short;hasRequiredShort=1;var R=requireUtils(),x=requireBn$3(),B=requireInherits_browser(),v=requireBase$1(),q=R.assert;function n(m){v.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)}B(n,v),short=n,n.prototype._getEndomorphism=function(c){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var l,p;if(c.beta)l=new x(c.beta,16).toRed(this.red);else{var g=this._getEndoRoots(this.p);l=g[0].cmp(g[1])<0?g[0]:g[1],l=l.toRed(this.red)}if(c.lambda)p=new x(c.lambda,16);else{var w=this._getEndoRoots(this.n);this.g.mul(w[0]).x.cmp(this.g.x.redMul(l))===0?p=w[0]:(p=w[1],q(this.g.mul(p).x.cmp(this.g.x.redMul(l))===0))}var M;return c.basis?M=c.basis.map(function(_){return{a:new x(_.a,16),b:new x(_.b,16)}}):M=this._getEndoBasis(p),{beta:l,lambda:p,basis:M}}},n.prototype._getEndoRoots=function(c){var l=c===this.p?this.red:x.mont(c),p=new x(2).toRed(l).redInvm(),g=p.redNeg(),w=new x(3).toRed(l).redNeg().redSqrt().redMul(p),M=g.redAdd(w).fromRed(),_=g.redSub(w).fromRed();return[M,_]},n.prototype._getEndoBasis=function(c){for(var l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),p=c,g=this.n.clone(),w=new x(1),M=new x(0),_=new x(0),k=new x(1),E,A,O,C,j,Z,Re,Q=0,H,Be;p.cmpn(0)!==0;){var h=g.div(p);H=g.sub(h.mul(p)),Be=_.sub(h.mul(w));var e=k.sub(h.mul(M));if(!O&&H.cmp(l)<0)E=Re.neg(),A=w,O=H.neg(),C=Be;else if(O&&++Q===2)break;Re=H,g=p,p=H,_=w,w=Be,k=M,M=e}j=H.neg(),Z=Be;var r=O.sqr().add(C.sqr()),i=j.sqr().add(Z.sqr());return i.cmp(r)>=0&&(j=E,Z=A),O.negative&&(O=O.neg(),C=C.neg()),j.negative&&(j=j.neg(),Z=Z.neg()),[{a:O,b:C},{a:j,b:Z}]},n.prototype._endoSplit=function(c){var l=this.endo.basis,p=l[0],g=l[1],w=g.b.mul(c).divRound(this.n),M=p.b.neg().mul(c).divRound(this.n),_=w.mul(p.a),k=M.mul(g.a),E=w.mul(p.b),A=M.mul(g.b),O=c.sub(_).sub(k),C=E.add(A).neg();return{k1:O,k2:C}},n.prototype.pointFromX=function(c,l){c=new x(c,16),c.red||(c=c.toRed(this.red));var p=c.redSqr().redMul(c).redIAdd(c.redMul(this.a)).redIAdd(this.b),g=p.redSqrt();if(g.redSqr().redSub(p).cmp(this.zero)!==0)throw new Error("invalid point");var w=g.fromRed().isOdd();return(l&&!w||!l&&w)&&(g=g.redNeg()),this.point(c,g)},n.prototype.validate=function(c){if(c.inf)return!0;var l=c.x,p=c.y,g=this.a.redMul(l),w=l.redSqr().redMul(l).redIAdd(g).redIAdd(this.b);return p.redSqr().redISub(w).cmpn(0)===0},n.prototype._endoWnafMulAdd=function(c,l,p){for(var g=this._endoWnafT1,w=this._endoWnafT2,M=0;M<c.length;M++){var _=this._endoSplit(l[M]),k=c[M],E=k._getBeta();_.k1.negative&&(_.k1.ineg(),k=k.neg(!0)),_.k2.negative&&(_.k2.ineg(),E=E.neg(!0)),g[M*2]=k,g[M*2+1]=E,w[M*2]=_.k1,w[M*2+1]=_.k2}for(var A=this._wnafMulAdd(1,g,w,M*2,p),O=0;O<M*2;O++)g[O]=null,w[O]=null;return A};function y(m,c,l,p){v.BasePoint.call(this,m,"affine"),c===null&&l===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new x(c,16),this.y=new x(l,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)}B(y,v.BasePoint),n.prototype.point=function(c,l,p){return new y(this,c,l,p)},n.prototype.pointFromJSON=function(c,l){return y.fromJSON(this,c,l)},y.prototype._getBeta=function(){if(this.curve.endo){var c=this.precomputed;if(c&&c.beta)return c.beta;var l=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(c){var p=this.curve,g=function(w){return p.point(w.x.redMul(p.endo.beta),w.y)};c.beta=l,l.precomputed={beta:null,naf:c.naf&&{wnd:c.naf.wnd,points:c.naf.points.map(g)},doubles:c.doubles&&{step:c.doubles.step,points:c.doubles.points.map(g)}}}return l}},y.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]},y.fromJSON=function(c,l,p){typeof l=="string"&&(l=JSON.parse(l));var g=c.point(l[0],l[1],p);if(!l[2])return g;function w(_){return c.point(_[0],_[1],p)}var M=l[2];return g.precomputed={beta:null,doubles:M.doubles&&{step:M.doubles.step,points:[g].concat(M.doubles.points.map(w))},naf:M.naf&&{wnd:M.naf.wnd,points:[g].concat(M.naf.points.map(w))}},g},y.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)+">"},y.prototype.isInfinity=function(){return this.inf},y.prototype.add=function(c){if(this.inf)return c;if(c.inf)return this;if(this.eq(c))return this.dbl();if(this.neg().eq(c))return this.curve.point(null,null);if(this.x.cmp(c.x)===0)return this.curve.point(null,null);var l=this.y.redSub(c.y);l.cmpn(0)!==0&&(l=l.redMul(this.x.redSub(c.x).redInvm()));var p=l.redSqr().redISub(this.x).redISub(c.x),g=l.redMul(this.x.redSub(p)).redISub(this.y);return this.curve.point(p,g)},y.prototype.dbl=function(){if(this.inf)return this;var c=this.y.redAdd(this.y);if(c.cmpn(0)===0)return this.curve.point(null,null);var l=this.curve.a,p=this.x.redSqr(),g=c.redInvm(),w=p.redAdd(p).redIAdd(p).redIAdd(l).redMul(g),M=w.redSqr().redISub(this.x.redAdd(this.x)),_=w.redMul(this.x.redSub(M)).redISub(this.y);return this.curve.point(M,_)},y.prototype.getX=function(){return this.x.fromRed()},y.prototype.getY=function(){return this.y.fromRed()},y.prototype.mul=function(c){return c=new x(c,16),this.isInfinity()?this:this._hasDoubles(c)?this.curve._fixedNafMul(this,c):this.curve.endo?this.curve._endoWnafMulAdd([this],[c]):this.curve._wnafMul(this,c)},y.prototype.mulAdd=function(c,l,p){var g=[this,l],w=[c,p];return this.curve.endo?this.curve._endoWnafMulAdd(g,w):this.curve._wnafMulAdd(1,g,w,2)},y.prototype.jmulAdd=function(c,l,p){var g=[this,l],w=[c,p];return this.curve.endo?this.curve._endoWnafMulAdd(g,w,!0):this.curve._wnafMulAdd(1,g,w,2,!0)},y.prototype.eq=function(c){return this===c||this.inf===c.inf&&(this.inf||this.x.cmp(c.x)===0&&this.y.cmp(c.y)===0)},y.prototype.neg=function(c){if(this.inf)return this;var l=this.curve.point(this.x,this.y.redNeg());if(c&&this.precomputed){var p=this.precomputed,g=function(w){return w.neg()};l.precomputed={naf:p.naf&&{wnd:p.naf.wnd,points:p.naf.points.map(g)},doubles:p.doubles&&{step:p.doubles.step,points:p.doubles.points.map(g)}}}return l},y.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var c=this.curve.jpoint(this.x,this.y,this.curve.one);return c};function b(m,c,l,p){v.BasePoint.call(this,m,"jacobian"),c===null&&l===null&&p===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new x(0)):(this.x=new x(c,16),this.y=new x(l,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 B(b,v.BasePoint),n.prototype.jpoint=function(c,l,p){return new b(this,c,l,p)},b.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var c=this.z.redInvm(),l=c.redSqr(),p=this.x.redMul(l),g=this.y.redMul(l).redMul(c);return this.curve.point(p,g)},b.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},b.prototype.add=function(c){if(this.isInfinity())return c;if(c.isInfinity())return this;var l=c.z.redSqr(),p=this.z.redSqr(),g=this.x.redMul(l),w=c.x.redMul(p),M=this.y.redMul(l.redMul(c.z)),_=c.y.redMul(p.redMul(this.z)),k=g.redSub(w),E=M.redSub(_);if(k.cmpn(0)===0)return E.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var A=k.redSqr(),O=A.redMul(k),C=g.redMul(A),j=E.redSqr().redIAdd(O).redISub(C).redISub(C),Z=E.redMul(C.redISub(j)).redISub(M.redMul(O)),Re=this.z.redMul(c.z).redMul(k);return this.curve.jpoint(j,Z,Re)},b.prototype.mixedAdd=function(c){if(this.isInfinity())return c.toJ();if(c.isInfinity())return this;var l=this.z.redSqr(),p=this.x,g=c.x.redMul(l),w=this.y,M=c.y.redMul(l).redMul(this.z),_=p.redSub(g),k=w.redSub(M);if(_.cmpn(0)===0)return k.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var E=_.redSqr(),A=E.redMul(_),O=p.redMul(E),C=k.redSqr().redIAdd(A).redISub(O).redISub(O),j=k.redMul(O.redISub(C)).redISub(w.redMul(A)),Z=this.z.redMul(_);return this.curve.jpoint(C,j,Z)},b.prototype.dblp=function(c){if(c===0)return this;if(this.isInfinity())return this;if(!c)return this.dbl();var l;if(this.curve.zeroA||this.curve.threeA){var p=this;for(l=0;l<c;l++)p=p.dbl();return p}var g=this.curve.a,w=this.curve.tinv,M=this.x,_=this.y,k=this.z,E=k.redSqr().redSqr(),A=_.redAdd(_);for(l=0;l<c;l++){var O=M.redSqr(),C=A.redSqr(),j=C.redSqr(),Z=O.redAdd(O).redIAdd(O).redIAdd(g.redMul(E)),Re=M.redMul(C),Q=Z.redSqr().redISub(Re.redAdd(Re)),H=Re.redISub(Q),Be=Z.redMul(H);Be=Be.redIAdd(Be).redISub(j);var h=A.redMul(k);l+1<c&&(E=E.redMul(j)),M=Q,k=h,A=Be}return this.curve.jpoint(M,A.redMul(w),k)},b.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},b.prototype._zeroDbl=function(){var c,l,p;if(this.zOne){var g=this.x.redSqr(),w=this.y.redSqr(),M=w.redSqr(),_=this.x.redAdd(w).redSqr().redISub(g).redISub(M);_=_.redIAdd(_);var k=g.redAdd(g).redIAdd(g),E=k.redSqr().redISub(_).redISub(_),A=M.redIAdd(M);A=A.redIAdd(A),A=A.redIAdd(A),c=E,l=k.redMul(_.redISub(E)).redISub(A),p=this.y.redAdd(this.y)}else{var O=this.x.redSqr(),C=this.y.redSqr(),j=C.redSqr(),Z=this.x.redAdd(C).redSqr().redISub(O).redISub(j);Z=Z.redIAdd(Z);var Re=O.redAdd(O).redIAdd(O),Q=Re.redSqr(),H=j.redIAdd(j);H=H.redIAdd(H),H=H.redIAdd(H),c=Q.redISub(Z).redISub(Z),l=Re.redMul(Z.redISub(c)).redISub(H),p=this.y.redMul(this.z),p=p.redIAdd(p)}return this.curve.jpoint(c,l,p)},b.prototype._threeDbl=function(){var c,l,p;if(this.zOne){var g=this.x.redSqr(),w=this.y.redSqr(),M=w.redSqr(),_=this.x.redAdd(w).redSqr().redISub(g).redISub(M);_=_.redIAdd(_);var k=g.redAdd(g).redIAdd(g).redIAdd(this.curve.a),E=k.redSqr().redISub(_).redISub(_);c=E;var A=M.redIAdd(M);A=A.redIAdd(A),A=A.redIAdd(A),l=k.redMul(_.redISub(E)).redISub(A),p=this.y.redAdd(this.y)}else{var O=this.z.redSqr(),C=this.y.redSqr(),j=this.x.redMul(C),Z=this.x.redSub(O).redMul(this.x.redAdd(O));Z=Z.redAdd(Z).redIAdd(Z);var Re=j.redIAdd(j);Re=Re.redIAdd(Re);var Q=Re.redAdd(Re);c=Z.redSqr().redISub(Q),p=this.y.redAdd(this.z).redSqr().redISub(C).redISub(O);var H=C.redSqr();H=H.redIAdd(H),H=H.redIAdd(H),H=H.redIAdd(H),l=Z.redMul(Re.redISub(c)).redISub(H)}return this.curve.jpoint(c,l,p)},b.prototype._dbl=function(){var c=this.curve.a,l=this.x,p=this.y,g=this.z,w=g.redSqr().redSqr(),M=l.redSqr(),_=p.redSqr(),k=M.redAdd(M).redIAdd(M).redIAdd(c.redMul(w)),E=l.redAdd(l);E=E.redIAdd(E);var A=E.redMul(_),O=k.redSqr().redISub(A.redAdd(A)),C=A.redISub(O),j=_.redSqr();j=j.redIAdd(j),j=j.redIAdd(j),j=j.redIAdd(j);var Z=k.redMul(C).redISub(j),Re=p.redAdd(p).redMul(g);return this.curve.jpoint(O,Z,Re)},b.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var c=this.x.redSqr(),l=this.y.redSqr(),p=this.z.redSqr(),g=l.redSqr(),w=c.redAdd(c).redIAdd(c),M=w.redSqr(),_=this.x.redAdd(l).redSqr().redISub(c).redISub(g);_=_.redIAdd(_),_=_.redAdd(_).redIAdd(_),_=_.redISub(M);var k=_.redSqr(),E=g.redIAdd(g);E=E.redIAdd(E),E=E.redIAdd(E),E=E.redIAdd(E);var A=w.redIAdd(_).redSqr().redISub(M).redISub(k).redISub(E),O=l.redMul(A);O=O.redIAdd(O),O=O.redIAdd(O);var C=this.x.redMul(k).redISub(O);C=C.redIAdd(C),C=C.redIAdd(C);var j=this.y.redMul(A.redMul(E.redISub(A)).redISub(_.redMul(k)));j=j.redIAdd(j),j=j.redIAdd(j),j=j.redIAdd(j);var Z=this.z.redAdd(_).redSqr().redISub(p).redISub(k);return this.curve.jpoint(C,j,Z)},b.prototype.mul=function(c,l){return c=new x(c,l),this.curve._wnafMul(this,c)},b.prototype.eq=function(c){if(c.type==="affine")return this.eq(c.toJ());if(this===c)return!0;var l=this.z.redSqr(),p=c.z.redSqr();if(this.x.redMul(p).redISub(c.x.redMul(l)).cmpn(0)!==0)return!1;var g=l.redMul(this.z),w=p.redMul(c.z);return this.y.redMul(w).redISub(c.y.redMul(g)).cmpn(0)===0},b.prototype.eqXToP=function(c){var l=this.z.redSqr(),p=c.toRed(this.curve.red).redMul(l);if(this.x.cmp(p)===0)return!0;for(var g=c.clone(),w=this.curve.redN.redMul(l);;){if(g.iadd(this.curve.n),g.cmp(this.curve.p)>=0)return!1;if(p.redIAdd(w),this.x.cmp(p)===0)return!0}},b.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)+">"},b.prototype.isInfinity=function(){return this.z.cmpn(0)===0},short}var mont,hasRequiredMont;function requireMont(){if(hasRequiredMont)return mont;hasRequiredMont=1;var R=requireBn$3(),x=requireInherits_browser(),B=requireBase$1(),v=requireUtils();function q(y){B.call(this,"mont",y),this.a=new R(y.a,16).toRed(this.red),this.b=new R(y.b,16).toRed(this.red),this.i4=new R(4).toRed(this.red).redInvm(),this.two=new R(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}x(q,B),mont=q,q.prototype.validate=function(b){var m=b.normalize().x,c=m.redSqr(),l=c.redMul(m).redAdd(c.redMul(this.a)).redAdd(m),p=l.redSqrt();return p.redSqr().cmp(l)===0};function n(y,b,m){B.BasePoint.call(this,y,"projective"),b===null&&m===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new R(b,16),this.z=new R(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(n,B.BasePoint),q.prototype.decodePoint=function(b,m){return this.point(v.toArray(b,m),1)},q.prototype.point=function(b,m){return new n(this,b,m)},q.prototype.pointFromJSON=function(b){return n.fromJSON(this,b)},n.prototype.precompute=function(){},n.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},n.fromJSON=function(b,m){return new n(b,m[0],m[1]||b.one)},n.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)+">"},n.prototype.isInfinity=function(){return this.z.cmpn(0)===0},n.prototype.dbl=function(){var b=this.x.redAdd(this.z),m=b.redSqr(),c=this.x.redSub(this.z),l=c.redSqr(),p=m.redSub(l),g=m.redMul(l),w=p.redMul(l.redAdd(this.curve.a24.redMul(p)));return this.curve.point(g,w)},n.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.diffAdd=function(b,m){var c=this.x.redAdd(this.z),l=this.x.redSub(this.z),p=b.x.redAdd(b.z),g=b.x.redSub(b.z),w=g.redMul(c),M=p.redMul(l),_=m.z.redMul(w.redAdd(M).redSqr()),k=m.x.redMul(w.redISub(M).redSqr());return this.curve.point(_,k)},n.prototype.mul=function(b){for(var m=b.clone(),c=this,l=this.curve.point(null,null),p=this,g=[];m.cmpn(0)!==0;m.iushrn(1))g.push(m.andln(1));for(var w=g.length-1;w>=0;w--)g[w]===0?(c=c.diffAdd(l,p),l=l.dbl()):(l=c.diffAdd(l,p),c=c.dbl());return l},n.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},n.prototype.eq=function(b){return this.getX().cmp(b.getX())===0},n.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},n.prototype.getX=function(){return this.normalize(),this.x.fromRed()},mont}var edwards,hasRequiredEdwards;function requireEdwards(){if(hasRequiredEdwards)return edwards;hasRequiredEdwards=1;var R=requireUtils(),x=requireBn$3(),B=requireInherits_browser(),v=requireBase$1(),q=R.assert;function n(b){this.twisted=(b.a|0)!==1,this.mOneA=this.twisted&&(b.a|0)===-1,this.extended=this.mOneA,v.call(this,"edwards",b),this.a=new x(b.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new x(b.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new x(b.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),q(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(b.c|0)===1}B(n,v),edwards=n,n.prototype._mulA=function(m){return this.mOneA?m.redNeg():this.a.redMul(m)},n.prototype._mulC=function(m){return this.oneC?m:this.c.redMul(m)},n.prototype.jpoint=function(m,c,l,p){return this.point(m,c,l,p)},n.prototype.pointFromX=function(m,c){m=new x(m,16),m.red||(m=m.toRed(this.red));var l=m.redSqr(),p=this.c2.redSub(this.a.redMul(l)),g=this.one.redSub(this.c2.redMul(this.d).redMul(l)),w=p.redMul(g.redInvm()),M=w.redSqrt();if(M.redSqr().redSub(w).cmp(this.zero)!==0)throw new Error("invalid point");var _=M.fromRed().isOdd();return(c&&!_||!c&&_)&&(M=M.redNeg()),this.point(m,M)},n.prototype.pointFromY=function(m,c){m=new x(m,16),m.red||(m=m.toRed(this.red));var l=m.redSqr(),p=l.redSub(this.c2),g=l.redMul(this.d).redMul(this.c2).redSub(this.a),w=p.redMul(g.redInvm());if(w.cmp(this.zero)===0){if(c)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()!==c&&(M=M.redNeg()),this.point(M,m)},n.prototype.validate=function(m){if(m.isInfinity())return!0;m.normalize();var c=m.x.redSqr(),l=m.y.redSqr(),p=c.redMul(this.a).redAdd(l),g=this.c2.redMul(this.one.redAdd(this.d.redMul(c).redMul(l)));return p.cmp(g)===0};function y(b,m,c,l,p){v.BasePoint.call(this,b,"projective"),m===null&&c===null&&l===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(c,16),this.z=l?new x(l,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 B(y,v.BasePoint),n.prototype.pointFromJSON=function(m){return y.fromJSON(this,m)},n.prototype.point=function(m,c,l,p){return new y(this,m,c,l,p)},y.fromJSON=function(m,c){return new y(m,c[0],c[1],c[2])},y.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)+">"},y.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},y.prototype._extDbl=function(){var m=this.x.redSqr(),c=this.y.redSqr(),l=this.z.redSqr();l=l.redIAdd(l);var p=this.curve._mulA(m),g=this.x.redAdd(this.y).redSqr().redISub(m).redISub(c),w=p.redAdd(c),M=w.redSub(l),_=p.redSub(c),k=g.redMul(M),E=w.redMul(_),A=g.redMul(_),O=M.redMul(w);return this.curve.point(k,E,O,A)},y.prototype._projDbl=function(){var m=this.x.redAdd(this.y).redSqr(),c=this.x.redSqr(),l=this.y.redSqr(),p,g,w,M,_,k;if(this.curve.twisted){M=this.curve._mulA(c);var E=M.redAdd(l);this.zOne?(p=m.redSub(c).redSub(l).redMul(E.redSub(this.curve.two)),g=E.redMul(M.redSub(l)),w=E.redSqr().redSub(E).redSub(E)):(_=this.z.redSqr(),k=E.redSub(_).redISub(_),p=m.redSub(c).redISub(l).redMul(k),g=E.redMul(M.redSub(l)),w=E.redMul(k))}else M=c.redAdd(l),_=this.curve._mulC(this.z).redSqr(),k=M.redSub(_).redSub(_),p=this.curve._mulC(m.redISub(M)).redMul(k),g=this.curve._mulC(M).redMul(c.redISub(l)),w=M.redMul(k);return this.curve.point(p,g,w)},y.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},y.prototype._extAdd=function(m){var c=this.y.redSub(this.x).redMul(m.y.redSub(m.x)),l=this.y.redAdd(this.x).redMul(m.y.redAdd(m.x)),p=this.t.redMul(this.curve.dd).redMul(m.t),g=this.z.redMul(m.z.redAdd(m.z)),w=l.redSub(c),M=g.redSub(p),_=g.redAdd(p),k=l.redAdd(c),E=w.redMul(M),A=_.redMul(k),O=w.redMul(k),C=M.redMul(_);return this.curve.point(E,A,C,O)},y.prototype._projAdd=function(m){var c=this.z.redMul(m.z),l=c.redSqr(),p=this.x.redMul(m.x),g=this.y.redMul(m.y),w=this.curve.d.redMul(p).redMul(g),M=l.redSub(w),_=l.redAdd(w),k=this.x.redAdd(this.y).redMul(m.x.redAdd(m.y)).redISub(p).redISub(g),E=c.redMul(M).redMul(k),A,O;return this.curve.twisted?(A=c.redMul(_).redMul(g.redSub(this.curve._mulA(p))),O=M.redMul(_)):(A=c.redMul(_).redMul(g.redSub(p)),O=this.curve._mulC(M).redMul(_)),this.curve.point(E,A,O)},y.prototype.add=function(m){return this.isInfinity()?m:m.isInfinity()?this:this.curve.extended?this._extAdd(m):this._projAdd(m)},y.prototype.mul=function(m){return this._hasDoubles(m)?this.curve._fixedNafMul(this,m):this.curve._wnafMul(this,m)},y.prototype.mulAdd=function(m,c,l){return this.curve._wnafMulAdd(1,[this,c],[m,l],2,!1)},y.prototype.jmulAdd=function(m,c,l){return this.curve._wnafMulAdd(1,[this,c],[m,l],2,!0)},y.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},y.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},y.prototype.getX=function(){return this.normalize(),this.x.fromRed()},y.prototype.getY=function(){return this.normalize(),this.y.fromRed()},y.prototype.eq=function(m){return this===m||this.getX().cmp(m.getX())===0&&this.getY().cmp(m.getY())===0},y.prototype.eqXToP=function(m){var c=m.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(c)===0)return!0;for(var l=m.clone(),p=this.curve.redN.redMul(this.z);;){if(l.iadd(this.curve.n),l.cmp(this.curve.p)>=0)return!1;if(c.redIAdd(p),this.x.cmp(c)===0)return!0}},y.prototype.toP=y.prototype.normalize,y.prototype.mixedAdd=y.prototype.add,edwards}var hasRequiredCurve;function requireCurve(){return hasRequiredCurve||(hasRequiredCurve=1,(function(R){var x=R;x.base=requireBase$1(),x.short=requireShort(),x.mont=requireMont(),x.edwards=requireEdwards()})(curve)),curve}var curves={},secp256k1,hasRequiredSecp256k1;function requireSecp256k1(){return hasRequiredSecp256k1||(hasRequiredSecp256k1=1,secp256k1={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"]]}}),secp256k1}var hasRequiredCurves;function requireCurves(){return hasRequiredCurves||(hasRequiredCurves=1,(function(R){var x=R,B=requireHash(),v=requireCurve(),q=requireUtils(),n=q.assert;function y(c){c.type==="short"?this.curve=new v.short(c):c.type==="edwards"?this.curve=new v.edwards(c):this.curve=new v.mont(c),this.g=this.curve.g,this.n=this.curve.n,this.hash=c.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}x.PresetCurve=y;function b(c,l){Object.defineProperty(x,c,{configurable:!0,enumerable:!0,get:function(){var p=new y(l);return Object.defineProperty(x,c,{configurable:!0,enumerable:!0,value:p}),p}})}b("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:B.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),b("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:B.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),b("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:B.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),b("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:B.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"]}),b("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:B.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"]}),b("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:B.sha256,gRed:!1,g:["9"]}),b("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:B.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var m;try{m=requireSecp256k1()}catch{m=void 0}b("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:B.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",m]})})(curves)),curves}var hmacDrbg,hasRequiredHmacDrbg;function requireHmacDrbg(){if(hasRequiredHmacDrbg)return hmacDrbg;hasRequiredHmacDrbg=1;var R=requireHash(),x=requireUtils$1(),B=requireMinimalisticAssert();function v(q){if(!(this instanceof v))return new v(q);this.hash=q.hash,this.predResist=!!q.predResist,this.outLen=this.hash.outSize,this.minEntropy=q.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var n=x.toArray(q.entropy,q.entropyEnc||"hex"),y=x.toArray(q.nonce,q.nonceEnc||"hex"),b=x.toArray(q.pers,q.persEnc||"hex");B(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(n,y,b)}return hmacDrbg=v,v.prototype._init=function(n,y,b){var m=n.concat(y).concat(b);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var c=0;c<this.V.length;c++)this.K[c]=0,this.V[c]=1;this._update(m),this._reseed=1,this.reseedInterval=281474976710656},v.prototype._hmac=function(){return new R.hmac(this.hash,this.K)},v.prototype._update=function(n){var y=this._hmac().update(this.V).update([0]);n&&(y=y.update(n)),this.K=y.digest(),this.V=this._hmac().update(this.V).digest(),n&&(this.K=this._hmac().update(this.V).update([1]).update(n).digest(),this.V=this._hmac().update(this.V).digest())},v.prototype.reseed=function(n,y,b,m){typeof y!="string"&&(m=b,b=y,y=null),n=x.toArray(n,y),b=x.toArray(b,m),B(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(n.concat(b||[])),this._reseed=1},v.prototype.generate=function(n,y,b,m){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof y!="string"&&(m=b,b=y,y=null),b&&(b=x.toArray(b,m||"hex"),this._update(b));for(var c=[];c.length<n;)this.V=this._hmac().update(this.V).digest(),c=c.concat(this.V);var l=c.slice(0,n);return this._update(b),this._reseed++,x.encode(l,y)},hmacDrbg}var key$1,hasRequiredKey$1;function requireKey$1(){if(hasRequiredKey$1)return key$1;hasRequiredKey$1=1;var R=requireBn$3(),x=requireUtils(),B=x.assert;function v(q,n){this.ec=q,this.priv=null,this.pub=null,n.priv&&this._importPrivate(n.priv,n.privEnc),n.pub&&this._importPublic(n.pub,n.pubEnc)}return key$1=v,v.fromPublic=function(n,y,b){return y instanceof v?y:new v(n,{pub:y,pubEnc:b})},v.fromPrivate=function(n,y,b){return y instanceof v?y:new v(n,{priv:y,privEnc:b})},v.prototype.validate=function(){var n=this.getPublic();return n.isInfinity()?{result:!1,reason:"Invalid public key"}:n.validate()?n.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"}},v.prototype.getPublic=function(n,y){return typeof n=="string"&&(y=n,n=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),y?this.pub.encode(y,n):this.pub},v.prototype.getPrivate=function(n){return n==="hex"?this.priv.toString(16,2):this.priv},v.prototype._importPrivate=function(n,y){this.priv=new R(n,y||16),this.priv=this.priv.umod(this.ec.curve.n)},v.prototype._importPublic=function(n,y){if(n.x||n.y){this.ec.curve.type==="mont"?B(n.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&B(n.x&&n.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(n.x,n.y);return}this.pub=this.ec.curve.decodePoint(n,y)},v.prototype.derive=function(n){return n.validate()||B(n.validate(),"public point not validated"),n.mul(this.priv).getX()},v.prototype.sign=function(n,y,b){return this.ec.sign(n,this,y,b)},v.prototype.verify=function(n,y,b){return this.ec.verify(n,y,this,void 0,b)},v.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"},key$1}var signature$1,hasRequiredSignature$1;function requireSignature$1(){if(hasRequiredSignature$1)return signature$1;hasRequiredSignature$1=1;var R=requireBn$3(),x=requireUtils(),B=x.assert;function v(m,c){if(m instanceof v)return m;this._importDER(m,c)||(B(m.r&&m.s,"Signature without r or s"),this.r=new R(m.r,16),this.s=new R(m.s,16),m.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=m.recoveryParam)}signature$1=v;function q(){this.place=0}function n(m,c){var l=m[c.place++];if(!(l&128))return l;var p=l&15;if(p===0||p>4||m[c.place]===0)return!1;for(var g=0,w=0,M=c.place;w<p;w++,M++)g<<=8,g|=m[M],g>>>=0;return g<=127?!1:(c.place=M,g)}function y(m){for(var c=0,l=m.length-1;!m[c]&&!(m[c+1]&128)&&c<l;)c++;return c===0?m:m.slice(c)}v.prototype._importDER=function(c,l){c=x.toArray(c,l);var p=new q;if(c[p.place++]!==48)return!1;var g=n(c,p);if(g===!1||g+p.place!==c.length||c[p.place++]!==2)return!1;var w=n(c,p);if(w===!1||(c[p.place]&128)!==0)return!1;var M=c.slice(p.place,w+p.place);if(p.place+=w,c[p.place++]!==2)return!1;var _=n(c,p);if(_===!1||c.length!==_+p.place||(c[p.place]&128)!==0)return!1;var k=c.slice(p.place,_+p.place);if(M[0]===0)if(M[1]&128)M=M.slice(1);else return!1;if(k[0]===0)if(k[1]&128)k=k.slice(1);else return!1;return this.r=new R(M),this.s=new R(k),this.recoveryParam=null,!0};function b(m,c){if(c<128){m.push(c);return}var l=1+(Math.log(c)/Math.LN2>>>3);for(m.push(l|128);--l;)m.push(c>>>(l<<3)&255);m.push(c)}return v.prototype.toDER=function(c){var l=this.r.toArray(),p=this.s.toArray();for(l[0]&128&&(l=[0].concat(l)),p[0]&128&&(p=[0].concat(p)),l=y(l),p=y(p);!p[0]&&!(p[1]&128);)p=p.slice(1);var g=[2];b(g,l.length),g=g.concat(l),g.push(2),b(g,p.length);var w=g.concat(p),M=[48];return b(M,w.length),M=M.concat(w),x.encode(M,c)},signature$1}var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var R=requireBn$3(),x=requireHmacDrbg(),B=requireUtils(),v=requireCurves(),q=requireBrorand(),n=B.assert,y=requireKey$1(),b=requireSignature$1();function m(c){if(!(this instanceof m))return new m(c);typeof c=="string"&&(n(Object.prototype.hasOwnProperty.call(v,c),"Unknown curve "+c),c=v[c]),c instanceof v.PresetCurve&&(c={curve:c}),this.curve=c.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=c.curve.g,this.g.precompute(c.curve.n.bitLength()+1),this.hash=c.hash||c.curve.hash}return ec=m,m.prototype.keyPair=function(l){return new y(this,l)},m.prototype.keyFromPrivate=function(l,p){return y.fromPrivate(this,l,p)},m.prototype.keyFromPublic=function(l,p){return y.fromPublic(this,l,p)},m.prototype.genKeyPair=function(l){l||(l={});for(var p=new x({hash:this.hash,pers:l.pers,persEnc:l.persEnc||"utf8",entropy:l.entropy||q(this.hash.hmacStrength),entropyEnc:l.entropy&&l.entropyEnc||"utf8",nonce:this.n.toArray()}),g=this.n.byteLength(),w=this.n.sub(new R(2));;){var M=new R(p.generate(g));if(!(M.cmp(w)>0))return M.iaddn(1),this.keyFromPrivate(M)}},m.prototype._truncateToN=function(l,p,g){var w;if(R.isBN(l)||typeof l=="number")l=new R(l,16),w=l.byteLength();else if(typeof l=="object")w=l.length,l=new R(l,16);else{var M=l.toString();w=M.length+1>>>1,l=new R(M,16)}typeof g!="number"&&(g=w*8);var _=g-this.n.bitLength();return _>0&&(l=l.ushrn(_)),!p&&l.cmp(this.n)>=0?l.sub(this.n):l},m.prototype.sign=function(l,p,g,w){if(typeof g=="object"&&(w=g,g=null),w||(w={}),typeof l!="string"&&typeof l!="number"&&!R.isBN(l)){n(typeof l=="object"&&l&&typeof l.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),n(l.length>>>0===l.length);for(var M=0;M<l.length;M++)n((l[M]&255)===l[M])}p=this.keyFromPrivate(p,g),l=this._truncateToN(l,!1,w.msgBitLength),n(!l.isNeg(),"Can not sign a negative message");var _=this.n.byteLength(),k=p.getPrivate().toArray("be",_),E=l.toArray("be",_);n(new R(E).eq(l),"Can not sign message");for(var A=new x({hash:this.hash,entropy:k,nonce:E,pers:w.pers,persEnc:w.persEnc||"utf8"}),O=this.n.sub(new R(1)),C=0;;C++){var j=w.k?w.k(C):new R(A.generate(this.n.byteLength()));if(j=this._truncateToN(j,!0),!(j.cmpn(1)<=0||j.cmp(O)>=0)){var Z=this.g.mul(j);if(!Z.isInfinity()){var Re=Z.getX(),Q=Re.umod(this.n);if(Q.cmpn(0)!==0){var H=j.invm(this.n).mul(Q.mul(p.getPrivate()).iadd(l));if(H=H.umod(this.n),H.cmpn(0)!==0){var Be=(Z.getY().isOdd()?1:0)|(Re.cmp(Q)!==0?2:0);return w.canonical&&H.cmp(this.nh)>0&&(H=this.n.sub(H),Be^=1),new b({r:Q,s:H,recoveryParam:Be})}}}}}},m.prototype.verify=function(l,p,g,w,M){M||(M={}),l=this._truncateToN(l,!1,M.msgBitLength),g=this.keyFromPublic(g,w),p=new b(p,"hex");var _=p.r,k=p.s;if(_.cmpn(1)<0||_.cmp(this.n)>=0||k.cmpn(1)<0||k.cmp(this.n)>=0)return!1;var E=k.invm(this.n),A=E.mul(l).umod(this.n),O=E.mul(_).umod(this.n),C;return this.curve._maxwellTrick?(C=this.g.jmulAdd(A,g.getPublic(),O),C.isInfinity()?!1:C.eqXToP(_)):(C=this.g.mulAdd(A,g.getPublic(),O),C.isInfinity()?!1:C.getX().umod(this.n).cmp(_)===0)},m.prototype.recoverPubKey=function(c,l,p,g){n((3&p)===p,"The recovery param is more than two bits"),l=new b(l,g);var w=this.n,M=new R(c),_=l.r,k=l.s,E=p&1,A=p>>1;if(_.cmp(this.curve.p.umod(this.curve.n))>=0&&A)throw new Error("Unable to find sencond key candinate");A?_=this.curve.pointFromX(_.add(this.curve.n),E):_=this.curve.pointFromX(_,E);var O=l.r.invm(w),C=w.sub(M).mul(O).umod(w),j=k.mul(O).umod(w);return this.g.mulAdd(C,_,j)},m.prototype.getKeyRecoveryParam=function(c,l,p,g){if(l=new b(l,g),l.recoveryParam!==null)return l.recoveryParam;for(var w=0;w<4;w++){var M;try{M=this.recoverPubKey(c,l,w)}catch{continue}if(M.eq(p))return w}throw new Error("Unable to find valid recovery factor")},ec}var key,hasRequiredKey;function requireKey(){if(hasRequiredKey)return key;hasRequiredKey=1;var R=requireUtils(),x=R.assert,B=R.parseBytes,v=R.cachedProperty;function q(n,y){this.eddsa=n,this._secret=B(y.secret),n.isPoint(y.pub)?this._pub=y.pub:this._pubBytes=B(y.pub)}return q.fromPublic=function(y,b){return b instanceof q?b:new q(y,{pub:b})},q.fromSecret=function(y,b){return b instanceof q?b:new q(y,{secret:b})},q.prototype.secret=function(){return this._secret},v(q,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),v(q,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),v(q,"privBytes",function(){var y=this.eddsa,b=this.hash(),m=y.encodingLength-1,c=b.slice(0,y.encodingLength);return c[0]&=248,c[m]&=127,c[m]|=64,c}),v(q,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),v(q,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),v(q,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),q.prototype.sign=function(y){return x(this._secret,"KeyPair can only verify"),this.eddsa.sign(y,this)},q.prototype.verify=function(y,b){return this.eddsa.verify(y,b,this)},q.prototype.getSecret=function(y){return x(this._secret,"KeyPair is public only"),R.encode(this.secret(),y)},q.prototype.getPublic=function(y){return R.encode(this.pubBytes(),y)},key=q,key}var signature,hasRequiredSignature;function requireSignature(){if(hasRequiredSignature)return signature;hasRequiredSignature=1;var R=requireBn$3(),x=requireUtils(),B=x.assert,v=x.cachedProperty,q=x.parseBytes;function n(y,b){this.eddsa=y,typeof b!="object"&&(b=q(b)),Array.isArray(b)&&(B(b.length===y.encodingLength*2,"Signature has invalid size"),b={R:b.slice(0,y.encodingLength),S:b.slice(y.encodingLength)}),B(b.R&&b.S,"Signature without R or S"),y.isPoint(b.R)&&(this._R=b.R),b.S instanceof R&&(this._S=b.S),this._Rencoded=Array.isArray(b.R)?b.R:b.Rencoded,this._Sencoded=Array.isArray(b.S)?b.S:b.Sencoded}return v(n,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),v(n,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),v(n,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),v(n,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),n.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},n.prototype.toHex=function(){return x.encode(this.toBytes(),"hex").toUpperCase()},signature=n,signature}var eddsa,hasRequiredEddsa;function requireEddsa(){if(hasRequiredEddsa)return eddsa;hasRequiredEddsa=1;var R=requireHash(),x=requireCurves(),B=requireUtils(),v=B.assert,q=B.parseBytes,n=requireKey(),y=requireSignature();function b(m){if(v(m==="ed25519","only tested with ed25519 so far"),!(this instanceof b))return new b(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=R.sha512}return eddsa=b,b.prototype.sign=function(c,l){c=q(c);var p=this.keyFromSecret(l),g=this.hashInt(p.messagePrefix(),c),w=this.g.mul(g),M=this.encodePoint(w),_=this.hashInt(M,p.pubBytes(),c).mul(p.priv()),k=g.add(_).umod(this.curve.n);return this.makeSignature({R:w,S:k,Rencoded:M})},b.prototype.verify=function(c,l,p){if(c=q(c),l=this.makeSignature(l),l.S().gte(l.eddsa.curve.n)||l.S().isNeg())return!1;var g=this.keyFromPublic(p),w=this.hashInt(l.Rencoded(),g.pubBytes(),c),M=this.g.mul(l.S()),_=l.R().add(g.pub().mul(w));return _.eq(M)},b.prototype.hashInt=function(){for(var c=this.hash(),l=0;l<arguments.length;l++)c.update(arguments[l]);return B.intFromLE(c.digest()).umod(this.curve.n)},b.prototype.keyFromPublic=function(c){return n.fromPublic(this,c)},b.prototype.keyFromSecret=function(c){return n.fromSecret(this,c)},b.prototype.makeSignature=function(c){return c instanceof y?c:new y(this,c)},b.prototype.encodePoint=function(c){var l=c.getY().toArray("le",this.encodingLength);return l[this.encodingLength-1]|=c.getX().isOdd()?128:0,l},b.prototype.decodePoint=function(c){c=B.parseBytes(c);var l=c.length-1,p=c.slice(0,l).concat(c[l]&-129),g=(c[l]&128)!==0,w=B.intFromLE(p);return this.curve.pointFromY(w,g)},b.prototype.encodeInt=function(c){return c.toArray("le",this.encodingLength)},b.prototype.decodeInt=function(c){return B.intFromLE(c)},b.prototype.isPoint=function(c){return c instanceof this.pointClass},eddsa}var hasRequiredElliptic;function requireElliptic(){return hasRequiredElliptic||(hasRequiredElliptic=1,(function(R){var x=R;x.version=require$$0.version,x.utils=requireUtils(),x.rand=requireBrorand(),x.curve=requireCurve(),x.curves=requireCurves(),x.ec=requireEc(),x.eddsa=requireEddsa()})(elliptic)),elliptic}var asn1$1={},asn1={},bn$5={exports:{}},bn$4=bn$5.exports,hasRequiredBn$2;function requireBn$2(){return hasRequiredBn$2||(hasRequiredBn$2=1,(function(R){(function(x,B){function v(h,e){if(!h)throw new Error(e||"Assertion failed")}function q(h,e){h.super_=e;var r=function(){};r.prototype=e.prototype,h.prototype=new r,h.prototype.constructor=h}function n(h,e,r){if(n.isBN(h))return h;this.negative=0,this.words=null,this.length=0,this.red=null,h!==null&&((e==="le"||e==="be")&&(r=e,e=10),this._init(h||0,e||10,r||"be"))}typeof x=="object"?x.exports=n:B.BN=n,n.BN=n,n.wordSize=26;var y;try{typeof window<"u"&&typeof window.Buffer<"u"?y=window.Buffer:y=requireDist().Buffer}catch{}n.isBN=function(e){return e instanceof n?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===n.wordSize&&Array.isArray(e.words)},n.max=function(e,r){return e.cmp(r)>0?e:r},n.min=function(e,r){return e.cmp(r)<0?e:r},n.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),v(r===(r|0)&&r>=2&&r<=36),e=e.toString().replace(/\s+/g,"");var f=0;e[0]==="-"&&(f++,this.negative=1),f<e.length&&(r===16?this._parseHex(e,f,i):(this._parseBase(e,r,f),i==="le"&&this._initArray(this.toArray(),r,i)))},n.prototype._initNumber=function(e,r,i){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):(v(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},n.prototype._initArray=function(e,r,i){if(v(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 f=0;f<this.length;f++)this.words[f]=0;var o,u,d=0;if(i==="be")for(f=e.length-1,o=0;f>=0;f-=3)u=e[f]|e[f-1]<<8|e[f-2]<<16,this.words[o]|=u<<d&67108863,this.words[o+1]=u>>>26-d&67108863,d+=24,d>=26&&(d-=26,o++);else if(i==="le")for(f=0,o=0;f<e.length;f+=3)u=e[f]|e[f+1]<<8|e[f+2]<<16,this.words[o]|=u<<d&67108863,this.words[o+1]=u>>>26-d&67108863,d+=24,d>=26&&(d-=26,o++);return this.strip()};function b(h,e){var r=h.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function m(h,e,r){var i=b(h,r);return r-1>=e&&(i|=b(h,r-1)<<4),i}n.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var f=0;f<this.length;f++)this.words[f]=0;var o=0,u=0,d;if(i==="be")for(f=e.length-1;f>=r;f-=2)d=m(e,r,f)<<o,this.words[u]|=d&67108863,o>=18?(o-=18,u+=1,this.words[u]|=d>>>26):o+=8;else{var a=e.length-r;for(f=a%2===0?r+1:r;f<e.length;f+=2)d=m(e,r,f)<<o,this.words[u]|=d&67108863,o>=18?(o-=18,u+=1,this.words[u]|=d>>>26):o+=8}this.strip()};function c(h,e,r,i){for(var f=0,o=Math.min(h.length,r),u=e;u<o;u++){var d=h.charCodeAt(u)-48;f*=i,d>=49?f+=d-49+10:d>=17?f+=d-17+10:f+=d}return f}n.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var f=0,o=1;o<=67108863;o*=r)f++;f--,o=o/r|0;for(var u=e.length-i,d=u%f,a=Math.min(u,u-d)+i,t=0,s=i;s<a;s+=f)t=c(e,s,s+f,r),this.imuln(o),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t);if(d!==0){var $=1;for(t=c(e,s,e.length,r),s=0;s<d;s++)$*=r;this.imuln($),this.words[0]+t<67108864?this.words[0]+=t:this._iaddn(t)}this.strip()},n.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},n.prototype.clone=function(){var e=new n(null);return this.copy(e),e},n.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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],g=[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];n.prototype.toString=function(e,r){e=e||10,r=r|0||1;var i;if(e===16||e==="hex"){i="";for(var f=0,o=0,u=0;u<this.length;u++){var d=this.words[u],a=((d<<f|o)&16777215).toString(16);o=d>>>24-f&16777215,f+=2,f>=26&&(f-=26,u--),o!==0||u!==this.length-1?i=l[6-a.length]+a+i:i=a+i}for(o!==0&&(i=o.toString(16)+i);i.length%r!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(e|0)&&e>=2&&e<=36){var t=p[e],s=g[e];i="";var $=this.clone();for($.negative=0;!$.isZero();){var T=$.modn(s).toString(e);$=$.idivn(s),$.isZero()?i=T+i:i=l[t-T.length]+T+i}for(this.isZero()&&(i="0"+i);i.length%r!==0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}v(!1,"Base should be between 2 and 36")},n.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&&v(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(e,r){return v(typeof y<"u"),this.toArrayLike(y,e,r)},n.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},n.prototype.toArrayLike=function(e,r,i){var f=this.byteLength(),o=i||Math.max(1,f);v(f<=o,"byte array longer than desired length"),v(o>0,"Requested array length <= 0"),this.strip();var u=r==="le",d=new e(o),a,t,s=this.clone();if(u){for(t=0;!s.isZero();t++)a=s.andln(255),s.iushrn(8),d[t]=a;for(;t<o;t++)d[t]=0}else{for(t=0;t<o-f;t++)d[t]=0;for(t=0;!s.isZero();t++)a=s.andln(255),s.iushrn(8),d[o-t-1]=a}return d},Math.clz32?n.prototype._countBits=function(e){return 32-Math.clz32(e)}:n.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},n.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return(r&8191)===0&&(i+=13,r>>>=13),(r&127)===0&&(i+=7,r>>>=7),(r&15)===0&&(i+=4,r>>>=4),(r&3)===0&&(i+=2,r>>>=2),(r&1)===0&&i++,i},n.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return(this.length-1)*26+r};function w(h){for(var e=new Array(h.bitLength()),r=0;r<e.length;r++){var i=r/26|0,f=r%26;e[r]=(h.words[i]&1<<f)>>>f}return e}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},n.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.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()},n.prototype.ior=function(e){return v((this.negative|e.negative)===0),this.iuor(e)},n.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},n.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},n.prototype.iuand=function(e){var r;this.length>e.length?r=e:r=this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},n.prototype.iand=function(e){return v((this.negative|e.negative)===0),this.iuand(e)},n.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},n.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},n.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var f=0;f<i.length;f++)this.words[f]=r.words[f]^i.words[f];if(this!==r)for(;f<r.length;f++)this.words[f]=r.words[f];return this.length=r.length,this.strip()},n.prototype.ixor=function(e){return v((this.negative|e.negative)===0),this.iuxor(e)},n.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},n.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},n.prototype.inotn=function(e){v(typeof e=="number"&&e>=0);var r=Math.ceil(e/26)|0,i=e%26;this._expand(r),i>0&&r--;for(var f=0;f<r;f++)this.words[f]=~this.words[f]&67108863;for(i>0&&(this.words[f]=~this.words[f]&67108863>>26-i,f++);f<this.length;f++)this.words[f]=0;return this.strip()},n.prototype.notn=function(e){return this.clone().inotn(e)},n.prototype.setn=function(e,r){v(typeof e=="number"&&e>=0);var i=e/26|0,f=e%26;return this._expand(i+1),r?this.words[i]=this.words[i]|1<<f:this.words[i]=this.words[i]&~(1<<f),this.strip()},n.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 i,f;this.length>e.length?(i=this,f=e):(i=e,f=this);for(var o=0,u=0;u<f.length;u++)r=(i.words[u]|0)+(f.words[u]|0)+o,this.words[u]=r&67108863,o=r>>>26;for(;o!==0&&u<i.length;u++)r=(i.words[u]|0)+o,this.words[u]=r&67108863,o=r>>>26;if(this.length=i.length,o!==0)this.words[this.length]=o,this.length++;else if(i!==this)for(;u<i.length;u++)this.words[u]=i.words[u];return this},n.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)},n.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 i=this.cmp(e);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;var f,o;i>0?(f=this,o=e):(f=e,o=this);for(var u=0,d=0;d<o.length;d++)r=(f.words[d]|0)-(o.words[d]|0)+u,u=r>>26,this.words[d]=r&67108863;for(;u!==0&&d<f.length;d++)r=(f.words[d]|0)+u,u=r>>26,this.words[d]=r&67108863;if(u===0&&d<f.length&&f!==this)for(;d<f.length;d++)this.words[d]=f.words[d];return this.length=Math.max(this.length,d),f!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(e){return this.clone().isub(e)};function M(h,e,r){r.negative=e.negative^h.negative;var i=h.length+e.length|0;r.length=i,i=i-1|0;var f=h.words[0]|0,o=e.words[0]|0,u=f*o,d=u&67108863,a=u/67108864|0;r.words[0]=d;for(var t=1;t<i;t++){for(var s=a>>>26,$=a&67108863,T=Math.min(t,e.length-1),D=Math.max(0,t-h.length+1);D<=T;D++){var z=t-D|0;f=h.words[z]|0,o=e.words[D]|0,u=f*o+$,s+=u/67108864|0,$=u&67108863}r.words[t]=$|0,a=s|0}return a!==0?r.words[t]=a|0:r.length--,r.strip()}var _=function(e,r,i){var f=e.words,o=r.words,u=i.words,d=0,a,t,s,$=f[0]|0,T=$&8191,D=$>>>13,z=f[1]|0,N=z&8191,S=z>>>13,P=f[2]|0,U=P&8191,K=P>>>13,L=f[3]|0,I=L&8191,F=L>>>13,Ee=f[4]|0,V=Ee&8191,W=Ee>>>13,Ae=f[5]|0,G=Ae&8191,Y=Ae>>>13,Ie=f[6]|0,ie=Ie&8191,ee=Ie>>>13,ke=f[7]|0,X=ke&8191,J=ke>>>13,$e=f[8]|0,te=$e&8191,re=$e>>>13,Ye=f[9]|0,ne=Ye&8191,fe=Ye>>>13,Qe=o[0]|0,ae=Qe&8191,se=Qe>>>13,et=o[1]|0,oe=et&8191,he=et>>>13,tt=o[2]|0,ue=tt&8191,de=tt>>>13,rt=o[3]|0,le=rt&8191,ce=rt>>>13,it=o[4]|0,ve=it&8191,pe=it>>>13,nt=o[5]|0,me=nt&8191,be=nt>>>13,ft=o[6]|0,ge=ft&8191,ye=ft>>>13,at=o[7]|0,we=at&8191,Me=at>>>13,st=o[8]|0,_e=st&8191,xe=st>>>13,ot=o[9]|0,Se=ot&8191,qe=ot>>>13;i.negative=e.negative^r.negative,i.length=19,a=Math.imul(T,ae),t=Math.imul(T,se),t=t+Math.imul(D,ae)|0,s=Math.imul(D,se);var Te=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Te>>>26)|0,Te&=67108863,a=Math.imul(N,ae),t=Math.imul(N,se),t=t+Math.imul(S,ae)|0,s=Math.imul(S,se),a=a+Math.imul(T,oe)|0,t=t+Math.imul(T,he)|0,t=t+Math.imul(D,oe)|0,s=s+Math.imul(D,he)|0;var Pe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,a=Math.imul(U,ae),t=Math.imul(U,se),t=t+Math.imul(K,ae)|0,s=Math.imul(K,se),a=a+Math.imul(N,oe)|0,t=t+Math.imul(N,he)|0,t=t+Math.imul(S,oe)|0,s=s+Math.imul(S,he)|0,a=a+Math.imul(T,ue)|0,t=t+Math.imul(T,de)|0,t=t+Math.imul(D,ue)|0,s=s+Math.imul(D,de)|0;var De=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(De>>>26)|0,De&=67108863,a=Math.imul(I,ae),t=Math.imul(I,se),t=t+Math.imul(F,ae)|0,s=Math.imul(F,se),a=a+Math.imul(U,oe)|0,t=t+Math.imul(U,he)|0,t=t+Math.imul(K,oe)|0,s=s+Math.imul(K,he)|0,a=a+Math.imul(N,ue)|0,t=t+Math.imul(N,de)|0,t=t+Math.imul(S,ue)|0,s=s+Math.imul(S,de)|0,a=a+Math.imul(T,le)|0,t=t+Math.imul(T,ce)|0,t=t+Math.imul(D,le)|0,s=s+Math.imul(D,ce)|0;var Ce=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,a=Math.imul(V,ae),t=Math.imul(V,se),t=t+Math.imul(W,ae)|0,s=Math.imul(W,se),a=a+Math.imul(I,oe)|0,t=t+Math.imul(I,he)|0,t=t+Math.imul(F,oe)|0,s=s+Math.imul(F,he)|0,a=a+Math.imul(U,ue)|0,t=t+Math.imul(U,de)|0,t=t+Math.imul(K,ue)|0,s=s+Math.imul(K,de)|0,a=a+Math.imul(N,le)|0,t=t+Math.imul(N,ce)|0,t=t+Math.imul(S,le)|0,s=s+Math.imul(S,ce)|0,a=a+Math.imul(T,ve)|0,t=t+Math.imul(T,pe)|0,t=t+Math.imul(D,ve)|0,s=s+Math.imul(D,pe)|0;var Ne=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,a=Math.imul(G,ae),t=Math.imul(G,se),t=t+Math.imul(Y,ae)|0,s=Math.imul(Y,se),a=a+Math.imul(V,oe)|0,t=t+Math.imul(V,he)|0,t=t+Math.imul(W,oe)|0,s=s+Math.imul(W,he)|0,a=a+Math.imul(I,ue)|0,t=t+Math.imul(I,de)|0,t=t+Math.imul(F,ue)|0,s=s+Math.imul(F,de)|0,a=a+Math.imul(U,le)|0,t=t+Math.imul(U,ce)|0,t=t+Math.imul(K,le)|0,s=s+Math.imul(K,ce)|0,a=a+Math.imul(N,ve)|0,t=t+Math.imul(N,pe)|0,t=t+Math.imul(S,ve)|0,s=s+Math.imul(S,pe)|0,a=a+Math.imul(T,me)|0,t=t+Math.imul(T,be)|0,t=t+Math.imul(D,me)|0,s=s+Math.imul(D,be)|0;var Oe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,a=Math.imul(ie,ae),t=Math.imul(ie,se),t=t+Math.imul(ee,ae)|0,s=Math.imul(ee,se),a=a+Math.imul(G,oe)|0,t=t+Math.imul(G,he)|0,t=t+Math.imul(Y,oe)|0,s=s+Math.imul(Y,he)|0,a=a+Math.imul(V,ue)|0,t=t+Math.imul(V,de)|0,t=t+Math.imul(W,ue)|0,s=s+Math.imul(W,de)|0,a=a+Math.imul(I,le)|0,t=t+Math.imul(I,ce)|0,t=t+Math.imul(F,le)|0,s=s+Math.imul(F,ce)|0,a=a+Math.imul(U,ve)|0,t=t+Math.imul(U,pe)|0,t=t+Math.imul(K,ve)|0,s=s+Math.imul(K,pe)|0,a=a+Math.imul(N,me)|0,t=t+Math.imul(N,be)|0,t=t+Math.imul(S,me)|0,s=s+Math.imul(S,be)|0,a=a+Math.imul(T,ge)|0,t=t+Math.imul(T,ye)|0,t=t+Math.imul(D,ge)|0,s=s+Math.imul(D,ye)|0;var Le=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Le>>>26)|0,Le&=67108863,a=Math.imul(X,ae),t=Math.imul(X,se),t=t+Math.imul(J,ae)|0,s=Math.imul(J,se),a=a+Math.imul(ie,oe)|0,t=t+Math.imul(ie,he)|0,t=t+Math.imul(ee,oe)|0,s=s+Math.imul(ee,he)|0,a=a+Math.imul(G,ue)|0,t=t+Math.imul(G,de)|0,t=t+Math.imul(Y,ue)|0,s=s+Math.imul(Y,de)|0,a=a+Math.imul(V,le)|0,t=t+Math.imul(V,ce)|0,t=t+Math.imul(W,le)|0,s=s+Math.imul(W,ce)|0,a=a+Math.imul(I,ve)|0,t=t+Math.imul(I,pe)|0,t=t+Math.imul(F,ve)|0,s=s+Math.imul(F,pe)|0,a=a+Math.imul(U,me)|0,t=t+Math.imul(U,be)|0,t=t+Math.imul(K,me)|0,s=s+Math.imul(K,be)|0,a=a+Math.imul(N,ge)|0,t=t+Math.imul(N,ye)|0,t=t+Math.imul(S,ge)|0,s=s+Math.imul(S,ye)|0,a=a+Math.imul(T,we)|0,t=t+Math.imul(T,Me)|0,t=t+Math.imul(D,we)|0,s=s+Math.imul(D,Me)|0;var Ue=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,a=Math.imul(te,ae),t=Math.imul(te,se),t=t+Math.imul(re,ae)|0,s=Math.imul(re,se),a=a+Math.imul(X,oe)|0,t=t+Math.imul(X,he)|0,t=t+Math.imul(J,oe)|0,s=s+Math.imul(J,he)|0,a=a+Math.imul(ie,ue)|0,t=t+Math.imul(ie,de)|0,t=t+Math.imul(ee,ue)|0,s=s+Math.imul(ee,de)|0,a=a+Math.imul(G,le)|0,t=t+Math.imul(G,ce)|0,t=t+Math.imul(Y,le)|0,s=s+Math.imul(Y,ce)|0,a=a+Math.imul(V,ve)|0,t=t+Math.imul(V,pe)|0,t=t+Math.imul(W,ve)|0,s=s+Math.imul(W,pe)|0,a=a+Math.imul(I,me)|0,t=t+Math.imul(I,be)|0,t=t+Math.imul(F,me)|0,s=s+Math.imul(F,be)|0,a=a+Math.imul(U,ge)|0,t=t+Math.imul(U,ye)|0,t=t+Math.imul(K,ge)|0,s=s+Math.imul(K,ye)|0,a=a+Math.imul(N,we)|0,t=t+Math.imul(N,Me)|0,t=t+Math.imul(S,we)|0,s=s+Math.imul(S,Me)|0,a=a+Math.imul(T,_e)|0,t=t+Math.imul(T,xe)|0,t=t+Math.imul(D,_e)|0,s=s+Math.imul(D,xe)|0;var ze=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(ze>>>26)|0,ze&=67108863,a=Math.imul(ne,ae),t=Math.imul(ne,se),t=t+Math.imul(fe,ae)|0,s=Math.imul(fe,se),a=a+Math.imul(te,oe)|0,t=t+Math.imul(te,he)|0,t=t+Math.imul(re,oe)|0,s=s+Math.imul(re,he)|0,a=a+Math.imul(X,ue)|0,t=t+Math.imul(X,de)|0,t=t+Math.imul(J,ue)|0,s=s+Math.imul(J,de)|0,a=a+Math.imul(ie,le)|0,t=t+Math.imul(ie,ce)|0,t=t+Math.imul(ee,le)|0,s=s+Math.imul(ee,ce)|0,a=a+Math.imul(G,ve)|0,t=t+Math.imul(G,pe)|0,t=t+Math.imul(Y,ve)|0,s=s+Math.imul(Y,pe)|0,a=a+Math.imul(V,me)|0,t=t+Math.imul(V,be)|0,t=t+Math.imul(W,me)|0,s=s+Math.imul(W,be)|0,a=a+Math.imul(I,ge)|0,t=t+Math.imul(I,ye)|0,t=t+Math.imul(F,ge)|0,s=s+Math.imul(F,ye)|0,a=a+Math.imul(U,we)|0,t=t+Math.imul(U,Me)|0,t=t+Math.imul(K,we)|0,s=s+Math.imul(K,Me)|0,a=a+Math.imul(N,_e)|0,t=t+Math.imul(N,xe)|0,t=t+Math.imul(S,_e)|0,s=s+Math.imul(S,xe)|0,a=a+Math.imul(T,Se)|0,t=t+Math.imul(T,qe)|0,t=t+Math.imul(D,Se)|0,s=s+Math.imul(D,qe)|0;var Ke=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,a=Math.imul(ne,oe),t=Math.imul(ne,he),t=t+Math.imul(fe,oe)|0,s=Math.imul(fe,he),a=a+Math.imul(te,ue)|0,t=t+Math.imul(te,de)|0,t=t+Math.imul(re,ue)|0,s=s+Math.imul(re,de)|0,a=a+Math.imul(X,le)|0,t=t+Math.imul(X,ce)|0,t=t+Math.imul(J,le)|0,s=s+Math.imul(J,ce)|0,a=a+Math.imul(ie,ve)|0,t=t+Math.imul(ie,pe)|0,t=t+Math.imul(ee,ve)|0,s=s+Math.imul(ee,pe)|0,a=a+Math.imul(G,me)|0,t=t+Math.imul(G,be)|0,t=t+Math.imul(Y,me)|0,s=s+Math.imul(Y,be)|0,a=a+Math.imul(V,ge)|0,t=t+Math.imul(V,ye)|0,t=t+Math.imul(W,ge)|0,s=s+Math.imul(W,ye)|0,a=a+Math.imul(I,we)|0,t=t+Math.imul(I,Me)|0,t=t+Math.imul(F,we)|0,s=s+Math.imul(F,Me)|0,a=a+Math.imul(U,_e)|0,t=t+Math.imul(U,xe)|0,t=t+Math.imul(K,_e)|0,s=s+Math.imul(K,xe)|0,a=a+Math.imul(N,Se)|0,t=t+Math.imul(N,qe)|0,t=t+Math.imul(S,Se)|0,s=s+Math.imul(S,qe)|0;var Fe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,a=Math.imul(ne,ue),t=Math.imul(ne,de),t=t+Math.imul(fe,ue)|0,s=Math.imul(fe,de),a=a+Math.imul(te,le)|0,t=t+Math.imul(te,ce)|0,t=t+Math.imul(re,le)|0,s=s+Math.imul(re,ce)|0,a=a+Math.imul(X,ve)|0,t=t+Math.imul(X,pe)|0,t=t+Math.imul(J,ve)|0,s=s+Math.imul(J,pe)|0,a=a+Math.imul(ie,me)|0,t=t+Math.imul(ie,be)|0,t=t+Math.imul(ee,me)|0,s=s+Math.imul(ee,be)|0,a=a+Math.imul(G,ge)|0,t=t+Math.imul(G,ye)|0,t=t+Math.imul(Y,ge)|0,s=s+Math.imul(Y,ye)|0,a=a+Math.imul(V,we)|0,t=t+Math.imul(V,Me)|0,t=t+Math.imul(W,we)|0,s=s+Math.imul(W,Me)|0,a=a+Math.imul(I,_e)|0,t=t+Math.imul(I,xe)|0,t=t+Math.imul(F,_e)|0,s=s+Math.imul(F,xe)|0,a=a+Math.imul(U,Se)|0,t=t+Math.imul(U,qe)|0,t=t+Math.imul(K,Se)|0,s=s+Math.imul(K,qe)|0;var He=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(He>>>26)|0,He&=67108863,a=Math.imul(ne,le),t=Math.imul(ne,ce),t=t+Math.imul(fe,le)|0,s=Math.imul(fe,ce),a=a+Math.imul(te,ve)|0,t=t+Math.imul(te,pe)|0,t=t+Math.imul(re,ve)|0,s=s+Math.imul(re,pe)|0,a=a+Math.imul(X,me)|0,t=t+Math.imul(X,be)|0,t=t+Math.imul(J,me)|0,s=s+Math.imul(J,be)|0,a=a+Math.imul(ie,ge)|0,t=t+Math.imul(ie,ye)|0,t=t+Math.imul(ee,ge)|0,s=s+Math.imul(ee,ye)|0,a=a+Math.imul(G,we)|0,t=t+Math.imul(G,Me)|0,t=t+Math.imul(Y,we)|0,s=s+Math.imul(Y,Me)|0,a=a+Math.imul(V,_e)|0,t=t+Math.imul(V,xe)|0,t=t+Math.imul(W,_e)|0,s=s+Math.imul(W,xe)|0,a=a+Math.imul(I,Se)|0,t=t+Math.imul(I,qe)|0,t=t+Math.imul(F,Se)|0,s=s+Math.imul(F,qe)|0;var je=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(je>>>26)|0,je&=67108863,a=Math.imul(ne,ve),t=Math.imul(ne,pe),t=t+Math.imul(fe,ve)|0,s=Math.imul(fe,pe),a=a+Math.imul(te,me)|0,t=t+Math.imul(te,be)|0,t=t+Math.imul(re,me)|0,s=s+Math.imul(re,be)|0,a=a+Math.imul(X,ge)|0,t=t+Math.imul(X,ye)|0,t=t+Math.imul(J,ge)|0,s=s+Math.imul(J,ye)|0,a=a+Math.imul(ie,we)|0,t=t+Math.imul(ie,Me)|0,t=t+Math.imul(ee,we)|0,s=s+Math.imul(ee,Me)|0,a=a+Math.imul(G,_e)|0,t=t+Math.imul(G,xe)|0,t=t+Math.imul(Y,_e)|0,s=s+Math.imul(Y,xe)|0,a=a+Math.imul(V,Se)|0,t=t+Math.imul(V,qe)|0,t=t+Math.imul(W,Se)|0,s=s+Math.imul(W,qe)|0;var Ze=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,a=Math.imul(ne,me),t=Math.imul(ne,be),t=t+Math.imul(fe,me)|0,s=Math.imul(fe,be),a=a+Math.imul(te,ge)|0,t=t+Math.imul(te,ye)|0,t=t+Math.imul(re,ge)|0,s=s+Math.imul(re,ye)|0,a=a+Math.imul(X,we)|0,t=t+Math.imul(X,Me)|0,t=t+Math.imul(J,we)|0,s=s+Math.imul(J,Me)|0,a=a+Math.imul(ie,_e)|0,t=t+Math.imul(ie,xe)|0,t=t+Math.imul(ee,_e)|0,s=s+Math.imul(ee,xe)|0,a=a+Math.imul(G,Se)|0,t=t+Math.imul(G,qe)|0,t=t+Math.imul(Y,Se)|0,s=s+Math.imul(Y,qe)|0;var We=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(We>>>26)|0,We&=67108863,a=Math.imul(ne,ge),t=Math.imul(ne,ye),t=t+Math.imul(fe,ge)|0,s=Math.imul(fe,ye),a=a+Math.imul(te,we)|0,t=t+Math.imul(te,Me)|0,t=t+Math.imul(re,we)|0,s=s+Math.imul(re,Me)|0,a=a+Math.imul(X,_e)|0,t=t+Math.imul(X,xe)|0,t=t+Math.imul(J,_e)|0,s=s+Math.imul(J,xe)|0,a=a+Math.imul(ie,Se)|0,t=t+Math.imul(ie,qe)|0,t=t+Math.imul(ee,Se)|0,s=s+Math.imul(ee,qe)|0;var Ve=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,a=Math.imul(ne,we),t=Math.imul(ne,Me),t=t+Math.imul(fe,we)|0,s=Math.imul(fe,Me),a=a+Math.imul(te,_e)|0,t=t+Math.imul(te,xe)|0,t=t+Math.imul(re,_e)|0,s=s+Math.imul(re,xe)|0,a=a+Math.imul(X,Se)|0,t=t+Math.imul(X,qe)|0,t=t+Math.imul(J,Se)|0,s=s+Math.imul(J,qe)|0;var Ge=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,a=Math.imul(ne,_e),t=Math.imul(ne,xe),t=t+Math.imul(fe,_e)|0,s=Math.imul(fe,xe),a=a+Math.imul(te,Se)|0,t=t+Math.imul(te,qe)|0,t=t+Math.imul(re,Se)|0,s=s+Math.imul(re,qe)|0;var Xe=(d+a|0)+((t&8191)<<13)|0;d=(s+(t>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,a=Math.imul(ne,Se),t=Math.imul(ne,qe),t=t+Math.imul(fe,Se)|0,s=Math.imul(fe,qe);var Je=(d+a|0)+((t&8191)<<13)|0;return d=(s+(t>>>13)|0)+(Je>>>26)|0,Je&=67108863,u[0]=Te,u[1]=Pe,u[2]=De,u[3]=Ce,u[4]=Ne,u[5]=Oe,u[6]=Le,u[7]=Ue,u[8]=ze,u[9]=Ke,u[10]=Fe,u[11]=He,u[12]=je,u[13]=Ze,u[14]=We,u[15]=Ve,u[16]=Ge,u[17]=Xe,u[18]=Je,d!==0&&(u[19]=d,i.length++),i};Math.imul||(_=M);function k(h,e,r){r.negative=e.negative^h.negative,r.length=h.length+e.length;for(var i=0,f=0,o=0;o<r.length-1;o++){var u=f;f=0;for(var d=i&67108863,a=Math.min(o,e.length-1),t=Math.max(0,o-h.length+1);t<=a;t++){var s=o-t,$=h.words[s]|0,T=e.words[t]|0,D=$*T,z=D&67108863;u=u+(D/67108864|0)|0,z=z+d|0,d=z&67108863,u=u+(z>>>26)|0,f+=u>>>26,u&=67108863}r.words[o]=d,i=u,u=f}return i!==0?r.words[o]=i:r.length--,r.strip()}function E(h,e,r){var i=new A;return i.mulp(h,e,r)}n.prototype.mulTo=function(e,r){var i,f=this.length+e.length;return this.length===10&&e.length===10?i=_(this,e,r):f<63?i=M(this,e,r):f<1024?i=k(this,e,r):i=E(this,e,r),i};function A(h,e){this.x=h,this.y=e}A.prototype.makeRBT=function(e){for(var r=new Array(e),i=n.prototype._countBits(e)-1,f=0;f<e;f++)r[f]=this.revBin(f,i,e);return r},A.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var f=0,o=0;o<r;o++)f|=(e&1)<<r-o-1,e>>=1;return f},A.prototype.permute=function(e,r,i,f,o,u){for(var d=0;d<u;d++)f[d]=r[e[d]],o[d]=i[e[d]]},A.prototype.transform=function(e,r,i,f,o,u){this.permute(u,e,r,i,f,o);for(var d=1;d<o;d<<=1)for(var a=d<<1,t=Math.cos(2*Math.PI/a),s=Math.sin(2*Math.PI/a),$=0;$<o;$+=a)for(var T=t,D=s,z=0;z<d;z++){var N=i[$+z],S=f[$+z],P=i[$+z+d],U=f[$+z+d],K=T*P-D*U;U=T*U+D*P,P=K,i[$+z]=N+P,f[$+z]=S+U,i[$+z+d]=N-P,f[$+z+d]=S-U,z!==a&&(K=t*T-s*D,D=t*D+s*T,T=K)}},A.prototype.guessLen13b=function(e,r){var i=Math.max(r,e)|1,f=i&1,o=0;for(i=i/2|0;i;i=i>>>1)o++;return 1<<o+1+f},A.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var f=0;f<i/2;f++){var o=e[f];e[f]=e[i-f-1],e[i-f-1]=o,o=r[f],r[f]=-r[i-f-1],r[i-f-1]=-o}},A.prototype.normalize13b=function(e,r){for(var i=0,f=0;f<r/2;f++){var o=Math.round(e[2*f+1]/r)*8192+Math.round(e[2*f]/r)+i;e[f]=o&67108863,o<67108864?i=0:i=o/67108864|0}return e},A.prototype.convert13b=function(e,r,i,f){for(var o=0,u=0;u<r;u++)o=o+(e[u]|0),i[2*u]=o&8191,o=o>>>13,i[2*u+1]=o&8191,o=o>>>13;for(u=2*r;u<f;++u)i[u]=0;v(o===0),v((o&-8192)===0)},A.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},A.prototype.mulp=function(e,r,i){var f=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(f),u=this.stub(f),d=new Array(f),a=new Array(f),t=new Array(f),s=new Array(f),$=new Array(f),T=new Array(f),D=i.words;D.length=f,this.convert13b(e.words,e.length,d,f),this.convert13b(r.words,r.length,s,f),this.transform(d,u,a,t,f,o),this.transform(s,u,$,T,f,o);for(var z=0;z<f;z++){var N=a[z]*$[z]-t[z]*T[z];t[z]=a[z]*T[z]+t[z]*$[z],a[z]=N}return this.conjugate(a,t,f),this.transform(a,t,D,u,f,o),this.conjugate(D,u,f),this.normalize13b(D,f),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},n.prototype.mul=function(e){var r=new n(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},n.prototype.mulf=function(e){var r=new n(null);return r.words=new Array(this.length+e.length),E(this,e,r)},n.prototype.imul=function(e){return this.clone().mulTo(e,this)},n.prototype.imuln=function(e){v(typeof e=="number"),v(e<67108864);for(var r=0,i=0;i<this.length;i++){var f=(this.words[i]|0)*e,o=(f&67108863)+(r&67108863);r>>=26,r+=f/67108864|0,r+=o>>>26,this.words[i]=o&67108863}return r!==0&&(this.words[i]=r,this.length++),this.length=e===0?1:this.length,this},n.prototype.muln=function(e){return this.clone().imuln(e)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(e){var r=w(e);if(r.length===0)return new n(1);for(var i=this,f=0;f<r.length&&r[f]===0;f++,i=i.sqr());if(++f<r.length)for(var o=i.sqr();f<r.length;f++,o=o.sqr())r[f]!==0&&(i=i.mul(o));return i},n.prototype.iushln=function(e){v(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,f=67108863>>>26-r<<26-r,o;if(r!==0){var u=0;for(o=0;o<this.length;o++){var d=this.words[o]&f,a=(this.words[o]|0)-d<<r;this.words[o]=a|u,u=d>>>26-r}u&&(this.words[o]=u,this.length++)}if(i!==0){for(o=this.length-1;o>=0;o--)this.words[o+i]=this.words[o];for(o=0;o<i;o++)this.words[o]=0;this.length+=i}return this.strip()},n.prototype.ishln=function(e){return v(this.negative===0),this.iushln(e)},n.prototype.iushrn=function(e,r,i){v(typeof e=="number"&&e>=0);var f;r?f=(r-r%26)/26:f=0;var o=e%26,u=Math.min((e-o)/26,this.length),d=67108863^67108863>>>o<<o,a=i;if(f-=u,f=Math.max(0,f),a){for(var t=0;t<u;t++)a.words[t]=this.words[t];a.length=u}if(u!==0)if(this.length>u)for(this.length-=u,t=0;t<this.length;t++)this.words[t]=this.words[t+u];else this.words[0]=0,this.length=1;var s=0;for(t=this.length-1;t>=0&&(s!==0||t>=f);t--){var $=this.words[t]|0;this.words[t]=s<<26-o|$>>>o,s=$&d}return a&&s!==0&&(a.words[a.length++]=s),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(e,r,i){return v(this.negative===0),this.iushrn(e,r,i)},n.prototype.shln=function(e){return this.clone().ishln(e)},n.prototype.ushln=function(e){return this.clone().iushln(e)},n.prototype.shrn=function(e){return this.clone().ishrn(e)},n.prototype.ushrn=function(e){return this.clone().iushrn(e)},n.prototype.testn=function(e){v(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,f=1<<r;if(this.length<=i)return!1;var o=this.words[i];return!!(o&f)},n.prototype.imaskn=function(e){v(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(v(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var f=67108863^67108863>>>r<<r;this.words[this.length-1]&=f}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.maskn=function(e){return this.clone().imaskn(e)},n.prototype.iaddn=function(e){return v(typeof e=="number"),v(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)},n.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},n.prototype.isubn=function(e){if(v(typeof e=="number"),v(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()},n.prototype.addn=function(e){return this.clone().iaddn(e)},n.prototype.subn=function(e){return this.clone().isubn(e)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(e,r,i){var f=e.length+i,o;this._expand(f);var u,d=0;for(o=0;o<e.length;o++){u=(this.words[o+i]|0)+d;var a=(e.words[o]|0)*r;u-=a&67108863,d=(u>>26)-(a/67108864|0),this.words[o+i]=u&67108863}for(;o<this.length-i;o++)u=(this.words[o+i]|0)+d,d=u>>26,this.words[o+i]=u&67108863;if(d===0)return this.strip();for(v(d===-1),d=0,o=0;o<this.length;o++)u=-(this.words[o]|0)+d,d=u>>26,this.words[o]=u&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(e,r){var i=this.length-e.length,f=this.clone(),o=e,u=o.words[o.length-1]|0,d=this._countBits(u);i=26-d,i!==0&&(o=o.ushln(i),f.iushln(i),u=o.words[o.length-1]|0);var a=f.length-o.length,t;if(r!=="mod"){t=new n(null),t.length=a+1,t.words=new Array(t.length);for(var s=0;s<t.length;s++)t.words[s]=0}var $=f.clone()._ishlnsubmul(o,1,a);$.negative===0&&(f=$,t&&(t.words[a]=1));for(var T=a-1;T>=0;T--){var D=(f.words[o.length+T]|0)*67108864+(f.words[o.length+T-1]|0);for(D=Math.min(D/u|0,67108863),f._ishlnsubmul(o,D,T);f.negative!==0;)D--,f.negative=0,f._ishlnsubmul(o,1,T),f.isZero()||(f.negative^=1);t&&(t.words[T]=D)}return t&&t.strip(),f.strip(),r!=="div"&&i!==0&&f.iushrn(i),{div:t||null,mod:f}},n.prototype.divmod=function(e,r,i){if(v(!e.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var f,o,u;return this.negative!==0&&e.negative===0?(u=this.neg().divmod(e,r),r!=="mod"&&(f=u.div.neg()),r!=="div"&&(o=u.mod.neg(),i&&o.negative!==0&&o.iadd(e)),{div:f,mod:o}):this.negative===0&&e.negative!==0?(u=this.divmod(e.neg(),r),r!=="mod"&&(f=u.div.neg()),{div:f,mod:u.mod}):(this.negative&e.negative)!==0?(u=this.neg().divmod(e.neg(),r),r!=="div"&&(o=u.mod.neg(),i&&o.negative!==0&&o.isub(e)),{div:u.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new n(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new n(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new n(this.modn(e.words[0]))}:this._wordDiv(e,r)},n.prototype.div=function(e){return this.divmod(e,"div",!1).div},n.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},n.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},n.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,f=e.ushrn(1),o=e.andln(1),u=i.cmp(f);return u<0||o===1&&u===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},n.prototype.modn=function(e){v(e<=67108863);for(var r=(1<<26)%e,i=0,f=this.length-1;f>=0;f--)i=(r*i+(this.words[f]|0))%e;return i},n.prototype.idivn=function(e){v(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var f=(this.words[i]|0)+r*67108864;this.words[i]=f/e|0,r=f%e}return this.strip()},n.prototype.divn=function(e){return this.clone().idivn(e)},n.prototype.egcd=function(e){v(e.negative===0),v(!e.isZero());var r=this,i=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var f=new n(1),o=new n(0),u=new n(0),d=new n(1),a=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++a;for(var t=i.clone(),s=r.clone();!r.isZero();){for(var $=0,T=1;(r.words[0]&T)===0&&$<26;++$,T<<=1);if($>0)for(r.iushrn($);$-- >0;)(f.isOdd()||o.isOdd())&&(f.iadd(t),o.isub(s)),f.iushrn(1),o.iushrn(1);for(var D=0,z=1;(i.words[0]&z)===0&&D<26;++D,z<<=1);if(D>0)for(i.iushrn(D);D-- >0;)(u.isOdd()||d.isOdd())&&(u.iadd(t),d.isub(s)),u.iushrn(1),d.iushrn(1);r.cmp(i)>=0?(r.isub(i),f.isub(u),o.isub(d)):(i.isub(r),u.isub(f),d.isub(o))}return{a:u,b:d,gcd:i.iushln(a)}},n.prototype._invmp=function(e){v(e.negative===0),v(!e.isZero());var r=this,i=e.clone();r.negative!==0?r=r.umod(e):r=r.clone();for(var f=new n(1),o=new n(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var d=0,a=1;(r.words[0]&a)===0&&d<26;++d,a<<=1);if(d>0)for(r.iushrn(d);d-- >0;)f.isOdd()&&f.iadd(u),f.iushrn(1);for(var t=0,s=1;(i.words[0]&s)===0&&t<26;++t,s<<=1);if(t>0)for(i.iushrn(t);t-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),f.isub(o)):(i.isub(r),o.isub(f))}var $;return r.cmpn(1)===0?$=f:$=o,$.cmpn(0)<0&&$.iadd(e),$},n.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var f=0;r.isEven()&&i.isEven();f++)r.iushrn(1),i.iushrn(1);do{for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var o=r.cmp(i);if(o<0){var u=r;r=i,i=u}else if(o===0||i.cmpn(1)===0)break;r.isub(i)}while(!0);return i.iushln(f)},n.prototype.invm=function(e){return this.egcd(e).a.umod(e)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(e){return this.words[0]&e},n.prototype.bincn=function(e){v(typeof e=="number");var r=e%26,i=(e-r)/26,f=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=f,this;for(var o=f,u=i;o!==0&&u<this.length;u++){var d=this.words[u]|0;d+=o,o=d>>>26,d&=67108863,this.words[u]=d}return o!==0&&(this.words[u]=o,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.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 i;if(this.length>1)i=1;else{r&&(e=-e),v(e<=67108863,"Number is too big");var f=this.words[0]|0;i=f===e?0:f<e?-1:1}return this.negative!==0?-i|0:i},n.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},n.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var f=this.words[i]|0,o=e.words[i]|0;if(f!==o){f<o?r=-1:f>o&&(r=1);break}}return r},n.prototype.gtn=function(e){return this.cmpn(e)===1},n.prototype.gt=function(e){return this.cmp(e)===1},n.prototype.gten=function(e){return this.cmpn(e)>=0},n.prototype.gte=function(e){return this.cmp(e)>=0},n.prototype.ltn=function(e){return this.cmpn(e)===-1},n.prototype.lt=function(e){return this.cmp(e)===-1},n.prototype.lten=function(e){return this.cmpn(e)<=0},n.prototype.lte=function(e){return this.cmp(e)<=0},n.prototype.eqn=function(e){return this.cmpn(e)===0},n.prototype.eq=function(e){return this.cmp(e)===0},n.red=function(e){return new H(e)},n.prototype.toRed=function(e){return v(!this.red,"Already a number in reduction context"),v(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},n.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(e){return this.red=e,this},n.prototype.forceRed=function(e){return v(!this.red,"Already a number in reduction context"),this._forceRed(e)},n.prototype.redAdd=function(e){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},n.prototype.redIAdd=function(e){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},n.prototype.redSub=function(e){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},n.prototype.redISub=function(e){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},n.prototype.redShl=function(e){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},n.prototype.redMul=function(e){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},n.prototype.redIMul=function(e){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},n.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(e){return v(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var O={k256:null,p224:null,p192:null,p25519:null};function C(h,e){this.name=h,this.p=new n(e,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}C.prototype._tmp=function(){var e=new n(null);return e.words=new Array(Math.ceil(this.n/13)),e},C.prototype.ireduce=function(e){var r=e,i;do this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),i=r.bitLength();while(i>this.n);var f=i<this.n?-1:r.ucmp(this.p);return f===0?(r.words[0]=0,r.length=1):f>0?r.isub(this.p):r.strip!==void 0?r.strip():r._strip(),r},C.prototype.split=function(e,r){e.iushrn(this.n,0,r)},C.prototype.imulK=function(e){return e.imul(this.k)};function j(){C.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}q(j,C),j.prototype.split=function(e,r){for(var i=4194303,f=Math.min(e.length,9),o=0;o<f;o++)r.words[o]=e.words[o];if(r.length=f,e.length<=9){e.words[0]=0,e.length=1;return}var u=e.words[9];for(r.words[r.length++]=u&i,o=10;o<e.length;o++){var d=e.words[o]|0;e.words[o-10]=(d&i)<<4|u>>>22,u=d}u>>>=22,e.words[o-10]=u,u===0&&e.length>10?e.length-=10:e.length-=9},j.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var f=e.words[i]|0;r+=f*977,e.words[i]=r&67108863,r=f*64+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function Z(){C.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}q(Z,C);function Re(){C.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}q(Re,C);function Q(){C.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}q(Q,C),Q.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var f=(e.words[i]|0)*19+r,o=f&67108863;f>>>=26,e.words[i]=o,r=f}return r!==0&&(e.words[e.length++]=r),e},n._prime=function(e){if(O[e])return O[e];var r;if(e==="k256")r=new j;else if(e==="p224")r=new Z;else if(e==="p192")r=new Re;else if(e==="p25519")r=new Q;else throw new Error("Unknown prime "+e);return O[e]=r,r};function H(h){if(typeof h=="string"){var e=n._prime(h);this.m=e.p,this.prime=e}else v(h.gtn(1),"modulus must be greater than 1"),this.m=h,this.prime=null}H.prototype._verify1=function(e){v(e.negative===0,"red works only with positives"),v(e.red,"red works only with red numbers")},H.prototype._verify2=function(e,r){v((e.negative|r.negative)===0,"red works only with positives"),v(e.red&&e.red===r.red,"red works only with red numbers")},H.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},H.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},H.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},H.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},H.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},H.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},H.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},H.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},H.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},H.prototype.isqr=function(e){return this.imul(e,e.clone())},H.prototype.sqr=function(e){return this.mul(e,e)},H.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(v(r%2===1),r===3){var i=this.m.add(new n(1)).iushrn(2);return this.pow(e,i)}for(var f=this.m.subn(1),o=0;!f.isZero()&&f.andln(1)===0;)o++,f.iushrn(1);v(!f.isZero());var u=new n(1).toRed(this),d=u.redNeg(),a=this.m.subn(1).iushrn(1),t=this.m.bitLength();for(t=new n(2*t*t).toRed(this);this.pow(t,a).cmp(d)!==0;)t.redIAdd(d);for(var s=this.pow(t,f),$=this.pow(e,f.addn(1).iushrn(1)),T=this.pow(e,f),D=o;T.cmp(u)!==0;){for(var z=T,N=0;z.cmp(u)!==0;N++)z=z.redSqr();v(N<D);var S=this.pow(s,new n(1).iushln(D-N-1));$=$.redMul(S),s=S.redSqr(),T=T.redMul(s),D=N}return $},H.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},H.prototype.pow=function(e,r){if(r.isZero())return new n(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=4,f=new Array(1<<i);f[0]=new n(1).toRed(this),f[1]=e;for(var o=2;o<f.length;o++)f[o]=this.mul(f[o-1],e);var u=f[0],d=0,a=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 T=s>>$&1;if(u!==f[0]&&(u=this.sqr(u)),T===0&&d===0){a=0;continue}d<<=1,d|=T,a++,!(a!==i&&(o!==0||$!==0))&&(u=this.mul(u,f[d]),a=0,d=0)}t=26}return u},H.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},H.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},n.mont=function(e){return new Be(e)};function Be(h){H.call(this,h),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(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)}q(Be,H),Be.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Be.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},Be.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),f=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=i.isub(f).iushrn(this.shift),u=o;return o.cmp(this.m)>=0?u=o.isub(this.m):o.cmpn(0)<0&&(u=o.iadd(this.m)),u._forceRed(this)},Be.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new n(0)._forceRed(this);var i=e.mul(r),f=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=i.isub(f).iushrn(this.shift),u=o;return o.cmp(this.m)>=0?u=o.isub(this.m):o.cmpn(0)<0&&(u=o.iadd(this.m)),u._forceRed(this)},Be.prototype.invm=function(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(R,bn$4)})(bn$5)),bn$5.exports}var api={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,(function(exports){var indexOf=function(R,x){if(R.indexOf)return R.indexOf(x);for(var B=0;B<R.length;B++)if(R[B]===x)return B;return-1},Object_keys=function(R){if(Object.keys)return Object.keys(R);var x=[];for(var B in R)x.push(B);return x},forEach=function(R,x){if(R.forEach)return R.forEach(x);for(var B=0;B<R.length;B++)x(R[B],B,R)},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(R,x,B){Object.defineProperty(R,x,{writable:!0,enumerable:!1,configurable:!0,value:B})}}catch{return function(x,B,v){x[B]=v}}})(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(x){if(!(this instanceof Script))return new Script(x);this.code=x};Script.prototype.runInContext=function(R){if(!(R instanceof Context))throw new TypeError("needs a 'context' argument.");var x=document.createElement("iframe");x.style||(x.style={}),x.style.display="none",document.body.appendChild(x);var B=x.contentWindow,v=B.eval,q=B.execScript;!v&&q&&(q.call(B,"null"),v=B.eval),forEach(Object_keys(R),function(b){B[b]=R[b]}),forEach(globals,function(b){R[b]&&(B[b]=R[b])});var n=Object_keys(B),y=v.call(B,this.code);return forEach(Object_keys(B),function(b){(b in R||indexOf(n,b)===-1)&&(R[b]=B[b])}),forEach(globals,function(b){b in R||defineProp(R,b,B[b])}),document.body.removeChild(x),y},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(R){var x=Script.createContext(R),B=this.runInContext(x);return R&&forEach(Object_keys(x),function(v){R[v]=x[v]}),B},forEach(Object_keys(Script.prototype),function(R){exports[R]=Script[R]=function(x){var B=Script(x);return B[R].apply(B,[].slice.call(arguments,1))}}),exports.isContext=function(R){return R instanceof Context},exports.createScript=function(R){return exports.Script(R)},exports.createContext=Script.createContext=function(R){var x=new Context;return typeof R=="object"&&forEach(Object_keys(R),function(B){x[B]=R[B]}),x}})(vmBrowserify)),vmBrowserify}var hasRequiredApi;function requireApi(){return hasRequiredApi||(hasRequiredApi=1,(function(R){var x=requireAsn1$1(),B=requireInherits_browser(),v=R;v.define=function(y,b){return new q(y,b)};function q(n,y){this.name=n,this.body=y,this.decoders={},this.encoders={}}q.prototype._createNamed=function(y){var b;try{b=requireVmBrowserify().runInThisContext("(function "+this.name+`(entity) {
3
3
  this._initNamed(entity);
4
4
  })`)}catch{b=function(c){this._initNamed(c)}}return B(b,y),b.prototype._initNamed=function(c){y.call(this,c)},new b(this)},q.prototype._getDecoder=function(y){return y=y||"der",this.decoders.hasOwnProperty(y)||(this.decoders[y]=this._createNamed(x.decoders[y])),this.decoders[y]},q.prototype.decode=function(y,b,m){return this._getDecoder(b).decode(y,m)},q.prototype._getEncoder=function(y){return y=y||"der",this.encoders.hasOwnProperty(y)||(this.encoders[y]=this._createNamed(x.encoders[y])),this.encoders[y]},q.prototype.encode=function(y,b,m){return this._getEncoder(b).encode(y,m)}})(api)),api}var base={},reporter={},hasRequiredReporter;function requireReporter(){if(hasRequiredReporter)return reporter;hasRequiredReporter=1;var R=requireInherits_browser();function x(v){this._reporterState={obj:null,path:[],options:v||{},errors:[]}}reporter.Reporter=x,x.prototype.isError=function(q){return q instanceof B},x.prototype.save=function(){var q=this._reporterState;return{obj:q.obj,pathLen:q.path.length}},x.prototype.restore=function(q){var n=this._reporterState;n.obj=q.obj,n.path=n.path.slice(0,q.pathLen)},x.prototype.enterKey=function(q){return this._reporterState.path.push(q)},x.prototype.exitKey=function(q){var n=this._reporterState;n.path=n.path.slice(0,q-1)},x.prototype.leaveKey=function(q,n,y){var b=this._reporterState;this.exitKey(q),b.obj!==null&&(b.obj[n]=y)},x.prototype.path=function(){return this._reporterState.path.join("/")},x.prototype.enterObject=function(){var q=this._reporterState,n=q.obj;return q.obj={},n},x.prototype.leaveObject=function(q){var n=this._reporterState,y=n.obj;return n.obj=q,y},x.prototype.error=function(q){var n,y=this._reporterState,b=q instanceof B;if(b?n=q:n=new B(y.path.map(function(m){return"["+JSON.stringify(m)+"]"}).join(""),q.message||q,q.stack),!y.options.partial)throw n;return b||y.errors.push(n),n},x.prototype.wrapResult=function(q){var n=this._reporterState;return n.options.partial?{result:this.isError(q)?null:q,errors:n.errors}:q};function B(v,q){this.path=v,this.rethrow(q)}return R(B,Error),B.prototype.rethrow=function(q){if(this.message=q+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,B),!this.stack)try{throw new Error(this.message)}catch(n){this.stack=n.stack}return this},reporter}var buffer={},hasRequiredBuffer;function requireBuffer(){if(hasRequiredBuffer)return buffer;hasRequiredBuffer=1;var R=requireInherits_browser(),x=requireBase().Reporter,B=requireDist().Buffer;function v(n,y){if(x.call(this,y),!B.isBuffer(n)){this.error("Input not Buffer");return}this.base=n,this.offset=0,this.length=n.length}R(v,x),buffer.DecoderBuffer=v,v.prototype.save=function(){return{offset:this.offset,reporter:x.prototype.save.call(this)}},v.prototype.restore=function(y){var b=new v(this.base);return b.offset=y.offset,b.length=this.offset,this.offset=y.offset,x.prototype.restore.call(this,y.reporter),b},v.prototype.isEmpty=function(){return this.offset===this.length},v.prototype.readUInt8=function(y){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(y||"DecoderBuffer overrun")},v.prototype.skip=function(y,b){if(!(this.offset+y<=this.length))return this.error(b||"DecoderBuffer overrun");var m=new v(this.base);return m._reporterState=this._reporterState,m.offset=this.offset,m.length=this.offset+y,this.offset+=y,m},v.prototype.raw=function(y){return this.base.slice(y?y.offset:this.offset,this.length)};function q(n,y){if(Array.isArray(n))this.length=0,this.value=n.map(function(b){return b instanceof q||(b=new q(b,y)),this.length+=b.length,b},this);else if(typeof n=="number"){if(!(0<=n&&n<=255))return y.error("non-byte EncoderBuffer value");this.value=n,this.length=1}else if(typeof n=="string")this.value=n,this.length=B.byteLength(n);else if(B.isBuffer(n))this.value=n,this.length=n.length;else return y.error("Unsupported type: "+typeof n)}return buffer.EncoderBuffer=q,q.prototype.join=function(y,b){return y||(y=new B(this.length)),b||(b=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(m){m.join(y,b),b+=m.length}):(typeof this.value=="number"?y[b]=this.value:typeof this.value=="string"?y.write(this.value,b):B.isBuffer(this.value)&&this.value.copy(y,b),b+=this.length)),y},buffer}var node,hasRequiredNode;function requireNode(){if(hasRequiredNode)return node;hasRequiredNode=1;var R=requireBase().Reporter,x=requireBase().EncoderBuffer,B=requireBase().DecoderBuffer,v=requireMinimalisticAssert(),q=["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"],n=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(q),y=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function b(c,l){var p={};this._baseState=p,p.enc=c,p.parent=l||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())}node=b;var m=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return b.prototype.clone=function(){var l=this._baseState,p={};m.forEach(function(w){p[w]=l[w]});var g=new this.constructor(p.parent);return g._baseState=p,g},b.prototype._wrap=function(){var l=this._baseState;n.forEach(function(p){this[p]=function(){var w=new this.constructor(this);return l.children.push(w),w[p].apply(w,arguments)}},this)},b.prototype._init=function(l){var p=this._baseState;v(p.parent===null),l.call(this),p.children=p.children.filter(function(g){return g._baseState.parent===this},this),v.equal(p.children.length,1,"Root node can have only one child")},b.prototype._useArgs=function(l){var p=this._baseState,g=l.filter(function(w){return w instanceof this.constructor},this);l=l.filter(function(w){return!(w instanceof this.constructor)},this),g.length!==0&&(v(p.children===null),p.children=g,g.forEach(function(w){w._baseState.parent=this},this)),l.length!==0&&(v(p.args===null),p.args=l,p.reverseArgs=l.map(function(w){if(typeof w!="object"||w.constructor!==Object)return w;var M={};return Object.keys(w).forEach(function(_){_==(_|0)&&(_|=0);var k=w[_];M[k]=_}),M}))},y.forEach(function(c){b.prototype[c]=function(){var p=this._baseState;throw new Error(c+" not implemented for encoding: "+p.enc)}}),q.forEach(function(c){b.prototype[c]=function(){var p=this._baseState,g=Array.prototype.slice.call(arguments);return v(p.tag===null),p.tag=c,this._useArgs(g),this}}),b.prototype.use=function(l){v(l);var p=this._baseState;return v(p.use===null),p.use=l,this},b.prototype.optional=function(){var l=this._baseState;return l.optional=!0,this},b.prototype.def=function(l){var p=this._baseState;return v(p.default===null),p.default=l,p.optional=!0,this},b.prototype.explicit=function(l){var p=this._baseState;return v(p.explicit===null&&p.implicit===null),p.explicit=l,this},b.prototype.implicit=function(l){var p=this._baseState;return v(p.explicit===null&&p.implicit===null),p.implicit=l,this},b.prototype.obj=function(){var l=this._baseState,p=Array.prototype.slice.call(arguments);return l.obj=!0,p.length!==0&&this._useArgs(p),this},b.prototype.key=function(l){var p=this._baseState;return v(p.key===null),p.key=l,this},b.prototype.any=function(){var l=this._baseState;return l.any=!0,this},b.prototype.choice=function(l){var p=this._baseState;return v(p.choice===null),p.choice=l,this._useArgs(Object.keys(l).map(function(g){return l[g]})),this},b.prototype.contains=function(l){var p=this._baseState;return v(p.use===null),p.contains=l,this},b.prototype._decode=function(l,p){var g=this._baseState;if(g.parent===null)return l.wrapResult(g.children[0]._decode(l,p));var w=g.default,M=!0,_=null;if(g.key!==null&&(_=l.enterKey(g.key)),g.optional){var k=null;if(g.explicit!==null?k=g.explicit:g.implicit!==null?k=g.implicit:g.tag!==null&&(k=g.tag),k===null&&!g.any){var E=l.save();try{g.choice===null?this._decodeGeneric(g.tag,l,p):this._decodeChoice(l,p),M=!0}catch{M=!1}l.restore(E)}else if(M=this._peekTag(l,k,g.any),l.isError(M))return M}var A;if(g.obj&&M&&(A=l.enterObject()),M){if(g.explicit!==null){var O=this._decodeTag(l,g.explicit);if(l.isError(O))return O;l=O}var C=l.offset;if(g.use===null&&g.choice===null){if(g.any)var E=l.save();var j=this._decodeTag(l,g.implicit!==null?g.implicit:g.tag,g.any);if(l.isError(j))return j;g.any?w=l.raw(E):l=j}if(p&&p.track&&g.tag!==null&&p.track(l.path(),C,l.length,"tagged"),p&&p.track&&g.tag!==null&&p.track(l.path(),l.offset,l.length,"content"),g.any?w=w:g.choice===null?w=this._decodeGeneric(g.tag,l,p):w=this._decodeChoice(l,p),l.isError(w))return w;if(!g.any&&g.choice===null&&g.children!==null&&g.children.forEach(function(Q){Q._decode(l,p)}),g.contains&&(g.tag==="octstr"||g.tag==="bitstr")){var Z=new B(w);w=this._getUse(g.contains,l._reporterState.obj)._decode(Z,p)}}return g.obj&&M&&(w=l.leaveObject(A)),g.key!==null&&(w!==null||M===!0)?l.leaveKey(_,g.key,w):_!==null&&l.exitKey(_),w},b.prototype._decodeGeneric=function(l,p,g){var w=this._baseState;return l==="seq"||l==="set"?null:l==="seqof"||l==="setof"?this._decodeList(p,l,w.args[0],g):/str$/.test(l)?this._decodeStr(p,l,g):l==="objid"&&w.args?this._decodeObjid(p,w.args[0],w.args[1],g):l==="objid"?this._decodeObjid(p,null,null,g):l==="gentime"||l==="utctime"?this._decodeTime(p,l,g):l==="null_"?this._decodeNull(p,g):l==="bool"?this._decodeBool(p,g):l==="objDesc"?this._decodeStr(p,l,g):l==="int"||l==="enum"?this._decodeInt(p,w.args&&w.args[0],g):w.use!==null?this._getUse(w.use,p._reporterState.obj)._decode(p,g):p.error("unknown tag: "+l)},b.prototype._getUse=function(l,p){var g=this._baseState;return g.useDecoder=this._use(l,p),v(g.useDecoder._baseState.parent===null),g.useDecoder=g.useDecoder._baseState.children[0],g.implicit!==g.useDecoder._baseState.implicit&&(g.useDecoder=g.useDecoder.clone(),g.useDecoder._baseState.implicit=g.implicit),g.useDecoder},b.prototype._decodeChoice=function(l,p){var g=this._baseState,w=null,M=!1;return Object.keys(g.choice).some(function(_){var k=l.save(),E=g.choice[_];try{var A=E._decode(l,p);if(l.isError(A))return!1;w={type:_,value:A},M=!0}catch{return l.restore(k),!1}return!0},this),M?w:l.error("Choice not matched")},b.prototype._createEncoderBuffer=function(l){return new x(l,this.reporter)},b.prototype._encode=function(l,p,g){var w=this._baseState;if(!(w.default!==null&&w.default===l)){var M=this._encodeValue(l,p,g);if(M!==void 0&&!this._skipDefault(M,p,g))return M}},b.prototype._encodeValue=function(l,p,g){var w=this._baseState;if(w.parent===null)return w.children[0]._encode(l,p||new R);var E=null;if(this.reporter=p,w.optional&&l===void 0)if(w.default!==null)l=w.default;else return;var M=null,_=!1;if(w.any)E=this._createEncoderBuffer(l);else if(w.choice)E=this._encodeChoice(l,p);else if(w.contains)M=this._getUse(w.contains,g)._encode(l,p),_=!0;else if(w.children)M=w.children.map(function(C){if(C._baseState.tag==="null_")return C._encode(null,p,l);if(C._baseState.key===null)return p.error("Child should have a key");var j=p.enterKey(C._baseState.key);if(typeof l!="object")return p.error("Child expected, but input is not object");var Z=C._encode(l[C._baseState.key],p,l);return p.leaveKey(j),Z},this).filter(function(C){return C}),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(l))return p.error("seqof/setof, but data is not Array");var k=this.clone();k._baseState.implicit=null,M=this._createEncoderBuffer(l.map(function(C){var j=this._baseState;return this._getUse(j.args[0],l)._encode(C,p)},k))}else w.use!==null?E=this._getUse(w.use,g)._encode(l,p):(M=this._encodePrimitive(w.tag,l),_=!0);var E;if(!w.any&&w.choice===null){var A=w.implicit!==null?w.implicit:w.tag,O=w.implicit===null?"universal":"context";A===null?w.use===null&&p.error("Tag could be omitted only for .use()"):w.use===null&&(E=this._encodeComposite(A,_,O,M))}return w.explicit!==null&&(E=this._encodeComposite(w.explicit,!1,"context",E)),E},b.prototype._encodeChoice=function(l,p){var g=this._baseState,w=g.choice[l.type];return w||v(!1,l.type+" not found in "+JSON.stringify(Object.keys(g.choice))),w._encode(l.value,p)},b.prototype._encodePrimitive=function(l,p){var g=this._baseState;if(/str$/.test(l))return this._encodeStr(p,l);if(l==="objid"&&g.args)return this._encodeObjid(p,g.reverseArgs[0],g.args[1]);if(l==="objid")return this._encodeObjid(p,null,null);if(l==="gentime"||l==="utctime")return this._encodeTime(p,l);if(l==="null_")return this._encodeNull();if(l==="int"||l==="enum")return this._encodeInt(p,g.args&&g.reverseArgs[0]);if(l==="bool")return this._encodeBool(p);if(l==="objDesc")return this._encodeStr(p,l);throw new Error("Unsupported tag: "+l)},b.prototype._isNumstr=function(l){return/^[0-9 ]*$/.test(l)},b.prototype._isPrintstr=function(l){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(l)},node}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,(function(R){var x=R;x.Reporter=requireReporter().Reporter,x.DecoderBuffer=requireBuffer().DecoderBuffer,x.EncoderBuffer=requireBuffer().EncoderBuffer,x.Node=requireNode()})(base)),base}var constants={},der={},hasRequiredDer$2;function requireDer$2(){return hasRequiredDer$2||(hasRequiredDer$2=1,(function(R){var x=requireConstants();R.tagClass={0:"universal",1:"application",2:"context",3:"private"},R.tagClassByName=x._reverse(R.tagClass),R.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"},R.tagByName=x._reverse(R.tag)})(der)),der}var hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,(function(R){var x=R;x._reverse=function(v){var q={};return Object.keys(v).forEach(function(n){(n|0)==n&&(n=n|0);var y=v[n];q[y]=n}),q},x.der=requireDer$2()})(constants)),constants}var decoders={},der_1$1,hasRequiredDer$1;function requireDer$1(){if(hasRequiredDer$1)return der_1$1;hasRequiredDer$1=1;var R=requireInherits_browser(),x=requireAsn1$1(),B=x.base,v=x.bignum,q=x.constants.der;function n(c){this.enc="der",this.name=c.name,this.entity=c,this.tree=new y,this.tree._init(c.body)}der_1$1=n,n.prototype.decode=function(l,p){return l instanceof B.DecoderBuffer||(l=new B.DecoderBuffer(l,p)),this.tree._decode(l,p)};function y(c){B.Node.call(this,"der",c)}R(y,B.Node),y.prototype._peekTag=function(l,p,g){if(l.isEmpty())return!1;var w=l.save(),M=b(l,'Failed to peek tag: "'+p+'"');return l.isError(M)?M:(l.restore(w),M.tag===p||M.tagStr===p||M.tagStr+"of"===p||g)},y.prototype._decodeTag=function(l,p,g){var w=b(l,'Failed to decode tag of "'+p+'"');if(l.isError(w))return w;var M=m(l,w.primitive,'Failed to get length of "'+p+'"');if(l.isError(M))return M;if(!g&&w.tag!==p&&w.tagStr!==p&&w.tagStr+"of"!==p)return l.error('Failed to match tag: "'+p+'"');if(w.primitive||M!==null)return l.skip(M,'Failed to match body of: "'+p+'"');var _=l.save(),k=this._skipUntilEnd(l,'Failed to skip indefinite length body: "'+this.tag+'"');return l.isError(k)?k:(M=l.offset-_.offset,l.restore(_),l.skip(M,'Failed to match body of: "'+p+'"'))},y.prototype._skipUntilEnd=function(l,p){for(;;){var g=b(l,p);if(l.isError(g))return g;var w=m(l,g.primitive,p);if(l.isError(w))return w;var M;if(g.primitive||w!==null?M=l.skip(w):M=this._skipUntilEnd(l,p),l.isError(M))return M;if(g.tagStr==="end")break}},y.prototype._decodeList=function(l,p,g,w){for(var M=[];!l.isEmpty();){var _=this._peekTag(l,"end");if(l.isError(_))return _;var k=g.decode(l,"der",w);if(l.isError(k)&&_)break;M.push(k)}return M},y.prototype._decodeStr=function(l,p){if(p==="bitstr"){var g=l.readUInt8();return l.isError(g)?g:{unused:g,data:l.raw()}}else if(p==="bmpstr"){var w=l.raw();if(w.length%2===1)return l.error("Decoding of string type: bmpstr length mismatch");for(var M="",_=0;_<w.length/2;_++)M+=String.fromCharCode(w.readUInt16BE(_*2));return M}else if(p==="numstr"){var k=l.raw().toString("ascii");return this._isNumstr(k)?k:l.error("Decoding of string type: numstr unsupported characters")}else{if(p==="octstr")return l.raw();if(p==="objDesc")return l.raw();if(p==="printstr"){var E=l.raw().toString("ascii");return this._isPrintstr(E)?E:l.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(p)?l.raw().toString():l.error("Decoding of string type: "+p+" unsupported")}},y.prototype._decodeObjid=function(l,p,g){for(var w,M=[],_=0;!l.isEmpty();){var k=l.readUInt8();_<<=7,_|=k&127,(k&128)===0&&(M.push(_),_=0)}k&128&&M.push(_);var E=M[0]/40|0,A=M[0]%40;if(g?w=M:w=[E,A].concat(M.slice(1)),p){var O=p[w.join(" ")];O===void 0&&(O=p[w.join(".")]),O!==void 0&&(w=O)}return w},y.prototype._decodeTime=function(l,p){var g=l.raw().toString();if(p==="gentime")var w=g.slice(0,4)|0,M=g.slice(4,6)|0,_=g.slice(6,8)|0,k=g.slice(8,10)|0,E=g.slice(10,12)|0,A=g.slice(12,14)|0;else if(p==="utctime"){var w=g.slice(0,2)|0,M=g.slice(2,4)|0,_=g.slice(4,6)|0,k=g.slice(6,8)|0,E=g.slice(8,10)|0,A=g.slice(10,12)|0;w<70?w=2e3+w:w=1900+w}else return l.error("Decoding "+p+" time is not supported yet");return Date.UTC(w,M-1,_,k,E,A,0)},y.prototype._decodeNull=function(l){return null},y.prototype._decodeBool=function(l){var p=l.readUInt8();return l.isError(p)?p:p!==0},y.prototype._decodeInt=function(l,p){var g=l.raw(),w=new v(g);return p&&(w=p[w.toString(10)]||w),w},y.prototype._use=function(l,p){return typeof l=="function"&&(l=l(p)),l._getDecoder("der").tree};function b(c,l){var p=c.readUInt8(l);if(c.isError(p))return p;var g=q.tagClass[p>>6],w=(p&32)===0;if((p&31)===31){var M=p;for(p=0;(M&128)===128;){if(M=c.readUInt8(l),c.isError(M))return M;p<<=7,p|=M&127}}else p&=31;var _=q.tag[p];return{cls:g,primitive:w,tag:p,tagStr:_}}function m(c,l,p){var g=c.readUInt8(p);if(c.isError(g))return g;if(!l&&g===128)return null;if((g&128)===0)return g;var w=g&127;if(w>4)return c.error("length octect is too long");g=0;for(var M=0;M<w;M++){g<<=8;var _=c.readUInt8(p);if(c.isError(_))return _;g|=_}return g}return der_1$1}var pem$1,hasRequiredPem$1;function requirePem$1(){if(hasRequiredPem$1)return pem$1;hasRequiredPem$1=1;var R=requireInherits_browser(),x=requireDist().Buffer,B=requireDer$1();function v(q){B.call(this,q),this.enc="pem"}return R(v,B),pem$1=v,v.prototype.decode=function(n,y){for(var b=n.toString().split(/[\r\n]+/g),m=y.label.toUpperCase(),c=/^-----(BEGIN|END) ([^-]+)-----$/,l=-1,p=-1,g=0;g<b.length;g++){var w=b[g].match(c);if(w!==null&&w[2]===m)if(l===-1){if(w[1]!=="BEGIN")break;l=g}else{if(w[1]!=="END")break;p=g;break}}if(l===-1||p===-1)throw new Error("PEM section not found for: "+m);var M=b.slice(l+1,p).join("");M.replace(/[^a-z0-9\+\/=]+/gi,"");var _=new x(M,"base64");return B.prototype.decode.call(this,_,y)},pem$1}var hasRequiredDecoders;function requireDecoders(){return hasRequiredDecoders||(hasRequiredDecoders=1,(function(R){var x=R;x.der=requireDer$1(),x.pem=requirePem$1()})(decoders)),decoders}var encoders={},der_1,hasRequiredDer;function requireDer(){if(hasRequiredDer)return der_1;hasRequiredDer=1;var R=requireInherits_browser(),x=requireDist().Buffer,B=requireAsn1$1(),v=B.base,q=B.constants.der;function n(c){this.enc="der",this.name=c.name,this.entity=c,this.tree=new y,this.tree._init(c.body)}der_1=n,n.prototype.encode=function(l,p){return this.tree._encode(l,p).join()};function y(c){v.Node.call(this,"der",c)}R(y,v.Node),y.prototype._encodeComposite=function(l,p,g,w){var M=m(l,p,g,this.reporter);if(w.length<128){var E=new x(2);return E[0]=M,E[1]=w.length,this._createEncoderBuffer([E,w])}for(var _=1,k=w.length;k>=256;k>>=8)_++;var E=new x(2+_);E[0]=M,E[1]=128|_;for(var k=1+_,A=w.length;A>0;k--,A>>=8)E[k]=A&255;return this._createEncoderBuffer([E,w])},y.prototype._encodeStr=function(l,p){if(p==="bitstr")return this._createEncoderBuffer([l.unused|0,l.data]);if(p==="bmpstr"){for(var g=new x(l.length*2),w=0;w<l.length;w++)g.writeUInt16BE(l.charCodeAt(w),w*2);return this._createEncoderBuffer(g)}else return p==="numstr"?this._isNumstr(l)?this._createEncoderBuffer(l):this.reporter.error("Encoding of string type: numstr supports only digits and space"):p==="printstr"?this._isPrintstr(l)?this._createEncoderBuffer(l):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(l):p==="objDesc"?this._createEncoderBuffer(l):this.reporter.error("Encoding of string type: "+p+" unsupported")},y.prototype._encodeObjid=function(l,p,g){if(typeof l=="string"){if(!p)return this.reporter.error("string objid given, but no values map found");if(!p.hasOwnProperty(l))return this.reporter.error("objid not found in values map");l=p[l].split(/[\s\.]+/g);for(var w=0;w<l.length;w++)l[w]|=0}else if(Array.isArray(l)){l=l.slice();for(var w=0;w<l.length;w++)l[w]|=0}if(!Array.isArray(l))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(l));if(!g){if(l[1]>=40)return this.reporter.error("Second objid identifier OOB");l.splice(0,2,l[0]*40+l[1])}for(var M=0,w=0;w<l.length;w++){var _=l[w];for(M++;_>=128;_>>=7)M++}for(var k=new x(M),E=k.length-1,w=l.length-1;w>=0;w--){var _=l[w];for(k[E--]=_&127;(_>>=7)>0;)k[E--]=128|_&127}return this._createEncoderBuffer(k)};function b(c){return c<10?"0"+c:c}y.prototype._encodeTime=function(l,p){var g,w=new Date(l);return p==="gentime"?g=[b(w.getFullYear()),b(w.getUTCMonth()+1),b(w.getUTCDate()),b(w.getUTCHours()),b(w.getUTCMinutes()),b(w.getUTCSeconds()),"Z"].join(""):p==="utctime"?g=[b(w.getFullYear()%100),b(w.getUTCMonth()+1),b(w.getUTCDate()),b(w.getUTCHours()),b(w.getUTCMinutes()),b(w.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+p+" time is not supported yet"),this._encodeStr(g,"octstr")},y.prototype._encodeNull=function(){return this._createEncoderBuffer("")},y.prototype._encodeInt=function(l,p){if(typeof l=="string"){if(!p)return this.reporter.error("String int or enum given, but no values map");if(!p.hasOwnProperty(l))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(l));l=p[l]}if(typeof l!="number"&&!x.isBuffer(l)){var g=l.toArray();!l.sign&&g[0]&128&&g.unshift(0),l=new x(g)}if(x.isBuffer(l)){var w=l.length;l.length===0&&w++;var _=new x(w);return l.copy(_),l.length===0&&(_[0]=0),this._createEncoderBuffer(_)}if(l<128)return this._createEncoderBuffer(l);if(l<256)return this._createEncoderBuffer([0,l]);for(var w=1,M=l;M>=256;M>>=8)w++;for(var _=new Array(w),M=_.length-1;M>=0;M--)_[M]=l&255,l>>=8;return _[0]&128&&_.unshift(0),this._createEncoderBuffer(new x(_))},y.prototype._encodeBool=function(l){return this._createEncoderBuffer(l?255:0)},y.prototype._use=function(l,p){return typeof l=="function"&&(l=l(p)),l._getEncoder("der").tree},y.prototype._skipDefault=function(l,p,g){var w=this._baseState,M;if(w.default===null)return!1;var _=l.join();if(w.defaultBuffer===void 0&&(w.defaultBuffer=this._encodeValue(w.default,p,g).join()),_.length!==w.defaultBuffer.length)return!1;for(M=0;M<_.length;M++)if(_[M]!==w.defaultBuffer[M])return!1;return!0};function m(c,l,p,g){var w;if(c==="seqof"?c="seq":c==="setof"&&(c="set"),q.tagByName.hasOwnProperty(c))w=q.tagByName[c];else if(typeof c=="number"&&(c|0)===c)w=c;else return g.error("Unknown tag: "+c);return w>=31?g.error("Multi-octet tag encoding unsupported"):(l||(w|=32),w|=q.tagClassByName[p||"universal"]<<6,w)}return der_1}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1;var R=requireInherits_browser(),x=requireDer();function B(v){x.call(this,v),this.enc="pem"}return R(B,x),pem=B,B.prototype.encode=function(q,n){for(var y=x.prototype.encode.call(this,q),b=y.toString("base64"),m=["-----BEGIN "+n.label+"-----"],c=0;c<b.length;c+=64)m.push(b.slice(c,c+64));return m.push("-----END "+n.label+"-----"),m.join(`
@@ -6,4 +6,4 @@ Use Chrome, Firefox or Internet Explorer 11`)}var v=requireSafeBuffer$1().Buffer
6
6
  use chrome, FireFox or Internet Explorer 11`)}var x=requireSafeBuffer$1(),B=requireBrowser$a(),v=x.Buffer,q=x.kMaxLength,n=commonjsGlobal.crypto||commonjsGlobal.msCrypto,y=Math.pow(2,32)-1;function b(g,w){if(typeof g!="number"||g!==g)throw new TypeError("offset must be a number");if(g>y||g<0)throw new TypeError("offset must be a uint32");if(g>q||g>w)throw new RangeError("offset out of range")}function m(g,w,M){if(typeof g!="number"||g!==g)throw new TypeError("size must be a number");if(g>y||g<0)throw new TypeError("size must be a uint32");if(g+w>M||g>q)throw new RangeError("buffer too small")}n&&n.getRandomValues||!process$1.browser?(browser.randomFill=c,browser.randomFillSync=p):(browser.randomFill=R,browser.randomFillSync=R);function c(g,w,M,_){if(!v.isBuffer(g)&&!(g instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof w=="function")_=w,w=0,M=g.length;else if(typeof M=="function")_=M,M=g.length-w;else if(typeof _!="function")throw new TypeError('"cb" argument must be a function');return b(w,g.length),m(M,w,g.length),l(g,w,M,_)}function l(g,w,M,_){if(process$1.browser){var k=g.buffer,E=new Uint8Array(k,w,M);if(n.getRandomValues(E),_){process$1.nextTick(function(){_(null,g)});return}return g}if(_){B(M,function(O,C){if(O)return _(O);C.copy(g,w),_(null,g)});return}var A=B(M);return A.copy(g,w),g}function p(g,w,M){if(typeof w>"u"&&(w=0),!v.isBuffer(g)&&!(g instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return b(w,g.length),M===void 0&&(M=g.length-w),m(M,w,g.length),l(g,w,M)}return browser}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=requireBrowser$a(),cryptoBrowserify.createHash=cryptoBrowserify.Hash=requireBrowser$9(),cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=requireBrowser$8();var R=requireAlgos(),x=Object.keys(R),B=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(x);cryptoBrowserify.getHashes=function(){return B};var v=requireBrowser$7();cryptoBrowserify.pbkdf2=v.pbkdf2,cryptoBrowserify.pbkdf2Sync=v.pbkdf2Sync;var q=requireBrowser$5();cryptoBrowserify.Cipher=q.Cipher,cryptoBrowserify.createCipher=q.createCipher,cryptoBrowserify.Cipheriv=q.Cipheriv,cryptoBrowserify.createCipheriv=q.createCipheriv,cryptoBrowserify.Decipher=q.Decipher,cryptoBrowserify.createDecipher=q.createDecipher,cryptoBrowserify.Decipheriv=q.Decipheriv,cryptoBrowserify.createDecipheriv=q.createDecipheriv,cryptoBrowserify.getCiphers=q.getCiphers,cryptoBrowserify.listCiphers=q.listCiphers;var n=requireBrowser$4();cryptoBrowserify.DiffieHellmanGroup=n.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=n.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=n.getDiffieHellman,cryptoBrowserify.createDiffieHellman=n.createDiffieHellman,cryptoBrowserify.DiffieHellman=n.DiffieHellman;var y=requireBrowser$3();cryptoBrowserify.createSign=y.createSign,cryptoBrowserify.Sign=y.Sign,cryptoBrowserify.createVerify=y.createVerify,cryptoBrowserify.Verify=y.Verify,cryptoBrowserify.createECDH=requireBrowser$2();var b=requireBrowser$1();cryptoBrowserify.publicEncrypt=b.publicEncrypt,cryptoBrowserify.privateEncrypt=b.privateEncrypt,cryptoBrowserify.publicDecrypt=b.publicDecrypt,cryptoBrowserify.privateDecrypt=b.privateDecrypt;var m=requireBrowser();return cryptoBrowserify.randomFill=m.randomFill,cryptoBrowserify.randomFillSync=m.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
7
7
  we accept pull requests
8
8
  https://github.com/browserify/crypto-browserify`)},cryptoBrowserify.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},cryptoBrowserify}export{requireCryptoBrowserify as r};
9
- //# sourceMappingURL=index-Bl045Uro.js.map
9
+ //# sourceMappingURL=index-n4qOUE64.js.map