@danielx/civet 0.4.34 → 0.4.36

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.
Files changed (4) hide show
  1. package/README.md +16 -17
  2. package/dist/browser.js +324 -164
  3. package/dist/main.js +324 -164
  4. package/package.json +1 -1
package/dist/browser.js CHANGED
@@ -612,6 +612,7 @@ ${input.slice(result.pos)}
612
612
  NamedProperty,
613
613
  SnugNamedProperty,
614
614
  PropertyName,
615
+ ComputedPropertyName,
615
616
  Decorator,
616
617
  Decorators,
617
618
  MethodDefinition,
@@ -705,6 +706,7 @@ ${input.slice(result.pos)}
705
706
  HoistableDeclaration,
706
707
  LexicalDeclaration,
707
708
  ConstAssignment,
709
+ LetAssignment,
708
710
  LexicalBinding,
709
711
  Initializer,
710
712
  VariableStatement,
@@ -841,6 +843,8 @@ ${input.slice(result.pos)}
841
843
  JSXAttributeName,
842
844
  JSXAttributeInitializer,
843
845
  JSXAttributeValue,
846
+ InlineJSXAttributeValue,
847
+ JSXMixedChildren,
844
848
  JSXChildren,
845
849
  JSXNestedChildren,
846
850
  JSXChild,
@@ -901,6 +905,7 @@ ${input.slice(result.pos)}
901
905
  InsertCloseBrace,
902
906
  InsertComma,
903
907
  InsertConst,
908
+ InsertLet,
904
909
  InsertReadonly,
905
910
  InsertNewline,
906
911
  InsertIndent,
@@ -1016,77 +1021,78 @@ ${input.slice(result.pos)}
1016
1021
  var $L84 = $L("import type");
1017
1022
  var $L85 = $L("default");
1018
1023
  var $L86 = $L(":=");
1019
- var $L87 = $L("/*");
1020
- var $L88 = $L("*/");
1021
- var $L89 = $L("\\");
1022
- var $L90 = $L("as");
1023
- var $L91 = $L("@");
1024
- var $L92 = $L("@@");
1025
- var $L93 = $L("async");
1026
- var $L94 = $L("await");
1027
- var $L95 = $L("`");
1028
- var $L96 = $L("by");
1029
- var $L97 = $L("case");
1030
- var $L98 = $L("catch");
1031
- var $L99 = $L("class");
1032
- var $L100 = $L("#{");
1033
- var $L101 = $L("delete");
1034
- var $L102 = $L("do");
1035
- var $L103 = $L("..");
1036
- var $L104 = $L("...");
1037
- var $L105 = $L("::");
1038
- var $L106 = $L('"');
1039
- var $L107 = $L("else");
1040
- var $L108 = $L("export");
1041
- var $L109 = $L("for");
1042
- var $L110 = $L("from");
1043
- var $L111 = $L("function");
1044
- var $L112 = $L("get");
1045
- var $L113 = $L("set");
1046
- var $L114 = $L("if");
1047
- var $L115 = $L("let");
1048
- var $L116 = $L("const");
1049
- var $L117 = $L("loop");
1050
- var $L118 = $L("new");
1051
- var $L119 = $L("{");
1052
- var $L120 = $L("[");
1053
- var $L121 = $L("(");
1054
- var $L122 = $L("return");
1055
- var $L123 = $L("'");
1056
- var $L124 = $L("static");
1057
- var $L125 = $L("${");
1058
- var $L126 = $L("switch");
1059
- var $L127 = $L("target");
1060
- var $L128 = $L("then");
1061
- var $L129 = $L("this");
1062
- var $L130 = $L("throw");
1063
- var $L131 = $L('"""');
1064
- var $L132 = $L("'''");
1065
- var $L133 = $L("///");
1066
- var $L134 = $L("```");
1067
- var $L135 = $L("try");
1068
- var $L136 = $L("typeof");
1069
- var $L137 = $L("unless");
1070
- var $L138 = $L("until");
1071
- var $L139 = $L("var");
1072
- var $L140 = $L("void");
1073
- var $L141 = $L("when");
1074
- var $L142 = $L("while");
1075
- var $L143 = $L("yield");
1076
- var $L144 = $L("/>");
1077
- var $L145 = $L("</");
1078
- var $L146 = $L("<>");
1079
- var $L147 = $L("</>");
1080
- var $L148 = $L("declare");
1081
- var $L149 = $L("type");
1082
- var $L150 = $L("interface");
1083
- var $L151 = $L("namespace");
1084
- var $L152 = $L("readonly");
1085
- var $L153 = $L("asserts");
1086
- var $L154 = $L("keyof");
1087
- var $L155 = $L("infer");
1088
- var $L156 = $L("[]");
1089
- var $L157 = $L("civet");
1024
+ var $L87 = $L("::=");
1025
+ var $L88 = $L("/*");
1026
+ var $L89 = $L("*/");
1027
+ var $L90 = $L("\\");
1028
+ var $L91 = $L("as");
1029
+ var $L92 = $L("@");
1030
+ var $L93 = $L("@@");
1031
+ var $L94 = $L("async");
1032
+ var $L95 = $L("await");
1033
+ var $L96 = $L("`");
1034
+ var $L97 = $L("by");
1035
+ var $L98 = $L("case");
1036
+ var $L99 = $L("catch");
1037
+ var $L100 = $L("class");
1038
+ var $L101 = $L("#{");
1039
+ var $L102 = $L("delete");
1040
+ var $L103 = $L("do");
1041
+ var $L104 = $L("..");
1042
+ var $L105 = $L("...");
1043
+ var $L106 = $L("::");
1044
+ var $L107 = $L('"');
1045
+ var $L108 = $L("else");
1046
+ var $L109 = $L("export");
1047
+ var $L110 = $L("for");
1048
+ var $L111 = $L("from");
1049
+ var $L112 = $L("function");
1050
+ var $L113 = $L("get");
1051
+ var $L114 = $L("set");
1052
+ var $L115 = $L("if");
1053
+ var $L116 = $L("let");
1054
+ var $L117 = $L("const");
1055
+ var $L118 = $L("loop");
1056
+ var $L119 = $L("new");
1057
+ var $L120 = $L("{");
1058
+ var $L121 = $L("[");
1059
+ var $L122 = $L("(");
1060
+ var $L123 = $L("return");
1061
+ var $L124 = $L("'");
1062
+ var $L125 = $L("static");
1063
+ var $L126 = $L("${");
1064
+ var $L127 = $L("switch");
1065
+ var $L128 = $L("target");
1066
+ var $L129 = $L("then");
1067
+ var $L130 = $L("this");
1068
+ var $L131 = $L("throw");
1069
+ var $L132 = $L('"""');
1070
+ var $L133 = $L("'''");
1071
+ var $L134 = $L("///");
1072
+ var $L135 = $L("```");
1073
+ var $L136 = $L("try");
1074
+ var $L137 = $L("typeof");
1075
+ var $L138 = $L("unless");
1076
+ var $L139 = $L("until");
1077
+ var $L140 = $L("var");
1078
+ var $L141 = $L("void");
1079
+ var $L142 = $L("when");
1080
+ var $L143 = $L("while");
1081
+ var $L144 = $L("yield");
1082
+ var $L145 = $L("/>");
1083
+ var $L146 = $L("</");
1084
+ var $L147 = $L("<>");
1085
+ var $L148 = $L("</>");
1086
+ var $L149 = $L("declare");
1087
+ var $L150 = $L("type");
1088
+ var $L151 = $L("interface");
1089
+ var $L152 = $L("namespace");
1090
+ var $L153 = $L("readonly");
1091
+ var $L154 = $L("asserts");
1092
+ var $L155 = $L("keyof");
1093
+ var $L156 = $L("infer");
1094
+ var $L157 = $L("[]");
1095
+ var $L158 = $L("civet");
1090
1096
  var $R0 = $R(new RegExp("(for|of|then|when)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
1091
1097
  var $R1 = $R(new RegExp("[&]", "suy"));
1092
1098
  var $R2 = $R(new RegExp("[!~+-]+", "suy"));
@@ -5022,12 +5028,7 @@ ${input.slice(result.pos)}
5022
5028
  var PropertyName$0 = NumericLiteral;
5023
5029
  var PropertyName$1 = StringLiteral;
5024
5030
  var PropertyName$2 = IdentifierName;
5025
- var PropertyName$3 = $TS($S(OpenBracket, ExtendedExpression, __, CloseBracket), function($skip, $loc, $0, $1, $2, $3, $4) {
5026
- return {
5027
- type: "ComputedPropertyName",
5028
- children: $0
5029
- };
5030
- });
5031
+ var PropertyName$3 = ComputedPropertyName;
5031
5032
  function PropertyName(state) {
5032
5033
  if (state.events) {
5033
5034
  const result = state.events.enter?.("PropertyName", state);
@@ -5046,6 +5047,30 @@ ${input.slice(result.pos)}
5046
5047
  return result;
5047
5048
  }
5048
5049
  }
5050
+ var ComputedPropertyName$0 = $TS($S(OpenBracket, ExtendedExpression, __, CloseBracket), function($skip, $loc, $0, $1, $2, $3, $4) {
5051
+ return {
5052
+ type: "ComputedPropertyName",
5053
+ children: $0
5054
+ };
5055
+ });
5056
+ function ComputedPropertyName(state) {
5057
+ if (state.events) {
5058
+ const result = state.events.enter?.("ComputedPropertyName", state);
5059
+ if (result)
5060
+ return result.cache;
5061
+ }
5062
+ if (state.tokenize) {
5063
+ const result = $TOKEN("ComputedPropertyName", state, ComputedPropertyName$0(state));
5064
+ if (state.events)
5065
+ state.events.exit?.("ComputedPropertyName", state, result);
5066
+ return result;
5067
+ } else {
5068
+ const result = ComputedPropertyName$0(state);
5069
+ if (state.events)
5070
+ state.events.exit?.("ComputedPropertyName", state, result);
5071
+ return result;
5072
+ }
5073
+ }
5049
5074
  var Decorator$0 = $S(AtAt, IdentifierReference, $E(Arguments));
5050
5075
  function Decorator(state) {
5051
5076
  if (state.events) {
@@ -7721,6 +7746,30 @@ ${input.slice(result.pos)}
7721
7746
  children
7722
7747
  };
7723
7748
  });
7749
+ var LexicalDeclaration$2 = $TS($S(InsertLet, $C(BindingPattern, BindingIdentifier), $E(TypeSuffix), __, LetAssignment, ExtendedExpression), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
7750
+ var l = $1;
7751
+ var id = $2;
7752
+ var suffix = $3;
7753
+ var ws = $4;
7754
+ var la = $5;
7755
+ var e = $6;
7756
+ l = {
7757
+ ...l,
7758
+ $loc: {
7759
+ pos: la.$loc.pos - 1,
7760
+ length: la.$loc.length + 1
7761
+ }
7762
+ };
7763
+ let [splices, thisAssignments] = module.gatherBindingCode(id);
7764
+ splices = splices.map((s) => [", ", s]);
7765
+ thisAssignments = thisAssignments.map((a) => [";", a]);
7766
+ const children = [l, id, suffix, ...ws, la, e, ...splices, ...thisAssignments];
7767
+ return {
7768
+ type: "Declaration",
7769
+ names: id.names,
7770
+ children
7771
+ };
7772
+ });
7724
7773
  function LexicalDeclaration(state) {
7725
7774
  if (state.events) {
7726
7775
  const result = state.events.enter?.("LexicalDeclaration", state);
@@ -7728,12 +7777,12 @@ ${input.slice(result.pos)}
7728
7777
  return result.cache;
7729
7778
  }
7730
7779
  if (state.tokenize) {
7731
- const result = $TOKEN("LexicalDeclaration", state, LexicalDeclaration$0(state) || LexicalDeclaration$1(state));
7780
+ const result = $TOKEN("LexicalDeclaration", state, LexicalDeclaration$0(state) || LexicalDeclaration$1(state) || LexicalDeclaration$2(state));
7732
7781
  if (state.events)
7733
7782
  state.events.exit?.("LexicalDeclaration", state, result);
7734
7783
  return result;
7735
7784
  } else {
7736
- const result = LexicalDeclaration$0(state) || LexicalDeclaration$1(state);
7785
+ const result = LexicalDeclaration$0(state) || LexicalDeclaration$1(state) || LexicalDeclaration$2(state);
7737
7786
  if (state.events)
7738
7787
  state.events.exit?.("LexicalDeclaration", state, result);
7739
7788
  return result;
@@ -7760,6 +7809,27 @@ ${input.slice(result.pos)}
7760
7809
  return result;
7761
7810
  }
7762
7811
  }
7812
+ var LetAssignment$0 = $TV($EXPECT($L87, fail, 'LetAssignment "::="'), function($skip, $loc, $0, $1) {
7813
+ return { $loc, token: "=" };
7814
+ });
7815
+ function LetAssignment(state) {
7816
+ if (state.events) {
7817
+ const result = state.events.enter?.("LetAssignment", state);
7818
+ if (result)
7819
+ return result.cache;
7820
+ }
7821
+ if (state.tokenize) {
7822
+ const result = $TOKEN("LetAssignment", state, LetAssignment$0(state));
7823
+ if (state.events)
7824
+ state.events.exit?.("LetAssignment", state, result);
7825
+ return result;
7826
+ } else {
7827
+ const result = LetAssignment$0(state);
7828
+ if (state.events)
7829
+ state.events.exit?.("LetAssignment", state, result);
7830
+ return result;
7831
+ }
7832
+ }
7763
7833
  var LexicalBinding$0 = $TS($S(BindingPattern, $E(TypeSuffix), Initializer), function($skip, $loc, $0, $1, $2, $3) {
7764
7834
  const children = [...$1.children];
7765
7835
  if ($2)
@@ -8744,7 +8814,7 @@ ${input.slice(result.pos)}
8744
8814
  return result;
8745
8815
  }
8746
8816
  }
8747
- var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L87, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L88, fail, 'JSMultiLineComment "*/"')), $EXPECT($R38, fail, "JSMultiLineComment /./"))), $EXPECT($L88, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
8817
+ var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L89, fail, 'JSMultiLineComment "*/"')), $EXPECT($R38, fail, "JSMultiLineComment /./"))), $EXPECT($L89, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
8748
8818
  return { $loc, token: $1 };
8749
8819
  });
8750
8820
  function JSMultiLineComment(state) {
@@ -8786,7 +8856,7 @@ ${input.slice(result.pos)}
8786
8856
  return result;
8787
8857
  }
8788
8858
  }
8789
- var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L88, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R38, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
8859
+ var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L89, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R38, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
8790
8860
  return { $loc, token: `/*${$2}*/` };
8791
8861
  });
8792
8862
  function CoffeeMultiLineComment(state) {
@@ -8826,7 +8896,7 @@ ${input.slice(result.pos)}
8826
8896
  return result;
8827
8897
  }
8828
8898
  }
8829
- var InlineComment$0 = $TV($TEXT($S($EXPECT($L87, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L88, fail, 'InlineComment "*/"')), $EXPECT($R41, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L88, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
8899
+ var InlineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L89, fail, 'InlineComment "*/"')), $EXPECT($R41, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L89, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
8830
8900
  return { $loc, token: $1 };
8831
8901
  });
8832
8902
  function InlineComment(state) {
@@ -8909,7 +8979,7 @@ ${input.slice(result.pos)}
8909
8979
  var NonNewlineWhitespace$0 = $TR($EXPECT($R42, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
8910
8980
  return { $loc, token: $0 };
8911
8981
  });
8912
- var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L89, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
8982
+ var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L90, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
8913
8983
  return "";
8914
8984
  });
8915
8985
  function NonNewlineWhitespace(state) {
@@ -9075,7 +9145,7 @@ ${input.slice(result.pos)}
9075
9145
  return result;
9076
9146
  }
9077
9147
  }
9078
- var As$0 = $TS($S($EXPECT($L90, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9148
+ var As$0 = $TS($S($EXPECT($L91, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9079
9149
  return { $loc, token: $1 };
9080
9150
  });
9081
9151
  function As(state) {
@@ -9096,7 +9166,7 @@ ${input.slice(result.pos)}
9096
9166
  return result;
9097
9167
  }
9098
9168
  }
9099
- var At$0 = $TV($EXPECT($L91, fail, 'At "@"'), function($skip, $loc, $0, $1) {
9169
+ var At$0 = $TV($EXPECT($L92, fail, 'At "@"'), function($skip, $loc, $0, $1) {
9100
9170
  return { $loc, token: $1 };
9101
9171
  });
9102
9172
  function At(state) {
@@ -9117,7 +9187,7 @@ ${input.slice(result.pos)}
9117
9187
  return result;
9118
9188
  }
9119
9189
  }
9120
- var AtAt$0 = $TV($EXPECT($L92, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
9190
+ var AtAt$0 = $TV($EXPECT($L93, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
9121
9191
  return { $loc, token: "@" };
9122
9192
  });
9123
9193
  function AtAt(state) {
@@ -9138,7 +9208,7 @@ ${input.slice(result.pos)}
9138
9208
  return result;
9139
9209
  }
9140
9210
  }
9141
- var Async$0 = $TV($EXPECT($L93, fail, 'Async "async"'), function($skip, $loc, $0, $1) {
9211
+ var Async$0 = $TV($EXPECT($L94, fail, 'Async "async"'), function($skip, $loc, $0, $1) {
9142
9212
  return { $loc, token: $1, type: "Async" };
9143
9213
  });
9144
9214
  function Async(state) {
@@ -9159,7 +9229,7 @@ ${input.slice(result.pos)}
9159
9229
  return result;
9160
9230
  }
9161
9231
  }
9162
- var Await$0 = $TS($S($EXPECT($L94, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9232
+ var Await$0 = $TS($S($EXPECT($L95, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9163
9233
  return { $loc, token: $1 };
9164
9234
  });
9165
9235
  function Await(state) {
@@ -9180,7 +9250,7 @@ ${input.slice(result.pos)}
9180
9250
  return result;
9181
9251
  }
9182
9252
  }
9183
- var Backtick$0 = $TV($EXPECT($L95, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
9253
+ var Backtick$0 = $TV($EXPECT($L96, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
9184
9254
  return { $loc, token: $1 };
9185
9255
  });
9186
9256
  function Backtick(state) {
@@ -9201,7 +9271,7 @@ ${input.slice(result.pos)}
9201
9271
  return result;
9202
9272
  }
9203
9273
  }
9204
- var By$0 = $TS($S($EXPECT($L96, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9274
+ var By$0 = $TS($S($EXPECT($L97, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9205
9275
  return { $loc, token: $1 };
9206
9276
  });
9207
9277
  function By(state) {
@@ -9222,7 +9292,7 @@ ${input.slice(result.pos)}
9222
9292
  return result;
9223
9293
  }
9224
9294
  }
9225
- var Case$0 = $TS($S($EXPECT($L97, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9295
+ var Case$0 = $TS($S($EXPECT($L98, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9226
9296
  return { $loc, token: $1 };
9227
9297
  });
9228
9298
  function Case(state) {
@@ -9243,7 +9313,7 @@ ${input.slice(result.pos)}
9243
9313
  return result;
9244
9314
  }
9245
9315
  }
9246
- var Catch$0 = $TV($EXPECT($L98, fail, 'Catch "catch"'), function($skip, $loc, $0, $1) {
9316
+ var Catch$0 = $TV($EXPECT($L99, fail, 'Catch "catch"'), function($skip, $loc, $0, $1) {
9247
9317
  return { $loc, token: $1 };
9248
9318
  });
9249
9319
  function Catch(state) {
@@ -9264,7 +9334,7 @@ ${input.slice(result.pos)}
9264
9334
  return result;
9265
9335
  }
9266
9336
  }
9267
- var Class$0 = $TV($EXPECT($L99, fail, 'Class "class"'), function($skip, $loc, $0, $1) {
9337
+ var Class$0 = $TV($EXPECT($L100, fail, 'Class "class"'), function($skip, $loc, $0, $1) {
9268
9338
  return { $loc, token: $1 };
9269
9339
  });
9270
9340
  function Class(state) {
@@ -9348,7 +9418,7 @@ ${input.slice(result.pos)}
9348
9418
  return result;
9349
9419
  }
9350
9420
  }
9351
- var CoffeeSubstitutionStart$0 = $TV($EXPECT($L100, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
9421
+ var CoffeeSubstitutionStart$0 = $TV($EXPECT($L101, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
9352
9422
  return { $loc, token: "${" };
9353
9423
  });
9354
9424
  function CoffeeSubstitutionStart(state) {
@@ -9390,7 +9460,7 @@ ${input.slice(result.pos)}
9390
9460
  return result;
9391
9461
  }
9392
9462
  }
9393
- var ConstructorShorthand$0 = $TV($EXPECT($L91, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
9463
+ var ConstructorShorthand$0 = $TV($EXPECT($L92, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
9394
9464
  return { $loc, token: "constructor" };
9395
9465
  });
9396
9466
  function ConstructorShorthand(state) {
@@ -9432,7 +9502,7 @@ ${input.slice(result.pos)}
9432
9502
  return result;
9433
9503
  }
9434
9504
  }
9435
- var Delete$0 = $TS($S($EXPECT($L101, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9505
+ var Delete$0 = $TS($S($EXPECT($L102, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9436
9506
  return { $loc, token: $1 };
9437
9507
  });
9438
9508
  function Delete(state) {
@@ -9453,7 +9523,7 @@ ${input.slice(result.pos)}
9453
9523
  return result;
9454
9524
  }
9455
9525
  }
9456
- var Do$0 = $TS($S($EXPECT($L102, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9526
+ var Do$0 = $TS($S($EXPECT($L103, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9457
9527
  return { $loc, token: $1 };
9458
9528
  });
9459
9529
  function Do(state) {
@@ -9495,7 +9565,7 @@ ${input.slice(result.pos)}
9495
9565
  return result;
9496
9566
  }
9497
9567
  }
9498
- var DotDot$0 = $TV($EXPECT($L103, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
9568
+ var DotDot$0 = $TV($EXPECT($L104, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
9499
9569
  return { $loc, token: $1 };
9500
9570
  });
9501
9571
  function DotDot(state) {
@@ -9516,7 +9586,7 @@ ${input.slice(result.pos)}
9516
9586
  return result;
9517
9587
  }
9518
9588
  }
9519
- var DotDotDot$0 = $TV($EXPECT($L104, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
9589
+ var DotDotDot$0 = $TV($EXPECT($L105, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
9520
9590
  return { $loc, token: $1 };
9521
9591
  });
9522
9592
  function DotDotDot(state) {
@@ -9537,7 +9607,7 @@ ${input.slice(result.pos)}
9537
9607
  return result;
9538
9608
  }
9539
9609
  }
9540
- var DoubleColon$0 = $TV($EXPECT($L105, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
9610
+ var DoubleColon$0 = $TV($EXPECT($L106, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
9541
9611
  return { $loc, token: $1 };
9542
9612
  });
9543
9613
  function DoubleColon(state) {
@@ -9558,7 +9628,7 @@ ${input.slice(result.pos)}
9558
9628
  return result;
9559
9629
  }
9560
9630
  }
9561
- var DoubleQuote$0 = $TV($EXPECT($L106, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
9631
+ var DoubleQuote$0 = $TV($EXPECT($L107, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
9562
9632
  return { $loc, token: $1 };
9563
9633
  });
9564
9634
  function DoubleQuote(state) {
@@ -9579,7 +9649,7 @@ ${input.slice(result.pos)}
9579
9649
  return result;
9580
9650
  }
9581
9651
  }
9582
- var Else$0 = $TV($EXPECT($L107, fail, 'Else "else"'), function($skip, $loc, $0, $1) {
9652
+ var Else$0 = $TV($EXPECT($L108, fail, 'Else "else"'), function($skip, $loc, $0, $1) {
9583
9653
  return { $loc, token: $1 };
9584
9654
  });
9585
9655
  function Else(state) {
@@ -9621,7 +9691,7 @@ ${input.slice(result.pos)}
9621
9691
  return result;
9622
9692
  }
9623
9693
  }
9624
- var Export$0 = $TS($S($EXPECT($L108, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9694
+ var Export$0 = $TS($S($EXPECT($L109, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9625
9695
  return { $loc, token: $1 };
9626
9696
  });
9627
9697
  function Export(state) {
@@ -9642,7 +9712,7 @@ ${input.slice(result.pos)}
9642
9712
  return result;
9643
9713
  }
9644
9714
  }
9645
- var For$0 = $TS($S($EXPECT($L109, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9715
+ var For$0 = $TS($S($EXPECT($L110, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9646
9716
  return { $loc, token: $1 };
9647
9717
  });
9648
9718
  function For(state) {
@@ -9663,7 +9733,7 @@ ${input.slice(result.pos)}
9663
9733
  return result;
9664
9734
  }
9665
9735
  }
9666
- var From$0 = $TS($S($EXPECT($L110, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9736
+ var From$0 = $TS($S($EXPECT($L111, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9667
9737
  return { $loc, token: $1 };
9668
9738
  });
9669
9739
  function From(state) {
@@ -9684,7 +9754,7 @@ ${input.slice(result.pos)}
9684
9754
  return result;
9685
9755
  }
9686
9756
  }
9687
- var Function$0 = $TV($EXPECT($L111, fail, 'Function "function"'), function($skip, $loc, $0, $1) {
9757
+ var Function$0 = $TV($EXPECT($L112, fail, 'Function "function"'), function($skip, $loc, $0, $1) {
9688
9758
  return { $loc, token: $1 };
9689
9759
  });
9690
9760
  function Function(state) {
@@ -9705,7 +9775,7 @@ ${input.slice(result.pos)}
9705
9775
  return result;
9706
9776
  }
9707
9777
  }
9708
- var GetOrSet$0 = $TS($S($C($EXPECT($L112, fail, 'GetOrSet "get"'), $EXPECT($L113, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9778
+ var GetOrSet$0 = $TS($S($C($EXPECT($L113, fail, 'GetOrSet "get"'), $EXPECT($L114, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9709
9779
  return { $loc, token: $1, type: "GetOrSet" };
9710
9780
  });
9711
9781
  function GetOrSet(state) {
@@ -9726,7 +9796,7 @@ ${input.slice(result.pos)}
9726
9796
  return result;
9727
9797
  }
9728
9798
  }
9729
- var If$0 = $TV($TEXT($S($EXPECT($L114, fail, 'If "if"'), $E($EXPECT($L4, fail, 'If " "')))), function($skip, $loc, $0, $1) {
9799
+ var If$0 = $TV($TEXT($S($EXPECT($L115, fail, 'If "if"'), $E($EXPECT($L4, fail, 'If " "')))), function($skip, $loc, $0, $1) {
9730
9800
  return { $loc, token: $1 };
9731
9801
  });
9732
9802
  function If(state) {
@@ -9789,7 +9859,7 @@ ${input.slice(result.pos)}
9789
9859
  return result;
9790
9860
  }
9791
9861
  }
9792
- var LetOrConst$0 = $TS($S($C($EXPECT($L115, fail, 'LetOrConst "let"'), $EXPECT($L116, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9862
+ var LetOrConst$0 = $TS($S($C($EXPECT($L116, fail, 'LetOrConst "let"'), $EXPECT($L117, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9793
9863
  return { $loc, token: $1 };
9794
9864
  });
9795
9865
  function LetOrConst(state) {
@@ -9810,7 +9880,7 @@ ${input.slice(result.pos)}
9810
9880
  return result;
9811
9881
  }
9812
9882
  }
9813
- var Loop$0 = $TS($S($EXPECT($L117, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9883
+ var Loop$0 = $TS($S($EXPECT($L118, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9814
9884
  return { $loc, token: "while(true)" };
9815
9885
  });
9816
9886
  function Loop(state) {
@@ -9831,7 +9901,7 @@ ${input.slice(result.pos)}
9831
9901
  return result;
9832
9902
  }
9833
9903
  }
9834
- var New$0 = $TS($S($EXPECT($L118, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9904
+ var New$0 = $TS($S($EXPECT($L119, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9835
9905
  return { $loc, token: $1 };
9836
9906
  });
9837
9907
  function New(state) {
@@ -9894,7 +9964,7 @@ ${input.slice(result.pos)}
9894
9964
  return result;
9895
9965
  }
9896
9966
  }
9897
- var OpenBrace$0 = $TV($EXPECT($L119, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
9967
+ var OpenBrace$0 = $TV($EXPECT($L120, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
9898
9968
  return { $loc, token: $1 };
9899
9969
  });
9900
9970
  function OpenBrace(state) {
@@ -9915,7 +9985,7 @@ ${input.slice(result.pos)}
9915
9985
  return result;
9916
9986
  }
9917
9987
  }
9918
- var OpenBracket$0 = $TV($EXPECT($L120, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
9988
+ var OpenBracket$0 = $TV($EXPECT($L121, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
9919
9989
  return { $loc, token: $1 };
9920
9990
  });
9921
9991
  function OpenBracket(state) {
@@ -9936,7 +10006,7 @@ ${input.slice(result.pos)}
9936
10006
  return result;
9937
10007
  }
9938
10008
  }
9939
- var OpenParen$0 = $TV($EXPECT($L121, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
10009
+ var OpenParen$0 = $TV($EXPECT($L122, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
9940
10010
  return { $loc, token: $1 };
9941
10011
  });
9942
10012
  function OpenParen(state) {
@@ -9978,7 +10048,7 @@ ${input.slice(result.pos)}
9978
10048
  return result;
9979
10049
  }
9980
10050
  }
9981
- var Return$0 = $TS($S($EXPECT($L122, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10051
+ var Return$0 = $TS($S($EXPECT($L123, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9982
10052
  return { $loc, token: $1 };
9983
10053
  });
9984
10054
  function Return(state) {
@@ -10020,7 +10090,7 @@ ${input.slice(result.pos)}
10020
10090
  return result;
10021
10091
  }
10022
10092
  }
10023
- var SingleQuote$0 = $TV($EXPECT($L123, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
10093
+ var SingleQuote$0 = $TV($EXPECT($L124, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
10024
10094
  return { $loc, token: $1 };
10025
10095
  });
10026
10096
  function SingleQuote(state) {
@@ -10062,10 +10132,10 @@ ${input.slice(result.pos)}
10062
10132
  return result;
10063
10133
  }
10064
10134
  }
10065
- var Static$0 = $TV($EXPECT($L124, fail, 'Static "static"'), function($skip, $loc, $0, $1) {
10135
+ var Static$0 = $TV($EXPECT($L125, fail, 'Static "static"'), function($skip, $loc, $0, $1) {
10066
10136
  return { $loc, token: $1 };
10067
10137
  });
10068
- var Static$1 = $TS($S($EXPECT($L91, fail, 'Static "@"'), $N($C($EXPECT($L121, fail, 'Static "("'), $EXPECT($L91, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
10138
+ var Static$1 = $TS($S($EXPECT($L92, fail, 'Static "@"'), $N($C($EXPECT($L122, fail, 'Static "("'), $EXPECT($L92, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
10069
10139
  return { $loc, token: "static " };
10070
10140
  });
10071
10141
  function Static(state) {
@@ -10086,7 +10156,7 @@ ${input.slice(result.pos)}
10086
10156
  return result;
10087
10157
  }
10088
10158
  }
10089
- var SubstitutionStart$0 = $TV($EXPECT($L125, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
10159
+ var SubstitutionStart$0 = $TV($EXPECT($L126, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
10090
10160
  return { $loc, token: $1 };
10091
10161
  });
10092
10162
  function SubstitutionStart(state) {
@@ -10107,7 +10177,7 @@ ${input.slice(result.pos)}
10107
10177
  return result;
10108
10178
  }
10109
10179
  }
10110
- var Switch$0 = $TS($S($EXPECT($L126, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10180
+ var Switch$0 = $TS($S($EXPECT($L127, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10111
10181
  return { $loc, token: $1 };
10112
10182
  });
10113
10183
  function Switch(state) {
@@ -10128,7 +10198,7 @@ ${input.slice(result.pos)}
10128
10198
  return result;
10129
10199
  }
10130
10200
  }
10131
- var Target$0 = $TS($S($EXPECT($L127, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10201
+ var Target$0 = $TS($S($EXPECT($L128, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10132
10202
  return { $loc, token: $1 };
10133
10203
  });
10134
10204
  function Target(state) {
@@ -10149,7 +10219,7 @@ ${input.slice(result.pos)}
10149
10219
  return result;
10150
10220
  }
10151
10221
  }
10152
- var Then$0 = $TS($S(__, $EXPECT($L128, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
10222
+ var Then$0 = $TS($S(__, $EXPECT($L129, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
10153
10223
  return { $loc, token: "" };
10154
10224
  });
10155
10225
  function Then(state) {
@@ -10170,7 +10240,7 @@ ${input.slice(result.pos)}
10170
10240
  return result;
10171
10241
  }
10172
10242
  }
10173
- var This$0 = $TS($S($EXPECT($L129, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10243
+ var This$0 = $TS($S($EXPECT($L130, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10174
10244
  return { $loc, token: $1 };
10175
10245
  });
10176
10246
  function This(state) {
@@ -10191,7 +10261,7 @@ ${input.slice(result.pos)}
10191
10261
  return result;
10192
10262
  }
10193
10263
  }
10194
- var Throw$0 = $TS($S($EXPECT($L130, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10264
+ var Throw$0 = $TS($S($EXPECT($L131, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10195
10265
  return { $loc, token: $1 };
10196
10266
  });
10197
10267
  function Throw(state) {
@@ -10212,7 +10282,7 @@ ${input.slice(result.pos)}
10212
10282
  return result;
10213
10283
  }
10214
10284
  }
10215
- var TripleDoubleQuote$0 = $TV($EXPECT($L131, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
10285
+ var TripleDoubleQuote$0 = $TV($EXPECT($L132, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
10216
10286
  return { $loc, token: "`" };
10217
10287
  });
10218
10288
  function TripleDoubleQuote(state) {
@@ -10233,7 +10303,7 @@ ${input.slice(result.pos)}
10233
10303
  return result;
10234
10304
  }
10235
10305
  }
10236
- var TripleSingleQuote$0 = $TV($EXPECT($L132, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
10306
+ var TripleSingleQuote$0 = $TV($EXPECT($L133, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
10237
10307
  return { $loc, token: "`" };
10238
10308
  });
10239
10309
  function TripleSingleQuote(state) {
@@ -10254,7 +10324,7 @@ ${input.slice(result.pos)}
10254
10324
  return result;
10255
10325
  }
10256
10326
  }
10257
- var TripleSlash$0 = $TV($EXPECT($L133, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
10327
+ var TripleSlash$0 = $TV($EXPECT($L134, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
10258
10328
  return { $loc, token: "/" };
10259
10329
  });
10260
10330
  function TripleSlash(state) {
@@ -10275,7 +10345,7 @@ ${input.slice(result.pos)}
10275
10345
  return result;
10276
10346
  }
10277
10347
  }
10278
- var TripleTick$0 = $TV($EXPECT($L134, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
10348
+ var TripleTick$0 = $TV($EXPECT($L135, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
10279
10349
  return { $loc, token: "`" };
10280
10350
  });
10281
10351
  function TripleTick(state) {
@@ -10296,7 +10366,7 @@ ${input.slice(result.pos)}
10296
10366
  return result;
10297
10367
  }
10298
10368
  }
10299
- var Try$0 = $TS($S($EXPECT($L135, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10369
+ var Try$0 = $TS($S($EXPECT($L136, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10300
10370
  return { $loc, token: $1 };
10301
10371
  });
10302
10372
  function Try(state) {
@@ -10317,7 +10387,7 @@ ${input.slice(result.pos)}
10317
10387
  return result;
10318
10388
  }
10319
10389
  }
10320
- var Typeof$0 = $TS($S($EXPECT($L136, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10390
+ var Typeof$0 = $TS($S($EXPECT($L137, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10321
10391
  return { $loc, token: $1 };
10322
10392
  });
10323
10393
  function Typeof(state) {
@@ -10338,7 +10408,7 @@ ${input.slice(result.pos)}
10338
10408
  return result;
10339
10409
  }
10340
10410
  }
10341
- var Unless$0 = $TS($S($EXPECT($L137, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10411
+ var Unless$0 = $TS($S($EXPECT($L138, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10342
10412
  return { $loc, token: $1 };
10343
10413
  });
10344
10414
  function Unless(state) {
@@ -10359,7 +10429,7 @@ ${input.slice(result.pos)}
10359
10429
  return result;
10360
10430
  }
10361
10431
  }
10362
- var Until$0 = $TS($S($EXPECT($L138, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10432
+ var Until$0 = $TS($S($EXPECT($L139, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10363
10433
  return { $loc, token: $1 };
10364
10434
  });
10365
10435
  function Until(state) {
@@ -10380,7 +10450,7 @@ ${input.slice(result.pos)}
10380
10450
  return result;
10381
10451
  }
10382
10452
  }
10383
- var Var$0 = $TS($S($EXPECT($L139, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10453
+ var Var$0 = $TS($S($EXPECT($L140, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10384
10454
  return { $loc, token: $1 };
10385
10455
  });
10386
10456
  function Var(state) {
@@ -10401,7 +10471,7 @@ ${input.slice(result.pos)}
10401
10471
  return result;
10402
10472
  }
10403
10473
  }
10404
- var Void$0 = $TS($S($EXPECT($L140, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10474
+ var Void$0 = $TS($S($EXPECT($L141, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10405
10475
  return { $loc, token: $1 };
10406
10476
  });
10407
10477
  function Void(state) {
@@ -10422,7 +10492,7 @@ ${input.slice(result.pos)}
10422
10492
  return result;
10423
10493
  }
10424
10494
  }
10425
- var When$0 = $TS($S($EXPECT($L141, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10495
+ var When$0 = $TS($S($EXPECT($L142, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10426
10496
  return { $loc, token: "case" };
10427
10497
  });
10428
10498
  function When(state) {
@@ -10443,7 +10513,7 @@ ${input.slice(result.pos)}
10443
10513
  return result;
10444
10514
  }
10445
10515
  }
10446
- var While$0 = $TS($S($EXPECT($L142, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10516
+ var While$0 = $TS($S($EXPECT($L143, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10447
10517
  return { $loc, token: $1 };
10448
10518
  });
10449
10519
  function While(state) {
@@ -10464,7 +10534,7 @@ ${input.slice(result.pos)}
10464
10534
  return result;
10465
10535
  }
10466
10536
  }
10467
- var Yield$0 = $TS($S($EXPECT($L143, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10537
+ var Yield$0 = $TS($S($EXPECT($L144, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
10468
10538
  return { $loc, token: $1 };
10469
10539
  });
10470
10540
  function Yield(state) {
@@ -10491,11 +10561,10 @@ ${input.slice(result.pos)}
10491
10561
  return $skip;
10492
10562
  return $0;
10493
10563
  });
10494
- var JSXElement$2 = $TS($S(JSXOpeningElement, $Q($C(_, JSXChild)), JSXNestedChildren, InsertNewline, InsertIndent), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
10564
+ var JSXElement$2 = $TS($S(JSXOpeningElement, JSXMixedChildren, InsertNewline, InsertIndent), function($skip, $loc, $0, $1, $2, $3, $4) {
10495
10565
  var open = $1;
10496
- var c1 = $2;
10497
- var c2 = $3;
10498
- if (c1.length || c2.length) {
10566
+ var children = $2;
10567
+ if (children.length) {
10499
10568
  return [...$0, ["</", open[1], ">"]];
10500
10569
  } else {
10501
10570
  return [open.slice(0, -1), " />"];
@@ -10522,7 +10591,7 @@ ${input.slice(result.pos)}
10522
10591
  return result;
10523
10592
  }
10524
10593
  }
10525
- var JSXSelfClosingElement$0 = $S($EXPECT($L5, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($L144, fail, 'JSXSelfClosingElement "/>"'));
10594
+ var JSXSelfClosingElement$0 = $S($EXPECT($L5, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(JSXAttributes), __, $EXPECT($L145, fail, 'JSXSelfClosingElement "/>"'));
10526
10595
  function JSXSelfClosingElement(state) {
10527
10596
  if (state.events) {
10528
10597
  const result = state.events.enter?.("JSXSelfClosingElement", state);
@@ -10560,7 +10629,7 @@ ${input.slice(result.pos)}
10560
10629
  return result;
10561
10630
  }
10562
10631
  }
10563
- var JSXClosingElement$0 = $S($EXPECT($L145, fail, 'JSXClosingElement "</"'), __, $TEXT(JSXElementName), __, $EXPECT($L27, fail, 'JSXClosingElement ">"'));
10632
+ var JSXClosingElement$0 = $S($EXPECT($L146, fail, 'JSXClosingElement "</"'), __, $TEXT(JSXElementName), __, $EXPECT($L27, fail, 'JSXClosingElement ">"'));
10564
10633
  function JSXClosingElement(state) {
10565
10634
  if (state.events) {
10566
10635
  const result = state.events.enter?.("JSXClosingElement", state);
@@ -10579,8 +10648,8 @@ ${input.slice(result.pos)}
10579
10648
  return result;
10580
10649
  }
10581
10650
  }
10582
- var JSXFragment$0 = $S($EXPECT($L146, fail, 'JSXFragment "<>"'), $E(JSXChildren), $EXPECT($L147, fail, 'JSXFragment "</>"'));
10583
- var JSXFragment$1 = $TS($S($EXPECT($L146, fail, 'JSXFragment "<>"'), JSXNestedChildren, InsertNewline, InsertIndent), function($skip, $loc, $0, $1, $2, $3, $4) {
10651
+ var JSXFragment$0 = $S($EXPECT($L147, fail, 'JSXFragment "<>"'), $E(JSXChildren), $EXPECT($L148, fail, 'JSXFragment "</>"'));
10652
+ var JSXFragment$1 = $TS($S($EXPECT($L147, fail, 'JSXFragment "<>"'), JSXMixedChildren, InsertNewline, InsertIndent), function($skip, $loc, $0, $1, $2, $3, $4) {
10584
10653
  return [...$0, "</>"];
10585
10654
  });
10586
10655
  function JSXFragment(state) {
@@ -10696,7 +10765,23 @@ ${input.slice(result.pos)}
10696
10765
  }
10697
10766
  return parts;
10698
10767
  });
10699
- var JSXAttribute$1 = $S(JSXAttributeName, $E(JSXAttributeInitializer));
10768
+ var JSXAttribute$1 = $TS($S(JSXAttributeName, $E(JSXAttributeInitializer)), function($skip, $loc, $0, $1, $2) {
10769
+ var name = $1;
10770
+ var value = $2;
10771
+ if (name.type === "ComputedPropertyName") {
10772
+ if (value) {
10773
+ value = value[value.length - 1];
10774
+ if (value[0]?.token === "{" && value[value.length - 1]?.token === "}") {
10775
+ value = value.slice(1, -1);
10776
+ }
10777
+ } else {
10778
+ value = "true";
10779
+ }
10780
+ return ["{...{", name, ": ", value, "}}"];
10781
+ } else {
10782
+ return $0;
10783
+ }
10784
+ });
10700
10785
  function JSXAttribute(state) {
10701
10786
  if (state.events) {
10702
10787
  const result = state.events.enter?.("JSXAttribute", state);
@@ -10716,6 +10801,7 @@ ${input.slice(result.pos)}
10716
10801
  }
10717
10802
  }
10718
10803
  var JSXAttributeName$0 = $S(JSXIdentifierName, $E($S(Colon, JSXIdentifierName)));
10804
+ var JSXAttributeName$1 = ComputedPropertyName;
10719
10805
  function JSXAttributeName(state) {
10720
10806
  if (state.events) {
10721
10807
  const result = state.events.enter?.("JSXAttributeName", state);
@@ -10723,12 +10809,12 @@ ${input.slice(result.pos)}
10723
10809
  return result.cache;
10724
10810
  }
10725
10811
  if (state.tokenize) {
10726
- const result = $TOKEN("JSXAttributeName", state, JSXAttributeName$0(state));
10812
+ const result = $TOKEN("JSXAttributeName", state, JSXAttributeName$0(state) || JSXAttributeName$1(state));
10727
10813
  if (state.events)
10728
10814
  state.events.exit?.("JSXAttributeName", state, result);
10729
10815
  return result;
10730
10816
  } else {
10731
- const result = JSXAttributeName$0(state);
10817
+ const result = JSXAttributeName$0(state) || JSXAttributeName$1(state);
10732
10818
  if (state.events)
10733
10819
  state.events.exit?.("JSXAttributeName", state, result);
10734
10820
  return result;
@@ -10758,6 +10844,7 @@ ${input.slice(result.pos)}
10758
10844
  var JSXAttributeValue$2 = $S(OpenBrace, ExtendedExpression, __, CloseBrace);
10759
10845
  var JSXAttributeValue$3 = JSXElement;
10760
10846
  var JSXAttributeValue$4 = JSXFragment;
10847
+ var JSXAttributeValue$5 = $S(InsertInlineOpenBrace, InlineJSXAttributeValue, InsertCloseBrace);
10761
10848
  function JSXAttributeValue(state) {
10762
10849
  if (state.events) {
10763
10850
  const result = state.events.enter?.("JSXAttributeValue", state);
@@ -10765,17 +10852,68 @@ ${input.slice(result.pos)}
10765
10852
  return result.cache;
10766
10853
  }
10767
10854
  if (state.tokenize) {
10768
- const result = $TOKEN("JSXAttributeValue", state, JSXAttributeValue$0(state) || JSXAttributeValue$1(state) || JSXAttributeValue$2(state) || JSXAttributeValue$3(state) || JSXAttributeValue$4(state));
10855
+ const result = $TOKEN("JSXAttributeValue", state, JSXAttributeValue$0(state) || JSXAttributeValue$1(state) || JSXAttributeValue$2(state) || JSXAttributeValue$3(state) || JSXAttributeValue$4(state) || JSXAttributeValue$5(state));
10769
10856
  if (state.events)
10770
10857
  state.events.exit?.("JSXAttributeValue", state, result);
10771
10858
  return result;
10772
10859
  } else {
10773
- const result = JSXAttributeValue$0(state) || JSXAttributeValue$1(state) || JSXAttributeValue$2(state) || JSXAttributeValue$3(state) || JSXAttributeValue$4(state);
10860
+ const result = JSXAttributeValue$0(state) || JSXAttributeValue$1(state) || JSXAttributeValue$2(state) || JSXAttributeValue$3(state) || JSXAttributeValue$4(state) || JSXAttributeValue$5(state);
10774
10861
  if (state.events)
10775
10862
  state.events.exit?.("JSXAttributeValue", state, result);
10776
10863
  return result;
10777
10864
  }
10778
10865
  }
10866
+ var InlineJSXAttributeValue$0 = NullLiteral;
10867
+ var InlineJSXAttributeValue$1 = BooleanLiteral;
10868
+ var InlineJSXAttributeValue$2 = NumericLiteral;
10869
+ var InlineJSXAttributeValue$3 = ThisLiteral;
10870
+ var InlineJSXAttributeValue$4 = ArrayLiteral;
10871
+ var InlineJSXAttributeValue$5 = BracedObjectLiteral;
10872
+ var InlineJSXAttributeValue$6 = IdentifierReference;
10873
+ var InlineJSXAttributeValue$7 = RegularExpressionLiteral;
10874
+ var InlineJSXAttributeValue$8 = TemplateLiteral;
10875
+ var InlineJSXAttributeValue$9 = ParenthesizedExpression;
10876
+ function InlineJSXAttributeValue(state) {
10877
+ if (state.events) {
10878
+ const result = state.events.enter?.("InlineJSXAttributeValue", state);
10879
+ if (result)
10880
+ return result.cache;
10881
+ }
10882
+ if (state.tokenize) {
10883
+ const result = $TOKEN("InlineJSXAttributeValue", state, InlineJSXAttributeValue$0(state) || InlineJSXAttributeValue$1(state) || InlineJSXAttributeValue$2(state) || InlineJSXAttributeValue$3(state) || InlineJSXAttributeValue$4(state) || InlineJSXAttributeValue$5(state) || InlineJSXAttributeValue$6(state) || InlineJSXAttributeValue$7(state) || InlineJSXAttributeValue$8(state) || InlineJSXAttributeValue$9(state));
10884
+ if (state.events)
10885
+ state.events.exit?.("InlineJSXAttributeValue", state, result);
10886
+ return result;
10887
+ } else {
10888
+ const result = InlineJSXAttributeValue$0(state) || InlineJSXAttributeValue$1(state) || InlineJSXAttributeValue$2(state) || InlineJSXAttributeValue$3(state) || InlineJSXAttributeValue$4(state) || InlineJSXAttributeValue$5(state) || InlineJSXAttributeValue$6(state) || InlineJSXAttributeValue$7(state) || InlineJSXAttributeValue$8(state) || InlineJSXAttributeValue$9(state);
10889
+ if (state.events)
10890
+ state.events.exit?.("InlineJSXAttributeValue", state, result);
10891
+ return result;
10892
+ }
10893
+ }
10894
+ var JSXMixedChildren$0 = $TS($S($Q($C(_, JSXChild)), JSXNestedChildren), function($skip, $loc, $0, $1, $2) {
10895
+ var c1 = $1;
10896
+ var c2 = $2;
10897
+ return c1.concat(c2);
10898
+ });
10899
+ function JSXMixedChildren(state) {
10900
+ if (state.events) {
10901
+ const result = state.events.enter?.("JSXMixedChildren", state);
10902
+ if (result)
10903
+ return result.cache;
10904
+ }
10905
+ if (state.tokenize) {
10906
+ const result = $TOKEN("JSXMixedChildren", state, JSXMixedChildren$0(state));
10907
+ if (state.events)
10908
+ state.events.exit?.("JSXMixedChildren", state, result);
10909
+ return result;
10910
+ } else {
10911
+ const result = JSXMixedChildren$0(state);
10912
+ if (state.events)
10913
+ state.events.exit?.("JSXMixedChildren", state, result);
10914
+ return result;
10915
+ }
10916
+ }
10779
10917
  var JSXChildren$0 = $Q($S(__, JSXChild));
10780
10918
  function JSXChildren(state) {
10781
10919
  if (state.events) {
@@ -10902,7 +11040,7 @@ ${input.slice(result.pos)}
10902
11040
  return result;
10903
11041
  }
10904
11042
  }
10905
- var TypeDeclarationModifier$0 = $S($EXPECT($L148, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
11043
+ var TypeDeclarationModifier$0 = $S($EXPECT($L149, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
10906
11044
  var TypeDeclarationModifier$1 = Export;
10907
11045
  function TypeDeclarationModifier(state) {
10908
11046
  if (state.events) {
@@ -10944,7 +11082,7 @@ ${input.slice(result.pos)}
10944
11082
  return result;
10945
11083
  }
10946
11084
  }
10947
- var TypeKeyword$0 = $S($EXPECT($L149, fail, 'TypeKeyword "type"'), NonIdContinue);
11085
+ var TypeKeyword$0 = $S($EXPECT($L150, fail, 'TypeKeyword "type"'), NonIdContinue);
10948
11086
  function TypeKeyword(state) {
10949
11087
  if (state.events) {
10950
11088
  const result = state.events.enter?.("TypeKeyword", state);
@@ -10963,7 +11101,7 @@ ${input.slice(result.pos)}
10963
11101
  return result;
10964
11102
  }
10965
11103
  }
10966
- var Interface$0 = $S($EXPECT($L150, fail, 'Interface "interface"'), NonIdContinue);
11104
+ var Interface$0 = $S($EXPECT($L151, fail, 'Interface "interface"'), NonIdContinue);
10967
11105
  function Interface(state) {
10968
11106
  if (state.events) {
10969
11107
  const result = state.events.enter?.("Interface", state);
@@ -10982,7 +11120,7 @@ ${input.slice(result.pos)}
10982
11120
  return result;
10983
11121
  }
10984
11122
  }
10985
- var Namespace$0 = $S($EXPECT($L151, fail, 'Namespace "namespace"'), NonIdContinue);
11123
+ var Namespace$0 = $S($EXPECT($L152, fail, 'Namespace "namespace"'), NonIdContinue);
10986
11124
  function Namespace(state) {
10987
11125
  if (state.events) {
10988
11126
  const result = state.events.enter?.("Namespace", state);
@@ -11171,7 +11309,7 @@ ${input.slice(result.pos)}
11171
11309
  return result;
11172
11310
  }
11173
11311
  }
11174
- var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R49, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L152, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R4, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
11312
+ var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R49, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L153, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R4, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
11175
11313
  function TypeIndexSignature(state) {
11176
11314
  if (state.events) {
11177
11315
  const result = state.events.enter?.("TypeIndexSignature", state);
@@ -11231,7 +11369,7 @@ ${input.slice(result.pos)}
11231
11369
  return result;
11232
11370
  }
11233
11371
  }
11234
- var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($L153, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2, $3, $4) {
11372
+ var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($L154, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2, $3, $4) {
11235
11373
  const children = [...$1, $2];
11236
11374
  if ($3)
11237
11375
  children.push($3);
@@ -11366,10 +11504,10 @@ ${input.slice(result.pos)}
11366
11504
  return result;
11367
11505
  }
11368
11506
  }
11369
- var TypeUnaryOp$0 = $EXPECT($L154, fail, 'TypeUnaryOp "keyof"');
11370
- var TypeUnaryOp$1 = $EXPECT($L136, fail, 'TypeUnaryOp "typeof"');
11371
- var TypeUnaryOp$2 = $EXPECT($L155, fail, 'TypeUnaryOp "infer"');
11372
- var TypeUnaryOp$3 = $EXPECT($L152, fail, 'TypeUnaryOp "readonly"');
11507
+ var TypeUnaryOp$0 = $EXPECT($L155, fail, 'TypeUnaryOp "keyof"');
11508
+ var TypeUnaryOp$1 = $EXPECT($L137, fail, 'TypeUnaryOp "typeof"');
11509
+ var TypeUnaryOp$2 = $EXPECT($L156, fail, 'TypeUnaryOp "infer"');
11510
+ var TypeUnaryOp$3 = $EXPECT($L153, fail, 'TypeUnaryOp "readonly"');
11373
11511
  function TypeUnaryOp(state) {
11374
11512
  if (state.events) {
11375
11513
  const result = state.events.enter?.("TypeUnaryOp", state);
@@ -11538,10 +11676,10 @@ ${input.slice(result.pos)}
11538
11676
  }
11539
11677
  var TypeLiteral$0 = Literal;
11540
11678
  var TypeLiteral$1 = TemplateLiteral;
11541
- var TypeLiteral$2 = $TV($EXPECT($L140, fail, 'TypeLiteral "void"'), function($skip, $loc, $0, $1) {
11679
+ var TypeLiteral$2 = $TV($EXPECT($L141, fail, 'TypeLiteral "void"'), function($skip, $loc, $0, $1) {
11542
11680
  return { $loc, token: "void" };
11543
11681
  });
11544
- var TypeLiteral$3 = $TV($EXPECT($L156, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
11682
+ var TypeLiteral$3 = $TV($EXPECT($L157, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
11545
11683
  return { $loc, token: "[]" };
11546
11684
  });
11547
11685
  function TypeLiteral(state) {
@@ -11754,7 +11892,7 @@ ${input.slice(result.pos)}
11754
11892
  return result;
11755
11893
  }
11756
11894
  }
11757
- var CivetPrologueContent$0 = $TS($S($EXPECT($L157, fail, 'CivetPrologueContent "civet"'), $Q(CivetOption), $EXPECT($R52, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3) {
11895
+ var CivetPrologueContent$0 = $TS($S($EXPECT($L158, fail, 'CivetPrologueContent "civet"'), $Q(CivetOption), $EXPECT($R52, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3) {
11758
11896
  var options = $2;
11759
11897
  return {
11760
11898
  type: "CivetPrologue",
@@ -11976,7 +12114,7 @@ ${input.slice(result.pos)}
11976
12114
  }
11977
12115
  }
11978
12116
  var InsertInlineOpenBrace$0 = $TV($EXPECT($L0, fail, 'InsertInlineOpenBrace ""'), function($skip, $loc, $0, $1) {
11979
- return [{ $loc, token: "{" }];
12117
+ return { $loc, token: "{" };
11980
12118
  });
11981
12119
  function InsertInlineOpenBrace(state) {
11982
12120
  if (state.events) {
@@ -12059,6 +12197,27 @@ ${input.slice(result.pos)}
12059
12197
  return result;
12060
12198
  }
12061
12199
  }
12200
+ var InsertLet$0 = $TV($EXPECT($L0, fail, 'InsertLet ""'), function($skip, $loc, $0, $1) {
12201
+ return { $loc, token: "let " };
12202
+ });
12203
+ function InsertLet(state) {
12204
+ if (state.events) {
12205
+ const result = state.events.enter?.("InsertLet", state);
12206
+ if (result)
12207
+ return result.cache;
12208
+ }
12209
+ if (state.tokenize) {
12210
+ const result = $TOKEN("InsertLet", state, InsertLet$0(state));
12211
+ if (state.events)
12212
+ state.events.exit?.("InsertLet", state, result);
12213
+ return result;
12214
+ } else {
12215
+ const result = InsertLet$0(state);
12216
+ if (state.events)
12217
+ state.events.exit?.("InsertLet", state, result);
12218
+ return result;
12219
+ }
12220
+ }
12062
12221
  var InsertReadonly$0 = $TV($EXPECT($L0, fail, 'InsertReadonly ""'), function($skip, $loc, $0, $1) {
12063
12222
  return { ts: true, children: [{ $loc, token: "readonly " }] };
12064
12223
  });
@@ -14042,6 +14201,7 @@ ${"//#"} sourceMappingURL=data:application/json;base64,${base64Encode(JSON.strin
14042
14201
  case "JSXChildren":
14043
14202
  case "JSXFragment":
14044
14203
  case "JSXNestedChildren":
14204
+ case "JSXMixedChildren":
14045
14205
  break;
14046
14206
  default:
14047
14207
  cache = /* @__PURE__ */ new Map();