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