@danielx/civet 0.4.35 → 0.4.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.js CHANGED
@@ -706,6 +706,7 @@ ${input.slice(result.pos)}
706
706
  HoistableDeclaration,
707
707
  LexicalDeclaration,
708
708
  ConstAssignment,
709
+ LetAssignment,
709
710
  LexicalBinding,
710
711
  Initializer,
711
712
  VariableStatement,
@@ -904,6 +905,7 @@ ${input.slice(result.pos)}
904
905
  InsertCloseBrace,
905
906
  InsertComma,
906
907
  InsertConst,
908
+ InsertLet,
907
909
  InsertReadonly,
908
910
  InsertNewline,
909
911
  InsertIndent,
@@ -1019,77 +1021,78 @@ ${input.slice(result.pos)}
1019
1021
  var $L84 = $L("import type");
1020
1022
  var $L85 = $L("default");
1021
1023
  var $L86 = $L(":=");
1022
- var $L87 = $L("/*");
1023
- var $L88 = $L("*/");
1024
- var $L89 = $L("\\");
1025
- var $L90 = $L("as");
1026
- var $L91 = $L("@");
1027
- var $L92 = $L("@@");
1028
- var $L93 = $L("async");
1029
- var $L94 = $L("await");
1030
- var $L95 = $L("`");
1031
- var $L96 = $L("by");
1032
- var $L97 = $L("case");
1033
- var $L98 = $L("catch");
1034
- var $L99 = $L("class");
1035
- var $L100 = $L("#{");
1036
- var $L101 = $L("delete");
1037
- var $L102 = $L("do");
1038
- var $L103 = $L("..");
1039
- var $L104 = $L("...");
1040
- var $L105 = $L("::");
1041
- var $L106 = $L('"');
1042
- var $L107 = $L("else");
1043
- var $L108 = $L("export");
1044
- var $L109 = $L("for");
1045
- var $L110 = $L("from");
1046
- var $L111 = $L("function");
1047
- var $L112 = $L("get");
1048
- var $L113 = $L("set");
1049
- var $L114 = $L("if");
1050
- var $L115 = $L("let");
1051
- var $L116 = $L("const");
1052
- var $L117 = $L("loop");
1053
- var $L118 = $L("new");
1054
- var $L119 = $L("{");
1055
- var $L120 = $L("[");
1056
- var $L121 = $L("(");
1057
- var $L122 = $L("return");
1058
- var $L123 = $L("'");
1059
- var $L124 = $L("static");
1060
- var $L125 = $L("${");
1061
- var $L126 = $L("switch");
1062
- var $L127 = $L("target");
1063
- var $L128 = $L("then");
1064
- var $L129 = $L("this");
1065
- var $L130 = $L("throw");
1066
- var $L131 = $L('"""');
1067
- var $L132 = $L("'''");
1068
- var $L133 = $L("///");
1069
- var $L134 = $L("```");
1070
- var $L135 = $L("try");
1071
- var $L136 = $L("typeof");
1072
- var $L137 = $L("unless");
1073
- var $L138 = $L("until");
1074
- var $L139 = $L("var");
1075
- var $L140 = $L("void");
1076
- var $L141 = $L("when");
1077
- var $L142 = $L("while");
1078
- var $L143 = $L("yield");
1079
- var $L144 = $L("/>");
1080
- var $L145 = $L("</");
1081
- var $L146 = $L("<>");
1082
- var $L147 = $L("</>");
1083
- var $L148 = $L("declare");
1084
- var $L149 = $L("type");
1085
- var $L150 = $L("interface");
1086
- var $L151 = $L("namespace");
1087
- var $L152 = $L("readonly");
1088
- var $L153 = $L("asserts");
1089
- var $L154 = $L("keyof");
1090
- var $L155 = $L("infer");
1091
- var $L156 = $L("[]");
1092
- 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");
1093
1096
  var $R0 = $R(new RegExp("(for|of|then|when)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
1094
1097
  var $R1 = $R(new RegExp("[&]", "suy"));
1095
1098
  var $R2 = $R(new RegExp("[!~+-]+", "suy"));
@@ -7743,6 +7746,30 @@ ${input.slice(result.pos)}
7743
7746
  children
7744
7747
  };
7745
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
+ });
7746
7773
  function LexicalDeclaration(state) {
7747
7774
  if (state.events) {
7748
7775
  const result = state.events.enter?.("LexicalDeclaration", state);
@@ -7750,12 +7777,12 @@ ${input.slice(result.pos)}
7750
7777
  return result.cache;
7751
7778
  }
7752
7779
  if (state.tokenize) {
7753
- 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));
7754
7781
  if (state.events)
7755
7782
  state.events.exit?.("LexicalDeclaration", state, result);
7756
7783
  return result;
7757
7784
  } else {
7758
- const result = LexicalDeclaration$0(state) || LexicalDeclaration$1(state);
7785
+ const result = LexicalDeclaration$0(state) || LexicalDeclaration$1(state) || LexicalDeclaration$2(state);
7759
7786
  if (state.events)
7760
7787
  state.events.exit?.("LexicalDeclaration", state, result);
7761
7788
  return result;
@@ -7782,6 +7809,27 @@ ${input.slice(result.pos)}
7782
7809
  return result;
7783
7810
  }
7784
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
+ }
7785
7833
  var LexicalBinding$0 = $TS($S(BindingPattern, $E(TypeSuffix), Initializer), function($skip, $loc, $0, $1, $2, $3) {
7786
7834
  const children = [...$1.children];
7787
7835
  if ($2)
@@ -8766,7 +8814,7 @@ ${input.slice(result.pos)}
8766
8814
  return result;
8767
8815
  }
8768
8816
  }
8769
- 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) {
8770
8818
  return { $loc, token: $1 };
8771
8819
  });
8772
8820
  function JSMultiLineComment(state) {
@@ -8808,7 +8856,7 @@ ${input.slice(result.pos)}
8808
8856
  return result;
8809
8857
  }
8810
8858
  }
8811
- 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) {
8812
8860
  return { $loc, token: `/*${$2}*/` };
8813
8861
  });
8814
8862
  function CoffeeMultiLineComment(state) {
@@ -8848,7 +8896,7 @@ ${input.slice(result.pos)}
8848
8896
  return result;
8849
8897
  }
8850
8898
  }
8851
- 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) {
8852
8900
  return { $loc, token: $1 };
8853
8901
  });
8854
8902
  function InlineComment(state) {
@@ -8931,7 +8979,7 @@ ${input.slice(result.pos)}
8931
8979
  var NonNewlineWhitespace$0 = $TR($EXPECT($R42, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
8932
8980
  return { $loc, token: $0 };
8933
8981
  });
8934
- 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) {
8935
8983
  return "";
8936
8984
  });
8937
8985
  function NonNewlineWhitespace(state) {
@@ -9097,7 +9145,7 @@ ${input.slice(result.pos)}
9097
9145
  return result;
9098
9146
  }
9099
9147
  }
9100
- 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) {
9101
9149
  return { $loc, token: $1 };
9102
9150
  });
9103
9151
  function As(state) {
@@ -9118,7 +9166,7 @@ ${input.slice(result.pos)}
9118
9166
  return result;
9119
9167
  }
9120
9168
  }
9121
- 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) {
9122
9170
  return { $loc, token: $1 };
9123
9171
  });
9124
9172
  function At(state) {
@@ -9139,7 +9187,7 @@ ${input.slice(result.pos)}
9139
9187
  return result;
9140
9188
  }
9141
9189
  }
9142
- 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) {
9143
9191
  return { $loc, token: "@" };
9144
9192
  });
9145
9193
  function AtAt(state) {
@@ -9160,7 +9208,7 @@ ${input.slice(result.pos)}
9160
9208
  return result;
9161
9209
  }
9162
9210
  }
9163
- 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) {
9164
9212
  return { $loc, token: $1, type: "Async" };
9165
9213
  });
9166
9214
  function Async(state) {
@@ -9181,7 +9229,7 @@ ${input.slice(result.pos)}
9181
9229
  return result;
9182
9230
  }
9183
9231
  }
9184
- 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) {
9185
9233
  return { $loc, token: $1 };
9186
9234
  });
9187
9235
  function Await(state) {
@@ -9202,7 +9250,7 @@ ${input.slice(result.pos)}
9202
9250
  return result;
9203
9251
  }
9204
9252
  }
9205
- 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) {
9206
9254
  return { $loc, token: $1 };
9207
9255
  });
9208
9256
  function Backtick(state) {
@@ -9223,7 +9271,7 @@ ${input.slice(result.pos)}
9223
9271
  return result;
9224
9272
  }
9225
9273
  }
9226
- 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) {
9227
9275
  return { $loc, token: $1 };
9228
9276
  });
9229
9277
  function By(state) {
@@ -9244,7 +9292,7 @@ ${input.slice(result.pos)}
9244
9292
  return result;
9245
9293
  }
9246
9294
  }
9247
- 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) {
9248
9296
  return { $loc, token: $1 };
9249
9297
  });
9250
9298
  function Case(state) {
@@ -9265,7 +9313,7 @@ ${input.slice(result.pos)}
9265
9313
  return result;
9266
9314
  }
9267
9315
  }
9268
- 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) {
9269
9317
  return { $loc, token: $1 };
9270
9318
  });
9271
9319
  function Catch(state) {
@@ -9286,7 +9334,7 @@ ${input.slice(result.pos)}
9286
9334
  return result;
9287
9335
  }
9288
9336
  }
9289
- 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) {
9290
9338
  return { $loc, token: $1 };
9291
9339
  });
9292
9340
  function Class(state) {
@@ -9370,7 +9418,7 @@ ${input.slice(result.pos)}
9370
9418
  return result;
9371
9419
  }
9372
9420
  }
9373
- 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) {
9374
9422
  return { $loc, token: "${" };
9375
9423
  });
9376
9424
  function CoffeeSubstitutionStart(state) {
@@ -9412,7 +9460,7 @@ ${input.slice(result.pos)}
9412
9460
  return result;
9413
9461
  }
9414
9462
  }
9415
- 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) {
9416
9464
  return { $loc, token: "constructor" };
9417
9465
  });
9418
9466
  function ConstructorShorthand(state) {
@@ -9454,7 +9502,7 @@ ${input.slice(result.pos)}
9454
9502
  return result;
9455
9503
  }
9456
9504
  }
9457
- 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) {
9458
9506
  return { $loc, token: $1 };
9459
9507
  });
9460
9508
  function Delete(state) {
@@ -9475,7 +9523,7 @@ ${input.slice(result.pos)}
9475
9523
  return result;
9476
9524
  }
9477
9525
  }
9478
- 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) {
9479
9527
  return { $loc, token: $1 };
9480
9528
  });
9481
9529
  function Do(state) {
@@ -9517,7 +9565,7 @@ ${input.slice(result.pos)}
9517
9565
  return result;
9518
9566
  }
9519
9567
  }
9520
- 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) {
9521
9569
  return { $loc, token: $1 };
9522
9570
  });
9523
9571
  function DotDot(state) {
@@ -9538,7 +9586,7 @@ ${input.slice(result.pos)}
9538
9586
  return result;
9539
9587
  }
9540
9588
  }
9541
- 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) {
9542
9590
  return { $loc, token: $1 };
9543
9591
  });
9544
9592
  function DotDotDot(state) {
@@ -9559,7 +9607,7 @@ ${input.slice(result.pos)}
9559
9607
  return result;
9560
9608
  }
9561
9609
  }
9562
- 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) {
9563
9611
  return { $loc, token: $1 };
9564
9612
  });
9565
9613
  function DoubleColon(state) {
@@ -9580,7 +9628,7 @@ ${input.slice(result.pos)}
9580
9628
  return result;
9581
9629
  }
9582
9630
  }
9583
- 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) {
9584
9632
  return { $loc, token: $1 };
9585
9633
  });
9586
9634
  function DoubleQuote(state) {
@@ -9601,7 +9649,7 @@ ${input.slice(result.pos)}
9601
9649
  return result;
9602
9650
  }
9603
9651
  }
9604
- 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) {
9605
9653
  return { $loc, token: $1 };
9606
9654
  });
9607
9655
  function Else(state) {
@@ -9643,7 +9691,7 @@ ${input.slice(result.pos)}
9643
9691
  return result;
9644
9692
  }
9645
9693
  }
9646
- 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) {
9647
9695
  return { $loc, token: $1 };
9648
9696
  });
9649
9697
  function Export(state) {
@@ -9664,7 +9712,7 @@ ${input.slice(result.pos)}
9664
9712
  return result;
9665
9713
  }
9666
9714
  }
9667
- 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) {
9668
9716
  return { $loc, token: $1 };
9669
9717
  });
9670
9718
  function For(state) {
@@ -9685,7 +9733,7 @@ ${input.slice(result.pos)}
9685
9733
  return result;
9686
9734
  }
9687
9735
  }
9688
- 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) {
9689
9737
  return { $loc, token: $1 };
9690
9738
  });
9691
9739
  function From(state) {
@@ -9706,7 +9754,7 @@ ${input.slice(result.pos)}
9706
9754
  return result;
9707
9755
  }
9708
9756
  }
9709
- 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) {
9710
9758
  return { $loc, token: $1 };
9711
9759
  });
9712
9760
  function Function(state) {
@@ -9727,7 +9775,7 @@ ${input.slice(result.pos)}
9727
9775
  return result;
9728
9776
  }
9729
9777
  }
9730
- 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) {
9731
9779
  return { $loc, token: $1, type: "GetOrSet" };
9732
9780
  });
9733
9781
  function GetOrSet(state) {
@@ -9748,7 +9796,7 @@ ${input.slice(result.pos)}
9748
9796
  return result;
9749
9797
  }
9750
9798
  }
9751
- 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) {
9752
9800
  return { $loc, token: $1 };
9753
9801
  });
9754
9802
  function If(state) {
@@ -9811,7 +9859,7 @@ ${input.slice(result.pos)}
9811
9859
  return result;
9812
9860
  }
9813
9861
  }
9814
- 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) {
9815
9863
  return { $loc, token: $1 };
9816
9864
  });
9817
9865
  function LetOrConst(state) {
@@ -9832,7 +9880,7 @@ ${input.slice(result.pos)}
9832
9880
  return result;
9833
9881
  }
9834
9882
  }
9835
- 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) {
9836
9884
  return { $loc, token: "while(true)" };
9837
9885
  });
9838
9886
  function Loop(state) {
@@ -9853,7 +9901,7 @@ ${input.slice(result.pos)}
9853
9901
  return result;
9854
9902
  }
9855
9903
  }
9856
- 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) {
9857
9905
  return { $loc, token: $1 };
9858
9906
  });
9859
9907
  function New(state) {
@@ -9916,7 +9964,7 @@ ${input.slice(result.pos)}
9916
9964
  return result;
9917
9965
  }
9918
9966
  }
9919
- 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) {
9920
9968
  return { $loc, token: $1 };
9921
9969
  });
9922
9970
  function OpenBrace(state) {
@@ -9937,7 +9985,7 @@ ${input.slice(result.pos)}
9937
9985
  return result;
9938
9986
  }
9939
9987
  }
9940
- 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) {
9941
9989
  return { $loc, token: $1 };
9942
9990
  });
9943
9991
  function OpenBracket(state) {
@@ -9958,7 +10006,7 @@ ${input.slice(result.pos)}
9958
10006
  return result;
9959
10007
  }
9960
10008
  }
9961
- 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) {
9962
10010
  return { $loc, token: $1 };
9963
10011
  });
9964
10012
  function OpenParen(state) {
@@ -10000,7 +10048,7 @@ ${input.slice(result.pos)}
10000
10048
  return result;
10001
10049
  }
10002
10050
  }
10003
- 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) {
10004
10052
  return { $loc, token: $1 };
10005
10053
  });
10006
10054
  function Return(state) {
@@ -10042,7 +10090,7 @@ ${input.slice(result.pos)}
10042
10090
  return result;
10043
10091
  }
10044
10092
  }
10045
- 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) {
10046
10094
  return { $loc, token: $1 };
10047
10095
  });
10048
10096
  function SingleQuote(state) {
@@ -10084,10 +10132,10 @@ ${input.slice(result.pos)}
10084
10132
  return result;
10085
10133
  }
10086
10134
  }
10087
- 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) {
10088
10136
  return { $loc, token: $1 };
10089
10137
  });
10090
- 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) {
10091
10139
  return { $loc, token: "static " };
10092
10140
  });
10093
10141
  function Static(state) {
@@ -10108,7 +10156,7 @@ ${input.slice(result.pos)}
10108
10156
  return result;
10109
10157
  }
10110
10158
  }
10111
- 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) {
10112
10160
  return { $loc, token: $1 };
10113
10161
  });
10114
10162
  function SubstitutionStart(state) {
@@ -10129,7 +10177,7 @@ ${input.slice(result.pos)}
10129
10177
  return result;
10130
10178
  }
10131
10179
  }
10132
- 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) {
10133
10181
  return { $loc, token: $1 };
10134
10182
  });
10135
10183
  function Switch(state) {
@@ -10150,7 +10198,7 @@ ${input.slice(result.pos)}
10150
10198
  return result;
10151
10199
  }
10152
10200
  }
10153
- 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) {
10154
10202
  return { $loc, token: $1 };
10155
10203
  });
10156
10204
  function Target(state) {
@@ -10171,7 +10219,7 @@ ${input.slice(result.pos)}
10171
10219
  return result;
10172
10220
  }
10173
10221
  }
10174
- 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) {
10175
10223
  return { $loc, token: "" };
10176
10224
  });
10177
10225
  function Then(state) {
@@ -10192,7 +10240,7 @@ ${input.slice(result.pos)}
10192
10240
  return result;
10193
10241
  }
10194
10242
  }
10195
- 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) {
10196
10244
  return { $loc, token: $1 };
10197
10245
  });
10198
10246
  function This(state) {
@@ -10213,7 +10261,7 @@ ${input.slice(result.pos)}
10213
10261
  return result;
10214
10262
  }
10215
10263
  }
10216
- 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) {
10217
10265
  return { $loc, token: $1 };
10218
10266
  });
10219
10267
  function Throw(state) {
@@ -10234,7 +10282,7 @@ ${input.slice(result.pos)}
10234
10282
  return result;
10235
10283
  }
10236
10284
  }
10237
- 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) {
10238
10286
  return { $loc, token: "`" };
10239
10287
  });
10240
10288
  function TripleDoubleQuote(state) {
@@ -10255,7 +10303,7 @@ ${input.slice(result.pos)}
10255
10303
  return result;
10256
10304
  }
10257
10305
  }
10258
- 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) {
10259
10307
  return { $loc, token: "`" };
10260
10308
  });
10261
10309
  function TripleSingleQuote(state) {
@@ -10276,7 +10324,7 @@ ${input.slice(result.pos)}
10276
10324
  return result;
10277
10325
  }
10278
10326
  }
10279
- 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) {
10280
10328
  return { $loc, token: "/" };
10281
10329
  });
10282
10330
  function TripleSlash(state) {
@@ -10297,7 +10345,7 @@ ${input.slice(result.pos)}
10297
10345
  return result;
10298
10346
  }
10299
10347
  }
10300
- 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) {
10301
10349
  return { $loc, token: "`" };
10302
10350
  });
10303
10351
  function TripleTick(state) {
@@ -10318,7 +10366,7 @@ ${input.slice(result.pos)}
10318
10366
  return result;
10319
10367
  }
10320
10368
  }
10321
- 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) {
10322
10370
  return { $loc, token: $1 };
10323
10371
  });
10324
10372
  function Try(state) {
@@ -10339,7 +10387,7 @@ ${input.slice(result.pos)}
10339
10387
  return result;
10340
10388
  }
10341
10389
  }
10342
- 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) {
10343
10391
  return { $loc, token: $1 };
10344
10392
  });
10345
10393
  function Typeof(state) {
@@ -10360,7 +10408,7 @@ ${input.slice(result.pos)}
10360
10408
  return result;
10361
10409
  }
10362
10410
  }
10363
- 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) {
10364
10412
  return { $loc, token: $1 };
10365
10413
  });
10366
10414
  function Unless(state) {
@@ -10381,7 +10429,7 @@ ${input.slice(result.pos)}
10381
10429
  return result;
10382
10430
  }
10383
10431
  }
10384
- 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) {
10385
10433
  return { $loc, token: $1 };
10386
10434
  });
10387
10435
  function Until(state) {
@@ -10402,7 +10450,7 @@ ${input.slice(result.pos)}
10402
10450
  return result;
10403
10451
  }
10404
10452
  }
10405
- 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) {
10406
10454
  return { $loc, token: $1 };
10407
10455
  });
10408
10456
  function Var(state) {
@@ -10423,7 +10471,7 @@ ${input.slice(result.pos)}
10423
10471
  return result;
10424
10472
  }
10425
10473
  }
10426
- 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) {
10427
10475
  return { $loc, token: $1 };
10428
10476
  });
10429
10477
  function Void(state) {
@@ -10444,7 +10492,7 @@ ${input.slice(result.pos)}
10444
10492
  return result;
10445
10493
  }
10446
10494
  }
10447
- 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) {
10448
10496
  return { $loc, token: "case" };
10449
10497
  });
10450
10498
  function When(state) {
@@ -10465,7 +10513,7 @@ ${input.slice(result.pos)}
10465
10513
  return result;
10466
10514
  }
10467
10515
  }
10468
- 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) {
10469
10517
  return { $loc, token: $1 };
10470
10518
  });
10471
10519
  function While(state) {
@@ -10486,7 +10534,7 @@ ${input.slice(result.pos)}
10486
10534
  return result;
10487
10535
  }
10488
10536
  }
10489
- 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) {
10490
10538
  return { $loc, token: $1 };
10491
10539
  });
10492
10540
  function Yield(state) {
@@ -10543,7 +10591,7 @@ ${input.slice(result.pos)}
10543
10591
  return result;
10544
10592
  }
10545
10593
  }
10546
- 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 "/>"'));
10547
10595
  function JSXSelfClosingElement(state) {
10548
10596
  if (state.events) {
10549
10597
  const result = state.events.enter?.("JSXSelfClosingElement", state);
@@ -10581,7 +10629,7 @@ ${input.slice(result.pos)}
10581
10629
  return result;
10582
10630
  }
10583
10631
  }
10584
- 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 ">"'));
10585
10633
  function JSXClosingElement(state) {
10586
10634
  if (state.events) {
10587
10635
  const result = state.events.enter?.("JSXClosingElement", state);
@@ -10600,8 +10648,8 @@ ${input.slice(result.pos)}
10600
10648
  return result;
10601
10649
  }
10602
10650
  }
10603
- var JSXFragment$0 = $S($EXPECT($L146, fail, 'JSXFragment "<>"'), $E(JSXChildren), $EXPECT($L147, fail, 'JSXFragment "</>"'));
10604
- var JSXFragment$1 = $TS($S($EXPECT($L146, fail, 'JSXFragment "<>"'), JSXMixedChildren, 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) {
10605
10653
  return [...$0, "</>"];
10606
10654
  });
10607
10655
  function JSXFragment(state) {
@@ -10992,7 +11040,7 @@ ${input.slice(result.pos)}
10992
11040
  return result;
10993
11041
  }
10994
11042
  }
10995
- var TypeDeclarationModifier$0 = $S($EXPECT($L148, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
11043
+ var TypeDeclarationModifier$0 = $S($EXPECT($L149, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
10996
11044
  var TypeDeclarationModifier$1 = Export;
10997
11045
  function TypeDeclarationModifier(state) {
10998
11046
  if (state.events) {
@@ -11034,7 +11082,7 @@ ${input.slice(result.pos)}
11034
11082
  return result;
11035
11083
  }
11036
11084
  }
11037
- var TypeKeyword$0 = $S($EXPECT($L149, fail, 'TypeKeyword "type"'), NonIdContinue);
11085
+ var TypeKeyword$0 = $S($EXPECT($L150, fail, 'TypeKeyword "type"'), NonIdContinue);
11038
11086
  function TypeKeyword(state) {
11039
11087
  if (state.events) {
11040
11088
  const result = state.events.enter?.("TypeKeyword", state);
@@ -11053,7 +11101,7 @@ ${input.slice(result.pos)}
11053
11101
  return result;
11054
11102
  }
11055
11103
  }
11056
- var Interface$0 = $S($EXPECT($L150, fail, 'Interface "interface"'), NonIdContinue);
11104
+ var Interface$0 = $S($EXPECT($L151, fail, 'Interface "interface"'), NonIdContinue);
11057
11105
  function Interface(state) {
11058
11106
  if (state.events) {
11059
11107
  const result = state.events.enter?.("Interface", state);
@@ -11072,7 +11120,7 @@ ${input.slice(result.pos)}
11072
11120
  return result;
11073
11121
  }
11074
11122
  }
11075
- var Namespace$0 = $S($EXPECT($L151, fail, 'Namespace "namespace"'), NonIdContinue);
11123
+ var Namespace$0 = $S($EXPECT($L152, fail, 'Namespace "namespace"'), NonIdContinue);
11076
11124
  function Namespace(state) {
11077
11125
  if (state.events) {
11078
11126
  const result = state.events.enter?.("Namespace", state);
@@ -11261,7 +11309,7 @@ ${input.slice(result.pos)}
11261
11309
  return result;
11262
11310
  }
11263
11311
  }
11264
- 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)));
11265
11313
  function TypeIndexSignature(state) {
11266
11314
  if (state.events) {
11267
11315
  const result = state.events.enter?.("TypeIndexSignature", state);
@@ -11321,7 +11369,7 @@ ${input.slice(result.pos)}
11321
11369
  return result;
11322
11370
  }
11323
11371
  }
11324
- 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) {
11325
11373
  const children = [...$1, $2];
11326
11374
  if ($3)
11327
11375
  children.push($3);
@@ -11456,10 +11504,10 @@ ${input.slice(result.pos)}
11456
11504
  return result;
11457
11505
  }
11458
11506
  }
11459
- var TypeUnaryOp$0 = $EXPECT($L154, fail, 'TypeUnaryOp "keyof"');
11460
- var TypeUnaryOp$1 = $EXPECT($L136, fail, 'TypeUnaryOp "typeof"');
11461
- var TypeUnaryOp$2 = $EXPECT($L155, fail, 'TypeUnaryOp "infer"');
11462
- 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"');
11463
11511
  function TypeUnaryOp(state) {
11464
11512
  if (state.events) {
11465
11513
  const result = state.events.enter?.("TypeUnaryOp", state);
@@ -11628,10 +11676,10 @@ ${input.slice(result.pos)}
11628
11676
  }
11629
11677
  var TypeLiteral$0 = Literal;
11630
11678
  var TypeLiteral$1 = TemplateLiteral;
11631
- 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) {
11632
11680
  return { $loc, token: "void" };
11633
11681
  });
11634
- 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) {
11635
11683
  return { $loc, token: "[]" };
11636
11684
  });
11637
11685
  function TypeLiteral(state) {
@@ -11844,7 +11892,7 @@ ${input.slice(result.pos)}
11844
11892
  return result;
11845
11893
  }
11846
11894
  }
11847
- 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) {
11848
11896
  var options = $2;
11849
11897
  return {
11850
11898
  type: "CivetPrologue",
@@ -12149,6 +12197,27 @@ ${input.slice(result.pos)}
12149
12197
  return result;
12150
12198
  }
12151
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
+ }
12152
12221
  var InsertReadonly$0 = $TV($EXPECT($L0, fail, 'InsertReadonly ""'), function($skip, $loc, $0, $1) {
12153
12222
  return { ts: true, children: [{ $loc, token: "readonly " }] };
12154
12223
  });
@@ -14030,7 +14099,7 @@ ${input.slice(result.pos)}
14030
14099
  compile: function(src, options = defaultOptions) {
14031
14100
  var ast, code, events, filename, sm, srcMapJSON;
14032
14101
  filename = options.filename || "unknown";
14033
- if (options.cache) {
14102
+ if (!options.noCache) {
14034
14103
  events = makeCache();
14035
14104
  }
14036
14105
  ast = prune(parse(src, { filename, events }));