@danielx/civet 0.5.60 → 0.5.61

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
@@ -450,6 +450,7 @@ ${input.slice(result.pos)}
450
450
  ArgumentPart,
451
451
  BinaryOpExpression,
452
452
  BinaryOpRHS,
453
+ RHS,
453
454
  ParenthesizedAssignment,
454
455
  UnaryExpression,
455
456
  UnaryPostfix,
@@ -667,7 +668,7 @@ ${input.slice(result.pos)}
667
668
  TryExpression,
668
669
  CatchClause,
669
670
  CatchBind,
670
- Finally,
671
+ FinallyClause,
671
672
  CatchParameter,
672
673
  Condition,
673
674
  ExpressionWithIndentedApplicationSuppressed,
@@ -800,6 +801,7 @@ ${input.slice(result.pos)}
800
801
  Equals,
801
802
  Export,
802
803
  Extends,
804
+ Finally,
803
805
  For,
804
806
  From,
805
807
  Function,
@@ -934,6 +936,7 @@ ${input.slice(result.pos)}
934
936
  InlineInterfacePropertyDelimiter,
935
937
  TypeBinaryOp,
936
938
  FunctionType,
939
+ TypeArrowFunction,
937
940
  TypeArguments,
938
941
  TypeArgument,
939
942
  TypeArgumentDelimiter,
@@ -1077,41 +1080,41 @@ ${input.slice(result.pos)}
1077
1080
  var $L80 = $L("|");
1078
1081
  var $L81 = $L(";");
1079
1082
  var $L82 = $L("own");
1080
- var $L83 = $L("finally");
1081
- var $L84 = $L("break");
1082
- var $L85 = $L("continue");
1083
- var $L86 = $L("debugger");
1084
- var $L87 = $L("assert");
1085
- var $L88 = $L(":=");
1086
- var $L89 = $L(".=");
1087
- var $L90 = $L("/*");
1088
- var $L91 = $L("*/");
1089
- var $L92 = $L("\\");
1090
- var $L93 = $L("[");
1091
- var $L94 = $L("`");
1092
- var $L95 = $L("abstract");
1093
- var $L96 = $L("as");
1094
- var $L97 = $L("@");
1095
- var $L98 = $L("@@");
1096
- var $L99 = $L("async");
1097
- var $L100 = $L("await");
1098
- var $L101 = $L("by");
1099
- var $L102 = $L("case");
1100
- var $L103 = $L("catch");
1101
- var $L104 = $L("class");
1102
- var $L105 = $L("#{");
1103
- var $L106 = $L(",");
1104
- var $L107 = $L("declare");
1105
- var $L108 = $L("default");
1106
- var $L109 = $L("delete");
1107
- var $L110 = $L("do");
1108
- var $L111 = $L("..");
1109
- var $L112 = $L("...");
1110
- var $L113 = $L("::");
1111
- var $L114 = $L('"');
1112
- var $L115 = $L("else");
1113
- var $L116 = $L("export");
1114
- var $L117 = $L("extends");
1083
+ var $L83 = $L("break");
1084
+ var $L84 = $L("continue");
1085
+ var $L85 = $L("debugger");
1086
+ var $L86 = $L("assert");
1087
+ var $L87 = $L(":=");
1088
+ var $L88 = $L(".=");
1089
+ var $L89 = $L("/*");
1090
+ var $L90 = $L("*/");
1091
+ var $L91 = $L("\\");
1092
+ var $L92 = $L("[");
1093
+ var $L93 = $L("`");
1094
+ var $L94 = $L("abstract");
1095
+ var $L95 = $L("as");
1096
+ var $L96 = $L("@");
1097
+ var $L97 = $L("@@");
1098
+ var $L98 = $L("async");
1099
+ var $L99 = $L("await");
1100
+ var $L100 = $L("by");
1101
+ var $L101 = $L("case");
1102
+ var $L102 = $L("catch");
1103
+ var $L103 = $L("class");
1104
+ var $L104 = $L("#{");
1105
+ var $L105 = $L(",");
1106
+ var $L106 = $L("declare");
1107
+ var $L107 = $L("default");
1108
+ var $L108 = $L("delete");
1109
+ var $L109 = $L("do");
1110
+ var $L110 = $L("..");
1111
+ var $L111 = $L("...");
1112
+ var $L112 = $L("::");
1113
+ var $L113 = $L('"');
1114
+ var $L114 = $L("else");
1115
+ var $L115 = $L("export");
1116
+ var $L116 = $L("extends");
1117
+ var $L117 = $L("finally");
1115
1118
  var $L118 = $L("for");
1116
1119
  var $L119 = $L("from");
1117
1120
  var $L120 = $L("function");
@@ -1867,7 +1870,12 @@ ${input.slice(result.pos)}
1867
1870
  return result;
1868
1871
  }
1869
1872
  }
1870
- var BinaryOpRHS$0 = $S(__, BinaryOp, __, $C(ParenthesizedAssignment, UnaryExpression, ExpressionizedStatement));
1873
+ var BinaryOpRHS$0 = $TS($S(BinaryOp, RHS), function($skip, $loc, $0, $1, $2) {
1874
+ var op = $1;
1875
+ var rhs = $2;
1876
+ return [[], op, [], rhs];
1877
+ });
1878
+ var BinaryOpRHS$1 = $S(__, BinaryOp, $C(_, $S(EOS, __)), RHS);
1871
1879
  function BinaryOpRHS(state) {
1872
1880
  let eventData;
1873
1881
  if (state.events) {
@@ -1879,17 +1887,42 @@ ${input.slice(result.pos)}
1879
1887
  }
1880
1888
  }
1881
1889
  if (state.tokenize) {
1882
- const result = $TOKEN("BinaryOpRHS", state, BinaryOpRHS$0(state));
1890
+ const result = $TOKEN("BinaryOpRHS", state, BinaryOpRHS$0(state) || BinaryOpRHS$1(state));
1883
1891
  if (state.events)
1884
1892
  state.events.exit?.("BinaryOpRHS", state, result, eventData);
1885
1893
  return result;
1886
1894
  } else {
1887
- const result = BinaryOpRHS$0(state);
1895
+ const result = BinaryOpRHS$0(state) || BinaryOpRHS$1(state);
1888
1896
  if (state.events)
1889
1897
  state.events.exit?.("BinaryOpRHS", state, result, eventData);
1890
1898
  return result;
1891
1899
  }
1892
1900
  }
1901
+ var RHS$0 = ParenthesizedAssignment;
1902
+ var RHS$1 = UnaryExpression;
1903
+ var RHS$2 = ExpressionizedStatement;
1904
+ function RHS(state) {
1905
+ let eventData;
1906
+ if (state.events) {
1907
+ const result = state.events.enter?.("RHS", state);
1908
+ if (result) {
1909
+ if (result.cache)
1910
+ return result.cache;
1911
+ eventData = result.data;
1912
+ }
1913
+ }
1914
+ if (state.tokenize) {
1915
+ const result = $TOKEN("RHS", state, RHS$0(state) || RHS$1(state) || RHS$2(state));
1916
+ if (state.events)
1917
+ state.events.exit?.("RHS", state, result, eventData);
1918
+ return result;
1919
+ } else {
1920
+ const result = RHS$0(state) || RHS$1(state) || RHS$2(state);
1921
+ if (state.events)
1922
+ state.events.exit?.("RHS", state, result, eventData);
1923
+ return result;
1924
+ }
1925
+ }
1893
1926
  var ParenthesizedAssignment$0 = $S(InsertOpenParen, ActualAssignment, InsertCloseParen);
1894
1927
  function ParenthesizedAssignment(state) {
1895
1928
  let eventData;
@@ -9228,7 +9261,7 @@ ${input.slice(result.pos)}
9228
9261
  return result;
9229
9262
  }
9230
9263
  }
9231
- var TryStatement$0 = $TS($S(Try, BracedBlock, $E(CatchClause), $E(Finally)), function($skip, $loc, $0, $1, $2, $3, $4) {
9264
+ var TryStatement$0 = $TS($S(Try, BracedOrEmptyBlock, $E(CatchClause), $E(FinallyClause)), function($skip, $loc, $0, $1, $2, $3, $4) {
9232
9265
  var t = $1;
9233
9266
  var b = $2;
9234
9267
  var c = $3;
@@ -9296,7 +9329,7 @@ ${input.slice(result.pos)}
9296
9329
  return result;
9297
9330
  }
9298
9331
  }
9299
- var CatchClause$0 = $S(__, Catch, $E(CatchBind), BracedBlock);
9332
+ var CatchClause$0 = $S($C(Samedent, _), Catch, $E(CatchBind), $C(ThenClause, BracedOrEmptyBlock));
9300
9333
  function CatchClause(state) {
9301
9334
  let eventData;
9302
9335
  if (state.events) {
@@ -9319,8 +9352,8 @@ ${input.slice(result.pos)}
9319
9352
  return result;
9320
9353
  }
9321
9354
  }
9322
- var CatchBind$0 = $S(__, OpenParen, __, CatchParameter, __, CloseParen);
9323
- var CatchBind$1 = $S($N(EOS), $Q(TrailingComment), InsertOpenParen, CatchParameter, InsertCloseParen);
9355
+ var CatchBind$0 = $S($E(_), OpenParen, __, CatchParameter, __, CloseParen);
9356
+ var CatchBind$1 = $S(_, InsertOpenParen, CatchParameter, InsertCloseParen);
9324
9357
  function CatchBind(state) {
9325
9358
  let eventData;
9326
9359
  if (state.events) {
@@ -9343,11 +9376,11 @@ ${input.slice(result.pos)}
9343
9376
  return result;
9344
9377
  }
9345
9378
  }
9346
- var Finally$0 = $S(__, $EXPECT($L83, fail, 'Finally "finally"'), NonIdContinue, BracedBlock);
9347
- function Finally(state) {
9379
+ var FinallyClause$0 = $S($C(Samedent, _), Finally, $C(ThenClause, BracedOrEmptyBlock));
9380
+ function FinallyClause(state) {
9348
9381
  let eventData;
9349
9382
  if (state.events) {
9350
- const result = state.events.enter?.("Finally", state);
9383
+ const result = state.events.enter?.("FinallyClause", state);
9351
9384
  if (result) {
9352
9385
  if (result.cache)
9353
9386
  return result.cache;
@@ -9355,14 +9388,14 @@ ${input.slice(result.pos)}
9355
9388
  }
9356
9389
  }
9357
9390
  if (state.tokenize) {
9358
- const result = $TOKEN("Finally", state, Finally$0(state));
9391
+ const result = $TOKEN("FinallyClause", state, FinallyClause$0(state));
9359
9392
  if (state.events)
9360
- state.events.exit?.("Finally", state, result, eventData);
9393
+ state.events.exit?.("FinallyClause", state, result, eventData);
9361
9394
  return result;
9362
9395
  } else {
9363
- const result = Finally$0(state);
9396
+ const result = FinallyClause$0(state);
9364
9397
  if (state.events)
9365
- state.events.exit?.("Finally", state, result, eventData);
9398
+ state.events.exit?.("FinallyClause", state, result, eventData);
9366
9399
  return result;
9367
9400
  }
9368
9401
  }
@@ -9583,13 +9616,13 @@ ${input.slice(result.pos)}
9583
9616
  return result;
9584
9617
  }
9585
9618
  }
9586
- var KeywordStatement$0 = $T($S($EXPECT($L84, fail, 'KeywordStatement "break"'), NonIdContinue), function(value) {
9619
+ var KeywordStatement$0 = $T($S($EXPECT($L83, fail, 'KeywordStatement "break"'), NonIdContinue), function(value) {
9587
9620
  return { "type": "BreakStatement", "children": value };
9588
9621
  });
9589
- var KeywordStatement$1 = $T($S($EXPECT($L85, fail, 'KeywordStatement "continue"'), NonIdContinue), function(value) {
9622
+ var KeywordStatement$1 = $T($S($EXPECT($L84, fail, 'KeywordStatement "continue"'), NonIdContinue), function(value) {
9590
9623
  return { "type": "ContinueStatement", "children": value };
9591
9624
  });
9592
- var KeywordStatement$2 = $T($S($EXPECT($L86, fail, 'KeywordStatement "debugger"'), NonIdContinue), function(value) {
9625
+ var KeywordStatement$2 = $T($S($EXPECT($L85, fail, 'KeywordStatement "debugger"'), NonIdContinue), function(value) {
9593
9626
  return { "type": "DebuggerStatement", "children": value };
9594
9627
  });
9595
9628
  var KeywordStatement$3 = $T($S(Return, $E(MaybeNestedExpression)), function(value) {
@@ -9620,7 +9653,7 @@ ${input.slice(result.pos)}
9620
9653
  return result;
9621
9654
  }
9622
9655
  }
9623
- var DebuggerExpression$0 = $TS($S($EXPECT($L86, fail, 'DebuggerExpression "debugger"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9656
+ var DebuggerExpression$0 = $TS($S($EXPECT($L85, fail, 'DebuggerExpression "debugger"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
9624
9657
  return {
9625
9658
  type: "DebuggerExpression",
9626
9659
  children: ["(()=>{", $1, "})()"]
@@ -9897,7 +9930,7 @@ ${input.slice(result.pos)}
9897
9930
  return result;
9898
9931
  }
9899
9932
  }
9900
- var ImportAssertion$0 = $S($E(_), $EXPECT($L87, fail, 'ImportAssertion "assert"'), NonIdContinue, $E(_), ObjectLiteral);
9933
+ var ImportAssertion$0 = $S($E(_), $EXPECT($L86, fail, 'ImportAssertion "assert"'), NonIdContinue, $E(_), ObjectLiteral);
9901
9934
  function ImportAssertion(state) {
9902
9935
  let eventData;
9903
9936
  if (state.events) {
@@ -10501,7 +10534,7 @@ ${input.slice(result.pos)}
10501
10534
  return result;
10502
10535
  }
10503
10536
  }
10504
- var ConstAssignment$0 = $TV($EXPECT($L88, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
10537
+ var ConstAssignment$0 = $TV($EXPECT($L87, fail, 'ConstAssignment ":="'), function($skip, $loc, $0, $1) {
10505
10538
  return { $loc, token: "=" };
10506
10539
  });
10507
10540
  function ConstAssignment(state) {
@@ -10526,7 +10559,7 @@ ${input.slice(result.pos)}
10526
10559
  return result;
10527
10560
  }
10528
10561
  }
10529
- var LetAssignment$0 = $TV($EXPECT($L89, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
10562
+ var LetAssignment$0 = $TV($EXPECT($L88, fail, 'LetAssignment ".="'), function($skip, $loc, $0, $1) {
10530
10563
  return { $loc, token: "=" };
10531
10564
  });
10532
10565
  function LetAssignment(state) {
@@ -11765,7 +11798,7 @@ ${input.slice(result.pos)}
11765
11798
  return result;
11766
11799
  }
11767
11800
  }
11768
- var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L90, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L91, fail, 'JSMultiLineComment "*/"')), $EXPECT($R40, fail, "JSMultiLineComment /./"))), $EXPECT($L91, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
11801
+ var JSMultiLineComment$0 = $TV($TEXT($S($EXPECT($L89, fail, 'JSMultiLineComment "/*"'), $Q($S($N($EXPECT($L90, fail, 'JSMultiLineComment "*/"')), $EXPECT($R40, fail, "JSMultiLineComment /./"))), $EXPECT($L90, fail, 'JSMultiLineComment "*/"'))), function($skip, $loc, $0, $1) {
11769
11802
  return { $loc, token: $1 };
11770
11803
  });
11771
11804
  function JSMultiLineComment(state) {
@@ -11864,7 +11897,7 @@ ${input.slice(result.pos)}
11864
11897
  return result;
11865
11898
  }
11866
11899
  }
11867
- var InlineComment$0 = $TV($TEXT($S($EXPECT($L90, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L91, fail, 'InlineComment "*/"')), $EXPECT($R44, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L91, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
11900
+ var InlineComment$0 = $TV($TEXT($S($EXPECT($L89, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L90, fail, 'InlineComment "*/"')), $EXPECT($R44, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L90, fail, 'InlineComment "*/"'))), function($skip, $loc, $0, $1) {
11868
11901
  return { $loc, token: $1 };
11869
11902
  });
11870
11903
  function InlineComment(state) {
@@ -11963,7 +11996,7 @@ ${input.slice(result.pos)}
11963
11996
  var NonNewlineWhitespace$0 = $TR($EXPECT($R45, fail, "NonNewlineWhitespace /[ \\t]+/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
11964
11997
  return { $loc, token: $0 };
11965
11998
  });
11966
- var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L92, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
11999
+ var NonNewlineWhitespace$1 = $T($S(CoffeeLineContinuationEnabled, $EXPECT($L91, fail, 'NonNewlineWhitespace "\\\\\\\\"'), EOL), function(value) {
11967
12000
  return "";
11968
12001
  });
11969
12002
  function NonNewlineWhitespace(state) {
@@ -12115,7 +12148,7 @@ ${input.slice(result.pos)}
12115
12148
  }
12116
12149
  }
12117
12150
  var StatementDelimiter$0 = SemicolonDelimiter;
12118
- var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L2, fail, 'StatementDelimiter "("'), $EXPECT($L93, fail, 'StatementDelimiter "["'), $EXPECT($L94, fail, 'StatementDelimiter "`"'), $EXPECT($L56, fail, 'StatementDelimiter "+"'), $EXPECT($L15, fail, 'StatementDelimiter "-"'), $EXPECT($L52, fail, 'StatementDelimiter "*"'), $EXPECT($L53, fail, 'StatementDelimiter "/"'), ObjectLiteral))), InsertSemicolon);
12151
+ var StatementDelimiter$1 = $S($Y($S(Samedent, $C($EXPECT($L2, fail, 'StatementDelimiter "("'), $EXPECT($L92, fail, 'StatementDelimiter "["'), $EXPECT($L93, fail, 'StatementDelimiter "`"'), $EXPECT($L56, fail, 'StatementDelimiter "+"'), $EXPECT($L15, fail, 'StatementDelimiter "-"'), $EXPECT($L52, fail, 'StatementDelimiter "*"'), $EXPECT($L53, fail, 'StatementDelimiter "/"'), ObjectLiteral))), InsertSemicolon);
12119
12152
  var StatementDelimiter$2 = $Y(EOS);
12120
12153
  function StatementDelimiter(state) {
12121
12154
  let eventData;
@@ -12215,7 +12248,7 @@ ${input.slice(result.pos)}
12215
12248
  return result;
12216
12249
  }
12217
12250
  }
12218
- var Abstract$0 = $TV($TEXT($S($EXPECT($L95, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L8, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
12251
+ var Abstract$0 = $TV($TEXT($S($EXPECT($L94, fail, 'Abstract "abstract"'), NonIdContinue, $E($EXPECT($L8, fail, 'Abstract " "')))), function($skip, $loc, $0, $1) {
12219
12252
  return { $loc, token: $1, ts: true };
12220
12253
  });
12221
12254
  function Abstract(state) {
@@ -12265,7 +12298,7 @@ ${input.slice(result.pos)}
12265
12298
  return result;
12266
12299
  }
12267
12300
  }
12268
- var As$0 = $TS($S($EXPECT($L96, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12301
+ var As$0 = $TS($S($EXPECT($L95, fail, 'As "as"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12269
12302
  return { $loc, token: $1 };
12270
12303
  });
12271
12304
  function As(state) {
@@ -12290,7 +12323,7 @@ ${input.slice(result.pos)}
12290
12323
  return result;
12291
12324
  }
12292
12325
  }
12293
- var At$0 = $TV($EXPECT($L97, fail, 'At "@"'), function($skip, $loc, $0, $1) {
12326
+ var At$0 = $TV($EXPECT($L96, fail, 'At "@"'), function($skip, $loc, $0, $1) {
12294
12327
  return { $loc, token: $1 };
12295
12328
  });
12296
12329
  function At(state) {
@@ -12315,7 +12348,7 @@ ${input.slice(result.pos)}
12315
12348
  return result;
12316
12349
  }
12317
12350
  }
12318
- var AtAt$0 = $TV($EXPECT($L98, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
12351
+ var AtAt$0 = $TV($EXPECT($L97, fail, 'AtAt "@@"'), function($skip, $loc, $0, $1) {
12319
12352
  return { $loc, token: "@" };
12320
12353
  });
12321
12354
  function AtAt(state) {
@@ -12340,7 +12373,7 @@ ${input.slice(result.pos)}
12340
12373
  return result;
12341
12374
  }
12342
12375
  }
12343
- var Async$0 = $TS($S($EXPECT($L99, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12376
+ var Async$0 = $TS($S($EXPECT($L98, fail, 'Async "async"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12344
12377
  return { $loc, token: $1, type: "Async" };
12345
12378
  });
12346
12379
  function Async(state) {
@@ -12365,7 +12398,7 @@ ${input.slice(result.pos)}
12365
12398
  return result;
12366
12399
  }
12367
12400
  }
12368
- var Await$0 = $TS($S($EXPECT($L100, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12401
+ var Await$0 = $TS($S($EXPECT($L99, fail, 'Await "await"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12369
12402
  return { $loc, token: $1 };
12370
12403
  });
12371
12404
  function Await(state) {
@@ -12390,7 +12423,7 @@ ${input.slice(result.pos)}
12390
12423
  return result;
12391
12424
  }
12392
12425
  }
12393
- var Backtick$0 = $TV($EXPECT($L94, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
12426
+ var Backtick$0 = $TV($EXPECT($L93, fail, 'Backtick "`"'), function($skip, $loc, $0, $1) {
12394
12427
  return { $loc, token: $1 };
12395
12428
  });
12396
12429
  function Backtick(state) {
@@ -12415,7 +12448,7 @@ ${input.slice(result.pos)}
12415
12448
  return result;
12416
12449
  }
12417
12450
  }
12418
- var By$0 = $TS($S($EXPECT($L101, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12451
+ var By$0 = $TS($S($EXPECT($L100, fail, 'By "by"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12419
12452
  return { $loc, token: $1 };
12420
12453
  });
12421
12454
  function By(state) {
@@ -12440,7 +12473,7 @@ ${input.slice(result.pos)}
12440
12473
  return result;
12441
12474
  }
12442
12475
  }
12443
- var Case$0 = $TS($S($EXPECT($L102, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12476
+ var Case$0 = $TS($S($EXPECT($L101, fail, 'Case "case"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12444
12477
  return { $loc, token: $1 };
12445
12478
  });
12446
12479
  function Case(state) {
@@ -12465,7 +12498,7 @@ ${input.slice(result.pos)}
12465
12498
  return result;
12466
12499
  }
12467
12500
  }
12468
- var Catch$0 = $TS($S($EXPECT($L103, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12501
+ var Catch$0 = $TS($S($EXPECT($L102, fail, 'Catch "catch"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12469
12502
  return { $loc, token: $1 };
12470
12503
  });
12471
12504
  function Catch(state) {
@@ -12490,7 +12523,7 @@ ${input.slice(result.pos)}
12490
12523
  return result;
12491
12524
  }
12492
12525
  }
12493
- var Class$0 = $TS($S($EXPECT($L104, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12526
+ var Class$0 = $TS($S($EXPECT($L103, fail, 'Class "class"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12494
12527
  return { $loc, token: $1 };
12495
12528
  });
12496
12529
  function Class(state) {
@@ -12590,7 +12623,7 @@ ${input.slice(result.pos)}
12590
12623
  return result;
12591
12624
  }
12592
12625
  }
12593
- var CoffeeSubstitutionStart$0 = $TV($EXPECT($L105, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
12626
+ var CoffeeSubstitutionStart$0 = $TV($EXPECT($L104, fail, 'CoffeeSubstitutionStart "#{"'), function($skip, $loc, $0, $1) {
12594
12627
  return { $loc, token: "${" };
12595
12628
  });
12596
12629
  function CoffeeSubstitutionStart(state) {
@@ -12640,7 +12673,7 @@ ${input.slice(result.pos)}
12640
12673
  return result;
12641
12674
  }
12642
12675
  }
12643
- var Comma$0 = $TV($EXPECT($L106, fail, 'Comma ","'), function($skip, $loc, $0, $1) {
12676
+ var Comma$0 = $TV($EXPECT($L105, fail, 'Comma ","'), function($skip, $loc, $0, $1) {
12644
12677
  return { $loc, token: $1 };
12645
12678
  });
12646
12679
  function Comma(state) {
@@ -12665,7 +12698,7 @@ ${input.slice(result.pos)}
12665
12698
  return result;
12666
12699
  }
12667
12700
  }
12668
- var ConstructorShorthand$0 = $TV($EXPECT($L97, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
12701
+ var ConstructorShorthand$0 = $TV($EXPECT($L96, fail, 'ConstructorShorthand "@"'), function($skip, $loc, $0, $1) {
12669
12702
  return { $loc, token: "constructor" };
12670
12703
  });
12671
12704
  function ConstructorShorthand(state) {
@@ -12690,7 +12723,7 @@ ${input.slice(result.pos)}
12690
12723
  return result;
12691
12724
  }
12692
12725
  }
12693
- var Declare$0 = $TS($S($EXPECT($L107, fail, 'Declare "declare"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12726
+ var Declare$0 = $TS($S($EXPECT($L106, fail, 'Declare "declare"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12694
12727
  return { $loc, token: $1 };
12695
12728
  });
12696
12729
  function Declare(state) {
@@ -12715,7 +12748,7 @@ ${input.slice(result.pos)}
12715
12748
  return result;
12716
12749
  }
12717
12750
  }
12718
- var Default$0 = $TS($S($EXPECT($L108, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12751
+ var Default$0 = $TS($S($EXPECT($L107, fail, 'Default "default"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12719
12752
  return { $loc, token: $1 };
12720
12753
  });
12721
12754
  function Default(state) {
@@ -12740,7 +12773,7 @@ ${input.slice(result.pos)}
12740
12773
  return result;
12741
12774
  }
12742
12775
  }
12743
- var Delete$0 = $TS($S($EXPECT($L109, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12776
+ var Delete$0 = $TS($S($EXPECT($L108, fail, 'Delete "delete"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12744
12777
  return { $loc, token: $1 };
12745
12778
  });
12746
12779
  function Delete(state) {
@@ -12765,7 +12798,7 @@ ${input.slice(result.pos)}
12765
12798
  return result;
12766
12799
  }
12767
12800
  }
12768
- var Do$0 = $TS($S($EXPECT($L110, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12801
+ var Do$0 = $TS($S($EXPECT($L109, fail, 'Do "do"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12769
12802
  return { $loc, token: $1 };
12770
12803
  });
12771
12804
  function Do(state) {
@@ -12815,7 +12848,7 @@ ${input.slice(result.pos)}
12815
12848
  return result;
12816
12849
  }
12817
12850
  }
12818
- var DotDot$0 = $TV($EXPECT($L111, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
12851
+ var DotDot$0 = $TV($EXPECT($L110, fail, 'DotDot ".."'), function($skip, $loc, $0, $1) {
12819
12852
  return { $loc, token: $1 };
12820
12853
  });
12821
12854
  function DotDot(state) {
@@ -12840,7 +12873,7 @@ ${input.slice(result.pos)}
12840
12873
  return result;
12841
12874
  }
12842
12875
  }
12843
- var DotDotDot$0 = $TV($EXPECT($L112, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
12876
+ var DotDotDot$0 = $TV($EXPECT($L111, fail, 'DotDotDot "..."'), function($skip, $loc, $0, $1) {
12844
12877
  return { $loc, token: $1 };
12845
12878
  });
12846
12879
  function DotDotDot(state) {
@@ -12865,7 +12898,7 @@ ${input.slice(result.pos)}
12865
12898
  return result;
12866
12899
  }
12867
12900
  }
12868
- var DoubleColon$0 = $TV($EXPECT($L113, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
12901
+ var DoubleColon$0 = $TV($EXPECT($L112, fail, 'DoubleColon "::"'), function($skip, $loc, $0, $1) {
12869
12902
  return { $loc, token: $1 };
12870
12903
  });
12871
12904
  function DoubleColon(state) {
@@ -12890,7 +12923,7 @@ ${input.slice(result.pos)}
12890
12923
  return result;
12891
12924
  }
12892
12925
  }
12893
- var DoubleQuote$0 = $TV($EXPECT($L114, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
12926
+ var DoubleQuote$0 = $TV($EXPECT($L113, fail, 'DoubleQuote "\\\\\\""'), function($skip, $loc, $0, $1) {
12894
12927
  return { $loc, token: $1 };
12895
12928
  });
12896
12929
  function DoubleQuote(state) {
@@ -12915,7 +12948,7 @@ ${input.slice(result.pos)}
12915
12948
  return result;
12916
12949
  }
12917
12950
  }
12918
- var Else$0 = $TS($S($EXPECT($L115, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12951
+ var Else$0 = $TS($S($EXPECT($L114, fail, 'Else "else"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12919
12952
  return { $loc, token: $1 };
12920
12953
  });
12921
12954
  function Else(state) {
@@ -12965,7 +12998,7 @@ ${input.slice(result.pos)}
12965
12998
  return result;
12966
12999
  }
12967
13000
  }
12968
- var Export$0 = $TS($S($EXPECT($L116, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13001
+ var Export$0 = $TS($S($EXPECT($L115, fail, 'Export "export"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12969
13002
  return { $loc, token: $1 };
12970
13003
  });
12971
13004
  function Export(state) {
@@ -12990,7 +13023,7 @@ ${input.slice(result.pos)}
12990
13023
  return result;
12991
13024
  }
12992
13025
  }
12993
- var Extends$0 = $TS($S($EXPECT($L117, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13026
+ var Extends$0 = $TS($S($EXPECT($L116, fail, 'Extends "extends"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
12994
13027
  return { $loc, token: $1 };
12995
13028
  });
12996
13029
  function Extends(state) {
@@ -13015,6 +13048,31 @@ ${input.slice(result.pos)}
13015
13048
  return result;
13016
13049
  }
13017
13050
  }
13051
+ var Finally$0 = $TS($S($EXPECT($L117, fail, 'Finally "finally"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13052
+ return { $loc, token: $1 };
13053
+ });
13054
+ function Finally(state) {
13055
+ let eventData;
13056
+ if (state.events) {
13057
+ const result = state.events.enter?.("Finally", state);
13058
+ if (result) {
13059
+ if (result.cache)
13060
+ return result.cache;
13061
+ eventData = result.data;
13062
+ }
13063
+ }
13064
+ if (state.tokenize) {
13065
+ const result = $TOKEN("Finally", state, Finally$0(state));
13066
+ if (state.events)
13067
+ state.events.exit?.("Finally", state, result, eventData);
13068
+ return result;
13069
+ } else {
13070
+ const result = Finally$0(state);
13071
+ if (state.events)
13072
+ state.events.exit?.("Finally", state, result, eventData);
13073
+ return result;
13074
+ }
13075
+ }
13018
13076
  var For$0 = $TS($S($EXPECT($L118, fail, 'For "for"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13019
13077
  return { $loc, token: $1 };
13020
13078
  });
@@ -13365,7 +13423,7 @@ ${input.slice(result.pos)}
13365
13423
  return result;
13366
13424
  }
13367
13425
  }
13368
- var OpenBracket$0 = $TV($EXPECT($L93, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
13426
+ var OpenBracket$0 = $TV($EXPECT($L92, fail, 'OpenBracket "["'), function($skip, $loc, $0, $1) {
13369
13427
  return { $loc, token: $1 };
13370
13428
  });
13371
13429
  function OpenBracket(state) {
@@ -13718,7 +13776,7 @@ ${input.slice(result.pos)}
13718
13776
  var Static$0 = $TS($S($EXPECT($L139, fail, 'Static "static"'), NonIdContinue), function($skip, $loc, $0, $1, $2) {
13719
13777
  return { $loc, token: $1 };
13720
13778
  });
13721
- var Static$1 = $TS($S($EXPECT($L97, fail, 'Static "@"'), $N($C($EXPECT($L2, fail, 'Static "("'), $EXPECT($L97, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
13779
+ var Static$1 = $TS($S($EXPECT($L96, fail, 'Static "@"'), $N($C($EXPECT($L2, fail, 'Static "("'), $EXPECT($L96, fail, 'Static "@"')))), function($skip, $loc, $0, $1, $2) {
13722
13780
  return { $loc, token: "static " };
13723
13781
  });
13724
13782
  function Static(state) {
@@ -16486,7 +16544,7 @@ ${input.slice(result.pos)}
16486
16544
  return result;
16487
16545
  }
16488
16546
  }
16489
- var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L117, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
16547
+ var TypeConditional$0 = $TS($S(TypeBinary, $E($S(__, $EXPECT($L116, fail, 'TypeConditional "extends"'), NonIdContinue, Type, $E($S(__, QuestionMark, Type, __, Colon, Type))))), function($skip, $loc, $0, $1, $2) {
16490
16548
  if ($2)
16491
16549
  return $0;
16492
16550
  return $1;
@@ -16645,7 +16703,7 @@ ${input.slice(result.pos)}
16645
16703
  return result;
16646
16704
  }
16647
16705
  }
16648
- var FunctionType$0 = $TS($S(Parameters, __, $EXPECT($L7, fail, 'FunctionType "=>"'), $E(Type)), function($skip, $loc, $0, $1, $2, $3, $4) {
16706
+ var FunctionType$0 = $TS($S(Parameters, __, TypeArrowFunction, $E(Type)), function($skip, $loc, $0, $1, $2, $3, $4) {
16649
16707
  var type = $4;
16650
16708
  if (type) {
16651
16709
  return $0;
@@ -16674,6 +16732,34 @@ ${input.slice(result.pos)}
16674
16732
  return result;
16675
16733
  }
16676
16734
  }
16735
+ var TypeArrowFunction$0 = $TV($EXPECT($L7, fail, 'TypeArrowFunction "=>"'), function($skip, $loc, $0, $1) {
16736
+ return { $loc, token: "=>" };
16737
+ });
16738
+ var TypeArrowFunction$1 = $TV($EXPECT($L20, fail, 'TypeArrowFunction "->"'), function($skip, $loc, $0, $1) {
16739
+ return { $loc, token: "=>" };
16740
+ });
16741
+ function TypeArrowFunction(state) {
16742
+ let eventData;
16743
+ if (state.events) {
16744
+ const result = state.events.enter?.("TypeArrowFunction", state);
16745
+ if (result) {
16746
+ if (result.cache)
16747
+ return result.cache;
16748
+ eventData = result.data;
16749
+ }
16750
+ }
16751
+ if (state.tokenize) {
16752
+ const result = $TOKEN("TypeArrowFunction", state, TypeArrowFunction$0(state) || TypeArrowFunction$1(state));
16753
+ if (state.events)
16754
+ state.events.exit?.("TypeArrowFunction", state, result, eventData);
16755
+ return result;
16756
+ } else {
16757
+ const result = TypeArrowFunction$0(state) || TypeArrowFunction$1(state);
16758
+ if (state.events)
16759
+ state.events.exit?.("TypeArrowFunction", state, result, eventData);
16760
+ return result;
16761
+ }
16762
+ }
16677
16763
  var TypeArguments$0 = $TS($S($EXPECT($L128, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L29, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
16678
16764
  return { ts: true, children: $0 };
16679
16765
  });
@@ -16799,7 +16885,7 @@ ${input.slice(result.pos)}
16799
16885
  return result;
16800
16886
  }
16801
16887
  }
16802
- var TypeConstraint$0 = $S(__, $EXPECT($L117, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
16888
+ var TypeConstraint$0 = $S(__, $EXPECT($L116, fail, 'TypeConstraint "extends"'), NonIdContinue, Type);
16803
16889
  function TypeConstraint(state) {
16804
16890
  let eventData;
16805
16891
  if (state.events) {
@@ -20254,7 +20340,7 @@ var parse;
20254
20340
  var uncacheable;
20255
20341
  ({ parse } = import_parser.default);
20256
20342
  ({ SourceMap: SourceMap2, base64Encode: base64Encode2 } = util_exports);
20257
- uncacheable = /* @__PURE__ */ new Set(["ActualAssignment", "ApplicationStart", "Arguments", "ArgumentsWithTrailingMemberExpressions", "ArrowFunction", "ArrowFunctionTail", "AssignmentExpression", "AssignmentExpressionTail", "BinaryOpExpression", "BinaryOpRHS", "BracedBlock", "BracedObjectLiteralContent", "BracedOrEmptyBlock", "CallExpression", "CallExpressionRest", "CoffeeCommentEnabled", "CommaDelimiter", "ConditionalExpression", "Declaration", "Debugger", "ElseClause", "Expression", "ExpressionStatement", "ExpressionWithIndentedApplicationSuppressed", "ExtendedExpression", "FatArrowBody", "FunctionDeclaration", "FunctionExpression", "HoistableDeclaration", "ImplicitArguments", "ImplicitInlineObjectPropertyDelimiter", "ImplicitNestedBlock", "IndentedApplicationAllowed", "IndentedFurther", "IndentedJSXChildExpression", "InlineObjectLiteral", "InsertIndent", "JSXChild", "JSXChildren", "JSXElement", "JSXFragment", "JSXImplicitFragment", "JSXMixedChildren", "JSXNested", "JSXNestedChildren", "JSXOptionalClosingElement", "JSXOptionalClosingFragment", "JSXTag", "LeftHandSideExpression", "MemberExpression", "MemberExpressionRest", "Nested", "NestedBindingElement", "NestedBindingElements", "NestedBlockExpression", "NestedBlockExpression", "NestedBlockStatement", "NestedBlockStatements", "NestedElement", "NestedElementList", "NestedImplicitObjectLiteral", "NestedImplicitPropertyDefinition", "NestedImplicitPropertyDefinitions", "NestedInterfaceProperty", "NestedJSXChildExpression", "NestedObject", "NestedPropertyDefinitions", "NonSuppressedTrailingMemberExpressions", "ObjectLiteral", "PopIndent", "PrimaryExpression", "PushIndent", "PushJSXOpeningElement", "PushJSXOpeningFragment", "Samedent", "ShortCircuitExpression", "SingleLineAssignmentExpression", "SingleLineComment", "SingleLineStatements", "SnugNamedProperty", "Statement", "StatementListItem", "SuppressIndentedApplication", "SuppressTrailingMemberProperty", "ThinArrowFunction", "TrackIndented", "TrailingMemberExpressions", "TrailingMemberPropertyAllowed", "TypedJSXElement", "TypedJSXFragment", "UnaryExpression", "UpdateExpression"]);
20343
+ uncacheable = /* @__PURE__ */ new Set(["ActualAssignment", "ApplicationStart", "Arguments", "ArgumentsWithTrailingMemberExpressions", "ArrowFunction", "ArrowFunctionTail", "AssignmentExpression", "AssignmentExpressionTail", "BinaryOpExpression", "BinaryOpRHS", "BracedBlock", "BracedObjectLiteralContent", "BracedOrEmptyBlock", "CallExpression", "CallExpressionRest", "CoffeeCommentEnabled", "CommaDelimiter", "ConditionalExpression", "Declaration", "Debugger", "ElseClause", "Expression", "ExpressionStatement", "ExpressionWithIndentedApplicationSuppressed", "ExtendedExpression", "FatArrowBody", "FunctionDeclaration", "FunctionExpression", "HoistableDeclaration", "ImplicitArguments", "ImplicitInlineObjectPropertyDelimiter", "ImplicitNestedBlock", "IndentedApplicationAllowed", "IndentedFurther", "IndentedJSXChildExpression", "InlineObjectLiteral", "InsertIndent", "JSXChild", "JSXChildren", "JSXElement", "JSXFragment", "JSXImplicitFragment", "JSXMixedChildren", "JSXNested", "JSXNestedChildren", "JSXOptionalClosingElement", "JSXOptionalClosingFragment", "JSXTag", "LeftHandSideExpression", "MemberExpression", "MemberExpressionRest", "Nested", "NestedBindingElement", "NestedBindingElements", "NestedBlockExpression", "NestedBlockExpression", "NestedBlockStatement", "NestedBlockStatements", "NestedElement", "NestedElementList", "NestedImplicitObjectLiteral", "NestedImplicitPropertyDefinition", "NestedImplicitPropertyDefinitions", "NestedInterfaceProperty", "NestedJSXChildExpression", "NestedObject", "NestedPropertyDefinitions", "NonSuppressedTrailingMemberExpressions", "ObjectLiteral", "PopIndent", "PrimaryExpression", "PushIndent", "PushJSXOpeningElement", "PushJSXOpeningFragment", "RHS", "Samedent", "ShortCircuitExpression", "SingleLineAssignmentExpression", "SingleLineComment", "SingleLineStatements", "SnugNamedProperty", "Statement", "StatementListItem", "SuppressIndentedApplication", "SuppressTrailingMemberProperty", "ThinArrowFunction", "TrackIndented", "TrailingMemberExpressions", "TrailingMemberPropertyAllowed", "TypedJSXElement", "TypedJSXFragment", "UnaryExpression", "UpdateExpression"]);
20258
20344
  var compile = function(src, options) {
20259
20345
  var ast, code, events, filename, ref, result, sm, srcMapJSON;
20260
20346
  if (!options) {