@prosopo/procaptcha-bundle 2.5.1 → 2.5.5

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 (270) hide show
  1. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts +4 -4
  2. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts.map +1 -1
  3. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.js +4 -4
  4. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.js.map +1 -1
  5. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts +3 -1
  6. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +1 -1
  7. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js +86 -18
  8. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +1 -1
  9. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js +1 -1
  10. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js.map +1 -1
  11. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +28 -33
  12. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +1 -1
  13. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +8 -0
  14. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -0
  15. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js +11 -0
  16. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js.map +1 -0
  17. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +6 -0
  18. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +1 -0
  19. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha/componentsList.js → captcha/captchaComponentsList.js} +3 -3
  20. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js.map +1 -0
  21. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha/captcha.d.ts → captcha/captchaProps.d.ts} +3 -1
  22. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts.map +1 -0
  23. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js +2 -0
  24. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js.map +1 -0
  25. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +24 -0
  26. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -0
  27. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +48 -0
  28. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +1 -0
  29. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts.map +1 -0
  30. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js.map +1 -0
  31. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha → captcha}/components/frictionlessCaptcha.d.ts +1 -1
  32. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -0
  33. package/{dist/util/renderLogic → .rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util}/captcha/components/frictionlessCaptcha.js +2 -2
  34. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +1 -0
  35. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha → captcha}/components/imageCaptcha.d.ts +1 -1
  36. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +1 -0
  37. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha → captcha}/components/imageCaptcha.js +2 -2
  38. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js.map +1 -0
  39. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha → captcha}/components/powCaptcha.d.ts +1 -1
  40. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +1 -0
  41. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{renderLogic/captcha → captcha}/components/powCaptcha.js +2 -2
  42. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js.map +1 -0
  43. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts +0 -2
  44. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts.map +1 -1
  45. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +0 -19
  46. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +1 -1
  47. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +5 -0
  48. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts.map +1 -0
  49. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js +24 -0
  50. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js.map +1 -0
  51. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +18 -0
  52. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts.map +1 -0
  53. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +62 -0
  54. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +1 -0
  55. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts +9 -0
  56. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts.map +1 -0
  57. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js +19 -0
  58. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js.map +1 -0
  59. package/dist/bundle/ProcaptchaWidget-CCSN3Dxj.js +636 -0
  60. package/dist/bundle/ProcaptchaWidget-Dfex8hc8.js +156 -0
  61. package/dist/bundle/_commonjsHelpers-DaMA6jEr.js +8 -0
  62. package/dist/bundle/{asU8a-Br9wz334.js → asU8a-CAsEnbuP.js} +1 -1
  63. package/dist/bundle/{bip39-BtaWByKg.js → bip39-DCaMcFzo.js} +2 -2
  64. package/dist/bundle/{browser-ponyfill-Ck_bwPOY.js → browser-ponyfill-Dy1JBTMg.js} +20 -20
  65. package/dist/bundle/captchaComponentProvider-Dm44AMrY.js +1018 -0
  66. package/dist/bundle/captchaRenderer-BBodRhQu.js +70 -0
  67. package/dist/bundle/components.d.ts +4 -4
  68. package/dist/bundle/components.d.ts.map +1 -1
  69. package/dist/bundle/emotion-element-5486c51c.browser.esm-CQHFV-dS.js +1803 -0
  70. package/dist/bundle/{fp.esm-C0kLYOiJ.js → fp.esm-DYWeNGcH.js} +17 -0
  71. package/dist/bundle/{hash-KElfghPn.js → hash-D-64Vz5z.js} +1 -1
  72. package/dist/bundle/i18nFrontend-C_RgmvGh.js +2273 -0
  73. package/dist/bundle/index-9I1Aae33.js +5416 -0
  74. package/dist/bundle/index-DCHEbWAs.js +1242 -0
  75. package/dist/bundle/{index-B0trzdT2.js → index-DkQ4njKa.js} +17 -16
  76. package/dist/bundle/index-DxswvPTy.js +606 -0
  77. package/dist/bundle/{index-Cb-XcaMX.js → index-nNwZuute.js} +256 -255
  78. package/dist/bundle/index.d.ts +3 -1
  79. package/dist/bundle/index.d.ts.map +1 -1
  80. package/dist/bundle/locales/de/translation.json +55 -404
  81. package/dist/bundle/locales/en/translation.json +55 -404
  82. package/dist/bundle/locales/es/translation.json +55 -404
  83. package/dist/bundle/locales/fr/translation.json +55 -404
  84. package/dist/bundle/locales/it/translation.json +55 -404
  85. package/dist/bundle/locales/pt/translation.json +55 -404
  86. package/dist/bundle/locales/pt-BR/translation.json +55 -404
  87. package/dist/bundle/procaptcha.bundle.js +4 -3
  88. package/dist/bundle/translations-B0P9axY3.js +2885 -0
  89. package/dist/bundle/useTranslation-CEt2t9kE.js +158 -0
  90. package/dist/bundle/util/captcha/captchaComponentProvider.d.ts +8 -0
  91. package/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +1 -0
  92. package/dist/bundle/util/captcha/captchaComponentsList.d.ts +6 -0
  93. package/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +1 -0
  94. package/dist/{util/renderLogic/captcha/captcha.d.ts → bundle/util/captcha/captchaProps.d.ts} +3 -1
  95. package/dist/bundle/util/captcha/captchaProps.d.ts.map +1 -0
  96. package/dist/bundle/util/captcha/captchaRenderer.d.ts +24 -0
  97. package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +1 -0
  98. package/dist/bundle/util/captcha/captchaType.d.ts.map +1 -0
  99. package/dist/bundle/util/{renderLogic/captcha → captcha}/components/frictionlessCaptcha.d.ts +1 -1
  100. package/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -0
  101. package/dist/bundle/util/{renderLogic/captcha → captcha}/components/imageCaptcha.d.ts +1 -1
  102. package/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +1 -0
  103. package/dist/bundle/util/{renderLogic/captcha → captcha}/components/powCaptcha.d.ts +1 -1
  104. package/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +1 -0
  105. package/dist/bundle/util/config.d.ts +0 -2
  106. package/dist/bundle/util/config.d.ts.map +1 -1
  107. package/dist/bundle/util/configCreator.d.ts +5 -0
  108. package/dist/bundle/util/configCreator.d.ts.map +1 -0
  109. package/dist/bundle/util/widgetFactory.d.ts +18 -0
  110. package/dist/bundle/util/widgetFactory.d.ts.map +1 -0
  111. package/dist/bundle/util/widgetThemeResolver.d.ts +9 -0
  112. package/dist/bundle/util/widgetThemeResolver.d.ts.map +1 -0
  113. package/dist/components.d.ts +4 -4
  114. package/dist/components.d.ts.map +1 -1
  115. package/dist/components.js +4 -4
  116. package/dist/components.js.map +1 -1
  117. package/dist/index.d.ts +3 -1
  118. package/dist/index.d.ts.map +1 -1
  119. package/dist/index.js +86 -18
  120. package/dist/index.js.map +1 -1
  121. package/dist/tests/util/captchaType.test.js +1 -1
  122. package/dist/tests/util/captchaType.test.js.map +1 -1
  123. package/dist/tests/util/renderLogic.test.js +28 -33
  124. package/dist/tests/util/renderLogic.test.js.map +1 -1
  125. package/dist/util/captcha/captchaComponentProvider.d.ts +8 -0
  126. package/dist/util/captcha/captchaComponentProvider.d.ts.map +1 -0
  127. package/dist/util/captcha/captchaComponentProvider.js +11 -0
  128. package/dist/util/captcha/captchaComponentProvider.js.map +1 -0
  129. package/dist/util/captcha/captchaComponentsList.d.ts +6 -0
  130. package/dist/util/captcha/captchaComponentsList.d.ts.map +1 -0
  131. package/dist/util/{renderLogic/captcha/componentsList.js → captcha/captchaComponentsList.js} +3 -3
  132. package/dist/util/captcha/captchaComponentsList.js.map +1 -0
  133. package/dist/{bundle/util/renderLogic/captcha/captcha.d.ts → util/captcha/captchaProps.d.ts} +3 -1
  134. package/dist/util/captcha/captchaProps.d.ts.map +1 -0
  135. package/dist/util/captcha/captchaProps.js +2 -0
  136. package/dist/util/captcha/captchaProps.js.map +1 -0
  137. package/dist/util/captcha/captchaRenderer.d.ts +24 -0
  138. package/dist/util/captcha/captchaRenderer.d.ts.map +1 -0
  139. package/dist/util/captcha/captchaRenderer.js +48 -0
  140. package/dist/util/captcha/captchaRenderer.js.map +1 -0
  141. package/dist/util/captcha/captchaType.d.ts.map +1 -0
  142. package/dist/util/captcha/captchaType.js.map +1 -0
  143. package/dist/util/{renderLogic/captcha → captcha}/components/frictionlessCaptcha.d.ts +1 -1
  144. package/dist/util/captcha/components/frictionlessCaptcha.d.ts.map +1 -0
  145. package/{.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic → dist/util}/captcha/components/frictionlessCaptcha.js +2 -2
  146. package/dist/util/captcha/components/frictionlessCaptcha.js.map +1 -0
  147. package/dist/util/{renderLogic/captcha → captcha}/components/imageCaptcha.d.ts +1 -1
  148. package/dist/util/captcha/components/imageCaptcha.d.ts.map +1 -0
  149. package/dist/util/{renderLogic/captcha → captcha}/components/imageCaptcha.js +2 -2
  150. package/dist/util/captcha/components/imageCaptcha.js.map +1 -0
  151. package/dist/util/{renderLogic/captcha → captcha}/components/powCaptcha.d.ts +1 -1
  152. package/dist/util/captcha/components/powCaptcha.d.ts.map +1 -0
  153. package/dist/util/{renderLogic/captcha → captcha}/components/powCaptcha.js +2 -2
  154. package/dist/util/captcha/components/powCaptcha.js.map +1 -0
  155. package/dist/util/config.d.ts +0 -2
  156. package/dist/util/config.d.ts.map +1 -1
  157. package/dist/util/config.js +0 -19
  158. package/dist/util/config.js.map +1 -1
  159. package/dist/util/configCreator.d.ts +5 -0
  160. package/dist/util/configCreator.d.ts.map +1 -0
  161. package/dist/util/configCreator.js +24 -0
  162. package/dist/util/configCreator.js.map +1 -0
  163. package/dist/util/widgetFactory.d.ts +18 -0
  164. package/dist/util/widgetFactory.d.ts.map +1 -0
  165. package/dist/util/widgetFactory.js +62 -0
  166. package/dist/util/widgetFactory.js.map +1 -0
  167. package/dist/util/widgetThemeResolver.d.ts +9 -0
  168. package/dist/util/widgetThemeResolver.d.ts.map +1 -0
  169. package/dist/util/widgetThemeResolver.js +19 -0
  170. package/dist/util/widgetThemeResolver.js.map +1 -0
  171. package/package.json +20 -13
  172. package/stats.html +1 -1
  173. package/vite.cjs.config.ts +1 -1
  174. package/vite.config.ts +19 -4
  175. package/vite.serve.config.ts +24 -0
  176. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captchaType.d.ts.map +0 -1
  177. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captchaType.js.map +0 -1
  178. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captcha.d.ts.map +0 -1
  179. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captcha.js +0 -2
  180. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captcha.js.map +0 -1
  181. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captchaRenderer.d.ts +0 -8
  182. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captchaRenderer.d.ts.map +0 -1
  183. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captchaRenderer.js +0 -11
  184. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captchaRenderer.js.map +0 -1
  185. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
  186. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/frictionlessCaptcha.js.map +0 -1
  187. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/imageCaptcha.d.ts.map +0 -1
  188. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/imageCaptcha.js.map +0 -1
  189. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/powCaptcha.d.ts.map +0 -1
  190. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/powCaptcha.js.map +0 -1
  191. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/componentsList.d.ts +0 -6
  192. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/componentsList.d.ts.map +0 -1
  193. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/componentsList.js.map +0 -1
  194. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/webComponent.d.ts +0 -8
  195. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/webComponent.d.ts.map +0 -1
  196. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/webComponent.js +0 -29
  197. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/webComponent.js.map +0 -1
  198. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/widgetRenderer.d.ts +0 -23
  199. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/widgetRenderer.d.ts.map +0 -1
  200. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/widgetRenderer.js +0 -52
  201. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/widgetRenderer.js.map +0 -1
  202. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic.d.ts +0 -3
  203. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic.d.ts.map +0 -1
  204. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic.js +0 -14
  205. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic.js.map +0 -1
  206. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/theme.d.ts +0 -3
  207. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/theme.d.ts.map +0 -1
  208. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/theme.js +0 -9
  209. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/theme.js.map +0 -1
  210. package/dist/bundle/ProcaptchaWidget-CAyH6qD7.js +0 -161
  211. package/dist/bundle/ProcaptchaWidget-CY3qomFu.js +0 -619
  212. package/dist/bundle/index-VYSrdSle.js +0 -11587
  213. package/dist/bundle/index-n-2hvBzo.js +0 -1190
  214. package/dist/bundle/useTranslation-CcYxvTxi.js +0 -2435
  215. package/dist/bundle/util/captchaType.d.ts.map +0 -1
  216. package/dist/bundle/util/renderLogic/captcha/captcha.d.ts.map +0 -1
  217. package/dist/bundle/util/renderLogic/captcha/captchaRenderer.d.ts +0 -8
  218. package/dist/bundle/util/renderLogic/captcha/captchaRenderer.d.ts.map +0 -1
  219. package/dist/bundle/util/renderLogic/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
  220. package/dist/bundle/util/renderLogic/captcha/components/imageCaptcha.d.ts.map +0 -1
  221. package/dist/bundle/util/renderLogic/captcha/components/powCaptcha.d.ts.map +0 -1
  222. package/dist/bundle/util/renderLogic/captcha/componentsList.d.ts +0 -6
  223. package/dist/bundle/util/renderLogic/captcha/componentsList.d.ts.map +0 -1
  224. package/dist/bundle/util/renderLogic/webComponent.d.ts +0 -8
  225. package/dist/bundle/util/renderLogic/webComponent.d.ts.map +0 -1
  226. package/dist/bundle/util/renderLogic/widgetRenderer.d.ts +0 -23
  227. package/dist/bundle/util/renderLogic/widgetRenderer.d.ts.map +0 -1
  228. package/dist/bundle/util/renderLogic.d.ts +0 -3
  229. package/dist/bundle/util/renderLogic.d.ts.map +0 -1
  230. package/dist/bundle/util/theme.d.ts +0 -3
  231. package/dist/bundle/util/theme.d.ts.map +0 -1
  232. package/dist/util/captchaType.d.ts.map +0 -1
  233. package/dist/util/captchaType.js.map +0 -1
  234. package/dist/util/renderLogic/captcha/captcha.d.ts.map +0 -1
  235. package/dist/util/renderLogic/captcha/captcha.js +0 -2
  236. package/dist/util/renderLogic/captcha/captcha.js.map +0 -1
  237. package/dist/util/renderLogic/captcha/captchaRenderer.d.ts +0 -8
  238. package/dist/util/renderLogic/captcha/captchaRenderer.d.ts.map +0 -1
  239. package/dist/util/renderLogic/captcha/captchaRenderer.js +0 -11
  240. package/dist/util/renderLogic/captcha/captchaRenderer.js.map +0 -1
  241. package/dist/util/renderLogic/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
  242. package/dist/util/renderLogic/captcha/components/frictionlessCaptcha.js.map +0 -1
  243. package/dist/util/renderLogic/captcha/components/imageCaptcha.d.ts.map +0 -1
  244. package/dist/util/renderLogic/captcha/components/imageCaptcha.js.map +0 -1
  245. package/dist/util/renderLogic/captcha/components/powCaptcha.d.ts.map +0 -1
  246. package/dist/util/renderLogic/captcha/components/powCaptcha.js.map +0 -1
  247. package/dist/util/renderLogic/captcha/componentsList.d.ts +0 -6
  248. package/dist/util/renderLogic/captcha/componentsList.d.ts.map +0 -1
  249. package/dist/util/renderLogic/captcha/componentsList.js.map +0 -1
  250. package/dist/util/renderLogic/webComponent.d.ts +0 -8
  251. package/dist/util/renderLogic/webComponent.d.ts.map +0 -1
  252. package/dist/util/renderLogic/webComponent.js +0 -29
  253. package/dist/util/renderLogic/webComponent.js.map +0 -1
  254. package/dist/util/renderLogic/widgetRenderer.d.ts +0 -23
  255. package/dist/util/renderLogic/widgetRenderer.d.ts.map +0 -1
  256. package/dist/util/renderLogic/widgetRenderer.js +0 -52
  257. package/dist/util/renderLogic/widgetRenderer.js.map +0 -1
  258. package/dist/util/renderLogic.d.ts +0 -3
  259. package/dist/util/renderLogic.d.ts.map +0 -1
  260. package/dist/util/renderLogic.js +0 -14
  261. package/dist/util/renderLogic.js.map +0 -1
  262. package/dist/util/theme.d.ts +0 -3
  263. package/dist/util/theme.d.ts.map +0 -1
  264. package/dist/util/theme.js +0 -9
  265. package/dist/util/theme.js.map +0 -1
  266. /package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{captchaType.d.ts → captcha/captchaType.d.ts} +0 -0
  267. /package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/{captchaType.js → captcha/captchaType.js} +0 -0
  268. /package/dist/bundle/util/{captchaType.d.ts → captcha/captchaType.d.ts} +0 -0
  269. /package/dist/util/{captchaType.d.ts → captcha/captchaType.d.ts} +0 -0
  270. /package/dist/util/{captchaType.js → captcha/captchaType.js} +0 -0
@@ -1,19 +1,20 @@
1
1
  var go = Object.defineProperty;
2
2
  var mo = (t, e, r) => e in t ? go(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var Kt = (t, e, r) => mo(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { x as hi, s as ee, r as ci, d as po, f as b0, g as yo, h as vo, H as bo, n as Ft, u as Ve, i as Xe, b as je, e as kn, t as xo, j as Eo, o as Mo, k as _o, l as G } from "./toU8a-BWKf-2UU.js";
5
- import { b as Yr, B as W, c as Se, d as te, u as V, R as Bo, e as So, f as he, g as oe, j as Ht, i as Vt, s as Ao, k as Io, l as ko, m as Uo, n as No, o as Ro, p as Oo, q as Lo, r as To, v as $o, t as qo, x as Po, y as Co, z as Zo, A as Do, C as Ho, D as Vo, E as zo, F as Yo, G as Xo, H as jo, I as Ko, J as Go, K as Wo, L as Jo, M as Qo, N as Fo, O as ts, P as es, Q as rs } from "./hash-KElfghPn.js";
6
- import { F as ns, G as is, z as Ae } from "./index-VYSrdSle.js";
3
+ var jt = (t, e, r) => mo(t, typeof e != "symbol" ? e + "" : e, r);
4
+ import { x as ci, s as ee, r as li, d as po, f as b0, g as yo, h as vo, H as bo, n as Ft, u as Ve, i as Xe, b as Ke, e as Un, t as xo, j as Eo, o as Mo, k as _o, l as G } from "./toU8a-BWKf-2UU.js";
5
+ import { b as Yr, B as W, c as Se, d as te, u as V, R as Bo, e as So, f as he, g as oe, j as Ht, i as Vt, s as Ao, k as Io, l as ko, m as Uo, n as No, o as Ro, p as Oo, q as Lo, r as To, v as $o, t as qo, x as Po, y as Co, z as Zo, A as Do, C as Ho, D as Vo, E as zo, F as Yo, G as Xo, H as Ko, I as jo, J as Go, K as Wo, L as Jo, M as Qo, N as Fo, O as ts, P as es, Q as rs } from "./hash-D-64Vz5z.js";
6
+ import { g as ns } from "./_commonjsHelpers-DaMA6jEr.js";
7
7
  import { s as rr } from "./sha256-Cxc9Hrlx.js";
8
- import { h as li, s as ui, m as os, v as ss, a as Un, p as fs, b as di } from "./bip39-BtaWByKg.js";
9
- import { a as wi } from "./asU8a-Br9wz334.js";
8
+ import { h as ui, s as di, m as is, v as os, a as Nn, p as ss, b as wi } from "./bip39-DCaMcFzo.js";
9
+ import { a as gi } from "./asU8a-CAsEnbuP.js";
10
10
  import { o as on } from "./spread-DEmVz7RJ.js";
11
- const as = { name: "@polkadot/util", path: import.meta && import.meta.url ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }, hs = "POLKADOTJS_DISABLE_ESM_CJS_WARNING";
12
- function cs(t) {
13
- const e = hi;
11
+ import { m as Ae } from "./emotion-element-5486c51c.browser.esm-CQHFV-dS.js";
12
+ const fs = { name: "@polkadot/util", path: import.meta && import.meta.url ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }, as = "POLKADOTJS_DISABLE_ESM_CJS_WARNING";
13
+ function hs(t) {
14
+ const e = ci;
14
15
  return e.__polkadotjs || (e.__polkadotjs = {}), e.__polkadotjs[t] || (e.__polkadotjs[t] = []), e.__polkadotjs[t];
15
16
  }
16
- function ls(t, e) {
17
+ function cs(t, e) {
17
18
  if (t)
18
19
  return t;
19
20
  if (Yr(e))
@@ -24,18 +25,18 @@ function ls(t, e) {
24
25
  }
25
26
  return e || "";
26
27
  }
27
- function us({ name: t, path: e, type: r, version: o }, c, i = []) {
28
+ function ls({ name: t, path: e, type: r, version: o }, c, i = []) {
28
29
  var E, M;
29
30
  if (!t.startsWith("@polkadot"))
30
31
  throw new Error(`Invalid package descriptor ${t}`);
31
- const w = cs(t);
32
- w.push({ path: ls(e, c), type: r, version: o });
33
- const d = w.every((U) => U.version === o), y = ((M = (E = hi.process) == null ? void 0 : E.env) == null ? void 0 : M[hs]) === "1";
32
+ const w = hs(t);
33
+ w.push({ path: cs(e, c), type: r, version: o });
34
+ const d = w.every((U) => U.version === o), y = ((M = (E = ci.process) == null ? void 0 : E.env) == null ? void 0 : M[as]) === "1";
34
35
  w.length !== 1 && !(y && d) || i.filter((U) => U && U.version !== o);
35
36
  }
36
- const Ke = /* @__PURE__ */ W(0), Ge = /* @__PURE__ */ W(1);
37
+ const je = /* @__PURE__ */ W(0), Ge = /* @__PURE__ */ W(1);
37
38
  Number.MAX_SAFE_INTEGER;
38
- const Nn = W(256), Rn = W(256 * 256), ds = W("0x10000000000000000");
39
+ const Rn = W(256), On = W(256 * 256), us = W("0x10000000000000000");
39
40
  function Xr(t, { isLe: e = !0, isNegative: r = !1 } = {}) {
40
41
  e || (t = t.slice().reverse());
41
42
  const o = t.length;
@@ -56,8 +57,8 @@ function Xr(t, { isLe: e = !0, isNegative: r = !1 } = {}) {
56
57
  let w = W(0);
57
58
  const d = o % 2;
58
59
  for (let y = o - 2; y >= d; y -= 2)
59
- w = w * Rn + W(i.getUint16(y, !0) ^ 65535);
60
- return d && (w = w * Nn + W(t[0] ^ 255)), w * -Ge - Ge;
60
+ w = w * On + W(i.getUint16(y, !0) ^ 65535);
61
+ return d && (w = w * Rn + W(t[0] ^ 255)), w * -Ge - Ge;
61
62
  }
62
63
  switch (o) {
63
64
  case 0:
@@ -74,20 +75,20 @@ function Xr(t, { isLe: e = !0, isNegative: r = !1 } = {}) {
74
75
  case 8:
75
76
  return c.getBigUint64(0, !0);
76
77
  case 16:
77
- return c.getBigUint64(8, !0) * ds + c.getBigUint64(0, !0);
78
+ return c.getBigUint64(8, !0) * us + c.getBigUint64(0, !0);
78
79
  default: {
79
80
  let i = W(0);
80
81
  const w = o % 2;
81
82
  for (let d = o - 2; d >= w; d -= 2)
82
- i = i * Rn + W(c.getUint16(d, !0));
83
- return w && (i = i * Nn + W(t[0])), i;
83
+ i = i * On + W(c.getUint16(d, !0));
84
+ return w && (i = i * Rn + W(t[0])), i;
84
85
  }
85
86
  }
86
87
  }
87
- function ws(t, { isLe: e = !1, isNegative: r = !1 } = {}) {
88
+ function ds(t, { isLe: e = !1, isNegative: r = !1 } = {}) {
88
89
  return !t || t === "0x" ? W(0) : Xr(Se(t), { isLe: e, isNegative: r });
89
90
  }
90
- var gi = { exports: {} };
91
+ var sn = { exports: {} }, ws = sn.exports;
91
92
  (function(t) {
92
93
  (function(e, r) {
93
94
  function o(p, n) {
@@ -406,7 +407,7 @@ var gi = { exports: {} };
406
407
  }, i.prototype._zeroBits = function(n) {
407
408
  if (n === 0) return 26;
408
409
  var f = n, a = 0;
409
- return f & 8191 || (a += 13, f >>>= 13), f & 127 || (a += 7, f >>>= 7), f & 15 || (a += 4, f >>>= 4), f & 3 || (a += 2, f >>>= 2), f & 1 || a++, a;
410
+ return (f & 8191) === 0 && (a += 13, f >>>= 13), (f & 127) === 0 && (a += 7, f >>>= 7), (f & 15) === 0 && (a += 4, f >>>= 4), (f & 3) === 0 && (a += 2, f >>>= 2), (f & 1) === 0 && a++, a;
410
411
  }, i.prototype.bitLength = function() {
411
412
  var n = this.words[this.length - 1], f = this._countBits(n);
412
413
  return (this.length - 1) * 26 + f;
@@ -541,15 +542,15 @@ var gi = { exports: {} };
541
542
  f.words[0] = b;
542
543
  for (var s = 1; s < a; s++) {
543
544
  for (var g = u >>> 26, B = u & 67108863, I = Math.min(s, n.length - 1), N = Math.max(0, s - p.length + 1); N <= I; N++) {
544
- var j = s - N | 0;
545
- h = p.words[j] | 0, l = n.words[N] | 0, m = h * l + B, g += m / 67108864 | 0, B = m & 67108863;
545
+ var K = s - N | 0;
546
+ h = p.words[K] | 0, l = n.words[N] | 0, m = h * l + B, g += m / 67108864 | 0, B = m & 67108863;
546
547
  }
547
548
  f.words[s] = B | 0, u = g | 0;
548
549
  }
549
550
  return u !== 0 ? f.words[s] = u | 0 : f.length--, f._strip();
550
551
  }
551
552
  var L = function(n, f, a) {
552
- var h = n.words, l = f.words, m = a.words, b = 0, u, s, g, B = h[0] | 0, I = B & 8191, N = B >>> 13, j = h[1] | 0, H = j & 8191, z = j >>> 13, $t = h[2] | 0, X = $t & 8191, Y = $t >>> 13, Zt = h[3] | 0, Q = Zt & 8191, F = Zt >>> 13, $e = h[4] | 0, at = $e & 8191, ht = $e >>> 13, qe = h[5] | 0, et = qe & 8191, rt = qe >>> 13, ce = h[6] | 0, nt = ce & 8191, it = ce >>> 13, Ee = h[7] | 0, ot = Ee & 8191, st = Ee >>> 13, Pe = h[8] | 0, ct = Pe & 8191, lt = Pe >>> 13, Ce = h[9] | 0, dt = Ce & 8191, wt = Ce >>> 13, vn = l[0] | 0, gt = vn & 8191, mt = vn >>> 13, bn = l[1] | 0, pt = bn & 8191, yt = bn >>> 13, xn = l[2] | 0, vt = xn & 8191, bt = xn >>> 13, En = l[3] | 0, xt = En & 8191, Et = En >>> 13, Mn = l[4] | 0, Mt = Mn & 8191, _t = Mn >>> 13, _n = l[5] | 0, Bt = _n & 8191, St = _n >>> 13, Bn = l[6] | 0, At = Bn & 8191, It = Bn >>> 13, Sn = l[7] | 0, kt = Sn & 8191, Ut = Sn >>> 13, An = l[8] | 0, Nt = An & 8191, Rt = An >>> 13, In = l[9] | 0, Ot = In & 8191, Lt = In >>> 13;
553
+ var h = n.words, l = f.words, m = a.words, b = 0, u, s, g, B = h[0] | 0, I = B & 8191, N = B >>> 13, K = h[1] | 0, H = K & 8191, z = K >>> 13, $t = h[2] | 0, X = $t & 8191, Y = $t >>> 13, Zt = h[3] | 0, Q = Zt & 8191, F = Zt >>> 13, $e = h[4] | 0, at = $e & 8191, ht = $e >>> 13, qe = h[5] | 0, et = qe & 8191, rt = qe >>> 13, ce = h[6] | 0, nt = ce & 8191, it = ce >>> 13, Ee = h[7] | 0, ot = Ee & 8191, st = Ee >>> 13, Pe = h[8] | 0, ct = Pe & 8191, lt = Pe >>> 13, Ce = h[9] | 0, dt = Ce & 8191, wt = Ce >>> 13, bn = l[0] | 0, gt = bn & 8191, mt = bn >>> 13, xn = l[1] | 0, pt = xn & 8191, yt = xn >>> 13, En = l[2] | 0, vt = En & 8191, bt = En >>> 13, Mn = l[3] | 0, xt = Mn & 8191, Et = Mn >>> 13, _n = l[4] | 0, Mt = _n & 8191, _t = _n >>> 13, Bn = l[5] | 0, Bt = Bn & 8191, St = Bn >>> 13, Sn = l[6] | 0, At = Sn & 8191, It = Sn >>> 13, An = l[7] | 0, kt = An & 8191, Ut = An >>> 13, In = l[8] | 0, Nt = In & 8191, Rt = In >>> 13, kn = l[9] | 0, Ot = kn & 8191, Lt = kn >>> 13;
553
554
  a.negative = n.negative ^ f.negative, a.length = 19, u = Math.imul(I, gt), s = Math.imul(I, mt), s = s + Math.imul(N, gt) | 0, g = Math.imul(N, mt);
554
555
  var cr = (b + u | 0) + ((s & 8191) << 13) | 0;
555
556
  b = (g + (s >>> 13) | 0) + (cr >>> 26) | 0, cr &= 67108863, u = Math.imul(H, gt), s = Math.imul(H, mt), s = s + Math.imul(z, gt) | 0, g = Math.imul(z, mt), u = u + Math.imul(I, pt) | 0, s = s + Math.imul(I, yt) | 0, s = s + Math.imul(N, pt) | 0, g = g + Math.imul(N, yt) | 0;
@@ -597,8 +598,8 @@ var gi = { exports: {} };
597
598
  var m = h;
598
599
  h = 0;
599
600
  for (var b = a & 67108863, u = Math.min(l, n.length - 1), s = Math.max(0, l - p.length + 1); s <= u; s++) {
600
- var g = l - s, B = p.words[g] | 0, I = n.words[s] | 0, N = B * I, j = N & 67108863;
601
- m = m + (N / 67108864 | 0) | 0, j = j + b | 0, b = j & 67108863, m = m + (j >>> 26) | 0, h += m >>> 26, m &= 67108863;
601
+ var g = l - s, B = p.words[g] | 0, I = n.words[s] | 0, N = B * I, K = N & 67108863;
602
+ m = m + (N / 67108864 | 0) | 0, K = K + b | 0, b = K & 67108863, m = m + (K >>> 26) | 0, h += m >>> 26, m &= 67108863;
602
603
  }
603
604
  f.words[l] = b, a = m, m = h;
604
605
  }
@@ -785,7 +786,7 @@ var gi = { exports: {} };
785
786
  }) : this.negative === 0 && n.negative !== 0 ? (m = this.divmod(n.neg(), f), f !== "mod" && (h = m.div.neg()), {
786
787
  div: h,
787
788
  mod: m.mod
788
- }) : this.negative & n.negative ? (m = this.neg().divmod(n.neg(), f), f !== "div" && (l = m.mod.neg(), a && l.negative !== 0 && l.isub(n)), {
789
+ }) : (this.negative & n.negative) !== 0 ? (m = this.neg().divmod(n.neg(), f), f !== "div" && (l = m.mod.neg(), a && l.negative !== 0 && l.isub(n)), {
789
790
  div: m.div,
790
791
  mod: l
791
792
  }) : n.length > this.length || this.cmp(n) < 0 ? {
@@ -837,11 +838,11 @@ var gi = { exports: {} };
837
838
  for (var h = new i(1), l = new i(0), m = new i(0), b = new i(1), u = 0; f.isEven() && a.isEven(); )
838
839
  f.iushrn(1), a.iushrn(1), ++u;
839
840
  for (var s = a.clone(), g = f.clone(); !f.isZero(); ) {
840
- for (var B = 0, I = 1; !(f.words[0] & I) && B < 26; ++B, I <<= 1) ;
841
+ for (var B = 0, I = 1; (f.words[0] & I) === 0 && B < 26; ++B, I <<= 1) ;
841
842
  if (B > 0)
842
843
  for (f.iushrn(B); B-- > 0; )
843
844
  (h.isOdd() || l.isOdd()) && (h.iadd(s), l.isub(g)), h.iushrn(1), l.iushrn(1);
844
- for (var N = 0, j = 1; !(a.words[0] & j) && N < 26; ++N, j <<= 1) ;
845
+ for (var N = 0, K = 1; (a.words[0] & K) === 0 && N < 26; ++N, K <<= 1) ;
845
846
  if (N > 0)
846
847
  for (a.iushrn(N); N-- > 0; )
847
848
  (m.isOdd() || b.isOdd()) && (m.iadd(s), b.isub(g)), m.iushrn(1), b.iushrn(1);
@@ -857,11 +858,11 @@ var gi = { exports: {} };
857
858
  var f = this, a = n.clone();
858
859
  f.negative !== 0 ? f = f.umod(n) : f = f.clone();
859
860
  for (var h = new i(1), l = new i(0), m = a.clone(); f.cmpn(1) > 0 && a.cmpn(1) > 0; ) {
860
- for (var b = 0, u = 1; !(f.words[0] & u) && b < 26; ++b, u <<= 1) ;
861
+ for (var b = 0, u = 1; (f.words[0] & u) === 0 && b < 26; ++b, u <<= 1) ;
861
862
  if (b > 0)
862
863
  for (f.iushrn(b); b-- > 0; )
863
864
  h.isOdd() && h.iadd(m), h.iushrn(1);
864
- for (var s = 0, g = 1; !(a.words[0] & g) && s < 26; ++s, g <<= 1) ;
865
+ for (var s = 0, g = 1; (a.words[0] & g) === 0 && s < 26; ++s, g <<= 1) ;
865
866
  if (s > 0)
866
867
  for (a.iushrn(s); s-- > 0; )
867
868
  l.isOdd() && l.iadd(m), l.iushrn(1);
@@ -1151,8 +1152,8 @@ var gi = { exports: {} };
1151
1152
  for (s = new i(2 * s * s).toRed(this); this.pow(s, u).cmp(b) !== 0; )
1152
1153
  s.redIAdd(b);
1153
1154
  for (var g = this.pow(s, h), B = this.pow(n, h.addn(1).iushrn(1)), I = this.pow(n, h), N = l; I.cmp(m) !== 0; ) {
1154
- for (var j = I, H = 0; j.cmp(m) !== 0; H++)
1155
- j = j.redSqr();
1155
+ for (var K = I, H = 0; K.cmp(m) !== 0; H++)
1156
+ K = K.redSqr();
1156
1157
  o(H < N);
1157
1158
  var z = this.pow(g, new i(1).iushln(N - H - 1));
1158
1159
  B = B.redMul(z), g = z.redSqr(), I = I.redMul(g), N = H;
@@ -1211,12 +1212,12 @@ var gi = { exports: {} };
1211
1212
  var f = this.imod(n._invmp(this.m).mul(this.r2));
1212
1213
  return f._forceRed(this);
1213
1214
  };
1214
- })(t, is);
1215
- })(gi);
1216
- var gs = gi.exports;
1217
- const K = /* @__PURE__ */ ns(gs);
1215
+ })(t, ws);
1216
+ })(sn);
1217
+ var gs = sn.exports;
1218
+ const j = /* @__PURE__ */ ns(gs);
1218
1219
  function mi(t) {
1219
- return K.isBN(t);
1220
+ return j.isBN(t);
1220
1221
  }
1221
1222
  function ms(t) {
1222
1223
  return !!t && typeof t == "object";
@@ -1226,7 +1227,7 @@ function pi(...t) {
1226
1227
  }
1227
1228
  const yi = /* @__PURE__ */ pi("toBigInt"), vi = /* @__PURE__ */ pi("toBn");
1228
1229
  function ps(t) {
1229
- return typeof t == "bigint" ? t : t ? te(t) ? ws(t.toString()) : mi(t) ? W(t.toString()) : yi(t) ? t.toBigInt() : vi(t) ? W(t.toBn().toString()) : W(t) : W(0);
1230
+ return typeof t == "bigint" ? t : t ? te(t) ? ds(t.toString()) : mi(t) ? W(t.toString()) : yi(t) ? t.toBigInt() : vi(t) ? W(t.toBn().toString()) : W(t) : W(0);
1230
1231
  }
1231
1232
  function Ct(...t) {
1232
1233
  const e = t.length, r = new Array(e);
@@ -1253,7 +1254,7 @@ function bi(t) {
1253
1254
  return !1;
1254
1255
  return !0;
1255
1256
  }
1256
- function jt(t, e) {
1257
+ function Kt(t, e) {
1257
1258
  const r = V(t), o = V(e);
1258
1259
  if (r.length === o.length) {
1259
1260
  const c = new DataView(r.buffer, r.byteOffset), i = new DataView(o.buffer, o.byteOffset), w = r.length % 4 | 0, d = r.length - w | 0;
@@ -1282,45 +1283,45 @@ function kr(t, { isLe: e = !0, isNegative: r = !1 } = {}) {
1282
1283
  if (r && o && t[o - 1] & 128)
1283
1284
  switch (o) {
1284
1285
  case 0:
1285
- return new K(0);
1286
+ return new j(0);
1286
1287
  case 1:
1287
- return new K((t[0] ^ 255) * -1 - 1);
1288
+ return new j((t[0] ^ 255) * -1 - 1);
1288
1289
  case 2:
1289
- return new K((t[0] + (t[1] << 8) ^ 65535) * -1 - 1);
1290
+ return new j((t[0] + (t[1] << 8) ^ 65535) * -1 - 1);
1290
1291
  case 3:
1291
- return new K((t[0] + (t[1] << 8) + (t[2] << 16) ^ 16777215) * -1 - 1);
1292
+ return new j((t[0] + (t[1] << 8) + (t[2] << 16) ^ 16777215) * -1 - 1);
1292
1293
  case 4:
1293
- return new K((t[0] + (t[1] << 8) + (t[2] << 16) + t[3] * 16777216 ^ 4294967295) * -1 - 1);
1294
+ return new j((t[0] + (t[1] << 8) + (t[2] << 16) + t[3] * 16777216 ^ 4294967295) * -1 - 1);
1294
1295
  case 5:
1295
- return new K(((t[0] + (t[1] << 8) + (t[2] << 16) + t[3] * 16777216 ^ 4294967295) + (t[4] ^ 255) * 4294967296) * -1 - 1);
1296
+ return new j(((t[0] + (t[1] << 8) + (t[2] << 16) + t[3] * 16777216 ^ 4294967295) + (t[4] ^ 255) * 4294967296) * -1 - 1);
1296
1297
  case 6:
1297
- return new K(((t[0] + (t[1] << 8) + (t[2] << 16) + t[3] * 16777216 ^ 4294967295) + (t[4] + (t[5] << 8) ^ 65535) * 4294967296) * -1 - 1);
1298
+ return new j(((t[0] + (t[1] << 8) + (t[2] << 16) + t[3] * 16777216 ^ 4294967295) + (t[4] + (t[5] << 8) ^ 65535) * 4294967296) * -1 - 1);
1298
1299
  default:
1299
- return new K(t, "le").fromTwos(o * 8);
1300
+ return new j(t, "le").fromTwos(o * 8);
1300
1301
  }
1301
1302
  switch (o) {
1302
1303
  case 0:
1303
- return new K(0);
1304
+ return new j(0);
1304
1305
  case 1:
1305
- return new K(t[0]);
1306
+ return new j(t[0]);
1306
1307
  case 2:
1307
- return new K(t[0] + (t[1] << 8));
1308
+ return new j(t[0] + (t[1] << 8));
1308
1309
  case 3:
1309
- return new K(t[0] + (t[1] << 8) + (t[2] << 16));
1310
+ return new j(t[0] + (t[1] << 8) + (t[2] << 16));
1310
1311
  case 4:
1311
- return new K(t[0] + (t[1] << 8) + (t[2] << 16) + t[3] * 16777216);
1312
+ return new j(t[0] + (t[1] << 8) + (t[2] << 16) + t[3] * 16777216);
1312
1313
  case 5:
1313
- return new K(t[0] + (t[1] << 8) + (t[2] << 16) + (t[3] + (t[4] << 8)) * 16777216);
1314
+ return new j(t[0] + (t[1] << 8) + (t[2] << 16) + (t[3] + (t[4] << 8)) * 16777216);
1314
1315
  case 6:
1315
- return new K(t[0] + (t[1] << 8) + (t[2] << 16) + (t[3] + (t[4] << 8) + (t[5] << 16)) * 16777216);
1316
+ return new j(t[0] + (t[1] << 8) + (t[2] << 16) + (t[3] + (t[4] << 8) + (t[5] << 16)) * 16777216);
1316
1317
  default:
1317
- return new K(t, "le");
1318
+ return new j(t, "le");
1318
1319
  }
1319
1320
  }
1320
1321
  const Ur = /* @__PURE__ */ V(`Ethereum Signed Message:
1321
1322
  `), Ie = /* @__PURE__ */ V("<Bytes>"), ke = /* @__PURE__ */ V("</Bytes>"), vs = Ie.length + ke.length;
1322
1323
  function We(t, e) {
1323
- return t.length >= vs && jt(t.subarray(0, Ie.length), Ie) && jt(t.slice(-ke.length), ke) || e && t.length >= Ur.length && jt(t.subarray(0, Ur.length), Ur);
1324
+ return t.length >= vs && Kt(t.subarray(0, Ie.length), Ie) && Kt(t.slice(-ke.length), ke) || e && t.length >= Ur.length && Kt(t.subarray(0, Ur.length), Ur);
1324
1325
  }
1325
1326
  function bs(t) {
1326
1327
  const e = V(t);
@@ -1330,18 +1331,18 @@ function xs(t) {
1330
1331
  const e = V(t);
1331
1332
  return We(e, !0) ? e : Re([Ie, e, ke]);
1332
1333
  }
1333
- const On = W(256), Es = W(255);
1334
+ const Ln = W(256), Es = W(255);
1334
1335
  function Ms(t, e, r) {
1335
- const o = [], c = r && t < Ke;
1336
- for (c && (t = (t + Ge) * -Ge); t !== Ke; ) {
1337
- const i = t % On, w = Number(c ? i ^ Es : i);
1338
- e ? o.push(w) : o.unshift(w), t = (t - i) / On;
1336
+ const o = [], c = r && t < je;
1337
+ for (c && (t = (t + Ge) * -Ge); t !== je; ) {
1338
+ const i = t % Ln, w = Number(c ? i ^ Es : i);
1339
+ e ? o.push(w) : o.unshift(w), t = (t - i) / Ln;
1339
1340
  }
1340
1341
  return Uint8Array.from(o);
1341
1342
  }
1342
1343
  function _s(t, { bitLength: e = -1, isLe: r = !0, isNegative: o = !1 } = {}) {
1343
1344
  const c = ps(t);
1344
- if (c === Ke)
1345
+ if (c === je)
1345
1346
  return e === -1 ? new Uint8Array(1) : new Uint8Array(Math.ceil((e || 0) / 8));
1346
1347
  const i = Ms(c, r, o);
1347
1348
  if (e === -1)
@@ -1360,18 +1361,18 @@ function Bs(t) {
1360
1361
  }
1361
1362
  function Ss(t, { isLe: e = !1, isNegative: r = !1 } = {}) {
1362
1363
  if (!t || t === "0x")
1363
- return new K(0);
1364
- const o = Bs(t), c = new K(o, 16, e ? "le" : "be");
1364
+ return new j(0);
1365
+ const o = Bs(t), c = new j(o, 16, e ? "le" : "be");
1365
1366
  return r ? c.fromTwos(o.length * 4) : c;
1366
1367
  }
1367
- const nr = /* @__PURE__ */ new K(1), ir = /* @__PURE__ */ new K(2), Ln = /* @__PURE__ */ new K(1e9);
1368
- Ln.mul(Ln);
1368
+ const nr = /* @__PURE__ */ new j(1), ir = /* @__PURE__ */ new j(2), Tn = /* @__PURE__ */ new j(1e9);
1369
+ Tn.mul(Tn);
1369
1370
  Number.MAX_SAFE_INTEGER;
1370
1371
  function xi(t) {
1371
1372
  return typeof t == "bigint";
1372
1373
  }
1373
1374
  function Ei(t) {
1374
- return t ? K.isBN(t) ? t : te(t) ? Ss(t.toString()) : xi(t) ? new K(t.toString()) : vi(t) ? t.toBn() : yi(t) ? new K(t.toBigInt().toString()) : new K(t) : new K(0);
1375
+ return t ? j.isBN(t) ? t : te(t) ? Ss(t.toString()) : xi(t) ? new j(t.toString()) : vi(t) ? t.toBn() : yi(t) ? new j(t.toBigInt().toString()) : new j(t) : new j(0);
1375
1376
  }
1376
1377
  const As = { bitLength: -1, isLe: !0, isNegative: !1 };
1377
1378
  function zt(t, { bitLength: e = -1, isLe: r = !0, isNegative: o = !1 } = As) {
@@ -1381,7 +1382,7 @@ function zt(t, { bitLength: e = -1, isLe: r = !0, isNegative: o = !1 } = As) {
1381
1382
  const w = new Uint8Array(i), d = o ? c.toTwos(i * 8) : c;
1382
1383
  return w.set(d.toArray(r ? "le" : "be", i), 0), w;
1383
1384
  }
1384
- const Is = ir.pow(new K(6)).isub(nr), ks = ir.pow(new K(14)).isub(nr), Us = ir.pow(new K(30)).isub(nr), Ns = { bitLength: 16 }, Rs = { bitLength: 32 };
1385
+ const Is = ir.pow(new j(6)).isub(nr), ks = ir.pow(new j(14)).isub(nr), Us = ir.pow(new j(30)).isub(nr), Ns = { bitLength: 16 }, Rs = { bitLength: 32 };
1385
1386
  function Os(t) {
1386
1387
  const e = Ei(t);
1387
1388
  if (e.lte(Is))
@@ -1402,7 +1403,7 @@ function Os(t) {
1402
1403
  r.subarray(0, o)
1403
1404
  ]);
1404
1405
  }
1405
- function sn(t) {
1406
+ function fn(t) {
1406
1407
  return Re([
1407
1408
  Os(t.length),
1408
1409
  t
@@ -1494,7 +1495,7 @@ function qs(t, e = "=") {
1494
1495
  }
1495
1496
  };
1496
1497
  }
1497
- function Tn(t, e, r) {
1498
+ function $n(t, e, r) {
1498
1499
  if (e < 2)
1499
1500
  throw new Error(`convertRadix: invalid from=${e}, base cannot be less than 2`);
1500
1501
  if (r < 2)
@@ -1535,7 +1536,7 @@ const ki = (t, e) => e === 0 ? t : ki(e, t % e), tr = /* @__NO_SIDE_EFFECTS__ */
1535
1536
  t.push(2 ** e);
1536
1537
  return t;
1537
1538
  })();
1538
- function $n(t, e, r, o) {
1539
+ function qn(t, e, r, o) {
1539
1540
  if (Qe(t), e <= 0 || e > 32)
1540
1541
  throw new Error(`convertRadix2: wrong from=${e}`);
1541
1542
  if (r <= 0 || r > 32)
@@ -1570,9 +1571,9 @@ function Ps(t) {
1570
1571
  encode: (r) => {
1571
1572
  if (!Mi(r))
1572
1573
  throw new Error("radix.encode input should be Uint8Array");
1573
- return Tn(Array.from(r), e, t);
1574
+ return $n(Array.from(r), e, t);
1574
1575
  },
1575
- decode: (r) => (Bi("radix.decode", r), Uint8Array.from(Tn(r, t, e)))
1576
+ decode: (r) => (Bi("radix.decode", r), Uint8Array.from($n(r, t, e)))
1576
1577
  };
1577
1578
  }
1578
1579
  // @__NO_SIDE_EFFECTS__
@@ -1585,9 +1586,9 @@ function Cs(t, e = !1) {
1585
1586
  encode: (r) => {
1586
1587
  if (!Mi(r))
1587
1588
  throw new Error("radix2.encode input should be Uint8Array");
1588
- return $n(Array.from(r), 8, t, !e);
1589
+ return qn(Array.from(r), 8, t, !e);
1589
1590
  },
1590
- decode: (r) => (Bi("radix2.decode", r), Uint8Array.from($n(r, t, 8, e)))
1591
+ decode: (r) => (Bi("radix2.decode", r), Uint8Array.from(qn(r, t, 8, e)))
1591
1592
  };
1592
1593
  }
1593
1594
  const Zs = /* @__PURE__ */ Si(/* @__PURE__ */ Cs(6), /* @__PURE__ */ Ai("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), /* @__PURE__ */ qs(6), /* @__PURE__ */ Ii("")), Ds = /* @__NO_SIDE_EFFECTS__ */ (t) => /* @__PURE__ */ Si(/* @__PURE__ */ Ps(58), /* @__PURE__ */ Ai(t), /* @__PURE__ */ Ii("")), Hs = /* @__PURE__ */ Ds("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");
@@ -1616,16 +1617,16 @@ function Ri({ chars: t, ipfs: e, type: r, withPadding: o }) {
1616
1617
  return !0;
1617
1618
  };
1618
1619
  }
1619
- const fn = {
1620
+ const an = {
1620
1621
  chars: "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",
1621
1622
  coder: Hs,
1622
1623
  ipfs: "z",
1623
1624
  type: "base58"
1624
- }, Vs = /* @__PURE__ */ Ri(fn), zs = /* @__PURE__ */ Ui(fn, Vs), Ys = /* @__PURE__ */ Ni(fn), Xs = ee("SS58PRE");
1625
+ }, Vs = /* @__PURE__ */ Ri(an), zs = /* @__PURE__ */ Ui(an, Vs), Ys = /* @__PURE__ */ Ni(an), Xs = ee("SS58PRE");
1625
1626
  function Oi(t) {
1626
1627
  return he(Ct(Xs, t), 512);
1627
1628
  }
1628
- function js(t) {
1629
+ function Ks(t) {
1629
1630
  const e = t[0] & 64 ? 2 : 1, r = e === 1 ? t[0] : (t[0] & 63) << 2 | t[1] >> 6 | (t[1] & 63) << 8, o = [34 + e, 35 + e].includes(t.length), c = t.length - (o ? 2 : 1), i = Oi(t.subarray(0, c));
1630
1631
  return [(t[0] & 128) === 0 && ![46, 47].includes(t[0]) && (o ? t[t.length - 2] === i[0] && t[t.length - 1] === i[1] : t[t.length - 1] === i[0]), c, e, r];
1631
1632
  }
@@ -1644,7 +1645,7 @@ function ge(t, e, r = -1) {
1644
1645
  const o = zs(t);
1645
1646
  if (!ze.allowedEncodedLengths.includes(o.length))
1646
1647
  throw new Error("Invalid decoded address length");
1647
- const [c, i, w, d] = js(o);
1648
+ const [c, i, w, d] = Ks(o);
1648
1649
  if (!c && !e)
1649
1650
  throw new Error("Invalid decoded address checksum");
1650
1651
  if (r !== -1 && r !== d)
@@ -1654,15 +1655,15 @@ function ge(t, e, r = -1) {
1654
1655
  throw new Error(`Decoding ${t}: ${o.message}`);
1655
1656
  }
1656
1657
  }
1657
- const qn = { isLe: !1 }, Rr = { isLe: !0 }, Ks = { bitLength: 32, isLe: !1 }, Or = { bitLength: 32, isLe: !0 }, pe = { bitLength: 256, isLe: !1 }, Gs = { bitLength: 256, isLe: !0 }, Ws = /^\d+$/, Js = 32;
1658
- class an {
1658
+ const Pn = { isLe: !1 }, Rr = { isLe: !0 }, js = { bitLength: 32, isLe: !1 }, Or = { bitLength: 32, isLe: !0 }, pe = { bitLength: 256, isLe: !1 }, Gs = { bitLength: 256, isLe: !0 }, Ws = /^\d+$/, Js = 32;
1659
+ class hn {
1659
1660
  constructor() {
1660
- Kt(this, "__internal__chainCode", new Uint8Array(32));
1661
- Kt(this, "__internal__isHard", !1);
1661
+ jt(this, "__internal__chainCode", new Uint8Array(32));
1662
+ jt(this, "__internal__isHard", !1);
1662
1663
  }
1663
1664
  static from(e) {
1664
- const r = new an(), [o, c] = e.startsWith("/") ? [e.substring(1), !0] : [e, !1];
1665
- return r.soft(Ws.test(o) ? new K(o, 10) : o), c ? r.harden() : r;
1665
+ const r = new hn(), [o, c] = e.startsWith("/") ? [e.substring(1), !0] : [e, !1];
1666
+ return r.soft(Ws.test(o) ? new j(o, 10) : o), c ? r.harden() : r;
1666
1667
  }
1667
1668
  get chainCode() {
1668
1669
  return this.__internal__chainCode;
@@ -1680,7 +1681,7 @@ class an {
1680
1681
  return this.__internal__isHard = !0, this;
1681
1682
  }
1682
1683
  soft(e) {
1683
- return Ts(e) || mi(e) || xi(e) ? this.soft(zt(e, Gs)) : te(e) ? this.soft(Se(e)) : Ls(e) ? this.soft(sn(ee(e))) : e.length > Js ? this.soft(he(e)) : (this.__internal__chainCode.fill(0), this.__internal__chainCode.set(e, 0), this);
1684
+ return Ts(e) || mi(e) || xi(e) ? this.soft(zt(e, Gs)) : te(e) ? this.soft(Se(e)) : Ls(e) ? this.soft(fn(ee(e))) : e.length > Js ? this.soft(he(e)) : (this.__internal__chainCode.fill(0), this.__internal__chainCode.set(e, 0), this);
1684
1685
  }
1685
1686
  soften() {
1686
1687
  return this.__internal__isHard = !1, this;
@@ -1693,7 +1694,7 @@ function Li(t) {
1693
1694
  if (e) {
1694
1695
  o = e.join("");
1695
1696
  for (const c of e)
1696
- r.push(an.from(c.substring(1)));
1697
+ r.push(hn.from(c.substring(1)));
1697
1698
  }
1698
1699
  if (o !== t)
1699
1700
  throw new Error(`Re-constructed path "${o}" does not match input`);
@@ -1715,13 +1716,13 @@ function tf(t) {
1715
1716
  phrase: r
1716
1717
  };
1717
1718
  }
1718
- const ef = sn(ee("Secp256k1HDKD"));
1719
+ const ef = fn(ee("Secp256k1HDKD"));
1719
1720
  function rf(t, e) {
1720
1721
  if (!oe(e) || e.length !== 32)
1721
1722
  throw new Error("Invalid chainCode passed to derive");
1722
1723
  return he(Ct(ef, t, e), 256);
1723
1724
  }
1724
- const hn = /* @__PURE__ */ BigInt(0), or = /* @__PURE__ */ BigInt(1), nf = /* @__PURE__ */ BigInt(2);
1725
+ const cn = /* @__PURE__ */ BigInt(0), or = /* @__PURE__ */ BigInt(1), nf = /* @__PURE__ */ BigInt(2);
1725
1726
  function se(t) {
1726
1727
  return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
1727
1728
  }
@@ -1745,13 +1746,13 @@ function we(t) {
1745
1746
  const e = t.toString(16);
1746
1747
  return e.length & 1 ? `0${e}` : e;
1747
1748
  }
1748
- function cn(t) {
1749
+ function ln(t) {
1749
1750
  if (typeof t != "string")
1750
1751
  throw new Error("hex string expected, got " + typeof t);
1751
1752
  return BigInt(t === "" ? "0" : `0x${t}`);
1752
1753
  }
1753
1754
  const Gt = { _0: 48, _9: 57, _A: 65, _F: 70, _a: 97, _f: 102 };
1754
- function Pn(t) {
1755
+ function Cn(t) {
1755
1756
  if (t >= Gt._0 && t <= Gt._9)
1756
1757
  return t - Gt._0;
1757
1758
  if (t >= Gt._A && t <= Gt._F)
@@ -1767,7 +1768,7 @@ function ye(t) {
1767
1768
  throw new Error("padded hex string expected, got unpadded hex of length " + e);
1768
1769
  const o = new Uint8Array(r);
1769
1770
  for (let c = 0, i = 0; c < r; c++, i += 2) {
1770
- const w = Pn(t.charCodeAt(i)), d = Pn(t.charCodeAt(i + 1));
1771
+ const w = Cn(t.charCodeAt(i)), d = Cn(t.charCodeAt(i + 1));
1771
1772
  if (w === void 0 || d === void 0) {
1772
1773
  const y = t[i] + t[i + 1];
1773
1774
  throw new Error('hex string expected, got non-hex character "' + y + '" at index ' + i);
@@ -1777,10 +1778,10 @@ function ye(t) {
1777
1778
  return o;
1778
1779
  }
1779
1780
  function ie(t) {
1780
- return cn(fe(t));
1781
+ return ln(fe(t));
1781
1782
  }
1782
1783
  function me(t) {
1783
- return Le(t), cn(fe(Uint8Array.from(t).reverse()));
1784
+ return Le(t), ln(fe(Uint8Array.from(t).reverse()));
1784
1785
  }
1785
1786
  function ve(t, e) {
1786
1787
  return ye(t.toString(16).padStart(e * 2, "0"));
@@ -1834,7 +1835,7 @@ function af(t) {
1834
1835
  throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
1835
1836
  return new Uint8Array(new TextEncoder().encode(t));
1836
1837
  }
1837
- const Lr = (t) => typeof t == "bigint" && hn <= t;
1838
+ const Lr = (t) => typeof t == "bigint" && cn <= t;
1838
1839
  function sr(t, e, r) {
1839
1840
  return Lr(t) && Lr(e) && Lr(r) && e <= t && t < r;
1840
1841
  }
@@ -1844,7 +1845,7 @@ function Yt(t, e, r, o) {
1844
1845
  }
1845
1846
  function Ti(t) {
1846
1847
  let e;
1847
- for (e = 0; t > hn; t >>= or, e += 1)
1848
+ for (e = 0; t > cn; t >>= or, e += 1)
1848
1849
  ;
1849
1850
  return e;
1850
1851
  }
@@ -1852,9 +1853,9 @@ function hf(t, e) {
1852
1853
  return t >> BigInt(e) & or;
1853
1854
  }
1854
1855
  function cf(t, e, r) {
1855
- return t | (r ? or : hn) << BigInt(e);
1856
+ return t | (r ? or : cn) << BigInt(e);
1856
1857
  }
1857
- const ln = (t) => (nf << BigInt(t - 1)) - or, Tr = (t) => new Uint8Array(t), Cn = (t) => Uint8Array.from(t);
1858
+ const un = (t) => (nf << BigInt(t - 1)) - or, Tr = (t) => new Uint8Array(t), Zn = (t) => Uint8Array.from(t);
1858
1859
  function $i(t, e, r) {
1859
1860
  if (typeof t != "number" || t < 2)
1860
1861
  throw new Error("hashLen must be a number");
@@ -1866,7 +1867,7 @@ function $i(t, e, r) {
1866
1867
  const w = () => {
1867
1868
  o.fill(1), c.fill(0), i = 0;
1868
1869
  }, d = (...E) => r(c, o, ...E), y = (E = Tr()) => {
1869
- c = d(Cn([0]), E), o = d(), E.length !== 0 && (c = d(Cn([1]), E), o = d());
1870
+ c = d(Zn([0]), E), o = d(), E.length !== 0 && (c = d(Zn([1]), E), o = d());
1870
1871
  }, x = () => {
1871
1872
  if (i++ >= 1e3)
1872
1873
  throw new Error("drbg: tried 1000 values");
@@ -1933,7 +1934,7 @@ const df = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1933
1934
  abytes: Le,
1934
1935
  bitGet: hf,
1935
1936
  bitLen: Ti,
1936
- bitMask: ln,
1937
+ bitMask: un,
1937
1938
  bitSet: cf,
1938
1939
  bytesToHex: fe,
1939
1940
  bytesToNumberBE: ie,
@@ -1943,7 +1944,7 @@ const df = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1943
1944
  ensureBytes: Tt,
1944
1945
  equalBytes: ff,
1945
1946
  hexToBytes: ye,
1946
- hexToNumber: cn,
1947
+ hexToNumber: ln,
1947
1948
  inRange: sr,
1948
1949
  isBytes: se,
1949
1950
  memoized: Ne,
@@ -1955,7 +1956,7 @@ const df = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1955
1956
  utf8ToBytes: af,
1956
1957
  validateObject: xe
1957
1958
  }, Symbol.toStringTag, { value: "Module" }));
1958
- const Pt = BigInt(0), ft = BigInt(1), ne = BigInt(2), wf = BigInt(3), jr = BigInt(4), Zn = BigInt(5), Dn = BigInt(8);
1959
+ const Pt = BigInt(0), ft = BigInt(1), ne = BigInt(2), wf = BigInt(3), Kr = BigInt(4), Dn = BigInt(5), Hn = BigInt(8);
1959
1960
  BigInt(9);
1960
1961
  BigInt(16);
1961
1962
  function tt(t, e) {
@@ -1978,7 +1979,7 @@ function ut(t, e, r) {
1978
1979
  o *= o, o %= r;
1979
1980
  return o;
1980
1981
  }
1981
- function Kr(t, e) {
1982
+ function jr(t, e) {
1982
1983
  if (t === Pt || e <= Pt)
1983
1984
  throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);
1984
1985
  let r = tt(t, e), o = e, c = Pt, i = ft;
@@ -1998,7 +1999,7 @@ function mf(t) {
1998
1999
  for (c = ne; c < t && gf(c, e, t) !== t - ft; c++)
1999
2000
  ;
2000
2001
  if (o === 1) {
2001
- const w = (t + ft) / jr;
2002
+ const w = (t + ft) / Kr;
2002
2003
  return function(y, x) {
2003
2004
  const v = y.pow(x, w);
2004
2005
  if (!y.eql(y.sqr(v), x))
@@ -2024,8 +2025,8 @@ function mf(t) {
2024
2025
  };
2025
2026
  }
2026
2027
  function pf(t) {
2027
- if (t % jr === wf) {
2028
- const e = (t + ft) / jr;
2028
+ if (t % Kr === wf) {
2029
+ const e = (t + ft) / Kr;
2029
2030
  return function(o, c) {
2030
2031
  const i = o.pow(c, e);
2031
2032
  if (!o.eql(o.sqr(i), c))
@@ -2033,8 +2034,8 @@ function pf(t) {
2033
2034
  return i;
2034
2035
  };
2035
2036
  }
2036
- if (t % Dn === Zn) {
2037
- const e = (t - Zn) / Dn;
2037
+ if (t % Hn === Dn) {
2038
+ const e = (t - Dn) / Hn;
2038
2039
  return function(o, c) {
2039
2040
  const i = o.mul(c, ne), w = o.pow(i, e), d = o.mul(c, w), y = o.mul(o.mul(d, ne), w), x = o.mul(d, o.sub(y, o.ONE));
2040
2041
  if (!o.eql(o.sqr(x), c))
@@ -2102,7 +2103,7 @@ function fr(t, e, r = !1, o = {}) {
2102
2103
  ORDER: t,
2103
2104
  BITS: c,
2104
2105
  BYTES: i,
2105
- MASK: ln(c),
2106
+ MASK: un(c),
2106
2107
  ZERO: Pt,
2107
2108
  ONE: ft,
2108
2109
  create: (y) => tt(y, t),
@@ -2120,13 +2121,13 @@ function fr(t, e, r = !1, o = {}) {
2120
2121
  sub: (y, x) => tt(y - x, t),
2121
2122
  mul: (y, x) => tt(y * x, t),
2122
2123
  pow: (y, x) => xf(d, y, x),
2123
- div: (y, x) => tt(y * Kr(x, t), t),
2124
+ div: (y, x) => tt(y * jr(x, t), t),
2124
2125
  // Same as above, but doesn't normalize
2125
2126
  sqrN: (y) => y * y,
2126
2127
  addN: (y, x) => y + x,
2127
2128
  subN: (y, x) => y - x,
2128
2129
  mulN: (y, x) => y * x,
2129
- inv: (y) => Kr(y, t),
2130
+ inv: (y) => jr(y, t),
2130
2131
  sqrt: o.sqrt || ((y) => w(d, y)),
2131
2132
  invertBatch: (y) => Ef(d, y),
2132
2133
  // TODO: do we really need constant cmov?
@@ -2158,7 +2159,7 @@ function Mf(t, e, r = !1) {
2158
2159
  const w = r ? ie(t) : me(t), d = tt(w, e - ft) + ft;
2159
2160
  return r ? Ue(d, c) : ve(d, c);
2160
2161
  }
2161
- const _f = BigInt(0), $r = BigInt(1), qr = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap();
2162
+ const _f = BigInt(0), $r = BigInt(1), qr = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap();
2162
2163
  function Zi(t, e) {
2163
2164
  const r = (i, w) => {
2164
2165
  const d = w.negate();
@@ -2222,7 +2223,7 @@ function Zi(t, e) {
2222
2223
  return { p: v, f: E };
2223
2224
  },
2224
2225
  wNAFCached(i, w, d) {
2225
- const y = Hn.get(i) || 1;
2226
+ const y = Vn.get(i) || 1;
2226
2227
  let x = qr.get(i);
2227
2228
  return x || (x = this.precomputeWindow(i, y), y !== 1 && qr.set(i, d(x))), this.wNAF(y, x, w);
2228
2229
  },
@@ -2230,7 +2231,7 @@ function Zi(t, e) {
2230
2231
  // using windowed method. This specifies window size and
2231
2232
  // stores precomputed values. Usually only base point would be precomputed.
2232
2233
  setWindowSize(i, w) {
2233
- o(w), Hn.set(i, w), qr.delete(i);
2234
+ o(w), Vn.set(i, w), qr.delete(i);
2234
2235
  }
2235
2236
  };
2236
2237
  }
@@ -2261,7 +2262,7 @@ function Di(t, e, r, o) {
2261
2262
  }
2262
2263
  return x;
2263
2264
  }
2264
- function un(t) {
2265
+ function dn(t) {
2265
2266
  return bf(t.Fp), xe(t, {
2266
2267
  n: "bigint",
2267
2268
  h: "bigint",
@@ -2276,11 +2277,11 @@ function un(t) {
2276
2277
  p: t.Fp.ORDER
2277
2278
  });
2278
2279
  }
2279
- function Vn(t) {
2280
+ function zn(t) {
2280
2281
  t.lowS !== void 0 && Qt("lowS", t.lowS), t.prehash !== void 0 && Qt("prehash", t.prehash);
2281
2282
  }
2282
2283
  function Bf(t) {
2283
- const e = un(t);
2284
+ const e = dn(t);
2284
2285
  xe(e, {
2285
2286
  a: "field",
2286
2287
  b: "field"
@@ -2395,7 +2396,7 @@ const { bytesToNumberBE: Sf, hexToBytes: Af } = df, Wt = {
2395
2396
  const { _tlv: e, _int: r } = Wt, o = `${e.encode(2, r.encode(t.r))}${e.encode(2, r.encode(t.s))}`;
2396
2397
  return e.encode(48, o);
2397
2398
  }
2398
- }, Jt = BigInt(0), qt = BigInt(1), I0 = BigInt(2), zn = BigInt(3), k0 = BigInt(4);
2399
+ }, Jt = BigInt(0), qt = BigInt(1), k0 = BigInt(2), Yn = BigInt(3), U0 = BigInt(4);
2399
2400
  function If(t) {
2400
2401
  const e = Bf(t), { Fp: r } = e, o = fr(e.n, e.nBitLength), c = e.toBytes || ((k, _, S) => {
2401
2402
  const L = _.toAffine();
@@ -2546,7 +2547,7 @@ function If(t) {
2546
2547
  // https://eprint.iacr.org/2015/1060, algorithm 3
2547
2548
  // Cost: 8M + 3S + 3*a + 2*b3 + 15add.
2548
2549
  double() {
2549
- const { a: _, b: S } = e, L = r.mul(S, zn), { px: A, py: q, pz: D } = this;
2550
+ const { a: _, b: S } = e, L = r.mul(S, Yn), { px: A, py: q, pz: D } = this;
2550
2551
  let R = r.ZERO, O = r.ZERO, $ = r.ZERO, P = r.mul(A, A), J = r.mul(q, q), T = r.mul(D, D), Z = r.mul(A, q);
2551
2552
  return Z = r.add(Z, Z), $ = r.mul(A, D), $ = r.add($, $), R = r.mul(_, $), O = r.mul(L, T), O = r.add(R, O), R = r.sub(J, O), O = r.add(J, O), O = r.mul(R, O), R = r.mul(Z, R), $ = r.mul(L, $), T = r.mul(_, T), Z = r.sub(P, T), Z = r.mul(_, Z), Z = r.add(Z, $), $ = r.add(P, P), P = r.add($, P), P = r.add(P, T), P = r.mul(P, Z), O = r.add(O, P), T = r.mul(q, D), T = r.add(T, T), P = r.mul(T, Z), R = r.sub(R, P), $ = r.mul(T, J), $ = r.add($, $), $ = r.add($, $), new M(R, O, $);
2552
2553
  }
@@ -2558,7 +2559,7 @@ function If(t) {
2558
2559
  x(_);
2559
2560
  const { px: S, py: L, pz: A } = this, { px: q, py: D, pz: R } = _;
2560
2561
  let O = r.ZERO, $ = r.ZERO, P = r.ZERO;
2561
- const J = e.a, T = r.mul(e.b, zn);
2562
+ const J = e.a, T = r.mul(e.b, Yn);
2562
2563
  let Z = r.mul(S, q), p = r.mul(L, D), n = r.mul(A, R), f = r.add(S, L), a = r.add(q, D);
2563
2564
  f = r.mul(f, a), a = r.add(Z, p), f = r.sub(f, a), a = r.add(S, A);
2564
2565
  let h = r.add(q, R);
@@ -2662,7 +2663,7 @@ function If(t) {
2662
2663
  };
2663
2664
  }
2664
2665
  function kf(t) {
2665
- const e = un(t);
2666
+ const e = dn(t);
2666
2667
  return xe(e, {
2667
2668
  hash: "hash",
2668
2669
  hmac: "function",
@@ -2679,7 +2680,7 @@ function Uf(t) {
2679
2680
  return tt(n, o);
2680
2681
  }
2681
2682
  function d(n) {
2682
- return Kr(n, o);
2683
+ return jr(n, o);
2683
2684
  }
2684
2685
  const { ProjectivePoint: y, normPrivateKeyToScalar: x, weierstrassEquation: v, isWithinCurveOrder: E } = If({
2685
2686
  ...e,
@@ -2746,7 +2747,7 @@ function Uf(t) {
2746
2747
  const b = l === 2 || l === 3 ? a + e.n : a;
2747
2748
  if (b >= r.ORDER)
2748
2749
  throw new Error("recovery id 2 or 3 invalid");
2749
- const u = l & 1 ? "03" : "02", s = y.fromHex(u + M(b)), g = d(b), B = w(-m * g), I = w(h * g), N = y.BASE.multiplyAndAddUnsafe(s, B, I);
2750
+ const u = (l & 1) === 0 ? "02" : "03", s = y.fromHex(u + M(b)), g = d(b), B = w(-m * g), I = w(h * g), N = y.BASE.multiplyAndAddUnsafe(s, B, I);
2750
2751
  if (!N)
2751
2752
  throw new Error("point at infinify");
2752
2753
  return N.assertValidity(), N;
@@ -2821,7 +2822,7 @@ function Uf(t) {
2821
2822
  return a > 0 ? f >> BigInt(a) : f;
2822
2823
  }, R = e.bits2int_modN || function(n) {
2823
2824
  return w(D(n));
2824
- }, O = ln(e.nBitLength);
2825
+ }, O = un(e.nBitLength);
2825
2826
  function $(n) {
2826
2827
  return Yt(`num < 2^${e.nBitLength}`, n, Jt, O), ve(n, e.nByteLength);
2827
2828
  }
@@ -2830,14 +2831,14 @@ function Uf(t) {
2830
2831
  throw new Error("sign() legacy options not supported");
2831
2832
  const { hash: h, randomBytes: l } = e;
2832
2833
  let { lowS: m, prehash: b, extraEntropy: u } = a;
2833
- m == null && (m = !0), n = Tt("msgHash", n), Vn(a), b && (n = Tt("prehashed msgHash", h(n)));
2834
+ m == null && (m = !0), n = Tt("msgHash", n), zn(a), b && (n = Tt("prehashed msgHash", h(n)));
2834
2835
  const s = R(n), g = x(f), B = [$(g), $(s)];
2835
2836
  if (u != null && u !== !1) {
2836
2837
  const H = u === !0 ? l(r.BYTES) : u;
2837
2838
  B.push(Tt("extraEntropy", H));
2838
2839
  }
2839
2840
  const I = ae(...B), N = s;
2840
- function j(H) {
2841
+ function K(H) {
2841
2842
  const z = D(H);
2842
2843
  if (!E(z))
2843
2844
  return;
@@ -2850,7 +2851,7 @@ function Uf(t) {
2850
2851
  let Q = (X.x === Y ? 0 : 2) | Number(X.y & qt), F = Zt;
2851
2852
  return m && U(Zt) && (F = C(Zt), Q ^= 1), new _(Y, F, Q);
2852
2853
  }
2853
- return { seed: I, k2sig: j };
2854
+ return { seed: I, k2sig: K };
2854
2855
  }
2855
2856
  const J = { lowS: e.lowS, prehash: !1 }, T = { lowS: e.lowS, prehash: !1 };
2856
2857
  function Z(n, f, a = J) {
@@ -2863,7 +2864,7 @@ function Uf(t) {
2863
2864
  const l = n;
2864
2865
  if (f = Tt("msgHash", f), a = Tt("publicKey", a), "strict" in h)
2865
2866
  throw new Error("options.strict was renamed to lowS");
2866
- Vn(h);
2867
+ zn(h);
2867
2868
  const { lowS: m, prehash: b } = h;
2868
2869
  let u, s;
2869
2870
  try {
@@ -2889,7 +2890,7 @@ function Uf(t) {
2889
2890
  if (m && u.hasHighS())
2890
2891
  return !1;
2891
2892
  b && (f = e.hash(f));
2892
- const { r: g, s: B } = u, I = R(f), N = d(B), j = w(I * N), H = w(g * N), z = (X = y.BASE.multiplyAndAddUnsafe(s, j, H)) == null ? void 0 : X.toAffine();
2893
+ const { r: g, s: B } = u, I = R(f), N = d(B), K = w(I * N), H = w(g * N), z = (X = y.BASE.multiplyAndAddUnsafe(s, K, H)) == null ? void 0 : X.toAffine();
2893
2894
  return z ? w(z.x) === g : !1;
2894
2895
  }
2895
2896
  return {
@@ -2906,15 +2907,15 @@ function Uf(t) {
2906
2907
  function Nf(t) {
2907
2908
  return {
2908
2909
  hash: t,
2909
- hmac: (e, ...r) => li(t, e, po(...r)),
2910
- randomBytes: ci
2910
+ hmac: (e, ...r) => ui(t, e, po(...r)),
2911
+ randomBytes: li
2911
2912
  };
2912
2913
  }
2913
2914
  function Rf(t, e) {
2914
2915
  const r = (o) => Uf({ ...t, ...Nf(o) });
2915
2916
  return Object.freeze({ ...r(e), create: r });
2916
2917
  }
2917
- const Hi = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), Yn = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), Of = BigInt(1), Gr = BigInt(2), Xn = (t, e) => (t + e / Gr) / e;
2918
+ const Hi = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), Xn = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), Of = BigInt(1), Gr = BigInt(2), Kn = (t, e) => (t + e / Gr) / e;
2918
2919
  function Lf(t) {
2919
2920
  const e = Hi, r = BigInt(3), o = BigInt(6), c = BigInt(11), i = BigInt(22), w = BigInt(23), d = BigInt(44), y = BigInt(88), x = t * t * t % e, v = x * x * t % e, E = ut(v, r, e) * v % e, M = ut(E, r, e) * v % e, U = ut(M, Gr, e) * x % e, C = ut(U, c, e) * U % e, k = ut(C, i, e) * C % e, _ = ut(k, d, e) * k % e, S = ut(_, y, e) * _ % e, L = ut(S, d, e) * k % e, A = ut(L, r, e) * v % e, q = ut(A, w, e) * C % e, D = ut(q, o, e) * x % e, R = ut(D, Gr, e);
2920
2921
  if (!Wr.eql(Wr.sqr(R), t))
@@ -2928,7 +2929,7 @@ const Wr = fr(Hi, void 0, void 0, { sqrt: Lf }), Te = Rf({
2928
2929
  // Seem to be rigid: bitcointalk.org/index.php?topic=289795.msg3183975#msg3183975
2929
2930
  Fp: Wr,
2930
2931
  // Field's prime: 2n**256n - 2n**32n - 2n**9n - 2n**8n - 2n**7n - 2n**6n - 2n**4n - 1n
2931
- n: Yn,
2932
+ n: Xn,
2932
2933
  // Curve order, total count of valid points in the field
2933
2934
  // Base point (x, y) aka generator point
2934
2935
  Gx: BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),
@@ -2946,7 +2947,7 @@ const Wr = fr(Hi, void 0, void 0, { sqrt: Lf }), Te = Rf({
2946
2947
  endo: {
2947
2948
  beta: BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),
2948
2949
  splitScalar: (t) => {
2949
- const e = Yn, r = BigInt("0x3086d221a7d46bcde86c90e49284eb15"), o = -Of * BigInt("0xe4437ed6010e88286f547fa90abfe4c3"), c = BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"), i = r, w = BigInt("0x100000000000000000000000000000000"), d = Xn(i * t, e), y = Xn(-o * t, e);
2950
+ const e = Xn, r = BigInt("0x3086d221a7d46bcde86c90e49284eb15"), o = -Of * BigInt("0xe4437ed6010e88286f547fa90abfe4c3"), c = BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"), i = r, w = BigInt("0x100000000000000000000000000000000"), d = Kn(i * t, e), y = Kn(-o * t, e);
2950
2951
  let x = tt(t - d * r - y * c, e), v = tt(-d * o - y * i, e);
2951
2952
  const E = x > w, M = v > w;
2952
2953
  if (E && (x = e - x), M && (v = e - v), x > w || v > w)
@@ -2980,7 +2981,7 @@ function Vi(t, e) {
2980
2981
  return t(e(r.secretKey.subarray(0, 32), o));
2981
2982
  };
2982
2983
  }
2983
- const jn = /* @__PURE__ */ Vi(be, rf), Tf = sn(ee("Ed25519HDKD"));
2984
+ const jn = /* @__PURE__ */ Vi(be, rf), Tf = fn(ee("Ed25519HDKD"));
2984
2985
  function $f(t, e) {
2985
2986
  if (!oe(e) || e.length !== 32)
2986
2987
  throw new Error("Invalid chainCode passed to derive");
@@ -2988,7 +2989,7 @@ function $f(t, e) {
2988
2989
  }
2989
2990
  const Xt = BigInt(0), Dt = BigInt(1), Ze = BigInt(2), qf = BigInt(8), Pf = { zip215: !0 };
2990
2991
  function Cf(t) {
2991
- const e = un(t);
2992
+ const e = dn(t);
2992
2993
  return xe(t, {
2993
2994
  hash: "function",
2994
2995
  a: "bigint",
@@ -3033,7 +3034,7 @@ function Zf(t) {
3033
3034
  const { a: h, d: l } = e;
3034
3035
  if (a.is0())
3035
3036
  throw new Error("bad point: ZERO");
3036
- const { ex: m, ey: b, ez: u, et: s } = a, g = v(m * m), B = v(b * b), I = v(u * u), N = v(I * I), j = v(g * h), H = v(I * v(j + B)), z = v(N + v(l * v(g * B)));
3037
+ const { ex: m, ey: b, ez: u, et: s } = a, g = v(m * m), B = v(b * b), I = v(u * u), N = v(I * I), K = v(g * h), H = v(I * v(K + B)), z = v(N + v(l * v(g * B)));
3037
3038
  if (H !== z)
3038
3039
  throw new Error("bad point: equation left != right (1)");
3039
3040
  const $t = v(m * b), X = v(u * s);
@@ -3077,8 +3078,8 @@ function Zf(t) {
3077
3078
  // Compare one point to another.
3078
3079
  equals(h) {
3079
3080
  _(h);
3080
- const { ex: l, ey: m, ez: b } = this, { ex: u, ey: s, ez: g } = h, B = v(l * g), I = v(u * b), N = v(m * g), j = v(s * b);
3081
- return B === I && N === j;
3081
+ const { ex: l, ey: m, ez: b } = this, { ex: u, ey: s, ez: g } = h, B = v(l * g), I = v(u * b), N = v(m * g), K = v(s * b);
3082
+ return B === I && N === K;
3082
3083
  }
3083
3084
  is0() {
3084
3085
  return this.equals(A.ZERO);
@@ -3090,7 +3091,7 @@ function Zf(t) {
3090
3091
  // https://hyperelliptic.org/EFD/g1p/auto-twisted-extended.html#doubling-dbl-2008-hwcd
3091
3092
  // Cost: 4M + 4S + 1*a + 6add + 1*2.
3092
3093
  double() {
3093
- const { a: h } = e, { ex: l, ey: m, ez: b } = this, u = v(l * l), s = v(m * m), g = v(Ze * v(b * b)), B = v(h * u), I = l + m, N = v(v(I * I) - u - s), j = B + s, H = j - g, z = B - s, $t = v(N * H), X = v(j * z), Y = v(N * z), Zt = v(H * j);
3094
+ const { a: h } = e, { ex: l, ey: m, ez: b } = this, u = v(l * l), s = v(m * m), g = v(Ze * v(b * b)), B = v(h * u), I = l + m, N = v(v(I * I) - u - s), K = B + s, H = K - g, z = B - s, $t = v(N * H), X = v(K * z), Y = v(N * z), Zt = v(H * K);
3094
3095
  return new A($t, X, Zt, Y);
3095
3096
  }
3096
3097
  // Fast algo for adding 2 Extended Points.
@@ -3098,15 +3099,15 @@ function Zf(t) {
3098
3099
  // Cost: 9M + 1*a + 1*d + 7add.
3099
3100
  add(h) {
3100
3101
  _(h);
3101
- const { a: l, d: m } = e, { ex: b, ey: u, ez: s, et: g } = this, { ex: B, ey: I, ez: N, et: j } = h;
3102
+ const { a: l, d: m } = e, { ex: b, ey: u, ez: s, et: g } = this, { ex: B, ey: I, ez: N, et: K } = h;
3102
3103
  if (l === BigInt(-1)) {
3103
3104
  const et = v((u - b) * (I + B)), rt = v((u + b) * (I - B)), ce = v(rt - et);
3104
3105
  if (ce === Xt)
3105
3106
  return this.double();
3106
- const nt = v(s * Ze * j), it = v(g * Ze * N), Ee = it + nt, ot = rt + et, st = it - nt, Pe = v(Ee * ce), ct = v(ot * st), lt = v(Ee * st), Ce = v(ce * ot);
3107
+ const nt = v(s * Ze * K), it = v(g * Ze * N), Ee = it + nt, ot = rt + et, st = it - nt, Pe = v(Ee * ce), ct = v(ot * st), lt = v(Ee * st), Ce = v(ce * ot);
3107
3108
  return new A(Pe, ct, Ce, lt);
3108
3109
  }
3109
- const H = v(b * B), z = v(u * I), $t = v(g * m * j), X = v(s * N), Y = v((b + u) * (B + I) - H - z), Zt = X - $t, Q = X + $t, F = v(z - l * H), $e = v(Y * Zt), at = v(Q * F), ht = v(Y * F), qe = v(Zt * Q);
3110
+ const H = v(b * B), z = v(u * I), $t = v(g * m * K), X = v(s * N), Y = v((b + u) * (B + I) - H - z), Zt = X - $t, Q = X + $t, F = v(z - l * H), $e = v(Y * Zt), at = v(Q * F), ht = v(Y * F), qe = v(Zt * Q);
3110
3111
  return new A($e, at, qe, ht);
3111
3112
  }
3112
3113
  subtract(h) {
@@ -3160,8 +3161,8 @@ function Zf(t) {
3160
3161
  s[u - 1] = g & -129;
3161
3162
  const B = me(s), I = l ? x : r.ORDER;
3162
3163
  Yt("pointHex.y", B, Xt, I);
3163
- const N = v(B * B), j = v(N - Dt), H = v(m * N - b);
3164
- let { isValid: z, value: $t } = M(j, H);
3164
+ const N = v(B * B), K = v(N - Dt), H = v(m * N - b);
3165
+ let { isValid: z, value: $t } = M(K, H);
3165
3166
  if (!z)
3166
3167
  throw new Error("Point.fromHex: invalid y coordinate");
3167
3168
  const X = ($t & Dt) === Dt, Y = (g & 128) !== 0;
@@ -3221,8 +3222,8 @@ function Zf(t) {
3221
3222
  }
3222
3223
  if (!u && B.isSmallOrder())
3223
3224
  return !1;
3224
- const j = T(b, I.toRawBytes(), B.toRawBytes(), h);
3225
- return I.add(B.multiplyUnsafe(j)).subtract(N).clearCofactor().equals(A.ZERO);
3225
+ const K = T(b, I.toRawBytes(), B.toRawBytes(), h);
3226
+ return I.add(B.multiplyUnsafe(K)).subtract(N).clearCofactor().equals(A.ZERO);
3226
3227
  }
3227
3228
  return q._setWindowSize(8), {
3228
3229
  CURVE: e,
@@ -3246,24 +3247,24 @@ function Zf(t) {
3246
3247
  }
3247
3248
  };
3248
3249
  }
3249
- const U0 = BigInt(0), N0 = BigInt(1);
3250
- const dn = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"), Kn = /* @__PURE__ */ BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");
3250
+ const N0 = BigInt(0), R0 = BigInt(1);
3251
+ const wn = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"), Gn = /* @__PURE__ */ BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");
3251
3252
  BigInt(0);
3252
- const Df = BigInt(1), Gn = BigInt(2), R0 = BigInt(3), Hf = BigInt(5), Vf = BigInt(8);
3253
+ const Df = BigInt(1), Wn = BigInt(2), O0 = BigInt(3), Hf = BigInt(5), Vf = BigInt(8);
3253
3254
  function zf(t) {
3254
- const e = BigInt(10), r = BigInt(20), o = BigInt(40), c = BigInt(80), i = dn, d = t * t % i * t % i, y = ut(d, Gn, i) * d % i, x = ut(y, Df, i) * t % i, v = ut(x, Hf, i) * x % i, E = ut(v, e, i) * v % i, M = ut(E, r, i) * E % i, U = ut(M, o, i) * M % i, C = ut(U, c, i) * U % i, k = ut(C, c, i) * U % i, _ = ut(k, e, i) * v % i;
3255
- return { pow_p_5_8: ut(_, Gn, i) * t % i, b2: d };
3255
+ const e = BigInt(10), r = BigInt(20), o = BigInt(40), c = BigInt(80), i = wn, d = t * t % i * t % i, y = ut(d, Wn, i) * d % i, x = ut(y, Df, i) * t % i, v = ut(x, Hf, i) * x % i, E = ut(v, e, i) * v % i, M = ut(E, r, i) * E % i, U = ut(M, o, i) * M % i, C = ut(U, c, i) * U % i, k = ut(C, c, i) * U % i, _ = ut(k, e, i) * v % i;
3256
+ return { pow_p_5_8: ut(_, Wn, i) * t % i, b2: d };
3256
3257
  }
3257
3258
  function Yf(t) {
3258
3259
  return t[0] &= 248, t[31] &= 127, t[31] |= 64, t;
3259
3260
  }
3260
3261
  function Xf(t, e) {
3261
- const r = dn, o = tt(e * e * e, r), c = tt(o * o * e, r), i = zf(t * c).pow_p_5_8;
3262
+ const r = wn, o = tt(e * e * e, r), c = tt(o * o * e, r), i = zf(t * c).pow_p_5_8;
3262
3263
  let w = tt(t * o * i, r);
3263
- const d = tt(e * w * w, r), y = w, x = tt(w * Kn, r), v = d === t, E = d === tt(-t, r), M = d === tt(-t * Kn, r);
3264
+ const d = tt(e * w * w, r), y = w, x = tt(w * Gn, r), v = d === t, E = d === tt(-t, r), M = d === tt(-t * Gn, r);
3264
3265
  return v && (w = y), (E || M) && (w = x), yf(w, r) && (w = tt(-w, r)), { isValid: v || E, value: w };
3265
3266
  }
3266
- const jf = fr(dn, void 0, !0), Kf = {
3267
+ const Kf = fr(wn, void 0, !0), jf = {
3267
3268
  // Param: a
3268
3269
  a: BigInt(-1),
3269
3270
  // Fp.create(-1) is proper; our way still works and is faster
@@ -3271,7 +3272,7 @@ const jf = fr(dn, void 0, !0), Kf = {
3271
3272
  // Negative number is P - number, and division is invert(number, P)
3272
3273
  d: BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),
3273
3274
  // Finite field 𝔽p over which we'll do calculations; 2n**255n - 19n
3274
- Fp: jf,
3275
+ Fp: Kf,
3275
3276
  // Subgroup order: how many points curve has
3276
3277
  // 2n**252n + 27742317777372353535851937790883648493n;
3277
3278
  n: BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),
@@ -3280,15 +3281,15 @@ const jf = fr(dn, void 0, !0), Kf = {
3280
3281
  // Base point (x, y) aka generator point
3281
3282
  Gx: BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),
3282
3283
  Gy: BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),
3283
- hash: ui,
3284
- randomBytes: ci,
3284
+ hash: di,
3285
+ randomBytes: li,
3285
3286
  adjustScalarBytes: Yf,
3286
3287
  // dom2
3287
3288
  // Ratio of u to v. Allows us to combine inversion and square root. Uses algo from RFC8032 5.1.3.
3288
3289
  // Constant-time, u/√v
3289
3290
  uvRatio: Xf
3290
- }, wn = Zf(Kf);
3291
- function gn(t, e) {
3291
+ }, gn = Zf(jf);
3292
+ function mn(t, e) {
3292
3293
  if (!Ht || !e && Vt()) {
3293
3294
  const o = Io(t);
3294
3295
  return {
@@ -3296,7 +3297,7 @@ function gn(t, e) {
3296
3297
  secretKey: o.slice(0, 64)
3297
3298
  };
3298
3299
  }
3299
- const r = wn.getPublicKey(t);
3300
+ const r = gn.getPublicKey(t);
3300
3301
  return {
3301
3302
  publicKey: r,
3302
3303
  secretKey: Re([t, r])
@@ -3308,7 +3309,7 @@ function Gf(t, { publicKey: e, secretKey: r }, o) {
3308
3309
  throw new Error("Expected a valid publicKey");
3309
3310
  } else throw new Error("Expected a valid secretKey");
3310
3311
  const c = V(t), i = r.subarray(0, 32);
3311
- return !Ht || !o && Vt() ? ko(e, i, c) : wn.sign(c, i);
3312
+ return !Ht || !o && Vt() ? ko(e, i, c) : gn.sign(c, i);
3312
3313
  }
3313
3314
  function zi(t, e, r, o) {
3314
3315
  const c = V(t), i = V(r), w = V(e);
@@ -3317,12 +3318,12 @@ function zi(t, e, r, o) {
3317
3318
  if (w.length !== 64)
3318
3319
  throw new Error(`Invalid signature, received ${w.length} bytes, expected 64`);
3319
3320
  try {
3320
- return !Ht || !o && Vt() ? Uo(w, c, i) : wn.verify(w, c, i);
3321
+ return !Ht || !o && Vt() ? Uo(w, c, i) : gn.verify(w, c, i);
3321
3322
  } catch {
3322
3323
  return !1;
3323
3324
  }
3324
3325
  }
3325
- const Wf = /* @__PURE__ */ Vi(gn, $f), Jr = 64, Jf = 32, Pr = Jr + Jf;
3326
+ const Wf = /* @__PURE__ */ Vi(mn, $f), Jr = 64, Jf = 32, Pr = Jr + Jf;
3326
3327
  function Yi(t) {
3327
3328
  const e = V(t);
3328
3329
  if (e.length !== Pr)
@@ -3353,14 +3354,14 @@ const ra = {
3353
3354
  ethereum: jn,
3354
3355
  sr25519: ea
3355
3356
  };
3356
- function ji(t, e, r) {
3357
+ function Ki(t, e, r) {
3357
3358
  const o = ra[r];
3358
3359
  let c = t;
3359
3360
  for (const i of e)
3360
3361
  c = o(c, i);
3361
3362
  return c;
3362
3363
  }
3363
- function Ki(t) {
3364
+ function ji(t) {
3364
3365
  const e = V(t);
3365
3366
  if (e.length !== 32)
3366
3367
  throw new Error(`Expected a seed matching 32 bytes, found ${e.length}`);
@@ -3381,14 +3382,14 @@ function Gi(t, e, r) {
3381
3382
  throw new Error(`Invalid signature, received ${c.length} bytes, expected 64`);
3382
3383
  return To(c, V(t), o);
3383
3384
  }
3384
- const Wn = new Uint8Array();
3385
- function ia(t, { secretKey: e }, r = Wn, o = Wn) {
3385
+ const Jn = new Uint8Array();
3386
+ function ia(t, { secretKey: e }, r = Jn, o = Jn) {
3386
3387
  if ((e == null ? void 0 : e.length) !== 64)
3387
3388
  throw new Error("Invalid secretKey, expected 64-bytes");
3388
3389
  return $o(e, V(r), V(t), V(o));
3389
3390
  }
3390
- const Jn = new Uint8Array();
3391
- function oa(t, e, r, o = Jn, c = Jn) {
3391
+ const Qn = new Uint8Array();
3392
+ function oa(t, e, r, o = Qn, c = Qn) {
3392
3393
  const i = V(r), w = V(e);
3393
3394
  if (i.length !== 32)
3394
3395
  throw new Error("Invalid publicKey, expected 32-bytes");
@@ -3416,20 +3417,20 @@ for (let t = 0, e = Me, r = 1, o = 0; t < 24; t++) {
3416
3417
  e = (e << Me ^ (e >> ha) * la) % ca, e & aa && (c ^= Me << (Me << /* @__PURE__ */ BigInt(i)) - Me);
3417
3418
  Qi.push(c);
3418
3419
  }
3419
- const [ua, da] = /* @__PURE__ */ Po(Qi, !0), Qn = (t, e, r) => r > 32 ? Co(t, e, r) : Zo(t, e, r), Fn = (t, e, r) => r > 32 ? Do(t, e, r) : Ho(t, e, r);
3420
+ const [ua, da] = /* @__PURE__ */ Po(Qi, !0), Fn = (t, e, r) => r > 32 ? Co(t, e, r) : Zo(t, e, r), ti = (t, e, r) => r > 32 ? Do(t, e, r) : Ho(t, e, r);
3420
3421
  function wa(t, e = 24) {
3421
3422
  const r = new Uint32Array(10);
3422
3423
  for (let o = 24 - e; o < 24; o++) {
3423
3424
  for (let w = 0; w < 10; w++)
3424
3425
  r[w] = t[w] ^ t[w + 10] ^ t[w + 20] ^ t[w + 30] ^ t[w + 40];
3425
3426
  for (let w = 0; w < 10; w += 2) {
3426
- const d = (w + 8) % 10, y = (w + 2) % 10, x = r[y], v = r[y + 1], E = Qn(x, v, 1) ^ r[d], M = Fn(x, v, 1) ^ r[d + 1];
3427
+ const d = (w + 8) % 10, y = (w + 2) % 10, x = r[y], v = r[y + 1], E = Fn(x, v, 1) ^ r[d], M = ti(x, v, 1) ^ r[d + 1];
3427
3428
  for (let U = 0; U < 50; U += 10)
3428
3429
  t[w + U] ^= E, t[w + U + 1] ^= M;
3429
3430
  }
3430
3431
  let c = t[2], i = t[3];
3431
3432
  for (let w = 0; w < 24; w++) {
3432
- const d = Ji[w], y = Qn(c, i, d), x = Fn(c, i, d), v = Wi[w];
3433
+ const d = Ji[w], y = Fn(c, i, d), x = ti(c, i, d), v = Wi[w];
3433
3434
  c = t[v], i = t[v + 1], t[v] = y, t[v + 1] = x;
3434
3435
  }
3435
3436
  for (let w = 0; w < 50; w += 10) {
@@ -3450,10 +3451,10 @@ class ar extends bo {
3450
3451
  this.state = new Uint8Array(200), this.state32 = Ve(this.state);
3451
3452
  }
3452
3453
  keccak() {
3453
- Xe || je(this.state32), wa(this.state32, this.rounds), Xe || je(this.state32), this.posOut = 0, this.pos = 0;
3454
+ Xe || Ke(this.state32), wa(this.state32, this.rounds), Xe || Ke(this.state32), this.posOut = 0, this.pos = 0;
3454
3455
  }
3455
3456
  update(e) {
3456
- kn(this);
3457
+ Un(this);
3457
3458
  const { blockLen: r, state: o } = this;
3458
3459
  e = xo(e);
3459
3460
  const c = e.length;
@@ -3470,10 +3471,10 @@ class ar extends bo {
3470
3471
  return;
3471
3472
  this.finished = !0;
3472
3473
  const { state: e, suffix: r, pos: o, blockLen: c } = this;
3473
- e[o] ^= r, r & 128 && o === c - 1 && this.keccak(), e[c - 1] ^= 128, this.keccak();
3474
+ e[o] ^= r, (r & 128) !== 0 && o === c - 1 && this.keccak(), e[c - 1] ^= 128, this.keccak();
3474
3475
  }
3475
3476
  writeInto(e) {
3476
- kn(this, !1), Eo(e), this.finish();
3477
+ Un(this, !1), Eo(e), this.finish();
3477
3478
  const r = this.state, { blockLen: o } = this;
3478
3479
  for (let c = 0, i = e.length; c < i; ) {
3479
3480
  this.posOut >= o && this.keccak();
@@ -3521,34 +3522,34 @@ const hr = /* @__PURE__ */ Vo({ 256: Yo, 512: zo }, { 256: ga, 512: ma });
3521
3522
  function Qr(t, e, r) {
3522
3523
  return t === "keccak" ? hr(e, void 0, r) : he(e, void 0, void 0, r);
3523
3524
  }
3524
- const mn = {
3525
+ const pn = {
3525
3526
  chars: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
3526
3527
  coder: Zs,
3527
3528
  type: "base64",
3528
3529
  withPadding: !0
3529
- }, pa = /* @__PURE__ */ Ri(mn), ya = /* @__PURE__ */ Ui(mn, pa), va = /* @__PURE__ */ Ni(mn);
3530
+ }, pa = /* @__PURE__ */ Ri(pn), ya = /* @__PURE__ */ Ui(pn, pa), va = /* @__PURE__ */ Ni(pn);
3530
3531
  function to(t, e) {
3531
3532
  if (![33, 65].includes(t.length))
3532
3533
  throw new Error(`Invalid publicKey provided, received ${t.length} bytes input`);
3533
3534
  return t.length === 33 ? t : !Ht || Vt() ? Xo(t) : Te.ProjectivePoint.fromHex(t).toRawBytes(!0);
3534
3535
  }
3535
- function pn(t, e) {
3536
+ function yn(t, e) {
3536
3537
  if (![33, 65].includes(t.length))
3537
3538
  throw new Error(`Invalid publicKey provided, received ${t.length} bytes input`);
3538
3539
  if (t.length === 65)
3539
3540
  return t.subarray(1);
3540
3541
  if (!Ht || Vt())
3541
- return jo(t).subarray(1);
3542
+ return Ko(t).subarray(1);
3542
3543
  const { px: r, py: o } = Te.ProjectivePoint.fromHex(t);
3543
3544
  return Ct(zt(r, pe), zt(o, pe));
3544
3545
  }
3545
3546
  function ba(t, e, r, o = "blake2", c) {
3546
- const i = V(e).subarray(0, 64), w = V(t), d = !Ht || Vt() ? Ko(w, i, r) : Te.Signature.fromCompact(i).addRecoveryBit(r).recoverPublicKey(w).toRawBytes();
3547
+ const i = V(e).subarray(0, 64), w = V(t), d = !Ht || Vt() ? jo(w, i, r) : Te.Signature.fromCompact(i).addRecoveryBit(r).recoverPublicKey(w).toRawBytes();
3547
3548
  if (!d)
3548
3549
  throw new Error("Unable to recover publicKey from signature");
3549
- return o === "keccak" ? pn(d) : to(d);
3550
+ return o === "keccak" ? yn(d) : to(d);
3550
3551
  }
3551
- function ti(t, { secretKey: e }, r = "blake2", o) {
3552
+ function ei(t, { secretKey: e }, r = "blake2", o) {
3552
3553
  if ((e == null ? void 0 : e.length) !== 32)
3553
3554
  throw new Error("Expected valid secp256k1 secretKey, 32-bytes");
3554
3555
  const c = Qr(r, t, o);
@@ -3557,20 +3558,20 @@ function ti(t, { secretKey: e }, r = "blake2", o) {
3557
3558
  const i = Te.sign(c, e, { lowS: !0 });
3558
3559
  return Ct(zt(i.r, pe), zt(i.s, pe), new Uint8Array([i.recovery || 0]));
3559
3560
  }
3560
- const eo = "ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141".replace(/ /g, ""), Cr = W(`0x${eo}`), Zr = new K(eo, "hex");
3561
+ const eo = "ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141".replace(/ /g, ""), Cr = W(`0x${eo}`), Zr = new j(eo, "hex");
3561
3562
  function xa(t, e) {
3562
- let r = Xr(e, qn);
3563
+ let r = Xr(e, Pn);
3563
3564
  if (r >= Cr)
3564
3565
  throw new Error("Tweak parameter is out of range");
3565
- if (r += Xr(t, qn), r >= Cr && (r -= Cr), r === Ke)
3566
+ if (r += Xr(t, Pn), r >= Cr && (r -= Cr), r === je)
3566
3567
  throw new Error("Invalid resulting private key");
3567
3568
  return _s(r, pe);
3568
3569
  }
3569
3570
  function Ea(t, e) {
3570
- const r = new K(e);
3571
+ const r = new j(e);
3571
3572
  if (r.cmp(Zr) >= 0)
3572
3573
  throw new Error("Tweak parameter is out of range");
3573
- if (r.iadd(new K(t)), r.cmp(Zr) >= 0 && r.isub(Zr), r.isZero())
3574
+ if (r.iadd(new j(t)), r.cmp(Zr) >= 0 && r.isub(Zr), r.isZero())
3574
3575
  throw new Error("Invalid resulting private key");
3575
3576
  return zt(r, pe);
3576
3577
  }
@@ -3586,10 +3587,10 @@ function _a(t, e, r, o = "blake2", c) {
3586
3587
  if (i.length !== 65)
3587
3588
  throw new Error(`Expected signature with 65 bytes, ${i.length} found instead`);
3588
3589
  const w = ba(Qr(o, t), i, i[64], o), d = Qr(o, w, c), y = V(r);
3589
- return jt(w, y) || (o === "keccak" ? jt(d.slice(-20), y.slice(-20)) : jt(d, y));
3590
+ return Kt(w, y) || (o === "keccak" ? Kt(d.slice(-20), y.slice(-20)) : Kt(d, y));
3590
3591
  }
3591
3592
  function Ba(t) {
3592
- return [33, 65].includes(t.length) && (t = hr(pn(t))), t.slice(-20);
3593
+ return [33, 65].includes(t.length) && (t = hr(yn(t))), t.slice(-20);
3593
3594
  }
3594
3595
  function ro(t) {
3595
3596
  if (!t)
@@ -3605,23 +3606,23 @@ function ro(t) {
3605
3606
  }
3606
3607
  const Sa = {
3607
3608
  256: rr,
3608
- 512: ui
3609
+ 512: di
3609
3610
  }, Aa = {
3610
3611
  256: Jo,
3611
3612
  512: Wo
3612
3613
  };
3613
3614
  function no(t, e, r = 256, o) {
3614
3615
  const c = V(t);
3615
- return !Ht || Vt() ? Aa[r](c, e) : li(Sa[r], c, e);
3616
+ return !Ht || Vt() ? Aa[r](c, e) : ui(Sa[r], c, e);
3616
3617
  }
3617
- const yn = 2147483648;
3618
+ const vn = 2147483648;
3618
3619
  function Ia(t) {
3619
3620
  if (!t.startsWith("m/"))
3620
3621
  return !1;
3621
3622
  const e = t.split("/").slice(1);
3622
3623
  for (const r of e) {
3623
3624
  const o = /^\d+'?$/.test(r) ? parseInt(r.replace(/'$/, ""), 10) : Number.NaN;
3624
- if (isNaN(o) || o >= yn || o < 0)
3625
+ if (isNaN(o) || o >= vn || o < 0)
3625
3626
  return !1;
3626
3627
  }
3627
3628
  return !0;
@@ -3635,7 +3636,7 @@ function io(t, e) {
3635
3636
  };
3636
3637
  }
3637
3638
  function oo(t, e) {
3638
- const r = zt(e, Ks), o = e >= yn ? Ct(new Uint8Array(1), t.secretKey, r) : Ct(t.publicKey, r);
3639
+ const r = zt(e, js), o = e >= vn ? Ct(new Uint8Array(1), t.secretKey, r) : Ct(t.publicKey, r);
3639
3640
  try {
3640
3641
  const c = no(t.chainCode, o, 512);
3641
3642
  return io(Ma(t.secretKey, c.slice(0, 32)), c.slice(32));
@@ -3652,21 +3653,21 @@ function Ua(t, e = "") {
3652
3653
  throw new Error("Invalid derivation path");
3653
3654
  const c = e.split("/").slice(1);
3654
3655
  for (const i of c)
3655
- o = oo(o, parseInt(i, 10) + (i.length > 1 && i.endsWith("'") ? yn : 0));
3656
+ o = oo(o, parseInt(i, 10) + (i.length > 1 && i.endsWith("'") ? vn : 0));
3656
3657
  return o;
3657
3658
  }
3658
3659
  function Na(t, e, r) {
3659
- return !Ht || Vt() ? Qo(t) : os(t, e);
3660
+ return !Ht || Vt() ? Qo(t) : is(t, e);
3660
3661
  }
3661
3662
  function so(t, e, r) {
3662
- return !Ht || Vt() ? Fo(t) : ss(t, e);
3663
+ return !Ht || Vt() ? Fo(t) : os(t, e);
3663
3664
  }
3664
3665
  function Ra(t, e = "", r, o = 32) {
3665
3666
  if (so(t)) {
3666
3667
  if (![32, 64].includes(o))
3667
3668
  throw new Error(`Invalid seed length ${o}, expected 32 or 64`);
3668
3669
  } else throw new Error("Invalid bip39 mnemonic specified");
3669
- return o === 32 ? !Ht || Vt() ? ts(t, e) : Un(t, e).subarray(0, 32) : Un(t, e);
3670
+ return o === 32 ? !Ht || Vt() ? ts(t, e) : Nn(t, e).subarray(0, 32) : Nn(t, e);
3670
3671
  }
3671
3672
  function Oa(t, e = "", r, o) {
3672
3673
  if (so(t, r)) {
@@ -3674,7 +3675,7 @@ function Oa(t, e = "", r, o) {
3674
3675
  return es(t, e);
3675
3676
  } else throw new Error("Invalid bip39 mnemonic specified");
3676
3677
  const c = Na(t, r), i = ee(`mnemonic${e}`);
3677
- return fs(c, i).password.slice(0, 32);
3678
+ return ss(c, i).password.slice(0, 32);
3678
3679
  }
3679
3680
  function De(t, e) {
3680
3681
  return t << e | t >>> 32 - e;
@@ -3838,13 +3839,13 @@ function Va(t, e, r) {
3838
3839
  function za(t, e, r) {
3839
3840
  return Va(t, e, r);
3840
3841
  }
3841
- function Ya(t, e, r = wi(24)) {
3842
+ function Ya(t, e, r = gi(24)) {
3842
3843
  return {
3843
3844
  encrypted: Ha(t, r, e),
3844
3845
  nonce: r
3845
3846
  };
3846
3847
  }
3847
- function ei(t, e, r, o, c, i) {
3848
+ function ri(t, e, r, o, c, i) {
3848
3849
  let w = t[e++] ^ r[o++], d = t[e++] ^ r[o++], y = t[e++] ^ r[o++], x = t[e++] ^ r[o++], v = t[e++] ^ r[o++], E = t[e++] ^ r[o++], M = t[e++] ^ r[o++], U = t[e++] ^ r[o++], C = t[e++] ^ r[o++], k = t[e++] ^ r[o++], _ = t[e++] ^ r[o++], S = t[e++] ^ r[o++], L = t[e++] ^ r[o++], A = t[e++] ^ r[o++], q = t[e++] ^ r[o++], D = t[e++] ^ r[o++], R = w, O = d, $ = y, P = x, J = v, T = E, Z = M, p = U, n = C, f = k, a = _, h = S, l = L, m = A, b = q, u = D;
3849
3850
  for (let s = 0; s < 8; s += 2)
3850
3851
  J ^= G(R + l | 0, 7), n ^= G(J + R | 0, 9), l ^= G(n + J | 0, 13), R ^= G(l + n | 0, 18), f ^= G(T + O | 0, 7), m ^= G(f + T | 0, 9), O ^= G(m + f | 0, 13), T ^= G(O + m | 0, 18), b ^= G(a + Z | 0, 7), $ ^= G(b + a | 0, 9), Z ^= G($ + b | 0, 13), a ^= G(Z + $ | 0, 18), P ^= G(u + h | 0, 7), p ^= G(P + u | 0, 9), h ^= G(p + P | 0, 13), u ^= G(h + p | 0, 18), O ^= G(R + P | 0, 7), $ ^= G(O + R | 0, 9), P ^= G($ + O | 0, 13), R ^= G(P + $ | 0, 18), Z ^= G(T + J | 0, 7), p ^= G(Z + T | 0, 9), J ^= G(p + Z | 0, 13), T ^= G(J + p | 0, 18), h ^= G(a + f | 0, 7), n ^= G(h + a | 0, 9), f ^= G(n + h | 0, 13), a ^= G(f + n | 0, 18), l ^= G(u + b | 0, 7), m ^= G(l + u | 0, 9), b ^= G(m + l | 0, 13), u ^= G(b + m | 0, 18);
@@ -3855,7 +3856,7 @@ function Vr(t, e, r, o, c) {
3855
3856
  for (let d = 0; d < 16; d++)
3856
3857
  r[w + d] = t[e + (2 * c - 1) * 16 + d];
3857
3858
  for (let d = 0; d < c; d++, i += 16, e += 16)
3858
- ei(r, w, t, e, r, i), d > 0 && (w += 16), ei(r, i, t, e += 16, r, w);
3859
+ ri(r, w, t, e, r, i), d > 0 && (w += 16), ri(r, i, t, e += 16, r, w);
3859
3860
  }
3860
3861
  function Xa(t, e, r) {
3861
3862
  const o = _o({
@@ -3866,7 +3867,7 @@ function Xa(t, e, r) {
3866
3867
  if (Ft(c), Ft(i), Ft(w), Ft(d), Ft(y), Ft(x), v !== void 0 && typeof v != "function")
3867
3868
  throw new Error("progressCb should be function");
3868
3869
  const E = 128 * i, M = E / 4;
3869
- if (c <= 1 || c & c - 1 || c > 2 ** 32)
3870
+ if (c <= 1 || (c & c - 1) !== 0 || c > 2 ** 32)
3870
3871
  throw new Error("Scrypt: N must be larger than 1, a power of 2, and less than 2^32");
3871
3872
  if (w < 0 || w > (2 ** 32 - 1) * 32 / E)
3872
3873
  throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");
@@ -3875,7 +3876,7 @@ function Xa(t, e, r) {
3875
3876
  const U = E * (c + w);
3876
3877
  if (U > x)
3877
3878
  throw new Error(`Scrypt: parameters too large, ${U} (128 * r * (N + p)) > ${x} (maxmem)`);
3878
- const C = di(rr, t, e, { c: 1, dkLen: E * w }), k = Ve(C), _ = Ve(new Uint8Array(E * c)), S = Ve(new Uint8Array(E));
3879
+ const C = wi(rr, t, e, { c: 1, dkLen: E * w }), k = Ve(C), _ = Ve(new Uint8Array(E * c)), S = Ve(new Uint8Array(E));
3879
3880
  let L = () => {
3880
3881
  };
3881
3882
  if (v) {
@@ -3887,13 +3888,13 @@ function Xa(t, e, r) {
3887
3888
  }
3888
3889
  return { N: c, r: i, p: w, dkLen: d, blockSize32: M, V: _, B32: k, B: C, tmp: S, blockMixCb: L, asyncTick: y };
3889
3890
  }
3890
- function ja(t, e, r, o, c) {
3891
- const i = di(rr, t, r, { c: 1, dkLen: e });
3891
+ function Ka(t, e, r, o, c) {
3892
+ const i = wi(rr, t, r, { c: 1, dkLen: e });
3892
3893
  return r.fill(0), o.fill(0), c.fill(0), i;
3893
3894
  }
3894
- function Ka(t, e, r) {
3895
+ function ja(t, e, r) {
3895
3896
  const { N: o, r: c, p: i, dkLen: w, blockSize32: d, V: y, B32: x, B: v, tmp: E, blockMixCb: M } = Xa(t, e, r);
3896
- Xe || je(x);
3897
+ Xe || Ke(x);
3897
3898
  for (let U = 0; U < i; U++) {
3898
3899
  const C = d * U;
3899
3900
  for (let k = 0; k < d; k++)
@@ -3908,18 +3909,18 @@ function Ka(t, e, r) {
3908
3909
  Vr(E, 0, x, C, c), M();
3909
3910
  }
3910
3911
  }
3911
- return Xe || je(x), ja(t, w, v, y, E);
3912
+ return Xe || Ke(x), Ka(t, w, v, y, E);
3912
3913
  }
3913
3914
  const Ye = {
3914
3915
  N: 32768,
3915
3916
  p: 1,
3916
3917
  r: 8
3917
3918
  };
3918
- function co(t, e = wi(), r = Ye, o) {
3919
+ function co(t, e = gi(), r = Ye, o) {
3919
3920
  const c = V(t);
3920
3921
  return {
3921
3922
  params: r,
3922
- password: !Ht || Vt() ? rs(c, e, Math.log2(r.N), r.r, r.p) : Ka(c, e, on({ dkLen: 64 }, r)),
3923
+ password: !Ht || Vt() ? rs(c, e, Math.log2(r.N), r.r, r.p) : ja(c, e, on({ dkLen: 64 }, r)),
3923
3924
  salt: e
3924
3925
  };
3925
3926
  }
@@ -3932,7 +3933,7 @@ function Ga(t) {
3932
3933
  function Wa(t, { N: e, p: r, r: o }) {
3933
3934
  return Ct(t, zt(e, Or), zt(r, Or), zt(o, Or));
3934
3935
  }
3935
- const lo = ["scrypt", "xsalsa20-poly1305"], Ja = ["none"], Qa = "3", ri = 24, Fa = 32 + 3 * 4;
3936
+ const lo = ["scrypt", "xsalsa20-poly1305"], Ja = ["none"], Qa = "3", ni = 24, Fa = 32 + 3 * 4;
3936
3937
  function t0(t, e, r = lo) {
3937
3938
  if (t) {
3938
3939
  if (r.includes("xsalsa20-poly1305") && !e)
@@ -3946,7 +3947,7 @@ function t0(t, e, r = lo) {
3946
3947
  c = co(e, w, i).password, t = t.subarray(Fa);
3947
3948
  } else
3948
3949
  c = ee(e);
3949
- o = za(t.subarray(ri), t.subarray(0, ri), ys(c, 256, !0));
3950
+ o = za(t.subarray(ni), t.subarray(0, ni), ys(c, 256, !0));
3950
3951
  }
3951
3952
  if (!o)
3952
3953
  throw new Error("Unable to decode using the supplied passphrase");
@@ -3962,9 +3963,9 @@ function e0(t, e, r) {
3962
3963
  }
3963
3964
  };
3964
3965
  }
3965
- const ni = (t) => (e, r, o) => _a(e, r, o, t), uo = [
3966
- ["ecdsa", ni("blake2")],
3967
- ["ethereum", ni("keccak")]
3966
+ const ii = (t) => (e, r, o) => _a(e, r, o, t), uo = [
3967
+ ["ecdsa", ii("blake2")],
3968
+ ["ethereum", ii("keccak")]
3968
3969
  ], r0 = [
3969
3970
  ["ed25519", zi],
3970
3971
  ["sr25519", Gi],
@@ -4001,22 +4002,22 @@ function i0(t, { message: e, publicKey: r, signature: o }) {
4001
4002
  function o0(t) {
4002
4003
  return [0, 1, 2].includes(t[0]) && [65, 66].includes(t.length) ? i0 : wo;
4003
4004
  }
4004
- function ii(t, e, r) {
4005
+ function oi(t, e, r) {
4005
4006
  const o = V(e);
4006
4007
  if (![64, 65, 66].includes(o.length))
4007
4008
  throw new Error(`Invalid signature length, expected [64..66] bytes, found ${o.length}`);
4008
4009
  const c = ge(r), i = { message: V(t), publicKey: c, signature: o }, w = { crypto: "none", isValid: !1, isWrapped: We(i.message, !0), publicKey: c }, d = We(i.message, !1), y = o0(o);
4009
4010
  return y(w, i), w.crypto !== "none" || w.isWrapped && !d ? w : (i.message = d ? bs(i.message) : xs(i.message), y(w, i));
4010
4011
  }
4011
- const s0 = [as, $s], f0 = { name: "@polkadot/keyring", path: import.meta && import.meta.url ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" };
4012
- us(f0, null, s0);
4013
- const ue = new Uint8Array([161, 35, 3, 33, 0]), er = new Uint8Array([48, 83, 2, 1, 1, 48, 5, 6, 3, 43, 101, 112, 4, 34, 4, 32]), a0 = 32, oi = 64, h0 = 32, _e = er.length;
4012
+ const s0 = [fs, $s], f0 = { name: "@polkadot/keyring", path: import.meta && import.meta.url ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" };
4013
+ ls(f0, null, s0);
4014
+ const ue = new Uint8Array([161, 35, 3, 33, 0]), er = new Uint8Array([48, 83, 2, 1, 1, 48, 5, 6, 3, 43, 101, 112, 4, 34, 4, 32]), a0 = 32, si = 64, h0 = 32, _e = er.length;
4014
4015
  function c0(t, e, r) {
4015
4016
  const o = Array.isArray(r) || r === void 0 ? r : [r], c = t0(e, t, o), i = c.subarray(0, er.length);
4016
- if (!jt(i, er))
4017
+ if (!Kt(i, er))
4017
4018
  throw new Error("Invalid Pkcs8 header found in body");
4018
- let w = c.subarray(_e, _e + oi), d = _e + oi, y = c.subarray(d, d + ue.length);
4019
- if (!jt(y, ue) && (d = _e + h0, w = c.subarray(_e, d), y = c.subarray(d, d + ue.length), !jt(y, ue)))
4019
+ let w = c.subarray(_e, _e + si), d = _e + si, y = c.subarray(d, d + ue.length);
4020
+ if (!Kt(y, ue) && (d = _e + h0, w = c.subarray(_e, d), y = c.subarray(d, d + ue.length), !Kt(y, ue)))
4020
4021
  throw new Error("Invalid Pkcs8 divider found in body");
4021
4022
  const x = d + ue.length;
4022
4023
  return {
@@ -4041,29 +4042,29 @@ function u0(t, { address: e, meta: r }, o, c) {
4041
4042
  }
4042
4043
  const d0 = new Uint8Array(), w0 = {
4043
4044
  ecdsa: be,
4044
- ed25519: gn,
4045
+ ed25519: mn,
4045
4046
  ethereum: be,
4046
- sr25519: Ki
4047
- }, si = {
4047
+ sr25519: ji
4048
+ }, fi = {
4048
4049
  ecdsa: new Uint8Array([2]),
4049
4050
  ed25519: new Uint8Array([0]),
4050
4051
  ethereum: new Uint8Array([2]),
4051
4052
  sr25519: new Uint8Array([1])
4052
- }, fi = {
4053
- ecdsa: (t, e) => ti(t, e, "blake2"),
4053
+ }, ai = {
4054
+ ecdsa: (t, e) => ei(t, e, "blake2"),
4054
4055
  ed25519: Gf,
4055
- ethereum: (t, e) => ti(t, e, "keccak"),
4056
+ ethereum: (t, e) => ei(t, e, "keccak"),
4056
4057
  sr25519: na
4057
4058
  }, He = {
4058
4059
  ecdsa: (t) => t.length > 32 ? he(t) : t,
4059
4060
  ed25519: (t) => t,
4060
- ethereum: (t) => t.length === 20 ? t : hr(pn(t)),
4061
+ ethereum: (t) => t.length === 20 ? t : hr(yn(t)),
4061
4062
  sr25519: (t) => t
4062
4063
  };
4063
4064
  function Be(t) {
4064
4065
  return !t || bi(t);
4065
4066
  }
4066
- function ai(t, e, r) {
4067
+ function hi(t, e, r) {
4067
4068
  return he(Ct(e || "", r || "", t));
4068
4069
  }
4069
4070
  function de({ toSS58: t, type: e }, { publicKey: r, secretKey: o }, c = {}, i = null, w) {
@@ -4106,7 +4107,7 @@ function de({ toSS58: t, type: e }, { publicKey: r, secretKey: o }, c = {}, i =
4106
4107
  throw new Error("Unable to derive on this keypair");
4107
4108
  if (Be(o))
4108
4109
  throw new Error("Cannot derive on a locked keypair");
4109
- const { path: M } = Li(v), U = ji({ publicKey: r, secretKey: o }, M, e);
4110
+ const { path: M } = Li(v), U = Ki({ publicKey: r, secretKey: o }, M, e);
4110
4111
  return de({ toSS58: t, type: e }, U, E, null);
4111
4112
  },
4112
4113
  encodePkcs8: (v) => y(v),
@@ -4119,29 +4120,29 @@ function de({ toSS58: t, type: e }, { publicKey: r, secretKey: o }, c = {}, i =
4119
4120
  sign: (v, E = {}) => {
4120
4121
  if (Be(o))
4121
4122
  throw new Error("Cannot sign with a locked key pair");
4122
- return Ct(E.withType ? si[e] : d0, fi[e](V(v), { publicKey: r, secretKey: o }));
4123
+ return Ct(E.withType ? fi[e] : d0, ai[e](V(v), { publicKey: r, secretKey: o }));
4123
4124
  },
4124
4125
  toJson: (v) => {
4125
4126
  const E = ["ecdsa", "ethereum"].includes(e) ? r.length === 20 ? Ae(r) : Ae(to(r)) : x();
4126
4127
  return u0(e, { address: E, meta: c }, y(v), !!v);
4127
4128
  },
4128
4129
  unlock: (v) => d(v),
4129
- verify: (v, E, M) => ii(v, E, He[e](V(M))).isValid,
4130
+ verify: (v, E, M) => oi(v, E, He[e](V(M))).isValid,
4130
4131
  vrfSign: (v, E, M) => {
4131
4132
  if (Be(o))
4132
4133
  throw new Error("Cannot sign with a locked key pair");
4133
4134
  if (e === "sr25519")
4134
4135
  return ia(v, { secretKey: o }, E, M);
4135
- const U = fi[e](V(v), { publicKey: r, secretKey: o });
4136
- return Ct(ai(U, E, M), U);
4136
+ const U = ai[e](V(v), { publicKey: r, secretKey: o });
4137
+ return Ct(hi(U, E, M), U);
4137
4138
  },
4138
- vrfVerify: (v, E, M, U, C) => e === "sr25519" ? oa(v, E, r, U, C) : ii(v, Ct(si[e], E.subarray(32)), He[e](V(M))).isValid && jt(E.subarray(0, 32), ai(E.subarray(32), U, C))
4139
+ vrfVerify: (v, E, M, U, C) => e === "sr25519" ? oa(v, E, r, U, C) : oi(v, Ct(fi[e], E.subarray(32)), He[e](V(M))).isValid && Kt(E.subarray(0, 32), hi(E.subarray(32), U, C))
4139
4140
  };
4140
4141
  }
4141
4142
  const g0 = "bottom drive obey lake curtain smoke basket hold race lonely fit walk";
4142
4143
  class m0 {
4143
4144
  constructor() {
4144
- Kt(this, "__internal__map", {});
4145
+ jt(this, "__internal__map", {});
4145
4146
  }
4146
4147
  add(e) {
4147
4148
  return this.__internal__map[ge(e.address).toString()] = e, e;
@@ -4161,24 +4162,24 @@ class m0 {
4161
4162
  }
4162
4163
  const zr = {
4163
4164
  ecdsa: (t) => be(t),
4164
- ed25519: (t) => gn(t),
4165
+ ed25519: (t) => mn(t),
4165
4166
  ethereum: (t) => be(t),
4166
- sr25519: (t) => Ki(t)
4167
+ sr25519: (t) => ji(t)
4167
4168
  };
4168
4169
  function p0({ publicKey: t }) {
4169
4170
  return t;
4170
4171
  }
4171
- class O0 {
4172
+ class L0 {
4172
4173
  constructor(e = {}) {
4173
- Kt(this, "__internal__pairs");
4174
- Kt(this, "__internal__type");
4175
- Kt(this, "__internal__ss58");
4176
- Kt(this, "decodeAddress", ge);
4174
+ jt(this, "__internal__pairs");
4175
+ jt(this, "__internal__type");
4176
+ jt(this, "__internal__ss58");
4177
+ jt(this, "decodeAddress", ge);
4177
4178
  /**
4178
4179
  * @name encodeAddress
4179
4180
  * @description Encodes the input into an ss58 representation
4180
4181
  */
4181
- Kt(this, "encodeAddress", (e, r) => this.type === "ethereum" ? ro(e) : sa(e, r ?? this.__internal__ss58));
4182
+ jt(this, "encodeAddress", (e, r) => this.type === "ethereum" ? ro(e) : sa(e, r ?? this.__internal__ss58));
4182
4183
  if (e.type = e.type || "ed25519", !["ecdsa", "ethereum", "ed25519", "sr25519"].includes(e.type || "undefined"))
4183
4184
  throw new Error(`Expected a keyring type of either 'ed25519', 'sr25519', 'ethereum' or 'ecdsa', found '${e.type || "unknown"}`);
4184
4185
  this.__internal__pairs = new m0(), this.__internal__ss58 = e.ss58Format, this.__internal__type = e.type;
@@ -4307,7 +4308,7 @@ class O0 {
4307
4308
  x = ee(y.padEnd(32));
4308
4309
  }
4309
4310
  }
4310
- const E = o === "ethereum" ? v ? zr[o](x) : Ua(x, i.substring(1)) : ji(zr[o](x), d, o);
4311
+ const E = o === "ethereum" ? v ? zr[o](x) : Ua(x, i.substring(1)) : Ki(zr[o](x), d, o);
4311
4312
  return de({ toSS58: this.encodeAddress, type: o }, E, r, null);
4312
4313
  }
4313
4314
  /**
@@ -4363,10 +4364,10 @@ class O0 {
4363
4364
  }
4364
4365
  export {
4365
4366
  g0 as DEV_PHRASE,
4366
- O0 as Keyring,
4367
+ L0 as Keyring,
4367
4368
  de as createPair,
4368
4369
  ge as decodeAddress,
4369
- O0 as default,
4370
+ L0 as default,
4370
4371
  sa as encodeAddress,
4371
4372
  f0 as packageInfo
4372
4373
  };