@danielx/civet 0.5.48 → 0.5.50

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/browser.js CHANGED
@@ -762,6 +762,7 @@ ${input.slice(result.pos)}
762
762
  CoffeeSubstitutionStart,
763
763
  Colon,
764
764
  ConstructorShorthand,
765
+ Declare,
765
766
  Default,
766
767
  Delete,
767
768
  Do,
@@ -865,8 +866,9 @@ ${input.slice(result.pos)}
865
866
  IndentedJSXChildExpression,
866
867
  NestedJSXChildExpression,
867
868
  TypeDeclaration,
868
- TypeDeclarationModifier,
869
869
  TypeDeclarationRest,
870
+ TypeLexicalDeclaration,
871
+ TypeDeclarationBinding,
870
872
  InterfaceExtendsClause,
871
873
  InterfaceExtendsTarget,
872
874
  TypeKeyword,
@@ -876,6 +878,7 @@ ${input.slice(result.pos)}
876
878
  NestedInterfaceProperties,
877
879
  NestedInterfaceProperty,
878
880
  InterfaceProperty,
881
+ BasicInterfaceProperty,
879
882
  InterfacePropertyDelimiter,
880
883
  NamespaceBlock,
881
884
  NestedTypeDeclarations,
@@ -899,6 +902,9 @@ ${input.slice(result.pos)}
899
902
  NestedType,
900
903
  TypeConditional,
901
904
  TypeLiteral,
905
+ InlineInterfaceLiteral,
906
+ InlineBasicInterfaceProperty,
907
+ InlineInterfacePropertyDelimiter,
902
908
  TypeBinaryOp,
903
909
  FunctionType,
904
910
  TypeArguments,
@@ -1043,82 +1049,82 @@ ${input.slice(result.pos)}
1043
1049
  var $L83 = $L("continue");
1044
1050
  var $L84 = $L("debugger");
1045
1051
  var $L85 = $L("assert");
1046
- var $L86 = $L("default");
1047
- var $L87 = $L(":=");
1048
- var $L88 = $L(".=");
1049
- var $L89 = $L("/*");
1050
- var $L90 = $L("*/");
1051
- var $L91 = $L("\\");
1052
- var $L92 = $L("abstract");
1053
- var $L93 = $L("as");
1054
- var $L94 = $L("@");
1055
- var $L95 = $L("@@");
1056
- var $L96 = $L("async");
1057
- var $L97 = $L("await");
1058
- var $L98 = $L("`");
1059
- var $L99 = $L("by");
1060
- var $L100 = $L("case");
1061
- var $L101 = $L("catch");
1062
- var $L102 = $L("class");
1063
- var $L103 = $L("#{");
1064
- var $L104 = $L("delete");
1065
- var $L105 = $L("do");
1066
- var $L106 = $L("..");
1067
- var $L107 = $L("...");
1068
- var $L108 = $L("::");
1069
- var $L109 = $L('"');
1070
- var $L110 = $L("else");
1071
- var $L111 = $L("export");
1072
- var $L112 = $L("extends");
1073
- var $L113 = $L("for");
1074
- var $L114 = $L("from");
1075
- var $L115 = $L("function");
1076
- var $L116 = $L("get");
1077
- var $L117 = $L("set");
1078
- var $L118 = $L("if");
1079
- var $L119 = $L("let");
1080
- var $L120 = $L("const");
1081
- var $L121 = $L("loop");
1082
- var $L122 = $L("new");
1083
- var $L123 = $L("<");
1084
- var $L124 = $L("{");
1085
- var $L125 = $L("[");
1086
- var $L126 = $L("(");
1087
- var $L127 = $L("public");
1088
- var $L128 = $L("private");
1089
- var $L129 = $L("protected");
1090
- var $L130 = $L("|>");
1091
- var $L131 = $L("readonly");
1092
- var $L132 = $L("return");
1093
- var $L133 = $L("satisfies");
1094
- var $L134 = $L("'");
1095
- var $L135 = $L("static");
1096
- var $L136 = $L("${");
1097
- var $L137 = $L("switch");
1098
- var $L138 = $L("target");
1099
- var $L139 = $L("then");
1100
- var $L140 = $L("this");
1101
- var $L141 = $L("throw");
1102
- var $L142 = $L('"""');
1103
- var $L143 = $L("'''");
1104
- var $L144 = $L("///");
1105
- var $L145 = $L("```");
1106
- var $L146 = $L("try");
1107
- var $L147 = $L("typeof");
1108
- var $L148 = $L("unless");
1109
- var $L149 = $L("until");
1110
- var $L150 = $L("var");
1111
- var $L151 = $L("void");
1112
- var $L152 = $L("when");
1113
- var $L153 = $L("while");
1114
- var $L154 = $L("yield");
1115
- var $L155 = $L("/>");
1116
- var $L156 = $L("</");
1117
- var $L157 = $L("<>");
1118
- var $L158 = $L("</>");
1119
- var $L159 = $L("<!--");
1120
- var $L160 = $L("-->");
1121
- var $L161 = $L("declare");
1052
+ var $L86 = $L(":=");
1053
+ var $L87 = $L(".=");
1054
+ var $L88 = $L("/*");
1055
+ var $L89 = $L("*/");
1056
+ var $L90 = $L("\\");
1057
+ var $L91 = $L("abstract");
1058
+ var $L92 = $L("as");
1059
+ var $L93 = $L("@");
1060
+ var $L94 = $L("@@");
1061
+ var $L95 = $L("async");
1062
+ var $L96 = $L("await");
1063
+ var $L97 = $L("`");
1064
+ var $L98 = $L("by");
1065
+ var $L99 = $L("case");
1066
+ var $L100 = $L("catch");
1067
+ var $L101 = $L("class");
1068
+ var $L102 = $L("#{");
1069
+ var $L103 = $L("declare");
1070
+ var $L104 = $L("default");
1071
+ var $L105 = $L("delete");
1072
+ var $L106 = $L("do");
1073
+ var $L107 = $L("..");
1074
+ var $L108 = $L("...");
1075
+ var $L109 = $L("::");
1076
+ var $L110 = $L('"');
1077
+ var $L111 = $L("else");
1078
+ var $L112 = $L("export");
1079
+ var $L113 = $L("extends");
1080
+ var $L114 = $L("for");
1081
+ var $L115 = $L("from");
1082
+ var $L116 = $L("function");
1083
+ var $L117 = $L("get");
1084
+ var $L118 = $L("set");
1085
+ var $L119 = $L("if");
1086
+ var $L120 = $L("let");
1087
+ var $L121 = $L("const");
1088
+ var $L122 = $L("loop");
1089
+ var $L123 = $L("new");
1090
+ var $L124 = $L("<");
1091
+ var $L125 = $L("{");
1092
+ var $L126 = $L("[");
1093
+ var $L127 = $L("(");
1094
+ var $L128 = $L("public");
1095
+ var $L129 = $L("private");
1096
+ var $L130 = $L("protected");
1097
+ var $L131 = $L("|>");
1098
+ var $L132 = $L("readonly");
1099
+ var $L133 = $L("return");
1100
+ var $L134 = $L("satisfies");
1101
+ var $L135 = $L("'");
1102
+ var $L136 = $L("static");
1103
+ var $L137 = $L("${");
1104
+ var $L138 = $L("switch");
1105
+ var $L139 = $L("target");
1106
+ var $L140 = $L("then");
1107
+ var $L141 = $L("this");
1108
+ var $L142 = $L("throw");
1109
+ var $L143 = $L('"""');
1110
+ var $L144 = $L("'''");
1111
+ var $L145 = $L("///");
1112
+ var $L146 = $L("```");
1113
+ var $L147 = $L("try");
1114
+ var $L148 = $L("typeof");
1115
+ var $L149 = $L("unless");
1116
+ var $L150 = $L("until");
1117
+ var $L151 = $L("var");
1118
+ var $L152 = $L("void");
1119
+ var $L153 = $L("when");
1120
+ var $L154 = $L("while");
1121
+ var $L155 = $L("yield");
1122
+ var $L156 = $L("/>");
1123
+ var $L157 = $L("</");
1124
+ var $L158 = $L("<>");
1125
+ var $L159 = $L("</>");
1126
+ var $L160 = $L("<!--");
1127
+ var $L161 = $L("-->");
1122
1128
  var $L162 = $L("type");
1123
1129
  var $L163 = $L("interface");
1124
1130
  var $L164 = $L("namespace");
@@ -2924,7 +2930,9 @@ ${input.slice(result.pos)}
2924
2930
  return result;
2925
2931
  }
2926
2932
  }
2927
- var AccessModifier$0 = $TS($S($C(Public, Private, Protected), __), function($skip, $loc, $0, $1, $2) {
2933
+ var AccessModifier$0 = $TS($S($E($S($C(Public, Private, Protected), __)), $E($S(Readonly, __))), function($skip, $loc, $0, $1, $2) {
2934
+ if (!($1 || $2))
2935
+ return $skip;
2928
2936
  return {
2929
2937
  ts: true,
2930
2938
  children: $0
@@ -6587,17 +6595,27 @@ ${input.slice(result.pos)}
6587
6595
  return {
6588
6596
  $loc,
6589
6597
  token: "instanceof",
6590
- special: true
6598
+ special: true,
6599
+ negated: true
6591
6600
  };
6592
6601
  });
6593
6602
  var BinaryOpSymbol$29 = $TV($C($S($N(CoffeeOfEnabled), $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L68, fail, 'BinaryOpSymbol "of"'), NonIdContinue)), function($skip, $loc, $0, $1) {
6594
6603
  return {
6595
6604
  $loc,
6596
6605
  token: "in",
6606
+ special: true,
6607
+ negated: true
6608
+ };
6609
+ });
6610
+ var BinaryOpSymbol$30 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
6611
+ return {
6612
+ method: "includes",
6613
+ relational: true,
6614
+ reversed: true,
6597
6615
  special: true
6598
6616
  };
6599
6617
  });
6600
- var BinaryOpSymbol$30 = $TV($C($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue)), function($skip, $loc, $0, $1) {
6618
+ var BinaryOpSymbol$31 = $TS($S(CoffeeOfEnabled, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
6601
6619
  return {
6602
6620
  call: [module.getRef("indexOf"), ".call"],
6603
6621
  relational: true,
@@ -6606,7 +6624,16 @@ ${input.slice(result.pos)}
6606
6624
  special: true
6607
6625
  };
6608
6626
  });
6609
- var BinaryOpSymbol$31 = $TV($C($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue)), function($skip, $loc, $0, $1) {
6627
+ var BinaryOpSymbol$32 = $TS($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
6628
+ return {
6629
+ method: "includes",
6630
+ relational: true,
6631
+ reversed: true,
6632
+ special: true,
6633
+ negated: true
6634
+ };
6635
+ });
6636
+ var BinaryOpSymbol$33 = $TS($S(CoffeeOfEnabled, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
6610
6637
  return {
6611
6638
  call: [module.getRef("indexOf"), ".call"],
6612
6639
  relational: true,
@@ -6615,18 +6642,18 @@ ${input.slice(result.pos)}
6615
6642
  special: true
6616
6643
  };
6617
6644
  });
6618
- var BinaryOpSymbol$32 = $T($S($N(CoffeeNotEnabled), $EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue), function(value) {
6645
+ var BinaryOpSymbol$34 = $T($S($N(CoffeeNotEnabled), $EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L73, fail, 'BinaryOpSymbol "not"'), NonIdContinue), function(value) {
6619
6646
  return "!==";
6620
6647
  });
6621
- var BinaryOpSymbol$33 = $T($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue), function(value) {
6648
+ var BinaryOpSymbol$35 = $T($S($EXPECT($L75, fail, 'BinaryOpSymbol "is"'), NonIdContinue), function(value) {
6622
6649
  return "===";
6623
6650
  });
6624
- var BinaryOpSymbol$34 = $TS($S($EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
6651
+ var BinaryOpSymbol$36 = $TS($S($EXPECT($L74, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
6625
6652
  return $1;
6626
6653
  });
6627
- var BinaryOpSymbol$35 = $EXPECT($L76, fail, 'BinaryOpSymbol "&"');
6628
- var BinaryOpSymbol$36 = $EXPECT($L77, fail, 'BinaryOpSymbol "^"');
6629
- var BinaryOpSymbol$37 = $EXPECT($L78, fail, 'BinaryOpSymbol "|"');
6654
+ var BinaryOpSymbol$37 = $EXPECT($L76, fail, 'BinaryOpSymbol "&"');
6655
+ var BinaryOpSymbol$38 = $EXPECT($L77, fail, 'BinaryOpSymbol "^"');
6656
+ var BinaryOpSymbol$39 = $EXPECT($L78, fail, 'BinaryOpSymbol "|"');
6630
6657
  function BinaryOpSymbol(state) {
6631
6658
  let eventData;
6632
6659
  if (state.events) {
@@ -6638,12 +6665,12 @@ ${input.slice(result.pos)}
6638
6665
  }
6639
6666
  }
6640
6667
  if (state.tokenize) {
6641
- const result = $TOKEN("BinaryOpSymbol", state, BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state));
6668
+ const result = $TOKEN("BinaryOpSymbol", state, BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state) || BinaryOpSymbol$38(state) || BinaryOpSymbol$39(state));
6642
6669
  if (state.events)
6643
6670
  state.events.exit?.("BinaryOpSymbol", state, result, eventData);
6644
6671
  return result;
6645
6672
  } else {
6646
- const result = BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state);
6673
+ const result = BinaryOpSymbol$0(state) || BinaryOpSymbol$1(state) || BinaryOpSymbol$2(state) || BinaryOpSymbol$3(state) || BinaryOpSymbol$4(state) || BinaryOpSymbol$5(state) || BinaryOpSymbol$6(state) || BinaryOpSymbol$7(state) || BinaryOpSymbol$8(state) || BinaryOpSymbol$9(state) || BinaryOpSymbol$10(state) || BinaryOpSymbol$11(state) || BinaryOpSymbol$12(state) || BinaryOpSymbol$13(state) || BinaryOpSymbol$14(state) || BinaryOpSymbol$15(state) || BinaryOpSymbol$16(state) || BinaryOpSymbol$17(state) || BinaryOpSymbol$18(state) || BinaryOpSymbol$19(state) || BinaryOpSymbol$20(state) || BinaryOpSymbol$21(state) || BinaryOpSymbol$22(state) || BinaryOpSymbol$23(state) || BinaryOpSymbol$24(state) || BinaryOpSymbol$25(state) || BinaryOpSymbol$26(state) || BinaryOpSymbol$27(state) || BinaryOpSymbol$28(state) || BinaryOpSymbol$29(state) || BinaryOpSymbol$30(state) || BinaryOpSymbol$31(state) || BinaryOpSymbol$32(state) || BinaryOpSymbol$33(state) || BinaryOpSymbol$34(state) || BinaryOpSymbol$35(state) || BinaryOpSymbol$36(state) || BinaryOpSymbol$37(state) || BinaryOpSymbol$38(state) || BinaryOpSymbol$39(state);
6647
6674
  if (state.events)
6648
6675
  state.events.exit?.("BinaryOpSymbol", state, result, eventData);
6649
6676
  return result;
@@ -9191,7 +9218,7 @@ ${input.slice(result.pos)}
9191
9218
  return result;
9192
9219
  }
9193
9220
  }
9194
- var ExportDeclaration$0 = $S(Export, __, $EXPECT($L86, fail, 'ExportDeclaration "default"'), NonIdContinue, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression));
9221
+ var ExportDeclaration$0 = $S(Export, __, Default, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression));
9195
9222
  var ExportDeclaration$1 = $TS($S(Export, __, ExportFromClause, __, FromClause), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
9196
9223
  if (!$3.ts)
9197
9224
  return $0;
@@ -9353,7 +9380,7 @@ ${input.slice(result.pos)}
9353
9380
  return result;
9354
9381
  }
9355
9382
  }
9356
- var ImplicitExportSpecifier$0 = $S($N($EXPECT($L86, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), $C($Y($S(__, From)), ImplicitInlineObjectPropertyDelimiter));
9383
+ var ImplicitExportSpecifier$0 = $S($N(Default), ModuleExportName, $E($S(__, As, __, ModuleExportName)), $C($Y($S(__, From)), ImplicitInlineObjectPropertyDelimiter));
9357
9384
  function ImplicitExportSpecifier(state) {
9358
9385
  let eventData;
9359
9386
  if (state.events) {
@@ -9524,7 +9551,7 @@ ${input.slice(result.pos)}
9524
9551
  return result;
9525
9552
  }
9526
9553
  }
9527
- var ConstAssignment$0 = $TV($EXPECT($L87, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
9554
+ var ConstAssignment$0 = $TV($EXPECT($L86, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
9528
9555
  return { $loc, token: "=" };
9529
9556
  });
9530
9557
  function ConstAssignment(state) {
@@ -9549,7 +9576,7 @@ ${input.slice(result.pos)}
9549
9576
  return result;
9550
9577
  }
9551
9578
  }
9552
- var LetAssignment$0 = $TV($EXPECT($L88, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
9579
+ var LetAssignment$0 = $TV($EXPECT($L87, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
9553
9580
  return { $loc, token: "=" };
9554
9581
  });
9555
9582
  function LetAssignment(state) {
@@ -10723,7 +10750,7 @@ ${input.slice(result.pos)}
10723
10750
  return result;
10724
10751
  }
10725
10752
  }
10726
- var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L89, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L90, fail, 'JSMultiLineComment "*/"')), $EXPECT($R39, fail, "JSMultiLineComment /./"))), $EXPECT($L90, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
10753
+ var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L89, fail, 'JSMultiLineComment "*/"')), $EXPECT($R39, fail, "JSMultiLineComment /./"))), $EXPECT($L89, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
10727
10754
  return { $loc, token: $1 };
10728
10755
  });
10729
10756
  function JSMultiLineComment(state) {
@@ -10773,7 +10800,7 @@ ${input.slice(result.pos)}
10773
10800
  return result;
10774
10801
  }
10775
10802
  }
10776
- var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L90, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R39, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
10803
+ var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L89, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R39, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
10777
10804
  return { $loc, token: `/*${$2}*/` };
10778
10805
  });
10779
10806
  function CoffeeMultiLineComment(state) {
@@ -10821,7 +10848,7 @@ ${input.slice(result.pos)}
10821
10848
  return result;
10822
10849
  }
10823
10850
  }
10824
- var InlineComment$0 = $TV($TEXT($S($EXPECT($L89, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L90, fail, 'InlineComment "*/"')), $EXPECT($R42, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L90, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
10851
+ var InlineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L89, fail, 'InlineComment "*/"')), $EXPECT($R42, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L89, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
10825
10852
  return { $loc, token: $1 };
10826
10853
  });
10827
10854
  function InlineComment(state) {
@@ -10920,7 +10947,7 @@ ${input.slice(result.pos)}
10920
10947
  var NonNewlineWhitespace$0 = $TR($EXPECT($R43, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
10921
10948
  return { $loc, token: $0 };
10922
10949
  });
10923
- var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L91, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
10950
+ var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L90, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
10924
10951
  return "";
10925
10952
  });
10926
10953
  function NonNewlineWhitespace(state) {
@@ -11147,7 +11174,7 @@ ${input.slice(result.pos)}
11147
11174
  return result;
11148
11175
  }
11149
11176
  }
11150
- var Abstract$0 = $TV($TEXT($S($EXPECT($L92, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L6, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
11177
+ var Abstract$0 = $TV($TEXT($S($EXPECT($L91, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L6, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
11151
11178
  return { $loc, token: $1, ts: true };
11152
11179
  });
11153
11180
  function Abstract(state) {
@@ -11197,7 +11224,7 @@ ${input.slice(result.pos)}
11197
11224
  return result;
11198
11225
  }
11199
11226
  }
11200
- var As$0 = $TS($S($EXPECT($L93, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11227
+ var As$0 = $TS($S($EXPECT($L92, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11201
11228
  return { $loc, token: $1 };
11202
11229
  });
11203
11230
  function As(state) {
@@ -11222,7 +11249,7 @@ ${input.slice(result.pos)}
11222
11249
  return result;
11223
11250
  }
11224
11251
  }
11225
- var At$0 = $TV($EXPECT($L94, fail, 'At "@"'), function($skip, $loc, $0, $1) {
11252
+ var At$0 = $TV($EXPECT($L93, fail, 'At "@"'), function($skip, $loc, $0, $1) {
11226
11253
  return { $loc, token: $1 };
11227
11254
  });
11228
11255
  function At(state) {
@@ -11247,7 +11274,7 @@ ${input.slice(result.pos)}
11247
11274
  return result;
11248
11275
  }
11249
11276
  }
11250
- var AtAt$0 = $TV($EXPECT($L95, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
11277
+ var AtAt$0 = $TV($EXPECT($L94, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
11251
11278
  return { $loc, token: "@" };
11252
11279
  });
11253
11280
  function AtAt(state) {
@@ -11272,7 +11299,7 @@ ${input.slice(result.pos)}
11272
11299
  return result;
11273
11300
  }
11274
11301
  }
11275
- var Async$0 = $TS($S($EXPECT($L96, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11302
+ var Async$0 = $TS($S($EXPECT($L95, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11276
11303
  return { $loc, token: $1, type: "Async" };
11277
11304
  });
11278
11305
  function Async(state) {
@@ -11297,7 +11324,7 @@ ${input.slice(result.pos)}
11297
11324
  return result;
11298
11325
  }
11299
11326
  }
11300
- var Await$0 = $TS($S($EXPECT($L97, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11327
+ var Await$0 = $TS($S($EXPECT($L96, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11301
11328
  return { $loc, token: $1 };
11302
11329
  });
11303
11330
  function Await(state) {
@@ -11322,7 +11349,7 @@ ${input.slice(result.pos)}
11322
11349
  return result;
11323
11350
  }
11324
11351
  }
11325
- var Backtick$0 = $TV($EXPECT($L98, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
11352
+ var Backtick$0 = $TV($EXPECT($L97, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
11326
11353
  return { $loc, token: $1 };
11327
11354
  });
11328
11355
  function Backtick(state) {
@@ -11347,7 +11374,7 @@ ${input.slice(result.pos)}
11347
11374
  return result;
11348
11375
  }
11349
11376
  }
11350
- var By$0 = $TS($S($EXPECT($L99, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11377
+ var By$0 = $TS($S($EXPECT($L98, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11351
11378
  return { $loc, token: $1 };
11352
11379
  });
11353
11380
  function By(state) {
@@ -11372,7 +11399,7 @@ ${input.slice(result.pos)}
11372
11399
  return result;
11373
11400
  }
11374
11401
  }
11375
- var Case$0 = $TS($S($EXPECT($L100, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11402
+ var Case$0 = $TS($S($EXPECT($L99, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11376
11403
  return { $loc, token: $1 };
11377
11404
  });
11378
11405
  function Case(state) {
@@ -11397,7 +11424,7 @@ ${input.slice(result.pos)}
11397
11424
  return result;
11398
11425
  }
11399
11426
  }
11400
- var Catch$0 = $TS($S($EXPECT($L101, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11427
+ var Catch$0 = $TS($S($EXPECT($L100, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11401
11428
  return { $loc, token: $1 };
11402
11429
  });
11403
11430
  function Catch(state) {
@@ -11422,7 +11449,7 @@ ${input.slice(result.pos)}
11422
11449
  return result;
11423
11450
  }
11424
11451
  }
11425
- var Class$0 = $TS($S($EXPECT($L102, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11452
+ var Class$0 = $TS($S($EXPECT($L101, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11426
11453
  return { $loc, token: $1 };
11427
11454
  });
11428
11455
  function Class(state) {
@@ -11522,7 +11549,7 @@ ${input.slice(result.pos)}
11522
11549
  return result;
11523
11550
  }
11524
11551
  }
11525
- var CoffeeSubstitutionStart$0 = $TV($EXPECT($L103, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
11552
+ var CoffeeSubstitutionStart$0 = $TV($EXPECT($L102, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
11526
11553
  return { $loc, token: "${" };
11527
11554
  });
11528
11555
  function CoffeeSubstitutionStart(state) {
@@ -11572,7 +11599,7 @@ ${input.slice(result.pos)}
11572
11599
  return result;
11573
11600
  }
11574
11601
  }
11575
- var ConstructorShorthand$0 = $TV($EXPECT($L94, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
11602
+ var ConstructorShorthand$0 = $TV($EXPECT($L93, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
11576
11603
  return { $loc, token: "constructor" };
11577
11604
  });
11578
11605
  function ConstructorShorthand(state) {
@@ -11597,7 +11624,32 @@ ${input.slice(result.pos)}
11597
11624
  return result;
11598
11625
  }
11599
11626
  }
11600
- var Default$0 = $TS($S($EXPECT($L86, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11627
+ var Declare$0 = $TS($S($EXPECT($L103, fail, 'Declare "declare"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11628
+ return { $loc, token: $1 };
11629
+ });
11630
+ function Declare(state) {
11631
+ let eventData;
11632
+ if (state.events) {
11633
+ const result = state.events.enter?.("Declare", state);
11634
+ if (result) {
11635
+ if (result.cache)
11636
+ return result.cache;
11637
+ eventData = result.data;
11638
+ }
11639
+ }
11640
+ if (state.tokenize) {
11641
+ const result = $TOKEN("Declare", state, Declare$0(state));
11642
+ if (state.events)
11643
+ state.events.exit?.("Declare", state, result, eventData);
11644
+ return result;
11645
+ } else {
11646
+ const result = Declare$0(state);
11647
+ if (state.events)
11648
+ state.events.exit?.("Declare", state, result, eventData);
11649
+ return result;
11650
+ }
11651
+ }
11652
+ var Default$0 = $TS($S($EXPECT($L104, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11601
11653
  return { $loc, token: $1 };
11602
11654
  });
11603
11655
  function Default(state) {
@@ -11622,7 +11674,7 @@ ${input.slice(result.pos)}
11622
11674
  return result;
11623
11675
  }
11624
11676
  }
11625
- var Delete$0 = $TS($S($EXPECT($L104, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11677
+ var Delete$0 = $TS($S($EXPECT($L105, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11626
11678
  return { $loc, token: $1 };
11627
11679
  });
11628
11680
  function Delete(state) {
@@ -11647,7 +11699,7 @@ ${input.slice(result.pos)}
11647
11699
  return result;
11648
11700
  }
11649
11701
  }
11650
- var Do$0 = $TS($S($EXPECT($L105, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11702
+ var Do$0 = $TS($S($EXPECT($L106, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11651
11703
  return { $loc, token: $1 };
11652
11704
  });
11653
11705
  function Do(state) {
@@ -11697,7 +11749,7 @@ ${input.slice(result.pos)}
11697
11749
  return result;
11698
11750
  }
11699
11751
  }
11700
- var DotDot$0 = $TV($EXPECT($L106, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
11752
+ var DotDot$0 = $TV($EXPECT($L107, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
11701
11753
  return { $loc, token: $1 };
11702
11754
  });
11703
11755
  function DotDot(state) {
@@ -11722,7 +11774,7 @@ ${input.slice(result.pos)}
11722
11774
  return result;
11723
11775
  }
11724
11776
  }
11725
- var DotDotDot$0 = $TV($EXPECT($L107, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
11777
+ var DotDotDot$0 = $TV($EXPECT($L108, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
11726
11778
  return { $loc, token: $1 };
11727
11779
  });
11728
11780
  function DotDotDot(state) {
@@ -11747,7 +11799,7 @@ ${input.slice(result.pos)}
11747
11799
  return result;
11748
11800
  }
11749
11801
  }
11750
- var DoubleColon$0 = $TV($EXPECT($L108, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
11802
+ var DoubleColon$0 = $TV($EXPECT($L109, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
11751
11803
  return { $loc, token: $1 };
11752
11804
  });
11753
11805
  function DoubleColon(state) {
@@ -11772,7 +11824,7 @@ ${input.slice(result.pos)}
11772
11824
  return result;
11773
11825
  }
11774
11826
  }
11775
- var DoubleQuote$0 = $TV($EXPECT($L109, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
11827
+ var DoubleQuote$0 = $TV($EXPECT($L110, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
11776
11828
  return { $loc, token: $1 };
11777
11829
  });
11778
11830
  function DoubleQuote(state) {
@@ -11797,7 +11849,7 @@ ${input.slice(result.pos)}
11797
11849
  return result;
11798
11850
  }
11799
11851
  }
11800
- var Else$0 = $TS($S($EXPECT($L110, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11852
+ var Else$0 = $TS($S($EXPECT($L111, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11801
11853
  return { $loc, token: $1 };
11802
11854
  });
11803
11855
  function Else(state) {
@@ -11847,7 +11899,7 @@ ${input.slice(result.pos)}
11847
11899
  return result;
11848
11900
  }
11849
11901
  }
11850
- var Export$0 = $TS($S($EXPECT($L111, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11902
+ var Export$0 = $TS($S($EXPECT($L112, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11851
11903
  return { $loc, token: $1 };
11852
11904
  });
11853
11905
  function Export(state) {
@@ -11872,7 +11924,7 @@ ${input.slice(result.pos)}
11872
11924
  return result;
11873
11925
  }
11874
11926
  }
11875
- var Extends$0 = $TS($S($EXPECT($L112, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11927
+ var Extends$0 = $TS($S($EXPECT($L113, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11876
11928
  return { $loc, token: $1 };
11877
11929
  });
11878
11930
  function Extends(state) {
@@ -11897,7 +11949,7 @@ ${input.slice(result.pos)}
11897
11949
  return result;
11898
11950
  }
11899
11951
  }
11900
- var For$0 = $TS($S($EXPECT($L113, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11952
+ var For$0 = $TS($S($EXPECT($L114, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11901
11953
  return { $loc, token: $1 };
11902
11954
  });
11903
11955
  function For(state) {
@@ -11922,7 +11974,7 @@ ${input.slice(result.pos)}
11922
11974
  return result;
11923
11975
  }
11924
11976
  }
11925
- var From$0 = $TS($S($EXPECT($L114, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11977
+ var From$0 = $TS($S($EXPECT($L115, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11926
11978
  return { $loc, token: $1 };
11927
11979
  });
11928
11980
  function From(state) {
@@ -11947,7 +11999,7 @@ ${input.slice(result.pos)}
11947
11999
  return result;
11948
12000
  }
11949
12001
  }
11950
- var Function$0 = $TS($S($EXPECT($L115, fail, 'Function "function"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12002
+ var Function$0 = $TS($S($EXPECT($L116, fail, 'Function "function"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11951
12003
  return { $loc, token: $1 };
11952
12004
  });
11953
12005
  function Function(state) {
@@ -11972,7 +12024,7 @@ ${input.slice(result.pos)}
11972
12024
  return result;
11973
12025
  }
11974
12026
  }
11975
- var GetOrSet$0 = $TS($S($C($EXPECT($L116, fail, 'GetOrSet "get"'), $EXPECT($L117, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12027
+ var GetOrSet$0 = $TS($S($C($EXPECT($L117, fail, 'GetOrSet "get"'), $EXPECT($L118, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11976
12028
  return { $loc, token: $1, type: "GetOrSet" };
11977
12029
  });
11978
12030
  function GetOrSet(state) {
@@ -11997,7 +12049,7 @@ ${input.slice(result.pos)}
11997
12049
  return result;
11998
12050
  }
11999
12051
  }
12000
- var If$0 = $TV($TEXT($S($EXPECT($L118, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L6, fail, 'If " "')))), function($skip, $loc, $0, $1) {
12052
+ var If$0 = $TV($TEXT($S($EXPECT($L119, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L6, fail, 'If " "')))), function($skip, $loc, $0, $1) {
12001
12053
  return { $loc, token: $1 };
12002
12054
  });
12003
12055
  function If(state) {
@@ -12072,7 +12124,7 @@ ${input.slice(result.pos)}
12072
12124
  return result;
12073
12125
  }
12074
12126
  }
12075
- var LetOrConst$0 = $TS($S($C($EXPECT($L119, fail, 'LetOrConst "let"'), $EXPECT($L120, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12127
+ var LetOrConst$0 = $TS($S($C($EXPECT($L120, fail, 'LetOrConst "let"'), $EXPECT($L121, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12076
12128
  return { $loc, token: $1 };
12077
12129
  });
12078
12130
  function LetOrConst(state) {
@@ -12097,7 +12149,7 @@ ${input.slice(result.pos)}
12097
12149
  return result;
12098
12150
  }
12099
12151
  }
12100
- var Loop$0 = $TS($S($EXPECT($L121, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12152
+ var Loop$0 = $TS($S($EXPECT($L122, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12101
12153
  return { $loc, token: "while(true)" };
12102
12154
  });
12103
12155
  function Loop(state) {
@@ -12122,7 +12174,7 @@ ${input.slice(result.pos)}
12122
12174
  return result;
12123
12175
  }
12124
12176
  }
12125
- var New$0 = $TS($S($EXPECT($L122, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12177
+ var New$0 = $TS($S($EXPECT($L123, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12126
12178
  return { $loc, token: $1 };
12127
12179
  });
12128
12180
  function New(state) {
@@ -12197,7 +12249,7 @@ ${input.slice(result.pos)}
12197
12249
  return result;
12198
12250
  }
12199
12251
  }
12200
- var OpenAngleBracket$0 = $TV($EXPECT($L123, fail, 'OpenAngleBracket "<"'), function($skip, $loc, $0, $1) {
12252
+ var OpenAngleBracket$0 = $TV($EXPECT($L124, fail, 'OpenAngleBracket "<"'), function($skip, $loc, $0, $1) {
12201
12253
  return { $loc, token: $1 };
12202
12254
  });
12203
12255
  function OpenAngleBracket(state) {
@@ -12222,7 +12274,7 @@ ${input.slice(result.pos)}
12222
12274
  return result;
12223
12275
  }
12224
12276
  }
12225
- var OpenBrace$0 = $TV($EXPECT($L124, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
12277
+ var OpenBrace$0 = $TV($EXPECT($L125, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
12226
12278
  return { $loc, token: $1 };
12227
12279
  });
12228
12280
  function OpenBrace(state) {
@@ -12247,7 +12299,7 @@ ${input.slice(result.pos)}
12247
12299
  return result;
12248
12300
  }
12249
12301
  }
12250
- var OpenBracket$0 = $TV($EXPECT($L125, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
12302
+ var OpenBracket$0 = $TV($EXPECT($L126, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
12251
12303
  return { $loc, token: $1 };
12252
12304
  });
12253
12305
  function OpenBracket(state) {
@@ -12272,7 +12324,7 @@ ${input.slice(result.pos)}
12272
12324
  return result;
12273
12325
  }
12274
12326
  }
12275
- var OpenParen$0 = $TV($EXPECT($L126, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
12327
+ var OpenParen$0 = $TV($EXPECT($L127, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
12276
12328
  return { $loc, token: $1 };
12277
12329
  });
12278
12330
  function OpenParen(state) {
@@ -12297,7 +12349,7 @@ ${input.slice(result.pos)}
12297
12349
  return result;
12298
12350
  }
12299
12351
  }
12300
- var Public$0 = $TS($S($EXPECT($L127, fail, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12352
+ var Public$0 = $TS($S($EXPECT($L128, fail, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12301
12353
  return { $loc, token: $1 };
12302
12354
  });
12303
12355
  function Public(state) {
@@ -12322,7 +12374,7 @@ ${input.slice(result.pos)}
12322
12374
  return result;
12323
12375
  }
12324
12376
  }
12325
- var Private$0 = $TS($S($EXPECT($L128, fail, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12377
+ var Private$0 = $TS($S($EXPECT($L129, fail, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12326
12378
  return { $loc, token: $1 };
12327
12379
  });
12328
12380
  function Private(state) {
@@ -12347,7 +12399,7 @@ ${input.slice(result.pos)}
12347
12399
  return result;
12348
12400
  }
12349
12401
  }
12350
- var Protected$0 = $TS($S($EXPECT($L129, fail, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12402
+ var Protected$0 = $TS($S($EXPECT($L130, fail, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12351
12403
  return { $loc, token: $1 };
12352
12404
  });
12353
12405
  function Protected(state) {
@@ -12372,7 +12424,7 @@ ${input.slice(result.pos)}
12372
12424
  return result;
12373
12425
  }
12374
12426
  }
12375
- var Pipe$0 = $TV($EXPECT($L130, fail, 'Pipe "|>"'), function($skip, $loc, $0, $1) {
12427
+ var Pipe$0 = $TV($EXPECT($L131, fail, 'Pipe "|>"'), function($skip, $loc, $0, $1) {
12376
12428
  return { $loc, token: $1 };
12377
12429
  });
12378
12430
  function Pipe(state) {
@@ -12422,7 +12474,7 @@ ${input.slice(result.pos)}
12422
12474
  return result;
12423
12475
  }
12424
12476
  }
12425
- var Readonly$0 = $TS($S($EXPECT($L131, fail, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12477
+ var Readonly$0 = $TS($S($EXPECT($L132, fail, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12426
12478
  return { $loc, token: $1, ts: true };
12427
12479
  });
12428
12480
  function Readonly(state) {
@@ -12447,7 +12499,7 @@ ${input.slice(result.pos)}
12447
12499
  return result;
12448
12500
  }
12449
12501
  }
12450
- var Return$0 = $TS($S($EXPECT($L132, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12502
+ var Return$0 = $TS($S($EXPECT($L133, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12451
12503
  return { $loc, token: $1 };
12452
12504
  });
12453
12505
  function Return(state) {
@@ -12472,7 +12524,7 @@ ${input.slice(result.pos)}
12472
12524
  return result;
12473
12525
  }
12474
12526
  }
12475
- var Satisfies$0 = $TS($S($EXPECT($L133, fail, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12527
+ var Satisfies$0 = $TS($S($EXPECT($L134, fail, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12476
12528
  return { $loc, token: $1 };
12477
12529
  });
12478
12530
  function Satisfies(state) {
@@ -12522,7 +12574,7 @@ ${input.slice(result.pos)}
12522
12574
  return result;
12523
12575
  }
12524
12576
  }
12525
- var SingleQuote$0 = $TV($EXPECT($L134, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
12577
+ var SingleQuote$0 = $TV($EXPECT($L135, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
12526
12578
  return { $loc, token: $1 };
12527
12579
  });
12528
12580
  function SingleQuote(state) {
@@ -12572,10 +12624,10 @@ ${input.slice(result.pos)}
12572
12624
  return result;
12573
12625
  }
12574
12626
  }
12575
- var Static$0 = $TS($S($EXPECT($L135, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12627
+ var Static$0 = $TS($S($EXPECT($L136, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12576
12628
  return { $loc, token: $1 };
12577
12629
  });
12578
- var Static$1 = $TS($S($EXPECT($L94, fail, 'Static "@"'), $N($C($EXPECT($L126, fail, 'Static "("'), $EXPECT($L94, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
12630
+ var Static$1 = $TS($S($EXPECT($L93, fail, 'Static "@"'), $N($C($EXPECT($L127, fail, 'Static "("'), $EXPECT($L93, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
12579
12631
  return { $loc, token: "static " };
12580
12632
  });
12581
12633
  function Static(state) {
@@ -12600,7 +12652,7 @@ ${input.slice(result.pos)}
12600
12652
  return result;
12601
12653
  }
12602
12654
  }
12603
- var SubstitutionStart$0 = $TV($EXPECT($L136, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
12655
+ var SubstitutionStart$0 = $TV($EXPECT($L137, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
12604
12656
  return { $loc, token: $1 };
12605
12657
  });
12606
12658
  function SubstitutionStart(state) {
@@ -12625,7 +12677,7 @@ ${input.slice(result.pos)}
12625
12677
  return result;
12626
12678
  }
12627
12679
  }
12628
- var Switch$0 = $TS($S($EXPECT($L137, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12680
+ var Switch$0 = $TS($S($EXPECT($L138, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12629
12681
  return { $loc, token: $1 };
12630
12682
  });
12631
12683
  function Switch(state) {
@@ -12650,7 +12702,7 @@ ${input.slice(result.pos)}
12650
12702
  return result;
12651
12703
  }
12652
12704
  }
12653
- var Target$0 = $TS($S($EXPECT($L138, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12705
+ var Target$0 = $TS($S($EXPECT($L139, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12654
12706
  return { $loc, token: $1 };
12655
12707
  });
12656
12708
  function Target(state) {
@@ -12675,7 +12727,7 @@ ${input.slice(result.pos)}
12675
12727
  return result;
12676
12728
  }
12677
12729
  }
12678
- var Then$0 = $TS($S(__, $EXPECT($L139, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
12730
+ var Then$0 = $TS($S(__, $EXPECT($L140, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
12679
12731
  return { $loc, token: "" };
12680
12732
  });
12681
12733
  function Then(state) {
@@ -12700,7 +12752,7 @@ ${input.slice(result.pos)}
12700
12752
  return result;
12701
12753
  }
12702
12754
  }
12703
- var This$0 = $TS($S($EXPECT($L140, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12755
+ var This$0 = $TS($S($EXPECT($L141, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12704
12756
  return { $loc, token: $1 };
12705
12757
  });
12706
12758
  function This(state) {
@@ -12725,7 +12777,7 @@ ${input.slice(result.pos)}
12725
12777
  return result;
12726
12778
  }
12727
12779
  }
12728
- var Throw$0 = $TS($S($EXPECT($L141, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12780
+ var Throw$0 = $TS($S($EXPECT($L142, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12729
12781
  return { $loc, token: $1 };
12730
12782
  });
12731
12783
  function Throw(state) {
@@ -12750,7 +12802,7 @@ ${input.slice(result.pos)}
12750
12802
  return result;
12751
12803
  }
12752
12804
  }
12753
- var TripleDoubleQuote$0 = $TV($EXPECT($L142, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
12805
+ var TripleDoubleQuote$0 = $TV($EXPECT($L143, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
12754
12806
  return { $loc, token: "`" };
12755
12807
  });
12756
12808
  function TripleDoubleQuote(state) {
@@ -12775,7 +12827,7 @@ ${input.slice(result.pos)}
12775
12827
  return result;
12776
12828
  }
12777
12829
  }
12778
- var TripleSingleQuote$0 = $TV($EXPECT($L143, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
12830
+ var TripleSingleQuote$0 = $TV($EXPECT($L144, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
12779
12831
  return { $loc, token: "`" };
12780
12832
  });
12781
12833
  function TripleSingleQuote(state) {
@@ -12800,7 +12852,7 @@ ${input.slice(result.pos)}
12800
12852
  return result;
12801
12853
  }
12802
12854
  }
12803
- var TripleSlash$0 = $TV($EXPECT($L144, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
12855
+ var TripleSlash$0 = $TV($EXPECT($L145, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
12804
12856
  return { $loc, token: "/" };
12805
12857
  });
12806
12858
  function TripleSlash(state) {
@@ -12825,7 +12877,7 @@ ${input.slice(result.pos)}
12825
12877
  return result;
12826
12878
  }
12827
12879
  }
12828
- var TripleTick$0 = $TV($EXPECT($L145, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
12880
+ var TripleTick$0 = $TV($EXPECT($L146, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
12829
12881
  return { $loc, token: "`" };
12830
12882
  });
12831
12883
  function TripleTick(state) {
@@ -12850,7 +12902,7 @@ ${input.slice(result.pos)}
12850
12902
  return result;
12851
12903
  }
12852
12904
  }
12853
- var Try$0 = $TS($S($EXPECT($L146, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12905
+ var Try$0 = $TS($S($EXPECT($L147, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12854
12906
  return { $loc, token: $1 };
12855
12907
  });
12856
12908
  function Try(state) {
@@ -12875,7 +12927,7 @@ ${input.slice(result.pos)}
12875
12927
  return result;
12876
12928
  }
12877
12929
  }
12878
- var Typeof$0 = $TS($S($EXPECT($L147, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12930
+ var Typeof$0 = $TS($S($EXPECT($L148, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12879
12931
  return { $loc, token: $1 };
12880
12932
  });
12881
12933
  function Typeof(state) {
@@ -12900,7 +12952,7 @@ ${input.slice(result.pos)}
12900
12952
  return result;
12901
12953
  }
12902
12954
  }
12903
- var Unless$0 = $TS($S($EXPECT($L148, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12955
+ var Unless$0 = $TS($S($EXPECT($L149, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12904
12956
  return { $loc, token: $1 };
12905
12957
  });
12906
12958
  function Unless(state) {
@@ -12925,7 +12977,7 @@ ${input.slice(result.pos)}
12925
12977
  return result;
12926
12978
  }
12927
12979
  }
12928
- var Until$0 = $TS($S($EXPECT($L149, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12980
+ var Until$0 = $TS($S($EXPECT($L150, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12929
12981
  return { $loc, token: $1 };
12930
12982
  });
12931
12983
  function Until(state) {
@@ -12950,7 +13002,7 @@ ${input.slice(result.pos)}
12950
13002
  return result;
12951
13003
  }
12952
13004
  }
12953
- var Var$0 = $TS($S($EXPECT($L150, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13005
+ var Var$0 = $TS($S($EXPECT($L151, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12954
13006
  return { $loc, token: $1 };
12955
13007
  });
12956
13008
  function Var(state) {
@@ -12975,7 +13027,7 @@ ${input.slice(result.pos)}
12975
13027
  return result;
12976
13028
  }
12977
13029
  }
12978
- var Void$0 = $TS($S($EXPECT($L151, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13030
+ var Void$0 = $TS($S($EXPECT($L152, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12979
13031
  return { $loc, token: $1 };
12980
13032
  });
12981
13033
  function Void(state) {
@@ -13000,7 +13052,7 @@ ${input.slice(result.pos)}
13000
13052
  return result;
13001
13053
  }
13002
13054
  }
13003
- var When$0 = $TS($S($EXPECT($L152, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13055
+ var When$0 = $TS($S($EXPECT($L153, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13004
13056
  return { $loc, token: "case" };
13005
13057
  });
13006
13058
  function When(state) {
@@ -13025,7 +13077,7 @@ ${input.slice(result.pos)}
13025
13077
  return result;
13026
13078
  }
13027
13079
  }
13028
- var While$0 = $TS($S($EXPECT($L153, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13080
+ var While$0 = $TS($S($EXPECT($L154, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13029
13081
  return { $loc, token: $1 };
13030
13082
  });
13031
13083
  function While(state) {
@@ -13050,7 +13102,7 @@ ${input.slice(result.pos)}
13050
13102
  return result;
13051
13103
  }
13052
13104
  }
13053
- var Yield$0 = $TS($S($EXPECT($L154, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13105
+ var Yield$0 = $TS($S($EXPECT($L155, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13054
13106
  return { $loc, token: $1 };
13055
13107
  });
13056
13108
  function Yield(state) {
@@ -13196,7 +13248,7 @@ ${input.slice(result.pos)}
13196
13248
  return result;
13197
13249
  }
13198
13250
  }
13199
- var JSXSelfClosingElement$0 = $TS($S($EXPECT($L123, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L155, fail, 'JSXSelfClosingElement "/>"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
13251
+ var JSXSelfClosingElement$0 = $TS($S($EXPECT($L124, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L156, fail, 'JSXSelfClosingElement "/>"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
13200
13252
  return { type: "JSXElement", children: $0, tag: $2 };
13201
13253
  });
13202
13254
  function JSXSelfClosingElement(state) {
@@ -13247,7 +13299,7 @@ ${input.slice(result.pos)}
13247
13299
  return result;
13248
13300
  }
13249
13301
  }
13250
- var JSXOpeningElement$0 = $S($EXPECT($L123, fail, 'JSXOpeningElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L27, fail, 'JSXOpeningElement ">"'));
13302
+ var JSXOpeningElement$0 = $S($EXPECT($L124, fail, 'JSXOpeningElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L27, fail, 'JSXOpeningElement ">"'));
13251
13303
  function JSXOpeningElement(state) {
13252
13304
  let eventData;
13253
13305
  if (state.events) {
@@ -13299,7 +13351,7 @@ ${input.slice(result.pos)}
13299
13351
  return result;
13300
13352
  }
13301
13353
  }
13302
- var JSXClosingElement$0 = $S($EXPECT($L156, fail, 'JSXClosingElement "</"'), $E(Whitespace), $TEXT(JSXElementName), $E(Whitespace), $EXPECT($L27, fail, 'JSXClosingElement ">"'));
13354
+ var JSXClosingElement$0 = $S($EXPECT($L157, fail, 'JSXClosingElement "</"'), $E(Whitespace), $TEXT(JSXElementName), $E(Whitespace), $EXPECT($L27, fail, 'JSXClosingElement ">"'));
13303
13355
  function JSXClosingElement(state) {
13304
13356
  let eventData;
13305
13357
  if (state.events) {
@@ -13338,7 +13390,7 @@ ${input.slice(result.pos)}
13338
13390
  ];
13339
13391
  return { type: "JSXFragment", children: parts, jsxChildren: children.jsxChildren };
13340
13392
  });
13341
- var JSXFragment$1 = $TS($S(CoffeeJSXEnabled, $EXPECT($L157, fail, 'JSXFragment "<>"'), $E(JSXChildren), $E(Whitespace), JSXClosingFragment), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
13393
+ var JSXFragment$1 = $TS($S(CoffeeJSXEnabled, $EXPECT($L158, fail, 'JSXFragment "<>"'), $E(JSXChildren), $E(Whitespace), JSXClosingFragment), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
13342
13394
  var children = $3;
13343
13395
  $0 = $0.slice(1);
13344
13396
  return {
@@ -13369,7 +13421,7 @@ ${input.slice(result.pos)}
13369
13421
  return result;
13370
13422
  }
13371
13423
  }
13372
- var PushJSXOpeningFragment$0 = $TV($EXPECT($L157, fail, 'PushJSXOpeningFragment "<>"'), function($skip, $loc, $0, $1) {
13424
+ var PushJSXOpeningFragment$0 = $TV($EXPECT($L158, fail, 'PushJSXOpeningFragment "<>"'), function($skip, $loc, $0, $1) {
13373
13425
  module.JSXTagStack.push("");
13374
13426
  return $1;
13375
13427
  });
@@ -13423,7 +13475,7 @@ ${input.slice(result.pos)}
13423
13475
  return result;
13424
13476
  }
13425
13477
  }
13426
- var JSXClosingFragment$0 = $EXPECT($L158, fail, 'JSXClosingFragment "</>"');
13478
+ var JSXClosingFragment$0 = $EXPECT($L159, fail, 'JSXClosingFragment "</>"');
13427
13479
  function JSXClosingFragment(state) {
13428
13480
  let eventData;
13429
13481
  if (state.events) {
@@ -14300,7 +14352,7 @@ ${input.slice(result.pos)}
14300
14352
  return result;
14301
14353
  }
14302
14354
  }
14303
- var JSXComment$0 = $TS($S($EXPECT($L159, fail, 'JSXComment "<!--"'), JSXCommentContent, $EXPECT($L160, fail, 'JSXComment "-->"')), function($skip, $loc, $0, $1, $2, $3) {
14355
+ var JSXComment$0 = $TS($S($EXPECT($L160, fail, 'JSXComment "<!--"'), JSXCommentContent, $EXPECT($L161, fail, 'JSXComment "-->"')), function($skip, $loc, $0, $1, $2, $3) {
14304
14356
  return ["{/*", $2, "*/}"];
14305
14357
  });
14306
14358
  function JSXComment(state) {
@@ -14452,7 +14504,10 @@ ${input.slice(result.pos)}
14452
14504
  return result;
14453
14505
  }
14454
14506
  }
14455
- var TypeDeclaration$0 = $T($S($Q($S(TypeDeclarationModifier, $Q(TrailingComment))), TypeDeclarationRest), function(value) {
14507
+ var TypeDeclaration$0 = $T($S($E($S(Export, $E(_))), $S(Declare, $E(_)), TypeLexicalDeclaration), function(value) {
14508
+ return { "ts": true, "children": value };
14509
+ });
14510
+ var TypeDeclaration$1 = $T($S($E($S(Export, $E(_))), $E($S(Declare, $E(_))), TypeDeclarationRest), function(value) {
14456
14511
  return { "ts": true, "children": value };
14457
14512
  });
14458
14513
  function TypeDeclaration(state) {
@@ -14466,23 +14521,48 @@ ${input.slice(result.pos)}
14466
14521
  }
14467
14522
  }
14468
14523
  if (state.tokenize) {
14469
- const result = $TOKEN("TypeDeclaration", state, TypeDeclaration$0(state));
14524
+ const result = $TOKEN("TypeDeclaration", state, TypeDeclaration$0(state) || TypeDeclaration$1(state));
14470
14525
  if (state.events)
14471
14526
  state.events.exit?.("TypeDeclaration", state, result, eventData);
14472
14527
  return result;
14473
14528
  } else {
14474
- const result = TypeDeclaration$0(state);
14529
+ const result = TypeDeclaration$0(state) || TypeDeclaration$1(state);
14475
14530
  if (state.events)
14476
14531
  state.events.exit?.("TypeDeclaration", state, result, eventData);
14477
14532
  return result;
14478
14533
  }
14479
14534
  }
14480
- var TypeDeclarationModifier$0 = $S($EXPECT($L161, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
14481
- var TypeDeclarationModifier$1 = Export;
14482
- function TypeDeclarationModifier(state) {
14535
+ var TypeDeclarationRest$0 = $S(TypeKeyword, $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, Equals, $C($S($E(_), Type), $S(__, Type)));
14536
+ var TypeDeclarationRest$1 = $S(Interface, $Q(TrailingComment), IdentifierName, $E(TypeParameters), $E(InterfaceExtendsClause), InterfaceBlock);
14537
+ var TypeDeclarationRest$2 = $S(Namespace, $Q(TrailingComment), IdentifierName, NamespaceBlock);
14538
+ var TypeDeclarationRest$3 = FunctionSignature;
14539
+ function TypeDeclarationRest(state) {
14540
+ let eventData;
14541
+ if (state.events) {
14542
+ const result = state.events.enter?.("TypeDeclarationRest", state);
14543
+ if (result) {
14544
+ if (result.cache)
14545
+ return result.cache;
14546
+ eventData = result.data;
14547
+ }
14548
+ }
14549
+ if (state.tokenize) {
14550
+ const result = $TOKEN("TypeDeclarationRest", state, TypeDeclarationRest$0(state) || TypeDeclarationRest$1(state) || TypeDeclarationRest$2(state) || TypeDeclarationRest$3(state));
14551
+ if (state.events)
14552
+ state.events.exit?.("TypeDeclarationRest", state, result, eventData);
14553
+ return result;
14554
+ } else {
14555
+ const result = TypeDeclarationRest$0(state) || TypeDeclarationRest$1(state) || TypeDeclarationRest$2(state) || TypeDeclarationRest$3(state);
14556
+ if (state.events)
14557
+ state.events.exit?.("TypeDeclarationRest", state, result, eventData);
14558
+ return result;
14559
+ }
14560
+ }
14561
+ var TypeLexicalDeclaration$0 = $S(__, $N(Namespace), LetOrConst, TypeDeclarationBinding, $Q($S(CommaDelimiter, __, TypeDeclarationBinding)));
14562
+ function TypeLexicalDeclaration(state) {
14483
14563
  let eventData;
14484
14564
  if (state.events) {
14485
- const result = state.events.enter?.("TypeDeclarationModifier", state);
14565
+ const result = state.events.enter?.("TypeLexicalDeclaration", state);
14486
14566
  if (result) {
14487
14567
  if (result.cache)
14488
14568
  return result.cache;
@@ -14490,25 +14570,22 @@ ${input.slice(result.pos)}
14490
14570
  }
14491
14571
  }
14492
14572
  if (state.tokenize) {
14493
- const result = $TOKEN("TypeDeclarationModifier", state, TypeDeclarationModifier$0(state) || TypeDeclarationModifier$1(state));
14573
+ const result = $TOKEN("TypeLexicalDeclaration", state, TypeLexicalDeclaration$0(state));
14494
14574
  if (state.events)
14495
- state.events.exit?.("TypeDeclarationModifier", state, result, eventData);
14575
+ state.events.exit?.("TypeLexicalDeclaration", state, result, eventData);
14496
14576
  return result;
14497
14577
  } else {
14498
- const result = TypeDeclarationModifier$0(state) || TypeDeclarationModifier$1(state);
14578
+ const result = TypeLexicalDeclaration$0(state);
14499
14579
  if (state.events)
14500
- state.events.exit?.("TypeDeclarationModifier", state, result, eventData);
14580
+ state.events.exit?.("TypeLexicalDeclaration", state, result, eventData);
14501
14581
  return result;
14502
14582
  }
14503
14583
  }
14504
- var TypeDeclarationRest$0 = $S(TypeKeyword, $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, Equals, __, Type);
14505
- var TypeDeclarationRest$1 = $S(Interface, $Q(TrailingComment), IdentifierName, $E(TypeParameters), $E(InterfaceExtendsClause), InterfaceBlock);
14506
- var TypeDeclarationRest$2 = $S(Namespace, $Q(TrailingComment), IdentifierName, NamespaceBlock);
14507
- var TypeDeclarationRest$3 = FunctionSignature;
14508
- function TypeDeclarationRest(state) {
14584
+ var TypeDeclarationBinding$0 = $S($C(BindingPattern, BindingIdentifier), $E(TypeSuffix));
14585
+ function TypeDeclarationBinding(state) {
14509
14586
  let eventData;
14510
14587
  if (state.events) {
14511
- const result = state.events.enter?.("TypeDeclarationRest", state);
14588
+ const result = state.events.enter?.("TypeDeclarationBinding", state);
14512
14589
  if (result) {
14513
14590
  if (result.cache)
14514
14591
  return result.cache;
@@ -14516,14 +14593,14 @@ ${input.slice(result.pos)}
14516
14593
  }
14517
14594
  }
14518
14595
  if (state.tokenize) {
14519
- const result = $TOKEN("TypeDeclarationRest", state, TypeDeclarationRest$0(state) || TypeDeclarationRest$1(state) || TypeDeclarationRest$2(state) || TypeDeclarationRest$3(state));
14596
+ const result = $TOKEN("TypeDeclarationBinding", state, TypeDeclarationBinding$0(state));
14520
14597
  if (state.events)
14521
- state.events.exit?.("TypeDeclarationRest", state, result, eventData);
14598
+ state.events.exit?.("TypeDeclarationBinding", state, result, eventData);
14522
14599
  return result;
14523
14600
  } else {
14524
- const result = TypeDeclarationRest$0(state) || TypeDeclarationRest$1(state) || TypeDeclarationRest$2(state) || TypeDeclarationRest$3(state);
14601
+ const result = TypeDeclarationBinding$0(state);
14525
14602
  if (state.events)
14526
- state.events.exit?.("TypeDeclarationRest", state, result, eventData);
14603
+ state.events.exit?.("TypeDeclarationBinding", state, result, eventData);
14527
14604
  return result;
14528
14605
  }
14529
14606
  }
@@ -14718,7 +14795,7 @@ ${input.slice(result.pos)}
14718
14795
  return result;
14719
14796
  }
14720
14797
  }
14721
- var InterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), TypeSuffix, InterfacePropertyDelimiter);
14798
+ var InterfaceProperty$0 = BasicInterfaceProperty;
14722
14799
  var InterfaceProperty$1 = $S(NonEmptyParameters, TypeSuffix, InterfacePropertyDelimiter);
14723
14800
  var InterfaceProperty$2 = $S(MethodSignature, InterfacePropertyDelimiter);
14724
14801
  function InterfaceProperty(state) {
@@ -14743,6 +14820,29 @@ ${input.slice(result.pos)}
14743
14820
  return result;
14744
14821
  }
14745
14822
  }
14823
+ var BasicInterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), TypeSuffix, InterfacePropertyDelimiter);
14824
+ function BasicInterfaceProperty(state) {
14825
+ let eventData;
14826
+ if (state.events) {
14827
+ const result = state.events.enter?.("BasicInterfaceProperty", state);
14828
+ if (result) {
14829
+ if (result.cache)
14830
+ return result.cache;
14831
+ eventData = result.data;
14832
+ }
14833
+ }
14834
+ if (state.tokenize) {
14835
+ const result = $TOKEN("BasicInterfaceProperty", state, BasicInterfaceProperty$0(state));
14836
+ if (state.events)
14837
+ state.events.exit?.("BasicInterfaceProperty", state, result, eventData);
14838
+ return result;
14839
+ } else {
14840
+ const result = BasicInterfaceProperty$0(state);
14841
+ if (state.events)
14842
+ state.events.exit?.("BasicInterfaceProperty", state, result, eventData);
14843
+ return result;
14844
+ }
14845
+ }
14746
14846
  var InterfacePropertyDelimiter$0 = $S($Q(_), $C(Semicolon, Comma));
14747
14847
  var InterfacePropertyDelimiter$1 = $Y($S(__, CloseBrace));
14748
14848
  var InterfacePropertyDelimiter$2 = $Y(EOS);
@@ -14844,7 +14944,7 @@ ${input.slice(result.pos)}
14844
14944
  return result;
14845
14945
  }
14846
14946
  }
14847
- var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R50, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L131, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R51, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
14947
+ var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R50, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L132, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R51, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
14848
14948
  function TypeIndexSignature(state) {
14849
14949
  let eventData;
14850
14950
  if (state.events) {
@@ -15076,9 +15176,9 @@ ${input.slice(result.pos)}
15076
15176
  }
15077
15177
  }
15078
15178
  var TypeUnaryOp$0 = $S($EXPECT($L166, fail, 'TypeUnaryOp "keyof"'), NonIdContinue);
15079
- var TypeUnaryOp$1 = $S($EXPECT($L147, fail, 'TypeUnaryOp "typeof"'), NonIdContinue);
15179
+ var TypeUnaryOp$1 = $S($EXPECT($L148, fail, 'TypeUnaryOp "typeof"'), NonIdContinue);
15080
15180
  var TypeUnaryOp$2 = $S($EXPECT($L167, fail, 'TypeUnaryOp "infer"'), NonIdContinue);
15081
- var TypeUnaryOp$3 = $S($EXPECT($L131, fail, 'TypeUnaryOp "readonly"'), NonIdContinue);
15181
+ var TypeUnaryOp$3 = $S($EXPECT($L132, fail, 'TypeUnaryOp "readonly"'), NonIdContinue);
15082
15182
  function TypeUnaryOp(state) {
15083
15183
  let eventData;
15084
15184
  if (state.events) {
@@ -15125,12 +15225,13 @@ ${input.slice(result.pos)}
15125
15225
  }
15126
15226
  }
15127
15227
  var TypePrimary$0 = InterfaceBlock;
15128
- var TypePrimary$1 = $S(__, OpenParen, Type, __, CloseParen);
15129
- var TypePrimary$2 = $S($E(_), TypeTuple);
15130
- var TypePrimary$3 = $S($E(_), ImportType);
15131
- var TypePrimary$4 = $S($E(_), FunctionType);
15228
+ var TypePrimary$1 = $S($E(_), FunctionType);
15229
+ var TypePrimary$2 = $S($E(_), InlineInterfaceLiteral);
15230
+ var TypePrimary$3 = $S($E(_), TypeTuple);
15231
+ var TypePrimary$4 = $S($E(_), ImportType);
15132
15232
  var TypePrimary$5 = $S($E(_), TypeLiteral);
15133
15233
  var TypePrimary$6 = $S($E(_), IdentifierName, $Q($S(Dot, IdentifierName)), $E(TypeArguments));
15234
+ var TypePrimary$7 = $S(__, OpenParen, Type, __, CloseParen);
15134
15235
  function TypePrimary(state) {
15135
15236
  let eventData;
15136
15237
  if (state.events) {
@@ -15142,12 +15243,12 @@ ${input.slice(result.pos)}
15142
15243
  }
15143
15244
  }
15144
15245
  if (state.tokenize) {
15145
- const result = $TOKEN("TypePrimary", state, TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state));
15246
+ const result = $TOKEN("TypePrimary", state, TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state) || TypePrimary$7(state));
15146
15247
  if (state.events)
15147
15248
  state.events.exit?.("TypePrimary", state, result, eventData);
15148
15249
  return result;
15149
15250
  } else {
15150
- const result = TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state);
15251
+ const result = TypePrimary$0(state) || TypePrimary$1(state) || TypePrimary$2(state) || TypePrimary$3(state) || TypePrimary$4(state) || TypePrimary$5(state) || TypePrimary$6(state) || TypePrimary$7(state);
15151
15252
  if (state.events)
15152
15253
  state.events.exit?.("TypePrimary", state, result, eventData);
15153
15254
  return result;
@@ -15275,7 +15376,7 @@ ${input.slice(result.pos)}
15275
15376
  return result;
15276
15377
  }
15277
15378
  }
15278
- var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L112, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
15379
+ var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L113, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
15279
15380
  if ($2)
15280
15381
  return $0;
15281
15382
  return $1;
@@ -15304,7 +15405,7 @@ ${input.slice(result.pos)}
15304
15405
  }
15305
15406
  var TypeLiteral$0 = Literal;
15306
15407
  var TypeLiteral$1 = TemplateLiteral;
15307
- var TypeLiteral$2 = $TS($S($EXPECT($L151, fail, 'TypeLiteral "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15408
+ var TypeLiteral$2 = $TS($S($EXPECT($L152, fail, 'TypeLiteral "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15308
15409
  return { $loc, token: "void" };
15309
15410
  });
15310
15411
  var TypeLiteral$3 = $TV($EXPECT($L168, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
@@ -15332,6 +15433,80 @@ ${input.slice(result.pos)}
15332
15433
  return result;
15333
15434
  }
15334
15435
  }
15436
+ var InlineInterfaceLiteral$0 = $S(InsertInlineOpenBrace, InlineBasicInterfaceProperty, $Q($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertCloseBrace);
15437
+ function InlineInterfaceLiteral(state) {
15438
+ let eventData;
15439
+ if (state.events) {
15440
+ const result = state.events.enter?.("InlineInterfaceLiteral", state);
15441
+ if (result) {
15442
+ if (result.cache)
15443
+ return result.cache;
15444
+ eventData = result.data;
15445
+ }
15446
+ }
15447
+ if (state.tokenize) {
15448
+ const result = $TOKEN("InlineInterfaceLiteral", state, InlineInterfaceLiteral$0(state));
15449
+ if (state.events)
15450
+ state.events.exit?.("InlineInterfaceLiteral", state, result, eventData);
15451
+ return result;
15452
+ } else {
15453
+ const result = InlineInterfaceLiteral$0(state);
15454
+ if (state.events)
15455
+ state.events.exit?.("InlineInterfaceLiteral", state, result, eventData);
15456
+ return result;
15457
+ }
15458
+ }
15459
+ var InlineBasicInterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), $E(QuestionMark), Colon, Type, InlineInterfacePropertyDelimiter);
15460
+ function InlineBasicInterfaceProperty(state) {
15461
+ let eventData;
15462
+ if (state.events) {
15463
+ const result = state.events.enter?.("InlineBasicInterfaceProperty", state);
15464
+ if (result) {
15465
+ if (result.cache)
15466
+ return result.cache;
15467
+ eventData = result.data;
15468
+ }
15469
+ }
15470
+ if (state.tokenize) {
15471
+ const result = $TOKEN("InlineBasicInterfaceProperty", state, InlineBasicInterfaceProperty$0(state));
15472
+ if (state.events)
15473
+ state.events.exit?.("InlineBasicInterfaceProperty", state, result, eventData);
15474
+ return result;
15475
+ } else {
15476
+ const result = InlineBasicInterfaceProperty$0(state);
15477
+ if (state.events)
15478
+ state.events.exit?.("InlineBasicInterfaceProperty", state, result, eventData);
15479
+ return result;
15480
+ }
15481
+ }
15482
+ var InlineInterfacePropertyDelimiter$0 = $C($S($E(_), Semicolon), CommaDelimiter);
15483
+ var InlineInterfacePropertyDelimiter$1 = $T($S($Y($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertComma), function(value) {
15484
+ return value[1];
15485
+ });
15486
+ var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L29, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L15, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L28, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L17, fail, 'InlineInterfacePropertyDelimiter "}"'))));
15487
+ var InlineInterfacePropertyDelimiter$3 = $Y(EOS);
15488
+ function InlineInterfacePropertyDelimiter(state) {
15489
+ let eventData;
15490
+ if (state.events) {
15491
+ const result = state.events.enter?.("InlineInterfacePropertyDelimiter", state);
15492
+ if (result) {
15493
+ if (result.cache)
15494
+ return result.cache;
15495
+ eventData = result.data;
15496
+ }
15497
+ }
15498
+ if (state.tokenize) {
15499
+ const result = $TOKEN("InlineInterfacePropertyDelimiter", state, InlineInterfacePropertyDelimiter$0(state) || InlineInterfacePropertyDelimiter$1(state) || InlineInterfacePropertyDelimiter$2(state) || InlineInterfacePropertyDelimiter$3(state));
15500
+ if (state.events)
15501
+ state.events.exit?.("InlineInterfacePropertyDelimiter", state, result, eventData);
15502
+ return result;
15503
+ } else {
15504
+ const result = InlineInterfacePropertyDelimiter$0(state) || InlineInterfacePropertyDelimiter$1(state) || InlineInterfacePropertyDelimiter$2(state) || InlineInterfacePropertyDelimiter$3(state);
15505
+ if (state.events)
15506
+ state.events.exit?.("InlineInterfacePropertyDelimiter", state, result, eventData);
15507
+ return result;
15508
+ }
15509
+ }
15335
15510
  var TypeBinaryOp$0 = $TV($EXPECT($L78, fail, 'TypeBinaryOp "|"'), function($skip, $loc, $0, $1) {
15336
15511
  return { $loc, token: "|" };
15337
15512
  });
@@ -15389,7 +15564,7 @@ ${input.slice(result.pos)}
15389
15564
  return result;
15390
15565
  }
15391
15566
  }
15392
- var TypeArguments$0 = $TS($S($EXPECT($L123, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L27, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
15567
+ var TypeArguments$0 = $TS($S($EXPECT($L124, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L27, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
15393
15568
  return { ts: true, children: $0 };
15394
15569
  });
15395
15570
  function TypeArguments(state) {
@@ -15460,7 +15635,7 @@ ${input.slice(result.pos)}
15460
15635
  return result;
15461
15636
  }
15462
15637
  }
15463
- var TypeParameters$0 = $TS($S(__, $EXPECT($L123, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L27, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
15638
+ var TypeParameters$0 = $TS($S(__, $EXPECT($L124, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L27, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
15464
15639
  var parameters = $3;
15465
15640
  return {
15466
15641
  type: "TypeParameters",
@@ -15514,7 +15689,7 @@ ${input.slice(result.pos)}
15514
15689
  return result;
15515
15690
  }
15516
15691
  }
15517
- var TypeConstraint$0 = $S(__, $EXPECT($L112, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
15692
+ var TypeConstraint$0 = $S(__, $EXPECT($L113, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
15518
15693
  function TypeConstraint(state) {
15519
15694
  let eventData;
15520
15695
  if (state.events) {
@@ -17142,11 +17317,21 @@ ${input.slice(result.pos)}
17142
17317
  } else {
17143
17318
  children = [wsOp, op2.call, "(", a, ",", wsB, b, ")", op2.suffix];
17144
17319
  }
17145
- } else if (op2.token === "instanceof" || op2.token === "in") {
17146
- children = ["!(", a, wsOp, op2, wsB, b, ")"];
17320
+ } else if (op2.method) {
17321
+ wsOp = module.insertTrimmingSpace(wsOp, "");
17322
+ wsB = module.insertTrimmingSpace(wsB, "");
17323
+ if (op2.reversed) {
17324
+ children = [wsB, b, wsOp, ".", op2.method, "(", a, ")"];
17325
+ } else {
17326
+ children = [a, wsOp, ".", op2.method, "(", wsB, b, ")"];
17327
+ }
17328
+ } else if (op2.token) {
17329
+ children = ["(", a, wsOp, op2, wsB, b, ")"];
17147
17330
  } else {
17148
17331
  throw new Error("Unknown operator: " + JSON.stringify(op2));
17149
17332
  }
17333
+ if (op2.negated)
17334
+ children.unshift("!");
17150
17335
  expandedOps.splice(i - 2, 5, {
17151
17336
  children
17152
17337
  });