@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.
- package/dist/main.css +1 -1
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -1
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +222 -218
- package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -1
- package/dist/node_modules/@noble/curves/esm/abstract/modular.js +102 -91
- package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -1
- package/dist/node_modules/@noble/curves/esm/abstract/utils.js +138 -115
- package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -1
- package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +185 -185
- package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +1 -1
- package/dist/node_modules/@noble/curves/esm/secp256k1.js +11 -8
- package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.js +29 -33
- package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_sha2.js +15 -15
- package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_u64.js +38 -20
- package/dist/node_modules/@noble/hashes/esm/hmac.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/hmac.js +20 -20
- package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +20 -20
- package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/scrypt.js +41 -41
- package/dist/node_modules/@noble/hashes/esm/sha256.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha256.js +23 -29
- package/dist/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha3.js +44 -55
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha512.js +23 -41
- package/dist/node_modules/@noble/hashes/esm/utils.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/utils.js +37 -33
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +20 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +3974 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1202 -0
- package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -0
- package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +97 -0
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +1 -0
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +37 -0
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +1 -0
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +22 -0
- package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
- package/dist/node_modules/ethereum-cryptography/esm/utils.js +1 -4
- package/dist/node_modules/js-cookie/dist/js.cookie.cjs +1 -0
- package/dist/node_modules/js-cookie/dist/js.cookie.js +74 -0
- package/dist/node_modules/vue3-carousel/dist/carousel.es.cjs +4 -4
- package/dist/node_modules/vue3-carousel/dist/carousel.es.js +340 -244
- package/dist/node_modules/web3/lib/esm/abi.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/abi.js +5 -10
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +27 -24
- package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/version.js +1 -1
- package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/web3.js +53 -57
- package/dist/node_modules/web3-core/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/utils.js +3 -4
- package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_config.js +22 -19
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +72 -57
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +53 -61
- package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +8 -8
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +42 -42
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +19 -19
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +29 -29
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +51 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +132 -47
- package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +21 -15
- package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +15 -13
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +61 -53
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +36 -9
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +107 -103
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +135 -133
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +47 -31
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +18 -17
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +113 -111
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +27 -27
- package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +28 -40
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +10 -10
- package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/converters.js +78 -75
- package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/formatter.js +8 -8
- package/dist/node_modules/web3-utils/lib/esm/hash.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/hash.js +44 -43
- package/dist/node_modules/web3-utils/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/index.js +64 -62
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +78 -40
- package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/uint8array.js +16 -11
- package/dist/node_modules/web3-utils/lib/esm/validation.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/validation.js +45 -33
- package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/utils.js +127 -104
- package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/address.js +12 -11
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +17 -13
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +7 -9
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +8 -8
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +3 -3
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +52 -52
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2501 -2482
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +2 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +75 -61
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +33 -33
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +4 -2
- package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.cjs +1 -0
- package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.js +701 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +14 -7
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +2 -80
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +80 -2
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +62 -0
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +15 -15
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +51 -40
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +21 -21
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -7
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +12 -13
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +53 -36
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +117 -0
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +48 -40
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -2
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +20 -10
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +2 -98
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.js +2 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +25 -27
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +55 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +55 -40
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +5 -5
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -0
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -0
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +2 -73
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +73 -2
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +3 -3
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +94 -33
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +69 -61
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +26 -27
- package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.js +7 -7
- package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +90 -47
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +166 -133
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +86 -68
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +105 -41
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +51 -42
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +108 -94
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +40 -29
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +10 -9
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +27 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +21 -21
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +31 -28
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +48 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +33 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.js +13 -0
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +106 -85
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +31 -34
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +13 -6
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +50 -22
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.js +21 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.js +21 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.js +21 -0
- package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.js +38 -34
- package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.js +27 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.js +29 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.js +33 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.js +21 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.js +21 -20
- package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/icons/socials/line.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/line.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +48 -35
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -0
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +63 -0
- package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +6 -8
- package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.js +5 -7
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +16 -22
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -0
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +61 -88
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +104 -193
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +29 -31
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +129 -0
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +45 -36
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +27 -26
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +85 -79
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +10 -10
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +29 -23
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +55 -169
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +48 -59
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +173 -94
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +27 -20
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +43 -33
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +67 -63
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +28 -30
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +9 -6
- package/dist/prometheus-framework/src/modules/organizations/router/products.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/products.router.js +69 -20
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +38 -38
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +39 -44
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +73 -44
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +25 -54
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +39 -39
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js +18 -11
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +140 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +27 -23
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +24 -25
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +246 -102
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +28 -24
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +23 -24
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +56 -7
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +82 -65
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +71 -54
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +60 -86
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +29 -37
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +32 -29
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +43 -107
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +46 -40
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +89 -94
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +80 -71
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +29 -0
- package/dist/prometheus-framework.cjs.js +21 -21
- package/dist/prometheus-framework.es.js +1037 -1023
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Countdown/Countdown.vue +75 -0
- package/src/components/EditImages/EditImages.vue +10 -2
- package/src/components/Upload/Upload.vue +32 -6
- package/src/components/UploadImage/UploadImage.vue +12 -8
- package/src/components/UploadImageMultiple/UploadImageMultiple.vue +4 -2
- package/src/modules/events/components/pages/EditEvent.vue +288 -1
- package/src/modules/events/components/pages/Event.vue +125 -46
- package/src/modules/events/components/sections/HeroEvent.vue +161 -0
- package/src/modules/events/components/sections/SectionLineup.vue +42 -0
- package/src/modules/events/components/sections/SectionMainGuest.vue +104 -0
- package/src/modules/events/components/sections/SectionPreviousEvents.vue +119 -0
- package/src/modules/events/components/sections/SectionSpecialGuests.vue +47 -0
- package/src/modules/events/controllers/events.controller.js +1 -0
- package/src/modules/events/controllers/utils/queryProcessor.js +2 -0
- package/src/modules/events/models/event.model.js +28 -0
- package/src/modules/events/store/events.js +4 -0
- package/src/modules/files/controllers/files.controller.js +3 -0
- package/src/modules/files/middlewares/server/middlewareBusboy.js +115 -100
- package/src/modules/files/routes/files.routes.js +3 -4
- package/src/modules/globals/globals.server.js +0 -1
- package/src/modules/orders/components/blocks/CardOrder.vue +5 -5
- package/src/modules/orders/components/blocks/StatusHistory.vue +84 -0
- package/src/modules/orders/components/pages/Order.vue +11 -54
- package/src/modules/orders/components/pages/Orders.vue +0 -4
- package/src/modules/orders/controllers/orders.controller.js +17 -9
- package/src/modules/orders/models/order.model.js +19 -0
- package/src/modules/orders/routes/orders.routes.js +4 -1
- package/src/modules/products/components/sections/FilterProducts.vue +9 -10
- 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")
|
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),
|
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,
|
11
|
-
if (!
|
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
|
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
|
-
|
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
|
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(
|
2
|
-
if (!Number.isSafeInteger(
|
3
|
-
throw new Error(`Wrong positive integer: ${
|
1
|
+
function r(t) {
|
2
|
+
if (!Number.isSafeInteger(t) || t < 0)
|
3
|
+
throw new Error(`Wrong positive integer: ${t}`);
|
4
4
|
}
|
5
|
-
function i(
|
6
|
-
if (typeof
|
7
|
-
throw new Error(`Expected boolean, not ${
|
5
|
+
function i(t) {
|
6
|
+
if (typeof t != "boolean")
|
7
|
+
throw new Error(`Expected boolean, not ${t}`);
|
8
8
|
}
|
9
|
-
function
|
10
|
-
|
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 (
|
13
|
-
throw new Error(`Expected Uint8Array of 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
|
16
|
-
if (typeof
|
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(
|
21
|
+
r(t.outputLen), r(t.blockLen);
|
19
22
|
}
|
20
|
-
function u(
|
21
|
-
if (
|
23
|
+
function u(t, e = !0) {
|
24
|
+
if (t.destroyed)
|
22
25
|
throw new Error("Hash instance has been destroyed");
|
23
|
-
if (
|
26
|
+
if (e && t.finished)
|
24
27
|
throw new Error("Hash#digest() has already been called");
|
25
28
|
}
|
26
|
-
function
|
27
|
-
|
28
|
-
const
|
29
|
-
if (
|
30
|
-
throw new Error(`digestInto() expects output buffer of length at least ${
|
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
|
-
|
43
|
-
|
38
|
+
o as bytes,
|
39
|
+
l as default,
|
44
40
|
u as exists,
|
45
|
-
|
41
|
+
s as hash,
|
46
42
|
r as number,
|
47
|
-
|
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
|
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
|
2
|
-
import { Hash as
|
3
|
-
function
|
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
|
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 =
|
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
|
-
|
14
|
+
g(this);
|
15
15
|
const { view: n, buffer: e, blockLen: i } = this;
|
16
|
-
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 =
|
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
|
-
|
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
|
-
|
38
|
-
const h =
|
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,
|
42
|
-
if (c >
|
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,
|
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
|
-
|
60
|
+
B as SHA2
|
61
61
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
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
|
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
|
14
|
-
function
|
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
|
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:
|
21
|
-
toBig:
|
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:
|
32
|
-
rotlBH:
|
33
|
-
rotlBL:
|
34
|
-
add:
|
35
|
-
add3L:
|
36
|
-
add3H:
|
37
|
-
add4L:
|
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
|
-
|
44
|
-
|
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
|
-
|
47
|
-
|
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
|
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
|
3
|
-
class r extends
|
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,
|
6
|
-
const h =
|
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,
|
11
|
-
|
12
|
-
for (let
|
13
|
-
s
|
14
|
-
this.iHash.update(
|
15
|
-
for (let
|
16
|
-
s
|
17
|
-
this.oHash.update(
|
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
|
20
|
+
return a(this), this.iHash.update(t), this;
|
21
21
|
}
|
22
22
|
digestInto(t) {
|
23
|
-
a
|
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:
|
32
|
-
return t = t, t.finished = o, t.destroyed =
|
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
|
39
|
-
|
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
|
-
|
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.
|
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
|
2
|
-
import { hmac as
|
3
|
-
import { createView as
|
4
|
-
function
|
5
|
-
|
6
|
-
const u =
|
7
|
-
if (
|
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 =
|
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
|
13
|
-
return
|
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
|
16
|
-
const { c: u, dkLen: a, DK: r, PRF: t, PRFSalt: p } =
|
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 =
|
19
|
-
for (let
|
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,
|
22
|
-
for (let
|
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
|
25
|
-
y[
|
24
|
+
for (let k = 0; k < y.length; k++)
|
25
|
+
y[k] ^= n[k];
|
26
26
|
}
|
27
27
|
}
|
28
|
-
return
|
28
|
+
return R(t, p, r, s, n);
|
29
29
|
}
|
30
30
|
export {
|
31
|
-
|
31
|
+
T as pbkdf2
|
32
32
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
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,
|
7
|
-
let f = t[l++] ^ n
|
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[
|
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,
|
13
|
-
let
|
14
|
-
for (let
|
15
|
-
|
16
|
-
for (let
|
17
|
-
K(
|
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,
|
20
|
-
const
|
19
|
+
function Y(t, l, c) {
|
20
|
+
const n = W({
|
21
21
|
dkLen: 32,
|
22
22
|
asyncTick: 10,
|
23
23
|
maxmem: 1073742848
|
24
|
-
},
|
25
|
-
if (X
|
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
|
28
|
-
if (e <= 1 || e & e - 1 || e >= 2 ** (
|
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 /
|
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 (
|
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 =
|
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
|
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 (
|
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++,
|
44
|
+
M++, h && (!(M % F) || M === I) && h(M / I);
|
45
45
|
};
|
46
46
|
}
|
47
|
-
return { N: e, r:
|
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,
|
50
|
-
const
|
51
|
-
return
|
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,
|
54
|
-
const { N:
|
55
|
-
for (let d = 0; d <
|
56
|
-
const
|
57
|
-
for (let a = 0; a <
|
58
|
-
|
59
|
-
for (let a = 0, w = 0; a <
|
60
|
-
H(
|
61
|
-
H(
|
62
|
-
for (let a = 0; a <
|
63
|
-
const w = x[
|
64
|
-
for (let
|
65
|
-
|
66
|
-
H(
|
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,
|
69
|
+
return Z(t, f, h, m, y);
|
70
70
|
}
|
71
71
|
export {
|
72
72
|
i as scrypt
|