@danielx/civet 0.5.68 → 0.5.69

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.mjs CHANGED
@@ -438,7 +438,7 @@ ${input.slice(result.pos)}
438
438
  ForbiddenImplicitCalls,
439
439
  ArgumentsWithTrailingMemberExpressions,
440
440
  TrailingMemberExpressions,
441
- NonSuppressedTrailingMemberExpressions,
441
+ AllowedTrailingMemberExpressions,
442
442
  CommaDelimiter,
443
443
  ArgumentList,
444
444
  NonPipelineArgumentList,
@@ -607,6 +607,7 @@ ${input.slice(result.pos)}
607
607
  PropertyDefinitionList,
608
608
  PropertyDefinition,
609
609
  NamedProperty,
610
+ ImplicitNamedProperty,
610
611
  SnugNamedProperty,
611
612
  PropertyName,
612
613
  ComputedPropertyName,
@@ -635,6 +636,9 @@ ${input.slice(result.pos)}
635
636
  Statement,
636
637
  EmptyStatement,
637
638
  BlockStatement,
639
+ LabelledStatement,
640
+ Label,
641
+ LabelledItem,
638
642
  IfStatement,
639
643
  ElseClause,
640
644
  IfClause,
@@ -680,11 +684,21 @@ ${input.slice(result.pos)}
680
684
  FinallyClause,
681
685
  CatchParameter,
682
686
  Condition,
683
- ExpressionWithIndentedApplicationSuppressed,
684
- SuppressIndentedApplication,
687
+ ExpressionWithIndentedApplicationForbidden,
688
+ ForbidIndentedApplication,
689
+ AllowIndentedApplication,
690
+ RestoreIndentedApplication,
685
691
  IndentedApplicationAllowed,
686
- SuppressTrailingMemberProperty,
692
+ ForbidTrailingMemberProperty,
693
+ AllowTrailingMemberProperty,
694
+ RestoreTrailingMemberProperty,
687
695
  TrailingMemberPropertyAllowed,
696
+ ForbidMultiLineImplicitObjectLiteral,
697
+ AllowMultiLineImplicitObjectLiteral,
698
+ RestoreMultiLineImplicitObjectLiteral,
699
+ MultiLineImplicitObjectLiteralAllowed,
700
+ AllowAll,
701
+ RestoreAll,
688
702
  ExpressionStatement,
689
703
  KeywordStatement,
690
704
  DebuggerExpression,
@@ -865,6 +879,7 @@ ${input.slice(result.pos)}
865
879
  JSXElement,
866
880
  JSXSelfClosingElement,
867
881
  PushJSXOpeningElement,
882
+ PopJSXStack,
868
883
  JSXOpeningElement,
869
884
  JSXOptionalClosingElement,
870
885
  JSXClosingElement,
@@ -1092,98 +1107,99 @@ ${input.slice(result.pos)}
1092
1107
  var $L82 = $L("&");
1093
1108
  var $L83 = $L("|");
1094
1109
  var $L84 = $L(";");
1095
- var $L85 = $L("own");
1096
- var $L86 = $L("break");
1097
- var $L87 = $L("continue");
1098
- var $L88 = $L("debugger");
1099
- var $L89 = $L("assert");
1100
- var $L90 = $L(":=");
1101
- var $L91 = $L(".=");
1102
- var $L92 = $L("/*");
1103
- var $L93 = $L("*/");
1104
- var $L94 = $L("\\");
1105
- var $L95 = $L("[");
1106
- var $L96 = $L("`");
1107
- var $L97 = $L("abstract");
1108
- var $L98 = $L("as");
1109
- var $L99 = $L("@");
1110
- var $L100 = $L("@@");
1111
- var $L101 = $L("async");
1112
- var $L102 = $L("await");
1113
- var $L103 = $L("by");
1114
- var $L104 = $L("case");
1115
- var $L105 = $L("catch");
1116
- var $L106 = $L("class");
1117
- var $L107 = $L("#{");
1118
- var $L108 = $L("declare");
1119
- var $L109 = $L("default");
1120
- var $L110 = $L("delete");
1121
- var $L111 = $L("do");
1122
- var $L112 = $L("..");
1123
- var $L113 = $L("...");
1124
- var $L114 = $L("::");
1125
- var $L115 = $L('"');
1126
- var $L116 = $L("else");
1127
- var $L117 = $L("export");
1128
- var $L118 = $L("extends");
1129
- var $L119 = $L("finally");
1130
- var $L120 = $L("for");
1131
- var $L121 = $L("from");
1132
- var $L122 = $L("function");
1133
- var $L123 = $L("get");
1134
- var $L124 = $L("set");
1135
- var $L125 = $L("if");
1136
- var $L126 = $L("let");
1137
- var $L127 = $L("const");
1138
- var $L128 = $L("loop");
1139
- var $L129 = $L("new");
1140
- var $L130 = $L("<");
1141
- var $L131 = $L("{");
1142
- var $L132 = $L("operator");
1143
- var $L133 = $L("public");
1144
- var $L134 = $L("private");
1145
- var $L135 = $L("protected");
1146
- var $L136 = $L("||>");
1147
- var $L137 = $L("|>=");
1148
- var $L138 = $L("|>");
1149
- var $L139 = $L("readonly");
1150
- var $L140 = $L("return");
1151
- var $L141 = $L("satisfies");
1152
- var $L142 = $L("'");
1153
- var $L143 = $L("static");
1154
- var $L144 = $L("${");
1155
- var $L145 = $L("switch");
1156
- var $L146 = $L("target");
1157
- var $L147 = $L("then");
1158
- var $L148 = $L("this");
1159
- var $L149 = $L("throw");
1160
- var $L150 = $L('"""');
1161
- var $L151 = $L("'''");
1162
- var $L152 = $L("///");
1163
- var $L153 = $L("```");
1164
- var $L154 = $L("try");
1165
- var $L155 = $L("typeof");
1166
- var $L156 = $L("unless");
1167
- var $L157 = $L("until");
1168
- var $L158 = $L("var");
1169
- var $L159 = $L("void");
1170
- var $L160 = $L("when");
1171
- var $L161 = $L("while");
1172
- var $L162 = $L("yield");
1173
- var $L163 = $L("/>");
1174
- var $L164 = $L("</");
1175
- var $L165 = $L("<>");
1176
- var $L166 = $L("</>");
1177
- var $L167 = $L("<!--");
1178
- var $L168 = $L("-->");
1179
- var $L169 = $L("type");
1180
- var $L170 = $L("interface");
1181
- var $L171 = $L("namespace");
1182
- var $L172 = $L("asserts");
1183
- var $L173 = $L("keyof");
1184
- var $L174 = $L("infer");
1185
- var $L175 = $L("[]");
1186
- var $L176 = $L("civet");
1110
+ var $L85 = $L("$:");
1111
+ var $L86 = $L("own");
1112
+ var $L87 = $L("break");
1113
+ var $L88 = $L("continue");
1114
+ var $L89 = $L("debugger");
1115
+ var $L90 = $L("assert");
1116
+ var $L91 = $L(":=");
1117
+ var $L92 = $L(".=");
1118
+ var $L93 = $L("/*");
1119
+ var $L94 = $L("*/");
1120
+ var $L95 = $L("\\");
1121
+ var $L96 = $L("[");
1122
+ var $L97 = $L("`");
1123
+ var $L98 = $L("abstract");
1124
+ var $L99 = $L("as");
1125
+ var $L100 = $L("@");
1126
+ var $L101 = $L("@@");
1127
+ var $L102 = $L("async");
1128
+ var $L103 = $L("await");
1129
+ var $L104 = $L("by");
1130
+ var $L105 = $L("case");
1131
+ var $L106 = $L("catch");
1132
+ var $L107 = $L("class");
1133
+ var $L108 = $L("#{");
1134
+ var $L109 = $L("declare");
1135
+ var $L110 = $L("default");
1136
+ var $L111 = $L("delete");
1137
+ var $L112 = $L("do");
1138
+ var $L113 = $L("..");
1139
+ var $L114 = $L("...");
1140
+ var $L115 = $L("::");
1141
+ var $L116 = $L('"');
1142
+ var $L117 = $L("else");
1143
+ var $L118 = $L("export");
1144
+ var $L119 = $L("extends");
1145
+ var $L120 = $L("finally");
1146
+ var $L121 = $L("for");
1147
+ var $L122 = $L("from");
1148
+ var $L123 = $L("function");
1149
+ var $L124 = $L("get");
1150
+ var $L125 = $L("set");
1151
+ var $L126 = $L("if");
1152
+ var $L127 = $L("let");
1153
+ var $L128 = $L("const");
1154
+ var $L129 = $L("loop");
1155
+ var $L130 = $L("new");
1156
+ var $L131 = $L("<");
1157
+ var $L132 = $L("{");
1158
+ var $L133 = $L("operator");
1159
+ var $L134 = $L("public");
1160
+ var $L135 = $L("private");
1161
+ var $L136 = $L("protected");
1162
+ var $L137 = $L("||>");
1163
+ var $L138 = $L("|>=");
1164
+ var $L139 = $L("|>");
1165
+ var $L140 = $L("readonly");
1166
+ var $L141 = $L("return");
1167
+ var $L142 = $L("satisfies");
1168
+ var $L143 = $L("'");
1169
+ var $L144 = $L("static");
1170
+ var $L145 = $L("${");
1171
+ var $L146 = $L("switch");
1172
+ var $L147 = $L("target");
1173
+ var $L148 = $L("then");
1174
+ var $L149 = $L("this");
1175
+ var $L150 = $L("throw");
1176
+ var $L151 = $L('"""');
1177
+ var $L152 = $L("'''");
1178
+ var $L153 = $L("///");
1179
+ var $L154 = $L("```");
1180
+ var $L155 = $L("try");
1181
+ var $L156 = $L("typeof");
1182
+ var $L157 = $L("unless");
1183
+ var $L158 = $L("until");
1184
+ var $L159 = $L("var");
1185
+ var $L160 = $L("void");
1186
+ var $L161 = $L("when");
1187
+ var $L162 = $L("while");
1188
+ var $L163 = $L("yield");
1189
+ var $L164 = $L("/>");
1190
+ var $L165 = $L("</");
1191
+ var $L166 = $L("<>");
1192
+ var $L167 = $L("</>");
1193
+ var $L168 = $L("<!--");
1194
+ var $L169 = $L("-->");
1195
+ var $L170 = $L("type");
1196
+ var $L171 = $L("interface");
1197
+ var $L172 = $L("namespace");
1198
+ var $L173 = $L("asserts");
1199
+ var $L174 = $L("keyof");
1200
+ var $L175 = $L("infer");
1201
+ var $L176 = $L("[]");
1202
+ var $L177 = $L("civet");
1187
1203
  var $R0 = $R(new RegExp("(as|for|while|until|of|satisfies|then|when|implements|xor|xnor)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
1188
1204
  var $R1 = $R(new RegExp("[0-9]", "suy"));
1189
1205
  var $R2 = $R(new RegExp("[)}]", "suy"));
@@ -1193,7 +1209,7 @@ ${input.slice(result.pos)}
1193
1209
  var $R6 = $R(new RegExp("[!+-]", "suy"));
1194
1210
  var $R7 = $R(new RegExp("<(?!\\p{ID_Start}|[_$])", "suy"));
1195
1211
  var $R8 = $R(new RegExp("!\\^\\^?", "suy"));
1196
- var $R9 = $R(new RegExp("[!~+-](?!\\s|[!~+-]*&)", "suy"));
1212
+ var $R9 = $R(new RegExp("(?!\\+\\+|--)[!~+-](?!\\s|[!~+-]*&)", "suy"));
1197
1213
  var $R10 = $R(new RegExp("(?=[\\s\\)])", "suy"));
1198
1214
  var $R11 = $R(new RegExp('[^;"\\s]+', "suy"));
1199
1215
  var $R12 = $R(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy"));
@@ -1238,16 +1254,17 @@ ${input.slice(result.pos)}
1238
1254
  var $R51 = $R(new RegExp("[\\s>]", "suy"));
1239
1255
  var $R52 = $R(new RegExp("(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+", "suy"));
1240
1256
  var $R53 = $R(new RegExp("[<>]", "suy"));
1241
- var $R54 = $R(new RegExp("(?:-[^-]|[^-]*)*", "suy"));
1242
- var $R55 = $R(new RegExp("[^{}<>\\r\\n]+", "suy"));
1243
- var $R56 = $R(new RegExp("[+-]?", "suy"));
1244
- var $R57 = $R(new RegExp("[+-]", "suy"));
1245
- var $R58 = $R(new RegExp("#![^\\r\\n]*", "suy"));
1246
- var $R59 = $R(new RegExp("[\\t ]*", "suy"));
1247
- var $R60 = $R(new RegExp("[\\s]*", "suy"));
1248
- var $R61 = $R(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?", "suy"));
1249
- var $R62 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
1250
- var $R63 = $R(new RegExp("[ \\t]*", "suy"));
1257
+ var $R54 = $R(new RegExp("[!~+-](?!\\s|[!~+-]*&)", "suy"));
1258
+ var $R55 = $R(new RegExp("(?:-[^-]|[^-]*)*", "suy"));
1259
+ var $R56 = $R(new RegExp("[^{}<>\\r\\n]+", "suy"));
1260
+ var $R57 = $R(new RegExp("[+-]?", "suy"));
1261
+ var $R58 = $R(new RegExp("[+-]", "suy"));
1262
+ var $R59 = $R(new RegExp("#![^\\r\\n]*", "suy"));
1263
+ var $R60 = $R(new RegExp("[\\t ]*", "suy"));
1264
+ var $R61 = $R(new RegExp("[\\s]*", "suy"));
1265
+ var $R62 = $R(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?", "suy"));
1266
+ var $R63 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
1267
+ var $R64 = $R(new RegExp("[ \\t]*", "suy"));
1251
1268
  var Program$0 = $TS($S(Reset, Init, __, $Q(TopLevelStatement), __), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
1252
1269
  var statements = $4;
1253
1270
  module.processProgram(statements);
@@ -1461,9 +1478,8 @@ ${input.slice(result.pos)}
1461
1478
  }
1462
1479
  }
1463
1480
  var Arguments$0 = ExplicitArguments;
1464
- var Arguments$1 = $TS($S(SuppressTrailingMemberProperty, $E(ImplicitArguments)), function($skip, $loc, $0, $1, $2) {
1481
+ var Arguments$1 = $TS($S(ForbidTrailingMemberProperty, $E(ImplicitArguments), RestoreTrailingMemberProperty), function($skip, $loc, $0, $1, $2, $3) {
1465
1482
  var args = $2;
1466
- module.suppressTrailingMemberProperty.pop();
1467
1483
  if (args)
1468
1484
  return args;
1469
1485
  return $skip;
@@ -1654,14 +1670,14 @@ ${input.slice(result.pos)}
1654
1670
  return result;
1655
1671
  }
1656
1672
  }
1657
- var NonSuppressedTrailingMemberExpressions$0 = $T($S(TrailingMemberPropertyAllowed, TrailingMemberExpressions), function(value) {
1673
+ var AllowedTrailingMemberExpressions$0 = $T($S(TrailingMemberPropertyAllowed, TrailingMemberExpressions), function(value) {
1658
1674
  return value[1];
1659
1675
  });
1660
- var NonSuppressedTrailingMemberExpressions$1 = $Q(MemberExpressionRest);
1661
- function NonSuppressedTrailingMemberExpressions(state) {
1676
+ var AllowedTrailingMemberExpressions$1 = $Q(MemberExpressionRest);
1677
+ function AllowedTrailingMemberExpressions(state) {
1662
1678
  let eventData;
1663
1679
  if (state.events) {
1664
- const result = state.events.enter?.("NonSuppressedTrailingMemberExpressions", state);
1680
+ const result = state.events.enter?.("AllowedTrailingMemberExpressions", state);
1665
1681
  if (result) {
1666
1682
  if (result.cache)
1667
1683
  return result.cache;
@@ -1669,14 +1685,14 @@ ${input.slice(result.pos)}
1669
1685
  }
1670
1686
  }
1671
1687
  if (state.tokenize) {
1672
- const result = $TOKEN("NonSuppressedTrailingMemberExpressions", state, NonSuppressedTrailingMemberExpressions$0(state) || NonSuppressedTrailingMemberExpressions$1(state));
1688
+ const result = $TOKEN("AllowedTrailingMemberExpressions", state, AllowedTrailingMemberExpressions$0(state) || AllowedTrailingMemberExpressions$1(state));
1673
1689
  if (state.events)
1674
- state.events.exit?.("NonSuppressedTrailingMemberExpressions", state, result, eventData);
1690
+ state.events.exit?.("AllowedTrailingMemberExpressions", state, result, eventData);
1675
1691
  return result;
1676
1692
  } else {
1677
- const result = NonSuppressedTrailingMemberExpressions$0(state) || NonSuppressedTrailingMemberExpressions$1(state);
1693
+ const result = AllowedTrailingMemberExpressions$0(state) || AllowedTrailingMemberExpressions$1(state);
1678
1694
  if (state.events)
1679
- state.events.exit?.("NonSuppressedTrailingMemberExpressions", state, result, eventData);
1695
+ state.events.exit?.("AllowedTrailingMemberExpressions", state, result, eventData);
1680
1696
  return result;
1681
1697
  }
1682
1698
  }
@@ -2061,11 +2077,21 @@ ${input.slice(result.pos)}
2061
2077
  return result;
2062
2078
  }
2063
2079
  }
2064
- var UpdateExpression$0 = $S(UpdateExpressionSymbol, UnaryExpression);
2080
+ var UpdateExpression$0 = $TS($S(UpdateExpressionSymbol, UnaryExpression), function($skip, $loc, $0, $1, $2) {
2081
+ return {
2082
+ type: "UpdateExpression",
2083
+ assigned: $2,
2084
+ children: $0
2085
+ };
2086
+ });
2065
2087
  var UpdateExpression$1 = $TS($S(LeftHandSideExpression, $E(UpdateExpressionSymbol)), function($skip, $loc, $0, $1, $2) {
2066
- if ($2)
2067
- return $0;
2068
- return $1;
2088
+ if (!$2)
2089
+ return $1;
2090
+ return {
2091
+ type: "UpdateExpression",
2092
+ assigned: $1,
2093
+ children: $0
2094
+ };
2069
2095
  });
2070
2096
  function UpdateExpression(state) {
2071
2097
  let eventData;
@@ -2225,7 +2251,7 @@ ${input.slice(result.pos)}
2225
2251
  return result;
2226
2252
  }
2227
2253
  }
2228
- var ActualAssignment$0 = $TS($S($P($S(__, LeftHandSideExpression, WAssignmentOp)), ExtendedExpression), function($skip, $loc, $0, $1, $2) {
2254
+ var ActualAssignment$0 = $TS($S($P($S(__, UpdateExpression, WAssignmentOp)), ExtendedExpression), function($skip, $loc, $0, $1, $2) {
2229
2255
  $1 = $1.map((x) => [x[0], x[1], ...x[2]]);
2230
2256
  $0 = [$1, $2];
2231
2257
  return {
@@ -2233,6 +2259,7 @@ ${input.slice(result.pos)}
2233
2259
  children: $0,
2234
2260
  names: null,
2235
2261
  lhs: $1,
2262
+ assigned: $1[0][1],
2236
2263
  exp: $2
2237
2264
  };
2238
2265
  });
@@ -2642,15 +2669,18 @@ ${input.slice(result.pos)}
2642
2669
  return result;
2643
2670
  }
2644
2671
  }
2645
- var ParenthesizedExpression$0 = $TS($S(OpenParen, PostfixedExpression, __, CloseParen), function($skip, $loc, $0, $1, $2, $3, $4) {
2646
- var exp = $2;
2672
+ var ParenthesizedExpression$0 = $TS($S(OpenParen, AllowAll, $E($S(PostfixedExpression, __, CloseParen)), RestoreAll), function($skip, $loc, $0, $1, $2, $3, $4) {
2673
+ var open = $1;
2674
+ if (!$3)
2675
+ return $skip;
2676
+ const [exp, ws, close] = $3;
2647
2677
  switch (exp.type) {
2648
2678
  case "IterationExpression":
2649
- return $2;
2679
+ return exp;
2650
2680
  }
2651
2681
  return {
2652
2682
  type: "ParenthesizedExpression",
2653
- children: $0,
2683
+ children: [open, exp, ws, close],
2654
2684
  expression: exp
2655
2685
  };
2656
2686
  });
@@ -2832,7 +2862,7 @@ ${input.slice(result.pos)}
2832
2862
  return result;
2833
2863
  }
2834
2864
  }
2835
- var ExtendsTarget$0 = $TS($S(ExpressionWithIndentedApplicationSuppressed, $E(TypeArguments)), function($skip, $loc, $0, $1, $2) {
2865
+ var ExtendsTarget$0 = $TS($S(ExpressionWithIndentedApplicationForbidden, $E(TypeArguments)), function($skip, $loc, $0, $1, $2) {
2836
2866
  var exp = $1;
2837
2867
  var ta = $2;
2838
2868
  exp = module.makeLeftHandSideExpression(exp);
@@ -3272,7 +3302,7 @@ ${input.slice(result.pos)}
3272
3302
  children: [$1, ...$2, ...rest.flat()]
3273
3303
  });
3274
3304
  });
3275
- var CallExpression$2 = $TS($S(MemberExpression, NonSuppressedTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
3305
+ var CallExpression$2 = $TS($S(MemberExpression, AllowedTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
3276
3306
  var member = $1;
3277
3307
  var trailing = $2;
3278
3308
  var rest = $3;
@@ -6268,9 +6298,11 @@ ${input.slice(result.pos)}
6268
6298
  var ArrayLiteral$0 = $T($S(ArrayBindingPattern, UpcomingAssignment), function(value) {
6269
6299
  return value[0];
6270
6300
  });
6271
- var ArrayLiteral$1 = $TS($S(OpenBracket, ArrayLiteralContent, __, CloseBracket), function($skip, $loc, $0, $1, $2, $3, $4) {
6272
- var content = $2;
6273
- var ws = $3;
6301
+ var ArrayLiteral$1 = $TS($S(OpenBracket, AllowAll, $E($S(ArrayLiteralContent, __, CloseBracket)), RestoreIndentedApplication, RestoreAll), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
6302
+ var open = $1;
6303
+ if (!$3)
6304
+ return $skip;
6305
+ const [content, ws, close] = $3;
6274
6306
  if (content.type === "RangeExpression") {
6275
6307
  return {
6276
6308
  ...content,
@@ -6279,9 +6311,9 @@ ${input.slice(result.pos)}
6279
6311
  }
6280
6312
  let children;
6281
6313
  if (Array.isArray(content)) {
6282
- children = [$1, ...content, ...ws, $4];
6314
+ children = [open, ...content, ...ws, close];
6283
6315
  } else {
6284
- children = [$1, content, ...ws, $4];
6316
+ children = [open, content, ...ws, close];
6285
6317
  }
6286
6318
  const names = children.flatMap((c) => {
6287
6319
  return c.names || [];
@@ -6686,10 +6718,11 @@ ${input.slice(result.pos)}
6686
6718
  return result;
6687
6719
  }
6688
6720
  }
6689
- var BracedObjectLiteral$0 = $TS($S(OpenBrace, $E(BracedObjectLiteralContent), $S(__, CloseBrace)), function($skip, $loc, $0, $1, $2, $3) {
6721
+ var BracedObjectLiteral$0 = $TS($S(OpenBrace, AllowAll, $E($S($E(BracedObjectLiteralContent), __, CloseBrace)), RestoreAll), function($skip, $loc, $0, $1, $2, $3, $4) {
6690
6722
  var open = $1;
6691
- var content = $2;
6692
- var close = $3;
6723
+ if (!$3)
6724
+ return $skip;
6725
+ const [content, ...close] = $3;
6693
6726
  if (content) {
6694
6727
  const children = [open, ...content, close];
6695
6728
  return {
@@ -6809,7 +6842,7 @@ ${input.slice(result.pos)}
6809
6842
  return result;
6810
6843
  }
6811
6844
  }
6812
- var NestedImplicitPropertyDefinition$0 = $TS($S(Nested, NamedProperty, ObjectPropertyDelimiter), function($skip, $loc, $0, $1, $2, $3) {
6845
+ var NestedImplicitPropertyDefinition$0 = $TS($S(Nested, ImplicitNamedProperty, ObjectPropertyDelimiter), function($skip, $loc, $0, $1, $2, $3) {
6813
6846
  var ws = $1;
6814
6847
  var prop = $2;
6815
6848
  var delimiter = $3;
@@ -6898,7 +6931,7 @@ ${input.slice(result.pos)}
6898
6931
  return result;
6899
6932
  }
6900
6933
  }
6901
- var InlineObjectLiteral$0 = $TS($S(InsertInlineOpenBrace, SnugNamedProperty, ImplicitInlineObjectPropertyDelimiter, $Q($S($C(Samedent, $Q(_)), NamedProperty, ImplicitInlineObjectPropertyDelimiter)), InsertCloseBrace), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
6934
+ var InlineObjectLiteral$0 = $TS($S(InsertInlineOpenBrace, SnugNamedProperty, ImplicitInlineObjectPropertyDelimiter, $Q($S($C(Samedent, $Q(_)), ImplicitNamedProperty, ImplicitInlineObjectPropertyDelimiter)), InsertCloseBrace), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
6902
6935
  var open = $1;
6903
6936
  var close = $5;
6904
6937
  return {
@@ -7164,8 +7197,41 @@ ${input.slice(result.pos)}
7164
7197
  return result;
7165
7198
  }
7166
7199
  }
7167
- var SnugNamedProperty$0 = $TS($S(PropertyName, Colon, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3) {
7168
- var exp = $3;
7200
+ var ImplicitNamedProperty$0 = $TS($S(PropertyName, __, Colon, $C(MultiLineImplicitObjectLiteralAllowed, $N(EOS)), ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
7201
+ var name = $1;
7202
+ var exp = $5;
7203
+ return {
7204
+ type: "Property",
7205
+ children: $0,
7206
+ name,
7207
+ names: exp.names || [],
7208
+ value: exp
7209
+ };
7210
+ });
7211
+ function ImplicitNamedProperty(state) {
7212
+ let eventData;
7213
+ if (state.events) {
7214
+ const result = state.events.enter?.("ImplicitNamedProperty", state);
7215
+ if (result) {
7216
+ if (result.cache)
7217
+ return result.cache;
7218
+ eventData = result.data;
7219
+ }
7220
+ }
7221
+ if (state.tokenize) {
7222
+ const result = $TOKEN("ImplicitNamedProperty", state, ImplicitNamedProperty$0(state));
7223
+ if (state.events)
7224
+ state.events.exit?.("ImplicitNamedProperty", state, result, eventData);
7225
+ return result;
7226
+ } else {
7227
+ const result = ImplicitNamedProperty$0(state);
7228
+ if (state.events)
7229
+ state.events.exit?.("ImplicitNamedProperty", state, result, eventData);
7230
+ return result;
7231
+ }
7232
+ }
7233
+ var SnugNamedProperty$0 = $TS($S(PropertyName, Colon, $C(MultiLineImplicitObjectLiteralAllowed, $N(EOS)), ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4) {
7234
+ var exp = $4;
7169
7235
  return {
7170
7236
  type: "Property",
7171
7237
  children: $0,
@@ -7948,7 +8014,7 @@ ${input.slice(result.pos)}
7948
8014
  return result;
7949
8015
  }
7950
8016
  }
7951
- var UnaryOp$0 = $TR($EXPECT($R9, fail, "UnaryOp /[!~+-](?!\\s|[!~+-]*&)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
8017
+ var UnaryOp$0 = $TR($EXPECT($R9, fail, "UnaryOp /(?!\\+\\+|--)[!~+-](?!\\s|[!~+-]*&)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
7952
8018
  return { $loc, token: $0 };
7953
8019
  });
7954
8020
  var UnaryOp$1 = $S($C(Await, Delete, Void, Typeof), __);
@@ -8116,13 +8182,14 @@ ${input.slice(result.pos)}
8116
8182
  var Statement$4 = SwitchStatement;
8117
8183
  var Statement$5 = TryStatement;
8118
8184
  var Statement$6 = EmptyStatement;
8119
- var Statement$7 = $TS($S(ExpressionStatement), function($skip, $loc, $0, $1) {
8185
+ var Statement$7 = LabelledStatement;
8186
+ var Statement$8 = $TS($S(ExpressionStatement), function($skip, $loc, $0, $1) {
8120
8187
  if ($1.type === "ObjectExpression" || $1.type === "FunctionExpression" && !$1.id) {
8121
8188
  return module.makeLeftHandSideExpression($1);
8122
8189
  }
8123
8190
  return $1;
8124
8191
  });
8125
- var Statement$8 = BlockStatement;
8192
+ var Statement$9 = BlockStatement;
8126
8193
  function Statement(state) {
8127
8194
  let eventData;
8128
8195
  if (state.events) {
@@ -8134,12 +8201,12 @@ ${input.slice(result.pos)}
8134
8201
  }
8135
8202
  }
8136
8203
  if (state.tokenize) {
8137
- const result = $TOKEN("Statement", state, Statement$0(state) || Statement$1(state) || Statement$2(state) || Statement$3(state) || Statement$4(state) || Statement$5(state) || Statement$6(state) || Statement$7(state) || Statement$8(state));
8204
+ const result = $TOKEN("Statement", state, Statement$0(state) || Statement$1(state) || Statement$2(state) || Statement$3(state) || Statement$4(state) || Statement$5(state) || Statement$6(state) || Statement$7(state) || Statement$8(state) || Statement$9(state));
8138
8205
  if (state.events)
8139
8206
  state.events.exit?.("Statement", state, result, eventData);
8140
8207
  return result;
8141
8208
  } else {
8142
- const result = Statement$0(state) || Statement$1(state) || Statement$2(state) || Statement$3(state) || Statement$4(state) || Statement$5(state) || Statement$6(state) || Statement$7(state) || Statement$8(state);
8209
+ const result = Statement$0(state) || Statement$1(state) || Statement$2(state) || Statement$3(state) || Statement$4(state) || Statement$5(state) || Statement$6(state) || Statement$7(state) || Statement$8(state) || Statement$9(state);
8143
8210
  if (state.events)
8144
8211
  state.events.exit?.("Statement", state, result, eventData);
8145
8212
  return result;
@@ -8195,6 +8262,82 @@ ${input.slice(result.pos)}
8195
8262
  return result;
8196
8263
  }
8197
8264
  }
8265
+ var LabelledStatement$0 = $S(Label, LabelledItem);
8266
+ function LabelledStatement(state) {
8267
+ let eventData;
8268
+ if (state.events) {
8269
+ const result = state.events.enter?.("LabelledStatement", state);
8270
+ if (result) {
8271
+ if (result.cache)
8272
+ return result.cache;
8273
+ eventData = result.data;
8274
+ }
8275
+ }
8276
+ if (state.tokenize) {
8277
+ const result = $TOKEN("LabelledStatement", state, LabelledStatement$0(state));
8278
+ if (state.events)
8279
+ state.events.exit?.("LabelledStatement", state, result, eventData);
8280
+ return result;
8281
+ } else {
8282
+ const result = LabelledStatement$0(state);
8283
+ if (state.events)
8284
+ state.events.exit?.("LabelledStatement", state, result, eventData);
8285
+ return result;
8286
+ }
8287
+ }
8288
+ var Label$0 = $TS($S(Colon, Identifier, Whitespace), function($skip, $loc, $0, $1, $2, $3) {
8289
+ var colon = $1;
8290
+ var id = $2;
8291
+ var w = $3;
8292
+ return [id, colon, w];
8293
+ });
8294
+ var Label$1 = $S($EXPECT($L85, fail, 'Label "$:"'), Whitespace);
8295
+ function Label(state) {
8296
+ let eventData;
8297
+ if (state.events) {
8298
+ const result = state.events.enter?.("Label", state);
8299
+ if (result) {
8300
+ if (result.cache)
8301
+ return result.cache;
8302
+ eventData = result.data;
8303
+ }
8304
+ }
8305
+ if (state.tokenize) {
8306
+ const result = $TOKEN("Label", state, Label$0(state) || Label$1(state));
8307
+ if (state.events)
8308
+ state.events.exit?.("Label", state, result, eventData);
8309
+ return result;
8310
+ } else {
8311
+ const result = Label$0(state) || Label$1(state);
8312
+ if (state.events)
8313
+ state.events.exit?.("Label", state, result, eventData);
8314
+ return result;
8315
+ }
8316
+ }
8317
+ var LabelledItem$0 = Statement;
8318
+ var LabelledItem$1 = FunctionDeclaration;
8319
+ function LabelledItem(state) {
8320
+ let eventData;
8321
+ if (state.events) {
8322
+ const result = state.events.enter?.("LabelledItem", state);
8323
+ if (result) {
8324
+ if (result.cache)
8325
+ return result.cache;
8326
+ eventData = result.data;
8327
+ }
8328
+ }
8329
+ if (state.tokenize) {
8330
+ const result = $TOKEN("LabelledItem", state, LabelledItem$0(state) || LabelledItem$1(state));
8331
+ if (state.events)
8332
+ state.events.exit?.("LabelledItem", state, result, eventData);
8333
+ return result;
8334
+ } else {
8335
+ const result = LabelledItem$0(state) || LabelledItem$1(state);
8336
+ if (state.events)
8337
+ state.events.exit?.("LabelledItem", state, result, eventData);
8338
+ return result;
8339
+ }
8340
+ }
8198
8341
  var IfStatement$0 = $TS($S($C(IfClause, UnlessClause), Block, $E(ElseClause)), function($skip, $loc, $0, $1, $2, $3) {
8199
8342
  var clause = $1;
8200
8343
  var block = $2;
@@ -8461,7 +8604,7 @@ ${input.slice(result.pos)}
8461
8604
  children: [$1, exps, $3, $4, $5]
8462
8605
  };
8463
8606
  });
8464
- var ElseExpressionBlock$1 = $T($S($N(EOS), ExpressionWithIndentedApplicationSuppressed), function(value) {
8607
+ var ElseExpressionBlock$1 = $T($S($N(EOS), ExpressionWithIndentedApplicationForbidden), function(value) {
8465
8608
  return value[1];
8466
8609
  });
8467
8610
  function ElseExpressionBlock(state) {
@@ -9100,7 +9243,7 @@ ${input.slice(result.pos)}
9100
9243
  return result;
9101
9244
  }
9102
9245
  }
9103
- var CoffeeForDeclaration$0 = $TS($S($E($S(__, $EXPECT($L85, fail, 'CoffeeForDeclaration "own"'), NonIdContinue)), ForBinding), function($skip, $loc, $0, $1, $2) {
9246
+ var CoffeeForDeclaration$0 = $TS($S($E($S(__, $EXPECT($L86, fail, 'CoffeeForDeclaration "own"'), NonIdContinue)), ForBinding), function($skip, $loc, $0, $1, $2) {
9104
9247
  var own = $1;
9105
9248
  var binding = $2;
9106
9249
  return {
@@ -9146,14 +9289,14 @@ ${input.slice(result.pos)}
9146
9289
  children: $0
9147
9290
  };
9148
9291
  });
9149
- var ForStatementParameters$2 = $TS($S($E($S(Await, __)), OpenParen, __, ForInOfDeclaration, __, $C(In, Of), ExpressionWithIndentedApplicationSuppressed, __, CloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
9292
+ var ForStatementParameters$2 = $TS($S($E($S(Await, __)), OpenParen, __, ForInOfDeclaration, __, $C(In, Of), ExpressionWithIndentedApplicationForbidden, __, CloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
9150
9293
  var declaration = $4;
9151
9294
  return {
9152
9295
  declaration,
9153
9296
  children: $0
9154
9297
  };
9155
9298
  });
9156
- var ForStatementParameters$3 = $TS($S($E($S(Await, __)), InsertOpenParen, ForInOfDeclaration, __, $C(In, Of), ExpressionWithIndentedApplicationSuppressed, InsertCloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7) {
9299
+ var ForStatementParameters$3 = $TS($S($E($S(Await, __)), InsertOpenParen, ForInOfDeclaration, __, $C(In, Of), ExpressionWithIndentedApplicationForbidden, InsertCloseParen), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7) {
9157
9300
  var declaration = $3;
9158
9301
  return {
9159
9302
  declaration,
@@ -9548,14 +9691,18 @@ ${input.slice(result.pos)}
9548
9691
  return result;
9549
9692
  }
9550
9693
  }
9551
- var CaseExpressionList$0 = $TS($S($S($Q(_), ExpressionWithIndentedApplicationSuppressed, ImpliedColon), $Q($S(__, Comma, ExpressionWithIndentedApplicationSuppressed, ImpliedColon))), function($skip, $loc, $0, $1, $2) {
9552
- const result = $2.map(([ws, _comma, exp, col]) => {
9694
+ var CaseExpressionList$0 = $TS($S(ForbidMultiLineImplicitObjectLiteral, $E($S($Q(_), ExpressionWithIndentedApplicationForbidden, ImpliedColon)), $Q($S(__, Comma, ExpressionWithIndentedApplicationForbidden, ImpliedColon)), RestoreMultiLineImplicitObjectLiteral), function($skip, $loc, $0, $1, $2, $3, $4) {
9695
+ var first = $2;
9696
+ var rest = $3;
9697
+ if (!first)
9698
+ return $skip;
9699
+ const result = rest.map(([ws, _comma, exp, col]) => {
9553
9700
  exp = module.insertTrimmingSpace(exp, "");
9554
9701
  if (ws.length)
9555
9702
  return [module.insertTrimmingSpace("case ", ws), exp, col];
9556
9703
  return ["case ", exp, col];
9557
9704
  });
9558
- result.unshift($1);
9705
+ result.unshift(first);
9559
9706
  return result;
9560
9707
  });
9561
9708
  function CaseExpressionList(state) {
@@ -9771,7 +9918,7 @@ ${input.slice(result.pos)}
9771
9918
  var Condition$0 = $T($S(ParenthesizedExpression, $N($S($Q(TrailingComment), $C(BinaryOp, AssignmentOp, Dot, QuestionMark))), $N($S(_, OperatorAssignmentOp))), function(value) {
9772
9919
  return value[0];
9773
9920
  });
9774
- var Condition$1 = $TS($S(InsertOpenParen, ExpressionWithIndentedApplicationSuppressed, InsertCloseParen), function($skip, $loc, $0, $1, $2, $3) {
9921
+ var Condition$1 = $TS($S(InsertOpenParen, ExpressionWithIndentedApplicationForbidden, InsertCloseParen), function($skip, $loc, $0, $1, $2, $3) {
9775
9922
  var open = $1;
9776
9923
  var expression = $2;
9777
9924
  var close = $3;
@@ -9806,17 +9953,16 @@ ${input.slice(result.pos)}
9806
9953
  return result;
9807
9954
  }
9808
9955
  }
9809
- var ExpressionWithIndentedApplicationSuppressed$0 = $TS($S(SuppressIndentedApplication, $E(ExtendedExpression)), function($skip, $loc, $0, $1, $2) {
9956
+ var ExpressionWithIndentedApplicationForbidden$0 = $TS($S(ForbidIndentedApplication, $E(ExtendedExpression), RestoreIndentedApplication), function($skip, $loc, $0, $1, $2, $3) {
9810
9957
  var exp = $2;
9811
- module.suppressIndentedApplication = false;
9812
9958
  if (exp)
9813
9959
  return exp;
9814
9960
  return $skip;
9815
9961
  });
9816
- function ExpressionWithIndentedApplicationSuppressed(state) {
9962
+ function ExpressionWithIndentedApplicationForbidden(state) {
9817
9963
  let eventData;
9818
9964
  if (state.events) {
9819
- const result = state.events.enter?.("ExpressionWithIndentedApplicationSuppressed", state);
9965
+ const result = state.events.enter?.("ExpressionWithIndentedApplicationForbidden", state);
9820
9966
  if (result) {
9821
9967
  if (result.cache)
9822
9968
  return result.cache;
@@ -9824,24 +9970,24 @@ ${input.slice(result.pos)}
9824
9970
  }
9825
9971
  }
9826
9972
  if (state.tokenize) {
9827
- const result = $TOKEN("ExpressionWithIndentedApplicationSuppressed", state, ExpressionWithIndentedApplicationSuppressed$0(state));
9973
+ const result = $TOKEN("ExpressionWithIndentedApplicationForbidden", state, ExpressionWithIndentedApplicationForbidden$0(state));
9828
9974
  if (state.events)
9829
- state.events.exit?.("ExpressionWithIndentedApplicationSuppressed", state, result, eventData);
9975
+ state.events.exit?.("ExpressionWithIndentedApplicationForbidden", state, result, eventData);
9830
9976
  return result;
9831
9977
  } else {
9832
- const result = ExpressionWithIndentedApplicationSuppressed$0(state);
9978
+ const result = ExpressionWithIndentedApplicationForbidden$0(state);
9833
9979
  if (state.events)
9834
- state.events.exit?.("ExpressionWithIndentedApplicationSuppressed", state, result, eventData);
9980
+ state.events.exit?.("ExpressionWithIndentedApplicationForbidden", state, result, eventData);
9835
9981
  return result;
9836
9982
  }
9837
9983
  }
9838
- var SuppressIndentedApplication$0 = $TV($EXPECT($L18, fail, 'SuppressIndentedApplication ""'), function($skip, $loc, $0, $1) {
9839
- module.suppressIndentedApplication = true;
9984
+ var ForbidIndentedApplication$0 = $TV($EXPECT($L18, fail, 'ForbidIndentedApplication ""'), function($skip, $loc, $0, $1) {
9985
+ module.forbidIndentedApplication.push(true);
9840
9986
  });
9841
- function SuppressIndentedApplication(state) {
9987
+ function ForbidIndentedApplication(state) {
9842
9988
  let eventData;
9843
9989
  if (state.events) {
9844
- const result = state.events.enter?.("SuppressIndentedApplication", state);
9990
+ const result = state.events.enter?.("ForbidIndentedApplication", state);
9845
9991
  if (result) {
9846
9992
  if (result.cache)
9847
9993
  return result.cache;
@@ -9849,19 +9995,72 @@ ${input.slice(result.pos)}
9849
9995
  }
9850
9996
  }
9851
9997
  if (state.tokenize) {
9852
- const result = $TOKEN("SuppressIndentedApplication", state, SuppressIndentedApplication$0(state));
9998
+ const result = $TOKEN("ForbidIndentedApplication", state, ForbidIndentedApplication$0(state));
9853
9999
  if (state.events)
9854
- state.events.exit?.("SuppressIndentedApplication", state, result, eventData);
10000
+ state.events.exit?.("ForbidIndentedApplication", state, result, eventData);
9855
10001
  return result;
9856
10002
  } else {
9857
- const result = SuppressIndentedApplication$0(state);
10003
+ const result = ForbidIndentedApplication$0(state);
9858
10004
  if (state.events)
9859
- state.events.exit?.("SuppressIndentedApplication", state, result, eventData);
10005
+ state.events.exit?.("ForbidIndentedApplication", state, result, eventData);
10006
+ return result;
10007
+ }
10008
+ }
10009
+ var AllowIndentedApplication$0 = $TV($EXPECT($L18, fail, 'AllowIndentedApplication ""'), function($skip, $loc, $0, $1) {
10010
+ module.forbidIndentedApplication.push(false);
10011
+ });
10012
+ function AllowIndentedApplication(state) {
10013
+ let eventData;
10014
+ if (state.events) {
10015
+ const result = state.events.enter?.("AllowIndentedApplication", state);
10016
+ if (result) {
10017
+ if (result.cache)
10018
+ return result.cache;
10019
+ eventData = result.data;
10020
+ }
10021
+ }
10022
+ if (state.tokenize) {
10023
+ const result = $TOKEN("AllowIndentedApplication", state, AllowIndentedApplication$0(state));
10024
+ if (state.events)
10025
+ state.events.exit?.("AllowIndentedApplication", state, result, eventData);
10026
+ return result;
10027
+ } else {
10028
+ const result = AllowIndentedApplication$0(state);
10029
+ if (state.events)
10030
+ state.events.exit?.("AllowIndentedApplication", state, result, eventData);
10031
+ return result;
10032
+ }
10033
+ }
10034
+ var RestoreIndentedApplication$0 = $TV($EXPECT($L18, fail, 'RestoreIndentedApplication ""'), function($skip, $loc, $0, $1) {
10035
+ module.forbidIndentedApplication.pop();
10036
+ });
10037
+ function RestoreIndentedApplication(state) {
10038
+ let eventData;
10039
+ if (state.events) {
10040
+ const result = state.events.enter?.("RestoreIndentedApplication", state);
10041
+ if (result) {
10042
+ if (result.cache)
10043
+ return result.cache;
10044
+ eventData = result.data;
10045
+ }
10046
+ }
10047
+ if (state.tokenize) {
10048
+ const result = $TOKEN("RestoreIndentedApplication", state, RestoreIndentedApplication$0(state));
10049
+ if (state.events)
10050
+ state.events.exit?.("RestoreIndentedApplication", state, result, eventData);
10051
+ return result;
10052
+ } else {
10053
+ const result = RestoreIndentedApplication$0(state);
10054
+ if (state.events)
10055
+ state.events.exit?.("RestoreIndentedApplication", state, result, eventData);
9860
10056
  return result;
9861
10057
  }
9862
10058
  }
9863
10059
  var IndentedApplicationAllowed$0 = $TV($EXPECT($L18, fail, 'IndentedApplicationAllowed ""'), function($skip, $loc, $0, $1) {
9864
- if (module.suppressIndentedApplication)
10060
+ if (module.config.verbose) {
10061
+ console.log("forbidIndentedApplication:", module.forbidIndentedApplication);
10062
+ }
10063
+ if (module.indentedApplicationForbidden)
9865
10064
  return $skip;
9866
10065
  return;
9867
10066
  });
@@ -9887,13 +10086,38 @@ ${input.slice(result.pos)}
9887
10086
  return result;
9888
10087
  }
9889
10088
  }
9890
- var SuppressTrailingMemberProperty$0 = $TV($EXPECT($L18, fail, 'SuppressTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
9891
- module.suppressTrailingMemberProperty.push(true);
10089
+ var ForbidTrailingMemberProperty$0 = $TV($EXPECT($L18, fail, 'ForbidTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
10090
+ module.forbidTrailingMemberProperty.push(true);
10091
+ });
10092
+ function ForbidTrailingMemberProperty(state) {
10093
+ let eventData;
10094
+ if (state.events) {
10095
+ const result = state.events.enter?.("ForbidTrailingMemberProperty", state);
10096
+ if (result) {
10097
+ if (result.cache)
10098
+ return result.cache;
10099
+ eventData = result.data;
10100
+ }
10101
+ }
10102
+ if (state.tokenize) {
10103
+ const result = $TOKEN("ForbidTrailingMemberProperty", state, ForbidTrailingMemberProperty$0(state));
10104
+ if (state.events)
10105
+ state.events.exit?.("ForbidTrailingMemberProperty", state, result, eventData);
10106
+ return result;
10107
+ } else {
10108
+ const result = ForbidTrailingMemberProperty$0(state);
10109
+ if (state.events)
10110
+ state.events.exit?.("ForbidTrailingMemberProperty", state, result, eventData);
10111
+ return result;
10112
+ }
10113
+ }
10114
+ var AllowTrailingMemberProperty$0 = $TV($EXPECT($L18, fail, 'AllowTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
10115
+ module.forbidTrailingMemberProperty.push(false);
9892
10116
  });
9893
- function SuppressTrailingMemberProperty(state) {
10117
+ function AllowTrailingMemberProperty(state) {
9894
10118
  let eventData;
9895
10119
  if (state.events) {
9896
- const result = state.events.enter?.("SuppressTrailingMemberProperty", state);
10120
+ const result = state.events.enter?.("AllowTrailingMemberProperty", state);
9897
10121
  if (result) {
9898
10122
  if (result.cache)
9899
10123
  return result.cache;
@@ -9901,19 +10125,47 @@ ${input.slice(result.pos)}
9901
10125
  }
9902
10126
  }
9903
10127
  if (state.tokenize) {
9904
- const result = $TOKEN("SuppressTrailingMemberProperty", state, SuppressTrailingMemberProperty$0(state));
10128
+ const result = $TOKEN("AllowTrailingMemberProperty", state, AllowTrailingMemberProperty$0(state));
9905
10129
  if (state.events)
9906
- state.events.exit?.("SuppressTrailingMemberProperty", state, result, eventData);
10130
+ state.events.exit?.("AllowTrailingMemberProperty", state, result, eventData);
9907
10131
  return result;
9908
10132
  } else {
9909
- const result = SuppressTrailingMemberProperty$0(state);
10133
+ const result = AllowTrailingMemberProperty$0(state);
9910
10134
  if (state.events)
9911
- state.events.exit?.("SuppressTrailingMemberProperty", state, result, eventData);
10135
+ state.events.exit?.("AllowTrailingMemberProperty", state, result, eventData);
10136
+ return result;
10137
+ }
10138
+ }
10139
+ var RestoreTrailingMemberProperty$0 = $TV($EXPECT($L18, fail, 'RestoreTrailingMemberProperty ""'), function($skip, $loc, $0, $1) {
10140
+ module.forbidTrailingMemberProperty.pop();
10141
+ });
10142
+ function RestoreTrailingMemberProperty(state) {
10143
+ let eventData;
10144
+ if (state.events) {
10145
+ const result = state.events.enter?.("RestoreTrailingMemberProperty", state);
10146
+ if (result) {
10147
+ if (result.cache)
10148
+ return result.cache;
10149
+ eventData = result.data;
10150
+ }
10151
+ }
10152
+ if (state.tokenize) {
10153
+ const result = $TOKEN("RestoreTrailingMemberProperty", state, RestoreTrailingMemberProperty$0(state));
10154
+ if (state.events)
10155
+ state.events.exit?.("RestoreTrailingMemberProperty", state, result, eventData);
10156
+ return result;
10157
+ } else {
10158
+ const result = RestoreTrailingMemberProperty$0(state);
10159
+ if (state.events)
10160
+ state.events.exit?.("RestoreTrailingMemberProperty", state, result, eventData);
9912
10161
  return result;
9913
10162
  }
9914
10163
  }
9915
10164
  var TrailingMemberPropertyAllowed$0 = $TV($EXPECT($L18, fail, 'TrailingMemberPropertyAllowed ""'), function($skip, $loc, $0, $1) {
9916
- if (module.trailingMemberPropertySuppressed)
10165
+ if (module.config.verbose) {
10166
+ console.log("forbidTrailingMemberProperty:", module.forbidTrailingMemberProperty);
10167
+ }
10168
+ if (module.trailingMemberPropertyForbidden)
9917
10169
  return $skip;
9918
10170
  });
9919
10171
  function TrailingMemberPropertyAllowed(state) {
@@ -9938,6 +10190,156 @@ ${input.slice(result.pos)}
9938
10190
  return result;
9939
10191
  }
9940
10192
  }
10193
+ var ForbidMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($L18, fail, 'ForbidMultiLineImplicitObjectLiteral ""'), function($skip, $loc, $0, $1) {
10194
+ module.forbidMultiLineImplicitObjectLiteral.push(true);
10195
+ });
10196
+ function ForbidMultiLineImplicitObjectLiteral(state) {
10197
+ let eventData;
10198
+ if (state.events) {
10199
+ const result = state.events.enter?.("ForbidMultiLineImplicitObjectLiteral", state);
10200
+ if (result) {
10201
+ if (result.cache)
10202
+ return result.cache;
10203
+ eventData = result.data;
10204
+ }
10205
+ }
10206
+ if (state.tokenize) {
10207
+ const result = $TOKEN("ForbidMultiLineImplicitObjectLiteral", state, ForbidMultiLineImplicitObjectLiteral$0(state));
10208
+ if (state.events)
10209
+ state.events.exit?.("ForbidMultiLineImplicitObjectLiteral", state, result, eventData);
10210
+ return result;
10211
+ } else {
10212
+ const result = ForbidMultiLineImplicitObjectLiteral$0(state);
10213
+ if (state.events)
10214
+ state.events.exit?.("ForbidMultiLineImplicitObjectLiteral", state, result, eventData);
10215
+ return result;
10216
+ }
10217
+ }
10218
+ var AllowMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($L18, fail, 'AllowMultiLineImplicitObjectLiteral ""'), function($skip, $loc, $0, $1) {
10219
+ module.forbidMultiLineImplicitObjectLiteral.push(false);
10220
+ });
10221
+ function AllowMultiLineImplicitObjectLiteral(state) {
10222
+ let eventData;
10223
+ if (state.events) {
10224
+ const result = state.events.enter?.("AllowMultiLineImplicitObjectLiteral", state);
10225
+ if (result) {
10226
+ if (result.cache)
10227
+ return result.cache;
10228
+ eventData = result.data;
10229
+ }
10230
+ }
10231
+ if (state.tokenize) {
10232
+ const result = $TOKEN("AllowMultiLineImplicitObjectLiteral", state, AllowMultiLineImplicitObjectLiteral$0(state));
10233
+ if (state.events)
10234
+ state.events.exit?.("AllowMultiLineImplicitObjectLiteral", state, result, eventData);
10235
+ return result;
10236
+ } else {
10237
+ const result = AllowMultiLineImplicitObjectLiteral$0(state);
10238
+ if (state.events)
10239
+ state.events.exit?.("AllowMultiLineImplicitObjectLiteral", state, result, eventData);
10240
+ return result;
10241
+ }
10242
+ }
10243
+ var RestoreMultiLineImplicitObjectLiteral$0 = $TV($EXPECT($L18, fail, 'RestoreMultiLineImplicitObjectLiteral ""'), function($skip, $loc, $0, $1) {
10244
+ module.forbidMultiLineImplicitObjectLiteral.pop();
10245
+ });
10246
+ function RestoreMultiLineImplicitObjectLiteral(state) {
10247
+ let eventData;
10248
+ if (state.events) {
10249
+ const result = state.events.enter?.("RestoreMultiLineImplicitObjectLiteral", state);
10250
+ if (result) {
10251
+ if (result.cache)
10252
+ return result.cache;
10253
+ eventData = result.data;
10254
+ }
10255
+ }
10256
+ if (state.tokenize) {
10257
+ const result = $TOKEN("RestoreMultiLineImplicitObjectLiteral", state, RestoreMultiLineImplicitObjectLiteral$0(state));
10258
+ if (state.events)
10259
+ state.events.exit?.("RestoreMultiLineImplicitObjectLiteral", state, result, eventData);
10260
+ return result;
10261
+ } else {
10262
+ const result = RestoreMultiLineImplicitObjectLiteral$0(state);
10263
+ if (state.events)
10264
+ state.events.exit?.("RestoreMultiLineImplicitObjectLiteral", state, result, eventData);
10265
+ return result;
10266
+ }
10267
+ }
10268
+ var MultiLineImplicitObjectLiteralAllowed$0 = $TV($EXPECT($L18, fail, 'MultiLineImplicitObjectLiteralAllowed ""'), function($skip, $loc, $0, $1) {
10269
+ if (module.config.verbose) {
10270
+ console.log("forbidMultiLineImplicitObjectLiteral:", module.forbidMultiLineImplicitObjectLiteral);
10271
+ }
10272
+ if (module.multiLineImplicitObjectLiteralForbidden)
10273
+ return $skip;
10274
+ });
10275
+ function MultiLineImplicitObjectLiteralAllowed(state) {
10276
+ let eventData;
10277
+ if (state.events) {
10278
+ const result = state.events.enter?.("MultiLineImplicitObjectLiteralAllowed", state);
10279
+ if (result) {
10280
+ if (result.cache)
10281
+ return result.cache;
10282
+ eventData = result.data;
10283
+ }
10284
+ }
10285
+ if (state.tokenize) {
10286
+ const result = $TOKEN("MultiLineImplicitObjectLiteralAllowed", state, MultiLineImplicitObjectLiteralAllowed$0(state));
10287
+ if (state.events)
10288
+ state.events.exit?.("MultiLineImplicitObjectLiteralAllowed", state, result, eventData);
10289
+ return result;
10290
+ } else {
10291
+ const result = MultiLineImplicitObjectLiteralAllowed$0(state);
10292
+ if (state.events)
10293
+ state.events.exit?.("MultiLineImplicitObjectLiteralAllowed", state, result, eventData);
10294
+ return result;
10295
+ }
10296
+ }
10297
+ var AllowAll$0 = $S(AllowTrailingMemberProperty, AllowIndentedApplication, AllowMultiLineImplicitObjectLiteral);
10298
+ function AllowAll(state) {
10299
+ let eventData;
10300
+ if (state.events) {
10301
+ const result = state.events.enter?.("AllowAll", state);
10302
+ if (result) {
10303
+ if (result.cache)
10304
+ return result.cache;
10305
+ eventData = result.data;
10306
+ }
10307
+ }
10308
+ if (state.tokenize) {
10309
+ const result = $TOKEN("AllowAll", state, AllowAll$0(state));
10310
+ if (state.events)
10311
+ state.events.exit?.("AllowAll", state, result, eventData);
10312
+ return result;
10313
+ } else {
10314
+ const result = AllowAll$0(state);
10315
+ if (state.events)
10316
+ state.events.exit?.("AllowAll", state, result, eventData);
10317
+ return result;
10318
+ }
10319
+ }
10320
+ var RestoreAll$0 = $S(RestoreTrailingMemberProperty, RestoreIndentedApplication, RestoreMultiLineImplicitObjectLiteral);
10321
+ function RestoreAll(state) {
10322
+ let eventData;
10323
+ if (state.events) {
10324
+ const result = state.events.enter?.("RestoreAll", state);
10325
+ if (result) {
10326
+ if (result.cache)
10327
+ return result.cache;
10328
+ eventData = result.data;
10329
+ }
10330
+ }
10331
+ if (state.tokenize) {
10332
+ const result = $TOKEN("RestoreAll", state, RestoreAll$0(state));
10333
+ if (state.events)
10334
+ state.events.exit?.("RestoreAll", state, result, eventData);
10335
+ return result;
10336
+ } else {
10337
+ const result = RestoreAll$0(state);
10338
+ if (state.events)
10339
+ state.events.exit?.("RestoreAll", state, result, eventData);
10340
+ return result;
10341
+ }
10342
+ }
9941
10343
  var ExpressionStatement$0 = Expression;
9942
10344
  function ExpressionStatement(state) {
9943
10345
  let eventData;
@@ -9961,13 +10363,13 @@ ${input.slice(result.pos)}
9961
10363
  return result;
9962
10364
  }
9963
10365
  }
9964
- var KeywordStatement$0 = $T($S($EXPECT($L86, fail, 'KeywordStatement "break"'), NonIdContinue), function(value) {
10366
+ var KeywordStatement$0 = $T($S($EXPECT($L87, fail, 'KeywordStatement "break"'), NonIdContinue), function(value) {
9965
10367
  return { "type": "BreakStatement", "children": value };
9966
10368
  });
9967
- var KeywordStatement$1 = $T($S($EXPECT($L87, fail, 'KeywordStatement "continue"'), NonIdContinue), function(value) {
10369
+ var KeywordStatement$1 = $T($S($EXPECT($L88, fail, 'KeywordStatement "continue"'), NonIdContinue), function(value) {
9968
10370
  return { "type": "ContinueStatement", "children": value };
9969
10371
  });
9970
- var KeywordStatement$2 = $T($S($EXPECT($L88, fail, 'KeywordStatement "debugger"'), NonIdContinue), function(value) {
10372
+ var KeywordStatement$2 = $T($S($EXPECT($L89, fail, 'KeywordStatement "debugger"'), NonIdContinue), function(value) {
9971
10373
  return { "type": "DebuggerStatement", "children": value };
9972
10374
  });
9973
10375
  var KeywordStatement$3 = $T($S(Return, $E(MaybeNestedExpression)), function(value) {
@@ -9998,7 +10400,7 @@ ${input.slice(result.pos)}
9998
10400
  return result;
9999
10401
  }
10000
10402
  }
10001
- var DebuggerExpression$0 = $TS($S($EXPECT($L88, fail, 'DebuggerExpression "debugger"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10403
+ var DebuggerExpression$0 = $TS($S($EXPECT($L89, fail, 'DebuggerExpression "debugger"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10002
10404
  return {
10003
10405
  type: "DebuggerExpression",
10004
10406
  children: ["(()=>{", $1, "})()"]
@@ -10275,7 +10677,7 @@ ${input.slice(result.pos)}
10275
10677
  return result;
10276
10678
  }
10277
10679
  }
10278
- var ImportAssertion$0 = $S($E(_), $EXPECT($L89, fail, 'ImportAssertion "assert"'), NonIdContinue, $E(_), ObjectLiteral);
10680
+ var ImportAssertion$0 = $S($E(_), $EXPECT($L90, fail, 'ImportAssertion "assert"'), NonIdContinue, $E(_), ObjectLiteral);
10279
10681
  function ImportAssertion(state) {
10280
10682
  let eventData;
10281
10683
  if (state.events) {
@@ -10879,7 +11281,7 @@ ${input.slice(result.pos)}
10879
11281
  return result;
10880
11282
  }
10881
11283
  }
10882
- var ConstAssignment$0 = $TV($EXPECT($L90, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
11284
+ var ConstAssignment$0 = $TV($EXPECT($L91, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
10883
11285
  return { $loc, token: "=" };
10884
11286
  });
10885
11287
  function ConstAssignment(state) {
@@ -10904,7 +11306,7 @@ ${input.slice(result.pos)}
10904
11306
  return result;
10905
11307
  }
10906
11308
  }
10907
- var LetAssignment$0 = $TV($EXPECT($L91, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
11309
+ var LetAssignment$0 = $TV($EXPECT($L92, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
10908
11310
  return { $loc, token: "=" };
10909
11311
  });
10910
11312
  function LetAssignment(state) {
@@ -12169,7 +12571,7 @@ ${input.slice(result.pos)}
12169
12571
  return result;
12170
12572
  }
12171
12573
  }
12172
- var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L92, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L93, fail, 'JSMultiLineComment "*/"')), $EXPECT($R42, fail, "JSMultiLineComment /./"))), $EXPECT($L93, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
12574
+ var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L93, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L94, fail, 'JSMultiLineComment "*/"')), $EXPECT($R42, fail, "JSMultiLineComment /./"))), $EXPECT($L94, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
12173
12575
  return { $loc, token: $1 };
12174
12576
  });
12175
12577
  function JSMultiLineComment(state) {
@@ -12268,7 +12670,7 @@ ${input.slice(result.pos)}
12268
12670
  return result;
12269
12671
  }
12270
12672
  }
12271
- var InlineComment$0 = $TV($TEXT($S($EXPECT($L92, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L93, fail, 'InlineComment "*/"')), $EXPECT($R46, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L93, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
12673
+ var InlineComment$0 = $TV($TEXT($S($EXPECT($L93, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L94, fail, 'InlineComment "*/"')), $EXPECT($R46, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L94, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
12272
12674
  return { $loc, token: $1 };
12273
12675
  });
12274
12676
  function InlineComment(state) {
@@ -12367,7 +12769,7 @@ ${input.slice(result.pos)}
12367
12769
  var NonNewlineWhitespace$0 = $TR($EXPECT($R47, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
12368
12770
  return { $loc, token: $0 };
12369
12771
  });
12370
- var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L94, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
12772
+ var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L95, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
12371
12773
  return "";
12372
12774
  });
12373
12775
  function NonNewlineWhitespace(state) {
@@ -12519,7 +12921,7 @@ ${input.slice(result.pos)}
12519
12921
  }
12520
12922
  }
12521
12923
  var StatementDelimiter$0 = SemicolonDelimiter;
12522
- var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L2, fail, 'StatementDelimiter "("'), $EXPECT($L95, fail, 'StatementDelimiter "["'), $EXPECT($L96, fail, 'StatementDelimiter "`"'), $EXPECT($L57, fail, 'StatementDelimiter "+"'), $EXPECT($L16, fail, 'StatementDelimiter "-"'), $EXPECT($L53, fail, 'StatementDelimiter "*"'), $EXPECT($L54, fail, 'StatementDelimiter "/"'), ObjectLiteral, Arrow, $S(Function, $E($S($E(_), Star)), $E(_), $EXPECT($L2, fail, 'StatementDelimiter "("'))))), InsertSemicolon);
12924
+ var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L2, fail, 'StatementDelimiter "("'), $EXPECT($L96, fail, 'StatementDelimiter "["'), $EXPECT($L97, fail, 'StatementDelimiter "`"'), $EXPECT($L57, fail, 'StatementDelimiter "+"'), $EXPECT($L16, fail, 'StatementDelimiter "-"'), $EXPECT($L53, fail, 'StatementDelimiter "*"'), $EXPECT($L54, fail, 'StatementDelimiter "/"'), ObjectLiteral, Arrow, $S(Function, $E($S($E(_), Star)), $E(_), $EXPECT($L2, fail, 'StatementDelimiter "("'))))), InsertSemicolon);
12523
12925
  var StatementDelimiter$2 = $Y(EOS);
12524
12926
  function StatementDelimiter(state) {
12525
12927
  let eventData;
@@ -12619,7 +13021,7 @@ ${input.slice(result.pos)}
12619
13021
  return result;
12620
13022
  }
12621
13023
  }
12622
- var Abstract$0 = $TV($TEXT($S($EXPECT($L97, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L8, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
13024
+ var Abstract$0 = $TV($TEXT($S($EXPECT($L98, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L8, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
12623
13025
  return { $loc, token: $1, ts: true };
12624
13026
  });
12625
13027
  function Abstract(state) {
@@ -12669,7 +13071,7 @@ ${input.slice(result.pos)}
12669
13071
  return result;
12670
13072
  }
12671
13073
  }
12672
- var As$0 = $TS($S($EXPECT($L98, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13074
+ var As$0 = $TS($S($EXPECT($L99, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12673
13075
  return { $loc, token: $1 };
12674
13076
  });
12675
13077
  function As(state) {
@@ -12694,7 +13096,7 @@ ${input.slice(result.pos)}
12694
13096
  return result;
12695
13097
  }
12696
13098
  }
12697
- var At$0 = $TV($EXPECT($L99, fail, 'At "@"'), function($skip, $loc, $0, $1) {
13099
+ var At$0 = $TV($EXPECT($L100, fail, 'At "@"'), function($skip, $loc, $0, $1) {
12698
13100
  return { $loc, token: $1 };
12699
13101
  });
12700
13102
  function At(state) {
@@ -12719,7 +13121,7 @@ ${input.slice(result.pos)}
12719
13121
  return result;
12720
13122
  }
12721
13123
  }
12722
- var AtAt$0 = $TV($EXPECT($L100, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
13124
+ var AtAt$0 = $TV($EXPECT($L101, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
12723
13125
  return { $loc, token: "@" };
12724
13126
  });
12725
13127
  function AtAt(state) {
@@ -12744,7 +13146,7 @@ ${input.slice(result.pos)}
12744
13146
  return result;
12745
13147
  }
12746
13148
  }
12747
- var Async$0 = $TS($S($EXPECT($L101, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13149
+ var Async$0 = $TS($S($EXPECT($L102, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12748
13150
  return { $loc, token: $1, type: "Async" };
12749
13151
  });
12750
13152
  function Async(state) {
@@ -12769,7 +13171,7 @@ ${input.slice(result.pos)}
12769
13171
  return result;
12770
13172
  }
12771
13173
  }
12772
- var Await$0 = $TS($S($EXPECT($L102, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13174
+ var Await$0 = $TS($S($EXPECT($L103, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12773
13175
  return { $loc, token: $1 };
12774
13176
  });
12775
13177
  function Await(state) {
@@ -12794,7 +13196,7 @@ ${input.slice(result.pos)}
12794
13196
  return result;
12795
13197
  }
12796
13198
  }
12797
- var Backtick$0 = $TV($EXPECT($L96, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
13199
+ var Backtick$0 = $TV($EXPECT($L97, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
12798
13200
  return { $loc, token: $1 };
12799
13201
  });
12800
13202
  function Backtick(state) {
@@ -12819,7 +13221,7 @@ ${input.slice(result.pos)}
12819
13221
  return result;
12820
13222
  }
12821
13223
  }
12822
- var By$0 = $TS($S($EXPECT($L103, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13224
+ var By$0 = $TS($S($EXPECT($L104, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12823
13225
  return { $loc, token: $1 };
12824
13226
  });
12825
13227
  function By(state) {
@@ -12844,7 +13246,7 @@ ${input.slice(result.pos)}
12844
13246
  return result;
12845
13247
  }
12846
13248
  }
12847
- var Case$0 = $TS($S($EXPECT($L104, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13249
+ var Case$0 = $TS($S($EXPECT($L105, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12848
13250
  return { $loc, token: $1 };
12849
13251
  });
12850
13252
  function Case(state) {
@@ -12869,7 +13271,7 @@ ${input.slice(result.pos)}
12869
13271
  return result;
12870
13272
  }
12871
13273
  }
12872
- var Catch$0 = $TS($S($EXPECT($L105, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13274
+ var Catch$0 = $TS($S($EXPECT($L106, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12873
13275
  return { $loc, token: $1 };
12874
13276
  });
12875
13277
  function Catch(state) {
@@ -12894,7 +13296,7 @@ ${input.slice(result.pos)}
12894
13296
  return result;
12895
13297
  }
12896
13298
  }
12897
- var Class$0 = $TS($S($EXPECT($L106, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13299
+ var Class$0 = $TS($S($EXPECT($L107, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12898
13300
  return { $loc, token: $1 };
12899
13301
  });
12900
13302
  function Class(state) {
@@ -12994,7 +13396,7 @@ ${input.slice(result.pos)}
12994
13396
  return result;
12995
13397
  }
12996
13398
  }
12997
- var CoffeeSubstitutionStart$0 = $TV($EXPECT($L107, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
13399
+ var CoffeeSubstitutionStart$0 = $TV($EXPECT($L108, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
12998
13400
  return { $loc, token: "${" };
12999
13401
  });
13000
13402
  function CoffeeSubstitutionStart(state) {
@@ -13069,7 +13471,7 @@ ${input.slice(result.pos)}
13069
13471
  return result;
13070
13472
  }
13071
13473
  }
13072
- var ConstructorShorthand$0 = $TV($EXPECT($L99, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
13474
+ var ConstructorShorthand$0 = $TV($EXPECT($L100, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
13073
13475
  return { $loc, token: "constructor" };
13074
13476
  });
13075
13477
  function ConstructorShorthand(state) {
@@ -13094,7 +13496,7 @@ ${input.slice(result.pos)}
13094
13496
  return result;
13095
13497
  }
13096
13498
  }
13097
- var Declare$0 = $TS($S($EXPECT($L108, fail, 'Declare "declare"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13499
+ var Declare$0 = $TS($S($EXPECT($L109, fail, 'Declare "declare"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13098
13500
  return { $loc, token: $1 };
13099
13501
  });
13100
13502
  function Declare(state) {
@@ -13119,7 +13521,7 @@ ${input.slice(result.pos)}
13119
13521
  return result;
13120
13522
  }
13121
13523
  }
13122
- var Default$0 = $TS($S($EXPECT($L109, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13524
+ var Default$0 = $TS($S($EXPECT($L110, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13123
13525
  return { $loc, token: $1 };
13124
13526
  });
13125
13527
  function Default(state) {
@@ -13144,7 +13546,7 @@ ${input.slice(result.pos)}
13144
13546
  return result;
13145
13547
  }
13146
13548
  }
13147
- var Delete$0 = $TS($S($EXPECT($L110, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13549
+ var Delete$0 = $TS($S($EXPECT($L111, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13148
13550
  return { $loc, token: $1 };
13149
13551
  });
13150
13552
  function Delete(state) {
@@ -13169,7 +13571,7 @@ ${input.slice(result.pos)}
13169
13571
  return result;
13170
13572
  }
13171
13573
  }
13172
- var Do$0 = $TS($S($EXPECT($L111, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13574
+ var Do$0 = $TS($S($EXPECT($L112, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13173
13575
  return { $loc, token: $1 };
13174
13576
  });
13175
13577
  function Do(state) {
@@ -13219,7 +13621,7 @@ ${input.slice(result.pos)}
13219
13621
  return result;
13220
13622
  }
13221
13623
  }
13222
- var DotDot$0 = $TV($EXPECT($L112, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
13624
+ var DotDot$0 = $TV($EXPECT($L113, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
13223
13625
  return { $loc, token: $1 };
13224
13626
  });
13225
13627
  function DotDot(state) {
@@ -13244,7 +13646,7 @@ ${input.slice(result.pos)}
13244
13646
  return result;
13245
13647
  }
13246
13648
  }
13247
- var DotDotDot$0 = $TV($EXPECT($L113, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
13649
+ var DotDotDot$0 = $TV($EXPECT($L114, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
13248
13650
  return { $loc, token: $1 };
13249
13651
  });
13250
13652
  function DotDotDot(state) {
@@ -13269,7 +13671,7 @@ ${input.slice(result.pos)}
13269
13671
  return result;
13270
13672
  }
13271
13673
  }
13272
- var DoubleColon$0 = $TV($EXPECT($L114, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
13674
+ var DoubleColon$0 = $TV($EXPECT($L115, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
13273
13675
  return { $loc, token: $1 };
13274
13676
  });
13275
13677
  function DoubleColon(state) {
@@ -13294,7 +13696,7 @@ ${input.slice(result.pos)}
13294
13696
  return result;
13295
13697
  }
13296
13698
  }
13297
- var DoubleQuote$0 = $TV($EXPECT($L115, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
13699
+ var DoubleQuote$0 = $TV($EXPECT($L116, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
13298
13700
  return { $loc, token: $1 };
13299
13701
  });
13300
13702
  function DoubleQuote(state) {
@@ -13319,7 +13721,7 @@ ${input.slice(result.pos)}
13319
13721
  return result;
13320
13722
  }
13321
13723
  }
13322
- var Else$0 = $TS($S($EXPECT($L116, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13724
+ var Else$0 = $TS($S($EXPECT($L117, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13323
13725
  return { $loc, token: $1 };
13324
13726
  });
13325
13727
  function Else(state) {
@@ -13369,7 +13771,7 @@ ${input.slice(result.pos)}
13369
13771
  return result;
13370
13772
  }
13371
13773
  }
13372
- var Export$0 = $TS($S($EXPECT($L117, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13774
+ var Export$0 = $TS($S($EXPECT($L118, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13373
13775
  return { $loc, token: $1 };
13374
13776
  });
13375
13777
  function Export(state) {
@@ -13394,7 +13796,7 @@ ${input.slice(result.pos)}
13394
13796
  return result;
13395
13797
  }
13396
13798
  }
13397
- var Extends$0 = $TS($S($EXPECT($L118, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13799
+ var Extends$0 = $TS($S($EXPECT($L119, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13398
13800
  return { $loc, token: $1 };
13399
13801
  });
13400
13802
  function Extends(state) {
@@ -13419,7 +13821,7 @@ ${input.slice(result.pos)}
13419
13821
  return result;
13420
13822
  }
13421
13823
  }
13422
- var Finally$0 = $TS($S($EXPECT($L119, fail, 'Finally "finally"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13824
+ var Finally$0 = $TS($S($EXPECT($L120, fail, 'Finally "finally"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13423
13825
  return { $loc, token: $1 };
13424
13826
  });
13425
13827
  function Finally(state) {
@@ -13444,7 +13846,7 @@ ${input.slice(result.pos)}
13444
13846
  return result;
13445
13847
  }
13446
13848
  }
13447
- var For$0 = $TS($S($EXPECT($L120, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13849
+ var For$0 = $TS($S($EXPECT($L121, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13448
13850
  return { $loc, token: $1 };
13449
13851
  });
13450
13852
  function For(state) {
@@ -13469,7 +13871,7 @@ ${input.slice(result.pos)}
13469
13871
  return result;
13470
13872
  }
13471
13873
  }
13472
- var From$0 = $TS($S($EXPECT($L121, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13874
+ var From$0 = $TS($S($EXPECT($L122, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13473
13875
  return { $loc, token: $1 };
13474
13876
  });
13475
13877
  function From(state) {
@@ -13494,7 +13896,7 @@ ${input.slice(result.pos)}
13494
13896
  return result;
13495
13897
  }
13496
13898
  }
13497
- var Function$0 = $TS($S($EXPECT($L122, fail, 'Function "function"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13899
+ var Function$0 = $TS($S($EXPECT($L123, fail, 'Function "function"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13498
13900
  return { $loc, token: $1 };
13499
13901
  });
13500
13902
  function Function(state) {
@@ -13519,7 +13921,7 @@ ${input.slice(result.pos)}
13519
13921
  return result;
13520
13922
  }
13521
13923
  }
13522
- var GetOrSet$0 = $TS($S($C($EXPECT($L123, fail, 'GetOrSet "get"'), $EXPECT($L124, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13924
+ var GetOrSet$0 = $TS($S($C($EXPECT($L124, fail, 'GetOrSet "get"'), $EXPECT($L125, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13523
13925
  return { $loc, token: $1, type: "GetOrSet" };
13524
13926
  });
13525
13927
  function GetOrSet(state) {
@@ -13544,7 +13946,7 @@ ${input.slice(result.pos)}
13544
13946
  return result;
13545
13947
  }
13546
13948
  }
13547
- var If$0 = $TV($TEXT($S($EXPECT($L125, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L8, fail, 'If " "')))), function($skip, $loc, $0, $1) {
13949
+ var If$0 = $TV($TEXT($S($EXPECT($L126, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L8, fail, 'If " "')))), function($skip, $loc, $0, $1) {
13548
13950
  return { $loc, token: $1 };
13549
13951
  });
13550
13952
  function If(state) {
@@ -13619,7 +14021,7 @@ ${input.slice(result.pos)}
13619
14021
  return result;
13620
14022
  }
13621
14023
  }
13622
- var LetOrConst$0 = $TS($S($C($EXPECT($L126, fail, 'LetOrConst "let"'), $EXPECT($L127, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14024
+ var LetOrConst$0 = $TS($S($C($EXPECT($L127, fail, 'LetOrConst "let"'), $EXPECT($L128, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13623
14025
  return { $loc, token: $1 };
13624
14026
  });
13625
14027
  function LetOrConst(state) {
@@ -13644,7 +14046,7 @@ ${input.slice(result.pos)}
13644
14046
  return result;
13645
14047
  }
13646
14048
  }
13647
- var Loop$0 = $TS($S($EXPECT($L128, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14049
+ var Loop$0 = $TS($S($EXPECT($L129, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13648
14050
  return { $loc, token: "while(true)" };
13649
14051
  });
13650
14052
  function Loop(state) {
@@ -13669,7 +14071,7 @@ ${input.slice(result.pos)}
13669
14071
  return result;
13670
14072
  }
13671
14073
  }
13672
- var New$0 = $TS($S($EXPECT($L129, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14074
+ var New$0 = $TS($S($EXPECT($L130, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13673
14075
  return { $loc, token: $1 };
13674
14076
  });
13675
14077
  function New(state) {
@@ -13744,7 +14146,7 @@ ${input.slice(result.pos)}
13744
14146
  return result;
13745
14147
  }
13746
14148
  }
13747
- var OpenAngleBracket$0 = $TV($EXPECT($L130, fail, 'OpenAngleBracket "<"'), function($skip, $loc, $0, $1) {
14149
+ var OpenAngleBracket$0 = $TV($EXPECT($L131, fail, 'OpenAngleBracket "<"'), function($skip, $loc, $0, $1) {
13748
14150
  return { $loc, token: $1 };
13749
14151
  });
13750
14152
  function OpenAngleBracket(state) {
@@ -13769,7 +14171,7 @@ ${input.slice(result.pos)}
13769
14171
  return result;
13770
14172
  }
13771
14173
  }
13772
- var OpenBrace$0 = $TV($EXPECT($L131, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
14174
+ var OpenBrace$0 = $TV($EXPECT($L132, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
13773
14175
  return { $loc, token: $1 };
13774
14176
  });
13775
14177
  function OpenBrace(state) {
@@ -13794,7 +14196,7 @@ ${input.slice(result.pos)}
13794
14196
  return result;
13795
14197
  }
13796
14198
  }
13797
- var OpenBracket$0 = $TV($EXPECT($L95, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
14199
+ var OpenBracket$0 = $TV($EXPECT($L96, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
13798
14200
  return { $loc, token: $1 };
13799
14201
  });
13800
14202
  function OpenBracket(state) {
@@ -13844,7 +14246,7 @@ ${input.slice(result.pos)}
13844
14246
  return result;
13845
14247
  }
13846
14248
  }
13847
- var Operator$0 = $TS($S($EXPECT($L132, fail, 'Operator "operator"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14249
+ var Operator$0 = $TS($S($EXPECT($L133, fail, 'Operator "operator"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13848
14250
  return { $loc, token: $1 };
13849
14251
  });
13850
14252
  function Operator(state) {
@@ -13869,7 +14271,7 @@ ${input.slice(result.pos)}
13869
14271
  return result;
13870
14272
  }
13871
14273
  }
13872
- var Public$0 = $TS($S($EXPECT($L133, fail, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14274
+ var Public$0 = $TS($S($EXPECT($L134, fail, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13873
14275
  return { $loc, token: $1 };
13874
14276
  });
13875
14277
  function Public(state) {
@@ -13894,7 +14296,7 @@ ${input.slice(result.pos)}
13894
14296
  return result;
13895
14297
  }
13896
14298
  }
13897
- var Private$0 = $TS($S($EXPECT($L134, fail, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14299
+ var Private$0 = $TS($S($EXPECT($L135, fail, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13898
14300
  return { $loc, token: $1 };
13899
14301
  });
13900
14302
  function Private(state) {
@@ -13919,7 +14321,7 @@ ${input.slice(result.pos)}
13919
14321
  return result;
13920
14322
  }
13921
14323
  }
13922
- var Protected$0 = $TS($S($EXPECT($L135, fail, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14324
+ var Protected$0 = $TS($S($EXPECT($L136, fail, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13923
14325
  return { $loc, token: $1 };
13924
14326
  });
13925
14327
  function Protected(state) {
@@ -13944,13 +14346,13 @@ ${input.slice(result.pos)}
13944
14346
  return result;
13945
14347
  }
13946
14348
  }
13947
- var Pipe$0 = $TV($EXPECT($L136, fail, 'Pipe "||>"'), function($skip, $loc, $0, $1) {
14349
+ var Pipe$0 = $TV($EXPECT($L137, fail, 'Pipe "||>"'), function($skip, $loc, $0, $1) {
13948
14350
  return { $loc, token: $1 };
13949
14351
  });
13950
- var Pipe$1 = $TV($EXPECT($L137, fail, 'Pipe "|>="'), function($skip, $loc, $0, $1) {
14352
+ var Pipe$1 = $TV($EXPECT($L138, fail, 'Pipe "|>="'), function($skip, $loc, $0, $1) {
13951
14353
  return { $loc, token: $1 };
13952
14354
  });
13953
- var Pipe$2 = $TV($EXPECT($L138, fail, 'Pipe "|>"'), function($skip, $loc, $0, $1) {
14355
+ var Pipe$2 = $TV($EXPECT($L139, fail, 'Pipe "|>"'), function($skip, $loc, $0, $1) {
13954
14356
  return { $loc, token: $1 };
13955
14357
  });
13956
14358
  function Pipe(state) {
@@ -14000,7 +14402,7 @@ ${input.slice(result.pos)}
14000
14402
  return result;
14001
14403
  }
14002
14404
  }
14003
- var Readonly$0 = $TS($S($EXPECT($L139, fail, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14405
+ var Readonly$0 = $TS($S($EXPECT($L140, fail, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14004
14406
  return { $loc, token: $1, ts: true };
14005
14407
  });
14006
14408
  function Readonly(state) {
@@ -14025,7 +14427,7 @@ ${input.slice(result.pos)}
14025
14427
  return result;
14026
14428
  }
14027
14429
  }
14028
- var Return$0 = $TS($S($EXPECT($L140, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14430
+ var Return$0 = $TS($S($EXPECT($L141, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14029
14431
  return { $loc, token: $1 };
14030
14432
  });
14031
14433
  function Return(state) {
@@ -14050,7 +14452,7 @@ ${input.slice(result.pos)}
14050
14452
  return result;
14051
14453
  }
14052
14454
  }
14053
- var Satisfies$0 = $TS($S($EXPECT($L141, fail, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14455
+ var Satisfies$0 = $TS($S($EXPECT($L142, fail, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14054
14456
  return { $loc, token: $1 };
14055
14457
  });
14056
14458
  function Satisfies(state) {
@@ -14100,7 +14502,7 @@ ${input.slice(result.pos)}
14100
14502
  return result;
14101
14503
  }
14102
14504
  }
14103
- var SingleQuote$0 = $TV($EXPECT($L142, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
14505
+ var SingleQuote$0 = $TV($EXPECT($L143, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
14104
14506
  return { $loc, token: $1 };
14105
14507
  });
14106
14508
  function SingleQuote(state) {
@@ -14150,10 +14552,10 @@ ${input.slice(result.pos)}
14150
14552
  return result;
14151
14553
  }
14152
14554
  }
14153
- var Static$0 = $TS($S($EXPECT($L143, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14555
+ var Static$0 = $TS($S($EXPECT($L144, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14154
14556
  return { $loc, token: $1 };
14155
14557
  });
14156
- var Static$1 = $TS($S($EXPECT($L99, fail, 'Static "@"'), $N($C($EXPECT($L2, fail, 'Static "("'), $EXPECT($L99, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
14558
+ var Static$1 = $TS($S($EXPECT($L100, fail, 'Static "@"'), $N($C($EXPECT($L2, fail, 'Static "("'), $EXPECT($L100, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
14157
14559
  return { $loc, token: "static " };
14158
14560
  });
14159
14561
  function Static(state) {
@@ -14178,7 +14580,7 @@ ${input.slice(result.pos)}
14178
14580
  return result;
14179
14581
  }
14180
14582
  }
14181
- var SubstitutionStart$0 = $TV($EXPECT($L144, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
14583
+ var SubstitutionStart$0 = $TV($EXPECT($L145, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
14182
14584
  return { $loc, token: $1 };
14183
14585
  });
14184
14586
  function SubstitutionStart(state) {
@@ -14203,7 +14605,7 @@ ${input.slice(result.pos)}
14203
14605
  return result;
14204
14606
  }
14205
14607
  }
14206
- var Switch$0 = $TS($S($EXPECT($L145, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14608
+ var Switch$0 = $TS($S($EXPECT($L146, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14207
14609
  return { $loc, token: $1 };
14208
14610
  });
14209
14611
  function Switch(state) {
@@ -14228,7 +14630,7 @@ ${input.slice(result.pos)}
14228
14630
  return result;
14229
14631
  }
14230
14632
  }
14231
- var Target$0 = $TS($S($EXPECT($L146, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14633
+ var Target$0 = $TS($S($EXPECT($L147, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14232
14634
  return { $loc, token: $1 };
14233
14635
  });
14234
14636
  function Target(state) {
@@ -14253,7 +14655,7 @@ ${input.slice(result.pos)}
14253
14655
  return result;
14254
14656
  }
14255
14657
  }
14256
- var Then$0 = $TS($S(__, $EXPECT($L147, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
14658
+ var Then$0 = $TS($S(__, $EXPECT($L148, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
14257
14659
  return { $loc, token: "" };
14258
14660
  });
14259
14661
  function Then(state) {
@@ -14278,7 +14680,7 @@ ${input.slice(result.pos)}
14278
14680
  return result;
14279
14681
  }
14280
14682
  }
14281
- var This$0 = $TS($S($EXPECT($L148, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14683
+ var This$0 = $TS($S($EXPECT($L149, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14282
14684
  return { $loc, token: $1 };
14283
14685
  });
14284
14686
  function This(state) {
@@ -14303,7 +14705,7 @@ ${input.slice(result.pos)}
14303
14705
  return result;
14304
14706
  }
14305
14707
  }
14306
- var Throw$0 = $TS($S($EXPECT($L149, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14708
+ var Throw$0 = $TS($S($EXPECT($L150, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14307
14709
  return { $loc, token: $1 };
14308
14710
  });
14309
14711
  function Throw(state) {
@@ -14328,7 +14730,7 @@ ${input.slice(result.pos)}
14328
14730
  return result;
14329
14731
  }
14330
14732
  }
14331
- var TripleDoubleQuote$0 = $TV($EXPECT($L150, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
14733
+ var TripleDoubleQuote$0 = $TV($EXPECT($L151, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
14332
14734
  return { $loc, token: "`" };
14333
14735
  });
14334
14736
  function TripleDoubleQuote(state) {
@@ -14353,7 +14755,7 @@ ${input.slice(result.pos)}
14353
14755
  return result;
14354
14756
  }
14355
14757
  }
14356
- var TripleSingleQuote$0 = $TV($EXPECT($L151, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
14758
+ var TripleSingleQuote$0 = $TV($EXPECT($L152, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
14357
14759
  return { $loc, token: "`" };
14358
14760
  });
14359
14761
  function TripleSingleQuote(state) {
@@ -14378,7 +14780,7 @@ ${input.slice(result.pos)}
14378
14780
  return result;
14379
14781
  }
14380
14782
  }
14381
- var TripleSlash$0 = $TV($EXPECT($L152, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
14783
+ var TripleSlash$0 = $TV($EXPECT($L153, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
14382
14784
  return { $loc, token: "/" };
14383
14785
  });
14384
14786
  function TripleSlash(state) {
@@ -14403,7 +14805,7 @@ ${input.slice(result.pos)}
14403
14805
  return result;
14404
14806
  }
14405
14807
  }
14406
- var TripleTick$0 = $TV($EXPECT($L153, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
14808
+ var TripleTick$0 = $TV($EXPECT($L154, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
14407
14809
  return { $loc, token: "`" };
14408
14810
  });
14409
14811
  function TripleTick(state) {
@@ -14428,7 +14830,7 @@ ${input.slice(result.pos)}
14428
14830
  return result;
14429
14831
  }
14430
14832
  }
14431
- var Try$0 = $TS($S($EXPECT($L154, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14833
+ var Try$0 = $TS($S($EXPECT($L155, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14432
14834
  return { $loc, token: $1 };
14433
14835
  });
14434
14836
  function Try(state) {
@@ -14453,7 +14855,7 @@ ${input.slice(result.pos)}
14453
14855
  return result;
14454
14856
  }
14455
14857
  }
14456
- var Typeof$0 = $TS($S($EXPECT($L155, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14858
+ var Typeof$0 = $TS($S($EXPECT($L156, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14457
14859
  return { $loc, token: $1 };
14458
14860
  });
14459
14861
  function Typeof(state) {
@@ -14478,7 +14880,7 @@ ${input.slice(result.pos)}
14478
14880
  return result;
14479
14881
  }
14480
14882
  }
14481
- var Unless$0 = $TS($S($EXPECT($L156, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14883
+ var Unless$0 = $TS($S($EXPECT($L157, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14482
14884
  return { $loc, token: $1 };
14483
14885
  });
14484
14886
  function Unless(state) {
@@ -14503,7 +14905,7 @@ ${input.slice(result.pos)}
14503
14905
  return result;
14504
14906
  }
14505
14907
  }
14506
- var Until$0 = $TS($S($EXPECT($L157, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14908
+ var Until$0 = $TS($S($EXPECT($L158, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14507
14909
  return { $loc, token: $1 };
14508
14910
  });
14509
14911
  function Until(state) {
@@ -14528,7 +14930,7 @@ ${input.slice(result.pos)}
14528
14930
  return result;
14529
14931
  }
14530
14932
  }
14531
- var Var$0 = $TS($S($EXPECT($L158, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14933
+ var Var$0 = $TS($S($EXPECT($L159, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14532
14934
  return { $loc, token: $1 };
14533
14935
  });
14534
14936
  function Var(state) {
@@ -14553,7 +14955,7 @@ ${input.slice(result.pos)}
14553
14955
  return result;
14554
14956
  }
14555
14957
  }
14556
- var Void$0 = $TS($S($EXPECT($L159, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14958
+ var Void$0 = $TS($S($EXPECT($L160, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14557
14959
  return { $loc, token: $1 };
14558
14960
  });
14559
14961
  function Void(state) {
@@ -14578,7 +14980,7 @@ ${input.slice(result.pos)}
14578
14980
  return result;
14579
14981
  }
14580
14982
  }
14581
- var When$0 = $TS($S($EXPECT($L160, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14983
+ var When$0 = $TS($S($EXPECT($L161, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14582
14984
  return { $loc, token: "case" };
14583
14985
  });
14584
14986
  function When(state) {
@@ -14603,7 +15005,7 @@ ${input.slice(result.pos)}
14603
15005
  return result;
14604
15006
  }
14605
15007
  }
14606
- var While$0 = $TS($S($EXPECT($L161, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15008
+ var While$0 = $TS($S($EXPECT($L162, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14607
15009
  return { $loc, token: $1 };
14608
15010
  });
14609
15011
  function While(state) {
@@ -14628,7 +15030,7 @@ ${input.slice(result.pos)}
14628
15030
  return result;
14629
15031
  }
14630
15032
  }
14631
- var Yield$0 = $TS($S($EXPECT($L162, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15033
+ var Yield$0 = $TS($S($EXPECT($L163, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14632
15034
  return { $loc, token: $1 };
14633
15035
  });
14634
15036
  function Yield(state) {
@@ -14721,11 +15123,10 @@ ${input.slice(result.pos)}
14721
15123
  }
14722
15124
  }
14723
15125
  var JSXElement$0 = JSXSelfClosingElement;
14724
- var JSXElement$1 = $TS($S($N(CoffeeJSXEnabled), PushJSXOpeningElement, $E(JSXMixedChildren), JSXOptionalClosingElement), function($skip, $loc, $0, $1, $2, $3, $4) {
15126
+ var JSXElement$1 = $TS($S($N(CoffeeJSXEnabled), PushJSXOpeningElement, $E(JSXMixedChildren), JSXOptionalClosingElement, PopJSXStack), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
14725
15127
  var open = $2;
14726
15128
  var children = $3;
14727
15129
  var close = $4;
14728
- module.JSXTagStack.pop();
14729
15130
  if (!children)
14730
15131
  return $skip;
14731
15132
  $0 = $0.slice(1);
@@ -14774,7 +15175,7 @@ ${input.slice(result.pos)}
14774
15175
  return result;
14775
15176
  }
14776
15177
  }
14777
- var JSXSelfClosingElement$0 = $TS($S($EXPECT($L130, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L163, fail, 'JSXSelfClosingElement "/>"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
15178
+ var JSXSelfClosingElement$0 = $TS($S($EXPECT($L131, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L164, fail, 'JSXSelfClosingElement "/>"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
14778
15179
  return { type: "JSXElement", children: $0, tag: $2 };
14779
15180
  });
14780
15181
  function JSXSelfClosingElement(state) {
@@ -14825,7 +15226,32 @@ ${input.slice(result.pos)}
14825
15226
  return result;
14826
15227
  }
14827
15228
  }
14828
- var JSXOpeningElement$0 = $S($EXPECT($L130, fail, 'JSXOpeningElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L29, fail, 'JSXOpeningElement ">"'));
15229
+ var PopJSXStack$0 = $TV($EXPECT($L18, fail, 'PopJSXStack ""'), function($skip, $loc, $0, $1) {
15230
+ module.JSXTagStack.pop();
15231
+ });
15232
+ function PopJSXStack(state) {
15233
+ let eventData;
15234
+ if (state.events) {
15235
+ const result = state.events.enter?.("PopJSXStack", state);
15236
+ if (result) {
15237
+ if (result.cache)
15238
+ return result.cache;
15239
+ eventData = result.data;
15240
+ }
15241
+ }
15242
+ if (state.tokenize) {
15243
+ const result = $TOKEN("PopJSXStack", state, PopJSXStack$0(state));
15244
+ if (state.events)
15245
+ state.events.exit?.("PopJSXStack", state, result, eventData);
15246
+ return result;
15247
+ } else {
15248
+ const result = PopJSXStack$0(state);
15249
+ if (state.events)
15250
+ state.events.exit?.("PopJSXStack", state, result, eventData);
15251
+ return result;
15252
+ }
15253
+ }
15254
+ var JSXOpeningElement$0 = $S($EXPECT($L131, fail, 'JSXOpeningElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L29, fail, 'JSXOpeningElement ">"'));
14829
15255
  function JSXOpeningElement(state) {
14830
15256
  let eventData;
14831
15257
  if (state.events) {
@@ -14877,7 +15303,7 @@ ${input.slice(result.pos)}
14877
15303
  return result;
14878
15304
  }
14879
15305
  }
14880
- var JSXClosingElement$0 = $S($EXPECT($L164, fail, 'JSXClosingElement "</"'), $E(Whitespace), $TEXT(JSXElementName), $E(Whitespace), $EXPECT($L29, fail, 'JSXClosingElement ">"'));
15306
+ var JSXClosingElement$0 = $S($EXPECT($L165, fail, 'JSXClosingElement "</"'), $E(Whitespace), $TEXT(JSXElementName), $E(Whitespace), $EXPECT($L29, fail, 'JSXClosingElement ">"'));
14881
15307
  function JSXClosingElement(state) {
14882
15308
  let eventData;
14883
15309
  if (state.events) {
@@ -14900,11 +15326,10 @@ ${input.slice(result.pos)}
14900
15326
  return result;
14901
15327
  }
14902
15328
  }
14903
- var JSXFragment$0 = $TS($S($N(CoffeeJSXEnabled), PushJSXOpeningFragment, $E(JSXMixedChildren), JSXOptionalClosingFragment), function($skip, $loc, $0, $1, $2, $3, $4) {
15329
+ var JSXFragment$0 = $TS($S($N(CoffeeJSXEnabled), PushJSXOpeningFragment, $E(JSXMixedChildren), JSXOptionalClosingFragment, PopJSXStack), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
14904
15330
  var open = $2;
14905
15331
  var children = $3;
14906
15332
  var close = $4;
14907
- module.JSXTagStack.pop();
14908
15333
  if (!children)
14909
15334
  return $skip;
14910
15335
  $0 = $0.slice(1);
@@ -14916,7 +15341,7 @@ ${input.slice(result.pos)}
14916
15341
  ];
14917
15342
  return { type: "JSXFragment", children: parts, jsxChildren: children.jsxChildren };
14918
15343
  });
14919
- var JSXFragment$1 = $TS($S(CoffeeJSXEnabled, $EXPECT($L165, fail, 'JSXFragment "<>"'), $E(JSXChildren), $E(Whitespace), JSXClosingFragment), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
15344
+ var JSXFragment$1 = $TS($S(CoffeeJSXEnabled, $EXPECT($L166, fail, 'JSXFragment "<>"'), $E(JSXChildren), $E(Whitespace), JSXClosingFragment), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
14920
15345
  var children = $3;
14921
15346
  $0 = $0.slice(1);
14922
15347
  return {
@@ -14947,7 +15372,7 @@ ${input.slice(result.pos)}
14947
15372
  return result;
14948
15373
  }
14949
15374
  }
14950
- var PushJSXOpeningFragment$0 = $TV($EXPECT($L165, fail, 'PushJSXOpeningFragment "<>"'), function($skip, $loc, $0, $1) {
15375
+ var PushJSXOpeningFragment$0 = $TV($EXPECT($L166, fail, 'PushJSXOpeningFragment "<>"'), function($skip, $loc, $0, $1) {
14951
15376
  module.JSXTagStack.push("");
14952
15377
  return $1;
14953
15378
  });
@@ -15001,7 +15426,7 @@ ${input.slice(result.pos)}
15001
15426
  return result;
15002
15427
  }
15003
15428
  }
15004
- var JSXClosingFragment$0 = $EXPECT($L166, fail, 'JSXClosingFragment "</>"');
15429
+ var JSXClosingFragment$0 = $EXPECT($L167, fail, 'JSXClosingFragment "</>"');
15005
15430
  function JSXClosingFragment(state) {
15006
15431
  let eventData;
15007
15432
  if (state.events) {
@@ -15477,7 +15902,7 @@ ${input.slice(result.pos)}
15477
15902
  return result;
15478
15903
  }
15479
15904
  }
15480
- var InlineJSXUnaryOp$0 = $TR($EXPECT($R9, fail, "InlineJSXUnaryOp /[!~+-](?!\\s|[!~+-]*&)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
15905
+ var InlineJSXUnaryOp$0 = $TR($EXPECT($R54, fail, "InlineJSXUnaryOp /[!~+-](?!\\s|[!~+-]*&)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
15481
15906
  return { $loc, token: $0 };
15482
15907
  });
15483
15908
  function InlineJSXUnaryOp(state) {
@@ -15897,7 +16322,7 @@ ${input.slice(result.pos)}
15897
16322
  return result;
15898
16323
  }
15899
16324
  }
15900
- var JSXComment$0 = $TS($S($EXPECT($L167, fail, 'JSXComment "<!--"'), JSXCommentContent, $EXPECT($L168, fail, 'JSXComment "-->"')), function($skip, $loc, $0, $1, $2, $3) {
16325
+ var JSXComment$0 = $TS($S($EXPECT($L168, fail, 'JSXComment "<!--"'), JSXCommentContent, $EXPECT($L169, fail, 'JSXComment "-->"')), function($skip, $loc, $0, $1, $2, $3) {
15901
16326
  return ["{/*", $2, "*/}"];
15902
16327
  });
15903
16328
  function JSXComment(state) {
@@ -15922,7 +16347,7 @@ ${input.slice(result.pos)}
15922
16347
  return result;
15923
16348
  }
15924
16349
  }
15925
- var JSXCommentContent$0 = $TR($EXPECT($R54, fail, "JSXCommentContent /(?:-[^-]|[^-]*)*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
16350
+ var JSXCommentContent$0 = $TR($EXPECT($R55, fail, "JSXCommentContent /(?:-[^-]|[^-]*)*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
15926
16351
  return { $loc, token: $0.replace(/\*\//g, "* /") };
15927
16352
  });
15928
16353
  function JSXCommentContent(state) {
@@ -15947,7 +16372,7 @@ ${input.slice(result.pos)}
15947
16372
  return result;
15948
16373
  }
15949
16374
  }
15950
- var JSXText$0 = $TR($EXPECT($R55, fail, "JSXText /[^{}<>\\r\\n]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
16375
+ var JSXText$0 = $TR($EXPECT($R56, fail, "JSXText /[^{}<>\\r\\n]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
15951
16376
  return {
15952
16377
  type: "JSXText",
15953
16378
  token: $0,
@@ -16195,7 +16620,7 @@ ${input.slice(result.pos)}
16195
16620
  return result;
16196
16621
  }
16197
16622
  }
16198
- var TypeKeyword$0 = $S($EXPECT($L169, fail, 'TypeKeyword "type"'), NonIdContinue);
16623
+ var TypeKeyword$0 = $S($EXPECT($L170, fail, 'TypeKeyword "type"'), NonIdContinue);
16199
16624
  function TypeKeyword(state) {
16200
16625
  let eventData;
16201
16626
  if (state.events) {
@@ -16218,7 +16643,7 @@ ${input.slice(result.pos)}
16218
16643
  return result;
16219
16644
  }
16220
16645
  }
16221
- var Interface$0 = $S($EXPECT($L170, fail, 'Interface "interface"'), NonIdContinue);
16646
+ var Interface$0 = $S($EXPECT($L171, fail, 'Interface "interface"'), NonIdContinue);
16222
16647
  function Interface(state) {
16223
16648
  let eventData;
16224
16649
  if (state.events) {
@@ -16241,7 +16666,7 @@ ${input.slice(result.pos)}
16241
16666
  return result;
16242
16667
  }
16243
16668
  }
16244
- var Namespace$0 = $S($EXPECT($L171, fail, 'Namespace "namespace"'), NonIdContinue);
16669
+ var Namespace$0 = $S($EXPECT($L172, fail, 'Namespace "namespace"'), NonIdContinue);
16245
16670
  function Namespace(state) {
16246
16671
  let eventData;
16247
16672
  if (state.events) {
@@ -16489,7 +16914,7 @@ ${input.slice(result.pos)}
16489
16914
  return result;
16490
16915
  }
16491
16916
  }
16492
- var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R56, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L139, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R57, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
16917
+ var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R57, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L140, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R58, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
16493
16918
  function TypeIndexSignature(state) {
16494
16919
  let eventData;
16495
16920
  if (state.events) {
@@ -16561,7 +16986,7 @@ ${input.slice(result.pos)}
16561
16986
  return result;
16562
16987
  }
16563
16988
  }
16564
- var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($L172, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2, $3, $4) {
16989
+ var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($L173, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2, $3, $4) {
16565
16990
  const children = [...$1, $2];
16566
16991
  if ($3)
16567
16992
  children.push($3);
@@ -16720,10 +17145,10 @@ ${input.slice(result.pos)}
16720
17145
  return result;
16721
17146
  }
16722
17147
  }
16723
- var TypeUnaryOp$0 = $S($EXPECT($L173, fail, 'TypeUnaryOp "keyof"'), NonIdContinue);
16724
- var TypeUnaryOp$1 = $S($EXPECT($L155, fail, 'TypeUnaryOp "typeof"'), NonIdContinue);
16725
- var TypeUnaryOp$2 = $S($EXPECT($L174, fail, 'TypeUnaryOp "infer"'), NonIdContinue);
16726
- var TypeUnaryOp$3 = $S($EXPECT($L139, fail, 'TypeUnaryOp "readonly"'), NonIdContinue);
17148
+ var TypeUnaryOp$0 = $S($EXPECT($L174, fail, 'TypeUnaryOp "keyof"'), NonIdContinue);
17149
+ var TypeUnaryOp$1 = $S($EXPECT($L156, fail, 'TypeUnaryOp "typeof"'), NonIdContinue);
17150
+ var TypeUnaryOp$2 = $S($EXPECT($L175, fail, 'TypeUnaryOp "infer"'), NonIdContinue);
17151
+ var TypeUnaryOp$3 = $S($EXPECT($L140, fail, 'TypeUnaryOp "readonly"'), NonIdContinue);
16727
17152
  function TypeUnaryOp(state) {
16728
17153
  let eventData;
16729
17154
  if (state.events) {
@@ -16776,7 +17201,7 @@ ${input.slice(result.pos)}
16776
17201
  var TypePrimary$4 = $S($E(_), ImportType);
16777
17202
  var TypePrimary$5 = $S($E(_), TypeLiteral);
16778
17203
  var TypePrimary$6 = $S($E(_), IdentifierName, $Q($S(Dot, IdentifierName)), $E(TypeArguments));
16779
- var TypePrimary$7 = $S(__, OpenParen, Type, __, CloseParen);
17204
+ var TypePrimary$7 = $S(__, OpenParen, $C(Type, $S(EOS, Type)), __, CloseParen);
16780
17205
  function TypePrimary(state) {
16781
17206
  let eventData;
16782
17207
  if (state.events) {
@@ -16921,7 +17346,7 @@ ${input.slice(result.pos)}
16921
17346
  return result;
16922
17347
  }
16923
17348
  }
16924
- var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L118, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
17349
+ var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L119, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
16925
17350
  if ($2)
16926
17351
  return $0;
16927
17352
  return $1;
@@ -16950,10 +17375,10 @@ ${input.slice(result.pos)}
16950
17375
  }
16951
17376
  var TypeLiteral$0 = TemplateLiteral;
16952
17377
  var TypeLiteral$1 = Literal;
16953
- var TypeLiteral$2 = $TS($S($EXPECT($L159, fail, 'TypeLiteral "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
17378
+ var TypeLiteral$2 = $TS($S($EXPECT($L160, fail, 'TypeLiteral "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
16954
17379
  return { $loc, token: "void" };
16955
17380
  });
16956
- var TypeLiteral$3 = $TV($EXPECT($L175, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
17381
+ var TypeLiteral$3 = $TV($EXPECT($L176, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
16957
17382
  return { $loc, token: "[]" };
16958
17383
  });
16959
17384
  function TypeLiteral(state) {
@@ -17137,7 +17562,7 @@ ${input.slice(result.pos)}
17137
17562
  return result;
17138
17563
  }
17139
17564
  }
17140
- var TypeArguments$0 = $TS($S($EXPECT($L130, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L29, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
17565
+ var TypeArguments$0 = $TS($S($EXPECT($L131, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L29, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
17141
17566
  return { ts: true, children: $0 };
17142
17567
  });
17143
17568
  function TypeArguments(state) {
@@ -17208,7 +17633,7 @@ ${input.slice(result.pos)}
17208
17633
  return result;
17209
17634
  }
17210
17635
  }
17211
- var TypeParameters$0 = $TS($S(__, $EXPECT($L130, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L29, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
17636
+ var TypeParameters$0 = $TS($S(__, $EXPECT($L131, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L29, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
17212
17637
  var parameters = $3;
17213
17638
  return {
17214
17639
  type: "TypeParameters",
@@ -17262,7 +17687,7 @@ ${input.slice(result.pos)}
17262
17687
  return result;
17263
17688
  }
17264
17689
  }
17265
- var TypeConstraint$0 = $S(__, $EXPECT($L118, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
17690
+ var TypeConstraint$0 = $S(__, $EXPECT($L119, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
17266
17691
  function TypeConstraint(state) {
17267
17692
  let eventData;
17268
17693
  if (state.events) {
@@ -17360,7 +17785,7 @@ ${input.slice(result.pos)}
17360
17785
  return result;
17361
17786
  }
17362
17787
  }
17363
- var Shebang$0 = $S($R$0($EXPECT($R58, fail, "Shebang /#![^\\r\\n]*/")), EOL);
17788
+ var Shebang$0 = $S($R$0($EXPECT($R59, fail, "Shebang /#![^\\r\\n]*/")), EOL);
17364
17789
  function Shebang(state) {
17365
17790
  let eventData;
17366
17791
  if (state.events) {
@@ -17383,11 +17808,11 @@ ${input.slice(result.pos)}
17383
17808
  return result;
17384
17809
  }
17385
17810
  }
17386
- var CivetPrologue$0 = $T($S($EXPECT($R59, fail, "CivetPrologue /[\\t ]*/"), DoubleQuote, CivetPrologueContent, DoubleQuote, $TEXT(SimpleStatementDelimiter), $E(EOS)), function(value) {
17811
+ var CivetPrologue$0 = $T($S($EXPECT($R60, fail, "CivetPrologue /[\\t ]*/"), DoubleQuote, CivetPrologueContent, DoubleQuote, $TEXT(SimpleStatementDelimiter), $E(EOS)), function(value) {
17387
17812
  var content = value[2];
17388
17813
  return content;
17389
17814
  });
17390
- var CivetPrologue$1 = $T($S($EXPECT($R59, fail, "CivetPrologue /[\\t ]*/"), SingleQuote, CivetPrologueContent, SingleQuote, $TEXT(SimpleStatementDelimiter), $E(EOS)), function(value) {
17815
+ var CivetPrologue$1 = $T($S($EXPECT($R60, fail, "CivetPrologue /[\\t ]*/"), SingleQuote, CivetPrologueContent, SingleQuote, $TEXT(SimpleStatementDelimiter), $E(EOS)), function(value) {
17391
17816
  var content = value[2];
17392
17817
  return content;
17393
17818
  });
@@ -17413,7 +17838,7 @@ ${input.slice(result.pos)}
17413
17838
  return result;
17414
17839
  }
17415
17840
  }
17416
- var CivetPrologueContent$0 = $TS($S($EXPECT($L176, fail, 'CivetPrologueContent "civet"'), NonIdContinue, $Q(CivetOption), $EXPECT($R60, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3, $4) {
17841
+ var CivetPrologueContent$0 = $TS($S($EXPECT($L177, fail, 'CivetPrologueContent "civet"'), NonIdContinue, $Q(CivetOption), $EXPECT($R61, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3, $4) {
17417
17842
  var options = $3;
17418
17843
  return {
17419
17844
  type: "CivetPrologue",
@@ -17443,7 +17868,7 @@ ${input.slice(result.pos)}
17443
17868
  return result;
17444
17869
  }
17445
17870
  }
17446
- var CivetOption$0 = $TR($EXPECT($R61, fail, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
17871
+ var CivetOption$0 = $TR($EXPECT($R62, fail, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
17447
17872
  const optionName = $2.replace(/-+([a-z]?)/g, (_2, l) => {
17448
17873
  if (l)
17449
17874
  return l.toUpperCase();
@@ -17479,7 +17904,7 @@ ${input.slice(result.pos)}
17479
17904
  return result;
17480
17905
  }
17481
17906
  }
17482
- var UnknownPrologue$0 = $S($R$0($EXPECT($R59, fail, "UnknownPrologue /[\\t ]*/")), StringLiteral, $TEXT(SimpleStatementDelimiter), EOS);
17907
+ var UnknownPrologue$0 = $S($R$0($EXPECT($R60, fail, "UnknownPrologue /[\\t ]*/")), StringLiteral, $TEXT(SimpleStatementDelimiter), EOS);
17483
17908
  function UnknownPrologue(state) {
17484
17909
  let eventData;
17485
17910
  if (state.events) {
@@ -17549,7 +17974,7 @@ ${input.slice(result.pos)}
17549
17974
  return result;
17550
17975
  }
17551
17976
  }
17552
- var EOL$0 = $TR($EXPECT($R62, fail, "EOL /\\r\\n|\\n|\\r|$/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
17977
+ var EOL$0 = $TR($EXPECT($R63, fail, "EOL /\\r\\n|\\n|\\r|$/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
17553
17978
  return { $loc, token: $0 };
17554
17979
  });
17555
17980
  function EOL(state) {
@@ -18432,7 +18857,9 @@ ${input.slice(result.pos)}
18432
18857
  level: 0,
18433
18858
  token: ""
18434
18859
  }];
18435
- module.suppressTrailingMemberProperty = [false];
18860
+ module.forbidIndentedApplication = [false];
18861
+ module.forbidTrailingMemberProperty = [false];
18862
+ module.forbidMultiLineImplicitObjectLiteral = [false];
18436
18863
  module.JSXTagStack = [];
18437
18864
  module.operators = /* @__PURE__ */ new Set();
18438
18865
  if (!module._init) {
@@ -18444,9 +18871,21 @@ ${input.slice(result.pos)}
18444
18871
  return l[l.length - 1];
18445
18872
  }
18446
18873
  },
18447
- trailingMemberPropertySuppressed: {
18874
+ indentedApplicationForbidden: {
18875
+ get() {
18876
+ const { forbidIndentedApplication: s } = module;
18877
+ return s[s.length - 1];
18878
+ }
18879
+ },
18880
+ trailingMemberPropertyForbidden: {
18881
+ get() {
18882
+ const { forbidTrailingMemberProperty: s } = module;
18883
+ return s[s.length - 1];
18884
+ }
18885
+ },
18886
+ multiLineImplicitObjectLiteralForbidden: {
18448
18887
  get() {
18449
- const { suppressTrailingMemberProperty: s } = module;
18888
+ const { forbidMultiLineImplicitObjectLiteral: s } = module;
18450
18889
  return s[s.length - 1];
18451
18890
  }
18452
18891
  },
@@ -19578,7 +20017,7 @@ ${input.slice(result.pos)}
19578
20017
  }
19579
20018
  function processAssignments(statements) {
19580
20019
  gatherRecursiveAll(statements, (n) => n.type === "AssignmentExpression" && n.names === null).forEach((exp) => {
19581
- let { lhs: $12, exp: $22 } = exp, pre = [], tail = [], i = 0, len = $12.length;
20020
+ let { lhs: $12, exp: $22 } = exp, tail = [], i = 0, len = $12.length;
19582
20021
  if ($12.some((left) => left[left.length - 1].special)) {
19583
20022
  if ($12.length !== 1) {
19584
20023
  throw new Error("Only one assignment with id= is allowed");
@@ -19588,17 +20027,6 @@ ${input.slice(result.pos)}
19588
20027
  op[op.length - 1] = "=";
19589
20028
  $22 = [call, "(", lhs, ", ", $22, ")"];
19590
20029
  }
19591
- $12.forEach((lhsPart, i2) => {
19592
- let expr = lhsPart[1];
19593
- while (expr.type === "ParenthesizedExpression") {
19594
- expr = expr.expression;
19595
- }
19596
- if (expr.type === "AssignmentExpression") {
19597
- pre.push([lhsPart[1], ", "]);
19598
- const newLhs = expr.lhs[0][1];
19599
- lhsPart[1] = newLhs;
19600
- }
19601
- });
19602
20030
  let wrapped = false;
19603
20031
  while (i < len) {
19604
20032
  const lastAssignment = $12[i++];
@@ -19649,9 +20077,49 @@ ${input.slice(result.pos)}
19649
20077
  i--;
19650
20078
  }
19651
20079
  const names = $12.flatMap(([, l]) => l.names || []);
19652
- exp.children = [...pre, $12, $22, ...tail];
20080
+ exp.children = [$12, $22, ...tail];
19653
20081
  exp.names = names;
19654
20082
  });
20083
+ gatherRecursiveAll(statements, (n) => n.type === "AssignmentExpression" || n.type === "UpdateExpression").forEach((exp) => {
20084
+ function extractAssignment(lhs) {
20085
+ let expr = lhs;
20086
+ while (expr.type === "ParenthesizedExpression") {
20087
+ expr = expr.expression;
20088
+ }
20089
+ if (expr.type === "AssignmentExpression" || expr.type === "UpdateExpression") {
20090
+ if (expr.type === "UpdateExpression" && expr.children[0] === expr.assigned) {
20091
+ post.push([", ", lhs]);
20092
+ } else {
20093
+ pre.push([lhs, ", "]);
20094
+ }
20095
+ return expr.assigned;
20096
+ }
20097
+ }
20098
+ const pre = [], post = [];
20099
+ switch (exp.type) {
20100
+ case "AssignmentExpression":
20101
+ if (!exp.lhs)
20102
+ return;
20103
+ exp.lhs.forEach((lhsPart, i) => {
20104
+ let newLhs2 = extractAssignment(lhsPart[1]);
20105
+ if (newLhs2) {
20106
+ lhsPart[1] = newLhs2;
20107
+ }
20108
+ });
20109
+ break;
20110
+ case "UpdateExpression":
20111
+ let newLhs = extractAssignment(exp.assigned);
20112
+ if (newLhs) {
20113
+ const i = exp.children.indexOf(exp.assigned);
20114
+ exp.assigned = exp.children[i] = newLhs;
20115
+ }
20116
+ break;
20117
+ }
20118
+ if (pre.length)
20119
+ exp.children.unshift(...pre);
20120
+ if (post.length)
20121
+ exp.children.push(...post);
20122
+ });
19655
20123
  }
19656
20124
  function checkSpliceRef(statements) {
19657
20125
  const spliceRef = module.getRef("splice");
@@ -20298,7 +20766,7 @@ ${input.slice(result.pos)}
20298
20766
  return result;
20299
20767
  }
20300
20768
  }
20301
- var Indent$0 = $TR($EXPECT($R63, fail, "Indent /[ \\t]*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
20769
+ var Indent$0 = $TR($EXPECT($R64, fail, "Indent /[ \\t]*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
20302
20770
  let level;
20303
20771
  if (module.config.tab) {
20304
20772
  const tabs = $0.match(/\t/g);
@@ -20945,7 +21413,7 @@ var parse;
20945
21413
  var uncacheable;
20946
21414
  ({ parse } = import_parser.default);
20947
21415
  ({ SourceMap: SourceMap2, base64Encode: base64Encode2 } = util_exports);
20948
- uncacheable = /* @__PURE__ */ new Set(["ActualAssignment", "ApplicationStart", "Arguments", "ArgumentsWithTrailingMemberExpressions", "ArrowFunction", "ArrowFunctionTail", "AssignmentExpression", "AssignmentExpressionTail", "BinaryOpExpression", "BinaryOpRHS", "BracedBlock", "BracedObjectLiteralContent", "BracedOrEmptyBlock", "CallExpression", "CallExpressionRest", "CoffeeCommentEnabled", "CommaDelimiter", "ConditionalExpression", "Declaration", "Debugger", "ElseClause", "Expression", "ExpressionStatement", "ExpressionWithIndentedApplicationSuppressed", "ExtendedExpression", "FatArrowBody", "FunctionDeclaration", "FunctionExpression", "HoistableDeclaration", "ImplicitArguments", "ImplicitInlineObjectPropertyDelimiter", "ImplicitNestedBlock", "IndentedApplicationAllowed", "IndentedFurther", "IndentedJSXChildExpression", "InlineObjectLiteral", "InsertIndent", "JSXChild", "JSXChildren", "JSXElement", "JSXFragment", "JSXImplicitFragment", "JSXMixedChildren", "JSXNested", "JSXNestedChildren", "JSXOptionalClosingElement", "JSXOptionalClosingFragment", "JSXTag", "LeftHandSideExpression", "MemberExpression", "MemberExpressionRest", "Nested", "NestedBindingElement", "NestedBindingElements", "NestedBlockExpression", "NestedBlockExpression", "NestedBlockStatement", "NestedBlockStatements", "NestedElement", "NestedElementList", "NestedImplicitObjectLiteral", "NestedImplicitPropertyDefinition", "NestedImplicitPropertyDefinitions", "NestedInterfaceProperty", "NestedJSXChildExpression", "NestedObject", "NestedPropertyDefinitions", "NonSingleBracedBlock", "NonSuppressedTrailingMemberExpressions", "ObjectLiteral", "PopIndent", "PostfixedExpression", "PostfixedStatement", "PrimaryExpression", "PushIndent", "PushJSXOpeningElement", "PushJSXOpeningFragment", "RHS", "Samedent", "ShortCircuitExpression", "SingleLineAssignmentExpression", "SingleLineComment", "SingleLineStatements", "SnugNamedProperty", "Statement", "StatementListItem", "SuffixedExpression", "SuffixedStatement", "SuppressIndentedApplication", "SuppressTrailingMemberProperty", "ThinArrowFunction", "TrackIndented", "TrailingMemberExpressions", "TrailingMemberPropertyAllowed", "TypedJSXElement", "TypedJSXFragment", "UnaryExpression", "UpdateExpression"]);
21416
+ uncacheable = /* @__PURE__ */ new Set(["ActualAssignment", "AllowAll", "AllowIndentedApplication", "AllowTrailingMemberProperty", "AllowedTrailingMemberExpressions", "ApplicationStart", "Arguments", "ArgumentsWithTrailingMemberExpressions", "ArrowFunction", "ArrowFunctionTail", "AssignmentExpression", "AssignmentExpressionTail", "BinaryOpExpression", "BinaryOpRHS", "BracedBlock", "BracedObjectLiteralContent", "BracedOrEmptyBlock", "CallExpression", "CallExpressionRest", "CoffeeCommentEnabled", "CommaDelimiter", "ConditionalExpression", "Declaration", "Debugger", "ElseClause", "Expression", "ExpressionStatement", "ExpressionWithIndentedApplicationForbidden", "ExtendedExpression", "FatArrowBody", "ForbidIndentedApplication", "ForbidTrailingMemberProperty", "FunctionDeclaration", "FunctionExpression", "HoistableDeclaration", "ImplicitArguments", "ImplicitInlineObjectPropertyDelimiter", "ImplicitNestedBlock", "IndentedApplicationAllowed", "IndentedFurther", "IndentedJSXChildExpression", "InlineObjectLiteral", "InsertIndent", "JSXChild", "JSXChildren", "JSXElement", "JSXFragment", "JSXImplicitFragment", "JSXMixedChildren", "JSXNested", "JSXNestedChildren", "JSXOptionalClosingElement", "JSXOptionalClosingFragment", "JSXTag", "LeftHandSideExpression", "MemberExpression", "MemberExpressionRest", "Nested", "NestedBindingElement", "NestedBindingElements", "NestedBlockExpression", "NestedBlockExpression", "NestedBlockStatement", "NestedBlockStatements", "NestedElement", "NestedElementList", "NestedImplicitObjectLiteral", "NestedImplicitPropertyDefinition", "NestedImplicitPropertyDefinitions", "NestedInterfaceProperty", "NestedJSXChildExpression", "NestedObject", "NestedPropertyDefinitions", "NonSingleBracedBlock", "ObjectLiteral", "PopIndent", "PopJSXStack", "PostfixedExpression", "PostfixedStatement", "PrimaryExpression", "PushIndent", "PushJSXOpeningElement", "PushJSXOpeningFragment", "RestoreAll", "RestoreIndentedApplication", "RestoreTrailingMemberProperty", "RHS", "Samedent", "ShortCircuitExpression", "SingleLineAssignmentExpression", "SingleLineComment", "SingleLineStatements", "SnugNamedProperty", "Statement", "StatementListItem", "SuffixedExpression", "SuffixedStatement", "ThinArrowFunction", "TrackIndented", "TrailingMemberExpressions", "TrailingMemberPropertyAllowed", "TypedJSXElement", "TypedJSXFragment", "UnaryExpression", "UpdateExpression"]);
20949
21417
  var compile = function(src, options) {
20950
21418
  var ast, code, events, filename, ref, result, sm, srcMapJSON;
20951
21419
  if (!options) {