@ozdao/prometheus-framework 0.2.31 → 0.2.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (497) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -1
  3. package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +222 -218
  4. package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -1
  5. package/dist/node_modules/@noble/curves/esm/abstract/modular.js +102 -91
  6. package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -1
  7. package/dist/node_modules/@noble/curves/esm/abstract/utils.js +138 -115
  8. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -1
  9. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +185 -185
  10. package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +1 -1
  11. package/dist/node_modules/@noble/curves/esm/secp256k1.js +11 -8
  12. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  13. package/dist/node_modules/@noble/hashes/esm/_assert.js +29 -33
  14. package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +1 -1
  15. package/dist/node_modules/@noble/hashes/esm/_sha2.js +15 -15
  16. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  17. package/dist/node_modules/@noble/hashes/esm/_u64.js +38 -20
  18. package/dist/node_modules/@noble/hashes/esm/hmac.cjs +1 -1
  19. package/dist/node_modules/@noble/hashes/esm/hmac.js +20 -20
  20. package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +1 -1
  21. package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +20 -20
  22. package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +1 -1
  23. package/dist/node_modules/@noble/hashes/esm/scrypt.js +41 -41
  24. package/dist/node_modules/@noble/hashes/esm/sha256.cjs +1 -1
  25. package/dist/node_modules/@noble/hashes/esm/sha256.js +23 -29
  26. package/dist/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
  27. package/dist/node_modules/@noble/hashes/esm/sha3.js +44 -55
  28. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  29. package/dist/node_modules/@noble/hashes/esm/sha512.js +23 -41
  30. package/dist/node_modules/@noble/hashes/esm/utils.cjs +1 -1
  31. package/dist/node_modules/@noble/hashes/esm/utils.js +37 -33
  32. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +20 -0
  33. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +3974 -0
  34. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -0
  35. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1202 -0
  36. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -0
  37. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +97 -0
  38. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +1 -0
  39. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +37 -0
  40. package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +1 -0
  41. package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +22 -0
  42. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  43. package/dist/node_modules/ethereum-cryptography/esm/utils.js +1 -4
  44. package/dist/node_modules/js-cookie/dist/js.cookie.cjs +1 -0
  45. package/dist/node_modules/js-cookie/dist/js.cookie.js +74 -0
  46. package/dist/node_modules/vue3-carousel/dist/carousel.es.cjs +4 -4
  47. package/dist/node_modules/vue3-carousel/dist/carousel.es.js +340 -244
  48. package/dist/node_modules/web3/lib/esm/abi.cjs +1 -1
  49. package/dist/node_modules/web3/lib/esm/abi.js +5 -10
  50. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  51. package/dist/node_modules/web3/lib/esm/accounts.js +27 -24
  52. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  53. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  54. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
  55. package/dist/node_modules/web3/lib/esm/web3.js +53 -57
  56. package/dist/node_modules/web3-core/lib/esm/utils.cjs +1 -1
  57. package/dist/node_modules/web3-core/lib/esm/utils.js +3 -4
  58. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
  59. package/dist/node_modules/web3-core/lib/esm/web3_config.js +22 -19
  60. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  61. package/dist/node_modules/web3-core/lib/esm/web3_context.js +72 -57
  62. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  63. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +53 -61
  64. package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +8 -8
  65. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  66. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +1 -1
  67. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  68. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +42 -42
  69. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  70. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +19 -19
  71. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  72. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +29 -29
  73. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -0
  74. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +51 -0
  75. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  76. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +1 -1
  77. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
  78. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +1 -1
  79. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +132 -47
  80. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +1 -1
  81. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +21 -15
  82. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +1 -1
  83. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +15 -13
  84. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +1 -1
  85. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +1 -1
  86. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +1 -1
  87. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +61 -53
  88. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +1 -1
  89. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +36 -9
  90. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  91. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +107 -103
  92. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -1
  93. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +135 -133
  94. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +1 -1
  95. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +47 -31
  96. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +1 -1
  97. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +18 -17
  98. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  99. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +113 -111
  100. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  101. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +27 -27
  102. package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +1 -1
  103. package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +28 -40
  104. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -1
  105. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +10 -10
  106. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  107. package/dist/node_modules/web3-utils/lib/esm/converters.js +78 -75
  108. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
  109. package/dist/node_modules/web3-utils/lib/esm/formatter.js +8 -8
  110. package/dist/node_modules/web3-utils/lib/esm/hash.cjs +1 -1
  111. package/dist/node_modules/web3-utils/lib/esm/hash.js +44 -43
  112. package/dist/node_modules/web3-utils/lib/esm/index.cjs +1 -1
  113. package/dist/node_modules/web3-utils/lib/esm/index.js +64 -62
  114. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  115. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +78 -40
  116. package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -1
  117. package/dist/node_modules/web3-utils/lib/esm/uint8array.js +16 -11
  118. package/dist/node_modules/web3-utils/lib/esm/validation.cjs +1 -1
  119. package/dist/node_modules/web3-utils/lib/esm/validation.js +45 -33
  120. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  121. package/dist/node_modules/web3-validator/lib/esm/utils.js +127 -104
  122. package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +1 -1
  123. package/dist/node_modules/web3-validator/lib/esm/validation/address.js +12 -11
  124. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
  125. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +17 -13
  126. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs +1 -1
  127. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +7 -9
  128. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -1
  129. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +8 -8
  130. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +1 -1
  131. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +3 -3
  132. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
  133. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +52 -52
  134. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
  135. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2501 -2482
  136. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +2 -1
  137. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +75 -61
  138. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
  139. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +33 -33
  140. package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
  141. package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +1 -1
  142. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -1
  143. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +1 -1
  144. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -1
  145. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +4 -2
  146. package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.cjs +1 -0
  147. package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.js +701 -0
  148. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs +1 -1
  149. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +14 -7
  150. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
  151. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  152. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/components/Address/Address.vue.js +2 -80
  154. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  155. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +80 -2
  156. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -0
  157. package/dist/prometheus-framework/src/components/Block/Block.vue.js +62 -0
  158. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
  159. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +15 -15
  160. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  161. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +51 -40
  162. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +21 -21
  164. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -7
  166. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +12 -13
  168. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
  170. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  171. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
  172. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +53 -36
  174. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -0
  175. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +117 -0
  176. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +48 -40
  178. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -2
  180. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
  181. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +20 -10
  182. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +2 -98
  184. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.js +2 -2
  186. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +25 -27
  188. package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -0
  189. package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +55 -0
  190. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/components/Select/Select.vue.js +55 -40
  192. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  193. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +5 -5
  194. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  195. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +1 -1
  196. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -0
  197. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -0
  198. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -0
  199. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -0
  200. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  201. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +2 -73
  202. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  203. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +73 -2
  204. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +3 -3
  206. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +94 -33
  208. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +12 -12
  210. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +69 -61
  212. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +26 -27
  214. package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.cjs +1 -1
  215. package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.js +2 -2
  216. package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.js +7 -7
  218. package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.cjs +1 -1
  219. package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.js +2 -2
  220. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -1
  221. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +3 -3
  222. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -1
  223. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +3 -3
  224. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  225. package/dist/prometheus-framework/src/modules/auth/store/auth.js +30 -30
  226. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  227. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  228. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  229. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  230. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  231. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +9 -9
  232. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  233. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +90 -47
  234. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  235. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +166 -133
  236. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  237. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +86 -68
  238. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  239. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +105 -41
  240. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  241. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +16 -16
  242. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  243. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +51 -42
  244. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  245. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +14 -14
  246. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +2 -2
  247. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +108 -94
  249. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +19 -19
  251. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +11 -11
  253. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +2 -2
  254. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  255. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +40 -29
  256. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  257. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +10 -9
  258. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  259. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +1 -1
  260. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  261. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +27 -16
  262. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  263. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +21 -21
  264. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -3
  265. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +31 -28
  266. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -0
  267. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +48 -0
  268. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -0
  269. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +33 -0
  270. package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.cjs +1 -0
  271. package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.js +13 -0
  272. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  273. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +106 -85
  274. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  275. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +31 -34
  276. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +8 -8
  277. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
  279. package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/events/router/events.js +1 -1
  281. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  283. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  285. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +13 -6
  287. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/globals/store/globals.js +50 -22
  289. package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.js +13 -13
  291. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.js +3 -3
  293. package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.js +5 -5
  295. package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.cjs +1 -0
  296. package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.js +21 -0
  297. package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.cjs +1 -0
  298. package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.js +21 -0
  299. package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.cjs +1 -0
  300. package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.js +21 -0
  301. package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/icons/icons.client.js +38 -34
  303. package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.js +9 -9
  305. package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.js +7 -7
  307. package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.cjs +1 -0
  308. package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.js +30 -0
  309. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +12 -12
  311. package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.cjs +1 -0
  312. package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.js +27 -0
  313. package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.cjs +1 -0
  314. package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.js +29 -0
  315. package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.cjs +1 -0
  316. package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.js +33 -0
  317. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.cjs +1 -0
  318. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.js +21 -0
  319. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.cjs +1 -0
  320. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.js +28 -0
  321. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.js +21 -20
  323. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.js +5 -5
  325. package/dist/prometheus-framework/src/modules/icons/socials/line.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/icons/socials/line.vue.js +6 -6
  327. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.js +1 -1
  329. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +7 -7
  331. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +6 -6
  333. package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.js +1 -1
  335. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +48 -35
  337. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -0
  338. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +63 -0
  339. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +6 -8
  341. package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.js +5 -7
  343. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +16 -22
  345. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -0
  346. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -0
  347. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +61 -88
  349. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +104 -193
  351. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  352. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +29 -31
  353. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -0
  354. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +129 -0
  355. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  356. package/dist/prometheus-framework/src/modules/orders/store/orders.js +45 -36
  357. package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
  358. package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +27 -26
  359. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +6 -6
  361. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  362. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +85 -79
  363. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +10 -10
  365. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
  366. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +29 -23
  367. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +5 -5
  369. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  370. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +4 -4
  371. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  372. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +55 -169
  373. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +48 -59
  375. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +173 -94
  377. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  378. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +27 -20
  379. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  380. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +43 -33
  381. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +67 -63
  383. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  384. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +28 -30
  385. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  386. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +2 -2
  387. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  388. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  389. package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
  390. package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +2 -2
  391. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  392. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +9 -6
  393. package/dist/prometheus-framework/src/modules/organizations/router/products.router.cjs +1 -1
  394. package/dist/prometheus-framework/src/modules/organizations/router/products.router.js +69 -20
  395. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  396. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  397. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  398. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  399. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  400. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +38 -38
  401. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
  402. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +2 -2
  403. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  404. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +39 -44
  405. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  406. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +73 -44
  407. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  408. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +25 -54
  409. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  410. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +39 -39
  411. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  412. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
  413. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -0
  414. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +4 -0
  415. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs +1 -1
  416. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js +18 -11
  417. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
  418. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +24 -24
  419. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -0
  420. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +140 -0
  421. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -0
  422. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -0
  423. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  424. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +27 -23
  425. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  426. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +24 -25
  427. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  428. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +246 -102
  429. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  430. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +28 -24
  431. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  432. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +23 -24
  433. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  434. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +56 -7
  435. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  436. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +82 -65
  437. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  438. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +71 -54
  439. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -0
  440. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -0
  441. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  442. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +60 -86
  443. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  444. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +29 -37
  445. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  446. package/dist/prometheus-framework/src/modules/products/store/products.js +32 -29
  447. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  448. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +43 -107
  449. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  450. package/dist/prometheus-framework/src/modules/spots/store/spots.js +46 -40
  451. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  452. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +89 -94
  453. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  454. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  455. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  456. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +30 -30
  457. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  458. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  459. package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
  460. package/dist/prometheus-framework/src/modules/users/router/users.js +2 -2
  461. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  462. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +80 -71
  463. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -0
  464. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +29 -0
  465. package/dist/prometheus-framework.cjs.js +21 -21
  466. package/dist/prometheus-framework.es.js +1037 -1023
  467. package/dist/style.css +1 -1
  468. package/package.json +1 -1
  469. package/src/components/Countdown/Countdown.vue +75 -0
  470. package/src/components/EditImages/EditImages.vue +10 -2
  471. package/src/components/Upload/Upload.vue +32 -6
  472. package/src/components/UploadImage/UploadImage.vue +12 -8
  473. package/src/components/UploadImageMultiple/UploadImageMultiple.vue +4 -2
  474. package/src/modules/events/components/pages/EditEvent.vue +288 -1
  475. package/src/modules/events/components/pages/Event.vue +125 -46
  476. package/src/modules/events/components/sections/HeroEvent.vue +161 -0
  477. package/src/modules/events/components/sections/SectionLineup.vue +42 -0
  478. package/src/modules/events/components/sections/SectionMainGuest.vue +104 -0
  479. package/src/modules/events/components/sections/SectionPreviousEvents.vue +119 -0
  480. package/src/modules/events/components/sections/SectionSpecialGuests.vue +47 -0
  481. package/src/modules/events/controllers/events.controller.js +1 -0
  482. package/src/modules/events/controllers/utils/queryProcessor.js +2 -0
  483. package/src/modules/events/models/event.model.js +28 -0
  484. package/src/modules/events/store/events.js +4 -0
  485. package/src/modules/files/controllers/files.controller.js +3 -0
  486. package/src/modules/files/middlewares/server/middlewareBusboy.js +115 -100
  487. package/src/modules/files/routes/files.routes.js +3 -4
  488. package/src/modules/globals/globals.server.js +0 -1
  489. package/src/modules/orders/components/blocks/CardOrder.vue +5 -5
  490. package/src/modules/orders/components/blocks/StatusHistory.vue +84 -0
  491. package/src/modules/orders/components/pages/Order.vue +11 -54
  492. package/src/modules/orders/components/pages/Orders.vue +0 -4
  493. package/src/modules/orders/controllers/orders.controller.js +17 -9
  494. package/src/modules/orders/models/order.model.js +19 -0
  495. package/src/modules/orders/routes/orders.routes.js +4 -1
  496. package/src/modules/products/components/sections/FilterProducts.vue +9 -10
  497. package/src/modules/wallet/components/pages/Wallet.vue +2 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../../hashes/esm/sha256.cjs");require("../../hashes/esm/utils.cjs");const n=require("./abstract/modular.cjs");require("./abstract/weierstrass.cjs");require("./abstract/utils.cjs");const F=require("./_shortw_utils.cjs");/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const k=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),x=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),G=BigInt(1),u=BigInt(2),h=(t,f)=>(t+f/u)/f;function M(t){const f=k,c=BigInt(3),r=BigInt(6),B=BigInt(11),a=BigInt(22),s=BigInt(23),i=BigInt(44),d=BigInt(88),o=t*t*t%f,e=o*o*t%f,g=n.pow2(e,c,f)*e%f,b=n.pow2(g,c,f)*e%f,l=n.pow2(b,u,f)*o%f,I=n.pow2(l,B,f)*l%f,p=n.pow2(I,a,f)*I%f,_=n.pow2(p,i,f)*p%f,P=n.pow2(_,d,f)*_%f,S=n.pow2(P,i,f)*p%f,v=n.pow2(S,c,f)*e%f,E=n.pow2(v,s,f)*I%f,j=n.pow2(E,r,f)*o%f,q=n.pow2(j,u,f);if(!w.eql(w.sqr(q),t))throw new Error("Cannot find square root");return q}const w=n.Field(k,void 0,void 0,{sqrt:M}),m=F.createCurve({a:BigInt(0),b:BigInt(7),Fp:w,n:x,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const f=x,c=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-G*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),B=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=c,s=BigInt("0x100000000000000000000000000000000"),i=h(a*t,f),d=h(-r*t,f);let o=n.mod(t-i*c-d*B,f),e=n.mod(-i*r-d*a,f);const g=o>s,b=e>s;if(g&&(o=f-o),b&&(e=f-e),o>s||e>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:g,k1:o,k2neg:b,k2:e}}}},C.sha256);BigInt(0);m.ProjectivePoint;exports.secp256k1=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../../hashes/esm/sha256.cjs"),n=require("./abstract/modular.cjs"),F=require("./_shortw_utils.cjs");/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const k=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),x=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),G=BigInt(1),w=BigInt(2),h=(t,f)=>(t+f/w)/f;function M(t){const f=k,e=BigInt(3),r=BigInt(6),B=BigInt(11),a=BigInt(22),s=BigInt(23),i=BigInt(44),d=BigInt(88),o=t*t*t%f,c=o*o*t%f,g=n.pow2(c,e,f)*c%f,b=n.pow2(g,e,f)*c%f,l=n.pow2(b,w,f)*o%f,I=n.pow2(l,B,f)*l%f,p=n.pow2(I,a,f)*I%f,_=n.pow2(p,i,f)*p%f,P=n.pow2(_,d,f)*_%f,S=n.pow2(P,i,f)*p%f,v=n.pow2(S,e,f)*c%f,E=n.pow2(v,s,f)*I%f,j=n.pow2(E,r,f)*o%f,q=n.pow2(j,w,f);if(!u.eql(u.sqr(q),t))throw new Error("Cannot find square root");return q}const u=n.Field(k,void 0,void 0,{sqrt:M}),m=F.createCurve({a:BigInt(0),b:BigInt(7),Fp:u,n:x,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const f=x,e=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-G*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),B=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=e,s=BigInt("0x100000000000000000000000000000000"),i=h(a*t,f),d=h(-r*t,f);let o=n.mod(t-i*e-d*B,f),c=n.mod(-i*r-d*a,f);const g=o>s,b=c>s;if(g&&(o=f-o),b&&(c=f-c),o>s||c>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:g,k1:o,k2neg:b,k2:c}}}},C.sha256);BigInt(0);m.ProjectivePoint;exports.secp256k1=m;
@@ -1,27 +1,30 @@
1
1
  import { sha256 as F } from "../../hashes/esm/sha256.js";
2
- import "../../hashes/esm/utils.js";
3
2
  import { Field as G, mod as w, pow2 as t } from "./abstract/modular.js";
4
- import "./abstract/weierstrass.js";
5
- import "./abstract/utils.js";
6
3
  import { createCurve as N } from "./_shortw_utils.js";
7
4
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
8
- const q = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), h = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), j = BigInt(1), m = BigInt(2), k = (n, f) => (n + f / m) / f;
5
+ const q = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), h = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), j = BigInt(1), _ = BigInt(2), k = (n, f) => (n + f / _) / f;
9
6
  function M(n) {
10
- const f = q, e = BigInt(3), r = BigInt(6), I = BigInt(11), a = BigInt(22), s = BigInt(23), i = BigInt(44), g = BigInt(88), o = n * n * n % f, c = o * o * n % f, d = t(c, e, f) * c % f, B = t(d, e, f) * c % f, l = t(B, m, f) * o % f, b = t(l, I, f) * l % f, p = t(b, a, f) * b % f, x = t(p, i, f) * p % f, P = t(x, g, f) * x % f, v = t(P, i, f) * p % f, E = t(v, e, f) * c % f, S = t(E, s, f) * b % f, C = t(S, r, f) * o % f, u = t(C, m, f);
11
- if (!_.eql(_.sqr(u), n))
7
+ const f = q, e = BigInt(3), r = BigInt(6), I = BigInt(11), a = BigInt(22), s = BigInt(23), i = BigInt(44), g = BigInt(88), o = n * n * n % f, c = o * o * n % f, d = t(c, e, f) * c % f, B = t(d, e, f) * c % f, m = t(B, _, f) * o % f, b = t(m, I, f) * m % f, p = t(b, a, f) * b % f, x = t(p, i, f) * p % f, P = t(x, g, f) * x % f, v = t(P, i, f) * p % f, E = t(v, e, f) * c % f, S = t(E, s, f) * b % f, C = t(S, r, f) * o % f, u = t(C, _, f);
8
+ if (!l.eql(l.sqr(u), n))
12
9
  throw new Error("Cannot find square root");
13
10
  return u;
14
11
  }
15
- const _ = G(q, void 0, void 0, { sqrt: M }), O = N({
12
+ const l = G(q, void 0, void 0, { sqrt: M }), O = N({
16
13
  a: BigInt(0),
14
+ // equation params: a, b
17
15
  b: BigInt(7),
18
- Fp: _,
16
+ // Seem to be rigid: bitcointalk.org/index.php?topic=289795.msg3183975#msg3183975
17
+ Fp: l,
18
+ // Field's prime: 2n**256n - 2n**32n - 2n**9n - 2n**8n - 2n**7n - 2n**6n - 2n**4n - 1n
19
19
  n: h,
20
+ // Curve order, total count of valid points in the field
20
21
  // Base point (x, y) aka generator point
21
22
  Gx: BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),
22
23
  Gy: BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),
23
24
  h: BigInt(1),
25
+ // Cofactor
24
26
  lowS: !0,
27
+ // Allow only low-S signatures by default in sign() and verify()
25
28
  /**
26
29
  * secp256k1 belongs to Koblitz curves: it has efficiently computable endomorphism.
27
30
  * Endomorphism uses 2x less RAM, speeds up precomputation by 2x and ECDH / key recovery by 20%.
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function o(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function i(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}function r(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function u(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");o(e.outputLen),o(e.blockLen)}function s(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function f(e,t){r(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const a={number:o,bool:i,bytes:r,hash:u,exists:s,output:f};exports.bool=i;exports.bytes=r;exports.default=a;exports.exists=s;exports.hash=u;exports.number=o;exports.output=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function o(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function i(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}function c(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function r(e,...t){if(!c(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function u(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");o(e.outputLen),o(e.blockLen)}function s(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function f(e,t){r(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const l={number:o,bool:i,bytes:r,hash:u,exists:s,output:f},a=l;exports.bool=i;exports.bytes=r;exports.default=a;exports.exists=s;exports.hash=u;exports.number=o;exports.output=f;
@@ -1,48 +1,44 @@
1
- function r(e) {
2
- if (!Number.isSafeInteger(e) || e < 0)
3
- throw new Error(`Wrong positive integer: ${e}`);
1
+ function r(t) {
2
+ if (!Number.isSafeInteger(t) || t < 0)
3
+ throw new Error(`Wrong positive integer: ${t}`);
4
4
  }
5
- function i(e) {
6
- if (typeof e != "boolean")
7
- throw new Error(`Expected boolean, not ${e}`);
5
+ function i(t) {
6
+ if (typeof t != "boolean")
7
+ throw new Error(`Expected boolean, not ${t}`);
8
8
  }
9
- function n(e, ...t) {
10
- if (!(e instanceof Uint8Array))
9
+ function f(t) {
10
+ return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
11
+ }
12
+ function o(t, ...e) {
13
+ if (!f(t))
11
14
  throw new Error("Expected Uint8Array");
12
- if (t.length > 0 && !t.includes(e.length))
13
- throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`);
15
+ if (e.length > 0 && !e.includes(t.length))
16
+ throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`);
14
17
  }
15
- function f(e) {
16
- if (typeof e != "function" || typeof e.create != "function")
18
+ function s(t) {
19
+ if (typeof t != "function" || typeof t.create != "function")
17
20
  throw new Error("Hash should be wrapped by utils.wrapConstructor");
18
- r(e.outputLen), r(e.blockLen);
21
+ r(t.outputLen), r(t.blockLen);
19
22
  }
20
- function u(e, t = !0) {
21
- if (e.destroyed)
23
+ function u(t, e = !0) {
24
+ if (t.destroyed)
22
25
  throw new Error("Hash instance has been destroyed");
23
- if (t && e.finished)
26
+ if (e && t.finished)
24
27
  throw new Error("Hash#digest() has already been called");
25
28
  }
26
- function s(e, t) {
27
- n(e);
28
- const o = t.outputLen;
29
- if (e.length < o)
30
- throw new Error(`digestInto() expects output buffer of length at least ${o}`);
29
+ function c(t, e) {
30
+ o(t);
31
+ const n = e.outputLen;
32
+ if (t.length < n)
33
+ throw new Error(`digestInto() expects output buffer of length at least ${n}`);
31
34
  }
32
- const a = {
33
- number: r,
34
- bool: i,
35
- bytes: n,
36
- hash: f,
37
- exists: u,
38
- output: s
39
- };
35
+ const a = { number: r, bool: i, bytes: o, hash: s, exists: u, output: c }, l = a;
40
36
  export {
41
37
  i as bool,
42
- n as bytes,
43
- a as default,
38
+ o as bytes,
39
+ l as default,
44
40
  u as exists,
45
- f as hash,
41
+ s as hash,
46
42
  r as number,
47
- s as output
43
+ c as output
48
44
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./_assert.cjs"),c=require("./utils.cjs");function d(u,t,n,e){if(typeof u.setBigUint64=="function")return u.setBigUint64(t,n,e);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),r=Number(n&o),f=e?4:0,l=e?0:4;u.setUint32(t+f,s,e),u.setUint32(t+l,r,e)}class a extends c.Hash{constructor(t,n,e,i){super(),this.blockLen=t,this.outputLen=n,this.padOffset=e,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=c.createView(this.buffer)}update(t){p.default.exists(this);const{view:n,buffer:e,blockLen:i}=this;t=c.toBytes(t);const o=t.length;for(let s=0;s<o;){const r=Math.min(i-this.pos,o-s);if(r===i){const f=c.createView(t);for(;i<=o-s;s+=i)this.process(f,s);continue}e.set(t.subarray(s,s+r),this.pos),this.pos+=r,s+=r,this.pos===i&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){p.default.exists(this),p.default.output(t,this),this.finished=!0;const{buffer:n,view:e,blockLen:i,isLE:o}=this;let{pos:s}=this;n[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>i-s&&(this.process(e,0),s=0);for(let h=s;h<i;h++)n[h]=0;d(e,i-8,BigInt(this.length*8),o),this.process(e,0);const r=c.createView(t),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=f/4,g=this.get();if(l>g.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<l;h++)r.setUint32(4*h,g[h],o)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const e=t.slice(0,n);return this.destroy(),e}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:e,length:i,finished:o,destroyed:s,pos:r}=this;return t.length=i,t.pos=r,t.finished=o,t.destroyed=s,i%n&&t.buffer.set(e),t}}exports.SHA2=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./_assert.cjs"),c=require("./utils.cjs");function b(u,t,n,e){if(typeof u.setBigUint64=="function")return u.setBigUint64(t,n,e);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),r=Number(n&o),f=e?4:0,l=e?0:4;u.setUint32(t+f,s,e),u.setUint32(t+l,r,e)}class d extends c.Hash{constructor(t,n,e,i){super(),this.blockLen=t,this.outputLen=n,this.padOffset=e,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=c.createView(this.buffer)}update(t){p.exists(this);const{view:n,buffer:e,blockLen:i}=this;t=c.toBytes(t);const o=t.length;for(let s=0;s<o;){const r=Math.min(i-this.pos,o-s);if(r===i){const f=c.createView(t);for(;i<=o-s;s+=i)this.process(f,s);continue}e.set(t.subarray(s,s+r),this.pos),this.pos+=r,s+=r,this.pos===i&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){p.exists(this),p.output(t,this),this.finished=!0;const{buffer:n,view:e,blockLen:i,isLE:o}=this;let{pos:s}=this;n[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>i-s&&(this.process(e,0),s=0);for(let h=s;h<i;h++)n[h]=0;b(e,i-8,BigInt(this.length*8),o),this.process(e,0);const r=c.createView(t),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=f/4,g=this.get();if(l>g.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<l;h++)r.setUint32(4*h,g[h],o)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const e=t.slice(0,n);return this.destroy(),e}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:e,length:i,finished:o,destroyed:s,pos:r}=this;return t.length=i,t.pos=r,t.finished=o,t.destroyed=s,i%n&&t.buffer.set(e),t}}exports.SHA2=d;
@@ -1,24 +1,24 @@
1
- import p from "./_assert.js";
2
- import { Hash as b, createView as l, toBytes as d } from "./utils.js";
3
- function a(u, t, n, e) {
1
+ import { exists as g, output as b } from "./_assert.js";
2
+ import { Hash as d, createView as p, toBytes as a } from "./utils.js";
3
+ function w(u, t, n, e) {
4
4
  if (typeof u.setBigUint64 == "function")
5
5
  return u.setBigUint64(t, n, e);
6
6
  const i = BigInt(32), o = BigInt(4294967295), s = Number(n >> i & o), h = Number(n & o), f = e ? 4 : 0, c = e ? 0 : 4;
7
7
  u.setUint32(t + f, s, e), u.setUint32(t + c, h, e);
8
8
  }
9
- class y extends b {
9
+ class B extends d {
10
10
  constructor(t, n, e, i) {
11
- super(), this.blockLen = t, this.outputLen = n, this.padOffset = e, this.isLE = i, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view = l(this.buffer);
11
+ super(), this.blockLen = t, this.outputLen = n, this.padOffset = e, this.isLE = i, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view = p(this.buffer);
12
12
  }
13
13
  update(t) {
14
- p.exists(this);
14
+ g(this);
15
15
  const { view: n, buffer: e, blockLen: i } = this;
16
- t = d(t);
16
+ t = a(t);
17
17
  const o = t.length;
18
18
  for (let s = 0; s < o; ) {
19
19
  const h = Math.min(i - this.pos, o - s);
20
20
  if (h === i) {
21
- const f = l(t);
21
+ const f = p(t);
22
22
  for (; i <= o - s; s += i)
23
23
  this.process(f, s);
24
24
  continue;
@@ -28,21 +28,21 @@ class y extends b {
28
28
  return this.length += t.length, this.roundClean(), this;
29
29
  }
30
30
  digestInto(t) {
31
- p.exists(this), p.output(t, this), this.finished = !0;
31
+ g(this), b(t, this), this.finished = !0;
32
32
  const { buffer: n, view: e, blockLen: i, isLE: o } = this;
33
33
  let { pos: s } = this;
34
34
  n[s++] = 128, this.buffer.subarray(s).fill(0), this.padOffset > i - s && (this.process(e, 0), s = 0);
35
35
  for (let r = s; r < i; r++)
36
36
  n[r] = 0;
37
- a(e, i - 8, BigInt(this.length * 8), o), this.process(e, 0);
38
- const h = l(t), f = this.outputLen;
37
+ w(e, i - 8, BigInt(this.length * 8), o), this.process(e, 0);
38
+ const h = p(t), f = this.outputLen;
39
39
  if (f % 4)
40
40
  throw new Error("_sha2: outputLen should be aligned to 32bit");
41
- const c = f / 4, g = this.get();
42
- if (c > g.length)
41
+ const c = f / 4, l = this.get();
42
+ if (c > l.length)
43
43
  throw new Error("_sha2: outputLen bigger than state");
44
44
  for (let r = 0; r < c; r++)
45
- h.setUint32(4 * r, g[r], o);
45
+ h.setUint32(4 * r, l[r], o);
46
46
  }
47
47
  digest() {
48
48
  const { buffer: t, outputLen: n } = this;
@@ -57,5 +57,5 @@ class y extends b {
57
57
  }
58
58
  }
59
59
  export {
60
- y as SHA2
60
+ B as SHA2
61
61
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=BigInt(2**32-1),s=BigInt(32);function i(t,n=!1){return n?{h:Number(t&c),l:Number(t>>s&c)}:{h:Number(t>>s&c)|0,l:Number(t&c)|0}}function d(t,n=!1){let o=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let e=0;e<t.length;e++){const{h:l,l:g}=i(t[e],n);[o[e],r[e]]=[l,g]}return[o,r]}const u=(t,n)=>BigInt(t>>>0)<<s|BigInt(n>>>0),B=(t,n,o)=>t>>>o,f=(t,n,o)=>t<<32-o|n>>>o,h=(t,n,o)=>t>>>o|n<<32-o,H=(t,n,o)=>t<<32-o|n>>>o,L=(t,n,o)=>t<<64-o|n>>>o-32,S=(t,n,o)=>t>>>o-32|n<<64-o,m=(t,n)=>n,b=(t,n)=>t,A=(t,n,o)=>t<<o|n>>>32-o,I=(t,n,o)=>n<<o|t>>>32-o,N=(t,n,o)=>n<<o-32|t>>>64-o,_=(t,n,o)=>t<<o-32|n>>>64-o;function a(t,n,o,r){const e=(n>>>0)+(r>>>0);return{h:t+o+(e/2**32|0)|0,l:e|0}}const p=(t,n,o)=>(t>>>0)+(n>>>0)+(o>>>0),y=(t,n,o,r)=>n+o+r+(t/2**32|0)|0,M=(t,n,o,r)=>(t>>>0)+(n>>>0)+(o>>>0)+(r>>>0),U=(t,n,o,r,e)=>n+o+r+e+(t/2**32|0)|0,v=(t,n,o,r,e)=>(t>>>0)+(n>>>0)+(o>>>0)+(r>>>0)+(e>>>0),w=(t,n,o,r,e,l)=>n+o+r+e+l+(t/2**32|0)|0,j={fromBig:i,split:d,toBig:u,shrSH:B,shrSL:f,rotrSH:h,rotrSL:H,rotrBH:L,rotrBL:S,rotr32H:m,rotr32L:b,rotlSH:A,rotlSL:I,rotlBH:N,rotlBL:_,add:a,add3L:p,add3H:y,add4L:M,add4H:U,add5H:w,add5L:v};exports.add=a;exports.default=j;exports.fromBig=i;exports.split=d;exports.toBig=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=BigInt(2**32-1),l=BigInt(32);function s(t,o=!1){return o?{h:Number(t&e),l:Number(t>>l&e)}:{h:Number(t>>l&e)|0,l:Number(t&e)|0}}function a(t,o=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let d=0;d<t.length;d++){const{h:c,l:w}=s(t[d],o);[r[d],n[d]]=[c,w]}return[r,n]}const i=(t,o)=>BigInt(t>>>0)<<l|BigInt(o>>>0),u=(t,o,r)=>t>>>r,H=(t,o,r)=>t<<32-r|o>>>r,L=(t,o,r)=>t>>>r|o<<32-r,B=(t,o,r)=>t<<32-r|o>>>r,S=(t,o,r)=>t<<64-r|o>>>r-32,g=(t,o,r)=>t>>>r-32|o<<64-r,h=(t,o)=>o,f=(t,o)=>t,m=(t,o,r)=>t<<r|o>>>32-r,_=(t,o,r)=>o<<r|t>>>32-r,b=(t,o,r)=>o<<r-32|t>>>64-r,A=(t,o,r)=>t<<r-32|o>>>64-r;function I(t,o,r,n){const d=(o>>>0)+(n>>>0);return{h:t+r+(d/2**32|0)|0,l:d|0}}const N=(t,o,r)=>(t>>>0)+(o>>>0)+(r>>>0),p=(t,o,r,n)=>o+r+n+(t/2**32|0)|0,y=(t,o,r,n)=>(t>>>0)+(o>>>0)+(r>>>0)+(n>>>0),M=(t,o,r,n,d)=>o+r+n+d+(t/2**32|0)|0,U=(t,o,r,n,d)=>(t>>>0)+(o>>>0)+(r>>>0)+(n>>>0)+(d>>>0),v=(t,o,r,n,d,c)=>o+r+n+d+c+(t/2**32|0)|0,j={fromBig:s,split:a,toBig:i,shrSH:u,shrSL:H,rotrSH:L,rotrSL:B,rotrBH:S,rotrBL:g,rotr32H:h,rotr32L:f,rotlSH:m,rotlSL:_,rotlBH:b,rotlBL:A,add:I,add3L:N,add3H:p,add4L:y,add4H:M,add5H:v,add5L:U},K=j;exports.add=I;exports.add3H=p;exports.add3L=N;exports.add4H=M;exports.add4L=y;exports.add5H=v;exports.add5L=U;exports.default=K;exports.fromBig=s;exports.rotlBH=b;exports.rotlBL=A;exports.rotlSH=m;exports.rotlSL=_;exports.rotr32H=h;exports.rotr32L=f;exports.rotrBH=S;exports.rotrBL=g;exports.rotrSH=L;exports.rotrSL=B;exports.shrSH=u;exports.shrSL=H;exports.split=a;exports.toBig=i;
@@ -1,8 +1,8 @@
1
- const e = BigInt(4294967295), s = BigInt(32);
1
+ const e = /* @__PURE__ */ BigInt(4294967295), s = /* @__PURE__ */ BigInt(32);
2
2
  function d(t, o = !1) {
3
3
  return o ? { h: Number(t & e), l: Number(t >> s & e) } : { h: Number(t >> s & e) | 0, l: Number(t & e) | 0 };
4
4
  }
5
- function a(t, o = !1) {
5
+ function u(t, o = !1) {
6
6
  let n = new Uint32Array(t.length), r = new Uint32Array(t.length);
7
7
  for (let c = 0; c < t.length; c++) {
8
8
  const { h: l, l: i } = d(t[c], o);
@@ -10,15 +10,15 @@ function a(t, o = !1) {
10
10
  }
11
11
  return [n, r];
12
12
  }
13
- const u = (t, o) => BigInt(t >>> 0) << s | BigInt(o >>> 0), h = (t, o, n) => t >>> n, B = (t, o, n) => t << 32 - n | o >>> n, f = (t, o, n) => t >>> n | o << 32 - n, g = (t, o, n) => t << 32 - n | o >>> n, H = (t, o, n) => t << 64 - n | o >>> n - 32, L = (t, o, n) => t >>> n - 32 | o << 64 - n, S = (t, o) => o, m = (t, o) => t, A = (t, o, n) => t << n | o >>> 32 - n, b = (t, o, n) => o << n | t >>> 32 - n, I = (t, o, n) => o << n - 32 | t >>> 64 - n, N = (t, o, n) => t << n - 32 | o >>> 64 - n;
14
- function U(t, o, n, r) {
13
+ const a = (t, o) => BigInt(t >>> 0) << s | BigInt(o >>> 0), h = (t, o, n) => t >>> n, B = (t, o, n) => t << 32 - n | o >>> n, f = (t, o, n) => t >>> n | o << 32 - n, g = (t, o, n) => t << 32 - n | o >>> n, H = (t, o, n) => t << 64 - n | o >>> n - 32, L = (t, o, n) => t >>> n - 32 | o << 64 - n, S = (t, o) => o, m = (t, o) => t, A = (t, o, n) => t << n | o >>> 32 - n, _ = (t, o, n) => o << n | t >>> 32 - n, b = (t, o, n) => o << n - 32 | t >>> 64 - n, I = (t, o, n) => t << n - 32 | o >>> 64 - n;
14
+ function N(t, o, n, r) {
15
15
  const c = (o >>> 0) + (r >>> 0);
16
16
  return { h: t + n + (c / 2 ** 32 | 0) | 0, l: c | 0 };
17
17
  }
18
- const p = (t, o, n) => (t >>> 0) + (o >>> 0) + (n >>> 0), w = (t, o, n, r) => o + n + r + (t / 2 ** 32 | 0) | 0, y = (t, o, n, r) => (t >>> 0) + (o >>> 0) + (n >>> 0) + (r >>> 0), _ = (t, o, n, r, c) => o + n + r + c + (t / 2 ** 32 | 0) | 0, x = (t, o, n, r, c) => (t >>> 0) + (o >>> 0) + (n >>> 0) + (r >>> 0) + (c >>> 0), K = (t, o, n, r, c, l) => o + n + r + c + l + (t / 2 ** 32 | 0) | 0, M = {
18
+ const U = (t, o, n) => (t >>> 0) + (o >>> 0) + (n >>> 0), p = (t, o, n, r) => o + n + r + (t / 2 ** 32 | 0) | 0, w = (t, o, n, r) => (t >>> 0) + (o >>> 0) + (n >>> 0) + (r >>> 0), y = (t, o, n, r, c) => o + n + r + c + (t / 2 ** 32 | 0) | 0, x = (t, o, n, r, c) => (t >>> 0) + (o >>> 0) + (n >>> 0) + (r >>> 0) + (c >>> 0), K = (t, o, n, r, c, l) => o + n + r + c + l + (t / 2 ** 32 | 0) | 0, M = {
19
19
  fromBig: d,
20
- split: a,
21
- toBig: u,
20
+ split: u,
21
+ toBig: a,
22
22
  shrSH: h,
23
23
  shrSL: B,
24
24
  rotrSH: f,
@@ -28,21 +28,39 @@ const p = (t, o, n) => (t >>> 0) + (o >>> 0) + (n >>> 0), w = (t, o, n, r) => o
28
28
  rotr32H: S,
29
29
  rotr32L: m,
30
30
  rotlSH: A,
31
- rotlSL: b,
32
- rotlBH: I,
33
- rotlBL: N,
34
- add: U,
35
- add3L: p,
36
- add3H: w,
37
- add4L: y,
38
- add4H: _,
31
+ rotlSL: _,
32
+ rotlBH: b,
33
+ rotlBL: I,
34
+ add: N,
35
+ add3L: U,
36
+ add3H: p,
37
+ add4L: w,
38
+ add4H: y,
39
39
  add5H: K,
40
40
  add5L: x
41
- };
41
+ }, $ = M;
42
42
  export {
43
- U as add,
44
- M as default,
43
+ N as add,
44
+ p as add3H,
45
+ U as add3L,
46
+ y as add4H,
47
+ w as add4L,
48
+ K as add5H,
49
+ x as add5L,
50
+ $ as default,
45
51
  d as fromBig,
46
- a as split,
47
- u as toBig
52
+ b as rotlBH,
53
+ I as rotlBL,
54
+ A as rotlSH,
55
+ _ as rotlSL,
56
+ S as rotr32H,
57
+ m as rotr32L,
58
+ H as rotrBH,
59
+ L as rotrBL,
60
+ f as rotrSH,
61
+ g as rotrSL,
62
+ h as shrSH,
63
+ B as shrSL,
64
+ u as split,
65
+ a as toBig
48
66
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./_assert.cjs"),d=require("./utils.cjs");class r extends d.Hash{constructor(t,i){super(),this.finished=!1,this.destroyed=!1,o.default.hash(t);const h=d.toBytes(i);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,e=new Uint8Array(a);e.set(h.length>a?t.create().update(h).digest():h);for(let s=0;s<e.length;s++)e[s]^=54;this.iHash.update(e),this.oHash=t.create();for(let s=0;s<e.length;s++)e[s]^=106;this.oHash.update(e),e.fill(0)}update(t){return o.default.exists(this),this.iHash.update(t),this}digestInto(t){o.default.exists(this),o.default.bytes(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:i,iHash:h,finished:a,destroyed:e,blockLen:s,outputLen:u}=this;return t=t,t.finished=a,t.destroyed=e,t.blockLen=s,t.outputLen=u,t.oHash=i._cloneInto(t.oHash),t.iHash=h._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const c=(n,t,i)=>new r(n,t).update(i).digest();c.create=(n,t)=>new r(n,t);exports.HMAC=r;exports.hmac=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./_assert.cjs"),c=require("./utils.cjs");class r extends c.Hash{constructor(t,i){super(),this.finished=!1,this.destroyed=!1,a.hash(t);const h=c.toBytes(i);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,e=new Uint8Array(o);e.set(h.length>o?t.create().update(h).digest():h);for(let s=0;s<e.length;s++)e[s]^=54;this.iHash.update(e),this.oHash=t.create();for(let s=0;s<e.length;s++)e[s]^=106;this.oHash.update(e),e.fill(0)}update(t){return a.exists(this),this.iHash.update(t),this}digestInto(t){a.exists(this),a.bytes(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:i,iHash:h,finished:o,destroyed:e,blockLen:s,outputLen:u}=this;return t=t,t.finished=o,t.destroyed=e,t.blockLen=s,t.outputLen=u,t.oHash=i._cloneInto(t.oHash),t.iHash=h._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const d=(n,t,i)=>new r(n,t).update(i).digest();d.create=(n,t)=>new r(n,t);exports.HMAC=r;exports.hmac=d;
@@ -1,26 +1,26 @@
1
- import a from "./_assert.js";
2
- import { Hash as c, toBytes as u } from "./utils.js";
3
- class r extends c {
1
+ import { hash as c, exists as a, bytes as u } from "./_assert.js";
2
+ import { Hash as H, toBytes as p } from "./utils.js";
3
+ class r extends H {
4
4
  constructor(t, i) {
5
- super(), this.finished = !1, this.destroyed = !1, a.hash(t);
6
- const h = u(i);
5
+ super(), this.finished = !1, this.destroyed = !1, c(t);
6
+ const h = p(i);
7
7
  if (this.iHash = t.create(), typeof this.iHash.update != "function")
8
8
  throw new Error("Expected instance of class which extends utils.Hash");
9
9
  this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
10
- const o = this.blockLen, s = new Uint8Array(o);
11
- s.set(h.length > o ? t.create().update(h).digest() : h);
12
- for (let e = 0; e < s.length; e++)
13
- s[e] ^= 54;
14
- this.iHash.update(s), this.oHash = t.create();
15
- for (let e = 0; e < s.length; e++)
16
- s[e] ^= 106;
17
- this.oHash.update(s), s.fill(0);
10
+ const o = this.blockLen, e = new Uint8Array(o);
11
+ e.set(h.length > o ? t.create().update(h).digest() : h);
12
+ for (let s = 0; s < e.length; s++)
13
+ e[s] ^= 54;
14
+ this.iHash.update(e), this.oHash = t.create();
15
+ for (let s = 0; s < e.length; s++)
16
+ e[s] ^= 106;
17
+ this.oHash.update(e), e.fill(0);
18
18
  }
19
19
  update(t) {
20
- return a.exists(this), this.iHash.update(t), this;
20
+ return a(this), this.iHash.update(t), this;
21
21
  }
22
22
  digestInto(t) {
23
- a.exists(this), a.bytes(t, this.outputLen), this.finished = !0, this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
23
+ a(this), u(t, this.outputLen), this.finished = !0, this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
24
24
  }
25
25
  digest() {
26
26
  const t = new Uint8Array(this.oHash.outputLen);
@@ -28,16 +28,16 @@ class r extends c {
28
28
  }
29
29
  _cloneInto(t) {
30
30
  t || (t = Object.create(Object.getPrototypeOf(this), {}));
31
- const { oHash: i, iHash: h, finished: o, destroyed: s, blockLen: e, outputLen: d } = this;
32
- return t = t, t.finished = o, t.destroyed = s, t.blockLen = e, t.outputLen = d, t.oHash = i._cloneInto(t.oHash), t.iHash = h._cloneInto(t.iHash), t;
31
+ const { oHash: i, iHash: h, finished: o, destroyed: e, blockLen: s, outputLen: d } = this;
32
+ return t = t, t.finished = o, t.destroyed = e, t.blockLen = s, t.outputLen = d, t.oHash = i._cloneInto(t.oHash), t.iHash = h._cloneInto(t.iHash), t;
33
33
  }
34
34
  destroy() {
35
35
  this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
36
36
  }
37
37
  }
38
- const H = (n, t, i) => new r(n, t).update(i).digest();
39
- H.create = (n, t) => new r(n, t);
38
+ const l = (n, t, i) => new r(n, t).update(i).digest();
39
+ l.create = (n, t) => new r(n, t);
40
40
  export {
41
41
  r as HMAC,
42
- H as hmac
42
+ l as hmac
43
43
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./_assert.cjs"),g=require("./hmac.cjs"),w=require("./utils.cjs");function m(n,c,u,o){k.default.hash(n);const a=w.checkOpts({dkLen:32,asyncTick:10},o),{c:i,dkLen:r,asyncTick:t}=a;if(k.default.number(i),k.default.number(r),k.default.number(t),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const l=w.toBytes(c),s=w.toBytes(u),d=new Uint8Array(r),f=g.hmac.create(n,l),e=f._cloneInto().update(s);return{c:i,dkLen:r,asyncTick:t,DK:d,PRF:f,PRFSalt:e}}function L(n,c,u,o,a){return n.destroy(),c.destroy(),o&&o.destroy(),a.fill(0),u}function P(n,c,u,o){const{c:a,dkLen:i,DK:r,PRF:t,PRFSalt:l}=m(n,c,u,o);let s;const d=new Uint8Array(4),f=w.createView(d),e=new Uint8Array(t.outputLen);for(let h=1,p=0;p<i;h++,p+=t.outputLen){const y=r.subarray(p,p+t.outputLen);f.setInt32(0,h,!1),(s=l._cloneInto(s)).update(d).digestInto(e),y.set(e.subarray(0,y.length));for(let I=1;I<a;I++){t._cloneInto(s).update(e).digestInto(e);for(let b=0;b<y.length;b++)y[b]^=e[b]}}return L(t,l,r,s,e)}exports.pbkdf2=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./_assert.cjs"),g=require("./hmac.cjs"),w=require("./utils.cjs");function m(n,c,u,o){k.hash(n);const i=w.checkOpts({dkLen:32,asyncTick:10},o),{c:a,dkLen:r,asyncTick:t}=i;if(k.number(a),k.number(r),k.number(t),a<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const l=w.toBytes(c),s=w.toBytes(u),d=new Uint8Array(r),p=g.hmac.create(n,l),e=p._cloneInto().update(s);return{c:a,dkLen:r,asyncTick:t,DK:d,PRF:p,PRFSalt:e}}function L(n,c,u,o,i){return n.destroy(),c.destroy(),o&&o.destroy(),i.fill(0),u}function P(n,c,u,o){const{c:i,dkLen:a,DK:r,PRF:t,PRFSalt:l}=m(n,c,u,o);let s;const d=new Uint8Array(4),p=w.createView(d),e=new Uint8Array(t.outputLen);for(let h=1,f=0;f<a;h++,f+=t.outputLen){const y=r.subarray(f,f+t.outputLen);p.setInt32(0,h,!1),(s=l._cloneInto(s)).update(d).digestInto(e),y.set(e.subarray(0,y.length));for(let I=1;I<i;I++){t._cloneInto(s).update(e).digestInto(e);for(let b=0;b<y.length;b++)y[b]^=e[b]}}return L(t,l,r,s,e)}exports.pbkdf2=P;
@@ -1,32 +1,32 @@
1
- import b from "./_assert.js";
2
- import { hmac as h } from "./hmac.js";
3
- import { createView as L, checkOpts as F, toBytes as I } from "./utils.js";
4
- function P(e, c, i, o) {
5
- b.hash(e);
6
- const u = F({ dkLen: 32, asyncTick: 10 }, o), { c: a, dkLen: r, asyncTick: t } = u;
7
- if (b.number(a), b.number(r), b.number(t), a < 1)
1
+ import { hash as h, number as m } from "./_assert.js";
2
+ import { hmac as L } from "./hmac.js";
3
+ import { createView as F, checkOpts as P, toBytes as I } from "./utils.js";
4
+ function g(o, c, i, e) {
5
+ h(o);
6
+ const u = P({ dkLen: 32, asyncTick: 10 }, e), { c: a, dkLen: r, asyncTick: t } = u;
7
+ if (m(a), m(r), m(t), a < 1)
8
8
  throw new Error("PBKDF2: iterations (c) should be >= 1");
9
- const p = I(c), s = I(i), d = new Uint8Array(r), f = h.create(e, p), n = f._cloneInto().update(s);
9
+ const p = I(c), s = I(i), d = new Uint8Array(r), f = L.create(o, p), n = f._cloneInto().update(s);
10
10
  return { c: a, dkLen: r, asyncTick: t, DK: d, PRF: f, PRFSalt: n };
11
11
  }
12
- function g(e, c, i, o, u) {
13
- return e.destroy(), c.destroy(), o && o.destroy(), u.fill(0), i;
12
+ function R(o, c, i, e, u) {
13
+ return o.destroy(), c.destroy(), e && e.destroy(), u.fill(0), i;
14
14
  }
15
- function K(e, c, i, o) {
16
- const { c: u, dkLen: a, DK: r, PRF: t, PRFSalt: p } = P(e, c, i, o);
15
+ function T(o, c, i, e) {
16
+ const { c: u, dkLen: a, DK: r, PRF: t, PRFSalt: p } = g(o, c, i, e);
17
17
  let s;
18
- const d = new Uint8Array(4), f = L(d), n = new Uint8Array(t.outputLen);
19
- for (let k = 1, l = 0; l < a; k++, l += t.outputLen) {
18
+ const d = new Uint8Array(4), f = F(d), n = new Uint8Array(t.outputLen);
19
+ for (let w = 1, l = 0; l < a; w++, l += t.outputLen) {
20
20
  const y = r.subarray(l, l + t.outputLen);
21
- f.setInt32(0, k, !1), (s = p._cloneInto(s)).update(d).digestInto(n), y.set(n.subarray(0, y.length));
22
- for (let w = 1; w < u; w++) {
21
+ f.setInt32(0, w, !1), (s = p._cloneInto(s)).update(d).digestInto(n), y.set(n.subarray(0, y.length));
22
+ for (let b = 1; b < u; b++) {
23
23
  t._cloneInto(s).update(n).digestInto(n);
24
- for (let m = 0; m < y.length; m++)
25
- y[m] ^= n[m];
24
+ for (let k = 0; k < y.length; k++)
25
+ y[k] ^= n[k];
26
26
  }
27
27
  }
28
- return g(t, p, r, s, n);
28
+ return R(t, p, r, s, n);
29
29
  }
30
30
  export {
31
- K as pbkdf2
31
+ T as pbkdf2
32
32
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./_assert.cjs"),J=require("./sha256.cjs"),K=require("./pbkdf2.cjs"),D=require("./utils.cjs"),t=(r,l)=>r<<l|r>>>32-l;function H(r,l,n,s,e,c){let a=r[l++]^n[s++],o=r[l++]^n[s++],x=r[l++]^n[s++],b=r[l++]^n[s++],d=r[l++]^n[s++],y=r[l++]^n[s++],S=r[l++]^n[s++],h=r[l++]^n[s++],m=r[l++]^n[s++],f=r[l++]^n[s++],w=r[l++]^n[s++],k=r[l++]^n[s++],X=r[l++]^n[s++],$=r[l++]^n[s++],_=r[l++]^n[s++],g=r[l++]^n[s++],M=a,q=o,u=x,B=b,E=d,L=y,C=S,N=h,P=m,z=f,A=w,O=k,T=X,U=$,j=_,V=g;for(let G=0;G<8;G+=2)E^=t(M+T|0,7),P^=t(E+M|0,9),T^=t(P+E|0,13),M^=t(T+P|0,18),z^=t(L+q|0,7),U^=t(z+L|0,9),q^=t(U+z|0,13),L^=t(q+U|0,18),j^=t(A+C|0,7),u^=t(j+A|0,9),C^=t(u+j|0,13),A^=t(C+u|0,18),B^=t(V+O|0,7),N^=t(B+V|0,9),O^=t(N+B|0,13),V^=t(O+N|0,18),q^=t(M+B|0,7),u^=t(q+M|0,9),B^=t(u+q|0,13),M^=t(B+u|0,18),C^=t(L+E|0,7),N^=t(C+L|0,9),E^=t(N+C|0,13),L^=t(E+N|0,18),O^=t(A+z|0,7),P^=t(O+A|0,9),z^=t(P+O|0,13),A^=t(z+P|0,18),T^=t(V+j|0,7),U^=t(T+V|0,9),j^=t(U+T|0,13),V^=t(j+U|0,18);e[c++]=a+M|0,e[c++]=o+q|0,e[c++]=x+u|0,e[c++]=b+B|0,e[c++]=d+E|0,e[c++]=y+L|0,e[c++]=S+C|0,e[c++]=h+N|0,e[c++]=m+P|0,e[c++]=f+z|0,e[c++]=w+A|0,e[c++]=k+O|0,e[c++]=X+T|0,e[c++]=$+U|0,e[c++]=_+j|0,e[c++]=g+V|0}function F(r,l,n,s,e){let c=s+0,a=s+16*e;for(let o=0;o<16;o++)n[a+o]=r[l+(2*e-1)*16+o];for(let o=0;o<e;o++,c+=16,l+=16)H(n,a,r,l,n,c),o>0&&(a+=16),H(n,c,r,l+=16,n,a)}function Q(r,l,n){const s=D.checkOpts({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:e,r:c,p:a,dkLen:o,asyncTick:x,maxmem:b,onProgress:d}=s;if(I.default.number(e),I.default.number(c),I.default.number(a),I.default.number(o),I.default.number(x),I.default.number(b),d!==void 0&&typeof d!="function")throw new Error("progressCb should be function");const y=128*c,S=y/4;if(e<=1||e&e-1||e>=2**(y/8)||e>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(a<0||a>(2**32-1)*32/y)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(o<0||o>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const h=y*(e+a);if(h>b)throw new Error(`Scrypt: parameters too large, ${h} (128 * r * (N + p)) > ${b} (maxmem)`);const m=K.pbkdf2(J.sha256,r,l,{c:1,dkLen:y*a}),f=D.u32(m),w=D.u32(new Uint8Array(y*e)),k=D.u32(new Uint8Array(y));let X=()=>{};if(d){const $=2*e*a,_=Math.max(Math.floor($/1e4),1);let g=0;X=()=>{g++,d&&(!(g%_)||g===$)&&d(g/$)}}return{N:e,r:c,p:a,dkLen:o,blockSize32:S,V:w,B32:f,B:m,tmp:k,blockMixCb:X,asyncTick:x}}function R(r,l,n,s,e){const c=K.pbkdf2(J.sha256,r,n,{c:1,dkLen:l});return n.fill(0),s.fill(0),e.fill(0),c}function W(r,l,n){const{N:s,r:e,p:c,dkLen:a,blockSize32:o,V:x,B32:b,B:d,tmp:y,blockMixCb:S}=Q(r,l,n);for(let h=0;h<c;h++){const m=o*h;for(let f=0;f<o;f++)x[f]=b[m+f];for(let f=0,w=0;f<s-1;f++)F(x,w,x,w+=o,e),S();F(x,(s-1)*o,b,m,e),S();for(let f=0;f<s;f++){const w=b[m+o-16]%s;for(let k=0;k<o;k++)y[k]=b[m+k]^x[w*o+k];F(y,0,b,m,e),S()}}return R(r,a,d,x,y)}exports.scrypt=W;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("./_assert.cjs"),J=require("./sha256.cjs"),K=require("./pbkdf2.cjs"),D=require("./utils.cjs"),r=(t,n)=>t<<n|t>>>32-n;function H(t,n,s,l,e,c){let a=t[n++]^s[l++],o=t[n++]^s[l++],x=t[n++]^s[l++],b=t[n++]^s[l++],k=t[n++]^s[l++],y=t[n++]^s[l++],S=t[n++]^s[l++],d=t[n++]^s[l++],m=t[n++]^s[l++],f=t[n++]^s[l++],w=t[n++]^s[l++],h=t[n++]^s[l++],_=t[n++]^s[l++],I=t[n++]^s[l++],u=t[n++]^s[l++],g=t[n++]^s[l++],M=a,q=o,B=x,E=b,L=k,C=y,N=S,P=d,z=m,A=f,O=w,T=h,U=_,j=I,V=u,$=g;for(let G=0;G<8;G+=2)L^=r(M+U|0,7),z^=r(L+M|0,9),U^=r(z+L|0,13),M^=r(U+z|0,18),A^=r(C+q|0,7),j^=r(A+C|0,9),q^=r(j+A|0,13),C^=r(q+j|0,18),V^=r(O+N|0,7),B^=r(V+O|0,9),N^=r(B+V|0,13),O^=r(N+B|0,18),E^=r($+T|0,7),P^=r(E+$|0,9),T^=r(P+E|0,13),$^=r(T+P|0,18),q^=r(M+E|0,7),B^=r(q+M|0,9),E^=r(B+q|0,13),M^=r(E+B|0,18),N^=r(C+L|0,7),P^=r(N+C|0,9),L^=r(P+N|0,13),C^=r(L+P|0,18),T^=r(O+A|0,7),z^=r(T+O|0,9),A^=r(z+T|0,13),O^=r(A+z|0,18),U^=r($+V|0,7),j^=r(U+$|0,9),V^=r(j+U|0,13),$^=r(V+j|0,18);e[c++]=a+M|0,e[c++]=o+q|0,e[c++]=x+B|0,e[c++]=b+E|0,e[c++]=k+L|0,e[c++]=y+C|0,e[c++]=S+N|0,e[c++]=d+P|0,e[c++]=m+z|0,e[c++]=f+A|0,e[c++]=w+O|0,e[c++]=h+T|0,e[c++]=_+U|0,e[c++]=I+j|0,e[c++]=u+V|0,e[c++]=g+$|0}function F(t,n,s,l,e){let c=l+0,a=l+16*e;for(let o=0;o<16;o++)s[a+o]=t[n+(2*e-1)*16+o];for(let o=0;o<e;o++,c+=16,n+=16)H(s,a,t,n,s,c),o>0&&(a+=16),H(s,c,t,n+=16,s,a)}function Q(t,n,s){const l=D.checkOpts({dkLen:32,asyncTick:10,maxmem:1073742848},s),{N:e,r:c,p:a,dkLen:o,asyncTick:x,maxmem:b,onProgress:k}=l;if(X.number(e),X.number(c),X.number(a),X.number(o),X.number(x),X.number(b),k!==void 0&&typeof k!="function")throw new Error("progressCb should be function");const y=128*c,S=y/4;if(e<=1||e&e-1||e>=2**(y/8)||e>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(a<0||a>(2**32-1)*32/y)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(o<0||o>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const d=y*(e+a);if(d>b)throw new Error(`Scrypt: parameters too large, ${d} (128 * r * (N + p)) > ${b} (maxmem)`);const m=K.pbkdf2(J.sha256,t,n,{c:1,dkLen:y*a}),f=D.u32(m),w=D.u32(new Uint8Array(y*e)),h=D.u32(new Uint8Array(y));let _=()=>{};if(k){const I=2*e*a,u=Math.max(Math.floor(I/1e4),1);let g=0;_=()=>{g++,k&&(!(g%u)||g===I)&&k(g/I)}}return{N:e,r:c,p:a,dkLen:o,blockSize32:S,V:w,B32:f,B:m,tmp:h,blockMixCb:_,asyncTick:x}}function R(t,n,s,l,e){const c=K.pbkdf2(J.sha256,t,s,{c:1,dkLen:n});return s.fill(0),l.fill(0),e.fill(0),c}function W(t,n,s){const{N:l,r:e,p:c,dkLen:a,blockSize32:o,V:x,B32:b,B:k,tmp:y,blockMixCb:S}=Q(t,n,s);for(let d=0;d<c;d++){const m=o*d;for(let f=0;f<o;f++)x[f]=b[m+f];for(let f=0,w=0;f<l-1;f++)F(x,w,x,w+=o,e),S();F(x,(l-1)*o,b,m,e),S();for(let f=0;f<l;f++){const w=b[m+o-16]%l;for(let h=0;h<o;h++)y[h]=b[m+h]^x[w*o+h];F(y,0,b,m,e),S()}}return R(t,a,k,x,y)}exports.scrypt=W;
@@ -1,72 +1,72 @@
1
- import X from "./_assert.js";
1
+ import { number as X } from "./_assert.js";
2
2
  import { sha256 as Q } from "./sha256.js";
3
3
  import { pbkdf2 as R } from "./pbkdf2.js";
4
4
  import { checkOpts as W, u32 as G } from "./utils.js";
5
5
  const r = (t, l) => t << l | t >>> 32 - l;
6
- function K(t, l, n, c, e, s) {
7
- let f = t[l++] ^ n[c++], o = t[l++] ^ n[c++], y = t[l++] ^ n[c++], x = t[l++] ^ n[c++], k = t[l++] ^ n[c++], m = t[l++] ^ n[c++], S = t[l++] ^ n[c++], d = t[l++] ^ n[c++], b = t[l++] ^ n[c++], a = t[l++] ^ n[c++], w = t[l++] ^ n[c++], h = t[l++] ^ n[c++], D = t[l++] ^ n[c++], I = t[l++] ^ n[c++], F = t[l++] ^ n[c++], M = t[l++] ^ n[c++], g = f, B = o, E = y, L = x, C = k, N = m, z = S, A = d, P = b, U = a, q = w, O = h, T = D, V = I, $ = F, j = M;
6
+ function K(t, l, c, n, e, o) {
7
+ let f = t[l++] ^ c[n++], s = t[l++] ^ c[n++], m = t[l++] ^ c[n++], x = t[l++] ^ c[n++], h = t[l++] ^ c[n++], y = t[l++] ^ c[n++], S = t[l++] ^ c[n++], d = t[l++] ^ c[n++], k = t[l++] ^ c[n++], a = t[l++] ^ c[n++], w = t[l++] ^ c[n++], b = t[l++] ^ c[n++], D = t[l++] ^ c[n++], I = t[l++] ^ c[n++], F = t[l++] ^ c[n++], M = t[l++] ^ c[n++], g = f, B = s, E = m, L = x, C = h, N = y, z = S, A = d, P = k, U = a, q = w, O = b, T = D, V = I, $ = F, j = M;
8
8
  for (let J = 0; J < 8; J += 2)
9
9
  C ^= r(g + T | 0, 7), P ^= r(C + g | 0, 9), T ^= r(P + C | 0, 13), g ^= r(T + P | 0, 18), U ^= r(N + B | 0, 7), V ^= r(U + N | 0, 9), B ^= r(V + U | 0, 13), N ^= r(B + V | 0, 18), $ ^= r(q + z | 0, 7), E ^= r($ + q | 0, 9), z ^= r(E + $ | 0, 13), q ^= r(z + E | 0, 18), L ^= r(j + O | 0, 7), A ^= r(L + j | 0, 9), O ^= r(A + L | 0, 13), j ^= r(O + A | 0, 18), B ^= r(g + L | 0, 7), E ^= r(B + g | 0, 9), L ^= r(E + B | 0, 13), g ^= r(L + E | 0, 18), z ^= r(N + C | 0, 7), A ^= r(z + N | 0, 9), C ^= r(A + z | 0, 13), N ^= r(C + A | 0, 18), O ^= r(q + U | 0, 7), P ^= r(O + q | 0, 9), U ^= r(P + O | 0, 13), q ^= r(U + P | 0, 18), T ^= r(j + $ | 0, 7), V ^= r(T + j | 0, 9), $ ^= r(V + T | 0, 13), j ^= r($ + V | 0, 18);
10
- e[s++] = f + g | 0, e[s++] = o + B | 0, e[s++] = y + E | 0, e[s++] = x + L | 0, e[s++] = k + C | 0, e[s++] = m + N | 0, e[s++] = S + z | 0, e[s++] = d + A | 0, e[s++] = b + P | 0, e[s++] = a + U | 0, e[s++] = w + q | 0, e[s++] = h + O | 0, e[s++] = D + T | 0, e[s++] = I + V | 0, e[s++] = F + $ | 0, e[s++] = M + j | 0;
10
+ e[o++] = f + g | 0, e[o++] = s + B | 0, e[o++] = m + E | 0, e[o++] = x + L | 0, e[o++] = h + C | 0, e[o++] = y + N | 0, e[o++] = S + z | 0, e[o++] = d + A | 0, e[o++] = k + P | 0, e[o++] = a + U | 0, e[o++] = w + q | 0, e[o++] = b + O | 0, e[o++] = D + T | 0, e[o++] = I + V | 0, e[o++] = F + $ | 0, e[o++] = M + j | 0;
11
11
  }
12
- function H(t, l, n, c, e) {
13
- let s = c + 0, f = c + 16 * e;
14
- for (let o = 0; o < 16; o++)
15
- n[f + o] = t[l + (2 * e - 1) * 16 + o];
16
- for (let o = 0; o < e; o++, s += 16, l += 16)
17
- K(n, f, t, l, n, s), o > 0 && (f += 16), K(n, s, t, l += 16, n, f);
12
+ function H(t, l, c, n, e) {
13
+ let o = n + 0, f = n + 16 * e;
14
+ for (let s = 0; s < 16; s++)
15
+ c[f + s] = t[l + (2 * e - 1) * 16 + s];
16
+ for (let s = 0; s < e; s++, o += 16, l += 16)
17
+ K(c, f, t, l, c, o), s > 0 && (f += 16), K(c, o, t, l += 16, c, f);
18
18
  }
19
- function Y(t, l, n) {
20
- const c = W({
19
+ function Y(t, l, c) {
20
+ const n = W({
21
21
  dkLen: 32,
22
22
  asyncTick: 10,
23
23
  maxmem: 1073742848
24
- }, n), { N: e, r: s, p: f, dkLen: o, asyncTick: y, maxmem: x, onProgress: k } = c;
25
- if (X.number(e), X.number(s), X.number(f), X.number(o), X.number(y), X.number(x), k !== void 0 && typeof k != "function")
24
+ }, c), { N: e, r: o, p: f, dkLen: s, asyncTick: m, maxmem: x, onProgress: h } = n;
25
+ if (X(e), X(o), X(f), X(s), X(m), X(x), h !== void 0 && typeof h != "function")
26
26
  throw new Error("progressCb should be function");
27
- const m = 128 * s, S = m / 4;
28
- if (e <= 1 || e & e - 1 || e >= 2 ** (m / 8) || e > 2 ** 32)
27
+ const y = 128 * o, S = y / 4;
28
+ if (e <= 1 || e & e - 1 || e >= 2 ** (y / 8) || e > 2 ** 32)
29
29
  throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");
30
- if (f < 0 || f > (2 ** 32 - 1) * 32 / m)
30
+ if (f < 0 || f > (2 ** 32 - 1) * 32 / y)
31
31
  throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");
32
- if (o < 0 || o > (2 ** 32 - 1) * 32)
32
+ if (s < 0 || s > (2 ** 32 - 1) * 32)
33
33
  throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");
34
- const d = m * (e + f);
34
+ const d = y * (e + f);
35
35
  if (d > x)
36
36
  throw new Error(`Scrypt: parameters too large, ${d} (128 * r * (N + p)) > ${x} (maxmem)`);
37
- const b = R(Q, t, l, { c: 1, dkLen: m * f }), a = G(b), w = G(new Uint8Array(m * e)), h = G(new Uint8Array(m));
37
+ const k = R(Q, t, l, { c: 1, dkLen: y * f }), a = G(k), w = G(new Uint8Array(y * e)), b = G(new Uint8Array(y));
38
38
  let D = () => {
39
39
  };
40
- if (k) {
40
+ if (h) {
41
41
  const I = 2 * e * f, F = Math.max(Math.floor(I / 1e4), 1);
42
42
  let M = 0;
43
43
  D = () => {
44
- M++, k && (!(M % F) || M === I) && k(M / I);
44
+ M++, h && (!(M % F) || M === I) && h(M / I);
45
45
  };
46
46
  }
47
- return { N: e, r: s, p: f, dkLen: o, blockSize32: S, V: w, B32: a, B: b, tmp: h, blockMixCb: D, asyncTick: y };
47
+ return { N: e, r: o, p: f, dkLen: s, blockSize32: S, V: w, B32: a, B: k, tmp: b, blockMixCb: D, asyncTick: m };
48
48
  }
49
- function Z(t, l, n, c, e) {
50
- const s = R(Q, t, n, { c: 1, dkLen: l });
51
- return n.fill(0), c.fill(0), e.fill(0), s;
49
+ function Z(t, l, c, n, e) {
50
+ const o = R(Q, t, c, { c: 1, dkLen: l });
51
+ return c.fill(0), n.fill(0), e.fill(0), o;
52
52
  }
53
- function i(t, l, n) {
54
- const { N: c, r: e, p: s, dkLen: f, blockSize32: o, V: y, B32: x, B: k, tmp: m, blockMixCb: S } = Y(t, l, n);
55
- for (let d = 0; d < s; d++) {
56
- const b = o * d;
57
- for (let a = 0; a < o; a++)
58
- y[a] = x[b + a];
59
- for (let a = 0, w = 0; a < c - 1; a++)
60
- H(y, w, y, w += o, e), S();
61
- H(y, (c - 1) * o, x, b, e), S();
62
- for (let a = 0; a < c; a++) {
63
- const w = x[b + o - 16] % c;
64
- for (let h = 0; h < o; h++)
65
- m[h] = x[b + h] ^ y[w * o + h];
66
- H(m, 0, x, b, e), S();
53
+ function i(t, l, c) {
54
+ const { N: n, r: e, p: o, dkLen: f, blockSize32: s, V: m, B32: x, B: h, tmp: y, blockMixCb: S } = Y(t, l, c);
55
+ for (let d = 0; d < o; d++) {
56
+ const k = s * d;
57
+ for (let a = 0; a < s; a++)
58
+ m[a] = x[k + a];
59
+ for (let a = 0, w = 0; a < n - 1; a++)
60
+ H(m, w, m, w += s, e), S();
61
+ H(m, (n - 1) * s, x, k, e), S();
62
+ for (let a = 0; a < n; a++) {
63
+ const w = x[k + s - 16] % n;
64
+ for (let b = 0; b < s; b++)
65
+ y[b] = x[k + b] ^ m[w * s + b];
66
+ H(y, 0, x, k, e), S();
67
67
  }
68
68
  }
69
- return Z(t, f, k, y, m);
69
+ return Z(t, f, h, m, y);
70
70
  }
71
71
  export {
72
72
  i as scrypt