HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/beta3I12-51pCP6Sj.js.map
{"version":3,"file":"beta3I12-51pCP6Sj.js","sources":["../../src/exercices/3e/beta3I12.js"],"sourcesContent":["import { choice } from '../../lib/outils/arrayOutils'\nimport { texteEnCouleurEtGras } from '../../lib/outils/embellissements'\nimport { listeQuestionsToContenu } from '../../modules/outils.js'\n\nimport Exercice from '../deprecatedExercice.js'\n\nimport comprendreScriptMultiples from './3I12-2.js'\nimport completerScriptDiviseurs from './3I12-3.js'\nimport comprendreScriptListeMultiples from './3I12-4.js'\nimport completerScriptMultiple from './3I12-1.js'\nexport const titre = 'Different algorithmic exercises'\nexport const uuid = 'f56d8'\n\nexport default function ExosScratch () {\n  Exercice.call(this)\n  this.nbQuestions = 5\n  this.typeExercice = 'Scratch'\n  this.nbCols = 2\n  this.nbColsCorr = 1\n  this.listePackages = 'scratch3'\n  const listeExos = [completerScriptMultiple, comprendreScriptMultiples, completerScriptDiviseurs, comprendreScriptListeMultiples]\n  const listeParams = [\n    [ // paramExo1 dans l'ordre : sup, sup2,sup3,sup4,nbQuestions\n      ['1-2-3-4', '1-2', '1-2', 1, 1], ['1-4', '1-2-3', '1-2', 2, 1]\n    ],\n    [ // paramExo2\n      ['1-2-3-4', '1-2', '1-2', 1, 1], ['1-4', '1-2-3', '1-2', 2, 1]\n    ],\n    [ // paramExo3\n      ['1-2-3-4', 3, '1-2-3', '1-2', 1]\n    ],\n    [ // paramExo4\n      ['1-2-3-4', '1-2', '1-2', false, 1]\n    ]\n  ]\n  this.nouvelleVersion = function () {\n    for (let i = 0, cpt = 0; i < this.nbQuestions && cpt < 50;) {\n      const choix = i % 4\n      const exo = new listeExos[choix]()\n      const paramExo = choice(listeParams[choix]);\n      [exo.sup, exo.sup2, exo.sup3, exo.sup4, exo.nbQuestions] = paramExo\n      exo.nouvelleVersion()\n\n      if (this.questionJamaisPosee(i, choix, exo.listeQuestions[0])) {\n        let questions = ''\n        let corrections = ''\n        for (let j = 0; j < exo.nbQuestions; j++) {\n          questions += j === 0 ? texteEnCouleurEtGras(exo.consigne, 'black') + '<br>' : ''\n          questions += exo.listeQuestions[j] + '<br>'\n          corrections += exo.listeCorrections[j] + '<br>'\n        }\n        this.listeQuestions.push(questions)\n        this.listeCorrections.push(corrections)\n        i++\n      }\n      cpt++\n    }\n    listeQuestionsToContenu(this)\n  }\n}\n"],"names":["titre","uuid","ExosScratch","Exercice","listeExos","completerScriptMultiple","comprendreScriptMultiples","completerScriptDiviseurs","comprendreScriptListeMultiples","listeParams","i","cpt","choix","exo","paramExo","choice","questions","corrections","j","texteEnCouleurEtGras","listeQuestionsToContenu"],"mappings":"6SAUY,MAACA,EAAQ,kCACRC,EAAO,QAEL,SAASC,GAAe,CACrCC,EAAS,KAAK,IAAI,EAClB,KAAK,YAAc,EACnB,KAAK,aAAe,UACpB,KAAK,OAAS,EACd,KAAK,WAAa,EAClB,KAAK,cAAgB,WACrB,MAAMC,EAAY,CAACC,EAAyBC,EAA2BC,EAA0BC,CAA8B,EACzHC,EAAc,CAClB,CACE,CAAC,UAAW,MAAO,MAAO,EAAG,CAAC,EAAG,CAAC,MAAO,QAAS,MAAO,EAAG,CAAC,CAC9D,EACD,CACE,CAAC,UAAW,MAAO,MAAO,EAAG,CAAC,EAAG,CAAC,MAAO,QAAS,MAAO,EAAG,CAAC,CAC9D,EACD,CACE,CAAC,UAAW,EAAG,QAAS,MAAO,CAAC,CACjC,EACD,CACE,CAAC,UAAW,MAAO,MAAO,GAAO,CAAC,CACnC,CACF,EACD,KAAK,gBAAkB,UAAY,CACjC,QAASC,EAAI,EAAGC,EAAM,EAAGD,EAAI,KAAK,aAAeC,EAAM,IAAK,CAC1D,MAAMC,EAAQF,EAAI,EAC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