@danielx/civet 0.4.13 → 0.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -519,17 +519,21 @@ var require_parser = __commonJS({
519
519
  UnaryOp,
520
520
  ModuleItem,
521
521
  StatementListItem,
522
- PostfixConditional,
522
+ PostfixStatement,
523
523
  Statement,
524
524
  EmptyStatement,
525
525
  BlockStatement,
526
526
  IfStatement,
527
+ IfClause,
528
+ UnlessClause,
527
529
  IterationStatement,
528
530
  LoopStatement,
531
+ LoopClause,
529
532
  DoWhileStatement,
530
533
  WhileStatement,
531
534
  WhileClause,
532
535
  ForStatement,
536
+ ForClause,
533
537
  ForStatementControl,
534
538
  ForInOfDeclaration,
535
539
  ForDeclaration,
@@ -635,6 +639,7 @@ var require_parser = __commonJS({
635
639
  ConstructorShorthand,
636
640
  Default,
637
641
  Delete,
642
+ Do,
638
643
  Dot,
639
644
  DotDotDot,
640
645
  DoubleQuote,
@@ -671,9 +676,11 @@ var require_parser = __commonJS({
671
676
  Try,
672
677
  Typeof,
673
678
  Unless,
679
+ Until,
674
680
  Var,
675
681
  Void,
676
682
  When,
683
+ While,
677
684
  Yield,
678
685
  JSXElement,
679
686
  JSXSelfClosingElement,
@@ -835,65 +842,65 @@ var require_parser = __commonJS({
835
842
  var $L69 = $L("^");
836
843
  var $L70 = $L("|");
837
844
  var $L71 = $L(";");
838
- var $L72 = $L("do");
839
- var $L73 = $L("while");
840
- var $L74 = $L("until");
841
- var $L75 = $L("finally");
842
- var $L76 = $L("break");
843
- var $L77 = $L("continue");
844
- var $L78 = $L("debugger");
845
- var $L79 = $L("import type");
846
- var $L80 = $L("default");
847
- var $L81 = $L(":=");
848
- var $L82 = $L("/*");
849
- var $L83 = $L("*/");
850
- var $L84 = $L("###");
851
- var $L85 = $L("as");
852
- var $L86 = $L("async");
853
- var $L87 = $L("await");
854
- var $L88 = $L("`");
855
- var $L89 = $L("case");
856
- var $L90 = $L("catch");
857
- var $L91 = $L("class");
858
- var $L92 = $L("#{");
859
- var $L93 = $L(":");
860
- var $L94 = $L("delete");
861
- var $L95 = $L(".");
862
- var $L96 = $L("...");
863
- var $L97 = $L('"');
864
- var $L98 = $L("else");
865
- var $L99 = $L("export");
866
- var $L100 = $L("for");
867
- var $L101 = $L("from");
868
- var $L102 = $L("function");
869
- var $L103 = $L("get");
870
- var $L104 = $L("set");
871
- var $L105 = $L("if");
872
- var $L106 = $L("let");
873
- var $L107 = $L("const");
874
- var $L108 = $L("loop");
875
- var $L109 = $L("new");
876
- var $L110 = $L("of");
877
- var $L111 = $L("{");
878
- var $L112 = $L("[");
879
- var $L113 = $L("(");
880
- var $L114 = $L("?");
881
- var $L115 = $L("return");
882
- var $L116 = $L("'");
883
- var $L117 = $L("static");
884
- var $L118 = $L("${");
885
- var $L119 = $L("switch");
886
- var $L120 = $L("target");
887
- var $L121 = $L("throw");
888
- var $L122 = $L('"""');
889
- var $L123 = $L("'''");
890
- var $L124 = $L("```");
891
- var $L125 = $L("try");
892
- var $L126 = $L("typeof");
893
- var $L127 = $L("unless");
894
- var $L128 = $L("var");
895
- var $L129 = $L("void");
896
- var $L130 = $L("when");
845
+ var $L72 = $L("finally");
846
+ var $L73 = $L("break");
847
+ var $L74 = $L("continue");
848
+ var $L75 = $L("debugger");
849
+ var $L76 = $L("import type");
850
+ var $L77 = $L("default");
851
+ var $L78 = $L(":=");
852
+ var $L79 = $L("/*");
853
+ var $L80 = $L("*/");
854
+ var $L81 = $L("###");
855
+ var $L82 = $L("as");
856
+ var $L83 = $L("async");
857
+ var $L84 = $L("await");
858
+ var $L85 = $L("`");
859
+ var $L86 = $L("case");
860
+ var $L87 = $L("catch");
861
+ var $L88 = $L("class");
862
+ var $L89 = $L("#{");
863
+ var $L90 = $L(":");
864
+ var $L91 = $L("delete");
865
+ var $L92 = $L("do");
866
+ var $L93 = $L(".");
867
+ var $L94 = $L("...");
868
+ var $L95 = $L('"');
869
+ var $L96 = $L("else");
870
+ var $L97 = $L("export");
871
+ var $L98 = $L("for");
872
+ var $L99 = $L("from");
873
+ var $L100 = $L("function");
874
+ var $L101 = $L("get");
875
+ var $L102 = $L("set");
876
+ var $L103 = $L("if");
877
+ var $L104 = $L("let");
878
+ var $L105 = $L("const");
879
+ var $L106 = $L("loop");
880
+ var $L107 = $L("new");
881
+ var $L108 = $L("of");
882
+ var $L109 = $L("{");
883
+ var $L110 = $L("[");
884
+ var $L111 = $L("(");
885
+ var $L112 = $L("?");
886
+ var $L113 = $L("return");
887
+ var $L114 = $L("'");
888
+ var $L115 = $L("static");
889
+ var $L116 = $L("${");
890
+ var $L117 = $L("switch");
891
+ var $L118 = $L("target");
892
+ var $L119 = $L("throw");
893
+ var $L120 = $L('"""');
894
+ var $L121 = $L("'''");
895
+ var $L122 = $L("```");
896
+ var $L123 = $L("try");
897
+ var $L124 = $L("typeof");
898
+ var $L125 = $L("unless");
899
+ var $L126 = $L("until");
900
+ var $L127 = $L("var");
901
+ var $L128 = $L("void");
902
+ var $L129 = $L("when");
903
+ var $L130 = $L("while");
897
904
  var $L131 = $L("yield");
898
905
  var $L132 = $L("/>");
899
906
  var $L133 = $L("</");
@@ -935,7 +942,7 @@ var require_parser = __commonJS({
935
942
  var $R21 = $R(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy"));
936
943
  var $R22 = $R(new RegExp("(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+", "suy"));
937
944
  var $R23 = $R(new RegExp("(?:on|off|yes|no)(?!\\p{ID_Continue})", "suy"));
938
- var $R24 = $R(new RegExp("(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|new|null|or|return|static|super|switch|this|throw|true|try|typeof|unless|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy"));
945
+ var $R24 = $R(new RegExp("(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|loop|new|null|or|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy"));
939
946
  var $R25 = $R(new RegExp("\\/\\/[^\\r\\n]*", "suy"));
940
947
  var $R26 = $R(new RegExp(".", "suy"));
941
948
  var $R27 = $R(new RegExp("#([^\\r\\n]*)", "suy"));
@@ -2436,49 +2443,36 @@ var require_parser = __commonJS({
2436
2443
  return ModuleItem$0(state) || ModuleItem$1(state) || ModuleItem$2(state);
2437
2444
  }
2438
2445
  }
2439
- var StatementListItem$0 = $TS($S($C(Declaration, Statement), $E(PostfixConditional), Loc), function($skip, $loc, $0, $1, $2, $3) {
2446
+ var StatementListItem$0 = Declaration;
2447
+ var StatementListItem$1 = $TS($S(Statement, $Q(TrailingComment), $E(PostfixStatement)), function($skip, $loc, $0, $1, $2, $3) {
2440
2448
  var statement = $1;
2441
- var cond = $2;
2442
- var l = $3;
2443
- if (cond)
2444
- return [cond, statement, { $loc: l.$loc, token: "}" }];
2449
+ var ws = $2;
2450
+ var post = $3;
2451
+ if (post) {
2452
+ post.children.push(statement);
2453
+ if (!module2.isWhitespaceOrEmpty(ws))
2454
+ post.children.push(ws);
2455
+ return post;
2456
+ }
2445
2457
  return statement;
2446
2458
  });
2447
2459
  function StatementListItem(state) {
2448
- if (state.verbose)
2449
- console.log("ENTER:", "StatementListItem");
2450
2460
  if (state.tokenize) {
2451
- return $TOKEN("StatementListItem", state, StatementListItem$0(state));
2461
+ return $TOKEN("StatementListItem", state, StatementListItem$0(state) || StatementListItem$1(state));
2452
2462
  } else {
2453
- return StatementListItem$0(state);
2463
+ return StatementListItem$0(state) || StatementListItem$1(state);
2454
2464
  }
2455
2465
  }
2456
- var PostfixConditional$0 = $TS($S($Q(TrailingComment), $C(If, Unless), NonIdContinue, Loc, ExpressionWithIndentedApplicationSuppressed, Loc), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
2457
- var ws = $1;
2458
- var cond = $2;
2459
- var l1 = $4;
2460
- var exp = $5;
2461
- var l2 = $6;
2462
- let openParens = { $loc: l1.$loc, token: "(!(" };
2463
- let closingParens = { $loc: l2.$loc, token: "))" };
2464
- let space = { $loc: l2.$loc, token: " " };
2465
- let openingBrace = { $loc: l2.$loc, token: "{" };
2466
- if (cond.token === "if") {
2467
- cond.token = "if";
2468
- closingParens.token = ")";
2469
- openParens.token = "(";
2470
- } else {
2471
- cond.token = "if";
2472
- }
2473
- return [ws, cond, openParens, exp, closingParens, space, openingBrace];
2474
- });
2475
- function PostfixConditional(state) {
2476
- if (state.verbose)
2477
- console.log("ENTER:", "PostfixConditional");
2466
+ var PostfixStatement$0 = ForClause;
2467
+ var PostfixStatement$1 = IfClause;
2468
+ var PostfixStatement$2 = LoopClause;
2469
+ var PostfixStatement$3 = UnlessClause;
2470
+ var PostfixStatement$4 = WhileClause;
2471
+ function PostfixStatement(state) {
2478
2472
  if (state.tokenize) {
2479
- return $TOKEN("PostfixConditional", state, PostfixConditional$0(state));
2473
+ return $TOKEN("PostfixStatement", state, PostfixStatement$0(state) || PostfixStatement$1(state) || PostfixStatement$2(state) || PostfixStatement$3(state) || PostfixStatement$4(state));
2480
2474
  } else {
2481
- return PostfixConditional$0(state);
2475
+ return PostfixStatement$0(state) || PostfixStatement$1(state) || PostfixStatement$2(state) || PostfixStatement$3(state) || PostfixStatement$4(state);
2482
2476
  }
2483
2477
  }
2484
2478
  var Statement$0 = KeywordStatement;
@@ -2522,13 +2516,43 @@ var require_parser = __commonJS({
2522
2516
  return BlockStatement$0(state);
2523
2517
  }
2524
2518
  }
2525
- var IfStatement$0 = $T($S(If, Condition, Block, $E($S(__, Else, Block))), function(value) {
2519
+ var IfStatement$0 = $TS($S(IfClause, Block, $E($S(__, Else, Block))), function($skip, $loc, $0, $1, $2, $3) {
2520
+ var clause = $1;
2521
+ var block = $2;
2522
+ var e = $3;
2523
+ clause.children.push(block);
2524
+ if (e)
2525
+ clause.children.push(e);
2526
+ return clause;
2527
+ });
2528
+ var IfStatement$1 = $TS($S(UnlessClause, Block), function($skip, $loc, $0, $1, $2) {
2529
+ var clause = $1;
2530
+ var block = $2;
2531
+ clause.children.push(block);
2532
+ return clause;
2533
+ });
2534
+ function IfStatement(state) {
2535
+ if (state.tokenize) {
2536
+ return $TOKEN("IfStatement", state, IfStatement$0(state) || IfStatement$1(state));
2537
+ } else {
2538
+ return IfStatement$0(state) || IfStatement$1(state);
2539
+ }
2540
+ }
2541
+ var IfClause$0 = $T($S(If, Condition), function(value) {
2526
2542
  return { "type": "IfStatement", "children": value };
2527
2543
  });
2528
- var IfStatement$1 = $TS($S(Unless, Condition, Block), function($skip, $loc, $0, $1, $2, $3) {
2544
+ function IfClause(state) {
2545
+ if (state.verbose)
2546
+ console.log("ENTER:", "IfClause");
2547
+ if (state.tokenize) {
2548
+ return $TOKEN("IfClause", state, IfClause$0(state));
2549
+ } else {
2550
+ return IfClause$0(state);
2551
+ }
2552
+ }
2553
+ var UnlessClause$0 = $TS($S(Unless, Condition), function($skip, $loc, $0, $1, $2) {
2529
2554
  var kind = $1;
2530
2555
  var condition = $2;
2531
- var block = $3;
2532
2556
  condition.forEach((c) => {
2533
2557
  if (!c)
2534
2558
  return;
@@ -2540,22 +2564,22 @@ var require_parser = __commonJS({
2540
2564
  kind.token = "if";
2541
2565
  return {
2542
2566
  type: "IfStatement",
2543
- children: [kind, condition, block]
2567
+ children: [kind, condition]
2544
2568
  };
2545
2569
  });
2546
- function IfStatement(state) {
2570
+ function UnlessClause(state) {
2571
+ if (state.verbose)
2572
+ console.log("ENTER:", "UnlessClause");
2547
2573
  if (state.tokenize) {
2548
- return $TOKEN("IfStatement", state, IfStatement$0(state) || IfStatement$1(state));
2574
+ return $TOKEN("UnlessClause", state, UnlessClause$0(state));
2549
2575
  } else {
2550
- return IfStatement$0(state) || IfStatement$1(state);
2576
+ return UnlessClause$0(state);
2551
2577
  }
2552
2578
  }
2553
2579
  var IterationStatement$0 = LoopStatement;
2554
2580
  var IterationStatement$1 = DoWhileStatement;
2555
2581
  var IterationStatement$2 = WhileStatement;
2556
- var IterationStatement$3 = $T($S(ForStatement), function(value) {
2557
- return { "type": "IterationStatement", "children": value };
2558
- });
2582
+ var IterationStatement$3 = ForStatement;
2559
2583
  function IterationStatement(state) {
2560
2584
  if (state.tokenize) {
2561
2585
  return $TOKEN("IterationStatement", state, IterationStatement$0(state) || IterationStatement$1(state) || IterationStatement$2(state) || IterationStatement$3(state));
@@ -2563,8 +2587,11 @@ var require_parser = __commonJS({
2563
2587
  return IterationStatement$0(state) || IterationStatement$1(state) || IterationStatement$2(state) || IterationStatement$3(state);
2564
2588
  }
2565
2589
  }
2566
- var LoopStatement$0 = $T($S(Loop, Block), function(value) {
2567
- return { "type": "IterationStatement", "children": value };
2590
+ var LoopStatement$0 = $TS($S(LoopClause, Block), function($skip, $loc, $0, $1, $2) {
2591
+ var clause = $1;
2592
+ var block = $2;
2593
+ clause.children.push(block);
2594
+ return clause;
2568
2595
  });
2569
2596
  function LoopStatement(state) {
2570
2597
  if (state.verbose)
@@ -2575,7 +2602,19 @@ var require_parser = __commonJS({
2575
2602
  return LoopStatement$0(state);
2576
2603
  }
2577
2604
  }
2578
- var DoWhileStatement$0 = $T($S($EXPECT($L72, fail, 'DoWhileStatement "do"'), NonIdContinue, Block, __, WhileClause), function(value) {
2605
+ var LoopClause$0 = $T($S(Loop), function(value) {
2606
+ return { "type": "IterationStatement", "children": value };
2607
+ });
2608
+ function LoopClause(state) {
2609
+ if (state.verbose)
2610
+ console.log("ENTER:", "LoopClause");
2611
+ if (state.tokenize) {
2612
+ return $TOKEN("LoopClause", state, LoopClause$0(state));
2613
+ } else {
2614
+ return LoopClause$0(state);
2615
+ }
2616
+ }
2617
+ var DoWhileStatement$0 = $T($S(Do, BracedBlock, __, WhileClause), function(value) {
2579
2618
  return { "type": "IterationStatement", "children": value };
2580
2619
  });
2581
2620
  function DoWhileStatement(state) {
@@ -2587,8 +2626,11 @@ var require_parser = __commonJS({
2587
2626
  return DoWhileStatement$0(state);
2588
2627
  }
2589
2628
  }
2590
- var WhileStatement$0 = $T($S(WhileClause, Block), function(value) {
2591
- return { "type": "IterationStatement", "children": value };
2629
+ var WhileStatement$0 = $TS($S(WhileClause, Block), function($skip, $loc, $0, $1, $2) {
2630
+ var clause = $1;
2631
+ var block = $2;
2632
+ clause.children.push(block);
2633
+ return clause;
2592
2634
  });
2593
2635
  function WhileStatement(state) {
2594
2636
  if (state.verbose)
@@ -2599,15 +2641,19 @@ var require_parser = __commonJS({
2599
2641
  return WhileStatement$0(state);
2600
2642
  }
2601
2643
  }
2602
- var WhileClause$0 = $TS($S($C($EXPECT($L73, fail, 'WhileClause "while"'), $EXPECT($L74, fail, 'WhileClause "until"')), NonIdContinue, Condition), function($skip, $loc, $0, $1, $2, $3) {
2644
+ var WhileClause$0 = $TS($S($C(While, Until), Condition), function($skip, $loc, $0, $1, $2) {
2603
2645
  var kind = $1;
2604
- var cond = $3;
2605
- if (kind === "until") {
2646
+ var cond = $2;
2647
+ if (kind.token === "until") {
2606
2648
  cond[1] = "(!(";
2607
- cond[4] = "))";
2608
- return ["while", cond];
2649
+ cond[cond.length - 1] = "))";
2650
+ kind.token = "while";
2651
+ $0 = [kind, cond];
2609
2652
  }
2610
- return $0;
2653
+ return {
2654
+ type: "IterationStatement",
2655
+ children: $0
2656
+ };
2611
2657
  });
2612
2658
  function WhileClause(state) {
2613
2659
  if (state.verbose)
@@ -2618,7 +2664,12 @@ var require_parser = __commonJS({
2618
2664
  return WhileClause$0(state);
2619
2665
  }
2620
2666
  }
2621
- var ForStatement$0 = $S(For, __, ForStatementControl, Block);
2667
+ var ForStatement$0 = $TS($S(ForClause, Block), function($skip, $loc, $0, $1, $2) {
2668
+ var clause = $1;
2669
+ var block = $2;
2670
+ clause.children.push(block);
2671
+ return clause;
2672
+ });
2622
2673
  function ForStatement(state) {
2623
2674
  if (state.verbose)
2624
2675
  console.log("ENTER:", "ForStatement");
@@ -2628,6 +2679,18 @@ var require_parser = __commonJS({
2628
2679
  return ForStatement$0(state);
2629
2680
  }
2630
2681
  }
2682
+ var ForClause$0 = $T($S(For, __, ForStatementControl), function(value) {
2683
+ return { "type": "IterationStatement", "children": value };
2684
+ });
2685
+ function ForClause(state) {
2686
+ if (state.verbose)
2687
+ console.log("ENTER:", "ForClause");
2688
+ if (state.tokenize) {
2689
+ return $TOKEN("ForClause", state, ForClause$0(state));
2690
+ } else {
2691
+ return ForClause$0(state);
2692
+ }
2693
+ }
2631
2694
  var ForStatementControl$0 = $S(OpenParen, __, $C(LexicalDeclaration, VariableStatement, $E(Expression)), __, Semicolon, $E(Expression), Semicolon, $E(Expression), __, CloseParen);
2632
2695
  var ForStatementControl$1 = $S(InsertOpenParen, __, $C(LexicalDeclaration, VariableStatement, $E(Expression)), __, Semicolon, $E(Expression), Semicolon, $E($S($N(EOS), Expression)), InsertCloseParen);
2633
2696
  var ForStatementControl$2 = $S(OpenParen, __, ForInOfDeclaration, __, In, Expression, __, CloseParen);
@@ -2848,7 +2911,7 @@ var require_parser = __commonJS({
2848
2911
  return CatchBind$0(state) || CatchBind$1(state);
2849
2912
  }
2850
2913
  }
2851
- var Finally$0 = $S(__, $EXPECT($L75, fail, 'Finally "finally"'), BracedBlock);
2914
+ var Finally$0 = $S(__, $EXPECT($L72, fail, 'Finally "finally"'), BracedBlock);
2852
2915
  function Finally(state) {
2853
2916
  if (state.verbose)
2854
2917
  console.log("ENTER:", "Finally");
@@ -2868,7 +2931,10 @@ var require_parser = __commonJS({
2868
2931
  }
2869
2932
  }
2870
2933
  var Condition$0 = $S(__, OpenParen, Expression, __, CloseParen);
2871
- var Condition$1 = $S($N(EOS), __, InsertOpenParen, ExpressionWithIndentedApplicationSuppressed, InsertCloseParen);
2934
+ var Condition$1 = $TS($S($N(EOS), __, InsertOpenParen, ExpressionWithIndentedApplicationSuppressed, InsertCloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
2935
+ $0.shift();
2936
+ return $0;
2937
+ });
2872
2938
  function Condition(state) {
2873
2939
  if (state.tokenize) {
2874
2940
  return $TOKEN("Condition", state, Condition$0(state) || Condition$1(state));
@@ -2914,13 +2980,13 @@ var require_parser = __commonJS({
2914
2980
  return ExpressionStatement$0(state);
2915
2981
  }
2916
2982
  }
2917
- var KeywordStatement$0 = $T($S($EXPECT($L76, fail, 'KeywordStatement "break"'), NonIdContinue), function(value) {
2983
+ var KeywordStatement$0 = $T($S($EXPECT($L73, fail, 'KeywordStatement "break"'), NonIdContinue), function(value) {
2918
2984
  return { "type": "BreakStatement", "children": value };
2919
2985
  });
2920
- var KeywordStatement$1 = $T($S($EXPECT($L77, fail, 'KeywordStatement "continue"'), NonIdContinue), function(value) {
2986
+ var KeywordStatement$1 = $T($S($EXPECT($L74, fail, 'KeywordStatement "continue"'), NonIdContinue), function(value) {
2921
2987
  return { "type": "ContinueStatement", "children": value };
2922
2988
  });
2923
- var KeywordStatement$2 = $T($S($EXPECT($L78, fail, 'KeywordStatement "debugger"'), NonIdContinue), function(value) {
2989
+ var KeywordStatement$2 = $T($S($EXPECT($L75, fail, 'KeywordStatement "debugger"'), NonIdContinue), function(value) {
2924
2990
  return { "type": "DebuggerStatement", "children": value };
2925
2991
  });
2926
2992
  var KeywordStatement$3 = $T($S(Return, $E(MaybeNestedExpression)), function(value) {
@@ -2945,7 +3011,7 @@ var require_parser = __commonJS({
2945
3011
  return MaybeNestedExpression$0(state) || MaybeNestedExpression$1(state);
2946
3012
  }
2947
3013
  }
2948
- var ImportDeclaration$0 = $T($S($EXPECT($L79, fail, 'ImportDeclaration "import type"'), NonIdContinue, __, ImportClause, __, FromClause), function(value) {
3014
+ var ImportDeclaration$0 = $T($S($EXPECT($L76, fail, 'ImportDeclaration "import type"'), NonIdContinue, __, ImportClause, __, FromClause), function(value) {
2949
3015
  return { "ts": true, "children": value };
2950
3016
  });
2951
3017
  var ImportDeclaration$1 = $S(Import, __, ImportClause, __, FromClause);
@@ -3083,7 +3149,7 @@ var require_parser = __commonJS({
3083
3149
  return ImportedBinding$0(state);
3084
3150
  }
3085
3151
  }
3086
- var ExportDeclaration$0 = $S(Export, __, $EXPECT($L80, fail, 'ExportDeclaration "default"'), NonIdContinue, __, $C(HoistableDeclaration, ClassDeclaration, AssignmentExpression));
3152
+ var ExportDeclaration$0 = $S(Export, __, $EXPECT($L77, fail, 'ExportDeclaration "default"'), NonIdContinue, __, $C(HoistableDeclaration, ClassDeclaration, AssignmentExpression));
3087
3153
  var ExportDeclaration$1 = $S(Export, __, ExportFromClause, __, FromClause);
3088
3154
  var ExportDeclaration$2 = $S(Export, __, $C(NamedExports, VariableStatement, Declaration));
3089
3155
  function ExportDeclaration(state) {
@@ -3165,7 +3231,7 @@ var require_parser = __commonJS({
3165
3231
  return LexicalDeclaration$0(state) || LexicalDeclaration$1(state);
3166
3232
  }
3167
3233
  }
3168
- var ConstAssignment$0 = $TV($EXPECT($L81, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
3234
+ var ConstAssignment$0 = $TV($EXPECT($L78, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
3169
3235
  return { $loc, token: "=" };
3170
3236
  });
3171
3237
  function ConstAssignment(state) {
@@ -3539,7 +3605,7 @@ var require_parser = __commonJS({
3539
3605
  }
3540
3606
  }
3541
3607
  var ReservedWord$0 = $S(CoffeeBooleansEnabled, $R$0($EXPECT($R23, fail, "ReservedWord /(?:on|off|yes|no)(?!\\p{ID_Continue})/")));
3542
- var ReservedWord$1 = $R$0($EXPECT($R24, fail, "ReservedWord /(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|new|null|or|return|static|super|switch|this|throw|true|try|typeof|unless|var|void|while|with|yield)(?!\\p{ID_Continue})/"));
3608
+ var ReservedWord$1 = $R$0($EXPECT($R24, fail, "ReservedWord /(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|loop|new|null|or|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})/"));
3543
3609
  function ReservedWord(state) {
3544
3610
  if (state.tokenize) {
3545
3611
  return $TOKEN("ReservedWord", state, ReservedWord$0(state) || ReservedWord$1(state));
@@ -3576,7 +3642,7 @@ var require_parser = __commonJS({
3576
3642
  return MultiLineComment$0(state) || MultiLineComment$1(state);
3577
3643
  }
3578
3644
  }
3579
- var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L82, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L83, fail, 'JSMultiLineComment "*/"')), $EXPECT($R26, fail, "JSMultiLineComment /./"))), $EXPECT($L83, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
3645
+ var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L79, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L80, fail, 'JSMultiLineComment "*/"')), $EXPECT($R26, fail, "JSMultiLineComment /./"))), $EXPECT($L80, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
3580
3646
  return { $loc, token: $1 };
3581
3647
  });
3582
3648
  function JSMultiLineComment(state) {
@@ -3600,7 +3666,7 @@ var require_parser = __commonJS({
3600
3666
  return CoffeeSingleLineComment$0(state);
3601
3667
  }
3602
3668
  }
3603
- var CoffeeMultiLineComment$0 = $TS($S($EXPECT($L84, fail, 'CoffeeMultiLineComment "###"'), $TEXT($Q($S($N($C($EXPECT($L84, fail, 'CoffeeMultiLineComment "###"'), $EXPECT($L83, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R26, fail, "CoffeeMultiLineComment /./")))), $EXPECT($L84, fail, 'CoffeeMultiLineComment "###"')), function($skip, $loc, $0, $1, $2, $3) {
3669
+ var CoffeeMultiLineComment$0 = $TS($S($EXPECT($L81, fail, 'CoffeeMultiLineComment "###"'), $TEXT($Q($S($N($C($EXPECT($L81, fail, 'CoffeeMultiLineComment "###"'), $EXPECT($L80, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R26, fail, "CoffeeMultiLineComment /./")))), $EXPECT($L81, fail, 'CoffeeMultiLineComment "###"')), function($skip, $loc, $0, $1, $2, $3) {
3604
3670
  return { $loc, token: `/*${$2}*/` };
3605
3671
  });
3606
3672
  function CoffeeMultiLineComment(state) {
@@ -3612,7 +3678,7 @@ var require_parser = __commonJS({
3612
3678
  return CoffeeMultiLineComment$0(state);
3613
3679
  }
3614
3680
  }
3615
- var InlineComment$0 = $TV($TEXT($S($EXPECT($L82, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L83, fail, 'InlineComment "*/"')), $EXPECT($R28, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L83, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
3681
+ var InlineComment$0 = $TV($TEXT($S($EXPECT($L79, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L80, fail, 'InlineComment "*/"')), $EXPECT($R28, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L80, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
3616
3682
  return { $loc, token: $1 };
3617
3683
  });
3618
3684
  function InlineComment(state) {
@@ -3719,7 +3785,7 @@ var require_parser = __commonJS({
3719
3785
  return Loc$0(state);
3720
3786
  }
3721
3787
  }
3722
- var As$0 = $TS($S($EXPECT($L85, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3788
+ var As$0 = $TS($S($EXPECT($L82, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3723
3789
  return { $loc, token: $1 };
3724
3790
  });
3725
3791
  function As(state) {
@@ -3731,7 +3797,7 @@ var require_parser = __commonJS({
3731
3797
  return As$0(state);
3732
3798
  }
3733
3799
  }
3734
- var Async$0 = $TV($EXPECT($L86, fail, 'Async "async"'), function($skip, $loc, $0, $1) {
3800
+ var Async$0 = $TV($EXPECT($L83, fail, 'Async "async"'), function($skip, $loc, $0, $1) {
3735
3801
  return { $loc, token: $1 };
3736
3802
  });
3737
3803
  function Async(state) {
@@ -3743,7 +3809,7 @@ var require_parser = __commonJS({
3743
3809
  return Async$0(state);
3744
3810
  }
3745
3811
  }
3746
- var Await$0 = $TS($S($EXPECT($L87, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3812
+ var Await$0 = $TS($S($EXPECT($L84, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3747
3813
  return { $loc, token: $1 };
3748
3814
  });
3749
3815
  function Await(state) {
@@ -3755,7 +3821,7 @@ var require_parser = __commonJS({
3755
3821
  return Await$0(state);
3756
3822
  }
3757
3823
  }
3758
- var Backtick$0 = $TV($EXPECT($L88, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
3824
+ var Backtick$0 = $TV($EXPECT($L85, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
3759
3825
  return { $loc, token: $1 };
3760
3826
  });
3761
3827
  function Backtick(state) {
@@ -3767,7 +3833,7 @@ var require_parser = __commonJS({
3767
3833
  return Backtick$0(state);
3768
3834
  }
3769
3835
  }
3770
- var Case$0 = $TS($S($EXPECT($L89, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3836
+ var Case$0 = $TS($S($EXPECT($L86, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3771
3837
  return { $loc, token: $1 };
3772
3838
  });
3773
3839
  function Case(state) {
@@ -3779,7 +3845,7 @@ var require_parser = __commonJS({
3779
3845
  return Case$0(state);
3780
3846
  }
3781
3847
  }
3782
- var Catch$0 = $TV($EXPECT($L90, fail, 'Catch "catch"'), function($skip, $loc, $0, $1) {
3848
+ var Catch$0 = $TV($EXPECT($L87, fail, 'Catch "catch"'), function($skip, $loc, $0, $1) {
3783
3849
  return { $loc, token: $1 };
3784
3850
  });
3785
3851
  function Catch(state) {
@@ -3791,7 +3857,7 @@ var require_parser = __commonJS({
3791
3857
  return Catch$0(state);
3792
3858
  }
3793
3859
  }
3794
- var Class$0 = $TV($EXPECT($L91, fail, 'Class "class"'), function($skip, $loc, $0, $1) {
3860
+ var Class$0 = $TV($EXPECT($L88, fail, 'Class "class"'), function($skip, $loc, $0, $1) {
3795
3861
  return { $loc, token: $1 };
3796
3862
  });
3797
3863
  function Class(state) {
@@ -3839,7 +3905,7 @@ var require_parser = __commonJS({
3839
3905
  return CloseParen$0(state);
3840
3906
  }
3841
3907
  }
3842
- var CoffeeSubstitutionStart$0 = $TV($EXPECT($L92, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
3908
+ var CoffeeSubstitutionStart$0 = $TV($EXPECT($L89, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
3843
3909
  return { $loc, token: "${" };
3844
3910
  });
3845
3911
  function CoffeeSubstitutionStart(state) {
@@ -3851,7 +3917,7 @@ var require_parser = __commonJS({
3851
3917
  return CoffeeSubstitutionStart$0(state);
3852
3918
  }
3853
3919
  }
3854
- var Colon$0 = $TV($EXPECT($L93, fail, 'Colon ":"'), function($skip, $loc, $0, $1) {
3920
+ var Colon$0 = $TV($EXPECT($L90, fail, 'Colon ":"'), function($skip, $loc, $0, $1) {
3855
3921
  return { $loc, token: $1 };
3856
3922
  });
3857
3923
  function Colon(state) {
@@ -3875,7 +3941,7 @@ var require_parser = __commonJS({
3875
3941
  return ConstructorShorthand$0(state);
3876
3942
  }
3877
3943
  }
3878
- var Default$0 = $TS($S($EXPECT($L80, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3944
+ var Default$0 = $TS($S($EXPECT($L77, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3879
3945
  return { $loc, token: $1 };
3880
3946
  });
3881
3947
  function Default(state) {
@@ -3887,7 +3953,7 @@ var require_parser = __commonJS({
3887
3953
  return Default$0(state);
3888
3954
  }
3889
3955
  }
3890
- var Delete$0 = $TS($S($EXPECT($L94, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3956
+ var Delete$0 = $TS($S($EXPECT($L91, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3891
3957
  return { $loc, token: $1 };
3892
3958
  });
3893
3959
  function Delete(state) {
@@ -3899,7 +3965,19 @@ var require_parser = __commonJS({
3899
3965
  return Delete$0(state);
3900
3966
  }
3901
3967
  }
3902
- var Dot$0 = $TV($EXPECT($L95, fail, 'Dot "."'), function($skip, $loc, $0, $1) {
3968
+ var Do$0 = $TS($S($EXPECT($L92, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3969
+ return { $loc, token: $1 };
3970
+ });
3971
+ function Do(state) {
3972
+ if (state.verbose)
3973
+ console.log("ENTER:", "Do");
3974
+ if (state.tokenize) {
3975
+ return $TOKEN("Do", state, Do$0(state));
3976
+ } else {
3977
+ return Do$0(state);
3978
+ }
3979
+ }
3980
+ var Dot$0 = $TV($EXPECT($L93, fail, 'Dot "."'), function($skip, $loc, $0, $1) {
3903
3981
  return { $loc, token: $1 };
3904
3982
  });
3905
3983
  function Dot(state) {
@@ -3911,7 +3989,7 @@ var require_parser = __commonJS({
3911
3989
  return Dot$0(state);
3912
3990
  }
3913
3991
  }
3914
- var DotDotDot$0 = $TV($EXPECT($L96, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
3992
+ var DotDotDot$0 = $TV($EXPECT($L94, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
3915
3993
  return { $loc, token: $1 };
3916
3994
  });
3917
3995
  function DotDotDot(state) {
@@ -3923,7 +4001,7 @@ var require_parser = __commonJS({
3923
4001
  return DotDotDot$0(state);
3924
4002
  }
3925
4003
  }
3926
- var DoubleQuote$0 = $TV($EXPECT($L97, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
4004
+ var DoubleQuote$0 = $TV($EXPECT($L95, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
3927
4005
  return { $loc, token: $1 };
3928
4006
  });
3929
4007
  function DoubleQuote(state) {
@@ -3935,7 +4013,7 @@ var require_parser = __commonJS({
3935
4013
  return DoubleQuote$0(state);
3936
4014
  }
3937
4015
  }
3938
- var Else$0 = $TV($EXPECT($L98, fail, 'Else "else"'), function($skip, $loc, $0, $1) {
4016
+ var Else$0 = $TV($EXPECT($L96, fail, 'Else "else"'), function($skip, $loc, $0, $1) {
3939
4017
  return { $loc, token: $1 };
3940
4018
  });
3941
4019
  function Else(state) {
@@ -3959,7 +4037,7 @@ var require_parser = __commonJS({
3959
4037
  return Equals$0(state);
3960
4038
  }
3961
4039
  }
3962
- var Export$0 = $TS($S($EXPECT($L99, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4040
+ var Export$0 = $TS($S($EXPECT($L97, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3963
4041
  return { $loc, token: $1 };
3964
4042
  });
3965
4043
  function Export(state) {
@@ -3971,7 +4049,7 @@ var require_parser = __commonJS({
3971
4049
  return Export$0(state);
3972
4050
  }
3973
4051
  }
3974
- var For$0 = $TS($S($EXPECT($L100, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4052
+ var For$0 = $TS($S($EXPECT($L98, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3975
4053
  return { $loc, token: $1 };
3976
4054
  });
3977
4055
  function For(state) {
@@ -3983,7 +4061,7 @@ var require_parser = __commonJS({
3983
4061
  return For$0(state);
3984
4062
  }
3985
4063
  }
3986
- var From$0 = $TS($S($EXPECT($L101, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4064
+ var From$0 = $TS($S($EXPECT($L99, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
3987
4065
  return { $loc, token: $1 };
3988
4066
  });
3989
4067
  function From(state) {
@@ -3995,7 +4073,7 @@ var require_parser = __commonJS({
3995
4073
  return From$0(state);
3996
4074
  }
3997
4075
  }
3998
- var Function$0 = $TV($EXPECT($L102, fail, 'Function "function"'), function($skip, $loc, $0, $1) {
4076
+ var Function$0 = $TV($EXPECT($L100, fail, 'Function "function"'), function($skip, $loc, $0, $1) {
3999
4077
  return { $loc, token: $1 };
4000
4078
  });
4001
4079
  function Function(state) {
@@ -4007,7 +4085,7 @@ var require_parser = __commonJS({
4007
4085
  return Function$0(state);
4008
4086
  }
4009
4087
  }
4010
- var GetOrSet$0 = $TS($S($C($EXPECT($L103, fail, 'GetOrSet "get"'), $EXPECT($L104, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4088
+ var GetOrSet$0 = $TS($S($C($EXPECT($L101, fail, 'GetOrSet "get"'), $EXPECT($L102, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4011
4089
  return { $loc, token: $1 };
4012
4090
  });
4013
4091
  function GetOrSet(state) {
@@ -4019,7 +4097,7 @@ var require_parser = __commonJS({
4019
4097
  return GetOrSet$0(state);
4020
4098
  }
4021
4099
  }
4022
- var If$0 = $TV($EXPECT($L105, fail, 'If "if"'), function($skip, $loc, $0, $1) {
4100
+ var If$0 = $TV($EXPECT($L103, fail, 'If "if"'), function($skip, $loc, $0, $1) {
4023
4101
  return { $loc, token: $1 };
4024
4102
  });
4025
4103
  function If(state) {
@@ -4055,7 +4133,7 @@ var require_parser = __commonJS({
4055
4133
  return In$0(state);
4056
4134
  }
4057
4135
  }
4058
- var LetOrConst$0 = $TV($C($EXPECT($L106, fail, 'LetOrConst "let"'), $EXPECT($L107, fail, 'LetOrConst "const"')), function($skip, $loc, $0, $1) {
4136
+ var LetOrConst$0 = $TV($C($EXPECT($L104, fail, 'LetOrConst "let"'), $EXPECT($L105, fail, 'LetOrConst "const"')), function($skip, $loc, $0, $1) {
4059
4137
  return { $loc, token: $1 };
4060
4138
  });
4061
4139
  function LetOrConst(state) {
@@ -4067,7 +4145,7 @@ var require_parser = __commonJS({
4067
4145
  return LetOrConst$0(state);
4068
4146
  }
4069
4147
  }
4070
- var Loop$0 = $TS($S($EXPECT($L108, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4148
+ var Loop$0 = $TS($S($EXPECT($L106, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4071
4149
  return { $loc, token: "while(true)" };
4072
4150
  });
4073
4151
  function Loop(state) {
@@ -4079,7 +4157,7 @@ var require_parser = __commonJS({
4079
4157
  return Loop$0(state);
4080
4158
  }
4081
4159
  }
4082
- var New$0 = $TV($EXPECT($L109, fail, 'New "new"'), function($skip, $loc, $0, $1) {
4160
+ var New$0 = $TV($EXPECT($L107, fail, 'New "new"'), function($skip, $loc, $0, $1) {
4083
4161
  return { $loc, token: $1 };
4084
4162
  });
4085
4163
  function New(state) {
@@ -4091,7 +4169,7 @@ var require_parser = __commonJS({
4091
4169
  return New$0(state);
4092
4170
  }
4093
4171
  }
4094
- var Of$0 = $TV($EXPECT($L110, fail, 'Of "of"'), function($skip, $loc, $0, $1) {
4172
+ var Of$0 = $TV($EXPECT($L108, fail, 'Of "of"'), function($skip, $loc, $0, $1) {
4095
4173
  return { $loc, token: $1 };
4096
4174
  });
4097
4175
  function Of(state) {
@@ -4103,7 +4181,7 @@ var require_parser = __commonJS({
4103
4181
  return Of$0(state);
4104
4182
  }
4105
4183
  }
4106
- var OpenBrace$0 = $TV($EXPECT($L111, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
4184
+ var OpenBrace$0 = $TV($EXPECT($L109, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
4107
4185
  return { $loc, token: $1 };
4108
4186
  });
4109
4187
  function OpenBrace(state) {
@@ -4115,7 +4193,7 @@ var require_parser = __commonJS({
4115
4193
  return OpenBrace$0(state);
4116
4194
  }
4117
4195
  }
4118
- var OpenBracket$0 = $TV($EXPECT($L112, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
4196
+ var OpenBracket$0 = $TV($EXPECT($L110, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
4119
4197
  return { $loc, token: $1 };
4120
4198
  });
4121
4199
  function OpenBracket(state) {
@@ -4127,7 +4205,7 @@ var require_parser = __commonJS({
4127
4205
  return OpenBracket$0(state);
4128
4206
  }
4129
4207
  }
4130
- var OpenParen$0 = $TV($EXPECT($L113, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
4208
+ var OpenParen$0 = $TV($EXPECT($L111, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
4131
4209
  return { $loc, token: $1 };
4132
4210
  });
4133
4211
  function OpenParen(state) {
@@ -4139,7 +4217,7 @@ var require_parser = __commonJS({
4139
4217
  return OpenParen$0(state);
4140
4218
  }
4141
4219
  }
4142
- var QuestionMark$0 = $TV($EXPECT($L114, fail, 'QuestionMark "?"'), function($skip, $loc, $0, $1) {
4220
+ var QuestionMark$0 = $TV($EXPECT($L112, fail, 'QuestionMark "?"'), function($skip, $loc, $0, $1) {
4143
4221
  return { $loc, token: $1 };
4144
4222
  });
4145
4223
  function QuestionMark(state) {
@@ -4151,7 +4229,7 @@ var require_parser = __commonJS({
4151
4229
  return QuestionMark$0(state);
4152
4230
  }
4153
4231
  }
4154
- var Return$0 = $TS($S($EXPECT($L115, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4232
+ var Return$0 = $TS($S($EXPECT($L113, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4155
4233
  return { $loc, token: $1 };
4156
4234
  });
4157
4235
  function Return(state) {
@@ -4175,7 +4253,7 @@ var require_parser = __commonJS({
4175
4253
  return Semicolon$0(state);
4176
4254
  }
4177
4255
  }
4178
- var SingleQuote$0 = $TV($EXPECT($L116, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
4256
+ var SingleQuote$0 = $TV($EXPECT($L114, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
4179
4257
  return { $loc, token: $1 };
4180
4258
  });
4181
4259
  function SingleQuote(state) {
@@ -4199,10 +4277,10 @@ var require_parser = __commonJS({
4199
4277
  return Star$0(state);
4200
4278
  }
4201
4279
  }
4202
- var Static$0 = $TV($EXPECT($L117, fail, 'Static "static"'), function($skip, $loc, $0, $1) {
4280
+ var Static$0 = $TV($EXPECT($L115, fail, 'Static "static"'), function($skip, $loc, $0, $1) {
4203
4281
  return { $loc, token: $1 };
4204
4282
  });
4205
- var Static$1 = $TS($S($EXPECT($L8, fail, 'Static "@"'), $N($EXPECT($L113, fail, 'Static "("'))), function($skip, $loc, $0, $1, $2) {
4283
+ var Static$1 = $TS($S($EXPECT($L8, fail, 'Static "@"'), $N($EXPECT($L111, fail, 'Static "("'))), function($skip, $loc, $0, $1, $2) {
4206
4284
  return { $loc, token: "static " };
4207
4285
  });
4208
4286
  function Static(state) {
@@ -4212,7 +4290,7 @@ var require_parser = __commonJS({
4212
4290
  return Static$0(state) || Static$1(state);
4213
4291
  }
4214
4292
  }
4215
- var SubstitutionStart$0 = $TV($EXPECT($L118, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
4293
+ var SubstitutionStart$0 = $TV($EXPECT($L116, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
4216
4294
  return { $loc, token: $1 };
4217
4295
  });
4218
4296
  function SubstitutionStart(state) {
@@ -4224,7 +4302,7 @@ var require_parser = __commonJS({
4224
4302
  return SubstitutionStart$0(state);
4225
4303
  }
4226
4304
  }
4227
- var Switch$0 = $TS($S($EXPECT($L119, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4305
+ var Switch$0 = $TS($S($EXPECT($L117, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4228
4306
  return { $loc, token: $1 };
4229
4307
  });
4230
4308
  function Switch(state) {
@@ -4236,7 +4314,7 @@ var require_parser = __commonJS({
4236
4314
  return Switch$0(state);
4237
4315
  }
4238
4316
  }
4239
- var Target$0 = $TV($EXPECT($L120, fail, 'Target "target"'), function($skip, $loc, $0, $1) {
4317
+ var Target$0 = $TV($EXPECT($L118, fail, 'Target "target"'), function($skip, $loc, $0, $1) {
4240
4318
  return { $loc, token: $1 };
4241
4319
  });
4242
4320
  function Target(state) {
@@ -4248,7 +4326,7 @@ var require_parser = __commonJS({
4248
4326
  return Target$0(state);
4249
4327
  }
4250
4328
  }
4251
- var Throw$0 = $TS($S($EXPECT($L121, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4329
+ var Throw$0 = $TS($S($EXPECT($L119, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4252
4330
  return { $loc, token: $1 };
4253
4331
  });
4254
4332
  function Throw(state) {
@@ -4260,7 +4338,7 @@ var require_parser = __commonJS({
4260
4338
  return Throw$0(state);
4261
4339
  }
4262
4340
  }
4263
- var TripleDoubleQuote$0 = $TV($EXPECT($L122, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
4341
+ var TripleDoubleQuote$0 = $TV($EXPECT($L120, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
4264
4342
  return { $loc, token: "`" };
4265
4343
  });
4266
4344
  function TripleDoubleQuote(state) {
@@ -4272,7 +4350,7 @@ var require_parser = __commonJS({
4272
4350
  return TripleDoubleQuote$0(state);
4273
4351
  }
4274
4352
  }
4275
- var TripleSingleQuote$0 = $TV($EXPECT($L123, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
4353
+ var TripleSingleQuote$0 = $TV($EXPECT($L121, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
4276
4354
  return { $loc, token: "`" };
4277
4355
  });
4278
4356
  function TripleSingleQuote(state) {
@@ -4284,7 +4362,7 @@ var require_parser = __commonJS({
4284
4362
  return TripleSingleQuote$0(state);
4285
4363
  }
4286
4364
  }
4287
- var TripleTick$0 = $TV($EXPECT($L124, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
4365
+ var TripleTick$0 = $TV($EXPECT($L122, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
4288
4366
  return { $loc, token: "`" };
4289
4367
  });
4290
4368
  function TripleTick(state) {
@@ -4296,7 +4374,7 @@ var require_parser = __commonJS({
4296
4374
  return TripleTick$0(state);
4297
4375
  }
4298
4376
  }
4299
- var Try$0 = $TV($EXPECT($L125, fail, 'Try "try"'), function($skip, $loc, $0, $1) {
4377
+ var Try$0 = $TV($EXPECT($L123, fail, 'Try "try"'), function($skip, $loc, $0, $1) {
4300
4378
  return { $loc, token: $1 };
4301
4379
  });
4302
4380
  function Try(state) {
@@ -4308,7 +4386,7 @@ var require_parser = __commonJS({
4308
4386
  return Try$0(state);
4309
4387
  }
4310
4388
  }
4311
- var Typeof$0 = $TS($S($EXPECT($L126, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4389
+ var Typeof$0 = $TS($S($EXPECT($L124, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4312
4390
  return { $loc, token: $1 };
4313
4391
  });
4314
4392
  function Typeof(state) {
@@ -4320,7 +4398,7 @@ var require_parser = __commonJS({
4320
4398
  return Typeof$0(state);
4321
4399
  }
4322
4400
  }
4323
- var Unless$0 = $TV($EXPECT($L127, fail, 'Unless "unless"'), function($skip, $loc, $0, $1) {
4401
+ var Unless$0 = $TV($EXPECT($L125, fail, 'Unless "unless"'), function($skip, $loc, $0, $1) {
4324
4402
  return { $loc, token: $1 };
4325
4403
  });
4326
4404
  function Unless(state) {
@@ -4332,7 +4410,19 @@ var require_parser = __commonJS({
4332
4410
  return Unless$0(state);
4333
4411
  }
4334
4412
  }
4335
- var Var$0 = $TV($EXPECT($L128, fail, 'Var "var"'), function($skip, $loc, $0, $1) {
4413
+ var Until$0 = $TS($S($EXPECT($L126, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4414
+ return { $loc, token: $1 };
4415
+ });
4416
+ function Until(state) {
4417
+ if (state.verbose)
4418
+ console.log("ENTER:", "Until");
4419
+ if (state.tokenize) {
4420
+ return $TOKEN("Until", state, Until$0(state));
4421
+ } else {
4422
+ return Until$0(state);
4423
+ }
4424
+ }
4425
+ var Var$0 = $TV($EXPECT($L127, fail, 'Var "var"'), function($skip, $loc, $0, $1) {
4336
4426
  return { $loc, token: $1 };
4337
4427
  });
4338
4428
  function Var(state) {
@@ -4344,7 +4434,7 @@ var require_parser = __commonJS({
4344
4434
  return Var$0(state);
4345
4435
  }
4346
4436
  }
4347
- var Void$0 = $TS($S($EXPECT($L129, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4437
+ var Void$0 = $TS($S($EXPECT($L128, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4348
4438
  return { $loc, token: $1 };
4349
4439
  });
4350
4440
  function Void(state) {
@@ -4356,7 +4446,7 @@ var require_parser = __commonJS({
4356
4446
  return Void$0(state);
4357
4447
  }
4358
4448
  }
4359
- var When$0 = $TS($S($EXPECT($L130, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4449
+ var When$0 = $TS($S($EXPECT($L129, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4360
4450
  return { $loc, token: "case" };
4361
4451
  });
4362
4452
  function When(state) {
@@ -4368,6 +4458,18 @@ var require_parser = __commonJS({
4368
4458
  return When$0(state);
4369
4459
  }
4370
4460
  }
4461
+ var While$0 = $TS($S($EXPECT($L130, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4462
+ return { $loc, token: $1 };
4463
+ });
4464
+ function While(state) {
4465
+ if (state.verbose)
4466
+ console.log("ENTER:", "While");
4467
+ if (state.tokenize) {
4468
+ return $TOKEN("While", state, While$0(state));
4469
+ } else {
4470
+ return While$0(state);
4471
+ }
4472
+ }
4371
4473
  var Yield$0 = $TS($S($EXPECT($L131, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4372
4474
  return { $loc, token: $1 };
4373
4475
  });
@@ -4813,7 +4915,7 @@ var require_parser = __commonJS({
4813
4915
  }
4814
4916
  }
4815
4917
  var TypeUnaryOp$0 = $EXPECT($L142, fail, 'TypeUnaryOp "keyof"');
4816
- var TypeUnaryOp$1 = $EXPECT($L126, fail, 'TypeUnaryOp "typeof"');
4918
+ var TypeUnaryOp$1 = $EXPECT($L124, fail, 'TypeUnaryOp "typeof"');
4817
4919
  var TypeUnaryOp$2 = $EXPECT($L143, fail, 'TypeUnaryOp "infer"');
4818
4920
  function TypeUnaryOp(state) {
4819
4921
  if (state.tokenize) {
@@ -4904,7 +5006,7 @@ var require_parser = __commonJS({
4904
5006
  }
4905
5007
  }
4906
5008
  var TypeLiteral$0 = Literal;
4907
- var TypeLiteral$1 = $TV($EXPECT($L129, fail, 'TypeLiteral "void"'), function($skip, $loc, $0, $1) {
5009
+ var TypeLiteral$1 = $TV($EXPECT($L128, fail, 'TypeLiteral "void"'), function($skip, $loc, $0, $1) {
4908
5010
  return { $loc, token: "void" };
4909
5011
  });
4910
5012
  var TypeLiteral$2 = $TV($EXPECT($L144, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
@@ -5405,6 +5507,16 @@ var require_parser = __commonJS({
5405
5507
  insertReturn(block);
5406
5508
  return block;
5407
5509
  };
5510
+ module2.isWhitespaceOrEmpty = function(node) {
5511
+ if (!node)
5512
+ return true;
5513
+ if (!node.length)
5514
+ return true;
5515
+ if (typeof node === "string")
5516
+ return node.match(/^\s*$/);
5517
+ if (Array.isArray(node))
5518
+ return node.every(module2.isWhitespaceOrEmpty);
5519
+ };
5408
5520
  module2.expandChainedComparisons = function([first, binops]) {
5409
5521
  const relationalOps = ["==", "===", "!=", "!==", "<", "<=", ">", ">=", "in", "instanceof"];
5410
5522
  const lowerPrecedenceOps = ["??", "&&", "||", "&", "|", "^"];