@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,622 +1,527 @@
1
- var Ee = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, ce = Math.ceil, y = Math.floor, U = "[BigNumber Error] ", pe = U + "Number primitive has more than 15 significant digits: ", H = 1e14, N = 14, ae = 9007199254740991, he = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], J = 1e7, D = 1e9;
2
- function we(O) {
3
- var E, _, R, g = h.prototype = { constructor: h, toString: null, valueOf: null }, T = new h(1), x = 20, S = 4, C = -7, k = 21, Q = -1e7, z = 1e7, Z = !1, b = 1, Y = 0, te = {
4
- prefix: "",
5
- groupSize: 3,
6
- secondaryGroupSize: 0,
7
- groupSeparator: ",",
8
- decimalSeparator: ".",
9
- fractionGroupSize: 0,
10
- fractionGroupSeparator: " ",
11
- // non-breaking space
12
- suffix: ""
13
- }, K = "0123456789abcdefghijklmnopqrstuvwxyz", fe = !0;
14
- function h(e, r) {
15
- var i, s, t, l, c, n, f, u, o = this;
16
- if (!(o instanceof h)) return new h(e, r);
17
- if (r == null) {
18
- if (e && e._isBigNumber === !0) {
19
- o.s = e.s, !e.c || e.e > z ? o.c = o.e = null : e.e < Q ? o.c = [o.e = 0] : (o.e = e.e, o.c = e.c.slice());
20
- return;
21
- }
22
- if ((n = typeof e == "number") && e * 0 == 0) {
23
- if (o.s = 1 / e < 0 ? (e = -e, -1) : 1, e === ~~e) {
24
- for (l = 0, c = e; c >= 10; c /= 10, l++) ;
25
- l > z ? o.c = o.e = null : (o.e = l, o.c = [e]);
26
- return;
27
- }
28
- u = String(e);
29
- } else {
30
- if (!Ee.test(u = String(e))) return R(o, u, n);
31
- o.s = u.charCodeAt(0) == 45 ? (u = u.slice(1), -1) : 1;
32
- }
33
- (l = u.indexOf(".")) > -1 && (u = u.replace(".", "")), (c = u.search(/e/i)) > 0 ? (l < 0 && (l = c), l += +u.slice(c + 1), u = u.substring(0, c)) : l < 0 && (l = u.length);
34
- } else {
35
- if (v(r, 2, K.length, "Base"), r == 10 && fe)
36
- return o = new h(e), G(o, x + o.e + 1, S);
37
- if (u = String(e), n = typeof e == "number") {
38
- if (e * 0 != 0) return R(o, u, n, r);
39
- if (o.s = 1 / e < 0 ? (u = u.slice(1), -1) : 1, h.DEBUG && u.replace(/^0\.0*|\./, "").length > 15)
40
- throw Error(pe + e);
41
- } else
42
- o.s = u.charCodeAt(0) === 45 ? (u = u.slice(1), -1) : 1;
43
- for (i = K.slice(0, r), l = c = 0, f = u.length; c < f; c++)
44
- if (i.indexOf(s = u.charAt(c)) < 0) {
45
- if (s == ".") {
46
- if (c > l) {
47
- l = f;
48
- continue;
49
- }
50
- } else if (!t && (u == u.toUpperCase() && (u = u.toLowerCase()) || u == u.toLowerCase() && (u = u.toUpperCase()))) {
51
- t = !0, c = -1, l = 0;
52
- continue;
53
- }
54
- return R(o, String(e), n, r);
55
- }
56
- n = !1, u = _(u, r, 10, o.s), (l = u.indexOf(".")) > -1 ? u = u.replace(".", "") : l = u.length;
57
- }
58
- for (c = 0; u.charCodeAt(c) === 48; c++) ;
59
- for (f = u.length; u.charCodeAt(--f) === 48; ) ;
60
- if (u = u.slice(c, ++f)) {
61
- if (f -= c, n && h.DEBUG && f > 15 && (e > ae || e !== y(e)))
62
- throw Error(pe + o.s * e);
63
- if ((l = l - c - 1) > z)
64
- o.c = o.e = null;
65
- else if (l < Q)
66
- o.c = [o.e = 0];
67
- else {
68
- if (o.e = l, o.c = [], c = (l + 1) % N, l < 0 && (c += N), c < f) {
69
- for (c && o.c.push(+u.slice(0, c)), f -= N; c < f; )
70
- o.c.push(+u.slice(c, c += N));
71
- c = N - (u = u.slice(c)).length;
72
- } else
73
- c -= f;
74
- for (; c--; u += "0") ;
75
- o.c.push(+u);
76
- }
77
- } else
78
- o.c = [o.e = 0];
79
- }
80
- h.clone = we, h.ROUND_UP = 0, h.ROUND_DOWN = 1, h.ROUND_CEIL = 2, h.ROUND_FLOOR = 3, h.ROUND_HALF_UP = 4, h.ROUND_HALF_DOWN = 5, h.ROUND_HALF_EVEN = 6, h.ROUND_HALF_CEIL = 7, h.ROUND_HALF_FLOOR = 8, h.EUCLID = 9, h.config = h.set = function(e) {
81
- var r, i;
82
- if (e != null)
83
- if (typeof e == "object") {
84
- if (e.hasOwnProperty(r = "DECIMAL_PLACES") && (i = e[r], v(i, 0, D, r), x = i), e.hasOwnProperty(r = "ROUNDING_MODE") && (i = e[r], v(i, 0, 8, r), S = i), e.hasOwnProperty(r = "EXPONENTIAL_AT") && (i = e[r], i && i.pop ? (v(i[0], -D, 0, r), v(i[1], 0, D, r), C = i[0], k = i[1]) : (v(i, -D, D, r), C = -(k = i < 0 ? -i : i))), e.hasOwnProperty(r = "RANGE"))
85
- if (i = e[r], i && i.pop)
86
- v(i[0], -D, -1, r), v(i[1], 1, D, r), Q = i[0], z = i[1];
87
- else if (v(i, -D, D, r), i)
88
- Q = -(z = i < 0 ? -i : i);
89
- else
90
- throw Error(U + r + " cannot be zero: " + i);
91
- if (e.hasOwnProperty(r = "CRYPTO"))
92
- if (i = e[r], i === !!i)
93
- if (i)
94
- if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
95
- Z = i;
96
- else
97
- throw Z = !i, Error(U + "crypto unavailable");
98
- else
99
- Z = i;
100
- else
101
- throw Error(U + r + " not true or false: " + i);
102
- if (e.hasOwnProperty(r = "MODULO_MODE") && (i = e[r], v(i, 0, 9, r), b = i), e.hasOwnProperty(r = "POW_PRECISION") && (i = e[r], v(i, 0, D, r), Y = i), e.hasOwnProperty(r = "FORMAT"))
103
- if (i = e[r], typeof i == "object") te = i;
104
- else throw Error(U + r + " not an object: " + i);
105
- if (e.hasOwnProperty(r = "ALPHABET"))
106
- if (i = e[r], typeof i == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(i))
107
- fe = i.slice(0, 10) == "0123456789", K = i;
108
- else
109
- throw Error(U + r + " invalid: " + i);
110
- } else
111
- throw Error(U + "Object expected: " + e);
112
- return {
113
- DECIMAL_PLACES: x,
114
- ROUNDING_MODE: S,
115
- EXPONENTIAL_AT: [C, k],
116
- RANGE: [Q, z],
117
- CRYPTO: Z,
118
- MODULO_MODE: b,
119
- POW_PRECISION: Y,
120
- FORMAT: te,
121
- ALPHABET: K
122
- };
123
- }, h.isBigNumber = function(e) {
124
- if (!e || e._isBigNumber !== !0) return !1;
125
- if (!h.DEBUG) return !0;
126
- var r, i, s = e.c, t = e.e, l = e.s;
127
- e: if ({}.toString.call(s) == "[object Array]") {
128
- if ((l === 1 || l === -1) && t >= -D && t <= D && t === y(t)) {
129
- if (s[0] === 0) {
130
- if (t === 0 && s.length === 1) return !0;
131
- break e;
132
- }
133
- if (r = (t + 1) % N, r < 1 && (r += N), String(s[0]).length == r) {
134
- for (r = 0; r < s.length; r++)
135
- if (i = s[r], i < 0 || i >= H || i !== y(i)) break e;
136
- if (i !== 0) return !0;
137
- }
138
- }
139
- } else if (s === null && t === null && (l === null || l === 1 || l === -1))
140
- return !0;
141
- throw Error(U + "Invalid BigNumber: " + e);
142
- }, h.maximum = h.max = function() {
143
- return ge(arguments, -1);
144
- }, h.minimum = h.min = function() {
145
- return ge(arguments, 1);
146
- }, h.random = (function() {
147
- var e = 9007199254740992, r = Math.random() * e & 2097151 ? function() {
148
- return y(Math.random() * e);
149
- } : function() {
150
- return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
151
- };
152
- return function(i) {
153
- var s, t, l, c, n, f = 0, u = [], o = new h(T);
154
- if (i == null ? i = x : v(i, 0, D), c = ce(i / N), Z)
155
- if (crypto.getRandomValues) {
156
- for (s = crypto.getRandomValues(new Uint32Array(c *= 2)); f < c; )
157
- n = s[f] * 131072 + (s[f + 1] >>> 11), n >= 9e15 ? (t = crypto.getRandomValues(new Uint32Array(2)), s[f] = t[0], s[f + 1] = t[1]) : (u.push(n % 1e14), f += 2);
158
- f = c / 2;
159
- } else if (crypto.randomBytes) {
160
- for (s = crypto.randomBytes(c *= 7); f < c; )
161
- n = (s[f] & 31) * 281474976710656 + s[f + 1] * 1099511627776 + s[f + 2] * 4294967296 + s[f + 3] * 16777216 + (s[f + 4] << 16) + (s[f + 5] << 8) + s[f + 6], n >= 9e15 ? crypto.randomBytes(7).copy(s, f) : (u.push(n % 1e14), f += 7);
162
- f = c / 7;
163
- } else
164
- throw Z = !1, Error(U + "crypto unavailable");
165
- if (!Z)
166
- for (; f < c; )
167
- n = r(), n < 9e15 && (u[f++] = n % 1e14);
168
- for (c = u[--f], i %= N, c && i && (n = he[N - i], u[f] = y(c / n) * n); u[f] === 0; u.pop(), f--) ;
169
- if (f < 0)
170
- u = [l = 0];
171
- else {
172
- for (l = -1; u[0] === 0; u.splice(0, 1), l -= N) ;
173
- for (f = 1, n = u[0]; n >= 10; n /= 10, f++) ;
174
- f < N && (l -= N - f);
175
- }
176
- return o.e = l, o.c = u, o;
177
- };
178
- })(), h.sum = function() {
179
- for (var e = 1, r = arguments, i = new h(r[0]); e < r.length; ) i = i.plus(r[e++]);
180
- return i;
181
- }, _ = /* @__PURE__ */ (function() {
182
- var e = "0123456789";
183
- function r(i, s, t, l) {
184
- for (var c, n = [0], f, u = 0, o = i.length; u < o; ) {
185
- for (f = n.length; f--; n[f] *= s) ;
186
- for (n[0] += l.indexOf(i.charAt(u++)), c = 0; c < n.length; c++)
187
- n[c] > t - 1 && (n[c + 1] == null && (n[c + 1] = 0), n[c + 1] += n[c] / t | 0, n[c] %= t);
188
- }
189
- return n.reverse();
190
- }
191
- return function(i, s, t, l, c) {
192
- var n, f, u, o, a, p, w, A, B = i.indexOf("."), M = x, m = S;
193
- for (B >= 0 && (o = Y, Y = 0, i = i.replace(".", ""), A = new h(s), p = A.pow(i.length - B), Y = o, A.c = r(
194
- W(q(p.c), p.e, "0"),
195
- 10,
196
- t,
197
- e
198
- ), A.e = A.c.length), w = r(i, s, t, c ? (n = K, e) : (n = e, K)), u = o = w.length; w[--o] == 0; w.pop()) ;
199
- if (!w[0]) return n.charAt(0);
200
- if (B < 0 ? --u : (p.c = w, p.e = u, p.s = l, p = E(p, A, M, m, t), w = p.c, a = p.r, u = p.e), f = u + M + 1, B = w[f], o = t / 2, a = a || f < 0 || w[f + 1] != null, a = m < 4 ? (B != null || a) && (m == 0 || m == (p.s < 0 ? 3 : 2)) : B > o || B == o && (m == 4 || a || m == 6 && w[f - 1] & 1 || m == (p.s < 0 ? 8 : 7)), f < 1 || !w[0])
201
- i = a ? W(n.charAt(1), -M, n.charAt(0)) : n.charAt(0);
202
- else {
203
- if (w.length = f, a)
204
- for (--t; ++w[--f] > t; )
205
- w[f] = 0, f || (++u, w = [1].concat(w));
206
- for (o = w.length; !w[--o]; ) ;
207
- for (B = 0, i = ""; B <= o; i += n.charAt(w[B++])) ;
208
- i = W(i, u, n.charAt(0));
209
- }
210
- return i;
211
- };
212
- })(), E = /* @__PURE__ */ (function() {
213
- function e(s, t, l) {
214
- var c, n, f, u, o = 0, a = s.length, p = t % J, w = t / J | 0;
215
- for (s = s.slice(); a--; )
216
- f = s[a] % J, u = s[a] / J | 0, c = w * f + u * p, n = p * f + c % J * J + o, o = (n / l | 0) + (c / J | 0) + w * u, s[a] = n % l;
217
- return o && (s = [o].concat(s)), s;
218
- }
219
- function r(s, t, l, c) {
220
- var n, f;
221
- if (l != c)
222
- f = l > c ? 1 : -1;
223
- else
224
- for (n = f = 0; n < l; n++)
225
- if (s[n] != t[n]) {
226
- f = s[n] > t[n] ? 1 : -1;
227
- break;
228
- }
229
- return f;
230
- }
231
- function i(s, t, l, c) {
232
- for (var n = 0; l--; )
233
- s[l] -= n, n = s[l] < t[l] ? 1 : 0, s[l] = n * c + s[l] - t[l];
234
- for (; !s[0] && s.length > 1; s.splice(0, 1)) ;
235
- }
236
- return function(s, t, l, c, n) {
237
- var f, u, o, a, p, w, A, B, M, m, d, P, re, se, ue, X, ee, F = s.s == t.s ? 1 : -1, L = s.c, I = t.c;
238
- if (!L || !L[0] || !I || !I[0])
239
- return new h(
240
- // Return NaN if either NaN, or both Infinity or 0.
241
- !s.s || !t.s || (L ? I && L[0] == I[0] : !I) ? NaN : (
242
- // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
243
- L && L[0] == 0 || !I ? F * 0 : F / 0
244
- )
245
- );
246
- for (B = new h(F), M = B.c = [], u = s.e - t.e, F = l + u + 1, n || (n = H, u = $(s.e / N) - $(t.e / N), F = F / N | 0), o = 0; I[o] == (L[o] || 0); o++) ;
247
- if (I[o] > (L[o] || 0) && u--, F < 0)
248
- M.push(1), a = !0;
249
- else {
250
- for (se = L.length, X = I.length, o = 0, F += 2, p = y(n / (I[0] + 1)), p > 1 && (I = e(I, p, n), L = e(L, p, n), X = I.length, se = L.length), re = X, m = L.slice(0, X), d = m.length; d < X; m[d++] = 0) ;
251
- ee = I.slice(), ee = [0].concat(ee), ue = I[0], I[1] >= n / 2 && ue++;
252
- do {
253
- if (p = 0, f = r(I, m, X, d), f < 0) {
254
- if (P = m[0], X != d && (P = P * n + (m[1] || 0)), p = y(P / ue), p > 1)
255
- for (p >= n && (p = n - 1), w = e(I, p, n), A = w.length, d = m.length; r(w, m, A, d) == 1; )
256
- p--, i(w, X < A ? ee : I, A, n), A = w.length, f = 1;
257
- else
258
- p == 0 && (f = p = 1), w = I.slice(), A = w.length;
259
- if (A < d && (w = [0].concat(w)), i(m, w, d, n), d = m.length, f == -1)
260
- for (; r(I, m, X, d) < 1; )
261
- p++, i(m, X < d ? ee : I, d, n), d = m.length;
262
- } else f === 0 && (p++, m = [0]);
263
- M[o++] = p, m[0] ? m[d++] = L[re] || 0 : (m = [L[re]], d = 1);
264
- } while ((re++ < se || m[0] != null) && F--);
265
- a = m[0] != null, M[0] || M.splice(0, 1);
266
- }
267
- if (n == H) {
268
- for (o = 1, F = M[0]; F >= 10; F /= 10, o++) ;
269
- G(B, l + (B.e = o + u * N - 1) + 1, c, a);
270
- } else
271
- B.e = u, B.r = +a;
272
- return B;
273
- };
274
- })();
275
- function le(e, r, i, s) {
276
- var t, l, c, n, f;
277
- if (i == null ? i = S : v(i, 0, 8), !e.c) return e.toString();
278
- if (t = e.c[0], c = e.e, r == null)
279
- f = q(e.c), f = s == 1 || s == 2 && (c <= C || c >= k) ? ne(f, c) : W(f, c, "0");
280
- else if (e = G(new h(e), r, i), l = e.e, f = q(e.c), n = f.length, s == 1 || s == 2 && (r <= l || l <= C)) {
281
- for (; n < r; f += "0", n++) ;
282
- f = ne(f, l);
283
- } else if (r -= c, f = W(f, l, "0"), l + 1 > n) {
284
- if (--r > 0) for (f += "."; r--; f += "0") ;
285
- } else if (r += l - n, r > 0)
286
- for (l + 1 == n && (f += "."); r--; f += "0") ;
287
- return e.s < 0 && t ? "-" + f : f;
288
- }
289
- function ge(e, r) {
290
- for (var i, s, t = 1, l = new h(e[0]); t < e.length; t++)
291
- s = new h(e[t]), (!s.s || (i = j(l, s)) === r || i === 0 && l.s === r) && (l = s);
292
- return l;
293
- }
294
- function oe(e, r, i) {
295
- for (var s = 1, t = r.length; !r[--t]; r.pop()) ;
296
- for (t = r[0]; t >= 10; t /= 10, s++) ;
297
- return (i = s + i * N - 1) > z ? e.c = e.e = null : i < Q ? e.c = [e.e = 0] : (e.e = i, e.c = r), e;
298
- }
299
- R = /* @__PURE__ */ (function() {
300
- var e = /^(-?)0([xbo])(?=\w[\w.]*$)/i, r = /^([^.]+)\.$/, i = /^\.([^.]+)$/, s = /^-?(Infinity|NaN)$/, t = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
301
- return function(l, c, n, f) {
302
- var u, o = n ? c : c.replace(t, "");
303
- if (s.test(o))
304
- l.s = isNaN(o) ? null : o < 0 ? -1 : 1;
305
- else {
306
- if (!n && (o = o.replace(e, function(a, p, w) {
307
- return u = (w = w.toLowerCase()) == "x" ? 16 : w == "b" ? 2 : 8, !f || f == u ? p : a;
308
- }), f && (u = f, o = o.replace(r, "$1").replace(i, "0.$1")), c != o))
309
- return new h(o, u);
310
- if (h.DEBUG)
311
- throw Error(U + "Not a" + (f ? " base " + f : "") + " number: " + c);
312
- l.s = null;
313
- }
314
- l.c = l.e = null;
315
- };
316
- })();
317
- function G(e, r, i, s) {
318
- var t, l, c, n, f, u, o, a = e.c, p = he;
319
- if (a) {
320
- e: {
321
- for (t = 1, n = a[0]; n >= 10; n /= 10, t++) ;
322
- if (l = r - t, l < 0)
323
- l += N, c = r, f = a[u = 0], o = y(f / p[t - c - 1] % 10);
324
- else if (u = ce((l + 1) / N), u >= a.length)
325
- if (s) {
326
- for (; a.length <= u; a.push(0)) ;
327
- f = o = 0, t = 1, l %= N, c = l - N + 1;
328
- } else
329
- break e;
330
- else {
331
- for (f = n = a[u], t = 1; n >= 10; n /= 10, t++) ;
332
- l %= N, c = l - N + t, o = c < 0 ? 0 : y(f / p[t - c - 1] % 10);
333
- }
334
- if (s = s || r < 0 || // Are there any non-zero digits after the rounding digit?
335
- // The expression n % pows10[d - j - 1] returns all digits of n to the right
336
- // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
337
- a[u + 1] != null || (c < 0 ? f : f % p[t - c - 1]), s = i < 4 ? (o || s) && (i == 0 || i == (e.s < 0 ? 3 : 2)) : o > 5 || o == 5 && (i == 4 || s || i == 6 && // Check whether the digit to the left of the rounding digit is odd.
338
- (l > 0 ? c > 0 ? f / p[t - c] : 0 : a[u - 1]) % 10 & 1 || i == (e.s < 0 ? 8 : 7)), r < 1 || !a[0])
339
- return a.length = 0, s ? (r -= e.e + 1, a[0] = p[(N - r % N) % N], e.e = -r || 0) : a[0] = e.e = 0, e;
340
- if (l == 0 ? (a.length = u, n = 1, u--) : (a.length = u + 1, n = p[N - l], a[u] = c > 0 ? y(f / p[t - c] % p[c]) * n : 0), s)
341
- for (; ; )
342
- if (u == 0) {
343
- for (l = 1, c = a[0]; c >= 10; c /= 10, l++) ;
344
- for (c = a[0] += n, n = 1; c >= 10; c /= 10, n++) ;
345
- l != n && (e.e++, a[0] == H && (a[0] = 1));
346
- break;
347
- } else {
348
- if (a[u] += n, a[u] != H) break;
349
- a[u--] = 0, n = 1;
350
- }
351
- for (l = a.length; a[--l] === 0; a.pop()) ;
352
- }
353
- e.e > z ? e.c = e.e = null : e.e < Q && (e.c = [e.e = 0]);
354
- }
355
- return e;
356
- }
357
- function V(e) {
358
- var r, i = e.e;
359
- return i === null ? e.toString() : (r = q(e.c), r = i <= C || i >= k ? ne(r, i) : W(r, i, "0"), e.s < 0 ? "-" + r : r);
360
- }
361
- return g.absoluteValue = g.abs = function() {
362
- var e = new h(this);
363
- return e.s < 0 && (e.s = 1), e;
364
- }, g.comparedTo = function(e, r) {
365
- return j(this, new h(e, r));
366
- }, g.decimalPlaces = g.dp = function(e, r) {
367
- var i, s, t, l = this;
368
- if (e != null)
369
- return v(e, 0, D), r == null ? r = S : v(r, 0, 8), G(new h(l), e + l.e + 1, r);
370
- if (!(i = l.c)) return null;
371
- if (s = ((t = i.length - 1) - $(this.e / N)) * N, t = i[t]) for (; t % 10 == 0; t /= 10, s--) ;
372
- return s < 0 && (s = 0), s;
373
- }, g.dividedBy = g.div = function(e, r) {
374
- return E(this, new h(e, r), x, S);
375
- }, g.dividedToIntegerBy = g.idiv = function(e, r) {
376
- return E(this, new h(e, r), 0, 1);
377
- }, g.exponentiatedBy = g.pow = function(e, r) {
378
- var i, s, t, l, c, n, f, u, o, a = this;
379
- if (e = new h(e), e.c && !e.isInteger())
380
- throw Error(U + "Exponent not an integer: " + V(e));
381
- if (r != null && (r = new h(r)), n = e.e > 14, !a.c || !a.c[0] || a.c[0] == 1 && !a.e && a.c.length == 1 || !e.c || !e.c[0])
382
- return o = new h(Math.pow(+V(a), n ? e.s * (2 - ie(e)) : +V(e))), r ? o.mod(r) : o;
383
- if (f = e.s < 0, r) {
384
- if (r.c ? !r.c[0] : !r.s) return new h(NaN);
385
- s = !f && a.isInteger() && r.isInteger(), s && (a = a.mod(r));
386
- } else {
387
- if (e.e > 9 && (a.e > 0 || a.e < -1 || (a.e == 0 ? a.c[0] > 1 || n && a.c[1] >= 24e7 : a.c[0] < 8e13 || n && a.c[0] <= 9999975e7)))
388
- return l = a.s < 0 && ie(e) ? -0 : 0, a.e > -1 && (l = 1 / l), new h(f ? 1 / l : l);
389
- Y && (l = ce(Y / N + 2));
390
- }
391
- for (n ? (i = new h(0.5), f && (e.s = 1), u = ie(e)) : (t = Math.abs(+V(e)), u = t % 2), o = new h(T); ; ) {
392
- if (u) {
393
- if (o = o.times(a), !o.c) break;
394
- l ? o.c.length > l && (o.c.length = l) : s && (o = o.mod(r));
395
- }
396
- if (t) {
397
- if (t = y(t / 2), t === 0) break;
398
- u = t % 2;
399
- } else if (e = e.times(i), G(e, e.e + 1, 1), e.e > 14)
400
- u = ie(e);
401
- else {
402
- if (t = +V(e), t === 0) break;
403
- u = t % 2;
404
- }
405
- a = a.times(a), l ? a.c && a.c.length > l && (a.c.length = l) : s && (a = a.mod(r));
406
- }
407
- return s ? o : (f && (o = T.div(o)), r ? o.mod(r) : l ? G(o, Y, S, c) : o);
408
- }, g.integerValue = function(e) {
409
- var r = new h(this);
410
- return e == null ? e = S : v(e, 0, 8), G(r, r.e + 1, e);
411
- }, g.isEqualTo = g.eq = function(e, r) {
412
- return j(this, new h(e, r)) === 0;
413
- }, g.isFinite = function() {
414
- return !!this.c;
415
- }, g.isGreaterThan = g.gt = function(e, r) {
416
- return j(this, new h(e, r)) > 0;
417
- }, g.isGreaterThanOrEqualTo = g.gte = function(e, r) {
418
- return (r = j(this, new h(e, r))) === 1 || r === 0;
419
- }, g.isInteger = function() {
420
- return !!this.c && $(this.e / N) > this.c.length - 2;
421
- }, g.isLessThan = g.lt = function(e, r) {
422
- return j(this, new h(e, r)) < 0;
423
- }, g.isLessThanOrEqualTo = g.lte = function(e, r) {
424
- return (r = j(this, new h(e, r))) === -1 || r === 0;
425
- }, g.isNaN = function() {
426
- return !this.s;
427
- }, g.isNegative = function() {
428
- return this.s < 0;
429
- }, g.isPositive = function() {
430
- return this.s > 0;
431
- }, g.isZero = function() {
432
- return !!this.c && this.c[0] == 0;
433
- }, g.minus = function(e, r) {
434
- var i, s, t, l, c = this, n = c.s;
435
- if (e = new h(e, r), r = e.s, !n || !r) return new h(NaN);
436
- if (n != r)
437
- return e.s = -r, c.plus(e);
438
- var f = c.e / N, u = e.e / N, o = c.c, a = e.c;
439
- if (!f || !u) {
440
- if (!o || !a) return o ? (e.s = -r, e) : new h(a ? c : NaN);
441
- if (!o[0] || !a[0])
442
- return a[0] ? (e.s = -r, e) : new h(o[0] ? c : (
443
- // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
444
- S == 3 ? -0 : 0
445
- ));
446
- }
447
- if (f = $(f), u = $(u), o = o.slice(), n = f - u) {
448
- for ((l = n < 0) ? (n = -n, t = o) : (u = f, t = a), t.reverse(), r = n; r--; t.push(0)) ;
449
- t.reverse();
450
- } else
451
- for (s = (l = (n = o.length) < (r = a.length)) ? n : r, n = r = 0; r < s; r++)
452
- if (o[r] != a[r]) {
453
- l = o[r] < a[r];
454
- break;
455
- }
456
- if (l && (t = o, o = a, a = t, e.s = -e.s), r = (s = a.length) - (i = o.length), r > 0) for (; r--; o[i++] = 0) ;
457
- for (r = H - 1; s > n; ) {
458
- if (o[--s] < a[s]) {
459
- for (i = s; i && !o[--i]; o[i] = r) ;
460
- --o[i], o[s] += H;
461
- }
462
- o[s] -= a[s];
463
- }
464
- for (; o[0] == 0; o.splice(0, 1), --u) ;
465
- return o[0] ? oe(e, o, u) : (e.s = S == 3 ? -1 : 1, e.c = [e.e = 0], e);
466
- }, g.modulo = g.mod = function(e, r) {
467
- var i, s, t = this;
468
- return e = new h(e, r), !t.c || !e.s || e.c && !e.c[0] ? new h(NaN) : !e.c || t.c && !t.c[0] ? new h(t) : (b == 9 ? (s = e.s, e.s = 1, i = E(t, e, 0, 3), e.s = s, i.s *= s) : i = E(t, e, 0, b), e = t.minus(i.times(e)), !e.c[0] && b == 1 && (e.s = t.s), e);
469
- }, g.multipliedBy = g.times = function(e, r) {
470
- var i, s, t, l, c, n, f, u, o, a, p, w, A, B, M, m = this, d = m.c, P = (e = new h(e, r)).c;
471
- if (!d || !P || !d[0] || !P[0])
472
- return !m.s || !e.s || d && !d[0] && !P || P && !P[0] && !d ? e.c = e.e = e.s = null : (e.s *= m.s, !d || !P ? e.c = e.e = null : (e.c = [0], e.e = 0)), e;
473
- for (s = $(m.e / N) + $(e.e / N), e.s *= m.s, f = d.length, a = P.length, f < a && (A = d, d = P, P = A, t = f, f = a, a = t), t = f + a, A = []; t--; A.push(0)) ;
474
- for (B = H, M = J, t = a; --t >= 0; ) {
475
- for (i = 0, p = P[t] % M, w = P[t] / M | 0, c = f, l = t + c; l > t; )
476
- u = d[--c] % M, o = d[c] / M | 0, n = w * u + o * p, u = p * u + n % M * M + A[l] + i, i = (u / B | 0) + (n / M | 0) + w * o, A[l--] = u % B;
477
- A[l] = i;
478
- }
479
- return i ? ++s : A.splice(0, 1), oe(e, A, s);
480
- }, g.negated = function() {
481
- var e = new h(this);
482
- return e.s = -e.s || null, e;
483
- }, g.plus = function(e, r) {
484
- var i, s = this, t = s.s;
485
- if (e = new h(e, r), r = e.s, !t || !r) return new h(NaN);
486
- if (t != r)
487
- return e.s = -r, s.minus(e);
488
- var l = s.e / N, c = e.e / N, n = s.c, f = e.c;
489
- if (!l || !c) {
490
- if (!n || !f) return new h(t / 0);
491
- if (!n[0] || !f[0]) return f[0] ? e : new h(n[0] ? s : t * 0);
492
- }
493
- if (l = $(l), c = $(c), n = n.slice(), t = l - c) {
494
- for (t > 0 ? (c = l, i = f) : (t = -t, i = n), i.reverse(); t--; i.push(0)) ;
495
- i.reverse();
496
- }
497
- for (t = n.length, r = f.length, t - r < 0 && (i = f, f = n, n = i, r = t), t = 0; r; )
498
- t = (n[--r] = n[r] + f[r] + t) / H | 0, n[r] = H === n[r] ? 0 : n[r] % H;
499
- return t && (n = [t].concat(n), ++c), oe(e, n, c);
500
- }, g.precision = g.sd = function(e, r) {
501
- var i, s, t, l = this;
502
- if (e != null && e !== !!e)
503
- return v(e, 1, D), r == null ? r = S : v(r, 0, 8), G(new h(l), e, r);
504
- if (!(i = l.c)) return null;
505
- if (t = i.length - 1, s = t * N + 1, t = i[t]) {
506
- for (; t % 10 == 0; t /= 10, s--) ;
507
- for (t = i[0]; t >= 10; t /= 10, s++) ;
508
- }
509
- return e && l.e + 1 > s && (s = l.e + 1), s;
510
- }, g.shiftedBy = function(e) {
511
- return v(e, -ae, ae), this.times("1e" + e);
512
- }, g.squareRoot = g.sqrt = function() {
513
- var e, r, i, s, t, l = this, c = l.c, n = l.s, f = l.e, u = x + 4, o = new h("0.5");
514
- if (n !== 1 || !c || !c[0])
515
- return new h(!n || n < 0 && (!c || c[0]) ? NaN : c ? l : 1 / 0);
516
- if (n = Math.sqrt(+V(l)), n == 0 || n == 1 / 0 ? (r = q(c), (r.length + f) % 2 == 0 && (r += "0"), n = Math.sqrt(+r), f = $((f + 1) / 2) - (f < 0 || f % 2), n == 1 / 0 ? r = "5e" + f : (r = n.toExponential(), r = r.slice(0, r.indexOf("e") + 1) + f), i = new h(r)) : i = new h(n + ""), i.c[0]) {
517
- for (f = i.e, n = f + u, n < 3 && (n = 0); ; )
518
- if (t = i, i = o.times(t.plus(E(l, t, u, 1))), q(t.c).slice(0, n) === (r = q(i.c)).slice(0, n))
519
- if (i.e < f && --n, r = r.slice(n - 3, n + 1), r == "9999" || !s && r == "4999") {
520
- if (!s && (G(t, t.e + x + 2, 0), t.times(t).eq(l))) {
521
- i = t;
522
- break;
523
- }
524
- u += 4, n += 4, s = 1;
525
- } else {
526
- (!+r || !+r.slice(1) && r.charAt(0) == "5") && (G(i, i.e + x + 2, 1), e = !i.times(i).eq(l));
527
- break;
528
- }
529
- }
530
- return G(i, i.e + x + 1, S, e);
531
- }, g.toExponential = function(e, r) {
532
- return e != null && (v(e, 0, D), e++), le(this, e, r, 1);
533
- }, g.toFixed = function(e, r) {
534
- return e != null && (v(e, 0, D), e = e + this.e + 1), le(this, e, r);
535
- }, g.toFormat = function(e, r, i) {
536
- var s, t = this;
537
- if (i == null)
538
- e != null && r && typeof r == "object" ? (i = r, r = null) : e && typeof e == "object" ? (i = e, e = r = null) : i = te;
539
- else if (typeof i != "object")
540
- throw Error(U + "Argument not an object: " + i);
541
- if (s = t.toFixed(e, r), t.c) {
542
- var l, c = s.split("."), n = +i.groupSize, f = +i.secondaryGroupSize, u = i.groupSeparator || "", o = c[0], a = c[1], p = t.s < 0, w = p ? o.slice(1) : o, A = w.length;
543
- if (f && (l = n, n = f, f = l, A -= l), n > 0 && A > 0) {
544
- for (l = A % n || n, o = w.substr(0, l); l < A; l += n) o += u + w.substr(l, n);
545
- f > 0 && (o += u + w.slice(l)), p && (o = "-" + o);
546
- }
547
- s = a ? o + (i.decimalSeparator || "") + ((f = +i.fractionGroupSize) ? a.replace(
548
- new RegExp("\\d{" + f + "}\\B", "g"),
549
- "$&" + (i.fractionGroupSeparator || "")
550
- ) : a) : o;
551
- }
552
- return (i.prefix || "") + s + (i.suffix || "");
553
- }, g.toFraction = function(e) {
554
- var r, i, s, t, l, c, n, f, u, o, a, p, w = this, A = w.c;
555
- if (e != null && (n = new h(e), !n.isInteger() && (n.c || n.s !== 1) || n.lt(T)))
556
- throw Error(U + "Argument " + (n.isInteger() ? "out of range: " : "not an integer: ") + V(n));
557
- if (!A) return new h(w);
558
- for (r = new h(T), u = i = new h(T), s = f = new h(T), p = q(A), l = r.e = p.length - w.e - 1, r.c[0] = he[(c = l % N) < 0 ? N + c : c], e = !e || n.comparedTo(r) > 0 ? l > 0 ? r : u : n, c = z, z = 1 / 0, n = new h(p), f.c[0] = 0; o = E(n, r, 0, 1), t = i.plus(o.times(s)), t.comparedTo(e) != 1; )
559
- i = s, s = t, u = f.plus(o.times(t = u)), f = t, r = n.minus(o.times(t = r)), n = t;
560
- return t = E(e.minus(i), s, 0, 1), f = f.plus(t.times(u)), i = i.plus(t.times(s)), f.s = u.s = w.s, l = l * 2, a = E(u, s, l, S).minus(w).abs().comparedTo(
561
- E(f, i, l, S).minus(w).abs()
562
- ) < 1 ? [u, s] : [f, i], z = c, a;
563
- }, g.toNumber = function() {
564
- return +V(this);
565
- }, g.toPrecision = function(e, r) {
566
- return e != null && v(e, 1, D), le(this, e, r, 2);
567
- }, g.toString = function(e) {
568
- var r, i = this, s = i.s, t = i.e;
569
- return t === null ? s ? (r = "Infinity", s < 0 && (r = "-" + r)) : r = "NaN" : (e == null ? r = t <= C || t >= k ? ne(q(i.c), t) : W(q(i.c), t, "0") : e === 10 && fe ? (i = G(new h(i), x + t + 1, S), r = W(q(i.c), i.e, "0")) : (v(e, 2, K.length, "Base"), r = _(W(q(i.c), t, "0"), 10, e, s, !0)), s < 0 && i.c[0] && (r = "-" + r)), r;
570
- }, g.valueOf = g.toJSON = function() {
571
- return V(this);
572
- }, g._isBigNumber = !0, g[Symbol.toStringTag] = "BigNumber", g[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = g.valueOf, O != null && h.set(O), h;
1
+ //#region node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.mjs
2
+ var e = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, t = Math.ceil, n = Math.floor, r = "[BigNumber Error] ", i = r + "Number primitive has more than 15 significant digits: ", a = 0x5af3107a4000, o = 14, s = 9007199254740991, c = [
3
+ 1,
4
+ 10,
5
+ 100,
6
+ 1e3,
7
+ 1e4,
8
+ 1e5,
9
+ 1e6,
10
+ 1e7,
11
+ 1e8,
12
+ 1e9,
13
+ 1e10,
14
+ 1e11,
15
+ 0xe8d4a51000,
16
+ 0x9184e72a000
17
+ ], l = 1e7, u = 1e9;
18
+ function d(y) {
19
+ var b, x, S, C = L.prototype = {
20
+ constructor: L,
21
+ toString: null,
22
+ valueOf: null
23
+ }, w = new L(1), T = 20, E = 4, D = -7, O = 21, k = -1e7, A = 1e7, j = !1, M = 1, N = 0, P = {
24
+ prefix: "",
25
+ groupSize: 3,
26
+ secondaryGroupSize: 0,
27
+ groupSeparator: ",",
28
+ decimalSeparator: ".",
29
+ fractionGroupSize: 0,
30
+ fractionGroupSeparator: "\xA0",
31
+ suffix: ""
32
+ }, F = "0123456789abcdefghijklmnopqrstuvwxyz", I = !0;
33
+ function L(t, r) {
34
+ var a, c, l, u, d, f, p, m, g = this;
35
+ if (!(g instanceof L)) return new L(t, r);
36
+ if (r == null) {
37
+ if (t && t._isBigNumber === !0) {
38
+ g.s = t.s, !t.c || t.e > A ? g.c = g.e = null : t.e < k ? g.c = [g.e = 0] : (g.e = t.e, g.c = t.c.slice());
39
+ return;
40
+ }
41
+ if ((f = typeof t == "number") && t * 0 == 0) {
42
+ if (g.s = 1 / t < 0 ? (t = -t, -1) : 1, t === ~~t) {
43
+ for (u = 0, d = t; d >= 10; d /= 10, u++);
44
+ u > A ? g.c = g.e = null : (g.e = u, g.c = [t]);
45
+ return;
46
+ }
47
+ m = String(t);
48
+ } else {
49
+ if (!e.test(m = String(t))) return S(g, m, f);
50
+ g.s = m.charCodeAt(0) == 45 ? (m = m.slice(1), -1) : 1;
51
+ }
52
+ (u = m.indexOf(".")) > -1 && (m = m.replace(".", "")), (d = m.search(/e/i)) > 0 ? (u < 0 && (u = d), u += +m.slice(d + 1), m = m.substring(0, d)) : u < 0 && (u = m.length);
53
+ } else {
54
+ if (h(r, 2, F.length, "Base"), r == 10 && I) return g = new L(t), V(g, T + g.e + 1, E);
55
+ if (m = String(t), f = typeof t == "number") {
56
+ if (t * 0 != 0) return S(g, m, f, r);
57
+ if (g.s = 1 / t < 0 ? (m = m.slice(1), -1) : 1, L.DEBUG && m.replace(/^0\.0*|\./, "").length > 15) throw Error(i + t);
58
+ } else g.s = m.charCodeAt(0) === 45 ? (m = m.slice(1), -1) : 1;
59
+ for (a = F.slice(0, r), u = d = 0, p = m.length; d < p; d++) if (a.indexOf(c = m.charAt(d)) < 0) {
60
+ if (c == ".") {
61
+ if (d > u) {
62
+ u = p;
63
+ continue;
64
+ }
65
+ } else if (!l && (m == m.toUpperCase() && (m = m.toLowerCase()) || m == m.toLowerCase() && (m = m.toUpperCase()))) {
66
+ l = !0, d = -1, u = 0;
67
+ continue;
68
+ }
69
+ return S(g, String(t), f, r);
70
+ }
71
+ f = !1, m = x(m, r, 10, g.s), (u = m.indexOf(".")) > -1 ? m = m.replace(".", "") : u = m.length;
72
+ }
73
+ for (d = 0; m.charCodeAt(d) === 48; d++);
74
+ for (p = m.length; m.charCodeAt(--p) === 48;);
75
+ if (m = m.slice(d, ++p)) {
76
+ if (p -= d, f && L.DEBUG && p > 15 && (t > s || t !== n(t))) throw Error(i + g.s * t);
77
+ if ((u = u - d - 1) > A) g.c = g.e = null;
78
+ else if (u < k) g.c = [g.e = 0];
79
+ else {
80
+ if (g.e = u, g.c = [], d = (u + 1) % o, u < 0 && (d += o), d < p) {
81
+ for (d && g.c.push(+m.slice(0, d)), p -= o; d < p;) g.c.push(+m.slice(d, d += o));
82
+ d = o - (m = m.slice(d)).length;
83
+ } else d -= p;
84
+ for (; d--; m += "0");
85
+ g.c.push(+m);
86
+ }
87
+ } else g.c = [g.e = 0];
88
+ }
89
+ L.clone = d, L.ROUND_UP = 0, L.ROUND_DOWN = 1, L.ROUND_CEIL = 2, L.ROUND_FLOOR = 3, L.ROUND_HALF_UP = 4, L.ROUND_HALF_DOWN = 5, L.ROUND_HALF_EVEN = 6, L.ROUND_HALF_CEIL = 7, L.ROUND_HALF_FLOOR = 8, L.EUCLID = 9, L.config = L.set = function(e) {
90
+ var t, n;
91
+ if (e != null) if (typeof e == "object") {
92
+ if (e.hasOwnProperty(t = "DECIMAL_PLACES") && (n = e[t], h(n, 0, u, t), T = n), e.hasOwnProperty(t = "ROUNDING_MODE") && (n = e[t], h(n, 0, 8, t), E = n), e.hasOwnProperty(t = "EXPONENTIAL_AT") && (n = e[t], n && n.pop ? (h(n[0], -u, 0, t), h(n[1], 0, u, t), D = n[0], O = n[1]) : (h(n, -u, u, t), D = -(O = n < 0 ? -n : n))), e.hasOwnProperty(t = "RANGE")) if (n = e[t], n && n.pop) h(n[0], -u, -1, t), h(n[1], 1, u, t), k = n[0], A = n[1];
93
+ else if (h(n, -u, u, t), n) k = -(A = n < 0 ? -n : n);
94
+ else throw Error(r + t + " cannot be zero: " + n);
95
+ if (e.hasOwnProperty(t = "CRYPTO")) if (n = e[t], n === !!n) if (n) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) j = n;
96
+ else throw j = !n, Error(r + "crypto unavailable");
97
+ else j = n;
98
+ else throw Error(r + t + " not true or false: " + n);
99
+ if (e.hasOwnProperty(t = "MODULO_MODE") && (n = e[t], h(n, 0, 9, t), M = n), e.hasOwnProperty(t = "POW_PRECISION") && (n = e[t], h(n, 0, u, t), N = n), e.hasOwnProperty(t = "FORMAT")) if (n = e[t], typeof n == "object") P = n;
100
+ else throw Error(r + t + " not an object: " + n);
101
+ if (e.hasOwnProperty(t = "ALPHABET")) if (n = e[t], typeof n == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(n)) I = n.slice(0, 10) == "0123456789", F = n;
102
+ else throw Error(r + t + " invalid: " + n);
103
+ } else throw Error(r + "Object expected: " + e);
104
+ return {
105
+ DECIMAL_PLACES: T,
106
+ ROUNDING_MODE: E,
107
+ EXPONENTIAL_AT: [D, O],
108
+ RANGE: [k, A],
109
+ CRYPTO: j,
110
+ MODULO_MODE: M,
111
+ POW_PRECISION: N,
112
+ FORMAT: P,
113
+ ALPHABET: F
114
+ };
115
+ }, L.isBigNumber = function(e) {
116
+ if (!e || e._isBigNumber !== !0) return !1;
117
+ if (!L.DEBUG) return !0;
118
+ var t, i, s = e.c, c = e.e, l = e.s;
119
+ out: if ({}.toString.call(s) == "[object Array]") {
120
+ if ((l === 1 || l === -1) && c >= -u && c <= u && c === n(c)) {
121
+ if (s[0] === 0) {
122
+ if (c === 0 && s.length === 1) return !0;
123
+ break out;
124
+ }
125
+ if (t = (c + 1) % o, t < 1 && (t += o), String(s[0]).length == t) {
126
+ for (t = 0; t < s.length; t++) if (i = s[t], i < 0 || i >= a || i !== n(i)) break out;
127
+ if (i !== 0) return !0;
128
+ }
129
+ }
130
+ } else if (s === null && c === null && (l === null || l === 1 || l === -1)) return !0;
131
+ throw Error(r + "Invalid BigNumber: " + e);
132
+ }, L.maximum = L.max = function() {
133
+ return z(arguments, -1);
134
+ }, L.minimum = L.min = function() {
135
+ return z(arguments, 1);
136
+ }, L.random = (function() {
137
+ var e = 9007199254740992, i = Math.random() * e & 2097151 ? function() {
138
+ return n(Math.random() * e);
139
+ } : function() {
140
+ return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
141
+ };
142
+ return function(e) {
143
+ var a, s, l, d, f, p = 0, m = [], g = new L(w);
144
+ if (e == null ? e = T : h(e, 0, u), d = t(e / o), j) if (crypto.getRandomValues) {
145
+ for (a = crypto.getRandomValues(new Uint32Array(d *= 2)); p < d;) f = a[p] * 131072 + (a[p + 1] >>> 11), f >= 9e15 ? (s = crypto.getRandomValues(new Uint32Array(2)), a[p] = s[0], a[p + 1] = s[1]) : (m.push(f % 0x5af3107a4000), p += 2);
146
+ p = d / 2;
147
+ } else if (crypto.randomBytes) {
148
+ for (a = crypto.randomBytes(d *= 7); p < d;) f = (a[p] & 31) * 281474976710656 + a[p + 1] * 1099511627776 + a[p + 2] * 4294967296 + a[p + 3] * 16777216 + (a[p + 4] << 16) + (a[p + 5] << 8) + a[p + 6], f >= 9e15 ? crypto.randomBytes(7).copy(a, p) : (m.push(f % 0x5af3107a4000), p += 7);
149
+ p = d / 7;
150
+ } else throw j = !1, Error(r + "crypto unavailable");
151
+ if (!j) for (; p < d;) f = i(), f < 9e15 && (m[p++] = f % 0x5af3107a4000);
152
+ for (d = m[--p], e %= o, d && e && (f = c[o - e], m[p] = n(d / f) * f); m[p] === 0; m.pop(), p--);
153
+ if (p < 0) m = [l = 0];
154
+ else {
155
+ for (l = -1; m[0] === 0; m.splice(0, 1), l -= o);
156
+ for (p = 1, f = m[0]; f >= 10; f /= 10, p++);
157
+ p < o && (l -= o - p);
158
+ }
159
+ return g.e = l, g.c = m, g;
160
+ };
161
+ })(), L.sum = function() {
162
+ for (var e = 1, t = arguments, n = new L(t[0]); e < t.length;) n = n.plus(t[e++]);
163
+ return n;
164
+ }, x = (function() {
165
+ var e = "0123456789";
166
+ function t(e, t, n, r) {
167
+ for (var i, a = [0], o, s = 0, c = e.length; s < c;) {
168
+ for (o = a.length; o--; a[o] *= t);
169
+ for (a[0] += r.indexOf(e.charAt(s++)), i = 0; i < a.length; i++) a[i] > n - 1 && (a[i + 1] ?? (a[i + 1] = 0), a[i + 1] += a[i] / n | 0, a[i] %= n);
170
+ }
171
+ return a.reverse();
172
+ }
173
+ return function(n, r, i, a, o) {
174
+ var s, c, l, u, d, f, m, h, g = n.indexOf("."), _ = T, y = E;
175
+ for (g >= 0 && (u = N, N = 0, n = n.replace(".", ""), h = new L(r), f = h.pow(n.length - g), N = u, h.c = t(v(p(f.c), f.e, "0"), 10, i, e), h.e = h.c.length), m = t(n, r, i, o ? (s = F, e) : (s = e, F)), l = u = m.length; m[--u] == 0; m.pop());
176
+ if (!m[0]) return s.charAt(0);
177
+ if (g < 0 ? --l : (f.c = m, f.e = l, f.s = a, f = b(f, h, _, y, i), m = f.c, d = f.r, l = f.e), c = l + _ + 1, g = m[c], u = i / 2, d = d || c < 0 || m[c + 1] != null, d = y < 4 ? (g != null || d) && (y == 0 || y == (f.s < 0 ? 3 : 2)) : g > u || g == u && (y == 4 || d || y == 6 && m[c - 1] & 1 || y == (f.s < 0 ? 8 : 7)), c < 1 || !m[0]) n = d ? v(s.charAt(1), -_, s.charAt(0)) : s.charAt(0);
178
+ else {
179
+ if (m.length = c, d) for (--i; ++m[--c] > i;) m[c] = 0, c || (++l, m = [1].concat(m));
180
+ for (u = m.length; !m[--u];);
181
+ for (g = 0, n = ""; g <= u; n += s.charAt(m[g++]));
182
+ n = v(n, l, s.charAt(0));
183
+ }
184
+ return n;
185
+ };
186
+ })(), b = (function() {
187
+ function e(e, t, n) {
188
+ var r, i, a, o, s = 0, c = e.length, u = t % l, d = t / l | 0;
189
+ for (e = e.slice(); c--;) a = e[c] % l, o = e[c] / l | 0, r = d * a + o * u, i = u * a + r % l * l + s, s = (i / n | 0) + (r / l | 0) + d * o, e[c] = i % n;
190
+ return s && (e = [s].concat(e)), e;
191
+ }
192
+ function t(e, t, n, r) {
193
+ var i, a;
194
+ if (n != r) a = n > r ? 1 : -1;
195
+ else for (i = a = 0; i < n; i++) if (e[i] != t[i]) {
196
+ a = e[i] > t[i] ? 1 : -1;
197
+ break;
198
+ }
199
+ return a;
200
+ }
201
+ function r(e, t, n, r) {
202
+ for (var i = 0; n--;) e[n] -= i, i = e[n] < t[n] ? 1 : 0, e[n] = i * r + e[n] - t[n];
203
+ for (; !e[0] && e.length > 1; e.splice(0, 1));
204
+ }
205
+ return function(i, s, c, l, u) {
206
+ var d, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k = i.s == s.s ? 1 : -1, A = i.c, j = s.c;
207
+ if (!A || !A[0] || !j || !j[0]) return new L(!i.s || !s.s || (A ? j && A[0] == j[0] : !j) ? NaN : A && A[0] == 0 || !j ? k * 0 : k / 0);
208
+ for (y = new L(k), b = y.c = [], p = i.e - s.e, k = c + p + 1, u || (u = a, p = f(i.e / o) - f(s.e / o), k = k / o | 0), m = 0; j[m] == (A[m] || 0); m++);
209
+ if (j[m] > (A[m] || 0) && p--, k < 0) b.push(1), h = !0;
210
+ else {
211
+ for (T = A.length, D = j.length, m = 0, k += 2, g = n(u / (j[0] + 1)), g > 1 && (j = e(j, g, u), A = e(A, g, u), D = j.length, T = A.length), w = D, x = A.slice(0, D), S = x.length; S < D; x[S++] = 0);
212
+ O = j.slice(), O = [0].concat(O), E = j[0], j[1] >= u / 2 && E++;
213
+ do {
214
+ if (g = 0, d = t(j, x, D, S), d < 0) {
215
+ if (C = x[0], D != S && (C = C * u + (x[1] || 0)), g = n(C / E), g > 1) for (g >= u && (g = u - 1), _ = e(j, g, u), v = _.length, S = x.length; t(_, x, v, S) == 1;) g--, r(_, D < v ? O : j, v, u), v = _.length, d = 1;
216
+ else g == 0 && (d = g = 1), _ = j.slice(), v = _.length;
217
+ if (v < S && (_ = [0].concat(_)), r(x, _, S, u), S = x.length, d == -1) for (; t(j, x, D, S) < 1;) g++, r(x, D < S ? O : j, S, u), S = x.length;
218
+ } else d === 0 && (g++, x = [0]);
219
+ b[m++] = g, x[0] ? x[S++] = A[w] || 0 : (x = [A[w]], S = 1);
220
+ } while ((w++ < T || x[0] != null) && k--);
221
+ h = x[0] != null, b[0] || b.splice(0, 1);
222
+ }
223
+ if (u == a) {
224
+ for (m = 1, k = b[0]; k >= 10; k /= 10, m++);
225
+ V(y, c + (y.e = m + p * o - 1) + 1, l, h);
226
+ } else y.e = p, y.r = +h;
227
+ return y;
228
+ };
229
+ })();
230
+ function R(e, t, n, r) {
231
+ var i, a, o, s, c;
232
+ if (n == null ? n = E : h(n, 0, 8), !e.c) return e.toString();
233
+ if (i = e.c[0], o = e.e, t == null) c = p(e.c), c = r == 1 || r == 2 && (o <= D || o >= O) ? _(c, o) : v(c, o, "0");
234
+ else if (e = V(new L(e), t, n), a = e.e, c = p(e.c), s = c.length, r == 1 || r == 2 && (t <= a || a <= D)) {
235
+ for (; s < t; c += "0", s++);
236
+ c = _(c, a);
237
+ } else if (t -= o, c = v(c, a, "0"), a + 1 > s) {
238
+ if (--t > 0) for (c += "."; t--; c += "0");
239
+ } else if (t += a - s, t > 0) for (a + 1 == s && (c += "."); t--; c += "0");
240
+ return e.s < 0 && i ? "-" + c : c;
241
+ }
242
+ function z(e, t) {
243
+ for (var n, r, i = 1, a = new L(e[0]); i < e.length; i++) r = new L(e[i]), (!r.s || (n = m(a, r)) === t || n === 0 && a.s === t) && (a = r);
244
+ return a;
245
+ }
246
+ function B(e, t, n) {
247
+ for (var r = 1, i = t.length; !t[--i]; t.pop());
248
+ for (i = t[0]; i >= 10; i /= 10, r++);
249
+ return (n = r + n * o - 1) > A ? e.c = e.e = null : n < k ? e.c = [e.e = 0] : (e.e = n, e.c = t), e;
250
+ }
251
+ S = (function() {
252
+ var e = /^(-?)0([xbo])(?=\w[\w.]*$)/i, t = /^([^.]+)\.$/, n = /^\.([^.]+)$/, i = /^-?(Infinity|NaN)$/, a = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
253
+ return function(o, s, c, l) {
254
+ var u, d = c ? s : s.replace(a, "");
255
+ if (i.test(d)) o.s = isNaN(d) ? null : d < 0 ? -1 : 1;
256
+ else {
257
+ if (!c && (d = d.replace(e, function(e, t, n) {
258
+ return u = (n = n.toLowerCase()) == "x" ? 16 : n == "b" ? 2 : 8, !l || l == u ? t : e;
259
+ }), l && (u = l, d = d.replace(t, "$1").replace(n, "0.$1")), s != d)) return new L(d, u);
260
+ if (L.DEBUG) throw Error(r + "Not a" + (l ? " base " + l : "") + " number: " + s);
261
+ o.s = null;
262
+ }
263
+ o.c = o.e = null;
264
+ };
265
+ })();
266
+ function V(e, r, i, s) {
267
+ var l, u, d, f, p, m, h, g = e.c, _ = c;
268
+ if (g) {
269
+ out: {
270
+ for (l = 1, f = g[0]; f >= 10; f /= 10, l++);
271
+ if (u = r - l, u < 0) u += o, d = r, p = g[m = 0], h = n(p / _[l - d - 1] % 10);
272
+ else if (m = t((u + 1) / o), m >= g.length) if (s) {
273
+ for (; g.length <= m; g.push(0));
274
+ p = h = 0, l = 1, u %= o, d = u - o + 1;
275
+ } else break out;
276
+ else {
277
+ for (p = f = g[m], l = 1; f >= 10; f /= 10, l++);
278
+ u %= o, d = u - o + l, h = d < 0 ? 0 : n(p / _[l - d - 1] % 10);
279
+ }
280
+ if (s = s || r < 0 || g[m + 1] != null || (d < 0 ? p : p % _[l - d - 1]), s = i < 4 ? (h || s) && (i == 0 || i == (e.s < 0 ? 3 : 2)) : h > 5 || h == 5 && (i == 4 || s || i == 6 && (u > 0 ? d > 0 ? p / _[l - d] : 0 : g[m - 1]) % 10 & 1 || i == (e.s < 0 ? 8 : 7)), r < 1 || !g[0]) return g.length = 0, s ? (r -= e.e + 1, g[0] = _[(o - r % o) % o], e.e = -r || 0) : g[0] = e.e = 0, e;
281
+ if (u == 0 ? (g.length = m, f = 1, m--) : (g.length = m + 1, f = _[o - u], g[m] = d > 0 ? n(p / _[l - d] % _[d]) * f : 0), s) for (;;) if (m == 0) {
282
+ for (u = 1, d = g[0]; d >= 10; d /= 10, u++);
283
+ for (d = g[0] += f, f = 1; d >= 10; d /= 10, f++);
284
+ u != f && (e.e++, g[0] == a && (g[0] = 1));
285
+ break;
286
+ } else {
287
+ if (g[m] += f, g[m] != a) break;
288
+ g[m--] = 0, f = 1;
289
+ }
290
+ for (u = g.length; g[--u] === 0; g.pop());
291
+ }
292
+ e.e > A ? e.c = e.e = null : e.e < k && (e.c = [e.e = 0]);
293
+ }
294
+ return e;
295
+ }
296
+ function H(e) {
297
+ var t, n = e.e;
298
+ return n === null ? e.toString() : (t = p(e.c), t = n <= D || n >= O ? _(t, n) : v(t, n, "0"), e.s < 0 ? "-" + t : t);
299
+ }
300
+ return C.absoluteValue = C.abs = function() {
301
+ var e = new L(this);
302
+ return e.s < 0 && (e.s = 1), e;
303
+ }, C.comparedTo = function(e, t) {
304
+ return m(this, new L(e, t));
305
+ }, C.decimalPlaces = C.dp = function(e, t) {
306
+ var n, r, i, a = this;
307
+ if (e != null) return h(e, 0, u), t == null ? t = E : h(t, 0, 8), V(new L(a), e + a.e + 1, t);
308
+ if (!(n = a.c)) return null;
309
+ if (r = ((i = n.length - 1) - f(this.e / o)) * o, i = n[i]) for (; i % 10 == 0; i /= 10, r--);
310
+ return r < 0 && (r = 0), r;
311
+ }, C.dividedBy = C.div = function(e, t) {
312
+ return b(this, new L(e, t), T, E);
313
+ }, C.dividedToIntegerBy = C.idiv = function(e, t) {
314
+ return b(this, new L(e, t), 0, 1);
315
+ }, C.exponentiatedBy = C.pow = function(e, i) {
316
+ var a, s, c, l, u, d, f, p, m, h = this;
317
+ if (e = new L(e), e.c && !e.isInteger()) throw Error(r + "Exponent not an integer: " + H(e));
318
+ if (i != null && (i = new L(i)), d = e.e > 14, !h.c || !h.c[0] || h.c[0] == 1 && !h.e && h.c.length == 1 || !e.c || !e.c[0]) return m = new L(H(h) ** (d ? e.s * (2 - g(e)) : +H(e))), i ? m.mod(i) : m;
319
+ if (f = e.s < 0, i) {
320
+ if (i.c ? !i.c[0] : !i.s) return new L(NaN);
321
+ s = !f && h.isInteger() && i.isInteger(), s && (h = h.mod(i));
322
+ } else if (e.e > 9 && (h.e > 0 || h.e < -1 || (h.e == 0 ? h.c[0] > 1 || d && h.c[1] >= 24e7 : h.c[0] < 8e13 || d && h.c[0] <= 9999975e7))) return l = h.s < 0 && g(e) ? -0 : 0, h.e > -1 && (l = 1 / l), new L(f ? 1 / l : l);
323
+ else N && (l = t(N / o + 2));
324
+ for (d ? (a = new L(.5), f && (e.s = 1), p = g(e)) : (c = Math.abs(+H(e)), p = c % 2), m = new L(w);;) {
325
+ if (p) {
326
+ if (m = m.times(h), !m.c) break;
327
+ l ? m.c.length > l && (m.c.length = l) : s && (m = m.mod(i));
328
+ }
329
+ if (c) {
330
+ if (c = n(c / 2), c === 0) break;
331
+ p = c % 2;
332
+ } else if (e = e.times(a), V(e, e.e + 1, 1), e.e > 14) p = g(e);
333
+ else {
334
+ if (c = +H(e), c === 0) break;
335
+ p = c % 2;
336
+ }
337
+ h = h.times(h), l ? h.c && h.c.length > l && (h.c.length = l) : s && (h = h.mod(i));
338
+ }
339
+ return s ? m : (f && (m = w.div(m)), i ? m.mod(i) : l ? V(m, N, E, u) : m);
340
+ }, C.integerValue = function(e) {
341
+ var t = new L(this);
342
+ return e == null ? e = E : h(e, 0, 8), V(t, t.e + 1, e);
343
+ }, C.isEqualTo = C.eq = function(e, t) {
344
+ return m(this, new L(e, t)) === 0;
345
+ }, C.isFinite = function() {
346
+ return !!this.c;
347
+ }, C.isGreaterThan = C.gt = function(e, t) {
348
+ return m(this, new L(e, t)) > 0;
349
+ }, C.isGreaterThanOrEqualTo = C.gte = function(e, t) {
350
+ return (t = m(this, new L(e, t))) === 1 || t === 0;
351
+ }, C.isInteger = function() {
352
+ return !!this.c && f(this.e / o) > this.c.length - 2;
353
+ }, C.isLessThan = C.lt = function(e, t) {
354
+ return m(this, new L(e, t)) < 0;
355
+ }, C.isLessThanOrEqualTo = C.lte = function(e, t) {
356
+ return (t = m(this, new L(e, t))) === -1 || t === 0;
357
+ }, C.isNaN = function() {
358
+ return !this.s;
359
+ }, C.isNegative = function() {
360
+ return this.s < 0;
361
+ }, C.isPositive = function() {
362
+ return this.s > 0;
363
+ }, C.isZero = function() {
364
+ return !!this.c && this.c[0] == 0;
365
+ }, C.minus = function(e, t) {
366
+ var n, r, i, s, c = this, l = c.s;
367
+ if (e = new L(e, t), t = e.s, !l || !t) return new L(NaN);
368
+ if (l != t) return e.s = -t, c.plus(e);
369
+ var u = c.e / o, d = e.e / o, p = c.c, m = e.c;
370
+ if (!u || !d) {
371
+ if (!p || !m) return p ? (e.s = -t, e) : new L(m ? c : NaN);
372
+ if (!p[0] || !m[0]) return m[0] ? (e.s = -t, e) : new L(p[0] ? c : E == 3 ? -0 : 0);
373
+ }
374
+ if (u = f(u), d = f(d), p = p.slice(), l = u - d) {
375
+ for ((s = l < 0) ? (l = -l, i = p) : (d = u, i = m), i.reverse(), t = l; t--; i.push(0));
376
+ i.reverse();
377
+ } else for (r = (s = (l = p.length) < (t = m.length)) ? l : t, l = t = 0; t < r; t++) if (p[t] != m[t]) {
378
+ s = p[t] < m[t];
379
+ break;
380
+ }
381
+ if (s && (i = p, p = m, m = i, e.s = -e.s), t = (r = m.length) - (n = p.length), t > 0) for (; t--; p[n++] = 0);
382
+ for (t = a - 1; r > l;) {
383
+ if (p[--r] < m[r]) {
384
+ for (n = r; n && !p[--n]; p[n] = t);
385
+ --p[n], p[r] += a;
386
+ }
387
+ p[r] -= m[r];
388
+ }
389
+ for (; p[0] == 0; p.splice(0, 1), --d);
390
+ return p[0] ? B(e, p, d) : (e.s = E == 3 ? -1 : 1, e.c = [e.e = 0], e);
391
+ }, C.modulo = C.mod = function(e, t) {
392
+ var n, r, i = this;
393
+ return e = new L(e, t), !i.c || !e.s || e.c && !e.c[0] ? new L(NaN) : !e.c || i.c && !i.c[0] ? new L(i) : (M == 9 ? (r = e.s, e.s = 1, n = b(i, e, 0, 3), e.s = r, n.s *= r) : n = b(i, e, 0, M), e = i.minus(n.times(e)), !e.c[0] && M == 1 && (e.s = i.s), e);
394
+ }, C.multipliedBy = C.times = function(e, t) {
395
+ var n, r, i, s, c, u, d, p, m, h, g, _, v, y, b, x = this, S = x.c, C = (e = new L(e, t)).c;
396
+ if (!S || !C || !S[0] || !C[0]) return !x.s || !e.s || S && !S[0] && !C || C && !C[0] && !S ? e.c = e.e = e.s = null : (e.s *= x.s, !S || !C ? e.c = e.e = null : (e.c = [0], e.e = 0)), e;
397
+ for (r = f(x.e / o) + f(e.e / o), e.s *= x.s, d = S.length, h = C.length, d < h && (v = S, S = C, C = v, i = d, d = h, h = i), i = d + h, v = []; i--; v.push(0));
398
+ for (y = a, b = l, i = h; --i >= 0;) {
399
+ for (n = 0, g = C[i] % b, _ = C[i] / b | 0, c = d, s = i + c; s > i;) p = S[--c] % b, m = S[c] / b | 0, u = _ * p + m * g, p = g * p + u % b * b + v[s] + n, n = (p / y | 0) + (u / b | 0) + _ * m, v[s--] = p % y;
400
+ v[s] = n;
401
+ }
402
+ return n ? ++r : v.splice(0, 1), B(e, v, r);
403
+ }, C.negated = function() {
404
+ var e = new L(this);
405
+ return e.s = -e.s || null, e;
406
+ }, C.plus = function(e, t) {
407
+ var n, r = this, i = r.s;
408
+ if (e = new L(e, t), t = e.s, !i || !t) return new L(NaN);
409
+ if (i != t) return e.s = -t, r.minus(e);
410
+ var s = r.e / o, c = e.e / o, l = r.c, u = e.c;
411
+ if (!s || !c) {
412
+ if (!l || !u) return new L(i / 0);
413
+ if (!l[0] || !u[0]) return u[0] ? e : new L(l[0] ? r : i * 0);
414
+ }
415
+ if (s = f(s), c = f(c), l = l.slice(), i = s - c) {
416
+ for (i > 0 ? (c = s, n = u) : (i = -i, n = l), n.reverse(); i--; n.push(0));
417
+ n.reverse();
418
+ }
419
+ for (i = l.length, t = u.length, i - t < 0 && (n = u, u = l, l = n, t = i), i = 0; t;) i = (l[--t] = l[t] + u[t] + i) / a | 0, l[t] = a === l[t] ? 0 : l[t] % a;
420
+ return i && (l = [i].concat(l), ++c), B(e, l, c);
421
+ }, C.precision = C.sd = function(e, t) {
422
+ var n, r, i, a = this;
423
+ if (e != null && e !== !!e) return h(e, 1, u), t == null ? t = E : h(t, 0, 8), V(new L(a), e, t);
424
+ if (!(n = a.c)) return null;
425
+ if (i = n.length - 1, r = i * o + 1, i = n[i]) {
426
+ for (; i % 10 == 0; i /= 10, r--);
427
+ for (i = n[0]; i >= 10; i /= 10, r++);
428
+ }
429
+ return e && a.e + 1 > r && (r = a.e + 1), r;
430
+ }, C.shiftedBy = function(e) {
431
+ return h(e, -s, s), this.times("1e" + e);
432
+ }, C.squareRoot = C.sqrt = function() {
433
+ var e, t, n, r, i, a = this, o = a.c, s = a.s, c = a.e, l = T + 4, u = new L("0.5");
434
+ if (s !== 1 || !o || !o[0]) return new L(!s || s < 0 && (!o || o[0]) ? NaN : o ? a : Infinity);
435
+ if (s = Math.sqrt(+H(a)), s == 0 || s == Infinity ? (t = p(o), (t.length + c) % 2 == 0 && (t += "0"), s = Math.sqrt(+t), c = f((c + 1) / 2) - (c < 0 || c % 2), s == Infinity ? t = "5e" + c : (t = s.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + c), n = new L(t)) : n = new L(s + ""), n.c[0]) {
436
+ for (c = n.e, s = c + l, s < 3 && (s = 0);;) if (i = n, n = u.times(i.plus(b(a, i, l, 1))), p(i.c).slice(0, s) === (t = p(n.c)).slice(0, s)) if (n.e < c && --s, t = t.slice(s - 3, s + 1), t == "9999" || !r && t == "4999") {
437
+ if (!r && (V(i, i.e + T + 2, 0), i.times(i).eq(a))) {
438
+ n = i;
439
+ break;
440
+ }
441
+ l += 4, s += 4, r = 1;
442
+ } else {
443
+ (!+t || !+t.slice(1) && t.charAt(0) == "5") && (V(n, n.e + T + 2, 1), e = !n.times(n).eq(a));
444
+ break;
445
+ }
446
+ }
447
+ return V(n, n.e + T + 1, E, e);
448
+ }, C.toExponential = function(e, t) {
449
+ return e != null && (h(e, 0, u), e++), R(this, e, t, 1);
450
+ }, C.toFixed = function(e, t) {
451
+ return e != null && (h(e, 0, u), e = e + this.e + 1), R(this, e, t);
452
+ }, C.toFormat = function(e, t, n) {
453
+ var i, a = this;
454
+ if (n == null) e != null && t && typeof t == "object" ? (n = t, t = null) : e && typeof e == "object" ? (n = e, e = t = null) : n = P;
455
+ else if (typeof n != "object") throw Error(r + "Argument not an object: " + n);
456
+ if (i = a.toFixed(e, t), a.c) {
457
+ var o, s = i.split("."), c = +n.groupSize, l = +n.secondaryGroupSize, u = n.groupSeparator || "", d = s[0], f = s[1], p = a.s < 0, m = p ? d.slice(1) : d, h = m.length;
458
+ if (l && (o = c, c = l, l = o, h -= o), c > 0 && h > 0) {
459
+ for (o = h % c || c, d = m.substr(0, o); o < h; o += c) d += u + m.substr(o, c);
460
+ l > 0 && (d += u + m.slice(o)), p && (d = "-" + d);
461
+ }
462
+ i = f ? d + (n.decimalSeparator || "") + ((l = +n.fractionGroupSize) ? f.replace(RegExp("\\d{" + l + "}\\B", "g"), "$&" + (n.fractionGroupSeparator || "")) : f) : d;
463
+ }
464
+ return (n.prefix || "") + i + (n.suffix || "");
465
+ }, C.toFraction = function(e) {
466
+ var t, n, i, a, s, l, u, d, f, m, h, g, _ = this, v = _.c;
467
+ if (e != null && (u = new L(e), !u.isInteger() && (u.c || u.s !== 1) || u.lt(w))) throw Error(r + "Argument " + (u.isInteger() ? "out of range: " : "not an integer: ") + H(u));
468
+ if (!v) return new L(_);
469
+ for (t = new L(w), f = n = new L(w), i = d = new L(w), g = p(v), s = t.e = g.length - _.e - 1, t.c[0] = c[(l = s % o) < 0 ? o + l : l], e = !e || u.comparedTo(t) > 0 ? s > 0 ? t : f : u, l = A, A = Infinity, u = new L(g), d.c[0] = 0; m = b(u, t, 0, 1), a = n.plus(m.times(i)), a.comparedTo(e) != 1;) n = i, i = a, f = d.plus(m.times(a = f)), d = a, t = u.minus(m.times(a = t)), u = a;
470
+ return a = b(e.minus(n), i, 0, 1), d = d.plus(a.times(f)), n = n.plus(a.times(i)), d.s = f.s = _.s, s *= 2, h = b(f, i, s, E).minus(_).abs().comparedTo(b(d, n, s, E).minus(_).abs()) < 1 ? [f, i] : [d, n], A = l, h;
471
+ }, C.toNumber = function() {
472
+ return +H(this);
473
+ }, C.toPrecision = function(e, t) {
474
+ return e != null && h(e, 1, u), R(this, e, t, 2);
475
+ }, C.toString = function(e) {
476
+ var t, n = this, r = n.s, i = n.e;
477
+ return i === null ? r ? (t = "Infinity", r < 0 && (t = "-" + t)) : t = "NaN" : (e == null ? t = i <= D || i >= O ? _(p(n.c), i) : v(p(n.c), i, "0") : e === 10 && I ? (n = V(new L(n), T + i + 1, E), t = v(p(n.c), n.e, "0")) : (h(e, 2, F.length, "Base"), t = x(v(p(n.c), i, "0"), 10, e, r, !0)), r < 0 && n.c[0] && (t = "-" + t)), t;
478
+ }, C.valueOf = C.toJSON = function() {
479
+ return H(this);
480
+ }, C._isBigNumber = !0, C[Symbol.toStringTag] = "BigNumber", C[Symbol.for("nodejs.util.inspect.custom")] = C.valueOf, y != null && L.set(y), L;
573
481
  }
574
- function $(O) {
575
- var E = O | 0;
576
- return O > 0 || O === E ? E : E - 1;
482
+ function f(e) {
483
+ var t = e | 0;
484
+ return e > 0 || e === t ? t : t - 1;
577
485
  }
578
- function q(O) {
579
- for (var E, _, R = 1, g = O.length, T = O[0] + ""; R < g; ) {
580
- for (E = O[R++] + "", _ = N - E.length; _--; E = "0" + E) ;
581
- T += E;
582
- }
583
- for (g = T.length; T.charCodeAt(--g) === 48; ) ;
584
- return T.slice(0, g + 1 || 1);
486
+ function p(e) {
487
+ for (var t, n, r = 1, i = e.length, a = e[0] + ""; r < i;) {
488
+ for (t = e[r++] + "", n = o - t.length; n--; t = "0" + t);
489
+ a += t;
490
+ }
491
+ for (i = a.length; a.charCodeAt(--i) === 48;);
492
+ return a.slice(0, i + 1 || 1);
585
493
  }
586
- function j(O, E) {
587
- var _, R, g = O.c, T = E.c, x = O.s, S = E.s, C = O.e, k = E.e;
588
- if (!x || !S) return null;
589
- if (_ = g && !g[0], R = T && !T[0], _ || R) return _ ? R ? 0 : -S : x;
590
- if (x != S) return x;
591
- if (_ = x < 0, R = C == k, !g || !T) return R ? 0 : !g ^ _ ? 1 : -1;
592
- if (!R) return C > k ^ _ ? 1 : -1;
593
- for (S = (C = g.length) < (k = T.length) ? C : k, x = 0; x < S; x++) if (g[x] != T[x]) return g[x] > T[x] ^ _ ? 1 : -1;
594
- return C == k ? 0 : C > k ^ _ ? 1 : -1;
494
+ function m(e, t) {
495
+ var n, r, i = e.c, a = t.c, o = e.s, s = t.s, c = e.e, l = t.e;
496
+ if (!o || !s) return null;
497
+ if (n = i && !i[0], r = a && !a[0], n || r) return n ? r ? 0 : -s : o;
498
+ if (o != s) return o;
499
+ if (n = o < 0, r = c == l, !i || !a) return r ? 0 : !i ^ n ? 1 : -1;
500
+ if (!r) return c > l ^ n ? 1 : -1;
501
+ for (s = (c = i.length) < (l = a.length) ? c : l, o = 0; o < s; o++) if (i[o] != a[o]) return i[o] > a[o] ^ n ? 1 : -1;
502
+ return c == l ? 0 : c > l ^ n ? 1 : -1;
595
503
  }
596
- function v(O, E, _, R) {
597
- if (O < E || O > _ || O !== y(O))
598
- throw Error(U + (R || "Argument") + (typeof O == "number" ? O < E || O > _ ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(O));
504
+ function h(e, t, i, a) {
505
+ if (e < t || e > i || e !== n(e)) throw Error(r + (a || "Argument") + (typeof e == "number" ? e < t || e > i ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
599
506
  }
600
- function ie(O) {
601
- var E = O.c.length - 1;
602
- return $(O.e / N) == E && O.c[E] % 2 != 0;
507
+ function g(e) {
508
+ var t = e.c.length - 1;
509
+ return f(e.e / o) == t && e.c[t] % 2 != 0;
603
510
  }
604
- function ne(O, E) {
605
- return (O.length > 1 ? O.charAt(0) + "." + O.slice(1) : O) + (E < 0 ? "e" : "e+") + E;
511
+ function _(e, t) {
512
+ return (e.length > 1 ? e.charAt(0) + "." + e.slice(1) : e) + (t < 0 ? "e" : "e+") + t;
606
513
  }
607
- function W(O, E, _) {
608
- var R, g;
609
- if (E < 0) {
610
- for (g = _ + "."; ++E; g += _) ;
611
- O = g + O;
612
- } else if (R = O.length, ++E > R) {
613
- for (g = _, E -= R; --E; g += _) ;
614
- O += g;
615
- } else E < R && (O = O.slice(0, E) + "." + O.slice(E));
616
- return O;
514
+ function v(e, t, n) {
515
+ var r, i;
516
+ if (t < 0) {
517
+ for (i = n + "."; ++t; i += n);
518
+ e = i + e;
519
+ } else if (r = e.length, ++t > r) {
520
+ for (i = n, t -= r; --t; i += n);
521
+ e += i;
522
+ } else t < r && (e = e.slice(0, t) + "." + e.slice(t));
523
+ return e;
617
524
  }
618
- var Ne = we();
619
- export {
620
- Ne as BigNumber,
621
- Ne as default
622
- };
525
+ var y = d();
526
+ //#endregion
527
+ export { y as default };