@argent/x-shared 1.79.0 → 1.79.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.ts-temp/tsconfig.tsbuildinfo +1 -1
- package/dist/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +112 -488
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.js +11 -11
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.js +62 -85
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js +153 -190
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.js +56 -65
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.js +125 -151
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.js +470 -575
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.js +26 -40
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.js +4 -4
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.js +38 -42
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.js +28 -42
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.js +17 -26
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.js +52 -59
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.js +20 -19
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.js +118 -113
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.js +95 -105
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.js +26 -32
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_md.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_md.js +71 -82
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_u64.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_u64.js +20 -20
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha2.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha2.js +125 -124
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha3.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha3.js +102 -116
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/utils.js +62 -76
- package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.cjs +1 -1
- package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js +519 -614
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js +15 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js +15 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js +15 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js +10 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.js +6 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js +6 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js +7 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.js +6 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +9 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js +10 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.js +26 -32
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -4
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js +8 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +12 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js +11 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js +8 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js +9 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js +8 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js +11 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js +4 -4
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +4 -4
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js +8 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.js +6 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js +14 -16
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js +10 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.js +4 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js +6 -6
- package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.cjs +1 -1
- package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.js +121 -118
- package/dist/node_modules/.pnpm/numeral@2.0.6/node_modules/numeral/numeral.cjs +1 -1
- package/dist/node_modules/.pnpm/numeral@2.0.6/node_modules/numeral/numeral.js +377 -417
- package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.cjs +1 -1
- package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js +546 -635
- package/dist/paymaster.cjs +1 -1
- package/dist/paymaster.js +2 -11
- package/dist/simulation.cjs +1 -1
- package/dist/simulation.js +22 -90
- package/dist/src/account/account.model.cjs +1 -1
- package/dist/src/account/account.model.js +58 -52
- package/dist/src/account/accountv4.cjs +1 -1
- package/dist/src/account/accountv4.js +9 -11
- package/dist/src/account/preferences.model.cjs +1 -1
- package/dist/src/account/preferences.model.js +12 -10
- package/dist/src/accountNameGenerator/colors.cjs +1 -1
- package/dist/src/accountNameGenerator/colors.js +24 -24
- package/dist/src/accountNameGenerator/index.cjs +1 -1
- package/dist/src/accountNameGenerator/index.js +23 -23
- package/dist/src/accountNameGenerator/x-names.json.cjs +1 -1
- package/dist/src/accountNameGenerator/x-names.json.js +1922 -7
- package/dist/src/assets/tokens.json.cjs +1 -1
- package/dist/src/assets/tokens.json.js +180 -180
- package/dist/src/backend/schema.cjs +1 -1
- package/dist/src/backend/schema.js +9 -12
- package/dist/src/backend/sessionKeys/schema.cjs +1 -1
- package/dist/src/backend/sessionKeys/schema.js +27 -30
- package/dist/src/bigdecimal/constants.cjs +1 -1
- package/dist/src/bigdecimal/constants.js +6 -3
- package/dist/src/bigdecimal/createUnitsSchema.cjs +1 -1
- package/dist/src/bigdecimal/createUnitsSchema.js +7 -7
- package/dist/src/bigdecimal/formatUnits.cjs +1 -1
- package/dist/src/bigdecimal/formatUnits.js +9 -10
- package/dist/src/bigdecimal/index.cjs +1 -1
- package/dist/src/bigdecimal/index.js +45 -41
- package/dist/src/bigdecimal/lib.cjs +1 -1
- package/dist/src/bigdecimal/lib.js +105 -117
- package/dist/src/bigdecimal/parseUnits.cjs +1 -1
- package/dist/src/bigdecimal/parseUnits.js +18 -21
- package/dist/src/bigdecimal/utils.cjs +1 -1
- package/dist/src/bigdecimal/utils.js +33 -30
- package/dist/src/cache/CacheService.cjs +1 -1
- package/dist/src/cache/CacheService.js +32 -36
- package/dist/src/chains/starknet/address.cjs +1 -1
- package/dist/src/chains/starknet/address.js +73 -117
- package/dist/src/chains/starknet/addressDomain.cjs +1 -1
- package/dist/src/chains/starknet/addressDomain.js +14 -29
- package/dist/src/chains/starknet/addressInput.cjs +1 -1
- package/dist/src/chains/starknet/addressInput.js +6 -7
- package/dist/src/chains/starknet/argentName.cjs +1 -1
- package/dist/src/chains/starknet/argentName.js +10 -14
- package/dist/src/chains/starknet/cairoVersionSchema.cjs +1 -1
- package/dist/src/chains/starknet/cairoVersionSchema.js +5 -5
- package/dist/src/chains/starknet/constants.cjs +1 -1
- package/dist/src/chains/starknet/constants.js +4 -10
- package/dist/src/chains/starknet/getAddressFromArgentName.cjs +1 -1
- package/dist/src/chains/starknet/getAddressFromArgentName.js +38 -46
- package/dist/src/chains/starknet/getAddressFromStarkName.cjs +1 -1
- package/dist/src/chains/starknet/getAddressFromStarkName.js +59 -66
- package/dist/src/chains/starknet/network.cjs +1 -1
- package/dist/src/chains/starknet/network.js +20 -26
- package/dist/src/chains/starknet/services/address/StarknetAddressService.cjs +1 -1
- package/dist/src/chains/starknet/services/address/StarknetAddressService.js +31 -36
- package/dist/src/chains/starknet/services/deploymentData/constants.cjs +1 -1
- package/dist/src/chains/starknet/services/deploymentData/constants.js +14 -21
- package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.cjs +1 -1
- package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.js +15 -17
- package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs +1 -1
- package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.js +61 -65
- package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.cjs +1 -1
- package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.js +46 -65
- package/dist/src/chains/starknet/starknetId.cjs +1 -1
- package/dist/src/chains/starknet/starknetId.js +10 -14
- package/dist/src/currencyFetchService/CurrencyFetchService.cjs +1 -1
- package/dist/src/currencyFetchService/CurrencyFetchService.js +13 -18
- package/dist/src/currencyFetchService/types.ts.cjs +1 -1
- package/dist/src/currencyFetchService/types.ts.js +9 -12
- package/dist/src/errors/account.cjs +1 -1
- package/dist/src/errors/account.js +12 -13
- package/dist/src/errors/address.cjs +1 -1
- package/dist/src/errors/address.js +11 -12
- package/dist/src/errors/baseErrors.cjs +1 -1
- package/dist/src/errors/baseErrors.js +14 -14
- package/dist/src/errors/call.cjs +1 -1
- package/dist/src/errors/call.js +12 -13
- package/dist/src/errors/network.cjs +1 -1
- package/dist/src/errors/network.js +11 -12
- package/dist/src/errors/review.cjs +1 -1
- package/dist/src/errors/review.js +11 -12
- package/dist/src/errors/swap.cjs +1 -1
- package/dist/src/errors/swap.js +12 -13
- package/dist/src/features/paymaster/PaymasterService.cjs +1 -1
- package/dist/src/features/paymaster/PaymasterService.js +73 -87
- package/dist/src/features/paymaster/types.cjs +1 -1
- package/dist/src/features/paymaster/types.js +41 -51
- package/dist/src/features/simulation/activity/normalize.cjs +1 -1
- package/dist/src/features/simulation/activity/normalize.js +36 -38
- package/dist/src/features/simulation/activity/schema.cjs +1 -1
- package/dist/src/features/simulation/activity/schema.js +224 -250
- package/dist/src/features/simulation/activity/utils/createNativeActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/createNativeActivity.js +23 -27
- package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.js +14 -21
- package/dist/src/features/simulation/activity/utils/getOverallLastModified.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/getOverallLastModified.js +5 -5
- package/dist/src/features/simulation/activity/utils/hasDelegationActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/hasDelegationActivity.js +4 -4
- package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.js +15 -19
- package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.js +15 -19
- package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.js +5 -5
- package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.js +19 -21
- package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.js +15 -19
- package/dist/src/features/simulation/activity/utils/isSwapActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isSwapActivity.js +17 -18
- package/dist/src/features/simulation/activity/utils/isUpgradeActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isUpgradeActivity.js +15 -19
- package/dist/src/features/simulation/activity/utils/parseAccountActivities.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/parseAccountActivities.js +12 -12
- package/dist/src/features/simulation/activity/utils/parseFinanceActivities.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/parseFinanceActivities.js +32 -32
- package/dist/src/features/simulation/fees/schema.cjs +1 -1
- package/dist/src/features/simulation/fees/schema.js +33 -47
- package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.js +15 -17
- package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.js +5 -5
- package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/schema.js +221 -242
- package/dist/src/features/simulation/warning/helper.cjs +1 -1
- package/dist/src/features/simulation/warning/helper.js +12 -11
- package/dist/src/features/simulation/warning/schema.cjs +1 -1
- package/dist/src/features/simulation/warning/schema.js +10 -11
- package/dist/src/features/swap/models/order.model.cjs +1 -1
- package/dist/src/features/swap/models/order.model.js +16 -19
- package/dist/src/features/swap/models/quote.model.cjs +1 -1
- package/dist/src/features/swap/models/quote.model.js +31 -35
- package/dist/src/features/swap/models/trade.model.cjs +1 -1
- package/dist/src/features/swap/models/trade.model.js +25 -27
- package/dist/src/features/swap/services/SwapSharedService.cjs +1 -1
- package/dist/src/features/swap/services/SwapSharedService.js +71 -75
- package/dist/src/features/swap/services/SwapTransactionService.cjs +1 -1
- package/dist/src/features/swap/services/SwapTransactionService.js +57 -63
- package/dist/src/features/swap/utils/slippage.cjs +1 -1
- package/dist/src/features/swap/utils/slippage.js +18 -25
- package/dist/src/features/swap/utils/totalFee.cjs +1 -1
- package/dist/src/features/swap/utils/totalFee.js +12 -12
- package/dist/src/http/DateService.cjs +1 -1
- package/dist/src/http/DateService.js +15 -18
- package/dist/src/http/HttpError.cjs +1 -1
- package/dist/src/http/HttpError.js +7 -7
- package/dist/src/http/HttpService.cjs +1 -1
- package/dist/src/http/HttpService.js +117 -134
- package/dist/src/http/IHttpService.cjs +1 -1
- package/dist/src/http/IHttpService.js +6 -6
- package/dist/src/http/SWRService.cjs +1 -1
- package/dist/src/http/SWRService.js +50 -57
- package/dist/src/http/fetcher.cjs +1 -1
- package/dist/src/http/fetcher.js +29 -35
- package/dist/src/http/time.cjs +1 -1
- package/dist/src/http/time.js +15 -18
- package/dist/src/knownDapps/KnownDappsBackendService.cjs +1 -1
- package/dist/src/knownDapps/KnownDappsBackendService.js +13 -14
- package/dist/src/knownDapps/schema.cjs +1 -1
- package/dist/src/knownDapps/schema.js +41 -44
- package/dist/src/knownDapps/utils/getDapplandUrl.cjs +1 -1
- package/dist/src/knownDapps/utils/getDapplandUrl.js +7 -8
- package/dist/src/nameResolution/ResolveNameService.cjs +1 -1
- package/dist/src/nameResolution/ResolveNameService.js +34 -41
- package/dist/src/nameResolution/schema.cjs +1 -1
- package/dist/src/nameResolution/schema.js +20 -25
- package/dist/src/nfts/BackendNftService.cjs +1 -1
- package/dist/src/nfts/BackendNftService.js +103 -116
- package/dist/src/nfts/BackendPaginationError.cjs +1 -1
- package/dist/src/nfts/BackendPaginationError.js +11 -12
- package/dist/src/nfts/utils.cjs +1 -1
- package/dist/src/nfts/utils.js +11 -14
- package/dist/src/onchainRecovery/OnchainRecoveryService.cjs +1 -1
- package/dist/src/onchainRecovery/OnchainRecoveryService.js +38 -68
- package/dist/src/onchainRecovery/schema.cjs +1 -1
- package/dist/src/onchainRecovery/schema.js +35 -49
- package/dist/src/platform/isBraveBrowser.cjs +1 -1
- package/dist/src/platform/isBraveBrowser.js +8 -10
- package/dist/src/platform/isBrowser.cjs +1 -1
- package/dist/src/platform/isBrowser.js +17 -22
- package/dist/src/signer/mergeOwnerGuardianSignatures.cjs +1 -1
- package/dist/src/signer/mergeOwnerGuardianSignatures.js +28 -30
- package/dist/src/signer/multisigner.cjs +1 -1
- package/dist/src/signer/multisigner.js +16 -17
- package/dist/src/signer/seedphrase.cjs +1 -1
- package/dist/src/signer/seedphrase.js +7 -7
- package/dist/src/staking/schema.cjs +1 -1
- package/dist/src/staking/schema.js +146 -162
- package/dist/src/storage/base.cjs +1 -1
- package/dist/src/storage/base.js +33 -34
- package/dist/src/storage/utils.cjs +1 -1
- package/dist/src/storage/utils.js +19 -28
- package/dist/src/tokens/balances.cjs +1 -1
- package/dist/src/tokens/balances.js +34 -38
- package/dist/src/tokens/constants.cjs +1 -1
- package/dist/src/tokens/constants.js +4 -4
- package/dist/src/tokens/convertCurrencyValueToTokenAmount.cjs +1 -1
- package/dist/src/tokens/convertCurrencyValueToTokenAmount.js +8 -9
- package/dist/src/tokens/convertTokenAmountToCurrencyValue.cjs +1 -1
- package/dist/src/tokens/convertTokenAmountToCurrencyValue.js +14 -15
- package/dist/src/tokens/convertTokenUnitAmountWithDecimals.cjs +1 -1
- package/dist/src/tokens/convertTokenUnitAmountWithDecimals.js +8 -9
- package/dist/src/tokens/ensureDecimals.cjs +1 -1
- package/dist/src/tokens/ensureDecimals.js +4 -4
- package/dist/src/tokens/getCurrencySymbol.cjs +1 -1
- package/dist/src/tokens/getCurrencySymbol.js +14 -14
- package/dist/src/tokens/isUnlimitedAmount.cjs +1 -1
- package/dist/src/tokens/isUnlimitedAmount.js +5 -5
- package/dist/src/tokens/prettifyCurrencyValue.cjs +1 -1
- package/dist/src/tokens/prettifyCurrencyValue.js +13 -14
- package/dist/src/tokens/prettifyTokenAmount.cjs +1 -1
- package/dist/src/tokens/prettifyTokenAmount.js +22 -22
- package/dist/src/tokens/service/implementation.cjs +1 -1
- package/dist/src/tokens/service/implementation.js +28 -40
- package/dist/src/tokens/service/tokenError.cjs +1 -1
- package/dist/src/tokens/service/tokenError.js +11 -12
- package/dist/src/tokens/service/types/backend.model.cjs +1 -1
- package/dist/src/tokens/service/types/backend.model.js +128 -163
- package/dist/src/tokens/service/types/defiPosition.model.cjs +1 -1
- package/dist/src/tokens/service/types/defiPosition.model.js +83 -99
- package/dist/src/tokens/service/types/defiPositionType.model.cjs +1 -1
- package/dist/src/tokens/service/types/defiPositionType.model.js +9 -9
- package/dist/src/tokens/service/types/unclaimedRewards.model.cjs +1 -1
- package/dist/src/tokens/service/types/unclaimedRewards.model.js +15 -16
- package/dist/src/tokens/service/types/webToken.model.cjs +1 -1
- package/dist/src/tokens/service/types/webToken.model.js +28 -51
- package/dist/src/tokens/utils.cjs +1 -1
- package/dist/src/tokens/utils.js +5 -9
- package/dist/src/transactions/amount.cjs +1 -1
- package/dist/src/transactions/amount.js +17 -24
- package/dist/src/transactions/buildTransactions.cjs +1 -1
- package/dist/src/transactions/buildTransactions.js +30 -33
- package/dist/src/transactions/errors.cjs +1 -1
- package/dist/src/transactions/errors.js +11 -18
- package/dist/src/transactions/estimate/adjustment.cjs +1 -1
- package/dist/src/transactions/estimate/adjustment.js +6 -6
- package/dist/src/transactions/estimate/argentMaxFee.cjs +1 -1
- package/dist/src/transactions/estimate/argentMaxFee.js +10 -13
- package/dist/src/transactions/estimate/error.cjs +1 -1
- package/dist/src/transactions/estimate/error.js +12 -13
- package/dist/src/transactions/estimate/model.cjs +1 -1
- package/dist/src/transactions/estimate/model.js +18 -13
- package/dist/src/transactions/estimate/utils.cjs +1 -1
- package/dist/src/transactions/estimate/utils.js +139 -172
- package/dist/src/transactions/findTransfersAndApprovals.cjs +1 -1
- package/dist/src/transactions/findTransfersAndApprovals.js +34 -30
- package/dist/src/transactions/getPrettyRcpError.cjs +1 -1
- package/dist/src/transactions/getPrettyRcpError.js +8 -10
- package/dist/src/transactions/service/implementation.cjs +1 -1
- package/dist/src/transactions/service/implementation.js +187 -208
- package/dist/src/transactions/service/types.cjs +1 -1
- package/dist/src/transactions/service/types.js +9 -9
- package/dist/src/transactions/service/utils.cjs +1 -1
- package/dist/src/transactions/service/utils.js +24 -25
- package/dist/src/transactions/transactionExecuteTypes.cjs +1 -1
- package/dist/src/transactions/transactionExecuteTypes.js +8 -9
- package/dist/src/transactions/transactionReviewTypes.cjs +1 -1
- package/dist/src/transactions/transactionReviewTypes.js +9 -9
- package/dist/src/transactions/transactionVersion.cjs +1 -1
- package/dist/src/transactions/transactionVersion.js +8 -13
- package/dist/src/transactions/txv3.cjs +1 -1
- package/dist/src/transactions/txv3.js +10 -11
- package/dist/src/utils/address.cjs +1 -1
- package/dist/src/utils/address.js +4 -4
- package/dist/src/utils/arrays.cjs +1 -1
- package/dist/src/utils/arrays.js +4 -4
- package/dist/src/utils/avatarImage.cjs +4 -4
- package/dist/src/utils/avatarImage.js +35 -40
- package/dist/src/utils/base58.cjs +1 -1
- package/dist/src/utils/base58.js +12 -15
- package/dist/src/utils/bigNumber.cjs +1 -1
- package/dist/src/utils/bigNumber.d.ts +1 -1
- package/dist/src/utils/bigNumber.js +5 -7
- package/dist/src/utils/bips.cjs +1 -1
- package/dist/src/utils/bips.js +12 -10
- package/dist/src/utils/daysBetween.cjs +1 -1
- package/dist/src/utils/daysBetween.js +6 -6
- package/dist/src/utils/env.cjs +1 -1
- package/dist/src/utils/env.js +4 -4
- package/dist/src/utils/hex.cjs +1 -1
- package/dist/src/utils/hex.js +7 -8
- package/dist/src/utils/id.cjs +1 -1
- package/dist/src/utils/id.js +7 -7
- package/dist/src/utils/initials.cjs +1 -1
- package/dist/src/utils/initials.js +12 -15
- package/dist/src/utils/isContractDeployed.cjs +1 -1
- package/dist/src/utils/isContractDeployed.js +9 -9
- package/dist/src/utils/nonNullable.cjs +1 -1
- package/dist/src/utils/nonNullable.js +6 -6
- package/dist/src/utils/number/abbreviateNumber.cjs +1 -1
- package/dist/src/utils/number/abbreviateNumber.js +13 -14
- package/dist/src/utils/number/isAllowedAddressHexInputValue.cjs +1 -1
- package/dist/src/utils/number/isAllowedAddressHexInputValue.js +4 -7
- package/dist/src/utils/number/isAllowedNumericInputValue.cjs +1 -1
- package/dist/src/utils/number/isAllowedNumericInputValue.js +5 -5
- package/dist/src/utils/number/isNumeric.cjs +1 -1
- package/dist/src/utils/number/isNumeric.js +4 -4
- package/dist/src/utils/number/prettifyNumber.cjs +1 -1
- package/dist/src/utils/number/prettifyNumber.js +65 -75
- package/dist/src/utils/parseAmount.cjs +1 -1
- package/dist/src/utils/parseAmount.js +10 -11
- package/dist/src/utils/pluralise.cjs +1 -1
- package/dist/src/utils/pluralise.js +4 -4
- package/dist/src/utils/readFileAsString.cjs +1 -1
- package/dist/src/utils/readFileAsString.js +6 -6
- package/dist/src/utils/retryUntilInitialised.cjs +1 -1
- package/dist/src/utils/retryUntilInitialised.js +21 -20
- package/dist/src/utils/schemas.cjs +1 -1
- package/dist/src/utils/schemas.js +29 -26
- package/dist/src/utils/starknet/starknet.cjs +1 -1
- package/dist/src/utils/starknet/starknet.js +64 -77
- package/dist/src/utils/starknet/starknetLibTypes.cjs +1 -1
- package/dist/src/utils/starknet/starknetLibTypes.js +7 -7
- package/dist/src/utils/starknet/starknetSchemas.cjs +1 -1
- package/dist/src/utils/starknet/starknetSchemas.js +84 -99
- package/dist/src/utils/transactions.cjs +1 -1
- package/dist/src/utils/transactions.js +10 -10
- package/dist/src/utils/url/urlWithQuery.cjs +1 -1
- package/dist/src/utils/url/urlWithQuery.js +8 -8
- package/dist/src/utils/voidify.cjs +1 -1
- package/dist/src/utils/voidify.js +7 -7
- package/dist/swap.cjs +1 -1
- package/dist/swap.js +8 -22
- package/package.json +20 -19
- package/dist/.eslintrc.d.cts +0 -39
- package/dist/_virtual/_commonjsHelpers.cjs +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/numeral.cjs +0 -1
- package/dist/_virtual/numeral.js +0 -7
- package/dist/_virtual/numeral2.cjs +0 -1
- package/dist/_virtual/numeral2.js +0 -4
- package/dist/_virtual/semver.cjs +0 -1
- package/dist/_virtual/semver.js +0 -7
- package/dist/_virtual/semver2.cjs +0 -1
- package/dist/_virtual/semver2.js +0 -4
|
@@ -1,635 +1,546 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
case "":
|
|
548
|
-
case ">=":
|
|
549
|
-
(!t || F(t, u)) && (t = u);
|
|
550
|
-
break;
|
|
551
|
-
case "<":
|
|
552
|
-
case "<=":
|
|
553
|
-
break;
|
|
554
|
-
/* istanbul ignore next */
|
|
555
|
-
default:
|
|
556
|
-
throw new Error("Unexpected operation: " + E.operator);
|
|
557
|
-
}
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
return t && e.test(t) ? t : null;
|
|
561
|
-
}
|
|
562
|
-
l.validRange = De;
|
|
563
|
-
function De(e, r) {
|
|
564
|
-
try {
|
|
565
|
-
return new O(e, r).range || "*";
|
|
566
|
-
} catch {
|
|
567
|
-
return null;
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
l.ltr = Pe;
|
|
571
|
-
function Pe(e, r, t) {
|
|
572
|
-
return q(e, r, "<", t);
|
|
573
|
-
}
|
|
574
|
-
l.gtr = ye;
|
|
575
|
-
function ye(e, r, t) {
|
|
576
|
-
return q(e, r, ">", t);
|
|
577
|
-
}
|
|
578
|
-
l.outside = q;
|
|
579
|
-
function q(e, r, t, i) {
|
|
580
|
-
e = new f(e, i), r = new O(r, i);
|
|
581
|
-
var a, E, u, o, c;
|
|
582
|
-
switch (t) {
|
|
583
|
-
case ">":
|
|
584
|
-
a = F, E = b, u = X, o = ">", c = ">=";
|
|
585
|
-
break;
|
|
586
|
-
case "<":
|
|
587
|
-
a = X, E = H, u = F, o = "<", c = "<=";
|
|
588
|
-
break;
|
|
589
|
-
default:
|
|
590
|
-
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
591
|
-
}
|
|
592
|
-
if (j(e, r, i))
|
|
593
|
-
return !1;
|
|
594
|
-
for (var p = 0; p < r.set.length; ++p) {
|
|
595
|
-
var v = r.set[p], A = null, N = null;
|
|
596
|
-
if (v.forEach(function(C) {
|
|
597
|
-
C.semver === P && (C = new T(">=0.0.0")), A = A || C, N = N || C, a(C.semver, A.semver, i) ? A = C : u(C.semver, N.semver, i) && (N = C);
|
|
598
|
-
}), A.operator === o || A.operator === c || (!N.operator || N.operator === o) && E(e, N.semver))
|
|
599
|
-
return !1;
|
|
600
|
-
if (N.operator === c && u(e, N.semver))
|
|
601
|
-
return !1;
|
|
602
|
-
}
|
|
603
|
-
return !0;
|
|
604
|
-
}
|
|
605
|
-
l.prerelease = ge;
|
|
606
|
-
function ge(e, r) {
|
|
607
|
-
var t = w(e, r);
|
|
608
|
-
return t && t.prerelease.length ? t.prerelease : null;
|
|
609
|
-
}
|
|
610
|
-
l.intersects = Fe;
|
|
611
|
-
function Fe(e, r, t) {
|
|
612
|
-
return e = new O(e, t), r = new O(r, t), e.intersects(r);
|
|
613
|
-
}
|
|
614
|
-
l.coerce = Ge;
|
|
615
|
-
function Ge(e, r) {
|
|
616
|
-
if (e instanceof f)
|
|
617
|
-
return e;
|
|
618
|
-
if (typeof e == "number" && (e = String(e)), typeof e != "string")
|
|
619
|
-
return null;
|
|
620
|
-
r = r || {};
|
|
621
|
-
var t = null;
|
|
622
|
-
if (!r.rtl)
|
|
623
|
-
t = e.match(h[n.COERCE]);
|
|
624
|
-
else {
|
|
625
|
-
for (var i; (i = h[n.COERCERTL].exec(e)) && (!t || t.index + t[0].length !== e.length); )
|
|
626
|
-
(!t || i.index + i[0].length !== t.index + t[0].length) && (t = i), h[n.COERCERTL].lastIndex = i.index + i[1].length + i[2].length;
|
|
627
|
-
h[n.COERCERTL].lastIndex = -1;
|
|
628
|
-
}
|
|
629
|
-
return t === null ? null : w(t[2] + "." + (t[3] || "0") + "." + (t[4] || "0"), r);
|
|
630
|
-
}
|
|
631
|
-
})(M, M.exports), M.exports);
|
|
632
|
-
}
|
|
633
|
-
export {
|
|
634
|
-
Ue as __require
|
|
635
|
-
};
|
|
1
|
+
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js
|
|
3
|
+
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
+
e = t.exports = S;
|
|
5
|
+
var n = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? function() {
|
|
6
|
+
var e = Array.prototype.slice.call(arguments, 0);
|
|
7
|
+
e.unshift("SEMVER"), console.log.apply(console, e);
|
|
8
|
+
} : function() {};
|
|
9
|
+
e.SEMVER_SPEC_VERSION = "2.0.0";
|
|
10
|
+
var r = 256, i = 2 ** 53 - 1 || 9007199254740991, a = 16, o = r - 6, s = e.re = [], c = e.safeRe = [], l = e.src = [], u = e.tokens = {}, d = 0;
|
|
11
|
+
function f(e) {
|
|
12
|
+
u[e] = d++;
|
|
13
|
+
}
|
|
14
|
+
var p = "[a-zA-Z0-9-]", m = [
|
|
15
|
+
["\\s", 1],
|
|
16
|
+
["\\d", r],
|
|
17
|
+
[p, o]
|
|
18
|
+
];
|
|
19
|
+
function h(e) {
|
|
20
|
+
for (var t = 0; t < m.length; t++) {
|
|
21
|
+
var n = m[t][0], r = m[t][1];
|
|
22
|
+
e = e.split(n + "*").join(n + "{0," + r + "}").split(n + "+").join(n + "{1," + r + "}");
|
|
23
|
+
}
|
|
24
|
+
return e;
|
|
25
|
+
}
|
|
26
|
+
f("NUMERICIDENTIFIER"), l[u.NUMERICIDENTIFIER] = "0|[1-9]\\d*", f("NUMERICIDENTIFIERLOOSE"), l[u.NUMERICIDENTIFIERLOOSE] = "\\d+", f("NONNUMERICIDENTIFIER"), l[u.NONNUMERICIDENTIFIER] = "\\d*[a-zA-Z-]" + p + "*", f("MAINVERSION"), l[u.MAINVERSION] = "(" + l[u.NUMERICIDENTIFIER] + ")\\.(" + l[u.NUMERICIDENTIFIER] + ")\\.(" + l[u.NUMERICIDENTIFIER] + ")", f("MAINVERSIONLOOSE"), l[u.MAINVERSIONLOOSE] = "(" + l[u.NUMERICIDENTIFIERLOOSE] + ")\\.(" + l[u.NUMERICIDENTIFIERLOOSE] + ")\\.(" + l[u.NUMERICIDENTIFIERLOOSE] + ")", f("PRERELEASEIDENTIFIER"), l[u.PRERELEASEIDENTIFIER] = "(?:" + l[u.NUMERICIDENTIFIER] + "|" + l[u.NONNUMERICIDENTIFIER] + ")", f("PRERELEASEIDENTIFIERLOOSE"), l[u.PRERELEASEIDENTIFIERLOOSE] = "(?:" + l[u.NUMERICIDENTIFIERLOOSE] + "|" + l[u.NONNUMERICIDENTIFIER] + ")", f("PRERELEASE"), l[u.PRERELEASE] = "(?:-(" + l[u.PRERELEASEIDENTIFIER] + "(?:\\." + l[u.PRERELEASEIDENTIFIER] + ")*))", f("PRERELEASELOOSE"), l[u.PRERELEASELOOSE] = "(?:-?(" + l[u.PRERELEASEIDENTIFIERLOOSE] + "(?:\\." + l[u.PRERELEASEIDENTIFIERLOOSE] + ")*))", f("BUILDIDENTIFIER"), l[u.BUILDIDENTIFIER] = p + "+", f("BUILD"), l[u.BUILD] = "(?:\\+(" + l[u.BUILDIDENTIFIER] + "(?:\\." + l[u.BUILDIDENTIFIER] + ")*))", f("FULL"), f("FULLPLAIN"), l[u.FULLPLAIN] = "v?" + l[u.MAINVERSION] + l[u.PRERELEASE] + "?" + l[u.BUILD] + "?", l[u.FULL] = "^" + l[u.FULLPLAIN] + "$", f("LOOSEPLAIN"), l[u.LOOSEPLAIN] = "[v=\\s]*" + l[u.MAINVERSIONLOOSE] + l[u.PRERELEASELOOSE] + "?" + l[u.BUILD] + "?", f("LOOSE"), l[u.LOOSE] = "^" + l[u.LOOSEPLAIN] + "$", f("GTLT"), l[u.GTLT] = "((?:<|>)?=?)", f("XRANGEIDENTIFIERLOOSE"), l[u.XRANGEIDENTIFIERLOOSE] = l[u.NUMERICIDENTIFIERLOOSE] + "|x|X|\\*", f("XRANGEIDENTIFIER"), l[u.XRANGEIDENTIFIER] = l[u.NUMERICIDENTIFIER] + "|x|X|\\*", f("XRANGEPLAIN"), l[u.XRANGEPLAIN] = "[v=\\s]*(" + l[u.XRANGEIDENTIFIER] + ")(?:\\.(" + l[u.XRANGEIDENTIFIER] + ")(?:\\.(" + l[u.XRANGEIDENTIFIER] + ")(?:" + l[u.PRERELEASE] + ")?" + l[u.BUILD] + "?)?)?", f("XRANGEPLAINLOOSE"), l[u.XRANGEPLAINLOOSE] = "[v=\\s]*(" + l[u.XRANGEIDENTIFIERLOOSE] + ")(?:\\.(" + l[u.XRANGEIDENTIFIERLOOSE] + ")(?:\\.(" + l[u.XRANGEIDENTIFIERLOOSE] + ")(?:" + l[u.PRERELEASELOOSE] + ")?" + l[u.BUILD] + "?)?)?", f("XRANGE"), l[u.XRANGE] = "^" + l[u.GTLT] + "\\s*" + l[u.XRANGEPLAIN] + "$", f("XRANGELOOSE"), l[u.XRANGELOOSE] = "^" + l[u.GTLT] + "\\s*" + l[u.XRANGEPLAINLOOSE] + "$", f("COERCE"), l[u.COERCE] = "(^|[^\\d])(\\d{1," + a + "})(?:\\.(\\d{1," + a + "}))?(?:\\.(\\d{1," + a + "}))?(?:$|[^\\d])", f("COERCERTL"), s[u.COERCERTL] = new RegExp(l[u.COERCE], "g"), c[u.COERCERTL] = new RegExp(h(l[u.COERCE]), "g"), f("LONETILDE"), l[u.LONETILDE] = "(?:~>?)", f("TILDETRIM"), l[u.TILDETRIM] = "(\\s*)" + l[u.LONETILDE] + "\\s+", s[u.TILDETRIM] = new RegExp(l[u.TILDETRIM], "g"), c[u.TILDETRIM] = new RegExp(h(l[u.TILDETRIM]), "g");
|
|
27
|
+
var g = "$1~";
|
|
28
|
+
f("TILDE"), l[u.TILDE] = "^" + l[u.LONETILDE] + l[u.XRANGEPLAIN] + "$", f("TILDELOOSE"), l[u.TILDELOOSE] = "^" + l[u.LONETILDE] + l[u.XRANGEPLAINLOOSE] + "$", f("LONECARET"), l[u.LONECARET] = "(?:\\^)", f("CARETTRIM"), l[u.CARETTRIM] = "(\\s*)" + l[u.LONECARET] + "\\s+", s[u.CARETTRIM] = new RegExp(l[u.CARETTRIM], "g"), c[u.CARETTRIM] = new RegExp(h(l[u.CARETTRIM]), "g");
|
|
29
|
+
var ee = "$1^";
|
|
30
|
+
f("CARET"), l[u.CARET] = "^" + l[u.LONECARET] + l[u.XRANGEPLAIN] + "$", f("CARETLOOSE"), l[u.CARETLOOSE] = "^" + l[u.LONECARET] + l[u.XRANGEPLAINLOOSE] + "$", f("COMPARATORLOOSE"), l[u.COMPARATORLOOSE] = "^" + l[u.GTLT] + "\\s*(" + l[u.LOOSEPLAIN] + ")$|^$", f("COMPARATOR"), l[u.COMPARATOR] = "^" + l[u.GTLT] + "\\s*(" + l[u.FULLPLAIN] + ")$|^$", f("COMPARATORTRIM"), l[u.COMPARATORTRIM] = "(\\s*)" + l[u.GTLT] + "\\s*(" + l[u.LOOSEPLAIN] + "|" + l[u.XRANGEPLAIN] + ")", s[u.COMPARATORTRIM] = new RegExp(l[u.COMPARATORTRIM], "g"), c[u.COMPARATORTRIM] = new RegExp(h(l[u.COMPARATORTRIM]), "g");
|
|
31
|
+
var _ = "$1$2$3";
|
|
32
|
+
f("HYPHENRANGE"), l[u.HYPHENRANGE] = "^\\s*(" + l[u.XRANGEPLAIN] + ")\\s+-\\s+(" + l[u.XRANGEPLAIN] + ")\\s*$", f("HYPHENRANGELOOSE"), l[u.HYPHENRANGELOOSE] = "^\\s*(" + l[u.XRANGEPLAINLOOSE] + ")\\s+-\\s+(" + l[u.XRANGEPLAINLOOSE] + ")\\s*$", f("STAR"), l[u.STAR] = "(<|>)?=?\\s*\\*";
|
|
33
|
+
for (var v = 0; v < d; v++) n(v, l[v]), s[v] || (s[v] = new RegExp(l[v]), c[v] = new RegExp(h(l[v])));
|
|
34
|
+
e.parse = y;
|
|
35
|
+
function y(e, t) {
|
|
36
|
+
if ((!t || typeof t != "object") && (t = {
|
|
37
|
+
loose: !!t,
|
|
38
|
+
includePrerelease: !1
|
|
39
|
+
}), e instanceof S) return e;
|
|
40
|
+
if (typeof e != "string" || e.length > r || !(t.loose ? c[u.LOOSE] : c[u.FULL]).test(e)) return null;
|
|
41
|
+
try {
|
|
42
|
+
return new S(e, t);
|
|
43
|
+
} catch {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
e.valid = b;
|
|
48
|
+
function b(e, t) {
|
|
49
|
+
var n = y(e, t);
|
|
50
|
+
return n ? n.version : null;
|
|
51
|
+
}
|
|
52
|
+
e.clean = x;
|
|
53
|
+
function x(e, t) {
|
|
54
|
+
var n = y(e.trim().replace(/^[=v]+/, ""), t);
|
|
55
|
+
return n ? n.version : null;
|
|
56
|
+
}
|
|
57
|
+
e.SemVer = S;
|
|
58
|
+
function S(e, t) {
|
|
59
|
+
if ((!t || typeof t != "object") && (t = {
|
|
60
|
+
loose: !!t,
|
|
61
|
+
includePrerelease: !1
|
|
62
|
+
}), e instanceof S) {
|
|
63
|
+
if (e.loose === t.loose) return e;
|
|
64
|
+
e = e.version;
|
|
65
|
+
} else if (typeof e != "string") throw TypeError("Invalid Version: " + e);
|
|
66
|
+
if (e.length > r) throw TypeError("version is longer than " + r + " characters");
|
|
67
|
+
if (!(this instanceof S)) return new S(e, t);
|
|
68
|
+
n("SemVer", e, t), this.options = t, this.loose = !!t.loose;
|
|
69
|
+
var a = e.trim().match(t.loose ? c[u.LOOSE] : c[u.FULL]);
|
|
70
|
+
if (!a) throw TypeError("Invalid Version: " + e);
|
|
71
|
+
if (this.raw = e, this.major = +a[1], this.minor = +a[2], this.patch = +a[3], this.major > i || this.major < 0) throw TypeError("Invalid major version");
|
|
72
|
+
if (this.minor > i || this.minor < 0) throw TypeError("Invalid minor version");
|
|
73
|
+
if (this.patch > i || this.patch < 0) throw TypeError("Invalid patch version");
|
|
74
|
+
a[4] ? this.prerelease = a[4].split(".").map(function(e) {
|
|
75
|
+
if (/^[0-9]+$/.test(e)) {
|
|
76
|
+
var t = +e;
|
|
77
|
+
if (t >= 0 && t < i) return t;
|
|
78
|
+
}
|
|
79
|
+
return e;
|
|
80
|
+
}) : this.prerelease = [], this.build = a[5] ? a[5].split(".") : [], this.format();
|
|
81
|
+
}
|
|
82
|
+
S.prototype.format = function() {
|
|
83
|
+
return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version;
|
|
84
|
+
}, S.prototype.toString = function() {
|
|
85
|
+
return this.version;
|
|
86
|
+
}, S.prototype.compare = function(e) {
|
|
87
|
+
return n("SemVer.compare", this.version, this.options, e), e instanceof S || (e = new S(e, this.options)), this.compareMain(e) || this.comparePre(e);
|
|
88
|
+
}, S.prototype.compareMain = function(e) {
|
|
89
|
+
return e instanceof S || (e = new S(e, this.options)), E(this.major, e.major) || E(this.minor, e.minor) || E(this.patch, e.patch);
|
|
90
|
+
}, S.prototype.comparePre = function(e) {
|
|
91
|
+
if (e instanceof S || (e = new S(e, this.options)), this.prerelease.length && !e.prerelease.length) return -1;
|
|
92
|
+
if (!this.prerelease.length && e.prerelease.length) return 1;
|
|
93
|
+
if (!this.prerelease.length && !e.prerelease.length) return 0;
|
|
94
|
+
var t = 0;
|
|
95
|
+
do {
|
|
96
|
+
var r = this.prerelease[t], i = e.prerelease[t];
|
|
97
|
+
if (n("prerelease compare", t, r, i), r === void 0 && i === void 0) return 0;
|
|
98
|
+
if (i === void 0) return 1;
|
|
99
|
+
if (r === void 0) return -1;
|
|
100
|
+
if (r === i) continue;
|
|
101
|
+
return E(r, i);
|
|
102
|
+
} while (++t);
|
|
103
|
+
}, S.prototype.compareBuild = function(e) {
|
|
104
|
+
e instanceof S || (e = new S(e, this.options));
|
|
105
|
+
var t = 0;
|
|
106
|
+
do {
|
|
107
|
+
var r = this.build[t], i = e.build[t];
|
|
108
|
+
if (n("prerelease compare", t, r, i), r === void 0 && i === void 0) return 0;
|
|
109
|
+
if (i === void 0) return 1;
|
|
110
|
+
if (r === void 0) return -1;
|
|
111
|
+
if (r === i) continue;
|
|
112
|
+
return E(r, i);
|
|
113
|
+
} while (++t);
|
|
114
|
+
}, S.prototype.inc = function(e, t) {
|
|
115
|
+
switch (e) {
|
|
116
|
+
case "premajor":
|
|
117
|
+
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", t);
|
|
118
|
+
break;
|
|
119
|
+
case "preminor":
|
|
120
|
+
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", t);
|
|
121
|
+
break;
|
|
122
|
+
case "prepatch":
|
|
123
|
+
this.prerelease.length = 0, this.inc("patch", t), this.inc("pre", t);
|
|
124
|
+
break;
|
|
125
|
+
case "prerelease":
|
|
126
|
+
this.prerelease.length === 0 && this.inc("patch", t), this.inc("pre", t);
|
|
127
|
+
break;
|
|
128
|
+
case "major":
|
|
129
|
+
(this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
130
|
+
break;
|
|
131
|
+
case "minor":
|
|
132
|
+
(this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
|
|
133
|
+
break;
|
|
134
|
+
case "patch":
|
|
135
|
+
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
|
136
|
+
break;
|
|
137
|
+
case "pre":
|
|
138
|
+
if (this.prerelease.length === 0) this.prerelease = [0];
|
|
139
|
+
else {
|
|
140
|
+
for (var n = this.prerelease.length; --n >= 0;) typeof this.prerelease[n] == "number" && (this.prerelease[n]++, n = -2);
|
|
141
|
+
n === -1 && this.prerelease.push(0);
|
|
142
|
+
}
|
|
143
|
+
t && (this.prerelease[0] === t ? isNaN(this.prerelease[1]) && (this.prerelease = [t, 0]) : this.prerelease = [t, 0]);
|
|
144
|
+
break;
|
|
145
|
+
default: throw Error("invalid increment argument: " + e);
|
|
146
|
+
}
|
|
147
|
+
return this.format(), this.raw = this.version, this;
|
|
148
|
+
}, e.inc = C;
|
|
149
|
+
function C(e, t, n, r) {
|
|
150
|
+
typeof n == "string" && (r = n, n = void 0);
|
|
151
|
+
try {
|
|
152
|
+
return new S(e, n).inc(t, r).version;
|
|
153
|
+
} catch {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
e.diff = w;
|
|
158
|
+
function w(e, t) {
|
|
159
|
+
if (L(e, t)) return null;
|
|
160
|
+
var n = y(e), r = y(t), i = "";
|
|
161
|
+
if (n.prerelease.length || r.prerelease.length) {
|
|
162
|
+
i = "pre";
|
|
163
|
+
var a = "prerelease";
|
|
164
|
+
}
|
|
165
|
+
for (var o in n) if ((o === "major" || o === "minor" || o === "patch") && n[o] !== r[o]) return i + o;
|
|
166
|
+
return a;
|
|
167
|
+
}
|
|
168
|
+
e.compareIdentifiers = E;
|
|
169
|
+
var T = /^[0-9]+$/;
|
|
170
|
+
function E(e, t) {
|
|
171
|
+
var n = T.test(e), r = T.test(t);
|
|
172
|
+
return n && r && (e = +e, t = +t), e === t ? 0 : n && !r ? -1 : r && !n ? 1 : e < t ? -1 : 1;
|
|
173
|
+
}
|
|
174
|
+
e.rcompareIdentifiers = te;
|
|
175
|
+
function te(e, t) {
|
|
176
|
+
return E(t, e);
|
|
177
|
+
}
|
|
178
|
+
e.major = D;
|
|
179
|
+
function D(e, t) {
|
|
180
|
+
return new S(e, t).major;
|
|
181
|
+
}
|
|
182
|
+
e.minor = O;
|
|
183
|
+
function O(e, t) {
|
|
184
|
+
return new S(e, t).minor;
|
|
185
|
+
}
|
|
186
|
+
e.patch = k;
|
|
187
|
+
function k(e, t) {
|
|
188
|
+
return new S(e, t).patch;
|
|
189
|
+
}
|
|
190
|
+
e.compare = A;
|
|
191
|
+
function A(e, t, n) {
|
|
192
|
+
return new S(e, n).compare(new S(t, n));
|
|
193
|
+
}
|
|
194
|
+
e.compareLoose = j;
|
|
195
|
+
function j(e, t) {
|
|
196
|
+
return A(e, t, !0);
|
|
197
|
+
}
|
|
198
|
+
e.compareBuild = M;
|
|
199
|
+
function M(e, t, n) {
|
|
200
|
+
var r = new S(e, n), i = new S(t, n);
|
|
201
|
+
return r.compare(i) || r.compareBuild(i);
|
|
202
|
+
}
|
|
203
|
+
e.rcompare = N;
|
|
204
|
+
function N(e, t, n) {
|
|
205
|
+
return A(t, e, n);
|
|
206
|
+
}
|
|
207
|
+
e.sort = P;
|
|
208
|
+
function P(t, n) {
|
|
209
|
+
return t.sort(function(t, r) {
|
|
210
|
+
return e.compareBuild(t, r, n);
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
e.rsort = ne;
|
|
214
|
+
function ne(t, n) {
|
|
215
|
+
return t.sort(function(t, r) {
|
|
216
|
+
return e.compareBuild(r, t, n);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
e.gt = F;
|
|
220
|
+
function F(e, t, n) {
|
|
221
|
+
return A(e, t, n) > 0;
|
|
222
|
+
}
|
|
223
|
+
e.lt = I;
|
|
224
|
+
function I(e, t, n) {
|
|
225
|
+
return A(e, t, n) < 0;
|
|
226
|
+
}
|
|
227
|
+
e.eq = L;
|
|
228
|
+
function L(e, t, n) {
|
|
229
|
+
return A(e, t, n) === 0;
|
|
230
|
+
}
|
|
231
|
+
e.neq = R;
|
|
232
|
+
function R(e, t, n) {
|
|
233
|
+
return A(e, t, n) !== 0;
|
|
234
|
+
}
|
|
235
|
+
e.gte = z;
|
|
236
|
+
function z(e, t, n) {
|
|
237
|
+
return A(e, t, n) >= 0;
|
|
238
|
+
}
|
|
239
|
+
e.lte = B;
|
|
240
|
+
function B(e, t, n) {
|
|
241
|
+
return A(e, t, n) <= 0;
|
|
242
|
+
}
|
|
243
|
+
e.cmp = V;
|
|
244
|
+
function V(e, t, n, r) {
|
|
245
|
+
switch (t) {
|
|
246
|
+
case "===": return typeof e == "object" && (e = e.version), typeof n == "object" && (n = n.version), e === n;
|
|
247
|
+
case "!==": return typeof e == "object" && (e = e.version), typeof n == "object" && (n = n.version), e !== n;
|
|
248
|
+
case "":
|
|
249
|
+
case "=":
|
|
250
|
+
case "==": return L(e, n, r);
|
|
251
|
+
case "!=": return R(e, n, r);
|
|
252
|
+
case ">": return F(e, n, r);
|
|
253
|
+
case ">=": return z(e, n, r);
|
|
254
|
+
case "<": return I(e, n, r);
|
|
255
|
+
case "<=": return B(e, n, r);
|
|
256
|
+
default: throw TypeError("Invalid operator: " + t);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
e.Comparator = H;
|
|
260
|
+
function H(e, t) {
|
|
261
|
+
if ((!t || typeof t != "object") && (t = {
|
|
262
|
+
loose: !!t,
|
|
263
|
+
includePrerelease: !1
|
|
264
|
+
}), e instanceof H) {
|
|
265
|
+
if (e.loose === !!t.loose) return e;
|
|
266
|
+
e = e.value;
|
|
267
|
+
}
|
|
268
|
+
if (!(this instanceof H)) return new H(e, t);
|
|
269
|
+
e = e.trim().split(/\s+/).join(" "), n("comparator", e, t), this.options = t, this.loose = !!t.loose, this.parse(e), this.semver === U ? this.value = "" : this.value = this.operator + this.semver.version, n("comp", this);
|
|
270
|
+
}
|
|
271
|
+
var U = {};
|
|
272
|
+
H.prototype.parse = function(e) {
|
|
273
|
+
var t = this.options.loose ? c[u.COMPARATORLOOSE] : c[u.COMPARATOR], n = e.match(t);
|
|
274
|
+
if (!n) throw TypeError("Invalid comparator: " + e);
|
|
275
|
+
this.operator = n[1] === void 0 ? "" : n[1], this.operator === "=" && (this.operator = ""), n[2] ? this.semver = new S(n[2], this.options.loose) : this.semver = U;
|
|
276
|
+
}, H.prototype.toString = function() {
|
|
277
|
+
return this.value;
|
|
278
|
+
}, H.prototype.test = function(e) {
|
|
279
|
+
if (n("Comparator.test", e, this.options.loose), this.semver === U || e === U) return !0;
|
|
280
|
+
if (typeof e == "string") try {
|
|
281
|
+
e = new S(e, this.options);
|
|
282
|
+
} catch {
|
|
283
|
+
return !1;
|
|
284
|
+
}
|
|
285
|
+
return V(e, this.operator, this.semver, this.options);
|
|
286
|
+
}, H.prototype.intersects = function(e, t) {
|
|
287
|
+
if (!(e instanceof H)) throw TypeError("a Comparator is required");
|
|
288
|
+
(!t || typeof t != "object") && (t = {
|
|
289
|
+
loose: !!t,
|
|
290
|
+
includePrerelease: !1
|
|
291
|
+
});
|
|
292
|
+
var n;
|
|
293
|
+
if (this.operator === "") return this.value === "" ? !0 : (n = new W(e.value, t), Z(this.value, n, t));
|
|
294
|
+
if (e.operator === "") return e.value === "" ? !0 : (n = new W(this.value, t), Z(e.semver, n, t));
|
|
295
|
+
var r = (this.operator === ">=" || this.operator === ">") && (e.operator === ">=" || e.operator === ">"), i = (this.operator === "<=" || this.operator === "<") && (e.operator === "<=" || e.operator === "<"), a = this.semver.version === e.semver.version, o = (this.operator === ">=" || this.operator === "<=") && (e.operator === ">=" || e.operator === "<="), s = V(this.semver, "<", e.semver, t) && (this.operator === ">=" || this.operator === ">") && (e.operator === "<=" || e.operator === "<"), c = V(this.semver, ">", e.semver, t) && (this.operator === "<=" || this.operator === "<") && (e.operator === ">=" || e.operator === ">");
|
|
296
|
+
return r || i || a && o || s || c;
|
|
297
|
+
}, e.Range = W;
|
|
298
|
+
function W(e, t) {
|
|
299
|
+
if ((!t || typeof t != "object") && (t = {
|
|
300
|
+
loose: !!t,
|
|
301
|
+
includePrerelease: !1
|
|
302
|
+
}), e instanceof W) return e.loose === !!t.loose && e.includePrerelease === !!t.includePrerelease ? e : new W(e.raw, t);
|
|
303
|
+
if (e instanceof H) return new W(e.value, t);
|
|
304
|
+
if (!(this instanceof W)) return new W(e, t);
|
|
305
|
+
if (this.options = t, this.loose = !!t.loose, this.includePrerelease = !!t.includePrerelease, this.raw = e.trim().split(/\s+/).join(" "), this.set = this.raw.split("||").map(function(e) {
|
|
306
|
+
return this.parseRange(e.trim());
|
|
307
|
+
}, this).filter(function(e) {
|
|
308
|
+
return e.length;
|
|
309
|
+
}), !this.set.length) throw TypeError("Invalid SemVer Range: " + this.raw);
|
|
310
|
+
this.format();
|
|
311
|
+
}
|
|
312
|
+
W.prototype.format = function() {
|
|
313
|
+
return this.range = this.set.map(function(e) {
|
|
314
|
+
return e.join(" ").trim();
|
|
315
|
+
}).join("||").trim(), this.range;
|
|
316
|
+
}, W.prototype.toString = function() {
|
|
317
|
+
return this.range;
|
|
318
|
+
}, W.prototype.parseRange = function(e) {
|
|
319
|
+
var t = this.options.loose, r = t ? c[u.HYPHENRANGELOOSE] : c[u.HYPHENRANGE];
|
|
320
|
+
e = e.replace(r, ce), n("hyphen replace", e), e = e.replace(c[u.COMPARATORTRIM], _), n("comparator trim", e, c[u.COMPARATORTRIM]), e = e.replace(c[u.TILDETRIM], g), e = e.replace(c[u.CARETTRIM], ee), e = e.split(/\s+/).join(" ");
|
|
321
|
+
var i = t ? c[u.COMPARATORLOOSE] : c[u.COMPARATOR], a = e.split(" ").map(function(e) {
|
|
322
|
+
return q(e, this.options);
|
|
323
|
+
}, this).join(" ").split(/\s+/);
|
|
324
|
+
return this.options.loose && (a = a.filter(function(e) {
|
|
325
|
+
return !!e.match(i);
|
|
326
|
+
})), a = a.map(function(e) {
|
|
327
|
+
return new H(e, this.options);
|
|
328
|
+
}, this), a;
|
|
329
|
+
}, W.prototype.intersects = function(e, t) {
|
|
330
|
+
if (!(e instanceof W)) throw TypeError("a Range is required");
|
|
331
|
+
return this.set.some(function(n) {
|
|
332
|
+
return G(n, t) && e.set.some(function(e) {
|
|
333
|
+
return G(e, t) && n.every(function(n) {
|
|
334
|
+
return e.every(function(e) {
|
|
335
|
+
return n.intersects(e, t);
|
|
336
|
+
});
|
|
337
|
+
});
|
|
338
|
+
});
|
|
339
|
+
});
|
|
340
|
+
};
|
|
341
|
+
function G(e, t) {
|
|
342
|
+
for (var n = !0, r = e.slice(), i = r.pop(); n && r.length;) n = r.every(function(e) {
|
|
343
|
+
return i.intersects(e, t);
|
|
344
|
+
}), i = r.pop();
|
|
345
|
+
return n;
|
|
346
|
+
}
|
|
347
|
+
e.toComparators = K;
|
|
348
|
+
function K(e, t) {
|
|
349
|
+
return new W(e, t).set.map(function(e) {
|
|
350
|
+
return e.map(function(e) {
|
|
351
|
+
return e.value;
|
|
352
|
+
}).join(" ").trim().split(" ");
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
function q(e, t) {
|
|
356
|
+
return n("comp", e, t), e = X(e, t), n("caret", e), e = Y(e, t), n("tildes", e), e = ae(e, t), n("xrange", e), e = se(e, t), n("stars", e), e;
|
|
357
|
+
}
|
|
358
|
+
function J(e) {
|
|
359
|
+
return !e || e.toLowerCase() === "x" || e === "*";
|
|
360
|
+
}
|
|
361
|
+
function Y(e, t) {
|
|
362
|
+
return e.trim().split(/\s+/).map(function(e) {
|
|
363
|
+
return re(e, t);
|
|
364
|
+
}).join(" ");
|
|
365
|
+
}
|
|
366
|
+
function re(e, t) {
|
|
367
|
+
var r = t.loose ? c[u.TILDELOOSE] : c[u.TILDE];
|
|
368
|
+
return e.replace(r, function(t, r, i, a, o) {
|
|
369
|
+
n("tilde", e, t, r, i, a, o);
|
|
370
|
+
var s;
|
|
371
|
+
return J(r) ? s = "" : J(i) ? s = ">=" + r + ".0.0 <" + (+r + 1) + ".0.0" : J(a) ? s = ">=" + r + "." + i + ".0 <" + r + "." + (+i + 1) + ".0" : o ? (n("replaceTilde pr", o), s = ">=" + r + "." + i + "." + a + "-" + o + " <" + r + "." + (+i + 1) + ".0") : s = ">=" + r + "." + i + "." + a + " <" + r + "." + (+i + 1) + ".0", n("tilde return", s), s;
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
function X(e, t) {
|
|
375
|
+
return e.trim().split(/\s+/).map(function(e) {
|
|
376
|
+
return ie(e, t);
|
|
377
|
+
}).join(" ");
|
|
378
|
+
}
|
|
379
|
+
function ie(e, t) {
|
|
380
|
+
n("caret", e, t);
|
|
381
|
+
var r = t.loose ? c[u.CARETLOOSE] : c[u.CARET];
|
|
382
|
+
return e.replace(r, function(t, r, i, a, o) {
|
|
383
|
+
n("caret", e, t, r, i, a, o);
|
|
384
|
+
var s;
|
|
385
|
+
return J(r) ? s = "" : J(i) ? s = ">=" + r + ".0.0 <" + (+r + 1) + ".0.0" : J(a) ? s = r === "0" ? ">=" + r + "." + i + ".0 <" + r + "." + (+i + 1) + ".0" : ">=" + r + "." + i + ".0 <" + (+r + 1) + ".0.0" : o ? (n("replaceCaret pr", o), s = r === "0" ? i === "0" ? ">=" + r + "." + i + "." + a + "-" + o + " <" + r + "." + i + "." + (+a + 1) : ">=" + r + "." + i + "." + a + "-" + o + " <" + r + "." + (+i + 1) + ".0" : ">=" + r + "." + i + "." + a + "-" + o + " <" + (+r + 1) + ".0.0") : (n("no pr"), s = r === "0" ? i === "0" ? ">=" + r + "." + i + "." + a + " <" + r + "." + i + "." + (+a + 1) : ">=" + r + "." + i + "." + a + " <" + r + "." + (+i + 1) + ".0" : ">=" + r + "." + i + "." + a + " <" + (+r + 1) + ".0.0"), n("caret return", s), s;
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
function ae(e, t) {
|
|
389
|
+
return n("replaceXRanges", e, t), e.split(/\s+/).map(function(e) {
|
|
390
|
+
return oe(e, t);
|
|
391
|
+
}).join(" ");
|
|
392
|
+
}
|
|
393
|
+
function oe(e, t) {
|
|
394
|
+
e = e.trim();
|
|
395
|
+
var r = t.loose ? c[u.XRANGELOOSE] : c[u.XRANGE];
|
|
396
|
+
return e.replace(r, function(r, i, a, o, s, c) {
|
|
397
|
+
n("xRange", e, r, i, a, o, s, c);
|
|
398
|
+
var l = J(a), u = l || J(o), d = u || J(s), f = d;
|
|
399
|
+
return i === "=" && f && (i = ""), c = t.includePrerelease ? "-0" : "", l ? r = i === ">" || i === "<" ? "<0.0.0-0" : "*" : i && f ? (u && (o = 0), s = 0, i === ">" ? (i = ">=", u ? (a = +a + 1, o = 0, s = 0) : (o = +o + 1, s = 0)) : i === "<=" && (i = "<", u ? a = +a + 1 : o = +o + 1), r = i + a + "." + o + "." + s + c) : u ? r = ">=" + a + ".0.0" + c + " <" + (+a + 1) + ".0.0" + c : d && (r = ">=" + a + "." + o + ".0" + c + " <" + a + "." + (+o + 1) + ".0" + c), n("xRange return", r), r;
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
function se(e, t) {
|
|
403
|
+
return n("replaceStars", e, t), e.trim().replace(c[u.STAR], "");
|
|
404
|
+
}
|
|
405
|
+
function ce(e, t, n, r, i, a, o, s, c, l, u, d, f) {
|
|
406
|
+
return t = J(n) ? "" : J(r) ? ">=" + n + ".0.0" : J(i) ? ">=" + n + "." + r + ".0" : ">=" + t, s = J(c) ? "" : J(l) ? "<" + (+c + 1) + ".0.0" : J(u) ? "<" + c + "." + (+l + 1) + ".0" : d ? "<=" + c + "." + l + "." + u + "-" + d : "<=" + s, (t + " " + s).trim();
|
|
407
|
+
}
|
|
408
|
+
W.prototype.test = function(e) {
|
|
409
|
+
if (!e) return !1;
|
|
410
|
+
if (typeof e == "string") try {
|
|
411
|
+
e = new S(e, this.options);
|
|
412
|
+
} catch {
|
|
413
|
+
return !1;
|
|
414
|
+
}
|
|
415
|
+
for (var t = 0; t < this.set.length; t++) if (le(this.set[t], e, this.options)) return !0;
|
|
416
|
+
return !1;
|
|
417
|
+
};
|
|
418
|
+
function le(e, t, r) {
|
|
419
|
+
for (var i = 0; i < e.length; i++) if (!e[i].test(t)) return !1;
|
|
420
|
+
if (t.prerelease.length && !r.includePrerelease) {
|
|
421
|
+
for (i = 0; i < e.length; i++) if (n(e[i].semver), e[i].semver !== U && e[i].semver.prerelease.length > 0) {
|
|
422
|
+
var a = e[i].semver;
|
|
423
|
+
if (a.major === t.major && a.minor === t.minor && a.patch === t.patch) return !0;
|
|
424
|
+
}
|
|
425
|
+
return !1;
|
|
426
|
+
}
|
|
427
|
+
return !0;
|
|
428
|
+
}
|
|
429
|
+
e.satisfies = Z;
|
|
430
|
+
function Z(e, t, n) {
|
|
431
|
+
try {
|
|
432
|
+
t = new W(t, n);
|
|
433
|
+
} catch {
|
|
434
|
+
return !1;
|
|
435
|
+
}
|
|
436
|
+
return t.test(e);
|
|
437
|
+
}
|
|
438
|
+
e.maxSatisfying = ue;
|
|
439
|
+
function ue(e, t, n) {
|
|
440
|
+
var r = null, i = null;
|
|
441
|
+
try {
|
|
442
|
+
var a = new W(t, n);
|
|
443
|
+
} catch {
|
|
444
|
+
return null;
|
|
445
|
+
}
|
|
446
|
+
return e.forEach(function(e) {
|
|
447
|
+
a.test(e) && (!r || i.compare(e) === -1) && (r = e, i = new S(r, n));
|
|
448
|
+
}), r;
|
|
449
|
+
}
|
|
450
|
+
e.minSatisfying = Q;
|
|
451
|
+
function Q(e, t, n) {
|
|
452
|
+
var r = null, i = null;
|
|
453
|
+
try {
|
|
454
|
+
var a = new W(t, n);
|
|
455
|
+
} catch {
|
|
456
|
+
return null;
|
|
457
|
+
}
|
|
458
|
+
return e.forEach(function(e) {
|
|
459
|
+
a.test(e) && (!r || i.compare(e) === 1) && (r = e, i = new S(r, n));
|
|
460
|
+
}), r;
|
|
461
|
+
}
|
|
462
|
+
e.minVersion = de;
|
|
463
|
+
function de(e, t) {
|
|
464
|
+
e = new W(e, t);
|
|
465
|
+
var n = new S("0.0.0");
|
|
466
|
+
if (e.test(n) || (n = new S("0.0.0-0"), e.test(n))) return n;
|
|
467
|
+
n = null;
|
|
468
|
+
for (var r = 0; r < e.set.length; ++r) e.set[r].forEach(function(e) {
|
|
469
|
+
var t = new S(e.semver.version);
|
|
470
|
+
switch (e.operator) {
|
|
471
|
+
case ">": t.prerelease.length === 0 ? t.patch++ : t.prerelease.push(0), t.raw = t.format();
|
|
472
|
+
case "":
|
|
473
|
+
case ">=":
|
|
474
|
+
(!n || F(n, t)) && (n = t);
|
|
475
|
+
break;
|
|
476
|
+
case "<":
|
|
477
|
+
case "<=": break;
|
|
478
|
+
default: throw Error("Unexpected operation: " + e.operator);
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
return n && e.test(n) ? n : null;
|
|
482
|
+
}
|
|
483
|
+
e.validRange = fe;
|
|
484
|
+
function fe(e, t) {
|
|
485
|
+
try {
|
|
486
|
+
return new W(e, t).range || "*";
|
|
487
|
+
} catch {
|
|
488
|
+
return null;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
e.ltr = pe;
|
|
492
|
+
function pe(e, t, n) {
|
|
493
|
+
return $(e, t, "<", n);
|
|
494
|
+
}
|
|
495
|
+
e.gtr = me;
|
|
496
|
+
function me(e, t, n) {
|
|
497
|
+
return $(e, t, ">", n);
|
|
498
|
+
}
|
|
499
|
+
e.outside = $;
|
|
500
|
+
function $(e, t, n, r) {
|
|
501
|
+
e = new S(e, r), t = new W(t, r);
|
|
502
|
+
var i, a, o, s, c;
|
|
503
|
+
switch (n) {
|
|
504
|
+
case ">":
|
|
505
|
+
i = F, a = B, o = I, s = ">", c = ">=";
|
|
506
|
+
break;
|
|
507
|
+
case "<":
|
|
508
|
+
i = I, a = z, o = F, s = "<", c = "<=";
|
|
509
|
+
break;
|
|
510
|
+
default: throw TypeError("Must provide a hilo val of \"<\" or \">\"");
|
|
511
|
+
}
|
|
512
|
+
if (Z(e, t, r)) return !1;
|
|
513
|
+
for (var l = 0; l < t.set.length; ++l) {
|
|
514
|
+
var u = t.set[l], d = null, f = null;
|
|
515
|
+
if (u.forEach(function(e) {
|
|
516
|
+
e.semver === U && (e = new H(">=0.0.0")), d ||= e, f ||= e, i(e.semver, d.semver, r) ? d = e : o(e.semver, f.semver, r) && (f = e);
|
|
517
|
+
}), d.operator === s || d.operator === c || (!f.operator || f.operator === s) && a(e, f.semver) || f.operator === c && o(e, f.semver)) return !1;
|
|
518
|
+
}
|
|
519
|
+
return !0;
|
|
520
|
+
}
|
|
521
|
+
e.prerelease = he;
|
|
522
|
+
function he(e, t) {
|
|
523
|
+
var n = y(e, t);
|
|
524
|
+
return n && n.prerelease.length ? n.prerelease : null;
|
|
525
|
+
}
|
|
526
|
+
e.intersects = ge;
|
|
527
|
+
function ge(e, t, n) {
|
|
528
|
+
return e = new W(e, n), t = new W(t, n), e.intersects(t);
|
|
529
|
+
}
|
|
530
|
+
e.coerce = _e;
|
|
531
|
+
function _e(e, t) {
|
|
532
|
+
if (e instanceof S) return e;
|
|
533
|
+
if (typeof e == "number" && (e = String(e)), typeof e != "string") return null;
|
|
534
|
+
t ||= {};
|
|
535
|
+
var n = null;
|
|
536
|
+
if (!t.rtl) n = e.match(c[u.COERCE]);
|
|
537
|
+
else {
|
|
538
|
+
for (var r; (r = c[u.COERCERTL].exec(e)) && (!n || n.index + n[0].length !== e.length);) (!n || r.index + r[0].length !== n.index + n[0].length) && (n = r), c[u.COERCERTL].lastIndex = r.index + r[1].length + r[2].length;
|
|
539
|
+
c[u.COERCERTL].lastIndex = -1;
|
|
540
|
+
}
|
|
541
|
+
return n === null ? null : y(n[2] + "." + (n[3] || "0") + "." + (n[4] || "0"), t);
|
|
542
|
+
}
|
|
543
|
+
}));
|
|
544
|
+
//#endregion
|
|
545
|
+
export default t();
|
|
546
|
+
export { t as require_semver };
|