@argent/x-shared 1.79.0 → 1.79.1

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