@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,417 +1,377 @@
1
- import { __module as v } from "../../../../../_virtual/numeral2.js";
2
- var O = v.exports, E;
3
- function z() {
4
- return E ? v.exports : (E = 1, (function($) {
5
- (function(n, m) {
6
- $.exports ? $.exports = m() : n.numeral = m();
7
- })(O, function() {
8
- var n, m, P = "2.0.6", _ = {}, N = {}, y = {
9
- currentLocale: "en",
10
- zeroFormat: null,
11
- nullFormat: null,
12
- defaultFormat: "0,0",
13
- scalePercentBy100: !0
14
- }, c = {
15
- currentLocale: y.currentLocale,
16
- zeroFormat: y.zeroFormat,
17
- nullFormat: y.nullFormat,
18
- defaultFormat: y.defaultFormat,
19
- scalePercentBy100: y.scalePercentBy100
20
- };
21
- function M(e, r) {
22
- this._input = e, this._value = r;
23
- }
24
- return n = function(e) {
25
- var r, l, i, t;
26
- if (n.isNumeral(e))
27
- r = e.value();
28
- else if (e === 0 || typeof e > "u")
29
- r = 0;
30
- else if (e === null || m.isNaN(e))
31
- r = null;
32
- else if (typeof e == "string")
33
- if (c.zeroFormat && e === c.zeroFormat)
34
- r = 0;
35
- else if (c.nullFormat && e === c.nullFormat || !e.replace(/[^0-9]+/g, "").length)
36
- r = null;
37
- else {
38
- for (l in _)
39
- if (t = typeof _[l].regexps.unformat == "function" ? _[l].regexps.unformat() : _[l].regexps.unformat, t && e.match(t)) {
40
- i = _[l].unformat;
41
- break;
42
- }
43
- i = i || n._.stringToNumber, r = i(e);
44
- }
45
- else
46
- r = Number(e) || null;
47
- return new M(e, r);
48
- }, n.version = P, n.isNumeral = function(e) {
49
- return e instanceof M;
50
- }, n._ = m = {
51
- // formats numbers separators, decimals places, signs, abbreviations
52
- numberToFormat: function(e, r, l) {
53
- var i = N[n.options.currentLocale], t = !1, o = !1, a = 0, u = "", f = 1e12, s = 1e9, d = 1e6, w = 1e3, h = "", B = !1, p, F, b, g, T, k, x;
54
- if (e = e || 0, F = Math.abs(e), n._.includes(r, "(") ? (t = !0, r = r.replace(/[\(|\)]/g, "")) : (n._.includes(r, "+") || n._.includes(r, "-")) && (T = n._.includes(r, "+") ? r.indexOf("+") : e < 0 ? r.indexOf("-") : -1, r = r.replace(/[\+|\-]/g, "")), n._.includes(r, "a") && (p = r.match(/a(k|m|b|t)?/), p = p ? p[1] : !1, n._.includes(r, " a") && (u = " "), r = r.replace(new RegExp(u + "a[kmbt]?"), ""), F >= f && !p || p === "t" ? (u += i.abbreviations.trillion, e = e / f) : F < f && F >= s && !p || p === "b" ? (u += i.abbreviations.billion, e = e / s) : F < s && F >= d && !p || p === "m" ? (u += i.abbreviations.million, e = e / d) : (F < d && F >= w && !p || p === "k") && (u += i.abbreviations.thousand, e = e / w)), n._.includes(r, "[.]") && (o = !0, r = r.replace("[.]", ".")), b = e.toString().split(".")[0], g = r.split(".")[1], k = r.indexOf(","), a = (r.split(".")[0].split(",")[0].match(/0/g) || []).length, g ? (n._.includes(g, "[") ? (g = g.replace("]", ""), g = g.split("["), h = n._.toFixed(e, g[0].length + g[1].length, l, g[1].length)) : h = n._.toFixed(e, g.length, l), b = h.split(".")[0], n._.includes(h, ".") ? h = i.delimiters.decimal + h.split(".")[1] : h = "", o && Number(h.slice(1)) === 0 && (h = "")) : b = n._.toFixed(e, 0, l), u && !p && Number(b) >= 1e3 && u !== i.abbreviations.trillion)
55
- switch (b = String(Number(b) / 1e3), u) {
56
- case i.abbreviations.thousand:
57
- u = i.abbreviations.million;
58
- break;
59
- case i.abbreviations.million:
60
- u = i.abbreviations.billion;
61
- break;
62
- case i.abbreviations.billion:
63
- u = i.abbreviations.trillion;
64
- break;
65
- }
66
- if (n._.includes(b, "-") && (b = b.slice(1), B = !0), b.length < a)
67
- for (var S = a - b.length; S > 0; S--)
68
- b = "0" + b;
69
- return k > -1 && (b = b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + i.delimiters.thousands)), r.indexOf(".") === 0 && (b = ""), x = b + h + (u || ""), t ? x = (t && B ? "(" : "") + x + (t && B ? ")" : "") : T >= 0 ? x = T === 0 ? (B ? "-" : "+") + x : x + (B ? "-" : "+") : B && (x = "-" + x), x;
70
- },
71
- // unformats numbers separators, decimals places, signs, abbreviations
72
- stringToNumber: function(e) {
73
- var r = N[c.currentLocale], l = e, i = {
74
- thousand: 3,
75
- million: 6,
76
- billion: 9,
77
- trillion: 12
78
- }, t, o, a;
79
- if (c.zeroFormat && e === c.zeroFormat)
80
- o = 0;
81
- else if (c.nullFormat && e === c.nullFormat || !e.replace(/[^0-9]+/g, "").length)
82
- o = null;
83
- else {
84
- o = 1, r.delimiters.decimal !== "." && (e = e.replace(/\./g, "").replace(r.delimiters.decimal, "."));
85
- for (t in i)
86
- if (a = new RegExp("[^a-zA-Z]" + r.abbreviations[t] + "(?:\\)|(\\" + r.currency.symbol + ")?(?:\\))?)?$"), l.match(a)) {
87
- o *= Math.pow(10, i[t]);
88
- break;
89
- }
90
- o *= (e.split("-").length + Math.min(e.split("(").length - 1, e.split(")").length - 1)) % 2 ? 1 : -1, e = e.replace(/[^0-9\.]+/g, ""), o *= Number(e);
91
- }
92
- return o;
93
- },
94
- isNaN: function(e) {
95
- return typeof e == "number" && isNaN(e);
96
- },
97
- includes: function(e, r) {
98
- return e.indexOf(r) !== -1;
99
- },
100
- insert: function(e, r, l) {
101
- return e.slice(0, l) + r + e.slice(l);
102
- },
103
- reduce: function(e, r) {
104
- if (this === null)
105
- throw new TypeError("Array.prototype.reduce called on null or undefined");
106
- if (typeof r != "function")
107
- throw new TypeError(r + " is not a function");
108
- var l = Object(e), i = l.length >>> 0, t = 0, o;
109
- if (arguments.length === 3)
110
- o = arguments[2];
111
- else {
112
- for (; t < i && !(t in l); )
113
- t++;
114
- if (t >= i)
115
- throw new TypeError("Reduce of empty array with no initial value");
116
- o = l[t++];
117
- }
118
- for (; t < i; t++)
119
- t in l && (o = r(o, l[t], t, l));
120
- return o;
121
- },
122
- /**
123
- * Computes the multiplier necessary to make x >= 1,
124
- * effectively eliminating miscalculations caused by
125
- * finite precision.
126
- */
127
- multiplier: function(e) {
128
- var r = e.toString().split(".");
129
- return r.length < 2 ? 1 : Math.pow(10, r[1].length);
130
- },
131
- /**
132
- * Given a variable number of arguments, returns the maximum
133
- * multiplier that must be used to normalize an operation involving
134
- * all of them.
135
- */
136
- correctionFactor: function() {
137
- var e = Array.prototype.slice.call(arguments);
138
- return e.reduce(function(r, l) {
139
- var i = m.multiplier(l);
140
- return r > i ? r : i;
141
- }, 1);
142
- },
143
- /**
144
- * Implementation of toFixed() that treats floats more like decimals
145
- *
146
- * Fixes binary rounding issues (eg. (0.615).toFixed(2) === '0.61') that present
147
- * problems for accounting- and finance-related software.
148
- */
149
- toFixed: function(e, r, l, i) {
150
- var t = e.toString().split("."), o = r - (i || 0), a, u, f, s;
151
- return t.length === 2 ? a = Math.min(Math.max(t[1].length, o), r) : a = o, f = Math.pow(10, a), s = (l(e + "e+" + a) / f).toFixed(a), i > r - a && (u = new RegExp("\\.?0{1," + (i - (r - a)) + "}$"), s = s.replace(u, "")), s;
152
- }
153
- }, n.options = c, n.formats = _, n.locales = N, n.locale = function(e) {
154
- return e && (c.currentLocale = e.toLowerCase()), c.currentLocale;
155
- }, n.localeData = function(e) {
156
- if (!e)
157
- return N[c.currentLocale];
158
- if (e = e.toLowerCase(), !N[e])
159
- throw new Error("Unknown locale : " + e);
160
- return N[e];
161
- }, n.reset = function() {
162
- for (var e in y)
163
- c[e] = y[e];
164
- }, n.zeroFormat = function(e) {
165
- c.zeroFormat = typeof e == "string" ? e : null;
166
- }, n.nullFormat = function(e) {
167
- c.nullFormat = typeof e == "string" ? e : null;
168
- }, n.defaultFormat = function(e) {
169
- c.defaultFormat = typeof e == "string" ? e : "0.0";
170
- }, n.register = function(e, r, l) {
171
- if (r = r.toLowerCase(), this[e + "s"][r])
172
- throw new TypeError(r + " " + e + " already registered.");
173
- return this[e + "s"][r] = l, l;
174
- }, n.validate = function(e, r) {
175
- var l, i, t, o, a, u, f, s;
176
- if (typeof e != "string" && (e += ""), e = e.trim(), e.match(/^\d+$/))
177
- return !0;
178
- if (e === "")
179
- return !1;
180
- try {
181
- f = n.localeData(r);
182
- } catch {
183
- f = n.localeData(n.locale());
184
- }
185
- return t = f.currency.symbol, a = f.abbreviations, l = f.delimiters.decimal, f.delimiters.thousands === "." ? i = "\\." : i = f.delimiters.thousands, s = e.match(/^[^\d]+/), s !== null && (e = e.substr(1), s[0] !== t) || (s = e.match(/[^\d]+$/), s !== null && (e = e.slice(0, -1), s[0] !== a.thousand && s[0] !== a.million && s[0] !== a.billion && s[0] !== a.trillion)) ? !1 : (u = new RegExp(i + "{2}"), e.match(/[^\d.,]/g) ? !1 : (o = e.split(l), o.length > 2 ? !1 : o.length < 2 ? !!o[0].match(/^\d+.*\d$/) && !o[0].match(u) : o[0].length === 1 ? !!o[0].match(/^\d+$/) && !o[0].match(u) && !!o[1].match(/^\d+$/) : !!o[0].match(/^\d+.*\d$/) && !o[0].match(u) && !!o[1].match(/^\d+$/)));
186
- }, n.fn = M.prototype = {
187
- clone: function() {
188
- return n(this);
189
- },
190
- format: function(e, r) {
191
- var l = this._value, i = e || c.defaultFormat, t, o, a;
192
- if (r = r || Math.round, l === 0 && c.zeroFormat !== null)
193
- o = c.zeroFormat;
194
- else if (l === null && c.nullFormat !== null)
195
- o = c.nullFormat;
196
- else {
197
- for (t in _)
198
- if (i.match(_[t].regexps.format)) {
199
- a = _[t].format;
200
- break;
201
- }
202
- a = a || n._.numberToFormat, o = a(l, i, r);
203
- }
204
- return o;
205
- },
206
- value: function() {
207
- return this._value;
208
- },
209
- input: function() {
210
- return this._input;
211
- },
212
- set: function(e) {
213
- return this._value = Number(e), this;
214
- },
215
- add: function(e) {
216
- var r = m.correctionFactor.call(null, this._value, e);
217
- function l(i, t, o, a) {
218
- return i + Math.round(r * t);
219
- }
220
- return this._value = m.reduce([this._value, e], l, 0) / r, this;
221
- },
222
- subtract: function(e) {
223
- var r = m.correctionFactor.call(null, this._value, e);
224
- function l(i, t, o, a) {
225
- return i - Math.round(r * t);
226
- }
227
- return this._value = m.reduce([e], l, Math.round(this._value * r)) / r, this;
228
- },
229
- multiply: function(e) {
230
- function r(l, i, t, o) {
231
- var a = m.correctionFactor(l, i);
232
- return Math.round(l * a) * Math.round(i * a) / Math.round(a * a);
233
- }
234
- return this._value = m.reduce([this._value, e], r, 1), this;
235
- },
236
- divide: function(e) {
237
- function r(l, i, t, o) {
238
- var a = m.correctionFactor(l, i);
239
- return Math.round(l * a) / Math.round(i * a);
240
- }
241
- return this._value = m.reduce([this._value, e], r), this;
242
- },
243
- difference: function(e) {
244
- return Math.abs(n(this._value).subtract(e).value());
245
- }
246
- }, n.register("locale", "en", {
247
- delimiters: {
248
- thousands: ",",
249
- decimal: "."
250
- },
251
- abbreviations: {
252
- thousand: "k",
253
- million: "m",
254
- billion: "b",
255
- trillion: "t"
256
- },
257
- ordinal: function(e) {
258
- var r = e % 10;
259
- return ~~(e % 100 / 10) === 1 ? "th" : r === 1 ? "st" : r === 2 ? "nd" : r === 3 ? "rd" : "th";
260
- },
261
- currency: {
262
- symbol: "$"
263
- }
264
- }), (function() {
265
- n.register("format", "bps", {
266
- regexps: {
267
- format: /(BPS)/,
268
- unformat: /(BPS)/
269
- },
270
- format: function(e, r, l) {
271
- var i = n._.includes(r, " BPS") ? " " : "", t;
272
- return e = e * 1e4, r = r.replace(/\s?BPS/, ""), t = n._.numberToFormat(e, r, l), n._.includes(t, ")") ? (t = t.split(""), t.splice(-1, 0, i + "BPS"), t = t.join("")) : t = t + i + "BPS", t;
273
- },
274
- unformat: function(e) {
275
- return +(n._.stringToNumber(e) * 1e-4).toFixed(15);
276
- }
277
- });
278
- })(), (function() {
279
- var e = {
280
- base: 1e3,
281
- suffixes: ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]
282
- }, r = {
283
- base: 1024,
284
- suffixes: ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"]
285
- }, l = e.suffixes.concat(r.suffixes.filter(function(t) {
286
- return e.suffixes.indexOf(t) < 0;
287
- })), i = l.join("|");
288
- i = "(" + i.replace("B", "B(?!PS)") + ")", n.register("format", "bytes", {
289
- regexps: {
290
- format: /([0\s]i?b)/,
291
- unformat: new RegExp(i)
292
- },
293
- format: function(t, o, a) {
294
- var u, f = n._.includes(o, "ib") ? r : e, s = n._.includes(o, " b") || n._.includes(o, " ib") ? " " : "", d, w, h;
295
- for (o = o.replace(/\s?i?b/, ""), d = 0; d <= f.suffixes.length; d++)
296
- if (w = Math.pow(f.base, d), h = Math.pow(f.base, d + 1), t === null || t === 0 || t >= w && t < h) {
297
- s += f.suffixes[d], w > 0 && (t = t / w);
298
- break;
299
- }
300
- return u = n._.numberToFormat(t, o, a), u + s;
301
- },
302
- unformat: function(t) {
303
- var o = n._.stringToNumber(t), a, u;
304
- if (o) {
305
- for (a = e.suffixes.length - 1; a >= 0; a--) {
306
- if (n._.includes(t, e.suffixes[a])) {
307
- u = Math.pow(e.base, a);
308
- break;
309
- }
310
- if (n._.includes(t, r.suffixes[a])) {
311
- u = Math.pow(r.base, a);
312
- break;
313
- }
314
- }
315
- o *= u || 1;
316
- }
317
- return o;
318
- }
319
- });
320
- })(), (function() {
321
- n.register("format", "currency", {
322
- regexps: {
323
- format: /(\$)/
324
- },
325
- format: function(e, r, l) {
326
- var i = n.locales[n.options.currentLocale], t = {
327
- before: r.match(/^([\+|\-|\(|\s|\$]*)/)[0],
328
- after: r.match(/([\+|\-|\)|\s|\$]*)$/)[0]
329
- }, o, a, u;
330
- for (r = r.replace(/\s?\$\s?/, ""), o = n._.numberToFormat(e, r, l), e >= 0 ? (t.before = t.before.replace(/[\-\(]/, ""), t.after = t.after.replace(/[\-\)]/, "")) : e < 0 && !n._.includes(t.before, "-") && !n._.includes(t.before, "(") && (t.before = "-" + t.before), u = 0; u < t.before.length; u++)
331
- switch (a = t.before[u], a) {
332
- case "$":
333
- o = n._.insert(o, i.currency.symbol, u);
334
- break;
335
- case " ":
336
- o = n._.insert(o, " ", u + i.currency.symbol.length - 1);
337
- break;
338
- }
339
- for (u = t.after.length - 1; u >= 0; u--)
340
- switch (a = t.after[u], a) {
341
- case "$":
342
- o = u === t.after.length - 1 ? o + i.currency.symbol : n._.insert(o, i.currency.symbol, -(t.after.length - (1 + u)));
343
- break;
344
- case " ":
345
- o = u === t.after.length - 1 ? o + " " : n._.insert(o, " ", -(t.after.length - (1 + u) + i.currency.symbol.length - 1));
346
- break;
347
- }
348
- return o;
349
- }
350
- });
351
- })(), (function() {
352
- n.register("format", "exponential", {
353
- regexps: {
354
- format: /(e\+|e-)/,
355
- unformat: /(e\+|e-)/
356
- },
357
- format: function(e, r, l) {
358
- var i, t = typeof e == "number" && !n._.isNaN(e) ? e.toExponential() : "0e+0", o = t.split("e");
359
- return r = r.replace(/e[\+|\-]{1}0/, ""), i = n._.numberToFormat(Number(o[0]), r, l), i + "e" + o[1];
360
- },
361
- unformat: function(e) {
362
- var r = n._.includes(e, "e+") ? e.split("e+") : e.split("e-"), l = Number(r[0]), i = Number(r[1]);
363
- i = n._.includes(e, "e-") ? i *= -1 : i;
364
- function t(o, a, u, f) {
365
- var s = n._.correctionFactor(o, a), d = o * s * (a * s) / (s * s);
366
- return d;
367
- }
368
- return n._.reduce([l, Math.pow(10, i)], t, 1);
369
- }
370
- });
371
- })(), (function() {
372
- n.register("format", "ordinal", {
373
- regexps: {
374
- format: /(o)/
375
- },
376
- format: function(e, r, l) {
377
- var i = n.locales[n.options.currentLocale], t, o = n._.includes(r, " o") ? " " : "";
378
- return r = r.replace(/\s?o/, ""), o += i.ordinal(e), t = n._.numberToFormat(e, r, l), t + o;
379
- }
380
- });
381
- })(), (function() {
382
- n.register("format", "percentage", {
383
- regexps: {
384
- format: /(%)/,
385
- unformat: /(%)/
386
- },
387
- format: function(e, r, l) {
388
- var i = n._.includes(r, " %") ? " " : "", t;
389
- return n.options.scalePercentBy100 && (e = e * 100), r = r.replace(/\s?\%/, ""), t = n._.numberToFormat(e, r, l), n._.includes(t, ")") ? (t = t.split(""), t.splice(-1, 0, i + "%"), t = t.join("")) : t = t + i + "%", t;
390
- },
391
- unformat: function(e) {
392
- var r = n._.stringToNumber(e);
393
- return n.options.scalePercentBy100 ? r * 0.01 : r;
394
- }
395
- });
396
- })(), (function() {
397
- n.register("format", "time", {
398
- regexps: {
399
- format: /(:)/,
400
- unformat: /(:)/
401
- },
402
- format: function(e, r, l) {
403
- var i = Math.floor(e / 60 / 60), t = Math.floor((e - i * 60 * 60) / 60), o = Math.round(e - i * 60 * 60 - t * 60);
404
- return i + ":" + (t < 10 ? "0" + t : t) + ":" + (o < 10 ? "0" + o : o);
405
- },
406
- unformat: function(e) {
407
- var r = e.split(":"), l = 0;
408
- return r.length === 3 ? (l = l + Number(r[0]) * 60 * 60, l = l + Number(r[1]) * 60, l = l + Number(r[2])) : r.length === 2 && (l = l + Number(r[0]) * 60, l = l + Number(r[1])), Number(l);
409
- }
410
- });
411
- })(), n;
412
- });
413
- })(v), v.exports);
414
- }
415
- export {
416
- z as __require
417
- };
1
+ import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
2
+ //#region node_modules/.pnpm/numeral@2.0.6/node_modules/numeral/numeral.js
3
+ var t = /* @__PURE__ */ e(((e, t) => {
4
+ (function(e, n) {
5
+ typeof define == "function" && define.amd ? define(n) : typeof t == "object" && t.exports ? t.exports = n() : e.numeral = n();
6
+ })(e, function() {
7
+ var e, t, n = "2.0.6", r = {}, i = {}, a = {
8
+ currentLocale: "en",
9
+ zeroFormat: null,
10
+ nullFormat: null,
11
+ defaultFormat: "0,0",
12
+ scalePercentBy100: !0
13
+ }, o = {
14
+ currentLocale: a.currentLocale,
15
+ zeroFormat: a.zeroFormat,
16
+ nullFormat: a.nullFormat,
17
+ defaultFormat: a.defaultFormat,
18
+ scalePercentBy100: a.scalePercentBy100
19
+ };
20
+ function s(e, t) {
21
+ this._input = e, this._value = t;
22
+ }
23
+ return e = function(n) {
24
+ var i, a, c, l;
25
+ if (e.isNumeral(n)) i = n.value();
26
+ else if (n === 0 || n === void 0) i = 0;
27
+ else if (n === null || t.isNaN(n)) i = null;
28
+ else if (typeof n == "string") if (o.zeroFormat && n === o.zeroFormat) i = 0;
29
+ else if (o.nullFormat && n === o.nullFormat || !n.replace(/[^0-9]+/g, "").length) i = null;
30
+ else {
31
+ for (a in r) if (l = typeof r[a].regexps.unformat == "function" ? r[a].regexps.unformat() : r[a].regexps.unformat, l && n.match(l)) {
32
+ c = r[a].unformat;
33
+ break;
34
+ }
35
+ c ||= e._.stringToNumber, i = c(n);
36
+ }
37
+ else i = Number(n) || null;
38
+ return new s(n, i);
39
+ }, e.version = n, e.isNumeral = function(e) {
40
+ return e instanceof s;
41
+ }, e._ = t = {
42
+ numberToFormat: function(t, n, r) {
43
+ var a = i[e.options.currentLocale], o = !1, s = !1, c = 0, l = "", u = 0xe8d4a51000, d = 1e9, f = 1e6, p = 1e3, m = "", h = !1, g, _, v, y, b, x, S;
44
+ if (t ||= 0, _ = Math.abs(t), e._.includes(n, "(") ? (o = !0, n = n.replace(/[\(|\)]/g, "")) : (e._.includes(n, "+") || e._.includes(n, "-")) && (b = e._.includes(n, "+") ? n.indexOf("+") : t < 0 ? n.indexOf("-") : -1, n = n.replace(/[\+|\-]/g, "")), e._.includes(n, "a") && (g = n.match(/a(k|m|b|t)?/), g = g ? g[1] : !1, e._.includes(n, " a") && (l = " "), n = n.replace(RegExp(l + "a[kmbt]?"), ""), _ >= u && !g || g === "t" ? (l += a.abbreviations.trillion, t /= u) : _ < u && _ >= d && !g || g === "b" ? (l += a.abbreviations.billion, t /= d) : _ < d && _ >= f && !g || g === "m" ? (l += a.abbreviations.million, t /= f) : (_ < f && _ >= p && !g || g === "k") && (l += a.abbreviations.thousand, t /= p)), e._.includes(n, "[.]") && (s = !0, n = n.replace("[.]", ".")), v = t.toString().split(".")[0], y = n.split(".")[1], x = n.indexOf(","), c = (n.split(".")[0].split(",")[0].match(/0/g) || []).length, y ? (e._.includes(y, "[") ? (y = y.replace("]", ""), y = y.split("["), m = e._.toFixed(t, y[0].length + y[1].length, r, y[1].length)) : m = e._.toFixed(t, y.length, r), v = m.split(".")[0], m = e._.includes(m, ".") ? a.delimiters.decimal + m.split(".")[1] : "", s && Number(m.slice(1)) === 0 && (m = "")) : v = e._.toFixed(t, 0, r), l && !g && Number(v) >= 1e3 && l !== a.abbreviations.trillion) switch (v = String(Number(v) / 1e3), l) {
45
+ case a.abbreviations.thousand:
46
+ l = a.abbreviations.million;
47
+ break;
48
+ case a.abbreviations.million:
49
+ l = a.abbreviations.billion;
50
+ break;
51
+ case a.abbreviations.billion:
52
+ l = a.abbreviations.trillion;
53
+ break;
54
+ }
55
+ if (e._.includes(v, "-") && (v = v.slice(1), h = !0), v.length < c) for (var C = c - v.length; C > 0; C--) v = "0" + v;
56
+ return x > -1 && (v = v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + a.delimiters.thousands)), n.indexOf(".") === 0 && (v = ""), S = v + m + (l || ""), o ? S = (o && h ? "(" : "") + S + (o && h ? ")" : "") : b >= 0 ? S = b === 0 ? (h ? "-" : "+") + S : S + (h ? "-" : "+") : h && (S = "-" + S), S;
57
+ },
58
+ stringToNumber: function(e) {
59
+ var t = i[o.currentLocale], n = e, r = {
60
+ thousand: 3,
61
+ million: 6,
62
+ billion: 9,
63
+ trillion: 12
64
+ }, a, s, c;
65
+ if (o.zeroFormat && e === o.zeroFormat) s = 0;
66
+ else if (o.nullFormat && e === o.nullFormat || !e.replace(/[^0-9]+/g, "").length) s = null;
67
+ else {
68
+ for (a in s = 1, t.delimiters.decimal !== "." && (e = e.replace(/\./g, "").replace(t.delimiters.decimal, ".")), r) if (c = RegExp("[^a-zA-Z]" + t.abbreviations[a] + "(?:\\)|(\\" + t.currency.symbol + ")?(?:\\))?)?$"), n.match(c)) {
69
+ s *= 10 ** r[a];
70
+ break;
71
+ }
72
+ s *= (e.split("-").length + Math.min(e.split("(").length - 1, e.split(")").length - 1)) % 2 ? 1 : -1, e = e.replace(/[^0-9\.]+/g, ""), s *= Number(e);
73
+ }
74
+ return s;
75
+ },
76
+ isNaN: function(e) {
77
+ return typeof e == "number" && isNaN(e);
78
+ },
79
+ includes: function(e, t) {
80
+ return e.indexOf(t) !== -1;
81
+ },
82
+ insert: function(e, t, n) {
83
+ return e.slice(0, n) + t + e.slice(n);
84
+ },
85
+ reduce: function(e, t) {
86
+ if (this === null) throw TypeError("Array.prototype.reduce called on null or undefined");
87
+ if (typeof t != "function") throw TypeError(t + " is not a function");
88
+ var n = Object(e), r = n.length >>> 0, i = 0, a;
89
+ if (arguments.length === 3) a = arguments[2];
90
+ else {
91
+ for (; i < r && !(i in n);) i++;
92
+ if (i >= r) throw TypeError("Reduce of empty array with no initial value");
93
+ a = n[i++];
94
+ }
95
+ for (; i < r; i++) i in n && (a = t(a, n[i], i, n));
96
+ return a;
97
+ },
98
+ multiplier: function(e) {
99
+ var t = e.toString().split(".");
100
+ return t.length < 2 ? 1 : 10 ** t[1].length;
101
+ },
102
+ correctionFactor: function() {
103
+ return Array.prototype.slice.call(arguments).reduce(function(e, n) {
104
+ var r = t.multiplier(n);
105
+ return e > r ? e : r;
106
+ }, 1);
107
+ },
108
+ toFixed: function(e, t, n, r) {
109
+ var i = e.toString().split("."), a = t - (r || 0), o = i.length === 2 ? Math.min(Math.max(i[1].length, a), t) : a, s, c = 10 ** o, l = (n(e + "e+" + o) / c).toFixed(o);
110
+ return r > t - o && (s = RegExp("\\.?0{1," + (r - (t - o)) + "}$"), l = l.replace(s, "")), l;
111
+ }
112
+ }, e.options = o, e.formats = r, e.locales = i, e.locale = function(e) {
113
+ return e && (o.currentLocale = e.toLowerCase()), o.currentLocale;
114
+ }, e.localeData = function(e) {
115
+ if (!e) return i[o.currentLocale];
116
+ if (e = e.toLowerCase(), !i[e]) throw Error("Unknown locale : " + e);
117
+ return i[e];
118
+ }, e.reset = function() {
119
+ for (var e in a) o[e] = a[e];
120
+ }, e.zeroFormat = function(e) {
121
+ o.zeroFormat = typeof e == "string" ? e : null;
122
+ }, e.nullFormat = function(e) {
123
+ o.nullFormat = typeof e == "string" ? e : null;
124
+ }, e.defaultFormat = function(e) {
125
+ o.defaultFormat = typeof e == "string" ? e : "0.0";
126
+ }, e.register = function(e, t, n) {
127
+ if (t = t.toLowerCase(), this[e + "s"][t]) throw TypeError(t + " " + e + " already registered.");
128
+ return this[e + "s"][t] = n, n;
129
+ }, e.validate = function(t, n) {
130
+ var r, i, a, o, s, c, l, u;
131
+ if (typeof t != "string" && (t += "", console.warn && console.warn("Numeral.js: Value is not string. It has been co-erced to: ", t)), t = t.trim(), t.match(/^\d+$/)) return !0;
132
+ if (t === "") return !1;
133
+ try {
134
+ l = e.localeData(n);
135
+ } catch {
136
+ l = e.localeData(e.locale());
137
+ }
138
+ return a = l.currency.symbol, s = l.abbreviations, r = l.delimiters.decimal, i = l.delimiters.thousands === "." ? "\\." : l.delimiters.thousands, u = t.match(/^[^\d]+/), u !== null && (t = t.substr(1), u[0] !== a) || (u = t.match(/[^\d]+$/), u !== null && (t = t.slice(0, -1), u[0] !== s.thousand && u[0] !== s.million && u[0] !== s.billion && u[0] !== s.trillion)) ? !1 : (c = RegExp(i + "{2}"), t.match(/[^\d.,]/g) ? !1 : (o = t.split(r), o.length > 2 ? !1 : o.length < 2 ? !!o[0].match(/^\d+.*\d$/) && !o[0].match(c) : o[0].length === 1 ? !!o[0].match(/^\d+$/) && !o[0].match(c) && !!o[1].match(/^\d+$/) : !!o[0].match(/^\d+.*\d$/) && !o[0].match(c) && !!o[1].match(/^\d+$/)));
139
+ }, e.fn = s.prototype = {
140
+ clone: function() {
141
+ return e(this);
142
+ },
143
+ format: function(t, n) {
144
+ var i = this._value, a = t || o.defaultFormat, s, c, l;
145
+ if (n ||= Math.round, i === 0 && o.zeroFormat !== null) c = o.zeroFormat;
146
+ else if (i === null && o.nullFormat !== null) c = o.nullFormat;
147
+ else {
148
+ for (s in r) if (a.match(r[s].regexps.format)) {
149
+ l = r[s].format;
150
+ break;
151
+ }
152
+ l ||= e._.numberToFormat, c = l(i, a, n);
153
+ }
154
+ return c;
155
+ },
156
+ value: function() {
157
+ return this._value;
158
+ },
159
+ input: function() {
160
+ return this._input;
161
+ },
162
+ set: function(e) {
163
+ return this._value = Number(e), this;
164
+ },
165
+ add: function(e) {
166
+ var n = t.correctionFactor.call(null, this._value, e);
167
+ function r(e, t, r, i) {
168
+ return e + Math.round(n * t);
169
+ }
170
+ return this._value = t.reduce([this._value, e], r, 0) / n, this;
171
+ },
172
+ subtract: function(e) {
173
+ var n = t.correctionFactor.call(null, this._value, e);
174
+ function r(e, t, r, i) {
175
+ return e - Math.round(n * t);
176
+ }
177
+ return this._value = t.reduce([e], r, Math.round(this._value * n)) / n, this;
178
+ },
179
+ multiply: function(e) {
180
+ function n(e, n, r, i) {
181
+ var a = t.correctionFactor(e, n);
182
+ return Math.round(e * a) * Math.round(n * a) / Math.round(a * a);
183
+ }
184
+ return this._value = t.reduce([this._value, e], n, 1), this;
185
+ },
186
+ divide: function(e) {
187
+ function n(e, n, r, i) {
188
+ var a = t.correctionFactor(e, n);
189
+ return Math.round(e * a) / Math.round(n * a);
190
+ }
191
+ return this._value = t.reduce([this._value, e], n), this;
192
+ },
193
+ difference: function(t) {
194
+ return Math.abs(e(this._value).subtract(t).value());
195
+ }
196
+ }, e.register("locale", "en", {
197
+ delimiters: {
198
+ thousands: ",",
199
+ decimal: "."
200
+ },
201
+ abbreviations: {
202
+ thousand: "k",
203
+ million: "m",
204
+ billion: "b",
205
+ trillion: "t"
206
+ },
207
+ ordinal: function(e) {
208
+ var t = e % 10;
209
+ return ~~(e % 100 / 10) == 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
210
+ },
211
+ currency: { symbol: "$" }
212
+ }), (function() {
213
+ e.register("format", "bps", {
214
+ regexps: {
215
+ format: /(BPS)/,
216
+ unformat: /(BPS)/
217
+ },
218
+ format: function(t, n, r) {
219
+ var i = e._.includes(n, " BPS") ? " " : "", a;
220
+ return t *= 1e4, n = n.replace(/\s?BPS/, ""), a = e._.numberToFormat(t, n, r), e._.includes(a, ")") ? (a = a.split(""), a.splice(-1, 0, i + "BPS"), a = a.join("")) : a = a + i + "BPS", a;
221
+ },
222
+ unformat: function(t) {
223
+ return +(e._.stringToNumber(t) * 1e-4).toFixed(15);
224
+ }
225
+ });
226
+ })(), (function() {
227
+ var t = {
228
+ base: 1e3,
229
+ suffixes: [
230
+ "B",
231
+ "KB",
232
+ "MB",
233
+ "GB",
234
+ "TB",
235
+ "PB",
236
+ "EB",
237
+ "ZB",
238
+ "YB"
239
+ ]
240
+ }, n = {
241
+ base: 1024,
242
+ suffixes: [
243
+ "B",
244
+ "KiB",
245
+ "MiB",
246
+ "GiB",
247
+ "TiB",
248
+ "PiB",
249
+ "EiB",
250
+ "ZiB",
251
+ "YiB"
252
+ ]
253
+ }, r = t.suffixes.concat(n.suffixes.filter(function(e) {
254
+ return t.suffixes.indexOf(e) < 0;
255
+ })).join("|");
256
+ r = "(" + r.replace("B", "B(?!PS)") + ")", e.register("format", "bytes", {
257
+ regexps: {
258
+ format: /([0\s]i?b)/,
259
+ unformat: new RegExp(r)
260
+ },
261
+ format: function(r, i, a) {
262
+ var o, s = e._.includes(i, "ib") ? n : t, c = e._.includes(i, " b") || e._.includes(i, " ib") ? " " : "", l, u, d;
263
+ for (i = i.replace(/\s?i?b/, ""), l = 0; l <= s.suffixes.length; l++) if (u = s.base ** +l, d = s.base ** +(l + 1), r === null || r === 0 || r >= u && r < d) {
264
+ c += s.suffixes[l], u > 0 && (r /= u);
265
+ break;
266
+ }
267
+ return o = e._.numberToFormat(r, i, a), o + c;
268
+ },
269
+ unformat: function(r) {
270
+ var i = e._.stringToNumber(r), a, o;
271
+ if (i) {
272
+ for (a = t.suffixes.length - 1; a >= 0; a--) {
273
+ if (e._.includes(r, t.suffixes[a])) {
274
+ o = t.base ** +a;
275
+ break;
276
+ }
277
+ if (e._.includes(r, n.suffixes[a])) {
278
+ o = n.base ** +a;
279
+ break;
280
+ }
281
+ }
282
+ i *= o || 1;
283
+ }
284
+ return i;
285
+ }
286
+ });
287
+ })(), (function() {
288
+ e.register("format", "currency", {
289
+ regexps: { format: /(\$)/ },
290
+ format: function(t, n, r) {
291
+ var i = e.locales[e.options.currentLocale], a = {
292
+ before: n.match(/^([\+|\-|\(|\s|\$]*)/)[0],
293
+ after: n.match(/([\+|\-|\)|\s|\$]*)$/)[0]
294
+ }, o, s, c;
295
+ for (n = n.replace(/\s?\$\s?/, ""), o = e._.numberToFormat(t, n, r), t >= 0 ? (a.before = a.before.replace(/[\-\(]/, ""), a.after = a.after.replace(/[\-\)]/, "")) : t < 0 && !e._.includes(a.before, "-") && !e._.includes(a.before, "(") && (a.before = "-" + a.before), c = 0; c < a.before.length; c++) switch (s = a.before[c], s) {
296
+ case "$":
297
+ o = e._.insert(o, i.currency.symbol, c);
298
+ break;
299
+ case " ":
300
+ o = e._.insert(o, " ", c + i.currency.symbol.length - 1);
301
+ break;
302
+ }
303
+ for (c = a.after.length - 1; c >= 0; c--) switch (s = a.after[c], s) {
304
+ case "$":
305
+ o = c === a.after.length - 1 ? o + i.currency.symbol : e._.insert(o, i.currency.symbol, -(a.after.length - (1 + c)));
306
+ break;
307
+ case " ":
308
+ o = c === a.after.length - 1 ? o + " " : e._.insert(o, " ", -(a.after.length - (1 + c) + i.currency.symbol.length - 1));
309
+ break;
310
+ }
311
+ return o;
312
+ }
313
+ });
314
+ })(), (function() {
315
+ e.register("format", "exponential", {
316
+ regexps: {
317
+ format: /(e\+|e-)/,
318
+ unformat: /(e\+|e-)/
319
+ },
320
+ format: function(t, n, r) {
321
+ var i, a = (typeof t == "number" && !e._.isNaN(t) ? t.toExponential() : "0e+0").split("e");
322
+ return n = n.replace(/e[\+|\-]{1}0/, ""), i = e._.numberToFormat(Number(a[0]), n, r), i + "e" + a[1];
323
+ },
324
+ unformat: function(t) {
325
+ var n = e._.includes(t, "e+") ? t.split("e+") : t.split("e-"), r = Number(n[0]), i = Number(n[1]);
326
+ i = e._.includes(t, "e-") ? i *= -1 : i;
327
+ function a(t, n, r, i) {
328
+ var a = e._.correctionFactor(t, n);
329
+ return t * a * (n * a) / (a * a);
330
+ }
331
+ return e._.reduce([r, 10 ** i], a, 1);
332
+ }
333
+ });
334
+ })(), (function() {
335
+ e.register("format", "ordinal", {
336
+ regexps: { format: /(o)/ },
337
+ format: function(t, n, r) {
338
+ var i = e.locales[e.options.currentLocale], a, o = e._.includes(n, " o") ? " " : "";
339
+ return n = n.replace(/\s?o/, ""), o += i.ordinal(t), a = e._.numberToFormat(t, n, r), a + o;
340
+ }
341
+ });
342
+ })(), (function() {
343
+ e.register("format", "percentage", {
344
+ regexps: {
345
+ format: /(%)/,
346
+ unformat: /(%)/
347
+ },
348
+ format: function(t, n, r) {
349
+ var i = e._.includes(n, " %") ? " " : "", a;
350
+ return e.options.scalePercentBy100 && (t *= 100), n = n.replace(/\s?\%/, ""), a = e._.numberToFormat(t, n, r), e._.includes(a, ")") ? (a = a.split(""), a.splice(-1, 0, i + "%"), a = a.join("")) : a = a + i + "%", a;
351
+ },
352
+ unformat: function(t) {
353
+ var n = e._.stringToNumber(t);
354
+ return e.options.scalePercentBy100 ? n * .01 : n;
355
+ }
356
+ });
357
+ })(), (function() {
358
+ e.register("format", "time", {
359
+ regexps: {
360
+ format: /(:)/,
361
+ unformat: /(:)/
362
+ },
363
+ format: function(e, t, n) {
364
+ var r = Math.floor(e / 60 / 60), i = Math.floor((e - r * 60 * 60) / 60), a = Math.round(e - r * 60 * 60 - i * 60);
365
+ return r + ":" + (i < 10 ? "0" + i : i) + ":" + (a < 10 ? "0" + a : a);
366
+ },
367
+ unformat: function(e) {
368
+ var t = e.split(":"), n = 0;
369
+ return t.length === 3 ? (n += Number(t[0]) * 60 * 60, n += Number(t[1]) * 60, n += Number(t[2])) : t.length === 2 && (n += Number(t[0]) * 60, n += Number(t[1])), Number(n);
370
+ }
371
+ });
372
+ })(), e;
373
+ });
374
+ }));
375
+ //#endregion
376
+ export default t();
377
+ export { t as require_numeral };