@ozdao/prometheus-framework 0.2.31 → 0.2.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (469) hide show
  1. package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -1
  2. package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +222 -218
  3. package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -1
  4. package/dist/node_modules/@noble/curves/esm/abstract/modular.js +102 -91
  5. package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -1
  6. package/dist/node_modules/@noble/curves/esm/abstract/utils.js +138 -115
  7. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -1
  8. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +185 -185
  9. package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +1 -1
  10. package/dist/node_modules/@noble/curves/esm/secp256k1.js +11 -8
  11. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  12. package/dist/node_modules/@noble/hashes/esm/_assert.js +29 -33
  13. package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +1 -1
  14. package/dist/node_modules/@noble/hashes/esm/_sha2.js +15 -15
  15. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  16. package/dist/node_modules/@noble/hashes/esm/_u64.js +38 -20
  17. package/dist/node_modules/@noble/hashes/esm/hmac.cjs +1 -1
  18. package/dist/node_modules/@noble/hashes/esm/hmac.js +20 -20
  19. package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +1 -1
  20. package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +20 -20
  21. package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +1 -1
  22. package/dist/node_modules/@noble/hashes/esm/scrypt.js +41 -41
  23. package/dist/node_modules/@noble/hashes/esm/sha256.cjs +1 -1
  24. package/dist/node_modules/@noble/hashes/esm/sha256.js +23 -29
  25. package/dist/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
  26. package/dist/node_modules/@noble/hashes/esm/sha3.js +44 -55
  27. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  28. package/dist/node_modules/@noble/hashes/esm/sha512.js +23 -41
  29. package/dist/node_modules/@noble/hashes/esm/utils.cjs +1 -1
  30. package/dist/node_modules/@noble/hashes/esm/utils.js +37 -33
  31. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +20 -0
  32. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +3974 -0
  33. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -0
  34. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1202 -0
  35. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -0
  36. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +97 -0
  37. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +1 -0
  38. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +37 -0
  39. package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +1 -0
  40. package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +22 -0
  41. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  42. package/dist/node_modules/ethereum-cryptography/esm/utils.js +1 -4
  43. package/dist/node_modules/js-cookie/dist/js.cookie.cjs +1 -0
  44. package/dist/node_modules/js-cookie/dist/js.cookie.js +74 -0
  45. package/dist/node_modules/vue3-carousel/dist/carousel.es.cjs +4 -4
  46. package/dist/node_modules/vue3-carousel/dist/carousel.es.js +340 -244
  47. package/dist/node_modules/web3/lib/esm/abi.cjs +1 -1
  48. package/dist/node_modules/web3/lib/esm/abi.js +5 -10
  49. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  50. package/dist/node_modules/web3/lib/esm/accounts.js +27 -24
  51. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  52. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  53. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
  54. package/dist/node_modules/web3/lib/esm/web3.js +53 -57
  55. package/dist/node_modules/web3-core/lib/esm/utils.cjs +1 -1
  56. package/dist/node_modules/web3-core/lib/esm/utils.js +3 -4
  57. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
  58. package/dist/node_modules/web3-core/lib/esm/web3_config.js +22 -19
  59. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  60. package/dist/node_modules/web3-core/lib/esm/web3_context.js +72 -57
  61. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  62. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +53 -61
  63. package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +8 -8
  64. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  65. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +1 -1
  66. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  67. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +42 -42
  68. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  69. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +19 -19
  70. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  71. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +29 -29
  72. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -0
  73. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +51 -0
  74. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  75. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +1 -1
  76. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
  77. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +1 -1
  78. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +132 -47
  79. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +1 -1
  80. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +21 -15
  81. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +1 -1
  82. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +15 -13
  83. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +1 -1
  84. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +1 -1
  85. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +1 -1
  86. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +61 -53
  87. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +1 -1
  88. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +36 -9
  89. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  90. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +107 -103
  91. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -1
  92. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +135 -133
  93. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +1 -1
  94. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +47 -31
  95. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +1 -1
  96. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +18 -17
  97. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  98. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +113 -111
  99. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  100. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +27 -27
  101. package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +1 -1
  102. package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +28 -40
  103. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -1
  104. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +10 -10
  105. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  106. package/dist/node_modules/web3-utils/lib/esm/converters.js +78 -75
  107. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
  108. package/dist/node_modules/web3-utils/lib/esm/formatter.js +8 -8
  109. package/dist/node_modules/web3-utils/lib/esm/hash.cjs +1 -1
  110. package/dist/node_modules/web3-utils/lib/esm/hash.js +44 -43
  111. package/dist/node_modules/web3-utils/lib/esm/index.cjs +1 -1
  112. package/dist/node_modules/web3-utils/lib/esm/index.js +64 -62
  113. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  114. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +78 -40
  115. package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -1
  116. package/dist/node_modules/web3-utils/lib/esm/uint8array.js +16 -11
  117. package/dist/node_modules/web3-utils/lib/esm/validation.cjs +1 -1
  118. package/dist/node_modules/web3-utils/lib/esm/validation.js +45 -33
  119. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  120. package/dist/node_modules/web3-validator/lib/esm/utils.js +127 -104
  121. package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +1 -1
  122. package/dist/node_modules/web3-validator/lib/esm/validation/address.js +12 -11
  123. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
  124. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +17 -13
  125. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs +1 -1
  126. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +7 -9
  127. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -1
  128. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +8 -8
  129. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +1 -1
  130. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +3 -3
  131. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
  132. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +52 -52
  133. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
  134. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2501 -2482
  135. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +2 -1
  136. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +75 -61
  137. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
  138. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +33 -33
  139. package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
  140. package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +1 -1
  141. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -1
  142. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +1 -1
  143. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -1
  144. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +4 -2
  145. package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.cjs +1 -0
  146. package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.js +701 -0
  147. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs +1 -1
  148. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +14 -7
  149. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
  150. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  151. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/components/Address/Address.vue.js +2 -80
  153. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  154. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +80 -2
  155. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -0
  156. package/dist/prometheus-framework/src/components/Block/Block.vue.js +62 -0
  157. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
  158. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +15 -15
  159. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  160. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +51 -40
  161. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  162. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +21 -21
  163. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  164. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -7
  165. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
  166. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +12 -13
  167. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  168. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
  169. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  170. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
  171. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  172. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +53 -36
  173. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -0
  174. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +117 -0
  175. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  176. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +48 -40
  177. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  178. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -2
  179. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
  180. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +20 -10
  181. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  182. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +2 -98
  183. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.cjs +1 -1
  184. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.js +2 -2
  185. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  186. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +25 -27
  187. package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -0
  188. package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +55 -0
  189. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/components/Select/Select.vue.js +55 -40
  191. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  192. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +5 -5
  193. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  194. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +1 -1
  195. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -0
  196. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -0
  197. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -0
  198. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -0
  199. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +2 -73
  201. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  202. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +73 -2
  203. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  204. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +3 -3
  205. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  206. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +94 -33
  207. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +12 -12
  209. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +69 -61
  211. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +26 -27
  213. package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.js +2 -2
  215. package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.js +7 -7
  217. package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.js +2 -2
  219. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +3 -3
  221. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +3 -3
  223. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/auth/store/auth.js +30 -30
  225. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  227. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  229. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +9 -9
  231. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +90 -47
  233. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +166 -133
  235. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +86 -68
  237. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +105 -41
  239. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +16 -16
  241. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +51 -42
  243. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  244. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +14 -14
  245. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +2 -2
  246. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  247. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +108 -94
  248. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  249. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +19 -19
  250. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  251. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +11 -11
  252. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +2 -2
  253. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +40 -29
  255. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +10 -9
  257. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +1 -1
  259. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +27 -16
  261. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +21 -21
  263. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -3
  264. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +31 -28
  265. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -0
  266. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +48 -0
  267. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -0
  268. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +33 -0
  269. package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.cjs +1 -0
  270. package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.js +13 -0
  271. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +106 -85
  273. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +31 -34
  275. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +8 -8
  276. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  277. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
  278. package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
  279. package/dist/prometheus-framework/src/modules/events/router/events.js +1 -1
  280. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  281. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  282. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  283. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  284. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  285. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +13 -6
  286. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  287. package/dist/prometheus-framework/src/modules/globals/store/globals.js +50 -22
  288. package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +1 -1
  289. package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.js +13 -13
  290. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
  291. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.js +3 -3
  292. package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.cjs +1 -1
  293. package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.js +5 -5
  294. package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.cjs +1 -0
  295. package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.js +21 -0
  296. package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.cjs +1 -0
  297. package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.js +21 -0
  298. package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.cjs +1 -0
  299. package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.js +21 -0
  300. package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
  301. package/dist/prometheus-framework/src/modules/icons/icons.client.js +38 -34
  302. package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.cjs +1 -1
  303. package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.js +9 -9
  304. package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.cjs +1 -1
  305. package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.js +7 -7
  306. package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.cjs +1 -0
  307. package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.js +30 -0
  308. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
  309. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +12 -12
  310. package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.cjs +1 -0
  311. package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.js +27 -0
  312. package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.cjs +1 -0
  313. package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.js +29 -0
  314. package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.cjs +1 -0
  315. package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.js +33 -0
  316. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.cjs +1 -0
  317. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.js +21 -0
  318. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.cjs +1 -0
  319. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.js +28 -0
  320. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.cjs +1 -1
  321. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.js +21 -20
  322. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
  323. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.js +5 -5
  324. package/dist/prometheus-framework/src/modules/icons/socials/line.vue.cjs +1 -1
  325. package/dist/prometheus-framework/src/modules/icons/socials/line.vue.js +6 -6
  326. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
  327. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.js +1 -1
  328. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.cjs +1 -1
  329. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +7 -7
  330. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
  331. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +6 -6
  332. package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.cjs +1 -1
  333. package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.js +1 -1
  334. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  335. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +48 -35
  336. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -0
  337. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +63 -0
  338. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
  339. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +6 -8
  340. package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.cjs +1 -1
  341. package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.js +5 -7
  342. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
  343. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +16 -22
  344. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -0
  345. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -0
  346. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  347. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +61 -88
  348. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  349. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +104 -193
  350. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  351. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +29 -31
  352. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -0
  353. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +129 -0
  354. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  355. package/dist/prometheus-framework/src/modules/orders/store/orders.js +45 -36
  356. package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
  357. package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +27 -26
  358. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  359. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +6 -6
  360. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  361. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +85 -79
  362. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
  363. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +10 -10
  364. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
  365. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +29 -23
  366. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  367. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +5 -5
  368. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  369. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +4 -4
  370. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  371. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +55 -169
  372. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  373. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +48 -59
  374. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  375. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +173 -94
  376. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  377. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +27 -20
  378. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  379. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +43 -33
  380. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  381. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +67 -63
  382. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  383. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +28 -30
  384. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  385. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +2 -2
  386. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  387. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  388. package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
  389. package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +2 -2
  390. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  391. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +9 -6
  392. package/dist/prometheus-framework/src/modules/organizations/router/products.router.cjs +1 -1
  393. package/dist/prometheus-framework/src/modules/organizations/router/products.router.js +69 -20
  394. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  395. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  396. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  397. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  398. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  399. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +38 -38
  400. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
  401. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +2 -2
  402. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  403. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +39 -44
  404. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  405. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +73 -44
  406. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  407. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +25 -54
  408. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  409. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +39 -39
  410. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  411. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
  412. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -0
  413. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +4 -0
  414. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs +1 -1
  415. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js +18 -11
  416. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
  417. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +24 -24
  418. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -0
  419. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +140 -0
  420. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -0
  421. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -0
  422. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  423. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +27 -23
  424. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  425. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +24 -25
  426. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  427. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +246 -102
  428. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  429. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +28 -24
  430. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  431. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +23 -24
  432. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  433. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +56 -7
  434. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  435. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +82 -65
  436. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  437. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +71 -54
  438. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -0
  439. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -0
  440. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  441. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +60 -86
  442. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  443. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +29 -37
  444. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  445. package/dist/prometheus-framework/src/modules/products/store/products.js +32 -29
  446. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  447. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +43 -107
  448. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  449. package/dist/prometheus-framework/src/modules/spots/store/spots.js +46 -40
  450. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  451. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +89 -94
  452. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  453. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  454. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  455. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +30 -30
  456. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  457. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  458. package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
  459. package/dist/prometheus-framework/src/modules/users/router/users.js +2 -2
  460. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  461. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +80 -71
  462. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -0
  463. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +29 -0
  464. package/dist/style.css +1 -1
  465. package/package.json +1 -1
  466. package/src/modules/orders/components/blocks/CardOrder.vue +2 -2
  467. package/src/modules/orders/components/pages/Orders.vue +0 -4
  468. package/src/modules/products/components/sections/FilterProducts.vue +9 -10
  469. package/src/modules/wallet/components/pages/Wallet.vue +2 -3
@@ -1,11 +1,11 @@
1
- import { mod as ut, hashToPrivateScalar as dt, invert as ht } from "./modular.js";
2
- import * as mt from "./utils.js";
3
- import { bytesToNumberBE as _, bitMask as yt, concatBytes as et, validateObject as lt, ensureBytes as Y, hexToBytes as at, numberToBytesBE as rt, createHmacDrbg as pt, bytesToHex as nt } from "./utils.js";
4
- import { wNAF as wt, validateBasic as ft } from "./curve.js";
1
+ import { mod as lt, getMinHashLength as ht, mapHashToField as mt, invert as pt } from "./modular.js";
2
+ import * as yt from "./utils.js";
3
+ import { bytesToNumberBE as _, bitMask as wt, concatBytes as rt, validateObject as ft, ensureBytes as Y, hexToBytes as at, createHmacDrbg as Et, isBytes as tt, bytesToHex as nt, numberToBytesBE as ct } from "./utils.js";
4
+ import { wNAF as gt, validateBasic as dt } from "./curve.js";
5
5
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
6
- function Et(B) {
7
- const n = ft(B);
8
- lt(n, {
6
+ function bt(B) {
7
+ const n = dt(B);
8
+ ft(n, {
9
9
  a: "field",
10
10
  b: "field"
11
11
  }, {
@@ -26,7 +26,7 @@ function Et(B) {
26
26
  }
27
27
  return Object.freeze({ ...n });
28
28
  }
29
- const { bytesToNumberBE: gt, hexToBytes: bt } = mt, k = {
29
+ const { bytesToNumberBE: Bt, hexToBytes: vt } = yt, k = {
30
30
  // asn.1 DER encoding utils
31
31
  Err: class extends Error {
32
32
  constructor(n = "") {
@@ -44,58 +44,58 @@ const { bytesToNumberBE: gt, hexToBytes: bt } = mt, k = {
44
44
  throw new n("Invalid signature integer: negative");
45
45
  if (v[0] === 0 && !(v[1] & 128))
46
46
  throw new n("Invalid signature integer: unnecessary leading zero");
47
- return { d: gt(v), l: B.subarray(t + 2) };
47
+ return { d: Bt(v), l: B.subarray(t + 2) };
48
48
  },
49
49
  toSig(B) {
50
- const { Err: n } = k, t = typeof B == "string" ? bt(B) : B;
51
- if (!(t instanceof Uint8Array))
50
+ const { Err: n } = k, t = typeof B == "string" ? vt(B) : B;
51
+ if (!tt(t))
52
52
  throw new Error("ui8a expected");
53
53
  let v = t.length;
54
54
  if (v < 2 || t[0] != 48)
55
55
  throw new n("Invalid signature tag");
56
56
  if (t[1] !== v - 2)
57
57
  throw new n("Invalid signature: incorrect length");
58
- const { d: A, l: O } = k._parseInt(t.subarray(2)), { d: F, l: S } = k._parseInt(O);
58
+ const { d: A, l: O } = k._parseInt(t.subarray(2)), { d: C, l: S } = k._parseInt(O);
59
59
  if (S.length)
60
60
  throw new n("Invalid signature: left bytes after parsing");
61
- return { r: A, s: F };
61
+ return { r: A, s: C };
62
62
  },
63
63
  hexFromSig(B) {
64
64
  const n = (x) => Number.parseInt(x[0], 16) & 8 ? "00" + x : x, t = (x) => {
65
- const U = x.toString(16);
66
- return U.length & 1 ? `0${U}` : U;
67
- }, v = n(t(B.s)), A = n(t(B.r)), O = v.length / 2, F = A.length / 2, S = t(O), L = t(F);
68
- return `30${t(F + O + 4)}02${L}${A}02${S}${v}`;
65
+ const F = x.toString(16);
66
+ return F.length & 1 ? `0${F}` : F;
67
+ }, v = n(t(B.s)), A = n(t(B.r)), O = v.length / 2, C = A.length / 2, S = t(O), H = t(C);
68
+ return `30${t(C + O + 4)}02${H}${A}02${S}${v}`;
69
69
  }
70
- }, C = BigInt(0), z = BigInt(1);
70
+ }, L = BigInt(0), z = BigInt(1);
71
71
  BigInt(2);
72
- const ct = BigInt(3);
72
+ const ut = BigInt(3);
73
73
  BigInt(4);
74
- function Bt(B) {
75
- const n = Et(B), { Fp: t } = n, v = n.toBytes || ((m, e, i) => {
76
- const s = e.toAffine();
77
- return et(Uint8Array.from([4]), t.toBytes(s.x), t.toBytes(s.y));
74
+ function xt(B) {
75
+ const n = bt(B), { Fp: t } = n, v = n.toBytes || ((m, r, i) => {
76
+ const s = r.toAffine();
77
+ return rt(Uint8Array.from([4]), t.toBytes(s.x), t.toBytes(s.y));
78
78
  }), A = n.fromBytes || ((m) => {
79
- const e = m.subarray(1), i = t.fromBytes(e.subarray(0, t.BYTES)), s = t.fromBytes(e.subarray(t.BYTES, 2 * t.BYTES));
79
+ const r = m.subarray(1), i = t.fromBytes(r.subarray(0, t.BYTES)), s = t.fromBytes(r.subarray(t.BYTES, 2 * t.BYTES));
80
80
  return { x: i, y: s };
81
81
  });
82
82
  function O(m) {
83
- const { a: e, b: i } = n, s = t.sqr(m), u = t.mul(s, m);
84
- return t.add(t.add(u, t.mul(m, e)), i);
83
+ const { a: r, b: i } = n, s = t.sqr(m), u = t.mul(s, m);
84
+ return t.add(t.add(u, t.mul(m, r)), i);
85
85
  }
86
86
  if (!t.eql(t.sqr(n.Gy), O(n.Gx)))
87
87
  throw new Error("bad generator point: equation left != right");
88
- function F(m) {
89
- return typeof m == "bigint" && C < m && m < n.n;
88
+ function C(m) {
89
+ return typeof m == "bigint" && L < m && m < n.n;
90
90
  }
91
91
  function S(m) {
92
- if (!F(m))
92
+ if (!C(m))
93
93
  throw new Error("Expected valid bigint: 0 < bigint < curve.n");
94
94
  }
95
- function L(m) {
96
- const { allowedPrivateKeyLengths: e, nByteLength: i, wrapPrivateKey: s, n: u } = n;
97
- if (e && typeof m != "bigint") {
98
- if (m instanceof Uint8Array && (m = nt(m)), typeof m != "string" || !e.includes(m.length))
95
+ function H(m) {
96
+ const { allowedPrivateKeyLengths: r, nByteLength: i, wrapPrivateKey: s, n: u } = n;
97
+ if (r && typeof m != "bigint") {
98
+ if (tt(m) && (m = nt(m)), typeof m != "string" || !r.includes(m.length))
99
99
  throw new Error("Invalid key");
100
100
  m = m.padStart(i * 2, "0");
101
101
  }
@@ -105,16 +105,16 @@ function Bt(B) {
105
105
  } catch {
106
106
  throw new Error(`private key must be ${i} bytes, hex or bigint, not ${typeof m}`);
107
107
  }
108
- return s && (f = ut(f, u)), S(f), f;
108
+ return s && (f = lt(f, u)), S(f), f;
109
109
  }
110
110
  const x = /* @__PURE__ */ new Map();
111
- function U(m) {
112
- if (!(m instanceof y))
111
+ function F(m) {
112
+ if (!(m instanceof p))
113
113
  throw new Error("ProjectivePoint expected");
114
114
  }
115
- class y {
116
- constructor(e, i, s) {
117
- if (this.px = e, this.py = i, this.pz = s, e == null || !t.isValid(e))
115
+ class p {
116
+ constructor(r, i, s) {
117
+ if (this.px = r, this.py = i, this.pz = s, r == null || !t.isValid(r))
118
118
  throw new Error("x required");
119
119
  if (i == null || !t.isValid(i))
120
120
  throw new Error("y required");
@@ -123,14 +123,14 @@ function Bt(B) {
123
123
  }
124
124
  // Does not validate if the point is on-curve.
125
125
  // Use fromHex instead, or call assertValidity() later.
126
- static fromAffine(e) {
127
- const { x: i, y: s } = e || {};
128
- if (!e || !t.isValid(i) || !t.isValid(s))
126
+ static fromAffine(r) {
127
+ const { x: i, y: s } = r || {};
128
+ if (!r || !t.isValid(i) || !t.isValid(s))
129
129
  throw new Error("invalid affine point");
130
- if (e instanceof y)
130
+ if (r instanceof p)
131
131
  throw new Error("projective point not allowed");
132
132
  const u = (f) => t.eql(f, t.ZERO);
133
- return u(i) && u(s) ? y.ZERO : new y(i, s, t.ONE);
133
+ return u(i) && u(s) ? p.ZERO : new p(i, s, t.ONE);
134
134
  }
135
135
  get x() {
136
136
  return this.toAffine().x;
@@ -144,95 +144,95 @@ function Bt(B) {
144
144
  * so this improves performance massively.
145
145
  * Optimization: converts a list of projective points to a list of identical points with Z=1.
146
146
  */
147
- static normalizeZ(e) {
148
- const i = t.invertBatch(e.map((s) => s.pz));
149
- return e.map((s, u) => s.toAffine(i[u])).map(y.fromAffine);
147
+ static normalizeZ(r) {
148
+ const i = t.invertBatch(r.map((s) => s.pz));
149
+ return r.map((s, u) => s.toAffine(i[u])).map(p.fromAffine);
150
150
  }
151
151
  /**
152
152
  * Converts hash string or Uint8Array to Point.
153
153
  * @param hex short/long ECDSA hex
154
154
  */
155
- static fromHex(e) {
156
- const i = y.fromAffine(A(Y("pointHex", e)));
155
+ static fromHex(r) {
156
+ const i = p.fromAffine(A(Y("pointHex", r)));
157
157
  return i.assertValidity(), i;
158
158
  }
159
159
  // Multiplies generator point by privateKey.
160
- static fromPrivateKey(e) {
161
- return y.BASE.multiply(L(e));
160
+ static fromPrivateKey(r) {
161
+ return p.BASE.multiply(H(r));
162
162
  }
163
163
  // "Private method", don't use it directly
164
- _setWindowSize(e) {
165
- this._WINDOW_SIZE = e, x.delete(this);
164
+ _setWindowSize(r) {
165
+ this._WINDOW_SIZE = r, x.delete(this);
166
166
  }
167
167
  // A point on curve is valid if it conforms to equation.
168
168
  assertValidity() {
169
169
  if (this.is0()) {
170
- if (n.allowInfinityPoint)
170
+ if (n.allowInfinityPoint && !t.is0(this.py))
171
171
  return;
172
172
  throw new Error("bad point: ZERO");
173
173
  }
174
- const { x: e, y: i } = this.toAffine();
175
- if (!t.isValid(e) || !t.isValid(i))
174
+ const { x: r, y: i } = this.toAffine();
175
+ if (!t.isValid(r) || !t.isValid(i))
176
176
  throw new Error("bad point: x or y not FE");
177
- const s = t.sqr(i), u = O(e);
177
+ const s = t.sqr(i), u = O(r);
178
178
  if (!t.eql(s, u))
179
179
  throw new Error("bad point: equation left != right");
180
180
  if (!this.isTorsionFree())
181
181
  throw new Error("bad point: not in prime-order subgroup");
182
182
  }
183
183
  hasEvenY() {
184
- const { y: e } = this.toAffine();
184
+ const { y: r } = this.toAffine();
185
185
  if (t.isOdd)
186
- return !t.isOdd(e);
186
+ return !t.isOdd(r);
187
187
  throw new Error("Field doesn't support isOdd");
188
188
  }
189
189
  /**
190
190
  * Compare one point to another.
191
191
  */
192
- equals(e) {
193
- U(e);
194
- const { px: i, py: s, pz: u } = this, { px: f, py: E, pz: h } = e, a = t.eql(t.mul(i, h), t.mul(f, u)), c = t.eql(t.mul(s, h), t.mul(E, u));
192
+ equals(r) {
193
+ F(r);
194
+ const { px: i, py: s, pz: u } = this, { px: f, py: E, pz: h } = r, a = t.eql(t.mul(i, h), t.mul(f, u)), c = t.eql(t.mul(s, h), t.mul(E, u));
195
195
  return a && c;
196
196
  }
197
197
  /**
198
198
  * Flips point to one corresponding to (x, -y) in Affine coordinates.
199
199
  */
200
200
  negate() {
201
- return new y(this.px, t.neg(this.py), this.pz);
201
+ return new p(this.px, t.neg(this.py), this.pz);
202
202
  }
203
203
  // Renes-Costello-Batina exception-free doubling formula.
204
204
  // There is 30% faster Jacobian formula, but it is not complete.
205
205
  // https://eprint.iacr.org/2015/1060, algorithm 3
206
206
  // Cost: 8M + 3S + 3*a + 2*b3 + 15add.
207
207
  double() {
208
- const { a: e, b: i } = n, s = t.mul(i, ct), { px: u, py: f, pz: E } = this;
209
- let h = t.ZERO, a = t.ZERO, c = t.ZERO, d = t.mul(u, u), q = t.mul(f, f), b = t.mul(E, E), p = t.mul(u, f);
210
- return p = t.add(p, p), c = t.mul(u, E), c = t.add(c, c), h = t.mul(e, c), a = t.mul(s, b), a = t.add(h, a), h = t.sub(q, a), a = t.add(q, a), a = t.mul(h, a), h = t.mul(p, h), c = t.mul(s, c), b = t.mul(e, b), p = t.sub(d, b), p = t.mul(e, p), p = t.add(p, c), c = t.add(d, d), d = t.add(c, d), d = t.add(d, b), d = t.mul(d, p), a = t.add(a, d), b = t.mul(f, E), b = t.add(b, b), d = t.mul(b, p), h = t.sub(h, d), c = t.mul(b, q), c = t.add(c, c), c = t.add(c, c), new y(h, a, c);
208
+ const { a: r, b: i } = n, s = t.mul(i, ut), { px: u, py: f, pz: E } = this;
209
+ let h = t.ZERO, a = t.ZERO, c = t.ZERO, d = t.mul(u, u), q = t.mul(f, f), b = t.mul(E, E), y = t.mul(u, f);
210
+ return y = t.add(y, y), c = t.mul(u, E), c = t.add(c, c), h = t.mul(r, c), a = t.mul(s, b), a = t.add(h, a), h = t.sub(q, a), a = t.add(q, a), a = t.mul(h, a), h = t.mul(y, h), c = t.mul(s, c), b = t.mul(r, b), y = t.sub(d, b), y = t.mul(r, y), y = t.add(y, c), c = t.add(d, d), d = t.add(c, d), d = t.add(d, b), d = t.mul(d, y), a = t.add(a, d), b = t.mul(f, E), b = t.add(b, b), d = t.mul(b, y), h = t.sub(h, d), c = t.mul(b, q), c = t.add(c, c), c = t.add(c, c), new p(h, a, c);
211
211
  }
212
212
  // Renes-Costello-Batina exception-free addition formula.
213
213
  // There is 30% faster Jacobian formula, but it is not complete.
214
214
  // https://eprint.iacr.org/2015/1060, algorithm 1
215
215
  // Cost: 12M + 0S + 3*a + 3*b3 + 23add.
216
- add(e) {
217
- U(e);
218
- const { px: i, py: s, pz: u } = this, { px: f, py: E, pz: h } = e;
216
+ add(r) {
217
+ F(r);
218
+ const { px: i, py: s, pz: u } = this, { px: f, py: E, pz: h } = r;
219
219
  let a = t.ZERO, c = t.ZERO, d = t.ZERO;
220
- const q = n.a, b = t.mul(n.b, ct);
221
- let p = t.mul(i, f), T = t.mul(s, E), Z = t.mul(u, h), H = t.add(i, s), r = t.add(f, E);
222
- H = t.mul(H, r), r = t.add(p, T), H = t.sub(H, r), r = t.add(i, u);
220
+ const q = n.a, b = t.mul(n.b, ut);
221
+ let y = t.mul(i, f), T = t.mul(s, E), Z = t.mul(u, h), U = t.add(i, s), e = t.add(f, E);
222
+ U = t.mul(U, e), e = t.add(y, T), U = t.sub(U, e), e = t.add(i, u);
223
223
  let o = t.add(f, h);
224
- return r = t.mul(r, o), o = t.add(p, Z), r = t.sub(r, o), o = t.add(s, u), a = t.add(E, h), o = t.mul(o, a), a = t.add(T, Z), o = t.sub(o, a), d = t.mul(q, r), a = t.mul(b, Z), d = t.add(a, d), a = t.sub(T, d), d = t.add(T, d), c = t.mul(a, d), T = t.add(p, p), T = t.add(T, p), Z = t.mul(q, Z), r = t.mul(b, r), T = t.add(T, Z), Z = t.sub(p, Z), Z = t.mul(q, Z), r = t.add(r, Z), p = t.mul(T, r), c = t.add(c, p), p = t.mul(o, r), a = t.mul(H, a), a = t.sub(a, p), p = t.mul(H, T), d = t.mul(o, d), d = t.add(d, p), new y(a, c, d);
224
+ return e = t.mul(e, o), o = t.add(y, Z), e = t.sub(e, o), o = t.add(s, u), a = t.add(E, h), o = t.mul(o, a), a = t.add(T, Z), o = t.sub(o, a), d = t.mul(q, e), a = t.mul(b, Z), d = t.add(a, d), a = t.sub(T, d), d = t.add(T, d), c = t.mul(a, d), T = t.add(y, y), T = t.add(T, y), Z = t.mul(q, Z), e = t.mul(b, e), T = t.add(T, Z), Z = t.sub(y, Z), Z = t.mul(q, Z), e = t.add(e, Z), y = t.mul(T, e), c = t.add(c, y), y = t.mul(o, e), a = t.mul(U, a), a = t.sub(a, y), y = t.mul(U, T), d = t.mul(o, d), d = t.add(d, y), new p(a, c, d);
225
225
  }
226
- subtract(e) {
227
- return this.add(e.negate());
226
+ subtract(r) {
227
+ return this.add(r.negate());
228
228
  }
229
229
  is0() {
230
- return this.equals(y.ZERO);
230
+ return this.equals(p.ZERO);
231
231
  }
232
- wNAF(e) {
233
- return P.wNAFCached(this, x, e, (i) => {
232
+ wNAF(r) {
233
+ return P.wNAFCached(this, x, r, (i) => {
234
234
  const s = t.invertBatch(i.map((u) => u.pz));
235
- return i.map((u, f) => u.toAffine(s[f])).map(y.fromAffine);
235
+ return i.map((u, f) => u.toAffine(s[f])).map(p.fromAffine);
236
236
  });
237
237
  }
238
238
  /**
@@ -240,19 +240,19 @@ function Bt(B) {
240
240
  * It's faster, but should only be used when you don't care about
241
241
  * an exposed private key e.g. sig verification, which works over *public* keys.
242
242
  */
243
- multiplyUnsafe(e) {
244
- const i = y.ZERO;
245
- if (e === C)
243
+ multiplyUnsafe(r) {
244
+ const i = p.ZERO;
245
+ if (r === L)
246
246
  return i;
247
- if (S(e), e === z)
247
+ if (S(r), r === z)
248
248
  return this;
249
249
  const { endo: s } = n;
250
250
  if (!s)
251
- return P.unsafeLadder(this, e);
252
- let { k1neg: u, k1: f, k2neg: E, k2: h } = s.splitScalar(e), a = i, c = i, d = this;
253
- for (; f > C || h > C; )
251
+ return P.unsafeLadder(this, r);
252
+ let { k1neg: u, k1: f, k2neg: E, k2: h } = s.splitScalar(r), a = i, c = i, d = this;
253
+ for (; f > L || h > L; )
254
254
  f & z && (a = a.add(d)), h & z && (c = c.add(d)), d = d.double(), f >>= z, h >>= z;
255
- return u && (a = a.negate()), E && (c = c.negate()), c = new y(t.mul(c.px, s.beta), c.py, c.pz), a.add(c);
255
+ return u && (a = a.negate()), E && (c = c.negate()), c = new p(t.mul(c.px, s.beta), c.py, c.pz), a.add(c);
256
256
  }
257
257
  /**
258
258
  * Constant time multiplication.
@@ -263,19 +263,19 @@ function Bt(B) {
263
263
  * @param scalar by which the point would be multiplied
264
264
  * @returns New point
265
265
  */
266
- multiply(e) {
267
- S(e);
268
- let i = e, s, u;
266
+ multiply(r) {
267
+ S(r);
268
+ let i = r, s, u;
269
269
  const { endo: f } = n;
270
270
  if (f) {
271
271
  const { k1neg: E, k1: h, k2neg: a, k2: c } = f.splitScalar(i);
272
- let { p: d, f: q } = this.wNAF(h), { p: b, f: p } = this.wNAF(c);
273
- d = P.constTimeNegate(E, d), b = P.constTimeNegate(a, b), b = new y(t.mul(b.px, f.beta), b.py, b.pz), s = d.add(b), u = q.add(p);
272
+ let { p: d, f: q } = this.wNAF(h), { p: b, f: y } = this.wNAF(c);
273
+ d = P.constTimeNegate(E, d), b = P.constTimeNegate(a, b), b = new p(t.mul(b.px, f.beta), b.py, b.pz), s = d.add(b), u = q.add(y);
274
274
  } else {
275
275
  const { p: E, f: h } = this.wNAF(i);
276
276
  s = E, u = h;
277
277
  }
278
- return y.normalizeZ([s, u])[0];
278
+ return p.normalizeZ([s, u])[0];
279
279
  }
280
280
  /**
281
281
  * Efficiently calculate `aP + bQ`. Unsafe, can expose private key, if used incorrectly.
@@ -283,17 +283,17 @@ function Bt(B) {
283
283
  * The trick could be useful if both P and Q are not G (not in our case).
284
284
  * @returns non-zero affine point
285
285
  */
286
- multiplyAndAddUnsafe(e, i, s) {
287
- const u = y.BASE, f = (h, a) => a === C || a === z || !h.equals(u) ? h.multiplyUnsafe(a) : h.multiply(a), E = f(this, i).add(f(e, s));
286
+ multiplyAndAddUnsafe(r, i, s) {
287
+ const u = p.BASE, f = (h, a) => a === L || a === z || !h.equals(u) ? h.multiplyUnsafe(a) : h.multiply(a), E = f(this, i).add(f(r, s));
288
288
  return E.is0() ? void 0 : E;
289
289
  }
290
290
  // Converts Projective point to affine (x, y) coordinates.
291
291
  // Can accept precomputed Z^-1 - for example, from invertBatch.
292
292
  // (x, y, z) ∋ (x=x/z, y=y/z)
293
- toAffine(e) {
293
+ toAffine(r) {
294
294
  const { px: i, py: s, pz: u } = this, f = this.is0();
295
- e == null && (e = f ? t.ONE : t.inv(u));
296
- const E = t.mul(i, e), h = t.mul(s, e), a = t.mul(u, e);
295
+ r == null && (r = f ? t.ONE : t.inv(u));
296
+ const E = t.mul(i, r), h = t.mul(s, r), a = t.mul(u, r);
297
297
  if (f)
298
298
  return { x: t.ZERO, y: t.ZERO };
299
299
  if (!t.eql(a, t.ONE))
@@ -301,37 +301,37 @@ function Bt(B) {
301
301
  return { x: E, y: h };
302
302
  }
303
303
  isTorsionFree() {
304
- const { h: e, isTorsionFree: i } = n;
305
- if (e === z)
304
+ const { h: r, isTorsionFree: i } = n;
305
+ if (r === z)
306
306
  return !0;
307
307
  if (i)
308
- return i(y, this);
308
+ return i(p, this);
309
309
  throw new Error("isTorsionFree() has not been declared for the elliptic curve");
310
310
  }
311
311
  clearCofactor() {
312
- const { h: e, clearCofactor: i } = n;
313
- return e === z ? this : i ? i(y, this) : this.multiplyUnsafe(n.h);
312
+ const { h: r, clearCofactor: i } = n;
313
+ return r === z ? this : i ? i(p, this) : this.multiplyUnsafe(n.h);
314
314
  }
315
- toRawBytes(e = !0) {
316
- return this.assertValidity(), v(y, this, e);
315
+ toRawBytes(r = !0) {
316
+ return this.assertValidity(), v(p, this, r);
317
317
  }
318
- toHex(e = !0) {
319
- return nt(this.toRawBytes(e));
318
+ toHex(r = !0) {
319
+ return nt(this.toRawBytes(r));
320
320
  }
321
321
  }
322
- y.BASE = new y(n.Gx, n.Gy, t.ONE), y.ZERO = new y(t.ZERO, t.ONE, t.ZERO);
323
- const W = n.nBitLength, P = wt(y, n.endo ? Math.ceil(W / 2) : W);
322
+ p.BASE = new p(n.Gx, n.Gy, t.ONE), p.ZERO = new p(t.ZERO, t.ONE, t.ZERO);
323
+ const W = n.nBitLength, P = gt(p, n.endo ? Math.ceil(W / 2) : W);
324
324
  return {
325
325
  CURVE: n,
326
- ProjectivePoint: y,
327
- normPrivateKeyToScalar: L,
326
+ ProjectivePoint: p,
327
+ normPrivateKeyToScalar: H,
328
328
  weierstrassEquation: O,
329
- isWithinCurveOrder: F
329
+ isWithinCurveOrder: C
330
330
  };
331
331
  }
332
- function vt(B) {
333
- const n = ft(B);
334
- return lt(n, {
332
+ function St(B) {
333
+ const n = dt(B);
334
+ return ft(n, {
335
335
  hash: "hash",
336
336
  hmac: "function",
337
337
  randomBytes: "function"
@@ -341,30 +341,30 @@ function vt(B) {
341
341
  lowS: "boolean"
342
342
  }), Object.freeze({ lowS: !0, ...n });
343
343
  }
344
- function Ot(B) {
345
- const n = vt(B), { Fp: t, n: v } = n, A = t.BYTES + 1, O = 2 * t.BYTES + 1;
346
- function F(r) {
347
- return C < r && r < t.ORDER;
344
+ function Zt(B) {
345
+ const n = St(B), { Fp: t, n: v } = n, A = t.BYTES + 1, O = 2 * t.BYTES + 1;
346
+ function C(e) {
347
+ return L < e && e < t.ORDER;
348
348
  }
349
- function S(r) {
350
- return ut(r, v);
349
+ function S(e) {
350
+ return lt(e, v);
351
351
  }
352
- function L(r) {
353
- return ht(r, v);
352
+ function H(e) {
353
+ return pt(e, v);
354
354
  }
355
- const { ProjectivePoint: x, normPrivateKeyToScalar: U, weierstrassEquation: y, isWithinCurveOrder: W } = Bt({
355
+ const { ProjectivePoint: x, normPrivateKeyToScalar: F, weierstrassEquation: p, isWithinCurveOrder: W } = xt({
356
356
  ...n,
357
- toBytes(r, o, l) {
358
- const g = o.toAffine(), w = t.toBytes(g.x), R = et;
357
+ toBytes(e, o, l) {
358
+ const g = o.toAffine(), w = t.toBytes(g.x), R = rt;
359
359
  return l ? R(Uint8Array.from([o.hasEvenY() ? 2 : 3]), w) : R(Uint8Array.from([4]), w, t.toBytes(g.y));
360
360
  },
361
- fromBytes(r) {
362
- const o = r.length, l = r[0], g = r.subarray(1);
361
+ fromBytes(e) {
362
+ const o = e.length, l = e[0], g = e.subarray(1);
363
363
  if (o === A && (l === 2 || l === 3)) {
364
364
  const w = _(g);
365
- if (!F(w))
365
+ if (!C(w))
366
366
  throw new Error("Point is not on curve");
367
- const R = y(w);
367
+ const R = p(w);
368
368
  let I = t.sqrt(R);
369
369
  const N = (I & z) === z;
370
370
  return (l & 1) === 1 !== N && (I = t.neg(I)), { x: w, y: I };
@@ -374,15 +374,15 @@ function Ot(B) {
374
374
  } else
375
375
  throw new Error(`Point of length ${o} was invalid. Expected ${A} compressed bytes or ${O} uncompressed bytes`);
376
376
  }
377
- }), P = (r) => nt(rt(r, n.nByteLength));
378
- function m(r) {
377
+ }), P = (e) => nt(ct(e, n.nByteLength));
378
+ function m(e) {
379
379
  const o = v >> z;
380
- return r > o;
380
+ return e > o;
381
381
  }
382
- function e(r) {
383
- return m(r) ? S(-r) : r;
382
+ function r(e) {
383
+ return m(e) ? S(-e) : e;
384
384
  }
385
- const i = (r, o, l) => _(r.slice(o, l));
385
+ const i = (e, o, l) => _(e.slice(o, l));
386
386
  class s {
387
387
  constructor(o, l, g) {
388
388
  this.r = o, this.s = l, this.recovery = g, this.assertValidity();
@@ -414,7 +414,7 @@ function Ot(B) {
414
414
  const I = w === 2 || w === 3 ? l + n.n : l;
415
415
  if (I >= t.ORDER)
416
416
  throw new Error("recovery id 2 or 3 invalid");
417
- const N = w & 1 ? "03" : "02", D = x.fromHex(N + P(I)), K = L(I), X = S(-R * K), J = S(g * K), $ = x.BASE.multiplyAndAddUnsafe(D, X, J);
417
+ const N = w & 1 ? "03" : "02", D = x.fromHex(N + P(I)), K = H(I), X = S(-R * K), J = S(g * K), $ = x.BASE.multiplyAndAddUnsafe(D, X, J);
418
418
  if (!$)
419
419
  throw new Error("point at infinify");
420
420
  return $.assertValidity(), $;
@@ -442,21 +442,21 @@ function Ot(B) {
442
442
  }
443
443
  }
444
444
  const u = {
445
- isValidPrivateKey(r) {
445
+ isValidPrivateKey(e) {
446
446
  try {
447
- return U(r), !0;
447
+ return F(e), !0;
448
448
  } catch {
449
449
  return !1;
450
450
  }
451
451
  },
452
- normPrivateKeyToScalar: U,
452
+ normPrivateKeyToScalar: F,
453
453
  /**
454
- * Produces cryptographically secure private key from random of size (nBitLength+64)
455
- * as per FIPS 186 B.4.1 with modulo bias being neglible.
454
+ * Produces cryptographically secure private key from random of size
455
+ * (groupLen + ceil(groupLen / 2)) with modulo bias being negligible.
456
456
  */
457
457
  randomPrivateKey: () => {
458
- const r = n.randomBytes(t.BYTES + 8), o = dt(r, v);
459
- return rt(o, n.nByteLength);
458
+ const e = ht(n.n);
459
+ return mt(n.randomBytes(e), n.n);
460
460
  },
461
461
  /**
462
462
  * Creates precompute table for an arbitrary EC point. Makes point "cached".
@@ -466,79 +466,79 @@ function Ot(B) {
466
466
  * const fast = utils.precompute(8, ProjectivePoint.fromHex(someonesPubKey));
467
467
  * fast.multiply(privKey); // much faster ECDH now
468
468
  */
469
- precompute(r = 8, o = x.BASE) {
470
- return o._setWindowSize(r), o.multiply(BigInt(3)), o;
469
+ precompute(e = 8, o = x.BASE) {
470
+ return o._setWindowSize(e), o.multiply(BigInt(3)), o;
471
471
  }
472
472
  };
473
- function f(r, o = !0) {
474
- return x.fromPrivateKey(r).toRawBytes(o);
473
+ function f(e, o = !0) {
474
+ return x.fromPrivateKey(e).toRawBytes(o);
475
475
  }
476
- function E(r) {
477
- const o = r instanceof Uint8Array, l = typeof r == "string", g = (o || l) && r.length;
478
- return o ? g === A || g === O : l ? g === 2 * A || g === 2 * O : r instanceof x;
476
+ function E(e) {
477
+ const o = tt(e), l = typeof e == "string", g = (o || l) && e.length;
478
+ return o ? g === A || g === O : l ? g === 2 * A || g === 2 * O : e instanceof x;
479
479
  }
480
- function h(r, o, l = !0) {
481
- if (E(r))
480
+ function h(e, o, l = !0) {
481
+ if (E(e))
482
482
  throw new Error("first arg must be private key");
483
483
  if (!E(o))
484
484
  throw new Error("second arg must be public key");
485
- return x.fromHex(o).multiply(U(r)).toRawBytes(l);
485
+ return x.fromHex(o).multiply(F(e)).toRawBytes(l);
486
486
  }
487
- const a = n.bits2int || function(r) {
488
- const o = _(r), l = r.length * 8 - n.nBitLength;
487
+ const a = n.bits2int || function(e) {
488
+ const o = _(e), l = e.length * 8 - n.nBitLength;
489
489
  return l > 0 ? o >> BigInt(l) : o;
490
- }, c = n.bits2int_modN || function(r) {
491
- return S(a(r));
492
- }, d = yt(n.nBitLength);
493
- function q(r) {
494
- if (typeof r != "bigint")
490
+ }, c = n.bits2int_modN || function(e) {
491
+ return S(a(e));
492
+ }, d = wt(n.nBitLength);
493
+ function q(e) {
494
+ if (typeof e != "bigint")
495
495
  throw new Error("bigint expected");
496
- if (!(C <= r && r < d))
496
+ if (!(L <= e && e < d))
497
497
  throw new Error(`bigint expected < 2^${n.nBitLength}`);
498
- return rt(r, n.nByteLength);
498
+ return ct(e, n.nByteLength);
499
499
  }
500
- function b(r, o, l = p) {
500
+ function b(e, o, l = y) {
501
501
  if (["recovered", "canonical"].some((j) => j in l))
502
502
  throw new Error("sign() legacy options not supported");
503
503
  const { hash: g, randomBytes: w } = n;
504
504
  let { lowS: R, prehash: I, extraEntropy: N } = l;
505
- R == null && (R = !0), r = Y("msgHash", r), I && (r = Y("prehashed msgHash", g(r)));
506
- const D = c(r), K = U(o), X = [q(K), q(D)];
505
+ R == null && (R = !0), e = Y("msgHash", e), I && (e = Y("prehashed msgHash", g(e)));
506
+ const D = c(e), K = F(o), X = [q(K), q(D)];
507
507
  if (N != null) {
508
508
  const j = N === !0 ? w(t.BYTES) : N;
509
- X.push(Y("extraEntropy", j, t.BYTES));
509
+ X.push(Y("extraEntropy", j));
510
510
  }
511
- const J = et(...X), $ = D;
512
- function tt(j) {
511
+ const J = rt(...X), $ = D;
512
+ function et(j) {
513
513
  const G = a(j);
514
514
  if (!W(G))
515
515
  return;
516
- const ot = L(G), M = x.BASE.multiply(G).toAffine(), V = S(M.x);
517
- if (V === C)
516
+ const ot = H(G), M = x.BASE.multiply(G).toAffine(), V = S(M.x);
517
+ if (V === L)
518
518
  return;
519
519
  const Q = S(ot * S($ + V * K));
520
- if (Q === C)
520
+ if (Q === L)
521
521
  return;
522
522
  let st = (M.x === V ? 0 : 2) | Number(M.y & z), it = Q;
523
- return R && m(Q) && (it = e(Q), st ^= 1), new s(V, it, st);
523
+ return R && m(Q) && (it = r(Q), st ^= 1), new s(V, it, st);
524
524
  }
525
- return { seed: J, k2sig: tt };
525
+ return { seed: J, k2sig: et };
526
526
  }
527
- const p = { lowS: n.lowS, prehash: !1 }, T = { lowS: n.lowS, prehash: !1 };
528
- function Z(r, o, l = p) {
529
- const { seed: g, k2sig: w } = b(r, o, l), R = n;
530
- return pt(R.hash.outputLen, R.nByteLength, R.hmac)(g, w);
527
+ const y = { lowS: n.lowS, prehash: !1 }, T = { lowS: n.lowS, prehash: !1 };
528
+ function Z(e, o, l = y) {
529
+ const { seed: g, k2sig: w } = b(e, o, l), R = n;
530
+ return Et(R.hash.outputLen, R.nByteLength, R.hmac)(g, w);
531
531
  }
532
532
  x.BASE._setWindowSize(8);
533
- function H(r, o, l, g = T) {
533
+ function U(e, o, l, g = T) {
534
534
  var M;
535
- const w = r;
535
+ const w = e;
536
536
  if (o = Y("msgHash", o), l = Y("publicKey", l), "strict" in g)
537
537
  throw new Error("options.strict was renamed to lowS");
538
538
  const { lowS: R, prehash: I } = g;
539
539
  let N, D;
540
540
  try {
541
- if (typeof w == "string" || w instanceof Uint8Array)
541
+ if (typeof w == "string" || tt(w))
542
542
  try {
543
543
  N = s.fromDER(w);
544
544
  } catch (V) {
@@ -560,7 +560,7 @@ function Ot(B) {
560
560
  if (R && N.hasHighS())
561
561
  return !1;
562
562
  I && (o = n.hash(o));
563
- const { r: K, s: X } = N, J = c(o), $ = L(X), tt = S(J * $), j = S(K * $), G = (M = x.BASE.multiplyAndAddUnsafe(D, tt, j)) == null ? void 0 : M.toAffine();
563
+ const { r: K, s: X } = N, J = c(o), $ = H(X), et = S(J * $), j = S(K * $), G = (M = x.BASE.multiplyAndAddUnsafe(D, et, j)) == null ? void 0 : M.toAffine();
564
564
  return G ? S(G.x) === K : !1;
565
565
  }
566
566
  return {
@@ -568,7 +568,7 @@ function Ot(B) {
568
568
  getPublicKey: f,
569
569
  getSharedSecret: h,
570
570
  sign: Z,
571
- verify: H,
571
+ verify: U,
572
572
  ProjectivePoint: x,
573
573
  Signature: s,
574
574
  utils: u
@@ -576,6 +576,6 @@ function Ot(B) {
576
576
  }
577
577
  export {
578
578
  k as DER,
579
- Ot as weierstrass,
580
- Bt as weierstrassPoints
579
+ Zt as weierstrass,
580
+ xt as weierstrassPoints
581
581
  };