math-exercises 2.2.4 → 2.2.6

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 (235) hide show
  1. package/lib/exercises/exercise.d.ts +1 -1
  2. package/lib/exercises/exercise.d.ts.map +1 -1
  3. package/lib/exercises/math/calcul/digitDecimalRank.js +4 -4
  4. package/lib/exercises/math/calcul/digitDecimalRankNumber.d.ts +8 -0
  5. package/lib/exercises/math/calcul/digitDecimalRankNumber.d.ts.map +1 -0
  6. package/lib/exercises/math/calcul/digitDecimalRankNumber.js +60 -0
  7. package/lib/exercises/math/calcul/digitRank.js +4 -4
  8. package/lib/exercises/math/calcul/digitRankNumber.d.ts +8 -0
  9. package/lib/exercises/math/calcul/digitRankNumber.d.ts.map +1 -0
  10. package/lib/exercises/math/calcul/digitRankNumber.js +56 -0
  11. package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
  12. package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.js +34 -0
  13. package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
  14. package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.js +17 -0
  15. package/lib/exercises/math/calcul/fractions/fractionsDivision.d.ts.map +1 -1
  16. package/lib/exercises/math/calcul/fractions/fractionsDivision.js +23 -0
  17. package/lib/exercises/math/calcul/fractions/fractionsProduct.d.ts.map +1 -1
  18. package/lib/exercises/math/calcul/fractions/fractionsProduct.js +15 -0
  19. package/lib/exercises/math/calcul/index.d.ts +2 -0
  20. package/lib/exercises/math/calcul/index.d.ts.map +1 -1
  21. package/lib/exercises/math/calcul/index.js +2 -0
  22. package/lib/exercises/math/calcul/proportionality/scaleUsage.js +1 -1
  23. package/lib/exercises/math/calcul/rounding/rounding.d.ts.map +1 -1
  24. package/lib/exercises/math/calcul/rounding/rounding.js +18 -0
  25. package/lib/exercises/math/calculLitteral/distributivity/allIdentities.d.ts.map +1 -1
  26. package/lib/exercises/math/calculLitteral/distributivity/allIdentities.js +1 -0
  27. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.d.ts.map +1 -1
  28. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.js +1 -0
  29. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
  30. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivity.js +31 -1
  31. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.d.ts.map +1 -1
  32. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.js +11 -2
  33. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
  34. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.js +21 -2
  35. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
  36. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.js +23 -2
  37. package/lib/exercises/math/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
  38. package/lib/exercises/math/calculLitteral/distributivity/simpleDistributivity.js +17 -2
  39. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
  40. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.js +21 -2
  41. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
  42. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.js +26 -1
  43. package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
  44. package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.js +18 -2
  45. package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
  46. package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.js +19 -2
  47. package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
  48. package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.js +15 -2
  49. package/lib/exercises/math/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
  50. package/lib/exercises/math/calculLitteral/equation/equationType4Exercise.js +20 -5
  51. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
  52. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.js +24 -1
  53. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType1.d.ts.map +1 -1
  54. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType1.js +20 -1
  55. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType2.d.ts.map +1 -1
  56. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType2.js +19 -3
  57. package/lib/exercises/math/calculLitteral/equation/fractionEquation.d.ts.map +1 -1
  58. package/lib/exercises/math/calculLitteral/equation/fractionEquation.js +24 -8
  59. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
  60. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +21 -2
  61. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
  62. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.js +24 -4
  63. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
  64. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.js +25 -5
  65. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
  66. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.js +19 -0
  67. package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
  68. package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.js +1 -0
  69. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.d.ts +8 -0
  70. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.d.ts.map +1 -0
  71. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.js +77 -0
  72. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.d.ts +8 -0
  73. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.d.ts.map +1 -0
  74. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.js +80 -0
  75. package/lib/exercises/math/calculLitteral/factorisation/index.d.ts +2 -0
  76. package/lib/exercises/math/calculLitteral/factorisation/index.d.ts.map +1 -1
  77. package/lib/exercises/math/calculLitteral/factorisation/index.js +2 -0
  78. package/lib/exercises/math/equaDiff/equaDiffGeneralForme.d.ts.map +1 -1
  79. package/lib/exercises/math/equaDiff/equaDiffGeneralForme.js +1 -0
  80. package/lib/exercises/math/functions/basics/inverseImageFunctionTable.d.ts +2 -0
  81. package/lib/exercises/math/functions/basics/inverseImageFunctionTable.d.ts.map +1 -1
  82. package/lib/exercises/math/functions/basics/inverseImageFunctionTable.js +46 -66
  83. package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.d.ts.map +1 -1
  84. package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.js +12 -2
  85. package/lib/exercises/math/functions/trinoms/index.d.ts +2 -0
  86. package/lib/exercises/math/functions/trinoms/index.d.ts.map +1 -1
  87. package/lib/exercises/math/functions/trinoms/index.js +2 -0
  88. package/lib/exercises/math/functions/trinoms/solveEquationByFactorisation.d.ts +5 -0
  89. package/lib/exercises/math/functions/trinoms/solveEquationByFactorisation.d.ts.map +1 -0
  90. package/lib/exercises/math/functions/trinoms/solveEquationByFactorisation.js +44 -0
  91. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationByFactorisation.d.ts +9 -0
  92. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationByFactorisation.d.ts.map +1 -0
  93. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationByFactorisation.js +134 -0
  94. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationFromCano.d.ts +7 -0
  95. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationFromCano.d.ts.map +1 -0
  96. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationFromCano.js +59 -0
  97. package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
  98. package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.js +1 -0
  99. package/lib/exercises/math/index.d.ts +1 -0
  100. package/lib/exercises/math/index.d.ts.map +1 -1
  101. package/lib/exercises/math/index.js +1 -0
  102. package/lib/exercises/math/percent/applyPercent.d.ts.map +1 -1
  103. package/lib/exercises/math/percent/applyPercent.js +20 -2
  104. package/lib/exercises/math/probaStat/probaFromTableNoContext.d.ts.map +1 -1
  105. package/lib/exercises/math/probaStat/probaFromTableNoContext.js +5 -4
  106. package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.d.ts +11 -0
  107. package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.d.ts.map +1 -0
  108. package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.js +49 -0
  109. package/lib/exercises/math/sequences/arithmetic/index.d.ts +1 -0
  110. package/lib/exercises/math/sequences/arithmetic/index.d.ts.map +1 -1
  111. package/lib/exercises/math/sequences/arithmetic/index.js +1 -0
  112. package/lib/exercises/math/spaceGeometry/index.d.ts +2 -0
  113. package/lib/exercises/math/spaceGeometry/index.d.ts.map +1 -0
  114. package/lib/exercises/math/spaceGeometry/index.js +17 -0
  115. package/lib/exercises/math/spaceGeometry/vectors/index.d.ts +4 -0
  116. package/lib/exercises/math/spaceGeometry/vectors/index.d.ts.map +1 -0
  117. package/lib/exercises/math/spaceGeometry/vectors/index.js +19 -0
  118. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.d.ts +5 -0
  119. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.d.ts.map +1 -0
  120. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.js +52 -0
  121. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorLinearCombinationCoords.d.ts +5 -0
  122. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorLinearCombinationCoords.d.ts.map +1 -0
  123. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorLinearCombinationCoords.js +62 -0
  124. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorNormCalculation.d.ts +9 -0
  125. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorNormCalculation.d.ts.map +1 -0
  126. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorNormCalculation.js +54 -0
  127. package/lib/exercises/math/squareRoots/squareRootIdentities.js +3 -3
  128. package/lib/exercises/math/suites/sequencePlot.d.ts.map +1 -1
  129. package/lib/exercises/math/suites/sequencePlot.js +1 -2
  130. package/lib/exercises/math/trigonometry/trigonometrySideCalcul.d.ts.map +1 -1
  131. package/lib/exercises/math/trigonometry/trigonometrySideCalcul.js +1 -0
  132. package/lib/exercises/pc/calibrationCurveOfSolution.d.ts.map +1 -1
  133. package/lib/exercises/pc/calibrationCurveOfSolution.js +1 -0
  134. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.d.ts.map +1 -1
  135. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.js +1 -0
  136. package/lib/exercises/pc/chemicalElements/massOrVolumeProportion.d.ts.map +1 -1
  137. package/lib/exercises/pc/chemicalElements/massOrVolumeProportion.js +1 -0
  138. package/lib/exercises/pc/chemicalReactions/calculateSynthesisEfficiency.d.ts.map +1 -1
  139. package/lib/exercises/pc/chemicalReactions/calculateSynthesisEfficiency.js +1 -0
  140. package/lib/exercises/pc/chemicalReactions/titrationEquivalenceRelation.d.ts.map +1 -1
  141. package/lib/exercises/pc/chemicalReactions/titrationEquivalenceRelation.js +1 -0
  142. package/lib/exercises/pc/dosage/beerLambertRandomValue.d.ts.map +1 -1
  143. package/lib/exercises/pc/dosage/beerLambertRandomValue.js +1 -0
  144. package/lib/exercises/pc/dosage/concentrationCalculation.d.ts.map +1 -1
  145. package/lib/exercises/pc/dosage/concentrationCalculation.js +1 -0
  146. package/lib/exercises/pc/dosage/concentrationFromMassCalculation.d.ts.map +1 -1
  147. package/lib/exercises/pc/dosage/concentrationFromMassCalculation.js +1 -0
  148. package/lib/exercises/pc/electricity/calculateIntensity.js +1 -1
  149. package/lib/exercises/pc/electricity/calculateVoltage.d.ts.map +1 -1
  150. package/lib/exercises/pc/electricity/calculateVoltage.js +1 -0
  151. package/lib/exercises/pc/electricity/electricPowerOrEnergyCalculation.d.ts.map +1 -1
  152. package/lib/exercises/pc/electricity/electricPowerOrEnergyCalculation.js +1 -0
  153. package/lib/exercises/pc/electricity/ohmLaw.d.ts.map +1 -1
  154. package/lib/exercises/pc/electricity/ohmLaw.js +1 -0
  155. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.d.ts.map +1 -1
  156. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.js +1 -0
  157. package/lib/exercises/pc/energy/calorificValue.d.ts.map +1 -1
  158. package/lib/exercises/pc/energy/calorificValue.js +1 -0
  159. package/lib/exercises/pc/energy/combustionTransferEnergy.d.ts.map +1 -1
  160. package/lib/exercises/pc/energy/combustionTransferEnergy.js +1 -0
  161. package/lib/exercises/pc/energy/combustionTransferEnergy2.d.ts.map +1 -1
  162. package/lib/exercises/pc/energy/combustionTransferEnergy2.js +1 -0
  163. package/lib/exercises/pc/energy/efficencyOfConverter.d.ts.map +1 -1
  164. package/lib/exercises/pc/energy/efficencyOfConverter.js +1 -0
  165. package/lib/exercises/pc/energy/efficiencyCalculation.d.ts.map +1 -1
  166. package/lib/exercises/pc/energy/efficiencyCalculation.js +1 -0
  167. package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.d.ts.map +1 -1
  168. package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.js +1 -0
  169. package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.d.ts.map +1 -1
  170. package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.js +1 -0
  171. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.d.ts.map +1 -1
  172. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.js +1 -0
  173. package/lib/exercises/pc/forces/electroStaticForce.d.ts.map +1 -1
  174. package/lib/exercises/pc/forces/electroStaticForce.js +1 -0
  175. package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.d.ts.map +1 -1
  176. package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.js +1 -0
  177. package/lib/exercises/pc/forces/gravitationalForcePlanets.d.ts.map +1 -1
  178. package/lib/exercises/pc/forces/gravitationalForcePlanets.js +1 -0
  179. package/lib/exercises/pc/forces/massWeight.d.ts.map +1 -1
  180. package/lib/exercises/pc/forces/massWeight.js +1 -0
  181. package/lib/exercises/pc/motion/averageSpeed.d.ts.map +1 -1
  182. package/lib/exercises/pc/motion/averageSpeed.js +1 -0
  183. package/lib/exercises/pc/motion/averageSpeedCalculation.d.ts.map +1 -1
  184. package/lib/exercises/pc/motion/averageSpeedCalculation.js +1 -0
  185. package/lib/exercises/pc/motion/motionReference.d.ts.map +1 -1
  186. package/lib/exercises/pc/motion/motionReference.js +1 -0
  187. package/lib/exercises/pc/pH.d.ts.map +1 -1
  188. package/lib/exercises/pc/pH.js +1 -0
  189. package/lib/exercises/pc/power/calculatePowerOfLight.d.ts.map +1 -1
  190. package/lib/exercises/pc/power/calculatePowerOfLight.js +1 -0
  191. package/lib/exercises/pc/spectral/spectralEnergy.d.ts.map +1 -1
  192. package/lib/exercises/pc/spectral/spectralEnergy.js +1 -0
  193. package/lib/exercises/pc/waves/lightDistanceConversion.d.ts.map +1 -1
  194. package/lib/exercises/pc/waves/lightDistanceConversion.js +1 -0
  195. package/lib/exercises/pc/waves/periodicWaveCelerity.d.ts.map +1 -1
  196. package/lib/exercises/pc/waves/periodicWaveCelerity.js +1 -0
  197. package/lib/exercises/pc/weight/calculateWeight.d.ts.map +1 -1
  198. package/lib/exercises/pc/weight/calculateWeight.js +1 -0
  199. package/lib/exercises/pc/weight/weightOnTheMoon.d.ts.map +1 -1
  200. package/lib/exercises/pc/weight/weightOnTheMoon.js +1 -0
  201. package/lib/index.d.ts +33 -64
  202. package/lib/index.d.ts.map +1 -1
  203. package/lib/index.js +4 -0
  204. package/lib/math/geometry/spacePoint.d.ts +27 -0
  205. package/lib/math/geometry/spacePoint.d.ts.map +1 -0
  206. package/lib/math/geometry/spacePoint.js +80 -0
  207. package/lib/math/geometry/spaceVector.d.ts +28 -0
  208. package/lib/math/geometry/spaceVector.d.ts.map +1 -0
  209. package/lib/math/geometry/spaceVector.js +83 -0
  210. package/lib/math/numbers/decimals/decimal.d.ts +1 -0
  211. package/lib/math/numbers/decimals/decimal.d.ts.map +1 -1
  212. package/lib/math/numbers/decimals/decimal.js +8 -0
  213. package/lib/math/numbers/rationals/rational.d.ts +1 -0
  214. package/lib/math/numbers/rationals/rational.d.ts.map +1 -1
  215. package/lib/math/numbers/rationals/rational.js +4 -0
  216. package/lib/math/utils/random/randTupleInt.d.ts +1 -0
  217. package/lib/math/utils/random/randTupleInt.d.ts.map +1 -1
  218. package/lib/math/utils/random/randTupleInt.js +5 -1
  219. package/lib/playground.d.ts +2 -0
  220. package/lib/playground.d.ts.map +1 -0
  221. package/lib/playground.js +20 -0
  222. package/lib/server.d.ts +3 -0
  223. package/lib/server.d.ts.map +1 -1
  224. package/lib/server.js +7 -0
  225. package/lib/tree/nodes/equations/equationSolutionNode.d.ts.map +1 -1
  226. package/lib/tree/nodes/equations/equationSolutionNode.js +8 -0
  227. package/lib/tree/nodes/node.d.ts +1 -0
  228. package/lib/tree/nodes/node.d.ts.map +1 -1
  229. package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
  230. package/lib/tree/nodes/operators/multiplyNode.js +8 -2
  231. package/lib/tree/nodes/operators/powerNode.js +1 -1
  232. package/lib/utils/alignTex.d.ts +2 -0
  233. package/lib/utils/alignTex.d.ts.map +1 -0
  234. package/lib/utils/alignTex.js +18 -0
  235. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"efficiencyCalculation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/energy/efficiencyCalculation.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,CAAC;CAClC,CAAC;AA8IF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAavD,CAAC"}
1
+ {"version":3,"file":"efficiencyCalculation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/energy/efficiencyCalculation.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,CAAC;CAClC,CAAC;AA8IF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAcvD,CAAC"}
@@ -118,4 +118,5 @@ exports.efficiencyCalculation = {
118
118
  getPropositions,
119
119
  isAnswerValid,
120
120
  subject: "Physique",
121
+ hasHintAndCorrection: true,
121
122
  };
@@ -1 +1 @@
1
- {"version":3,"file":"kineticEnergyOrMassOrSpeed.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/energy/kineticEnergyOrMassOrSpeed.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAuNF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAa5D,CAAC"}
1
+ {"version":3,"file":"kineticEnergyOrMassOrSpeed.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/energy/kineticEnergyOrMassOrSpeed.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAuNF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAc5D,CAAC"}
@@ -164,4 +164,5 @@ exports.kineticEnergyOrMassOrSpeed = {
164
164
  freeTimer: 60,
165
165
  getPropositions,
166
166
  isAnswerValid,
167
+ hasHintAndCorrection: true,
167
168
  };
@@ -1 +1 @@
1
- {"version":3,"file":"thermalEnergyTransferCalculation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/energy/thermalEnergyTransferCalculation.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,GAAG,QAAQ,CAAC;CACzC,CAAC;AA4NF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAalE,CAAC"}
1
+ {"version":3,"file":"thermalEnergyTransferCalculation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/energy/thermalEnergyTransferCalculation.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,GAAG,QAAQ,CAAC;CACzC,CAAC;AA4NF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAclE,CAAC"}
@@ -139,4 +139,5 @@ exports.thermalEnergyTransferCalculation = {
139
139
  getPropositions,
140
140
  isAnswerValid,
141
141
  subject: "Physique",
142
+ hasHintAndCorrection: true,
142
143
  };
@@ -1 +1 @@
1
- {"version":3,"file":"calculateNormalOrFrictionForce.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/calculateNormalOrFrictionForce.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AA8FF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAehE,CAAC"}
1
+ {"version":3,"file":"calculateNormalOrFrictionForce.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/calculateNormalOrFrictionForce.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AA8FF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAgBhE,CAAC"}
@@ -98,4 +98,5 @@ exports.calculateNormalOrFrictionForce = {
98
98
  isAnswerValid,
99
99
  hasGeogebra: true,
100
100
  subject: "Physique",
101
+ hasHintAndCorrection: true,
101
102
  };
@@ -1 +1 @@
1
- {"version":3,"file":"electroStaticForce.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/electroStaticForce.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAUlC,KAAK,iBAAiB,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,iBAAiB,CAAC;IACtB,EAAE,EAAE,iBAAiB,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAoJF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAapD,CAAC"}
1
+ {"version":3,"file":"electroStaticForce.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/electroStaticForce.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAUlC,KAAK,iBAAiB,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,iBAAiB,CAAC;IACtB,EAAE,EAAE,iBAAiB,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAoJF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAcpD,CAAC"}
@@ -113,4 +113,5 @@ exports.electroStaticForce = {
113
113
  getPropositions,
114
114
  isAnswerValid,
115
115
  subject: "Physique",
116
+ hasHintAndCorrection: true,
116
117
  };
@@ -1 +1 @@
1
- {"version":3,"file":"gravitationalAttractionObjectHeight.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/gravitationalAttractionObjectHeight.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAiIF,eAAO,MAAM,mCAAmC,EAAE,QAAQ,CAAC,WAAW,CAcrE,CAAC"}
1
+ {"version":3,"file":"gravitationalAttractionObjectHeight.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/gravitationalAttractionObjectHeight.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAiIF,eAAO,MAAM,mCAAmC,EAAE,QAAQ,CAAC,WAAW,CAerE,CAAC"}
@@ -128,4 +128,5 @@ exports.gravitationalAttractionObjectHeight = {
128
128
  getPropositions,
129
129
  isAnswerValid,
130
130
  subject: "Physique",
131
+ hasHintAndCorrection: true,
131
132
  };
@@ -1 +1 @@
1
- {"version":3,"file":"gravitationalForcePlanets.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/gravitationalForcePlanets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAOnD,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAiJF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAe3D,CAAC"}
1
+ {"version":3,"file":"gravitationalForcePlanets.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/gravitationalForcePlanets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAOnD,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAiJF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAgB3D,CAAC"}
@@ -114,4 +114,5 @@ exports.gravitationalForcePlanets = {
114
114
  isAnswerValid,
115
115
  subject: "Physique",
116
116
  maxAllowedQuestions: 8,
117
+ hasHintAndCorrection: true,
117
118
  };
@@ -1 +1 @@
1
- {"version":3,"file":"massWeight.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/massWeight.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;CACjC,CAAC;AAmEF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAYpD,CAAC"}
1
+ {"version":3,"file":"massWeight.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/massWeight.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;CACjC,CAAC;AAmEF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAapD,CAAC"}
@@ -64,4 +64,5 @@ exports.MassWeightExercise = {
64
64
  getPropositions,
65
65
  isAnswerValid,
66
66
  subject: "Physique",
67
+ hasHintAndCorrection: true,
67
68
  };
@@ -1 +1 @@
1
- {"version":3,"file":"averageSpeed.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/motion/averageSpeed.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,KAAK,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAoJpD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAY9C,CAAC"}
1
+ {"version":3,"file":"averageSpeed.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/motion/averageSpeed.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,KAAK,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAoJpD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAa9C,CAAC"}
@@ -118,4 +118,5 @@ exports.averageSpeed = {
118
118
  getPropositions,
119
119
  isAnswerValid,
120
120
  subject: "Physique",
121
+ hasHintAndCorrection: true,
121
122
  };
@@ -1 +1 @@
1
- {"version":3,"file":"averageSpeedCalculation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/motion/averageSpeedCalculation.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,iBAAiB,GAAG,UAAU,GAAG,OAAO,CAAC;CAClD,CAAC;AA4MF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,WAAW,CAajE,CAAC"}
1
+ {"version":3,"file":"averageSpeedCalculation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/motion/averageSpeedCalculation.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,iBAAiB,GAAG,UAAU,GAAG,OAAO,CAAC;CAClD,CAAC;AA4MF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,WAAW,CAcjE,CAAC"}
@@ -142,4 +142,5 @@ exports.AverageSpeedCalculationExercise = {
142
142
  getPropositions,
143
143
  isAnswerValid,
144
144
  subject: "Physique",
145
+ hasHintAndCorrection: true,
145
146
  };
@@ -1 +1 @@
1
- {"version":3,"file":"motionReference.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/motion/motionReference.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,WAAW,GAAG,QAAQ,CAAC;CACnC,CAAC;AA0LF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAezD,CAAC"}
1
+ {"version":3,"file":"motionReference.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/motion/motionReference.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,WAAW,GAAG,QAAQ,CAAC;CACnC,CAAC;AA0LF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAgBzD,CAAC"}
@@ -164,4 +164,5 @@ exports.MotionReferenceExercise = {
164
164
  isAnswerValid,
165
165
  subject: "Physique",
166
166
  maxAllowedQuestions: 10,
167
+ hasHintAndCorrection: true,
167
168
  };
@@ -1 +1 @@
1
- {"version":3,"file":"pH.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/pH.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAkDF,eAAO,MAAM,EAAE,EAAE,QAAQ,CAAC,WAAW,CAapC,CAAC"}
1
+ {"version":3,"file":"pH.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/pH.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAkDF,eAAO,MAAM,EAAE,EAAE,QAAQ,CAAC,WAAW,CAcpC,CAAC"}
@@ -58,4 +58,5 @@ exports.pH = {
58
58
  freeTimer: 60,
59
59
  getPropositions,
60
60
  isAnswerValid,
61
+ hasHintAndCorrection: true,
61
62
  };
@@ -1 +1 @@
1
- {"version":3,"file":"calculatePowerOfLight.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/power/calculatePowerOfLight.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqFF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAavD,CAAC"}
1
+ {"version":3,"file":"calculatePowerOfLight.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/power/calculatePowerOfLight.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqFF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAcvD,CAAC"}
@@ -82,4 +82,5 @@ exports.calculatePowerOfLight = {
82
82
  getPropositions,
83
83
  isAnswerValid,
84
84
  subject: "Physique",
85
+ hasHintAndCorrection: true,
85
86
  };
@@ -1 +1 @@
1
- {"version":3,"file":"spectralEnergy.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/spectral/spectralEnergy.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAKnD,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,OAAO,EAAE,CAAC;IACvB,WAAW,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;IACzC,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAwJF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAaxD,CAAC"}
1
+ {"version":3,"file":"spectralEnergy.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/spectral/spectralEnergy.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAKnD,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,OAAO,EAAE,CAAC;IACvB,WAAW,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;IACzC,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAwJF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAcxD,CAAC"}
@@ -126,4 +126,5 @@ exports.SpectralEnergyExercise = {
126
126
  getPropositions,
127
127
  isAnswerValid,
128
128
  subject: "Physique",
129
+ hasHintAndCorrection: true,
129
130
  };
@@ -1 +1 @@
1
- {"version":3,"file":"lightDistanceConversion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/waves/lightDistanceConversion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AAqKF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAazD,CAAC"}
1
+ {"version":3,"file":"lightDistanceConversion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/waves/lightDistanceConversion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AAqKF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}
@@ -157,4 +157,5 @@ exports.lightDistanceConversion = {
157
157
  getPropositions,
158
158
  isAnswerValid,
159
159
  subject: "Physique",
160
+ hasHintAndCorrection: true,
160
161
  };
@@ -1 +1 @@
1
- {"version":3,"file":"periodicWaveCelerity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/waves/periodicWaveCelerity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAoGF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CActD,CAAC"}
1
+ {"version":3,"file":"periodicWaveCelerity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/waves/periodicWaveCelerity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAoGF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAetD,CAAC"}
@@ -82,4 +82,5 @@ exports.periodicWaveCelerity = {
82
82
  getPropositions,
83
83
  isAnswerValid,
84
84
  subject: "Physique",
85
+ hasHintAndCorrection: true,
85
86
  };
@@ -1 +1 @@
1
- {"version":3,"file":"calculateWeight.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/weight/calculateWeight.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AA8DF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAajD,CAAC"}
1
+ {"version":3,"file":"calculateWeight.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/weight/calculateWeight.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AA8DF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAcjD,CAAC"}
@@ -69,4 +69,5 @@ exports.calculateWeight = {
69
69
  getPropositions,
70
70
  isAnswerValid,
71
71
  subject: "Physique",
72
+ hasHintAndCorrection: true,
72
73
  };
@@ -1 +1 @@
1
- {"version":3,"file":"weightOnTheMoon.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/weight/weightOnTheMoon.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AA6FF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAcjD,CAAC"}
1
+ {"version":3,"file":"weightOnTheMoon.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/weight/weightOnTheMoon.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AA6FF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAejD,CAAC"}
@@ -78,4 +78,5 @@ exports.weightOnTheMoon = {
78
78
  getPropositions,
79
79
  isAnswerValid,
80
80
  subject: "Physique",
81
+ hasHintAndCorrection: true,
81
82
  };
package/lib/index.d.ts CHANGED
@@ -5,6 +5,9 @@ declare global {
5
5
  frenchify: () => string;
6
6
  toScientific: (decimals?: number) => AlgebraicNode;
7
7
  }
8
+ interface String {
9
+ toTree: () => AlgebraicNode;
10
+ }
8
11
  }
9
12
  /**
10
13
  * TODO
@@ -142,6 +145,12 @@ declare const mathExercises: (import("./exercises/exercise").Exercise<{
142
145
  }> | import("./exercises/exercise").Exercise<{
143
146
  nb: string;
144
147
  rankAsked: number;
148
+ }> | import("./exercises/exercise").Exercise<{
149
+ nb: number;
150
+ rankAsked: number;
151
+ }> | import("./exercises/exercise").Exercise<{
152
+ nb: number;
153
+ rankAsked: number;
145
154
  }> | import("./exercises/exercise").Exercise<{
146
155
  a: number;
147
156
  b: number;
@@ -235,6 +244,12 @@ declare const mathExercises: (import("./exercises/exercise").Exercise<{
235
244
  }> | import("./exercises/exercise").Exercise<{
236
245
  affinesCoeffs: number[][];
237
246
  operation: string;
247
+ }> | import("./exercises/exercise").Exercise<{
248
+ a: number;
249
+ b: number;
250
+ }> | import("./exercises/exercise").Exercise<{
251
+ a: number;
252
+ bOperand: number;
238
253
  }> | import("./exercises/exercise").Exercise<{
239
254
  b: number;
240
255
  c: number;
@@ -254,38 +269,6 @@ declare const mathExercises: (import("./exercises/exercise").Exercise<{
254
269
  a: number;
255
270
  b: number;
256
271
  c: number;
257
- /**
258
- * TODO
259
- * Décimal : permettre facilement -0.xxx
260
- * Tree shaking export
261
- *
262
- * VEA:
263
- * -> -3x est bien transofmré en -3*x, x*(-3) mais pas en -x*3
264
- * ->> faire le meme delire que pour les power mais pour les opposite ?
265
- * c'est à dire créer toutes les permuts en déplacant le moins qquepart
266
- * -> faire des nodes pour les Ensembles de nombre
267
- *
268
- * !-> choses pour lesquelles la v1 ne marchera pas :
269
- * !-- fractions non réduites
270
- * !-- nbs décimaux avec des 0
271
- * !-- nb quelconque de moins, genre -3*-4 ou -x/-y
272
- * !-> pour ces choses là il faut obligatoirement parser la rpéonse élève ?
273
- *
274
- * Passer les sqrtNode en tree-iable
275
- *
276
- *
277
- *
278
- * !!!à fix :
279
- * ! fraction réductible
280
- * ! 0,20 au lieu de 0,2
281
- * ! moins partout dans fraction
282
- * !puissances négatives vers inverse fraction
283
- * ! simplification du ln
284
- * ! meileure gestion des [] : le clavier devriat pouvoir produire des left/right ;
285
- * !aussi en tapant [ puis diviser, le crochet passe en numérateur
286
- * ! espace tous les 3 chiffres dans un nb (le clavier doit le fournir aussi!)
287
-
288
- */
289
272
  d: number;
290
273
  }> | import("./exercises/exercise").Exercise<{
291
274
  k: number;
@@ -617,6 +600,8 @@ declare const mathExercises: (import("./exercises/exercise").Exercise<{
617
600
  }> | import("./exercises/exercise").Exercise<{
618
601
  xValues: number[];
619
602
  imageValues: number[];
603
+ isAskingImage: boolean;
604
+ value: number;
620
605
  }> | import("./exercises/exercise").Exercise<{
621
606
  k: number;
622
607
  }> | import("./exercises/exercise").Exercise<{
@@ -692,6 +677,12 @@ declare const mathExercises: (import("./exercises/exercise").Exercise<{
692
677
  quadrinomial: number[];
693
678
  leftbound: number;
694
679
  rightbound: number;
680
+ }> | import("./exercises/exercise").Exercise<{
681
+ a: number;
682
+ b: number;
683
+ type: number;
684
+ }> | import("./exercises/exercise").Exercise<{
685
+ coeffs: number[];
695
686
  }> | import("./exercises/exercise").Exercise<{
696
687
  a: number;
697
688
  k: number;
@@ -1209,6 +1200,12 @@ declare const mathExercises: (import("./exercises/exercise").Exercise<{
1209
1200
  rank2: number;
1210
1201
  reason: number;
1211
1202
  value1: number;
1203
+ }> | import("./exercises/exercise").Exercise<{
1204
+ rank1: number;
1205
+ value1: number;
1206
+ rank2: number;
1207
+ value2: number;
1208
+ rankAsked: number;
1212
1209
  }> | import("./exercises/exercise").Exercise<{
1213
1210
  firstValue: number;
1214
1211
  reason: number;
@@ -1267,43 +1264,15 @@ declare const mathExercises: (import("./exercises/exercise").Exercise<{
1267
1264
  type: number;
1268
1265
  nb: string;
1269
1266
  }> | import("./exercises/exercise").Exercise<{
1267
+ x: number;
1268
+ y: number;
1269
+ z: number;
1270
+ }> | import("./exercises/exercise").Exercise<{}> | import("./exercises/exercise").Exercise<{}> | import("./exercises/exercise").Exercise<{
1270
1271
  sqrtOperand: number;
1271
1272
  }> | import("./exercises/exercise").Exercise<{
1272
1273
  k: number;
1273
1274
  }> | import("./exercises/exercise").Exercise<{
1274
1275
  type: number;
1275
- /**
1276
- * TODO
1277
- * Décimal : permettre facilement -0.xxx
1278
- * Tree shaking export
1279
- *
1280
- * VEA:
1281
- * -> -3x est bien transofmré en -3*x, x*(-3) mais pas en -x*3
1282
- * ->> faire le meme delire que pour les power mais pour les opposite ?
1283
- * c'est à dire créer toutes les permuts en déplacant le moins qquepart
1284
- * -> faire des nodes pour les Ensembles de nombre
1285
- *
1286
- * !-> choses pour lesquelles la v1 ne marchera pas :
1287
- * !-- fractions non réduites
1288
- * !-- nbs décimaux avec des 0
1289
- * !-- nb quelconque de moins, genre -3*-4 ou -x/-y
1290
- * !-> pour ces choses là il faut obligatoirement parser la rpéonse élève ?
1291
- *
1292
- * Passer les sqrtNode en tree-iable
1293
- *
1294
- *
1295
- *
1296
- * !!!à fix :
1297
- * ! fraction réductible
1298
- * ! 0,20 au lieu de 0,2
1299
- * ! moins partout dans fraction
1300
- * !puissances négatives vers inverse fraction
1301
- * ! simplification du ln
1302
- * ! meileure gestion des [] : le clavier devriat pouvoir produire des left/right ;
1303
- * !aussi en tapant [ puis diviser, le crochet passe en numérateur
1304
- * ! espace tous les 3 chiffres dans un nb (le clavier doit le fournir aussi!)
1305
-
1306
- */
1307
1276
  a: number;
1308
1277
  x: number;
1309
1278
  b: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,MAAM,aAAa,CAAC;QAC5B,SAAS,EAAE,MAAM,MAAM,CAAC;QACxB,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,aAAa,CAAC;KACpD;CACF;AAcD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BE;AAEF,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAA+B,CAAC;AACnD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAA6B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC"}
package/lib/index.js CHANGED
@@ -30,6 +30,10 @@ const MathExercises = __importStar(require("./exercises/math"));
30
30
  const PCExercises = __importStar(require("./exercises/pc"));
31
31
  const infiniteNode_1 = require("./tree/nodes/numbers/infiniteNode");
32
32
  const toScientific_1 = require("./utils/numberPrototype/toScientific");
33
+ const variableNode_1 = require("./tree/nodes/variables/variableNode");
34
+ String.prototype.toTree = function () {
35
+ return new variableNode_1.VariableNode(this.valueOf());
36
+ };
33
37
  Number.prototype.toTree = function () {
34
38
  const value = this.valueOf();
35
39
  if (value === Infinity)
@@ -0,0 +1,27 @@
1
+ import { AlgebraicNode } from "../../tree/nodes/algebraicNode";
2
+ type AleaBound = {
3
+ min?: number;
4
+ max?: number;
5
+ excludes?: number[];
6
+ };
7
+ export declare abstract class SpacePointConstructor {
8
+ static random(name: string, xOpts?: AleaBound, yOpts?: AleaBound, zOpts?: AleaBound): SpacePoint;
9
+ static randomDifferent(names: string[]): SpacePoint[];
10
+ }
11
+ export declare class SpacePoint {
12
+ name: string;
13
+ x: AlgebraicNode;
14
+ y: AlgebraicNode;
15
+ z: AlgebraicNode;
16
+ constructor(name: string, x: AlgebraicNode, y: AlgebraicNode, z: AlgebraicNode);
17
+ toTex(): string;
18
+ toTexWithCoords(): string;
19
+ toCoords(): string;
20
+ midpoint(B: SpacePoint, name?: string): SpacePoint;
21
+ distanceTo(B: SpacePoint): number;
22
+ equals(B: SpacePoint): boolean;
23
+ isAligned(B: SpacePoint, C: SpacePoint): void;
24
+ toGGBCommand(): string;
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=spacePoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacePoint.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/spacePoint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAI/D,KAAK,SAAS,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AACrE,8BAAsB,qBAAqB;IACzC,MAAM,CAAC,MAAM,CACX,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,SAAS,EACjB,KAAK,CAAC,EAAE,SAAS,EACjB,KAAK,CAAC,EAAE,SAAS,GAChB,UAAU;IAyBb,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE;CA4BvC;AAED,qBAAa,UAAU;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,aAAa,CAAC;IACjB,CAAC,EAAE,aAAa,CAAC;IACjB,CAAC,EAAE,aAAa,CAAC;gBAEf,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,aAAa,EAChB,CAAC,EAAE,aAAa,EAChB,CAAC,EAAE,aAAa;IAQlB,KAAK,IAAI,MAAM;IAIf,eAAe,IAAI,MAAM;IAKzB,QAAQ,IAAI,MAAM;IAIlB,QAAQ,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,SAAM,GAAG,UAAU;IAkB/C,UAAU,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM;IAIjC,MAAM,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO;IAG9B,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU;IAOtC,YAAY;CAKb"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpacePoint = exports.SpacePointConstructor = void 0;
4
+ const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
5
+ const randint_1 = require("../utils/random/randint");
6
+ class SpacePointConstructor {
7
+ static random(name, xOpts, yOpts, zOpts) {
8
+ const x = (0, randint_1.randint)(xOpts?.min ?? -9, xOpts?.max ?? 10, xOpts?.excludes ?? []);
9
+ const y = (0, randint_1.randint)(yOpts?.min ?? -9, yOpts?.max ?? 10, yOpts?.excludes ?? []);
10
+ const z = (0, randint_1.randint)(zOpts?.min ?? -9, zOpts?.max ?? 10, zOpts?.excludes ?? []);
11
+ return new SpacePoint(name, new numberNode_1.NumberNode(x), new numberNode_1.NumberNode(y), new numberNode_1.NumberNode(z));
12
+ }
13
+ static randomDifferent(names) {
14
+ const res = [];
15
+ const points = [];
16
+ for (let i = 0; i < names.length; i++) {
17
+ let x;
18
+ let y;
19
+ let z;
20
+ do {
21
+ x = (0, randint_1.randint)(-10, 11);
22
+ y = (0, randint_1.randint)(-10, 11);
23
+ z = (0, randint_1.randint)(-10, 11);
24
+ } while (points.some((point) => point[0] === x && point[1] === y && point[2] === z));
25
+ points.push([x, y, z]);
26
+ res.push(new SpacePoint(names[i], new numberNode_1.NumberNode(x), new numberNode_1.NumberNode(y), new numberNode_1.NumberNode(z)));
27
+ }
28
+ return res;
29
+ }
30
+ }
31
+ exports.SpacePointConstructor = SpacePointConstructor;
32
+ class SpacePoint {
33
+ constructor(name, x, y, z) {
34
+ this.name = name;
35
+ this.x = x;
36
+ this.y = y;
37
+ this.z = z;
38
+ }
39
+ toTex() {
40
+ return `${this.name}`;
41
+ }
42
+ toTexWithCoords() {
43
+ return `${this.name}\\left(${this.x.toTex()};${this.y.toTex()};${this.z.toTex()}\\right)`;
44
+ }
45
+ toCoords() {
46
+ return `\\left(${this.x.toTex()};${this.y.toTex()};${this.z.toTex()}\\right)`;
47
+ }
48
+ midpoint(B, name = "I") {
49
+ // const types = [this.x.type, this.y.type, B.x.type, B.y.type];
50
+ // if (types.some((type) => type !== NodeType.number)) {
51
+ // throw Error("general midpoint not implemented yet");
52
+ // }
53
+ // return new Point(
54
+ // name,
55
+ // new Rational((this.x as NumberNode).value + (B.x as NumberNode).value, 2)
56
+ // .simplify()
57
+ // .toTree(),
58
+ // new Rational((this.y as NumberNode).value + (B.y as NumberNode).value, 2)
59
+ // .simplify()
60
+ // .toTree(),
61
+ // );
62
+ throw Error("unimplemented");
63
+ }
64
+ distanceTo(B) {
65
+ throw Error("unimplemented");
66
+ }
67
+ equals(B) {
68
+ return this.x.equals(B.x) && this.y.equals(B.y) && this.z.equals(B.z);
69
+ }
70
+ isAligned(B, C) {
71
+ // const AB = VectorConstructor.fromPoints(this, B);
72
+ // const AC = VectorConstructor.fromPoints(this, C);
73
+ // return AB.isColinear(AC);
74
+ throw Error("unimplemented");
75
+ }
76
+ toGGBCommand() {
77
+ return `${this.name} = (${this.x.toMathString()}, ${this.y.toMathString()}, ${this.z.toMathString()}})`;
78
+ }
79
+ }
80
+ exports.SpacePoint = SpacePoint;
@@ -0,0 +1,28 @@
1
+ import { AlgebraicNode } from "../../tree/nodes/algebraicNode";
2
+ import { Node } from "../../tree/nodes/node";
3
+ import { SpacePoint } from "./spacePoint";
4
+ export declare abstract class SpaceVectorConstructor {
5
+ static fromPoints(origin: SpacePoint, end: SpacePoint): SpaceVector;
6
+ static random(name: string, allowNull?: boolean): SpaceVector;
7
+ static randomDifferents(names: string[], allowNull?: boolean): SpaceVector[];
8
+ }
9
+ export declare class SpaceVector {
10
+ name: string;
11
+ tex: string;
12
+ x: AlgebraicNode;
13
+ y: AlgebraicNode;
14
+ z: AlgebraicNode;
15
+ constructor(name: string, x: AlgebraicNode, y: AlgebraicNode, z: AlgebraicNode);
16
+ toTex(): string;
17
+ toInlineCoordsTex(): string;
18
+ toTexWithCoords(): string;
19
+ isColinear(v: SpaceVector): boolean;
20
+ determinant(v: SpaceVector): AlgebraicNode;
21
+ times(k: AlgebraicNode, name?: string): SpaceVector;
22
+ scalarProduct(v: SpaceVector): Node;
23
+ add(v: SpaceVector): SpaceVector;
24
+ getNorm(): AlgebraicNode;
25
+ getEndPoint(startPoint: SpacePoint, name?: string): SpacePoint;
26
+ equals(v: SpaceVector): boolean;
27
+ }
28
+ //# sourceMappingURL=spaceVector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spaceVector.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/spaceVector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAE,IAAI,EAAY,MAAM,uBAAuB,CAAC;AAQvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,8BAAsB,sBAAsB;IAC1C,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,GA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