@danielx/civet 0.5.91 → 0.5.93

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
@@ -474,6 +474,8 @@ var require_lib = __commonJS({
474
474
  };
475
475
  }
476
476
  function processUnaryExpression(pre, exp, post) {
477
+ if (!(pre.length || post))
478
+ return exp;
477
479
  if (post?.token === "?") {
478
480
  post = {
479
481
  $loc: post.$loc,
@@ -523,22 +525,10 @@ var require_lib = __commonJS({
523
525
  };
524
526
  }
525
527
  }
526
- if (exp.children) {
527
- const children = [...pre, ...exp.children];
528
- if (post)
529
- children.push(post);
530
- return Object.assign({}, exp, { children });
531
- } else if (Array.isArray(exp)) {
532
- const children = [...pre, ...exp];
533
- if (post)
534
- children.push(post);
535
- return { children };
536
- } else {
537
- const children = [...pre, exp];
538
- if (post)
539
- children.push(post);
540
- return { children };
541
- }
528
+ return {
529
+ type: "UnaryExpression",
530
+ children: [...pre, exp, post]
531
+ };
542
532
  }
543
533
  module2.exports = {
544
534
  blockWithPrefix,
@@ -1051,8 +1041,6 @@ ${input.slice(result.pos)}
1051
1041
  AtThis,
1052
1042
  LeftHandSideExpression,
1053
1043
  CallExpression,
1054
- ReturnValue,
1055
- AfterReturnShorthand,
1056
1044
  CallExpressionRest,
1057
1045
  OptionalShorthand,
1058
1046
  OptionalDot,
@@ -1065,6 +1053,8 @@ ${input.slice(result.pos)}
1065
1053
  PropertyGlob,
1066
1054
  SuperProperty,
1067
1055
  MetaProperty,
1056
+ ReturnValue,
1057
+ AfterReturnShorthand,
1068
1058
  Parameters,
1069
1059
  NonEmptyParameters,
1070
1060
  FunctionRestParameter,
@@ -1625,106 +1615,106 @@ ${input.slice(result.pos)}
1625
1615
  var $L7 = $L("--");
1626
1616
  var $L8 = $L("=>");
1627
1617
  var $L9 = $L(" ");
1628
- var $L10 = $L("implements");
1629
- var $L11 = $L("<:");
1630
- var $L12 = $L("#");
1631
- var $L13 = $L("super");
1632
- var $L14 = $L("import");
1633
- var $L15 = $L("return.value");
1618
+ var $L10 = $L(":");
1619
+ var $L11 = $L("implements");
1620
+ var $L12 = $L("<:");
1621
+ var $L13 = $L("#");
1622
+ var $L14 = $L("super");
1623
+ var $L15 = $L("import");
1634
1624
  var $L16 = $L("!");
1635
1625
  var $L17 = $L("^");
1636
1626
  var $L18 = $L("-");
1637
1627
  var $L19 = $L("import.meta");
1638
- var $L20 = $L(",");
1639
- var $L21 = $L("->");
1640
- var $L22 = $L("}");
1641
- var $L23 = $L("null");
1642
- var $L24 = $L("true");
1643
- var $L25 = $L("false");
1644
- var $L26 = $L("yes");
1645
- var $L27 = $L("on");
1646
- var $L28 = $L("no");
1647
- var $L29 = $L("off");
1648
- var $L30 = $L(">");
1649
- var $L31 = $L("]");
1650
- var $L32 = $L("**=");
1651
- var $L33 = $L("*=");
1652
- var $L34 = $L("/=");
1653
- var $L35 = $L("%=");
1654
- var $L36 = $L("+=");
1655
- var $L37 = $L("-=");
1656
- var $L38 = $L("<<=");
1657
- var $L39 = $L(">>>=");
1658
- var $L40 = $L(">>=");
1659
- var $L41 = $L("&&=");
1660
- var $L42 = $L("&=");
1661
- var $L43 = $L("^=");
1662
- var $L44 = $L("||=");
1663
- var $L45 = $L("|=");
1664
- var $L46 = $L("??=");
1665
- var $L47 = $L("?=");
1666
- var $L48 = $L("and=");
1667
- var $L49 = $L("or=");
1668
- var $L50 = $L("not");
1669
- var $L51 = $L("**");
1670
- var $L52 = $L("*");
1671
- var $L53 = $L("/");
1672
- var $L54 = $L("%%");
1673
- var $L55 = $L("%");
1674
- var $L56 = $L("+");
1675
- var $L57 = $L("<=");
1676
- var $L58 = $L(">=");
1677
- var $L59 = $L("<?");
1678
- var $L60 = $L("!<?");
1679
- var $L61 = $L("<<");
1680
- var $L62 = $L(">>>");
1681
- var $L63 = $L(">>");
1682
- var $L64 = $L("!==");
1683
- var $L65 = $L("!=");
1684
- var $L66 = $L("isnt");
1685
- var $L67 = $L("===");
1686
- var $L68 = $L("==");
1687
- var $L69 = $L("and");
1688
- var $L70 = $L("&&");
1689
- var $L71 = $L("of");
1690
- var $L72 = $L("or");
1691
- var $L73 = $L("||");
1692
- var $L74 = $L("^^");
1693
- var $L75 = $L("xor");
1694
- var $L76 = $L("xnor");
1695
- var $L77 = $L("??");
1696
- var $L78 = $L("instanceof");
1697
- var $L79 = $L("in");
1698
- var $L80 = $L("is");
1699
- var $L81 = $L("&");
1700
- var $L82 = $L("|");
1701
- var $L83 = $L(";");
1702
- var $L84 = $L("$:");
1703
- var $L85 = $L("own");
1704
- var $L86 = $L("break");
1705
- var $L87 = $L("continue");
1706
- var $L88 = $L("debugger");
1707
- var $L89 = $L("assert");
1708
- var $L90 = $L(":=");
1709
- var $L91 = $L(".=");
1710
- var $L92 = $L("/*");
1711
- var $L93 = $L("*/");
1712
- var $L94 = $L("\\");
1713
- var $L95 = $L("[");
1714
- var $L96 = $L("`");
1715
- var $L97 = $L("abstract");
1716
- var $L98 = $L("as");
1717
- var $L99 = $L("@");
1718
- var $L100 = $L("@@");
1719
- var $L101 = $L("async");
1720
- var $L102 = $L("await");
1721
- var $L103 = $L("by");
1722
- var $L104 = $L("case");
1723
- var $L105 = $L("catch");
1724
- var $L106 = $L("class");
1725
- var $L107 = $L(")");
1726
- var $L108 = $L("#{");
1727
- var $L109 = $L(":");
1628
+ var $L20 = $L("return.value");
1629
+ var $L21 = $L(",");
1630
+ var $L22 = $L("->");
1631
+ var $L23 = $L("}");
1632
+ var $L24 = $L("null");
1633
+ var $L25 = $L("true");
1634
+ var $L26 = $L("false");
1635
+ var $L27 = $L("yes");
1636
+ var $L28 = $L("on");
1637
+ var $L29 = $L("no");
1638
+ var $L30 = $L("off");
1639
+ var $L31 = $L(">");
1640
+ var $L32 = $L("]");
1641
+ var $L33 = $L("**=");
1642
+ var $L34 = $L("*=");
1643
+ var $L35 = $L("/=");
1644
+ var $L36 = $L("%=");
1645
+ var $L37 = $L("+=");
1646
+ var $L38 = $L("-=");
1647
+ var $L39 = $L("<<=");
1648
+ var $L40 = $L(">>>=");
1649
+ var $L41 = $L(">>=");
1650
+ var $L42 = $L("&&=");
1651
+ var $L43 = $L("&=");
1652
+ var $L44 = $L("^=");
1653
+ var $L45 = $L("||=");
1654
+ var $L46 = $L("|=");
1655
+ var $L47 = $L("??=");
1656
+ var $L48 = $L("?=");
1657
+ var $L49 = $L("and=");
1658
+ var $L50 = $L("or=");
1659
+ var $L51 = $L("not");
1660
+ var $L52 = $L("**");
1661
+ var $L53 = $L("*");
1662
+ var $L54 = $L("/");
1663
+ var $L55 = $L("%%");
1664
+ var $L56 = $L("%");
1665
+ var $L57 = $L("+");
1666
+ var $L58 = $L("<=");
1667
+ var $L59 = $L(">=");
1668
+ var $L60 = $L("<?");
1669
+ var $L61 = $L("!<?");
1670
+ var $L62 = $L("<<");
1671
+ var $L63 = $L(">>>");
1672
+ var $L64 = $L(">>");
1673
+ var $L65 = $L("!==");
1674
+ var $L66 = $L("!=");
1675
+ var $L67 = $L("isnt");
1676
+ var $L68 = $L("===");
1677
+ var $L69 = $L("==");
1678
+ var $L70 = $L("and");
1679
+ var $L71 = $L("&&");
1680
+ var $L72 = $L("of");
1681
+ var $L73 = $L("or");
1682
+ var $L74 = $L("||");
1683
+ var $L75 = $L("^^");
1684
+ var $L76 = $L("xor");
1685
+ var $L77 = $L("xnor");
1686
+ var $L78 = $L("??");
1687
+ var $L79 = $L("instanceof");
1688
+ var $L80 = $L("in");
1689
+ var $L81 = $L("is");
1690
+ var $L82 = $L("&");
1691
+ var $L83 = $L("|");
1692
+ var $L84 = $L(";");
1693
+ var $L85 = $L("$:");
1694
+ var $L86 = $L("own");
1695
+ var $L87 = $L("break");
1696
+ var $L88 = $L("continue");
1697
+ var $L89 = $L("debugger");
1698
+ var $L90 = $L("assert");
1699
+ var $L91 = $L(":=");
1700
+ var $L92 = $L(".=");
1701
+ var $L93 = $L("/*");
1702
+ var $L94 = $L("*/");
1703
+ var $L95 = $L("\\");
1704
+ var $L96 = $L("[");
1705
+ var $L97 = $L("`");
1706
+ var $L98 = $L("abstract");
1707
+ var $L99 = $L("as");
1708
+ var $L100 = $L("@");
1709
+ var $L101 = $L("@@");
1710
+ var $L102 = $L("async");
1711
+ var $L103 = $L("await");
1712
+ var $L104 = $L("by");
1713
+ var $L105 = $L("case");
1714
+ var $L106 = $L("catch");
1715
+ var $L107 = $L("class");
1716
+ var $L108 = $L(")");
1717
+ var $L109 = $L("#{");
1728
1718
  var $L110 = $L("declare");
1729
1719
  var $L111 = $L("default");
1730
1720
  var $L112 = $L("delete");
@@ -3118,9 +3108,9 @@ ${input.slice(result.pos)}
3118
3108
  return result;
3119
3109
  }
3120
3110
  }
3121
- var FatArrow$0 = $TS($S(__, $EXPECT($L8, fail, 'FatArrow "=>"')), function($skip, $loc, $0, $1, $2) {
3111
+ var FatArrow$0 = $TS($S($E(_), $EXPECT($L8, fail, 'FatArrow "=>"')), function($skip, $loc, $0, $1, $2) {
3122
3112
  var ws = $1;
3123
- if (!ws.length)
3113
+ if (!ws)
3124
3114
  return " =>";
3125
3115
  return $0;
3126
3116
  });
@@ -3472,7 +3462,7 @@ ${input.slice(result.pos)}
3472
3462
  return result;
3473
3463
  }
3474
3464
  }
3475
- var ClassExpression$0 = $S($E(Decorators), $E($S(Abstract, __)), Class, $E(ClassBinding), $E(ClassHeritage), ClassBody);
3465
+ var ClassExpression$0 = $S($E(Decorators), $E($S(Abstract, __)), Class, $N($EXPECT($L10, fail, 'ClassExpression ":"')), $E(ClassBinding), $E(ClassHeritage), ClassBody);
3476
3466
  function ClassExpression(state) {
3477
3467
  let eventData;
3478
3468
  if (state.events) {
@@ -3671,7 +3661,7 @@ ${input.slice(result.pos)}
3671
3661
  }
3672
3662
  return { children };
3673
3663
  });
3674
- var ImplementsToken$1 = $TS($S(__, $EXPECT($L10, fail, 'ImplementsToken "implements"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
3664
+ var ImplementsToken$1 = $TS($S(__, $EXPECT($L11, fail, 'ImplementsToken "implements"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
3675
3665
  $2 = { $loc, token: $2 };
3676
3666
  return [$1, $2];
3677
3667
  });
@@ -3697,7 +3687,7 @@ ${input.slice(result.pos)}
3697
3687
  return result;
3698
3688
  }
3699
3689
  }
3700
- var ImplementsShorthand$0 = $TV($EXPECT($L11, fail, 'ImplementsShorthand "<:"'), function($skip, $loc, $0, $1) {
3690
+ var ImplementsShorthand$0 = $TV($EXPECT($L12, fail, 'ImplementsShorthand "<:"'), function($skip, $loc, $0, $1) {
3701
3691
  return { $loc, token: "implements " };
3702
3692
  });
3703
3693
  function ImplementsShorthand(state) {
@@ -4077,7 +4067,7 @@ ${input.slice(result.pos)}
4077
4067
  }
4078
4068
  }
4079
4069
  var ThisLiteral$0 = This;
4080
- var ThisLiteral$1 = $TS($S(AtThis, $TEXT($S($E($EXPECT($L12, fail, 'ThisLiteral "#"')), IdentifierName))), function($skip, $loc, $0, $1, $2) {
4070
+ var ThisLiteral$1 = $TS($S(AtThis, $TEXT($S($E($EXPECT($L13, fail, 'ThisLiteral "#"')), IdentifierName))), function($skip, $loc, $0, $1, $2) {
4081
4071
  var at = $1;
4082
4072
  var id = $2;
4083
4073
  return [at, ".", id];
@@ -4131,11 +4121,8 @@ ${input.slice(result.pos)}
4131
4121
  return result;
4132
4122
  }
4133
4123
  }
4134
- var LeftHandSideExpression$0 = $TS($S($Q($S(New, $N($EXPECT($L5, fail, 'LeftHandSideExpression "."')), __)), CallExpression), function($skip, $loc, $0, $1, $2) {
4135
- if ($1.length)
4136
- return $0;
4137
- return $2;
4138
- });
4124
+ var LeftHandSideExpression$0 = $S($P($S(New, $N($C($EXPECT($L5, fail, 'LeftHandSideExpression "."'), $EXPECT($L10, fail, 'LeftHandSideExpression ":"'))), __)), CallExpression, $E(TypeArguments));
4125
+ var LeftHandSideExpression$1 = CallExpression;
4139
4126
  function LeftHandSideExpression(state) {
4140
4127
  let eventData;
4141
4128
  if (state.events) {
@@ -4147,33 +4134,32 @@ ${input.slice(result.pos)}
4147
4134
  }
4148
4135
  }
4149
4136
  if (state.tokenize) {
4150
- const result = $TOKEN("LeftHandSideExpression", state, LeftHandSideExpression$0(state));
4137
+ const result = $TOKEN("LeftHandSideExpression", state, LeftHandSideExpression$0(state) || LeftHandSideExpression$1(state));
4151
4138
  if (state.events)
4152
4139
  state.events.exit?.("LeftHandSideExpression", state, result, eventData);
4153
4140
  return result;
4154
4141
  } else {
4155
- const result = LeftHandSideExpression$0(state);
4142
+ const result = LeftHandSideExpression$0(state) || LeftHandSideExpression$1(state);
4156
4143
  if (state.events)
4157
4144
  state.events.exit?.("LeftHandSideExpression", state, result, eventData);
4158
4145
  return result;
4159
4146
  }
4160
4147
  }
4161
- var CallExpression$0 = $TS($S($EXPECT($L13, fail, 'CallExpression "super"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
4148
+ var CallExpression$0 = $TS($S($EXPECT($L14, fail, 'CallExpression "super"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
4162
4149
  var rest = $3;
4163
4150
  return module2.processGlob({
4164
4151
  type: "CallExpression",
4165
4152
  children: [$1, ...$2, ...rest.flat()]
4166
4153
  });
4167
4154
  });
4168
- var CallExpression$1 = $TS($S($EXPECT($L14, fail, 'CallExpression "import"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
4155
+ var CallExpression$1 = $TS($S($EXPECT($L15, fail, 'CallExpression "import"'), ArgumentsWithTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
4169
4156
  var rest = $3;
4170
4157
  return module2.processGlob({
4171
4158
  type: "CallExpression",
4172
4159
  children: [$1, ...$2, ...rest.flat()]
4173
4160
  });
4174
4161
  });
4175
- var CallExpression$2 = ReturnValue;
4176
- var CallExpression$3 = $TS($S(MemberExpression, AllowedTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
4162
+ var CallExpression$2 = $TS($S(MemberExpression, AllowedTrailingMemberExpressions, $Q(CallExpressionRest)), function($skip, $loc, $0, $1, $2, $3) {
4177
4163
  var member = $1;
4178
4164
  var trailing = $2;
4179
4165
  var rest = $3;
@@ -4197,69 +4183,17 @@ ${input.slice(result.pos)}
4197
4183
  }
4198
4184
  }
4199
4185
  if (state.tokenize) {
4200
- const result = $TOKEN("CallExpression", state, CallExpression$0(state) || CallExpression$1(state) || CallExpression$2(state) || CallExpression$3(state));
4186
+ const result = $TOKEN("CallExpression", state, CallExpression$0(state) || CallExpression$1(state) || CallExpression$2(state));
4201
4187
  if (state.events)
4202
4188
  state.events.exit?.("CallExpression", state, result, eventData);
4203
4189
  return result;
4204
4190
  } else {
4205
- const result = CallExpression$0(state) || CallExpression$1(state) || CallExpression$2(state) || CallExpression$3(state);
4191
+ const result = CallExpression$0(state) || CallExpression$1(state) || CallExpression$2(state);
4206
4192
  if (state.events)
4207
4193
  state.events.exit?.("CallExpression", state, result, eventData);
4208
4194
  return result;
4209
4195
  }
4210
4196
  }
4211
- var ReturnValue$0 = $TV($C($S($EXPECT($L15, fail, 'ReturnValue "return.value"'), NonIdContinue), $S(Return, $Y(AfterReturnShorthand))), function($skip, $loc, $0, $1) {
4212
- return { type: "ReturnValue", children: [$1[0]] };
4213
- });
4214
- function ReturnValue(state) {
4215
- let eventData;
4216
- if (state.events) {
4217
- const result = state.events.enter?.("ReturnValue", state);
4218
- if (result) {
4219
- if (result.cache)
4220
- return result.cache;
4221
- eventData = result.data;
4222
- }
4223
- }
4224
- if (state.tokenize) {
4225
- const result = $TOKEN("ReturnValue", state, ReturnValue$0(state));
4226
- if (state.events)
4227
- state.events.exit?.("ReturnValue", state, result, eventData);
4228
- return result;
4229
- } else {
4230
- const result = ReturnValue$0(state);
4231
- if (state.events)
4232
- state.events.exit?.("ReturnValue", state, result, eventData);
4233
- return result;
4234
- }
4235
- }
4236
- var AfterReturnShorthand$0 = WAssignmentOp;
4237
- var AfterReturnShorthand$1 = UpdateExpressionSymbol;
4238
- var AfterReturnShorthand$2 = TypeSuffix;
4239
- var AfterReturnShorthand$3 = $S(__, LetAssignment);
4240
- var AfterReturnShorthand$4 = $S(__, ConstAssignment);
4241
- function AfterReturnShorthand(state) {
4242
- let eventData;
4243
- if (state.events) {
4244
- const result = state.events.enter?.("AfterReturnShorthand", state);
4245
- if (result) {
4246
- if (result.cache)
4247
- return result.cache;
4248
- eventData = result.data;
4249
- }
4250
- }
4251
- if (state.tokenize) {
4252
- const result = $TOKEN("AfterReturnShorthand", state, AfterReturnShorthand$0(state) || AfterReturnShorthand$1(state) || AfterReturnShorthand$2(state) || AfterReturnShorthand$3(state) || AfterReturnShorthand$4(state));
4253
- if (state.events)
4254
- state.events.exit?.("AfterReturnShorthand", state, result, eventData);
4255
- return result;
4256
- } else {
4257
- const result = AfterReturnShorthand$0(state) || AfterReturnShorthand$1(state) || AfterReturnShorthand$2(state) || AfterReturnShorthand$3(state) || AfterReturnShorthand$4(state);
4258
- if (state.events)
4259
- state.events.exit?.("AfterReturnShorthand", state, result, eventData);
4260
- return result;
4261
- }
4262
- }
4263
4197
  var CallExpressionRest$0 = MemberExpressionRest;
4264
4198
  var CallExpressionRest$1 = $TV($C(TemplateLiteral, StringLiteral), function($skip, $loc, $0, $1) {
4265
4199
  if ($1.type === "StringLiteral") {
@@ -4670,8 +4604,8 @@ ${input.slice(result.pos)}
4670
4604
  return result;
4671
4605
  }
4672
4606
  }
4673
- var SuperProperty$0 = $S($EXPECT($L13, fail, 'SuperProperty "super"'), MemberBracketContent);
4674
- var SuperProperty$1 = $S($EXPECT($L13, fail, 'SuperProperty "super"'), $N($C(QuestionMark, NonNullAssertion)), PropertyAccess);
4607
+ var SuperProperty$0 = $S($EXPECT($L14, fail, 'SuperProperty "super"'), MemberBracketContent);
4608
+ var SuperProperty$1 = $S($EXPECT($L14, fail, 'SuperProperty "super"'), $N($C(QuestionMark, NonNullAssertion)), PropertyAccess);
4675
4609
  function SuperProperty(state) {
4676
4610
  let eventData;
4677
4611
  if (state.events) {
@@ -4698,6 +4632,7 @@ ${input.slice(result.pos)}
4698
4632
  var MetaProperty$1 = $TS($S($EXPECT($L19, fail, 'MetaProperty "import.meta"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
4699
4633
  return { $loc, token: $1 };
4700
4634
  });
4635
+ var MetaProperty$2 = ReturnValue;
4701
4636
  function MetaProperty(state) {
4702
4637
  let eventData;
4703
4638
  if (state.events) {
@@ -4709,22 +4644,77 @@ ${input.slice(result.pos)}
4709
4644
  }
4710
4645
  }
4711
4646
  if (state.tokenize) {
4712
- const result = $TOKEN("MetaProperty", state, MetaProperty$0(state) || MetaProperty$1(state));
4647
+ const result = $TOKEN("MetaProperty", state, MetaProperty$0(state) || MetaProperty$1(state) || MetaProperty$2(state));
4713
4648
  if (state.events)
4714
4649
  state.events.exit?.("MetaProperty", state, result, eventData);
4715
4650
  return result;
4716
4651
  } else {
4717
- const result = MetaProperty$0(state) || MetaProperty$1(state);
4652
+ const result = MetaProperty$0(state) || MetaProperty$1(state) || MetaProperty$2(state);
4718
4653
  if (state.events)
4719
4654
  state.events.exit?.("MetaProperty", state, result, eventData);
4720
4655
  return result;
4721
4656
  }
4722
4657
  }
4658
+ var ReturnValue$0 = $TV($C($S($EXPECT($L20, fail, 'ReturnValue "return.value"'), NonIdContinue), $S(Return, $Y(AfterReturnShorthand))), function($skip, $loc, $0, $1) {
4659
+ return { type: "ReturnValue", children: [$1[0]] };
4660
+ });
4661
+ function ReturnValue(state) {
4662
+ let eventData;
4663
+ if (state.events) {
4664
+ const result = state.events.enter?.("ReturnValue", state);
4665
+ if (result) {
4666
+ if (result.cache)
4667
+ return result.cache;
4668
+ eventData = result.data;
4669
+ }
4670
+ }
4671
+ if (state.tokenize) {
4672
+ const result = $TOKEN("ReturnValue", state, ReturnValue$0(state));
4673
+ if (state.events)
4674
+ state.events.exit?.("ReturnValue", state, result, eventData);
4675
+ return result;
4676
+ } else {
4677
+ const result = ReturnValue$0(state);
4678
+ if (state.events)
4679
+ state.events.exit?.("ReturnValue", state, result, eventData);
4680
+ return result;
4681
+ }
4682
+ }
4683
+ var AfterReturnShorthand$0 = WAssignmentOp;
4684
+ var AfterReturnShorthand$1 = UpdateExpressionSymbol;
4685
+ var AfterReturnShorthand$2 = TypeSuffix;
4686
+ var AfterReturnShorthand$3 = $S(__, LetAssignment);
4687
+ var AfterReturnShorthand$4 = $S(__, ConstAssignment);
4688
+ function AfterReturnShorthand(state) {
4689
+ let eventData;
4690
+ if (state.events) {
4691
+ const result = state.events.enter?.("AfterReturnShorthand", state);
4692
+ if (result) {
4693
+ if (result.cache)
4694
+ return result.cache;
4695
+ eventData = result.data;
4696
+ }
4697
+ }
4698
+ if (state.tokenize) {
4699
+ const result = $TOKEN("AfterReturnShorthand", state, AfterReturnShorthand$0(state) || AfterReturnShorthand$1(state) || AfterReturnShorthand$2(state) || AfterReturnShorthand$3(state) || AfterReturnShorthand$4(state));
4700
+ if (state.events)
4701
+ state.events.exit?.("AfterReturnShorthand", state, result, eventData);
4702
+ return result;
4703
+ } else {
4704
+ const result = AfterReturnShorthand$0(state) || AfterReturnShorthand$1(state) || AfterReturnShorthand$2(state) || AfterReturnShorthand$3(state) || AfterReturnShorthand$4(state);
4705
+ if (state.events)
4706
+ state.events.exit?.("AfterReturnShorthand", state, result, eventData);
4707
+ return result;
4708
+ }
4709
+ }
4723
4710
  var Parameters$0 = NonEmptyParameters;
4724
- var Parameters$1 = $TV($EXPECT($L0, fail, 'Parameters ""'), function($skip, $loc, $0, $1) {
4711
+ var Parameters$1 = $TS($S($E(TypeParameters), Loc), function($skip, $loc, $0, $1, $2) {
4712
+ var tp = $1;
4713
+ var p = $2;
4725
4714
  return {
4726
4715
  type: "Parameters",
4727
- children: [{ $loc, token: "()" }],
4716
+ children: [tp, { $loc: p.$loc, token: "()" }],
4717
+ tp,
4728
4718
  names: [],
4729
4719
  implicit: true
4730
4720
  };
@@ -4770,9 +4760,8 @@ ${input.slice(result.pos)}
4770
4760
  }
4771
4761
  let blockPrefix;
4772
4762
  if (after.length) {
4773
- const spliceRef = module2.getRef("splice");
4774
4763
  blockPrefix = {
4775
- children: ["[", insertTrimmingSpace(after, ""), "] = ", spliceRef, ".call(", restIdentifier, ", -", after.length.toString(), ")"],
4764
+ children: ["[", insertTrimmingSpace(after, ""), "] = ", restIdentifier, ".splice(-", after.length.toString(), ")"],
4776
4765
  names: after.flatMap((p) => p.names)
4777
4766
  };
4778
4767
  }
@@ -5505,7 +5494,7 @@ ${input.slice(result.pos)}
5505
5494
  children: $0
5506
5495
  };
5507
5496
  });
5508
- var BindingElement$2 = $TV($Y($S($E(_), $EXPECT($L20, fail, 'BindingElement ","'))), function($skip, $loc, $0, $1) {
5497
+ var BindingElement$2 = $TV($Y($S($E(_), $EXPECT($L21, fail, 'BindingElement ","'))), function($skip, $loc, $0, $1) {
5509
5498
  return {
5510
5499
  children: [{
5511
5500
  type: "ElisionElement",
@@ -6054,7 +6043,7 @@ ${input.slice(result.pos)}
6054
6043
  children: [ws, binding]
6055
6044
  };
6056
6045
  });
6057
- var MatchingElement$3 = $TV($Y($S($E(_), $EXPECT($L20, fail, 'MatchingElement ","'))), function($skip, $loc, $0, $1) {
6046
+ var MatchingElement$3 = $TV($Y($S($E(_), $EXPECT($L21, fail, 'MatchingElement ","'))), function($skip, $loc, $0, $1) {
6058
6047
  return {
6059
6048
  children: [{
6060
6049
  type: "ElisionElement",
@@ -6156,7 +6145,7 @@ ${input.slice(result.pos)}
6156
6145
  async,
6157
6146
  generator,
6158
6147
  block: null,
6159
- children: !parameters.implicit ? $0 : [async, func, generator, wid, parameters, w, suffix]
6148
+ children: !parameters.implicit ? [async, func, generator, wid, w, parameters, suffix] : [async, func, generator, wid, parameters, w, suffix]
6160
6149
  };
6161
6150
  });
6162
6151
  function FunctionSignature(state) {
@@ -6469,7 +6458,7 @@ ${input.slice(result.pos)}
6469
6458
  return result;
6470
6459
  }
6471
6460
  }
6472
- var ThinArrowFunction$0 = $TS($S($E($S(Async, _)), Parameters, $E(ReturnTypeSuffix), $Q(_), Arrow, BracedOrEmptyBlock), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
6461
+ var ThinArrowFunction$0 = $TS($S($E($S(Async, _)), Parameters, $E(ReturnTypeSuffix), $E(_), Arrow, BracedOrEmptyBlock), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
6473
6462
  var async = $1;
6474
6463
  var parameters = $2;
6475
6464
  var suffix = $3;
@@ -6523,7 +6512,7 @@ ${input.slice(result.pos)}
6523
6512
  return result;
6524
6513
  }
6525
6514
  }
6526
- var Arrow$0 = $TV($EXPECT($L21, fail, 'Arrow "->"'), function($skip, $loc, $0, $1) {
6515
+ var Arrow$0 = $TV($EXPECT($L22, fail, 'Arrow "->"'), function($skip, $loc, $0, $1) {
6527
6516
  return { $loc, token: $1 };
6528
6517
  });
6529
6518
  function Arrow(state) {
@@ -6989,7 +6978,7 @@ ${input.slice(result.pos)}
6989
6978
  children: [$1, expressions]
6990
6979
  };
6991
6980
  });
6992
- var BracedContent$2 = $TV($Y($S(__, $EXPECT($L22, fail, 'BracedContent "}"'))), function($skip, $loc, $0, $1) {
6981
+ var BracedContent$2 = $TV($Y($S(__, $EXPECT($L23, fail, 'BracedContent "}"'))), function($skip, $loc, $0, $1) {
6993
6982
  const expressions = [];
6994
6983
  return {
6995
6984
  type: "BlockStatement",
@@ -7170,7 +7159,7 @@ ${input.slice(result.pos)}
7170
7159
  return result;
7171
7160
  }
7172
7161
  }
7173
- var NullLiteral$0 = $TS($S($EXPECT($L23, fail, 'NullLiteral "null"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
7162
+ var NullLiteral$0 = $TS($S($EXPECT($L24, fail, 'NullLiteral "null"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
7174
7163
  return { $loc, token: $1 };
7175
7164
  });
7176
7165
  function NullLiteral(state) {
@@ -7198,7 +7187,7 @@ ${input.slice(result.pos)}
7198
7187
  var BooleanLiteral$0 = $T($S(CoffeeBooleansEnabled, CoffeeScriptBooleanLiteral), function(value) {
7199
7188
  return value[1];
7200
7189
  });
7201
- var BooleanLiteral$1 = $TS($S($C($EXPECT($L24, fail, 'BooleanLiteral "true"'), $EXPECT($L25, fail, 'BooleanLiteral "false"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
7190
+ var BooleanLiteral$1 = $TS($S($C($EXPECT($L25, fail, 'BooleanLiteral "true"'), $EXPECT($L26, fail, 'BooleanLiteral "false"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
7202
7191
  return { $loc, token: $1 };
7203
7192
  });
7204
7193
  function BooleanLiteral(state) {
@@ -7223,10 +7212,10 @@ ${input.slice(result.pos)}
7223
7212
  return result;
7224
7213
  }
7225
7214
  }
7226
- var CoffeeScriptBooleanLiteral$0 = $TS($S($C($EXPECT($L26, fail, 'CoffeeScriptBooleanLiteral "yes"'), $EXPECT($L27, fail, 'CoffeeScriptBooleanLiteral "on"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
7215
+ var CoffeeScriptBooleanLiteral$0 = $TS($S($C($EXPECT($L27, fail, 'CoffeeScriptBooleanLiteral "yes"'), $EXPECT($L28, fail, 'CoffeeScriptBooleanLiteral "on"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
7227
7216
  return { $loc, token: "true" };
7228
7217
  });
7229
- var CoffeeScriptBooleanLiteral$1 = $TS($S($C($EXPECT($L28, fail, 'CoffeeScriptBooleanLiteral "no"'), $EXPECT($L29, fail, 'CoffeeScriptBooleanLiteral "off"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
7218
+ var CoffeeScriptBooleanLiteral$1 = $TS($S($C($EXPECT($L29, fail, 'CoffeeScriptBooleanLiteral "no"'), $EXPECT($L30, fail, 'CoffeeScriptBooleanLiteral "off"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
7230
7219
  return { $loc, token: "false" };
7231
7220
  });
7232
7221
  function CoffeeScriptBooleanLiteral(state) {
@@ -7332,7 +7321,7 @@ ${input.slice(result.pos)}
7332
7321
  return result;
7333
7322
  }
7334
7323
  }
7335
- var UpcomingAssignment$0 = $Y($S(__, $EXPECT($L2, fail, 'UpcomingAssignment "="'), $N($C($EXPECT($L2, fail, 'UpcomingAssignment "="'), $EXPECT($L30, fail, 'UpcomingAssignment ">"')))));
7324
+ var UpcomingAssignment$0 = $Y($S(__, $EXPECT($L2, fail, 'UpcomingAssignment "="'), $N($C($EXPECT($L2, fail, 'UpcomingAssignment "="'), $EXPECT($L31, fail, 'UpcomingAssignment ">"')))));
7336
7325
  function UpcomingAssignment(state) {
7337
7326
  let eventData;
7338
7327
  if (state.events) {
@@ -7598,7 +7587,7 @@ ${input.slice(result.pos)}
7598
7587
  }
7599
7588
  }
7600
7589
  var ArrayElementDelimiter$0 = $S(__, Comma);
7601
- var ArrayElementDelimiter$1 = $Y($S(__, $EXPECT($L31, fail, 'ArrayElementDelimiter "]"')));
7590
+ var ArrayElementDelimiter$1 = $Y($S(__, $EXPECT($L32, fail, 'ArrayElementDelimiter "]"')));
7602
7591
  var ArrayElementDelimiter$2 = $T($S($Y(EOS), InsertComma), function(value) {
7603
7592
  return value[1];
7604
7593
  });
@@ -8078,7 +8067,7 @@ ${input.slice(result.pos)}
8078
8067
  }
8079
8068
  }
8080
8069
  var ObjectPropertyDelimiter$0 = $S($E(_), Comma);
8081
- var ObjectPropertyDelimiter$1 = $Y($S(__, $EXPECT($L22, fail, 'ObjectPropertyDelimiter "}"')));
8070
+ var ObjectPropertyDelimiter$1 = $Y($S(__, $EXPECT($L23, fail, 'ObjectPropertyDelimiter "}"')));
8082
8071
  var ObjectPropertyDelimiter$2 = $T($S($Y(EOS), InsertComma), function(value) {
8083
8072
  return value[1];
8084
8073
  });
@@ -8541,7 +8530,7 @@ ${input.slice(result.pos)}
8541
8530
  return result;
8542
8531
  }
8543
8532
  }
8544
- var MethodModifier$0 = $TS($S(GetOrSet, $E(_)), function($skip, $loc, $0, $1, $2) {
8533
+ var MethodModifier$0 = $TS($S(GetOrSet, $E(_), $Y(ClassElementName)), function($skip, $loc, $0, $1, $2, $3) {
8545
8534
  var kind = $1;
8546
8535
  return {
8547
8536
  type: "MethodModifier",
@@ -8669,7 +8658,7 @@ ${input.slice(result.pos)}
8669
8658
  return result;
8670
8659
  }
8671
8660
  }
8672
- var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($L12, fail, 'PrivateIdentifier "#"'), IdentifierName)), function($skip, $loc, $0, $1) {
8661
+ var PrivateIdentifier$0 = $TV($TEXT($S($EXPECT($L13, fail, 'PrivateIdentifier "#"'), IdentifierName)), function($skip, $loc, $0, $1) {
8673
8662
  return {
8674
8663
  type: "Identifier",
8675
8664
  name: $0,
@@ -8800,22 +8789,22 @@ ${input.slice(result.pos)}
8800
8789
  return result;
8801
8790
  }
8802
8791
  }
8803
- var AssignmentOpSymbol$0 = $EXPECT($L32, fail, 'AssignmentOpSymbol "**="');
8804
- var AssignmentOpSymbol$1 = $EXPECT($L33, fail, 'AssignmentOpSymbol "*="');
8805
- var AssignmentOpSymbol$2 = $EXPECT($L34, fail, 'AssignmentOpSymbol "/="');
8806
- var AssignmentOpSymbol$3 = $EXPECT($L35, fail, 'AssignmentOpSymbol "%="');
8807
- var AssignmentOpSymbol$4 = $EXPECT($L36, fail, 'AssignmentOpSymbol "+="');
8808
- var AssignmentOpSymbol$5 = $EXPECT($L37, fail, 'AssignmentOpSymbol "-="');
8809
- var AssignmentOpSymbol$6 = $EXPECT($L38, fail, 'AssignmentOpSymbol "<<="');
8810
- var AssignmentOpSymbol$7 = $EXPECT($L39, fail, 'AssignmentOpSymbol ">>>="');
8811
- var AssignmentOpSymbol$8 = $EXPECT($L40, fail, 'AssignmentOpSymbol ">>="');
8812
- var AssignmentOpSymbol$9 = $EXPECT($L41, fail, 'AssignmentOpSymbol "&&="');
8813
- var AssignmentOpSymbol$10 = $EXPECT($L42, fail, 'AssignmentOpSymbol "&="');
8814
- var AssignmentOpSymbol$11 = $EXPECT($L43, fail, 'AssignmentOpSymbol "^="');
8815
- var AssignmentOpSymbol$12 = $EXPECT($L44, fail, 'AssignmentOpSymbol "||="');
8816
- var AssignmentOpSymbol$13 = $EXPECT($L45, fail, 'AssignmentOpSymbol "|="');
8817
- var AssignmentOpSymbol$14 = $EXPECT($L46, fail, 'AssignmentOpSymbol "??="');
8818
- var AssignmentOpSymbol$15 = $T($EXPECT($L47, fail, 'AssignmentOpSymbol "?="'), function(value) {
8792
+ var AssignmentOpSymbol$0 = $EXPECT($L33, fail, 'AssignmentOpSymbol "**="');
8793
+ var AssignmentOpSymbol$1 = $EXPECT($L34, fail, 'AssignmentOpSymbol "*="');
8794
+ var AssignmentOpSymbol$2 = $EXPECT($L35, fail, 'AssignmentOpSymbol "/="');
8795
+ var AssignmentOpSymbol$3 = $EXPECT($L36, fail, 'AssignmentOpSymbol "%="');
8796
+ var AssignmentOpSymbol$4 = $EXPECT($L37, fail, 'AssignmentOpSymbol "+="');
8797
+ var AssignmentOpSymbol$5 = $EXPECT($L38, fail, 'AssignmentOpSymbol "-="');
8798
+ var AssignmentOpSymbol$6 = $EXPECT($L39, fail, 'AssignmentOpSymbol "<<="');
8799
+ var AssignmentOpSymbol$7 = $EXPECT($L40, fail, 'AssignmentOpSymbol ">>>="');
8800
+ var AssignmentOpSymbol$8 = $EXPECT($L41, fail, 'AssignmentOpSymbol ">>="');
8801
+ var AssignmentOpSymbol$9 = $EXPECT($L42, fail, 'AssignmentOpSymbol "&&="');
8802
+ var AssignmentOpSymbol$10 = $EXPECT($L43, fail, 'AssignmentOpSymbol "&="');
8803
+ var AssignmentOpSymbol$11 = $EXPECT($L44, fail, 'AssignmentOpSymbol "^="');
8804
+ var AssignmentOpSymbol$12 = $EXPECT($L45, fail, 'AssignmentOpSymbol "||="');
8805
+ var AssignmentOpSymbol$13 = $EXPECT($L46, fail, 'AssignmentOpSymbol "|="');
8806
+ var AssignmentOpSymbol$14 = $EXPECT($L47, fail, 'AssignmentOpSymbol "??="');
8807
+ var AssignmentOpSymbol$15 = $T($EXPECT($L48, fail, 'AssignmentOpSymbol "?="'), function(value) {
8819
8808
  return "??=";
8820
8809
  });
8821
8810
  var AssignmentOpSymbol$16 = $T($S($EXPECT($L2, fail, 'AssignmentOpSymbol "="'), $N($EXPECT($L2, fail, 'AssignmentOpSymbol "="'))), function(value) {
@@ -8846,10 +8835,10 @@ ${input.slice(result.pos)}
8846
8835
  return result;
8847
8836
  }
8848
8837
  }
8849
- var CoffeeWordAssignmentOp$0 = $T($EXPECT($L48, fail, 'CoffeeWordAssignmentOp "and="'), function(value) {
8838
+ var CoffeeWordAssignmentOp$0 = $T($EXPECT($L49, fail, 'CoffeeWordAssignmentOp "and="'), function(value) {
8850
8839
  return "&&=";
8851
8840
  });
8852
- var CoffeeWordAssignmentOp$1 = $T($EXPECT($L49, fail, 'CoffeeWordAssignmentOp "or="'), function(value) {
8841
+ var CoffeeWordAssignmentOp$1 = $T($EXPECT($L50, fail, 'CoffeeWordAssignmentOp "or="'), function(value) {
8853
8842
  return "||=";
8854
8843
  });
8855
8844
  function CoffeeWordAssignmentOp(state) {
@@ -8888,7 +8877,7 @@ ${input.slice(result.pos)}
8888
8877
  special: true
8889
8878
  };
8890
8879
  });
8891
- var BinaryOp$2 = $TS($S($EXPECT($L50, fail, 'BinaryOp "not"'), NonIdContinue, __, Identifier), function($skip, $loc, $0, $1, $2, $3, $4) {
8880
+ var BinaryOp$2 = $TS($S($EXPECT($L51, fail, 'BinaryOp "not"'), NonIdContinue, __, Identifier), function($skip, $loc, $0, $1, $2, $3, $4) {
8892
8881
  var id = $4;
8893
8882
  if (!module2.operators.has(id.name))
8894
8883
  return $skip;
@@ -8920,21 +8909,21 @@ ${input.slice(result.pos)}
8920
8909
  return result;
8921
8910
  }
8922
8911
  }
8923
- var BinaryOpSymbol$0 = $EXPECT($L51, fail, 'BinaryOpSymbol "**"');
8924
- var BinaryOpSymbol$1 = $EXPECT($L52, fail, 'BinaryOpSymbol "*"');
8925
- var BinaryOpSymbol$2 = $EXPECT($L53, fail, 'BinaryOpSymbol "/"');
8926
- var BinaryOpSymbol$3 = $TV($EXPECT($L54, fail, 'BinaryOpSymbol "%%"'), function($skip, $loc, $0, $1) {
8912
+ var BinaryOpSymbol$0 = $EXPECT($L52, fail, 'BinaryOpSymbol "**"');
8913
+ var BinaryOpSymbol$1 = $EXPECT($L53, fail, 'BinaryOpSymbol "*"');
8914
+ var BinaryOpSymbol$2 = $EXPECT($L54, fail, 'BinaryOpSymbol "/"');
8915
+ var BinaryOpSymbol$3 = $TV($EXPECT($L55, fail, 'BinaryOpSymbol "%%"'), function($skip, $loc, $0, $1) {
8927
8916
  return {
8928
8917
  call: module2.getRef("modulo"),
8929
8918
  special: true
8930
8919
  };
8931
8920
  });
8932
- var BinaryOpSymbol$4 = $EXPECT($L55, fail, 'BinaryOpSymbol "%"');
8933
- var BinaryOpSymbol$5 = $EXPECT($L56, fail, 'BinaryOpSymbol "+"');
8921
+ var BinaryOpSymbol$4 = $EXPECT($L56, fail, 'BinaryOpSymbol "%"');
8922
+ var BinaryOpSymbol$5 = $EXPECT($L57, fail, 'BinaryOpSymbol "+"');
8934
8923
  var BinaryOpSymbol$6 = $EXPECT($L18, fail, 'BinaryOpSymbol "-"');
8935
- var BinaryOpSymbol$7 = $EXPECT($L57, fail, 'BinaryOpSymbol "<="');
8936
- var BinaryOpSymbol$8 = $EXPECT($L58, fail, 'BinaryOpSymbol ">="');
8937
- var BinaryOpSymbol$9 = $TV($EXPECT($L59, fail, 'BinaryOpSymbol "<?"'), function($skip, $loc, $0, $1) {
8924
+ var BinaryOpSymbol$7 = $EXPECT($L58, fail, 'BinaryOpSymbol "<="');
8925
+ var BinaryOpSymbol$8 = $EXPECT($L59, fail, 'BinaryOpSymbol ">="');
8926
+ var BinaryOpSymbol$9 = $TV($EXPECT($L60, fail, 'BinaryOpSymbol "<?"'), function($skip, $loc, $0, $1) {
8938
8927
  return {
8939
8928
  $loc,
8940
8929
  token: "instanceof",
@@ -8942,7 +8931,7 @@ ${input.slice(result.pos)}
8942
8931
  special: true
8943
8932
  };
8944
8933
  });
8945
- var BinaryOpSymbol$10 = $TV($EXPECT($L60, fail, 'BinaryOpSymbol "!<?"'), function($skip, $loc, $0, $1) {
8934
+ var BinaryOpSymbol$10 = $TV($EXPECT($L61, fail, 'BinaryOpSymbol "!<?"'), function($skip, $loc, $0, $1) {
8946
8935
  return {
8947
8936
  $loc,
8948
8937
  token: "instanceof",
@@ -8951,58 +8940,58 @@ ${input.slice(result.pos)}
8951
8940
  negated: true
8952
8941
  };
8953
8942
  });
8954
- var BinaryOpSymbol$11 = $EXPECT($L61, fail, 'BinaryOpSymbol "<<"');
8943
+ var BinaryOpSymbol$11 = $EXPECT($L62, fail, 'BinaryOpSymbol "<<"');
8955
8944
  var BinaryOpSymbol$12 = $TR($EXPECT($R7, fail, "BinaryOpSymbol /<(?!\\p{ID_Start}|[_$])/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
8956
8945
  return "<";
8957
8946
  });
8958
- var BinaryOpSymbol$13 = $EXPECT($L62, fail, 'BinaryOpSymbol ">>>"');
8959
- var BinaryOpSymbol$14 = $EXPECT($L63, fail, 'BinaryOpSymbol ">>"');
8960
- var BinaryOpSymbol$15 = $EXPECT($L30, fail, 'BinaryOpSymbol ">"');
8961
- var BinaryOpSymbol$16 = $EXPECT($L64, fail, 'BinaryOpSymbol "!=="');
8962
- var BinaryOpSymbol$17 = $TV($EXPECT($L65, fail, 'BinaryOpSymbol "!="'), function($skip, $loc, $0, $1) {
8947
+ var BinaryOpSymbol$13 = $EXPECT($L63, fail, 'BinaryOpSymbol ">>>"');
8948
+ var BinaryOpSymbol$14 = $EXPECT($L64, fail, 'BinaryOpSymbol ">>"');
8949
+ var BinaryOpSymbol$15 = $EXPECT($L31, fail, 'BinaryOpSymbol ">"');
8950
+ var BinaryOpSymbol$16 = $EXPECT($L65, fail, 'BinaryOpSymbol "!=="');
8951
+ var BinaryOpSymbol$17 = $TV($EXPECT($L66, fail, 'BinaryOpSymbol "!="'), function($skip, $loc, $0, $1) {
8963
8952
  if (module2.config.coffeeEq)
8964
8953
  return "!==";
8965
8954
  return $1;
8966
8955
  });
8967
- var BinaryOpSymbol$18 = $TS($S($EXPECT($L66, fail, 'BinaryOpSymbol "isnt"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
8956
+ var BinaryOpSymbol$18 = $TS($S($EXPECT($L67, fail, 'BinaryOpSymbol "isnt"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
8968
8957
  if (module2.config.coffeeIsnt)
8969
8958
  return "!==";
8970
8959
  return $skip;
8971
8960
  });
8972
- var BinaryOpSymbol$19 = $EXPECT($L67, fail, 'BinaryOpSymbol "==="');
8973
- var BinaryOpSymbol$20 = $TV($EXPECT($L68, fail, 'BinaryOpSymbol "=="'), function($skip, $loc, $0, $1) {
8961
+ var BinaryOpSymbol$19 = $EXPECT($L68, fail, 'BinaryOpSymbol "==="');
8962
+ var BinaryOpSymbol$20 = $TV($EXPECT($L69, fail, 'BinaryOpSymbol "=="'), function($skip, $loc, $0, $1) {
8974
8963
  if (module2.config.coffeeEq)
8975
8964
  return "===";
8976
8965
  return $1;
8977
8966
  });
8978
- var BinaryOpSymbol$21 = $T($S($EXPECT($L69, fail, 'BinaryOpSymbol "and"'), NonIdContinue), function(value) {
8967
+ var BinaryOpSymbol$21 = $T($S($EXPECT($L70, fail, 'BinaryOpSymbol "and"'), NonIdContinue), function(value) {
8979
8968
  return "&&";
8980
8969
  });
8981
- var BinaryOpSymbol$22 = $EXPECT($L70, fail, 'BinaryOpSymbol "&&"');
8982
- var BinaryOpSymbol$23 = $T($S(CoffeeOfEnabled, $EXPECT($L71, fail, 'BinaryOpSymbol "of"'), NonIdContinue), function(value) {
8970
+ var BinaryOpSymbol$22 = $EXPECT($L71, fail, 'BinaryOpSymbol "&&"');
8971
+ var BinaryOpSymbol$23 = $T($S(CoffeeOfEnabled, $EXPECT($L72, fail, 'BinaryOpSymbol "of"'), NonIdContinue), function(value) {
8983
8972
  return "in";
8984
8973
  });
8985
- var BinaryOpSymbol$24 = $T($S($EXPECT($L72, fail, 'BinaryOpSymbol "or"'), NonIdContinue), function(value) {
8974
+ var BinaryOpSymbol$24 = $T($S($EXPECT($L73, fail, 'BinaryOpSymbol "or"'), NonIdContinue), function(value) {
8986
8975
  return "||";
8987
8976
  });
8988
- var BinaryOpSymbol$25 = $EXPECT($L73, fail, 'BinaryOpSymbol "||"');
8989
- var BinaryOpSymbol$26 = $TV($C($EXPECT($L74, fail, 'BinaryOpSymbol "^^"'), $S($EXPECT($L75, fail, 'BinaryOpSymbol "xor"'), NonIdContinue)), function($skip, $loc, $0, $1) {
8977
+ var BinaryOpSymbol$25 = $EXPECT($L74, fail, 'BinaryOpSymbol "||"');
8978
+ var BinaryOpSymbol$26 = $TV($C($EXPECT($L75, fail, 'BinaryOpSymbol "^^"'), $S($EXPECT($L76, fail, 'BinaryOpSymbol "xor"'), NonIdContinue)), function($skip, $loc, $0, $1) {
8990
8979
  return {
8991
8980
  call: module2.getRef("xor"),
8992
8981
  special: true
8993
8982
  };
8994
8983
  });
8995
- var BinaryOpSymbol$27 = $TV($C($EXPECT($R8, fail, "BinaryOpSymbol /!\\^\\^?/"), $S($EXPECT($L76, fail, 'BinaryOpSymbol "xnor"'), NonIdContinue)), function($skip, $loc, $0, $1) {
8984
+ var BinaryOpSymbol$27 = $TV($C($EXPECT($R8, fail, "BinaryOpSymbol /!\\^\\^?/"), $S($EXPECT($L77, fail, 'BinaryOpSymbol "xnor"'), NonIdContinue)), function($skip, $loc, $0, $1) {
8996
8985
  return {
8997
8986
  call: module2.getRef("xnor"),
8998
8987
  special: true
8999
8988
  };
9000
8989
  });
9001
- var BinaryOpSymbol$28 = $EXPECT($L77, fail, 'BinaryOpSymbol "??"');
8990
+ var BinaryOpSymbol$28 = $EXPECT($L78, fail, 'BinaryOpSymbol "??"');
9002
8991
  var BinaryOpSymbol$29 = $T($S(CoffeeBinaryExistentialEnabled, $EXPECT($L4, fail, 'BinaryOpSymbol "?"')), function(value) {
9003
8992
  return "??";
9004
8993
  });
9005
- var BinaryOpSymbol$30 = $TS($S($EXPECT($L78, fail, 'BinaryOpSymbol "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
8994
+ var BinaryOpSymbol$30 = $TS($S($EXPECT($L79, fail, 'BinaryOpSymbol "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9006
8995
  return {
9007
8996
  $loc,
9008
8997
  token: $1,
@@ -9010,7 +8999,7 @@ ${input.slice(result.pos)}
9010
8999
  special: true
9011
9000
  };
9012
9001
  });
9013
- var BinaryOpSymbol$31 = $TS($S($EXPECT($L50, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L78, fail, 'BinaryOpSymbol "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
9002
+ var BinaryOpSymbol$31 = $TS($S($EXPECT($L51, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L79, fail, 'BinaryOpSymbol "instanceof"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
9014
9003
  return {
9015
9004
  $loc,
9016
9005
  token: "instanceof",
@@ -9019,7 +9008,7 @@ ${input.slice(result.pos)}
9019
9008
  negated: true
9020
9009
  };
9021
9010
  });
9022
- var BinaryOpSymbol$32 = $TV($C($S($N(CoffeeOfEnabled), $EXPECT($L50, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L79, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L50, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L71, fail, 'BinaryOpSymbol "of"'), NonIdContinue)), function($skip, $loc, $0, $1) {
9011
+ var BinaryOpSymbol$32 = $TV($C($S($N(CoffeeOfEnabled), $EXPECT($L51, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L80, fail, 'BinaryOpSymbol "in"'), NonIdContinue), $S(CoffeeOfEnabled, $EXPECT($L51, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L72, fail, 'BinaryOpSymbol "of"'), NonIdContinue)), function($skip, $loc, $0, $1) {
9023
9012
  return {
9024
9013
  $loc,
9025
9014
  token: "in",
@@ -9027,7 +9016,7 @@ ${input.slice(result.pos)}
9027
9016
  negated: true
9028
9017
  };
9029
9018
  });
9030
- var BinaryOpSymbol$33 = $TS($S($EXPECT($L80, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L79, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
9019
+ var BinaryOpSymbol$33 = $TS($S($EXPECT($L81, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L80, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
9031
9020
  return {
9032
9021
  method: "includes",
9033
9022
  relational: true,
@@ -9035,7 +9024,7 @@ ${input.slice(result.pos)}
9035
9024
  special: true
9036
9025
  };
9037
9026
  });
9038
- var BinaryOpSymbol$34 = $TS($S(CoffeeOfEnabled, $EXPECT($L79, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
9027
+ var BinaryOpSymbol$34 = $TS($S(CoffeeOfEnabled, $EXPECT($L80, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
9039
9028
  return {
9040
9029
  call: [module2.getRef("indexOf"), ".call"],
9041
9030
  relational: true,
@@ -9044,7 +9033,7 @@ ${input.slice(result.pos)}
9044
9033
  special: true
9045
9034
  };
9046
9035
  });
9047
- var BinaryOpSymbol$35 = $TS($S($EXPECT($L80, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L50, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L79, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
9036
+ var BinaryOpSymbol$35 = $TS($S($EXPECT($L81, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L51, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L80, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
9048
9037
  return {
9049
9038
  method: "includes",
9050
9039
  relational: true,
@@ -9053,7 +9042,7 @@ ${input.slice(result.pos)}
9053
9042
  negated: true
9054
9043
  };
9055
9044
  });
9056
- var BinaryOpSymbol$36 = $TS($S(CoffeeOfEnabled, $EXPECT($L50, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L79, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
9045
+ var BinaryOpSymbol$36 = $TS($S(CoffeeOfEnabled, $EXPECT($L51, fail, 'BinaryOpSymbol "not"'), NonIdContinue, __, $EXPECT($L80, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
9057
9046
  return {
9058
9047
  call: [module2.getRef("indexOf"), ".call"],
9059
9048
  relational: true,
@@ -9062,7 +9051,7 @@ ${input.slice(result.pos)}
9062
9051
  special: true
9063
9052
  };
9064
9053
  });
9065
- var BinaryOpSymbol$37 = $TS($S($N(CoffeeNotEnabled), $EXPECT($L80, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L50, fail, 'BinaryOpSymbol "not"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
9054
+ var BinaryOpSymbol$37 = $TS($S($N(CoffeeNotEnabled), $EXPECT($L81, fail, 'BinaryOpSymbol "is"'), NonIdContinue, __, $EXPECT($L51, fail, 'BinaryOpSymbol "not"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
9066
9055
  if (module2.config.objectIs) {
9067
9056
  return {
9068
9057
  call: module2.getRef("is"),
@@ -9074,7 +9063,7 @@ ${input.slice(result.pos)}
9074
9063
  }
9075
9064
  return "!==";
9076
9065
  });
9077
- var BinaryOpSymbol$38 = $TS($S($EXPECT($L80, fail, 'BinaryOpSymbol "is"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9066
+ var BinaryOpSymbol$38 = $TS($S($EXPECT($L81, fail, 'BinaryOpSymbol "is"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9078
9067
  if (module2.config.objectIs) {
9079
9068
  return {
9080
9069
  call: module2.getRef("is"),
@@ -9085,12 +9074,12 @@ ${input.slice(result.pos)}
9085
9074
  }
9086
9075
  return "===";
9087
9076
  });
9088
- var BinaryOpSymbol$39 = $TS($S($EXPECT($L79, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9077
+ var BinaryOpSymbol$39 = $TS($S($EXPECT($L80, fail, 'BinaryOpSymbol "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9089
9078
  return $1;
9090
9079
  });
9091
- var BinaryOpSymbol$40 = $EXPECT($L81, fail, 'BinaryOpSymbol "&"');
9080
+ var BinaryOpSymbol$40 = $EXPECT($L82, fail, 'BinaryOpSymbol "&"');
9092
9081
  var BinaryOpSymbol$41 = $EXPECT($L17, fail, 'BinaryOpSymbol "^"');
9093
- var BinaryOpSymbol$42 = $EXPECT($L82, fail, 'BinaryOpSymbol "|"');
9082
+ var BinaryOpSymbol$42 = $EXPECT($L83, fail, 'BinaryOpSymbol "|"');
9094
9083
  function BinaryOpSymbol(state) {
9095
9084
  let eventData;
9096
9085
  if (state.events) {
@@ -9113,8 +9102,8 @@ ${input.slice(result.pos)}
9113
9102
  return result;
9114
9103
  }
9115
9104
  }
9116
- var Xor$0 = $EXPECT($L74, fail, 'Xor "^^"');
9117
- var Xor$1 = $S($EXPECT($L75, fail, 'Xor "xor"'), NonIdContinue);
9105
+ var Xor$0 = $EXPECT($L75, fail, 'Xor "^^"');
9106
+ var Xor$1 = $S($EXPECT($L76, fail, 'Xor "xor"'), NonIdContinue);
9118
9107
  function Xor(state) {
9119
9108
  let eventData;
9120
9109
  if (state.events) {
@@ -9138,7 +9127,7 @@ ${input.slice(result.pos)}
9138
9127
  }
9139
9128
  }
9140
9129
  var Xnor$0 = $R$0($EXPECT($R8, fail, "Xnor /!\\^\\^?/"));
9141
- var Xnor$1 = $EXPECT($L76, fail, 'Xnor "xnor"');
9130
+ var Xnor$1 = $EXPECT($L77, fail, 'Xnor "xnor"');
9142
9131
  function Xnor(state) {
9143
9132
  let eventData;
9144
9133
  if (state.events) {
@@ -9165,7 +9154,7 @@ ${input.slice(result.pos)}
9165
9154
  return { $loc, token: $0 };
9166
9155
  });
9167
9156
  var UnaryOp$1 = AwaitOp;
9168
- var UnaryOp$2 = $S($C(Delete, Void, Typeof), $E(_));
9157
+ var UnaryOp$2 = $S($C(Delete, Void, Typeof), $N($EXPECT($L10, fail, 'UnaryOp ":"')), $E(_));
9169
9158
  var UnaryOp$3 = Not;
9170
9159
  function UnaryOp(state) {
9171
9160
  let eventData;
@@ -9424,7 +9413,7 @@ ${input.slice(result.pos)}
9424
9413
  return result;
9425
9414
  }
9426
9415
  }
9427
- var EmptyStatement$0 = $TS($S($E(_), $Y($EXPECT($L83, fail, 'EmptyStatement ";"'))), function($skip, $loc, $0, $1, $2) {
9416
+ var EmptyStatement$0 = $TS($S($E(_), $Y($EXPECT($L84, fail, 'EmptyStatement ";"'))), function($skip, $loc, $0, $1, $2) {
9428
9417
  return { type: "EmptyStatement", children: $1 || [] };
9429
9418
  });
9430
9419
  function EmptyStatement(state) {
@@ -9503,7 +9492,7 @@ ${input.slice(result.pos)}
9503
9492
  var w = $3;
9504
9493
  return [id, colon, w];
9505
9494
  });
9506
- var Label$1 = $S($EXPECT($L84, fail, 'Label "$:"'), Whitespace);
9495
+ var Label$1 = $S($EXPECT($L85, fail, 'Label "$:"'), Whitespace);
9507
9496
  function Label(state) {
9508
9497
  let eventData;
9509
9498
  if (state.events) {
@@ -10487,7 +10476,7 @@ ${input.slice(result.pos)}
10487
10476
  return result;
10488
10477
  }
10489
10478
  }
10490
- var CoffeeForDeclaration$0 = $TS($S($E($S(__, $EXPECT($L85, fail, 'CoffeeForDeclaration "own"'), NonIdContinue)), ForBinding), function($skip, $loc, $0, $1, $2) {
10479
+ var CoffeeForDeclaration$0 = $TS($S($E($S(__, $EXPECT($L86, fail, 'CoffeeForDeclaration "own"'), NonIdContinue)), ForBinding), function($skip, $loc, $0, $1, $2) {
10491
10480
  var own = $1;
10492
10481
  var binding = $2;
10493
10482
  return {
@@ -11058,11 +11047,11 @@ ${input.slice(result.pos)}
11058
11047
  return result;
11059
11048
  }
11060
11049
  }
11061
- var TryStatement$0 = $TS($S(Try, NoPostfixBracedOrEmptyBlock, $E(CatchClause), $E(FinallyClause)), function($skip, $loc, $0, $1, $2, $3, $4) {
11050
+ var TryStatement$0 = $TS($S(Try, $N($EXPECT($L10, fail, 'TryStatement ":"')), NoPostfixBracedOrEmptyBlock, $E(CatchClause), $E(FinallyClause)), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
11062
11051
  var t = $1;
11063
- var b = $2;
11064
- var c = $3;
11065
- var f = $4;
11052
+ var b = $3;
11053
+ var c = $4;
11054
+ var f = $5;
11066
11055
  if (!c && !f) {
11067
11056
  const e = [];
11068
11057
  const emptyCatchBlock = {
@@ -11872,7 +11861,7 @@ ${input.slice(result.pos)}
11872
11861
  var KeywordStatement$2 = $T($S(Debugger), function(value) {
11873
11862
  return { "type": "DebuggerStatement", "children": value };
11874
11863
  });
11875
- var KeywordStatement$3 = $T($S(Return, $N($C($EXPECT($L5, fail, 'KeywordStatement "."'), AfterReturnShorthand)), $E(MaybeNestedExpression)), function(value) {
11864
+ var KeywordStatement$3 = $T($S(Return, $N($C($EXPECT($L10, fail, 'KeywordStatement ":"'), $EXPECT($L5, fail, 'KeywordStatement "."'), AfterReturnShorthand)), $E(MaybeNestedExpression)), function(value) {
11876
11865
  var expression = value[2];
11877
11866
  return { "type": "ReturnStatement", "expression": expression, "children": value };
11878
11867
  });
@@ -11901,7 +11890,7 @@ ${input.slice(result.pos)}
11901
11890
  return result;
11902
11891
  }
11903
11892
  }
11904
- var Break$0 = $TS($S($EXPECT($L86, fail, 'Break "break"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11893
+ var Break$0 = $TS($S($EXPECT($L87, fail, 'Break "break"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11905
11894
  return { $loc, token: $1 };
11906
11895
  });
11907
11896
  function Break(state) {
@@ -11926,7 +11915,7 @@ ${input.slice(result.pos)}
11926
11915
  return result;
11927
11916
  }
11928
11917
  }
11929
- var Continue$0 = $TS($S($EXPECT($L87, fail, 'Continue "continue"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11918
+ var Continue$0 = $TS($S($EXPECT($L88, fail, 'Continue "continue"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11930
11919
  return { $loc, token: $1 };
11931
11920
  });
11932
11921
  function Continue(state) {
@@ -11951,7 +11940,7 @@ ${input.slice(result.pos)}
11951
11940
  return result;
11952
11941
  }
11953
11942
  }
11954
- var Debugger$0 = $TS($S($EXPECT($L88, fail, 'Debugger "debugger"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11943
+ var Debugger$0 = $TS($S($EXPECT($L89, fail, 'Debugger "debugger"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
11955
11944
  return { $loc, token: $1 };
11956
11945
  });
11957
11946
  function Debugger(state) {
@@ -12257,7 +12246,7 @@ ${input.slice(result.pos)}
12257
12246
  return result;
12258
12247
  }
12259
12248
  }
12260
- var ImportAssertion$0 = $S($E(_), $EXPECT($L89, fail, 'ImportAssertion "assert"'), NonIdContinue, $E(_), ObjectLiteral);
12249
+ var ImportAssertion$0 = $S($E(_), $EXPECT($L90, fail, 'ImportAssertion "assert"'), NonIdContinue, $E(_), ObjectLiteral);
12261
12250
  function ImportAssertion(state) {
12262
12251
  let eventData;
12263
12252
  if (state.events) {
@@ -12829,7 +12818,7 @@ ${input.slice(result.pos)}
12829
12818
  return result;
12830
12819
  }
12831
12820
  }
12832
- var ConstAssignment$0 = $TV($EXPECT($L90, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
12821
+ var ConstAssignment$0 = $TV($EXPECT($L91, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
12833
12822
  return { $loc, token: "=" };
12834
12823
  });
12835
12824
  function ConstAssignment(state) {
@@ -12854,7 +12843,7 @@ ${input.slice(result.pos)}
12854
12843
  return result;
12855
12844
  }
12856
12845
  }
12857
- var LetAssignment$0 = $TV($EXPECT($L91, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
12846
+ var LetAssignment$0 = $TV($EXPECT($L92, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
12858
12847
  return { $loc, token: "=" };
12859
12848
  });
12860
12849
  function LetAssignment(state) {
@@ -13561,7 +13550,7 @@ ${input.slice(result.pos)}
13561
13550
  }
13562
13551
  }
13563
13552
  var RegularExpressionLiteral$0 = HeregexLiteral;
13564
- var RegularExpressionLiteral$1 = $TV($TEXT($S($EXPECT($L53, fail, 'RegularExpressionLiteral "/"'), RegularExpressionBody, $EXPECT($L53, fail, 'RegularExpressionLiteral "/"'), RegularExpressionFlags)), function($skip, $loc, $0, $1) {
13553
+ var RegularExpressionLiteral$1 = $TV($TEXT($S($EXPECT($L54, fail, 'RegularExpressionLiteral "/"'), RegularExpressionBody, $EXPECT($L54, fail, 'RegularExpressionLiteral "/"'), RegularExpressionFlags)), function($skip, $loc, $0, $1) {
13565
13554
  return { type: "RegularExpressionLiteral", $loc, token: $1 };
13566
13555
  });
13567
13556
  function RegularExpressionLiteral(state) {
@@ -14128,7 +14117,7 @@ ${input.slice(result.pos)}
14128
14117
  return result;
14129
14118
  }
14130
14119
  }
14131
- var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L92, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L93, fail, 'JSMultiLineComment "*/"')), $EXPECT($R42, fail, "JSMultiLineComment /./"))), $EXPECT($L93, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
14120
+ var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L93, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L94, fail, 'JSMultiLineComment "*/"')), $EXPECT($R42, fail, "JSMultiLineComment /./"))), $EXPECT($L94, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
14132
14121
  return { type: "Comment", $loc, token: $1 };
14133
14122
  });
14134
14123
  function JSMultiLineComment(state) {
@@ -14227,7 +14216,7 @@ ${input.slice(result.pos)}
14227
14216
  return result;
14228
14217
  }
14229
14218
  }
14230
- var InlineComment$0 = $TV($TEXT($S($EXPECT($L92, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L93, fail, 'InlineComment "*/"')), $EXPECT($R46, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L93, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
14219
+ var InlineComment$0 = $TV($TEXT($S($EXPECT($L93, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L94, fail, 'InlineComment "*/"')), $EXPECT($R46, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L94, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
14231
14220
  return { $loc, token: $1 };
14232
14221
  });
14233
14222
  function InlineComment(state) {
@@ -14324,7 +14313,7 @@ ${input.slice(result.pos)}
14324
14313
  var NonNewlineWhitespace$0 = $TR($EXPECT($R47, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14325
14314
  return { $loc, token: $0 };
14326
14315
  });
14327
- var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L94, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
14316
+ var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L95, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
14328
14317
  return "";
14329
14318
  });
14330
14319
  function NonNewlineWhitespace(state) {
@@ -14476,7 +14465,7 @@ ${input.slice(result.pos)}
14476
14465
  }
14477
14466
  }
14478
14467
  var StatementDelimiter$0 = SemicolonDelimiter;
14479
- var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L3, fail, 'StatementDelimiter "("'), $EXPECT($L95, fail, 'StatementDelimiter "["'), $EXPECT($L96, fail, 'StatementDelimiter "`"'), $EXPECT($L56, fail, 'StatementDelimiter "+"'), $EXPECT($L18, fail, 'StatementDelimiter "-"'), $EXPECT($L52, fail, 'StatementDelimiter "*"'), $EXPECT($L53, fail, 'StatementDelimiter "/"'), ObjectLiteral, Arrow, FatArrow, $S(Function, $E($S($E(_), Star)), $E(_), $EXPECT($L3, fail, 'StatementDelimiter "("'))))), InsertSemicolon);
14468
+ var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L3, fail, 'StatementDelimiter "("'), $EXPECT($L96, fail, 'StatementDelimiter "["'), $EXPECT($L97, fail, 'StatementDelimiter "`"'), $EXPECT($L57, fail, 'StatementDelimiter "+"'), $EXPECT($L18, fail, 'StatementDelimiter "-"'), $EXPECT($L53, fail, 'StatementDelimiter "*"'), $EXPECT($L54, fail, 'StatementDelimiter "/"'), ObjectLiteral, Arrow, FatArrow, $S(Function, $E($S($E(_), Star)), $E(_), $EXPECT($L3, fail, 'StatementDelimiter "("'))))), InsertSemicolon);
14480
14469
  var StatementDelimiter$2 = $Y(EOS);
14481
14470
  function StatementDelimiter(state) {
14482
14471
  let eventData;
@@ -14576,7 +14565,7 @@ ${input.slice(result.pos)}
14576
14565
  return result;
14577
14566
  }
14578
14567
  }
14579
- var Abstract$0 = $TV($TEXT($S($EXPECT($L97, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L9, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
14568
+ var Abstract$0 = $TV($TEXT($S($EXPECT($L98, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L9, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
14580
14569
  return { $loc, token: $1, ts: true };
14581
14570
  });
14582
14571
  function Abstract(state) {
@@ -14601,7 +14590,7 @@ ${input.slice(result.pos)}
14601
14590
  return result;
14602
14591
  }
14603
14592
  }
14604
- var Ampersand$0 = $TV($EXPECT($L81, fail, 'Ampersand "&"'), function($skip, $loc, $0, $1) {
14593
+ var Ampersand$0 = $TV($EXPECT($L82, fail, 'Ampersand "&"'), function($skip, $loc, $0, $1) {
14605
14594
  return { $loc, token: $1 };
14606
14595
  });
14607
14596
  function Ampersand(state) {
@@ -14626,7 +14615,7 @@ ${input.slice(result.pos)}
14626
14615
  return result;
14627
14616
  }
14628
14617
  }
14629
- var As$0 = $TS($S($EXPECT($L98, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14618
+ var As$0 = $TS($S($EXPECT($L99, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14630
14619
  return { $loc, token: $1 };
14631
14620
  });
14632
14621
  function As(state) {
@@ -14651,7 +14640,7 @@ ${input.slice(result.pos)}
14651
14640
  return result;
14652
14641
  }
14653
14642
  }
14654
- var At$0 = $TV($EXPECT($L99, fail, 'At "@"'), function($skip, $loc, $0, $1) {
14643
+ var At$0 = $TV($EXPECT($L100, fail, 'At "@"'), function($skip, $loc, $0, $1) {
14655
14644
  return { $loc, token: $1 };
14656
14645
  });
14657
14646
  function At(state) {
@@ -14676,7 +14665,7 @@ ${input.slice(result.pos)}
14676
14665
  return result;
14677
14666
  }
14678
14667
  }
14679
- var AtAt$0 = $TV($EXPECT($L100, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
14668
+ var AtAt$0 = $TV($EXPECT($L101, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
14680
14669
  return { $loc, token: "@" };
14681
14670
  });
14682
14671
  function AtAt(state) {
@@ -14701,7 +14690,7 @@ ${input.slice(result.pos)}
14701
14690
  return result;
14702
14691
  }
14703
14692
  }
14704
- var Async$0 = $TS($S($EXPECT($L101, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14693
+ var Async$0 = $TS($S($EXPECT($L102, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14705
14694
  return { $loc, token: $1, type: "Async" };
14706
14695
  });
14707
14696
  function Async(state) {
@@ -14726,7 +14715,7 @@ ${input.slice(result.pos)}
14726
14715
  return result;
14727
14716
  }
14728
14717
  }
14729
- var Await$0 = $TS($S($EXPECT($L102, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14718
+ var Await$0 = $TS($S($EXPECT($L103, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14730
14719
  return { $loc, token: $1, type: "Await" };
14731
14720
  });
14732
14721
  function Await(state) {
@@ -14751,7 +14740,7 @@ ${input.slice(result.pos)}
14751
14740
  return result;
14752
14741
  }
14753
14742
  }
14754
- var Backtick$0 = $TV($EXPECT($L96, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
14743
+ var Backtick$0 = $TV($EXPECT($L97, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
14755
14744
  return { $loc, token: $1 };
14756
14745
  });
14757
14746
  function Backtick(state) {
@@ -14776,7 +14765,7 @@ ${input.slice(result.pos)}
14776
14765
  return result;
14777
14766
  }
14778
14767
  }
14779
- var By$0 = $TS($S($EXPECT($L103, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14768
+ var By$0 = $TS($S($EXPECT($L104, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14780
14769
  return { $loc, token: $1 };
14781
14770
  });
14782
14771
  function By(state) {
@@ -14801,7 +14790,7 @@ ${input.slice(result.pos)}
14801
14790
  return result;
14802
14791
  }
14803
14792
  }
14804
- var Case$0 = $TS($S($EXPECT($L104, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14793
+ var Case$0 = $TS($S($EXPECT($L105, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14805
14794
  return { $loc, token: $1 };
14806
14795
  });
14807
14796
  function Case(state) {
@@ -14826,7 +14815,7 @@ ${input.slice(result.pos)}
14826
14815
  return result;
14827
14816
  }
14828
14817
  }
14829
- var Catch$0 = $TS($S($EXPECT($L105, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14818
+ var Catch$0 = $TS($S($EXPECT($L106, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14830
14819
  return { $loc, token: $1 };
14831
14820
  });
14832
14821
  function Catch(state) {
@@ -14851,7 +14840,7 @@ ${input.slice(result.pos)}
14851
14840
  return result;
14852
14841
  }
14853
14842
  }
14854
- var Class$0 = $TS($S($EXPECT($L106, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14843
+ var Class$0 = $TS($S($EXPECT($L107, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
14855
14844
  return { $loc, token: $1 };
14856
14845
  });
14857
14846
  function Class(state) {
@@ -14876,7 +14865,7 @@ ${input.slice(result.pos)}
14876
14865
  return result;
14877
14866
  }
14878
14867
  }
14879
- var CloseBrace$0 = $TV($EXPECT($L22, fail, 'CloseBrace "}"'), function($skip, $loc, $0, $1) {
14868
+ var CloseBrace$0 = $TV($EXPECT($L23, fail, 'CloseBrace "}"'), function($skip, $loc, $0, $1) {
14880
14869
  return { $loc, token: $1 };
14881
14870
  });
14882
14871
  function CloseBrace(state) {
@@ -14901,7 +14890,7 @@ ${input.slice(result.pos)}
14901
14890
  return result;
14902
14891
  }
14903
14892
  }
14904
- var CloseBracket$0 = $TV($EXPECT($L31, fail, 'CloseBracket "]"'), function($skip, $loc, $0, $1) {
14893
+ var CloseBracket$0 = $TV($EXPECT($L32, fail, 'CloseBracket "]"'), function($skip, $loc, $0, $1) {
14905
14894
  return { $loc, token: $1 };
14906
14895
  });
14907
14896
  function CloseBracket(state) {
@@ -14926,7 +14915,7 @@ ${input.slice(result.pos)}
14926
14915
  return result;
14927
14916
  }
14928
14917
  }
14929
- var CloseParen$0 = $TV($EXPECT($L107, fail, 'CloseParen ")"'), function($skip, $loc, $0, $1) {
14918
+ var CloseParen$0 = $TV($EXPECT($L108, fail, 'CloseParen ")"'), function($skip, $loc, $0, $1) {
14930
14919
  return { $loc, token: $1 };
14931
14920
  });
14932
14921
  function CloseParen(state) {
@@ -14951,7 +14940,7 @@ ${input.slice(result.pos)}
14951
14940
  return result;
14952
14941
  }
14953
14942
  }
14954
- var CoffeeSubstitutionStart$0 = $TV($EXPECT($L108, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
14943
+ var CoffeeSubstitutionStart$0 = $TV($EXPECT($L109, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
14955
14944
  return { $loc, token: "${" };
14956
14945
  });
14957
14946
  function CoffeeSubstitutionStart(state) {
@@ -14976,7 +14965,7 @@ ${input.slice(result.pos)}
14976
14965
  return result;
14977
14966
  }
14978
14967
  }
14979
- var Colon$0 = $TS($S($EXPECT($L109, fail, 'Colon ":"'), $N($EXPECT($L2, fail, 'Colon "="'))), function($skip, $loc, $0, $1, $2) {
14968
+ var Colon$0 = $TS($S($EXPECT($L10, fail, 'Colon ":"'), $N($EXPECT($L2, fail, 'Colon "="'))), function($skip, $loc, $0, $1, $2) {
14980
14969
  return { $loc, token: $1 };
14981
14970
  });
14982
14971
  function Colon(state) {
@@ -15001,7 +14990,7 @@ ${input.slice(result.pos)}
15001
14990
  return result;
15002
14991
  }
15003
14992
  }
15004
- var Comma$0 = $TV($EXPECT($L20, fail, 'Comma ","'), function($skip, $loc, $0, $1) {
14993
+ var Comma$0 = $TV($EXPECT($L21, fail, 'Comma ","'), function($skip, $loc, $0, $1) {
15005
14994
  return { $loc, token: $1 };
15006
14995
  });
15007
14996
  function Comma(state) {
@@ -15026,7 +15015,7 @@ ${input.slice(result.pos)}
15026
15015
  return result;
15027
15016
  }
15028
15017
  }
15029
- var ConstructorShorthand$0 = $TV($EXPECT($L99, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
15018
+ var ConstructorShorthand$0 = $TV($EXPECT($L100, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
15030
15019
  return { $loc, token: "constructor" };
15031
15020
  });
15032
15021
  function ConstructorShorthand(state) {
@@ -15526,7 +15515,7 @@ ${input.slice(result.pos)}
15526
15515
  return result;
15527
15516
  }
15528
15517
  }
15529
- var Import$0 = $TS($S($EXPECT($L14, fail, 'Import "import"'), $Y($EXPECT($R49, fail, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
15518
+ var Import$0 = $TS($S($EXPECT($L15, fail, 'Import "import"'), $Y($EXPECT($R49, fail, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
15530
15519
  return { $loc, token: $1 };
15531
15520
  });
15532
15521
  function Import(state) {
@@ -15551,7 +15540,7 @@ ${input.slice(result.pos)}
15551
15540
  return result;
15552
15541
  }
15553
15542
  }
15554
- var In$0 = $TS($S($EXPECT($L79, fail, 'In "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15543
+ var In$0 = $TS($S($EXPECT($L80, fail, 'In "in"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15555
15544
  return { $loc, token: $1 };
15556
15545
  });
15557
15546
  function In(state) {
@@ -15700,7 +15689,7 @@ ${input.slice(result.pos)}
15700
15689
  return result;
15701
15690
  }
15702
15691
  }
15703
- var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($L50, fail, 'Not "not"'), NonIdContinue, $E($EXPECT($L9, fail, 'Not " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
15692
+ var Not$0 = $TS($S(CoffeeNotEnabled, $EXPECT($L51, fail, 'Not "not"'), NonIdContinue, $E($EXPECT($L9, fail, 'Not " "'))), function($skip, $loc, $0, $1, $2, $3, $4) {
15704
15693
  return { $loc, token: "!" };
15705
15694
  });
15706
15695
  function Not(state) {
@@ -15725,7 +15714,7 @@ ${input.slice(result.pos)}
15725
15714
  return result;
15726
15715
  }
15727
15716
  }
15728
- var Of$0 = $TS($S($EXPECT($L71, fail, 'Of "of"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15717
+ var Of$0 = $TS($S($EXPECT($L72, fail, 'Of "of"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15729
15718
  return { $loc, token: $1 };
15730
15719
  });
15731
15720
  function Of(state) {
@@ -15800,7 +15789,7 @@ ${input.slice(result.pos)}
15800
15789
  return result;
15801
15790
  }
15802
15791
  }
15803
- var OpenBracket$0 = $TV($EXPECT($L95, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
15792
+ var OpenBracket$0 = $TV($EXPECT($L96, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
15804
15793
  return { $loc, token: $1 };
15805
15794
  });
15806
15795
  function OpenBracket(state) {
@@ -16081,7 +16070,7 @@ ${input.slice(result.pos)}
16081
16070
  return result;
16082
16071
  }
16083
16072
  }
16084
- var Semicolon$0 = $TV($EXPECT($L83, fail, 'Semicolon ";"'), function($skip, $loc, $0, $1) {
16073
+ var Semicolon$0 = $TV($EXPECT($L84, fail, 'Semicolon ";"'), function($skip, $loc, $0, $1) {
16085
16074
  return { $loc, token: $1 };
16086
16075
  });
16087
16076
  function Semicolon(state) {
@@ -16131,7 +16120,7 @@ ${input.slice(result.pos)}
16131
16120
  return result;
16132
16121
  }
16133
16122
  }
16134
- var Star$0 = $TV($EXPECT($L52, fail, 'Star "*"'), function($skip, $loc, $0, $1) {
16123
+ var Star$0 = $TV($EXPECT($L53, fail, 'Star "*"'), function($skip, $loc, $0, $1) {
16135
16124
  return { $loc, token: $1 };
16136
16125
  });
16137
16126
  function Star(state) {
@@ -16159,7 +16148,7 @@ ${input.slice(result.pos)}
16159
16148
  var Static$0 = $TS($S($EXPECT($L145, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
16160
16149
  return { $loc, token: $1 };
16161
16150
  });
16162
- var Static$1 = $TS($S($EXPECT($L99, fail, 'Static "@"'), $N($C($EXPECT($L3, fail, 'Static "("'), $EXPECT($L99, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
16151
+ var Static$1 = $TS($S($EXPECT($L100, fail, 'Static "@"'), $N($C($EXPECT($L3, fail, 'Static "("'), $EXPECT($L100, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
16163
16152
  return { $loc, token: "static " };
16164
16153
  });
16165
16154
  function Static(state) {
@@ -16855,7 +16844,7 @@ ${input.slice(result.pos)}
16855
16844
  return result;
16856
16845
  }
16857
16846
  }
16858
- var JSXOpeningElement$0 = $S($EXPECT($L132, fail, 'JSXOpeningElement "<"'), JSXElementName, $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L30, fail, 'JSXOpeningElement ">"'));
16847
+ var JSXOpeningElement$0 = $S($EXPECT($L132, fail, 'JSXOpeningElement "<"'), JSXElementName, $E(TypeArguments), $E(JSXAttributes), $E(Whitespace), $EXPECT($L31, fail, 'JSXOpeningElement ">"'));
16859
16848
  function JSXOpeningElement(state) {
16860
16849
  let eventData;
16861
16850
  if (state.events) {
@@ -16907,7 +16896,7 @@ ${input.slice(result.pos)}
16907
16896
  return result;
16908
16897
  }
16909
16898
  }
16910
- var JSXClosingElement$0 = $S($EXPECT($L166, fail, 'JSXClosingElement "</"'), $E(Whitespace), JSXElementName, $E(Whitespace), $EXPECT($L30, fail, 'JSXClosingElement ">"'));
16899
+ var JSXClosingElement$0 = $S($EXPECT($L166, fail, 'JSXClosingElement "</"'), $E(Whitespace), JSXElementName, $E(Whitespace), $EXPECT($L31, fail, 'JSXClosingElement ">"'));
16911
16900
  function JSXClosingElement(state) {
16912
16901
  let eventData;
16913
16902
  if (state.events) {
@@ -17053,7 +17042,7 @@ ${input.slice(result.pos)}
17053
17042
  return result;
17054
17043
  }
17055
17044
  }
17056
- var JSXElementName$0 = $TV($Y($S($C($EXPECT($L12, fail, 'JSXElementName "#"'), Dot), JSXShorthandString)), function($skip, $loc, $0, $1) {
17045
+ var JSXElementName$0 = $TV($Y($S($C($EXPECT($L13, fail, 'JSXElementName "#"'), Dot), JSXShorthandString)), function($skip, $loc, $0, $1) {
17057
17046
  return module2.config.defaultElement;
17058
17047
  });
17059
17048
  var JSXElementName$1 = $TEXT($S(JSXIdentifierName, $C($S(Colon, JSXIdentifierName), $Q($S(Dot, JSXIdentifierName)))));
@@ -17258,7 +17247,7 @@ ${input.slice(result.pos)}
17258
17247
  }
17259
17248
  });
17260
17249
  var JSXAttribute$2 = $S(InsertInlineOpenBrace, DotDotDot, InlineJSXAttributeValue, InsertCloseBrace, $Y(JSXAttributeSpace));
17261
- var JSXAttribute$3 = $TS($S($EXPECT($L12, fail, 'JSXAttribute "#"'), JSXShorthandString), function($skip, $loc, $0, $1, $2) {
17250
+ var JSXAttribute$3 = $TS($S($EXPECT($L13, fail, 'JSXAttribute "#"'), JSXShorthandString), function($skip, $loc, $0, $1, $2) {
17262
17251
  return [" ", "id=", $2];
17263
17252
  });
17264
17253
  var JSXAttribute$4 = $TS($S(Dot, JSXShorthandString), function($skip, $loc, $0, $1, $2) {
@@ -17399,7 +17388,8 @@ ${input.slice(result.pos)}
17399
17388
  var JSXAttributeValue$1 = JSXElement;
17400
17389
  var JSXAttributeValue$2 = JSXFragment;
17401
17390
  var JSXAttributeValue$3 = $TS($S(InsertInlineOpenBrace, InlineJSXAttributeValue, InsertCloseBrace), function($skip, $loc, $0, $1, $2, $3) {
17402
- if ($2.children?.length === 1 && $2.children[0].type === "StringLiteral") {
17391
+ var value = $2;
17392
+ if (value.type === "StringLiteral") {
17403
17393
  return $skip;
17404
17394
  }
17405
17395
  return $0;
@@ -17585,8 +17575,8 @@ ${input.slice(result.pos)}
17585
17575
  return result;
17586
17576
  }
17587
17577
  }
17588
- var InlineJSXCallExpression$0 = $S($EXPECT($L13, fail, 'InlineJSXCallExpression "super"'), ExplicitArguments);
17589
- var InlineJSXCallExpression$1 = $S($EXPECT($L14, fail, 'InlineJSXCallExpression "import"'), OpenParen, PostfixedExpression, __, CloseParen);
17578
+ var InlineJSXCallExpression$0 = $S($EXPECT($L14, fail, 'InlineJSXCallExpression "super"'), ExplicitArguments);
17579
+ var InlineJSXCallExpression$1 = $S($EXPECT($L15, fail, 'InlineJSXCallExpression "import"'), OpenParen, PostfixedExpression, __, CloseParen);
17590
17580
  var InlineJSXCallExpression$2 = $TS($S(InlineJSXMemberExpression, $Q(InlineJSXCallExpressionRest)), function($skip, $loc, $0, $1, $2) {
17591
17581
  if ($2.length)
17592
17582
  return $0;
@@ -17800,7 +17790,7 @@ ${input.slice(result.pos)}
17800
17790
  }
17801
17791
  return $skip;
17802
17792
  });
17803
- var JSXNestedChildren$1 = $TV($Y($C(JSXEOS, $EXPECT($L22, fail, 'JSXNestedChildren "}"'), JSXClosingElement, JSXClosingFragment)), function($skip, $loc, $0, $1) {
17793
+ var JSXNestedChildren$1 = $TV($Y($C(JSXEOS, $EXPECT($L23, fail, 'JSXNestedChildren "}"'), JSXClosingElement, JSXClosingFragment)), function($skip, $loc, $0, $1) {
17804
17794
  return { children: [], jsxChildren: [] };
17805
17795
  });
17806
17796
  function JSXNestedChildren(state) {
@@ -19041,7 +19031,7 @@ ${input.slice(result.pos)}
19041
19031
  return result;
19042
19032
  }
19043
19033
  }
19044
- var TypePredicate$0 = $TS($S(Type, $E($S(__, $EXPECT($L80, fail, 'TypePredicate "is"'), NonIdContinue, Type))), function($skip, $loc, $0, $1, $2) {
19034
+ var TypePredicate$0 = $TS($S(Type, $E($S(__, $EXPECT($L81, fail, 'TypePredicate "is"'), NonIdContinue, Type))), function($skip, $loc, $0, $1, $2) {
19045
19035
  var lhs = $1;
19046
19036
  var rhs = $2;
19047
19037
  if (!rhs)
@@ -19270,8 +19260,8 @@ ${input.slice(result.pos)}
19270
19260
  return result;
19271
19261
  }
19272
19262
  }
19273
- var ImportType$0 = $S($EXPECT($L14, fail, 'ImportType "import"'), OpenParen, __, StringLiteral, __, CloseParen, $E($S(Dot, IdentifierName)), $E(TypeArguments));
19274
- var ImportType$1 = $S($EXPECT($L14, fail, 'ImportType "import"'), InsertOpenParen, Trimmed_, StringLiteral, InsertCloseParen);
19263
+ var ImportType$0 = $S($EXPECT($L15, fail, 'ImportType "import"'), OpenParen, __, StringLiteral, __, CloseParen, $E($S(Dot, IdentifierName)), $E(TypeArguments));
19264
+ var ImportType$1 = $S($EXPECT($L15, fail, 'ImportType "import"'), InsertOpenParen, Trimmed_, StringLiteral, InsertCloseParen);
19275
19265
  function ImportType(state) {
19276
19266
  let eventData;
19277
19267
  if (state.events) {
@@ -19602,7 +19592,7 @@ ${input.slice(result.pos)}
19602
19592
  var InlineInterfacePropertyDelimiter$1 = $T($S($Y($S($C(IndentedFurther, $E(_)), InlineBasicInterfaceProperty)), InsertComma), function(value) {
19603
19593
  return value[1];
19604
19594
  });
19605
- var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L109, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L107, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L31, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L22, fail, 'InlineInterfacePropertyDelimiter "}"'))));
19595
+ var InlineInterfacePropertyDelimiter$2 = $Y($S(__, $C($EXPECT($L10, fail, 'InlineInterfacePropertyDelimiter ":"'), $EXPECT($L108, fail, 'InlineInterfacePropertyDelimiter ")"'), $EXPECT($L32, fail, 'InlineInterfacePropertyDelimiter "]"'), $EXPECT($L23, fail, 'InlineInterfacePropertyDelimiter "}"'))));
19606
19596
  var InlineInterfacePropertyDelimiter$3 = $Y(EOS);
19607
19597
  function InlineInterfacePropertyDelimiter(state) {
19608
19598
  let eventData;
@@ -19626,10 +19616,10 @@ ${input.slice(result.pos)}
19626
19616
  return result;
19627
19617
  }
19628
19618
  }
19629
- var TypeBinaryOp$0 = $TV($EXPECT($L82, fail, 'TypeBinaryOp "|"'), function($skip, $loc, $0, $1) {
19619
+ var TypeBinaryOp$0 = $TV($EXPECT($L83, fail, 'TypeBinaryOp "|"'), function($skip, $loc, $0, $1) {
19630
19620
  return { $loc, token: "|" };
19631
19621
  });
19632
- var TypeBinaryOp$1 = $TV($EXPECT($L81, fail, 'TypeBinaryOp "&"'), function($skip, $loc, $0, $1) {
19622
+ var TypeBinaryOp$1 = $TV($EXPECT($L82, fail, 'TypeBinaryOp "&"'), function($skip, $loc, $0, $1) {
19633
19623
  return { $loc, token: "&" };
19634
19624
  });
19635
19625
  function TypeBinaryOp(state) {
@@ -19686,7 +19676,7 @@ ${input.slice(result.pos)}
19686
19676
  var TypeArrowFunction$0 = $TV($EXPECT($L8, fail, 'TypeArrowFunction "=>"'), function($skip, $loc, $0, $1) {
19687
19677
  return { $loc, token: "=>" };
19688
19678
  });
19689
- var TypeArrowFunction$1 = $TV($EXPECT($L21, fail, 'TypeArrowFunction "->"'), function($skip, $loc, $0, $1) {
19679
+ var TypeArrowFunction$1 = $TV($EXPECT($L22, fail, 'TypeArrowFunction "->"'), function($skip, $loc, $0, $1) {
19690
19680
  return { $loc, token: "=>" };
19691
19681
  });
19692
19682
  function TypeArrowFunction(state) {
@@ -19711,7 +19701,7 @@ ${input.slice(result.pos)}
19711
19701
  return result;
19712
19702
  }
19713
19703
  }
19714
- var TypeArguments$0 = $TS($S($EXPECT($L132, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L30, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
19704
+ var TypeArguments$0 = $TS($S($EXPECT($L132, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L31, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
19715
19705
  return { ts: true, children: $0 };
19716
19706
  });
19717
19707
  function TypeArguments(state) {
@@ -19782,7 +19772,7 @@ ${input.slice(result.pos)}
19782
19772
  return result;
19783
19773
  }
19784
19774
  }
19785
- var TypeParameters$0 = $TS($S(__, $EXPECT($L132, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L30, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
19775
+ var TypeParameters$0 = $TS($S($E(_), $EXPECT($L132, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L31, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
19786
19776
  var parameters = $3;
19787
19777
  return {
19788
19778
  type: "TypeParameters",
@@ -19883,7 +19873,7 @@ ${input.slice(result.pos)}
19883
19873
  }
19884
19874
  }
19885
19875
  var TypeParameterDelimiter$0 = $S($Q(_), Comma);
19886
- var TypeParameterDelimiter$1 = $Y($S(__, $EXPECT($L30, fail, 'TypeParameterDelimiter ">"')));
19876
+ var TypeParameterDelimiter$1 = $Y($S(__, $EXPECT($L31, fail, 'TypeParameterDelimiter ">"')));
19887
19877
  var TypeParameterDelimiter$2 = $T($S($Y(EOS), InsertComma), function(value) {
19888
19878
  return value[1];
19889
19879
  });
@@ -21933,10 +21923,9 @@ ${input.slice(result.pos)}
21933
21923
  names.push(...rest.names);
21934
21924
  }
21935
21925
  if (after.length) {
21936
- const spliceRef = module2.getRef("splice");
21937
21926
  blockPrefix = {
21938
21927
  type: "PostRestBindingElements",
21939
- children: ["[", insertTrimmingSpace(after, ""), "] = ", spliceRef, ".call(", restIdentifier, ", -", after.length.toString(), ")"],
21928
+ children: ["[", insertTrimmingSpace(after, ""), "] = ", restIdentifier, ".splice(-", after.length.toString(), ")"],
21940
21929
  names: after.flatMap((p) => p.names)
21941
21930
  };
21942
21931
  }
@@ -22297,16 +22286,6 @@ ${input.slice(result.pos)}
22297
22286
  exp.children.push(...post);
22298
22287
  });
22299
22288
  }
22300
- function checkSpliceRef(statements) {
22301
- const spliceRef = module2.getRef("splice");
22302
- if (gatherRecursiveAll(statements, (n) => n === spliceRef).length) {
22303
- const typeSuffix = {
22304
- ts: true,
22305
- children: [": <T>(this: T[], start: number, deleteCount?: number) => T[]"]
22306
- };
22307
- module2.prelude.push(["", ["const ", spliceRef, typeSuffix, " = [].splice", module2.asAny, "\n"]]);
22308
- }
22309
- }
22310
22289
  module2.attachPostfixStatementAsExpression = function(exp, post) {
22311
22290
  let clause;
22312
22291
  switch (post[1].type) {
@@ -22794,7 +22773,6 @@ ${input.slice(result.pos)}
22794
22773
  processTryExpressions(statements);
22795
22774
  hoistRefDecs(statements);
22796
22775
  gatherRecursiveAll(statements, (n) => n.type === "IterationExpression").forEach((e) => expressionizeIteration(e));
22797
- checkSpliceRef(statements);
22798
22776
  statements.unshift(...module2.prelude);
22799
22777
  if (module2.config.autoLet) {
22800
22778
  createLetDecs(statements, []);
@@ -23606,17 +23584,17 @@ SourceMap.parseWithLines = function(base64encodedJSONstr) {
23606
23584
  smRegexp = /\n\/\/# sourceMappingURL=data:application\/json;charset=utf-8;base64,([+a-zA-Z0-9\/]*=?=?)$/;
23607
23585
  SourceMap.remap = function(codeWithSourceMap, upstreamMap, sourcePath, targetPath) {
23608
23586
  var codeWithoutSourceMap, composedLines, newSourceMap, parsed, remappedCodeWithSourceMap, remappedSourceMapJSON, sourceMapText;
23609
- sourceMapText = codeWithSourceMap.match(smRegexp);
23587
+ sourceMapText = null;
23588
+ codeWithoutSourceMap = codeWithSourceMap.replace(smRegexp, (match, sm) => {
23589
+ sourceMapText = sm;
23590
+ return "";
23591
+ });
23610
23592
  if (sourceMapText) {
23611
- parsed = SourceMap.parseWithLines(sourceMapText[1]);
23612
- } else {
23613
- console.warn("No source map found in code");
23614
- return codeWithSourceMap;
23593
+ parsed = SourceMap.parseWithLines(sourceMapText);
23594
+ composedLines = SourceMap.composeLines(upstreamMap.data.lines, parsed.lines);
23595
+ upstreamMap.data.lines = composedLines;
23615
23596
  }
23616
- composedLines = SourceMap.composeLines(upstreamMap.data.lines, parsed.lines);
23617
- upstreamMap.data.lines = composedLines;
23618
23597
  remappedSourceMapJSON = upstreamMap.json(sourcePath, targetPath);
23619
- codeWithoutSourceMap = codeWithSourceMap.replace(smRegexp, "");
23620
23598
  newSourceMap = `${"sourceMapping"}URL=data:application/json;charset=utf-8;base64,${base64Encode(JSON.stringify(remappedSourceMapJSON))}`;
23621
23599
  remappedCodeWithSourceMap = `${codeWithoutSourceMap}
23622
23600
  //# ${newSourceMap}`;
@@ -23786,15 +23764,14 @@ remapPosition = function(position, sourcemapLines) {
23786
23764
  // source/main.coffee
23787
23765
  "civet coffeeCompat";
23788
23766
  var SourceMap2;
23789
- var base64Encode2;
23790
23767
  var makeCache;
23791
23768
  var parse;
23792
23769
  var uncacheable;
23793
23770
  ({ parse } = import_parser.default);
23794
- ({ SourceMap: SourceMap2, base64Encode: base64Encode2 } = util_exports);
23771
+ ({ SourceMap: SourceMap2 } = util_exports);
23795
23772
  uncacheable = /* @__PURE__ */ new Set(["ActualAssignment", "AllowAll", "AllowClassImplicitCall", "AllowIndentedApplication", "AllowMultiLineImplicitObjectLiteral", "AllowTrailingMemberProperty", "AllowedTrailingMemberExpressions", "ApplicationStart", "Arguments", "ArgumentsWithTrailingMemberExpressions", "ArrowFunction", "ArrowFunctionTail", "AssignmentExpression", "AssignmentExpressionTail", "BinaryOpExpression", "BinaryOpRHS", "BracedBlock", "BracedObjectLiteralContent", "BracedOrEmptyBlock", "CallExpression", "CallExpressionRest", "ClassImplicitCallForbidden", "CoffeeCommentEnabled", "CommaDelimiter", "ConditionalExpression", "Declaration", "Debugger", "Dedented", "ElementListWithIndentedApplicationForbidden", "ElseClause", "Expression", "ExpressionStatement", "ExpressionWithIndentedApplicationForbidden", "ExtendedExpression", "FatArrowBody", "ForbidClassImplicitCall", "ForbidIndentedApplication", "ForbidMultiLineImplicitObjectLiteral", "ForbidTrailingMemberProperty", "FunctionDeclaration", "FunctionExpression", "HoistableDeclaration", "ImplicitArguments", "ImplicitInlineObjectPropertyDelimiter", "ImplicitNestedBlock", "IndentedApplicationAllowed", "IndentedFurther", "IndentedJSXChildExpression", "InlineObjectLiteral", "InsertIndent", "JSXChild", "JSXChildren", "JSXElement", "JSXFragment", "JSXImplicitFragment", "JSXMixedChildren", "JSXNested", "JSXNestedChildren", "JSXOptionalClosingElement", "JSXOptionalClosingFragment", "JSXTag", "LeftHandSideExpression", "MemberExpression", "MemberExpressionRest", "Nested", "NestedBindingElement", "NestedBindingElements", "NestedBlockExpression", "NestedBlockExpression", "NestedBlockStatement", "NestedBlockStatements", "NestedClassSignatureElement", "NestedClassSignatureElements", "NestedDeclareElement", "NestedDeclareElements", "NestedElement", "NestedElementList", "NestedImplicitObjectLiteral", "NestedImplicitPropertyDefinition", "NestedImplicitPropertyDefinitions", "NestedInterfaceProperty", "NestedJSXChildExpression", "NestedModuleItem", "NestedModuleItems", "NestedNonAssignmentExtendedExpression", "NestedObject", "NestedPropertyDefinitions", "NonSingleBracedBlock", "NotDedented", "ObjectLiteral", "PopIndent", "PopJSXStack", "PostfixedExpression", "PostfixedStatement", "PrimaryExpression", "PushIndent", "PushJSXOpeningElement", "PushJSXOpeningFragment", "RestoreAll", "RestoreClassImplicitCall", "RestoreMultiLineImplicitObjectLiteral", "RestoreIndentedApplication", "RestoreTrailingMemberProperty", "RHS", "Samedent", "ShortCircuitExpression", "SingleLineAssignmentExpression", "SingleLineComment", "SingleLineStatements", "SnugNamedProperty", "Statement", "StatementListItem", "SuffixedExpression", "SuffixedStatement", "ThinArrowFunction", "TrackIndented", "TrailingMemberExpressions", "TrailingMemberPropertyAllowed", "TypedJSXElement", "TypedJSXFragment", "UnaryExpression", "UpdateExpression"]);
23796
23773
  var compile = function(src, options) {
23797
- var ast, code, events, filename, ref, result, sm, srcMapJSON;
23774
+ var ast, code, events, filename, ref, result, sm;
23798
23775
  if (!options) {
23799
23776
  options = {};
23800
23777
  } else {
@@ -23816,10 +23793,7 @@ var compile = function(src, options) {
23816
23793
  options.updateSourceMap = sm.updateSourceMap;
23817
23794
  code = generate_default(ast, options);
23818
23795
  if (options.inlineMap) {
23819
- srcMapJSON = sm.json(filename, "");
23820
- return `${code}
23821
- ${"//#"} sourceMappingURL=data:application/json;base64,${base64Encode2(JSON.stringify(srcMapJSON))}
23822
- `;
23796
+ return SourceMap2.remap(code, sm, filename, filename + ".tsx");
23823
23797
  } else {
23824
23798
  return {
23825
23799
  code,