@danielx/civet 0.5.44 → 0.5.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -516,33 +516,19 @@ ${input.slice(result.pos)}
516
516
  BindingPattern,
517
517
  ObjectBindingPattern,
518
518
  ObjectBindingPatternContent,
519
+ BindingPropertyList,
519
520
  ArrayBindingPattern,
520
521
  ArrayBindingPatternContent,
521
522
  Elision,
522
523
  NestedBindingProperties,
523
- NestedBindingProperty,
524
+ NestedBindingPropertyList,
524
525
  BindingProperty,
525
- NestedBindingRestProperty,
526
526
  BindingRestProperty,
527
527
  NestedBindingElements,
528
528
  NestedBindingElement,
529
529
  BindingElement,
530
530
  BindingRestElement,
531
531
  EmptyBindingPattern,
532
- MatchingPattern,
533
- ObjectMatchingPattern,
534
- ObjectMatchingPatternContent,
535
- NestedMatchingProperties,
536
- NestedMatchingProperty,
537
- MatchingProperty,
538
- NestedMatchingRestProperty,
539
- MatchingRestProperty,
540
- ArrayMatchingPattern,
541
- ArrayMatchingPatternContent,
542
- NestedMatchingElements,
543
- NestedMatchingElement,
544
- MatchingElement,
545
- MatchingRestElement,
546
532
  FunctionDeclaration,
547
533
  FunctionSignature,
548
534
  FunctionExpression,
@@ -678,6 +664,7 @@ ${input.slice(result.pos)}
678
664
  NameSpaceImport,
679
665
  NamedImports,
680
666
  FromClause,
667
+ ImportAssertion,
681
668
  TypeAndImportSpecifier,
682
669
  ImportSpecifier,
683
670
  ImportAsToken,
@@ -1054,90 +1041,91 @@ ${input.slice(result.pos)}
1054
1041
  var $L82 = $L("break");
1055
1042
  var $L83 = $L("continue");
1056
1043
  var $L84 = $L("debugger");
1057
- var $L85 = $L("default");
1058
- var $L86 = $L(":=");
1059
- var $L87 = $L(".=");
1060
- var $L88 = $L("/*");
1061
- var $L89 = $L("*/");
1062
- var $L90 = $L("\\");
1063
- var $L91 = $L("abstract");
1064
- var $L92 = $L("as");
1065
- var $L93 = $L("@");
1066
- var $L94 = $L("@@");
1067
- var $L95 = $L("async");
1068
- var $L96 = $L("await");
1069
- var $L97 = $L("`");
1070
- var $L98 = $L("by");
1071
- var $L99 = $L("case");
1072
- var $L100 = $L("catch");
1073
- var $L101 = $L("class");
1074
- var $L102 = $L("#{");
1075
- var $L103 = $L("delete");
1076
- var $L104 = $L("do");
1077
- var $L105 = $L("..");
1078
- var $L106 = $L("...");
1079
- var $L107 = $L("::");
1080
- var $L108 = $L('"');
1081
- var $L109 = $L("else");
1082
- var $L110 = $L("export");
1083
- var $L111 = $L("extends");
1084
- var $L112 = $L("for");
1085
- var $L113 = $L("from");
1086
- var $L114 = $L("function");
1087
- var $L115 = $L("get");
1088
- var $L116 = $L("set");
1089
- var $L117 = $L("if");
1090
- var $L118 = $L("let");
1091
- var $L119 = $L("const");
1092
- var $L120 = $L("loop");
1093
- var $L121 = $L("new");
1094
- var $L122 = $L("<");
1095
- var $L123 = $L("{");
1096
- var $L124 = $L("[");
1097
- var $L125 = $L("(");
1098
- var $L126 = $L("public");
1099
- var $L127 = $L("private");
1100
- var $L128 = $L("protected");
1101
- var $L129 = $L("|>");
1102
- var $L130 = $L("readonly");
1103
- var $L131 = $L("return");
1104
- var $L132 = $L("satisfies");
1105
- var $L133 = $L("'");
1106
- var $L134 = $L("static");
1107
- var $L135 = $L("${");
1108
- var $L136 = $L("switch");
1109
- var $L137 = $L("target");
1110
- var $L138 = $L("then");
1111
- var $L139 = $L("this");
1112
- var $L140 = $L("throw");
1113
- var $L141 = $L('"""');
1114
- var $L142 = $L("'''");
1115
- var $L143 = $L("///");
1116
- var $L144 = $L("```");
1117
- var $L145 = $L("try");
1118
- var $L146 = $L("typeof");
1119
- var $L147 = $L("unless");
1120
- var $L148 = $L("until");
1121
- var $L149 = $L("var");
1122
- var $L150 = $L("void");
1123
- var $L151 = $L("when");
1124
- var $L152 = $L("while");
1125
- var $L153 = $L("yield");
1126
- var $L154 = $L("/>");
1127
- var $L155 = $L("</");
1128
- var $L156 = $L("<>");
1129
- var $L157 = $L("</>");
1130
- var $L158 = $L("<!--");
1131
- var $L159 = $L("-->");
1132
- var $L160 = $L("declare");
1133
- var $L161 = $L("type");
1134
- var $L162 = $L("interface");
1135
- var $L163 = $L("namespace");
1136
- var $L164 = $L("asserts");
1137
- var $L165 = $L("keyof");
1138
- var $L166 = $L("infer");
1139
- var $L167 = $L("[]");
1140
- var $L168 = $L("civet");
1044
+ var $L85 = $L("assert");
1045
+ var $L86 = $L("default");
1046
+ var $L87 = $L(":=");
1047
+ var $L88 = $L(".=");
1048
+ var $L89 = $L("/*");
1049
+ var $L90 = $L("*/");
1050
+ var $L91 = $L("\\");
1051
+ var $L92 = $L("abstract");
1052
+ var $L93 = $L("as");
1053
+ var $L94 = $L("@");
1054
+ var $L95 = $L("@@");
1055
+ var $L96 = $L("async");
1056
+ var $L97 = $L("await");
1057
+ var $L98 = $L("`");
1058
+ var $L99 = $L("by");
1059
+ var $L100 = $L("case");
1060
+ var $L101 = $L("catch");
1061
+ var $L102 = $L("class");
1062
+ var $L103 = $L("#{");
1063
+ var $L104 = $L("delete");
1064
+ var $L105 = $L("do");
1065
+ var $L106 = $L("..");
1066
+ var $L107 = $L("...");
1067
+ var $L108 = $L("::");
1068
+ var $L109 = $L('"');
1069
+ var $L110 = $L("else");
1070
+ var $L111 = $L("export");
1071
+ var $L112 = $L("extends");
1072
+ var $L113 = $L("for");
1073
+ var $L114 = $L("from");
1074
+ var $L115 = $L("function");
1075
+ var $L116 = $L("get");
1076
+ var $L117 = $L("set");
1077
+ var $L118 = $L("if");
1078
+ var $L119 = $L("let");
1079
+ var $L120 = $L("const");
1080
+ var $L121 = $L("loop");
1081
+ var $L122 = $L("new");
1082
+ var $L123 = $L("<");
1083
+ var $L124 = $L("{");
1084
+ var $L125 = $L("[");
1085
+ var $L126 = $L("(");
1086
+ var $L127 = $L("public");
1087
+ var $L128 = $L("private");
1088
+ var $L129 = $L("protected");
1089
+ var $L130 = $L("|>");
1090
+ var $L131 = $L("readonly");
1091
+ var $L132 = $L("return");
1092
+ var $L133 = $L("satisfies");
1093
+ var $L134 = $L("'");
1094
+ var $L135 = $L("static");
1095
+ var $L136 = $L("${");
1096
+ var $L137 = $L("switch");
1097
+ var $L138 = $L("target");
1098
+ var $L139 = $L("then");
1099
+ var $L140 = $L("this");
1100
+ var $L141 = $L("throw");
1101
+ var $L142 = $L('"""');
1102
+ var $L143 = $L("'''");
1103
+ var $L144 = $L("///");
1104
+ var $L145 = $L("```");
1105
+ var $L146 = $L("try");
1106
+ var $L147 = $L("typeof");
1107
+ var $L148 = $L("unless");
1108
+ var $L149 = $L("until");
1109
+ var $L150 = $L("var");
1110
+ var $L151 = $L("void");
1111
+ var $L152 = $L("when");
1112
+ var $L153 = $L("while");
1113
+ var $L154 = $L("yield");
1114
+ var $L155 = $L("/>");
1115
+ var $L156 = $L("</");
1116
+ var $L157 = $L("<>");
1117
+ var $L158 = $L("</>");
1118
+ var $L159 = $L("<!--");
1119
+ var $L160 = $L("-->");
1120
+ var $L161 = $L("declare");
1121
+ var $L162 = $L("type");
1122
+ var $L163 = $L("interface");
1123
+ var $L164 = $L("namespace");
1124
+ var $L165 = $L("asserts");
1125
+ var $L166 = $L("keyof");
1126
+ var $L167 = $L("infer");
1127
+ var $L168 = $L("[]");
1128
+ var $L169 = $L("civet");
1141
1129
  var $R0 = $R(new RegExp("(as|for|of|satisfies|then|when)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
1142
1130
  var $R1 = $R(new RegExp("[&]", "suy"));
1143
1131
  var $R2 = $R(new RegExp("[!~+-]+", "suy"));
@@ -3828,21 +3816,11 @@ ${input.slice(result.pos)}
3828
3816
  }
3829
3817
  }
3830
3818
  var ObjectBindingPatternContent$0 = NestedBindingProperties;
3831
- var ObjectBindingPatternContent$1 = $TS($S($Q(BindingProperty), $E(BindingRestProperty), $Q(BindingProperty)), function($skip, $loc, $0, $1, $2, $3) {
3832
- var props = $1;
3833
- var rest = $2;
3834
- var after = $3;
3835
- const names = props.flatMap((p) => p.names);
3836
- const children = [...props];
3837
- if (rest) {
3838
- [rest, after] = module2.reorderBindingRestProperty(rest, after);
3839
- children.push(...after, rest);
3840
- names.push(...after.flatMap((p) => p.names), ...rest.names);
3841
- }
3842
- return {
3843
- names,
3844
- children
3845
- };
3819
+ var ObjectBindingPatternContent$1 = $TV($E(BindingPropertyList), function($skip, $loc, $0, $1) {
3820
+ var props = $0;
3821
+ if (!props)
3822
+ return { children: [], names: [] };
3823
+ return module2.reorderBindingRestProperty(props);
3846
3824
  });
3847
3825
  function ObjectBindingPatternContent(state) {
3848
3826
  let eventData;
@@ -3866,6 +3844,37 @@ ${input.slice(result.pos)}
3866
3844
  return result;
3867
3845
  }
3868
3846
  }
3847
+ var BindingPropertyList$0 = $TV($P($S(BindingProperty, ObjectPropertyDelimiter)), function($skip, $loc, $0, $1) {
3848
+ var props = $0;
3849
+ return props.map(([prop, delim]) => {
3850
+ return {
3851
+ ...prop,
3852
+ children: [...prop.children, delim]
3853
+ };
3854
+ });
3855
+ });
3856
+ function BindingPropertyList(state) {
3857
+ let eventData;
3858
+ if (state.events) {
3859
+ const result = state.events.enter?.("BindingPropertyList", state);
3860
+ if (result) {
3861
+ if (result.cache)
3862
+ return result.cache;
3863
+ eventData = result.data;
3864
+ }
3865
+ }
3866
+ if (state.tokenize) {
3867
+ const result = $TOKEN("BindingPropertyList", state, BindingPropertyList$0(state));
3868
+ if (state.events)
3869
+ state.events.exit?.("BindingPropertyList", state, result, eventData);
3870
+ return result;
3871
+ } else {
3872
+ const result = BindingPropertyList$0(state);
3873
+ if (state.events)
3874
+ state.events.exit?.("BindingPropertyList", state, result, eventData);
3875
+ return result;
3876
+ }
3877
+ }
3869
3878
  var ArrayBindingPattern$0 = $TS($S(OpenBracket, ArrayBindingPatternContent, __, CloseBracket), function($skip, $loc, $0, $1, $2, $3, $4) {
3870
3879
  var c = $2;
3871
3880
  return {
@@ -3973,23 +3982,12 @@ ${input.slice(result.pos)}
3973
3982
  return result;
3974
3983
  }
3975
3984
  }
3976
- var NestedBindingProperties$0 = $TS($S(PushIndent, $Q(NestedBindingProperty), $E(NestedBindingRestProperty), $Q(NestedBindingProperty), PopIndent), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
3985
+ var NestedBindingProperties$0 = $TS($S(PushIndent, $Q(NestedBindingPropertyList), PopIndent), function($skip, $loc, $0, $1, $2, $3) {
3977
3986
  var props = $2;
3978
- var rest = $3;
3979
- var after = $4;
3980
- if (!(props.length || rest))
3987
+ if (!props.length)
3981
3988
  return $skip;
3982
- const names = props.flatMap((p) => p.names);
3983
- const children = [...props];
3984
- if (rest) {
3985
- [rest, after] = module2.reorderBindingRestProperty(rest, after);
3986
- children.push(...after, rest);
3987
- names.push(...after.flatMap((p) => p.names), ...rest.names);
3988
- }
3989
- return {
3990
- children,
3991
- names
3992
- };
3989
+ props = props.flat();
3990
+ return module2.reorderBindingRestProperty(props);
3993
3991
  });
3994
3992
  function NestedBindingProperties(state) {
3995
3993
  let eventData;
@@ -4013,18 +4011,22 @@ ${input.slice(result.pos)}
4013
4011
  return result;
4014
4012
  }
4015
4013
  }
4016
- var NestedBindingProperty$0 = $TS($S(Nested, BindingProperty), function($skip, $loc, $0, $1, $2) {
4017
- var indent = $1;
4018
- var prop = $2;
4019
- return {
4020
- ...prop,
4021
- children: [...indent, ...prop.children]
4022
- };
4014
+ var NestedBindingPropertyList$0 = $TS($S(Nested, BindingPropertyList), function($skip, $loc, $0, $1, $2) {
4015
+ var ws = $1;
4016
+ var props = $2;
4017
+ return props.map((prop, i) => {
4018
+ if (i > 0)
4019
+ return prop;
4020
+ return {
4021
+ ...prop,
4022
+ children: [ws, ...prop.children]
4023
+ };
4024
+ });
4023
4025
  });
4024
- function NestedBindingProperty(state) {
4026
+ function NestedBindingPropertyList(state) {
4025
4027
  let eventData;
4026
4028
  if (state.events) {
4027
- const result = state.events.enter?.("NestedBindingProperty", state);
4029
+ const result = state.events.enter?.("NestedBindingPropertyList", state);
4028
4030
  if (result) {
4029
4031
  if (result.cache)
4030
4032
  return result.cache;
@@ -4032,25 +4034,26 @@ ${input.slice(result.pos)}
4032
4034
  }
4033
4035
  }
4034
4036
  if (state.tokenize) {
4035
- const result = $TOKEN("NestedBindingProperty", state, NestedBindingProperty$0(state));
4037
+ const result = $TOKEN("NestedBindingPropertyList", state, NestedBindingPropertyList$0(state));
4036
4038
  if (state.events)
4037
- state.events.exit?.("NestedBindingProperty", state, result, eventData);
4039
+ state.events.exit?.("NestedBindingPropertyList", state, result, eventData);
4038
4040
  return result;
4039
4041
  } else {
4040
- const result = NestedBindingProperty$0(state);
4042
+ const result = NestedBindingPropertyList$0(state);
4041
4043
  if (state.events)
4042
- state.events.exit?.("NestedBindingProperty", state, result, eventData);
4044
+ state.events.exit?.("NestedBindingPropertyList", state, result, eventData);
4043
4045
  return result;
4044
4046
  }
4045
4047
  }
4046
- var BindingProperty$0 = $TS($S(__, PropertyName, __, Colon, $C(BindingIdentifier, BindingPattern), $E(Initializer), ObjectPropertyDelimiter), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7) {
4048
+ var BindingProperty$0 = BindingRestProperty;
4049
+ var BindingProperty$1 = $TS($S($E(_), PropertyName, __, Colon, $C(BindingIdentifier, BindingPattern), $E(Initializer)), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
4047
4050
  var b = $5;
4048
4051
  return {
4049
4052
  names: b.names,
4050
4053
  children: $0
4051
4054
  };
4052
4055
  });
4053
- var BindingProperty$1 = $TS($S(BindingIdentifier, $E(Initializer), ObjectPropertyDelimiter), function($skip, $loc, $0, $1, $2, $3) {
4056
+ var BindingProperty$2 = $TS($S(BindingIdentifier, $E(Initializer)), function($skip, $loc, $0, $1, $2) {
4054
4057
  var b = $1;
4055
4058
  if (b.type === "AtBinding") {
4056
4059
  return {
@@ -4076,65 +4079,35 @@ ${input.slice(result.pos)}
4076
4079
  }
4077
4080
  }
4078
4081
  if (state.tokenize) {
4079
- const result = $TOKEN("BindingProperty", state, BindingProperty$0(state) || BindingProperty$1(state));
4082
+ const result = $TOKEN("BindingProperty", state, BindingProperty$0(state) || BindingProperty$1(state) || BindingProperty$2(state));
4080
4083
  if (state.events)
4081
4084
  state.events.exit?.("BindingProperty", state, result, eventData);
4082
4085
  return result;
4083
4086
  } else {
4084
- const result = BindingProperty$0(state) || BindingProperty$1(state);
4087
+ const result = BindingProperty$0(state) || BindingProperty$1(state) || BindingProperty$2(state);
4085
4088
  if (state.events)
4086
4089
  state.events.exit?.("BindingProperty", state, result, eventData);
4087
4090
  return result;
4088
4091
  }
4089
4092
  }
4090
- var NestedBindingRestProperty$0 = $TS($S(Nested, BindingRestProperty), function($skip, $loc, $0, $1, $2) {
4091
- var indent = $1;
4092
- var prop = $2;
4093
- return {
4094
- ...prop,
4095
- children: [indent, ...prop.children]
4096
- };
4097
- });
4098
- function NestedBindingRestProperty(state) {
4099
- let eventData;
4100
- if (state.events) {
4101
- const result = state.events.enter?.("NestedBindingRestProperty", state);
4102
- if (result) {
4103
- if (result.cache)
4104
- return result.cache;
4105
- eventData = result.data;
4106
- }
4107
- }
4108
- if (state.tokenize) {
4109
- const result = $TOKEN("NestedBindingRestProperty", state, NestedBindingRestProperty$0(state));
4110
- if (state.events)
4111
- state.events.exit?.("NestedBindingRestProperty", state, result, eventData);
4112
- return result;
4113
- } else {
4114
- const result = NestedBindingRestProperty$0(state);
4115
- if (state.events)
4116
- state.events.exit?.("NestedBindingRestProperty", state, result, eventData);
4117
- return result;
4118
- }
4119
- }
4120
- var BindingRestProperty$0 = $TS($S(__, DotDotDot, BindingIdentifier, ObjectPropertyDelimiter), function($skip, $loc, $0, $1, $2, $3, $4) {
4093
+ var BindingRestProperty$0 = $TS($S($E(_), DotDotDot, BindingIdentifier), function($skip, $loc, $0, $1, $2, $3) {
4121
4094
  var ws = $1;
4122
4095
  var dots = $2;
4123
4096
  var id = $3;
4124
- var delimiter = $4;
4125
4097
  return {
4126
4098
  ...id,
4127
- children: [...ws, dots, ...id.children, delimiter]
4099
+ type: "BindingRestProperty",
4100
+ children: [...ws || [], dots, ...id.children]
4128
4101
  };
4129
4102
  });
4130
- var BindingRestProperty$1 = $TS($S(__, BindingIdentifier, DotDotDot, ObjectPropertyDelimiter), function($skip, $loc, $0, $1, $2, $3, $4) {
4103
+ var BindingRestProperty$1 = $TS($S($E(_), BindingIdentifier, DotDotDot), function($skip, $loc, $0, $1, $2, $3) {
4131
4104
  var ws = $1;
4132
4105
  var id = $2;
4133
4106
  var dots = $3;
4134
- var delimiter = $4;
4135
4107
  return {
4136
4108
  ...id,
4137
- children: [...ws, dots, ...id.children, delimiter]
4109
+ type: "BindingRestProperty",
4110
+ children: [...ws || [], dots, ...id.children]
4138
4111
  };
4139
4112
  });
4140
4113
  function BindingRestProperty(state) {
@@ -4347,492 +4320,6 @@ ${input.slice(result.pos)}
4347
4320
  return result;
4348
4321
  }
4349
4322
  }
4350
- var MatchingPattern$0 = ObjectMatchingPattern;
4351
- var MatchingPattern$1 = ArrayMatchingPattern;
4352
- var MatchingPattern$2 = Literal;
4353
- var MatchingPattern$3 = RegularExpressionLiteral;
4354
- function MatchingPattern(state) {
4355
- let eventData;
4356
- if (state.events) {
4357
- const result = state.events.enter?.("MatchingPattern", state);
4358
- if (result) {
4359
- if (result.cache)
4360
- return result.cache;
4361
- eventData = result.data;
4362
- }
4363
- }
4364
- if (state.tokenize) {
4365
- const result = $TOKEN("MatchingPattern", state, MatchingPattern$0(state) || MatchingPattern$1(state) || MatchingPattern$2(state) || MatchingPattern$3(state));
4366
- if (state.events)
4367
- state.events.exit?.("MatchingPattern", state, result, eventData);
4368
- return result;
4369
- } else {
4370
- const result = MatchingPattern$0(state) || MatchingPattern$1(state) || MatchingPattern$2(state) || MatchingPattern$3(state);
4371
- if (state.events)
4372
- state.events.exit?.("MatchingPattern", state, result, eventData);
4373
- return result;
4374
- }
4375
- }
4376
- var ObjectMatchingPattern$0 = $TS($S(OpenBrace, ObjectMatchingPatternContent, __, CloseBrace), function($skip, $loc, $0, $1, $2, $3, $4) {
4377
- var open = $1;
4378
- var content = $2;
4379
- var ws = $3;
4380
- var close = $4;
4381
- return {
4382
- type: "ObjectMatchingPattern",
4383
- children: [open, ...content.children, ...ws, close]
4384
- };
4385
- });
4386
- function ObjectMatchingPattern(state) {
4387
- let eventData;
4388
- if (state.events) {
4389
- const result = state.events.enter?.("ObjectMatchingPattern", state);
4390
- if (result) {
4391
- if (result.cache)
4392
- return result.cache;
4393
- eventData = result.data;
4394
- }
4395
- }
4396
- if (state.tokenize) {
4397
- const result = $TOKEN("ObjectMatchingPattern", state, ObjectMatchingPattern$0(state));
4398
- if (state.events)
4399
- state.events.exit?.("ObjectMatchingPattern", state, result, eventData);
4400
- return result;
4401
- } else {
4402
- const result = ObjectMatchingPattern$0(state);
4403
- if (state.events)
4404
- state.events.exit?.("ObjectMatchingPattern", state, result, eventData);
4405
- return result;
4406
- }
4407
- }
4408
- var ObjectMatchingPatternContent$0 = NestedMatchingProperties;
4409
- var ObjectMatchingPatternContent$1 = $TS($S($Q(MatchingProperty), $E(MatchingRestProperty), $Q(MatchingProperty)), function($skip, $loc, $0, $1, $2, $3) {
4410
- var props = $1;
4411
- var rest = $2;
4412
- var after = $3;
4413
- const names = props.flatMap((p) => p.names);
4414
- const children = [...props];
4415
- if (rest) {
4416
- [rest, after] = module2.reorderBindingRestProperty(rest, after);
4417
- children.push(...after, rest);
4418
- names.push(...after.flatMap((p) => p.names), ...rest.names);
4419
- }
4420
- return {
4421
- names,
4422
- children
4423
- };
4424
- });
4425
- function ObjectMatchingPatternContent(state) {
4426
- let eventData;
4427
- if (state.events) {
4428
- const result = state.events.enter?.("ObjectMatchingPatternContent", state);
4429
- if (result) {
4430
- if (result.cache)
4431
- return result.cache;
4432
- eventData = result.data;
4433
- }
4434
- }
4435
- if (state.tokenize) {
4436
- const result = $TOKEN("ObjectMatchingPatternContent", state, ObjectMatchingPatternContent$0(state) || ObjectMatchingPatternContent$1(state));
4437
- if (state.events)
4438
- state.events.exit?.("ObjectMatchingPatternContent", state, result, eventData);
4439
- return result;
4440
- } else {
4441
- const result = ObjectMatchingPatternContent$0(state) || ObjectMatchingPatternContent$1(state);
4442
- if (state.events)
4443
- state.events.exit?.("ObjectMatchingPatternContent", state, result, eventData);
4444
- return result;
4445
- }
4446
- }
4447
- var NestedMatchingProperties$0 = $TS($S(PushIndent, $Q(NestedMatchingProperty), $E(NestedMatchingRestProperty), $Q(NestedMatchingProperty), PopIndent), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
4448
- var props = $2;
4449
- var rest = $3;
4450
- var after = $4;
4451
- if (!(props.length || rest))
4452
- return $skip;
4453
- const names = props.flatMap((p) => p.names);
4454
- const children = [...props];
4455
- if (rest) {
4456
- [rest, after] = module2.reorderBindingRestProperty(rest, after);
4457
- children.push(...after, rest);
4458
- names.push(...after.flatMap((p) => p.names), ...rest.names);
4459
- }
4460
- return {
4461
- children,
4462
- names
4463
- };
4464
- });
4465
- function NestedMatchingProperties(state) {
4466
- let eventData;
4467
- if (state.events) {
4468
- const result = state.events.enter?.("NestedMatchingProperties", state);
4469
- if (result) {
4470
- if (result.cache)
4471
- return result.cache;
4472
- eventData = result.data;
4473
- }
4474
- }
4475
- if (state.tokenize) {
4476
- const result = $TOKEN("NestedMatchingProperties", state, NestedMatchingProperties$0(state));
4477
- if (state.events)
4478
- state.events.exit?.("NestedMatchingProperties", state, result, eventData);
4479
- return result;
4480
- } else {
4481
- const result = NestedMatchingProperties$0(state);
4482
- if (state.events)
4483
- state.events.exit?.("NestedMatchingProperties", state, result, eventData);
4484
- return result;
4485
- }
4486
- }
4487
- var NestedMatchingProperty$0 = $TS($S(Nested, MatchingProperty), function($skip, $loc, $0, $1, $2) {
4488
- var indent = $1;
4489
- var prop = $2;
4490
- return {
4491
- ...prop,
4492
- children: [...indent, ...prop.children]
4493
- };
4494
- });
4495
- function NestedMatchingProperty(state) {
4496
- let eventData;
4497
- if (state.events) {
4498
- const result = state.events.enter?.("NestedMatchingProperty", state);
4499
- if (result) {
4500
- if (result.cache)
4501
- return result.cache;
4502
- eventData = result.data;
4503
- }
4504
- }
4505
- if (state.tokenize) {
4506
- const result = $TOKEN("NestedMatchingProperty", state, NestedMatchingProperty$0(state));
4507
- if (state.events)
4508
- state.events.exit?.("NestedMatchingProperty", state, result, eventData);
4509
- return result;
4510
- } else {
4511
- const result = NestedMatchingProperty$0(state);
4512
- if (state.events)
4513
- state.events.exit?.("NestedMatchingProperty", state, result, eventData);
4514
- return result;
4515
- }
4516
- }
4517
- var MatchingProperty$0 = $TS($S(__, PropertyName, __, Colon, $C(BindingIdentifier, MatchingPattern), ObjectPropertyDelimiter), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
4518
- var m = $5;
4519
- return {
4520
- names: m.names,
4521
- children: $0
4522
- };
4523
- });
4524
- var MatchingProperty$1 = $TS($S(BindingIdentifier, ObjectPropertyDelimiter), function($skip, $loc, $0, $1, $2) {
4525
- var b = $1;
4526
- if (b.type === "AtBinding") {
4527
- return {
4528
- type: "AtBindingProperty",
4529
- ref: b.ref,
4530
- names: [],
4531
- children: $0
4532
- };
4533
- }
4534
- return {
4535
- names: b.names,
4536
- children: $0
4537
- };
4538
- });
4539
- function MatchingProperty(state) {
4540
- let eventData;
4541
- if (state.events) {
4542
- const result = state.events.enter?.("MatchingProperty", state);
4543
- if (result) {
4544
- if (result.cache)
4545
- return result.cache;
4546
- eventData = result.data;
4547
- }
4548
- }
4549
- if (state.tokenize) {
4550
- const result = $TOKEN("MatchingProperty", state, MatchingProperty$0(state) || MatchingProperty$1(state));
4551
- if (state.events)
4552
- state.events.exit?.("MatchingProperty", state, result, eventData);
4553
- return result;
4554
- } else {
4555
- const result = MatchingProperty$0(state) || MatchingProperty$1(state);
4556
- if (state.events)
4557
- state.events.exit?.("MatchingProperty", state, result, eventData);
4558
- return result;
4559
- }
4560
- }
4561
- var NestedMatchingRestProperty$0 = $TS($S(Nested, MatchingRestProperty), function($skip, $loc, $0, $1, $2) {
4562
- var indent = $1;
4563
- var prop = $2;
4564
- return {
4565
- ...prop,
4566
- children: [indent, ...prop.children]
4567
- };
4568
- });
4569
- function NestedMatchingRestProperty(state) {
4570
- let eventData;
4571
- if (state.events) {
4572
- const result = state.events.enter?.("NestedMatchingRestProperty", state);
4573
- if (result) {
4574
- if (result.cache)
4575
- return result.cache;
4576
- eventData = result.data;
4577
- }
4578
- }
4579
- if (state.tokenize) {
4580
- const result = $TOKEN("NestedMatchingRestProperty", state, NestedMatchingRestProperty$0(state));
4581
- if (state.events)
4582
- state.events.exit?.("NestedMatchingRestProperty", state, result, eventData);
4583
- return result;
4584
- } else {
4585
- const result = NestedMatchingRestProperty$0(state);
4586
- if (state.events)
4587
- state.events.exit?.("NestedMatchingRestProperty", state, result, eventData);
4588
- return result;
4589
- }
4590
- }
4591
- var MatchingRestProperty$0 = BindingRestProperty;
4592
- function MatchingRestProperty(state) {
4593
- let eventData;
4594
- if (state.events) {
4595
- const result = state.events.enter?.("MatchingRestProperty", state);
4596
- if (result) {
4597
- if (result.cache)
4598
- return result.cache;
4599
- eventData = result.data;
4600
- }
4601
- }
4602
- if (state.tokenize) {
4603
- const result = $TOKEN("MatchingRestProperty", state, MatchingRestProperty$0(state));
4604
- if (state.events)
4605
- state.events.exit?.("MatchingRestProperty", state, result, eventData);
4606
- return result;
4607
- } else {
4608
- const result = MatchingRestProperty$0(state);
4609
- if (state.events)
4610
- state.events.exit?.("MatchingRestProperty", state, result, eventData);
4611
- return result;
4612
- }
4613
- }
4614
- var ArrayMatchingPattern$0 = $TS($S(OpenBracket, ArrayMatchingPatternContent, __, CloseBracket), function($skip, $loc, $0, $1, $2, $3, $4) {
4615
- var open = $1;
4616
- var content = $2;
4617
- var ws = $3;
4618
- var close = $4;
4619
- return {
4620
- type: "ArrayMatchingPattern",
4621
- children: $0
4622
- };
4623
- });
4624
- function ArrayMatchingPattern(state) {
4625
- let eventData;
4626
- if (state.events) {
4627
- const result = state.events.enter?.("ArrayMatchingPattern", state);
4628
- if (result) {
4629
- if (result.cache)
4630
- return result.cache;
4631
- eventData = result.data;
4632
- }
4633
- }
4634
- if (state.tokenize) {
4635
- const result = $TOKEN("ArrayMatchingPattern", state, ArrayMatchingPattern$0(state));
4636
- if (state.events)
4637
- state.events.exit?.("ArrayMatchingPattern", state, result, eventData);
4638
- return result;
4639
- } else {
4640
- const result = ArrayMatchingPattern$0(state);
4641
- if (state.events)
4642
- state.events.exit?.("ArrayMatchingPattern", state, result, eventData);
4643
- return result;
4644
- }
4645
- }
4646
- var ArrayMatchingPatternContent$0 = NestedMatchingElements;
4647
- var ArrayMatchingPatternContent$1 = $TS($S($Q($C(MatchingElement, Elision)), $E($S(MatchingRestElement, ArrayElementDelimiter)), $Q($C(MatchingElement, Elision))), function($skip, $loc, $0, $1, $2, $3) {
4648
- var props = $1;
4649
- var rest = $2;
4650
- var after = $3;
4651
- const names = props.flatMap((p) => p.names || []);
4652
- const children = [...props];
4653
- let blockPrefix;
4654
- if (rest) {
4655
- const [restBinding] = rest;
4656
- children.push(restBinding);
4657
- let restIdentifier;
4658
- if (restBinding.ref) {
4659
- restIdentifier = restBinding.ref;
4660
- } else {
4661
- restIdentifier = restBinding.names[0];
4662
- names.push(...restBinding.names);
4663
- }
4664
- if (after.length) {
4665
- const spliceRef = module2.getRef("splice");
4666
- blockPrefix = {
4667
- children: ["[", module2.insertTrimmingSpace(after, ""), "] = ", spliceRef, ".call(", restIdentifier, ", -", after.length.toString(), ")"],
4668
- names: after.flatMap((p) => p.names)
4669
- };
4670
- }
4671
- }
4672
- return {
4673
- names,
4674
- children,
4675
- blockPrefix
4676
- };
4677
- });
4678
- function ArrayMatchingPatternContent(state) {
4679
- let eventData;
4680
- if (state.events) {
4681
- const result = state.events.enter?.("ArrayMatchingPatternContent", state);
4682
- if (result) {
4683
- if (result.cache)
4684
- return result.cache;
4685
- eventData = result.data;
4686
- }
4687
- }
4688
- if (state.tokenize) {
4689
- const result = $TOKEN("ArrayMatchingPatternContent", state, ArrayMatchingPatternContent$0(state) || ArrayMatchingPatternContent$1(state));
4690
- if (state.events)
4691
- state.events.exit?.("ArrayMatchingPatternContent", state, result, eventData);
4692
- return result;
4693
- } else {
4694
- const result = ArrayMatchingPatternContent$0(state) || ArrayMatchingPatternContent$1(state);
4695
- if (state.events)
4696
- state.events.exit?.("ArrayMatchingPatternContent", state, result, eventData);
4697
- return result;
4698
- }
4699
- }
4700
- var NestedMatchingElements$0 = $TS($S(PushIndent, $Q(NestedMatchingElement), $E($S(Nested, MatchingRestElement, ArrayElementDelimiter)), $Q(NestedMatchingElement), PopIndent), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
4701
- var props = $2;
4702
- var rest = $3;
4703
- var after = $4;
4704
- if (!(props.length || rest))
4705
- return $skip;
4706
- const names = props.flatMap((p) => p.names), children = [...props];
4707
- let blockPrefix;
4708
- if (rest) {
4709
- const [, restBinding] = rest;
4710
- let restIdentifier;
4711
- if (restBinding.ref) {
4712
- restIdentifier = restBinding.binding.ref;
4713
- } else {
4714
- restIdentifier = restBinding.names[0];
4715
- }
4716
- if (after.length) {
4717
- const spliceRef = module2.getRef("splice");
4718
- blockPrefix = {
4719
- children: ["[", module2.insertTrimmingSpace(after, ""), "] = ", spliceRef, ".call(", restIdentifier, ", -", after.length.toString(), ")"],
4720
- names: after.flatMap((p) => p.names)
4721
- };
4722
- }
4723
- children.push(...rest);
4724
- names.push(...restBinding.names);
4725
- }
4726
- return {
4727
- children,
4728
- names,
4729
- blockPrefix
4730
- };
4731
- });
4732
- function NestedMatchingElements(state) {
4733
- let eventData;
4734
- if (state.events) {
4735
- const result = state.events.enter?.("NestedMatchingElements", state);
4736
- if (result) {
4737
- if (result.cache)
4738
- return result.cache;
4739
- eventData = result.data;
4740
- }
4741
- }
4742
- if (state.tokenize) {
4743
- const result = $TOKEN("NestedMatchingElements", state, NestedMatchingElements$0(state));
4744
- if (state.events)
4745
- state.events.exit?.("NestedMatchingElements", state, result, eventData);
4746
- return result;
4747
- } else {
4748
- const result = NestedMatchingElements$0(state);
4749
- if (state.events)
4750
- state.events.exit?.("NestedMatchingElements", state, result, eventData);
4751
- return result;
4752
- }
4753
- }
4754
- var NestedMatchingElement$0 = $TS($S(Nested, MatchingElement), function($skip, $loc, $0, $1, $2) {
4755
- var indent = $1;
4756
- var element = $2;
4757
- return {
4758
- ...element,
4759
- children: [indent, ...element.children]
4760
- };
4761
- });
4762
- function NestedMatchingElement(state) {
4763
- let eventData;
4764
- if (state.events) {
4765
- const result = state.events.enter?.("NestedMatchingElement", state);
4766
- if (result) {
4767
- if (result.cache)
4768
- return result.cache;
4769
- eventData = result.data;
4770
- }
4771
- }
4772
- if (state.tokenize) {
4773
- const result = $TOKEN("NestedMatchingElement", state, NestedMatchingElement$0(state));
4774
- if (state.events)
4775
- state.events.exit?.("NestedMatchingElement", state, result, eventData);
4776
- return result;
4777
- } else {
4778
- const result = NestedMatchingElement$0(state);
4779
- if (state.events)
4780
- state.events.exit?.("NestedMatchingElement", state, result, eventData);
4781
- return result;
4782
- }
4783
- }
4784
- var MatchingElement$0 = $TS($S($C(BindingIdentifier, MatchingPattern), ArrayElementDelimiter), function($skip, $loc, $0, $1, $2) {
4785
- var binding = $1;
4786
- return {
4787
- names: binding.names,
4788
- children: $0
4789
- };
4790
- });
4791
- function MatchingElement(state) {
4792
- let eventData;
4793
- if (state.events) {
4794
- const result = state.events.enter?.("MatchingElement", state);
4795
- if (result) {
4796
- if (result.cache)
4797
- return result.cache;
4798
- eventData = result.data;
4799
- }
4800
- }
4801
- if (state.tokenize) {
4802
- const result = $TOKEN("MatchingElement", state, MatchingElement$0(state));
4803
- if (state.events)
4804
- state.events.exit?.("MatchingElement", state, result, eventData);
4805
- return result;
4806
- } else {
4807
- const result = MatchingElement$0(state);
4808
- if (state.events)
4809
- state.events.exit?.("MatchingElement", state, result, eventData);
4810
- return result;
4811
- }
4812
- }
4813
- var MatchingRestElement$0 = BindingRestElement;
4814
- function MatchingRestElement(state) {
4815
- let eventData;
4816
- if (state.events) {
4817
- const result = state.events.enter?.("MatchingRestElement", state);
4818
- if (result) {
4819
- if (result.cache)
4820
- return result.cache;
4821
- eventData = result.data;
4822
- }
4823
- }
4824
- if (state.tokenize) {
4825
- const result = $TOKEN("MatchingRestElement", state, MatchingRestElement$0(state));
4826
- if (state.events)
4827
- state.events.exit?.("MatchingRestElement", state, result, eventData);
4828
- return result;
4829
- } else {
4830
- const result = MatchingRestElement$0(state);
4831
- if (state.events)
4832
- state.events.exit?.("MatchingRestElement", state, result, eventData);
4833
- return result;
4834
- }
4835
- }
4836
4323
  var FunctionDeclaration$0 = FunctionExpression;
4837
4324
  function FunctionDeclaration(state) {
4838
4325
  let eventData;
@@ -6368,7 +5855,10 @@ ${input.slice(result.pos)}
6368
5855
  var InlineObjectLiteral$0 = $TS($S(InsertInlineOpenBrace, SnugNamedProperty, ImplicitInlineObjectPropertyDelimiter, $Q($S($C(Samedent, $Q(_)), NamedProperty, ImplicitInlineObjectPropertyDelimiter)), InsertCloseBrace), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
6369
5856
  var open = $1;
6370
5857
  var close = $5;
6371
- return [open, $2, $3, ...$4, close];
5858
+ return {
5859
+ type: "ObjectExpression",
5860
+ children: [open, $2, $3, ...$4, close]
5861
+ };
6372
5862
  });
6373
5863
  function InlineObjectLiteral(state) {
6374
5864
  let eventData;
@@ -7274,7 +6764,15 @@ ${input.slice(result.pos)}
7274
6764
  var Statement$4 = SwitchStatement;
7275
6765
  var Statement$5 = TryStatement;
7276
6766
  var Statement$6 = EmptyStatement;
7277
- var Statement$7 = ExpressionStatement;
6767
+ var Statement$7 = $TS($S(ExpressionStatement), function($skip, $loc, $0, $1) {
6768
+ if ($1.type === "ObjectExpression") {
6769
+ return {
6770
+ type: "ParenthesizedExpression",
6771
+ children: ["(", $1, ")"]
6772
+ };
6773
+ }
6774
+ return $1;
6775
+ });
7278
6776
  var Statement$8 = BlockStatement;
7279
6777
  function Statement(state) {
7280
6778
  let eventData;
@@ -9245,21 +8743,26 @@ ${input.slice(result.pos)}
9245
8743
  return result;
9246
8744
  }
9247
8745
  }
9248
- var ImportDeclaration$0 = $T($S(Import, __, TypeKeyword, __, ImportClause, __, FromClause), function(value) {
8746
+ var ImportDeclaration$0 = $T($S(Import, __, TypeKeyword, __, ImportClause, __, FromClause, $E(ImportAssertion)), function(value) {
9249
8747
  return { "ts": true, "children": value };
9250
8748
  });
9251
- var ImportDeclaration$1 = $S(Import, __, ImportClause, __, FromClause);
9252
- var ImportDeclaration$2 = $S(Import, __, ModuleSpecifier);
9253
- var ImportDeclaration$3 = $TS($S(ImpliedImport, ImportClause, __, FromClause), function($skip, $loc, $0, $1, $2, $3, $4) {
8749
+ var ImportDeclaration$1 = $S(Import, __, ImportClause, __, FromClause, $E(ImportAssertion));
8750
+ var ImportDeclaration$2 = $S(Import, __, ModuleSpecifier, $E(ImportAssertion));
8751
+ var ImportDeclaration$3 = $TS($S(ImpliedImport, $E($S(TypeKeyword, __)), ImportClause, __, FromClause, $E(ImportAssertion)), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
9254
8752
  var i = $1;
9255
- var c = $2;
9256
- var w = $3;
9257
- var f = $4;
8753
+ var t = $2;
8754
+ var c = $3;
8755
+ var w = $4;
8756
+ var f = $5;
8757
+ var a = $6;
9258
8758
  i.$loc = {
9259
8759
  pos: f[0].$loc.pos - 1,
9260
8760
  length: f[0].$loc.length + 1
9261
8761
  };
9262
- return [i, c, w, f];
8762
+ const children = [i, t, c, w, f, a];
8763
+ if (!t)
8764
+ return children;
8765
+ return { ts: true, children };
9263
8766
  });
9264
8767
  function ImportDeclaration(state) {
9265
8768
  let eventData;
@@ -9432,6 +8935,29 @@ ${input.slice(result.pos)}
9432
8935
  return result;
9433
8936
  }
9434
8937
  }
8938
+ var ImportAssertion$0 = $S($E(_), $EXPECT($L85, fail, 'ImportAssertion "assert"'), NonIdContinue, $E(_), ObjectLiteral);
8939
+ function ImportAssertion(state) {
8940
+ let eventData;
8941
+ if (state.events) {
8942
+ const result = state.events.enter?.("ImportAssertion", state);
8943
+ if (result) {
8944
+ if (result.cache)
8945
+ return result.cache;
8946
+ eventData = result.data;
8947
+ }
8948
+ }
8949
+ if (state.tokenize) {
8950
+ const result = $TOKEN("ImportAssertion", state, ImportAssertion$0(state));
8951
+ if (state.events)
8952
+ state.events.exit?.("ImportAssertion", state, result, eventData);
8953
+ return result;
8954
+ } else {
8955
+ const result = ImportAssertion$0(state);
8956
+ if (state.events)
8957
+ state.events.exit?.("ImportAssertion", state, result, eventData);
8958
+ return result;
8959
+ }
8960
+ }
9435
8961
  var TypeAndImportSpecifier$0 = $TS($S($E($S(__, TypeKeyword)), ImportSpecifier), function($skip, $loc, $0, $1, $2) {
9436
8962
  if (!$1)
9437
8963
  return $2;
@@ -9656,7 +9182,7 @@ ${input.slice(result.pos)}
9656
9182
  return result;
9657
9183
  }
9658
9184
  }
9659
- var ExportDeclaration$0 = $S(Export, __, $EXPECT($L85, fail, 'ExportDeclaration "default"'), NonIdContinue, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression));
9185
+ var ExportDeclaration$0 = $S(Export, __, $EXPECT($L86, fail, 'ExportDeclaration "default"'), NonIdContinue, __, $C(HoistableDeclaration, ClassDeclaration, ExtendedExpression));
9660
9186
  var ExportDeclaration$1 = $TS($S(Export, __, ExportFromClause, __, FromClause), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
9661
9187
  if (!$3.ts)
9662
9188
  return $0;
@@ -9818,7 +9344,7 @@ ${input.slice(result.pos)}
9818
9344
  return result;
9819
9345
  }
9820
9346
  }
9821
- var ImplicitExportSpecifier$0 = $S($N($EXPECT($L85, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), $C($Y($S(__, From)), ImplicitInlineObjectPropertyDelimiter));
9347
+ var ImplicitExportSpecifier$0 = $S($N($EXPECT($L86, fail, 'ImplicitExportSpecifier "default"')), ModuleExportName, $E($S(__, As, __, ModuleExportName)), $C($Y($S(__, From)), ImplicitInlineObjectPropertyDelimiter));
9822
9348
  function ImplicitExportSpecifier(state) {
9823
9349
  let eventData;
9824
9350
  if (state.events) {
@@ -9989,7 +9515,7 @@ ${input.slice(result.pos)}
9989
9515
  return result;
9990
9516
  }
9991
9517
  }
9992
- var ConstAssignment$0 = $TV($EXPECT($L86, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
9518
+ var ConstAssignment$0 = $TV($EXPECT($L87, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
9993
9519
  return { $loc, token: "=" };
9994
9520
  });
9995
9521
  function ConstAssignment(state) {
@@ -10014,7 +9540,7 @@ ${input.slice(result.pos)}
10014
9540
  return result;
10015
9541
  }
10016
9542
  }
10017
- var LetAssignment$0 = $TV($EXPECT($L87, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
9543
+ var LetAssignment$0 = $TV($EXPECT($L88, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
10018
9544
  return { $loc, token: "=" };
10019
9545
  });
10020
9546
  function LetAssignment(state) {
@@ -11188,7 +10714,7 @@ ${input.slice(result.pos)}
11188
10714
  return result;
11189
10715
  }
11190
10716
  }
11191
- var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L89, fail, 'JSMultiLineComment "*/"')), $EXPECT($R39, fail, "JSMultiLineComment /./"))), $EXPECT($L89, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
10717
+ var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L89, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L90, fail, 'JSMultiLineComment "*/"')), $EXPECT($R39, fail, "JSMultiLineComment /./"))), $EXPECT($L90, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
11192
10718
  return { $loc, token: $1 };
11193
10719
  });
11194
10720
  function JSMultiLineComment(state) {
@@ -11238,7 +10764,7 @@ ${input.slice(result.pos)}
11238
10764
  return result;
11239
10765
  }
11240
10766
  }
11241
- var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L89, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R39, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
10767
+ var CoffeeMultiLineComment$0 = $TS($S(CoffeeHereCommentStart, $TEXT($Q($S($N($C(CoffeeHereCommentStart, $EXPECT($L90, fail, 'CoffeeMultiLineComment "*/"'))), $EXPECT($R39, fail, "CoffeeMultiLineComment /./")))), CoffeeHereCommentStart), function($skip, $loc, $0, $1, $2, $3) {
11242
10768
  return { $loc, token: `/*${$2}*/` };
11243
10769
  });
11244
10770
  function CoffeeMultiLineComment(state) {
@@ -11286,7 +10812,7 @@ ${input.slice(result.pos)}
11286
10812
  return result;
11287
10813
  }
11288
10814
  }
11289
- var InlineComment$0 = $TV($TEXT($S($EXPECT($L88, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L89, fail, 'InlineComment "*/"')), $EXPECT($R42, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L89, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
10815
+ var InlineComment$0 = $TV($TEXT($S($EXPECT($L89, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L90, fail, 'InlineComment "*/"')), $EXPECT($R42, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L90, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
11290
10816
  return { $loc, token: $1 };
11291
10817
  });
11292
10818
  function InlineComment(state) {
@@ -11385,7 +10911,7 @@ ${input.slice(result.pos)}
11385
10911
  var NonNewlineWhitespace$0 = $TR($EXPECT($R43, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
11386
10912
  return { $loc, token: $0 };
11387
10913
  });
11388
- var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L90, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
10914
+ var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L91, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
11389
10915
  return "";
11390
10916
  });
11391
10917
  function NonNewlineWhitespace(state) {
@@ -11612,7 +11138,7 @@ ${input.slice(result.pos)}
11612
11138
  return result;
11613
11139
  }
11614
11140
  }
11615
- var Abstract$0 = $TV($TEXT($S($EXPECT($L91, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L6, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
11141
+ var Abstract$0 = $TV($TEXT($S($EXPECT($L92, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L6, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
11616
11142
  return { $loc, token: $1, ts: true };
11617
11143
  });
11618
11144
  function Abstract(state) {
@@ -11662,7 +11188,7 @@ ${input.slice(result.pos)}
11662
11188
  return result;
11663
11189
  }
11664
11190
  }
11665
- var As$0 = $TS($S($EXPECT($L92, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11191
+ var As$0 = $TS($S($EXPECT($L93, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11666
11192
  return { $loc, token: $1 };
11667
11193
  });
11668
11194
  function As(state) {
@@ -11687,7 +11213,7 @@ ${input.slice(result.pos)}
11687
11213
  return result;
11688
11214
  }
11689
11215
  }
11690
- var At$0 = $TV($EXPECT($L93, fail, 'At "@"'), function($skip, $loc, $0, $1) {
11216
+ var At$0 = $TV($EXPECT($L94, fail, 'At "@"'), function($skip, $loc, $0, $1) {
11691
11217
  return { $loc, token: $1 };
11692
11218
  });
11693
11219
  function At(state) {
@@ -11712,7 +11238,7 @@ ${input.slice(result.pos)}
11712
11238
  return result;
11713
11239
  }
11714
11240
  }
11715
- var AtAt$0 = $TV($EXPECT($L94, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
11241
+ var AtAt$0 = $TV($EXPECT($L95, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
11716
11242
  return { $loc, token: "@" };
11717
11243
  });
11718
11244
  function AtAt(state) {
@@ -11737,7 +11263,7 @@ ${input.slice(result.pos)}
11737
11263
  return result;
11738
11264
  }
11739
11265
  }
11740
- var Async$0 = $TS($S($EXPECT($L95, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11266
+ var Async$0 = $TS($S($EXPECT($L96, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11741
11267
  return { $loc, token: $1, type: "Async" };
11742
11268
  });
11743
11269
  function Async(state) {
@@ -11762,7 +11288,7 @@ ${input.slice(result.pos)}
11762
11288
  return result;
11763
11289
  }
11764
11290
  }
11765
- var Await$0 = $TS($S($EXPECT($L96, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11291
+ var Await$0 = $TS($S($EXPECT($L97, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11766
11292
  return { $loc, token: $1 };
11767
11293
  });
11768
11294
  function Await(state) {
@@ -11787,7 +11313,7 @@ ${input.slice(result.pos)}
11787
11313
  return result;
11788
11314
  }
11789
11315
  }
11790
- var Backtick$0 = $TV($EXPECT($L97, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
11316
+ var Backtick$0 = $TV($EXPECT($L98, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
11791
11317
  return { $loc, token: $1 };
11792
11318
  });
11793
11319
  function Backtick(state) {
@@ -11812,7 +11338,7 @@ ${input.slice(result.pos)}
11812
11338
  return result;
11813
11339
  }
11814
11340
  }
11815
- var By$0 = $TS($S($EXPECT($L98, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11341
+ var By$0 = $TS($S($EXPECT($L99, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11816
11342
  return { $loc, token: $1 };
11817
11343
  });
11818
11344
  function By(state) {
@@ -11837,7 +11363,7 @@ ${input.slice(result.pos)}
11837
11363
  return result;
11838
11364
  }
11839
11365
  }
11840
- var Case$0 = $TS($S($EXPECT($L99, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11366
+ var Case$0 = $TS($S($EXPECT($L100, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11841
11367
  return { $loc, token: $1 };
11842
11368
  });
11843
11369
  function Case(state) {
@@ -11862,7 +11388,7 @@ ${input.slice(result.pos)}
11862
11388
  return result;
11863
11389
  }
11864
11390
  }
11865
- var Catch$0 = $TS($S($EXPECT($L100, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11391
+ var Catch$0 = $TS($S($EXPECT($L101, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11866
11392
  return { $loc, token: $1 };
11867
11393
  });
11868
11394
  function Catch(state) {
@@ -11887,7 +11413,7 @@ ${input.slice(result.pos)}
11887
11413
  return result;
11888
11414
  }
11889
11415
  }
11890
- var Class$0 = $TS($S($EXPECT($L101, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11416
+ var Class$0 = $TS($S($EXPECT($L102, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11891
11417
  return { $loc, token: $1 };
11892
11418
  });
11893
11419
  function Class(state) {
@@ -11987,7 +11513,7 @@ ${input.slice(result.pos)}
11987
11513
  return result;
11988
11514
  }
11989
11515
  }
11990
- var CoffeeSubstitutionStart$0 = $TV($EXPECT($L102, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
11516
+ var CoffeeSubstitutionStart$0 = $TV($EXPECT($L103, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
11991
11517
  return { $loc, token: "${" };
11992
11518
  });
11993
11519
  function CoffeeSubstitutionStart(state) {
@@ -12037,7 +11563,7 @@ ${input.slice(result.pos)}
12037
11563
  return result;
12038
11564
  }
12039
11565
  }
12040
- var ConstructorShorthand$0 = $TV($EXPECT($L93, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
11566
+ var ConstructorShorthand$0 = $TV($EXPECT($L94, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
12041
11567
  return { $loc, token: "constructor" };
12042
11568
  });
12043
11569
  function ConstructorShorthand(state) {
@@ -12062,7 +11588,7 @@ ${input.slice(result.pos)}
12062
11588
  return result;
12063
11589
  }
12064
11590
  }
12065
- var Default$0 = $TS($S($EXPECT($L85, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11591
+ var Default$0 = $TS($S($EXPECT($L86, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12066
11592
  return { $loc, token: $1 };
12067
11593
  });
12068
11594
  function Default(state) {
@@ -12087,7 +11613,7 @@ ${input.slice(result.pos)}
12087
11613
  return result;
12088
11614
  }
12089
11615
  }
12090
- var Delete$0 = $TS($S($EXPECT($L103, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11616
+ var Delete$0 = $TS($S($EXPECT($L104, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12091
11617
  return { $loc, token: $1 };
12092
11618
  });
12093
11619
  function Delete(state) {
@@ -12112,7 +11638,7 @@ ${input.slice(result.pos)}
12112
11638
  return result;
12113
11639
  }
12114
11640
  }
12115
- var Do$0 = $TS($S($EXPECT($L104, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11641
+ var Do$0 = $TS($S($EXPECT($L105, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12116
11642
  return { $loc, token: $1 };
12117
11643
  });
12118
11644
  function Do(state) {
@@ -12162,7 +11688,7 @@ ${input.slice(result.pos)}
12162
11688
  return result;
12163
11689
  }
12164
11690
  }
12165
- var DotDot$0 = $TV($EXPECT($L105, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
11691
+ var DotDot$0 = $TV($EXPECT($L106, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
12166
11692
  return { $loc, token: $1 };
12167
11693
  });
12168
11694
  function DotDot(state) {
@@ -12187,7 +11713,7 @@ ${input.slice(result.pos)}
12187
11713
  return result;
12188
11714
  }
12189
11715
  }
12190
- var DotDotDot$0 = $TV($EXPECT($L106, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
11716
+ var DotDotDot$0 = $TV($EXPECT($L107, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
12191
11717
  return { $loc, token: $1 };
12192
11718
  });
12193
11719
  function DotDotDot(state) {
@@ -12212,7 +11738,7 @@ ${input.slice(result.pos)}
12212
11738
  return result;
12213
11739
  }
12214
11740
  }
12215
- var DoubleColon$0 = $TV($EXPECT($L107, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
11741
+ var DoubleColon$0 = $TV($EXPECT($L108, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
12216
11742
  return { $loc, token: $1 };
12217
11743
  });
12218
11744
  function DoubleColon(state) {
@@ -12237,7 +11763,7 @@ ${input.slice(result.pos)}
12237
11763
  return result;
12238
11764
  }
12239
11765
  }
12240
- var DoubleQuote$0 = $TV($EXPECT($L108, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
11766
+ var DoubleQuote$0 = $TV($EXPECT($L109, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
12241
11767
  return { $loc, token: $1 };
12242
11768
  });
12243
11769
  function DoubleQuote(state) {
@@ -12262,7 +11788,7 @@ ${input.slice(result.pos)}
12262
11788
  return result;
12263
11789
  }
12264
11790
  }
12265
- var Else$0 = $TS($S($EXPECT($L109, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11791
+ var Else$0 = $TS($S($EXPECT($L110, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12266
11792
  return { $loc, token: $1 };
12267
11793
  });
12268
11794
  function Else(state) {
@@ -12312,7 +11838,7 @@ ${input.slice(result.pos)}
12312
11838
  return result;
12313
11839
  }
12314
11840
  }
12315
- var Export$0 = $TS($S($EXPECT($L110, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11841
+ var Export$0 = $TS($S($EXPECT($L111, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12316
11842
  return { $loc, token: $1 };
12317
11843
  });
12318
11844
  function Export(state) {
@@ -12337,7 +11863,7 @@ ${input.slice(result.pos)}
12337
11863
  return result;
12338
11864
  }
12339
11865
  }
12340
- var Extends$0 = $TS($S($EXPECT($L111, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11866
+ var Extends$0 = $TS($S($EXPECT($L112, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12341
11867
  return { $loc, token: $1 };
12342
11868
  });
12343
11869
  function Extends(state) {
@@ -12362,7 +11888,7 @@ ${input.slice(result.pos)}
12362
11888
  return result;
12363
11889
  }
12364
11890
  }
12365
- var For$0 = $TS($S($EXPECT($L112, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11891
+ var For$0 = $TS($S($EXPECT($L113, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12366
11892
  return { $loc, token: $1 };
12367
11893
  });
12368
11894
  function For(state) {
@@ -12387,7 +11913,7 @@ ${input.slice(result.pos)}
12387
11913
  return result;
12388
11914
  }
12389
11915
  }
12390
- var From$0 = $TS($S($EXPECT($L113, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11916
+ var From$0 = $TS($S($EXPECT($L114, fail, 'From "from"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12391
11917
  return { $loc, token: $1 };
12392
11918
  });
12393
11919
  function From(state) {
@@ -12412,7 +11938,7 @@ ${input.slice(result.pos)}
12412
11938
  return result;
12413
11939
  }
12414
11940
  }
12415
- var Function$0 = $TS($S($EXPECT($L114, fail, 'Function "function"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11941
+ var Function$0 = $TS($S($EXPECT($L115, fail, 'Function "function"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12416
11942
  return { $loc, token: $1 };
12417
11943
  });
12418
11944
  function Function(state) {
@@ -12437,7 +11963,7 @@ ${input.slice(result.pos)}
12437
11963
  return result;
12438
11964
  }
12439
11965
  }
12440
- var GetOrSet$0 = $TS($S($C($EXPECT($L115, fail, 'GetOrSet "get"'), $EXPECT($L116, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11966
+ var GetOrSet$0 = $TS($S($C($EXPECT($L116, fail, 'GetOrSet "get"'), $EXPECT($L117, fail, 'GetOrSet "set"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12441
11967
  return { $loc, token: $1, type: "GetOrSet" };
12442
11968
  });
12443
11969
  function GetOrSet(state) {
@@ -12462,7 +11988,7 @@ ${input.slice(result.pos)}
12462
11988
  return result;
12463
11989
  }
12464
11990
  }
12465
- var If$0 = $TV($TEXT($S($EXPECT($L117, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L6, fail, 'If " "')))), function($skip, $loc, $0, $1) {
11991
+ var If$0 = $TV($TEXT($S($EXPECT($L118, fail, 'If "if"'), NonIdContinue, $E($EXPECT($L6, fail, 'If " "')))), function($skip, $loc, $0, $1) {
12466
11992
  return { $loc, token: $1 };
12467
11993
  });
12468
11994
  function If(state) {
@@ -12537,7 +12063,7 @@ ${input.slice(result.pos)}
12537
12063
  return result;
12538
12064
  }
12539
12065
  }
12540
- var LetOrConst$0 = $TS($S($C($EXPECT($L118, fail, 'LetOrConst "let"'), $EXPECT($L119, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12066
+ var LetOrConst$0 = $TS($S($C($EXPECT($L119, fail, 'LetOrConst "let"'), $EXPECT($L120, fail, 'LetOrConst "const"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12541
12067
  return { $loc, token: $1 };
12542
12068
  });
12543
12069
  function LetOrConst(state) {
@@ -12562,7 +12088,7 @@ ${input.slice(result.pos)}
12562
12088
  return result;
12563
12089
  }
12564
12090
  }
12565
- var Loop$0 = $TS($S($EXPECT($L120, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12091
+ var Loop$0 = $TS($S($EXPECT($L121, fail, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12566
12092
  return { $loc, token: "while(true)" };
12567
12093
  });
12568
12094
  function Loop(state) {
@@ -12587,7 +12113,7 @@ ${input.slice(result.pos)}
12587
12113
  return result;
12588
12114
  }
12589
12115
  }
12590
- var New$0 = $TS($S($EXPECT($L121, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12116
+ var New$0 = $TS($S($EXPECT($L122, fail, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12591
12117
  return { $loc, token: $1 };
12592
12118
  });
12593
12119
  function New(state) {
@@ -12662,7 +12188,7 @@ ${input.slice(result.pos)}
12662
12188
  return result;
12663
12189
  }
12664
12190
  }
12665
- var OpenAngleBracket$0 = $TV($EXPECT($L122, fail, 'OpenAngleBracket "<"'), function($skip, $loc, $0, $1) {
12191
+ var OpenAngleBracket$0 = $TV($EXPECT($L123, fail, 'OpenAngleBracket "<"'), function($skip, $loc, $0, $1) {
12666
12192
  return { $loc, token: $1 };
12667
12193
  });
12668
12194
  function OpenAngleBracket(state) {
@@ -12687,7 +12213,7 @@ ${input.slice(result.pos)}
12687
12213
  return result;
12688
12214
  }
12689
12215
  }
12690
- var OpenBrace$0 = $TV($EXPECT($L123, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
12216
+ var OpenBrace$0 = $TV($EXPECT($L124, fail, 'OpenBrace "{"'), function($skip, $loc, $0, $1) {
12691
12217
  return { $loc, token: $1 };
12692
12218
  });
12693
12219
  function OpenBrace(state) {
@@ -12712,7 +12238,7 @@ ${input.slice(result.pos)}
12712
12238
  return result;
12713
12239
  }
12714
12240
  }
12715
- var OpenBracket$0 = $TV($EXPECT($L124, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
12241
+ var OpenBracket$0 = $TV($EXPECT($L125, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
12716
12242
  return { $loc, token: $1 };
12717
12243
  });
12718
12244
  function OpenBracket(state) {
@@ -12737,7 +12263,7 @@ ${input.slice(result.pos)}
12737
12263
  return result;
12738
12264
  }
12739
12265
  }
12740
- var OpenParen$0 = $TV($EXPECT($L125, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
12266
+ var OpenParen$0 = $TV($EXPECT($L126, fail, 'OpenParen "("'), function($skip, $loc, $0, $1) {
12741
12267
  return { $loc, token: $1 };
12742
12268
  });
12743
12269
  function OpenParen(state) {
@@ -12762,7 +12288,7 @@ ${input.slice(result.pos)}
12762
12288
  return result;
12763
12289
  }
12764
12290
  }
12765
- var Public$0 = $TS($S($EXPECT($L126, fail, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12291
+ var Public$0 = $TS($S($EXPECT($L127, fail, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12766
12292
  return { $loc, token: $1 };
12767
12293
  });
12768
12294
  function Public(state) {
@@ -12787,7 +12313,7 @@ ${input.slice(result.pos)}
12787
12313
  return result;
12788
12314
  }
12789
12315
  }
12790
- var Private$0 = $TS($S($EXPECT($L127, fail, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12316
+ var Private$0 = $TS($S($EXPECT($L128, fail, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12791
12317
  return { $loc, token: $1 };
12792
12318
  });
12793
12319
  function Private(state) {
@@ -12812,7 +12338,7 @@ ${input.slice(result.pos)}
12812
12338
  return result;
12813
12339
  }
12814
12340
  }
12815
- var Protected$0 = $TS($S($EXPECT($L128, fail, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12341
+ var Protected$0 = $TS($S($EXPECT($L129, fail, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12816
12342
  return { $loc, token: $1 };
12817
12343
  });
12818
12344
  function Protected(state) {
@@ -12837,7 +12363,7 @@ ${input.slice(result.pos)}
12837
12363
  return result;
12838
12364
  }
12839
12365
  }
12840
- var Pipe$0 = $TV($EXPECT($L129, fail, 'Pipe "|>"'), function($skip, $loc, $0, $1) {
12366
+ var Pipe$0 = $TV($EXPECT($L130, fail, 'Pipe "|>"'), function($skip, $loc, $0, $1) {
12841
12367
  return { $loc, token: $1 };
12842
12368
  });
12843
12369
  function Pipe(state) {
@@ -12887,7 +12413,7 @@ ${input.slice(result.pos)}
12887
12413
  return result;
12888
12414
  }
12889
12415
  }
12890
- var Readonly$0 = $TS($S($EXPECT($L130, fail, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12416
+ var Readonly$0 = $TS($S($EXPECT($L131, fail, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12891
12417
  return { $loc, token: $1, ts: true };
12892
12418
  });
12893
12419
  function Readonly(state) {
@@ -12912,7 +12438,7 @@ ${input.slice(result.pos)}
12912
12438
  return result;
12913
12439
  }
12914
12440
  }
12915
- var Return$0 = $TS($S($EXPECT($L131, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12441
+ var Return$0 = $TS($S($EXPECT($L132, fail, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12916
12442
  return { $loc, token: $1 };
12917
12443
  });
12918
12444
  function Return(state) {
@@ -12937,7 +12463,7 @@ ${input.slice(result.pos)}
12937
12463
  return result;
12938
12464
  }
12939
12465
  }
12940
- var Satisfies$0 = $TS($S($EXPECT($L132, fail, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12466
+ var Satisfies$0 = $TS($S($EXPECT($L133, fail, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12941
12467
  return { $loc, token: $1 };
12942
12468
  });
12943
12469
  function Satisfies(state) {
@@ -12987,7 +12513,7 @@ ${input.slice(result.pos)}
12987
12513
  return result;
12988
12514
  }
12989
12515
  }
12990
- var SingleQuote$0 = $TV($EXPECT($L133, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
12516
+ var SingleQuote$0 = $TV($EXPECT($L134, fail, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
12991
12517
  return { $loc, token: $1 };
12992
12518
  });
12993
12519
  function SingleQuote(state) {
@@ -13037,10 +12563,10 @@ ${input.slice(result.pos)}
13037
12563
  return result;
13038
12564
  }
13039
12565
  }
13040
- var Static$0 = $TS($S($EXPECT($L134, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12566
+ var Static$0 = $TS($S($EXPECT($L135, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13041
12567
  return { $loc, token: $1 };
13042
12568
  });
13043
- var Static$1 = $TS($S($EXPECT($L93, fail, 'Static "@"'), $N($C($EXPECT($L125, fail, 'Static "("'), $EXPECT($L93, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
12569
+ var Static$1 = $TS($S($EXPECT($L94, fail, 'Static "@"'), $N($C($EXPECT($L126, fail, 'Static "("'), $EXPECT($L94, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
13044
12570
  return { $loc, token: "static " };
13045
12571
  });
13046
12572
  function Static(state) {
@@ -13065,7 +12591,7 @@ ${input.slice(result.pos)}
13065
12591
  return result;
13066
12592
  }
13067
12593
  }
13068
- var SubstitutionStart$0 = $TV($EXPECT($L135, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
12594
+ var SubstitutionStart$0 = $TV($EXPECT($L136, fail, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
13069
12595
  return { $loc, token: $1 };
13070
12596
  });
13071
12597
  function SubstitutionStart(state) {
@@ -13090,7 +12616,7 @@ ${input.slice(result.pos)}
13090
12616
  return result;
13091
12617
  }
13092
12618
  }
13093
- var Switch$0 = $TS($S($EXPECT($L136, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12619
+ var Switch$0 = $TS($S($EXPECT($L137, fail, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13094
12620
  return { $loc, token: $1 };
13095
12621
  });
13096
12622
  function Switch(state) {
@@ -13115,7 +12641,7 @@ ${input.slice(result.pos)}
13115
12641
  return result;
13116
12642
  }
13117
12643
  }
13118
- var Target$0 = $TS($S($EXPECT($L137, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12644
+ var Target$0 = $TS($S($EXPECT($L138, fail, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13119
12645
  return { $loc, token: $1 };
13120
12646
  });
13121
12647
  function Target(state) {
@@ -13140,7 +12666,7 @@ ${input.slice(result.pos)}
13140
12666
  return result;
13141
12667
  }
13142
12668
  }
13143
- var Then$0 = $TS($S(__, $EXPECT($L138, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
12669
+ var Then$0 = $TS($S(__, $EXPECT($L139, fail, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
13144
12670
  return { $loc, token: "" };
13145
12671
  });
13146
12672
  function Then(state) {
@@ -13165,7 +12691,7 @@ ${input.slice(result.pos)}
13165
12691
  return result;
13166
12692
  }
13167
12693
  }
13168
- var This$0 = $TS($S($EXPECT($L139, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12694
+ var This$0 = $TS($S($EXPECT($L140, fail, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13169
12695
  return { $loc, token: $1 };
13170
12696
  });
13171
12697
  function This(state) {
@@ -13190,7 +12716,7 @@ ${input.slice(result.pos)}
13190
12716
  return result;
13191
12717
  }
13192
12718
  }
13193
- var Throw$0 = $TS($S($EXPECT($L140, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12719
+ var Throw$0 = $TS($S($EXPECT($L141, fail, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13194
12720
  return { $loc, token: $1 };
13195
12721
  });
13196
12722
  function Throw(state) {
@@ -13215,7 +12741,7 @@ ${input.slice(result.pos)}
13215
12741
  return result;
13216
12742
  }
13217
12743
  }
13218
- var TripleDoubleQuote$0 = $TV($EXPECT($L141, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
12744
+ var TripleDoubleQuote$0 = $TV($EXPECT($L142, fail, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
13219
12745
  return { $loc, token: "`" };
13220
12746
  });
13221
12747
  function TripleDoubleQuote(state) {
@@ -13240,7 +12766,7 @@ ${input.slice(result.pos)}
13240
12766
  return result;
13241
12767
  }
13242
12768
  }
13243
- var TripleSingleQuote$0 = $TV($EXPECT($L142, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
12769
+ var TripleSingleQuote$0 = $TV($EXPECT($L143, fail, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
13244
12770
  return { $loc, token: "`" };
13245
12771
  });
13246
12772
  function TripleSingleQuote(state) {
@@ -13265,7 +12791,7 @@ ${input.slice(result.pos)}
13265
12791
  return result;
13266
12792
  }
13267
12793
  }
13268
- var TripleSlash$0 = $TV($EXPECT($L143, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
12794
+ var TripleSlash$0 = $TV($EXPECT($L144, fail, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
13269
12795
  return { $loc, token: "/" };
13270
12796
  });
13271
12797
  function TripleSlash(state) {
@@ -13290,7 +12816,7 @@ ${input.slice(result.pos)}
13290
12816
  return result;
13291
12817
  }
13292
12818
  }
13293
- var TripleTick$0 = $TV($EXPECT($L144, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
12819
+ var TripleTick$0 = $TV($EXPECT($L145, fail, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
13294
12820
  return { $loc, token: "`" };
13295
12821
  });
13296
12822
  function TripleTick(state) {
@@ -13315,7 +12841,7 @@ ${input.slice(result.pos)}
13315
12841
  return result;
13316
12842
  }
13317
12843
  }
13318
- var Try$0 = $TS($S($EXPECT($L145, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12844
+ var Try$0 = $TS($S($EXPECT($L146, fail, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13319
12845
  return { $loc, token: $1 };
13320
12846
  });
13321
12847
  function Try(state) {
@@ -13340,7 +12866,7 @@ ${input.slice(result.pos)}
13340
12866
  return result;
13341
12867
  }
13342
12868
  }
13343
- var Typeof$0 = $TS($S($EXPECT($L146, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12869
+ var Typeof$0 = $TS($S($EXPECT($L147, fail, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13344
12870
  return { $loc, token: $1 };
13345
12871
  });
13346
12872
  function Typeof(state) {
@@ -13365,7 +12891,7 @@ ${input.slice(result.pos)}
13365
12891
  return result;
13366
12892
  }
13367
12893
  }
13368
- var Unless$0 = $TS($S($EXPECT($L147, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12894
+ var Unless$0 = $TS($S($EXPECT($L148, fail, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13369
12895
  return { $loc, token: $1 };
13370
12896
  });
13371
12897
  function Unless(state) {
@@ -13390,7 +12916,7 @@ ${input.slice(result.pos)}
13390
12916
  return result;
13391
12917
  }
13392
12918
  }
13393
- var Until$0 = $TS($S($EXPECT($L148, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12919
+ var Until$0 = $TS($S($EXPECT($L149, fail, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13394
12920
  return { $loc, token: $1 };
13395
12921
  });
13396
12922
  function Until(state) {
@@ -13415,7 +12941,7 @@ ${input.slice(result.pos)}
13415
12941
  return result;
13416
12942
  }
13417
12943
  }
13418
- var Var$0 = $TS($S($EXPECT($L149, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12944
+ var Var$0 = $TS($S($EXPECT($L150, fail, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13419
12945
  return { $loc, token: $1 };
13420
12946
  });
13421
12947
  function Var(state) {
@@ -13440,7 +12966,7 @@ ${input.slice(result.pos)}
13440
12966
  return result;
13441
12967
  }
13442
12968
  }
13443
- var Void$0 = $TS($S($EXPECT($L150, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12969
+ var Void$0 = $TS($S($EXPECT($L151, fail, 'Void "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13444
12970
  return { $loc, token: $1 };
13445
12971
  });
13446
12972
  function Void(state) {
@@ -13465,7 +12991,7 @@ ${input.slice(result.pos)}
13465
12991
  return result;
13466
12992
  }
13467
12993
  }
13468
- var When$0 = $TS($S($EXPECT($L151, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12994
+ var When$0 = $TS($S($EXPECT($L152, fail, 'When "when"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13469
12995
  return { $loc, token: "case" };
13470
12996
  });
13471
12997
  function When(state) {
@@ -13490,7 +13016,7 @@ ${input.slice(result.pos)}
13490
13016
  return result;
13491
13017
  }
13492
13018
  }
13493
- var While$0 = $TS($S($EXPECT($L152, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13019
+ var While$0 = $TS($S($EXPECT($L153, fail, 'While "while"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13494
13020
  return { $loc, token: $1 };
13495
13021
  });
13496
13022
  function While(state) {
@@ -13515,7 +13041,7 @@ ${input.slice(result.pos)}
13515
13041
  return result;
13516
13042
  }
13517
13043
  }
13518
- var Yield$0 = $TS($S($EXPECT($L153, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13044
+ var Yield$0 = $TS($S($EXPECT($L154, fail, 'Yield "yield"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13519
13045
  return { $loc, token: $1 };
13520
13046
  });
13521
13047
  function Yield(state) {
@@ -13661,7 +13187,7 @@ ${input.slice(result.pos)}
13661
13187
  return result;
13662
13188
  }
13663
13189
  }
13664
- var JSXSelfClosingElement$0 = $TS($S($EXPECT($L122, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L154, fail, 'JSXSelfClosingElement "/>"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
13190
+ var JSXSelfClosingElement$0 = $TS($S($EXPECT($L123, fail, 'JSXSelfClosingElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L155, fail, 'JSXSelfClosingElement "/>"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
13665
13191
  return { type: "JSXElement", children: $0, tag: $2 };
13666
13192
  });
13667
13193
  function JSXSelfClosingElement(state) {
@@ -13712,7 +13238,7 @@ ${input.slice(result.pos)}
13712
13238
  return result;
13713
13239
  }
13714
13240
  }
13715
- var JSXOpeningElement$0 = $S($EXPECT($L122, fail, 'JSXOpeningElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L27, fail, 'JSXOpeningElement ">"'));
13241
+ var JSXOpeningElement$0 = $S($EXPECT($L123, fail, 'JSXOpeningElement "<"'), $TEXT(JSXElementName), $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L27, fail, 'JSXOpeningElement ">"'));
13716
13242
  function JSXOpeningElement(state) {
13717
13243
  let eventData;
13718
13244
  if (state.events) {
@@ -13764,7 +13290,7 @@ ${input.slice(result.pos)}
13764
13290
  return result;
13765
13291
  }
13766
13292
  }
13767
- var JSXClosingElement$0 = $S($EXPECT($L155, fail, 'JSXClosingElement "</"'), $E(Whitespace), $TEXT(JSXElementName), $E(Whitespace), $EXPECT($L27, fail, 'JSXClosingElement ">"'));
13293
+ var JSXClosingElement$0 = $S($EXPECT($L156, fail, 'JSXClosingElement "</"'), $E(Whitespace), $TEXT(JSXElementName), $E(Whitespace), $EXPECT($L27, fail, 'JSXClosingElement ">"'));
13768
13294
  function JSXClosingElement(state) {
13769
13295
  let eventData;
13770
13296
  if (state.events) {
@@ -13803,7 +13329,7 @@ ${input.slice(result.pos)}
13803
13329
  ];
13804
13330
  return { type: "JSXFragment", children: parts, jsxChildren: children.jsxChildren };
13805
13331
  });
13806
- var JSXFragment$1 = $TS($S(CoffeeJSXEnabled, $EXPECT($L156, fail, 'JSXFragment "<>"'), $E(JSXChildren), $E(Whitespace), JSXClosingFragment), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
13332
+ var JSXFragment$1 = $TS($S(CoffeeJSXEnabled, $EXPECT($L157, fail, 'JSXFragment "<>"'), $E(JSXChildren), $E(Whitespace), JSXClosingFragment), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
13807
13333
  var children = $3;
13808
13334
  $0 = $0.slice(1);
13809
13335
  return {
@@ -13834,7 +13360,7 @@ ${input.slice(result.pos)}
13834
13360
  return result;
13835
13361
  }
13836
13362
  }
13837
- var PushJSXOpeningFragment$0 = $TV($EXPECT($L156, fail, 'PushJSXOpeningFragment "<>"'), function($skip, $loc, $0, $1) {
13363
+ var PushJSXOpeningFragment$0 = $TV($EXPECT($L157, fail, 'PushJSXOpeningFragment "<>"'), function($skip, $loc, $0, $1) {
13838
13364
  module2.JSXTagStack.push("");
13839
13365
  return $1;
13840
13366
  });
@@ -13888,7 +13414,7 @@ ${input.slice(result.pos)}
13888
13414
  return result;
13889
13415
  }
13890
13416
  }
13891
- var JSXClosingFragment$0 = $EXPECT($L157, fail, 'JSXClosingFragment "</>"');
13417
+ var JSXClosingFragment$0 = $EXPECT($L158, fail, 'JSXClosingFragment "</>"');
13892
13418
  function JSXClosingFragment(state) {
13893
13419
  let eventData;
13894
13420
  if (state.events) {
@@ -14765,7 +14291,7 @@ ${input.slice(result.pos)}
14765
14291
  return result;
14766
14292
  }
14767
14293
  }
14768
- var JSXComment$0 = $TS($S($EXPECT($L158, fail, 'JSXComment "<!--"'), JSXCommentContent, $EXPECT($L159, fail, 'JSXComment "-->"')), function($skip, $loc, $0, $1, $2, $3) {
14294
+ var JSXComment$0 = $TS($S($EXPECT($L159, fail, 'JSXComment "<!--"'), JSXCommentContent, $EXPECT($L160, fail, 'JSXComment "-->"')), function($skip, $loc, $0, $1, $2, $3) {
14769
14295
  return ["{/*", $2, "*/}"];
14770
14296
  });
14771
14297
  function JSXComment(state) {
@@ -14942,7 +14468,7 @@ ${input.slice(result.pos)}
14942
14468
  return result;
14943
14469
  }
14944
14470
  }
14945
- var TypeDeclarationModifier$0 = $S($EXPECT($L160, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
14471
+ var TypeDeclarationModifier$0 = $S($EXPECT($L161, fail, 'TypeDeclarationModifier "declare"'), NonIdContinue);
14946
14472
  var TypeDeclarationModifier$1 = Export;
14947
14473
  function TypeDeclarationModifier(state) {
14948
14474
  let eventData;
@@ -15038,7 +14564,7 @@ ${input.slice(result.pos)}
15038
14564
  return result;
15039
14565
  }
15040
14566
  }
15041
- var TypeKeyword$0 = $S($EXPECT($L161, fail, 'TypeKeyword "type"'), NonIdContinue);
14567
+ var TypeKeyword$0 = $S($EXPECT($L162, fail, 'TypeKeyword "type"'), NonIdContinue);
15042
14568
  function TypeKeyword(state) {
15043
14569
  let eventData;
15044
14570
  if (state.events) {
@@ -15061,7 +14587,7 @@ ${input.slice(result.pos)}
15061
14587
  return result;
15062
14588
  }
15063
14589
  }
15064
- var Interface$0 = $S($EXPECT($L162, fail, 'Interface "interface"'), NonIdContinue);
14590
+ var Interface$0 = $S($EXPECT($L163, fail, 'Interface "interface"'), NonIdContinue);
15065
14591
  function Interface(state) {
15066
14592
  let eventData;
15067
14593
  if (state.events) {
@@ -15084,7 +14610,7 @@ ${input.slice(result.pos)}
15084
14610
  return result;
15085
14611
  }
15086
14612
  }
15087
- var Namespace$0 = $S($EXPECT($L163, fail, 'Namespace "namespace"'), NonIdContinue);
14613
+ var Namespace$0 = $S($EXPECT($L164, fail, 'Namespace "namespace"'), NonIdContinue);
15088
14614
  function Namespace(state) {
15089
14615
  let eventData;
15090
14616
  if (state.events) {
@@ -15309,7 +14835,7 @@ ${input.slice(result.pos)}
15309
14835
  return result;
15310
14836
  }
15311
14837
  }
15312
- var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R50, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L130, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R51, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
14838
+ var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R50, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L131, fail, 'TypeIndexSignature "readonly"'), __)), OpenBracket, TypeIndex, CloseBracket, $E($S(__, $R$0($EXPECT($R51, fail, "TypeIndexSignature /[+-]/")), QuestionMark)));
15313
14839
  function TypeIndexSignature(state) {
15314
14840
  let eventData;
15315
14841
  if (state.events) {
@@ -15381,7 +14907,7 @@ ${input.slice(result.pos)}
15381
14907
  return result;
15382
14908
  }
15383
14909
  }
15384
- var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($L164, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2, $3, $4) {
14910
+ var ReturnTypeSuffix$0 = $TS($S(__, Colon, $E($S(__, $EXPECT($L165, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function($skip, $loc, $0, $1, $2, $3, $4) {
15385
14911
  const children = [...$1, $2];
15386
14912
  if ($3)
15387
14913
  children.push($3);
@@ -15540,10 +15066,10 @@ ${input.slice(result.pos)}
15540
15066
  return result;
15541
15067
  }
15542
15068
  }
15543
- var TypeUnaryOp$0 = $S($EXPECT($L165, fail, 'TypeUnaryOp "keyof"'), NonIdContinue);
15544
- var TypeUnaryOp$1 = $S($EXPECT($L146, fail, 'TypeUnaryOp "typeof"'), NonIdContinue);
15545
- var TypeUnaryOp$2 = $S($EXPECT($L166, fail, 'TypeUnaryOp "infer"'), NonIdContinue);
15546
- var TypeUnaryOp$3 = $S($EXPECT($L130, fail, 'TypeUnaryOp "readonly"'), NonIdContinue);
15069
+ var TypeUnaryOp$0 = $S($EXPECT($L166, fail, 'TypeUnaryOp "keyof"'), NonIdContinue);
15070
+ var TypeUnaryOp$1 = $S($EXPECT($L147, fail, 'TypeUnaryOp "typeof"'), NonIdContinue);
15071
+ var TypeUnaryOp$2 = $S($EXPECT($L167, fail, 'TypeUnaryOp "infer"'), NonIdContinue);
15072
+ var TypeUnaryOp$3 = $S($EXPECT($L131, fail, 'TypeUnaryOp "readonly"'), NonIdContinue);
15547
15073
  function TypeUnaryOp(state) {
15548
15074
  let eventData;
15549
15075
  if (state.events) {
@@ -15566,7 +15092,7 @@ ${input.slice(result.pos)}
15566
15092
  return result;
15567
15093
  }
15568
15094
  }
15569
- var TypeIndexedAccess$0 = $S(__, OpenBracket, $E(Type), __, CloseBracket);
15095
+ var TypeIndexedAccess$0 = $S(OpenBracket, $E(Type), __, CloseBracket);
15570
15096
  function TypeIndexedAccess(state) {
15571
15097
  let eventData;
15572
15098
  if (state.events) {
@@ -15591,11 +15117,11 @@ ${input.slice(result.pos)}
15591
15117
  }
15592
15118
  var TypePrimary$0 = InterfaceBlock;
15593
15119
  var TypePrimary$1 = $S(__, OpenParen, Type, __, CloseParen);
15594
- var TypePrimary$2 = $S(__, TypeTuple);
15595
- var TypePrimary$3 = $S($Q(_), ImportType);
15596
- var TypePrimary$4 = $S($Q(_), FunctionType);
15597
- var TypePrimary$5 = $S($Q(_), TypeLiteral);
15598
- var TypePrimary$6 = $S($Q(_), IdentifierName, $Q($S(Dot, IdentifierName)), $E(TypeArguments));
15120
+ var TypePrimary$2 = $S($E(_), TypeTuple);
15121
+ var TypePrimary$3 = $S($E(_), ImportType);
15122
+ var TypePrimary$4 = $S($E(_), FunctionType);
15123
+ var TypePrimary$5 = $S($E(_), TypeLiteral);
15124
+ var TypePrimary$6 = $S($E(_), IdentifierName, $Q($S(Dot, IdentifierName)), $E(TypeArguments));
15599
15125
  function TypePrimary(state) {
15600
15126
  let eventData;
15601
15127
  if (state.events) {
@@ -15740,7 +15266,7 @@ ${input.slice(result.pos)}
15740
15266
  return result;
15741
15267
  }
15742
15268
  }
15743
- var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L111, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
15269
+ var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L112, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
15744
15270
  if ($2)
15745
15271
  return $0;
15746
15272
  return $1;
@@ -15769,10 +15295,10 @@ ${input.slice(result.pos)}
15769
15295
  }
15770
15296
  var TypeLiteral$0 = Literal;
15771
15297
  var TypeLiteral$1 = TemplateLiteral;
15772
- var TypeLiteral$2 = $TS($S($EXPECT($L150, fail, 'TypeLiteral "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15298
+ var TypeLiteral$2 = $TS($S($EXPECT($L151, fail, 'TypeLiteral "void"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15773
15299
  return { $loc, token: "void" };
15774
15300
  });
15775
- var TypeLiteral$3 = $TV($EXPECT($L167, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
15301
+ var TypeLiteral$3 = $TV($EXPECT($L168, fail, 'TypeLiteral "[]"'), function($skip, $loc, $0, $1) {
15776
15302
  return { $loc, token: "[]" };
15777
15303
  });
15778
15304
  function TypeLiteral(state) {
@@ -15854,7 +15380,7 @@ ${input.slice(result.pos)}
15854
15380
  return result;
15855
15381
  }
15856
15382
  }
15857
- var TypeArguments$0 = $TS($S($EXPECT($L122, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L27, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
15383
+ var TypeArguments$0 = $TS($S($EXPECT($L123, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L27, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
15858
15384
  return { ts: true, children: $0 };
15859
15385
  });
15860
15386
  function TypeArguments(state) {
@@ -15925,7 +15451,7 @@ ${input.slice(result.pos)}
15925
15451
  return result;
15926
15452
  }
15927
15453
  }
15928
- var TypeParameters$0 = $TS($S(__, $EXPECT($L122, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L27, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
15454
+ var TypeParameters$0 = $TS($S(__, $EXPECT($L123, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L27, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
15929
15455
  var parameters = $3;
15930
15456
  return {
15931
15457
  type: "TypeParameters",
@@ -15979,7 +15505,7 @@ ${input.slice(result.pos)}
15979
15505
  return result;
15980
15506
  }
15981
15507
  }
15982
- var TypeConstraint$0 = $S(__, $EXPECT($L111, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
15508
+ var TypeConstraint$0 = $S(__, $EXPECT($L112, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
15983
15509
  function TypeConstraint(state) {
15984
15510
  let eventData;
15985
15511
  if (state.events) {
@@ -16130,7 +15656,7 @@ ${input.slice(result.pos)}
16130
15656
  return result;
16131
15657
  }
16132
15658
  }
16133
- var CivetPrologueContent$0 = $TS($S($EXPECT($L168, fail, 'CivetPrologueContent "civet"'), NonIdContinue, $Q(CivetOption), $EXPECT($R54, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3, $4) {
15659
+ var CivetPrologueContent$0 = $TS($S($EXPECT($L169, fail, 'CivetPrologueContent "civet"'), NonIdContinue, $Q(CivetOption), $EXPECT($R54, fail, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3, $4) {
16134
15660
  var options = $3;
16135
15661
  return {
16136
15662
  type: "CivetPrologue",
@@ -17778,13 +17304,39 @@ ${input.slice(result.pos)}
17778
17304
  token: str
17779
17305
  };
17780
17306
  };
17781
- module2.reorderBindingRestProperty = function(rest, after) {
17782
- if (after.length) {
17783
- const [restDelim] = rest.children.slice(-1), lastAfterProp = after[after.length - 1], lastAfterChildren = lastAfterProp.children, [lastDelim] = lastAfterChildren.slice(-1);
17784
- rest = { ...rest, children: [...rest.children.slice(0, -1), lastDelim] };
17785
- after = [...after.slice(0, -1), { ...lastAfterProp, children: [...lastAfterChildren.slice(0, -1), restDelim] }];
17307
+ module2.reorderBindingRestProperty = function(props) {
17308
+ const names = props.flatMap((p) => p.names);
17309
+ let restIndex = -1;
17310
+ let restCount = 0;
17311
+ props.forEach(({ type }, i) => {
17312
+ if (type === "BindingRestProperty") {
17313
+ if (restIndex < 0)
17314
+ restIndex = i;
17315
+ restCount++;
17316
+ }
17317
+ });
17318
+ if (restCount === 0) {
17319
+ const children = [...props];
17320
+ return {
17321
+ children,
17322
+ names
17323
+ };
17324
+ } else if (restCount === 1) {
17325
+ let after = props.slice(restIndex + 1);
17326
+ let rest = props[restIndex];
17327
+ props = props.slice(0, restIndex);
17328
+ if (after.length) {
17329
+ const [restDelim] = rest.children.slice(-1), lastAfterProp = after[after.length - 1], lastAfterChildren = lastAfterProp.children, [lastDelim] = lastAfterChildren.slice(-1);
17330
+ rest = { ...rest, children: [...rest.children.slice(0, -1), lastDelim] };
17331
+ after = [...after.slice(0, -1), { ...lastAfterProp, children: [...lastAfterChildren.slice(0, -1), restDelim] }];
17332
+ }
17333
+ const children = [...props, ...after, rest];
17334
+ return {
17335
+ children,
17336
+ names
17337
+ };
17786
17338
  }
17787
- return [rest, after];
17339
+ throw new Error("Multiple rest properties in object pattern");
17788
17340
  };
17789
17341
  function gatherNodes(node, predicate) {
17790
17342
  if (node == null)