@danielx/civet 0.7.32 → 0.7.34

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
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // node_modules/@danielx/hera/dist/machine.js
33
+ // node_modules/.pnpm/@danielx+hera@0.8.16/node_modules/@danielx/hera/dist/machine.js
34
34
  var require_machine = __commonJS({
35
- "node_modules/@danielx/hera/dist/machine.js"(exports2, module2) {
35
+ "node_modules/.pnpm/@danielx+hera@0.8.16/node_modules/@danielx/hera/dist/machine.js"(exports2, module2) {
36
36
  "use strict";
37
37
  var __defProp2 = Object.defineProperty;
38
38
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -62,7 +62,7 @@ var require_machine = __commonJS({
62
62
  $N: () => $N2,
63
63
  $P: () => $P2,
64
64
  $Q: () => $Q2,
65
- $R: () => $R100,
65
+ $R: () => $R99,
66
66
  $R$0: () => $R$02,
67
67
  $S: () => $S2,
68
68
  $T: () => $T2,
@@ -99,7 +99,7 @@ var require_machine = __commonJS({
99
99
  return;
100
100
  };
101
101
  }
102
- function $R100(regExp) {
102
+ function $R99(regExp) {
103
103
  return function(_ctx, state2) {
104
104
  const { input, pos } = state2;
105
105
  regExp.lastIndex = state2.pos;
@@ -1085,12 +1085,11 @@ function convertOptionalType(suffix) {
1085
1085
  ]);
1086
1086
  }
1087
1087
  var typeNeedsNoParens = /* @__PURE__ */ new Set([
1088
- "IdentifierType",
1088
+ "TypeIdentifier",
1089
1089
  "ImportType",
1090
- "LiteralType",
1090
+ "TypeLiteral",
1091
1091
  "TupleType",
1092
- "ParenthesizedType",
1093
- "UnaryType"
1092
+ "TypeParenthesized"
1094
1093
  ]);
1095
1094
  function parenthesizeType(type) {
1096
1095
  if (typeNeedsNoParens.has(type.type)) {
@@ -1580,27 +1579,34 @@ function gatherBindingPatternTypeSuffix(pattern) {
1580
1579
 
1581
1580
  // source/parser/function.civet
1582
1581
  function isVoidType(t) {
1583
- return t?.type === "LiteralType" && t.t.type === "VoidType";
1582
+ return t?.type === "TypeLiteral" && t.t.type === "VoidType";
1584
1583
  }
1585
1584
  function isPromiseVoidType(t) {
1586
- return t?.type === "IdentifierType" && t.raw === "Promise" && t.args?.types?.length === 1 && isVoidType(t.args.types[0]);
1585
+ return t?.type === "TypeIdentifier" && t.raw === "Promise" && t.args?.types?.length === 1 && isVoidType(t.args.types[0]);
1587
1586
  }
1588
1587
  function isGeneratorVoidType(t) {
1589
- return t?.type === "IdentifierType" && (t.raw === "Iterator" || t.raw === "Generator") && t.args?.types?.length >= 2 && isVoidType(t.args.types[1]);
1588
+ return t?.type === "TypeIdentifier" && (t.raw === "Iterator" || t.raw === "Generator") && t.args?.types?.length >= 2 && isVoidType(t.args.types[1]);
1590
1589
  }
1591
1590
  function isAsyncGeneratorVoidType(t) {
1592
- return t?.type === "IdentifierType" && (t.raw === "AsyncIterator" || t.raw === "AsyncGenerator") && t.args?.types?.length >= 2 && isVoidType(t.args.types[1]);
1591
+ return t?.type === "TypeIdentifier" && (t.raw === "AsyncIterator" || t.raw === "AsyncGenerator") && t.args?.types?.length >= 2 && isVoidType(t.args.types[1]);
1593
1592
  }
1594
1593
  function implicitFunctionBlock(f) {
1595
1594
  if (f.abstract || f.block || f.signature?.optional)
1596
1595
  return;
1597
1596
  const { name, parent } = f;
1598
- if (parent?.type === "ExportDeclaration")
1599
- return;
1600
- const expressions = parent?.expressions ?? parent?.elements;
1601
- const currentIndex = expressions?.findIndex(([, def]) => def === f);
1602
- const following = currentIndex >= 0 && expressions[currentIndex + 1]?.[1];
1603
- if (f.type === following?.type && name && name === following.name) {
1597
+ let ancestor = parent;
1598
+ let child = f;
1599
+ if (ancestor?.type === "ExportDeclaration") {
1600
+ child = ancestor;
1601
+ ancestor = ancestor.parent;
1602
+ }
1603
+ const expressions = ancestor?.expressions ?? ancestor?.elements;
1604
+ const currentIndex = expressions?.findIndex(([, def]) => def === child);
1605
+ let following = currentIndex >= 0 && expressions[currentIndex + 1]?.[1];
1606
+ if (following?.type === "ExportDeclaration") {
1607
+ following = following.declaration;
1608
+ }
1609
+ if (f.type === following?.type && name != null && name === following.name) {
1604
1610
  f.ts = true;
1605
1611
  } else {
1606
1612
  const block = makeEmptyBlock();
@@ -1780,14 +1786,13 @@ function assignResults(node, collect) {
1780
1786
  if (isExit(exp)) {
1781
1787
  return;
1782
1788
  }
1789
+ exp = exp;
1783
1790
  const outer = exp;
1784
- let { type } = exp;
1785
- if (type === "LabelledStatement") {
1791
+ if (exp.type === "LabelledStatement") {
1786
1792
  exp = exp.statement;
1787
- ({ type } = exp);
1788
1793
  }
1789
1794
  let ref4;
1790
- switch (type) {
1795
+ switch (exp.type) {
1791
1796
  case "BreakStatement":
1792
1797
  case "ContinueStatement":
1793
1798
  case "DebuggerStatement":
@@ -3722,24 +3727,21 @@ function processDeclarationConditionStatement(s) {
3722
3727
  }
3723
3728
  });
3724
3729
  if (conditions.length) {
3730
+ let children = condition.children;
3725
3731
  if (s.negated) {
3726
3732
  let m;
3727
3733
  if (!(m = condition.expression, typeof m === "object" && m != null && "type" in m && m.type === "UnaryExpression" && "children" in m && Array.isArray(m.children) && len2(m.children, 2) && m.children[0] === "!" && typeof m.children[1] === "object" && m.children[1] != null && "type" in m.children[1] && m.children[1].type === "ParenthesizedExpression")) {
3728
3734
  throw new Error("Unsupported negated condition");
3729
3735
  }
3730
- const { children } = condition.expression.children[1];
3731
- const close = children.pop();
3732
- conditions.forEach((c) => {
3733
- return children.push(" && ", c);
3734
- });
3735
- children.push(close);
3736
- } else {
3737
- condition.children.unshift("(");
3738
- conditions.forEach((c) => {
3739
- return condition.children.push(" && ", c);
3740
- });
3741
- condition.children.push(")");
3736
+ ;
3737
+ ({ children } = condition.expression.children[1]);
3738
+ }
3739
+ children.unshift("(");
3740
+ for (let i1 = 0, len1 = conditions.length; i1 < len1; i1++) {
3741
+ const c = conditions[i1];
3742
+ children.push(" && ", c);
3742
3743
  }
3744
+ children.push(")");
3743
3745
  }
3744
3746
  }
3745
3747
  const { blockPrefix } = condition.expression;
@@ -3792,9 +3794,6 @@ function processDeclarationConditionStatement(s) {
3792
3794
  }
3793
3795
  } else {
3794
3796
  const block = blockWithPrefix(blockPrefix, s.then);
3795
- if (block.bare && e && !block.semicolon) {
3796
- block.children.push(block.semicolon = ";");
3797
- }
3798
3797
  s.children = s.children.map(($2) => $2 === s.then ? block : $2);
3799
3798
  s.then = block;
3800
3799
  updateParentPointers(s);
@@ -4437,7 +4436,7 @@ function processForInOf($0, getRef) {
4437
4436
  }
4438
4437
  case "in": {
4439
4438
  const expRef2 = maybeRef(exp);
4440
- if (expRef2 !== exp) {
4439
+ if (!(expRef2 === exp)) {
4441
4440
  hoistDec = {
4442
4441
  type: "Declaration",
4443
4442
  children: ["let ", expRef2],
@@ -4448,36 +4447,46 @@ function processForInOf($0, getRef) {
4448
4447
  children: [" ", expRef2, " =", exp]
4449
4448
  };
4450
4449
  }
4451
- let { binding } = declaration;
4452
- if (binding?.type !== "Identifier") {
4450
+ const { binding } = declaration;
4451
+ let { pattern } = binding;
4452
+ if (!(pattern.type === "Identifier")) {
4453
4453
  const keyRef = makeRef("key");
4454
4454
  blockPrefix.push(["", [
4455
4455
  declaration,
4456
4456
  " = ",
4457
4457
  keyRef
4458
4458
  ], ";"]);
4459
+ pattern = keyRef;
4459
4460
  declaration = {
4460
4461
  type: "ForDeclaration",
4461
- binding: binding = keyRef,
4462
+ binding: {
4463
+ type: "Binding",
4464
+ pattern,
4465
+ children: [pattern],
4466
+ names: [],
4467
+ suffix: binding.suffix
4468
+ },
4462
4469
  children: ["const ", keyRef],
4463
4470
  names: []
4464
4471
  };
4465
4472
  }
4466
4473
  if (own) {
4467
4474
  const hasPropRef = getRef("hasProp");
4468
- blockPrefix.push(["", ["if (!", hasPropRef, "(", insertTrimmingSpace(expRef2, ""), ", ", insertTrimmingSpace(binding, ""), ")) continue"], ";"]);
4475
+ blockPrefix.push(["", ["if (!", hasPropRef, "(", insertTrimmingSpace(expRef2, ""), ", ", insertTrimmingSpace(pattern, ""), ")) continue"], ";"]);
4469
4476
  }
4470
4477
  if (decl2) {
4471
4478
  blockPrefix.push(["", {
4472
4479
  type: "Declaration",
4473
- children: [insertTrimmingSpace(ws2, ""), decl2, " = ", insertTrimmingSpace(expRef2, ""), "[", insertTrimmingSpace(binding, ""), "]"],
4480
+ children: [insertTrimmingSpace(ws2, ""), decl2, " = ", insertTrimmingSpace(expRef2, ""), "[", insertTrimmingSpace(pattern, ""), "]"],
4474
4481
  names: decl2.names
4475
4482
  }, ";"]);
4476
4483
  }
4484
+ ;
4477
4485
  break;
4478
4486
  }
4479
- default:
4487
+ default: {
4480
4488
  throw new Error(`for item, index must use 'of' or 'in' instead of '${inOf.token}'`);
4489
+ }
4481
4490
  }
4482
4491
  return {
4483
4492
  declaration,
@@ -4489,11 +4498,12 @@ function processForInOf($0, getRef) {
4489
4498
  }
4490
4499
 
4491
4500
  // source/parser/auto-dec.civet
4501
+ var concatAssign = (lhs, rhs) => (rhs?.[Symbol.isConcatSpreadable] ?? Array.isArray(rhs) ? lhs.push.apply(lhs, rhs) : lhs.push(rhs), lhs);
4492
4502
  function findDecs(statements) {
4493
- const predicate = ($) => $.type === "Declaration";
4494
- const declarations = gatherNodes(statements, predicate);
4503
+ const declarations = gatherNodes(statements, ($) => $.type === "Declaration");
4495
4504
  const declarationNames = declarations.flatMap((d) => d.names);
4496
- return new Set(declarationNames);
4505
+ const globals = getConfig().globals || [];
4506
+ return new Set(globals.concat(declarationNames));
4497
4507
  }
4498
4508
  function createConstLetDecs(statements, scopes, letOrConst) {
4499
4509
  function findVarDecs(statements2, decs) {
@@ -4504,7 +4514,7 @@ function createConstLetDecs(statements, scopes, letOrConst) {
4504
4514
  }
4505
4515
  let declaredIdentifiers = findVarDecs(statements);
4506
4516
  function hasDec(name) {
4507
- return declaredIdentifiers.has(name) || scopes.some((s) => s.has(name));
4517
+ return declaredIdentifiers.has(name) || scopes.some(($1) => $1.has(name));
4508
4518
  }
4509
4519
  function gatherBlockOrOther(statement) {
4510
4520
  return gatherNodes(statement, (s) => s.type === "BlockStatement" || s.type === "AssignmentExpression" || s.type === "Declaration").flatMap((node) => {
@@ -4575,14 +4585,15 @@ function createConstLetDecs(statements, scopes, letOrConst) {
4575
4585
  }
4576
4586
  function createVarDecs(block, scopes, pushVar) {
4577
4587
  function hasDec(name) {
4578
- return scopes.some((s) => s.has(name));
4588
+ return scopes.some(($2) => $2.has(name));
4579
4589
  }
4580
4590
  function findAssignments(statements2, decs2) {
4581
- let assignmentStatements2 = gatherNodes(statements2, (node) => {
4582
- return node.type === "AssignmentExpression";
4583
- });
4591
+ let assignmentStatements2 = gatherNodes(statements2, ($3) => $3.type === "AssignmentExpression");
4584
4592
  if (assignmentStatements2.length) {
4585
- assignmentStatements2 = assignmentStatements2.concat(findAssignments(assignmentStatements2.map((s) => s.children), decs2));
4593
+ concatAssign(
4594
+ assignmentStatements2,
4595
+ findAssignments(assignmentStatements2.map((s) => s.children), decs2)
4596
+ );
4586
4597
  }
4587
4598
  return assignmentStatements2;
4588
4599
  }
@@ -4597,7 +4608,7 @@ function createVarDecs(block, scopes, pushVar) {
4597
4608
  scopes.push(decs);
4598
4609
  const varIds = [];
4599
4610
  const assignmentStatements = findAssignments(statements, scopes);
4600
- const undeclaredIdentifiers = assignmentStatements.flatMap(($1) => $1?.names || []);
4611
+ const undeclaredIdentifiers = assignmentStatements.flatMap(($4) => $4?.names || []);
4601
4612
  undeclaredIdentifiers.filter((x, i, a) => {
4602
4613
  if (!hasDec(x))
4603
4614
  return a.indexOf(x) === i;
@@ -5344,7 +5355,7 @@ function expressionizeIfStatement(statement) {
5344
5355
  function expressionizeTypeIf([ifOp, condition, t, e]) {
5345
5356
  const children = [
5346
5357
  "(",
5347
- insertTrimmingSpace(condition, ""),
5358
+ trimFirstSpace(condition),
5348
5359
  "?"
5349
5360
  ];
5350
5361
  if (!xor(ifOp.negated, condition.negated)) {
@@ -5527,7 +5538,7 @@ function processCallMemberExpression(node) {
5527
5538
  [name, value] = [value, name];
5528
5539
  }
5529
5540
  if (!suppressPrefix) {
5530
- value = prefix.concat(insertTrimmingSpace(value, ""));
5541
+ value = prefix.concat(trimFirstSpace(value));
5531
5542
  }
5532
5543
  if (wValue)
5533
5544
  value.unshift(wValue);
@@ -5753,7 +5764,7 @@ function convertObjectToJSXAttributes(obj) {
5753
5764
  if (part.name.type === "ComputedPropertyName") {
5754
5765
  rest.push(part);
5755
5766
  } else {
5756
- parts.push([part.name, "={", insertTrimmingSpace(part.value, ""), "}"]);
5767
+ parts.push([part.name, "={", trimFirstSpace(part.value), "}"]);
5757
5768
  }
5758
5769
  break;
5759
5770
  case "SpreadProperty":
@@ -5778,7 +5789,7 @@ function convertObjectToJSXAttributes(obj) {
5778
5789
  }
5779
5790
  function makeGetterMethod(name, ws, value, returnType, block, kind = { token: "get" }, autoReturn = true) {
5780
5791
  const { token } = kind;
5781
- ws = insertTrimmingSpace(ws, "");
5792
+ ws = trimFirstSpace(ws);
5782
5793
  let setVal;
5783
5794
  const parameters = token === "get" ? {
5784
5795
  type: "Parameters",
@@ -6139,7 +6150,7 @@ function attachPostfixStatementAsExpression(exp, post) {
6139
6150
  }
6140
6151
  }
6141
6152
  function processTypes(node) {
6142
- return gatherRecursiveAll(node, (n) => n.type === "UnaryType").forEach((unary) => {
6153
+ return gatherRecursiveAll(node, (n) => n.type === "TypeUnary").forEach((unary) => {
6143
6154
  let last;
6144
6155
  let count = 0;
6145
6156
  let ref10;
@@ -6150,6 +6161,12 @@ function processTypes(node) {
6150
6161
  if (!count) {
6151
6162
  return;
6152
6163
  }
6164
+ let ref11;
6165
+ if (unary.suffix.length || unary.prefix.length)
6166
+ ref11 = unary;
6167
+ else
6168
+ ref11 = unary.t;
6169
+ const t = ref11;
6153
6170
  if (unary.parent?.type === "TypeTuple") {
6154
6171
  if (count === 1) {
6155
6172
  unary.suffix.push(last);
@@ -6158,18 +6175,22 @@ function processTypes(node) {
6158
6175
  replaceNode(unary, [
6159
6176
  getTrimmingSpace(unary),
6160
6177
  "(",
6161
- parenthesizeType(insertTrimmingSpace(unary, "")),
6178
+ parenthesizeType(trimFirstSpace(t)),
6162
6179
  " | null)",
6163
6180
  last
6164
6181
  ]);
6165
6182
  } else {
6166
- replaceNode(unary, [
6167
- getTrimmingSpace(unary),
6168
- "(",
6169
- parenthesizeType(insertTrimmingSpace(unary, "")),
6170
- count === 1 ? " | undefined" : " | undefined | null",
6171
- ")"
6172
- ]);
6183
+ replaceNode(unary, {
6184
+ type: "TypeParenthesized",
6185
+ ts: true,
6186
+ children: [
6187
+ getTrimmingSpace(unary),
6188
+ "(",
6189
+ parenthesizeType(trimFirstSpace(t)),
6190
+ count === 1 ? " | undefined" : " | undefined | null",
6191
+ ")"
6192
+ ]
6193
+ });
6173
6194
  }
6174
6195
  });
6175
6196
  }
@@ -6177,11 +6198,11 @@ function processStatementExpressions(statements) {
6177
6198
  gatherRecursiveAll(statements, ($7) => $7.type === "StatementExpression").forEach((_exp) => {
6178
6199
  const exp = _exp;
6179
6200
  const { statement } = exp;
6180
- let ref11;
6201
+ let ref12;
6181
6202
  switch (statement.type) {
6182
6203
  case "IfStatement": {
6183
- if (ref11 = expressionizeIfStatement(statement)) {
6184
- const expression = ref11;
6204
+ if (ref12 = expressionizeIfStatement(statement)) {
6205
+ const expression = ref12;
6185
6206
  return replaceNode(statement, expression, exp);
6186
6207
  } else {
6187
6208
  return replaceNode(statement, wrapIIFE([["", statement]]), exp);
@@ -6409,8 +6430,8 @@ function processPlaceholders(statements) {
6409
6430
  for (let i4 = 0, len3 = placeholders.length; i4 < len3; i4++) {
6410
6431
  const placeholder = placeholders[i4];
6411
6432
  typeSuffix ??= placeholder.typeSuffix;
6412
- let ref12;
6413
- replaceNode((ref12 = placeholder.children)[ref12.length - 1], ref);
6433
+ let ref13;
6434
+ replaceNode((ref13 = placeholder.children)[ref13.length - 1], ref);
6414
6435
  }
6415
6436
  const { parent } = ancestor;
6416
6437
  const body = maybeUnwrap(ancestor);
@@ -6427,16 +6448,16 @@ function processPlaceholders(statements) {
6427
6448
  }
6428
6449
  case "PipelineExpression": {
6429
6450
  const i = findChildIndex(parent, ancestor);
6430
- let ref13;
6451
+ let ref14;
6431
6452
  if (i === 1) {
6432
- ref13 = ancestor === parent.children[i];
6453
+ ref14 = ancestor === parent.children[i];
6433
6454
  } else if (i === 2) {
6434
- ref13 = ancestor === parent.children[i][findChildIndex(parent.children[i], ancestor)][3];
6455
+ ref14 = ancestor === parent.children[i][findChildIndex(parent.children[i], ancestor)][3];
6435
6456
  } else {
6436
- ref13 = void 0;
6457
+ ref14 = void 0;
6437
6458
  }
6438
6459
  ;
6439
- outer = ref13;
6460
+ outer = ref14;
6440
6461
  break;
6441
6462
  }
6442
6463
  case "AssignmentExpression":
@@ -6451,9 +6472,9 @@ function processPlaceholders(statements) {
6451
6472
  fnExp = makeLeftHandSideExpression(fnExp);
6452
6473
  }
6453
6474
  replaceNode(ancestor, fnExp, parent);
6454
- let ref14;
6455
- if (ref14 = getTrimmingSpace(body)) {
6456
- const ws = ref14;
6475
+ let ref15;
6476
+ if (ref15 = getTrimmingSpace(body)) {
6477
+ const ws = ref15;
6457
6478
  inplaceInsertTrimmingSpace(body, "");
6458
6479
  inplacePrepend(ws, fnExp);
6459
6480
  }
@@ -6498,8 +6519,8 @@ function reorderBindingRestProperty(props) {
6498
6519
  }
6499
6520
  ];
6500
6521
  }
6501
- let ref15;
6502
- if (Array.isArray(rest.delim) && (ref15 = rest.delim)[ref15.length - 1]?.token === ",") {
6522
+ let ref16;
6523
+ if (Array.isArray(rest.delim) && (ref16 = rest.delim)[ref16.length - 1]?.token === ",") {
6503
6524
  rest.delim = rest.delim.slice(0, -1);
6504
6525
  rest.children = [...rest.children.slice(0, -1), rest.delim];
6505
6526
  }
@@ -7263,6 +7284,7 @@ var grammar = {
7263
7284
  NamespaceDeclaration,
7264
7285
  OptionalEquals,
7265
7286
  TypeLexicalDeclaration,
7287
+ TypeLetOrConstDeclaration,
7266
7288
  TypeDeclarationBinding,
7267
7289
  InterfaceExtendsClause,
7268
7290
  InterfaceExtendsTarget,
@@ -7598,47 +7620,47 @@ var $L171 = (0, import_lib3.$L)("infer");
7598
7620
  var $L172 = (0, import_lib3.$L)("let");
7599
7621
  var $L173 = (0, import_lib3.$L)("const");
7600
7622
  var $L174 = (0, import_lib3.$L)("is");
7601
- var $L175 = (0, import_lib3.$L)("like");
7602
- var $L176 = (0, import_lib3.$L)("loop");
7603
- var $L177 = (0, import_lib3.$L)("new");
7604
- var $L178 = (0, import_lib3.$L)("not");
7605
- var $L179 = (0, import_lib3.$L)("of");
7606
- var $L180 = (0, import_lib3.$L)("[");
7607
- var $L181 = (0, import_lib3.$L)("operator");
7608
- var $L182 = (0, import_lib3.$L)("override");
7609
- var $L183 = (0, import_lib3.$L)("own");
7610
- var $L184 = (0, import_lib3.$L)("public");
7611
- var $L185 = (0, import_lib3.$L)("private");
7612
- var $L186 = (0, import_lib3.$L)("protected");
7613
- var $L187 = (0, import_lib3.$L)("||>");
7614
- var $L188 = (0, import_lib3.$L)("|\u25B7");
7615
- var $L189 = (0, import_lib3.$L)("|>=");
7616
- var $L190 = (0, import_lib3.$L)("\u25B7=");
7617
- var $L191 = (0, import_lib3.$L)("|>");
7618
- var $L192 = (0, import_lib3.$L)("\u25B7");
7619
- var $L193 = (0, import_lib3.$L)("readonly");
7620
- var $L194 = (0, import_lib3.$L)("return");
7621
- var $L195 = (0, import_lib3.$L)("satisfies");
7622
- var $L196 = (0, import_lib3.$L)("'");
7623
- var $L197 = (0, import_lib3.$L)("static");
7624
- var $L198 = (0, import_lib3.$L)("${");
7625
- var $L199 = (0, import_lib3.$L)("super");
7626
- var $L200 = (0, import_lib3.$L)("switch");
7627
- var $L201 = (0, import_lib3.$L)("target");
7628
- var $L202 = (0, import_lib3.$L)("then");
7629
- var $L203 = (0, import_lib3.$L)("this");
7630
- var $L204 = (0, import_lib3.$L)("throw");
7631
- var $L205 = (0, import_lib3.$L)('"""');
7632
- var $L206 = (0, import_lib3.$L)("'''");
7633
- var $L207 = (0, import_lib3.$L)("///");
7634
- var $L208 = (0, import_lib3.$L)("```");
7635
- var $L209 = (0, import_lib3.$L)("try");
7636
- var $L210 = (0, import_lib3.$L)("typeof");
7637
- var $L211 = (0, import_lib3.$L)("undefined");
7638
- var $L212 = (0, import_lib3.$L)("unless");
7639
- var $L213 = (0, import_lib3.$L)("until");
7640
- var $L214 = (0, import_lib3.$L)("using");
7641
- var $L215 = (0, import_lib3.$L)("var");
7623
+ var $L175 = (0, import_lib3.$L)("var");
7624
+ var $L176 = (0, import_lib3.$L)("like");
7625
+ var $L177 = (0, import_lib3.$L)("loop");
7626
+ var $L178 = (0, import_lib3.$L)("new");
7627
+ var $L179 = (0, import_lib3.$L)("not");
7628
+ var $L180 = (0, import_lib3.$L)("of");
7629
+ var $L181 = (0, import_lib3.$L)("[");
7630
+ var $L182 = (0, import_lib3.$L)("operator");
7631
+ var $L183 = (0, import_lib3.$L)("override");
7632
+ var $L184 = (0, import_lib3.$L)("own");
7633
+ var $L185 = (0, import_lib3.$L)("public");
7634
+ var $L186 = (0, import_lib3.$L)("private");
7635
+ var $L187 = (0, import_lib3.$L)("protected");
7636
+ var $L188 = (0, import_lib3.$L)("||>");
7637
+ var $L189 = (0, import_lib3.$L)("|\u25B7");
7638
+ var $L190 = (0, import_lib3.$L)("|>=");
7639
+ var $L191 = (0, import_lib3.$L)("\u25B7=");
7640
+ var $L192 = (0, import_lib3.$L)("|>");
7641
+ var $L193 = (0, import_lib3.$L)("\u25B7");
7642
+ var $L194 = (0, import_lib3.$L)("readonly");
7643
+ var $L195 = (0, import_lib3.$L)("return");
7644
+ var $L196 = (0, import_lib3.$L)("satisfies");
7645
+ var $L197 = (0, import_lib3.$L)("'");
7646
+ var $L198 = (0, import_lib3.$L)("static");
7647
+ var $L199 = (0, import_lib3.$L)("${");
7648
+ var $L200 = (0, import_lib3.$L)("super");
7649
+ var $L201 = (0, import_lib3.$L)("switch");
7650
+ var $L202 = (0, import_lib3.$L)("target");
7651
+ var $L203 = (0, import_lib3.$L)("then");
7652
+ var $L204 = (0, import_lib3.$L)("this");
7653
+ var $L205 = (0, import_lib3.$L)("throw");
7654
+ var $L206 = (0, import_lib3.$L)('"""');
7655
+ var $L207 = (0, import_lib3.$L)("'''");
7656
+ var $L208 = (0, import_lib3.$L)("///");
7657
+ var $L209 = (0, import_lib3.$L)("```");
7658
+ var $L210 = (0, import_lib3.$L)("try");
7659
+ var $L211 = (0, import_lib3.$L)("typeof");
7660
+ var $L212 = (0, import_lib3.$L)("undefined");
7661
+ var $L213 = (0, import_lib3.$L)("unless");
7662
+ var $L214 = (0, import_lib3.$L)("until");
7663
+ var $L215 = (0, import_lib3.$L)("using");
7642
7664
  var $L216 = (0, import_lib3.$L)("void");
7643
7665
  var $L217 = (0, import_lib3.$L)("when");
7644
7666
  var $L218 = (0, import_lib3.$L)("while");
@@ -7693,75 +7715,74 @@ var $R27 = (0, import_lib3.$R)(new RegExp("(?!\\+\\+|--)[!~+-](?!\\s)", "suy"));
7693
7715
  var $R28 = (0, import_lib3.$R)(new RegExp("[:.]", "suy"));
7694
7716
  var $R29 = (0, import_lib3.$R)(new RegExp("(?=for|if|loop|unless|until|while)", "suy"));
7695
7717
  var $R30 = (0, import_lib3.$R)(new RegExp("(?=loop|comptime|do|for|until|while)", "suy"));
7696
- var $R31 = (0, import_lib3.$R)(new RegExp("(?=[\\s\\),])", "suy"));
7697
- var $R32 = (0, import_lib3.$R)(new RegExp('[^;"\\s]+', "suy"));
7698
- var $R33 = (0, import_lib3.$R)(new RegExp("(?=[0-9.])", "suy"));
7699
- var $R34 = (0, import_lib3.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy"));
7700
- var $R35 = (0, import_lib3.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))", "suy"));
7701
- var $R36 = (0, import_lib3.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?", "suy"));
7702
- var $R37 = (0, import_lib3.$R)(new RegExp("(?:\\.[0-9](?:_[0-9]|[0-9])*)", "suy"));
7703
- var $R38 = (0, import_lib3.$R)(new RegExp("(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)", "suy"));
7704
- var $R39 = (0, import_lib3.$R)(new RegExp("0[bB][01](?:[01]|_[01])*n?", "suy"));
7705
- var $R40 = (0, import_lib3.$R)(new RegExp("0[oO][0-7](?:[0-7]|_[0-7])*n?", "suy"));
7706
- var $R41 = (0, import_lib3.$R)(new RegExp("0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?", "suy"));
7707
- var $R42 = (0, import_lib3.$R)(new RegExp("(?=[0-9])", "suy"));
7708
- var $R43 = (0, import_lib3.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)", "suy"));
7709
- var $R44 = (0, import_lib3.$R)(new RegExp('(?:\\\\.|[^"])*', "suy"));
7710
- var $R45 = (0, import_lib3.$R)(new RegExp("(?:\\\\.|[^'])*", "suy"));
7711
- var $R46 = (0, import_lib3.$R)(new RegExp('(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+', "suy"));
7712
- var $R47 = (0, import_lib3.$R)(new RegExp("(?:'(?!'')|\\\\.|[^'])*", "suy"));
7713
- var $R48 = (0, import_lib3.$R)(new RegExp('(?:\\\\.|#(?!\\{)|[^"#])+', "suy"));
7714
- var $R49 = (0, import_lib3.$R)(new RegExp("(?:\\\\.|[^\\]])*", "suy"));
7715
- var $R50 = (0, import_lib3.$R)(new RegExp("(?:\\\\.)", "suy"));
7716
- var $R51 = (0, import_lib3.$R)(new RegExp("[\\s]+", "suy"));
7717
- var $R52 = (0, import_lib3.$R)(new RegExp("\\/(?!\\/\\/)", "suy"));
7718
- var $R53 = (0, import_lib3.$R)(new RegExp("[^[\\/\\s#\\\\]+", "suy"));
7719
- var $R54 = (0, import_lib3.$R)(new RegExp("[*\\/\\r\\n]", "suy"));
7720
- var $R55 = (0, import_lib3.$R)(new RegExp("(?:\\\\.|[^[\\/\\r\\n])+", "suy"));
7721
- var $R56 = (0, import_lib3.$R)(new RegExp("(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
7722
- var $R57 = (0, import_lib3.$R)(new RegExp("(?=[`'\"])", "suy"));
7723
- var $R58 = (0, import_lib3.$R)(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy"));
7724
- var $R59 = (0, import_lib3.$R)(new RegExp("(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+", "suy"));
7725
- var $R60 = (0, import_lib3.$R)(new RegExp("(?:on|off|yes|no)(?!\\p{ID_Continue})", "suy"));
7726
- var $R61 = (0, import_lib3.$R)(new RegExp("(?:isnt)(?!\\p{ID_Continue})", "suy"));
7727
- var $R62 = (0, import_lib3.$R)(new RegExp("(?:by)(?!\\p{ID_Continue})", "suy"));
7728
- var $R63 = (0, import_lib3.$R)(new RegExp("(?:of)(?!\\p{ID_Continue})", "suy"));
7729
- var $R64 = (0, import_lib3.$R)(new RegExp("(?:and|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|not|null|or|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy"));
7730
- var $R65 = (0, import_lib3.$R)(new RegExp("(?=\\/|#)", "suy"));
7731
- var $R66 = (0, import_lib3.$R)(new RegExp("\\/\\/(?!\\/)[^\\r\\n]*", "suy"));
7732
- var $R67 = (0, import_lib3.$R)(new RegExp(".", "suy"));
7733
- var $R68 = (0, import_lib3.$R)(new RegExp("#(?!##(?!#))([^\\r\\n]*)", "suy"));
7734
- var $R69 = (0, import_lib3.$R)(new RegExp("[^]*?###", "suy"));
7735
- var $R70 = (0, import_lib3.$R)(new RegExp("###(?!#)", "suy"));
7736
- var $R71 = (0, import_lib3.$R)(new RegExp("\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\/", "suy"));
7737
- var $R72 = (0, import_lib3.$R)(new RegExp("(?=[ \\t\\/\\\\])", "suy"));
7738
- var $R73 = (0, import_lib3.$R)(new RegExp("(?=\\s|\\/|#)", "suy"));
7739
- var $R74 = (0, import_lib3.$R)(new RegExp("(?!\\p{ID_Continue})", "suy"));
7740
- var $R75 = (0, import_lib3.$R)(new RegExp("[=:]", "suy"));
7741
- var $R76 = (0, import_lib3.$R)(new RegExp("['\u2019]s", "suy"));
7742
- var $R77 = (0, import_lib3.$R)(new RegExp("\\s", "suy"));
7743
- var $R78 = (0, import_lib3.$R)(new RegExp("(?=[<])", "suy"));
7744
- var $R79 = (0, import_lib3.$R)(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy"));
7745
- var $R80 = (0, import_lib3.$R)(new RegExp("[!+-]", "suy"));
7746
- var $R81 = (0, import_lib3.$R)(new RegExp("[\\s>]|\\/>", "suy"));
7747
- var $R82 = (0, import_lib3.$R)(new RegExp("(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+", "suy"));
7748
- var $R83 = (0, import_lib3.$R)(new RegExp(`"[^"]*"|'[^']*'`, "suy"));
7749
- var $R84 = (0, import_lib3.$R)(new RegExp("[<>]", "suy"));
7750
- var $R85 = (0, import_lib3.$R)(new RegExp("[!~+-](?!\\s|[!~+-]*&)", "suy"));
7751
- var $R86 = (0, import_lib3.$R)(new RegExp("(?:-[^-]|[^-]*)*", "suy"));
7752
- var $R87 = (0, import_lib3.$R)(new RegExp("[^{}<>\\r\\n]+", "suy"));
7753
- var $R88 = (0, import_lib3.$R)(new RegExp("[+-]?", "suy"));
7754
- var $R89 = (0, import_lib3.$R)(new RegExp("(?=if|unless)", "suy"));
7755
- var $R90 = (0, import_lib3.$R)(new RegExp("[|&<!=\\-\u21D2\u2192]", "suy"));
7756
- var $R91 = (0, import_lib3.$R)(new RegExp("(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
7757
- var $R92 = (0, import_lib3.$R)(new RegExp("#![^\\r\\n]*", "suy"));
7758
- var $R93 = (0, import_lib3.$R)(new RegExp("[\\t ]*", "suy"));
7759
- var $R94 = (0, import_lib3.$R)(new RegExp("[\\s]*", "suy"));
7760
- var $R95 = (0, import_lib3.$R)(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?", "suy"));
7761
- var $R96 = (0, import_lib3.$R)(new RegExp("\\/\\/\\/[^\\r\\n]*", "suy"));
7762
- var $R97 = (0, import_lib3.$R)(new RegExp("(?=[ \\t\\r\\n\\/#]|$)", "suy"));
7763
- var $R98 = (0, import_lib3.$R)(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
7764
- var $R99 = (0, import_lib3.$R)(new RegExp("[^]*", "suy"));
7718
+ var $R31 = (0, import_lib3.$R)(new RegExp('[^;"\\s]+', "suy"));
7719
+ var $R32 = (0, import_lib3.$R)(new RegExp("(?=[0-9.])", "suy"));
7720
+ var $R33 = (0, import_lib3.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy"));
7721
+ var $R34 = (0, import_lib3.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))", "suy"));
7722
+ var $R35 = (0, import_lib3.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?", "suy"));
7723
+ var $R36 = (0, import_lib3.$R)(new RegExp("(?:\\.[0-9](?:_[0-9]|[0-9])*)", "suy"));
7724
+ var $R37 = (0, import_lib3.$R)(new RegExp("(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)", "suy"));
7725
+ var $R38 = (0, import_lib3.$R)(new RegExp("0[bB][01](?:[01]|_[01])*n?", "suy"));
7726
+ var $R39 = (0, import_lib3.$R)(new RegExp("0[oO][0-7](?:[0-7]|_[0-7])*n?", "suy"));
7727
+ var $R40 = (0, import_lib3.$R)(new RegExp("0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?", "suy"));
7728
+ var $R41 = (0, import_lib3.$R)(new RegExp("(?=[0-9])", "suy"));
7729
+ var $R42 = (0, import_lib3.$R)(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)", "suy"));
7730
+ var $R43 = (0, import_lib3.$R)(new RegExp('(?:\\\\.|[^"])*', "suy"));
7731
+ var $R44 = (0, import_lib3.$R)(new RegExp("(?:\\\\.|[^'])*", "suy"));
7732
+ var $R45 = (0, import_lib3.$R)(new RegExp('(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+', "suy"));
7733
+ var $R46 = (0, import_lib3.$R)(new RegExp("(?:'(?!'')|\\\\.|[^'])*", "suy"));
7734
+ var $R47 = (0, import_lib3.$R)(new RegExp('(?:\\\\.|#(?!\\{)|[^"#])+', "suy"));
7735
+ var $R48 = (0, import_lib3.$R)(new RegExp("(?:\\\\.|[^\\]])*", "suy"));
7736
+ var $R49 = (0, import_lib3.$R)(new RegExp("(?:\\\\.)", "suy"));
7737
+ var $R50 = (0, import_lib3.$R)(new RegExp("[\\s]+", "suy"));
7738
+ var $R51 = (0, import_lib3.$R)(new RegExp("\\/(?!\\/\\/)", "suy"));
7739
+ var $R52 = (0, import_lib3.$R)(new RegExp("[^[\\/\\s#\\\\]+", "suy"));
7740
+ var $R53 = (0, import_lib3.$R)(new RegExp("[*\\/\\r\\n]", "suy"));
7741
+ var $R54 = (0, import_lib3.$R)(new RegExp("(?:\\\\.|[^[\\/\\r\\n])+", "suy"));
7742
+ var $R55 = (0, import_lib3.$R)(new RegExp("(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
7743
+ var $R56 = (0, import_lib3.$R)(new RegExp("(?=[`'\"])", "suy"));
7744
+ var $R57 = (0, import_lib3.$R)(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy"));
7745
+ var $R58 = (0, import_lib3.$R)(new RegExp("(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+", "suy"));
7746
+ var $R59 = (0, import_lib3.$R)(new RegExp("(?:on|off|yes|no)(?!\\p{ID_Continue})", "suy"));
7747
+ var $R60 = (0, import_lib3.$R)(new RegExp("(?:isnt)(?!\\p{ID_Continue})", "suy"));
7748
+ var $R61 = (0, import_lib3.$R)(new RegExp("(?:by)(?!\\p{ID_Continue})", "suy"));
7749
+ var $R62 = (0, import_lib3.$R)(new RegExp("(?:of)(?!\\p{ID_Continue})", "suy"));
7750
+ var $R63 = (0, import_lib3.$R)(new RegExp("(?:and|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|not|null|or|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy"));
7751
+ var $R64 = (0, import_lib3.$R)(new RegExp("(?=\\/|#)", "suy"));
7752
+ var $R65 = (0, import_lib3.$R)(new RegExp("\\/\\/(?!\\/)[^\\r\\n]*", "suy"));
7753
+ var $R66 = (0, import_lib3.$R)(new RegExp(".", "suy"));
7754
+ var $R67 = (0, import_lib3.$R)(new RegExp("#(?!##(?!#))([^\\r\\n]*)", "suy"));
7755
+ var $R68 = (0, import_lib3.$R)(new RegExp("[^]*?###", "suy"));
7756
+ var $R69 = (0, import_lib3.$R)(new RegExp("###(?!#)", "suy"));
7757
+ var $R70 = (0, import_lib3.$R)(new RegExp("\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\/", "suy"));
7758
+ var $R71 = (0, import_lib3.$R)(new RegExp("(?=[ \\t\\/\\\\])", "suy"));
7759
+ var $R72 = (0, import_lib3.$R)(new RegExp("(?=\\s|\\/|#)", "suy"));
7760
+ var $R73 = (0, import_lib3.$R)(new RegExp("(?!\\p{ID_Continue})", "suy"));
7761
+ var $R74 = (0, import_lib3.$R)(new RegExp("[=:]", "suy"));
7762
+ var $R75 = (0, import_lib3.$R)(new RegExp("['\u2019]s", "suy"));
7763
+ var $R76 = (0, import_lib3.$R)(new RegExp("\\s", "suy"));
7764
+ var $R77 = (0, import_lib3.$R)(new RegExp("(?=[<])", "suy"));
7765
+ var $R78 = (0, import_lib3.$R)(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy"));
7766
+ var $R79 = (0, import_lib3.$R)(new RegExp("[!+-]", "suy"));
7767
+ var $R80 = (0, import_lib3.$R)(new RegExp("[\\s>]|\\/>", "suy"));
7768
+ var $R81 = (0, import_lib3.$R)(new RegExp("(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+", "suy"));
7769
+ var $R82 = (0, import_lib3.$R)(new RegExp(`"[^"]*"|'[^']*'`, "suy"));
7770
+ var $R83 = (0, import_lib3.$R)(new RegExp("[<>]", "suy"));
7771
+ var $R84 = (0, import_lib3.$R)(new RegExp("[!~+-](?!\\s|[!~+-]*&)", "suy"));
7772
+ var $R85 = (0, import_lib3.$R)(new RegExp("(?:-[^-]|[^-]*)*", "suy"));
7773
+ var $R86 = (0, import_lib3.$R)(new RegExp("[^{}<>\\r\\n]+", "suy"));
7774
+ var $R87 = (0, import_lib3.$R)(new RegExp("[+-]?", "suy"));
7775
+ var $R88 = (0, import_lib3.$R)(new RegExp("(?=if|unless)", "suy"));
7776
+ var $R89 = (0, import_lib3.$R)(new RegExp("[|&<!=\\-\u21D2\u2192]", "suy"));
7777
+ var $R90 = (0, import_lib3.$R)(new RegExp("(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])", "suy"));
7778
+ var $R91 = (0, import_lib3.$R)(new RegExp("#![^\\r\\n]*", "suy"));
7779
+ var $R92 = (0, import_lib3.$R)(new RegExp("[\\t ]*", "suy"));
7780
+ var $R93 = (0, import_lib3.$R)(new RegExp("[\\s]*", "suy"));
7781
+ var $R94 = (0, import_lib3.$R)(new RegExp("\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([\\p{ID_Continue}.,+-]*))?", "suy"));
7782
+ var $R95 = (0, import_lib3.$R)(new RegExp("\\/\\/\\/[^\\r\\n]*", "suy"));
7783
+ var $R96 = (0, import_lib3.$R)(new RegExp("(?=[ \\t\\r\\n\\/#]|$)", "suy"));
7784
+ var $R97 = (0, import_lib3.$R)(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
7785
+ var $R98 = (0, import_lib3.$R)(new RegExp("[^]*", "suy"));
7765
7786
  var Program$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(Reset, Init, (0, import_lib3.$E)(EOS), TopLevelStatements, __), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
7766
7787
  var reset = $1;
7767
7788
  var init = $2;
@@ -9588,17 +9609,24 @@ var Parameters$$ = [Parameters$0, Parameters$1];
9588
9609
  function Parameters(ctx, state2) {
9589
9610
  return (0, import_lib3.$EVENT_C)(ctx, state2, "Parameters", Parameters$$);
9590
9611
  }
9591
- var ShortArrowParameters$0 = ObjectBindingPattern;
9592
- var ShortArrowParameters$1 = ArrayBindingPattern;
9593
- var ShortArrowParameters$$ = [ShortArrowParameters$0, ShortArrowParameters$1];
9612
+ var ShortArrowParameters$0 = (0, import_lib3.$TV)((0, import_lib3.$C)(ObjectBindingPattern, ArrayBindingPattern), function($skip, $loc, $0, $1) {
9613
+ var binding = $0;
9614
+ const { typeSuffix } = binding;
9615
+ return {
9616
+ type: "Parameter",
9617
+ children: [binding, typeSuffix],
9618
+ names: binding.names,
9619
+ typeSuffix
9620
+ };
9621
+ });
9594
9622
  function ShortArrowParameters(ctx, state2) {
9595
- return (0, import_lib3.$EVENT_C)(ctx, state2, "ShortArrowParameters", ShortArrowParameters$$);
9623
+ return (0, import_lib3.$EVENT)(ctx, state2, "ShortArrowParameters", ShortArrowParameters$0);
9596
9624
  }
9597
9625
  var ArrowParameters$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(ShortArrowParameters), function($skip, $loc, $0, $1) {
9598
9626
  return {
9599
9627
  type: "Parameters",
9600
- children: ["(", $0, ")"],
9601
- names: $0.names
9628
+ children: ["(", $1, ")"],
9629
+ names: $1.names
9602
9630
  };
9603
9631
  });
9604
9632
  var ArrowParameters$1 = Parameters;
@@ -12687,6 +12715,14 @@ var IfStatement$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$C)
12687
12715
  kind = { ...kind, token: "if" };
12688
12716
  condition = negateCondition(condition);
12689
12717
  }
12718
+ if (block.bare && e) {
12719
+ const semicolon = ";";
12720
+ block = {
12721
+ ...block,
12722
+ semicolon,
12723
+ children: [...block.children, semicolon]
12724
+ };
12725
+ }
12690
12726
  return {
12691
12727
  type: "IfStatement",
12692
12728
  children: [kind, ws, condition, block, e],
@@ -12700,6 +12736,13 @@ var IfStatement$1 = (0, import_lib3.$TS)((0, import_lib3.$S)(IfClause, BlockOrEm
12700
12736
  var clause = $1;
12701
12737
  var block = $2;
12702
12738
  var e = $3;
12739
+ if (block.bare && e) {
12740
+ block = {
12741
+ ...block,
12742
+ semicolon: ";",
12743
+ children: [...block.children, ";"]
12744
+ };
12745
+ }
12703
12746
  return {
12704
12747
  type: "IfStatement",
12705
12748
  children: [...clause.children, block, e],
@@ -13122,23 +13165,13 @@ var ForRangeParameters$$ = [ForRangeParameters$0, ForRangeParameters$1];
13122
13165
  function ForRangeParameters(ctx, state2) {
13123
13166
  return (0, import_lib3.$EVENT_C)(ctx, state2, "ForRangeParameters", ForRangeParameters$$);
13124
13167
  }
13125
- var ForInOfDeclaration$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(Var, ForBinding), function($skip, $loc, $0, $1, $2) {
13126
- var binding = $2;
13127
- return {
13128
- type: "ForDeclaration",
13129
- children: $0,
13130
- declare: $1,
13131
- binding,
13132
- names: binding.names
13133
- };
13134
- });
13135
- var ForInOfDeclaration$1 = ForDeclaration;
13136
- var ForInOfDeclaration$2 = LeftHandSideExpression;
13137
- var ForInOfDeclaration$$ = [ForInOfDeclaration$0, ForInOfDeclaration$1, ForInOfDeclaration$2];
13168
+ var ForInOfDeclaration$0 = ForDeclaration;
13169
+ var ForInOfDeclaration$1 = LeftHandSideExpression;
13170
+ var ForInOfDeclaration$$ = [ForInOfDeclaration$0, ForInOfDeclaration$1];
13138
13171
  function ForInOfDeclaration(ctx, state2) {
13139
13172
  return (0, import_lib3.$EVENT_C)(ctx, state2, "ForInOfDeclaration", ForInOfDeclaration$$);
13140
13173
  }
13141
- var ForDeclaration$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(LetOrConst, ForBinding), function($skip, $loc, $0, $1, $2) {
13174
+ var ForDeclaration$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(LetOrConstOrVar, ForBinding), function($skip, $loc, $0, $1, $2) {
13142
13175
  var c = $1;
13143
13176
  var binding = $2;
13144
13177
  return {
@@ -13149,9 +13182,9 @@ var ForDeclaration$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(LetOrConst, ForB
13149
13182
  names: binding.names
13150
13183
  };
13151
13184
  });
13152
- var ForDeclaration$1 = (0, import_lib3.$TS)((0, import_lib3.$S)(InsertConst, ForBinding, (0, import_lib3.$EXPECT)($R31, "ForDeclaration /(?=[\\s\\),])/")), function($skip, $loc, $0, $1, $2, $3) {
13185
+ var ForDeclaration$1 = (0, import_lib3.$TS)((0, import_lib3.$S)(InsertConst, (0, import_lib3.$N)(ActualMemberExpression), ForBinding), function($skip, $loc, $0, $1, $2, $3) {
13153
13186
  var c = $1;
13154
- var binding = $2;
13187
+ var binding = $3;
13155
13188
  return {
13156
13189
  type: "ForDeclaration",
13157
13190
  children: [c, binding],
@@ -13164,11 +13197,22 @@ var ForDeclaration$$ = [ForDeclaration$0, ForDeclaration$1];
13164
13197
  function ForDeclaration(ctx, state2) {
13165
13198
  return (0, import_lib3.$EVENT_C)(ctx, state2, "ForDeclaration", ForDeclaration$$);
13166
13199
  }
13167
- var ForBinding$0 = BindingIdentifier;
13168
- var ForBinding$1 = BindingPattern;
13169
- var ForBinding$$ = [ForBinding$0, ForBinding$1];
13200
+ var ForBinding$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$C)(BindingPattern, BindingIdentifier), (0, import_lib3.$E)(TypeSuffix)), function($skip, $loc, $0, $1, $2) {
13201
+ var pattern = $1;
13202
+ var suffix = $2;
13203
+ suffix ??= pattern.typeSuffix;
13204
+ return {
13205
+ type: "Binding",
13206
+ children: [pattern, suffix],
13207
+ names: pattern.names,
13208
+ pattern,
13209
+ suffix,
13210
+ splices: [],
13211
+ thisAssignments: []
13212
+ };
13213
+ });
13170
13214
  function ForBinding(ctx, state2) {
13171
- return (0, import_lib3.$EVENT_C)(ctx, state2, "ForBinding", ForBinding$$);
13215
+ return (0, import_lib3.$EVENT)(ctx, state2, "ForBinding", ForBinding$0);
13172
13216
  }
13173
13217
  var SwitchStatement$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(Switch, (0, import_lib3.$C)(EmptyCondition, Condition), CaseBlock), function($skip, $loc, $0, $1, $2, $3) {
13174
13218
  var condition = $2;
@@ -14099,7 +14143,7 @@ var UnprocessedModuleSpecifier$$ = [UnprocessedModuleSpecifier$0, UnprocessedMod
14099
14143
  function UnprocessedModuleSpecifier(ctx, state2) {
14100
14144
  return (0, import_lib3.$EVENT_C)(ctx, state2, "UnprocessedModuleSpecifier", UnprocessedModuleSpecifier$$);
14101
14145
  }
14102
- var UnquotedSpecifier$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($R32, 'UnquotedSpecifier /[^;"\\s]+/'), function($skip, $loc, $0, $1) {
14146
+ var UnquotedSpecifier$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($R31, 'UnquotedSpecifier /[^;"\\s]+/'), function($skip, $loc, $0, $1) {
14103
14147
  var spec = $0;
14104
14148
  return { $loc, token: `"${spec}"` };
14105
14149
  });
@@ -14358,7 +14402,7 @@ var VariableDeclarationList$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(Lexical
14358
14402
  function VariableDeclarationList(ctx, state2) {
14359
14403
  return (0, import_lib3.$EVENT)(ctx, state2, "VariableDeclarationList", VariableDeclarationList$0);
14360
14404
  }
14361
- var NumericLiteral$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R33, "NumericLiteral /(?=[0-9.])/"), NumericLiteralKind), function($skip, $loc, $0, $1, $2) {
14405
+ var NumericLiteral$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R32, "NumericLiteral /(?=[0-9.])/"), NumericLiteralKind), function($skip, $loc, $0, $1, $2) {
14362
14406
  var token = $2;
14363
14407
  return { type: "NumericLiteral", $loc, token };
14364
14408
  });
@@ -14374,36 +14418,36 @@ var NumericLiteralKind$$ = [NumericLiteralKind$0, NumericLiteralKind$1, NumericL
14374
14418
  function NumericLiteralKind(ctx, state2) {
14375
14419
  return (0, import_lib3.$EVENT_C)(ctx, state2, "NumericLiteralKind", NumericLiteralKind$$);
14376
14420
  }
14377
- var DecimalBigIntegerLiteral$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R34, "DecimalBigIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)n/"));
14421
+ var DecimalBigIntegerLiteral$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R33, "DecimalBigIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)n/"));
14378
14422
  function DecimalBigIntegerLiteral(ctx, state2) {
14379
14423
  return (0, import_lib3.$EVENT)(ctx, state2, "DecimalBigIntegerLiteral", DecimalBigIntegerLiteral$0);
14380
14424
  }
14381
- var DecimalLiteral$0 = (0, import_lib3.$TV)((0, import_lib3.$TEXT)((0, import_lib3.$EXPECT)($R35, "DecimalLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))/")), function($skip, $loc, $0, $1) {
14425
+ var DecimalLiteral$0 = (0, import_lib3.$TV)((0, import_lib3.$TEXT)((0, import_lib3.$EXPECT)($R34, "DecimalLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)(?=\\.(?:\\p{ID_Start}|[_$]))/")), function($skip, $loc, $0, $1) {
14382
14426
  return $1 + ".";
14383
14427
  });
14384
- var DecimalLiteral$1 = (0, import_lib3.$TEXT)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R36, "DecimalLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?/"), (0, import_lib3.$E)(ExponentPart)));
14385
- var DecimalLiteral$2 = (0, import_lib3.$TEXT)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R37, "DecimalLiteral /(?:\\.[0-9](?:_[0-9]|[0-9])*)/"), (0, import_lib3.$E)(ExponentPart)));
14428
+ var DecimalLiteral$1 = (0, import_lib3.$TEXT)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R35, "DecimalLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)(?:\\.(?:[0-9](?:_[0-9]|[0-9])*))?/"), (0, import_lib3.$E)(ExponentPart)));
14429
+ var DecimalLiteral$2 = (0, import_lib3.$TEXT)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R36, "DecimalLiteral /(?:\\.[0-9](?:_[0-9]|[0-9])*)/"), (0, import_lib3.$E)(ExponentPart)));
14386
14430
  var DecimalLiteral$$ = [DecimalLiteral$0, DecimalLiteral$1, DecimalLiteral$2];
14387
14431
  function DecimalLiteral(ctx, state2) {
14388
14432
  return (0, import_lib3.$EVENT_C)(ctx, state2, "DecimalLiteral", DecimalLiteral$$);
14389
14433
  }
14390
- var ExponentPart$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R38, "ExponentPart /(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)/"));
14434
+ var ExponentPart$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R37, "ExponentPart /(?:[eE][+-]?[0-9]+(?:_[0-9]|[0-9])*)/"));
14391
14435
  function ExponentPart(ctx, state2) {
14392
14436
  return (0, import_lib3.$EVENT)(ctx, state2, "ExponentPart", ExponentPart$0);
14393
14437
  }
14394
- var BinaryIntegerLiteral$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R39, "BinaryIntegerLiteral /0[bB][01](?:[01]|_[01])*n?/"));
14438
+ var BinaryIntegerLiteral$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R38, "BinaryIntegerLiteral /0[bB][01](?:[01]|_[01])*n?/"));
14395
14439
  function BinaryIntegerLiteral(ctx, state2) {
14396
14440
  return (0, import_lib3.$EVENT)(ctx, state2, "BinaryIntegerLiteral", BinaryIntegerLiteral$0);
14397
14441
  }
14398
- var OctalIntegerLiteral$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R40, "OctalIntegerLiteral /0[oO][0-7](?:[0-7]|_[0-7])*n?/"));
14442
+ var OctalIntegerLiteral$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R39, "OctalIntegerLiteral /0[oO][0-7](?:[0-7]|_[0-7])*n?/"));
14399
14443
  function OctalIntegerLiteral(ctx, state2) {
14400
14444
  return (0, import_lib3.$EVENT)(ctx, state2, "OctalIntegerLiteral", OctalIntegerLiteral$0);
14401
14445
  }
14402
- var HexIntegerLiteral$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R41, "HexIntegerLiteral /0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?/"));
14446
+ var HexIntegerLiteral$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R40, "HexIntegerLiteral /0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*n?/"));
14403
14447
  function HexIntegerLiteral(ctx, state2) {
14404
14448
  return (0, import_lib3.$EVENT)(ctx, state2, "HexIntegerLiteral", HexIntegerLiteral$0);
14405
14449
  }
14406
- var IntegerLiteral$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R42, "IntegerLiteral /(?=[0-9])/"), IntegerLiteralKind), function($skip, $loc, $0, $1, $2) {
14450
+ var IntegerLiteral$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R41, "IntegerLiteral /(?=[0-9])/"), IntegerLiteralKind), function($skip, $loc, $0, $1, $2) {
14407
14451
  var token = $2;
14408
14452
  return { $loc, token };
14409
14453
  });
@@ -14419,7 +14463,7 @@ var IntegerLiteralKind$$ = [IntegerLiteralKind$0, IntegerLiteralKind$1, IntegerL
14419
14463
  function IntegerLiteralKind(ctx, state2) {
14420
14464
  return (0, import_lib3.$EVENT_C)(ctx, state2, "IntegerLiteralKind", IntegerLiteralKind$$);
14421
14465
  }
14422
- var DecimalIntegerLiteral$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R43, "DecimalIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)/"));
14466
+ var DecimalIntegerLiteral$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R42, "DecimalIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)/"));
14423
14467
  function DecimalIntegerLiteral(ctx, state2) {
14424
14468
  return (0, import_lib3.$EVENT)(ctx, state2, "DecimalIntegerLiteral", DecimalIntegerLiteral$0);
14425
14469
  }
@@ -14443,25 +14487,25 @@ var StringLiteral$$ = [StringLiteral$0, StringLiteral$1];
14443
14487
  function StringLiteral(ctx, state2) {
14444
14488
  return (0, import_lib3.$EVENT_C)(ctx, state2, "StringLiteral", StringLiteral$$);
14445
14489
  }
14446
- var DoubleStringCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R44, 'DoubleStringCharacters /(?:\\\\.|[^"])*/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14490
+ var DoubleStringCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R43, 'DoubleStringCharacters /(?:\\\\.|[^"])*/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14447
14491
  return { $loc, token: $0 };
14448
14492
  });
14449
14493
  function DoubleStringCharacters(ctx, state2) {
14450
14494
  return (0, import_lib3.$EVENT)(ctx, state2, "DoubleStringCharacters", DoubleStringCharacters$0);
14451
14495
  }
14452
- var SingleStringCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R45, "SingleStringCharacters /(?:\\\\.|[^'])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14496
+ var SingleStringCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R44, "SingleStringCharacters /(?:\\\\.|[^'])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14453
14497
  return { $loc, token: $0 };
14454
14498
  });
14455
14499
  function SingleStringCharacters(ctx, state2) {
14456
14500
  return (0, import_lib3.$EVENT)(ctx, state2, "SingleStringCharacters", SingleStringCharacters$0);
14457
14501
  }
14458
- var TripleDoubleStringCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R46, 'TripleDoubleStringCharacters /(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14502
+ var TripleDoubleStringCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R45, 'TripleDoubleStringCharacters /(?:"(?!"")|#(?!\\{)|\\\\.|[^#"])+/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14459
14503
  return { $loc, token: $0 };
14460
14504
  });
14461
14505
  function TripleDoubleStringCharacters(ctx, state2) {
14462
14506
  return (0, import_lib3.$EVENT)(ctx, state2, "TripleDoubleStringCharacters", TripleDoubleStringCharacters$0);
14463
14507
  }
14464
- var TripleSingleStringCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R47, "TripleSingleStringCharacters /(?:'(?!'')|\\\\.|[^'])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14508
+ var TripleSingleStringCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R46, "TripleSingleStringCharacters /(?:'(?!'')|\\\\.|[^'])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14465
14509
  return { $loc, token: $0 };
14466
14510
  });
14467
14511
  function TripleSingleStringCharacters(ctx, state2) {
@@ -14484,7 +14528,7 @@ var CoffeeInterpolatedDoubleQuotedString$0 = (0, import_lib3.$TS)((0, import_lib
14484
14528
  function CoffeeInterpolatedDoubleQuotedString(ctx, state2) {
14485
14529
  return (0, import_lib3.$EVENT)(ctx, state2, "CoffeeInterpolatedDoubleQuotedString", CoffeeInterpolatedDoubleQuotedString$0);
14486
14530
  }
14487
- var CoffeeDoubleQuotedStringCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R48, 'CoffeeDoubleQuotedStringCharacters /(?:\\\\.|#(?!\\{)|[^"#])+/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14531
+ var CoffeeDoubleQuotedStringCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R47, 'CoffeeDoubleQuotedStringCharacters /(?:\\\\.|#(?!\\{)|[^"#])+/'), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14488
14532
  return { $loc, token: $0 };
14489
14533
  });
14490
14534
  function CoffeeDoubleQuotedStringCharacters(ctx, state2) {
@@ -14504,7 +14548,7 @@ var RegularExpressionClass$0 = (0, import_lib3.$TV)((0, import_lib3.$TEXT)((0, i
14504
14548
  function RegularExpressionClass(ctx, state2) {
14505
14549
  return (0, import_lib3.$EVENT)(ctx, state2, "RegularExpressionClass", RegularExpressionClass$0);
14506
14550
  }
14507
- var RegularExpressionClassCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R49, "RegularExpressionClassCharacters /(?:\\\\.|[^\\]])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14551
+ var RegularExpressionClassCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R48, "RegularExpressionClassCharacters /(?:\\\\.|[^\\]])*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14508
14552
  return { $loc, token: $0 };
14509
14553
  });
14510
14554
  function RegularExpressionClassCharacters(ctx, state2) {
@@ -14561,7 +14605,7 @@ var HeregexPart$1 = (0, import_lib3.$T)((0, import_lib3.$S)(CoffeeStringSubstitu
14561
14605
  var HeregexPart$2 = (0, import_lib3.$T)((0, import_lib3.$S)(TemplateSubstitution), function(value) {
14562
14606
  return { "type": "Substitution", "children": value[0] };
14563
14607
  });
14564
- var HeregexPart$3 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R50, "HeregexPart /(?:\\\\.)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14608
+ var HeregexPart$3 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R49, "HeregexPart /(?:\\\\.)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14565
14609
  let token = $0;
14566
14610
  switch ($0[1]) {
14567
14611
  case "\n":
@@ -14579,13 +14623,13 @@ var HeregexPart$3 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R50, "Heregex
14579
14623
  var HeregexPart$4 = (0, import_lib3.$TS)((0, import_lib3.$S)(HeregexComment), function($skip, $loc, $0, $1) {
14580
14624
  return { $loc, token: "" };
14581
14625
  });
14582
- var HeregexPart$5 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R51, "HeregexPart /[\\s]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14626
+ var HeregexPart$5 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R50, "HeregexPart /[\\s]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14583
14627
  return { $loc, token: "" };
14584
14628
  });
14585
- var HeregexPart$6 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R52, "HeregexPart /\\/(?!\\/\\/)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14629
+ var HeregexPart$6 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R51, "HeregexPart /\\/(?!\\/\\/)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14586
14630
  return { $loc, token: "\\/" };
14587
14631
  });
14588
- var HeregexPart$7 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R53, "HeregexPart /[^[\\/\\s#\\\\]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14632
+ var HeregexPart$7 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R52, "HeregexPart /[^[\\/\\s#\\\\]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14589
14633
  return { $loc, token: $0 };
14590
14634
  });
14591
14635
  var HeregexPart$$ = [HeregexPart$0, HeregexPart$1, HeregexPart$2, HeregexPart$3, HeregexPart$4, HeregexPart$5, HeregexPart$6, HeregexPart$7];
@@ -14598,7 +14642,7 @@ var HeregexComment$$ = [HeregexComment$0, HeregexComment$1];
14598
14642
  function HeregexComment(ctx, state2) {
14599
14643
  return (0, import_lib3.$EVENT_C)(ctx, state2, "HeregexComment", HeregexComment$$);
14600
14644
  }
14601
- var RegularExpressionBody$0 = (0, import_lib3.$S)((0, import_lib3.$N)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R54, "RegularExpressionBody /[*\\/\\r\\n]/"))), (0, import_lib3.$Q)(RegExpPart));
14645
+ var RegularExpressionBody$0 = (0, import_lib3.$S)((0, import_lib3.$N)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R53, "RegularExpressionBody /[*\\/\\r\\n]/"))), (0, import_lib3.$Q)(RegExpPart));
14602
14646
  function RegularExpressionBody(ctx, state2) {
14603
14647
  return (0, import_lib3.$EVENT)(ctx, state2, "RegularExpressionBody", RegularExpressionBody$0);
14604
14648
  }
@@ -14608,15 +14652,15 @@ var RegExpPart$$ = [RegExpPart$0, RegExpPart$1];
14608
14652
  function RegExpPart(ctx, state2) {
14609
14653
  return (0, import_lib3.$EVENT_C)(ctx, state2, "RegExpPart", RegExpPart$$);
14610
14654
  }
14611
- var RegExpCharacter$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R55, "RegExpCharacter /(?:\\\\.|[^[\\/\\r\\n])+/"));
14655
+ var RegExpCharacter$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R54, "RegExpCharacter /(?:\\\\.|[^[\\/\\r\\n])+/"));
14612
14656
  function RegExpCharacter(ctx, state2) {
14613
14657
  return (0, import_lib3.$EVENT)(ctx, state2, "RegExpCharacter", RegExpCharacter$0);
14614
14658
  }
14615
- var RegularExpressionFlags$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R56, "RegularExpressionFlags /(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
14659
+ var RegularExpressionFlags$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R55, "RegularExpressionFlags /(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
14616
14660
  function RegularExpressionFlags(ctx, state2) {
14617
14661
  return (0, import_lib3.$EVENT)(ctx, state2, "RegularExpressionFlags", RegularExpressionFlags$0);
14618
14662
  }
14619
- var TemplateLiteral$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R57, "TemplateLiteral /(?=[`'\"])/"), _TemplateLiteral), function(value) {
14663
+ var TemplateLiteral$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R56, "TemplateLiteral /(?=[`'\"])/"), _TemplateLiteral), function(value) {
14620
14664
  return value[1];
14621
14665
  });
14622
14666
  function TemplateLiteral(ctx, state2) {
@@ -14656,28 +14700,28 @@ var TemplateSubstitution$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(Substituti
14656
14700
  function TemplateSubstitution(ctx, state2) {
14657
14701
  return (0, import_lib3.$EVENT)(ctx, state2, "TemplateSubstitution", TemplateSubstitution$0);
14658
14702
  }
14659
- var TemplateCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R58, "TemplateCharacters /(?:\\$(?!\\{)|\\\\.|[^$`])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14703
+ var TemplateCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R57, "TemplateCharacters /(?:\\$(?!\\{)|\\\\.|[^$`])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14660
14704
  return { $loc, token: $0 };
14661
14705
  });
14662
14706
  function TemplateCharacters(ctx, state2) {
14663
14707
  return (0, import_lib3.$EVENT)(ctx, state2, "TemplateCharacters", TemplateCharacters$0);
14664
14708
  }
14665
- var TemplateBlockCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R59, "TemplateBlockCharacters /(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14709
+ var TemplateBlockCharacters$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R58, "TemplateBlockCharacters /(?:\\$(?!\\{)|`(?!``)|\\\\.|[^$`])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14666
14710
  return { $loc, token: $0 };
14667
14711
  });
14668
14712
  function TemplateBlockCharacters(ctx, state2) {
14669
14713
  return (0, import_lib3.$EVENT)(ctx, state2, "TemplateBlockCharacters", TemplateBlockCharacters$0);
14670
14714
  }
14671
- var ReservedWord$0 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R60, "ReservedWord /(?:on|off|yes|no)(?!\\p{ID_Continue})/")), CoffeeBooleansEnabled);
14672
- var ReservedWord$1 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R61, "ReservedWord /(?:isnt)(?!\\p{ID_Continue})/")), CoffeeIsntEnabled);
14673
- var ReservedWord$2 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R62, "ReservedWord /(?:by)(?!\\p{ID_Continue})/")), CoffeeForLoopsEnabled);
14674
- var ReservedWord$3 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R63, "ReservedWord /(?:of)(?!\\p{ID_Continue})/")), CoffeeOfEnabled);
14675
- var ReservedWord$4 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R64, "ReservedWord /(?:and|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|not|null|or|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})/"));
14715
+ var ReservedWord$0 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R59, "ReservedWord /(?:on|off|yes|no)(?!\\p{ID_Continue})/")), CoffeeBooleansEnabled);
14716
+ var ReservedWord$1 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R60, "ReservedWord /(?:isnt)(?!\\p{ID_Continue})/")), CoffeeIsntEnabled);
14717
+ var ReservedWord$2 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R61, "ReservedWord /(?:by)(?!\\p{ID_Continue})/")), CoffeeForLoopsEnabled);
14718
+ var ReservedWord$3 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R62, "ReservedWord /(?:of)(?!\\p{ID_Continue})/")), CoffeeOfEnabled);
14719
+ var ReservedWord$4 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R63, "ReservedWord /(?:and|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|let|loop|new|not|null|or|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|unless|until|var|void|while|with|yield)(?!\\p{ID_Continue})/"));
14676
14720
  var ReservedWord$$ = [ReservedWord$0, ReservedWord$1, ReservedWord$2, ReservedWord$3, ReservedWord$4];
14677
14721
  function ReservedWord(ctx, state2) {
14678
14722
  return (0, import_lib3.$EVENT_C)(ctx, state2, "ReservedWord", ReservedWord$$);
14679
14723
  }
14680
- var Comment$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R65, "Comment /(?=\\/|#)/"), _Comment), function(value) {
14724
+ var Comment$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R64, "Comment /(?=\\/|#)/"), _Comment), function(value) {
14681
14725
  return value[1];
14682
14726
  });
14683
14727
  function Comment(ctx, state2) {
@@ -14695,7 +14739,7 @@ var SingleLineComment$$ = [SingleLineComment$0, SingleLineComment$1];
14695
14739
  function SingleLineComment(ctx, state2) {
14696
14740
  return (0, import_lib3.$EVENT_C)(ctx, state2, "SingleLineComment", SingleLineComment$$);
14697
14741
  }
14698
- var JSSingleLineComment$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R66, "JSSingleLineComment /\\/\\/(?!\\/)[^\\r\\n]*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14742
+ var JSSingleLineComment$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R65, "JSSingleLineComment /\\/\\/(?!\\/)[^\\r\\n]*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14699
14743
  return { type: "Comment", $loc, token: $0 };
14700
14744
  });
14701
14745
  function JSSingleLineComment(ctx, state2) {
@@ -14707,30 +14751,30 @@ var MultiLineComment$$ = [MultiLineComment$0, MultiLineComment$1];
14707
14751
  function MultiLineComment(ctx, state2) {
14708
14752
  return (0, import_lib3.$EVENT_C)(ctx, state2, "MultiLineComment", MultiLineComment$$);
14709
14753
  }
14710
- var JSMultiLineComment$0 = (0, import_lib3.$TV)((0, import_lib3.$TEXT)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L130, 'JSMultiLineComment "/*"'), (0, import_lib3.$Q)((0, import_lib3.$S)((0, import_lib3.$N)((0, import_lib3.$EXPECT)($L131, 'JSMultiLineComment "*/"')), (0, import_lib3.$EXPECT)($R67, "JSMultiLineComment /./"))), (0, import_lib3.$EXPECT)($L131, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
14754
+ var JSMultiLineComment$0 = (0, import_lib3.$TV)((0, import_lib3.$TEXT)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L130, 'JSMultiLineComment "/*"'), (0, import_lib3.$Q)((0, import_lib3.$S)((0, import_lib3.$N)((0, import_lib3.$EXPECT)($L131, 'JSMultiLineComment "*/"')), (0, import_lib3.$EXPECT)($R66, "JSMultiLineComment /./"))), (0, import_lib3.$EXPECT)($L131, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
14711
14755
  return { type: "Comment", $loc, token: $1 };
14712
14756
  });
14713
14757
  function JSMultiLineComment(ctx, state2) {
14714
14758
  return (0, import_lib3.$EVENT)(ctx, state2, "JSMultiLineComment", JSMultiLineComment$0);
14715
14759
  }
14716
- var CoffeeSingleLineComment$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R68, "CoffeeSingleLineComment /#(?!##(?!#))([^\\r\\n]*)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14760
+ var CoffeeSingleLineComment$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R67, "CoffeeSingleLineComment /#(?!##(?!#))([^\\r\\n]*)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14717
14761
  return { type: "Comment", $loc, token: `//${$1}` };
14718
14762
  });
14719
14763
  function CoffeeSingleLineComment(ctx, state2) {
14720
14764
  return (0, import_lib3.$EVENT)(ctx, state2, "CoffeeSingleLineComment", CoffeeSingleLineComment$0);
14721
14765
  }
14722
- var CoffeeMultiLineComment$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(CoffeeHereCommentStart, (0, import_lib3.$TEXT)((0, import_lib3.$EXPECT)($R69, "CoffeeMultiLineComment /[^]*?###/"))), function($skip, $loc, $0, $1, $2) {
14766
+ var CoffeeMultiLineComment$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(CoffeeHereCommentStart, (0, import_lib3.$TEXT)((0, import_lib3.$EXPECT)($R68, "CoffeeMultiLineComment /[^]*?###/"))), function($skip, $loc, $0, $1, $2) {
14723
14767
  $2 = $2.slice(0, $2.length - 3).replace(/\*\//g, "* /");
14724
14768
  return { type: "Comment", $loc, token: `/*${$2}*/` };
14725
14769
  });
14726
14770
  function CoffeeMultiLineComment(ctx, state2) {
14727
14771
  return (0, import_lib3.$EVENT)(ctx, state2, "CoffeeMultiLineComment", CoffeeMultiLineComment$0);
14728
14772
  }
14729
- var CoffeeHereCommentStart$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R70, "CoffeeHereCommentStart /###(?!#)/"));
14773
+ var CoffeeHereCommentStart$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R69, "CoffeeHereCommentStart /###(?!#)/"));
14730
14774
  function CoffeeHereCommentStart(ctx, state2) {
14731
14775
  return (0, import_lib3.$EVENT)(ctx, state2, "CoffeeHereCommentStart", CoffeeHereCommentStart$0);
14732
14776
  }
14733
- var InlineComment$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R71, "InlineComment /\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\//"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14777
+ var InlineComment$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R70, "InlineComment /\\/\\*(?:(?!\\*\\/)[^\\r\\n])*\\*\\//"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14734
14778
  return { $loc, token: $0 };
14735
14779
  });
14736
14780
  function InlineComment(ctx, state2) {
@@ -14744,7 +14788,7 @@ var TrailingComment$0 = (0, import_lib3.$S)((0, import_lib3.$E)(_), (0, import_l
14744
14788
  function TrailingComment(ctx, state2) {
14745
14789
  return (0, import_lib3.$EVENT)(ctx, state2, "TrailingComment", TrailingComment$0);
14746
14790
  }
14747
- var _$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R72, "_ /(?=[ \\t\\/\\\\])/"), (0, import_lib3.$P)((0, import_lib3.$C)(NonNewlineWhitespace, InlineComment))), function(value) {
14791
+ var _$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R71, "_ /(?=[ \\t\\/\\\\])/"), (0, import_lib3.$P)((0, import_lib3.$C)(NonNewlineWhitespace, InlineComment))), function(value) {
14748
14792
  return value[1];
14749
14793
  });
14750
14794
  function _(ctx, state2) {
@@ -14767,7 +14811,7 @@ var Trimmed_$0 = (0, import_lib3.$TV)(_, function($skip, $loc, $0, $1) {
14767
14811
  function Trimmed_(ctx, state2) {
14768
14812
  return (0, import_lib3.$EVENT)(ctx, state2, "Trimmed_", Trimmed_$0);
14769
14813
  }
14770
- var __$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R73, "__ /(?=\\s|\\/|#)/"), (0, import_lib3.$Q)((0, import_lib3.$C)(Whitespace, Comment))), function(value) {
14814
+ var __$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R72, "__ /(?=\\s|\\/|#)/"), (0, import_lib3.$Q)((0, import_lib3.$C)(Whitespace, Comment))), function(value) {
14771
14815
  return value[1];
14772
14816
  });
14773
14817
  var __$1 = (0, import_lib3.$EXPECT)($L0, '__ ""');
@@ -14775,7 +14819,7 @@ var __$$ = [__$0, __$1];
14775
14819
  function __(ctx, state2) {
14776
14820
  return (0, import_lib3.$EVENT_C)(ctx, state2, "__", __$$);
14777
14821
  }
14778
- var Whitespace$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R51, "Whitespace /[\\s]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14822
+ var Whitespace$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R50, "Whitespace /[\\s]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
14779
14823
  return { $loc, token: $0 };
14780
14824
  });
14781
14825
  function Whitespace(ctx, state2) {
@@ -14813,7 +14857,7 @@ var SemicolonDelimiter$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_l
14813
14857
  function SemicolonDelimiter(ctx, state2) {
14814
14858
  return (0, import_lib3.$EVENT)(ctx, state2, "SemicolonDelimiter", SemicolonDelimiter$0);
14815
14859
  }
14816
- var NonIdContinue$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R74, "NonIdContinue /(?!\\p{ID_Continue})/"));
14860
+ var NonIdContinue$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R73, "NonIdContinue /(?!\\p{ID_Continue})/"));
14817
14861
  function NonIdContinue(ctx, state2) {
14818
14862
  return (0, import_lib3.$EVENT)(ctx, state2, "NonIdContinue", NonIdContinue$0);
14819
14863
  }
@@ -14931,7 +14975,7 @@ var CoffeeSubstitutionStart$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L
14931
14975
  function CoffeeSubstitutionStart(ctx, state2) {
14932
14976
  return (0, import_lib3.$EVENT)(ctx, state2, "CoffeeSubstitutionStart", CoffeeSubstitutionStart$0);
14933
14977
  }
14934
- var Colon$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L16, 'Colon ":"'), (0, import_lib3.$N)((0, import_lib3.$EXPECT)($R75, "Colon /[=:]/"))), function($skip, $loc, $0, $1, $2) {
14978
+ var Colon$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L16, 'Colon ":"'), (0, import_lib3.$N)((0, import_lib3.$EXPECT)($R74, "Colon /[=:]/"))), function($skip, $loc, $0, $1, $2) {
14935
14979
  return { $loc, token: $1 };
14936
14980
  });
14937
14981
  function Colon(ctx, state2) {
@@ -14982,7 +15026,7 @@ function Do(ctx, state2) {
14982
15026
  var Dot$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L7, 'Dot "."'), function($skip, $loc, $0, $1) {
14983
15027
  return { $loc, token: $1 };
14984
15028
  });
14985
- var Dot$1 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R76, "Dot /['\u2019]s/"), Trimmed_), function($skip, $loc, $0, $1, $2) {
15029
+ var Dot$1 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R75, "Dot /['\u2019]s/"), Trimmed_), function($skip, $loc, $0, $1, $2) {
14986
15030
  var ws = $2;
14987
15031
  return [
14988
15032
  { $loc, token: "." },
@@ -15109,7 +15153,7 @@ var If$0 = (0, import_lib3.$TV)((0, import_lib3.$TEXT)((0, import_lib3.$S)((0, i
15109
15153
  function If(ctx, state2) {
15110
15154
  return (0, import_lib3.$EVENT)(ctx, state2, "If", If$0);
15111
15155
  }
15112
- var Import$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L15, 'Import "import"'), (0, import_lib3.$Y)((0, import_lib3.$EXPECT)($R77, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
15156
+ var Import$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L15, 'Import "import"'), (0, import_lib3.$Y)((0, import_lib3.$EXPECT)($R76, "Import /\\s/"))), function($skip, $loc, $0, $1, $2) {
15113
15157
  return { $loc, token: $1 };
15114
15158
  });
15115
15159
  function Import(ctx, state2) {
@@ -15145,37 +15189,37 @@ var Is$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L1
15145
15189
  function Is(ctx, state2) {
15146
15190
  return (0, import_lib3.$EVENT)(ctx, state2, "Is", Is$0);
15147
15191
  }
15148
- var LetOrConstOrVar$0 = LetOrConst;
15149
- var LetOrConstOrVar$1 = Var;
15150
- var LetOrConstOrVar$$ = [LetOrConstOrVar$0, LetOrConstOrVar$1];
15192
+ var LetOrConstOrVar$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$C)((0, import_lib3.$EXPECT)($L172, 'LetOrConstOrVar "let"'), (0, import_lib3.$EXPECT)($L173, 'LetOrConstOrVar "const"'), (0, import_lib3.$EXPECT)($L175, 'LetOrConstOrVar "var"')), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15193
+ return { $loc, token: $1 };
15194
+ });
15151
15195
  function LetOrConstOrVar(ctx, state2) {
15152
- return (0, import_lib3.$EVENT_C)(ctx, state2, "LetOrConstOrVar", LetOrConstOrVar$$);
15196
+ return (0, import_lib3.$EVENT)(ctx, state2, "LetOrConstOrVar", LetOrConstOrVar$0);
15153
15197
  }
15154
- var Like$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L175, 'Like "like"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15198
+ var Like$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L176, 'Like "like"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15155
15199
  return { $loc, token: $1 };
15156
15200
  });
15157
15201
  function Like(ctx, state2) {
15158
15202
  return (0, import_lib3.$EVENT)(ctx, state2, "Like", Like$0);
15159
15203
  }
15160
- var Loop$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L176, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15204
+ var Loop$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L177, 'Loop "loop"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15161
15205
  return { $loc, token: "while" };
15162
15206
  });
15163
15207
  function Loop(ctx, state2) {
15164
15208
  return (0, import_lib3.$EVENT)(ctx, state2, "Loop", Loop$0);
15165
15209
  }
15166
- var New$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L177, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15210
+ var New$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L178, 'New "new"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15167
15211
  return { $loc, token: $1 };
15168
15212
  });
15169
15213
  function New(ctx, state2) {
15170
15214
  return (0, import_lib3.$EVENT)(ctx, state2, "New", New$0);
15171
15215
  }
15172
- var Not$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L178, 'Not "not"'), NonIdContinue, (0, import_lib3.$N)((0, import_lib3.$S)((0, import_lib3.$E)(_), (0, import_lib3.$EXPECT)($L16, 'Not ":"')))), function($skip, $loc, $0, $1, $2, $3) {
15216
+ var Not$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L179, 'Not "not"'), NonIdContinue, (0, import_lib3.$N)((0, import_lib3.$S)((0, import_lib3.$E)(_), (0, import_lib3.$EXPECT)($L16, 'Not ":"')))), function($skip, $loc, $0, $1, $2, $3) {
15173
15217
  return { $loc, token: "!" };
15174
15218
  });
15175
15219
  function Not(ctx, state2) {
15176
15220
  return (0, import_lib3.$EVENT)(ctx, state2, "Not", Not$0);
15177
15221
  }
15178
- var Of$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L179, 'Of "of"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15222
+ var Of$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L180, 'Of "of"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15179
15223
  return { $loc, token: $1 };
15180
15224
  });
15181
15225
  function Of(ctx, state2) {
@@ -15193,7 +15237,7 @@ var OpenBrace$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L1, 'OpenBrace
15193
15237
  function OpenBrace(ctx, state2) {
15194
15238
  return (0, import_lib3.$EVENT)(ctx, state2, "OpenBrace", OpenBrace$0);
15195
15239
  }
15196
- var OpenBracket$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L180, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
15240
+ var OpenBracket$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L181, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
15197
15241
  return { $loc, token: $1 };
15198
15242
  });
15199
15243
  function OpenBracket(ctx, state2) {
@@ -15205,49 +15249,49 @@ var OpenParen$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L4, 'OpenParen
15205
15249
  function OpenParen(ctx, state2) {
15206
15250
  return (0, import_lib3.$EVENT)(ctx, state2, "OpenParen", OpenParen$0);
15207
15251
  }
15208
- var Operator$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L181, 'Operator "operator"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15252
+ var Operator$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L182, 'Operator "operator"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15209
15253
  return { $loc, token: $1 };
15210
15254
  });
15211
15255
  function Operator(ctx, state2) {
15212
15256
  return (0, import_lib3.$EVENT)(ctx, state2, "Operator", Operator$0);
15213
15257
  }
15214
- var Override$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L182, 'Override "override"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15258
+ var Override$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L183, 'Override "override"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15215
15259
  return { $loc, token: $1, ts: true };
15216
15260
  });
15217
15261
  function Override(ctx, state2) {
15218
15262
  return (0, import_lib3.$EVENT)(ctx, state2, "Override", Override$0);
15219
15263
  }
15220
- var Own$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L183, 'Own "own"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15264
+ var Own$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L184, 'Own "own"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15221
15265
  return { $loc, token: $1 };
15222
15266
  });
15223
15267
  function Own(ctx, state2) {
15224
15268
  return (0, import_lib3.$EVENT)(ctx, state2, "Own", Own$0);
15225
15269
  }
15226
- var Public$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L184, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15270
+ var Public$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L185, 'Public "public"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15227
15271
  return { $loc, token: $1 };
15228
15272
  });
15229
15273
  function Public(ctx, state2) {
15230
15274
  return (0, import_lib3.$EVENT)(ctx, state2, "Public", Public$0);
15231
15275
  }
15232
- var Private$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L185, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15276
+ var Private$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L186, 'Private "private"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15233
15277
  return { $loc, token: $1 };
15234
15278
  });
15235
15279
  function Private(ctx, state2) {
15236
15280
  return (0, import_lib3.$EVENT)(ctx, state2, "Private", Private$0);
15237
15281
  }
15238
- var Protected$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L186, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15282
+ var Protected$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L187, 'Protected "protected"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15239
15283
  return { $loc, token: $1 };
15240
15284
  });
15241
15285
  function Protected(ctx, state2) {
15242
15286
  return (0, import_lib3.$EVENT)(ctx, state2, "Protected", Protected$0);
15243
15287
  }
15244
- var Pipe$0 = (0, import_lib3.$TV)((0, import_lib3.$C)((0, import_lib3.$EXPECT)($L187, 'Pipe "||>"'), (0, import_lib3.$EXPECT)($L188, 'Pipe "|\u25B7"')), function($skip, $loc, $0, $1) {
15288
+ var Pipe$0 = (0, import_lib3.$TV)((0, import_lib3.$C)((0, import_lib3.$EXPECT)($L188, 'Pipe "||>"'), (0, import_lib3.$EXPECT)($L189, 'Pipe "|\u25B7"')), function($skip, $loc, $0, $1) {
15245
15289
  return { $loc, token: "||>" };
15246
15290
  });
15247
- var Pipe$1 = (0, import_lib3.$TV)((0, import_lib3.$C)((0, import_lib3.$EXPECT)($L189, 'Pipe "|>="'), (0, import_lib3.$EXPECT)($L190, 'Pipe "\u25B7="')), function($skip, $loc, $0, $1) {
15291
+ var Pipe$1 = (0, import_lib3.$TV)((0, import_lib3.$C)((0, import_lib3.$EXPECT)($L190, 'Pipe "|>="'), (0, import_lib3.$EXPECT)($L191, 'Pipe "\u25B7="')), function($skip, $loc, $0, $1) {
15248
15292
  return { $loc, token: "|>=" };
15249
15293
  });
15250
- var Pipe$2 = (0, import_lib3.$TV)((0, import_lib3.$C)((0, import_lib3.$EXPECT)($L191, 'Pipe "|>"'), (0, import_lib3.$EXPECT)($L192, 'Pipe "\u25B7"')), function($skip, $loc, $0, $1) {
15294
+ var Pipe$2 = (0, import_lib3.$TV)((0, import_lib3.$C)((0, import_lib3.$EXPECT)($L192, 'Pipe "|>"'), (0, import_lib3.$EXPECT)($L193, 'Pipe "\u25B7"')), function($skip, $loc, $0, $1) {
15251
15295
  return { $loc, token: "|>" };
15252
15296
  });
15253
15297
  var Pipe$$ = [Pipe$0, Pipe$1, Pipe$2];
@@ -15260,19 +15304,19 @@ var QuestionMark$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L6, 'Questio
15260
15304
  function QuestionMark(ctx, state2) {
15261
15305
  return (0, import_lib3.$EVENT)(ctx, state2, "QuestionMark", QuestionMark$0);
15262
15306
  }
15263
- var Readonly$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L193, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15307
+ var Readonly$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L194, 'Readonly "readonly"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15264
15308
  return { $loc, token: $1, ts: true };
15265
15309
  });
15266
15310
  function Readonly(ctx, state2) {
15267
15311
  return (0, import_lib3.$EVENT)(ctx, state2, "Readonly", Readonly$0);
15268
15312
  }
15269
- var Return$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L194, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15313
+ var Return$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L195, 'Return "return"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15270
15314
  return { $loc, token: $1 };
15271
15315
  });
15272
15316
  function Return(ctx, state2) {
15273
15317
  return (0, import_lib3.$EVENT)(ctx, state2, "Return", Return$0);
15274
15318
  }
15275
- var Satisfies$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L195, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15319
+ var Satisfies$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L196, 'Satisfies "satisfies"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15276
15320
  return { $loc, token: $1 };
15277
15321
  });
15278
15322
  function Satisfies(ctx, state2) {
@@ -15284,7 +15328,7 @@ var Semicolon$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L119, 'Semicolo
15284
15328
  function Semicolon(ctx, state2) {
15285
15329
  return (0, import_lib3.$EVENT)(ctx, state2, "Semicolon", Semicolon$0);
15286
15330
  }
15287
- var SingleQuote$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L196, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
15331
+ var SingleQuote$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L197, `SingleQuote "'"`), function($skip, $loc, $0, $1) {
15288
15332
  return { $loc, token: $1 };
15289
15333
  });
15290
15334
  function SingleQuote(ctx, state2) {
@@ -15296,7 +15340,7 @@ var Star$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L75, 'Star "*"'), fu
15296
15340
  function Star(ctx, state2) {
15297
15341
  return (0, import_lib3.$EVENT)(ctx, state2, "Star", Star$0);
15298
15342
  }
15299
- var Static$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L197, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15343
+ var Static$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L198, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15300
15344
  return { $loc, token: $1 };
15301
15345
  });
15302
15346
  var Static$1 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L136, 'Static "@"'), (0, import_lib3.$N)((0, import_lib3.$C)((0, import_lib3.$EXPECT)($L4, 'Static "("'), (0, import_lib3.$EXPECT)($L136, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
@@ -15306,109 +15350,109 @@ var Static$$ = [Static$0, Static$1];
15306
15350
  function Static(ctx, state2) {
15307
15351
  return (0, import_lib3.$EVENT_C)(ctx, state2, "Static", Static$$);
15308
15352
  }
15309
- var SubstitutionStart$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L198, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
15353
+ var SubstitutionStart$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L199, 'SubstitutionStart "${"'), function($skip, $loc, $0, $1) {
15310
15354
  return { $loc, token: $1 };
15311
15355
  });
15312
15356
  function SubstitutionStart(ctx, state2) {
15313
15357
  return (0, import_lib3.$EVENT)(ctx, state2, "SubstitutionStart", SubstitutionStart$0);
15314
15358
  }
15315
- var Super$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L199, 'Super "super"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15359
+ var Super$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L200, 'Super "super"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15316
15360
  return { $loc, token: $1 };
15317
15361
  });
15318
15362
  function Super(ctx, state2) {
15319
15363
  return (0, import_lib3.$EVENT)(ctx, state2, "Super", Super$0);
15320
15364
  }
15321
- var Switch$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L200, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15365
+ var Switch$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L201, 'Switch "switch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15322
15366
  return { $loc, token: $1 };
15323
15367
  });
15324
15368
  function Switch(ctx, state2) {
15325
15369
  return (0, import_lib3.$EVENT)(ctx, state2, "Switch", Switch$0);
15326
15370
  }
15327
- var Target$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L201, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15371
+ var Target$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L202, 'Target "target"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15328
15372
  return { $loc, token: $1 };
15329
15373
  });
15330
15374
  function Target(ctx, state2) {
15331
15375
  return (0, import_lib3.$EVENT)(ctx, state2, "Target", Target$0);
15332
15376
  }
15333
- var Then$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(__, (0, import_lib3.$EXPECT)($L202, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
15377
+ var Then$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(__, (0, import_lib3.$EXPECT)($L203, 'Then "then"'), NonIdContinue), function($skip, $loc, $0, $1, $2, $3) {
15334
15378
  return { $loc, token: "" };
15335
15379
  });
15336
15380
  function Then(ctx, state2) {
15337
15381
  return (0, import_lib3.$EVENT)(ctx, state2, "Then", Then$0);
15338
15382
  }
15339
- var This$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L203, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15383
+ var This$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L204, 'This "this"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15340
15384
  return { $loc, token: $1 };
15341
15385
  });
15342
15386
  function This(ctx, state2) {
15343
15387
  return (0, import_lib3.$EVENT)(ctx, state2, "This", This$0);
15344
15388
  }
15345
- var Throw$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L204, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15389
+ var Throw$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L205, 'Throw "throw"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15346
15390
  return { $loc, token: $1 };
15347
15391
  });
15348
15392
  function Throw(ctx, state2) {
15349
15393
  return (0, import_lib3.$EVENT)(ctx, state2, "Throw", Throw$0);
15350
15394
  }
15351
- var TripleDoubleQuote$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L205, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
15395
+ var TripleDoubleQuote$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L206, 'TripleDoubleQuote "\\\\\\"\\\\\\"\\\\\\""'), function($skip, $loc, $0, $1) {
15352
15396
  return { $loc, token: "`" };
15353
15397
  });
15354
15398
  function TripleDoubleQuote(ctx, state2) {
15355
15399
  return (0, import_lib3.$EVENT)(ctx, state2, "TripleDoubleQuote", TripleDoubleQuote$0);
15356
15400
  }
15357
- var TripleSingleQuote$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L206, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
15401
+ var TripleSingleQuote$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L207, `TripleSingleQuote "'''"`), function($skip, $loc, $0, $1) {
15358
15402
  return { $loc, token: "`" };
15359
15403
  });
15360
15404
  function TripleSingleQuote(ctx, state2) {
15361
15405
  return (0, import_lib3.$EVENT)(ctx, state2, "TripleSingleQuote", TripleSingleQuote$0);
15362
15406
  }
15363
- var TripleSlash$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L207, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
15407
+ var TripleSlash$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L208, 'TripleSlash "///"'), function($skip, $loc, $0, $1) {
15364
15408
  return { $loc, token: "/" };
15365
15409
  });
15366
15410
  function TripleSlash(ctx, state2) {
15367
15411
  return (0, import_lib3.$EVENT)(ctx, state2, "TripleSlash", TripleSlash$0);
15368
15412
  }
15369
- var TripleTick$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L208, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
15413
+ var TripleTick$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L209, 'TripleTick "```"'), function($skip, $loc, $0, $1) {
15370
15414
  return { $loc, token: "`" };
15371
15415
  });
15372
15416
  function TripleTick(ctx, state2) {
15373
15417
  return (0, import_lib3.$EVENT)(ctx, state2, "TripleTick", TripleTick$0);
15374
15418
  }
15375
- var Try$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L209, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15419
+ var Try$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L210, 'Try "try"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15376
15420
  return { $loc, token: $1 };
15377
15421
  });
15378
15422
  function Try(ctx, state2) {
15379
15423
  return (0, import_lib3.$EVENT)(ctx, state2, "Try", Try$0);
15380
15424
  }
15381
- var Typeof$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L210, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15425
+ var Typeof$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L211, 'Typeof "typeof"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15382
15426
  return { $loc, token: $1 };
15383
15427
  });
15384
15428
  function Typeof(ctx, state2) {
15385
15429
  return (0, import_lib3.$EVENT)(ctx, state2, "Typeof", Typeof$0);
15386
15430
  }
15387
- var Undefined$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L211, 'Undefined "undefined"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15431
+ var Undefined$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L212, 'Undefined "undefined"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15388
15432
  return { $loc, token: $1 };
15389
15433
  });
15390
15434
  function Undefined(ctx, state2) {
15391
15435
  return (0, import_lib3.$EVENT)(ctx, state2, "Undefined", Undefined$0);
15392
15436
  }
15393
- var Unless$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L212, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15437
+ var Unless$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L213, 'Unless "unless"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15394
15438
  return { $loc, token: $1, negated: true };
15395
15439
  });
15396
15440
  function Unless(ctx, state2) {
15397
15441
  return (0, import_lib3.$EVENT)(ctx, state2, "Unless", Unless$0);
15398
15442
  }
15399
- var Until$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L213, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15443
+ var Until$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L214, 'Until "until"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15400
15444
  return { $loc, token: $1, negated: true };
15401
15445
  });
15402
15446
  function Until(ctx, state2) {
15403
15447
  return (0, import_lib3.$EVENT)(ctx, state2, "Until", Until$0);
15404
15448
  }
15405
- var Using$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L214, 'Using "using"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15449
+ var Using$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L215, 'Using "using"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15406
15450
  return { $loc, token: $1 };
15407
15451
  });
15408
15452
  function Using(ctx, state2) {
15409
15453
  return (0, import_lib3.$EVENT)(ctx, state2, "Using", Using$0);
15410
15454
  }
15411
- var Var$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L215, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15455
+ var Var$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L175, 'Var "var"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
15412
15456
  return { $loc, token: $1 };
15413
15457
  });
15414
15458
  function Var(ctx, state2) {
@@ -15467,7 +15511,7 @@ var JSXImplicitFragment$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(JSXTag, (0,
15467
15511
  function JSXImplicitFragment(ctx, state2) {
15468
15512
  return (0, import_lib3.$EVENT)(ctx, state2, "JSXImplicitFragment", JSXImplicitFragment$0);
15469
15513
  }
15470
- var JSXTag$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R78, "JSXTag /(?=[<])/"), _JSXTag), function(value) {
15514
+ var JSXTag$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R77, "JSXTag /(?=[<])/"), _JSXTag), function(value) {
15471
15515
  return value[1];
15472
15516
  });
15473
15517
  function JSXTag(ctx, state2) {
@@ -15614,7 +15658,7 @@ var JSXElementName$$ = [JSXElementName$0, JSXElementName$1];
15614
15658
  function JSXElementName(ctx, state2) {
15615
15659
  return (0, import_lib3.$EVENT_C)(ctx, state2, "JSXElementName", JSXElementName$$);
15616
15660
  }
15617
- var JSXIdentifierName$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R79, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
15661
+ var JSXIdentifierName$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R78, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
15618
15662
  function JSXIdentifierName(ctx, state2) {
15619
15663
  return (0, import_lib3.$EVENT)(ctx, state2, "JSXIdentifierName", JSXIdentifierName$0);
15620
15664
  }
@@ -15793,7 +15837,7 @@ var JSXAttribute$6 = (0, import_lib3.$TS)((0, import_lib3.$S)(Dot, JSXShorthandS
15793
15837
  class: $2
15794
15838
  };
15795
15839
  });
15796
- var JSXAttribute$7 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$TEXT)((0, import_lib3.$EXPECT)($R80, "JSXAttribute /[!+-]/")), JSXAttributeName, (0, import_lib3.$Y)(JSXAttributeSpace)), function($skip, $loc, $0, $1, $2, $3) {
15840
+ var JSXAttribute$7 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$TEXT)((0, import_lib3.$EXPECT)($R79, "JSXAttribute /[!+-]/")), JSXAttributeName, (0, import_lib3.$Y)(JSXAttributeSpace)), function($skip, $loc, $0, $1, $2, $3) {
15797
15841
  var toggle = $1;
15798
15842
  var id = $2;
15799
15843
  const value = toggle === "+" ? "true" : "false";
@@ -15803,11 +15847,11 @@ var JSXAttribute$$ = [JSXAttribute$0, JSXAttribute$1, JSXAttribute$2, JSXAttribu
15803
15847
  function JSXAttribute(ctx, state2) {
15804
15848
  return (0, import_lib3.$EVENT_C)(ctx, state2, "JSXAttribute", JSXAttribute$$);
15805
15849
  }
15806
- var JSXAttributeSpace$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R81, "JSXAttributeSpace /[\\s>]|\\/>/"));
15850
+ var JSXAttributeSpace$0 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R80, "JSXAttributeSpace /[\\s>]|\\/>/"));
15807
15851
  function JSXAttributeSpace(ctx, state2) {
15808
15852
  return (0, import_lib3.$EVENT)(ctx, state2, "JSXAttributeSpace", JSXAttributeSpace$0);
15809
15853
  }
15810
- var JSXShorthandString$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R82, "JSXShorthandString /(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
15854
+ var JSXShorthandString$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R81, "JSXShorthandString /(?:[\\w\\-:]+|\\([^()]*\\)|\\[[^\\[\\]]*\\])+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
15811
15855
  return quoteString($0);
15812
15856
  });
15813
15857
  var JSXShorthandString$1 = (0, import_lib3.$TS)((0, import_lib3.$S)(TemplateLiteral), function($skip, $loc, $0, $1) {
@@ -15854,7 +15898,7 @@ var JSXAttributeValue$3 = (0, import_lib3.$TS)((0, import_lib3.$S)(InsertInlineO
15854
15898
  }
15855
15899
  return [open, value, close];
15856
15900
  });
15857
- var JSXAttributeValue$4 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R83, `JSXAttributeValue /"[^"]*"|'[^']*'/`));
15901
+ var JSXAttributeValue$4 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R82, `JSXAttributeValue /"[^"]*"|'[^']*'/`));
15858
15902
  var JSXAttributeValue$$ = [JSXAttributeValue$0, JSXAttributeValue$1, JSXAttributeValue$2, JSXAttributeValue$3, JSXAttributeValue$4];
15859
15903
  function JSXAttributeValue(ctx, state2) {
15860
15904
  return (0, import_lib3.$EVENT_C)(ctx, state2, "JSXAttributeValue", JSXAttributeValue$$);
@@ -15867,7 +15911,7 @@ var InlineJSXAttributeValue$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(InlineJ
15867
15911
  function InlineJSXAttributeValue(ctx, state2) {
15868
15912
  return (0, import_lib3.$EVENT)(ctx, state2, "InlineJSXAttributeValue", InlineJSXAttributeValue$0);
15869
15913
  }
15870
- var InlineJSXBinaryOpRHS$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$N)((0, import_lib3.$EXPECT)($R84, "InlineJSXBinaryOpRHS /[<>]/")), BinaryOp, InlineJSXUnaryExpression), function($skip, $loc, $0, $1, $2, $3) {
15914
+ var InlineJSXBinaryOpRHS$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$N)((0, import_lib3.$EXPECT)($R83, "InlineJSXBinaryOpRHS /[<>]/")), BinaryOp, InlineJSXUnaryExpression), function($skip, $loc, $0, $1, $2, $3) {
15871
15915
  var op = $2;
15872
15916
  var rhs = $3;
15873
15917
  return [[], op, [], rhs];
@@ -15884,7 +15928,7 @@ var InlineJSXUnaryExpression$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, im
15884
15928
  function InlineJSXUnaryExpression(ctx, state2) {
15885
15929
  return (0, import_lib3.$EVENT)(ctx, state2, "InlineJSXUnaryExpression", InlineJSXUnaryExpression$0);
15886
15930
  }
15887
- var InlineJSXUnaryOp$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R85, "InlineJSXUnaryOp /[!~+-](?!\\s|[!~+-]*&)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
15931
+ var InlineJSXUnaryOp$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R84, "InlineJSXUnaryOp /[!~+-](?!\\s|[!~+-]*&)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
15888
15932
  return { $loc, token: $0 };
15889
15933
  });
15890
15934
  function InlineJSXUnaryOp(ctx, state2) {
@@ -16135,13 +16179,13 @@ var JSXComment$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXP
16135
16179
  function JSXComment(ctx, state2) {
16136
16180
  return (0, import_lib3.$EVENT)(ctx, state2, "JSXComment", JSXComment$0);
16137
16181
  }
16138
- var JSXCommentContent$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R86, "JSXCommentContent /(?:-[^-]|[^-]*)*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
16182
+ var JSXCommentContent$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R85, "JSXCommentContent /(?:-[^-]|[^-]*)*/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
16139
16183
  return { $loc, token: $0.replace(/\*\//g, "* /") };
16140
16184
  });
16141
16185
  function JSXCommentContent(ctx, state2) {
16142
16186
  return (0, import_lib3.$EVENT)(ctx, state2, "JSXCommentContent", JSXCommentContent$0);
16143
16187
  }
16144
- var JSXText$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R87, "JSXText /[^{}<>\\r\\n]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
16188
+ var JSXText$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R86, "JSXText /[^{}<>\\r\\n]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
16145
16189
  return {
16146
16190
  type: "JSXText",
16147
16191
  token: $0,
@@ -16288,8 +16332,14 @@ var UsingJSModeError$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L0, 'Usi
16288
16332
  function UsingJSModeError(ctx, state2) {
16289
16333
  return (0, import_lib3.$EVENT)(ctx, state2, "UsingJSModeError", UsingJSModeError$0);
16290
16334
  }
16291
- var TypeDeclaration$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$E)((0, import_lib3.$S)(Export, (0, import_lib3.$E)(_))), (0, import_lib3.$S)(Declare, (0, import_lib3.$E)(_)), TypeLexicalDeclaration), function(value) {
16292
- return { "ts": true, "children": value };
16335
+ var TypeDeclaration$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$E)((0, import_lib3.$S)(Export, (0, import_lib3.$E)(_))), (0, import_lib3.$S)(Declare, (0, import_lib3.$E)(_)), TypeLexicalDeclaration), function($skip, $loc, $0, $1, $2, $3) {
16336
+ var d = $3;
16337
+ return {
16338
+ type: "Declaration",
16339
+ ts: true,
16340
+ children: $0,
16341
+ names: d.names ?? []
16342
+ };
16293
16343
  });
16294
16344
  var TypeDeclaration$1 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$E)((0, import_lib3.$S)(Export, (0, import_lib3.$E)(_))), (0, import_lib3.$E)((0, import_lib3.$S)(Declare, (0, import_lib3.$E)(_))), TypeDeclarationRest), function($skip, $loc, $0, $1, $2, $3) {
16295
16345
  var export_ = $1;
@@ -16369,7 +16419,7 @@ var OptionalEquals$$ = [OptionalEquals$0, OptionalEquals$1];
16369
16419
  function OptionalEquals(ctx, state2) {
16370
16420
  return (0, import_lib3.$EVENT_C)(ctx, state2, "OptionalEquals", OptionalEquals$$);
16371
16421
  }
16372
- var TypeLexicalDeclaration$0 = (0, import_lib3.$S)(__, LetOrConstOrVar, TypeDeclarationBinding, (0, import_lib3.$Q)((0, import_lib3.$S)(CommaDelimiter, __, TypeDeclarationBinding)));
16422
+ var TypeLexicalDeclaration$0 = TypeLetOrConstDeclaration;
16373
16423
  var TypeLexicalDeclaration$1 = (0, import_lib3.$S)(__, EnumDeclaration);
16374
16424
  var TypeLexicalDeclaration$2 = ClassSignature;
16375
16425
  var TypeLexicalDeclaration$3 = (0, import_lib3.$S)(Namespace, (0, import_lib3.$E)(_), IdentifierName, DeclareBlock);
@@ -16379,7 +16429,27 @@ var TypeLexicalDeclaration$$ = [TypeLexicalDeclaration$0, TypeLexicalDeclaration
16379
16429
  function TypeLexicalDeclaration(ctx, state2) {
16380
16430
  return (0, import_lib3.$EVENT_C)(ctx, state2, "TypeLexicalDeclaration", TypeLexicalDeclaration$$);
16381
16431
  }
16382
- var TypeDeclarationBinding$0 = (0, import_lib3.$S)((0, import_lib3.$C)(BindingPattern, BindingIdentifier), (0, import_lib3.$E)(TypeSuffix));
16432
+ var TypeLetOrConstDeclaration$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(__, LetOrConstOrVar, TypeDeclarationBinding, (0, import_lib3.$Q)((0, import_lib3.$S)(CommaDelimiter, __, TypeDeclarationBinding))), function($skip, $loc, $0, $1, $2, $3, $4) {
16433
+ var first = $3;
16434
+ var rest = $4;
16435
+ const names = first.names.concat(...rest.map((b) => b[2].names));
16436
+ return {
16437
+ type: "TypeLexicalDeclaration",
16438
+ children: $0,
16439
+ ts: true,
16440
+ names
16441
+ };
16442
+ });
16443
+ function TypeLetOrConstDeclaration(ctx, state2) {
16444
+ return (0, import_lib3.$EVENT)(ctx, state2, "TypeLetOrConstDeclaration", TypeLetOrConstDeclaration$0);
16445
+ }
16446
+ var TypeDeclarationBinding$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$C)(BindingPattern, BindingIdentifier), (0, import_lib3.$E)(TypeSuffix)), function($skip, $loc, $0, $1, $2) {
16447
+ return {
16448
+ type: "TypeDeclarationBinding",
16449
+ children: $0,
16450
+ names: $1.names
16451
+ };
16452
+ });
16383
16453
  function TypeDeclarationBinding(ctx, state2) {
16384
16454
  return (0, import_lib3.$EVENT)(ctx, state2, "TypeDeclarationBinding", TypeDeclarationBinding$0);
16385
16455
  }
@@ -16515,13 +16585,14 @@ var NestedDeclareElement$0 = (0, import_lib3.$S)(Nested, DeclareElement, Interfa
16515
16585
  function NestedDeclareElement(ctx, state2) {
16516
16586
  return (0, import_lib3.$EVENT)(ctx, state2, "NestedDeclareElement", NestedDeclareElement$0);
16517
16587
  }
16518
- var DeclareElement$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$E)(Decorators), (0, import_lib3.$E)((0, import_lib3.$S)(Export, (0, import_lib3.$E)(_))), TypeLexicalDeclaration), function(value) {
16588
+ var DeclareElement$0 = (0, import_lib3.$S)((0, import_lib3.$E)(Decorators), Export, __, Default, __, (0, import_lib3.$C)(Identifier, ClassSignature, InterfaceDeclaration));
16589
+ var DeclareElement$1 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$E)(Decorators), (0, import_lib3.$E)((0, import_lib3.$S)(Export, (0, import_lib3.$E)(_))), TypeLexicalDeclaration), function(value) {
16519
16590
  return { "ts": true, "children": value };
16520
16591
  });
16521
- var DeclareElement$1 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$E)((0, import_lib3.$S)(Export, (0, import_lib3.$E)(_))), TypeDeclarationRest), function(value) {
16592
+ var DeclareElement$2 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$E)((0, import_lib3.$S)(Export, (0, import_lib3.$E)(_))), TypeDeclarationRest), function(value) {
16522
16593
  return { "ts": true, "children": value };
16523
16594
  });
16524
- var DeclareElement$$ = [DeclareElement$0, DeclareElement$1];
16595
+ var DeclareElement$$ = [DeclareElement$0, DeclareElement$1, DeclareElement$2];
16525
16596
  function DeclareElement(ctx, state2) {
16526
16597
  return (0, import_lib3.$EVENT_C)(ctx, state2, "DeclareElement", DeclareElement$$);
16527
16598
  }
@@ -16648,7 +16719,7 @@ var TypeProperty$0 = (0, import_lib3.$S)((0, import_lib3.$E)((0, import_lib3.$S)
16648
16719
  function TypeProperty(ctx, state2) {
16649
16720
  return (0, import_lib3.$EVENT)(ctx, state2, "TypeProperty", TypeProperty$0);
16650
16721
  }
16651
- var TypeIndexSignature$0 = (0, import_lib3.$S)((0, import_lib3.$E)((0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R88, "TypeIndexSignature /[+-]?/")), Readonly, NotDedented)), OpenBracket, TypeIndex, CloseBracket, (0, import_lib3.$E)((0, import_lib3.$S)(__, (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R13, "TypeIndexSignature /[+-]/")), (0, import_lib3.$Y)((0, import_lib3.$S)((0, import_lib3.$E)(_), QuestionMark)))));
16722
+ var TypeIndexSignature$0 = (0, import_lib3.$S)((0, import_lib3.$E)((0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R87, "TypeIndexSignature /[+-]?/")), Readonly, NotDedented)), OpenBracket, TypeIndex, CloseBracket, (0, import_lib3.$E)((0, import_lib3.$S)(__, (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R13, "TypeIndexSignature /[+-]/")), (0, import_lib3.$Y)((0, import_lib3.$S)((0, import_lib3.$E)(_), QuestionMark)))));
16652
16723
  function TypeIndexSignature(ctx, state2) {
16653
16724
  return (0, import_lib3.$EVENT)(ctx, state2, "TypeIndexSignature", TypeIndexSignature$0);
16654
16725
  }
@@ -16791,7 +16862,7 @@ var TypeUnary$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$Q)((
16791
16862
  if (!prefix.length && !suffix.length)
16792
16863
  return t;
16793
16864
  return {
16794
- type: "UnaryType",
16865
+ type: "TypeUnary",
16795
16866
  prefix,
16796
16867
  suffix,
16797
16868
  t,
@@ -16809,7 +16880,7 @@ function TypeUnarySuffix(ctx, state2) {
16809
16880
  return (0, import_lib3.$EVENT_C)(ctx, state2, "TypeUnarySuffix", TypeUnarySuffix$$);
16810
16881
  }
16811
16882
  var TypeUnaryOp$0 = (0, import_lib3.$S)((0, import_lib3.$EXPECT)($L233, 'TypeUnaryOp "keyof"'), NonIdContinue);
16812
- var TypeUnaryOp$1 = (0, import_lib3.$S)((0, import_lib3.$EXPECT)($L193, 'TypeUnaryOp "readonly"'), NonIdContinue);
16883
+ var TypeUnaryOp$1 = (0, import_lib3.$S)((0, import_lib3.$EXPECT)($L194, 'TypeUnaryOp "readonly"'), NonIdContinue);
16813
16884
  var TypeUnaryOp$$ = [TypeUnaryOp$0, TypeUnaryOp$1];
16814
16885
  function TypeUnaryOp(ctx, state2) {
16815
16886
  return (0, import_lib3.$EVENT_C)(ctx, state2, "TypeUnaryOp", TypeUnaryOp$$);
@@ -16869,14 +16940,14 @@ var TypePrimary$6 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$E)
16869
16940
  var TypePrimary$7 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$E)(_), TypeLiteral), function($skip, $loc, $0, $1, $2) {
16870
16941
  var t = $2;
16871
16942
  return {
16872
- type: "LiteralType",
16943
+ type: "TypeLiteral",
16873
16944
  t,
16874
16945
  children: $0
16875
16946
  };
16876
16947
  });
16877
16948
  var TypePrimary$8 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$E)(_), UnknownAlias), function($skip, $loc, $0, $1, $2) {
16878
16949
  return {
16879
- type: "IdentifierType",
16950
+ type: "TypeIdentifier",
16880
16951
  children: $0,
16881
16952
  raw: $2.token,
16882
16953
  args: void 0
@@ -16885,7 +16956,7 @@ var TypePrimary$8 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$E)
16885
16956
  var TypePrimary$9 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$E)(_), Identifier, (0, import_lib3.$Q)((0, import_lib3.$S)(Dot, IdentifierName)), (0, import_lib3.$E)((0, import_lib3.$C)(TypeArguments, ImplicitTypeArguments))), function($skip, $loc, $0, $1, $2, $3, $4) {
16886
16957
  var args = $4;
16887
16958
  return {
16888
- type: "IdentifierType",
16959
+ type: "TypeIdentifier",
16889
16960
  children: $0,
16890
16961
  raw: [$2.name, ...$3.map(([dot, id]) => dot.token + id.name)].join(""),
16891
16962
  args
@@ -16895,7 +16966,7 @@ var TypePrimary$10 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$E
16895
16966
  if (!$4)
16896
16967
  return $skip;
16897
16968
  return {
16898
- type: "ParenthesizedType",
16969
+ type: "TypeParenthesized",
16899
16970
  children: [$1, $2, $4, $6, $7]
16900
16971
  // omit AllowAll/RestoreAll
16901
16972
  };
@@ -17116,7 +17187,7 @@ var TypeWithPostfix$0 = (0, import_lib3.$TS)((0, import_lib3.$S)(TypeConditional
17116
17187
  function TypeWithPostfix(ctx, state2) {
17117
17188
  return (0, import_lib3.$EVENT)(ctx, state2, "TypeWithPostfix", TypeWithPostfix$0);
17118
17189
  }
17119
- var TypeConditional$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$E)(_), (0, import_lib3.$EXPECT)($R89, "TypeConditional /(?=if|unless)/"), TypeIfThenElse), function($skip, $loc, $0, $1, $2, $3) {
17190
+ var TypeConditional$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$E)(_), (0, import_lib3.$EXPECT)($R88, "TypeConditional /(?=if|unless)/"), TypeIfThenElse), function($skip, $loc, $0, $1, $2, $3) {
17120
17191
  return prepend($1, expressionizeTypeIf($3));
17121
17192
  });
17122
17193
  var TypeConditional$1 = (0, import_lib3.$TS)((0, import_lib3.$S)(TypeCondition, NotDedented, QuestionMark, __, Type, __, Colon, __, Type), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
@@ -17261,16 +17332,20 @@ function TypeBinaryOp(ctx, state2) {
17261
17332
  }
17262
17333
  var TypeFunction$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$E)((0, import_lib3.$S)(Abstract, (0, import_lib3.$E)(_))), (0, import_lib3.$E)((0, import_lib3.$S)(New, (0, import_lib3.$E)(_))), Parameters, __, TypeArrowFunction, (0, import_lib3.$E)(ReturnType)), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6) {
17263
17334
  var type = $6;
17264
- const ret = [...$0];
17335
+ const children = [...$0];
17265
17336
  if ($1 && !$2) {
17266
- ret[1] = {
17337
+ children[1] = {
17267
17338
  type: "Error",
17268
17339
  message: "abstract function types must be constructors (abstract new)"
17269
17340
  };
17270
17341
  }
17271
17342
  if (!type)
17272
- ret.push("void");
17273
- return ret;
17343
+ children.push("void");
17344
+ return {
17345
+ type: "TypeFunction",
17346
+ children,
17347
+ ts: true
17348
+ };
17274
17349
  });
17275
17350
  function TypeFunction(ctx, state2) {
17276
17351
  return (0, import_lib3.$EVENT)(ctx, state2, "TypeFunction", TypeFunction$0);
@@ -17314,8 +17389,8 @@ function TypeApplicationStart(ctx, state2) {
17314
17389
  return (0, import_lib3.$EVENT_C)(ctx, state2, "TypeApplicationStart", TypeApplicationStart$$);
17315
17390
  }
17316
17391
  var ForbiddenImplicitTypeCalls$0 = ReservedBinary;
17317
- var ForbiddenImplicitTypeCalls$1 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R90, "ForbiddenImplicitTypeCalls /[|&<!=\\-\u21D2\u2192]/"));
17318
- var ForbiddenImplicitTypeCalls$2 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R91, "ForbiddenImplicitTypeCalls /(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
17392
+ var ForbiddenImplicitTypeCalls$1 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R89, "ForbiddenImplicitTypeCalls /[|&<!=\\-\u21D2\u2192]/"));
17393
+ var ForbiddenImplicitTypeCalls$2 = (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R90, "ForbiddenImplicitTypeCalls /(extends|not|is)(?!\\p{ID_Continue}|[\\u200C\\u200D$])/"));
17319
17394
  var ForbiddenImplicitTypeCalls$$ = [ForbiddenImplicitTypeCalls$0, ForbiddenImplicitTypeCalls$1, ForbiddenImplicitTypeCalls$2];
17320
17395
  function ForbiddenImplicitTypeCalls(ctx, state2) {
17321
17396
  return (0, import_lib3.$EVENT_C)(ctx, state2, "ForbiddenImplicitTypeCalls", ForbiddenImplicitTypeCalls$$);
@@ -17425,15 +17500,15 @@ var ThisType$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$E)(_),
17425
17500
  function ThisType(ctx, state2) {
17426
17501
  return (0, import_lib3.$EVENT)(ctx, state2, "ThisType", ThisType$0);
17427
17502
  }
17428
- var Shebang$0 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R92, "Shebang /#![^\\r\\n]*/")), EOL);
17503
+ var Shebang$0 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R91, "Shebang /#![^\\r\\n]*/")), EOL);
17429
17504
  function Shebang(ctx, state2) {
17430
17505
  return (0, import_lib3.$EVENT)(ctx, state2, "Shebang", Shebang$0);
17431
17506
  }
17432
- var CivetPrologue$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R93, "CivetPrologue /[\\t ]*/"), DoubleQuote, CivetPrologueContent, DoubleQuote, SimpleStatementDelimiter, (0, import_lib3.$EXPECT)($R20, "CivetPrologue /[ \\t]*/"), (0, import_lib3.$C)(EOL, (0, import_lib3.$Y)(RestOfLine))), function(value) {
17507
+ var CivetPrologue$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R92, "CivetPrologue /[\\t ]*/"), DoubleQuote, CivetPrologueContent, DoubleQuote, SimpleStatementDelimiter, (0, import_lib3.$EXPECT)($R20, "CivetPrologue /[ \\t]*/"), (0, import_lib3.$C)(EOL, (0, import_lib3.$Y)(RestOfLine))), function(value) {
17433
17508
  var content = value[2];
17434
17509
  return content;
17435
17510
  });
17436
- var CivetPrologue$1 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R93, "CivetPrologue /[\\t ]*/"), SingleQuote, CivetPrologueContent, SingleQuote, SimpleStatementDelimiter, (0, import_lib3.$EXPECT)($R20, "CivetPrologue /[ \\t]*/"), (0, import_lib3.$C)(EOL, (0, import_lib3.$Y)(RestOfLine))), function(value) {
17511
+ var CivetPrologue$1 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R92, "CivetPrologue /[\\t ]*/"), SingleQuote, CivetPrologueContent, SingleQuote, SimpleStatementDelimiter, (0, import_lib3.$EXPECT)($R20, "CivetPrologue /[ \\t]*/"), (0, import_lib3.$C)(EOL, (0, import_lib3.$Y)(RestOfLine))), function(value) {
17437
17512
  var content = value[2];
17438
17513
  return content;
17439
17514
  });
@@ -17441,7 +17516,7 @@ var CivetPrologue$$ = [CivetPrologue$0, CivetPrologue$1];
17441
17516
  function CivetPrologue(ctx, state2) {
17442
17517
  return (0, import_lib3.$EVENT_C)(ctx, state2, "CivetPrologue", CivetPrologue$$);
17443
17518
  }
17444
- var CivetPrologueContent$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L238, 'CivetPrologueContent "civet"'), NonIdContinue, (0, import_lib3.$Q)(CivetOption), (0, import_lib3.$EXPECT)($R94, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3, $4) {
17519
+ var CivetPrologueContent$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($L238, 'CivetPrologueContent "civet"'), NonIdContinue, (0, import_lib3.$Q)(CivetOption), (0, import_lib3.$EXPECT)($R93, "CivetPrologueContent /[\\s]*/")), function($skip, $loc, $0, $1, $2, $3, $4) {
17445
17520
  var options = $3;
17446
17521
  return {
17447
17522
  type: "CivetPrologue",
@@ -17452,28 +17527,33 @@ var CivetPrologueContent$0 = (0, import_lib3.$TS)((0, import_lib3.$S)((0, import
17452
17527
  function CivetPrologueContent(ctx, state2) {
17453
17528
  return (0, import_lib3.$EVENT)(ctx, state2, "CivetPrologueContent", CivetPrologueContent$0);
17454
17529
  }
17455
- var CivetOption$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R95, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([a-zA-Z0-9.+-]*))?/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
17530
+ var CivetOption$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R94, "CivetOption /\\s+([+-]?)([a-zA-Z0-9-]+)(\\s*=\\s*([\\p{ID_Continue}.,+-]*))?/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
17456
17531
  const optionName = $2.replace(/-+([a-z]?)/g, (_2, l) => {
17457
17532
  if (l)
17458
17533
  return l.toUpperCase();
17459
17534
  return "";
17460
17535
  });
17461
17536
  let value = $3 ? $4 : $1 === "-" ? false : true;
17462
- if (optionName === "tab") {
17463
- value = parseFloat(value);
17464
- if (isNaN(value))
17465
- value = 0;
17537
+ switch (optionName) {
17538
+ case "tab":
17539
+ value = parseFloat(value);
17540
+ if (isNaN(value))
17541
+ value = 0;
17542
+ break;
17543
+ case "globals":
17544
+ value = value.split(",").filter(Boolean);
17545
+ break;
17466
17546
  }
17467
17547
  return [optionName, value];
17468
17548
  });
17469
17549
  function CivetOption(ctx, state2) {
17470
17550
  return (0, import_lib3.$EVENT)(ctx, state2, "CivetOption", CivetOption$0);
17471
17551
  }
17472
- var UnknownPrologue$0 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R93, "UnknownPrologue /[\\t ]*/")), StringLiteral, (0, import_lib3.$TEXT)(SimpleStatementDelimiter), EOS);
17552
+ var UnknownPrologue$0 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R92, "UnknownPrologue /[\\t ]*/")), StringLiteral, (0, import_lib3.$TEXT)(SimpleStatementDelimiter), EOS);
17473
17553
  function UnknownPrologue(ctx, state2) {
17474
17554
  return (0, import_lib3.$EVENT)(ctx, state2, "UnknownPrologue", UnknownPrologue$0);
17475
17555
  }
17476
- var TripleSlashDirective$0 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R96, "TripleSlashDirective /\\/\\/\\/[^\\r\\n]*/")), (0, import_lib3.$E)(EOS));
17556
+ var TripleSlashDirective$0 = (0, import_lib3.$S)((0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R95, "TripleSlashDirective /\\/\\/\\/[^\\r\\n]*/")), (0, import_lib3.$E)(EOS));
17477
17557
  function TripleSlashDirective(ctx, state2) {
17478
17558
  return (0, import_lib3.$EVENT)(ctx, state2, "TripleSlashDirective", TripleSlashDirective$0);
17479
17559
  }
@@ -17489,13 +17569,13 @@ var PrologueString$$ = [PrologueString$0, PrologueString$1];
17489
17569
  function PrologueString(ctx, state2) {
17490
17570
  return (0, import_lib3.$EVENT_C)(ctx, state2, "PrologueString", PrologueString$$);
17491
17571
  }
17492
- var EOS$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R97, "EOS /(?=[ \\t\\r\\n\\/#]|$)/"), (0, import_lib3.$P)(RestOfLine)), function(value) {
17572
+ var EOS$0 = (0, import_lib3.$T)((0, import_lib3.$S)((0, import_lib3.$EXPECT)($R96, "EOS /(?=[ \\t\\r\\n\\/#]|$)/"), (0, import_lib3.$P)(RestOfLine)), function(value) {
17493
17573
  return value[1];
17494
17574
  });
17495
17575
  function EOS(ctx, state2) {
17496
17576
  return (0, import_lib3.$EVENT)(ctx, state2, "EOS", EOS$0);
17497
17577
  }
17498
- var EOL$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R98, "EOL /\\r\\n|\\n|\\r|$/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
17578
+ var EOL$0 = (0, import_lib3.$TR)((0, import_lib3.$EXPECT)($R97, "EOL /\\r\\n|\\n|\\r|$/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
17499
17579
  return { $loc, token: $0 };
17500
17580
  });
17501
17581
  function EOL(ctx, state2) {
@@ -17815,6 +17895,7 @@ var Reset$0 = (0, import_lib3.$TV)((0, import_lib3.$EXPECT)($L0, 'Reset ""'), fu
17815
17895
  coffeeOf: false,
17816
17896
  coffeePrototype: false,
17817
17897
  defaultElement: "div",
17898
+ globals: [],
17818
17899
  implicitReturns: true,
17819
17900
  jsxCode: false,
17820
17901
  objectIs: false,
@@ -17892,7 +17973,7 @@ var Prologue$0 = (0, import_lib3.$Q)((0, import_lib3.$C)(TripleSlashDirective, (
17892
17973
  function Prologue(ctx, state2) {
17893
17974
  return (0, import_lib3.$EVENT)(ctx, state2, "Prologue", Prologue$0);
17894
17975
  }
17895
- var ProloguePrefix$0 = (0, import_lib3.$S)(Prologue, (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R99, "ProloguePrefix /[^]*/")));
17976
+ var ProloguePrefix$0 = (0, import_lib3.$S)(Prologue, (0, import_lib3.$R$0)((0, import_lib3.$EXPECT)($R98, "ProloguePrefix /[^]*/")));
17896
17977
  function ProloguePrefix(ctx, state2) {
17897
17978
  return (0, import_lib3.$EVENT)(ctx, state2, "ProloguePrefix", ProloguePrefix$0);
17898
17979
  }
@@ -18649,6 +18730,9 @@ var makeCache = function({ hits, trace } = {}) {
18649
18730
  }
18650
18731
  const [stateKey, tagKey] = getStateKey();
18651
18732
  const key = [tagKey, stateKey, state2.pos, ruleName];
18733
+ if (result != null) {
18734
+ result = { ...result };
18735
+ }
18652
18736
  stateCache.set(key, result);
18653
18737
  if (getConfig().verbose && result) {
18654
18738
  console.log(`Parsed ${JSON.stringify(state2.input.slice(state2.pos, result.pos))} [pos ${state2.pos}-${result.pos}] as ${ruleName}`);