solve-engine 2.34.3 → 2.34.5

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 (72) hide show
  1. package/dist/{chunk-5FWBPZRL.js → chunk-4RQROFRZ.js} +4 -4
  2. package/dist/{chunk-5FWBPZRL.js.map → chunk-4RQROFRZ.js.map} +1 -1
  3. package/dist/{chunk-2I2ZEJ3K.js → chunk-6Q3C57ER.js} +2 -2
  4. package/dist/{chunk-2I2ZEJ3K.js.map → chunk-6Q3C57ER.js.map} +1 -1
  5. package/dist/chunk-ERPPBLSR.js +3 -0
  6. package/dist/{chunk-76ETLWM4.js.map → chunk-ERPPBLSR.js.map} +1 -1
  7. package/dist/chunk-EVY2Y4FT.js +2 -0
  8. package/dist/chunk-EVY2Y4FT.js.map +1 -0
  9. package/dist/chunk-GR2ZEYRG.js +3 -0
  10. package/dist/chunk-GR2ZEYRG.js.map +1 -0
  11. package/dist/chunk-HLZRNZEU.js +2 -0
  12. package/dist/chunk-HLZRNZEU.js.map +1 -0
  13. package/dist/chunk-J4Y4MAX4.cjs +2 -0
  14. package/dist/chunk-J4Y4MAX4.cjs.map +1 -0
  15. package/dist/{chunk-S4BK7O6K.cjs → chunk-KTAICPWB.cjs} +3 -3
  16. package/dist/{chunk-S4BK7O6K.cjs.map → chunk-KTAICPWB.cjs.map} +1 -1
  17. package/dist/chunk-LKPCB7UK.js +3 -0
  18. package/dist/chunk-LKPCB7UK.js.map +1 -0
  19. package/dist/chunk-LQHIRKDZ.cjs +3 -0
  20. package/dist/chunk-LQHIRKDZ.cjs.map +1 -0
  21. package/dist/{chunk-XX7BIIWG.cjs → chunk-LYLRGYEC.cjs} +4 -4
  22. package/dist/{chunk-XX7BIIWG.cjs.map → chunk-LYLRGYEC.cjs.map} +1 -1
  23. package/dist/{chunk-SDB2A3UL.cjs → chunk-MCJDFVAJ.cjs} +2 -2
  24. package/dist/{chunk-SDB2A3UL.cjs.map → chunk-MCJDFVAJ.cjs.map} +1 -1
  25. package/dist/{chunk-BMJ7CHRM.cjs → chunk-MV3UPVZX.cjs} +2 -2
  26. package/dist/{chunk-BMJ7CHRM.cjs.map → chunk-MV3UPVZX.cjs.map} +1 -1
  27. package/dist/chunk-SZ3QZ7N7.cjs +3 -0
  28. package/dist/chunk-SZ3QZ7N7.cjs.map +1 -0
  29. package/dist/chunk-UUCFL3D6.js +2 -0
  30. package/dist/{chunk-EQ37UQGY.js.map → chunk-UUCFL3D6.js.map} +1 -1
  31. package/dist/chunk-W4XLVZ6R.cjs +2 -0
  32. package/dist/chunk-W4XLVZ6R.cjs.map +1 -0
  33. package/dist/constants.cjs +1 -1
  34. package/dist/constants.js +1 -1
  35. package/dist/engine.cjs +1 -1
  36. package/dist/engine.js +1 -1
  37. package/dist/engine.worker.cjs +1 -1
  38. package/dist/engine.worker.js +1 -1
  39. package/dist/engine.worker.js.map +1 -1
  40. package/dist/format.cjs +1 -1
  41. package/dist/format.js +1 -1
  42. package/dist/index.cjs +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/packages.cjs +1 -1
  45. package/dist/packages.js +1 -1
  46. package/dist/testing.cjs +2 -2
  47. package/dist/testing.js +1 -1
  48. package/dist/utilities.cjs +1 -1
  49. package/dist/utilities.js +1 -1
  50. package/dist/vm.cjs +1 -1
  51. package/dist/vm.js +1 -1
  52. package/dist/worker.cjs +2 -2
  53. package/dist/worker.js +1 -1
  54. package/package.json +1 -1
  55. package/dist/chunk-62G25LCA.js +0 -3
  56. package/dist/chunk-62G25LCA.js.map +0 -1
  57. package/dist/chunk-76ETLWM4.js +0 -3
  58. package/dist/chunk-EQ37UQGY.js +0 -2
  59. package/dist/chunk-ETQBU454.js +0 -2
  60. package/dist/chunk-ETQBU454.js.map +0 -1
  61. package/dist/chunk-FAA47IKC.cjs +0 -2
  62. package/dist/chunk-FAA47IKC.cjs.map +0 -1
  63. package/dist/chunk-IAXRJ5II.cjs +0 -3
  64. package/dist/chunk-IAXRJ5II.cjs.map +0 -1
  65. package/dist/chunk-R2SZFJTT.cjs +0 -2
  66. package/dist/chunk-R2SZFJTT.cjs.map +0 -1
  67. package/dist/chunk-TZ3Q6GOC.js +0 -3
  68. package/dist/chunk-TZ3Q6GOC.js.map +0 -1
  69. package/dist/chunk-WBTMTARK.cjs +0 -3
  70. package/dist/chunk-WBTMTARK.cjs.map +0 -1
  71. package/dist/chunk-XEIDV5JP.js +0 -2
  72. package/dist/chunk-XEIDV5JP.js.map +0 -1
@@ -1,2 +0,0 @@
1
- function o(i,t,r){return i.toLocaleString(t,{useGrouping:false,maximumFractionDigits:r,minimumFractionDigits:r})}function m(i,t=2,r=false,n="en-US"){return Number.isInteger(i)?r?i.toLocaleString(n,{minimumFractionDigits:0,maximumFractionDigits:0}):o(Math.trunc(i),n,0):r?i.toLocaleString(n,{maximumFractionDigits:t,minimumFractionDigits:t}):o(i,n,t)}export{m as a};//# sourceMappingURL=chunk-XEIDV5JP.js.map
2
- //# sourceMappingURL=chunk-XEIDV5JP.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/utilities/Number.ts"],"names":["removeThousandsSeparators","value","locale","decimalPlaces","autoFormatIntegerOrFloat","number","includeThousandSeparators","numberLocale"],"mappings":"AAoBA,SAASA,CAAAA,CACRC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CACC,CACD,OAAOF,CAAAA,CAAM,cAAA,CAAeC,CAAAA,CAAQ,CACnC,WAAA,CAAa,KAAA,CACb,qBAAA,CAAuBC,EACvB,qBAAA,CAAuBA,CACxB,CAAC,CACF,CAcO,SAASC,CAAAA,CACfC,CAAAA,CACAF,EAAwB,CAAA,CACxBG,CAAAA,CAAqC,KAAA,CACrCC,CAAAA,CAAuB,OAAA,CACtB,CACD,OAAI,MAAA,CAAO,UAAUF,CAAM,CAAA,CACtBC,CAAAA,CAEID,CAAAA,CAAO,cAAA,CAAeE,CAAAA,CAAc,CAC1C,qBAAA,CAAuB,EACvB,qBAAA,CAAuB,CACxB,CAAC,CAAA,CAGKP,CAAAA,CAA0B,IAAA,CAAK,KAAA,CAAMK,CAAM,EAAGE,CAAAA,CAAc,CAAC,CAAA,CAIjED,CAAAA,CAEID,CAAAA,CAAO,cAAA,CAAeE,CAAAA,CAAc,CAC1C,sBAAuBJ,CAAAA,CACvB,qBAAA,CAAuBA,CACxB,CAAC,CAAA,CAKKH,CAAAA,CAA0BK,CAAAA,CAAQE,CAAAA,CAAcJ,CAAa,CACrE","file":"chunk-XEIDV5JP.js","sourcesContent":["/**\n * Render `value` in `locale` with `decimalPlaces` fractional digits and no\n * digit grouping, leaving the locale's own decimal separator alone.\n *\n * Asks `Intl` not to group in the first place rather than formatting with\n * grouping and then deleting a character afterwards. Deleting was wrong twice\n * over. It used `String.replace` with a string pattern, which removes one\n * occurrence, so \"1,234,567\" came back as \"1234,567\" and the surviving comma\n * read as a decimal point. And it chose the character to delete from a\n * two-case switch, \"de-DE\" or a comma for everything else, when a comma is the\n * DECIMAL separator in French, Spanish, Italian, Portuguese and every other\n * comma-decimal locale: deleting it turned 1.5 into \"150\", a hundred times the\n * number, while leaving French's actual group separator (a narrow no-break\n * space) in place. `numberResult.decimalSeparatorLocale` is an unvalidated\n * host string, so no locale can be assumed.\n *\n * An unusable locale tag still throws the `RangeError` `toLocaleString` has\n * always thrown for one, since swallowing it would hide the host's typo behind\n * silently different output.\n */\nfunction removeThousandsSeparators(\n\tvalue: number,\n\tlocale: string,\n\tdecimalPlaces: number\n) {\n\treturn value.toLocaleString(locale, {\n\t\tuseGrouping: false,\n\t\tmaximumFractionDigits: decimalPlaces,\n\t\tminimumFractionDigits: decimalPlaces,\n\t});\n}\n\n/**\n * Format `number` for display, branching on whether it's a whole number:\n * integers are always rendered with zero decimal places (never padded to\n * `decimalPlaces`), while non-integers are rendered with up to\n * `decimalPlaces` fractional digits. `includeThousandSeparators` controls\n * whether groups are separated (e.g. `\"1,234\"`) per `numberLocale`.\n *\n * @param number - The value to format.\n * @param decimalPlaces - Max fractional digits for non-integer values (default 2).\n * @param includeThousandSeparators - Whether to group digits (default false).\n * @param numberLocale - `Intl`/`toLocaleString` locale to format with (default \"en-US\").\n */\nexport function autoFormatIntegerOrFloat(\n\tnumber: number,\n\tdecimalPlaces: number = 2,\n\tincludeThousandSeparators: boolean = false,\n\tnumberLocale: string = \"en-US\"\n) {\n\tif (Number.isInteger(number)) {\n\t\tif (includeThousandSeparators) {\n\t\t\t// We can return the format early as we don't need to strip thousands\n\t\t\treturn number.toLocaleString(numberLocale, {\n\t\t\t\tminimumFractionDigits: 0,\n\t\t\t\tmaximumFractionDigits: 0,\n\t\t\t});\n\t\t}\n\n\t\treturn removeThousandsSeparators(Math.trunc(number), numberLocale, 0);\n\t}\n\n\t// Decimal\n\tif (includeThousandSeparators) {\n\t\t// We can return the format early as we don't need to strip thousands\n\t\treturn number.toLocaleString(numberLocale, {\n\t\t\tmaximumFractionDigits: decimalPlaces,\n\t\t\tminimumFractionDigits: decimalPlaces,\n\t\t});\n\t}\n\n\t// number.toFixed(decimalPlaces)\n\n\treturn removeThousandsSeparators(number, numberLocale, decimalPlaces);\n}\n"]}