From 25d3d4f123b6cfe5318a22abff968932ac8f661a Mon Sep 17 00:00:00 2001 From: boryanagoncharenko <3010723+boryanagoncharenko@users.noreply.github.com> Date: Sat, 25 May 2024 05:13:48 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=8A=EF=B8=8F=20Add=20support=20for=20b?= =?UTF-8?q?oolean=20values=20(#5524)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #5370 Adds support for boolean values with the following caveats: - we support both `true` and `True` as correct boolean values. Since hedy is currently case sensitive, this PR uses a workaround to support both values and does not attempt to solve the case sensitivity issue. - when printed, the boolean value will appear as a correct python value, e.g. `True`, regardless in which language it was originally written. In other words, the Bulgarian program `{print} {true}` will yield literally `True`. The problem cannot be solved with the existing mechanisms in Hedy, so a separate issue will be created to address the matter. - highlighting is still work in progress **How to test** In levels 15-18, try the following programs: ``` a is true print a ``` ``` a is true while a = True print 1 a = false print 2 ``` --- content/keywords/ar.yaml | 4 + content/keywords/bg.yaml | 4 + content/keywords/bn.yaml | 4 + content/keywords/ca.yaml | 4 + content/keywords/cs.yaml | 4 + content/keywords/cy.yaml | 4 + content/keywords/da.yaml | 4 + content/keywords/de.yaml | 4 + content/keywords/el.yaml | 4 + content/keywords/en.yaml | 4 + content/keywords/eo.yaml | 4 + content/keywords/es.yaml | 4 + content/keywords/et.yaml | 4 + content/keywords/fa.yaml | 4 + content/keywords/fi.yaml | 4 + content/keywords/fr.yaml | 4 + content/keywords/fr_CA.yaml | 4 + content/keywords/fy.yaml | 4 + content/keywords/he.yaml | 4 + content/keywords/hi.yaml | 4 + content/keywords/hu.yaml | 4 + content/keywords/ia.yaml | 4 + content/keywords/iba.yaml | 4 + content/keywords/id.yaml | 4 + content/keywords/it.yaml | 4 + content/keywords/ja.yaml | 4 + content/keywords/kmr.yaml | 4 + content/keywords/ko.yaml | 4 + content/keywords/mi.yaml | 4 + content/keywords/ms.yaml | 4 + content/keywords/nb_NO.yaml | 4 + content/keywords/nl.yaml | 4 + content/keywords/pa_PK.yaml | 4 + content/keywords/pap.yaml | 4 + content/keywords/pl.yaml | 4 + content/keywords/pt_BR.yaml | 4 + content/keywords/pt_PT.yaml | 4 + content/keywords/ro.yaml | 4 + content/keywords/ru.yaml | 4 + content/keywords/sl.yaml | 4 + content/keywords/sq.yaml | 4 + content/keywords/sr.yaml | 4 + content/keywords/sv.yaml | 4 + content/keywords/sw.yaml | 4 + content/keywords/te.yaml | 4 + content/keywords/th.yaml | 4 + content/keywords/tl.yaml | 4 + content/keywords/tn.yaml | 4 + content/keywords/tr.yaml | 4 + content/keywords/uk.yaml | 4 + content/keywords/ur.yaml | 4 + content/keywords/vi.yaml | 4 + content/keywords/zh_Hans.yaml | 4 + content/keywords/zh_Hant.yaml | 4 + grammars/keywords-ar.lark | 2 + grammars/keywords-bg.lark | 2 + grammars/keywords-bn.lark | 2 + grammars/keywords-ca.lark | 2 + grammars/keywords-cs.lark | 2 + grammars/keywords-cy.lark | 2 + grammars/keywords-da.lark | 2 + grammars/keywords-de.lark | 2 + grammars/keywords-el.lark | 2 + grammars/keywords-en.lark | 2 + grammars/keywords-eo.lark | 2 + grammars/keywords-es.lark | 2 + grammars/keywords-et.lark | 2 + grammars/keywords-fa.lark | 2 + grammars/keywords-fi.lark | 2 + grammars/keywords-fr.lark | 2 + grammars/keywords-fr_CA.lark | 2 + grammars/keywords-fy.lark | 2 + grammars/keywords-he.lark | 2 + grammars/keywords-hi.lark | 2 + grammars/keywords-hu.lark | 2 + grammars/keywords-ia.lark | 2 + grammars/keywords-iba.lark | 2 + grammars/keywords-id.lark | 2 + grammars/keywords-it.lark | 2 + grammars/keywords-ja.lark | 2 + grammars/keywords-kmr.lark | 2 + grammars/keywords-ko.lark | 2 + grammars/keywords-mi.lark | 2 + grammars/keywords-ms.lark | 2 + grammars/keywords-nb_NO.lark | 2 + grammars/keywords-nl.lark | 2 + grammars/keywords-pa_PK.lark | 2 + grammars/keywords-pap.lark | 2 + grammars/keywords-pl.lark | 2 + grammars/keywords-pt_BR.lark | 2 + grammars/keywords-pt_PT.lark | 2 + grammars/keywords-ro.lark | 2 + grammars/keywords-ru.lark | 2 + grammars/keywords-sl.lark | 2 + grammars/keywords-sq.lark | 2 + grammars/keywords-sr.lark | 2 + grammars/keywords-sv.lark | 2 + grammars/keywords-sw.lark | 2 + grammars/keywords-te.lark | 2 + grammars/keywords-template.lark | 2 + grammars/keywords-th.lark | 2 + grammars/keywords-tl.lark | 2 + grammars/keywords-tn.lark | 2 + grammars/keywords-tr.lark | 2 + grammars/keywords-uk.lark | 2 + grammars/keywords-ur.lark | 2 + grammars/keywords-vi.lark | 2 + grammars/keywords-zh_Hans.lark | 2 + grammars/keywords-zh_Hant.lark | 2 + grammars/level15-Additions.lark | 10 +- grammars/level16-Additions.lark | 10 +- grammars/level18-Additions.lark | 2 +- hedy.py | 92 +++- hedy_translation.py | 4 + highlighting/definition.py | 4 + highlighting/highlighting-trad.json | 216 ++++++++ highlighting/lezer-grammars/level15.grammar | 13 +- highlighting/lezer-grammars/level16.grammar | 13 +- highlighting/lezer-grammars/level17.grammar | 11 +- highlighting/lezer-grammars/level18.grammar | 11 +- prefixes/normal.py | 7 + static/js/appbundle.js | 492 +++++++++++++----- static/js/appbundle.js.map | 4 +- static/js/cm-editor.ts | 1 + static/js/lezer-parsers/language-packages.ts | 6 +- .../js/lezer-parsers/level15-parser.terms.ts | 104 ++-- static/js/lezer-parsers/level15-parser.ts | 26 +- .../js/lezer-parsers/level16-parser.terms.ts | 104 ++-- static/js/lezer-parsers/level16-parser.ts | 26 +- .../js/lezer-parsers/level17-parser.terms.ts | 106 ++-- static/js/lezer-parsers/level17-parser.ts | 26 +- .../js/lezer-parsers/level18-parser.terms.ts | 66 +-- static/js/lezer-parsers/level18-parser.ts | 26 +- static/js/lezer-parsers/tokens.ts | 42 +- static/js/pythonPrefixes.ts | 7 + tests/Tester.py | 1 + tests/cypress/e2e/lezer-tests/level_15.cy.js | 72 +++ tests/cypress/e2e/lezer-tests/level_16.cy.js | 7 + tests/test_level/test_level_15.py | 106 ++++ tests/test_level/test_level_16.py | 30 ++ tests/test_level/test_level_17.py | 119 +++-- tests/test_python_prefixes.py | 8 + 142 files changed, 1653 insertions(+), 445 deletions(-) create mode 100644 tests/cypress/e2e/lezer-tests/level_15.cy.js diff --git a/content/keywords/ar.yaml b/content/keywords/ar.yaml index 933d793e655..eb44ab27ac0 100644 --- a/content/keywords/ar.yaml +++ b/content/keywords/ar.yaml @@ -25,6 +25,8 @@ define: define echo: ردد elif: وإلا اذا else: وإلا +'false': 'false' +'False': 'False' for: لكل forward: تقدم from: من @@ -57,6 +59,8 @@ step: خطوة times: مرة to: الى to_list: الى +'true': 'true' +'True': 'True' turn: استدر while: بينما white: ابيض diff --git a/content/keywords/bg.yaml b/content/keywords/bg.yaml index aeca9979a2d..163fff720dc 100644 --- a/content/keywords/bg.yaml +++ b/content/keywords/bg.yaml @@ -25,6 +25,8 @@ define: дефинирай echo: покажи elif: иначе ако else: иначе +'false': невярно +'False': Невярно for: за forward: напред from: от @@ -57,6 +59,8 @@ step: стъпка times: пъти to: до to_list: до +'true': вярно +'True': Вярно turn: завий while: докато white: бяло diff --git a/content/keywords/bn.yaml b/content/keywords/bn.yaml index e9d94e1a46d..dc1a38921eb 100644 --- a/content/keywords/bn.yaml +++ b/content/keywords/bn.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/content/keywords/ca.yaml b/content/keywords/ca.yaml index da27a586631..2bce62c747c 100644 --- a/content/keywords/ca.yaml +++ b/content/keywords/ca.yaml @@ -25,6 +25,8 @@ define: defineix echo: eco elif: sinosi else: sino +'false': 'false' +'False': 'False' for: per forward: avança from: de @@ -57,6 +59,8 @@ step: pas times: vegades to: fins to_list: a +'true': 'true' +'True': 'True' turn: gira while: mentre white: blanc diff --git a/content/keywords/cs.yaml b/content/keywords/cs.yaml index e9d94e1a46d..dc1a38921eb 100644 --- a/content/keywords/cs.yaml +++ b/content/keywords/cs.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/content/keywords/cy.yaml b/content/keywords/cy.yaml index f44d9497681..6a3791445d8 100644 --- a/content/keywords/cy.yaml +++ b/content/keywords/cy.yaml @@ -25,6 +25,8 @@ define: define echo: adleisio elif: elif else: arall +'false': 'false' +'False': 'False' for: ar gyfer forward: ymlaen from: o @@ -57,6 +59,8 @@ step: cam times: gwaith to: i to_list: i +'true': 'true' +'True': 'True' turn: troi while: tra white: gwyn diff --git a/content/keywords/da.yaml b/content/keywords/da.yaml index b0837dfe5fb..69413085b14 100644 --- a/content/keywords/da.yaml +++ b/content/keywords/da.yaml @@ -25,6 +25,8 @@ define: define echo: ekko elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: fremad from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: drej while: while white: white diff --git a/content/keywords/de.yaml b/content/keywords/de.yaml index d458b4cb9fd..e87ba593968 100644 --- a/content/keywords/de.yaml +++ b/content/keywords/de.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: sofalls else: sonst +'false': 'false' +'False': 'False' for: für forward: vorwärts from: aus @@ -57,6 +59,8 @@ step: schritt times: mal to: bis to_list: zu +'true': 'true' +'True': 'True' turn: drehe while: solange white: Weiß diff --git a/content/keywords/el.yaml b/content/keywords/el.yaml index e9d94e1a46d..dc1a38921eb 100644 --- a/content/keywords/el.yaml +++ b/content/keywords/el.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/content/keywords/en.yaml b/content/keywords/en.yaml index e9d94e1a46d..dc1a38921eb 100644 --- a/content/keywords/en.yaml +++ b/content/keywords/en.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/content/keywords/eo.yaml b/content/keywords/eo.yaml index 6aa8dd0f1d3..b3045fe7e7f 100644 --- a/content/keywords/eo.yaml +++ b/content/keywords/eo.yaml @@ -25,6 +25,8 @@ define: define echo: eĥu|ehhu|ehxu|e^hu|eh^u elif: alie se else: alie +'false': 'false' +'False': 'False' for: por forward: antaŭen|antauen|antauxen from: el @@ -57,6 +59,8 @@ step: paŝo|pasho|pasxo|pa^so|pas^o times: fojojn to: ĝis|ghis|gxis|^gis|g^is to_list: al +'true': 'true' +'True': 'True' turn: turnu while: dum white: blanka diff --git a/content/keywords/es.yaml b/content/keywords/es.yaml index 1999915136a..4a4a645c424 100644 --- a/content/keywords/es.yaml +++ b/content/keywords/es.yaml @@ -25,6 +25,8 @@ define: definir echo: eco elif: sinosi else: sino +'false': 'false' +'False': 'False' for: para forward: adelante from: de @@ -57,6 +59,8 @@ step: paso times: veces to: a to_list: a +'true': 'true' +'True': 'True' turn: girar while: mientras white: blanco diff --git a/content/keywords/et.yaml b/content/keywords/et.yaml index bba1ce03337..a756728185e 100644 --- a/content/keywords/et.yaml +++ b/content/keywords/et.yaml @@ -25,6 +25,8 @@ define: define echo: peegelda elif: muidukui else: muidu +'false': 'false' +'False': 'False' for: jaoks forward: edasi from: nimistust @@ -57,6 +59,8 @@ step: sammuga times: korda to: kuni to_list: nimistusse +'true': 'true' +'True': 'True' turn: pööra while: senikui white: valge diff --git a/content/keywords/fa.yaml b/content/keywords/fa.yaml index ff361a83b57..c69abfbe170 100644 --- a/content/keywords/fa.yaml +++ b/content/keywords/fa.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: به جلو from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: دور بزن while: while white: سفید diff --git a/content/keywords/fi.yaml b/content/keywords/fi.yaml index c1796e641fb..9de5afb3c35 100644 --- a/content/keywords/fi.yaml +++ b/content/keywords/fi.yaml @@ -25,6 +25,8 @@ define: define echo: kaiku elif: muutenjos else: muuten +'false': 'false' +'False': 'False' for: jokaiselle forward: eteenpäin from: listasta @@ -57,6 +59,8 @@ step: askel times: kertaa to: asti to_list: listaksi +'true': 'true' +'True': 'True' turn: käänny while: kun white: valkoinen diff --git a/content/keywords/fr.yaml b/content/keywords/fr.yaml index 90728b0911e..42345eadeea 100644 --- a/content/keywords/fr.yaml +++ b/content/keywords/fr.yaml @@ -25,6 +25,8 @@ define: définis echo: réponds elif: sinon si else: sinon +'false': 'false' +'False': 'False' for: pour forward: avance from: de @@ -57,6 +59,8 @@ step: pas times: fois to: à to_list: à +'true': 'true' +'True': 'True' turn: tourne while: tant que white: blanc diff --git a/content/keywords/fr_CA.yaml b/content/keywords/fr_CA.yaml index 90728b0911e..42345eadeea 100644 --- a/content/keywords/fr_CA.yaml +++ b/content/keywords/fr_CA.yaml @@ -25,6 +25,8 @@ define: définis echo: réponds elif: sinon si else: sinon +'false': 'false' +'False': 'False' for: pour forward: avance from: de @@ -57,6 +59,8 @@ step: pas times: fois to: à to_list: à +'true': 'true' +'True': 'True' turn: tourne while: tant que white: blanc diff --git a/content/keywords/fy.yaml b/content/keywords/fy.yaml index e9d94e1a46d..dc1a38921eb 100644 --- a/content/keywords/fy.yaml +++ b/content/keywords/fy.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/content/keywords/he.yaml b/content/keywords/he.yaml index 94943872662..eee9b137dec 100644 --- a/content/keywords/he.yaml +++ b/content/keywords/he.yaml @@ -25,6 +25,8 @@ define: define echo: הדהד elif: אחרתאם else: אחרת +'false': 'false' +'False': 'False' for: לכל forward: קדימה from: מ @@ -57,6 +59,8 @@ step: צעד times: פעמים to: עד to_list: אל +'true': 'true' +'True': 'True' turn: פנה while: כלעוד white: לבן diff --git a/content/keywords/hi.yaml b/content/keywords/hi.yaml index eb750421049..654e6f08a4f 100644 --- a/content/keywords/hi.yaml +++ b/content/keywords/hi.yaml @@ -25,6 +25,8 @@ define: define echo: गूंज elif: एलिफ else: अन्यथा +'false': 'false' +'False': 'False' for: के लिये forward: आगे from: से @@ -57,6 +59,8 @@ step: क़दम times: बार to: से to_list: से +'true': 'true' +'True': 'True' turn: मोड़ while: व्हाइल white: सफ़ेद diff --git a/content/keywords/hu.yaml b/content/keywords/hu.yaml index 14830773a30..a8fe71f81c0 100644 --- a/content/keywords/hu.yaml +++ b/content/keywords/hu.yaml @@ -25,6 +25,8 @@ define: define echo: utánoz elif: egybk-ha else: egyébként +'false': 'false' +'False': 'False' for: minden forward: előre from: ebből @@ -57,6 +59,8 @@ step: lépésenként times: alkalommal to: től to_list: ebbe +'true': 'true' +'True': 'True' turn: fordul while: amíg white: fehér diff --git a/content/keywords/ia.yaml b/content/keywords/ia.yaml index e9d94e1a46d..dc1a38921eb 100644 --- a/content/keywords/ia.yaml +++ b/content/keywords/ia.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/content/keywords/iba.yaml b/content/keywords/iba.yaml index cb2ebccb7a7..ec94800e07a 100644 --- a/content/keywords/iba.yaml +++ b/content/keywords/iba.yaml @@ -1,4 +1,6 @@ define: define +'true': 'true' +'True': 'True' turn: turn if: if button: button @@ -9,6 +11,8 @@ and: and remove: remove d7: '7' d5: '5' +'false': 'false' +'False': 'False' for: for clear: clear gray: gray diff --git a/content/keywords/id.yaml b/content/keywords/id.yaml index 89fd7b0a1a8..18c8df8af5a 100644 --- a/content/keywords/id.yaml +++ b/content/keywords/id.yaml @@ -25,6 +25,8 @@ define: define echo: gaungkan elif: lain_jika else: lainnya +'false': 'false' +'False': 'False' for: untuk forward: maju from: dari @@ -57,6 +59,8 @@ step: langkah times: kali to: ke to_list: ke +'true': 'true' +'True': 'True' turn: belok while: selama white: white diff --git a/content/keywords/it.yaml b/content/keywords/it.yaml index 55238d6fca4..02e20433268 100644 --- a/content/keywords/it.yaml +++ b/content/keywords/it.yaml @@ -25,6 +25,8 @@ define: define echo: eco elif: altrimenti se else: altrimenti +'false': 'false' +'False': 'False' for: for forward: avanti from: da @@ -57,6 +59,8 @@ step: passo times: volte to: to to_list: to +'true': 'true' +'True': 'True' turn: gira while: mentre white: bianco diff --git a/content/keywords/ja.yaml b/content/keywords/ja.yaml index 69f388ea948..997bfbd5536 100644 --- a/content/keywords/ja.yaml +++ b/content/keywords/ja.yaml @@ -25,6 +25,8 @@ define: define echo: まね elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: すすめ from: from @@ -57,6 +59,8 @@ step: step times: かい to: to to_list: to +'true': 'true' +'True': 'True' turn: まわれ while: while white: しろ diff --git a/content/keywords/kmr.yaml b/content/keywords/kmr.yaml index e9d94e1a46d..dc1a38921eb 100644 --- a/content/keywords/kmr.yaml +++ b/content/keywords/kmr.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/content/keywords/ko.yaml b/content/keywords/ko.yaml index e9d94e1a46d..dc1a38921eb 100644 --- a/content/keywords/ko.yaml +++ b/content/keywords/ko.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/content/keywords/mi.yaml b/content/keywords/mi.yaml index e9d94e1a46d..dc1a38921eb 100644 --- a/content/keywords/mi.yaml +++ b/content/keywords/mi.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/content/keywords/ms.yaml b/content/keywords/ms.yaml index e75700ffcd7..eaebb7af0e2 100644 --- a/content/keywords/ms.yaml +++ b/content/keywords/ms.yaml @@ -9,6 +9,8 @@ call: call add: add blue: blue define: define +'true': 'true' +'True': 'True' turn: turn if: if d2: '2' @@ -16,6 +18,8 @@ from: from remove: remove d7: '7' d5: '5' +'false': 'false' +'False': 'False' for: for gray: gray pink: pink diff --git a/content/keywords/nb_NO.yaml b/content/keywords/nb_NO.yaml index 07f5e950c41..228d3c32691 100644 --- a/content/keywords/nb_NO.yaml +++ b/content/keywords/nb_NO.yaml @@ -25,6 +25,8 @@ define: define echo: ekko elif: elhvis else: ellers +'false': 'false' +'False': 'False' for: for forward: frem from: fra @@ -57,6 +59,8 @@ step: steg times: ganger to: til to_list: til +'true': 'true' +'True': 'True' turn: snu while: mens white: white diff --git a/content/keywords/nl.yaml b/content/keywords/nl.yaml index 9ca5377bfc9..4e2e6bc904d 100644 --- a/content/keywords/nl.yaml +++ b/content/keywords/nl.yaml @@ -25,6 +25,8 @@ define: definieer echo: echo elif: alsanders else: anders +'false': 'false' +'False': 'False' for: voor forward: vooruit from: uit @@ -57,6 +59,8 @@ step: stap times: keer to: tot to_list: toe aan +'true': 'true' +'True': 'True' turn: draai while: zolang white: wit diff --git a/content/keywords/pa_PK.yaml b/content/keywords/pa_PK.yaml index 7f48e7af0b3..f4b2290e860 100644 --- a/content/keywords/pa_PK.yaml +++ b/content/keywords/pa_PK.yaml @@ -25,6 +25,8 @@ define: define echo: فیر elif: ہور else: وکھرا +'false': 'false' +'False': 'False' for: جدوں forward: اگے from: سروت @@ -57,6 +59,8 @@ step: سطر times: ضرب to: منزل to_list: منزل +'true': 'true' +'True': 'True' turn: موڑن while: جدکہ white: چٹا diff --git a/content/keywords/pap.yaml b/content/keywords/pap.yaml index e9d94e1a46d..dc1a38921eb 100644 --- a/content/keywords/pap.yaml +++ b/content/keywords/pap.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/content/keywords/pl.yaml b/content/keywords/pl.yaml index 8119a3c90cf..532f2c9c067 100644 --- a/content/keywords/pl.yaml +++ b/content/keywords/pl.yaml @@ -25,6 +25,8 @@ define: define echo: dołącz elif: albo else: inaczej +'false': 'false' +'False': 'False' for: dla forward: naprzód from: z @@ -57,6 +59,8 @@ step: krok times: razy to: do to_list: do +'true': 'true' +'True': 'True' turn: obróć while: dopóki white: biały diff --git a/content/keywords/pt_BR.yaml b/content/keywords/pt_BR.yaml index c6cee31c810..0ee2ab81920 100644 --- a/content/keywords/pt_BR.yaml +++ b/content/keywords/pt_BR.yaml @@ -25,6 +25,8 @@ define: defina echo: eco elif: senão se else: senão +'false': 'false' +'False': 'False' for: para forward: adiante from: de @@ -57,6 +59,8 @@ step: passo times: vezes to: para to_list: a +'true': 'true' +'True': 'True' turn: gire while: enquanto white: branco diff --git a/content/keywords/pt_PT.yaml b/content/keywords/pt_PT.yaml index 93639a46287..5789b9d2bcf 100644 --- a/content/keywords/pt_PT.yaml +++ b/content/keywords/pt_PT.yaml @@ -25,6 +25,8 @@ define: define echo: eco elif: elif else: senão +'false': 'false' +'False': 'False' for: for forward: avançar from: de @@ -57,6 +59,8 @@ step: passo times: vezes to: to to_list: para +'true': 'true' +'True': 'True' turn: virar while: enquanto white: branco diff --git a/content/keywords/ro.yaml b/content/keywords/ro.yaml index 41656db328b..c43911acd47 100644 --- a/content/keywords/ro.yaml +++ b/content/keywords/ro.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: altfel dacă else: else +'false': 'false' +'False': 'False' for: pentru forward: înainte from: de la @@ -57,6 +59,8 @@ step: pas times: inmulțit to: către to_list: către +'true': 'true' +'True': 'True' turn: intoarce while: în timp ce white: alb diff --git a/content/keywords/ru.yaml b/content/keywords/ru.yaml index 4c2a29b8274..e95320c895c 100644 --- a/content/keywords/ru.yaml +++ b/content/keywords/ru.yaml @@ -25,6 +25,8 @@ define: define echo: повторить elif: иначе, если else: иначе +'false': 'false' +'False': 'False' for: для forward: вперёд from: из @@ -57,6 +59,8 @@ step: шаг times: раз to: до to_list: в +'true': 'true' +'True': 'True' turn: повернуть while: пока white: белый diff --git a/content/keywords/sl.yaml b/content/keywords/sl.yaml index baf58a3d317..817bd22f53d 100644 --- a/content/keywords/sl.yaml +++ b/content/keywords/sl.yaml @@ -25,6 +25,8 @@ define: definiraj echo: ponovi elif: aliče else: drugače +'false': 'false' +'False': 'False' for: za forward: naprej from: od @@ -57,6 +59,8 @@ step: korak times: krat to: do to_list: do +'true': 'true' +'True': 'True' turn: obrni while: medtem ko white: bela diff --git a/content/keywords/sq.yaml b/content/keywords/sq.yaml index 4e4ad9095dd..34c8199da05 100644 --- a/content/keywords/sq.yaml +++ b/content/keywords/sq.yaml @@ -25,6 +25,8 @@ define: defino echo: përsërit elif: nendryshe else: ndryshe +'false': 'false' +'False': 'False' for: për forward: përpara from: nga @@ -57,6 +59,8 @@ step: hap times: her to: deri to_list: deri +'true': 'true' +'True': 'True' turn: kthesë while: derisa white: bardhë diff --git a/content/keywords/sr.yaml b/content/keywords/sr.yaml index 0658149552d..f12a1ad62f2 100644 --- a/content/keywords/sr.yaml +++ b/content/keywords/sr.yaml @@ -25,6 +25,8 @@ define: definiši echo: pokaži elif: inače ako else: inače +'false': 'false' +'False': 'False' for: za forward: napred from: od @@ -57,6 +59,8 @@ step: korak times: vremena to: u to_list: u +'true': 'true' +'True': 'True' turn: okreni while: dok white: bela diff --git a/content/keywords/sv.yaml b/content/keywords/sv.yaml index b4aae53ba7d..e1193518ee7 100644 --- a/content/keywords/sv.yaml +++ b/content/keywords/sv.yaml @@ -25,6 +25,8 @@ define: definiera echo: eko elif: anom else: annars +'false': 'false' +'False': 'False' for: för forward: framåt from: från @@ -57,6 +59,8 @@ step: steg times: gånger to: till to_list: till +'true': 'true' +'True': 'True' turn: sväng while: medan white: vit diff --git a/content/keywords/sw.yaml b/content/keywords/sw.yaml index e9d94e1a46d..dc1a38921eb 100644 --- a/content/keywords/sw.yaml +++ b/content/keywords/sw.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/content/keywords/te.yaml b/content/keywords/te.yaml index d846cdf56c3..0d46efad922 100644 --- a/content/keywords/te.yaml +++ b/content/keywords/te.yaml @@ -25,6 +25,8 @@ define: define echo: ప్రతిధ్వని elif: మరొకటి ఉంటే else: లేకపోతే +'false': 'false' +'False': 'False' for: కోసం forward: ముందుకు from: నుండి @@ -57,6 +59,8 @@ step: అడుగు times: సార్లు to: కు to_list: కు +'true': 'true' +'True': 'True' turn: మలుపు while: అయితే white: white diff --git a/content/keywords/th.yaml b/content/keywords/th.yaml index 7f1871f9546..4ac68fd6e63 100644 --- a/content/keywords/th.yaml +++ b/content/keywords/th.yaml @@ -25,6 +25,8 @@ define: define echo: พูด elif: หรือถ้า else: ไม่อย่างนั้น +'false': 'false' +'False': 'False' for: ให้ forward: เดินหน้า from: จาก @@ -57,6 +59,8 @@ step: เดิน times: ครั้ง to: จนถึง to_list: ไปยัง +'true': 'true' +'True': 'True' turn: เลี้ยว while: เมื่อไหร่ก็ตามที่ white: ขาว diff --git a/content/keywords/tl.yaml b/content/keywords/tl.yaml index e9d94e1a46d..dc1a38921eb 100644 --- a/content/keywords/tl.yaml +++ b/content/keywords/tl.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/content/keywords/tn.yaml b/content/keywords/tn.yaml index 8bdd4cbfab2..4033afd12bb 100644 --- a/content/keywords/tn.yaml +++ b/content/keywords/tn.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/content/keywords/tr.yaml b/content/keywords/tr.yaml index 0e7d74cd1a6..3c58145f4dc 100644 --- a/content/keywords/tr.yaml +++ b/content/keywords/tr.yaml @@ -25,6 +25,8 @@ define: tanımla echo: yankıla elif: değileğer else: değilse +'false': 'false' +'False': 'False' for: şunun için forward: ileri from: şuradan @@ -57,6 +59,8 @@ step: adım times: kere to: şuraya to_list: şuraya +'true': 'true' +'True': 'True' turn: döndür while: şu iken white: beyaz diff --git a/content/keywords/uk.yaml b/content/keywords/uk.yaml index 78b7399a06f..677b6b25aa3 100644 --- a/content/keywords/uk.yaml +++ b/content/keywords/uk.yaml @@ -25,6 +25,8 @@ define: define echo: ехо elif: інакше якщо else: інакше +'false': 'false' +'False': 'False' for: для forward: вперед from: iз|з @@ -57,6 +59,8 @@ step: крок times: разів|рази|раз to: до to_list: до +'true': 'true' +'True': 'True' turn: поверни while: тоді як white: білий diff --git a/content/keywords/ur.yaml b/content/keywords/ur.yaml index 824826a748a..b40bd149aea 100644 --- a/content/keywords/ur.yaml +++ b/content/keywords/ur.yaml @@ -25,6 +25,8 @@ define: define echo: پکار elif: یااگر else: ورنہ +'false': 'false' +'False': 'False' for: فی forward: آگے from: سے @@ -57,6 +59,8 @@ step: قدم times: دفعہ to: سے to_list: اندر +'true': 'true' +'True': 'True' turn: مڑو while: جبتک white: سفید diff --git a/content/keywords/vi.yaml b/content/keywords/vi.yaml index cea155d90ed..558597dccf8 100644 --- a/content/keywords/vi.yaml +++ b/content/keywords/vi.yaml @@ -25,6 +25,8 @@ define: define echo: đáp elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: tiến from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: quay while: while white: trắng diff --git a/content/keywords/zh_Hans.yaml b/content/keywords/zh_Hans.yaml index 39f7f634df3..c81ef04b7cf 100644 --- a/content/keywords/zh_Hans.yaml +++ b/content/keywords/zh_Hans.yaml @@ -25,6 +25,8 @@ define: 定义 echo: 回声 elif: 否则如果 else: 否则 +'false': 'false' +'False': 'False' for: 取 forward: 向前 from: 从 @@ -57,6 +59,8 @@ step: 步 times: 次 to: 到 to_list: 到 +'true': 'true' +'True': 'True' turn: 旋转 while: 当 white: 白色 diff --git a/content/keywords/zh_Hant.yaml b/content/keywords/zh_Hant.yaml index e9d94e1a46d..dc1a38921eb 100644 --- a/content/keywords/zh_Hant.yaml +++ b/content/keywords/zh_Hant.yaml @@ -25,6 +25,8 @@ define: define echo: echo elif: elif else: else +'false': 'false' +'False': 'False' for: for forward: forward from: from @@ -57,6 +59,8 @@ step: step times: times to: to to_list: to +'true': 'true' +'True': 'True' turn: turn while: while white: white diff --git a/grammars/keywords-ar.lark b/grammars/keywords-ar.lark index 6bbfaf09e54..c2fb05c5174 100644 --- a/grammars/keywords-ar.lark +++ b/grammars/keywords-ar.lark @@ -51,3 +51,5 @@ _COLOR : ( "ـ"* "ل" "ـ"* "و" "ـ"* "ن" "ـ"* | "color") _SPACE? _PRESSED: ( "ـ"* "م" "ـ"* "ض" "ـ"* "غ" "ـ"* "و" "ـ"* "ط" "ـ"* | "pressed") _SPACE? _BUTTON: ( "ـ"* "b" "ـ"* "u" "ـ"* "t" "ـ"* "t" "ـ"* "o" "ـ"* "n" "ـ"* | "button") _SPACE? clear: ( "ـ"* "م" "ـ"* "س" "ـ"* "ح" "ـ"* | "clear") _SPACE? +TRUE: ( "ـ"* "t" "ـ"* "r" "ـ"* "u" "ـ"* "e" "ـ"* | "ـ"* "T" "ـ"* "r" "ـ"* "u" "ـ"* "e" "ـ"* | "true" | "True") _SPACE? +FALSE: ( "ـ"* "f" "ـ"* "a" "ـ"* "l" "ـ"* "s" "ـ"* "e" "ـ"* | "ـ"* "F" "ـ"* "a" "ـ"* "l" "ـ"* "s" "ـ"* "e" "ـ"* | "false" | "False") _SPACE? diff --git a/grammars/keywords-bg.lark b/grammars/keywords-bg.lark index 10d7a13921a..ff62d3d932b 100644 --- a/grammars/keywords-bg.lark +++ b/grammars/keywords-bg.lark @@ -51,3 +51,5 @@ _COLOR : ("цвят" | "color") _SPACE? _PRESSED: ("натиснат" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("изчисти" | "clear") _SPACE? +TRUE: ("вярно" | "Вярно" | "true" | "True") _SPACE? +FALSE: ("невярно" | "Невярно" | "false" | "False") _SPACE? diff --git a/grammars/keywords-bn.lark b/grammars/keywords-bn.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-bn.lark +++ b/grammars/keywords-bn.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-ca.lark b/grammars/keywords-ca.lark index d12ff0e6f87..003fcdb8a7b 100644 --- a/grammars/keywords-ca.lark +++ b/grammars/keywords-ca.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressionat" | "pressed") _SPACE? _BUTTON: ("boto" | "button") _SPACE? clear: ("neteja" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-cs.lark b/grammars/keywords-cs.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-cs.lark +++ b/grammars/keywords-cs.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-cy.lark b/grammars/keywords-cy.lark index a87f0e133fd..9cbaac763e1 100644 --- a/grammars/keywords-cy.lark +++ b/grammars/keywords-cy.lark @@ -51,3 +51,5 @@ _COLOR : ("lliw" | "color") _SPACE? _PRESSED: ("gwasgu" | "pressed") _SPACE? _BUTTON: ("botwm" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-da.lark b/grammars/keywords-da.lark index b67f5c16e65..fe2ea57ce36 100644 --- a/grammars/keywords-da.lark +++ b/grammars/keywords-da.lark @@ -51,3 +51,5 @@ _COLOR : ("farve" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-de.lark b/grammars/keywords-de.lark index b741e3b0d71..644371415e9 100644 --- a/grammars/keywords-de.lark +++ b/grammars/keywords-de.lark @@ -51,3 +51,5 @@ _COLOR : ("farbe" | "color") _SPACE? _PRESSED: ("gedrückt" | "pressed") _SPACE? _BUTTON: ("knopf" | "button") _SPACE? clear: ("abwischen" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-el.lark b/grammars/keywords-el.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-el.lark +++ b/grammars/keywords-el.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-en.lark b/grammars/keywords-en.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-en.lark +++ b/grammars/keywords-en.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-eo.lark b/grammars/keywords-eo.lark index 7ac967d52d5..3b6d66e45df 100644 --- a/grammars/keywords-eo.lark +++ b/grammars/keywords-eo.lark @@ -51,3 +51,5 @@ _COLOR : ("koloro" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-es.lark b/grammars/keywords-es.lark index 8cbba86648e..9c742529b17 100644 --- a/grammars/keywords-es.lark +++ b/grammars/keywords-es.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("presionada" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("limpiar" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-et.lark b/grammars/keywords-et.lark index 250251f3939..e55e6e7921d 100644 --- a/grammars/keywords-et.lark +++ b/grammars/keywords-et.lark @@ -51,3 +51,5 @@ _COLOR : ("värv" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-fa.lark b/grammars/keywords-fa.lark index 887835e8c48..a8698e38a5b 100644 --- a/grammars/keywords-fa.lark +++ b/grammars/keywords-fa.lark @@ -51,3 +51,5 @@ _COLOR : ("رنگ" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-fi.lark b/grammars/keywords-fi.lark index 8ba8b2acb18..8a1f434bcdd 100644 --- a/grammars/keywords-fi.lark +++ b/grammars/keywords-fi.lark @@ -51,3 +51,5 @@ _COLOR : ("väri" | "color") _SPACE? _PRESSED: ("painettu" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("nollaa" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-fr.lark b/grammars/keywords-fr.lark index 509711a7ff3..91cbe5b0225 100644 --- a/grammars/keywords-fr.lark +++ b/grammars/keywords-fr.lark @@ -51,3 +51,5 @@ _COLOR : ("couleur" | "color") _SPACE? _PRESSED: ("pressé" | "pressed") _SPACE? _BUTTON: ("bouton" | "button") _SPACE? clear: ("effacer" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-fr_CA.lark b/grammars/keywords-fr_CA.lark index 509711a7ff3..91cbe5b0225 100644 --- a/grammars/keywords-fr_CA.lark +++ b/grammars/keywords-fr_CA.lark @@ -51,3 +51,5 @@ _COLOR : ("couleur" | "color") _SPACE? _PRESSED: ("pressé" | "pressed") _SPACE? _BUTTON: ("bouton" | "button") _SPACE? clear: ("effacer" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-fy.lark b/grammars/keywords-fy.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-fy.lark +++ b/grammars/keywords-fy.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-he.lark b/grammars/keywords-he.lark index 16a6c01a988..9b642e7a18f 100644 --- a/grammars/keywords-he.lark +++ b/grammars/keywords-he.lark @@ -51,3 +51,5 @@ _COLOR : ("צבע" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-hi.lark b/grammars/keywords-hi.lark index f760f9e34c1..57d0e827513 100644 --- a/grammars/keywords-hi.lark +++ b/grammars/keywords-hi.lark @@ -51,3 +51,5 @@ _COLOR : ("रंग" | "color") _SPACE? _PRESSED: ("दबाया गया" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("साफ़" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-hu.lark b/grammars/keywords-hu.lark index 3382543e850..9c1815543b6 100644 --- a/grammars/keywords-hu.lark +++ b/grammars/keywords-hu.lark @@ -51,3 +51,5 @@ _COLOR : ("szín" | "color") _SPACE? _PRESSED: ("lenyomva" | "pressed") _SPACE? _BUTTON: ("gomb" | "button") _SPACE? clear: ("törlés" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-ia.lark b/grammars/keywords-ia.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-ia.lark +++ b/grammars/keywords-ia.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-iba.lark b/grammars/keywords-iba.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-iba.lark +++ b/grammars/keywords-iba.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-id.lark b/grammars/keywords-id.lark index fa916a881da..c5e1e7dee63 100644 --- a/grammars/keywords-id.lark +++ b/grammars/keywords-id.lark @@ -51,3 +51,5 @@ _COLOR : ("warna" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-it.lark b/grammars/keywords-it.lark index 13bfd12cc36..81658a7c84d 100644 --- a/grammars/keywords-it.lark +++ b/grammars/keywords-it.lark @@ -51,3 +51,5 @@ _COLOR : ("colore" | "color") _SPACE? _PRESSED: ("Premuto" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("Elimina" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-ja.lark b/grammars/keywords-ja.lark index be3d6fe0f5e..8078d3dc4dd 100644 --- a/grammars/keywords-ja.lark +++ b/grammars/keywords-ja.lark @@ -51,3 +51,5 @@ _COLOR : ("いろ" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-kmr.lark b/grammars/keywords-kmr.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-kmr.lark +++ b/grammars/keywords-kmr.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-ko.lark b/grammars/keywords-ko.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-ko.lark +++ b/grammars/keywords-ko.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-mi.lark b/grammars/keywords-mi.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-mi.lark +++ b/grammars/keywords-mi.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-ms.lark b/grammars/keywords-ms.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-ms.lark +++ b/grammars/keywords-ms.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-nb_NO.lark b/grammars/keywords-nb_NO.lark index 70ecf337e6a..8f47b84c4fd 100644 --- a/grammars/keywords-nb_NO.lark +++ b/grammars/keywords-nb_NO.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-nl.lark b/grammars/keywords-nl.lark index 29461835475..853f5f8c1a1 100644 --- a/grammars/keywords-nl.lark +++ b/grammars/keywords-nl.lark @@ -51,3 +51,5 @@ _COLOR : ("kleur" | "color") _SPACE? _PRESSED: ("ingedrukt" | "pressed") _SPACE? _BUTTON: ("knop" | "button") _SPACE? clear: ("wis" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-pa_PK.lark b/grammars/keywords-pa_PK.lark index 3d95448369f..b4222954151 100644 --- a/grammars/keywords-pa_PK.lark +++ b/grammars/keywords-pa_PK.lark @@ -51,3 +51,5 @@ _COLOR : ("رنگ" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-pap.lark b/grammars/keywords-pap.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-pap.lark +++ b/grammars/keywords-pap.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-pl.lark b/grammars/keywords-pl.lark index 40ec702414e..a1b408ba3e7 100644 --- a/grammars/keywords-pl.lark +++ b/grammars/keywords-pl.lark @@ -51,3 +51,5 @@ _COLOR : ("kolor" | "color") _SPACE? _PRESSED: ("naciśnięty" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("wyczyść" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-pt_BR.lark b/grammars/keywords-pt_BR.lark index 76e8c7eb685..7210cf4713e 100644 --- a/grammars/keywords-pt_BR.lark +++ b/grammars/keywords-pt_BR.lark @@ -51,3 +51,5 @@ _COLOR : ("cor" | "color") _SPACE? _PRESSED: ("apertado" | "pressed") _SPACE? _BUTTON: ("botão" | "button") _SPACE? clear: ("limpe" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-pt_PT.lark b/grammars/keywords-pt_PT.lark index 97382490152..229ca2dfbb3 100644 --- a/grammars/keywords-pt_PT.lark +++ b/grammars/keywords-pt_PT.lark @@ -51,3 +51,5 @@ _COLOR : ("cor" | "color") _SPACE? _PRESSED: ("pressionado" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("limpar" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-ro.lark b/grammars/keywords-ro.lark index 689047ad523..dd2b026b9a2 100644 --- a/grammars/keywords-ro.lark +++ b/grammars/keywords-ro.lark @@ -51,3 +51,5 @@ _COLOR : ("culoare" | "color") _SPACE? _PRESSED: ("apăsat" | "pressed") _SPACE? _BUTTON: ("buton" | "button") _SPACE? clear: ("șterge" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-ru.lark b/grammars/keywords-ru.lark index 94c988f5986..3ccbc4fe04e 100644 --- a/grammars/keywords-ru.lark +++ b/grammars/keywords-ru.lark @@ -51,3 +51,5 @@ _COLOR : ("цвет" | "color") _SPACE? _PRESSED: ("нажмите" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("очистить" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-sl.lark b/grammars/keywords-sl.lark index 406866037a5..f90bbc76f58 100644 --- a/grammars/keywords-sl.lark +++ b/grammars/keywords-sl.lark @@ -51,3 +51,5 @@ _COLOR : ("barva" | "color") _SPACE? _PRESSED: ("pritisnjen" | "pressed") _SPACE? _BUTTON: ("gumb" | "button") _SPACE? clear: ("počisti" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-sq.lark b/grammars/keywords-sq.lark index 46457b89f6c..86a90fd79bf 100644 --- a/grammars/keywords-sq.lark +++ b/grammars/keywords-sq.lark @@ -51,3 +51,5 @@ _COLOR : ("ngjyrë" | "color") _SPACE? _PRESSED: ("shtypur" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("pastro" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-sr.lark b/grammars/keywords-sr.lark index 44cb136f3c4..a978501aaff 100644 --- a/grammars/keywords-sr.lark +++ b/grammars/keywords-sr.lark @@ -51,3 +51,5 @@ _COLOR : ("boja" | "color") _SPACE? _PRESSED: ("pritisnuto" | "pressed") _SPACE? _BUTTON: ("dugme" | "button") _SPACE? clear: ("očisti" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-sv.lark b/grammars/keywords-sv.lark index fedb08a96b4..f48895cd7a0 100644 --- a/grammars/keywords-sv.lark +++ b/grammars/keywords-sv.lark @@ -51,3 +51,5 @@ _COLOR : ("färg" | "color") _SPACE? _PRESSED: ("nedtryckt" | "pressed") _SPACE? _BUTTON: ("knapp" | "button") _SPACE? clear: ("rensa" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-sw.lark b/grammars/keywords-sw.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-sw.lark +++ b/grammars/keywords-sw.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-te.lark b/grammars/keywords-te.lark index ab0f2c73c25..c6d56e97c5e 100644 --- a/grammars/keywords-te.lark +++ b/grammars/keywords-te.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("బటన్" | "button") _SPACE? clear: ("తుడిచివేయి" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-template.lark b/grammars/keywords-template.lark index 6cc7c680388..e60d8d6299f 100644 --- a/grammars/keywords-template.lark +++ b/grammars/keywords-template.lark @@ -51,3 +51,5 @@ _COLOR : ({color} | "color") _SPACE? _PRESSED: ({pressed} | "pressed") _SPACE? _BUTTON: ({button} | "button") _SPACE? clear: ({clear} | "clear") _SPACE? +TRUE: ({true} | {True} | "true" | "True") _SPACE? +FALSE: ({false} | {False} | "false" | "False") _SPACE? diff --git a/grammars/keywords-th.lark b/grammars/keywords-th.lark index f3e2c708063..c8bc8017e60 100644 --- a/grammars/keywords-th.lark +++ b/grammars/keywords-th.lark @@ -51,3 +51,5 @@ _COLOR : ("สี" | "color") _SPACE? _PRESSED: ("ปุ่มที่ถูกกด" | "pressed") _SPACE? _BUTTON: ("ปุ่ม" | "button") _SPACE? clear: ("ลบกระดาน" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-tl.lark b/grammars/keywords-tl.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-tl.lark +++ b/grammars/keywords-tl.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-tn.lark b/grammars/keywords-tn.lark index ee132056bbf..514f9bf22ed 100644 --- a/grammars/keywords-tn.lark +++ b/grammars/keywords-tn.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-tr.lark b/grammars/keywords-tr.lark index 8f127fa6fd2..11153997bc0 100644 --- a/grammars/keywords-tr.lark +++ b/grammars/keywords-tr.lark @@ -51,3 +51,5 @@ _COLOR : ("renk" | "color") _SPACE? _PRESSED: ("basılı" | "pressed") _SPACE? _BUTTON: ("düğme" | "button") _SPACE? clear: ("temizle" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-uk.lark b/grammars/keywords-uk.lark index 00be226932e..5c6c3e84429 100644 --- a/grammars/keywords-uk.lark +++ b/grammars/keywords-uk.lark @@ -51,3 +51,5 @@ _COLOR : ("колір" | "color") _SPACE? _PRESSED: ("натиснув" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("очистити" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-ur.lark b/grammars/keywords-ur.lark index 5da6bc02e3c..97ffe9ee1f0 100644 --- a/grammars/keywords-ur.lark +++ b/grammars/keywords-ur.lark @@ -51,3 +51,5 @@ _COLOR : ("رنگ" | "color") _SPACE? _PRESSED: ("دبا ہوا" | "pressed") _SPACE? _BUTTON: ("بٹن" | "button") _SPACE? clear: ("صاف" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-vi.lark b/grammars/keywords-vi.lark index 397fe08c37b..ebda18bb282 100644 --- a/grammars/keywords-vi.lark +++ b/grammars/keywords-vi.lark @@ -51,3 +51,5 @@ _COLOR : ("màu" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-zh_Hans.lark b/grammars/keywords-zh_Hans.lark index 46c72e6da66..42256139e38 100644 --- a/grammars/keywords-zh_Hans.lark +++ b/grammars/keywords-zh_Hans.lark @@ -51,3 +51,5 @@ _COLOR : ("颜色" | "color") _SPACE? _PRESSED: ("按下" | "pressed") _SPACE? _BUTTON: ("按键" | "button") _SPACE? clear: ("清除" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/keywords-zh_Hant.lark b/grammars/keywords-zh_Hant.lark index c461b233dd9..632fdb5d3ad 100644 --- a/grammars/keywords-zh_Hant.lark +++ b/grammars/keywords-zh_Hant.lark @@ -51,3 +51,5 @@ _COLOR : ("color" | "color") _SPACE? _PRESSED: ("pressed" | "pressed") _SPACE? _BUTTON: ("button" | "button") _SPACE? clear: ("clear" | "clear") _SPACE? +TRUE: ("true" | "True" | "true" | "True") _SPACE? +FALSE: ("false" | "False" | "false" | "False") _SPACE? diff --git a/grammars/level15-Additions.lark b/grammars/level15-Additions.lark index 22dbd27368c..1780d28d46a 100644 --- a/grammars/level15-Additions.lark +++ b/grammars/level15-Additions.lark @@ -1,6 +1,12 @@ command: += while_loop | if_pressed -= error_if_pressed_missing_else >> error_ifelse | ifs -// new : while loop -while_loop: _WHILE (_conditions) _EOL (_SPACE command) (_EOL _SPACE command)* _EOL? _END_BLOCK +// new: boolean type and while loop +boolean: TRUE | FALSE + +?atom: NUMBER | _MINUS NUMBER | boolean | text_in_quotes | var_access +assign_list: var (_IS| _EQUALS) (text_in_quotes|NUMBER|boolean) (_COMMA (text_in_quotes|NUMBER|boolean))+ +?comparison_arg: += boolean >> var_access +?print_expression: += boolean >> var_access_print +while_loop: _WHILE (_conditions) _EOL (_SPACE command) (_EOL _SPACE command)* _EOL? _END_BLOCK diff --git a/grammars/level16-Additions.lark b/grammars/level16-Additions.lark index 59349aae4f3..0417c973c38 100644 --- a/grammars/level16-Additions.lark +++ b/grammars/level16-Additions.lark @@ -2,18 +2,16 @@ // TODO for tomorrow: this stills needs tests in level 16 for > and != command:+= change_list_item | error_assign_list_missing_brackets -?comparison_arg: var_access | text_in_quotes | NUMBER | list_access - -?atom: NUMBER | _MINUS NUMBER | var_access | list_access | text_in_quotes +?atom: NUMBER | _MINUS NUMBER | boolean | list_access | text_in_quotes | var_access list_access: var_access _LEFT_SQUARE_BRACKET (INT | random | var_access) _RIGHT_SQUARE_BRACKET change_list_item: var_access _LEFT_SQUARE_BRACKET (INT | var_access) _RIGHT_SQUARE_BRACKET _EQUALS (var_access | textwithoutspaces) -assign_list: var (_IS | _EQUALS) _LEFT_SQUARE_BRACKET ((quoted_text | NUMBER) (_COMMA (quoted_text | NUMBER))*)? _RIGHT_SQUARE_BRACKET -error_assign_list_missing_brackets: var (_IS | _EQUALS) (_LEFT_SQUARE_BRACKET)? ((quoted_text | NUMBER) _COMMA (quoted_text | NUMBER) (_COMMA (quoted_text | NUMBER))*)? (_RIGHT_SQUARE_BRACKET)? +assign_list: var (_IS | _EQUALS) _LEFT_SQUARE_BRACKET ((quoted_text | NUMBER | boolean) (_COMMA (quoted_text | NUMBER | boolean))*)? _RIGHT_SQUARE_BRACKET +error_assign_list_missing_brackets: var (_IS | _EQUALS) (_LEFT_SQUARE_BRACKET)? ((quoted_text | NUMBER | boolean) _COMMA (quoted_text | NUMBER | boolean) (_COMMA (quoted_text | NUMBER | boolean))*)? (_RIGHT_SQUARE_BRACKET)? error_list_access_at _print_ask_argument: (_SPACE | quoted_text | list_access | error_list_access_at | expression | print_expression)* -assign: var (_IS| _EQUALS) (list_access | error_list_access_at | atom | expression) +assign: var (_IS| _EQUALS) (list_access | error_list_access_at | boolean | atom | expression) error_print_no_quotes: _PRINT (textwithoutspaces | list_access | error_list_access_at | var_access) (_SPACE (textwithoutspaces | list_access | var_access))* -> error_print_nq sleep: _SLEEP (INT | list_access | error_list_access_at | var_access | expression)? turtle: _FORWARD ((NUMBER | list_access | error_list_access_at | textwithoutspaces | expression))? -> forward | _TURN ((NUMBER | list_access | error_list_access_at | textwithoutspaces | expression))? -> turn | _COLOR ((black | blue | brown | gray | green | orange | pink | purple | red | white | yellow | list_access | error_list_access_at | textwithoutspaces))? -> color diff --git a/grammars/level18-Additions.lark b/grammars/level18-Additions.lark index 58c581064b9..22033f911a3 100644 --- a/grammars/level18-Additions.lark +++ b/grammars/level18-Additions.lark @@ -9,7 +9,7 @@ input_empty_brackets: var (_IS | _EQUALS ) _INPUT (_LEFT_BRACKET _RIGHT_BRACKET) input: var (_IS | _EQUALS) _INPUT (_LEFT_BRACKET ((quoted_text | list_access | print_expression) (_COMMA (quoted_text | list_access | print_expression))*) _RIGHT_BRACKET)? for_loop: _FOR var _IN _RANGE _LEFT_BRACKET (POSITIVE_NUMBER | var_access) _COMMA (NUMBER | var_access) (_COMMA (POSITIVE_NUMBER | var_access))? _RIGHT_BRACKET _COLON _EOL (_SPACE command) (_EOL _SPACE command)* _EOL? _END_BLOCK -?print_expression: NUMBER | var_access | expression +?print_expression: NUMBER | expression | var_access define: _DEF function_name _LEFT_BRACKET (arguments)? _RIGHT_BRACKET _COLON _EOL _SPACE command (_EOL _SPACE command)* _EOL? _END_BLOCK call: function_name _LEFT_BRACKET (arguments)? _RIGHT_BRACKET diff --git a/hedy.py b/hedy.py index e2192ba4cdb..b6a925caee5 100644 --- a/hedy.py +++ b/hedy.py @@ -336,33 +336,42 @@ def command_make_color_local(language): 1: [HedyType.string, HedyType.integer, HedyType.input, HedyType.list], 4: [HedyType.string, HedyType.integer, HedyType.input], 12: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float], - 16: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float, HedyType.list] + 15: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float, HedyType.boolean], + 16: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float, HedyType.boolean, HedyType.list] }, Command.ask: { 1: [HedyType.string, HedyType.integer, HedyType.input, HedyType.list], 4: [HedyType.string, HedyType.integer, HedyType.input], 12: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float], - 16: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float, HedyType.list] + 15: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float, HedyType.boolean], + 16: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float, HedyType.boolean, HedyType.list] + }, + Command.turn: { + 1: command_turn_literals, + 2: [HedyType.integer, HedyType.input], + 12: [HedyType.integer, HedyType.input, HedyType.float] + }, + Command.color: { + 1: [english_colors, HedyType.list], + 2: [english_colors, HedyType.string, HedyType.input, HedyType.list]}, + Command.forward: { + 1: [HedyType.integer, HedyType.input], + 12: [HedyType.integer, HedyType.input, HedyType.float] + }, + Command.sleep: { + 1: [HedyType.integer, HedyType.input], + 12: [HedyType.integer, HedyType.input, HedyType.float] }, - Command.turn: {1: command_turn_literals, - 2: [HedyType.integer, HedyType.input], - 12: [HedyType.integer, HedyType.input, HedyType.float] - }, - Command.color: {1: [english_colors, HedyType.list], - 2: [english_colors, HedyType.string, HedyType.input, HedyType.list]}, - Command.forward: {1: [HedyType.integer, HedyType.input], - 12: [HedyType.integer, HedyType.input, HedyType.float] - }, - Command.sleep: {1: [HedyType.integer, HedyType.input], - 12: [HedyType.integer, HedyType.input, HedyType.float] - }, Command.list_access: {1: [HedyType.list]}, Command.in_list: {1: [HedyType.list]}, Command.not_in_list: {1: [HedyType.list]}, Command.add_to_list: {1: [HedyType.list]}, Command.remove_from_list: {1: [HedyType.list]}, - Command.equality: {1: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float], - 14: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float, HedyType.list]}, + Command.equality: { + 1: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float], + 14: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float, HedyType.list], + 15: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float, HedyType.list, HedyType.boolean] + }, Command.addition: { 6: [HedyType.integer, HedyType.input], 12: [HedyType.string, HedyType.integer, HedyType.input, HedyType.float] @@ -386,7 +395,9 @@ def command_make_color_local(language): Command.smaller_equal: {14: [HedyType.integer, HedyType.float, HedyType.input]}, Command.bigger: {14: [HedyType.integer, HedyType.float, HedyType.input]}, Command.bigger_equal: {14: [HedyType.integer, HedyType.float, HedyType.input]}, - Command.not_equal: {14: [HedyType.integer, HedyType.float, HedyType.string, HedyType.input, HedyType.list]}, + Command.not_equal: { + 14: [HedyType.integer, HedyType.float, HedyType.string, HedyType.input, HedyType.list, HedyType.boolean] + }, Command.pressed: {5: [HedyType.string]} # TODO: maybe use a seperate type character in the future. } @@ -539,6 +550,15 @@ def POSITIVE_NUMBER(self, args): def NEGATIVE_NUMBER(self, args): return Tree('number', [str(args)]) + def TRUE(self, args): + return Tree('true', [str(args)]) + + def FALSE(self, args): + return Tree('false', [str(args)]) + + def boolean(self, meta, args): + return args[0] + # level 2 def var(self, meta, args): return Tree('var', [''.join([str(c) for c in args])], meta) @@ -821,6 +841,12 @@ def number(self, tree): # We managed to parse a number that cannot be parsed by python raise exceptions.ParseException(level=self.level, location='', found=number) + def true(self, tree): + return self.to_typed_tree(tree, HedyType.boolean) + + def false(self, tree): + return self.to_typed_tree(tree, HedyType.boolean) + def subtraction(self, tree): return self.to_sum_typed_tree(tree, Command.subtraction) @@ -1042,6 +1068,12 @@ def number(self, meta, args): def NEGATIVE_NUMBER(self, args): return True, ''.join([c for c in args]), None + def true(self, meta, args): + return True, args[0], meta + + def false(self, meta, args): + return True, args[0], meta + def text(self, meta, args): return all(args), ''.join([c for c in args]), meta @@ -1501,7 +1533,7 @@ def process_variable_for_comparisons(self, name): return f"convert_numerals('{self.numerals_language}', {escape_var(name)})" elif ConvertToPython.is_float(name): return f"convert_numerals('{self.numerals_language}', {name})" - elif ConvertToPython.is_quoted(name): + elif ConvertToPython.is_quoted(name) or self.is_bool(name): return f"{name}" def get_fresh_var(self, name): @@ -1516,8 +1548,9 @@ def check_var_usage(self, args, var_access_linenumber=100): def is_var_candidate(arg) -> bool: return not isinstance(arg, Tree) and \ - not ConvertToPython.is_int(arg) and \ - not ConvertToPython.is_float(arg) + not self.is_int(arg) and \ + not self.is_float(arg) and \ + not self.is_bool(arg) args_to_process = [a for a in args if is_var_candidate(a)] # we do not check trees (calcs) they are always ok @@ -1547,9 +1580,10 @@ def check_var_usage_when_quotes_are_required(self, arg, meta): try: self.check_var_usage([arg], meta.line) except exceptions.UndefinedVarException: - if not (ConvertToPython.is_int(arg) or - ConvertToPython.is_float(arg) or - ConvertToPython.is_random(arg)): + if not (self.is_int(arg) or + self.is_float(arg) or + self.is_random(arg) or + self.is_bool(arg)): raise exceptions.UnquotedAssignTextException(text=arg, line_number=meta.line) # static methods @@ -1584,6 +1618,10 @@ def is_float(n): def is_random(s): return 'random.choice' in s + @staticmethod + def is_bool(s): + return s in ['True', 'False'] + @staticmethod def is_list(s): return '[' in s and ']' in s @@ -2496,6 +2534,14 @@ def NEGATIVE_NUMBER(self, meta, args): numbers = [str(float(x)) for x in args] return ''.join(numbers) + def true(self, meta, args): + # The args contain the actual parse value that was used + return str(True) + + def false(self, meta, args): + # The args contain the actual parse value that was used + return str(False) + def text_in_quotes(self, meta, args): # We need to re-add the quotes, so that the Python code becomes name = 'Jan' or "Jan's" text = args[0] if args else '' diff --git a/hedy_translation.py b/hedy_translation.py index 94a6f8a60ec..6cf3880d409 100644 --- a/hedy_translation.py +++ b/hedy_translation.py @@ -355,6 +355,10 @@ def for_loop(self, tree): self.add_rule_for_grammar_token("_RANGE", "range", tree) self.add_rule_for_grammar_token("_TO", "to", tree) + def boolean(self, tree): + self.add_rule('TRUE', "true", tree) + self.add_rule('FALSE', "false", tree) + def while_loop(self, tree): self.add_rule_for_grammar_token("_WHILE", "while", tree) diff --git a/highlighting/definition.py b/highlighting/definition.py index 6c813ed50a8..27f603d0e6c 100644 --- a/highlighting/definition.py +++ b/highlighting/definition.py @@ -35,6 +35,8 @@ "echo", "elif", "else", + "false", + "False", "for", "forward", "from", @@ -66,6 +68,8 @@ "times", "to_list", "to", + "true", + "True", "turn", "while", "white", diff --git a/highlighting/highlighting-trad.json b/highlighting/highlighting-trad.json index bdca3a262a1..fa583ffbdde 100644 --- a/highlighting/highlighting-trad.json +++ b/highlighting/highlighting-trad.json @@ -1,5 +1,7 @@ { "ar": { + "False": "ـ*Fـ*aـ*lـ*sـ*eـ*|False", + "True": "ـ*Tـ*rـ*uـ*eـ*|True", "add": "ـ*اـ*ضـ*فـ*|add", "and": "ـ*وـ*|and", "ask": "ـ*اـ*سـ*أـ*لـ*|ask", @@ -16,6 +18,7 @@ "echo": "ـ*رـ*دـ*دـ*|echo", "elif": "ـ*وـ*إـ*لـ*اـ* ـ*اـ*ذـ*اـ*|elif", "else": "ـ*وـ*إـ*لـ*اـ*|else", + "false": "ـ*fـ*aـ*lـ*sـ*eـ*|false", "for": "ـ*لـ*كـ*لـ*|for", "forward": "ـ*تـ*قـ*دـ*مـ*|forward", "from": "ـ*مـ*نـ*|from", @@ -47,6 +50,7 @@ "times": "ـ*مـ*رـ*ةـ*|times", "to": "ـ*اـ*لـ*ىـ*|to", "to_list": "ـ*اـ*لـ*ىـ*|to", + "true": "ـ*tـ*rـ*uـ*eـ*|true", "turn": "ـ*اـ*سـ*تـ*دـ*رـ*|turn", "while": "ـ*بـ*يـ*نـ*مـ*اـ*|while", "white": "ـ*اـ*بـ*يـ*ضـ*|white", @@ -55,6 +59,8 @@ "DIGIT": "0٠1١2٢3٣4٤5٥6٦7٧8٨9٩" }, "bg": { + "False": "Невярно|False", + "True": "Вярно|True", "add": "добави|add", "and": "и|and", "ask": "попитай|ask", @@ -71,6 +77,7 @@ "echo": "покажи|echo", "elif": "иначе ако|elif", "else": "иначе|else", + "false": "невярно|false", "for": "за|for", "forward": "напред|forward", "from": "от|from", @@ -102,6 +109,7 @@ "times": "пъти|times", "to": "до|to", "to_list": "до|to", + "true": "вярно|true", "turn": "завий|turn", "while": "докато|while", "white": "бяло|white", @@ -110,6 +118,8 @@ "DIGIT": "0123456789" }, "bn": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -126,6 +136,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -157,6 +168,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -165,6 +177,8 @@ "DIGIT": "0123456789" }, "ca": { + "False": "False", + "True": "True", "add": "afegeix|add", "and": "i|and", "ask": "pregunta|ask", @@ -181,6 +195,7 @@ "echo": "eco|echo", "elif": "sinosi|elif", "else": "sino|else", + "false": "false", "for": "per|for", "forward": "avança|forward", "from": "de|from", @@ -212,6 +227,7 @@ "times": "vegades|times", "to": "fins|to", "to_list": "a|to", + "true": "true", "turn": "gira|turn", "while": "mentre|while", "white": "blanc|white", @@ -220,6 +236,8 @@ "DIGIT": "0123456789" }, "cs": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -236,6 +254,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -267,6 +286,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -275,6 +295,8 @@ "DIGIT": "0123456789" }, "cy": { + "False": "False", + "True": "True", "add": "adio|add", "and": "a|and", "ask": "gofyn|ask", @@ -291,6 +313,7 @@ "echo": "adleisio|echo", "elif": "elif", "else": "arall|else", + "false": "false", "for": "ar gyfer|for", "forward": "ymlaen|forward", "from": "o|from", @@ -322,6 +345,7 @@ "times": "gwaith|times", "to": "i|to", "to_list": "i|to", + "true": "true", "turn": "troi|turn", "while": "tra|while", "white": "gwyn|white", @@ -330,6 +354,8 @@ "DIGIT": "0123456789" }, "da": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "spørg|ask", @@ -346,6 +372,7 @@ "echo": "ekko|echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "fremad|forward", "from": "from", @@ -377,6 +404,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "drej|turn", "while": "while", "white": "white", @@ -385,6 +413,8 @@ "DIGIT": "0123456789" }, "de": { + "False": "False", + "True": "True", "add": "addiere|add", "and": "und|and", "ask": "frage|ask", @@ -401,6 +431,7 @@ "echo": "echo", "elif": "sofalls|elif", "else": "sonst|else", + "false": "false", "for": "für|for", "forward": "vorwärts|forward", "from": "aus|from", @@ -432,6 +463,7 @@ "times": "mal|times", "to": "bis|to", "to_list": "zu|to", + "true": "true", "turn": "drehe|turn", "while": "solange|while", "white": "Weiß|white", @@ -440,6 +472,8 @@ "DIGIT": "0123456789" }, "el": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -456,6 +490,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -487,6 +522,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -495,6 +531,8 @@ "DIGIT": "0123456789" }, "en": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -511,6 +549,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -542,6 +581,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -550,6 +590,8 @@ "DIGIT": "0123456789" }, "eo": { + "False": "False", + "True": "True", "add": "aldonu|add", "and": "kaj|and", "ask": "demandu|ask", @@ -566,6 +608,7 @@ "echo": "eĥu|ehhu|ehxu|e^hu|eh^u|echo", "elif": "alie se|elif", "else": "alie|else", + "false": "false", "for": "por|for", "forward": "antaŭen|antauen|antauxen|forward", "from": "el|from", @@ -597,6 +640,7 @@ "times": "fojojn|times", "to": "ĝis|ghis|gxis|^gis|g^is|to", "to_list": "al|to", + "true": "true", "turn": "turnu|turn", "while": "dum|while", "white": "blanka|white", @@ -605,6 +649,8 @@ "DIGIT": "0123456789" }, "es": { + "False": "False", + "True": "True", "add": "añadir|add", "and": "y|and", "ask": "preguntar|ask", @@ -621,6 +667,7 @@ "echo": "eco|echo", "elif": "sinosi|elif", "else": "sino|else", + "false": "false", "for": "para|for", "forward": "adelante|forward", "from": "de|from", @@ -652,6 +699,7 @@ "times": "veces|times", "to": "a|to", "to_list": "a|to", + "true": "true", "turn": "girar|turn", "while": "mientras|while", "white": "blanco|white", @@ -660,6 +708,8 @@ "DIGIT": "0123456789" }, "et": { + "False": "False", + "True": "True", "add": "lisa|add", "and": "ja|and", "ask": "küsi|ask", @@ -676,6 +726,7 @@ "echo": "peegelda|echo", "elif": "muidukui|elif", "else": "muidu|else", + "false": "false", "for": "jaoks|for", "forward": "edasi|forward", "from": "nimistust|from", @@ -707,6 +758,7 @@ "times": "korda|times", "to": "kuni|to", "to_list": "nimistusse|to", + "true": "true", "turn": "pööra|turn", "while": "senikui|while", "white": "valge|white", @@ -715,6 +767,8 @@ "DIGIT": "0123456789" }, "fa": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "بپرس|ask", @@ -731,6 +785,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "به جلو|forward", "from": "from", @@ -762,6 +817,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "دور بزن|turn", "while": "while", "white": "سفید|white", @@ -770,6 +826,8 @@ "DIGIT": "0123456789" }, "fi": { + "False": "False", + "True": "True", "add": "lisää|add", "and": "ja|and", "ask": "kysy|ask", @@ -786,6 +844,7 @@ "echo": "kaiku|echo", "elif": "muutenjos|elif", "else": "muuten|else", + "false": "false", "for": "jokaiselle|for", "forward": "eteenpäin|forward", "from": "listasta|from", @@ -817,6 +876,7 @@ "times": "kertaa|times", "to": "asti|to", "to_list": "listaksi|to", + "true": "true", "turn": "käänny|turn", "while": "kun|while", "white": "valkoinen|white", @@ -825,6 +885,8 @@ "DIGIT": "0123456789" }, "fr": { + "False": "False", + "True": "True", "add": "ajoute|add", "and": "et|and", "ask": "demande|ask", @@ -841,6 +903,7 @@ "echo": "réponds|echo", "elif": "sinon si|elif", "else": "sinon|else", + "false": "false", "for": "pour|for", "forward": "avance|forward", "from": "de|from", @@ -872,6 +935,7 @@ "times": "fois|times", "to": "à|to", "to_list": "à|to", + "true": "true", "turn": "tourne|turn", "while": "tant que|while", "white": "blanc|white", @@ -880,6 +944,8 @@ "DIGIT": "0123456789" }, "fr_CA": { + "False": "False", + "True": "True", "add": "ajoute|add", "and": "et|and", "ask": "demande|ask", @@ -896,6 +962,7 @@ "echo": "réponds|echo", "elif": "sinon si|elif", "else": "sinon|else", + "false": "false", "for": "pour|for", "forward": "avance|forward", "from": "de|from", @@ -927,6 +994,7 @@ "times": "fois|times", "to": "à|to", "to_list": "à|to", + "true": "true", "turn": "tourne|turn", "while": "tant que|while", "white": "blanc|white", @@ -935,6 +1003,8 @@ "DIGIT": "0123456789" }, "fy": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -951,6 +1021,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -982,6 +1053,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -990,6 +1062,8 @@ "DIGIT": "0123456789" }, "he": { + "False": "False", + "True": "True", "add": "הוסף|add", "and": "וגם|and", "ask": "שאל|ask", @@ -1006,6 +1080,7 @@ "echo": "הדהד|echo", "elif": "אחרתאם|elif", "else": "אחרת|else", + "false": "false", "for": "לכל|for", "forward": "קדימה|forward", "from": "מ|from", @@ -1037,6 +1112,7 @@ "times": "פעמים|times", "to": "עד|to", "to_list": "אל|to", + "true": "true", "turn": "פנה|turn", "while": "כלעוד|while", "white": "לבן|white", @@ -1045,6 +1121,8 @@ "DIGIT": "0123456789" }, "hi": { + "False": "False", + "True": "True", "add": "जोड़ना|add", "and": "और|and", "ask": "पूछें|ask", @@ -1061,6 +1139,7 @@ "echo": "गूंज|echo", "elif": "एलिफ|elif", "else": "अन्यथा|else", + "false": "false", "for": "के लिये|for", "forward": "आगे|forward", "from": "से|from", @@ -1092,6 +1171,7 @@ "times": "बार|times", "to": "से|to", "to_list": "से|to", + "true": "true", "turn": "मोड़|turn", "while": "व्हाइल|while", "white": "सफ़ेद|white", @@ -1100,6 +1180,8 @@ "DIGIT": "0123456789" }, "hu": { + "False": "False", + "True": "True", "add": "beszúr|add", "and": "és|and", "ask": "kérdez|ask", @@ -1116,6 +1198,7 @@ "echo": "utánoz|echo", "elif": "egybk-ha|elif", "else": "egyébként|else", + "false": "false", "for": "minden|for", "forward": "előre|forward", "from": "ebből|from", @@ -1147,6 +1230,7 @@ "times": "alkalommal|times", "to": "től|to", "to_list": "ebbe|to", + "true": "true", "turn": "fordul|turn", "while": "amíg|while", "white": "fehér|white", @@ -1155,6 +1239,8 @@ "DIGIT": "0123456789" }, "ia": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -1171,6 +1257,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -1202,6 +1289,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -1210,6 +1298,8 @@ "DIGIT": "0123456789" }, "iba": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -1226,6 +1316,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -1257,6 +1348,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -1265,6 +1357,8 @@ "DIGIT": "0123456789" }, "id": { + "False": "False", + "True": "True", "add": "tambah|add", "and": "dan|and", "ask": "tanya|ask", @@ -1281,6 +1375,7 @@ "echo": "gaungkan|echo", "elif": "lain_jika|elif", "else": "lainnya|else", + "false": "false", "for": "untuk|for", "forward": "maju|forward", "from": "dari|from", @@ -1312,6 +1407,7 @@ "times": "kali|times", "to": "ke|to", "to_list": "ke|to", + "true": "true", "turn": "belok|turn", "while": "selama|while", "white": "white", @@ -1320,6 +1416,8 @@ "DIGIT": "0123456789" }, "it": { + "False": "False", + "True": "True", "add": "add", "and": "e|and", "ask": "chiedi|ask", @@ -1336,6 +1434,7 @@ "echo": "eco|echo", "elif": "altrimenti se|elif", "else": "altrimenti|else", + "false": "false", "for": "for", "forward": "avanti|forward", "from": "da|from", @@ -1367,6 +1466,7 @@ "times": "volte|times", "to": "to", "to_list": "to", + "true": "true", "turn": "gira|turn", "while": "mentre|while", "white": "bianco|white", @@ -1375,6 +1475,8 @@ "DIGIT": "0123456789" }, "ja": { + "False": "False", + "True": "True", "add": "たす|add", "and": "and", "ask": "きけ|ask", @@ -1391,6 +1493,7 @@ "echo": "まね|echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "すすめ|forward", "from": "from", @@ -1422,6 +1525,7 @@ "times": "かい|times", "to": "to", "to_list": "to", + "true": "true", "turn": "まわれ|turn", "while": "while", "white": "しろ|white", @@ -1430,6 +1534,8 @@ "DIGIT": "0123456789" }, "kmr": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -1446,6 +1552,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -1477,6 +1584,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -1485,6 +1593,8 @@ "DIGIT": "0123456789" }, "ko": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -1501,6 +1611,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -1532,6 +1643,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -1540,6 +1652,8 @@ "DIGIT": "0123456789" }, "mi": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -1556,6 +1670,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -1587,6 +1702,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -1595,6 +1711,8 @@ "DIGIT": "0123456789" }, "ms": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -1611,6 +1729,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -1642,6 +1761,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -1650,6 +1770,8 @@ "DIGIT": "0123456789" }, "nb_NO": { + "False": "False", + "True": "True", "add": "legg|add", "and": "og|and", "ask": "spør|ask", @@ -1666,6 +1788,7 @@ "echo": "ekko|echo", "elif": "elhvis|elif", "else": "ellers|else", + "false": "false", "for": "for", "forward": "frem|forward", "from": "fra|from", @@ -1697,6 +1820,7 @@ "times": "ganger|times", "to": "til|to", "to_list": "til|to", + "true": "true", "turn": "snu|turn", "while": "mens|while", "white": "white", @@ -1705,6 +1829,8 @@ "DIGIT": "0123456789" }, "nl": { + "False": "False", + "True": "True", "add": "voeg|add", "and": "en|and", "ask": "vraag|ask", @@ -1721,6 +1847,7 @@ "echo": "echo", "elif": "alsanders|elif", "else": "anders|else", + "false": "false", "for": "voor|for", "forward": "vooruit|forward", "from": "uit|from", @@ -1752,6 +1879,7 @@ "times": "keer|times", "to": "tot|to", "to_list": "toe aan|to", + "true": "true", "turn": "draai|turn", "while": "zolang|while", "white": "wit|white", @@ -1760,6 +1888,8 @@ "DIGIT": "0123456789" }, "pa_PK": { + "False": "False", + "True": "True", "add": "دھن|add", "and": "تے|and", "ask": "سوال|ask", @@ -1776,6 +1906,7 @@ "echo": "فیر|echo", "elif": "ہور|elif", "else": "وکھرا|else", + "false": "false", "for": "جدوں|for", "forward": "اگے|forward", "from": "سروت|from", @@ -1807,6 +1938,7 @@ "times": "ضرب|times", "to": "منزل|to", "to_list": "منزل|to", + "true": "true", "turn": "موڑن|turn", "while": "جدکہ|while", "white": "چٹا|white", @@ -1815,6 +1947,8 @@ "DIGIT": "0۰1۱2۲3۳4۴5۵6۶7۷8۸9۹" }, "pap": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -1831,6 +1965,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -1862,6 +1997,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -1870,6 +2006,8 @@ "DIGIT": "0123456789" }, "pl": { + "False": "False", + "True": "True", "add": "dodaj|add", "and": "i|and", "ask": "zapytaj|ask", @@ -1886,6 +2024,7 @@ "echo": "dołącz|echo", "elif": "albo|elif", "else": "inaczej|else", + "false": "false", "for": "dla|for", "forward": "naprzód|forward", "from": "z|from", @@ -1917,6 +2056,7 @@ "times": "razy|times", "to": "do|to", "to_list": "do|to", + "true": "true", "turn": "obróć|turn", "while": "dopóki|while", "white": "biały|white", @@ -1925,6 +2065,8 @@ "DIGIT": "0123456789" }, "pt_BR": { + "False": "False", + "True": "True", "add": "some|add", "and": "e|and", "ask": "pergunte|ask", @@ -1941,6 +2083,7 @@ "echo": "eco|echo", "elif": "senão se|elif", "else": "senão|else", + "false": "false", "for": "para|for", "forward": "adiante|forward", "from": "de|from", @@ -1972,6 +2115,7 @@ "times": "vezes|times", "to": "para|to", "to_list": "a|to", + "true": "true", "turn": "gire|turn", "while": "enquanto|while", "white": "branco|white", @@ -1980,6 +2124,8 @@ "DIGIT": "0123456789" }, "pt_PT": { + "False": "False", + "True": "True", "add": "adicionar|add", "and": "e|and", "ask": "perguntar|ask", @@ -1996,6 +2142,7 @@ "echo": "eco|echo", "elif": "elif", "else": "senão|else", + "false": "false", "for": "for", "forward": "avançar|forward", "from": "de|from", @@ -2027,6 +2174,7 @@ "times": "vezes|times", "to": "to", "to_list": "para|to", + "true": "true", "turn": "virar|turn", "while": "enquanto|while", "white": "branco|white", @@ -2035,6 +2183,8 @@ "DIGIT": "0123456789" }, "ro": { + "False": "False", + "True": "True", "add": "adună|add", "and": "si|and", "ask": "întreabă|ask", @@ -2051,6 +2201,7 @@ "echo": "echo", "elif": "altfel dacă|elif", "else": "else", + "false": "false", "for": "pentru|for", "forward": "înainte|forward", "from": "de la|from", @@ -2082,6 +2233,7 @@ "times": "inmulțit|times", "to": "către|to", "to_list": "către|to", + "true": "true", "turn": "intoarce|turn", "while": "în timp ce|while", "white": "alb|white", @@ -2090,6 +2242,8 @@ "DIGIT": "0123456789" }, "ru": { + "False": "False", + "True": "True", "add": "добавить|add", "and": "и|and", "ask": "запросить|ask", @@ -2106,6 +2260,7 @@ "echo": "повторить|echo", "elif": "иначе, если|elif", "else": "иначе|else", + "false": "false", "for": "для|for", "forward": "вперёд|forward", "from": "из|from", @@ -2137,6 +2292,7 @@ "times": "раз|times", "to": "до|to", "to_list": "в|to", + "true": "true", "turn": "повернуть|turn", "while": "пока|while", "white": "белый|white", @@ -2145,6 +2301,8 @@ "DIGIT": "0123456789" }, "sl": { + "False": "False", + "True": "True", "add": "dodaj|add", "and": "in|and", "ask": "Vprašaj|ask", @@ -2161,6 +2319,7 @@ "echo": "ponovi|echo", "elif": "aliče|elif", "else": "drugače|else", + "false": "false", "for": "za|for", "forward": "naprej|forward", "from": "od|from", @@ -2192,6 +2351,7 @@ "times": "krat|times", "to": "do|to", "to_list": "do|to", + "true": "true", "turn": "obrni|turn", "while": "medtem ko|while", "white": "bela|white", @@ -2200,6 +2360,8 @@ "DIGIT": "0123456789" }, "sq": { + "False": "False", + "True": "True", "add": "shtoni|add", "and": "dhe|and", "ask": "pyet|ask", @@ -2216,6 +2378,7 @@ "echo": "përsërit|echo", "elif": "nendryshe|elif", "else": "ndryshe|else", + "false": "false", "for": "për|for", "forward": "përpara|forward", "from": "nga|from", @@ -2247,6 +2410,7 @@ "times": "her|times", "to": "deri|to", "to_list": "deri|to", + "true": "true", "turn": "kthesë|turn", "while": "derisa|while", "white": "bardhë|white", @@ -2255,6 +2419,8 @@ "DIGIT": "0123456789" }, "sr": { + "False": "False", + "True": "True", "add": "dodaj|add", "and": "i|and", "ask": "pitaj|ask", @@ -2271,6 +2437,7 @@ "echo": "pokaži|echo", "elif": "inače ako|elif", "else": "inače|else", + "false": "false", "for": "za|for", "forward": "napred|forward", "from": "od|from", @@ -2302,6 +2469,7 @@ "times": "vremena|times", "to": "u|to", "to_list": "u|to", + "true": "true", "turn": "okreni|turn", "while": "dok|while", "white": "bela|white", @@ -2310,6 +2478,8 @@ "DIGIT": "0123456789" }, "sv": { + "False": "False", + "True": "True", "add": "addera|add", "and": "och|and", "ask": "fråga|ask", @@ -2326,6 +2496,7 @@ "echo": "eko|echo", "elif": "anom|elif", "else": "annars|else", + "false": "false", "for": "för|for", "forward": "framåt|forward", "from": "från|from", @@ -2357,6 +2528,7 @@ "times": "gånger|times", "to": "till|to", "to_list": "till|to", + "true": "true", "turn": "sväng|turn", "while": "medan|while", "white": "vit|white", @@ -2365,6 +2537,8 @@ "DIGIT": "0123456789" }, "sw": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -2381,6 +2555,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -2412,6 +2587,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -2420,6 +2596,8 @@ "DIGIT": "0123456789" }, "te": { + "False": "False", + "True": "True", "add": "జోడించు|add", "and": "మరియు|and", "ask": "అడగండి|ask", @@ -2436,6 +2614,7 @@ "echo": "ప్రతిధ్వని|echo", "elif": "మరొకటి ఉంటే|elif", "else": "లేకపోతే|else", + "false": "false", "for": "కోసం|for", "forward": "ముందుకు|forward", "from": "నుండి|from", @@ -2467,6 +2646,7 @@ "times": "సార్లు|times", "to": "కు|to", "to_list": "కు|to", + "true": "true", "turn": "మలుపు|turn", "while": "అయితే|while", "white": "white", @@ -2475,6 +2655,8 @@ "DIGIT": "0123456789" }, "th": { + "False": "False", + "True": "True", "add": "เพิ่ม|add", "and": "และ|and", "ask": "ถามว่า|ask", @@ -2491,6 +2673,7 @@ "echo": "พูด|echo", "elif": "หรือถ้า|elif", "else": "ไม่อย่างนั้น|else", + "false": "false", "for": "ให้|for", "forward": "เดินหน้า|forward", "from": "จาก|from", @@ -2522,6 +2705,7 @@ "times": "ครั้ง|times", "to": "จนถึง|to", "to_list": "ไปยัง|to", + "true": "true", "turn": "เลี้ยว|turn", "while": "เมื่อไหร่ก็ตามที่|while", "white": "ขาว|white", @@ -2530,6 +2714,8 @@ "DIGIT": "0123456789" }, "tl": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -2546,6 +2732,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -2577,6 +2764,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -2585,6 +2773,8 @@ "DIGIT": "0123456789" }, "tn": { + "False": "False", + "True": "True", "add": "tsenya|add", "and": "and", "ask": "ask", @@ -2601,6 +2791,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -2632,6 +2823,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", @@ -2640,6 +2832,8 @@ "DIGIT": "0123456789" }, "tr": { + "False": "False", + "True": "True", "add": "ekle|add", "and": "ve|and", "ask": "sor|ask", @@ -2656,6 +2850,7 @@ "echo": "yankıla|echo", "elif": "değileğer|elif", "else": "değilse|else", + "false": "false", "for": "şunun için|for", "forward": "ileri|forward", "from": "şuradan|from", @@ -2687,6 +2882,7 @@ "times": "kere|times", "to": "şuraya|to", "to_list": "şuraya|to", + "true": "true", "turn": "döndür|turn", "while": "şu iken|while", "white": "beyaz|white", @@ -2695,6 +2891,8 @@ "DIGIT": "0123456789" }, "uk": { + "False": "False", + "True": "True", "add": "додай|add", "and": "і|and", "ask": "запитай|ask", @@ -2711,6 +2909,7 @@ "echo": "ехо|echo", "elif": "інакше якщо|elif", "else": "інакше|else", + "false": "false", "for": "для|for", "forward": "вперед|forward", "from": "iз|з|from", @@ -2742,6 +2941,7 @@ "times": "разів|рази|раз|times", "to": "до|to", "to_list": "до|to", + "true": "true", "turn": "поверни|turn", "while": "тоді як|while", "white": "білий|white", @@ -2750,6 +2950,8 @@ "DIGIT": "0123456789" }, "ur": { + "False": "False", + "True": "True", "add": "شامل|add", "and": "اور|and", "ask": "بتاؤ|ask", @@ -2766,6 +2968,7 @@ "echo": "پکار|echo", "elif": "یااگر|elif", "else": "ورنہ|else", + "false": "false", "for": "فی|for", "forward": "آگے|forward", "from": "سے|from", @@ -2797,6 +3000,7 @@ "times": "دفعہ|times", "to": "سے|to", "to_list": "اندر|to", + "true": "true", "turn": "مڑو|turn", "while": "جبتک|while", "white": "سفید|white", @@ -2805,6 +3009,8 @@ "DIGIT": "0123456789" }, "vi": { + "False": "False", + "True": "True", "add": "add", "and": "và|and", "ask": "hỏi|ask", @@ -2821,6 +3027,7 @@ "echo": "đáp|echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "tiến|forward", "from": "from", @@ -2852,6 +3059,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "quay|turn", "while": "while", "white": "trắng|white", @@ -2860,6 +3068,8 @@ "DIGIT": "0123456789" }, "zh_Hans": { + "False": "False", + "True": "True", "add": "加|add", "and": "并且|and", "ask": "提问|ask", @@ -2876,6 +3086,7 @@ "echo": "回声|echo", "elif": "否则如果|elif", "else": "否则|else", + "false": "false", "for": "取|for", "forward": "向前|forward", "from": "从|from", @@ -2907,6 +3118,7 @@ "times": "次|times", "to": "到|to", "to_list": "到|to", + "true": "true", "turn": "旋转|turn", "while": "当|while", "white": "白色|white", @@ -2915,6 +3127,8 @@ "DIGIT": "0123456789" }, "zh_Hant": { + "False": "False", + "True": "True", "add": "add", "and": "and", "ask": "ask", @@ -2931,6 +3145,7 @@ "echo": "echo", "elif": "elif", "else": "else", + "false": "false", "for": "for", "forward": "forward", "from": "from", @@ -2962,6 +3177,7 @@ "times": "times", "to": "to", "to_list": "to", + "true": "true", "turn": "turn", "while": "while", "white": "white", diff --git a/highlighting/lezer-grammars/level15.grammar b/highlighting/lezer-grammars/level15.grammar index 61247e1f03d..b16570033d4 100644 --- a/highlighting/lezer-grammars/level15.grammar +++ b/highlighting/lezer-grammars/level15.grammar @@ -28,7 +28,7 @@ String { doubleQuotedString | singleQuotedString } Print { print+ ( ListAccess | Expression )+ } Ask { Text (is+ | Op<"=">) ask+ ( ListAccess | Expression )+ } -AssignList { Text (is+ | Op<"=">) (Text+ | Number ) ~ambig (Comma (Text+ | Number ))+ } +AssignList { Text (is+ | Op<"=">) (boolean | Text+ | Number ) ~ambig (Comma (boolean | Text+ | Number ))+ } Assign { (Text | ListAccess) (is+ | Op<"=">) (Expression ~ambig | ListAccess)+ } Sleep { sleep+ (Expression | ListAccess )? } ListAccess { Text at+ (random+ | Text | Number) } @@ -77,7 +77,10 @@ binaryExpression { Expression !plus Op<"+" | "-"> Expression } +boolean[@dynamicPrecedence=10] { low_true | low_false | cap_true | cap_false } + Expression { + boolean | Number | Text | String | @@ -103,7 +106,11 @@ Expression { is[@name="is"], while[@name="while"], define[@name="define"], - with[@name="with"] + with[@name="with"], + low_true[@name="true"], + low_false[@name="false"], + cap_true[@name="True"], + cap_false[@name="False"] } @external extend { Text } extendKeyword from "./tokens" { @@ -126,7 +133,7 @@ Expression { to[@name="to"], range[@name="range"], call[@name="call"], - returns[@name="return"] + returns[@name="return"] } @tokens { diff --git a/highlighting/lezer-grammars/level16.grammar b/highlighting/lezer-grammars/level16.grammar index 0f3d032c05f..9a21a229b95 100644 --- a/highlighting/lezer-grammars/level16.grammar +++ b/highlighting/lezer-grammars/level16.grammar @@ -28,7 +28,7 @@ String { doubleQuotedString | singleQuotedString } Print { print+ ( Expression )+ } Ask { Text (is+ | Op<"=">) ask+ ( Expression )+ } -AssignList { Text (is+ | Op<"=">) Op<"["> ((String | Text | Number) ~ambig (Comma (String | Text | Number))*)? Op<"]"> } +AssignList { Text (is+ | Op<"=">) Op<"["> ((boolean | String | Text | Number) ~ambig (Comma (boolean | String | Text | Number))*)? Op<"]"> } Assign { (Text | ListAccess) (is+ | Op<"=">) (Expression ~ambig )+ } Sleep { sleep+ (Expression )? } ListAccess { Text Op<"["> (random+ | Text | Number) Op<"]"> } @@ -77,8 +77,11 @@ binaryExpression { Expression !plus Op<"+" | "-"> Expression } +boolean { low_true | low_false | cap_true | cap_false } + Expression { Number | + boolean | Text | String | ListAccess | @@ -103,7 +106,11 @@ Expression { is[@name="is"], while[@name="while"], define[@name="define"], - with[@name="with"] + with[@name="with"], + low_true[@name="true"], + low_false[@name="false"], + cap_true[@name="True"], + cap_false[@name="False"] } @external extend { Text } extendKeyword from "./tokens" { @@ -126,7 +133,7 @@ Expression { to[@name="to"], range[@name="range"], call[@name="call"], - returns[@name="return"] + returns[@name="return"] } diff --git a/highlighting/lezer-grammars/level17.grammar b/highlighting/lezer-grammars/level17.grammar index b6436ae3c16..eab2064e411 100644 --- a/highlighting/lezer-grammars/level17.grammar +++ b/highlighting/lezer-grammars/level17.grammar @@ -28,7 +28,7 @@ String { doubleQuotedString | singleQuotedString } Print { print+ ( Expression )+ } Ask { Text (is+ | Op<"=">) ask+ ( Expression )+ } -AssignList { Text (is+ | Op<"=">) Op<"["> ((String | Text | Number) ~ambig (Comma (String | Text | Number))*)? Op<"]"> } +AssignList { Text (is+ | Op<"=">) Op<"["> ((boolean | String | Text | Number) ~ambig (Comma (boolean | String | Text | Number))*)? Op<"]"> } Assign { (Text | ListAccess) (is+ | Op<"=">) (Expression ~ambig )+ } Sleep { sleep+ (Expression )? } ListAccess { Text Op<"["> (random+ | Text | Number) Op<"]"> } @@ -77,8 +77,11 @@ binaryExpression { Expression !plus Op<"+" | "-"> Expression } +boolean { low_true | low_false | cap_true | cap_false } + Expression { Number | + boolean | Text | String | ListAccess | @@ -104,7 +107,11 @@ Expression { while[@name="while"], elif[@name="elif"], define[@name="define"], - with[@name="with"] + with[@name="with"], + low_true[@name="true"], + low_false[@name="false"], + cap_true[@name="True"], + cap_false[@name="False"] } @external extend { Text } extendKeyword from "./tokens" { diff --git a/highlighting/lezer-grammars/level18.grammar b/highlighting/lezer-grammars/level18.grammar index 6a0586f8477..6274f674f3f 100644 --- a/highlighting/lezer-grammars/level18.grammar +++ b/highlighting/lezer-grammars/level18.grammar @@ -25,7 +25,7 @@ Command { String { doubleQuotedString | singleQuotedString } Print { print+ Op<"("> Arguments? Op<")"> } -AssignList { Text (is+ | Op<"=">) Op<"["> ((String | Text | Number) ~ambig (Comma (String | Text | Number))*)? Op<"]"> } // Comma doesn't really parse well if it is not separated by spaces +AssignList { Text (is+ | Op<"=">) Op<"["> ((boolean | String | Text | Number) ~ambig (Comma (boolean | String | Text | Number))*)? Op<"]"> } // Comma doesn't really parse well if it is not separated by spaces Assign { (Text | ListAccess) (is+ | Op<"=">) (Expression ~ambig )+ } Input { Text (is+ | Op<"=">) input+ Op<"("> Arguments? Op<")"> } Sleep { sleep+ (Expression )? } @@ -75,8 +75,11 @@ binaryExpression { Expression !plus Op<"+" | "-"> Expression } +boolean { low_true | low_false | cap_true | cap_false } + Expression { Number | + boolean | Text | String | ListAccess | @@ -120,7 +123,11 @@ Expression { returns[@name="return"], fors[@name="for"], toList[@name="toList"], - elif[@name="elif"] + elif[@name="elif"], + low_true[@name="true"], + low_false[@name="false"], + cap_true[@name="True"], + cap_false[@name="False"] } @tokens { diff --git a/prefixes/normal.py b/prefixes/normal.py index 926d449adc3..c6bab8acac4 100644 --- a/prefixes/normal.py +++ b/prefixes/normal.py @@ -51,6 +51,13 @@ def convert_numerals(alphabet, number): if number is None or number == '': return '' + if bool == type(number): + return number + if number == 'True': + return True + if number == 'False': + return False + numerals_dict_return = { 'Latin': ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], 'Brahmi': ['𑁦', '𑁧', '𑁨', '𑁩', '𑁪', '𑁫', '𑁬', '𑁭', '𑁮', '𑁯'], diff --git a/static/js/appbundle.js b/static/js/appbundle.js index d78d9da7451..ec30662b04c 100644 --- a/static/js/appbundle.js +++ b/static/js/appbundle.js @@ -77448,6 +77448,13 @@ def convert_numerals(alphabet, number): if number is None or number == '': return '' + if bool == type(number): + return number + if number == 'True': + return True + if number == 'False': + return False + numerals_dict_return = { 'Latin': ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], 'Brahmi': ['\u{11066}', '\u{11067}', '\u{11068}', '\u{11069}', '\u{1106A}', '\u{1106B}', '\u{1106C}', '\u{1106D}', '\u{1106E}', '\u{1106F}'], @@ -95727,26 +95734,30 @@ def note_with_error(value, err): var _while = 10; var define5 = 11; var _with4 = 12; - var print14 = 13; - var forward14 = 14; - var turn14 = 15; - var color14 = 16; - var sleep13 = 17; - var play14 = 18; - var add13 = 19; - var from12 = 20; - var remove13 = 21; - var toList12 = 22; - var clear11 = 23; - var ins10 = 24; - var not_in10 = 25; - var repeat8 = 26; - var times8 = 27; - var fors6 = 28; - var to5 = 29; - var range6 = 30; - var call4 = 31; - var returns4 = 32; + var low_true = 13; + var low_false = 14; + var cap_true = 15; + var cap_false = 16; + var print14 = 17; + var forward14 = 18; + var turn14 = 19; + var color14 = 20; + var sleep13 = 21; + var play14 = 22; + var add13 = 23; + var from12 = 24; + var remove13 = 25; + var toList12 = 26; + var clear11 = 27; + var ins10 = 28; + var not_in10 = 29; + var repeat8 = 30; + var times8 = 31; + var fors6 = 32; + var to5 = 33; + var range6 = 34; + var call4 = 35; + var returns4 = 36; // static/js/lezer-parsers/level16-parser.terms.ts var ask15 = 1; @@ -95760,26 +95771,30 @@ def note_with_error(value, err): var _while2 = 9; var define6 = 10; var _with5 = 11; - var print15 = 12; - var forward15 = 13; - var turn15 = 14; - var color15 = 15; - var sleep14 = 16; - var play15 = 17; - var add14 = 18; - var from13 = 19; - var remove14 = 20; - var toList13 = 21; - var clear12 = 22; - var ins11 = 23; - var not_in11 = 24; - var repeat9 = 25; - var times9 = 26; - var fors7 = 27; - var to6 = 28; - var range7 = 29; - var call5 = 30; - var returns5 = 31; + var low_true2 = 12; + var low_false2 = 13; + var cap_true2 = 14; + var cap_false2 = 15; + var print15 = 16; + var forward15 = 17; + var turn15 = 18; + var color15 = 19; + var sleep14 = 20; + var play15 = 21; + var add14 = 22; + var from13 = 23; + var remove14 = 24; + var toList13 = 25; + var clear12 = 26; + var ins11 = 27; + var not_in11 = 28; + var repeat9 = 29; + var times9 = 30; + var fors7 = 31; + var to6 = 32; + var range7 = 33; + var call5 = 34; + var returns5 = 35; // static/js/lezer-parsers/level17-parser.terms.ts var ask16 = 1; @@ -95794,26 +95809,30 @@ def note_with_error(value, err): var elif = 10; var define7 = 11; var _with6 = 12; - var print16 = 13; - var forward16 = 14; - var turn16 = 15; - var color16 = 16; - var sleep15 = 17; - var play16 = 18; - var add15 = 19; - var from14 = 20; - var remove15 = 21; - var toList14 = 22; - var clear13 = 23; - var ins12 = 24; - var not_in12 = 25; - var repeat10 = 26; - var times10 = 27; - var fors8 = 28; - var to7 = 29; - var range8 = 30; - var call6 = 31; - var returns6 = 32; + var low_true3 = 13; + var low_false3 = 14; + var cap_true3 = 15; + var cap_false3 = 16; + var print16 = 17; + var forward16 = 18; + var turn16 = 19; + var color16 = 20; + var sleep15 = 21; + var play16 = 22; + var add15 = 23; + var from14 = 24; + var remove15 = 25; + var toList14 = 26; + var clear13 = 27; + var ins12 = 28; + var not_in12 = 29; + var repeat10 = 30; + var times10 = 31; + var fors8 = 32; + var to7 = 33; + var range8 = 34; + var call6 = 35; + var returns6 = 36; // static/js/lezer-parsers/level18-parser.terms.ts var print17 = 1; @@ -95845,9 +95864,15 @@ def note_with_error(value, err): var fors9 = 27; var toList15 = 28; var elif2 = 29; + var low_true4 = 30; + var low_false4 = 31; + var cap_true4 = 32; + var cap_false4 = 33; // highlighting/highlighting-trad.json var ar = { + False: "\u0640*F\u0640*a\u0640*l\u0640*s\u0640*e\u0640*|False", + True: "\u0640*T\u0640*r\u0640*u\u0640*e\u0640*|True", add: "\u0640*\u0627\u0640*\u0636\u0640*\u0641\u0640*|add", and: "\u0640*\u0648\u0640*|and", ask: "\u0640*\u0627\u0640*\u0633\u0640*\u0623\u0640*\u0644\u0640*|ask", @@ -95864,6 +95889,7 @@ def note_with_error(value, err): echo: "\u0640*\u0631\u0640*\u062F\u0640*\u062F\u0640*|echo", elif: "\u0640*\u0648\u0640*\u0625\u0640*\u0644\u0640*\u0627\u0640* \u0640*\u0627\u0640*\u0630\u0640*\u0627\u0640*|elif", else: "\u0640*\u0648\u0640*\u0625\u0640*\u0644\u0640*\u0627\u0640*|else", + false: "\u0640*f\u0640*a\u0640*l\u0640*s\u0640*e\u0640*|false", for: "\u0640*\u0644\u0640*\u0643\u0640*\u0644\u0640*|for", forward: "\u0640*\u062A\u0640*\u0642\u0640*\u062F\u0640*\u0645\u0640*|forward", from: "\u0640*\u0645\u0640*\u0646\u0640*|from", @@ -95895,6 +95921,7 @@ def note_with_error(value, err): times: "\u0640*\u0645\u0640*\u0631\u0640*\u0629\u0640*|times", to: "\u0640*\u0627\u0640*\u0644\u0640*\u0649\u0640*|to", to_list: "\u0640*\u0627\u0640*\u0644\u0640*\u0649\u0640*|to", + true: "\u0640*t\u0640*r\u0640*u\u0640*e\u0640*|true", turn: "\u0640*\u0627\u0640*\u0633\u0640*\u062A\u0640*\u062F\u0640*\u0631\u0640*|turn", while: "\u0640*\u0628\u0640*\u064A\u0640*\u0646\u0640*\u0645\u0640*\u0627\u0640*|while", white: "\u0640*\u0627\u0640*\u0628\u0640*\u064A\u0640*\u0636\u0640*|white", @@ -95903,6 +95930,8 @@ def note_with_error(value, err): DIGIT: "0\u06601\u06612\u06623\u06634\u06645\u06656\u06667\u06678\u06689\u0669" }; var bg = { + False: "\u041D\u0435\u0432\u044F\u0440\u043D\u043E|False", + True: "\u0412\u044F\u0440\u043D\u043E|True", add: "\u0434\u043E\u0431\u0430\u0432\u0438|add", and: "\u0438|and", ask: "\u043F\u043E\u043F\u0438\u0442\u0430\u0439|ask", @@ -95919,6 +95948,7 @@ def note_with_error(value, err): echo: "\u043F\u043E\u043A\u0430\u0436\u0438|echo", elif: "\u0438\u043D\u0430\u0447\u0435 \u0430\u043A\u043E|elif", else: "\u0438\u043D\u0430\u0447\u0435|else", + false: "\u043D\u0435\u0432\u044F\u0440\u043D\u043E|false", for: "\u0437\u0430|for", forward: "\u043D\u0430\u043F\u0440\u0435\u0434|forward", from: "\u043E\u0442|from", @@ -95950,6 +95980,7 @@ def note_with_error(value, err): times: "\u043F\u044A\u0442\u0438|times", to: "\u0434\u043E|to", to_list: "\u0434\u043E|to", + true: "\u0432\u044F\u0440\u043D\u043E|true", turn: "\u0437\u0430\u0432\u0438\u0439|turn", while: "\u0434\u043E\u043A\u0430\u0442\u043E|while", white: "\u0431\u044F\u043B\u043E|white", @@ -95958,6 +95989,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var bn = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -95974,6 +96007,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -96005,6 +96039,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -96013,6 +96048,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var ca = { + False: "False", + True: "True", add: "afegeix|add", and: "i|and", ask: "pregunta|ask", @@ -96029,6 +96066,7 @@ def note_with_error(value, err): echo: "eco|echo", elif: "sinosi|elif", else: "sino|else", + false: "false", for: "per|for", forward: "avan\xE7a|forward", from: "de|from", @@ -96060,6 +96098,7 @@ def note_with_error(value, err): times: "vegades|times", to: "fins|to", to_list: "a|to", + true: "true", turn: "gira|turn", while: "mentre|while", white: "blanc|white", @@ -96068,6 +96107,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var cs = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -96084,6 +96125,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -96115,6 +96157,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -96123,6 +96166,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var cy = { + False: "False", + True: "True", add: "adio|add", and: "a|and", ask: "gofyn|ask", @@ -96139,6 +96184,7 @@ def note_with_error(value, err): echo: "adleisio|echo", elif: "elif", else: "arall|else", + false: "false", for: "ar gyfer|for", forward: "ymlaen|forward", from: "o|from", @@ -96170,6 +96216,7 @@ def note_with_error(value, err): times: "gwaith|times", to: "i|to", to_list: "i|to", + true: "true", turn: "troi|turn", while: "tra|while", white: "gwyn|white", @@ -96178,6 +96225,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var da = { + False: "False", + True: "True", add: "add", and: "and", ask: "sp\xF8rg|ask", @@ -96194,6 +96243,7 @@ def note_with_error(value, err): echo: "ekko|echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "fremad|forward", from: "from", @@ -96225,6 +96275,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "drej|turn", while: "while", white: "white", @@ -96233,6 +96284,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var de = { + False: "False", + True: "True", add: "addiere|add", and: "und|and", ask: "frage|ask", @@ -96249,6 +96302,7 @@ def note_with_error(value, err): echo: "echo", elif: "sofalls|elif", else: "sonst|else", + false: "false", for: "f\xFCr|for", forward: "vorw\xE4rts|forward", from: "aus|from", @@ -96280,6 +96334,7 @@ def note_with_error(value, err): times: "mal|times", to: "bis|to", to_list: "zu|to", + true: "true", turn: "drehe|turn", while: "solange|while", white: "Wei\xDF|white", @@ -96288,6 +96343,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var el = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -96304,6 +96361,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -96335,6 +96393,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -96343,6 +96402,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var en = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -96359,6 +96420,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -96390,6 +96452,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -96398,6 +96461,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var eo = { + False: "False", + True: "True", add: "aldonu|add", and: "kaj|and", ask: "demandu|ask", @@ -96414,6 +96479,7 @@ def note_with_error(value, err): echo: "e\u0125u|ehhu|ehxu|e^hu|eh^u|echo", elif: "alie se|elif", else: "alie|else", + false: "false", for: "por|for", forward: "anta\u016Den|antauen|antauxen|forward", from: "el|from", @@ -96445,6 +96511,7 @@ def note_with_error(value, err): times: "fojojn|times", to: "\u011Dis|ghis|gxis|^gis|g^is|to", to_list: "al|to", + true: "true", turn: "turnu|turn", while: "dum|while", white: "blanka|white", @@ -96453,6 +96520,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var es = { + False: "False", + True: "True", add: "a\xF1adir|add", and: "y|and", ask: "preguntar|ask", @@ -96469,6 +96538,7 @@ def note_with_error(value, err): echo: "eco|echo", elif: "sinosi|elif", else: "sino|else", + false: "false", for: "para|for", forward: "adelante|forward", from: "de|from", @@ -96500,6 +96570,7 @@ def note_with_error(value, err): times: "veces|times", to: "a|to", to_list: "a|to", + true: "true", turn: "girar|turn", while: "mientras|while", white: "blanco|white", @@ -96508,6 +96579,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var et = { + False: "False", + True: "True", add: "lisa|add", and: "ja|and", ask: "k\xFCsi|ask", @@ -96524,6 +96597,7 @@ def note_with_error(value, err): echo: "peegelda|echo", elif: "muidukui|elif", else: "muidu|else", + false: "false", for: "jaoks|for", forward: "edasi|forward", from: "nimistust|from", @@ -96555,6 +96629,7 @@ def note_with_error(value, err): times: "korda|times", to: "kuni|to", to_list: "nimistusse|to", + true: "true", turn: "p\xF6\xF6ra|turn", while: "senikui|while", white: "valge|white", @@ -96563,6 +96638,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var fa = { + False: "False", + True: "True", add: "add", and: "and", ask: "\u0628\u067E\u0631\u0633|ask", @@ -96579,6 +96656,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "\u0628\u0647 \u062C\u0644\u0648|forward", from: "from", @@ -96610,6 +96688,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "\u062F\u0648\u0631 \u0628\u0632\u0646|turn", while: "while", white: "\u0633\u0641\u06CC\u062F|white", @@ -96618,6 +96697,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var fi = { + False: "False", + True: "True", add: "lis\xE4\xE4|add", and: "ja|and", ask: "kysy|ask", @@ -96634,6 +96715,7 @@ def note_with_error(value, err): echo: "kaiku|echo", elif: "muutenjos|elif", else: "muuten|else", + false: "false", for: "jokaiselle|for", forward: "eteenp\xE4in|forward", from: "listasta|from", @@ -96665,6 +96747,7 @@ def note_with_error(value, err): times: "kertaa|times", to: "asti|to", to_list: "listaksi|to", + true: "true", turn: "k\xE4\xE4nny|turn", while: "kun|while", white: "valkoinen|white", @@ -96673,6 +96756,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var fr = { + False: "False", + True: "True", add: "ajoute|add", and: "et|and", ask: "demande|ask", @@ -96689,6 +96774,7 @@ def note_with_error(value, err): echo: "r\xE9ponds|echo", elif: "sinon si|elif", else: "sinon|else", + false: "false", for: "pour|for", forward: "avance|forward", from: "de|from", @@ -96720,6 +96806,7 @@ def note_with_error(value, err): times: "fois|times", to: "\xE0|to", to_list: "\xE0|to", + true: "true", turn: "tourne|turn", while: "tant que|while", white: "blanc|white", @@ -96728,6 +96815,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var fr_CA = { + False: "False", + True: "True", add: "ajoute|add", and: "et|and", ask: "demande|ask", @@ -96744,6 +96833,7 @@ def note_with_error(value, err): echo: "r\xE9ponds|echo", elif: "sinon si|elif", else: "sinon|else", + false: "false", for: "pour|for", forward: "avance|forward", from: "de|from", @@ -96775,6 +96865,7 @@ def note_with_error(value, err): times: "fois|times", to: "\xE0|to", to_list: "\xE0|to", + true: "true", turn: "tourne|turn", while: "tant que|while", white: "blanc|white", @@ -96783,6 +96874,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var fy = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -96799,6 +96892,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -96830,6 +96924,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -96838,6 +96933,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var he = { + False: "False", + True: "True", add: "\u05D4\u05D5\u05E1\u05E3|add", and: "\u05D5\u05D2\u05DD|and", ask: "\u05E9\u05D0\u05DC|ask", @@ -96854,6 +96951,7 @@ def note_with_error(value, err): echo: "\u05D4\u05D3\u05D4\u05D3|echo", elif: "\u05D0\u05D7\u05E8\u05EA\u05D0\u05DD|elif", else: "\u05D0\u05D7\u05E8\u05EA|else", + false: "false", for: "\u05DC\u05DB\u05DC|for", forward: "\u05E7\u05D3\u05D9\u05DE\u05D4|forward", from: "\u05DE|from", @@ -96885,6 +96983,7 @@ def note_with_error(value, err): times: "\u05E4\u05E2\u05DE\u05D9\u05DD|times", to: "\u05E2\u05D3|to", to_list: "\u05D0\u05DC|to", + true: "true", turn: "\u05E4\u05E0\u05D4|turn", while: "\u05DB\u05DC\u05E2\u05D5\u05D3|while", white: "\u05DC\u05D1\u05DF|white", @@ -96893,6 +96992,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var hi = { + False: "False", + True: "True", add: "\u091C\u094B\u0921\u093C\u0928\u093E|add", and: "\u0914\u0930|and", ask: "\u092A\u0942\u091B\u0947\u0902|ask", @@ -96909,6 +97010,7 @@ def note_with_error(value, err): echo: "\u0917\u0942\u0902\u091C|echo", elif: "\u090F\u0932\u093F\u092B|elif", else: "\u0905\u0928\u094D\u092F\u0925\u093E|else", + false: "false", for: "\u0915\u0947 \u0932\u093F\u092F\u0947|for", forward: "\u0906\u0917\u0947|forward", from: "\u0938\u0947|from", @@ -96940,6 +97042,7 @@ def note_with_error(value, err): times: "\u092C\u093E\u0930|times", to: "\u0938\u0947|to", to_list: "\u0938\u0947|to", + true: "true", turn: "\u092E\u094B\u0921\u093C|turn", while: "\u0935\u094D\u0939\u093E\u0907\u0932|while", white: "\u0938\u092B\u093C\u0947\u0926|white", @@ -96948,6 +97051,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var hu = { + False: "False", + True: "True", add: "besz\xFAr|add", and: "\xE9s|and", ask: "k\xE9rdez|ask", @@ -96964,6 +97069,7 @@ def note_with_error(value, err): echo: "ut\xE1noz|echo", elif: "egybk-ha|elif", else: "egy\xE9bk\xE9nt|else", + false: "false", for: "minden|for", forward: "el\u0151re|forward", from: "ebb\u0151l|from", @@ -96995,6 +97101,7 @@ def note_with_error(value, err): times: "alkalommal|times", to: "t\u0151l|to", to_list: "ebbe|to", + true: "true", turn: "fordul|turn", while: "am\xEDg|while", white: "feh\xE9r|white", @@ -97003,6 +97110,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var ia = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -97019,6 +97128,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -97050,6 +97160,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -97058,6 +97169,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var iba = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -97074,6 +97187,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -97105,6 +97219,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -97113,6 +97228,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var id = { + False: "False", + True: "True", add: "tambah|add", and: "dan|and", ask: "tanya|ask", @@ -97129,6 +97246,7 @@ def note_with_error(value, err): echo: "gaungkan|echo", elif: "lain_jika|elif", else: "lainnya|else", + false: "false", for: "untuk|for", forward: "maju|forward", from: "dari|from", @@ -97160,6 +97278,7 @@ def note_with_error(value, err): times: "kali|times", to: "ke|to", to_list: "ke|to", + true: "true", turn: "belok|turn", while: "selama|while", white: "white", @@ -97168,6 +97287,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var it = { + False: "False", + True: "True", add: "add", and: "e|and", ask: "chiedi|ask", @@ -97184,6 +97305,7 @@ def note_with_error(value, err): echo: "eco|echo", elif: "altrimenti se|elif", else: "altrimenti|else", + false: "false", for: "for", forward: "avanti|forward", from: "da|from", @@ -97215,6 +97337,7 @@ def note_with_error(value, err): times: "volte|times", to: "to", to_list: "to", + true: "true", turn: "gira|turn", while: "mentre|while", white: "bianco|white", @@ -97223,6 +97346,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var ja = { + False: "False", + True: "True", add: "\u305F\u3059|add", and: "and", ask: "\u304D\u3051|ask", @@ -97239,6 +97364,7 @@ def note_with_error(value, err): echo: "\u307E\u306D|echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "\u3059\u3059\u3081|forward", from: "from", @@ -97270,6 +97396,7 @@ def note_with_error(value, err): times: "\u304B\u3044|times", to: "to", to_list: "to", + true: "true", turn: "\u307E\u308F\u308C|turn", while: "while", white: "\u3057\u308D|white", @@ -97278,6 +97405,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var kmr = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -97294,6 +97423,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -97325,6 +97455,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -97333,6 +97464,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var ko = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -97349,6 +97482,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -97380,6 +97514,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -97388,6 +97523,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var mi = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -97404,6 +97541,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -97435,6 +97573,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -97443,6 +97582,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var ms = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -97459,6 +97600,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -97490,6 +97632,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -97498,6 +97641,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var nb_NO = { + False: "False", + True: "True", add: "legg|add", and: "og|and", ask: "sp\xF8r|ask", @@ -97514,6 +97659,7 @@ def note_with_error(value, err): echo: "ekko|echo", elif: "elhvis|elif", else: "ellers|else", + false: "false", for: "for", forward: "frem|forward", from: "fra|from", @@ -97545,6 +97691,7 @@ def note_with_error(value, err): times: "ganger|times", to: "til|to", to_list: "til|to", + true: "true", turn: "snu|turn", while: "mens|while", white: "white", @@ -97553,6 +97700,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var nl = { + False: "False", + True: "True", add: "voeg|add", and: "en|and", ask: "vraag|ask", @@ -97569,6 +97718,7 @@ def note_with_error(value, err): echo: "echo", elif: "alsanders|elif", else: "anders|else", + false: "false", for: "voor|for", forward: "vooruit|forward", from: "uit|from", @@ -97600,6 +97750,7 @@ def note_with_error(value, err): times: "keer|times", to: "tot|to", to_list: "toe aan|to", + true: "true", turn: "draai|turn", while: "zolang|while", white: "wit|white", @@ -97608,6 +97759,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var pa_PK = { + False: "False", + True: "True", add: "\u062F\u06BE\u0646|add", and: "\u062A\u06D2|and", ask: "\u0633\u0648\u0627\u0644|ask", @@ -97624,6 +97777,7 @@ def note_with_error(value, err): echo: "\u0641\u06CC\u0631|echo", elif: "\u06C1\u0648\u0631|elif", else: "\u0648\u06A9\u06BE\u0631\u0627|else", + false: "false", for: "\u062C\u062F\u0648\u06BA|for", forward: "\u0627\u06AF\u06D2|forward", from: "\u0633\u0631\u0648\u062A|from", @@ -97655,6 +97809,7 @@ def note_with_error(value, err): times: "\u0636\u0631\u0628|times", to: "\u0645\u0646\u0632\u0644|to", to_list: "\u0645\u0646\u0632\u0644|to", + true: "true", turn: "\u0645\u0648\u0691\u0646|turn", while: "\u062C\u062F\u06A9\u06C1|while", white: "\u0686\u0679\u0627|white", @@ -97663,6 +97818,8 @@ def note_with_error(value, err): DIGIT: "0\u06F01\u06F12\u06F23\u06F34\u06F45\u06F56\u06F67\u06F78\u06F89\u06F9" }; var pap = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -97679,6 +97836,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -97710,6 +97868,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -97718,6 +97877,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var pl = { + False: "False", + True: "True", add: "dodaj|add", and: "i|and", ask: "zapytaj|ask", @@ -97734,6 +97895,7 @@ def note_with_error(value, err): echo: "do\u0142\u0105cz|echo", elif: "albo|elif", else: "inaczej|else", + false: "false", for: "dla|for", forward: "naprz\xF3d|forward", from: "z|from", @@ -97765,6 +97927,7 @@ def note_with_error(value, err): times: "razy|times", to: "do|to", to_list: "do|to", + true: "true", turn: "obr\xF3\u0107|turn", while: "dop\xF3ki|while", white: "bia\u0142y|white", @@ -97773,6 +97936,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var pt_BR = { + False: "False", + True: "True", add: "some|add", and: "e|and", ask: "pergunte|ask", @@ -97789,6 +97954,7 @@ def note_with_error(value, err): echo: "eco|echo", elif: "sen\xE3o se|elif", else: "sen\xE3o|else", + false: "false", for: "para|for", forward: "adiante|forward", from: "de|from", @@ -97820,6 +97986,7 @@ def note_with_error(value, err): times: "vezes|times", to: "para|to", to_list: "a|to", + true: "true", turn: "gire|turn", while: "enquanto|while", white: "branco|white", @@ -97828,6 +97995,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var pt_PT = { + False: "False", + True: "True", add: "adicionar|add", and: "e|and", ask: "perguntar|ask", @@ -97844,6 +98013,7 @@ def note_with_error(value, err): echo: "eco|echo", elif: "elif", else: "sen\xE3o|else", + false: "false", for: "for", forward: "avan\xE7ar|forward", from: "de|from", @@ -97875,6 +98045,7 @@ def note_with_error(value, err): times: "vezes|times", to: "to", to_list: "para|to", + true: "true", turn: "virar|turn", while: "enquanto|while", white: "branco|white", @@ -97883,6 +98054,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var ro = { + False: "False", + True: "True", add: "adun\u0103|add", and: "si|and", ask: "\xEEntreab\u0103|ask", @@ -97899,6 +98072,7 @@ def note_with_error(value, err): echo: "echo", elif: "altfel dac\u0103|elif", else: "else", + false: "false", for: "pentru|for", forward: "\xEEnainte|forward", from: "de la|from", @@ -97930,6 +98104,7 @@ def note_with_error(value, err): times: "inmul\u021Bit|times", to: "c\u0103tre|to", to_list: "c\u0103tre|to", + true: "true", turn: "intoarce|turn", while: "\xEEn timp ce|while", white: "alb|white", @@ -97938,6 +98113,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var ru = { + False: "False", + True: "True", add: "\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C|add", and: "\u0438|and", ask: "\u0437\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C|ask", @@ -97954,6 +98131,7 @@ def note_with_error(value, err): echo: "\u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C|echo", elif: "\u0438\u043D\u0430\u0447\u0435, \u0435\u0441\u043B\u0438|elif", else: "\u0438\u043D\u0430\u0447\u0435|else", + false: "false", for: "\u0434\u043B\u044F|for", forward: "\u0432\u043F\u0435\u0440\u0451\u0434|forward", from: "\u0438\u0437|from", @@ -97985,6 +98163,7 @@ def note_with_error(value, err): times: "\u0440\u0430\u0437|times", to: "\u0434\u043E|to", to_list: "\u0432|to", + true: "true", turn: "\u043F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C|turn", while: "\u043F\u043E\u043A\u0430|while", white: "\u0431\u0435\u043B\u044B\u0439|white", @@ -97993,6 +98172,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var sl = { + False: "False", + True: "True", add: "dodaj|add", and: "in|and", ask: "Vpra\u0161aj|ask", @@ -98009,6 +98190,7 @@ def note_with_error(value, err): echo: "ponovi|echo", elif: "ali\u010De|elif", else: "druga\u010De|else", + false: "false", for: "za|for", forward: "naprej|forward", from: "od|from", @@ -98040,6 +98222,7 @@ def note_with_error(value, err): times: "krat|times", to: "do|to", to_list: "do|to", + true: "true", turn: "obrni|turn", while: "medtem ko|while", white: "bela|white", @@ -98048,6 +98231,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var sq = { + False: "False", + True: "True", add: "shtoni|add", and: "dhe|and", ask: "pyet|ask", @@ -98064,6 +98249,7 @@ def note_with_error(value, err): echo: "p\xEBrs\xEBrit|echo", elif: "nendryshe|elif", else: "ndryshe|else", + false: "false", for: "p\xEBr|for", forward: "p\xEBrpara|forward", from: "nga|from", @@ -98095,6 +98281,7 @@ def note_with_error(value, err): times: "her|times", to: "deri|to", to_list: "deri|to", + true: "true", turn: "kthes\xEB|turn", while: "derisa|while", white: "bardh\xEB|white", @@ -98103,6 +98290,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var sr = { + False: "False", + True: "True", add: "dodaj|add", and: "i|and", ask: "pitaj|ask", @@ -98119,6 +98308,7 @@ def note_with_error(value, err): echo: "poka\u017Ei|echo", elif: "ina\u010De ako|elif", else: "ina\u010De|else", + false: "false", for: "za|for", forward: "napred|forward", from: "od|from", @@ -98150,6 +98340,7 @@ def note_with_error(value, err): times: "vremena|times", to: "u|to", to_list: "u|to", + true: "true", turn: "okreni|turn", while: "dok|while", white: "bela|white", @@ -98158,6 +98349,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var sv = { + False: "False", + True: "True", add: "addera|add", and: "och|and", ask: "fr\xE5ga|ask", @@ -98174,6 +98367,7 @@ def note_with_error(value, err): echo: "eko|echo", elif: "anom|elif", else: "annars|else", + false: "false", for: "f\xF6r|for", forward: "fram\xE5t|forward", from: "fr\xE5n|from", @@ -98205,6 +98399,7 @@ def note_with_error(value, err): times: "g\xE5nger|times", to: "till|to", to_list: "till|to", + true: "true", turn: "sv\xE4ng|turn", while: "medan|while", white: "vit|white", @@ -98213,6 +98408,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var sw = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -98229,6 +98426,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -98260,6 +98458,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -98268,6 +98467,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var te = { + False: "False", + True: "True", add: "\u0C1C\u0C4B\u0C21\u0C3F\u0C02\u0C1A\u0C41|add", and: "\u0C2E\u0C30\u0C3F\u0C2F\u0C41|and", ask: "\u0C05\u0C21\u0C17\u0C02\u0C21\u0C3F|ask", @@ -98284,6 +98485,7 @@ def note_with_error(value, err): echo: "\u0C2A\u0C4D\u0C30\u0C24\u0C3F\u0C27\u0C4D\u0C35\u0C28\u0C3F|echo", elif: "\u0C2E\u0C30\u0C4A\u0C15\u0C1F\u0C3F \u0C09\u0C02\u0C1F\u0C47|elif", else: "\u0C32\u0C47\u0C15\u0C2A\u0C4B\u0C24\u0C47|else", + false: "false", for: "\u0C15\u0C4B\u0C38\u0C02|for", forward: "\u0C2E\u0C41\u0C02\u0C26\u0C41\u0C15\u0C41|forward", from: "\u0C28\u0C41\u0C02\u0C21\u0C3F|from", @@ -98315,6 +98517,7 @@ def note_with_error(value, err): times: "\u0C38\u0C3E\u0C30\u0C4D\u0C32\u0C41|times", to: "\u0C15\u0C41|to", to_list: "\u0C15\u0C41|to", + true: "true", turn: "\u0C2E\u0C32\u0C41\u0C2A\u0C41|turn", while: "\u0C05\u0C2F\u0C3F\u0C24\u0C47|while", white: "white", @@ -98323,6 +98526,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var th = { + False: "False", + True: "True", add: "\u0E40\u0E1E\u0E34\u0E48\u0E21|add", and: "\u0E41\u0E25\u0E30|and", ask: "\u0E16\u0E32\u0E21\u0E27\u0E48\u0E32|ask", @@ -98339,6 +98544,7 @@ def note_with_error(value, err): echo: "\u0E1E\u0E39\u0E14|echo", elif: "\u0E2B\u0E23\u0E37\u0E2D\u0E16\u0E49\u0E32|elif", else: "\u0E44\u0E21\u0E48\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E31\u0E49\u0E19|else", + false: "false", for: "\u0E43\u0E2B\u0E49|for", forward: "\u0E40\u0E14\u0E34\u0E19\u0E2B\u0E19\u0E49\u0E32|forward", from: "\u0E08\u0E32\u0E01|from", @@ -98370,6 +98576,7 @@ def note_with_error(value, err): times: "\u0E04\u0E23\u0E31\u0E49\u0E07|times", to: "\u0E08\u0E19\u0E16\u0E36\u0E07|to", to_list: "\u0E44\u0E1B\u0E22\u0E31\u0E07|to", + true: "true", turn: "\u0E40\u0E25\u0E35\u0E49\u0E22\u0E27|turn", while: "\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E44\u0E2B\u0E23\u0E48\u0E01\u0E47\u0E15\u0E32\u0E21\u0E17\u0E35\u0E48|while", white: "\u0E02\u0E32\u0E27|white", @@ -98378,6 +98585,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var tl = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -98394,6 +98603,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -98425,6 +98635,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -98433,6 +98644,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var tn = { + False: "False", + True: "True", add: "tsenya|add", and: "and", ask: "ask", @@ -98449,6 +98662,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -98480,6 +98694,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -98488,6 +98703,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var tr = { + False: "False", + True: "True", add: "ekle|add", and: "ve|and", ask: "sor|ask", @@ -98504,6 +98721,7 @@ def note_with_error(value, err): echo: "yank\u0131la|echo", elif: "de\u011File\u011Fer|elif", else: "de\u011Filse|else", + false: "false", for: "\u015Funun i\xE7in|for", forward: "ileri|forward", from: "\u015Furadan|from", @@ -98535,6 +98753,7 @@ def note_with_error(value, err): times: "kere|times", to: "\u015Furaya|to", to_list: "\u015Furaya|to", + true: "true", turn: "d\xF6nd\xFCr|turn", while: "\u015Fu iken|while", white: "beyaz|white", @@ -98543,6 +98762,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var uk = { + False: "False", + True: "True", add: "\u0434\u043E\u0434\u0430\u0439|add", and: "\u0456|and", ask: "\u0437\u0430\u043F\u0438\u0442\u0430\u0439|ask", @@ -98559,6 +98780,7 @@ def note_with_error(value, err): echo: "\u0435\u0445\u043E|echo", elif: "\u0456\u043D\u0430\u043A\u0448\u0435 \u044F\u043A\u0449\u043E|elif", else: "\u0456\u043D\u0430\u043A\u0448\u0435|else", + false: "false", for: "\u0434\u043B\u044F|for", forward: "\u0432\u043F\u0435\u0440\u0435\u0434|forward", from: "i\u0437|\u0437|from", @@ -98590,6 +98812,7 @@ def note_with_error(value, err): times: "\u0440\u0430\u0437\u0456\u0432|\u0440\u0430\u0437\u0438|\u0440\u0430\u0437|times", to: "\u0434\u043E|to", to_list: "\u0434\u043E|to", + true: "true", turn: "\u043F\u043E\u0432\u0435\u0440\u043D\u0438|turn", while: "\u0442\u043E\u0434\u0456 \u044F\u043A|while", white: "\u0431\u0456\u043B\u0438\u0439|white", @@ -98598,6 +98821,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var ur = { + False: "False", + True: "True", add: "\u0634\u0627\u0645\u0644|add", and: "\u0627\u0648\u0631|and", ask: "\u0628\u062A\u0627\u0624|ask", @@ -98614,6 +98839,7 @@ def note_with_error(value, err): echo: "\u067E\u06A9\u0627\u0631|echo", elif: "\u06CC\u0627\u0627\u06AF\u0631|elif", else: "\u0648\u0631\u0646\u06C1|else", + false: "false", for: "\u0641\u06CC|for", forward: "\u0622\u06AF\u06D2|forward", from: "\u0633\u06D2|from", @@ -98645,6 +98871,7 @@ def note_with_error(value, err): times: "\u062F\u0641\u0639\u06C1|times", to: "\u0633\u06D2|to", to_list: "\u0627\u0646\u062F\u0631|to", + true: "true", turn: "\u0645\u0691\u0648|turn", while: "\u062C\u0628\u062A\u06A9|while", white: "\u0633\u0641\u06CC\u062F|white", @@ -98653,6 +98880,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var vi = { + False: "False", + True: "True", add: "add", and: "v\xE0|and", ask: "h\u1ECFi|ask", @@ -98669,6 +98898,7 @@ def note_with_error(value, err): echo: "\u0111\xE1p|echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "ti\u1EBFn|forward", from: "from", @@ -98700,6 +98930,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "quay|turn", while: "while", white: "tr\u1EAFng|white", @@ -98708,6 +98939,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var zh_Hans = { + False: "False", + True: "True", add: "\u52A0|add", and: "\u5E76\u4E14|and", ask: "\u63D0\u95EE|ask", @@ -98724,6 +98957,7 @@ def note_with_error(value, err): echo: "\u56DE\u58F0|echo", elif: "\u5426\u5219\u5982\u679C|elif", else: "\u5426\u5219|else", + false: "false", for: "\u53D6|for", forward: "\u5411\u524D|forward", from: "\u4ECE|from", @@ -98755,6 +98989,7 @@ def note_with_error(value, err): times: "\u6B21|times", to: "\u5230|to", to_list: "\u5230|to", + true: "true", turn: "\u65CB\u8F6C|turn", while: "\u5F53|while", white: "\u767D\u8272|white", @@ -98763,6 +98998,8 @@ def note_with_error(value, err): DIGIT: "0123456789" }; var zh_Hant = { + False: "False", + True: "True", add: "add", and: "and", ask: "ask", @@ -98779,6 +99016,7 @@ def note_with_error(value, err): echo: "echo", elif: "elif", else: "else", + false: "false", for: "for", forward: "forward", from: "from", @@ -98810,6 +99048,7 @@ def note_with_error(value, err): times: "times", to: "to", to_list: "to", + true: "true", turn: "turn", while: "while", white: "white", @@ -99306,7 +99545,11 @@ def note_with_error(value, err): "is": is13, "while": _while, "call": call4, - "with": _with4 + "with": _with4, + "true": low_true, + "false": low_false, + "True": cap_true, + "False": cap_false } }, 16: { @@ -99344,7 +99587,11 @@ def note_with_error(value, err): "is": is14, "while": _while2, "call": call5, - "with": _with5 + "with": _with5, + "true": low_true2, + "false": low_false2, + "True": cap_true2, + "False": cap_false2 } }, 17: { @@ -99383,7 +99630,11 @@ def note_with_error(value, err): "while": _while3, "elif": elif, "call": call6, - "with": _with6 + "with": _with6, + "true": low_true3, + "false": low_false3, + "True": cap_true3, + "False": cap_false3 } }, 18: { @@ -99416,7 +99667,11 @@ def note_with_error(value, err): "while": whiles, "return": returns7, "for": fors9, - "elif": elif2 + "elif": elif2, + "true": low_true4, + "false": low_false4, + "True": cap_true4, + "False": cap_false4 }, extend: {} } @@ -99761,85 +100016,85 @@ def note_with_error(value, err): // static/js/lezer-parsers/level15-parser.ts var parser15 = LRParser.deserialize({ version: 14, - states: "=vQYQPOOOOQO'#D|'#D|QYQPOOO!gQPO'#EXOOQO'#EU'#EUO!{QPO'#DXO#TQPO'#DQO#]QPO'#D{OOQO'#E]'#E]O#hQPO'#D`OOQO'#E^'#E^O$UQPO'#DaOOQO'#E_'#E_O$]QPO'#DbOOQO'#E`'#E`O$dQPO'#DdOOQO'#Ea'#EaO$kQPO'#DeOOQO'#Eb'#EbO$rQPO'#DfOOQO'#Dc'#DcOOQO'#Ec'#EcO$yQPO'#DgOOQO'#Ed'#EdO%iQPO'#DhOOQO'#Ef'#EfO%pQPO'#DiOOQO'#Eh'#EhO&YQPO'#DjOOQO'#Eo'#EoO&aQPO'#DuOOQO'#Ep'#EpO&lQPO'#DvOOQO'#Er'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Q!V#z$VQ#z!xR$V!yW#e!Q!S!V!WR$e#eQ#l!]R$m#lQ#o!^R$o#o!dTOQZ]_acfhjlvx{!Q!S!V!W!c#U#e#h#s#t#z#{#}$Q$X$Z$g$x${S!TT%q]%q#j$`%`%o%r%sQ#j!UQ$`#TU$h#j$`%oR%o%pQ%a$kR%h%aUVOQ{U!YV#f%]S#f!Q!SR%]$cS$d#c#fR%_$dS#h!Q!SR$f#hQ!cZQ#UvU#u!c#U$gR$g#hUXOQ{R!ZXUZOQ{R!dZU]OQ{R!f]U_OQ{R!i_UaOQ{R!laUcOQ{R!ocUfOQ{R!rfUhOQ{R!uhQ#w!tR$s#wUjOQ{R!wjQ#y!vR$u#yUlOQ{R!zlQ%R$VR%d%RQ$S!xQ$_#RT$|$S$_Q$U!xR%O$UQ$[!|Q$a#XT%V$[$aW$X!|#X$[$aR%S$XW$Z!|#X$[$aR%U$ZUnOQ{R!}nUpOQ{R#OpQ$^#PR%W$^UrOQ{R#QrQ%Y$_R%e%YQ%j%fR%l%jUtOQ{R#StUvOQ{R#VvUxOQ{R#Wx!k!_Z]_acfhjlvx!Q!S!V!W!c#U#e#h#j#s#t#z#{#}$Q$X$Z$`$g$x${%`%o%r%sS$k#j$`Q%g%`R%k%o", - nodeNames: "\u26A0 ask at random if pressed else and or is while define with print forward turn color sleep play add from remove toList clear in not_in repeat times for to range call return Comment Program Command Assign Text ListAccess Number Op Expression String Call Arguments Comma Op Op AssignList Ask Clear Print Play Turtle Forward Turn Color Sleep Add Remove If Condition PressedCheck EqualityCheck NotEqualCheck Op ComparisonCheck Op Op InListCheck NotInListCheck Else Repeat For Define Return While ErrorInvalid", - maxTerm: 141, + states: "=|QYQPOOOOQO'#EQ'#EQQYQPOOO!gQPO'#E]OOQO'#EY'#EYO!{QPO'#D]O#TQPO'#DUO#]QPO'#EPOOQO'#Ea'#EaO#hQPO'#DdOOQO'#Eb'#EbO$bQPO'#DeOOQO'#Ec'#EcO$iQPO'#DfOOQO'#Ed'#E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O7]QPO1G/^OOQO1G/^1G/^O9VQPO'#DZOOQO-E8S-E8SO9aQPO'#EVO:bQPO1G/hOOQO'#EV'#EVO;fQPO1G/[O;pQPO1G/hOOQO'#E_'#E_O;xQPO1G/iOOQO'#EZ'#EZOOQPO1G/tOOQO'#Eu'#EuO>^QPO1G0QO>iQPO1G0ROtQPO1G0UOOQO-E8R-E8RO?SQPO'#E^O?hQPO7+%SOOQO-E8T-E8TOOQO-E8]-E8]O?sQPO7+%TOOQO-E8X-E8XO?}QPO'#F[OOQO'#F['#F[OAtQPO'#D^OOQO7+$}7+$}OOOO-E8U-E8UOOQO1G1Y1G1YOOOO-E8V-E8VOOQO1G1^1G1^OOQO1G1c1G1cOCkQPO1G1cOOQO-E8g-E8gOOQO7+%^7+%^OOQO-E8i-E8iOOQO7+%_7+%_OE_QPO1G/wO%dQPO1G/wOEyQPO1G/xOFeQPO1G/zO%dQPO1G/zOOQO-E8l-E8lOOQO1G/}1G/}OOQO-E8m-E8mOOQO1G0O1G0OOOQO'#Em'#EmOGPQPO1G/vOOQO-E8o-E8oOOQO,5;[,5;[OOQO-E8p-E8pOOQO-E8n-E8nOOQO-E8s-E8sOOQO'#Ew'#EwOGbQPO7+%mOOQO7+%m7+%mOOQO7+%n7+%nOGmQPO,5:xOOQO,5:x,5:xOOQO-E8[-E8[O#sQPO'#E[OG{QPO,59xOIrQPO7+%cOJ^QPO7+%fOOQO-E8k-E8kOOQO-E8u-E8uOJxQPO<sOOQO'#D^'#D^OOQO-E8v-E8vOOQOG24_G24_POQO,59x,59xO specializeKeyword(value, stack) << 1, external: specializeKeyword }, { term: 37, get: (value, stack) => extendKeyword(value, stack) << 1 | 1, external: extendKeyword, extend: true }], - tokenPrec: 1784 + tokenData: "1e~R!`OY%TYZ&XZp%Tpq&^qr&crs&nst&stw%Twx'[xz%Tz{'a{|'f|}'k}!O'p!O!P%T!P!Q'u!Q!R'z!R!S'z!S!T'z!T!U'z!U!V'z!V!W'z!W!X'z!X!Y'z!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&R<%l?Hb%T?HcO%T~.X}{~y~OY%TZp%Ttw%Txz%T!O!P%T!Q!R.Q!R!S.Q!S!T.Q!T!U.Q!U!V.Q!V!W.Q!W!X.Q!X!Y.Q!Y!Z.Q!Z![.Q![!^%T!a#Q%T#RBn%TBoDf%TDfDg.QDgDh.QDhDi.QDiDj.QDjDk.QDkDl.QDlDm.QDmDn.QDnDo.QDoDp.QDpGl%TGlGm.QGmGn.QGnGo.QGoGp.QGpGq.QGqGr.QGrGs.QGsGt.QGtGu.QGuGv.QGv&FV%T&FW;'S%T;'S;=`&R<%l?Hb%T?HcO%T~1ZO$W~~1`O#t~~1eO$V~", + tokenizers: [2, new LocalTokenGroup("_~RQYZXwxX~^O#}~~", 14, 136), new LocalTokenGroup("_~RQYZXrsX~^O#y~~", 14, 132)], + topRules: { "Program": [0, 38] }, + dynamicPrecedences: { "81": -10, "129": 10 }, + specialized: [{ term: 41, get: (value, stack) => specializeKeyword(value, stack) << 1, external: specializeKeyword }, { term: 41, get: (value, stack) => extendKeyword(value, stack) << 1 | 1, external: extendKeyword, extend: true }], + tokenPrec: 1964 }); // static/js/lezer-parsers/level16-parser.ts var parser16 = LRParser.deserialize({ version: 14, - states: "cQPO7+%jOOQO7+%j7+%jOOQO7+%k7+%kO>nQPO'#EXO8wQPO<|QPO,59uO#hQPO'#EWOOQO-E8f-E8fO@gQPO7+%`OARQPO7+%cOOQO-E8p-E8pOAmQPO<VAN>VOOQO-E8U-E8UOArQPO,5:rOOQO'#Es'#EsOC]QPOAN>pOOQO-E8q-E8qOOQOG24[G24[POQO,59u,59uOChQPO'#DZO5{QPO1G/`OCoQPO,59tOCvQPO'#DYO#hQPO,5;sO#hQPO,5;sODOQPO1G1_", - stateData: "DY~OpOS#nOS~ORjOTlOXvOYrO[XO]]O^_O_aO`dOaZObfOdhOfVOinOkpOnSOotOtRO#oPO~OW!PO#p}O#r!ROt#kX#l#kX#o#kX~OnSOt!UO~OW!PO#r!RO~OfVO#l!TX#o!TX~OnS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$U!{U$`#`$U%hR%h%iQ%U$bR%`%UQ%S$]R%^%SS#^!Q!SR$^#^Q!`YQ!|uU#k!`!|$_R$_#^UWOQ{R!XWUYOQ{R!aYU[OQ{R!c[U^OQ{R!e^U`OQ{R!g`UbOQ{R!ibUeOQ{R!keUgOQ{R!mgQ#m!lR$i#mUiOQ{R!oiQ#o!nR$k#oUkOQ{R!rkQ$n#pR%W$nQ#y!qQ$T!yT$t#y$TQ#{!qR$v#{Q$Q!tQ$V#PT${$Q$VW#}!t#P$Q$VR$x#}W$P!t#P$Q$VR$z$PUmOQ{R!umUoOQ{R!voQ$S!wR$|$SUqOQ{R!xqQ%O$TR%Z%OQ%c%[R%d%cUsOQ{R!zsUuOQ{R!}uUwOQ{R#OwUxOQ{R#Rx!o!]Y[^`begikuw!Q!S!V!W!`!|#Z#[#^#`#i#j#q#r#t#w#}$P$U$_$p$s%R%V%h%k%l", - nodeNames: "\u26A0 ask random if pressed else and or is while define with print forward turn color sleep play add from remove toList clear in not_in repeat times for to range call return Comment Program Command Assign Text ListAccess Op Number Op Op Expression String Call Arguments Comma Op Op AssignList Ask Clear Print Play Turtle Forward Turn Color Sleep Add Remove If Condition PressedCheck EqualityCheck NotEqualCheck Op ComparisonCheck Op Op InListCheck NotInListCheck Else Repeat For Define Return While ErrorInvalid", - maxTerm: 142, + states: "=QQYQPOOOOQO'#ER'#ERQYQPOOO!gQPO'#E{OOQO'#EY'#EYO!{QPO'#D^O#TQPO'#DTOOQO'#E`'#E`O#]QPO'#DeOOQO'#Ea'#EaO$VQPO'#DfOOQO'#Eb'#EbO$^QPO'#DgOOQO'#Ec'#EcO$eQPO'#DiOOQO'#Ed'#EdO$lQPO'#DjOOQO'#Ee'#EeO$sQPO'#DkOOQO'#Dh'#DhOOQO'#Ef'#EfO$zQPO'#DlOOQO'#Eg'#EgO%XQPO'#DmOOQO'#Ei'#EiO%`QPO'#DnOOQO'#Ek'#EkO&UQPO'#DoOOQO'#Er'#ErO&]QPO'#DzOOQ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kw$O$QR#u!rR#x!rQQOS|Q#TR#TzS{OQR#U{Q#W!OR$X#WQ!QRQ!VUW#Y!Q!V#q#rQ#q!qR#r!rW#[!Q!S!V!WR$[#[Q#c![R$d#cQ#f!]R$f#f!dTOQY[^`begikuw{!Q!S!V!W!a!}#[#_#j#k#r#s#u#x$O$Q$`$q$tS!TT%k]%k#a$V%W%i%l%mQ#a!UQ$V!|U$a#a$V%iR%i%jQ%V$cR%a%VQ%T$^R%_%TS#_!Q!SR$_#_Q!aYQ!}uU#l!a!}$`R$`#_UWOQ{R!XWUYOQ{R!bYU[OQ{R!d[U^OQ{R!f^U`OQ{R!h`UbOQ{R!jbUeOQ{R!leUgOQ{R!ngQ#n!mR$j#nUiOQ{R!piQ#p!oR$l#pUkOQ{R!skQ$o#qR%X$oQ#z!rQ$U!zT$u#z$UQ#|!rR$w#|Q$R!uQ$W#QT$|$R$WW$O!u#Q$R$WR$y$OW$Q!u#Q$R$WR${$QUmOQ{R!vmUoOQ{R!woQ$T!xR$}$TUqOQ{R!yqQ%P$UR%[%PQ%d%]R%e%dUsOQ{R!{sUuOQ{R#OuUwOQ{R#PwUxOQ{R#Sx!o!^Y[^`begikuw!Q!S!V!W!a!}#[#]#_#a#j#k#r#s#u#x$O$Q$V$`$q$t%S%W%i%l%m", + nodeNames: "\u26A0 ask random if pressed else and or is while define with true false True False print forward turn color sleep play add from remove toList clear in not_in repeat times for to range call return Comment Program Command Assign Text ListAccess Op Number Op Op Expression String Call Arguments Comma Op Op AssignList Ask Clear Print Play Turtle Forward Turn Color Sleep Add Remove If Condition PressedCheck EqualityCheck NotEqualCheck Op ComparisonCheck Op Op InListCheck NotInListCheck Else Repeat For Define Return While ErrorInvalid", + maxTerm: 147, nodeProps: [ - ["group", 54, "turtle"] + ["group", 58, "turtle"] ], - skippedNodes: [0, 32], + skippedNodes: [0, 36], repeatNodeCount: 41, - tokenData: "2U~R!cOY%^YZ&eZp%^pq&jqr&ors&zst'Ptw%^wx'hxz%^z{'m{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n.dDnDo.dDoDp.dDpGl%^GlGm.dGmGn.dGnGo.dGoGp.dGpGq.dGqGr.dGrGs.dGsGt.dGtGu.dGuGv.dGv&FV%^&FW;'S%^;'S;=`&_<%l?Hb%^?HcO%^~.k!Ow~t~OY%^Zp%^tw%^xz%^!O!P%^!Q!R.d!R!S.d!S!T.d!T!U.d!U!V.d!V!W.d!W!X.d!X!Y.d!Y!Z.d!Z![.d![!^%^!a!}%^#O#P%^#QBn%^BoDf%^DfDg.dDgDh.dDhDi.dDiDj.dDjDk.dDkDl.dDlDm.dDmDn.dDnDo.dDoDp.dDpGl%^GlGm.dGmGn.dGnGo.dGoGp.dGpGq.dGqGr.dGrGs.dGsGt.dGtGu.dGuGv.dGv&FV%^&FW;'S%^;'S;=`&_<%l?Hb%^?HcO%^~1pO$S~~1uO#r~~1zO$R~~2PO#p~~2UO#q~", - tokenizers: [2, new LocalTokenGroup("_~RQYZXwxX~^O#z~~", 14, 133), new LocalTokenGroup("_~RQYZXrsX~^O#v~~", 14, 129)], - topRules: { "Program": [0, 33] }, - dynamicPrecedences: { "78": -10 }, - specialized: [{ term: 36, get: (value, stack) => specializeKeyword(value, stack) << 1, external: specializeKeyword }, { term: 36, get: (value, stack) => extendKeyword(value, stack) << 1 | 1, external: extendKeyword, extend: true }], - tokenPrec: 1617 + tokenData: "2U~R!cOY%^YZ&eZp%^pq&jqr&ors&zst'Ptw%^wx'hxz%^z{'m{|'r|}'w}!O'|!O!P%^!P!Q(R!Q!R(W!R!S(W!S!T(W!T!U(W!U!V(W!V!W(W!W!X(W!X!Y(W!Y!Z(W!Z![(W![!^%^!^!_1k!_!`1p!`!a1u!a!}%^!}#O1z#O#P%^#P#Q2P#QBn%^BnBo'wBoDf%^DfDg(WDgDh(WDhDi(WDiDj(WDjDk(WDkDl(WDlDm(WDmDn(WDnDo(WDoDp(WDpGl%^GlGm(WGmGn(WGnGo(WGoGp(WGpGq(WGqGr(WGrGs(WGsGt(WGtGu(WGuGv(WGv&FV%^&F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DnDo.dDoDp.dDpGl%^GlGm.dGmGn.dGnGo.dGoGp.dGpGq.dGqGr.dGrGs.dGsGt.dGtGu.dGuGv.dGv&FV%^&FW;'S%^;'S;=`&_<%l?Hb%^?HcO%^~1pO$X~~1uO#v~~1zO$W~~2PO#t~~2UO#u~", + tokenizers: [2, new LocalTokenGroup("_~RQYZXwxX~^O$P~~", 14, 138), new LocalTokenGroup("_~RQYZXrsX~^O#{~~", 14, 134)], + topRules: { "Program": [0, 37] }, + dynamicPrecedences: { "82": -10 }, + specialized: [{ term: 40, get: (value, stack) => specializeKeyword(value, stack) << 1, external: specializeKeyword }, { term: 40, get: (value, stack) => extendKeyword(value, stack) << 1 | 1, external: extendKeyword, extend: true }], + tokenPrec: 1749 }); // static/js/lezer-parsers/level17-parser.ts var parser17 = LRParser.deserialize({ version: 14, - states: "?UQYQPOOOOQO'#EQ'#EQQYQPOOO!jQPO'#E{OOQO'#EX'#EXO#OQPO'#DZO#WQPO'#DQOOQO'#E_'#E_O#`QPO'#DbOOQO'#E`'#E`O#|QPO'#DcOOQO'#Ea'#EaO$TQPO'#DdOOQO'#Eb'#EbO$[QPO'#DfOOQO'#Ec'#EcO$cQPO'#DgOOQO'#Ed'#EdO$jQPO'#DhOOQO'#De'#DeOOQO'#Ee'#EeO$qQPO'#DiOOQO'#Ef'#EfO%OQPO'#DjOOQO'#Eh'#EhO%VQPO'#DkOOQO'#Ej'#EjO%oQPO'#DlOOQO'#Eq'#EqO%vQPO'#DxOOQO'#Er'#ErO&OQPO'#DyOOQO'#Et'#EtO&ZQPO'#DzOOQO'#Ew'#EwO&cQPO'#D{OOQO'#Ex'#ExO&kQPO'#D|OOQO'#Ey'#EyO&rQPO'#D}OOQO'#Ez'#EzO&yQPO'#EOO'QQPO'#EPOOQO'#DP'#DPQ!eQPO'#ERQ']QPOOOOQO-E8O-E8OOOQO'#DT'#DTO(jQPO,59nOOQO'#ET'#ETO(uQPO,59lOOQO'#DW'#DWO)SQPO,59lOOQO-E8V-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#u!pR$v#uUkOQ}R!tkQ$y#vR%f$yQ$P!sQ$[!}T%P$P$[Q$R!sR%R$RQ$W!vQ$_#TQ$a#VV%W$W$_$a[$T!v#T#V$W$_$aR%T$T[$V!v#T#V$W$_$aR%V$VUmOQ}R!xmUoOQ}R!zoQ$Z!{R%Y$ZUqOQ}R!|qQ%[$[R%i%[Q%s%jR%t%sUsOQ}R#OsUuOQ}R#RuUwOQ}R#SwUyOQ}R#UyUzOQ}R#Xz!q!_Y[^`begikuwy!S!U!X!Y!b#Q#a#b#d#f#o#p#w#x#z#}$T$V$]$j${%O%a%e%y%|%}", - nodeNames: "\u26A0 ask random if pressed else and or is while elif define with print forward turn color sleep play add from remove toList clear in not_in repeat times for to range call return Comment Program Command Assign Text ListAccess Op Number Op Op Expression String Call Arguments Comma Op Op AssignList Ask Clear Print Play Turtle Forward Turn Color Sleep Add Remove If Condition PressedCheck EqualityCheck NotEqualCheck Op ComparisonCheck Op Op InListCheck NotInListCheck Op Else Repeat For Define Return While Elif ErrorInvalid", - maxTerm: 147, + states: "?[QYQPOOOOQO'#EU'#EUQYQPOOO!jQPO'#FPOOQO'#E]'#E]O#OQPO'#D_O#WQPO'#DUOOQO'#Ec'#EcO#`QPO'#DfOOQO'#Ed'#EdO$YQPO'#DgOOQO'#Ee'#EeO$aQPO'#DhOOQO'#Ef'#EfO$hQPO'#DjOOQO'#Eg'#EgO$oQPO'#DkOOQO'#Eh'#EhO$vQPO'#DlOOQO'#Di'#DiOOQO'#Ei'#EiO$}QPO'#DmOOQO'#Ej'#EjO%[QPO'#DnOOQO'#El'#ElO%cQPO'#DoOOQO'#En'#EnO&XQPO'#DpOOQO'#Eu'#EuO&`QPO'#D|OOQO'#Ev'#EvO&hQPO'#D}OOQO'#Ex'#ExO&sQPO'#EOOOQO'#E{'#E{O&{QPO'#EPOOQO'#E|'#E|O'TQPO'#EQOOQO'#E}'#E}O'[QPO'#EROOQO'#FO'#FOO'cQPO'#ESO'jQPO'#ETOOQO'#DT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!S(^!S!T(^!T!U(^!U!V(^!V!W(^!W!X(^!X!Y(^!Y!Z(^!Z![(^!]!^%a!a!}%a#O#P%a#QBn%aBoDf%aDfDg(^DgDh(^DhDi(^DiDj(^DjDk(^DkDl(^DlDm(^DmDn(^DnDo(^DoDp(^DpGl%aGlGm(^GmGn(^GnGo(^GoGp(^GpGq(^GqGr(^GrGs(^GsGt(^GtGu(^GuGv(^Gv&FV%a&FW;'S%a;'S;=`&e<%l?Hb%a?HcO%a~+j!Oy~OY%aZp%atw%axz%a!O!P%a!Q!R.j!R!S.j!S!T.j!T!U.j!U!V.j!V!W.j!W!X.j!X!Y.j!Y!Z.j!Z![.j!]!^%a!a!}%a#O#P%a#QBn%aBoDf%aDfDg.jDgDh.jDhDi.jDiDj.jDjDk.jDkDl.jDlDm.jDmDn.jDnDo.jDoDp.jDpGl%aGlGm.jGmGn.jGnGo.jGoGp.jGpGq.jGqGr.jGrGs.jGsGt.jGtGu.jGuGv.jGv&FV%a&FW;'S%a;'S;=`&e<%l?Hb%a?HcO%a~.q!O|~y~OY%aZp%atw%axz%a!O!P%a!Q!R.j!R!S.j!S!T.j!T!U.j!U!V.j!V!W.j!W!X.j!X!Y.j!Y!Z.j!Z![.j!]!^%a!a!}%a#O#P%a#QBn%aBoDf%aDfDg.jDgDh.jDhDi.jDiDj.jDjDk.jDkDl.jDlDm.jDmDn.jDnDo.jDoDp.jDpGl%aGlGm.jGmGn.jGnGo.jGoGp.jGpGq.jGqGr.jGrGs.jGsGt.jGtGu.jGuGv.jGv&FV%a&FW;'S%a;'S;=`&e<%l?Hb%a?HcO%a~1vO$^~~1{O$]~~2QO#z~~2VO$[~~2[O#x~~2aO#y~", + tokenizers: [2, new LocalTokenGroup("_~RQYZXwxX~^O$T~~", 14, 142), new LocalTokenGroup("_~RQYZXrsX~^O$P~~", 14, 138)], + topRules: { "Program": [0, 38] }, + dynamicPrecedences: { "85": -10 }, + specialized: [{ term: 41, get: (value, stack) => specializeKeyword(value, stack) << 1, external: specializeKeyword }, { term: 41, get: (value, stack) => extendKeyword(value, stack) << 1 | 1, external: extendKeyword, extend: true }], + tokenPrec: 1714 }); // static/js/lezer-parsers/level18-parser.ts var parser18 = LRParser.deserialize({ version: 14, - states: "?[QYQPOOOOQO'#EO'#EOQYQPOOO!gQPO'#EvO#OQPO'#C}OOQO'#EY'#EYO#WQPO'#DaOOQO'#EZ'#EZO#cQPO'#DbOOQO'#E['#E[O#kQPO'#DcOOQO'#E]'#E]O#|QPO'#DeOOQO'#E^'#E^O$_QPO'#DfOOQO'#E_'#E_O$pQPO'#DgOOQO'#Dd'#DdOOQO'#E`'#E`O%RQPO'#DhOOQO'#Ea'#EaO%jQPO'#DiOOQO'#Ec'#EcO%{QPO'#DjOOQO'#Ee'#EeO&^QPO'#DkOOQO'#Ek'#EkO&oQPO'#DvOOQO'#El'#ElO&wQPO'#DwOOQO'#En'#EnO'SQPO'#DxOOQO'#Eq'#EqO'[QPO'#DyOOQO'#Er'#ErO'dQPO'#DzOOQO'#Et'#EtO'lQPO'#D{OOQO'#Eu'#EuO'}QPO'#D|O(`QPO'#D}OOQO'#C|'#C|Q!bQPO'#EPQ(kQPOOOOQO-E7|-E7|OOQO'#DQ'#DQO)uQPO,59kOOQO'#ER'#ERO*fQPO,59iOOQO'#DT'#DTOOQO'#DX'#DXO*mQPO,59rO*QQPO,59iO+OQPO,59iO#nQPO,59iOOQO-E8W-E8WOOQO-E8X-E8XO*mQPO,59|O,XQPO'#DUO-UOSO'#FOO-^OQO'#FSOOQO'#DV'#DVO-fQPO,59}OOQO'#DU'#DUOOQO-E8Y-E8YO-zQPO,5:POOQO-E8Z-E8ZO.`QPO,5:QOOQO-E8[-E8[O.tQPO,5:ROOQO-E8]-E8]O/YQPO,5:SOOQO-E8^-E8^O/nQPO,5:TOOQO-E8_-E8_O0PQPO,5:UOOQO-E8a-E8aO0bQPO'#DUO0iQPO'#DnOOQO-E8c-E8cOOQO'#Dl'#DlO1ZQPO,5:VOOQO'#Du'#D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%q%`Q%u%gQ%z%yR&O%}s#r!`!c!e!g!i!k!m!p#_#g$u$|%O%P%i%k%ls#s!`!c!e!g!i!k!m!p#_#g$u$|%O%P%i%k%lVaOQ{Q!siQ#SuQ#UwT%U$T$VZ!riuw$T$VR#|!pR$P!pQ!vkQ$X!sQ$a#SQ$c#UQ%X$WQ%a$`Q%b$bQ%o%^Q%p%_Q%w%qQ%|%zR&P&OQQOS|Q#XR#XzS{OQR#Y{Q#[!OR$d#[Q!QRQ!VSW#^!Q!V#x#yQ#x!oR#y!pW#`!Q!U!V!WR$g#`Q#k!]R$p#kQ#n!^R$r#nQ$m#gR%h$mQ%d$iR%s%dS#c!Q!UR$j#cUUOQ{R!XUUWOQ{R!YWUYOQ{R!bYU[OQ{R!d[U^OQ{R!f^U`OQ{R!h`UcOQ{R!jcUeOQ{R!leQ#u!kR$v#uUgOQ{R!ngQ#w!mR$x#wUiOQ{R!qiQ${#xR%j${Q$R!pR%R$RQ$W!sQ$`#SQ$b#UV%W$W$`$b[$T!s#S#U$W$`$bR%T$T[$V!s#S#U$W$`$bR%V$VUkOQ{R!ukUmOQ{R!wmQ$Z!xR%Y$ZUoOQ{R!yoQ$]!zR%Z$]Q%]$]R%m%]UqOQ{R!{qUsOQ{R#OsQ#QsR$_#QUuOQ{R#RuUwOQ{R#TwUxOQ{R#Wx!c!_Y[^`cegiuw!Q!T!U!V!W!Z#`#a#r#s#y#z#|$P$T$V$^$k$n$}%Q%c", - nodeNames: "\u26A0 print is input sleep play random forward turn color add remove from clear if else and or pressed notIn in repeat times range while def return for toList elif Comment Program Command Assign Text ListAccess Op Number Op Op Expression String Call Op Arguments Comma Op Op Op AssignList Input Clear Print Play Turtle Forward Turn Color Sleep Add Remove If Condition PressedCheck EqualityCheck NotEqualCheck Op ComparisonCheck Op Op ListCheck Op Else Repeat For Define Return While Elif ErrorInvalid", - maxTerm: 144, + states: "?bQYQPOOOOQO'#ES'#ESQYQPOOO!gQPO'#EzO#OQPO'#DROOQO'#E^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QBn%dBoDf%dDfDg(hDgDh(hDhDi(hDiDj(hDjDk(hDkDl(hDlDm(hDmDn(hDnDo(hDoDp(hDpGl%dGlGm(hGmGn(hGnGo(hGoGp(hGpGq(hGqGr(hGrGs(hGsGt(hGtGu(hGuGv(hGv&FV%d&FW;'S%d;'S;=`&e<%l?Hb%d?HcO%d~+q}v~OY%dZp%dtw%d!O!P%d!Q!R.n!R!S.n!S!T.n!T!U.n!U!V.n!V!W.n!W!X.n!X!Y.n!Y!Z.n!Z![.n!]!^%d!a!}%d#O#P%d#QBn%dBoDf%dDfDg.nDgDh.nDhDi.nDiDj.nDjDk.nDkDl.nDlDm.nDmDn.nDnDo.nDoDp.nDpGl%dGlGm.nGmGn.nGnGo.nGoGp.nGpGq.nGqGr.nGrGs.nGsGt.nGtGu.nGuGv.nGv&FV%d&FW;'S%d;'S;=`&e<%l?Hb%d?HcO%d~.u}y~v~OY%dZp%dtw%d!O!P%d!Q!R.n!R!S.n!S!T.n!T!U.n!U!V.n!V!W.n!W!X.n!X!Y.n!Y!Z.n!Z![.n!]!^%d!a!}%d#O#P%d#QBn%dBoDf%dDfDg.nDgDh.nDhDi.nDiDj.nDjDk.nDkDl.nDlDm.nDmDn.nDnDo.nDoDp.nDpGl%dGlGm.nGmGn.nGnGo.nGoGp.nGpGq.nGqGr.nGrGs.nGsGt.nGtGu.nGuGv.nGv&FV%d&FW;'S%d;'S;=`&e<%l?Hb%d?HcO%d~1wO$Z~~1|O$Y~~2RO#u~~2WO$X~~2]O#s~~2bO#t~", + tokenizers: [2, new LocalTokenGroup("_~RQYZXwxX~^O$O~~", 14, 137), new LocalTokenGroup("_~RQYZXrsX~^O#z~~", 14, 133)], + topRules: { "Program": [0, 35] }, + dynamicPrecedences: { "83": -10 }, + specialized: [{ term: 38, get: (value, stack) => specializeKeyword(value, stack) << 1, external: specializeKeyword }], + tokenPrec: 1293 }); // static/js/lezer-parsers/language-packages.ts @@ -99868,6 +100123,10 @@ def note_with_error(value, err): "at", "forward", "turn", + "true", + "True", + "false", + "False", "color", "play", "sleep", @@ -100197,6 +100456,7 @@ def note_with_error(value, err): "at random remove from add to if else in not_in Op": tags.keyword, "repeat times for range with return and or while": tags.keyword, "elif def input toList": tags.keyword, + "true false True False": tags.number, Comment: tags.lineComment, "Text": tags.name, "String": tags.string, diff --git a/static/js/appbundle.js.map b/static/js/appbundle.js.map index 8f049dbbce2..f01a4d85ed9 100644 --- a/static/js/appbundle.js.map +++ b/static/js/appbundle.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../../node_modules/jszip/dist/jszip.min.js", "../../node_modules/@babel/runtime/helpers/arrayWithHoles.js", "../../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js", "../../node_modules/@babel/runtime/helpers/arrayLikeToArray.js", "../../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js", "../../node_modules/@babel/runtime/helpers/nonIterableRest.js", "../../node_modules/@babel/runtime/helpers/slicedToArray.js", "../../node_modules/@babel/runtime/helpers/classCallCheck.js", "../../node_modules/@babel/runtime/helpers/typeof.js", "../../node_modules/@babel/runtime/helpers/toPrimitive.js", "../../node_modules/@babel/runtime/helpers/toPropertyKey.js", "../../node_modules/@babel/runtime/helpers/createClass.js", "../../node_modules/automation-events/build/es5/bundle.js", "../../node_modules/dompurify/src/utils.js", "../../node_modules/dompurify/src/tags.js", "../../node_modules/dompurify/src/attrs.js", "../../node_modules/dompurify/src/regexp.js", "../../node_modules/dompurify/src/purify.js", "ckeditor.js", "index.ts", "message-translations.ts", "client-messages.ts", "modal.ts", "app.ts", "../../node_modules/tone/Tone/version.ts", "../../node_modules/standardized-audio-context/src/module.ts", "../../node_modules/standardized-audio-context/src/factories/abort-error.ts", "../../node_modules/standardized-audio-context/src/factories/add-active-input-connection-to-audio-node.ts", "../../node_modules/standardized-audio-context/src/factories/add-audio-node-connections.ts", "../../node_modules/standardized-audio-context/src/factories/add-audio-param-connections.ts", "../../node_modules/standardized-audio-context/src/globals.ts", "../../node_modules/standardized-audio-context/src/helpers/is-constructible.ts", "../../node_modules/standardized-audio-context/src/helpers/split-import-statements.ts", "../../node_modules/standardized-audio-context/src/factories/add-audio-worklet-module.ts", "../../node_modules/standardized-audio-context/src/helpers/get-value-for-key.ts", "../../node_modules/standardized-audio-context/src/helpers/pick-element-from-set.ts", "../../node_modules/standardized-audio-context/src/helpers/delete-passive-input-connection-to-audio-node.ts", "../../node_modules/standardized-audio-context/src/helpers/get-event-listeners-of-audio-node.ts", "../../node_modules/standardized-audio-context/src/helpers/set-internal-state-to-active.ts", "../../node_modules/standardized-audio-context/src/guards/audio-worklet-node.ts", "../../node_modules/standardized-audio-context/src/helpers/set-internal-state-to-passive.ts", "../../node_modules/standardized-audio-context/src/helpers/set-internal-state-to-passive-when-necessary.ts", "../../node_modules/standardized-audio-context/src/factories/add-connection-to-audio-node.ts", "../../node_modules/standardized-audio-context/src/factories/add-passive-input-connection-to-audio-node.ts", "../../node_modules/standardized-audio-context/src/factories/add-silent-connection.ts", "../../node_modules/standardized-audio-context/src/factories/add-unrendered-audio-worklet-node.ts", "../../node_modules/standardized-audio-context/src/factories/analyser-node-constructor.ts", "../../node_modules/standardized-audio-context/src/helpers/is-owned-by-context.ts", "../../node_modules/standardized-audio-context/src/factories/analyser-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.ts", "../../node_modules/standardized-audio-context/src/factories/index-size-error.ts", "../../node_modules/standardized-audio-context/src/helpers/wrap-audio-buffer-get-channel-data-method.ts", "../../node_modules/standardized-audio-context/src/factories/audio-buffer-constructor.ts", "../../node_modules/standardized-audio-context/src/constants.ts", "../../node_modules/standardized-audio-context/src/helpers/is-active-audio-node.ts", "../../node_modules/standardized-audio-context/src/factories/audio-buffer-source-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/audio-buffer-source-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/guards/audio-buffer-source-node.ts", "../../node_modules/standardized-audio-context/src/guards/biquad-filter-node.ts", "../../node_modules/standardized-audio-context/src/guards/constant-source-node.ts", "../../node_modules/standardized-audio-context/src/guards/gain-node.ts", "../../node_modules/standardized-audio-context/src/guards/oscillator-node.ts", "../../node_modules/standardized-audio-context/src/guards/stereo-panner-node.ts", "../../node_modules/standardized-audio-context/src/helpers/get-audio-node-connections.ts", "../../node_modules/standardized-audio-context/src/helpers/get-audio-param-connections.ts", "../../node_modules/standardized-audio-context/src/helpers/deactivate-active-audio-node-input-connections.ts", "../../node_modules/standardized-audio-context/src/helpers/deactivate-audio-graph.ts", "../../node_modules/standardized-audio-context/src/helpers/is-valid-latency-hint.ts", "../../node_modules/standardized-audio-context/src/factories/audio-context-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/audio-destination-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/audio-destination-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/audio-listener-factory.ts", "../../node_modules/standardized-audio-context/src/guards/audio-node.ts", "../../node_modules/standardized-audio-context/src/guards/audio-node-output-connection.ts", "../../node_modules/standardized-audio-context/src/helpers/insert-element-in-set.ts", "../../node_modules/standardized-audio-context/src/helpers/add-active-input-connection-to-audio-param.ts", "../../node_modules/standardized-audio-context/src/helpers/add-passive-input-connection-to-audio-param.ts", "../../node_modules/standardized-audio-context/src/guards/native-audio-node-faker.ts", "../../node_modules/standardized-audio-context/src/helpers/connect-native-audio-node-to-native-audio-node.ts", "../../node_modules/standardized-audio-context/src/helpers/delete-active-input-connection.ts", "../../node_modules/standardized-audio-context/src/helpers/delete-active-input-connection-to-audio-param.ts", "../../node_modules/standardized-audio-context/src/helpers/delete-event-listeners-of-audio-node.ts", "../../node_modules/standardized-audio-context/src/helpers/delete-passive-input-connection-to-audio-param.ts", "../../node_modules/standardized-audio-context/src/helpers/disconnect-native-audio-node-from-native-audio-node.ts", "../../node_modules/standardized-audio-context/src/helpers/get-native-audio-node.ts", "../../node_modules/standardized-audio-context/src/helpers/get-native-audio-param.ts", "../../node_modules/standardized-audio-context/src/helpers/is-part-of-a-cycle.ts", "../../node_modules/standardized-audio-context/src/helpers/is-passive-audio-node.ts", "../../node_modules/standardized-audio-context/src/helpers/test-audio-node-disconnect-method-support.ts", "../../node_modules/standardized-audio-context/src/helpers/visit-each-audio-node-once.ts", "../../node_modules/standardized-audio-context/src/guards/native-audio-node.ts", "../../node_modules/standardized-audio-context/src/helpers/wrap-audio-node-disconnect-method.ts", "../../node_modules/standardized-audio-context/src/factories/audio-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/audio-param-factory.ts", "../../node_modules/standardized-audio-context/src/factories/audio-param-renderer.ts", "../../node_modules/standardized-audio-context/src/read-only-map.ts", "../../node_modules/standardized-audio-context/src/factories/audio-worklet-node-constructor.ts", "../../node_modules/standardized-audio-context/src/helpers/copy-from-channel.ts", "../../node_modules/standardized-audio-context/src/helpers/copy-to-channel.ts", "../../node_modules/standardized-audio-context/src/helpers/create-nested-arrays.ts", "../../node_modules/standardized-audio-context/src/helpers/get-audio-worklet-processor.ts", "../../node_modules/standardized-audio-context/src/factories/audio-worklet-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/base-audio-context-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/biquad-filter-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/biquad-filter-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/cache-test-result.ts", "../../node_modules/standardized-audio-context/src/factories/channel-merger-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/channel-merger-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/channel-splitter-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/channel-splitter-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/connect-audio-param.ts", "../../node_modules/standardized-audio-context/src/factories/connect-multiple-outputs.ts", "../../node_modules/standardized-audio-context/src/factories/connected-native-audio-buffer-source-node-factory.ts", "../../node_modules/standardized-audio-context/src/factories/constant-source-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/constant-source-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/convert-number-to-unsigned-long.ts", "../../node_modules/standardized-audio-context/src/factories/convolver-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/convolver-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/create-native-offline-audio-context.ts", "../../node_modules/standardized-audio-context/src/factories/data-clone-error.ts", "../../node_modules/standardized-audio-context/src/helpers/detach-array-buffer.ts", "../../node_modules/standardized-audio-context/src/factories/decode-audio-data.ts", "../../node_modules/standardized-audio-context/src/factories/decrement-cycle-counter.ts", "../../node_modules/standardized-audio-context/src/factories/delay-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/delay-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/delete-active-input-connection-to-audio-node.ts", "../../node_modules/standardized-audio-context/src/factories/delete-unrendered-audio-worklet-node.ts", "../../node_modules/standardized-audio-context/src/guards/delay-node.ts", "../../node_modules/standardized-audio-context/src/factories/detect-cycles.ts", "../../node_modules/standardized-audio-context/src/factories/disconnect-multiple-outputs.ts", "../../node_modules/standardized-audio-context/src/factories/dynamics-compressor-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/dynamics-compressor-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/encoding-error.ts", "../../node_modules/standardized-audio-context/src/factories/evaluate-source.ts", "../../node_modules/standardized-audio-context/src/factories/event-target-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/expose-current-frame-and-current-time.ts", "../../node_modules/standardized-audio-context/src/factories/fetch-source.ts", "../../node_modules/standardized-audio-context/src/factories/gain-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/gain-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/get-active-audio-worklet-node-inputs.ts", "../../node_modules/standardized-audio-context/src/factories/get-audio-node-renderer.ts", "../../node_modules/standardized-audio-context/src/factories/get-audio-node-tail-time.ts", "../../node_modules/standardized-audio-context/src/factories/get-audio-param-renderer.ts", "../../node_modules/standardized-audio-context/src/factories/get-backup-offline-audio-context.ts", "../../node_modules/standardized-audio-context/src/factories/invalid-state-error.ts", "../../node_modules/standardized-audio-context/src/factories/get-native-context.ts", "../../node_modules/standardized-audio-context/src/factories/get-or-create-backup-offline-audio-context.ts", "../../node_modules/standardized-audio-context/src/factories/get-unrendered-audio-worklet-nodes.ts", "../../node_modules/standardized-audio-context/src/factories/invalid-access-error.ts", "../../node_modules/standardized-audio-context/src/helpers/wrap-iir-filter-node-get-frequency-response-method.ts", "../../node_modules/standardized-audio-context/src/factories/iir-filter-node-constructor.ts", "../../node_modules/standardized-audio-context/src/helpers/filter-buffer.ts", "../../node_modules/standardized-audio-context/src/factories/iir-filter-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/increment-cycle-counter-factory.ts", "../../node_modules/standardized-audio-context/src/factories/is-any-audio-context.ts", "../../node_modules/standardized-audio-context/src/factories/is-any-audio-node.ts", "../../node_modules/standardized-audio-context/src/factories/is-any-audio-param.ts", "../../node_modules/standardized-audio-context/src/factories/is-any-offline-audio-context.ts", "../../node_modules/standardized-audio-context/src/factories/is-native-audio-context.ts", "../../node_modules/standardized-audio-context/src/factories/is-native-audio-node.ts", "../../node_modules/standardized-audio-context/src/factories/is-native-audio-param.ts", "../../node_modules/standardized-audio-context/src/factories/is-native-context.ts", "../../node_modules/standardized-audio-context/src/factories/is-native-offline-audio-context.ts", "../../node_modules/standardized-audio-context/src/factories/is-secure-context.ts", "../../node_modules/standardized-audio-context/src/factories/media-element-audio-source-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/media-stream-audio-destination-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/media-stream-audio-source-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/media-stream-track-audio-source-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/minimal-audio-context-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/minimal-base-audio-context-constructor.ts", "../../node_modules/standardized-audio-context/src/helpers/test-promise-support.ts", "../../node_modules/standardized-audio-context/src/factories/minimal-offline-audio-context-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/monitor-connections.ts", "../../node_modules/standardized-audio-context/src/helpers/assign-native-audio-node-option.ts", "../../node_modules/standardized-audio-context/src/helpers/assign-native-audio-node-options.ts", "../../node_modules/standardized-audio-context/src/helpers/test-analyser-node-get-float-time-domain-data-method-support.ts", "../../node_modules/standardized-audio-context/src/helpers/wrap-analyser-node-get-float-time-domain-data-method.ts", "../../node_modules/standardized-audio-context/src/factories/native-analyser-node-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-audio-buffer-constructor.ts", "../../node_modules/standardized-audio-context/src/helpers/assign-native-audio-node-audio-param-value.ts", "../../node_modules/standardized-audio-context/src/helpers/wrap-audio-buffer-source-node-start-method-consecutive-calls.ts", "../../node_modules/standardized-audio-context/src/helpers/wrap-audio-scheduled-source-node-start-method-negative-parameters.ts", "../../node_modules/standardized-audio-context/src/helpers/wrap-audio-scheduled-source-node-stop-method-negative-parameters.ts", "../../node_modules/standardized-audio-context/src/factories/native-audio-buffer-source-node-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-audio-context-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/native-audio-destination-node.ts", "../../node_modules/standardized-audio-context/src/factories/native-audio-worklet-node-constructor.ts", "../../node_modules/standardized-audio-context/src/helpers/test-clonability-of-audio-worklet-node-options.ts", "../../node_modules/standardized-audio-context/src/factories/native-audio-worklet-node-factory.ts", "../../node_modules/standardized-audio-context/src/helpers/compute-buffer-size.ts", "../../node_modules/standardized-audio-context/src/helpers/clone-audio-worklet-node-options.ts", "../../node_modules/standardized-audio-context/src/helpers/create-audio-worklet-processor-promise.ts", "../../node_modules/standardized-audio-context/src/helpers/create-audio-worklet-processor.ts", "../../node_modules/standardized-audio-context/src/factories/native-audio-worklet-node-faker-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-biquad-filter-node.ts", "../../node_modules/standardized-audio-context/src/factories/native-channel-merger-node-factory.ts", "../../node_modules/standardized-audio-context/src/helpers/wrap-channel-splitter-node.ts", "../../node_modules/standardized-audio-context/src/factories/native-channel-splitter-node.ts", "../../node_modules/standardized-audio-context/src/factories/native-constant-source-node-factory.ts", "../../node_modules/standardized-audio-context/src/helpers/intercept-connections.ts", "../../node_modules/standardized-audio-context/src/factories/native-constant-source-node-faker-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-convolver-node-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-delay-node.ts", "../../node_modules/standardized-audio-context/src/factories/native-dynamics-compressor-node-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-gain-node.ts", "../../node_modules/standardized-audio-context/src/factories/native-iir-filter-node-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-iir-filter-node-faker-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-media-element-audio-source-node.ts", "../../node_modules/standardized-audio-context/src/factories/native-media-stream-audio-destination-node.ts", "../../node_modules/standardized-audio-context/src/factories/native-media-stream-audio-source-node.ts", "../../node_modules/standardized-audio-context/src/factories/native-media-stream-track-audio-source-node-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-offline-audio-context-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/native-oscillator-node-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-panner-node-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-panner-node-faker-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-periodic-wave-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-script-processor-node.ts", "../../node_modules/standardized-audio-context/src/factories/native-stereo-panner-node-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-stereo-panner-node-faker-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-wave-shaper-node-factory.ts", "../../node_modules/standardized-audio-context/src/factories/native-wave-shaper-node-faker-factory.ts", "../../node_modules/standardized-audio-context/src/factories/not-supported-error.ts", "../../node_modules/standardized-audio-context/src/factories/offline-audio-context-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/oscillator-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/oscillator-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/panner-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/panner-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/periodic-wave-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/render-automation.ts", "../../node_modules/standardized-audio-context/src/factories/render-inputs-of-audio-node.ts", "../../node_modules/standardized-audio-context/src/factories/render-inputs-of-audio-param.ts", "../../node_modules/standardized-audio-context/src/factories/render-native-offline-audio-context.ts", "../../node_modules/standardized-audio-context/src/factories/set-active-audio-worklet-node-inputs.ts", "../../node_modules/standardized-audio-context/src/factories/set-audio-node-tail-time.ts", "../../node_modules/standardized-audio-context/src/factories/start-rendering.ts", "../../node_modules/standardized-audio-context/src/factories/stereo-panner-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/stereo-panner-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/test-audio-buffer-constructor-support.ts", "../../node_modules/standardized-audio-context/src/factories/test-audio-worklet-processor-post-message-support.ts", "../../node_modules/standardized-audio-context/src/factories/test-offline-audio-context-current-time-support.ts", "../../node_modules/standardized-audio-context/src/factories/unknown-error.ts", "../../node_modules/standardized-audio-context/src/factories/wave-shaper-node-constructor.ts", "../../node_modules/standardized-audio-context/src/factories/wave-shaper-node-renderer-factory.ts", "../../node_modules/standardized-audio-context/src/factories/window.ts", "../../node_modules/standardized-audio-context/src/factories/wrap-audio-buffer-copy-channel-methods.ts", "../../node_modules/standardized-audio-context/src/factories/wrap-audio-buffer-copy-channel-methods-out-of-bounds.ts", "../../node_modules/standardized-audio-context/src/factories/wrap-audio-buffer-source-node-stop-method-nullified-buffer.ts", "../../node_modules/standardized-audio-context/src/factories/wrap-channel-merger-node.ts", "../../node_modules/standardized-audio-context/src/helpers/get-first-sample.ts", "../../node_modules/standardized-audio-context/src/helpers/is-dc-curve.ts", "../../node_modules/standardized-audio-context/src/helpers/overwrite-accessors.ts", "../../node_modules/standardized-audio-context/src/helpers/sanitize-audio-worklet-node-options.ts", "../../node_modules/standardized-audio-context/src/helpers/sanitize-channel-splitter-options.ts", "../../node_modules/standardized-audio-context/src/helpers/sanitize-periodic-wave-options.ts", "../../node_modules/standardized-audio-context/src/helpers/set-value-at-time-until-possible.ts", "../../node_modules/standardized-audio-context/src/helpers/test-audio-buffer-source-node-start-method-consecutive-calls-support.ts", "../../node_modules/standardized-audio-context/src/helpers/test-audio-buffer-source-node-start-method-offset-clamping-support.ts", "../../node_modules/standardized-audio-context/src/helpers/test-audio-buffer-source-node-stop-method-nullified-buffer-support.ts", "../../node_modules/standardized-audio-context/src/helpers/test-audio-scheduled-source-node-start-method-negative-parameters-support.ts", "../../node_modules/standardized-audio-context/src/helpers/test-audio-scheduled-source-node-stop-method-consecutive-calls-support.ts", "../../node_modules/standardized-audio-context/src/helpers/test-audio-scheduled-source-node-stop-method-negative-parameters-support.ts", "../../node_modules/standardized-audio-context/src/helpers/test-audio-worklet-node-options-clonability.ts", "../../node_modules/standardized-audio-context/src/helpers/wrap-audio-buffer-source-node-start-method-offset-clamping.ts", "../../node_modules/standardized-audio-context/src/helpers/wrap-audio-scheduled-source-node-stop-method-consecutive-calls.ts", "../../node_modules/standardized-audio-context/src/helpers/wrap-event-listener.ts", "../../node_modules/tone/Tone/core/util/Debug.ts", "../../node_modules/tone/Tone/core/util/TypeCheck.ts", "../../node_modules/tone/Tone/core/context/AudioContext.ts", "../../node_modules/tslib/tslib.es6.mjs", "../../node_modules/tone/Tone/core/clock/Ticker.ts", "../../node_modules/tone/Tone/core/util/AdvancedTypeCheck.ts", "../../node_modules/tone/Tone/core/util/Defaults.ts", "../../node_modules/tone/Tone/core/Tone.ts", "../../node_modules/tone/Tone/core/util/Math.ts", "../../node_modules/tone/Tone/core/util/Timeline.ts", "../../node_modules/tone/Tone/core/context/ContextInitialization.ts", "../../node_modules/tone/Tone/core/util/Emitter.ts", "../../node_modules/tone/Tone/core/context/BaseContext.ts", "../../node_modules/tone/Tone/core/context/Context.ts", "../../node_modules/tone/Tone/core/context/DummyContext.ts", "../../node_modules/tone/Tone/core/util/Interface.ts", "../../node_modules/tone/Tone/core/context/ToneAudioBuffer.ts", "../../node_modules/tone/Tone/core/context/OfflineContext.ts", "../../node_modules/tone/Tone/core/Global.ts", "../../node_modules/tone/Tone/core/type/Conversions.ts", "../../node_modules/tone/Tone/core/type/TimeBase.ts", "../../node_modules/tone/Tone/core/type/Time.ts", "../../node_modules/tone/Tone/core/type/Frequency.ts", "../../node_modules/tone/Tone/core/type/TransportTime.ts", "../../node_modules/tone/Tone/core/context/ToneWithContext.ts", "../../node_modules/tone/Tone/core/util/StateTimeline.ts", "../../node_modules/tone/Tone/core/context/Param.ts", "../../node_modules/tone/Tone/core/context/ToneAudioNode.ts", "../../node_modules/tone/Tone/core/context/Gain.ts", "../../node_modules/tone/Tone/source/OneShotSource.ts", "../../node_modules/tone/Tone/signal/ToneConstantSource.ts", "../../node_modules/tone/Tone/signal/Signal.ts", "../../node_modules/tone/Tone/core/clock/TickParam.ts", "../../node_modules/tone/Tone/core/clock/TickSignal.ts", "../../node_modules/tone/Tone/core/clock/TickSource.ts", "../../node_modules/tone/Tone/core/clock/Clock.ts", "../../node_modules/tone/Tone/core/context/ToneAudioBuffers.ts", "../../node_modules/tone/Tone/core/type/Midi.ts", "../../node_modules/tone/Tone/core/type/Ticks.ts", "../../node_modules/tone/Tone/core/util/Draw.ts", "../../node_modules/tone/Tone/core/util/IntervalTimeline.ts", "../../node_modules/tone/Tone/component/channel/Volume.ts", "../../node_modules/tone/Tone/core/context/Destination.ts", "../../node_modules/tone/Tone/core/util/TimelineValue.ts", "../../node_modules/tone/Tone/core/clock/TransportEvent.ts", "../../node_modules/tone/Tone/core/clock/TransportRepeatEvent.ts", "../../node_modules/tone/Tone/core/clock/Transport.ts", "../../node_modules/tone/Tone/source/Source.ts", "../../node_modules/tone/Tone/source/buffer/ToneBufferSource.ts", "../../node_modules/tone/Tone/source/Noise.ts", "../../node_modules/tone/Tone/source/oscillator/OscillatorInterface.ts", "../../node_modules/tone/Tone/source/oscillator/ToneOscillatorNode.ts", "../../node_modules/tone/Tone/source/oscillator/Oscillator.ts", "../../node_modules/tone/Tone/signal/SignalOperator.ts", "../../node_modules/tone/Tone/signal/WaveShaper.ts", "../../node_modules/tone/Tone/signal/AudioToGain.ts", "../../node_modules/tone/Tone/signal/Multiply.ts", "../../node_modules/tone/Tone/source/oscillator/AMOscillator.ts", "../../node_modules/tone/Tone/source/oscillator/FMOscillator.ts", "../../node_modules/tone/Tone/source/oscillator/PulseOscillator.ts", "../../node_modules/tone/Tone/source/oscillator/FatOscillator.ts", "../../node_modules/tone/Tone/source/oscillator/PWMOscillator.ts", "../../node_modules/tone/Tone/source/oscillator/OmniOscillator.ts", "../../node_modules/tone/Tone/core/util/Decorator.ts", "../../node_modules/tone/Tone/source/buffer/Player.ts", "../../node_modules/tone/Tone/component/envelope/Envelope.ts", "../../node_modules/tone/Tone/instrument/Instrument.ts", "../../node_modules/tone/Tone/instrument/Monophonic.ts", "../../node_modules/tone/Tone/component/envelope/AmplitudeEnvelope.ts", "../../node_modules/tone/Tone/instrument/Synth.ts", "../../node_modules/tone/Tone/instrument/MembraneSynth.ts", "../../node_modules/tone/Tone/core/worklet/WorkletGlobalScope.ts", "../../node_modules/tone/Tone/core/worklet/ToneAudioWorkletProcessor.worklet.ts", "../../node_modules/tone/Tone/core/worklet/SingleIOProcessor.worklet.ts", "../../node_modules/tone/Tone/core/worklet/DelayLine.worklet.ts", "../../node_modules/tone/Tone/component/filter/FeedbackCombFilter.worklet.ts", "../../node_modules/tone/Tone/instrument/PolySynth.ts", "../../node_modules/tone/Tone/instrument/Sampler.ts", "../../node_modules/tone/Tone/component/channel/Panner.ts", "../../node_modules/tone/Tone/effect/BitCrusher.worklet.ts", "../../node_modules/tone/Tone/effect/Freeverb.ts", "../../node_modules/tone/Tone/effect/JCReverb.ts", "../../node_modules/tone/Tone/component/channel/Solo.ts", "../../node_modules/tone/Tone/component/channel/PanVol.ts", "../../node_modules/tone/Tone/component/channel/Channel.ts", "../../node_modules/tone/Tone/core/context/Listener.ts", "../../node_modules/tone/Tone/index.ts", "event-emitter.ts", "tabs.ts", "pythonPrefixes.ts", "types.ts", "tutorials/utils.ts", "browser-helpers/unsaved-changes.ts", "tutorials/intro.ts", "tutorials/teacher.ts", "tutorials/level1.ts", "tutorials/tutorial.ts", "editor.ts", "../../node_modules/@codemirror/state/dist/index.js", "../../node_modules/style-mod/src/style-mod.js", "../../node_modules/w3c-keyname/index.js", "../../node_modules/@codemirror/view/dist/index.js", "../../node_modules/@lezer/common/dist/index.js", "../../node_modules/@lezer/highlight/dist/index.js", "../../node_modules/@codemirror/language/dist/index.js", "../../node_modules/@codemirror/commands/dist/index.js", "../../node_modules/crelt/index.js", "../../node_modules/@codemirror/search/dist/index.js", "cm-decorations.ts", "../../node_modules/@lezer/lr/dist/index.js", "lezer-parsers/level1-parser.terms.ts", "lezer-parsers/level2-parser.terms.ts", "lezer-parsers/level3-parser.terms.ts", "lezer-parsers/level4-parser.terms.ts", "lezer-parsers/level5-parser.terms.ts", "lezer-parsers/level6-parser.terms.ts", "lezer-parsers/level7-parser.terms.ts", "lezer-parsers/level8-parser.terms.ts", "lezer-parsers/level10-parser.terms.ts", "lezer-parsers/level11-parser.terms.ts", "lezer-parsers/level12-parser.terms.ts", "lezer-parsers/level13-parser.terms.ts", "lezer-parsers/level14-parser.terms.ts", "lezer-parsers/level15-parser.terms.ts", "lezer-parsers/level16-parser.terms.ts", "lezer-parsers/level17-parser.terms.ts", "lezer-parsers/level18-parser.terms.ts", "utils.ts", "lezer-parsers/tokens.ts", "lezer-parsers/level1-parser.ts", "lezer-parsers/level2-parser.ts", "lezer-parsers/level3-parser.ts", "lezer-parsers/level4-parser.ts", "lezer-parsers/level5-parser.ts", "lezer-parsers/level6-parser.ts", "lezer-parsers/level7-parser.ts", "lezer-parsers/level8-parser.ts", "lezer-parsers/level9-parser.ts", "lezer-parsers/level10-parser.ts", "lezer-parsers/level11-parser.ts", "lezer-parsers/level12-parser.ts", "lezer-parsers/level13-parser.ts", "lezer-parsers/level14-parser.ts", "lezer-parsers/level15-parser.ts", "lezer-parsers/level16-parser.ts", "lezer-parsers/level17-parser.ts", "lezer-parsers/level18-parser.ts", "lezer-parsers/language-packages.ts", "cm-monokai-theme.ts", "cm-editor.ts", "../../node_modules/sortablejs/modular/sortable.esm.js", "parsons.ts", "browser-helpers/on-element-becomes-visible.ts", "debugging.ts", "local.ts", "teachers.ts", "adventure.ts", "autosave.ts", "comm.ts", "auth.ts", "local-save-warning.ts", "user-activity.ts", "htmx-integration.ts", "../../node_modules/chart.js/dist/chunks/helpers.segment.mjs", "../../node_modules/chart.js/dist/chart.mjs", "statistics.ts", "logs.ts", "admin.ts", "profile.ts", "initialize.ts", "../../node_modules/tw-elements/src/js/dom/data.js", "../../node_modules/tw-elements/src/js/util/index.js", "../../node_modules/tw-elements/src/js/dom/event-handler.js", "../../node_modules/tw-elements/src/js/base-component.js", "../../node_modules/tw-elements/src/js/components/button.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/enums.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getWindow.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/modifiers/applyStyles.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/getBasePlacement.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/math.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/userAgent.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/contains.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/within.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/expandToHashMap.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/modifiers/arrow.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/getVariation.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/modifiers/computeStyles.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/modifiers/eventListeners.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/rectToClientRect.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/computeOffsets.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/detectOverflow.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/modifiers/flip.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/modifiers/hide.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/modifiers/offset.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/getAltAxis.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/orderModifiers.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/debounce.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/format.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/validateModifiers.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/uniqueBy.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/utils/mergeByName.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/createPopper.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/popper-lite.js", "../../node_modules/tw-elements/node_modules/@popperjs/core/lib/popper.js", "../../node_modules/tw-elements/src/js/dom/manipulator.js", "../../node_modules/tw-elements/src/js/dom/selector-engine.js", "../../node_modules/tw-elements/src/js/components/dropdown.js", "../../node_modules/tw-elements/src/js/components/collapse.js", "../../node_modules/tw-elements/src/js/util/scrollbar.js", "../../node_modules/tw-elements/src/js/util/backdrop.js", "../../node_modules/tw-elements/src/js/util/focusTrap.js", "../../node_modules/tw-elements/src/js/util/component-functions.js", "../../node_modules/tw-elements/src/js/components/offcanvas.js", "../../node_modules/tw-elements/src/js/components/alert.js", "../../node_modules/tw-elements/src/js/components/carousel.js", "../../node_modules/tw-elements/src/js/components/modal.js", "../../node_modules/tw-elements/src/js/util/sanitizer.js", "../../node_modules/tw-elements/src/js/components/tooltip.js", "../../node_modules/tw-elements/src/js/components/popover.js", "../../node_modules/tw-elements/src/js/navigation/scrollspy.js", "../../node_modules/tw-elements/src/js/navigation/tab.js", "../../node_modules/tw-elements/src/js/components/toast.js", "../../node_modules/tw-elements/node_modules/detect-autofill/dist/detect-autofill.js", "../../node_modules/tw-elements/src/js/forms/input.js", "../../node_modules/tw-elements/src/js/content-styles/animate.js", "../../node_modules/tw-elements/src/js/methods/ripple.js", "../../node_modules/tw-elements/src/js/forms/datepicker/date-utils.js", "../../node_modules/tw-elements/src/js/forms/datepicker/templates.js", "../../node_modules/tw-elements/src/js/util/keycodes.js", "../../node_modules/tw-elements/src/js/forms/datepicker/index.js", "../../node_modules/tw-elements/src/js/forms/timepicker/templates.js", "../../node_modules/tw-elements/src/js/forms/timepicker/utils.js", "../../node_modules/tw-elements/src/js/forms/timepicker/index.js", "../../node_modules/tw-elements/src/js/util/touch/swipe.js", "../../node_modules/tw-elements/src/js/util/touch/index.js", "../../node_modules/tw-elements/src/js/navigation/sidenav.js", "../../node_modules/tw-elements/src/js/components/stepper.js", "../../node_modules/tw-elements/src/js/forms/select/select-option.js", "../../node_modules/tw-elements/src/js/forms/select/selection-model.js", "../../node_modules/tw-elements/src/js/forms/select/util.js", "../../node_modules/tw-elements/src/js/forms/select/templates.js", "../../node_modules/tw-elements/src/js/forms/select/index.js", "../../node_modules/tw-elements/src/js/components/chips/templates.js", "../../node_modules/tw-elements/src/js/components/chips/chip.js", "../../node_modules/tw-elements/src/js/components/chips/index.js", "../../node_modules/tw-elements/src/js/data/chart/chartDefaults.js", "../../node_modules/tw-elements/node_modules/deepmerge/dist/cjs.js", "../../node_modules/tw-elements/src/js/data/chart/charts.js", "../../node_modules/tw-elements/node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js", "../../node_modules/tw-elements/src/js/methods/perfect-scrollbar.js", "../../node_modules/tw-elements/src/js/data/datatables/html/pagination.js", "../../node_modules/tw-elements/src/js/data/datatables/html/columns.js", "../../node_modules/tw-elements/src/js/data/datatables/html/rows.js", "../../node_modules/tw-elements/src/js/data/datatables/html/table.js", "../../node_modules/tw-elements/src/js/data/datatables/util.js", "../../node_modules/tw-elements/src/js/data/datatables/index.js", "../../node_modules/tw-elements/src/js/components/rating.js", "../../node_modules/tw-elements/src/js/components/popconfirm.js", "../../node_modules/tw-elements/src/js/components/lightbox.js", "../../node_modules/tw-elements/src/js/forms/validation/rules.js", "../../node_modules/tw-elements/src/js/forms/validation/validation.js", "../../node_modules/tw-elements/src/js/methods/touch/touchUtil.js", "../../node_modules/tw-elements/src/js/methods/touch/press.js", "../../node_modules/tw-elements/src/js/methods/touch/swipe.js", "../../node_modules/tw-elements/src/js/methods/touch/pan.js", "../../node_modules/tw-elements/src/js/methods/touch/pinch.js", "../../node_modules/tw-elements/src/js/methods/touch/tap.js", "../../node_modules/tw-elements/src/js/methods/touch/rotate.js", "../../node_modules/tw-elements/src/js/methods/touch/index.js", "../../node_modules/tw-elements/src/js/methods/smooth-scroll.js", "../../node_modules/tw-elements/src/js/methods/lazy-load.js", "../../node_modules/tw-elements/src/js/methods/clipboard.js", "../../node_modules/tw-elements/src/js/methods/infinite-scroll.js", "../../node_modules/tw-elements/src/js/methods/loading-management/templates.js", "../../node_modules/tw-elements/src/js/methods/loading-management/index.js", "../../node_modules/tw-elements/src/js/forms/dateTimepicker/utils.js", "../../node_modules/tw-elements/src/js/forms/dateTimepicker/templates.js", "../../node_modules/tw-elements/src/js/forms/dateTimepicker/index.js", "../../node_modules/tw-elements/src/js/methods/sticky.js", "../../node_modules/tw-elements/src/js/autoinit/jqueryInit.js", "../../node_modules/tw-elements/src/js/autoinit/autoinitCallbacks.js", "../../node_modules/tw-elements/src/js/autoinit/chartsInit.js", "../../node_modules/tw-elements/src/js/autoinit/Register.js", "../../node_modules/tw-elements/src/js/autoinit/index.js", "tailwind.ts", "public-adventures.ts", "microbit.ts"], - "sourcesContent": ["/*!\n\nJSZip v3.10.1 - A JavaScript class for generating and reading zip files\n\n\n(c) 2009-2016 Stuart Knightley \nDual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.\n\nJSZip uses the library pako released under the MIT license :\nhttps://github.com/nodeca/pako/blob/main/LICENSE\n*/\n\n!function(e){if(\"object\"==typeof exports&&\"undefined\"!=typeof module)module.exports=e();else if(\"function\"==typeof define&&define.amd)define([],e);else{(\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:this).JSZip=e()}}(function(){return function s(a,o,h){function u(r,e){if(!o[r]){if(!a[r]){var t=\"function\"==typeof require&&require;if(!e&&t)return t(r,!0);if(l)return l(r,!0);var n=new Error(\"Cannot find module '\"+r+\"'\");throw n.code=\"MODULE_NOT_FOUND\",n}var i=o[r]={exports:{}};a[r][0].call(i.exports,function(e){var t=a[r][1][e];return u(t||e)},i,i.exports,s,a,o,h)}return o[r].exports}for(var l=\"function\"==typeof require&&require,e=0;e>2,s=(3&t)<<4|r>>4,a=1>6:64,o=2>4,r=(15&i)<<4|(s=p.indexOf(e.charAt(o++)))>>2,n=(3&s)<<6|(a=p.indexOf(e.charAt(o++))),l[h++]=t,64!==s&&(l[h++]=r),64!==a&&(l[h++]=n);return l}},{\"./support\":30,\"./utils\":32}],2:[function(e,t,r){\"use strict\";var n=e(\"./external\"),i=e(\"./stream/DataWorker\"),s=e(\"./stream/Crc32Probe\"),a=e(\"./stream/DataLengthProbe\");function o(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}o.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a(\"data_length\")),t=this;return e.on(\"end\",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error(\"Bug : uncompressed data size mismatch\")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo(\"compressedSize\",this.compressedSize).withStreamInfo(\"uncompressedSize\",this.uncompressedSize).withStreamInfo(\"crc32\",this.crc32).withStreamInfo(\"compression\",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new s).pipe(new a(\"uncompressedSize\")).pipe(t.compressWorker(r)).pipe(new a(\"compressedSize\")).withStreamInfo(\"compression\",t)},t.exports=o},{\"./external\":6,\"./stream/Crc32Probe\":25,\"./stream/DataLengthProbe\":26,\"./stream/DataWorker\":27}],3:[function(e,t,r){\"use strict\";var n=e(\"./stream/GenericWorker\");r.STORE={magic:\"\\0\\0\",compressWorker:function(){return new n(\"STORE compression\")},uncompressWorker:function(){return new n(\"STORE decompression\")}},r.DEFLATE=e(\"./flate\")},{\"./flate\":7,\"./stream/GenericWorker\":28}],4:[function(e,t,r){\"use strict\";var n=e(\"./utils\");var o=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?\"string\"!==n.getTypeOf(e)?function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t[a])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length,0):0}},{\"./utils\":32}],5:[function(e,t,r){\"use strict\";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){\"use strict\";var n=null;n=\"undefined\"!=typeof Promise?Promise:e(\"lie\"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){\"use strict\";var n=\"undefined\"!=typeof Uint8Array&&\"undefined\"!=typeof Uint16Array&&\"undefined\"!=typeof Uint32Array,i=e(\"pako\"),s=e(\"./utils\"),a=e(\"./stream/GenericWorker\"),o=n?\"uint8array\":\"array\";function h(e,t){a.call(this,\"FlateWorker/\"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic=\"\\b\\0\",s.inherits(h,a),h.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,e.data),!1)},h.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(e){return new h(\"Deflate\",e)},r.uncompressWorker=function(){return new h(\"Inflate\",{})}},{\"./stream/GenericWorker\":28,\"./utils\":32,pako:38}],8:[function(e,t,r){\"use strict\";function A(e,t){var r,n=\"\";for(r=0;r>>=8;return n}function n(e,t,r,n,i,s){var a,o,h=e.file,u=e.compression,l=s!==O.utf8encode,f=I.transformTo(\"string\",s(h.name)),c=I.transformTo(\"string\",O.utf8encode(h.name)),d=h.comment,p=I.transformTo(\"string\",s(d)),m=I.transformTo(\"string\",O.utf8encode(d)),_=c.length!==h.name.length,g=m.length!==d.length,b=\"\",v=\"\",y=\"\",w=h.dir,k=h.date,x={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(x.crc32=e.crc32,x.compressedSize=e.compressedSize,x.uncompressedSize=e.uncompressedSize);var S=0;t&&(S|=8),l||!_&&!g||(S|=2048);var z=0,C=0;w&&(z|=16),\"UNIX\"===i?(C=798,z|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(h.unixPermissions,w)):(C=20,z|=function(e){return 63&(e||0)}(h.dosPermissions)),a=k.getUTCHours(),a<<=6,a|=k.getUTCMinutes(),a<<=5,a|=k.getUTCSeconds()/2,o=k.getUTCFullYear()-1980,o<<=4,o|=k.getUTCMonth()+1,o<<=5,o|=k.getUTCDate(),_&&(v=A(1,1)+A(B(f),4)+c,b+=\"up\"+A(v.length,2)+v),g&&(y=A(1,1)+A(B(p),4)+m,b+=\"uc\"+A(y.length,2)+y);var E=\"\";return E+=\"\\n\\0\",E+=A(S,2),E+=u.magic,E+=A(a,2),E+=A(o,2),E+=A(x.crc32,4),E+=A(x.compressedSize,4),E+=A(x.uncompressedSize,4),E+=A(f.length,2),E+=A(b.length,2),{fileRecord:R.LOCAL_FILE_HEADER+E+f+b,dirRecord:R.CENTRAL_FILE_HEADER+A(C,2)+E+A(p.length,2)+\"\\0\\0\\0\\0\"+A(z,4)+A(n,4)+f+b+p}}var I=e(\"../utils\"),i=e(\"../stream/GenericWorker\"),O=e(\"../utf8\"),B=e(\"../crc32\"),R=e(\"../signature\");function s(e,t,r,n){i.call(this,\"ZipFileWorker\"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}I.inherits(s,i),s.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},s.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=n(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},s.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=n(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return R.DATA_DESCRIPTOR+A(e.crc32,4)+A(e.compressedSize,4)+A(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},s.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo(\"string\",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{\"../utils\":32}],19:[function(e,t,r){\"use strict\";var n=e(\"./Uint8ArrayReader\");function i(e){n.call(this,e)}e(\"../utils\").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{\"../utils\":32,\"./Uint8ArrayReader\":21}],20:[function(e,t,r){\"use strict\";var n=e(\"./DataReader\");function i(e){n.call(this,e)}e(\"../utils\").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{\"../utils\":32,\"./DataReader\":18}],21:[function(e,t,r){\"use strict\";var n=e(\"./ArrayReader\");function i(e){n.call(this,e)}e(\"../utils\").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{\"../utils\":32,\"./ArrayReader\":17}],22:[function(e,t,r){\"use strict\";var n=e(\"../utils\"),i=e(\"../support\"),s=e(\"./ArrayReader\"),a=e(\"./StringReader\"),o=e(\"./NodeBufferReader\"),h=e(\"./Uint8ArrayReader\");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),\"string\"!==t||i.uint8array?\"nodebuffer\"===t?new o(e):i.uint8array?new h(n.transformTo(\"uint8array\",e)):new s(n.transformTo(\"array\",e)):new a(e)}},{\"../support\":30,\"../utils\":32,\"./ArrayReader\":17,\"./NodeBufferReader\":19,\"./StringReader\":20,\"./Uint8ArrayReader\":21}],23:[function(e,t,r){\"use strict\";r.LOCAL_FILE_HEADER=\"PK\u0003\u0004\",r.CENTRAL_FILE_HEADER=\"PK\u0001\u0002\",r.CENTRAL_DIRECTORY_END=\"PK\u0005\u0006\",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR=\"PK\u0006\u0007\",r.ZIP64_CENTRAL_DIRECTORY_END=\"PK\u0006\u0006\",r.DATA_DESCRIPTOR=\"PK\u0007\\b\"},{}],24:[function(e,t,r){\"use strict\";var n=e(\"./GenericWorker\"),i=e(\"../utils\");function s(e){n.call(this,\"ConvertWorker to \"+e),this.destType=e}i.inherits(s,n),s.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=s},{\"../utils\":32,\"./GenericWorker\":28}],25:[function(e,t,r){\"use strict\";var n=e(\"./GenericWorker\"),i=e(\"../crc32\");function s(){n.call(this,\"Crc32Probe\"),this.withStreamInfo(\"crc32\",0)}e(\"../utils\").inherits(s,n),s.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=s},{\"../crc32\":4,\"../utils\":32,\"./GenericWorker\":28}],26:[function(e,t,r){\"use strict\";var n=e(\"../utils\"),i=e(\"./GenericWorker\");function s(e){i.call(this,\"DataLengthProbe for \"+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(s,i),s.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=s},{\"../utils\":32,\"./GenericWorker\":28}],27:[function(e,t,r){\"use strict\";var n=e(\"../utils\"),i=e(\"./GenericWorker\");function s(e){i.call(this,\"DataWorker\");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=\"\",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(s,i),s.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case\"string\":e=this.data.substring(this.index,t);break;case\"uint8array\":e=this.data.subarray(this.index,t);break;case\"array\":case\"nodebuffer\":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=s},{\"../utils\":32,\"./GenericWorker\":28}],28:[function(e,t,r){\"use strict\";function n(e){this.name=e||\"default\",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit(\"data\",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(\"end\"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit(\"error\",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit(\"error\",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r \"+e:e}},t.exports=n},{}],29:[function(e,t,r){\"use strict\";var h=e(\"../utils\"),i=e(\"./ConvertWorker\"),s=e(\"./GenericWorker\"),u=e(\"../base64\"),n=e(\"../support\"),a=e(\"../external\"),o=null;if(n.nodestream)try{o=e(\"../nodejs/NodejsStreamOutputAdapter\")}catch(e){}function l(e,o){return new a.Promise(function(t,r){var n=[],i=e._internalType,s=e._outputType,a=e._mimeType;e.on(\"data\",function(e,t){n.push(e),o&&o(t)}).on(\"error\",function(e){n=[],r(e)}).on(\"end\",function(){try{var e=function(e,t,r){switch(e){case\"blob\":return h.newBlob(h.transformTo(\"arraybuffer\",t),r);case\"base64\":return u.encode(t);default:return h.transformTo(e,t)}}(s,function(e,t){var r,n=0,i=null,s=0;for(r=0;r>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t}(e)},s.utf8decode=function(e){return h.nodebuffer?o.transformTo(\"nodebuffer\",e).toString(\"utf-8\"):function(e){var t,r,n,i,s=e.length,a=new Array(2*s);for(t=r=0;t>10&1023,a[r++]=56320|1023&n)}return a.length!==r&&(a.subarray?a=a.subarray(0,r):a.length=r),o.applyFromCharCode(a)}(e=o.transformTo(h.uint8array?\"uint8array\":\"array\",e))},o.inherits(a,n),a.prototype.processChunk=function(e){var t=o.transformTo(h.uint8array?\"uint8array\":\"array\",e.data);if(this.leftOver&&this.leftOver.length){if(h.uint8array){var r=t;(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var n=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+u[e[r]]>t?r:t}(t),i=t;n!==t.length&&(h.uint8array?(i=t.subarray(0,n),this.leftOver=t.subarray(n,t.length)):(i=t.slice(0,n),this.leftOver=t.slice(n,t.length))),this.push({data:s.utf8decode(i),meta:e.meta})},a.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=a,o.inherits(l,n),l.prototype.processChunk=function(e){this.push({data:s.utf8encode(e.data),meta:e.meta})},s.Utf8EncodeWorker=l},{\"./nodejsUtils\":14,\"./stream/GenericWorker\":28,\"./support\":30,\"./utils\":32}],32:[function(e,t,a){\"use strict\";var o=e(\"./support\"),h=e(\"./base64\"),r=e(\"./nodejsUtils\"),u=e(\"./external\");function n(e){return e}function l(e,t){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||\"/\"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new h.Buf8(e.length),r=0,n=t.length;r>10&1023,o[n++]=56320|1023&i)}return l(o,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+u[e[r]]>t?r:t}},{\"./common\":41}],43:[function(e,t,r){\"use strict\";t.exports=function(e,t,r,n){for(var i=65535&e|0,s=e>>>16&65535|0,a=0;0!==r;){for(r-=a=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,n){var i=o,s=n+r;e^=-1;for(var a=n;a>>8^i[255&(e^t[a])];return-1^e}},{}],46:[function(e,t,r){\"use strict\";var h,c=e(\"../utils/common\"),u=e(\"./trees\"),d=e(\"./adler32\"),p=e(\"./crc32\"),n=e(\"./messages\"),l=0,f=4,m=0,_=-2,g=-1,b=4,i=2,v=8,y=9,s=286,a=30,o=19,w=2*s+1,k=15,x=3,S=258,z=S+x+1,C=42,E=113,A=1,I=2,O=3,B=4;function R(e,t){return e.msg=n[t],t}function T(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(c.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function N(e,t){u._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function U(e,t){e.pending_buf[e.pending++]=t}function P(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function L(e,t){var r,n,i=e.max_chain_length,s=e.strstart,a=e.prev_length,o=e.nice_match,h=e.strstart>e.w_size-z?e.strstart-(e.w_size-z):0,u=e.window,l=e.w_mask,f=e.prev,c=e.strstart+S,d=u[s+a-1],p=u[s+a];e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead);do{if(u[(r=t)+a]===p&&u[r+a-1]===d&&u[r]===u[s]&&u[++r]===u[s+1]){s+=2,r++;do{}while(u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&u[++s]===u[++r]&&sh&&0!=--i);return a<=e.lookahead?a:e.lookahead}function j(e){var t,r,n,i,s,a,o,h,u,l,f=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-z)){for(c.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=r=e.hash_size;n=e.head[--t],e.head[t]=f<=n?n-f:0,--r;);for(t=r=f;n=e.prev[--t],e.prev[t]=f<=n?n-f:0,--r;);i+=f}if(0===e.strm.avail_in)break;if(a=e.strm,o=e.window,h=e.strstart+e.lookahead,u=i,l=void 0,l=a.avail_in,u=x)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x)if(n=u._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=x&&(e.ins_h=(e.ins_h<=x&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-x,n=u._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(j(e),0===e.lookahead&&t===l)return A;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,N(e,!1),0===e.strm.avail_out))return A;if(e.strstart-e.block_start>=e.w_size-z&&(N(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===f?(N(e,!0),0===e.strm.avail_out?O:B):(e.strstart>e.block_start&&(N(e,!1),e.strm.avail_out),A)}),new M(4,4,8,4,Z),new M(4,5,16,8,Z),new M(4,6,32,32,Z),new M(4,4,16,16,W),new M(8,16,32,32,W),new M(8,16,128,128,W),new M(8,32,128,256,W),new M(32,128,258,1024,W),new M(32,258,258,4096,W)],r.deflateInit=function(e,t){return Y(e,t,v,15,8,0)},r.deflateInit2=Y,r.deflateReset=K,r.deflateResetKeep=G,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?_:(e.state.gzhead=t,m):_},r.deflate=function(e,t){var r,n,i,s;if(!e||!e.state||5>8&255),U(n,n.gzhead.time>>16&255),U(n,n.gzhead.time>>24&255),U(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),U(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(U(n,255&n.gzhead.extra.length),U(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=p(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(U(n,0),U(n,0),U(n,0),U(n,0),U(n,0),U(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),U(n,3),n.status=E);else{var a=v+(n.w_bits-8<<4)<<8;a|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=E,P(n,a),0!==n.strstart&&(P(n,e.adler>>>16),P(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending!==n.pending_buf_size));)U(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}s=n.gzindexi&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),0===s&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),F(e),i=n.pending,n.pending===n.pending_buf_size)){s=1;break}s=n.gzindexi&&(e.adler=p(e.adler,n.pending_buf,n.pending-i,i)),0===s&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&F(e),n.pending+2<=n.pending_buf_size&&(U(n,255&e.adler),U(n,e.adler>>8&255),e.adler=0,n.status=E)):n.status=E),0!==n.pending){if(F(e),0===e.avail_out)return n.last_flush=-1,m}else if(0===e.avail_in&&T(t)<=T(r)&&t!==f)return R(e,-5);if(666===n.status&&0!==e.avail_in)return R(e,-5);if(0!==e.avail_in||0!==n.lookahead||t!==l&&666!==n.status){var o=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(j(e),0===e.lookahead)){if(t===l)return A;break}if(e.match_length=0,r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(N(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===f?(N(e,!0),0===e.strm.avail_out?O:B):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?A:I}(n,t):3===n.strategy?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=S){if(j(e),e.lookahead<=S&&t===l)return A;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(r=u._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(N(e,!1),0===e.strm.avail_out))return A}return e.insert=0,t===f?(N(e,!0),0===e.strm.avail_out?O:B):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?A:I}(n,t):h[n.level].func(n,t);if(o!==O&&o!==B||(n.status=666),o===A||o===O)return 0===e.avail_out&&(n.last_flush=-1),m;if(o===I&&(1===t?u._tr_align(n):5!==t&&(u._tr_stored_block(n,0,0,!1),3===t&&(D(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),F(e),0===e.avail_out))return n.last_flush=-1,m}return t!==f?m:n.wrap<=0?1:(2===n.wrap?(U(n,255&e.adler),U(n,e.adler>>8&255),U(n,e.adler>>16&255),U(n,e.adler>>24&255),U(n,255&e.total_in),U(n,e.total_in>>8&255),U(n,e.total_in>>16&255),U(n,e.total_in>>24&255)):(P(n,e.adler>>>16),P(n,65535&e.adler)),F(e),0=r.w_size&&(0===s&&(D(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new c.Buf8(r.w_size),c.arraySet(u,t,l-r.w_size,r.w_size,0),t=u,l=r.w_size),a=e.avail_in,o=e.next_in,h=e.input,e.avail_in=l,e.next_in=0,e.input=t,j(r);r.lookahead>=x;){for(n=r.strstart,i=r.lookahead-(x-1);r.ins_h=(r.ins_h<>>=y=v>>>24,p-=y,0===(y=v>>>16&255))C[s++]=65535&v;else{if(!(16&y)){if(0==(64&y)){v=m[(65535&v)+(d&(1<>>=y,p-=y),p<15&&(d+=z[n++]<>>=y=v>>>24,p-=y,!(16&(y=v>>>16&255))){if(0==(64&y)){v=_[(65535&v)+(d&(1<>>=y,p-=y,(y=s-a)>3,d&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=s,e.avail_in=n>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function s(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new I.Buf16(320),this.work=new I.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg=\"\",t.wrap&&(e.adler=1&t.wrap),t.mode=P,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new I.Buf32(n),t.distcode=t.distdyn=new I.Buf32(i),t.sane=1,t.back=-1,N):U}function o(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,a(e)):U}function h(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=s.wsize?(I.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(n<(i=s.wsize-s.wnext)&&(i=n),I.arraySet(s.window,t,r-n,i,s.wnext),(n-=i)?(I.arraySet(s.window,t,r-n,n,0),s.wnext=n,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,r.check=B(r.check,E,2,0),l=u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg=\"incorrect header check\",r.mode=30;break}if(8!=(15&u)){e.msg=\"unknown compression method\",r.mode=30;break}if(l-=4,k=8+(15&(u>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){e.msg=\"invalid window size\",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=3;case 3:for(;l<32;){if(0===o)break e;o--,u+=n[s++]<>>8&255,E[2]=u>>>16&255,E[3]=u>>>24&255,r.check=B(r.check,E,4,0)),l=u=0,r.mode=4;case 4:for(;l<16;){if(0===o)break e;o--,u+=n[s++]<>8),512&r.flags&&(E[0]=255&u,E[1]=u>>>8&255,r.check=B(r.check,E,2,0)),l=u=0,r.mode=5;case 5:if(1024&r.flags){for(;l<16;){if(0===o)break e;o--,u+=n[s++]<>>8&255,r.check=B(r.check,E,2,0)),l=u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(o<(d=r.length)&&(d=o),d&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),I.arraySet(r.head.extra,n,s,d,k)),512&r.flags&&(r.check=B(r.check,n,d,s)),o-=d,s+=d,r.length-=d),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===o)break e;for(d=0;k=n[s+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k)),k&&d>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;l<32;){if(0===o)break e;o--,u+=n[s++]<>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===o)break e;o--,u+=n[s++]<>>=1)){case 0:r.mode=14;break;case 1:if(j(r),r.mode=20,6!==t)break;u>>>=2,l-=2;break e;case 2:r.mode=17;break;case 3:e.msg=\"invalid block type\",r.mode=30}u>>>=2,l-=2;break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===o)break e;o--,u+=n[s++]<>>16^65535)){e.msg=\"invalid stored block lengths\",r.mode=30;break}if(r.length=65535&u,l=u=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(d=r.length){if(o>>=5,l-=5,r.ndist=1+(31&u),u>>>=5,l-=5,r.ncode=4+(15&u),u>>>=4,l-=4,286>>=3,l-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},x=T(0,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,x){e.msg=\"invalid code lengths set\",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=_,l-=_,r.lens[r.have++]=b;else{if(16===b){for(z=_+2;l>>=_,l-=_,0===r.have){e.msg=\"invalid bit length repeat\",r.mode=30;break}k=r.lens[r.have-1],d=3+(3&u),u>>>=2,l-=2}else if(17===b){for(z=_+3;l>>=_)),u>>>=3,l-=3}else{for(z=_+7;l>>=_)),u>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){e.msg=\"invalid bit length repeat\",r.mode=30;break}for(;d--;)r.lens[r.have++]=k}}if(30===r.mode)break;if(0===r.lens[256]){e.msg=\"invalid code -- missing end-of-block\",r.mode=30;break}if(r.lenbits=9,S={bits:r.lenbits},x=T(D,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,x){e.msg=\"invalid literal/lengths set\",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},x=T(F,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,x){e.msg=\"invalid distances set\",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=o&&258<=h){e.next_out=a,e.avail_out=h,e.next_in=s,e.avail_in=o,r.hold=u,r.bits=l,R(e,c),a=e.next_out,i=e.output,h=e.avail_out,s=e.next_in,n=e.input,o=e.avail_in,u=r.hold,l=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(C=r.lencode[u&(1<>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=v,l-=v,r.back+=v}if(u>>>=_,l-=_,r.back+=_,r.length=b,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){e.msg=\"invalid literal/length code\",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(z=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(C=r.distcode[u&(1<>>16&255,b=65535&C,!((_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>v)])>>>16&255,b=65535&C,!(v+(_=C>>>24)<=l);){if(0===o)break e;o--,u+=n[s++]<>>=v,l-=v,r.back+=v}if(u>>>=_,l-=_,r.back+=_,64&g){e.msg=\"invalid distance code\",r.mode=30;break}r.offset=b,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(z=r.extra;l>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg=\"invalid distance too far back\",r.mode=30;break}r.mode=25;case 25:if(0===h)break e;if(d=c-h,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){e.msg=\"invalid distance too far back\",r.mode=30;break}p=d>r.wnext?(d-=r.wnext,r.wsize-d):r.wnext-d,d>r.length&&(d=r.length),m=r.window}else m=i,p=a-r.offset,d=r.length;for(hd?(m=R[T+a[v]],A[I+a[v]]):(m=96,0),h=1<>S)+(u-=h)]=p<<24|m<<16|_|0,0!==u;);for(h=1<>=1;if(0!==h?(E&=h-1,E+=h):E=0,v++,0==--O[b]){if(b===w)break;b=t[r+a[v]]}if(k>>7)]}function U(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function P(e,t,r){e.bi_valid>d-r?(e.bi_buf|=t<>d-e.bi_valid,e.bi_valid+=r-d):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function Z(e,t,r){var n,i,s=new Array(g+1),a=0;for(n=1;n<=g;n++)s[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var o=e[2*i+1];0!==o&&(e[2*i]=j(s[o]++,o))}}function W(e){var t;for(t=0;t>1;1<=r;r--)G(e,s,r);for(i=h;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],G(e,s,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,s[2*i]=s[2*r]+s[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,s[2*r+1]=s[2*n+1]=i,e.heap[1]=i++,G(e,s,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,s,a,o,h=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,c=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(s=0;s<=g;s++)e.bl_count[s]=0;for(h[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<_;r++)p<(s=h[2*h[2*(n=e.heap[r])+1]+1]+1)&&(s=p,m++),h[2*n+1]=s,u>=7;n>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return h;for(t=32;t>>3,(s=e.static_len+3+7>>>3)<=i&&(i=s)):i=s=r+5,r+4<=i&&-1!==t?J(e,t,r,n):4===e.strategy||s===i?(P(e,2+(n?1:0),3),K(e,z,C)):(P(e,4+(n?1:0),3),function(e,t,r,n){var i;for(P(e,t-257,5),P(e,r-1,5),P(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(A[r]+u+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){P(e,2,3),L(e,m,z),function(e){16===e.bi_valid?(U(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{\"../utils/common\":41}],53:[function(e,t,r){\"use strict\";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=\"\",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(r,n){\"use strict\";if(!r.setImmediate){var i,s,t,a,o=1,h={},u=!1,l=r.document,e=Object.getPrototypeOf&&Object.getPrototypeOf(r);e=e&&e.setTimeout?e:r,i=\"[object process]\"==={}.toString.call(r.process)?function(e){process.nextTick(function(){c(e)})}:function(){if(r.postMessage&&!r.importScripts){var e=!0,t=r.onmessage;return r.onmessage=function(){e=!1},r.postMessage(\"\",\"*\"),r.onmessage=t,e}}()?(a=\"setImmediate$\"+Math.random()+\"$\",r.addEventListener?r.addEventListener(\"message\",d,!1):r.attachEvent(\"onmessage\",d),function(e){r.postMessage(a+e,\"*\")}):r.MessageChannel?((t=new MessageChannel).port1.onmessage=function(e){c(e.data)},function(e){t.port2.postMessage(e)}):l&&\"onreadystatechange\"in l.createElement(\"script\")?(s=l.documentElement,function(e){var t=l.createElement(\"script\");t.onreadystatechange=function(){c(e),t.onreadystatechange=null,s.removeChild(t),t=null},s.appendChild(t)}):function(e){setTimeout(c,0,e)},e.setImmediate=function(e){\"function\"!=typeof e&&(e=new Function(\"\"+e));for(var t=new Array(arguments.length-1),r=0;r arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableRest, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var arrayWithHoles = require(\"./arrayWithHoles.js\");\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableRest = require(\"./nonIterableRest.js\");\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\nmodule.exports = _slicedToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : String(i);\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@babel/runtime/helpers/slicedToArray'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass')) :\n typeof define === 'function' && define.amd ? define(['exports', '@babel/runtime/helpers/slicedToArray', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass'], factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.automationEvents = {}, global._slicedToArray, global._classCallCheck, global._createClass));\n})(this, (function (exports, _slicedToArray, _classCallCheck, _createClass) { 'use strict';\n\n var createExtendedExponentialRampToValueAutomationEvent = function createExtendedExponentialRampToValueAutomationEvent(value, endTime, insertTime) {\n return {\n endTime: endTime,\n insertTime: insertTime,\n type: 'exponentialRampToValue',\n value: value\n };\n };\n\n var createExtendedLinearRampToValueAutomationEvent = function createExtendedLinearRampToValueAutomationEvent(value, endTime, insertTime) {\n return {\n endTime: endTime,\n insertTime: insertTime,\n type: 'linearRampToValue',\n value: value\n };\n };\n\n var createSetValueAutomationEvent = function createSetValueAutomationEvent(value, startTime) {\n return {\n startTime: startTime,\n type: 'setValue',\n value: value\n };\n };\n\n var createSetValueCurveAutomationEvent = function createSetValueCurveAutomationEvent(values, startTime, duration) {\n return {\n duration: duration,\n startTime: startTime,\n type: 'setValueCurve',\n values: values\n };\n };\n\n var getTargetValueAtTime = function getTargetValueAtTime(time, valueAtStartTime, _ref) {\n var startTime = _ref.startTime,\n target = _ref.target,\n timeConstant = _ref.timeConstant;\n return target + (valueAtStartTime - target) * Math.exp((startTime - time) / timeConstant);\n };\n\n var isExponentialRampToValueAutomationEvent = function isExponentialRampToValueAutomationEvent(automationEvent) {\n return automationEvent.type === 'exponentialRampToValue';\n };\n\n var isLinearRampToValueAutomationEvent = function isLinearRampToValueAutomationEvent(automationEvent) {\n return automationEvent.type === 'linearRampToValue';\n };\n\n var isAnyRampToValueAutomationEvent = function isAnyRampToValueAutomationEvent(automationEvent) {\n return isExponentialRampToValueAutomationEvent(automationEvent) || isLinearRampToValueAutomationEvent(automationEvent);\n };\n\n var isSetValueAutomationEvent = function isSetValueAutomationEvent(automationEvent) {\n return automationEvent.type === 'setValue';\n };\n\n var isSetValueCurveAutomationEvent = function isSetValueCurveAutomationEvent(automationEvent) {\n return automationEvent.type === 'setValueCurve';\n };\n\n var getValueOfAutomationEventAtIndexAtTime = function getValueOfAutomationEventAtIndexAtTime(automationEvents, index, time, defaultValue) {\n var automationEvent = automationEvents[index];\n return automationEvent === undefined ? defaultValue : isAnyRampToValueAutomationEvent(automationEvent) || isSetValueAutomationEvent(automationEvent) ? automationEvent.value : isSetValueCurveAutomationEvent(automationEvent) ? automationEvent.values[automationEvent.values.length - 1] : getTargetValueAtTime(time, getValueOfAutomationEventAtIndexAtTime(automationEvents, index - 1, automationEvent.startTime, defaultValue), automationEvent);\n };\n\n var getEndTimeAndValueOfPreviousAutomationEvent = function getEndTimeAndValueOfPreviousAutomationEvent(automationEvents, index, currentAutomationEvent, nextAutomationEvent, defaultValue) {\n return currentAutomationEvent === undefined ? [nextAutomationEvent.insertTime, defaultValue] : isAnyRampToValueAutomationEvent(currentAutomationEvent) ? [currentAutomationEvent.endTime, currentAutomationEvent.value] : isSetValueAutomationEvent(currentAutomationEvent) ? [currentAutomationEvent.startTime, currentAutomationEvent.value] : isSetValueCurveAutomationEvent(currentAutomationEvent) ? [currentAutomationEvent.startTime + currentAutomationEvent.duration, currentAutomationEvent.values[currentAutomationEvent.values.length - 1]] : [currentAutomationEvent.startTime, getValueOfAutomationEventAtIndexAtTime(automationEvents, index - 1, currentAutomationEvent.startTime, defaultValue)];\n };\n\n var isCancelAndHoldAutomationEvent = function isCancelAndHoldAutomationEvent(automationEvent) {\n return automationEvent.type === 'cancelAndHold';\n };\n\n var isCancelScheduledValuesAutomationEvent = function isCancelScheduledValuesAutomationEvent(automationEvent) {\n return automationEvent.type === 'cancelScheduledValues';\n };\n\n var getEventTime = function getEventTime(automationEvent) {\n if (isCancelAndHoldAutomationEvent(automationEvent) || isCancelScheduledValuesAutomationEvent(automationEvent)) {\n return automationEvent.cancelTime;\n }\n if (isExponentialRampToValueAutomationEvent(automationEvent) || isLinearRampToValueAutomationEvent(automationEvent)) {\n return automationEvent.endTime;\n }\n return automationEvent.startTime;\n };\n\n var getExponentialRampValueAtTime = function getExponentialRampValueAtTime(time, startTime, valueAtStartTime, _ref) {\n var endTime = _ref.endTime,\n value = _ref.value;\n if (valueAtStartTime === value) {\n return value;\n }\n if (0 < valueAtStartTime && 0 < value || valueAtStartTime < 0 && value < 0) {\n return valueAtStartTime * Math.pow(value / valueAtStartTime, (time - startTime) / (endTime - startTime));\n }\n return 0;\n };\n\n var getLinearRampValueAtTime = function getLinearRampValueAtTime(time, startTime, valueAtStartTime, _ref) {\n var endTime = _ref.endTime,\n value = _ref.value;\n return valueAtStartTime + (time - startTime) / (endTime - startTime) * (value - valueAtStartTime);\n };\n\n var interpolateValue = function interpolateValue(values, theoreticIndex) {\n var lowerIndex = Math.floor(theoreticIndex);\n var upperIndex = Math.ceil(theoreticIndex);\n if (lowerIndex === upperIndex) {\n return values[lowerIndex];\n }\n return (1 - (theoreticIndex - lowerIndex)) * values[lowerIndex] + (1 - (upperIndex - theoreticIndex)) * values[upperIndex];\n };\n\n var getValueCurveValueAtTime = function getValueCurveValueAtTime(time, _ref) {\n var duration = _ref.duration,\n startTime = _ref.startTime,\n values = _ref.values;\n var theoreticIndex = (time - startTime) / duration * (values.length - 1);\n return interpolateValue(values, theoreticIndex);\n };\n\n var isSetTargetAutomationEvent = function isSetTargetAutomationEvent(automationEvent) {\n return automationEvent.type === 'setTarget';\n };\n\n var AutomationEventList = /*#__PURE__*/function (_Symbol$iterator) {\n function AutomationEventList(defaultValue) {\n _classCallCheck(this, AutomationEventList);\n this._automationEvents = [];\n this._currenTime = 0;\n this._defaultValue = defaultValue;\n }\n _createClass(AutomationEventList, [{\n key: _Symbol$iterator,\n value: function value() {\n return this._automationEvents[Symbol.iterator]();\n }\n }, {\n key: \"add\",\n value: function add(automationEvent) {\n var eventTime = getEventTime(automationEvent);\n if (isCancelAndHoldAutomationEvent(automationEvent) || isCancelScheduledValuesAutomationEvent(automationEvent)) {\n var index = this._automationEvents.findIndex(function (currentAutomationEvent) {\n if (isCancelScheduledValuesAutomationEvent(automationEvent) && isSetValueCurveAutomationEvent(currentAutomationEvent)) {\n return currentAutomationEvent.startTime + currentAutomationEvent.duration >= eventTime;\n }\n return getEventTime(currentAutomationEvent) >= eventTime;\n });\n var removedAutomationEvent = this._automationEvents[index];\n if (index !== -1) {\n this._automationEvents = this._automationEvents.slice(0, index);\n }\n if (isCancelAndHoldAutomationEvent(automationEvent)) {\n var lastAutomationEvent = this._automationEvents[this._automationEvents.length - 1];\n if (removedAutomationEvent !== undefined && isAnyRampToValueAutomationEvent(removedAutomationEvent)) {\n if (lastAutomationEvent !== undefined && isSetTargetAutomationEvent(lastAutomationEvent)) {\n throw new Error('The internal list is malformed.');\n }\n var startTime = lastAutomationEvent === undefined ? removedAutomationEvent.insertTime : isSetValueCurveAutomationEvent(lastAutomationEvent) ? lastAutomationEvent.startTime + lastAutomationEvent.duration : getEventTime(lastAutomationEvent);\n var startValue = lastAutomationEvent === undefined ? this._defaultValue : isSetValueCurveAutomationEvent(lastAutomationEvent) ? lastAutomationEvent.values[lastAutomationEvent.values.length - 1] : lastAutomationEvent.value;\n var value = isExponentialRampToValueAutomationEvent(removedAutomationEvent) ? getExponentialRampValueAtTime(eventTime, startTime, startValue, removedAutomationEvent) : getLinearRampValueAtTime(eventTime, startTime, startValue, removedAutomationEvent);\n var truncatedAutomationEvent = isExponentialRampToValueAutomationEvent(removedAutomationEvent) ? createExtendedExponentialRampToValueAutomationEvent(value, eventTime, this._currenTime) : createExtendedLinearRampToValueAutomationEvent(value, eventTime, this._currenTime);\n this._automationEvents.push(truncatedAutomationEvent);\n }\n if (lastAutomationEvent !== undefined && isSetTargetAutomationEvent(lastAutomationEvent)) {\n this._automationEvents.push(createSetValueAutomationEvent(this.getValue(eventTime), eventTime));\n }\n if (lastAutomationEvent !== undefined && isSetValueCurveAutomationEvent(lastAutomationEvent) && lastAutomationEvent.startTime + lastAutomationEvent.duration > eventTime) {\n var duration = eventTime - lastAutomationEvent.startTime;\n var ratio = (lastAutomationEvent.values.length - 1) / lastAutomationEvent.duration;\n var length = Math.max(2, 1 + Math.ceil(duration * ratio));\n var fraction = duration / (length - 1) * ratio;\n var values = lastAutomationEvent.values.slice(0, length);\n if (fraction < 1) {\n for (var i = 1; i < length; i += 1) {\n var factor = fraction * i % 1;\n values[i] = lastAutomationEvent.values[i - 1] * (1 - factor) + lastAutomationEvent.values[i] * factor;\n }\n }\n this._automationEvents[this._automationEvents.length - 1] = createSetValueCurveAutomationEvent(values, lastAutomationEvent.startTime, duration);\n }\n }\n } else {\n var _index = this._automationEvents.findIndex(function (currentAutomationEvent) {\n return getEventTime(currentAutomationEvent) > eventTime;\n });\n var previousAutomationEvent = _index === -1 ? this._automationEvents[this._automationEvents.length - 1] : this._automationEvents[_index - 1];\n if (previousAutomationEvent !== undefined && isSetValueCurveAutomationEvent(previousAutomationEvent) && getEventTime(previousAutomationEvent) + previousAutomationEvent.duration > eventTime) {\n return false;\n }\n var persistentAutomationEvent = isExponentialRampToValueAutomationEvent(automationEvent) ? createExtendedExponentialRampToValueAutomationEvent(automationEvent.value, automationEvent.endTime, this._currenTime) : isLinearRampToValueAutomationEvent(automationEvent) ? createExtendedLinearRampToValueAutomationEvent(automationEvent.value, eventTime, this._currenTime) : automationEvent;\n if (_index === -1) {\n this._automationEvents.push(persistentAutomationEvent);\n } else {\n if (isSetValueCurveAutomationEvent(automationEvent) && eventTime + automationEvent.duration > getEventTime(this._automationEvents[_index])) {\n return false;\n }\n this._automationEvents.splice(_index, 0, persistentAutomationEvent);\n }\n }\n return true;\n }\n }, {\n key: \"flush\",\n value: function flush(time) {\n var index = this._automationEvents.findIndex(function (currentAutomationEvent) {\n return getEventTime(currentAutomationEvent) > time;\n });\n if (index > 1) {\n var remainingAutomationEvents = this._automationEvents.slice(index - 1);\n var firstRemainingAutomationEvent = remainingAutomationEvents[0];\n if (isSetTargetAutomationEvent(firstRemainingAutomationEvent)) {\n remainingAutomationEvents.unshift(createSetValueAutomationEvent(getValueOfAutomationEventAtIndexAtTime(this._automationEvents, index - 2, firstRemainingAutomationEvent.startTime, this._defaultValue), firstRemainingAutomationEvent.startTime));\n }\n this._automationEvents = remainingAutomationEvents;\n }\n }\n }, {\n key: \"getValue\",\n value: function getValue(time) {\n if (this._automationEvents.length === 0) {\n return this._defaultValue;\n }\n var indexOfNextEvent = this._automationEvents.findIndex(function (automationEvent) {\n return getEventTime(automationEvent) > time;\n });\n var nextAutomationEvent = this._automationEvents[indexOfNextEvent];\n var indexOfCurrentEvent = (indexOfNextEvent === -1 ? this._automationEvents.length : indexOfNextEvent) - 1;\n var currentAutomationEvent = this._automationEvents[indexOfCurrentEvent];\n if (currentAutomationEvent !== undefined && isSetTargetAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === undefined || !isAnyRampToValueAutomationEvent(nextAutomationEvent) || nextAutomationEvent.insertTime > time)) {\n return getTargetValueAtTime(time, getValueOfAutomationEventAtIndexAtTime(this._automationEvents, indexOfCurrentEvent - 1, currentAutomationEvent.startTime, this._defaultValue), currentAutomationEvent);\n }\n if (currentAutomationEvent !== undefined && isSetValueAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === undefined || !isAnyRampToValueAutomationEvent(nextAutomationEvent))) {\n return currentAutomationEvent.value;\n }\n if (currentAutomationEvent !== undefined && isSetValueCurveAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === undefined || !isAnyRampToValueAutomationEvent(nextAutomationEvent) || currentAutomationEvent.startTime + currentAutomationEvent.duration > time)) {\n if (time < currentAutomationEvent.startTime + currentAutomationEvent.duration) {\n return getValueCurveValueAtTime(time, currentAutomationEvent);\n }\n return currentAutomationEvent.values[currentAutomationEvent.values.length - 1];\n }\n if (currentAutomationEvent !== undefined && isAnyRampToValueAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === undefined || !isAnyRampToValueAutomationEvent(nextAutomationEvent))) {\n return currentAutomationEvent.value;\n }\n if (nextAutomationEvent !== undefined && isExponentialRampToValueAutomationEvent(nextAutomationEvent)) {\n var _getEndTimeAndValueOf = getEndTimeAndValueOfPreviousAutomationEvent(this._automationEvents, indexOfCurrentEvent, currentAutomationEvent, nextAutomationEvent, this._defaultValue),\n _getEndTimeAndValueOf2 = _slicedToArray(_getEndTimeAndValueOf, 2),\n startTime = _getEndTimeAndValueOf2[0],\n value = _getEndTimeAndValueOf2[1];\n return getExponentialRampValueAtTime(time, startTime, value, nextAutomationEvent);\n }\n if (nextAutomationEvent !== undefined && isLinearRampToValueAutomationEvent(nextAutomationEvent)) {\n var _getEndTimeAndValueOf3 = getEndTimeAndValueOfPreviousAutomationEvent(this._automationEvents, indexOfCurrentEvent, currentAutomationEvent, nextAutomationEvent, this._defaultValue),\n _getEndTimeAndValueOf4 = _slicedToArray(_getEndTimeAndValueOf3, 2),\n _startTime = _getEndTimeAndValueOf4[0],\n _value = _getEndTimeAndValueOf4[1];\n return getLinearRampValueAtTime(time, _startTime, _value, nextAutomationEvent);\n }\n return this._defaultValue;\n }\n }]);\n return AutomationEventList;\n }(Symbol.iterator);\n\n var createCancelAndHoldAutomationEvent = function createCancelAndHoldAutomationEvent(cancelTime) {\n return {\n cancelTime: cancelTime,\n type: 'cancelAndHold'\n };\n };\n\n var createCancelScheduledValuesAutomationEvent = function createCancelScheduledValuesAutomationEvent(cancelTime) {\n return {\n cancelTime: cancelTime,\n type: 'cancelScheduledValues'\n };\n };\n\n var createExponentialRampToValueAutomationEvent = function createExponentialRampToValueAutomationEvent(value, endTime) {\n return {\n endTime: endTime,\n type: 'exponentialRampToValue',\n value: value\n };\n };\n\n var createLinearRampToValueAutomationEvent = function createLinearRampToValueAutomationEvent(value, endTime) {\n return {\n endTime: endTime,\n type: 'linearRampToValue',\n value: value\n };\n };\n\n var createSetTargetAutomationEvent = function createSetTargetAutomationEvent(target, startTime, timeConstant) {\n return {\n startTime: startTime,\n target: target,\n timeConstant: timeConstant,\n type: 'setTarget'\n };\n };\n\n exports.AutomationEventList = AutomationEventList;\n exports.createCancelAndHoldAutomationEvent = createCancelAndHoldAutomationEvent;\n exports.createCancelScheduledValuesAutomationEvent = createCancelScheduledValuesAutomationEvent;\n exports.createExponentialRampToValueAutomationEvent = createExponentialRampToValueAutomationEvent;\n exports.createLinearRampToValueAutomationEvent = createLinearRampToValueAutomationEvent;\n exports.createSetTargetAutomationEvent = createSetTargetAutomationEvent;\n exports.createSetValueAutomationEvent = createSetValueAutomationEvent;\n exports.createSetValueCurveAutomationEvent = createSetValueCurveAutomationEvent;\n\n}));\n", "const {\n hasOwnProperty,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n} = Object;\n\nlet { freeze, seal, create } = Object; // eslint-disable-line import/no-mutable-exports\nlet { apply, construct } = typeof Reflect !== 'undefined' && Reflect;\n\nif (!apply) {\n apply = function (fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n}\n\nif (!freeze) {\n freeze = function (x) {\n return x;\n };\n}\n\nif (!seal) {\n seal = function (x) {\n return x;\n };\n}\n\nif (!construct) {\n construct = function (Func, args) {\n return new Func(...args);\n };\n}\n\nconst arrayForEach = unapply(Array.prototype.forEach);\nconst arrayIndexOf = unapply(Array.prototype.indexOf);\nconst arrayPop = unapply(Array.prototype.pop);\nconst arrayPush = unapply(Array.prototype.push);\nconst arraySlice = unapply(Array.prototype.slice);\n\nconst stringToLowerCase = unapply(String.prototype.toLowerCase);\nconst stringMatch = unapply(String.prototype.match);\nconst stringReplace = unapply(String.prototype.replace);\nconst stringIndexOf = unapply(String.prototype.indexOf);\nconst stringTrim = unapply(String.prototype.trim);\n\nconst regExpTest = unapply(RegExp.prototype.test);\n\nconst typeErrorCreate = unconstruct(TypeError);\n\nexport function unapply(func) {\n return (thisArg, ...args) => apply(func, thisArg, args);\n}\n\nexport function unconstruct(func) {\n return (...args) => construct(func, args);\n}\n\n/* Add properties to a lookup table */\nexport function addToSet(set, array) {\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = stringToLowerCase(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n}\n\n/* Shallow clone an object */\nexport function clone(object) {\n const newObject = create(null);\n\n let property;\n for (property in object) {\n if (apply(hasOwnProperty, object, [property])) {\n newObject[property] = object[property];\n }\n }\n\n return newObject;\n}\n\n/* IE10 doesn't support __lookupGetter__ so lets'\n * simulate it. It also automatically checks\n * if the prop is function or getter and behaves\n * accordingly. */\nfunction lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n}\n\nexport {\n // Array\n arrayForEach,\n arrayIndexOf,\n arrayPop,\n arrayPush,\n arraySlice,\n // Object\n freeze,\n getPrototypeOf,\n getOwnPropertyDescriptor,\n hasOwnProperty,\n isFrozen,\n setPrototypeOf,\n seal,\n // RegExp\n regExpTest,\n // String\n stringIndexOf,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringTrim,\n // Errors\n typeErrorCreate,\n // Other\n lookupGetter,\n};\n", "import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'a',\n 'abbr',\n 'acronym',\n 'address',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n 'bdi',\n 'bdo',\n 'big',\n 'blink',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'content',\n 'data',\n 'datalist',\n 'dd',\n 'decorator',\n 'del',\n 'details',\n 'dfn',\n 'dialog',\n 'dir',\n 'div',\n 'dl',\n 'dt',\n 'element',\n 'em',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'font',\n 'footer',\n 'form',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'head',\n 'header',\n 'hgroup',\n 'hr',\n 'html',\n 'i',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'main',\n 'map',\n 'mark',\n 'marquee',\n 'menu',\n 'menuitem',\n 'meter',\n 'nav',\n 'nobr',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n 'section',\n 'select',\n 'shadow',\n 'small',\n 'source',\n 'spacer',\n 'span',\n 'strike',\n 'strong',\n 'style',\n 'sub',\n 'summary',\n 'sup',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n 'tr',\n 'track',\n 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr',\n]);\n\n// SVG\nexport const svg = freeze([\n 'svg',\n 'a',\n 'altglyph',\n 'altglyphdef',\n 'altglyphitem',\n 'animatecolor',\n 'animatemotion',\n 'animatetransform',\n 'circle',\n 'clippath',\n 'defs',\n 'desc',\n 'ellipse',\n 'filter',\n 'font',\n 'g',\n 'glyph',\n 'glyphref',\n 'hkern',\n 'image',\n 'line',\n 'lineargradient',\n 'marker',\n 'mask',\n 'metadata',\n 'mpath',\n 'path',\n 'pattern',\n 'polygon',\n 'polyline',\n 'radialgradient',\n 'rect',\n 'stop',\n 'style',\n 'switch',\n 'symbol',\n 'text',\n 'textpath',\n 'title',\n 'tref',\n 'tspan',\n 'view',\n 'vkern',\n]);\n\nexport const svgFilters = freeze([\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n]);\n\n// List of SVG elements that are disallowed by default.\n// We still need to know them so that we can do namespace\n// checks properly in case one wants to add them to\n// allow-list.\nexport const svgDisallowed = freeze([\n 'animate',\n 'color-profile',\n 'cursor',\n 'discard',\n 'fedropshadow',\n 'font-face',\n 'font-face-format',\n 'font-face-name',\n 'font-face-src',\n 'font-face-uri',\n 'foreignobject',\n 'hatch',\n 'hatchpath',\n 'mesh',\n 'meshgradient',\n 'meshpatch',\n 'meshrow',\n 'missing-glyph',\n 'script',\n 'set',\n 'solidcolor',\n 'unknown',\n 'use',\n]);\n\nexport const mathMl = freeze([\n 'math',\n 'menclose',\n 'merror',\n 'mfenced',\n 'mfrac',\n 'mglyph',\n 'mi',\n 'mlabeledtr',\n 'mmultiscripts',\n 'mn',\n 'mo',\n 'mover',\n 'mpadded',\n 'mphantom',\n 'mroot',\n 'mrow',\n 'ms',\n 'mspace',\n 'msqrt',\n 'mstyle',\n 'msub',\n 'msup',\n 'msubsup',\n 'mtable',\n 'mtd',\n 'mtext',\n 'mtr',\n 'munder',\n 'munderover',\n]);\n\n// Similarly to SVG, we want to know all MathML elements,\n// even those that we disallow by default.\nexport const mathMlDisallowed = freeze([\n 'maction',\n 'maligngroup',\n 'malignmark',\n 'mlongdiv',\n 'mscarries',\n 'mscarry',\n 'msgroup',\n 'mstack',\n 'msline',\n 'msrow',\n 'semantics',\n 'annotation',\n 'annotation-xml',\n 'mprescripts',\n 'none',\n]);\n\nexport const text = freeze(['#text']);\n", "import { freeze } from './utils.js';\n\nexport const html = freeze([\n 'accept',\n 'action',\n 'align',\n 'alt',\n 'autocapitalize',\n 'autocomplete',\n 'autopictureinpicture',\n 'autoplay',\n 'background',\n 'bgcolor',\n 'border',\n 'capture',\n 'cellpadding',\n 'cellspacing',\n 'checked',\n 'cite',\n 'class',\n 'clear',\n 'color',\n 'cols',\n 'colspan',\n 'controls',\n 'controlslist',\n 'coords',\n 'crossorigin',\n 'datetime',\n 'decoding',\n 'default',\n 'dir',\n 'disabled',\n 'disablepictureinpicture',\n 'disableremoteplayback',\n 'download',\n 'draggable',\n 'enctype',\n 'enterkeyhint',\n 'face',\n 'for',\n 'headers',\n 'height',\n 'hidden',\n 'high',\n 'href',\n 'hreflang',\n 'id',\n 'inputmode',\n 'integrity',\n 'ismap',\n 'kind',\n 'label',\n 'lang',\n 'list',\n 'loading',\n 'loop',\n 'low',\n 'max',\n 'maxlength',\n 'media',\n 'method',\n 'min',\n 'minlength',\n 'multiple',\n 'muted',\n 'name',\n 'nonce',\n 'noshade',\n 'novalidate',\n 'nowrap',\n 'open',\n 'optimum',\n 'pattern',\n 'placeholder',\n 'playsinline',\n 'poster',\n 'preload',\n 'pubdate',\n 'radiogroup',\n 'readonly',\n 'rel',\n 'required',\n 'rev',\n 'reversed',\n 'role',\n 'rows',\n 'rowspan',\n 'spellcheck',\n 'scope',\n 'selected',\n 'shape',\n 'size',\n 'sizes',\n 'span',\n 'srclang',\n 'start',\n 'src',\n 'srcset',\n 'step',\n 'style',\n 'summary',\n 'tabindex',\n 'title',\n 'translate',\n 'type',\n 'usemap',\n 'valign',\n 'value',\n 'width',\n 'xmlns',\n 'slot',\n]);\n\nexport const svg = freeze([\n 'accent-height',\n 'accumulate',\n 'additive',\n 'alignment-baseline',\n 'ascent',\n 'attributename',\n 'attributetype',\n 'azimuth',\n 'basefrequency',\n 'baseline-shift',\n 'begin',\n 'bias',\n 'by',\n 'class',\n 'clip',\n 'clippathunits',\n 'clip-path',\n 'clip-rule',\n 'color',\n 'color-interpolation',\n 'color-interpolation-filters',\n 'color-profile',\n 'color-rendering',\n 'cx',\n 'cy',\n 'd',\n 'dx',\n 'dy',\n 'diffuseconstant',\n 'direction',\n 'display',\n 'divisor',\n 'dur',\n 'edgemode',\n 'elevation',\n 'end',\n 'fill',\n 'fill-opacity',\n 'fill-rule',\n 'filter',\n 'filterunits',\n 'flood-color',\n 'flood-opacity',\n 'font-family',\n 'font-size',\n 'font-size-adjust',\n 'font-stretch',\n 'font-style',\n 'font-variant',\n 'font-weight',\n 'fx',\n 'fy',\n 'g1',\n 'g2',\n 'glyph-name',\n 'glyphref',\n 'gradientunits',\n 'gradienttransform',\n 'height',\n 'href',\n 'id',\n 'image-rendering',\n 'in',\n 'in2',\n 'k',\n 'k1',\n 'k2',\n 'k3',\n 'k4',\n 'kerning',\n 'keypoints',\n 'keysplines',\n 'keytimes',\n 'lang',\n 'lengthadjust',\n 'letter-spacing',\n 'kernelmatrix',\n 'kernelunitlength',\n 'lighting-color',\n 'local',\n 'marker-end',\n 'marker-mid',\n 'marker-start',\n 'markerheight',\n 'markerunits',\n 'markerwidth',\n 'maskcontentunits',\n 'maskunits',\n 'max',\n 'mask',\n 'media',\n 'method',\n 'mode',\n 'min',\n 'name',\n 'numoctaves',\n 'offset',\n 'operator',\n 'opacity',\n 'order',\n 'orient',\n 'orientation',\n 'origin',\n 'overflow',\n 'paint-order',\n 'path',\n 'pathlength',\n 'patterncontentunits',\n 'patterntransform',\n 'patternunits',\n 'points',\n 'preservealpha',\n 'preserveaspectratio',\n 'primitiveunits',\n 'r',\n 'rx',\n 'ry',\n 'radius',\n 'refx',\n 'refy',\n 'repeatcount',\n 'repeatdur',\n 'restart',\n 'result',\n 'rotate',\n 'scale',\n 'seed',\n 'shape-rendering',\n 'specularconstant',\n 'specularexponent',\n 'spreadmethod',\n 'startoffset',\n 'stddeviation',\n 'stitchtiles',\n 'stop-color',\n 'stop-opacity',\n 'stroke-dasharray',\n 'stroke-dashoffset',\n 'stroke-linecap',\n 'stroke-linejoin',\n 'stroke-miterlimit',\n 'stroke-opacity',\n 'stroke',\n 'stroke-width',\n 'style',\n 'surfacescale',\n 'systemlanguage',\n 'tabindex',\n 'targetx',\n 'targety',\n 'transform',\n 'transform-origin',\n 'text-anchor',\n 'text-decoration',\n 'text-rendering',\n 'textlength',\n 'type',\n 'u1',\n 'u2',\n 'unicode',\n 'values',\n 'viewbox',\n 'visibility',\n 'version',\n 'vert-adv-y',\n 'vert-origin-x',\n 'vert-origin-y',\n 'width',\n 'word-spacing',\n 'wrap',\n 'writing-mode',\n 'xchannelselector',\n 'ychannelselector',\n 'x',\n 'x1',\n 'x2',\n 'xmlns',\n 'y',\n 'y1',\n 'y2',\n 'z',\n 'zoomandpan',\n]);\n\nexport const mathMl = freeze([\n 'accent',\n 'accentunder',\n 'align',\n 'bevelled',\n 'close',\n 'columnsalign',\n 'columnlines',\n 'columnspan',\n 'denomalign',\n 'depth',\n 'dir',\n 'display',\n 'displaystyle',\n 'encoding',\n 'fence',\n 'frame',\n 'height',\n 'href',\n 'id',\n 'largeop',\n 'length',\n 'linethickness',\n 'lspace',\n 'lquote',\n 'mathbackground',\n 'mathcolor',\n 'mathsize',\n 'mathvariant',\n 'maxsize',\n 'minsize',\n 'movablelimits',\n 'notation',\n 'numalign',\n 'open',\n 'rowalign',\n 'rowlines',\n 'rowspacing',\n 'rowspan',\n 'rspace',\n 'rquote',\n 'scriptlevel',\n 'scriptminsize',\n 'scriptsizemultiplier',\n 'selection',\n 'separator',\n 'separators',\n 'stretchy',\n 'subscriptshift',\n 'supscriptshift',\n 'symmetric',\n 'voffset',\n 'width',\n 'xmlns',\n]);\n\nexport const xml = freeze([\n 'xlink:href',\n 'xml:id',\n 'xlink:title',\n 'xml:space',\n 'xmlns:xlink',\n]);\n", "import { seal } from './utils.js';\n\n// eslint-disable-next-line unicorn/better-regex\nexport const MUSTACHE_EXPR = seal(/\\{\\{[\\s\\S]*|[\\s\\S]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\nexport const ERB_EXPR = seal(/<%[\\s\\S]*|[\\s\\S]*%>/gm);\nexport const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\nexport const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\nexport const IS_ALLOWED_URI = seal(\n /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n);\nexport const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\nexport const ATTR_WHITESPACE = seal(\n /[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n);\n", "import * as TAGS from './tags.js';\nimport * as ATTRS from './attrs.js';\nimport * as EXPRESSIONS from './regexp.js';\nimport {\n addToSet,\n clone,\n freeze,\n arrayForEach,\n arrayPop,\n arrayPush,\n stringMatch,\n stringReplace,\n stringToLowerCase,\n stringIndexOf,\n stringTrim,\n regExpTest,\n typeErrorCreate,\n lookupGetter,\n} from './utils.js';\n\nconst getGlobal = () => (typeof window === 'undefined' ? null : window);\n\n/**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\nconst _createTrustedTypesPolicy = function (trustedTypes, document) {\n if (\n typeof trustedTypes !== 'object' ||\n typeof trustedTypes.createPolicy !== 'function'\n ) {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (\n document.currentScript &&\n document.currentScript.hasAttribute(ATTR_NAME)\n ) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn(\n 'TrustedTypes policy ' + policyName + ' could not be created.'\n );\n return null;\n }\n};\n\nfunction createDOMPurify(window = getGlobal()) {\n const DOMPurify = (root) => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = VERSION;\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n const originalDocument = window.document;\n\n let { document } = window;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes,\n } = window;\n\n const ElementPrototype = Element.prototype;\n\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n const trustedTypesPolicy = _createTrustedTypesPolicy(\n trustedTypes,\n originalDocument\n );\n const emptyHTML = trustedTypesPolicy ? trustedTypesPolicy.createHTML('') : '';\n\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName,\n } = document;\n const { importNode } = originalDocument;\n\n let documentMode = {};\n try {\n documentMode = clone(document).documentMode ? document.documentMode : {};\n } catch (_) {}\n\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported =\n typeof getParentNode === 'function' &&\n implementation &&\n typeof implementation.createHTMLDocument !== 'undefined' &&\n documentMode !== 9;\n\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n } = EXPRESSIONS;\n\n let { IS_ALLOWED_URI } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [\n ...TAGS.html,\n ...TAGS.svg,\n ...TAGS.svgFilters,\n ...TAGS.mathMl,\n ...TAGS.text,\n ]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [\n ...ATTRS.html,\n ...ATTRS.svg,\n ...ATTRS.mathMl,\n ...ATTRS.xml,\n ]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n const CUSTOM_ELEMENT_HANDLING = Object.seal(\n Object.create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null,\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false,\n },\n })\n );\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with ... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks? */\n let SANITIZE_DOM = true;\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, [\n 'annotation-xml',\n 'audio',\n 'colgroup',\n 'desc',\n 'foreignobject',\n 'head',\n 'iframe',\n 'math',\n 'mi',\n 'mn',\n 'mo',\n 'ms',\n 'mtext',\n 'noembed',\n 'noframes',\n 'noscript',\n 'plaintext',\n 'script',\n 'style',\n 'svg',\n 'template',\n 'thead',\n 'title',\n 'video',\n 'xmp',\n ]);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, [\n 'audio',\n 'video',\n 'img',\n 'source',\n 'image',\n 'track',\n ]);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [\n 'alt',\n 'class',\n 'for',\n 'id',\n 'label',\n 'name',\n 'pattern',\n 'placeholder',\n 'role',\n 'summary',\n 'title',\n 'value',\n 'style',\n 'xmlns',\n ]);\n\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n\n const isRegexOrFunction = function (testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function (cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n /* Set configuration parameters */\n ALLOWED_TAGS =\n 'ALLOWED_TAGS' in cfg\n ? addToSet({}, cfg.ALLOWED_TAGS)\n : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR =\n 'ALLOWED_ATTR' in cfg\n ? addToSet({}, cfg.ALLOWED_ATTR)\n : DEFAULT_ALLOWED_ATTR;\n URI_SAFE_ATTRIBUTES =\n 'ADD_URI_SAFE_ATTR' in cfg\n ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR)\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS =\n 'ADD_DATA_URI_TAGS' in cfg\n ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS)\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS =\n 'FORBID_CONTENTS' in cfg\n ? addToSet({}, cfg.FORBID_CONTENTS)\n : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS) : {};\n FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR) : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)\n ) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck =\n cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n\n if (\n cfg.CUSTOM_ELEMENT_HANDLING &&\n typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements ===\n 'boolean'\n ) {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements =\n cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1\n ? (PARSER_MEDIA_TYPE = DEFAULT_PARSER_MEDIA_TYPE)\n : (PARSER_MEDIA_TYPE = cfg.PARSER_MEDIA_TYPE);\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc =\n PARSER_MEDIA_TYPE === 'application/xhtml+xml'\n ? (x) => x\n : stringToLowerCase;\n\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [...TAGS.text]);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, TAGS.html);\n addToSet(ALLOWED_ATTR, ATTRS.html);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, TAGS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, TAGS.svgFilters);\n addToSet(ALLOWED_ATTR, ATTRS.svg);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, TAGS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.mathMl);\n addToSet(ALLOWED_ATTR, ATTRS.xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, [\n 'mi',\n 'mo',\n 'mn',\n 'ms',\n 'mtext',\n ]);\n\n const HTML_INTEGRATION_POINTS = addToSet({}, [\n 'foreignobject',\n 'desc',\n 'title',\n 'annotation-xml',\n ]);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, TAGS.svg);\n addToSet(ALL_SVG_TAGS, TAGS.svgFilters);\n addToSet(ALL_SVG_TAGS, TAGS.svgDisallowed);\n\n const ALL_MATHML_TAGS = addToSet({}, TAGS.mathMl);\n addToSet(ALL_MATHML_TAGS, TAGS.mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function (element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: HTML_NAMESPACE,\n tagName: 'template',\n };\n }\n\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via . If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via\n // svg if parent is either or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return (\n tagName === 'svg' &&\n (parentTagName === 'annotation-xml' ||\n MATHML_TEXT_INTEGRATION_POINTS[parentTagName])\n );\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via . If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (\n parent.namespaceURI === SVG_NAMESPACE &&\n !HTML_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n if (\n parent.namespaceURI === MATHML_NAMESPACE &&\n !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]\n ) {\n return false;\n }\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erronously deleted from\n // HTML namespace.\n const commonSvgAndHTMLElements = addToSet({}, [\n 'title',\n 'style',\n 'font',\n 'a',\n 'script',\n ]);\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return (\n !ALL_MATHML_TAGS[tagName] &&\n (commonSvgAndHTMLElements[tagName] || !ALL_SVG_TAGS[tagName])\n );\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG or MathML). Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function (node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n try {\n node.outerHTML = emptyHTML;\n } catch (_) {\n node.remove();\n }\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function (name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node,\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node,\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function (dirty) {\n /* Create a HTML document */\n let doc;\n let leadingWhitespace;\n\n if (FORCE_BODY) {\n dirty = '' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml') {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty =\n '' +\n dirty +\n '';\n }\n\n const dirtyPayload = trustedTypesPolicy\n ? trustedTypesPolicy.createHTML(dirty)\n : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? '' : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n const body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(\n document.createTextNode(leadingWhitespace),\n body.childNodes[0] || null\n );\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(\n doc,\n WHOLE_DOCUMENT ? 'html' : 'body'\n )[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n const _createIterator = function (root) {\n return createNodeIterator.call(\n root.ownerDocument || root,\n root,\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT,\n null,\n false\n );\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function (elm) {\n return (\n elm instanceof HTMLFormElement &&\n (typeof elm.nodeName !== 'string' ||\n typeof elm.textContent !== 'string' ||\n typeof elm.removeChild !== 'function' ||\n !(elm.attributes instanceof NamedNodeMap) ||\n typeof elm.removeAttribute !== 'function' ||\n typeof elm.setAttribute !== 'function' ||\n typeof elm.namespaceURI !== 'string' ||\n typeof elm.insertBefore !== 'function')\n );\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function (object) {\n return typeof Node === 'object'\n ? object instanceof Node\n : object &&\n typeof object === 'object' &&\n typeof object.nodeType === 'number' &&\n typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function (entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], (hook) => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function (currentNode) {\n let content;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check if tagname contains Unicode */\n if (stringMatch(currentNode.nodeName, /[\\u0080-\\uFFFF]/)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS,\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (\n !_isNode(currentNode.firstElementChild) &&\n (!_isNode(currentNode.content) ||\n !_isNode(currentNode.content.firstElementChild)) &&\n regExpTest(/<[/\\w]/g, currentNode.innerHTML) &&\n regExpTest(/<[/\\w]/g, currentNode.textContent)\n ) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Mitigate a problem with templates inside select */\n if (\n tagName === 'select' &&\n regExpTest(/