@putout/bundle 3.9.0 → 3.10.0

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/bundle/putout.js CHANGED
@@ -2456,7 +2456,7 @@ function format(f) {
2456
2456
  if (!isString$b(f)) {
2457
2457
  var objects = [];
2458
2458
  for (var i = 0; i < arguments.length; i++) {
2459
- objects.push(inspect$1(arguments[i]));
2459
+ objects.push(inspect(arguments[i]));
2460
2460
  }
2461
2461
  return objects.join(' ');
2462
2462
  }
@@ -2484,7 +2484,7 @@ function format(f) {
2484
2484
  if (isNull$1(x) || !isObject$5(x)) {
2485
2485
  str += ' ' + x;
2486
2486
  } else {
2487
- str += ' ' + inspect$1(x);
2487
+ str += ' ' + inspect(x);
2488
2488
  }
2489
2489
  }
2490
2490
  return str;
@@ -2551,7 +2551,7 @@ function debuglog(set) {
2551
2551
  * @param {Object} opts Optional options object that alters the output.
2552
2552
  */
2553
2553
  /* legacy: obj, showHidden, depth, colors*/
2554
- function inspect$1(obj, opts) {
2554
+ function inspect(obj, opts) {
2555
2555
  // default options
2556
2556
  var ctx = {
2557
2557
  seen: [],
@@ -2577,7 +2577,7 @@ function inspect$1(obj, opts) {
2577
2577
  }
2578
2578
 
2579
2579
  // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
2580
- inspect$1.colors = {
2580
+ inspect.colors = {
2581
2581
  'bold' : [1, 22],
2582
2582
  'italic' : [3, 23],
2583
2583
  'underline' : [4, 24],
@@ -2594,7 +2594,7 @@ inspect$1.colors = {
2594
2594
  };
2595
2595
 
2596
2596
  // Don't use 'blue' not visible on cmd.exe
2597
- inspect$1.styles = {
2597
+ inspect.styles = {
2598
2598
  'special': 'cyan',
2599
2599
  'number': 'yellow',
2600
2600
  'boolean': 'yellow',
@@ -2608,11 +2608,11 @@ inspect$1.styles = {
2608
2608
 
2609
2609
 
2610
2610
  function stylizeWithColor(str, styleType) {
2611
- var style = inspect$1.styles[styleType];
2611
+ var style = inspect.styles[styleType];
2612
2612
 
2613
2613
  if (style) {
2614
- return '\u001b[' + inspect$1.colors[style][0] + 'm' + str +
2615
- '\u001b[' + inspect$1.colors[style][1] + 'm';
2614
+ return '\u001b[' + inspect.colors[style][0] + 'm' + str +
2615
+ '\u001b[' + inspect.colors[style][1] + 'm';
2616
2616
  } else {
2617
2617
  return str;
2618
2618
  }
@@ -2642,7 +2642,7 @@ function formatValue(ctx, value, recurseTimes) {
2642
2642
  value &&
2643
2643
  isFunction$3(value.inspect) &&
2644
2644
  // Filter out the util module, it's inspect function is special
2645
- value.inspect !== inspect$1 &&
2645
+ value.inspect !== inspect &&
2646
2646
  // Also filter out any prototype objects using the circular check.
2647
2647
  !(value.constructor && value.constructor.prototype === value)) {
2648
2648
  var ret = value.inspect(recurseTimes, ctx);
@@ -3105,7 +3105,7 @@ var _polyfillNode_util = {
3105
3105
  isNull: isNull$1,
3106
3106
  isBoolean: isBoolean,
3107
3107
  isArray: isArray$f,
3108
- inspect: inspect$1,
3108
+ inspect: inspect,
3109
3109
  deprecate: deprecate,
3110
3110
  format: format,
3111
3111
  debuglog: debuglog,
@@ -3122,7 +3122,7 @@ var _polyfillNode_util$1 = /*#__PURE__*/Object.freeze({
3122
3122
  deprecate: deprecate,
3123
3123
  format: format,
3124
3124
  inherits: inherits$2,
3125
- inspect: inspect$1,
3125
+ inspect: inspect,
3126
3126
  isArray: isArray$f,
3127
3127
  isBoolean: isBoolean,
3128
3128
  isBuffer: isBuffer,
@@ -7473,10 +7473,10 @@ __export(lib_exports2, {
7473
7473
  return generate$6;
7474
7474
  },
7475
7475
  parse: function() {
7476
- return parse$5;
7476
+ return parse$6;
7477
7477
  },
7478
7478
  parseExpression: function() {
7479
- return parseExpression$1;
7479
+ return parseExpression;
7480
7480
  },
7481
7481
  template: function() {
7482
7482
  return index;
@@ -10007,7 +10007,7 @@ __export(lib_exports, {
10007
10007
  return isExpression$2;
10008
10008
  },
10009
10009
  isExpressionStatement: function() {
10010
- return isExpressionStatement$2;
10010
+ return isExpressionStatement$1;
10011
10011
  },
10012
10012
  isExpressionWrapper: function() {
10013
10013
  return isExpressionWrapper;
@@ -12910,7 +12910,7 @@ function isEmptyStatement(node, opts) {
12910
12910
  if (node.type !== "EmptyStatement") return false;
12911
12911
  return opts == null || shallowEqual(node, opts);
12912
12912
  }
12913
- function isExpressionStatement$2(node, opts) {
12913
+ function isExpressionStatement$1(node, opts) {
12914
12914
  if (!node) return false;
12915
12915
  if (node.type !== "ExpressionStatement") return false;
12916
12916
  return opts == null || shallowEqual(node, opts);
@@ -22261,927 +22261,927 @@ function assertNode(node) {
22261
22261
  throw new TypeError('Not a valid node of type "'.concat(type, '"'));
22262
22262
  }
22263
22263
  }
22264
- function assert$1(type, node, opts) {
22264
+ function assert(type, node, opts) {
22265
22265
  if (!is$4(type, node, opts)) {
22266
22266
  throw new Error('Expected type "'.concat(type, '" with option ').concat(JSON.stringify(opts), ', but instead got "').concat(node.type, '".'));
22267
22267
  }
22268
22268
  }
22269
22269
  function assertArrayExpression(node, opts) {
22270
- assert$1("ArrayExpression", node, opts);
22270
+ assert("ArrayExpression", node, opts);
22271
22271
  }
22272
22272
  function assertAssignmentExpression(node, opts) {
22273
- assert$1("AssignmentExpression", node, opts);
22273
+ assert("AssignmentExpression", node, opts);
22274
22274
  }
22275
22275
  function assertBinaryExpression(node, opts) {
22276
- assert$1("BinaryExpression", node, opts);
22276
+ assert("BinaryExpression", node, opts);
22277
22277
  }
22278
22278
  function assertInterpreterDirective(node, opts) {
22279
- assert$1("InterpreterDirective", node, opts);
22279
+ assert("InterpreterDirective", node, opts);
22280
22280
  }
22281
22281
  function assertDirective(node, opts) {
22282
- assert$1("Directive", node, opts);
22282
+ assert("Directive", node, opts);
22283
22283
  }
22284
22284
  function assertDirectiveLiteral(node, opts) {
22285
- assert$1("DirectiveLiteral", node, opts);
22285
+ assert("DirectiveLiteral", node, opts);
22286
22286
  }
22287
22287
  function assertBlockStatement(node, opts) {
22288
- assert$1("BlockStatement", node, opts);
22288
+ assert("BlockStatement", node, opts);
22289
22289
  }
22290
22290
  function assertBreakStatement(node, opts) {
22291
- assert$1("BreakStatement", node, opts);
22291
+ assert("BreakStatement", node, opts);
22292
22292
  }
22293
22293
  function assertCallExpression(node, opts) {
22294
- assert$1("CallExpression", node, opts);
22294
+ assert("CallExpression", node, opts);
22295
22295
  }
22296
22296
  function assertCatchClause(node, opts) {
22297
- assert$1("CatchClause", node, opts);
22297
+ assert("CatchClause", node, opts);
22298
22298
  }
22299
22299
  function assertConditionalExpression(node, opts) {
22300
- assert$1("ConditionalExpression", node, opts);
22300
+ assert("ConditionalExpression", node, opts);
22301
22301
  }
22302
22302
  function assertContinueStatement(node, opts) {
22303
- assert$1("ContinueStatement", node, opts);
22303
+ assert("ContinueStatement", node, opts);
22304
22304
  }
22305
22305
  function assertDebuggerStatement(node, opts) {
22306
- assert$1("DebuggerStatement", node, opts);
22306
+ assert("DebuggerStatement", node, opts);
22307
22307
  }
22308
22308
  function assertDoWhileStatement(node, opts) {
22309
- assert$1("DoWhileStatement", node, opts);
22309
+ assert("DoWhileStatement", node, opts);
22310
22310
  }
22311
22311
  function assertEmptyStatement(node, opts) {
22312
- assert$1("EmptyStatement", node, opts);
22312
+ assert("EmptyStatement", node, opts);
22313
22313
  }
22314
22314
  function assertExpressionStatement(node, opts) {
22315
- assert$1("ExpressionStatement", node, opts);
22315
+ assert("ExpressionStatement", node, opts);
22316
22316
  }
22317
22317
  function assertFile(node, opts) {
22318
- assert$1("File", node, opts);
22318
+ assert("File", node, opts);
22319
22319
  }
22320
22320
  function assertForInStatement(node, opts) {
22321
- assert$1("ForInStatement", node, opts);
22321
+ assert("ForInStatement", node, opts);
22322
22322
  }
22323
22323
  function assertForStatement(node, opts) {
22324
- assert$1("ForStatement", node, opts);
22324
+ assert("ForStatement", node, opts);
22325
22325
  }
22326
22326
  function assertFunctionDeclaration(node, opts) {
22327
- assert$1("FunctionDeclaration", node, opts);
22327
+ assert("FunctionDeclaration", node, opts);
22328
22328
  }
22329
22329
  function assertFunctionExpression(node, opts) {
22330
- assert$1("FunctionExpression", node, opts);
22330
+ assert("FunctionExpression", node, opts);
22331
22331
  }
22332
22332
  function assertIdentifier(node, opts) {
22333
- assert$1("Identifier", node, opts);
22333
+ assert("Identifier", node, opts);
22334
22334
  }
22335
22335
  function assertIfStatement(node, opts) {
22336
- assert$1("IfStatement", node, opts);
22336
+ assert("IfStatement", node, opts);
22337
22337
  }
22338
22338
  function assertLabeledStatement(node, opts) {
22339
- assert$1("LabeledStatement", node, opts);
22339
+ assert("LabeledStatement", node, opts);
22340
22340
  }
22341
22341
  function assertStringLiteral(node, opts) {
22342
- assert$1("StringLiteral", node, opts);
22342
+ assert("StringLiteral", node, opts);
22343
22343
  }
22344
22344
  function assertNumericLiteral(node, opts) {
22345
- assert$1("NumericLiteral", node, opts);
22345
+ assert("NumericLiteral", node, opts);
22346
22346
  }
22347
22347
  function assertNullLiteral(node, opts) {
22348
- assert$1("NullLiteral", node, opts);
22348
+ assert("NullLiteral", node, opts);
22349
22349
  }
22350
22350
  function assertBooleanLiteral(node, opts) {
22351
- assert$1("BooleanLiteral", node, opts);
22351
+ assert("BooleanLiteral", node, opts);
22352
22352
  }
22353
22353
  function assertRegExpLiteral(node, opts) {
22354
- assert$1("RegExpLiteral", node, opts);
22354
+ assert("RegExpLiteral", node, opts);
22355
22355
  }
22356
22356
  function assertLogicalExpression(node, opts) {
22357
- assert$1("LogicalExpression", node, opts);
22357
+ assert("LogicalExpression", node, opts);
22358
22358
  }
22359
22359
  function assertMemberExpression(node, opts) {
22360
- assert$1("MemberExpression", node, opts);
22360
+ assert("MemberExpression", node, opts);
22361
22361
  }
22362
22362
  function assertNewExpression(node, opts) {
22363
- assert$1("NewExpression", node, opts);
22363
+ assert("NewExpression", node, opts);
22364
22364
  }
22365
22365
  function assertProgram(node, opts) {
22366
- assert$1("Program", node, opts);
22366
+ assert("Program", node, opts);
22367
22367
  }
22368
22368
  function assertObjectExpression(node, opts) {
22369
- assert$1("ObjectExpression", node, opts);
22369
+ assert("ObjectExpression", node, opts);
22370
22370
  }
22371
22371
  function assertObjectMethod(node, opts) {
22372
- assert$1("ObjectMethod", node, opts);
22372
+ assert("ObjectMethod", node, opts);
22373
22373
  }
22374
22374
  function assertObjectProperty(node, opts) {
22375
- assert$1("ObjectProperty", node, opts);
22375
+ assert("ObjectProperty", node, opts);
22376
22376
  }
22377
22377
  function assertRestElement(node, opts) {
22378
- assert$1("RestElement", node, opts);
22378
+ assert("RestElement", node, opts);
22379
22379
  }
22380
22380
  function assertReturnStatement(node, opts) {
22381
- assert$1("ReturnStatement", node, opts);
22381
+ assert("ReturnStatement", node, opts);
22382
22382
  }
22383
22383
  function assertSequenceExpression(node, opts) {
22384
- assert$1("SequenceExpression", node, opts);
22384
+ assert("SequenceExpression", node, opts);
22385
22385
  }
22386
22386
  function assertParenthesizedExpression(node, opts) {
22387
- assert$1("ParenthesizedExpression", node, opts);
22387
+ assert("ParenthesizedExpression", node, opts);
22388
22388
  }
22389
22389
  function assertSwitchCase(node, opts) {
22390
- assert$1("SwitchCase", node, opts);
22390
+ assert("SwitchCase", node, opts);
22391
22391
  }
22392
22392
  function assertSwitchStatement(node, opts) {
22393
- assert$1("SwitchStatement", node, opts);
22393
+ assert("SwitchStatement", node, opts);
22394
22394
  }
22395
22395
  function assertThisExpression(node, opts) {
22396
- assert$1("ThisExpression", node, opts);
22396
+ assert("ThisExpression", node, opts);
22397
22397
  }
22398
22398
  function assertThrowStatement(node, opts) {
22399
- assert$1("ThrowStatement", node, opts);
22399
+ assert("ThrowStatement", node, opts);
22400
22400
  }
22401
22401
  function assertTryStatement(node, opts) {
22402
- assert$1("TryStatement", node, opts);
22402
+ assert("TryStatement", node, opts);
22403
22403
  }
22404
22404
  function assertUnaryExpression(node, opts) {
22405
- assert$1("UnaryExpression", node, opts);
22405
+ assert("UnaryExpression", node, opts);
22406
22406
  }
22407
22407
  function assertUpdateExpression(node, opts) {
22408
- assert$1("UpdateExpression", node, opts);
22408
+ assert("UpdateExpression", node, opts);
22409
22409
  }
22410
22410
  function assertVariableDeclaration(node, opts) {
22411
- assert$1("VariableDeclaration", node, opts);
22411
+ assert("VariableDeclaration", node, opts);
22412
22412
  }
22413
22413
  function assertVariableDeclarator(node, opts) {
22414
- assert$1("VariableDeclarator", node, opts);
22414
+ assert("VariableDeclarator", node, opts);
22415
22415
  }
22416
22416
  function assertWhileStatement(node, opts) {
22417
- assert$1("WhileStatement", node, opts);
22417
+ assert("WhileStatement", node, opts);
22418
22418
  }
22419
22419
  function assertWithStatement(node, opts) {
22420
- assert$1("WithStatement", node, opts);
22420
+ assert("WithStatement", node, opts);
22421
22421
  }
22422
22422
  function assertAssignmentPattern(node, opts) {
22423
- assert$1("AssignmentPattern", node, opts);
22423
+ assert("AssignmentPattern", node, opts);
22424
22424
  }
22425
22425
  function assertArrayPattern(node, opts) {
22426
- assert$1("ArrayPattern", node, opts);
22426
+ assert("ArrayPattern", node, opts);
22427
22427
  }
22428
22428
  function assertArrowFunctionExpression(node, opts) {
22429
- assert$1("ArrowFunctionExpression", node, opts);
22429
+ assert("ArrowFunctionExpression", node, opts);
22430
22430
  }
22431
22431
  function assertClassBody(node, opts) {
22432
- assert$1("ClassBody", node, opts);
22432
+ assert("ClassBody", node, opts);
22433
22433
  }
22434
22434
  function assertClassExpression(node, opts) {
22435
- assert$1("ClassExpression", node, opts);
22435
+ assert("ClassExpression", node, opts);
22436
22436
  }
22437
22437
  function assertClassDeclaration(node, opts) {
22438
- assert$1("ClassDeclaration", node, opts);
22438
+ assert("ClassDeclaration", node, opts);
22439
22439
  }
22440
22440
  function assertExportAllDeclaration(node, opts) {
22441
- assert$1("ExportAllDeclaration", node, opts);
22441
+ assert("ExportAllDeclaration", node, opts);
22442
22442
  }
22443
22443
  function assertExportDefaultDeclaration(node, opts) {
22444
- assert$1("ExportDefaultDeclaration", node, opts);
22444
+ assert("ExportDefaultDeclaration", node, opts);
22445
22445
  }
22446
22446
  function assertExportNamedDeclaration(node, opts) {
22447
- assert$1("ExportNamedDeclaration", node, opts);
22447
+ assert("ExportNamedDeclaration", node, opts);
22448
22448
  }
22449
22449
  function assertExportSpecifier(node, opts) {
22450
- assert$1("ExportSpecifier", node, opts);
22450
+ assert("ExportSpecifier", node, opts);
22451
22451
  }
22452
22452
  function assertForOfStatement(node, opts) {
22453
- assert$1("ForOfStatement", node, opts);
22453
+ assert("ForOfStatement", node, opts);
22454
22454
  }
22455
22455
  function assertImportDeclaration(node, opts) {
22456
- assert$1("ImportDeclaration", node, opts);
22456
+ assert("ImportDeclaration", node, opts);
22457
22457
  }
22458
22458
  function assertImportDefaultSpecifier(node, opts) {
22459
- assert$1("ImportDefaultSpecifier", node, opts);
22459
+ assert("ImportDefaultSpecifier", node, opts);
22460
22460
  }
22461
22461
  function assertImportNamespaceSpecifier(node, opts) {
22462
- assert$1("ImportNamespaceSpecifier", node, opts);
22462
+ assert("ImportNamespaceSpecifier", node, opts);
22463
22463
  }
22464
22464
  function assertImportSpecifier(node, opts) {
22465
- assert$1("ImportSpecifier", node, opts);
22465
+ assert("ImportSpecifier", node, opts);
22466
22466
  }
22467
22467
  function assertImportExpression(node, opts) {
22468
- assert$1("ImportExpression", node, opts);
22468
+ assert("ImportExpression", node, opts);
22469
22469
  }
22470
22470
  function assertMetaProperty(node, opts) {
22471
- assert$1("MetaProperty", node, opts);
22471
+ assert("MetaProperty", node, opts);
22472
22472
  }
22473
22473
  function assertClassMethod(node, opts) {
22474
- assert$1("ClassMethod", node, opts);
22474
+ assert("ClassMethod", node, opts);
22475
22475
  }
22476
22476
  function assertObjectPattern(node, opts) {
22477
- assert$1("ObjectPattern", node, opts);
22477
+ assert("ObjectPattern", node, opts);
22478
22478
  }
22479
22479
  function assertSpreadElement(node, opts) {
22480
- assert$1("SpreadElement", node, opts);
22480
+ assert("SpreadElement", node, opts);
22481
22481
  }
22482
22482
  function assertSuper(node, opts) {
22483
- assert$1("Super", node, opts);
22483
+ assert("Super", node, opts);
22484
22484
  }
22485
22485
  function assertTaggedTemplateExpression(node, opts) {
22486
- assert$1("TaggedTemplateExpression", node, opts);
22486
+ assert("TaggedTemplateExpression", node, opts);
22487
22487
  }
22488
22488
  function assertTemplateElement(node, opts) {
22489
- assert$1("TemplateElement", node, opts);
22489
+ assert("TemplateElement", node, opts);
22490
22490
  }
22491
22491
  function assertTemplateLiteral(node, opts) {
22492
- assert$1("TemplateLiteral", node, opts);
22492
+ assert("TemplateLiteral", node, opts);
22493
22493
  }
22494
22494
  function assertYieldExpression(node, opts) {
22495
- assert$1("YieldExpression", node, opts);
22495
+ assert("YieldExpression", node, opts);
22496
22496
  }
22497
22497
  function assertAwaitExpression(node, opts) {
22498
- assert$1("AwaitExpression", node, opts);
22498
+ assert("AwaitExpression", node, opts);
22499
22499
  }
22500
22500
  function assertImport(node, opts) {
22501
- assert$1("Import", node, opts);
22501
+ assert("Import", node, opts);
22502
22502
  }
22503
22503
  function assertBigIntLiteral(node, opts) {
22504
- assert$1("BigIntLiteral", node, opts);
22504
+ assert("BigIntLiteral", node, opts);
22505
22505
  }
22506
22506
  function assertExportNamespaceSpecifier(node, opts) {
22507
- assert$1("ExportNamespaceSpecifier", node, opts);
22507
+ assert("ExportNamespaceSpecifier", node, opts);
22508
22508
  }
22509
22509
  function assertOptionalMemberExpression(node, opts) {
22510
- assert$1("OptionalMemberExpression", node, opts);
22510
+ assert("OptionalMemberExpression", node, opts);
22511
22511
  }
22512
22512
  function assertOptionalCallExpression(node, opts) {
22513
- assert$1("OptionalCallExpression", node, opts);
22513
+ assert("OptionalCallExpression", node, opts);
22514
22514
  }
22515
22515
  function assertClassProperty(node, opts) {
22516
- assert$1("ClassProperty", node, opts);
22516
+ assert("ClassProperty", node, opts);
22517
22517
  }
22518
22518
  function assertClassAccessorProperty(node, opts) {
22519
- assert$1("ClassAccessorProperty", node, opts);
22519
+ assert("ClassAccessorProperty", node, opts);
22520
22520
  }
22521
22521
  function assertClassPrivateProperty(node, opts) {
22522
- assert$1("ClassPrivateProperty", node, opts);
22522
+ assert("ClassPrivateProperty", node, opts);
22523
22523
  }
22524
22524
  function assertClassPrivateMethod(node, opts) {
22525
- assert$1("ClassPrivateMethod", node, opts);
22525
+ assert("ClassPrivateMethod", node, opts);
22526
22526
  }
22527
22527
  function assertPrivateName(node, opts) {
22528
- assert$1("PrivateName", node, opts);
22528
+ assert("PrivateName", node, opts);
22529
22529
  }
22530
22530
  function assertStaticBlock(node, opts) {
22531
- assert$1("StaticBlock", node, opts);
22531
+ assert("StaticBlock", node, opts);
22532
22532
  }
22533
22533
  function assertAnyTypeAnnotation(node, opts) {
22534
- assert$1("AnyTypeAnnotation", node, opts);
22534
+ assert("AnyTypeAnnotation", node, opts);
22535
22535
  }
22536
22536
  function assertArrayTypeAnnotation(node, opts) {
22537
- assert$1("ArrayTypeAnnotation", node, opts);
22537
+ assert("ArrayTypeAnnotation", node, opts);
22538
22538
  }
22539
22539
  function assertBooleanTypeAnnotation(node, opts) {
22540
- assert$1("BooleanTypeAnnotation", node, opts);
22540
+ assert("BooleanTypeAnnotation", node, opts);
22541
22541
  }
22542
22542
  function assertBooleanLiteralTypeAnnotation(node, opts) {
22543
- assert$1("BooleanLiteralTypeAnnotation", node, opts);
22543
+ assert("BooleanLiteralTypeAnnotation", node, opts);
22544
22544
  }
22545
22545
  function assertNullLiteralTypeAnnotation(node, opts) {
22546
- assert$1("NullLiteralTypeAnnotation", node, opts);
22546
+ assert("NullLiteralTypeAnnotation", node, opts);
22547
22547
  }
22548
22548
  function assertClassImplements(node, opts) {
22549
- assert$1("ClassImplements", node, opts);
22549
+ assert("ClassImplements", node, opts);
22550
22550
  }
22551
22551
  function assertDeclareClass(node, opts) {
22552
- assert$1("DeclareClass", node, opts);
22552
+ assert("DeclareClass", node, opts);
22553
22553
  }
22554
22554
  function assertDeclareFunction(node, opts) {
22555
- assert$1("DeclareFunction", node, opts);
22555
+ assert("DeclareFunction", node, opts);
22556
22556
  }
22557
22557
  function assertDeclareInterface(node, opts) {
22558
- assert$1("DeclareInterface", node, opts);
22558
+ assert("DeclareInterface", node, opts);
22559
22559
  }
22560
22560
  function assertDeclareModule(node, opts) {
22561
- assert$1("DeclareModule", node, opts);
22561
+ assert("DeclareModule", node, opts);
22562
22562
  }
22563
22563
  function assertDeclareModuleExports(node, opts) {
22564
- assert$1("DeclareModuleExports", node, opts);
22564
+ assert("DeclareModuleExports", node, opts);
22565
22565
  }
22566
22566
  function assertDeclareTypeAlias(node, opts) {
22567
- assert$1("DeclareTypeAlias", node, opts);
22567
+ assert("DeclareTypeAlias", node, opts);
22568
22568
  }
22569
22569
  function assertDeclareOpaqueType(node, opts) {
22570
- assert$1("DeclareOpaqueType", node, opts);
22570
+ assert("DeclareOpaqueType", node, opts);
22571
22571
  }
22572
22572
  function assertDeclareVariable(node, opts) {
22573
- assert$1("DeclareVariable", node, opts);
22573
+ assert("DeclareVariable", node, opts);
22574
22574
  }
22575
22575
  function assertDeclareExportDeclaration(node, opts) {
22576
- assert$1("DeclareExportDeclaration", node, opts);
22576
+ assert("DeclareExportDeclaration", node, opts);
22577
22577
  }
22578
22578
  function assertDeclareExportAllDeclaration(node, opts) {
22579
- assert$1("DeclareExportAllDeclaration", node, opts);
22579
+ assert("DeclareExportAllDeclaration", node, opts);
22580
22580
  }
22581
22581
  function assertDeclaredPredicate(node, opts) {
22582
- assert$1("DeclaredPredicate", node, opts);
22582
+ assert("DeclaredPredicate", node, opts);
22583
22583
  }
22584
22584
  function assertExistsTypeAnnotation(node, opts) {
22585
- assert$1("ExistsTypeAnnotation", node, opts);
22585
+ assert("ExistsTypeAnnotation", node, opts);
22586
22586
  }
22587
22587
  function assertFunctionTypeAnnotation(node, opts) {
22588
- assert$1("FunctionTypeAnnotation", node, opts);
22588
+ assert("FunctionTypeAnnotation", node, opts);
22589
22589
  }
22590
22590
  function assertFunctionTypeParam(node, opts) {
22591
- assert$1("FunctionTypeParam", node, opts);
22591
+ assert("FunctionTypeParam", node, opts);
22592
22592
  }
22593
22593
  function assertGenericTypeAnnotation(node, opts) {
22594
- assert$1("GenericTypeAnnotation", node, opts);
22594
+ assert("GenericTypeAnnotation", node, opts);
22595
22595
  }
22596
22596
  function assertInferredPredicate(node, opts) {
22597
- assert$1("InferredPredicate", node, opts);
22597
+ assert("InferredPredicate", node, opts);
22598
22598
  }
22599
22599
  function assertInterfaceExtends(node, opts) {
22600
- assert$1("InterfaceExtends", node, opts);
22600
+ assert("InterfaceExtends", node, opts);
22601
22601
  }
22602
22602
  function assertInterfaceDeclaration(node, opts) {
22603
- assert$1("InterfaceDeclaration", node, opts);
22603
+ assert("InterfaceDeclaration", node, opts);
22604
22604
  }
22605
22605
  function assertInterfaceTypeAnnotation(node, opts) {
22606
- assert$1("InterfaceTypeAnnotation", node, opts);
22606
+ assert("InterfaceTypeAnnotation", node, opts);
22607
22607
  }
22608
22608
  function assertIntersectionTypeAnnotation(node, opts) {
22609
- assert$1("IntersectionTypeAnnotation", node, opts);
22609
+ assert("IntersectionTypeAnnotation", node, opts);
22610
22610
  }
22611
22611
  function assertMixedTypeAnnotation(node, opts) {
22612
- assert$1("MixedTypeAnnotation", node, opts);
22612
+ assert("MixedTypeAnnotation", node, opts);
22613
22613
  }
22614
22614
  function assertEmptyTypeAnnotation(node, opts) {
22615
- assert$1("EmptyTypeAnnotation", node, opts);
22615
+ assert("EmptyTypeAnnotation", node, opts);
22616
22616
  }
22617
22617
  function assertNullableTypeAnnotation(node, opts) {
22618
- assert$1("NullableTypeAnnotation", node, opts);
22618
+ assert("NullableTypeAnnotation", node, opts);
22619
22619
  }
22620
22620
  function assertNumberLiteralTypeAnnotation(node, opts) {
22621
- assert$1("NumberLiteralTypeAnnotation", node, opts);
22621
+ assert("NumberLiteralTypeAnnotation", node, opts);
22622
22622
  }
22623
22623
  function assertNumberTypeAnnotation(node, opts) {
22624
- assert$1("NumberTypeAnnotation", node, opts);
22624
+ assert("NumberTypeAnnotation", node, opts);
22625
22625
  }
22626
22626
  function assertObjectTypeAnnotation(node, opts) {
22627
- assert$1("ObjectTypeAnnotation", node, opts);
22627
+ assert("ObjectTypeAnnotation", node, opts);
22628
22628
  }
22629
22629
  function assertObjectTypeInternalSlot(node, opts) {
22630
- assert$1("ObjectTypeInternalSlot", node, opts);
22630
+ assert("ObjectTypeInternalSlot", node, opts);
22631
22631
  }
22632
22632
  function assertObjectTypeCallProperty(node, opts) {
22633
- assert$1("ObjectTypeCallProperty", node, opts);
22633
+ assert("ObjectTypeCallProperty", node, opts);
22634
22634
  }
22635
22635
  function assertObjectTypeIndexer(node, opts) {
22636
- assert$1("ObjectTypeIndexer", node, opts);
22636
+ assert("ObjectTypeIndexer", node, opts);
22637
22637
  }
22638
22638
  function assertObjectTypeProperty(node, opts) {
22639
- assert$1("ObjectTypeProperty", node, opts);
22639
+ assert("ObjectTypeProperty", node, opts);
22640
22640
  }
22641
22641
  function assertObjectTypeSpreadProperty(node, opts) {
22642
- assert$1("ObjectTypeSpreadProperty", node, opts);
22642
+ assert("ObjectTypeSpreadProperty", node, opts);
22643
22643
  }
22644
22644
  function assertOpaqueType(node, opts) {
22645
- assert$1("OpaqueType", node, opts);
22645
+ assert("OpaqueType", node, opts);
22646
22646
  }
22647
22647
  function assertQualifiedTypeIdentifier(node, opts) {
22648
- assert$1("QualifiedTypeIdentifier", node, opts);
22648
+ assert("QualifiedTypeIdentifier", node, opts);
22649
22649
  }
22650
22650
  function assertStringLiteralTypeAnnotation(node, opts) {
22651
- assert$1("StringLiteralTypeAnnotation", node, opts);
22651
+ assert("StringLiteralTypeAnnotation", node, opts);
22652
22652
  }
22653
22653
  function assertStringTypeAnnotation(node, opts) {
22654
- assert$1("StringTypeAnnotation", node, opts);
22654
+ assert("StringTypeAnnotation", node, opts);
22655
22655
  }
22656
22656
  function assertSymbolTypeAnnotation(node, opts) {
22657
- assert$1("SymbolTypeAnnotation", node, opts);
22657
+ assert("SymbolTypeAnnotation", node, opts);
22658
22658
  }
22659
22659
  function assertThisTypeAnnotation(node, opts) {
22660
- assert$1("ThisTypeAnnotation", node, opts);
22660
+ assert("ThisTypeAnnotation", node, opts);
22661
22661
  }
22662
22662
  function assertTupleTypeAnnotation(node, opts) {
22663
- assert$1("TupleTypeAnnotation", node, opts);
22663
+ assert("TupleTypeAnnotation", node, opts);
22664
22664
  }
22665
22665
  function assertTypeofTypeAnnotation(node, opts) {
22666
- assert$1("TypeofTypeAnnotation", node, opts);
22666
+ assert("TypeofTypeAnnotation", node, opts);
22667
22667
  }
22668
22668
  function assertTypeAlias(node, opts) {
22669
- assert$1("TypeAlias", node, opts);
22669
+ assert("TypeAlias", node, opts);
22670
22670
  }
22671
22671
  function assertTypeAnnotation(node, opts) {
22672
- assert$1("TypeAnnotation", node, opts);
22672
+ assert("TypeAnnotation", node, opts);
22673
22673
  }
22674
22674
  function assertTypeCastExpression(node, opts) {
22675
- assert$1("TypeCastExpression", node, opts);
22675
+ assert("TypeCastExpression", node, opts);
22676
22676
  }
22677
22677
  function assertTypeParameter(node, opts) {
22678
- assert$1("TypeParameter", node, opts);
22678
+ assert("TypeParameter", node, opts);
22679
22679
  }
22680
22680
  function assertTypeParameterDeclaration(node, opts) {
22681
- assert$1("TypeParameterDeclaration", node, opts);
22681
+ assert("TypeParameterDeclaration", node, opts);
22682
22682
  }
22683
22683
  function assertTypeParameterInstantiation(node, opts) {
22684
- assert$1("TypeParameterInstantiation", node, opts);
22684
+ assert("TypeParameterInstantiation", node, opts);
22685
22685
  }
22686
22686
  function assertUnionTypeAnnotation(node, opts) {
22687
- assert$1("UnionTypeAnnotation", node, opts);
22687
+ assert("UnionTypeAnnotation", node, opts);
22688
22688
  }
22689
22689
  function assertVariance(node, opts) {
22690
- assert$1("Variance", node, opts);
22690
+ assert("Variance", node, opts);
22691
22691
  }
22692
22692
  function assertVoidTypeAnnotation(node, opts) {
22693
- assert$1("VoidTypeAnnotation", node, opts);
22693
+ assert("VoidTypeAnnotation", node, opts);
22694
22694
  }
22695
22695
  function assertEnumDeclaration(node, opts) {
22696
- assert$1("EnumDeclaration", node, opts);
22696
+ assert("EnumDeclaration", node, opts);
22697
22697
  }
22698
22698
  function assertEnumBooleanBody(node, opts) {
22699
- assert$1("EnumBooleanBody", node, opts);
22699
+ assert("EnumBooleanBody", node, opts);
22700
22700
  }
22701
22701
  function assertEnumNumberBody(node, opts) {
22702
- assert$1("EnumNumberBody", node, opts);
22702
+ assert("EnumNumberBody", node, opts);
22703
22703
  }
22704
22704
  function assertEnumStringBody(node, opts) {
22705
- assert$1("EnumStringBody", node, opts);
22705
+ assert("EnumStringBody", node, opts);
22706
22706
  }
22707
22707
  function assertEnumSymbolBody(node, opts) {
22708
- assert$1("EnumSymbolBody", node, opts);
22708
+ assert("EnumSymbolBody", node, opts);
22709
22709
  }
22710
22710
  function assertEnumBooleanMember(node, opts) {
22711
- assert$1("EnumBooleanMember", node, opts);
22711
+ assert("EnumBooleanMember", node, opts);
22712
22712
  }
22713
22713
  function assertEnumNumberMember(node, opts) {
22714
- assert$1("EnumNumberMember", node, opts);
22714
+ assert("EnumNumberMember", node, opts);
22715
22715
  }
22716
22716
  function assertEnumStringMember(node, opts) {
22717
- assert$1("EnumStringMember", node, opts);
22717
+ assert("EnumStringMember", node, opts);
22718
22718
  }
22719
22719
  function assertEnumDefaultedMember(node, opts) {
22720
- assert$1("EnumDefaultedMember", node, opts);
22720
+ assert("EnumDefaultedMember", node, opts);
22721
22721
  }
22722
22722
  function assertIndexedAccessType(node, opts) {
22723
- assert$1("IndexedAccessType", node, opts);
22723
+ assert("IndexedAccessType", node, opts);
22724
22724
  }
22725
22725
  function assertOptionalIndexedAccessType(node, opts) {
22726
- assert$1("OptionalIndexedAccessType", node, opts);
22726
+ assert("OptionalIndexedAccessType", node, opts);
22727
22727
  }
22728
22728
  function assertJSXAttribute(node, opts) {
22729
- assert$1("JSXAttribute", node, opts);
22729
+ assert("JSXAttribute", node, opts);
22730
22730
  }
22731
22731
  function assertJSXClosingElement(node, opts) {
22732
- assert$1("JSXClosingElement", node, opts);
22732
+ assert("JSXClosingElement", node, opts);
22733
22733
  }
22734
22734
  function assertJSXElement(node, opts) {
22735
- assert$1("JSXElement", node, opts);
22735
+ assert("JSXElement", node, opts);
22736
22736
  }
22737
22737
  function assertJSXEmptyExpression(node, opts) {
22738
- assert$1("JSXEmptyExpression", node, opts);
22738
+ assert("JSXEmptyExpression", node, opts);
22739
22739
  }
22740
22740
  function assertJSXExpressionContainer(node, opts) {
22741
- assert$1("JSXExpressionContainer", node, opts);
22741
+ assert("JSXExpressionContainer", node, opts);
22742
22742
  }
22743
22743
  function assertJSXSpreadChild(node, opts) {
22744
- assert$1("JSXSpreadChild", node, opts);
22744
+ assert("JSXSpreadChild", node, opts);
22745
22745
  }
22746
22746
  function assertJSXIdentifier(node, opts) {
22747
- assert$1("JSXIdentifier", node, opts);
22747
+ assert("JSXIdentifier", node, opts);
22748
22748
  }
22749
22749
  function assertJSXMemberExpression(node, opts) {
22750
- assert$1("JSXMemberExpression", node, opts);
22750
+ assert("JSXMemberExpression", node, opts);
22751
22751
  }
22752
22752
  function assertJSXNamespacedName(node, opts) {
22753
- assert$1("JSXNamespacedName", node, opts);
22753
+ assert("JSXNamespacedName", node, opts);
22754
22754
  }
22755
22755
  function assertJSXOpeningElement(node, opts) {
22756
- assert$1("JSXOpeningElement", node, opts);
22756
+ assert("JSXOpeningElement", node, opts);
22757
22757
  }
22758
22758
  function assertJSXSpreadAttribute(node, opts) {
22759
- assert$1("JSXSpreadAttribute", node, opts);
22759
+ assert("JSXSpreadAttribute", node, opts);
22760
22760
  }
22761
22761
  function assertJSXText(node, opts) {
22762
- assert$1("JSXText", node, opts);
22762
+ assert("JSXText", node, opts);
22763
22763
  }
22764
22764
  function assertJSXFragment(node, opts) {
22765
- assert$1("JSXFragment", node, opts);
22765
+ assert("JSXFragment", node, opts);
22766
22766
  }
22767
22767
  function assertJSXOpeningFragment(node, opts) {
22768
- assert$1("JSXOpeningFragment", node, opts);
22768
+ assert("JSXOpeningFragment", node, opts);
22769
22769
  }
22770
22770
  function assertJSXClosingFragment(node, opts) {
22771
- assert$1("JSXClosingFragment", node, opts);
22771
+ assert("JSXClosingFragment", node, opts);
22772
22772
  }
22773
22773
  function assertNoop(node, opts) {
22774
- assert$1("Noop", node, opts);
22774
+ assert("Noop", node, opts);
22775
22775
  }
22776
22776
  function assertPlaceholder(node, opts) {
22777
- assert$1("Placeholder", node, opts);
22777
+ assert("Placeholder", node, opts);
22778
22778
  }
22779
22779
  function assertV8IntrinsicIdentifier(node, opts) {
22780
- assert$1("V8IntrinsicIdentifier", node, opts);
22780
+ assert("V8IntrinsicIdentifier", node, opts);
22781
22781
  }
22782
22782
  function assertArgumentPlaceholder(node, opts) {
22783
- assert$1("ArgumentPlaceholder", node, opts);
22783
+ assert("ArgumentPlaceholder", node, opts);
22784
22784
  }
22785
22785
  function assertBindExpression(node, opts) {
22786
- assert$1("BindExpression", node, opts);
22786
+ assert("BindExpression", node, opts);
22787
22787
  }
22788
22788
  function assertImportAttribute(node, opts) {
22789
- assert$1("ImportAttribute", node, opts);
22789
+ assert("ImportAttribute", node, opts);
22790
22790
  }
22791
22791
  function assertDecorator(node, opts) {
22792
- assert$1("Decorator", node, opts);
22792
+ assert("Decorator", node, opts);
22793
22793
  }
22794
22794
  function assertDoExpression(node, opts) {
22795
- assert$1("DoExpression", node, opts);
22795
+ assert("DoExpression", node, opts);
22796
22796
  }
22797
22797
  function assertExportDefaultSpecifier(node, opts) {
22798
- assert$1("ExportDefaultSpecifier", node, opts);
22798
+ assert("ExportDefaultSpecifier", node, opts);
22799
22799
  }
22800
22800
  function assertRecordExpression(node, opts) {
22801
- assert$1("RecordExpression", node, opts);
22801
+ assert("RecordExpression", node, opts);
22802
22802
  }
22803
22803
  function assertTupleExpression(node, opts) {
22804
- assert$1("TupleExpression", node, opts);
22804
+ assert("TupleExpression", node, opts);
22805
22805
  }
22806
22806
  function assertDecimalLiteral(node, opts) {
22807
- assert$1("DecimalLiteral", node, opts);
22807
+ assert("DecimalLiteral", node, opts);
22808
22808
  }
22809
22809
  function assertModuleExpression(node, opts) {
22810
- assert$1("ModuleExpression", node, opts);
22810
+ assert("ModuleExpression", node, opts);
22811
22811
  }
22812
22812
  function assertTopicReference(node, opts) {
22813
- assert$1("TopicReference", node, opts);
22813
+ assert("TopicReference", node, opts);
22814
22814
  }
22815
22815
  function assertPipelineTopicExpression(node, opts) {
22816
- assert$1("PipelineTopicExpression", node, opts);
22816
+ assert("PipelineTopicExpression", node, opts);
22817
22817
  }
22818
22818
  function assertPipelineBareFunction(node, opts) {
22819
- assert$1("PipelineBareFunction", node, opts);
22819
+ assert("PipelineBareFunction", node, opts);
22820
22820
  }
22821
22821
  function assertPipelinePrimaryTopicReference(node, opts) {
22822
- assert$1("PipelinePrimaryTopicReference", node, opts);
22822
+ assert("PipelinePrimaryTopicReference", node, opts);
22823
22823
  }
22824
22824
  function assertTSParameterProperty(node, opts) {
22825
- assert$1("TSParameterProperty", node, opts);
22825
+ assert("TSParameterProperty", node, opts);
22826
22826
  }
22827
22827
  function assertTSDeclareFunction(node, opts) {
22828
- assert$1("TSDeclareFunction", node, opts);
22828
+ assert("TSDeclareFunction", node, opts);
22829
22829
  }
22830
22830
  function assertTSDeclareMethod(node, opts) {
22831
- assert$1("TSDeclareMethod", node, opts);
22831
+ assert("TSDeclareMethod", node, opts);
22832
22832
  }
22833
22833
  function assertTSQualifiedName(node, opts) {
22834
- assert$1("TSQualifiedName", node, opts);
22834
+ assert("TSQualifiedName", node, opts);
22835
22835
  }
22836
22836
  function assertTSCallSignatureDeclaration(node, opts) {
22837
- assert$1("TSCallSignatureDeclaration", node, opts);
22837
+ assert("TSCallSignatureDeclaration", node, opts);
22838
22838
  }
22839
22839
  function assertTSConstructSignatureDeclaration(node, opts) {
22840
- assert$1("TSConstructSignatureDeclaration", node, opts);
22840
+ assert("TSConstructSignatureDeclaration", node, opts);
22841
22841
  }
22842
22842
  function assertTSPropertySignature(node, opts) {
22843
- assert$1("TSPropertySignature", node, opts);
22843
+ assert("TSPropertySignature", node, opts);
22844
22844
  }
22845
22845
  function assertTSMethodSignature(node, opts) {
22846
- assert$1("TSMethodSignature", node, opts);
22846
+ assert("TSMethodSignature", node, opts);
22847
22847
  }
22848
22848
  function assertTSIndexSignature(node, opts) {
22849
- assert$1("TSIndexSignature", node, opts);
22849
+ assert("TSIndexSignature", node, opts);
22850
22850
  }
22851
22851
  function assertTSAnyKeyword(node, opts) {
22852
- assert$1("TSAnyKeyword", node, opts);
22852
+ assert("TSAnyKeyword", node, opts);
22853
22853
  }
22854
22854
  function assertTSBooleanKeyword(node, opts) {
22855
- assert$1("TSBooleanKeyword", node, opts);
22855
+ assert("TSBooleanKeyword", node, opts);
22856
22856
  }
22857
22857
  function assertTSBigIntKeyword(node, opts) {
22858
- assert$1("TSBigIntKeyword", node, opts);
22858
+ assert("TSBigIntKeyword", node, opts);
22859
22859
  }
22860
22860
  function assertTSIntrinsicKeyword(node, opts) {
22861
- assert$1("TSIntrinsicKeyword", node, opts);
22861
+ assert("TSIntrinsicKeyword", node, opts);
22862
22862
  }
22863
22863
  function assertTSNeverKeyword(node, opts) {
22864
- assert$1("TSNeverKeyword", node, opts);
22864
+ assert("TSNeverKeyword", node, opts);
22865
22865
  }
22866
22866
  function assertTSNullKeyword(node, opts) {
22867
- assert$1("TSNullKeyword", node, opts);
22867
+ assert("TSNullKeyword", node, opts);
22868
22868
  }
22869
22869
  function assertTSNumberKeyword(node, opts) {
22870
- assert$1("TSNumberKeyword", node, opts);
22870
+ assert("TSNumberKeyword", node, opts);
22871
22871
  }
22872
22872
  function assertTSObjectKeyword(node, opts) {
22873
- assert$1("TSObjectKeyword", node, opts);
22873
+ assert("TSObjectKeyword", node, opts);
22874
22874
  }
22875
22875
  function assertTSStringKeyword(node, opts) {
22876
- assert$1("TSStringKeyword", node, opts);
22876
+ assert("TSStringKeyword", node, opts);
22877
22877
  }
22878
22878
  function assertTSSymbolKeyword(node, opts) {
22879
- assert$1("TSSymbolKeyword", node, opts);
22879
+ assert("TSSymbolKeyword", node, opts);
22880
22880
  }
22881
22881
  function assertTSUndefinedKeyword(node, opts) {
22882
- assert$1("TSUndefinedKeyword", node, opts);
22882
+ assert("TSUndefinedKeyword", node, opts);
22883
22883
  }
22884
22884
  function assertTSUnknownKeyword(node, opts) {
22885
- assert$1("TSUnknownKeyword", node, opts);
22885
+ assert("TSUnknownKeyword", node, opts);
22886
22886
  }
22887
22887
  function assertTSVoidKeyword(node, opts) {
22888
- assert$1("TSVoidKeyword", node, opts);
22888
+ assert("TSVoidKeyword", node, opts);
22889
22889
  }
22890
22890
  function assertTSThisType(node, opts) {
22891
- assert$1("TSThisType", node, opts);
22891
+ assert("TSThisType", node, opts);
22892
22892
  }
22893
22893
  function assertTSFunctionType(node, opts) {
22894
- assert$1("TSFunctionType", node, opts);
22894
+ assert("TSFunctionType", node, opts);
22895
22895
  }
22896
22896
  function assertTSConstructorType(node, opts) {
22897
- assert$1("TSConstructorType", node, opts);
22897
+ assert("TSConstructorType", node, opts);
22898
22898
  }
22899
22899
  function assertTSTypeReference(node, opts) {
22900
- assert$1("TSTypeReference", node, opts);
22900
+ assert("TSTypeReference", node, opts);
22901
22901
  }
22902
22902
  function assertTSTypePredicate(node, opts) {
22903
- assert$1("TSTypePredicate", node, opts);
22903
+ assert("TSTypePredicate", node, opts);
22904
22904
  }
22905
22905
  function assertTSTypeQuery(node, opts) {
22906
- assert$1("TSTypeQuery", node, opts);
22906
+ assert("TSTypeQuery", node, opts);
22907
22907
  }
22908
22908
  function assertTSTypeLiteral(node, opts) {
22909
- assert$1("TSTypeLiteral", node, opts);
22909
+ assert("TSTypeLiteral", node, opts);
22910
22910
  }
22911
22911
  function assertTSArrayType(node, opts) {
22912
- assert$1("TSArrayType", node, opts);
22912
+ assert("TSArrayType", node, opts);
22913
22913
  }
22914
22914
  function assertTSTupleType(node, opts) {
22915
- assert$1("TSTupleType", node, opts);
22915
+ assert("TSTupleType", node, opts);
22916
22916
  }
22917
22917
  function assertTSOptionalType(node, opts) {
22918
- assert$1("TSOptionalType", node, opts);
22918
+ assert("TSOptionalType", node, opts);
22919
22919
  }
22920
22920
  function assertTSRestType(node, opts) {
22921
- assert$1("TSRestType", node, opts);
22921
+ assert("TSRestType", node, opts);
22922
22922
  }
22923
22923
  function assertTSNamedTupleMember(node, opts) {
22924
- assert$1("TSNamedTupleMember", node, opts);
22924
+ assert("TSNamedTupleMember", node, opts);
22925
22925
  }
22926
22926
  function assertTSUnionType(node, opts) {
22927
- assert$1("TSUnionType", node, opts);
22927
+ assert("TSUnionType", node, opts);
22928
22928
  }
22929
22929
  function assertTSIntersectionType(node, opts) {
22930
- assert$1("TSIntersectionType", node, opts);
22930
+ assert("TSIntersectionType", node, opts);
22931
22931
  }
22932
22932
  function assertTSConditionalType(node, opts) {
22933
- assert$1("TSConditionalType", node, opts);
22933
+ assert("TSConditionalType", node, opts);
22934
22934
  }
22935
22935
  function assertTSInferType(node, opts) {
22936
- assert$1("TSInferType", node, opts);
22936
+ assert("TSInferType", node, opts);
22937
22937
  }
22938
22938
  function assertTSParenthesizedType(node, opts) {
22939
- assert$1("TSParenthesizedType", node, opts);
22939
+ assert("TSParenthesizedType", node, opts);
22940
22940
  }
22941
22941
  function assertTSTypeOperator(node, opts) {
22942
- assert$1("TSTypeOperator", node, opts);
22942
+ assert("TSTypeOperator", node, opts);
22943
22943
  }
22944
22944
  function assertTSIndexedAccessType(node, opts) {
22945
- assert$1("TSIndexedAccessType", node, opts);
22945
+ assert("TSIndexedAccessType", node, opts);
22946
22946
  }
22947
22947
  function assertTSMappedType(node, opts) {
22948
- assert$1("TSMappedType", node, opts);
22948
+ assert("TSMappedType", node, opts);
22949
22949
  }
22950
22950
  function assertTSLiteralType(node, opts) {
22951
- assert$1("TSLiteralType", node, opts);
22951
+ assert("TSLiteralType", node, opts);
22952
22952
  }
22953
22953
  function assertTSExpressionWithTypeArguments(node, opts) {
22954
- assert$1("TSExpressionWithTypeArguments", node, opts);
22954
+ assert("TSExpressionWithTypeArguments", node, opts);
22955
22955
  }
22956
22956
  function assertTSInterfaceDeclaration(node, opts) {
22957
- assert$1("TSInterfaceDeclaration", node, opts);
22957
+ assert("TSInterfaceDeclaration", node, opts);
22958
22958
  }
22959
22959
  function assertTSInterfaceBody(node, opts) {
22960
- assert$1("TSInterfaceBody", node, opts);
22960
+ assert("TSInterfaceBody", node, opts);
22961
22961
  }
22962
22962
  function assertTSTypeAliasDeclaration(node, opts) {
22963
- assert$1("TSTypeAliasDeclaration", node, opts);
22963
+ assert("TSTypeAliasDeclaration", node, opts);
22964
22964
  }
22965
22965
  function assertTSInstantiationExpression(node, opts) {
22966
- assert$1("TSInstantiationExpression", node, opts);
22966
+ assert("TSInstantiationExpression", node, opts);
22967
22967
  }
22968
22968
  function assertTSAsExpression(node, opts) {
22969
- assert$1("TSAsExpression", node, opts);
22969
+ assert("TSAsExpression", node, opts);
22970
22970
  }
22971
22971
  function assertTSSatisfiesExpression(node, opts) {
22972
- assert$1("TSSatisfiesExpression", node, opts);
22972
+ assert("TSSatisfiesExpression", node, opts);
22973
22973
  }
22974
22974
  function assertTSTypeAssertion(node, opts) {
22975
- assert$1("TSTypeAssertion", node, opts);
22975
+ assert("TSTypeAssertion", node, opts);
22976
22976
  }
22977
22977
  function assertTSEnumDeclaration(node, opts) {
22978
- assert$1("TSEnumDeclaration", node, opts);
22978
+ assert("TSEnumDeclaration", node, opts);
22979
22979
  }
22980
22980
  function assertTSEnumMember(node, opts) {
22981
- assert$1("TSEnumMember", node, opts);
22981
+ assert("TSEnumMember", node, opts);
22982
22982
  }
22983
22983
  function assertTSModuleDeclaration(node, opts) {
22984
- assert$1("TSModuleDeclaration", node, opts);
22984
+ assert("TSModuleDeclaration", node, opts);
22985
22985
  }
22986
22986
  function assertTSModuleBlock(node, opts) {
22987
- assert$1("TSModuleBlock", node, opts);
22987
+ assert("TSModuleBlock", node, opts);
22988
22988
  }
22989
22989
  function assertTSImportType(node, opts) {
22990
- assert$1("TSImportType", node, opts);
22990
+ assert("TSImportType", node, opts);
22991
22991
  }
22992
22992
  function assertTSImportEqualsDeclaration(node, opts) {
22993
- assert$1("TSImportEqualsDeclaration", node, opts);
22993
+ assert("TSImportEqualsDeclaration", node, opts);
22994
22994
  }
22995
22995
  function assertTSExternalModuleReference(node, opts) {
22996
- assert$1("TSExternalModuleReference", node, opts);
22996
+ assert("TSExternalModuleReference", node, opts);
22997
22997
  }
22998
22998
  function assertTSNonNullExpression(node, opts) {
22999
- assert$1("TSNonNullExpression", node, opts);
22999
+ assert("TSNonNullExpression", node, opts);
23000
23000
  }
23001
23001
  function assertTSExportAssignment(node, opts) {
23002
- assert$1("TSExportAssignment", node, opts);
23002
+ assert("TSExportAssignment", node, opts);
23003
23003
  }
23004
23004
  function assertTSNamespaceExportDeclaration(node, opts) {
23005
- assert$1("TSNamespaceExportDeclaration", node, opts);
23005
+ assert("TSNamespaceExportDeclaration", node, opts);
23006
23006
  }
23007
23007
  function assertTSTypeAnnotation(node, opts) {
23008
- assert$1("TSTypeAnnotation", node, opts);
23008
+ assert("TSTypeAnnotation", node, opts);
23009
23009
  }
23010
23010
  function assertTSTypeParameterInstantiation(node, opts) {
23011
- assert$1("TSTypeParameterInstantiation", node, opts);
23011
+ assert("TSTypeParameterInstantiation", node, opts);
23012
23012
  }
23013
23013
  function assertTSTypeParameterDeclaration(node, opts) {
23014
- assert$1("TSTypeParameterDeclaration", node, opts);
23014
+ assert("TSTypeParameterDeclaration", node, opts);
23015
23015
  }
23016
23016
  function assertTSTypeParameter(node, opts) {
23017
- assert$1("TSTypeParameter", node, opts);
23017
+ assert("TSTypeParameter", node, opts);
23018
23018
  }
23019
23019
  function assertStandardized(node, opts) {
23020
- assert$1("Standardized", node, opts);
23020
+ assert("Standardized", node, opts);
23021
23021
  }
23022
23022
  function assertExpression(node, opts) {
23023
- assert$1("Expression", node, opts);
23023
+ assert("Expression", node, opts);
23024
23024
  }
23025
23025
  function assertBinary(node, opts) {
23026
- assert$1("Binary", node, opts);
23026
+ assert("Binary", node, opts);
23027
23027
  }
23028
23028
  function assertScopable(node, opts) {
23029
- assert$1("Scopable", node, opts);
23029
+ assert("Scopable", node, opts);
23030
23030
  }
23031
23031
  function assertBlockParent(node, opts) {
23032
- assert$1("BlockParent", node, opts);
23032
+ assert("BlockParent", node, opts);
23033
23033
  }
23034
23034
  function assertBlock(node, opts) {
23035
- assert$1("Block", node, opts);
23035
+ assert("Block", node, opts);
23036
23036
  }
23037
23037
  function assertStatement(node, opts) {
23038
- assert$1("Statement", node, opts);
23038
+ assert("Statement", node, opts);
23039
23039
  }
23040
23040
  function assertTerminatorless(node, opts) {
23041
- assert$1("Terminatorless", node, opts);
23041
+ assert("Terminatorless", node, opts);
23042
23042
  }
23043
23043
  function assertCompletionStatement(node, opts) {
23044
- assert$1("CompletionStatement", node, opts);
23044
+ assert("CompletionStatement", node, opts);
23045
23045
  }
23046
23046
  function assertConditional(node, opts) {
23047
- assert$1("Conditional", node, opts);
23047
+ assert("Conditional", node, opts);
23048
23048
  }
23049
23049
  function assertLoop(node, opts) {
23050
- assert$1("Loop", node, opts);
23050
+ assert("Loop", node, opts);
23051
23051
  }
23052
23052
  function assertWhile(node, opts) {
23053
- assert$1("While", node, opts);
23053
+ assert("While", node, opts);
23054
23054
  }
23055
23055
  function assertExpressionWrapper(node, opts) {
23056
- assert$1("ExpressionWrapper", node, opts);
23056
+ assert("ExpressionWrapper", node, opts);
23057
23057
  }
23058
23058
  function assertFor(node, opts) {
23059
- assert$1("For", node, opts);
23059
+ assert("For", node, opts);
23060
23060
  }
23061
23061
  function assertForXStatement(node, opts) {
23062
- assert$1("ForXStatement", node, opts);
23062
+ assert("ForXStatement", node, opts);
23063
23063
  }
23064
23064
  function assertFunction(node, opts) {
23065
- assert$1("Function", node, opts);
23065
+ assert("Function", node, opts);
23066
23066
  }
23067
23067
  function assertFunctionParent(node, opts) {
23068
- assert$1("FunctionParent", node, opts);
23068
+ assert("FunctionParent", node, opts);
23069
23069
  }
23070
23070
  function assertPureish(node, opts) {
23071
- assert$1("Pureish", node, opts);
23071
+ assert("Pureish", node, opts);
23072
23072
  }
23073
23073
  function assertDeclaration(node, opts) {
23074
- assert$1("Declaration", node, opts);
23074
+ assert("Declaration", node, opts);
23075
23075
  }
23076
23076
  function assertPatternLike(node, opts) {
23077
- assert$1("PatternLike", node, opts);
23077
+ assert("PatternLike", node, opts);
23078
23078
  }
23079
23079
  function assertLVal(node, opts) {
23080
- assert$1("LVal", node, opts);
23080
+ assert("LVal", node, opts);
23081
23081
  }
23082
23082
  function assertTSEntityName(node, opts) {
23083
- assert$1("TSEntityName", node, opts);
23083
+ assert("TSEntityName", node, opts);
23084
23084
  }
23085
23085
  function assertLiteral(node, opts) {
23086
- assert$1("Literal", node, opts);
23086
+ assert("Literal", node, opts);
23087
23087
  }
23088
23088
  function assertImmutable(node, opts) {
23089
- assert$1("Immutable", node, opts);
23089
+ assert("Immutable", node, opts);
23090
23090
  }
23091
23091
  function assertUserWhitespacable(node, opts) {
23092
- assert$1("UserWhitespacable", node, opts);
23092
+ assert("UserWhitespacable", node, opts);
23093
23093
  }
23094
23094
  function assertMethod(node, opts) {
23095
- assert$1("Method", node, opts);
23095
+ assert("Method", node, opts);
23096
23096
  }
23097
23097
  function assertObjectMember(node, opts) {
23098
- assert$1("ObjectMember", node, opts);
23098
+ assert("ObjectMember", node, opts);
23099
23099
  }
23100
23100
  function assertProperty(node, opts) {
23101
- assert$1("Property", node, opts);
23101
+ assert("Property", node, opts);
23102
23102
  }
23103
23103
  function assertUnaryLike(node, opts) {
23104
- assert$1("UnaryLike", node, opts);
23104
+ assert("UnaryLike", node, opts);
23105
23105
  }
23106
23106
  function assertPattern(node, opts) {
23107
- assert$1("Pattern", node, opts);
23107
+ assert("Pattern", node, opts);
23108
23108
  }
23109
23109
  function assertClass(node, opts) {
23110
- assert$1("Class", node, opts);
23110
+ assert("Class", node, opts);
23111
23111
  }
23112
23112
  function assertImportOrExportDeclaration(node, opts) {
23113
- assert$1("ImportOrExportDeclaration", node, opts);
23113
+ assert("ImportOrExportDeclaration", node, opts);
23114
23114
  }
23115
23115
  function assertExportDeclaration(node, opts) {
23116
- assert$1("ExportDeclaration", node, opts);
23116
+ assert("ExportDeclaration", node, opts);
23117
23117
  }
23118
23118
  function assertModuleSpecifier(node, opts) {
23119
- assert$1("ModuleSpecifier", node, opts);
23119
+ assert("ModuleSpecifier", node, opts);
23120
23120
  }
23121
23121
  function assertAccessor(node, opts) {
23122
- assert$1("Accessor", node, opts);
23122
+ assert("Accessor", node, opts);
23123
23123
  }
23124
23124
  function assertPrivate(node, opts) {
23125
- assert$1("Private", node, opts);
23125
+ assert("Private", node, opts);
23126
23126
  }
23127
23127
  function assertFlow(node, opts) {
23128
- assert$1("Flow", node, opts);
23128
+ assert("Flow", node, opts);
23129
23129
  }
23130
23130
  function assertFlowType(node, opts) {
23131
- assert$1("FlowType", node, opts);
23131
+ assert("FlowType", node, opts);
23132
23132
  }
23133
23133
  function assertFlowBaseAnnotation(node, opts) {
23134
- assert$1("FlowBaseAnnotation", node, opts);
23134
+ assert("FlowBaseAnnotation", node, opts);
23135
23135
  }
23136
23136
  function assertFlowDeclaration(node, opts) {
23137
- assert$1("FlowDeclaration", node, opts);
23137
+ assert("FlowDeclaration", node, opts);
23138
23138
  }
23139
23139
  function assertFlowPredicate(node, opts) {
23140
- assert$1("FlowPredicate", node, opts);
23140
+ assert("FlowPredicate", node, opts);
23141
23141
  }
23142
23142
  function assertEnumBody(node, opts) {
23143
- assert$1("EnumBody", node, opts);
23143
+ assert("EnumBody", node, opts);
23144
23144
  }
23145
23145
  function assertEnumMember(node, opts) {
23146
- assert$1("EnumMember", node, opts);
23146
+ assert("EnumMember", node, opts);
23147
23147
  }
23148
23148
  function assertJSX(node, opts) {
23149
- assert$1("JSX", node, opts);
23149
+ assert("JSX", node, opts);
23150
23150
  }
23151
23151
  function assertMiscellaneous(node, opts) {
23152
- assert$1("Miscellaneous", node, opts);
23152
+ assert("Miscellaneous", node, opts);
23153
23153
  }
23154
23154
  function assertTypeScript(node, opts) {
23155
- assert$1("TypeScript", node, opts);
23155
+ assert("TypeScript", node, opts);
23156
23156
  }
23157
23157
  function assertTSTypeElement(node, opts) {
23158
- assert$1("TSTypeElement", node, opts);
23158
+ assert("TSTypeElement", node, opts);
23159
23159
  }
23160
23160
  function assertTSType(node, opts) {
23161
- assert$1("TSType", node, opts);
23161
+ assert("TSType", node, opts);
23162
23162
  }
23163
23163
  function assertTSBaseType(node, opts) {
23164
- assert$1("TSBaseType", node, opts);
23164
+ assert("TSBaseType", node, opts);
23165
23165
  }
23166
23166
  function assertNumberLiteral(node, opts) {
23167
23167
  deprecationWarning("assertNumberLiteral", "assertNumericLiteral");
23168
- assert$1("NumberLiteral", node, opts);
23168
+ assert("NumberLiteral", node, opts);
23169
23169
  }
23170
23170
  function assertRegexLiteral(node, opts) {
23171
23171
  deprecationWarning("assertRegexLiteral", "assertRegExpLiteral");
23172
- assert$1("RegexLiteral", node, opts);
23172
+ assert("RegexLiteral", node, opts);
23173
23173
  }
23174
23174
  function assertRestProperty(node, opts) {
23175
23175
  deprecationWarning("assertRestProperty", "assertRestElement");
23176
- assert$1("RestProperty", node, opts);
23176
+ assert("RestProperty", node, opts);
23177
23177
  }
23178
23178
  function assertSpreadProperty(node, opts) {
23179
23179
  deprecationWarning("assertSpreadProperty", "assertSpreadElement");
23180
- assert$1("SpreadProperty", node, opts);
23180
+ assert("SpreadProperty", node, opts);
23181
23181
  }
23182
23182
  function assertModuleDeclaration(node, opts) {
23183
23183
  deprecationWarning("assertModuleDeclaration", "assertImportOrExportDeclaration");
23184
- assert$1("ModuleDeclaration", node, opts);
23184
+ assert("ModuleDeclaration", node, opts);
23185
23185
  }
23186
23186
  function createTypeAnnotationBasedOnTypeof(type) {
23187
23187
  switch(type){
@@ -23414,7 +23414,7 @@ function createTSUnionType(typeAnnotations) {
23414
23414
  function buildUndefinedNode() {
23415
23415
  return unaryExpression$1("void", numericLiteral(0), true);
23416
23416
  }
23417
- var hasOwn$1 = Object.hasOwn;
23417
+ var hasOwn = Object.hasOwn;
23418
23418
  function cloneIfNode(obj, deep, withoutLoc, commentsCache) {
23419
23419
  if (obj && typeof obj.type === "string") {
23420
23420
  return cloneNodeInternal(obj, deep, withoutLoc, commentsCache);
@@ -23442,20 +23442,20 @@ function cloneNodeInternal(node) {
23442
23442
  };
23443
23443
  if (isIdentifier$a(node)) {
23444
23444
  newNode.name = node.name;
23445
- if (hasOwn$1(node, "optional") && typeof node.optional === "boolean") {
23445
+ if (hasOwn(node, "optional") && typeof node.optional === "boolean") {
23446
23446
  newNode.optional = node.optional;
23447
23447
  }
23448
- if (hasOwn$1(node, "typeAnnotation")) {
23448
+ if (hasOwn(node, "typeAnnotation")) {
23449
23449
  newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true, withoutLoc, commentsCache) : node.typeAnnotation;
23450
23450
  }
23451
- } else if (!hasOwn$1(NODE_FIELDS, type)) {
23451
+ } else if (!hasOwn(NODE_FIELDS, type)) {
23452
23452
  throw new Error('Unknown node type: "'.concat(type, '"'));
23453
23453
  } else {
23454
23454
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
23455
23455
  try {
23456
23456
  for(var _iterator = Object.keys(NODE_FIELDS[type])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
23457
23457
  var field = _step.value;
23458
- if (hasOwn$1(node, field)) {
23458
+ if (hasOwn(node, field)) {
23459
23459
  if (deep) {
23460
23460
  newNode[field] = isFile$2(node) && field === "comments" ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache);
23461
23461
  } else {
@@ -23478,23 +23478,23 @@ function cloneNodeInternal(node) {
23478
23478
  }
23479
23479
  }
23480
23480
  }
23481
- if (hasOwn$1(node, "loc")) {
23481
+ if (hasOwn(node, "loc")) {
23482
23482
  if (withoutLoc) {
23483
23483
  newNode.loc = null;
23484
23484
  } else {
23485
23485
  newNode.loc = node.loc;
23486
23486
  }
23487
23487
  }
23488
- if (hasOwn$1(node, "leadingComments")) {
23488
+ if (hasOwn(node, "leadingComments")) {
23489
23489
  newNode.leadingComments = maybeCloneComments(node.leadingComments, deep, withoutLoc, commentsCache);
23490
23490
  }
23491
- if (hasOwn$1(node, "innerComments")) {
23491
+ if (hasOwn(node, "innerComments")) {
23492
23492
  newNode.innerComments = maybeCloneComments(node.innerComments, deep, withoutLoc, commentsCache);
23493
23493
  }
23494
- if (hasOwn$1(node, "trailingComments")) {
23494
+ if (hasOwn(node, "trailingComments")) {
23495
23495
  newNode.trailingComments = maybeCloneComments(node.trailingComments, deep, withoutLoc, commentsCache);
23496
23496
  }
23497
- if (hasOwn$1(node, "extra")) {
23497
+ if (hasOwn(node, "extra")) {
23498
23498
  newNode.extra = Object.assign({}, node.extra);
23499
23499
  }
23500
23500
  return newNode;
@@ -23700,7 +23700,7 @@ function toComputedKey(node) {
23700
23700
  return key;
23701
23701
  }
23702
23702
  function toExpression$1(node) {
23703
- if (isExpressionStatement$2(node)) {
23703
+ if (isExpressionStatement$1(node)) {
23704
23704
  node = node.expression;
23705
23705
  }
23706
23706
  if (isExpression$2(node)) {
@@ -25483,7 +25483,7 @@ var TokContext = function TokContext(token, preserveSpace) {
25483
25483
  this.token = token;
25484
25484
  this.preserveSpace = !!preserveSpace;
25485
25485
  };
25486
- var types$t = {
25486
+ var types$s = {
25487
25487
  brace: new TokContext("{"),
25488
25488
  j_oTag: new TokContext("<tag"),
25489
25489
  j_cTag: new TokContext("</tag"),
@@ -27639,7 +27639,7 @@ var State$2 = /*#__PURE__*/ function() {
27639
27639
  __publicField(this, "lastTokEndLoc", null);
27640
27640
  __publicField(this, "lastTokStartLoc", null);
27641
27641
  __publicField(this, "context", [
27642
- types$t.brace
27642
+ types$s.brace
27643
27643
  ]);
27644
27644
  __publicField(this, "firstInvalidTemplateEscapePos", null);
27645
27645
  __publicField(this, "strictErrors", /* @__PURE__ */ new Map());
@@ -32250,7 +32250,7 @@ var flow$1 = function(superClass) {
32250
32250
  if (!jsx2.error) return jsx2.node;
32251
32251
  var context = this.state.context;
32252
32252
  var currentContext = context[context.length - 1];
32253
- if (currentContext === types$t.j_oTag || currentContext === types$t.j_expr) {
32253
+ if (currentContext === types$s.j_oTag || currentContext === types$s.j_expr) {
32254
32254
  context.pop();
32255
32255
  }
32256
32256
  }
@@ -33467,9 +33467,9 @@ var jsx$3 = function(superClass) {
33467
33467
  switch(this.state.type){
33468
33468
  case 5:
33469
33469
  node = this.startNode();
33470
- this.setContext(types$t.brace);
33470
+ this.setContext(types$s.brace);
33471
33471
  this.next();
33472
- node = this.jsxParseExpressionContainer(node, types$t.j_oTag);
33472
+ node = this.jsxParseExpressionContainer(node, types$s.j_oTag);
33473
33473
  if (node.expression.type === "JSXEmptyExpression") {
33474
33474
  this.raise(JsxErrors.AttributeIsEmpty, node);
33475
33475
  }
@@ -33494,7 +33494,7 @@ var jsx$3 = function(superClass) {
33494
33494
  value: function jsxParseSpreadChild(node) {
33495
33495
  this.next();
33496
33496
  node.expression = this.parseExpression();
33497
- this.setContext(types$t.j_expr);
33497
+ this.setContext(types$s.j_expr);
33498
33498
  this.state.canStartJSXElement = true;
33499
33499
  this.expect(8);
33500
33500
  return this.finishNode(node, "JSXSpreadChild");
@@ -33526,11 +33526,11 @@ var jsx$3 = function(superClass) {
33526
33526
  value: function jsxParseAttribute() {
33527
33527
  var node = this.startNode();
33528
33528
  if (this.match(5)) {
33529
- this.setContext(types$t.brace);
33529
+ this.setContext(types$s.brace);
33530
33530
  this.next();
33531
33531
  this.expect(21);
33532
33532
  node.argument = this.parseMaybeAssignAllowIn();
33533
- this.setContext(types$t.j_oTag);
33533
+ this.setContext(types$s.j_oTag);
33534
33534
  this.state.canStartJSXElement = true;
33535
33535
  this.expect(8);
33536
33536
  return this.finishNode(node, "JSXSpreadAttribute");
@@ -33601,12 +33601,12 @@ var jsx$3 = function(superClass) {
33601
33601
  case 5:
33602
33602
  {
33603
33603
  var node2 = this.startNode();
33604
- this.setContext(types$t.brace);
33604
+ this.setContext(types$s.brace);
33605
33605
  this.next();
33606
33606
  if (this.match(21)) {
33607
33607
  children.push(this.jsxParseSpreadChild(node2));
33608
33608
  } else {
33609
- children.push(this.jsxParseExpressionContainer(node2, types$t.j_expr));
33609
+ children.push(this.jsxParseExpressionContainer(node2, types$s.j_expr));
33610
33610
  }
33611
33611
  break;
33612
33612
  }
@@ -33683,11 +33683,11 @@ var jsx$3 = function(superClass) {
33683
33683
  key: "getTokenFromCode",
33684
33684
  value: function getTokenFromCode(code2) {
33685
33685
  var context = this.curContext();
33686
- if (context === types$t.j_expr) {
33686
+ if (context === types$s.j_expr) {
33687
33687
  this.jsxReadToken();
33688
33688
  return;
33689
33689
  }
33690
- if (context === types$t.j_oTag || context === types$t.j_cTag) {
33690
+ if (context === types$s.j_oTag || context === types$s.j_cTag) {
33691
33691
  if (isIdentifierStart2(code2)) {
33692
33692
  this.jsxReadWord();
33693
33693
  return;
@@ -33697,7 +33697,7 @@ var jsx$3 = function(superClass) {
33697
33697
  this.finishToken(143);
33698
33698
  return;
33699
33699
  }
33700
- if ((code2 === 34 || code2 === 39) && context === types$t.j_oTag) {
33700
+ if ((code2 === 34 || code2 === 39) && context === types$s.j_oTag) {
33701
33701
  this.jsxReadString(code2);
33702
33702
  return;
33703
33703
  }
@@ -33715,17 +33715,17 @@ var jsx$3 = function(superClass) {
33715
33715
  value: function updateContext(prevType) {
33716
33716
  var _this_state = this.state, context = _this_state.context, type = _this_state.type;
33717
33717
  if (type === 56 && prevType === 142) {
33718
- context.splice(-2, 2, types$t.j_cTag);
33718
+ context.splice(-2, 2, types$s.j_cTag);
33719
33719
  this.state.canStartJSXElement = false;
33720
33720
  } else if (type === 142) {
33721
- context.push(types$t.j_oTag);
33721
+ context.push(types$s.j_oTag);
33722
33722
  } else if (type === 143) {
33723
33723
  var out = context[context.length - 1];
33724
- if (out === types$t.j_oTag && prevType === 56 || out === types$t.j_cTag) {
33724
+ if (out === types$s.j_oTag && prevType === 56 || out === types$s.j_cTag) {
33725
33725
  context.pop();
33726
- this.state.canStartJSXElement = context[context.length - 1] === types$t.j_expr;
33726
+ this.state.canStartJSXElement = context[context.length - 1] === types$s.j_expr;
33727
33727
  } else {
33728
- this.setContext(types$t.j_expr);
33728
+ this.setContext(types$s.j_expr);
33729
33729
  this.state.canStartJSXElement = true;
33730
33730
  }
33731
33731
  } else {
@@ -36218,7 +36218,7 @@ var typescript$3 = function(superClass) {
36218
36218
  });
36219
36219
  if (node.params.length === 0) {
36220
36220
  this.raise(TSErrors.EmptyTypeArguments, node);
36221
- } else if (!this.state.inType && this.curContext() === types$t.brace) {
36221
+ } else if (!this.state.inType && this.curContext() === types$s.brace) {
36222
36222
  this.reScan_lt_gt();
36223
36223
  }
36224
36224
  this.expect(48);
@@ -37026,7 +37026,7 @@ var typescript$3 = function(superClass) {
37026
37026
  if (!jsx2.error) return jsx2.node;
37027
37027
  var context = this.state.context;
37028
37028
  var currentContext = context[context.length - 1];
37029
- if (currentContext === types$t.j_oTag || currentContext === types$t.j_expr) {
37029
+ if (currentContext === types$s.j_oTag || currentContext === types$s.j_expr) {
37030
37030
  context.pop();
37031
37031
  }
37032
37032
  }
@@ -42623,7 +42623,7 @@ function pluginsMap(plugins) {
42623
42623
  }
42624
42624
  return pluginMap;
42625
42625
  }
42626
- function parse$5(input, options) {
42626
+ function parse$6(input, options) {
42627
42627
  if ((options === null || options === void 0 ? void 0 : options.sourceType) === "unambiguous") {
42628
42628
  options = Object.assign({}, options);
42629
42629
  try {
@@ -42653,7 +42653,7 @@ function parse$5(input, options) {
42653
42653
  return getParser$1(options, input).parse();
42654
42654
  }
42655
42655
  }
42656
- function parseExpression$1(input, options) {
42656
+ function parseExpression(input, options) {
42657
42657
  var parser = getParser$1(options, input);
42658
42658
  if (parser.options.strictMode) {
42659
42659
  parser.state.strict = true;
@@ -43408,7 +43408,7 @@ function parseWithCodeFrame(code2, parserOpts, syntacticPlaceholders) {
43408
43408
  plugins: plugins
43409
43409
  });
43410
43410
  try {
43411
- return parse$5(code2, parserOpts);
43411
+ return parse$6(code2, parserOpts);
43412
43412
  } catch (err) {
43413
43413
  var loc = err.loc;
43414
43414
  if (loc) {
@@ -52474,7 +52474,7 @@ function replaceWithSourceString(replacement) {
52474
52474
  var ast;
52475
52475
  try {
52476
52476
  replacement = "(".concat(replacement, ")");
52477
- ast = parse$5(replacement);
52477
+ ast = parse$6(replacement);
52478
52478
  } catch (err) {
52479
52479
  var loc = err.loc;
52480
52480
  if (loc) {
@@ -56317,7 +56317,7 @@ var main = {};
56317
56317
 
56318
56318
  var fork = {exports: {}};
56319
56319
 
56320
- var types$s = {exports: {}};
56320
+ var types$r = {exports: {}};
56321
56321
 
56322
56322
  var shared = {};
56323
56323
 
@@ -56417,12 +56417,12 @@ function requireShared () {
56417
56417
  return shared;
56418
56418
  }
56419
56419
 
56420
- types$s.exports;
56420
+ types$r.exports;
56421
56421
 
56422
56422
  var hasRequiredTypes;
56423
56423
 
56424
56424
  function requireTypes () {
56425
- if (hasRequiredTypes) return types$s.exports;
56425
+ if (hasRequiredTypes) return types$r.exports;
56426
56426
  hasRequiredTypes = 1;
56427
56427
  (function (module, exports) {
56428
56428
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -57214,8 +57214,8 @@ function requireTypes () {
57214
57214
  exports.default = typesPlugin;
57215
57215
  (0, shared_1.maybeSetModuleExports)(function () { return module; });
57216
57216
 
57217
- } (types$s, types$s.exports));
57218
- return types$s.exports;
57217
+ } (types$r, types$r.exports));
57218
+ return types$r.exports;
57219
57219
  }
57220
57220
 
57221
57221
  var pathVisitor = {exports: {}};
@@ -61323,487 +61323,31 @@ function requireMain () {
61323
61323
 
61324
61324
  var parser$5 = {};
61325
61325
 
61326
- function compare$6(a, b) {
61327
- if (a === b) {
61328
- return 0;
61329
- }
61330
-
61331
- var x = a.length;
61332
- var y = b.length;
61333
-
61334
- for (var i = 0, len = Math.min(x, y); i < len; ++i) {
61335
- if (a[i] !== b[i]) {
61336
- x = a[i];
61337
- y = b[i];
61338
- break;
61339
- }
61340
- }
61341
-
61342
- if (x < y) {
61343
- return -1;
61344
- }
61345
- if (y < x) {
61346
- return 1;
61347
- }
61348
- return 0;
61349
- }
61350
- var hasOwn = Object.prototype.hasOwnProperty;
61351
-
61352
- var objectKeys = Object.keys || function (obj) {
61353
- var keys = [];
61354
- for (var key in obj) {
61355
- if (hasOwn.call(obj, key)) keys.push(key);
61356
- }
61357
- return keys;
61358
- };
61359
- var pSlice = Array.prototype.slice;
61360
- var _functionsHaveNames;
61361
- function functionsHaveNames() {
61362
- if (typeof _functionsHaveNames !== 'undefined') {
61363
- return _functionsHaveNames;
61364
- }
61365
- return _functionsHaveNames = (function () {
61366
- return function foo() {}.name === 'foo';
61367
- }());
61368
- }
61369
- function pToString (obj) {
61370
- return Object.prototype.toString.call(obj);
61371
- }
61372
- function isView(arrbuf) {
61373
- if (isBuffer$1(arrbuf)) {
61374
- return false;
61375
- }
61376
- if (typeof global$1.ArrayBuffer !== 'function') {
61377
- return false;
61378
- }
61379
- if (typeof ArrayBuffer.isView === 'function') {
61380
- return ArrayBuffer.isView(arrbuf);
61381
- }
61382
- if (!arrbuf) {
61383
- return false;
61384
- }
61385
- if (arrbuf instanceof DataView) {
61386
- return true;
61387
- }
61388
- if (arrbuf.buffer && arrbuf.buffer instanceof ArrayBuffer) {
61389
- return true;
61390
- }
61391
- return false;
61392
- }
61393
- // 1. The assert module provides functions that throw
61394
- // AssertionError's when particular conditions are not met. The
61395
- // assert module must conform to the following interface.
61396
-
61397
- function assert(value, message) {
61398
- if (!value) fail(value, true, message, '==', ok);
61399
- }
61400
-
61401
- // 2. The AssertionError is defined in assert.
61402
- // new assert.AssertionError({ message: message,
61403
- // actual: actual,
61404
- // expected: expected })
61405
-
61406
- var regex = /\s*function\s+([^\(\s]*)\s*/;
61407
- // based on https://github.com/ljharb/function.prototype.name/blob/adeeeec8bfcc6068b187d7d9fb3d5bb1d3a30899/implementation.js
61408
- function getName(func) {
61409
- if (!isFunction$3(func)) {
61410
- return;
61411
- }
61412
- if (functionsHaveNames()) {
61413
- return func.name;
61414
- }
61415
- var str = func.toString();
61416
- var match = str.match(regex);
61417
- return match && match[1];
61418
- }
61419
- assert.AssertionError = AssertionError;
61420
- function AssertionError(options) {
61421
- this.name = 'AssertionError';
61422
- this.actual = options.actual;
61423
- this.expected = options.expected;
61424
- this.operator = options.operator;
61425
- if (options.message) {
61426
- this.message = options.message;
61427
- this.generatedMessage = false;
61428
- } else {
61429
- this.message = getMessage(this);
61430
- this.generatedMessage = true;
61431
- }
61432
- var stackStartFunction = options.stackStartFunction || fail;
61433
- if (Error.captureStackTrace) {
61434
- Error.captureStackTrace(this, stackStartFunction);
61435
- } else {
61436
- // non v8 browsers so we can have a stacktrace
61437
- var err = new Error();
61438
- if (err.stack) {
61439
- var out = err.stack;
61440
-
61441
- // try to strip useless frames
61442
- var fn_name = getName(stackStartFunction);
61443
- var idx = out.indexOf('\n' + fn_name);
61444
- if (idx >= 0) {
61445
- // once we have located the function frame
61446
- // we need to strip out everything before it (and its line)
61447
- var next_line = out.indexOf('\n', idx + 1);
61448
- out = out.substring(next_line + 1);
61449
- }
61450
-
61451
- this.stack = out;
61452
- }
61453
- }
61454
- }
61455
-
61456
- // assert.AssertionError instanceof Error
61457
- inherits$2(AssertionError, Error);
61458
-
61459
- function truncate(s, n) {
61460
- if (typeof s === 'string') {
61461
- return s.length < n ? s : s.slice(0, n);
61462
- } else {
61463
- return s;
61464
- }
61465
- }
61466
- function inspect(something) {
61467
- if (functionsHaveNames() || !isFunction$3(something)) {
61468
- return inspect$1(something);
61469
- }
61470
- var rawname = getName(something);
61471
- var name = rawname ? ': ' + rawname : '';
61472
- return '[Function' + name + ']';
61473
- }
61474
- function getMessage(self) {
61475
- return truncate(inspect(self.actual), 128) + ' ' +
61476
- self.operator + ' ' +
61477
- truncate(inspect(self.expected), 128);
61478
- }
61479
-
61480
- // At present only the three keys mentioned above are used and
61481
- // understood by the spec. Implementations or sub modules can pass
61482
- // other keys to the AssertionError's constructor - they will be
61483
- // ignored.
61484
-
61485
- // 3. All of the following functions must throw an AssertionError
61486
- // when a corresponding condition is not met, with a message that
61487
- // may be undefined if not provided. All assertion methods provide
61488
- // both the actual and expected values to the assertion error for
61489
- // display purposes.
61490
-
61491
- function fail(actual, expected, message, operator, stackStartFunction) {
61492
- throw new AssertionError({
61493
- message: message,
61494
- actual: actual,
61495
- expected: expected,
61496
- operator: operator,
61497
- stackStartFunction: stackStartFunction
61498
- });
61499
- }
61500
-
61501
- // EXTENSION! allows for well behaved errors defined elsewhere.
61502
- assert.fail = fail;
61503
-
61504
- // 4. Pure assertion tests whether a value is truthy, as determined
61505
- // by !!guard.
61506
- // assert.ok(guard, message_opt);
61507
- // This statement is equivalent to assert.equal(true, !!guard,
61508
- // message_opt);. To test strictly for the value true, use
61509
- // assert.strictEqual(true, guard, message_opt);.
61510
-
61511
- function ok(value, message) {
61512
- if (!value) fail(value, true, message, '==', ok);
61513
- }
61514
- assert.ok = ok;
61515
-
61516
- // 5. The equality assertion tests shallow, coercive equality with
61517
- // ==.
61518
- // assert.equal(actual, expected, message_opt);
61519
- assert.equal = equal;
61520
- function equal(actual, expected, message) {
61521
- if (actual != expected) fail(actual, expected, message, '==', equal);
61522
- }
61523
-
61524
- // 6. The non-equality assertion tests for whether two objects are not equal
61525
- // with != assert.notEqual(actual, expected, message_opt);
61526
- assert.notEqual = notEqual;
61527
- function notEqual(actual, expected, message) {
61528
- if (actual == expected) {
61529
- fail(actual, expected, message, '!=', notEqual);
61530
- }
61531
- }
61532
-
61533
- // 7. The equivalence assertion tests a deep equality relation.
61534
- // assert.deepEqual(actual, expected, message_opt);
61535
- assert.deepEqual = deepEqual;
61536
- function deepEqual(actual, expected, message) {
61537
- if (!_deepEqual(actual, expected, false)) {
61538
- fail(actual, expected, message, 'deepEqual', deepEqual);
61539
- }
61540
- }
61541
- assert.deepStrictEqual = deepStrictEqual;
61542
- function deepStrictEqual(actual, expected, message) {
61543
- if (!_deepEqual(actual, expected, true)) {
61544
- fail(actual, expected, message, 'deepStrictEqual', deepStrictEqual);
61545
- }
61546
- }
61547
-
61548
- function _deepEqual(actual, expected, strict, memos) {
61549
- // 7.1. All identical values are equivalent, as determined by ===.
61550
- if (actual === expected) {
61551
- return true;
61552
- } else if (isBuffer$1(actual) && isBuffer$1(expected)) {
61553
- return compare$6(actual, expected) === 0;
61554
-
61555
- // 7.2. If the expected value is a Date object, the actual value is
61556
- // equivalent if it is also a Date object that refers to the same time.
61557
- } else if (isDate(actual) && isDate(expected)) {
61558
- return actual.getTime() === expected.getTime();
61559
-
61560
- // 7.3 If the expected value is a RegExp object, the actual value is
61561
- // equivalent if it is also a RegExp object with the same source and
61562
- // properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).
61563
- } else if (isRegExp$1(actual) && isRegExp$1(expected)) {
61564
- return actual.source === expected.source &&
61565
- actual.global === expected.global &&
61566
- actual.multiline === expected.multiline &&
61567
- actual.lastIndex === expected.lastIndex &&
61568
- actual.ignoreCase === expected.ignoreCase;
61569
-
61570
- // 7.4. Other pairs that do not both pass typeof value == 'object',
61571
- // equivalence is determined by ==.
61572
- } else if ((actual === null || typeof actual !== 'object') &&
61573
- (expected === null || typeof expected !== 'object')) {
61574
- return strict ? actual === expected : actual == expected;
61575
-
61576
- // If both values are instances of typed arrays, wrap their underlying
61577
- // ArrayBuffers in a Buffer each to increase performance
61578
- // This optimization requires the arrays to have the same type as checked by
61579
- // Object.prototype.toString (aka pToString). Never perform binary
61580
- // comparisons for Float*Arrays, though, since e.g. +0 === -0 but their
61581
- // bit patterns are not identical.
61582
- } else if (isView(actual) && isView(expected) &&
61583
- pToString(actual) === pToString(expected) &&
61584
- !(actual instanceof Float32Array ||
61585
- actual instanceof Float64Array)) {
61586
- return compare$6(new Uint8Array(actual.buffer),
61587
- new Uint8Array(expected.buffer)) === 0;
61588
-
61589
- // 7.5 For all other Object pairs, including Array objects, equivalence is
61590
- // determined by having the same number of owned properties (as verified
61591
- // with Object.prototype.hasOwnProperty.call), the same set of keys
61592
- // (although not necessarily the same order), equivalent values for every
61593
- // corresponding key, and an identical 'prototype' property. Note: this
61594
- // accounts for both named and indexed properties on Arrays.
61595
- } else if (isBuffer$1(actual) !== isBuffer$1(expected)) {
61596
- return false;
61597
- } else {
61598
- memos = memos || {actual: [], expected: []};
61599
-
61600
- var actualIndex = memos.actual.indexOf(actual);
61601
- if (actualIndex !== -1) {
61602
- if (actualIndex === memos.expected.indexOf(expected)) {
61603
- return true;
61604
- }
61605
- }
61606
-
61607
- memos.actual.push(actual);
61608
- memos.expected.push(expected);
61609
-
61610
- return objEquiv(actual, expected, strict, memos);
61611
- }
61612
- }
61613
-
61614
- function isArguments(object) {
61615
- return Object.prototype.toString.call(object) == '[object Arguments]';
61616
- }
61617
-
61618
- function objEquiv(a, b, strict, actualVisitedObjects) {
61619
- if (a === null || a === undefined || b === null || b === undefined)
61620
- return false;
61621
- // if one is a primitive, the other must be same
61622
- if (isPrimitive$1(a) || isPrimitive$1(b))
61623
- return a === b;
61624
- if (strict && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b))
61625
- return false;
61626
- var aIsArgs = isArguments(a);
61627
- var bIsArgs = isArguments(b);
61628
- if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs))
61629
- return false;
61630
- if (aIsArgs) {
61631
- a = pSlice.call(a);
61632
- b = pSlice.call(b);
61633
- return _deepEqual(a, b, strict);
61634
- }
61635
- var ka = objectKeys(a);
61636
- var kb = objectKeys(b);
61637
- var key, i;
61638
- // having the same number of owned properties (keys incorporates
61639
- // hasOwnProperty)
61640
- if (ka.length !== kb.length)
61641
- return false;
61642
- //the same set of keys (although not necessarily the same order),
61643
- ka.sort();
61644
- kb.sort();
61645
- //~~~cheap key test
61646
- for (i = ka.length - 1; i >= 0; i--) {
61647
- if (ka[i] !== kb[i])
61648
- return false;
61649
- }
61650
- //equivalent values for every corresponding key, and
61651
- //~~~possibly expensive deep test
61652
- for (i = ka.length - 1; i >= 0; i--) {
61653
- key = ka[i];
61654
- if (!_deepEqual(a[key], b[key], strict, actualVisitedObjects))
61655
- return false;
61656
- }
61657
- return true;
61658
- }
61326
+ var tinyInvariant_cjs;
61327
+ var hasRequiredTinyInvariant_cjs;
61659
61328
 
61660
- // 8. The non-equivalence assertion tests for any deep inequality.
61661
- // assert.notDeepEqual(actual, expected, message_opt);
61662
- assert.notDeepEqual = notDeepEqual;
61663
- function notDeepEqual(actual, expected, message) {
61664
- if (_deepEqual(actual, expected, false)) {
61665
- fail(actual, expected, message, 'notDeepEqual', notDeepEqual);
61666
- }
61667
- }
61329
+ function requireTinyInvariant_cjs () {
61330
+ if (hasRequiredTinyInvariant_cjs) return tinyInvariant_cjs;
61331
+ hasRequiredTinyInvariant_cjs = 1;
61668
61332
 
61669
- assert.notDeepStrictEqual = notDeepStrictEqual;
61670
- function notDeepStrictEqual(actual, expected, message) {
61671
- if (_deepEqual(actual, expected, true)) {
61672
- fail(actual, expected, message, 'notDeepStrictEqual', notDeepStrictEqual);
61673
- }
61674
- }
61675
-
61676
-
61677
- // 9. The strict equality assertion tests strict equality, as determined by ===.
61678
- // assert.strictEqual(actual, expected, message_opt);
61679
- assert.strictEqual = strictEqual;
61680
- function strictEqual(actual, expected, message) {
61681
- if (actual !== expected) {
61682
- fail(actual, expected, message, '===', strictEqual);
61683
- }
61684
- }
61685
-
61686
- // 10. The strict non-equality assertion tests for strict inequality, as
61687
- // determined by !==. assert.notStrictEqual(actual, expected, message_opt);
61688
- assert.notStrictEqual = notStrictEqual;
61689
- function notStrictEqual(actual, expected, message) {
61690
- if (actual === expected) {
61691
- fail(actual, expected, message, '!==', notStrictEqual);
61692
- }
61693
- }
61694
-
61695
- function expectedException(actual, expected) {
61696
- if (!actual || !expected) {
61697
- return false;
61698
- }
61699
-
61700
- if (Object.prototype.toString.call(expected) == '[object RegExp]') {
61701
- return expected.test(actual);
61702
- }
61703
-
61704
- try {
61705
- if (actual instanceof expected) {
61706
- return true;
61707
- }
61708
- } catch (e) {
61709
- // Ignore. The instanceof check doesn't work for arrow functions.
61710
- }
61711
-
61712
- if (Error.isPrototypeOf(expected)) {
61713
- return false;
61714
- }
61715
-
61716
- return expected.call({}, actual) === true;
61717
- }
61718
-
61719
- function _tryBlock(block) {
61720
- var error;
61721
- try {
61722
- block();
61723
- } catch (e) {
61724
- error = e;
61725
- }
61726
- return error;
61727
- }
61728
-
61729
- function _throws(shouldThrow, block, expected, message) {
61730
- var actual;
61731
-
61732
- if (typeof block !== 'function') {
61733
- throw new TypeError('"block" argument must be a function');
61734
- }
61735
-
61736
- if (typeof expected === 'string') {
61737
- message = expected;
61738
- expected = null;
61739
- }
61740
-
61741
- actual = _tryBlock(block);
61742
-
61743
- message = (expected && expected.name ? ' (' + expected.name + ').' : '.') +
61744
- (message ? ' ' + message : '.');
61745
-
61746
- if (shouldThrow && !actual) {
61747
- fail(actual, expected, 'Missing expected exception' + message);
61748
- }
61749
-
61750
- var userProvidedMessage = typeof message === 'string';
61751
- var isUnwantedException = !shouldThrow && isError(actual);
61752
- var isUnexpectedException = !shouldThrow && actual && !expected;
61753
-
61754
- if ((isUnwantedException &&
61755
- userProvidedMessage &&
61756
- expectedException(actual, expected)) ||
61757
- isUnexpectedException) {
61758
- fail(actual, expected, 'Got unwanted exception' + message);
61759
- }
61760
-
61761
- if ((shouldThrow && actual && expected &&
61762
- !expectedException(actual, expected)) || (!shouldThrow && actual)) {
61763
- throw actual;
61764
- }
61765
- }
61766
-
61767
- // 11. Expected to throw an error:
61768
- // assert.throws(block, Error_opt, message_opt);
61769
- assert.throws = throws;
61770
- function throws(block, /*optional*/error, /*optional*/message) {
61771
- _throws(true, block, error, message);
61772
- }
61773
-
61774
- // EXTENSION! This is annoying to write outside this module.
61775
- assert.doesNotThrow = doesNotThrow;
61776
- function doesNotThrow(block, /*optional*/error, /*optional*/message) {
61777
- _throws(false, block, error, message);
61778
- }
61333
+ var isProduction = browser$1$1.env.NODE_ENV === 'production';
61334
+ var prefix = 'Invariant failed';
61335
+ function invariant(condition, message) {
61336
+ if (condition) {
61337
+ return;
61338
+ }
61339
+ if (isProduction) {
61340
+ throw new Error(prefix);
61341
+ }
61342
+ var provided = typeof message === 'function' ? message() : message;
61343
+ var value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
61344
+ throw new Error(value);
61345
+ }
61779
61346
 
61780
- assert.ifError = ifError;
61781
- function ifError(err) {
61782
- if (err) throw err;
61347
+ tinyInvariant_cjs = invariant;
61348
+ return tinyInvariant_cjs;
61783
61349
  }
61784
61350
 
61785
- var _polyfillNode_assert = /*#__PURE__*/Object.freeze({
61786
- __proto__: null,
61787
- AssertionError: AssertionError,
61788
- assert: ok,
61789
- deepEqual: deepEqual,
61790
- deepStrictEqual: deepStrictEqual,
61791
- default: assert,
61792
- doesNotThrow: doesNotThrow,
61793
- equal: equal,
61794
- fail: fail,
61795
- ifError: ifError,
61796
- notDeepEqual: notDeepEqual,
61797
- notDeepStrictEqual: notDeepStrictEqual,
61798
- notEqual: notEqual,
61799
- notStrictEqual: notStrictEqual,
61800
- ok: ok,
61801
- strictEqual: strictEqual,
61802
- throws: throws
61803
- });
61804
-
61805
- var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_assert);
61806
-
61807
61351
  var options$3 = {};
61808
61352
 
61809
61353
  var util$1 = {};
@@ -65052,7 +64596,7 @@ function requireUtil () {
65052
64596
  Object.defineProperty(util$1, "__esModule", { value: true });
65053
64597
  util$1.isTrailingCommaEnabled = util$1.getParentExportDeclaration = util$1.isExportDeclaration = util$1.fixFaultyLocations = util$1.getTrueLoc = util$1.composeSourceMaps = util$1.copyPos = util$1.comparePos = util$1.getUnionOfKeys = util$1.getOption = util$1.isBrowser = util$1.getLineTerminator = void 0;
65054
64598
  var tslib_1 = require$$0$4;
65055
- var assert_1 = tslib_1.__importDefault(require$$1$2);
64599
+ var tiny_invariant_1 = tslib_1.__importDefault(requireTinyInvariant_cjs());
65056
64600
  var types = tslib_1.__importStar(requireMain());
65057
64601
  var n = types.namedTypes;
65058
64602
  var source_map_1 = tslib_1.__importDefault(requireSourceMap());
@@ -65303,8 +64847,8 @@ function requireUtil () {
65303
64847
  // First we need to exclude the opening ` from the .loc of the first
65304
64848
  // quasi element, in case the parser accidentally decided to include it.
65305
64849
  var afterLeftBackTickPos = copyPos(node.loc.start);
65306
- assert_1.default.strictEqual(lines.charAt(afterLeftBackTickPos), "`");
65307
- assert_1.default.ok(lines.nextPos(afterLeftBackTickPos));
64850
+ (0, tiny_invariant_1.default)(lines.charAt(afterLeftBackTickPos) === "`");
64851
+ (0, tiny_invariant_1.default)(lines.nextPos(afterLeftBackTickPos));
65308
64852
  var firstQuasi = node.quasis[0];
65309
64853
  if (comparePos(firstQuasi.loc.start, afterLeftBackTickPos) < 0) {
65310
64854
  firstQuasi.loc.start = afterLeftBackTickPos;
@@ -65312,8 +64856,8 @@ function requireUtil () {
65312
64856
  // Next we need to exclude the closing ` from the .loc of the last quasi
65313
64857
  // element, in case the parser accidentally decided to include it.
65314
64858
  var rightBackTickPos = copyPos(node.loc.end);
65315
- assert_1.default.ok(lines.prevPos(rightBackTickPos));
65316
- assert_1.default.strictEqual(lines.charAt(rightBackTickPos), "`");
64859
+ (0, tiny_invariant_1.default)(lines.prevPos(rightBackTickPos));
64860
+ (0, tiny_invariant_1.default)(lines.charAt(rightBackTickPos) === "`");
65317
64861
  var lastQuasi = node.quasis[node.quasis.length - 1];
65318
64862
  if (comparePos(rightBackTickPos, lastQuasi.loc.end) < 0) {
65319
64863
  lastQuasi.loc.end = rightBackTickPos;
@@ -65340,7 +64884,7 @@ function requireUtil () {
65340
64884
  // the expression in the .loc of the following quasi element.
65341
64885
  var rightCurlyPos = lines.skipSpaces(expr.loc.end, false, false);
65342
64886
  if (lines.charAt(rightCurlyPos) === "}") {
65343
- assert_1.default.ok(lines.nextPos(rightCurlyPos));
64887
+ (0, tiny_invariant_1.default)(lines.nextPos(rightCurlyPos));
65344
64888
  // Now rightCurlyPos is technically the position just after the }.
65345
64889
  var quasiAfter = node.quasis[i + 1];
65346
64890
  if (comparePos(quasiAfter.loc.start, rightCurlyPos) < 0) {
@@ -72093,7 +71637,7 @@ function requireOptions () {
72093
71637
  useTabs: false,
72094
71638
  reuseWhitespace: true,
72095
71639
  lineTerminator: (0, util_1.getLineTerminator)(),
72096
- wrapColumn: 74,
71640
+ wrapColumn: 74, // Aspirational for now.
72097
71641
  sourceFileName: null,
72098
71642
  sourceMapName: null,
72099
71643
  sourceRoot: null,
@@ -72152,7 +71696,7 @@ function requireMapping () {
72152
71696
  hasRequiredMapping = 1;
72153
71697
  Object.defineProperty(mapping, "__esModule", { value: true });
72154
71698
  var tslib_1 = require$$0$4;
72155
- var assert_1 = tslib_1.__importDefault(require$$1$2);
71699
+ var tiny_invariant_1 = tslib_1.__importDefault(requireTinyInvariant_cjs());
72156
71700
  var util_1 = requireUtil();
72157
71701
  var Mapping = /** @class */ (function () {
72158
71702
  function Mapping(sourceLines, sourceLoc, targetLoc) {
@@ -72174,7 +71718,7 @@ function requireMapping () {
72174
71718
  targetToPos = end;
72175
71719
  }
72176
71720
  else {
72177
- assert_1.default.strictEqual(name, "start");
71721
+ (0, tiny_invariant_1.default)(name === "start");
72178
71722
  }
72179
71723
  return skipChars(sourceLines, sourceFromPos, lines, targetFromPos, targetToPos);
72180
71724
  }
@@ -72312,12 +71856,12 @@ function requireMapping () {
72312
71856
  targetCursor.column = 0;
72313
71857
  }
72314
71858
  else {
72315
- assert_1.default.strictEqual(lineDiff, 0);
71859
+ (0, tiny_invariant_1.default)(lineDiff === 0);
72316
71860
  }
72317
71861
  while ((0, util_1.comparePos)(targetCursor, targetToPos) < 0 &&
72318
71862
  targetLines.nextPos(targetCursor, true)) {
72319
- assert_1.default.ok(sourceLines.nextPos(sourceCursor, true));
72320
- assert_1.default.strictEqual(sourceLines.charAt(sourceCursor), targetLines.charAt(targetCursor));
71863
+ (0, tiny_invariant_1.default)(sourceLines.nextPos(sourceCursor, true));
71864
+ (0, tiny_invariant_1.default)(sourceLines.charAt(sourceCursor) === targetLines.charAt(targetCursor));
72321
71865
  }
72322
71866
  }
72323
71867
  else {
@@ -72336,12 +71880,12 @@ function requireMapping () {
72336
71880
  targetCursor.column = targetLines.getLineLength(targetCursor.line);
72337
71881
  }
72338
71882
  else {
72339
- assert_1.default.strictEqual(lineDiff, 0);
71883
+ (0, tiny_invariant_1.default)(lineDiff === 0);
72340
71884
  }
72341
71885
  while ((0, util_1.comparePos)(targetToPos, targetCursor) < 0 &&
72342
71886
  targetLines.prevPos(targetCursor, true)) {
72343
- assert_1.default.ok(sourceLines.prevPos(sourceCursor, true));
72344
- assert_1.default.strictEqual(sourceLines.charAt(sourceCursor), targetLines.charAt(targetCursor));
71887
+ (0, tiny_invariant_1.default)(sourceLines.prevPos(sourceCursor, true));
71888
+ (0, tiny_invariant_1.default)(sourceLines.charAt(sourceCursor) === targetLines.charAt(targetCursor));
72345
71889
  }
72346
71890
  }
72347
71891
  return sourceCursor;
@@ -72357,7 +71901,7 @@ function requireLines () {
72357
71901
  Object.defineProperty(lines, "__esModule", { value: true });
72358
71902
  lines.concat = lines.fromString = lines.countSpaces = lines.Lines = void 0;
72359
71903
  var tslib_1 = require$$0$4;
72360
- var assert_1 = tslib_1.__importDefault(require$$1$2);
71904
+ var tiny_invariant_1 = tslib_1.__importDefault(requireTinyInvariant_cjs());
72361
71905
  var source_map_1 = tslib_1.__importDefault(requireSourceMap());
72362
71906
  var options_1 = requireOptions();
72363
71907
  var util_1 = requireUtil();
@@ -72369,7 +71913,7 @@ function requireLines () {
72369
71913
  this.mappings = [];
72370
71914
  this.cachedSourceMap = null;
72371
71915
  this.cachedTabWidth = void 0;
72372
- assert_1.default.ok(infos.length > 0);
71916
+ (0, tiny_invariant_1.default)(infos.length > 0);
72373
71917
  this.length = infos.length;
72374
71918
  this.name = sourceFileName || null;
72375
71919
  if (this.name) {
@@ -72416,7 +71960,7 @@ function requireLines () {
72416
71960
  (0, util_1.comparePos)(targetCursor, mapping.targetLoc.end) < 0) {
72417
71961
  var sourceChar = mapping.sourceLines.charAt(sourceCursor);
72418
71962
  var targetChar = targetLines.charAt(targetCursor);
72419
- assert_1.default.strictEqual(sourceChar, targetChar);
71963
+ (0, tiny_invariant_1.default)(sourceChar === targetChar);
72420
71964
  var sourceName = mapping.sourceLines.name;
72421
71965
  // Add mappings one character at a time for maximum resolution.
72422
71966
  smg.addMapping({
@@ -72437,9 +71981,9 @@ function requireLines () {
72437
71981
  return smg.toJSON();
72438
71982
  };
72439
71983
  Lines.prototype.bootstrapCharAt = function (pos) {
72440
- assert_1.default.strictEqual(typeof pos, "object");
72441
- assert_1.default.strictEqual(typeof pos.line, "number");
72442
- assert_1.default.strictEqual(typeof pos.column, "number");
71984
+ (0, tiny_invariant_1.default)(typeof pos === "object");
71985
+ (0, tiny_invariant_1.default)(typeof pos.line === "number");
71986
+ (0, tiny_invariant_1.default)(typeof pos.column === "number");
72443
71987
  var line = pos.line, column = pos.column, strings = this.toString().split(lineTerminatorSeqExp), string = strings[line - 1];
72444
71988
  if (typeof string === "undefined")
72445
71989
  return "";
@@ -72450,9 +71994,9 @@ function requireLines () {
72450
71994
  return string.charAt(column);
72451
71995
  };
72452
71996
  Lines.prototype.charAt = function (pos) {
72453
- assert_1.default.strictEqual(typeof pos, "object");
72454
- assert_1.default.strictEqual(typeof pos.line, "number");
72455
- assert_1.default.strictEqual(typeof pos.column, "number");
71997
+ (0, tiny_invariant_1.default)(typeof pos === "object");
71998
+ (0, tiny_invariant_1.default)(typeof pos.line === "number");
71999
+ (0, tiny_invariant_1.default)(typeof pos.column === "number");
72456
72000
  var line = pos.line, column = pos.column, secret = this, infos = secret.infos, info = infos[line - 1], c = column;
72457
72001
  if (typeof info === "undefined" || c < 0)
72458
72002
  return "";
@@ -72469,7 +72013,7 @@ function requireLines () {
72469
72013
  Lines.prototype.stripMargin = function (width, skipFirstLine) {
72470
72014
  if (width === 0)
72471
72015
  return this;
72472
- assert_1.default.ok(width > 0, "negative margin: " + width);
72016
+ (0, tiny_invariant_1.default)(width > 0, "negative margin: " + width);
72473
72017
  if (skipFirstLine && this.length === 1)
72474
72018
  return this;
72475
72019
  var lines = new Lines(this.infos.map(function (info, i) {
@@ -72480,7 +72024,7 @@ function requireLines () {
72480
72024
  }));
72481
72025
  if (this.mappings.length > 0) {
72482
72026
  var newMappings_1 = lines.mappings;
72483
- assert_1.default.strictEqual(newMappings_1.length, 0);
72027
+ (0, tiny_invariant_1.default)(newMappings_1.length === 0);
72484
72028
  this.mappings.forEach(function (mapping) {
72485
72029
  newMappings_1.push(mapping.indent(width, skipFirstLine, true));
72486
72030
  });
@@ -72499,7 +72043,7 @@ function requireLines () {
72499
72043
  }));
72500
72044
  if (this.mappings.length > 0) {
72501
72045
  var newMappings_2 = lines.mappings;
72502
- assert_1.default.strictEqual(newMappings_2.length, 0);
72046
+ (0, tiny_invariant_1.default)(newMappings_2.length === 0);
72503
72047
  this.mappings.forEach(function (mapping) {
72504
72048
  newMappings_2.push(mapping.indent(by));
72505
72049
  });
@@ -72521,7 +72065,7 @@ function requireLines () {
72521
72065
  }));
72522
72066
  if (this.mappings.length > 0) {
72523
72067
  var newMappings_3 = lines.mappings;
72524
- assert_1.default.strictEqual(newMappings_3.length, 0);
72068
+ (0, tiny_invariant_1.default)(newMappings_3.length === 0);
72525
72069
  this.mappings.forEach(function (mapping) {
72526
72070
  newMappings_3.push(mapping.indent(by, true));
72527
72071
  });
@@ -72535,7 +72079,7 @@ function requireLines () {
72535
72079
  return new Lines(this.infos.map(function (info, i) { return (tslib_1.__assign(tslib_1.__assign({}, info), { locked: i > 0 })); }));
72536
72080
  };
72537
72081
  Lines.prototype.getIndentAt = function (line) {
72538
- assert_1.default.ok(line >= 1, "no line " + line + " (line numbers start from 1)");
72082
+ (0, tiny_invariant_1.default)(line >= 1, "no line " + line + " (line numbers start from 1)");
72539
72083
  return Math.max(this.infos[line - 1].indent, 0);
72540
72084
  };
72541
72085
  Lines.prototype.guessTabWidth = function () {
@@ -72735,14 +72279,14 @@ function requireLines () {
72735
72279
  sliced[0] = sliceInfo(sliced[0], start.column, end.column);
72736
72280
  }
72737
72281
  else {
72738
- assert_1.default.ok(start.line < end.line);
72282
+ (0, tiny_invariant_1.default)(start.line < end.line);
72739
72283
  sliced[0] = sliceInfo(sliced[0], start.column);
72740
72284
  sliced.push(sliceInfo(sliced.pop(), 0, end.column));
72741
72285
  }
72742
72286
  var lines = new Lines(sliced);
72743
72287
  if (this.mappings.length > 0) {
72744
72288
  var newMappings_4 = lines.mappings;
72745
- assert_1.default.strictEqual(newMappings_4.length, 0);
72289
+ (0, tiny_invariant_1.default)(newMappings_4.length === 0);
72746
72290
  this.mappings.forEach(function (mapping) {
72747
72291
  var sliced = mapping.slice(this, start, end);
72748
72292
  if (sliced) {
@@ -72876,7 +72420,7 @@ function requireLines () {
72876
72420
  }
72877
72421
  var list = [this];
72878
72422
  list.push.apply(list, args);
72879
- assert_1.default.strictEqual(list.length, args.length + 1);
72423
+ (0, tiny_invariant_1.default)(list.length === args.length + 1);
72880
72424
  return emptyLines.join(list);
72881
72425
  };
72882
72426
  return Lines;
@@ -72892,8 +72436,8 @@ function requireLines () {
72892
72436
  switch (spaces.charCodeAt(i)) {
72893
72437
  case 9: {
72894
72438
  // '\t'
72895
- assert_1.default.strictEqual(typeof tabWidth, "number");
72896
- assert_1.default.ok(tabWidth > 0);
72439
+ (0, tiny_invariant_1.default)(typeof tabWidth === "number");
72440
+ (0, tiny_invariant_1.default)(tabWidth > 0);
72897
72441
  var next = Math.ceil(count / tabWidth) * tabWidth;
72898
72442
  if (next === count) {
72899
72443
  count += tabWidth;
@@ -72932,7 +72476,7 @@ function requireLines () {
72932
72476
  var tabWidth = options && options.tabWidth;
72933
72477
  var tabless = string.indexOf("\t") < 0;
72934
72478
  var cacheable = !options && tabless && string.length <= maxCacheKeyLen;
72935
- assert_1.default.ok(tabWidth || tabless, "No tab width specified but encountered tabs in string\n" + string);
72479
+ (0, tiny_invariant_1.default)(tabWidth || tabless, "No tab width specified but encountered tabs in string\n" + string);
72936
72480
  if (cacheable && hasOwn.call(fromStringCache, string))
72937
72481
  return fromStringCache[string];
72938
72482
  var lines = new Lines(string.split(lineTerminatorSeqExp).map(function (line) {
@@ -72983,9 +72527,9 @@ function requireLines () {
72983
72527
  indent = 0;
72984
72528
  sliceStart += startCol;
72985
72529
  }
72986
- assert_1.default.ok(indent >= 0);
72987
- assert_1.default.ok(sliceStart <= sliceEnd);
72988
- assert_1.default.strictEqual(lineLength, indent + sliceEnd - sliceStart);
72530
+ (0, tiny_invariant_1.default)(indent >= 0);
72531
+ (0, tiny_invariant_1.default)(sliceStart <= sliceEnd);
72532
+ (0, tiny_invariant_1.default)(lineLength === indent + sliceEnd - sliceStart);
72989
72533
  if (info.indent === indent &&
72990
72534
  info.sliceStart === sliceStart &&
72991
72535
  info.sliceEnd === sliceEnd) {
@@ -73020,7 +72564,7 @@ function requireComments () {
73020
72564
  Object.defineProperty(comments$1, "__esModule", { value: true });
73021
72565
  comments$1.printComments = comments$1.attach = void 0;
73022
72566
  var tslib_1 = require$$0$4;
73023
- var assert_1 = tslib_1.__importDefault(require$$1$2);
72567
+ var tiny_invariant_1 = tslib_1.__importDefault(requireTinyInvariant_cjs());
73024
72568
  var types = tslib_1.__importStar(requireMain());
73025
72569
  var n = types.namedTypes;
73026
72570
  var isArray = types.builtInTypes.array;
@@ -73142,7 +72686,8 @@ function requireComments () {
73142
72686
  var tieCount = tiesToBreak.length;
73143
72687
  if (tieCount > 0) {
73144
72688
  var lastTie = tiesToBreak[tieCount - 1];
73145
- assert_1.default.strictEqual(lastTie.precedingNode === comment.precedingNode, lastTie.followingNode === comment.followingNode);
72689
+ (0, tiny_invariant_1.default)((lastTie.precedingNode === comment.precedingNode) ===
72690
+ (lastTie.followingNode === comment.followingNode));
73146
72691
  if (lastTie.followingNode !== comment.followingNode) {
73147
72692
  breakTies(tiesToBreak, lines);
73148
72693
  }
@@ -73196,8 +72741,8 @@ function requireComments () {
73196
72741
  var comment;
73197
72742
  for (; indexOfFirstLeadingComment > 0; --indexOfFirstLeadingComment) {
73198
72743
  comment = tiesToBreak[indexOfFirstLeadingComment - 1];
73199
- assert_1.default.strictEqual(comment.precedingNode, pn);
73200
- assert_1.default.strictEqual(comment.followingNode, fn);
72744
+ (0, tiny_invariant_1.default)(comment.precedingNode === pn);
72745
+ (0, tiny_invariant_1.default)(comment.followingNode === fn);
73201
72746
  var gap = lines.sliceString(comment.loc.end, gapEndPos);
73202
72747
  if (/\S/.test(gap)) {
73203
72748
  // The gap string contained something other than whitespace.
@@ -73339,7 +72884,7 @@ function requireParser () {
73339
72884
  Object.defineProperty(parser$5, "__esModule", { value: true });
73340
72885
  parser$5.parse = void 0;
73341
72886
  var tslib_1 = require$$0$4;
73342
- var assert_1 = tslib_1.__importDefault(require$$1$2);
72887
+ var tiny_invariant_1 = tslib_1.__importDefault(requireTinyInvariant_cjs());
73343
72888
  var types = tslib_1.__importStar(requireMain());
73344
72889
  var b = types.builders;
73345
72890
  var isObject = types.builtInTypes.object;
@@ -73448,7 +72993,7 @@ function requireParser () {
73448
72993
  }
73449
72994
  parser$5.parse = parse;
73450
72995
  var TreeCopier = function TreeCopier(lines, tokens) {
73451
- assert_1.default.ok(this instanceof TreeCopier);
72996
+ (0, tiny_invariant_1.default)(this instanceof TreeCopier);
73452
72997
  this.lines = lines;
73453
72998
  this.tokens = tokens;
73454
72999
  this.startTokenIndex = 0;
@@ -73599,7 +73144,7 @@ function requireFastPath () {
73599
73144
  hasRequiredFastPath = 1;
73600
73145
  Object.defineProperty(fastPath, "__esModule", { value: true });
73601
73146
  var tslib_1 = require$$0$4;
73602
- var assert_1 = tslib_1.__importDefault(require$$1$2);
73147
+ var tiny_invariant_1 = tslib_1.__importDefault(requireTinyInvariant_cjs());
73603
73148
  var types = tslib_1.__importStar(requireMain());
73604
73149
  var util = tslib_1.__importStar(requireUtil());
73605
73150
  var n = types.namedTypes;
@@ -73625,7 +73170,7 @@ function requireFastPath () {
73625
73170
  });
73626
73171
  });
73627
73172
  var FastPath = function FastPath(value) {
73628
- assert_1.default.ok(this instanceof FastPath);
73173
+ (0, tiny_invariant_1.default)(this instanceof FastPath);
73629
73174
  this.stack = [value];
73630
73175
  };
73631
73176
  var FPp = FastPath.prototype;
@@ -73919,7 +73464,7 @@ function requireFastPath () {
73919
73464
  return true;
73920
73465
  }
73921
73466
  if (pp === np && name === "right") {
73922
- assert_1.default.strictEqual(parent.right, node);
73467
+ (0, tiny_invariant_1.default)(parent.right === node);
73923
73468
  return true;
73924
73469
  }
73925
73470
  break;
@@ -74079,19 +73624,19 @@ function requireFastPath () {
74079
73624
  if (n.BlockStatement.check(parent) &&
74080
73625
  parentName === "body" &&
74081
73626
  childName === 0) {
74082
- assert_1.default.strictEqual(parent.body[0], child);
73627
+ (0, tiny_invariant_1.default)(parent.body[0] === child);
74083
73628
  return true;
74084
73629
  }
74085
73630
  if (n.ExpressionStatement.check(parent) && childName === "expression") {
74086
- assert_1.default.strictEqual(parent.expression, child);
73631
+ (0, tiny_invariant_1.default)(parent.expression === child);
74087
73632
  return true;
74088
73633
  }
74089
73634
  if (n.AssignmentExpression.check(parent) && childName === "left") {
74090
- assert_1.default.strictEqual(parent.left, child);
73635
+ (0, tiny_invariant_1.default)(parent.left === child);
74091
73636
  return true;
74092
73637
  }
74093
73638
  if (n.ArrowFunctionExpression.check(parent) && childName === "body") {
74094
- assert_1.default.strictEqual(parent.body, child);
73639
+ (0, tiny_invariant_1.default)(parent.body === child);
74095
73640
  return true;
74096
73641
  }
74097
73642
  // s[i + 1] and s[i + 2] represent the array between the parent
@@ -74099,29 +73644,29 @@ function requireFastPath () {
74099
73644
  if (n.SequenceExpression.check(parent) &&
74100
73645
  s[i + 1] === "expressions" &&
74101
73646
  childName === 0) {
74102
- assert_1.default.strictEqual(parent.expressions[0], child);
73647
+ (0, tiny_invariant_1.default)(parent.expressions[0] === child);
74103
73648
  continue;
74104
73649
  }
74105
73650
  if (n.CallExpression.check(parent) && childName === "callee") {
74106
- assert_1.default.strictEqual(parent.callee, child);
73651
+ (0, tiny_invariant_1.default)(parent.callee === child);
74107
73652
  continue;
74108
73653
  }
74109
73654
  if (n.MemberExpression.check(parent) && childName === "object") {
74110
- assert_1.default.strictEqual(parent.object, child);
73655
+ (0, tiny_invariant_1.default)(parent.object === child);
74111
73656
  continue;
74112
73657
  }
74113
73658
  if (n.ConditionalExpression.check(parent) && childName === "test") {
74114
- assert_1.default.strictEqual(parent.test, child);
73659
+ (0, tiny_invariant_1.default)(parent.test === child);
74115
73660
  continue;
74116
73661
  }
74117
73662
  if (isBinary(parent) && childName === "left") {
74118
- assert_1.default.strictEqual(parent.left, child);
73663
+ (0, tiny_invariant_1.default)(parent.left === child);
74119
73664
  continue;
74120
73665
  }
74121
73666
  if (n.UnaryExpression.check(parent) &&
74122
73667
  !parent.prefix &&
74123
73668
  childName === "argument") {
74124
- assert_1.default.strictEqual(parent.argument, child);
73669
+ (0, tiny_invariant_1.default)(parent.argument === child);
74125
73670
  continue;
74126
73671
  }
74127
73672
  return false;
@@ -74142,7 +73687,7 @@ function requirePatcher () {
74142
73687
  Object.defineProperty(patcher, "__esModule", { value: true });
74143
73688
  patcher.getReprinter = patcher.Patcher = void 0;
74144
73689
  var tslib_1 = require$$0$4;
74145
- var assert_1 = tslib_1.__importDefault(require$$1$2);
73690
+ var tiny_invariant_1 = tslib_1.__importDefault(requireTinyInvariant_cjs());
74146
73691
  var linesModule = tslib_1.__importStar(requireLines());
74147
73692
  var types = tslib_1.__importStar(requireMain());
74148
73693
  var Printable = types.namedTypes.Printable;
@@ -74156,8 +73701,8 @@ function requirePatcher () {
74156
73701
  var isString = types.builtInTypes.string;
74157
73702
  var riskyAdjoiningCharExp = /[0-9a-z_$]/i;
74158
73703
  var Patcher = function Patcher(lines) {
74159
- assert_1.default.ok(this instanceof Patcher);
74160
- assert_1.default.ok(lines instanceof linesModule.Lines);
73704
+ (0, tiny_invariant_1.default)(this instanceof Patcher);
73705
+ (0, tiny_invariant_1.default)(lines instanceof linesModule.Lines);
74161
73706
  var self = this, replacements = [];
74162
73707
  self.replace = function (loc, lines) {
74163
73708
  if (isString.check(lines))
@@ -74176,7 +73721,7 @@ function requirePatcher () {
74176
73721
  };
74177
73722
  var sliceFrom = loc.start, toConcat = [];
74178
73723
  function pushSlice(from, to) {
74179
- assert_1.default.ok((0, util_1.comparePos)(from, to) <= 0);
73724
+ (0, tiny_invariant_1.default)((0, util_1.comparePos)(from, to) <= 0);
74180
73725
  toConcat.push(lines.slice(from, to));
74181
73726
  }
74182
73727
  replacements
@@ -74212,7 +73757,7 @@ function requirePatcher () {
74212
73757
  if (ableToReprintComments && reprints.length > 0) {
74213
73758
  reprints.forEach(function (reprint) {
74214
73759
  var oldComment = reprint.oldPath.getValue();
74215
- assert_1.default.ok(oldComment.leading || oldComment.trailing);
73760
+ (0, tiny_invariant_1.default)(oldComment.leading || oldComment.trailing);
74216
73761
  patcher.replace(oldComment.loc,
74217
73762
  // Comments can't have .comments, so it doesn't matter whether we
74218
73763
  // print with comments or without.
@@ -74260,7 +73805,7 @@ function requirePatcher () {
74260
73805
  });
74261
73806
  };
74262
73807
  function getReprinter(path) {
74263
- assert_1.default.ok(path instanceof fast_path_1.default);
73808
+ (0, tiny_invariant_1.default)(path instanceof fast_path_1.default);
74264
73809
  // Make sure that this path refers specifically to a Node, rather than
74265
73810
  // some non-Node subproperty of a Node.
74266
73811
  var node = path.getValue();
@@ -74354,7 +73899,7 @@ function requirePatcher () {
74354
73899
  Printable.assert(newNode);
74355
73900
  var oldNode = newNode.original;
74356
73901
  Printable.assert(oldNode);
74357
- assert_1.default.deepEqual(reprints, []);
73902
+ (0, tiny_invariant_1.default)(reprints.length === 0);
74358
73903
  if (newNode.type !== oldNode.type) {
74359
73904
  return false;
74360
73905
  }
@@ -74533,7 +74078,7 @@ function requirePrinter () {
74533
74078
  Object.defineProperty(printer$1, "__esModule", { value: true });
74534
74079
  printer$1.Printer = void 0;
74535
74080
  var tslib_1 = require$$0$4;
74536
- var assert_1 = tslib_1.__importDefault(require$$1$2);
74081
+ var tiny_invariant_1 = tslib_1.__importDefault(requireTinyInvariant_cjs());
74537
74082
  var types = tslib_1.__importStar(requireMain());
74538
74083
  var comments_1 = requireComments();
74539
74084
  var fast_path_1 = tslib_1.__importDefault(requireFastPath());
@@ -74545,7 +74090,7 @@ function requirePrinter () {
74545
74090
  var isString = types.builtInTypes.string;
74546
74091
  var isObject = types.builtInTypes.object;
74547
74092
  var PrintResult = function PrintResult(code, sourceMap) {
74548
- assert_1.default.ok(this instanceof PrintResult);
74093
+ (0, tiny_invariant_1.default)(this instanceof PrintResult);
74549
74094
  isString.assert(code);
74550
74095
  this.code = code;
74551
74096
  if (sourceMap) {
@@ -74566,7 +74111,7 @@ function requirePrinter () {
74566
74111
  };
74567
74112
  var emptyPrintResult = new PrintResult("");
74568
74113
  var Printer = function Printer(config) {
74569
- assert_1.default.ok(this instanceof Printer);
74114
+ (0, tiny_invariant_1.default)(this instanceof Printer);
74570
74115
  var explicitTabWidth = config && config.tabWidth;
74571
74116
  config = (0, options_1.normalize)(config);
74572
74117
  // It's common for client code to pass the same options into both
@@ -74580,7 +74125,7 @@ function requirePrinter () {
74580
74125
  return function (path) { return print(path, options); };
74581
74126
  }
74582
74127
  function print(path, options) {
74583
- assert_1.default.ok(path instanceof fast_path_1.default);
74128
+ (0, tiny_invariant_1.default)(path instanceof fast_path_1.default);
74584
74129
  options = options || {};
74585
74130
  if (options.includeComments) {
74586
74131
  return (0, comments_1.printComments)(path, makePrintFunctionWith(options, {
@@ -74648,7 +74193,7 @@ function requirePrinter () {
74648
74193
  };
74649
74194
  printer$1.Printer = Printer;
74650
74195
  function genericPrint(path, config, options, printPath) {
74651
- assert_1.default.ok(path instanceof fast_path_1.default);
74196
+ (0, tiny_invariant_1.default)(path instanceof fast_path_1.default);
74652
74197
  var node = path.getValue();
74653
74198
  var parts = [];
74654
74199
  var linesWithoutParens = genericPrintNoParens(path, config, printPath);
@@ -74845,7 +74390,7 @@ function requirePrinter () {
74845
74390
  case "ModuleDeclaration":
74846
74391
  parts.push("module", path.call(print, "id"));
74847
74392
  if (n.source) {
74848
- assert_1.default.ok(!n.body);
74393
+ (0, tiny_invariant_1.default)(!n.body);
74849
74394
  parts.push("from", path.call(print, "source"));
74850
74395
  }
74851
74396
  else {
@@ -75255,9 +74800,9 @@ function requirePrinter () {
75255
74800
  case "UnaryExpression": {
75256
74801
  parts.push(n.operator);
75257
74802
  var argument = path.getValue().argument;
75258
- var needsParens = argument.type === 'LogicalExpression';
75259
- var parenLeft = needsParens ? '(' : '';
75260
- var parenRight = needsParens ? ')' : '';
74803
+ var needsParens = argument.type === "LogicalExpression";
74804
+ var parenLeft = needsParens ? "(" : "";
74805
+ var parenRight = needsParens ? ")" : "";
75261
74806
  if (/[a-z]$/.test(n.operator))
75262
74807
  parts.push(" ");
75263
74808
  parts.push(parenLeft, path.call(print, "argument"), parenRight);
@@ -75508,7 +75053,7 @@ function requirePrinter () {
75508
75053
  var closingPropName = "closing" + (n.type === "JSXElement" ? "Element" : "Fragment");
75509
75054
  var openingLines = path.call(print, openingPropName);
75510
75055
  if (n[openingPropName].selfClosing) {
75511
- assert_1.default.ok(!n[closingPropName], "unexpected " +
75056
+ (0, tiny_invariant_1.default)(!n[closingPropName], "unexpected " +
75512
75057
  closingPropName +
75513
75058
  " element in self-closing " +
75514
75059
  n.type);
@@ -75541,7 +75086,7 @@ function requirePrinter () {
75541
75086
  if (needLineWrap) {
75542
75087
  attrParts_1.forEach(function (part, i) {
75543
75088
  if (part === " ") {
75544
- assert_1.default.strictEqual(i % 2, 0);
75089
+ (0, tiny_invariant_1.default)(i % 2 === 0);
75545
75090
  attrParts_1[i] = "\n";
75546
75091
  }
75547
75092
  });
@@ -75815,7 +75360,7 @@ function requirePrinter () {
75815
75360
  case "BooleanTypeAnnotation":
75816
75361
  return (0, lines_1.fromString)("boolean", options);
75817
75362
  case "BooleanLiteralTypeAnnotation":
75818
- assert_1.default.strictEqual(typeof n.value, "boolean");
75363
+ (0, tiny_invariant_1.default)(typeof n.value === "boolean");
75819
75364
  return (0, lines_1.fromString)("" + n.value, options);
75820
75365
  case "InterfaceTypeAnnotation":
75821
75366
  parts.push("interface");
@@ -75995,7 +75540,7 @@ function requirePrinter () {
75995
75540
  return (0, lines_1.fromString)(nodeStr(n.value, options), options);
75996
75541
  case "NumberLiteralTypeAnnotation":
75997
75542
  case "NumericLiteralTypeAnnotation":
75998
- assert_1.default.strictEqual(typeof n.value, "number");
75543
+ (0, tiny_invariant_1.default)(typeof n.value === "number");
75999
75544
  return (0, lines_1.fromString)(JSON.stringify(n.value), options);
76000
75545
  case "BigIntLiteralTypeAnnotation":
76001
75546
  return (0, lines_1.fromString)(n.raw, options);
@@ -76229,12 +75774,11 @@ function requirePrinter () {
76229
75774
  case "TSQualifiedName":
76230
75775
  return (0, lines_1.concat)([path.call(print, "left"), ".", path.call(print, "right")]);
76231
75776
  case "TSAsExpression":
76232
- case "TSSatisfiesExpression":
76233
- {
76234
- var expression = path.call(print, "expression");
76235
- parts.push(expression, n.type === "TSSatisfiesExpression" ? " satisfies " : " as ", path.call(print, "typeAnnotation"));
76236
- return (0, lines_1.concat)(parts);
76237
- }
75777
+ case "TSSatisfiesExpression": {
75778
+ var expression = path.call(print, "expression");
75779
+ parts.push(expression, n.type === "TSSatisfiesExpression" ? " satisfies " : " as ", path.call(print, "typeAnnotation"));
75780
+ return (0, lines_1.concat)(parts);
75781
+ }
76238
75782
  case "TSTypeCastExpression":
76239
75783
  return (0, lines_1.concat)([
76240
75784
  path.call(print, "expression"),
@@ -76540,7 +76084,7 @@ function requirePrinter () {
76540
76084
  });
76541
76085
  });
76542
76086
  if (sawComment) {
76543
- assert_1.default.strictEqual(sawStatement, false, "Comments may appear as statements in otherwise empty statement " +
76087
+ (0, tiny_invariant_1.default)(sawStatement === false, "Comments may appear as statements in otherwise empty statement " +
76544
76088
  "lists, but may not coexist with non-Comment nodes.");
76545
76089
  }
76546
76090
  var prevTrailingSpace = null;
@@ -76773,12 +76317,14 @@ function requirePrinter () {
76773
76317
  else if (decl.specifiers.length === 0) {
76774
76318
  parts.push("{}");
76775
76319
  }
76776
- else if (/^Export(Default|Namespace)Specifier$/.test(decl.specifiers[0].type)) {
76320
+ else if (decl.specifiers[0].type === "ExportDefaultSpecifier" ||
76321
+ decl.specifiers[0].type === "ExportNamespaceSpecifier") {
76777
76322
  var unbracedSpecifiers_2 = [];
76778
76323
  var bracedSpecifiers_2 = [];
76779
76324
  path.each(function (specifierPath) {
76780
76325
  var spec = specifierPath.getValue();
76781
- if (/^Export(Namespace|Default)Specifier$/.test(spec.type)) {
76326
+ if (spec.type === "ExportDefaultSpecifier" ||
76327
+ spec.type === "ExportNamespaceSpecifier") {
76782
76328
  unbracedSpecifiers_2.push(print(specifierPath));
76783
76329
  }
76784
76330
  else {
@@ -76835,7 +76381,7 @@ function requirePrinter () {
76835
76381
  function printFlowDeclaration(path, parts) {
76836
76382
  var parentExportDecl = util.getParentExportDeclaration(path);
76837
76383
  if (parentExportDecl) {
76838
- assert_1.default.strictEqual(parentExportDecl.type, "DeclareExportDeclaration");
76384
+ (0, tiny_invariant_1.default)(parentExportDecl.type === "DeclareExportDeclaration");
76839
76385
  }
76840
76386
  else {
76841
76387
  // If the parent node has type DeclareExportDeclaration, then it
@@ -77011,9 +76557,9 @@ var fullstore$3 = (value) => {
77011
76557
  };
77012
76558
  };
77013
76559
 
77014
- var types$r = {};
76560
+ var types$q = {};
77015
76561
 
77016
- types$r.TYPES = {
76562
+ types$q.TYPES = {
77017
76563
  TOKEN: 'Token',
77018
76564
  NEWLINE: 'Newline',
77019
76565
  LINEBREAK: 'Linebreak',
@@ -77047,7 +76593,7 @@ const {
77047
76593
  const isParentProgram$1 = (path) => path.parentPath?.isProgram();
77048
76594
  const isParentBlock$3 = (path) => path.parentPath.isBlockStatement();
77049
76595
 
77050
- const isNext$q = (path) => {
76596
+ const isNext$r = (path) => {
77051
76597
  const next = path.getNextSibling();
77052
76598
 
77053
76599
  if (!next.node)
@@ -77061,12 +76607,12 @@ const isPrev$1 = (path) => {
77061
76607
  return next.node;
77062
76608
  };
77063
76609
 
77064
- const isNextParent$5 = (path) => isNext$q(path.parentPath);
77065
- const isLast$d = (path) => isParentProgram$1(path) && !isNext$q(path);
76610
+ const isNextParent$5 = (path) => isNext$r(path.parentPath);
76611
+ const isLast$d = (path) => isParentProgram$1(path) && !isNext$r(path);
77066
76612
 
77067
76613
  is$3.isFirst = (path) => path.node === path.parentPath.node.body?.[0];
77068
76614
  is$3.isPrevBody = (path) => path.getPrevSibling().isBlockStatement();
77069
- is$3.isNext = isNext$q;
76615
+ is$3.isNext = isNext$r;
77070
76616
  is$3.isPrev = isPrev$1;
77071
76617
  is$3.isNextParent = isNextParent$5;
77072
76618
  is$3.isParentProgram = isParentProgram$1;
@@ -77195,7 +76741,7 @@ maybeInsideFn$1.maybeInsideFn = (insideFn, {print, indent}) => {
77195
76741
  indent.dec();
77196
76742
  };
77197
76743
 
77198
- const {types: types$q} = bundle;
76744
+ const {types: types$p} = bundle;
77199
76745
  const {
77200
76746
  hasTrailingComment: hasTrailingComment$3,
77201
76747
  satisfy: satisfy$4,
@@ -77211,7 +76757,7 @@ const {
77211
76757
  isClassProperty,
77212
76758
  isTSPropertySignature,
77213
76759
  isSpreadElement: isSpreadElement$2,
77214
- } = types$q;
76760
+ } = types$p;
77215
76761
 
77216
76762
  const isProperty = satisfy$4([
77217
76763
  isObjectProperty$1,
@@ -77322,7 +76868,7 @@ const {
77322
76868
  const {
77323
76869
  isLast: isLast$c,
77324
76870
  isCoupleLines: isCoupleLines$9,
77325
- isNext: isNext$p,
76871
+ isNext: isNext$q,
77326
76872
  } = is$3;
77327
76873
 
77328
76874
  const hasBody = (path) => path.node.body;
@@ -77406,7 +76952,7 @@ parseTrailingComments$2.parseTrailingComments = (path, {write, maybe}, semantics
77406
76952
  maybe.indent(!sameLine && !commentOnNextLine);
77407
76953
 
77408
76954
  if (hasBody(path)) {
77409
- maybe.write.breakline(!isNext$p(path));
76955
+ maybe.write.breakline(!isNext$q(path));
77410
76956
  maybe.write.breakline(!n);
77411
76957
  }
77412
76958
 
@@ -77427,7 +76973,7 @@ parseTrailingComments$2.parseTrailingComments = (path, {write, maybe}, semantics
77427
76973
 
77428
76974
  var parseComments$7 = {};
77429
76975
 
77430
- const {isNext: isNext$o} = is$3;
76976
+ const {isNext: isNext$p} = is$3;
77431
76977
 
77432
76978
  parseComments$7.parseComments = (path, {write, maybe}, semantics) => {
77433
76979
  if (!semantics.comments)
@@ -77443,7 +76989,7 @@ parseComments$7.parseComments = (path, {write, maybe}, semantics) => {
77443
76989
 
77444
76990
  for (const [i, {type, value}] of comments.entries()) {
77445
76991
  if (type === 'CommentLine') {
77446
- maybe.write.breakline(isNext$o(path) || !program);
76992
+ maybe.write.breakline(isNext$p(path) || !program);
77447
76993
  write('//');
77448
76994
  write(value);
77449
76995
 
@@ -77598,7 +77144,7 @@ arrowFunctionExpression.ArrowFunctionExpression = maybeParens$5((path, printer,
77598
77144
  var functionDeclaration = {};
77599
77145
 
77600
77146
  const {markAfter: markAfter$9} = mark;
77601
- const {isNext: isNext$n, isNextParent: isNextParent$4} = is$3;
77147
+ const {isNext: isNext$o, isNextParent: isNextParent$4} = is$3;
77602
77148
  const {printParams: printParams$b} = params;
77603
77149
 
77604
77150
  functionDeclaration.FunctionDeclaration = {
@@ -77632,7 +77178,7 @@ functionDeclaration.FunctionDeclaration = {
77632
77178
  print.space();
77633
77179
  print('__body');
77634
77180
  },
77635
- afterSatisfy: () => [isNext$n, isNextParent$4],
77181
+ afterSatisfy: () => [isNext$o, isNextParent$4],
77636
77182
  after(path, {write}) {
77637
77183
  write.newline();
77638
77184
  markAfter$9(path);
@@ -77671,7 +77217,7 @@ maybeDecorators$4.maybeDecorators = (visitor) => (path, printer, semantics, opti
77671
77217
  visitor(path, printer, semantics, options);
77672
77218
  };
77673
77219
 
77674
- const {isNext: isNext$m} = is$3;
77220
+ const {isNext: isNext$n} = is$3;
77675
77221
  const {printParams: printParams$a} = params;
77676
77222
  const {maybeDecorators: maybeDecorators$3} = maybeDecorators$4;
77677
77223
 
@@ -77732,7 +77278,7 @@ const ClassMethod$1 = {
77732
77278
  print.space();
77733
77279
  print('__body');
77734
77280
  }),
77735
- afterSatisfy: () => [isNext$m],
77281
+ afterSatisfy: () => [isNext$n],
77736
77282
  after(path, {print}) {
77737
77283
  print.linebreak();
77738
77284
  },
@@ -77838,7 +77384,7 @@ functions$1.ObjectMethod = ObjectMethod$1;
77838
77384
 
77839
77385
  var unaryExpressions$1 = {};
77840
77386
 
77841
- const {isLast: isLast$b, isNext: isNext$l} = is$3;
77387
+ const {isLast: isLast$b, isNext: isNext$m} = is$3;
77842
77388
 
77843
77389
  const {maybeParens: maybeParens$3} = parens$1;
77844
77390
 
@@ -77882,7 +77428,7 @@ unaryExpressions$1.ThrowStatement = (path, {print, indent, maybe}) => {
77882
77428
 
77883
77429
  print(';');
77884
77430
  maybe.print.newline(!isLast$b(path));
77885
- maybe.print.breakline(isNext$l(path));
77431
+ maybe.print.breakline(isNext$m(path));
77886
77432
  };
77887
77433
 
77888
77434
  function printUnary(path, name, {print}) {
@@ -78089,7 +77635,7 @@ maybeDeclare$6.maybeDeclare = (visit) => (path, printer, semantics) => {
78089
77635
  visit(path, printer, semantics);
78090
77636
  };
78091
77637
 
78092
- const {isNext: isNext$k} = is$3;
77638
+ const {isNext: isNext$l} = is$3;
78093
77639
  const {markAfter: markAfter$8} = mark;
78094
77640
 
78095
77641
  //const {maybeDecorators} = require('../../maybe-get');
@@ -78159,7 +77705,7 @@ _class.ClassDeclaration = {
78159
77705
  classVisitor(path, printer, semantics);
78160
77706
  }),
78161
77707
  afterIf(path) {
78162
- if (!isNext$k(path))
77708
+ if (!isNext$l(path))
78163
77709
  return false;
78164
77710
 
78165
77711
  return !isInsideExport(path);
@@ -78853,11 +78399,11 @@ var operate = {};
78853
78399
 
78854
78400
  var getBinding$2 = {};
78855
78401
 
78856
- const {types: types$p} = bundle;
78402
+ const {types: types$o} = bundle;
78857
78403
  const {
78858
78404
  isIdentifier: isIdentifier$7,
78859
78405
  isMemberExpression: isMemberExpression$2,
78860
- } = types$p;
78406
+ } = types$o;
78861
78407
 
78862
78408
  const isString$a = (a) => typeof a === 'string';
78863
78409
 
@@ -78884,13 +78430,13 @@ const parseName$1 = (node) => {
78884
78430
 
78885
78431
  var isSimple$2 = {};
78886
78432
 
78887
- const {types: types$o} = bundle;
78433
+ const {types: types$n} = bundle;
78888
78434
  const {
78889
78435
  isOptionalMemberExpression,
78890
78436
  isMemberExpression: isMemberExpression$1,
78891
78437
  isIdentifier: isIdentifier$6,
78892
78438
  isLiteral: isLiteral$4,
78893
- } = types$o;
78439
+ } = types$n;
78894
78440
 
78895
78441
  isSimple$2.isSimple = (a) => {
78896
78442
  if (isLiteral$4(a))
@@ -78907,7 +78453,7 @@ isSimple$2.isSimple = (a) => {
78907
78453
 
78908
78454
  var extract$6 = {};
78909
78455
 
78910
- const {types: types$n} = bundle;
78456
+ const {types: types$m} = bundle;
78911
78457
  const {
78912
78458
  isArrayExpression: isArrayExpression$3,
78913
78459
  isLiteral: isLiteral$3,
@@ -78920,7 +78466,7 @@ const {
78920
78466
  isJSXText: isJSXText$2,
78921
78467
  isJSXAttribute: isJSXAttribute$1,
78922
78468
  isTSTypeReference: isTSTypeReference$2,
78923
- } = types$n;
78469
+ } = types$m;
78924
78470
 
78925
78471
  extract$6.extract = extract$5;
78926
78472
 
@@ -79246,7 +78792,7 @@ setLiteralValue$2.setLiteralValue = (path, newValue) => {
79246
78792
  }
79247
78793
 
79248
78794
  if (raw) {
79249
- node.raw = raw.replace(value, newValue);
78795
+ node.raw = `'` + String.raw`${newValue}` + `'`;
79250
78796
  return;
79251
78797
  }
79252
78798
 
@@ -79260,10 +78806,10 @@ var properties = {};
79260
78806
 
79261
78807
  var traverseProperties$3 = {};
79262
78808
 
79263
- const {traverse: traverse$b, types: types$m} = bundle;
78809
+ const {traverse: traverse$b, types: types$l} = bundle;
79264
78810
 
79265
78811
  const {extract: extract$3} = extract$6;
79266
- const {isObjectExpression: isObjectExpression$3} = types$m;
78812
+ const {isObjectExpression: isObjectExpression$3} = types$l;
79267
78813
  const nodeOrPath = (path) => path.node || path;
79268
78814
 
79269
78815
  function getNode(path) {
@@ -79354,7 +78900,7 @@ properties.getProperty = (path, name) => {
79354
78900
  return null;
79355
78901
  };
79356
78902
 
79357
- const {types: types$l} = bundle;
78903
+ const {types: types$k} = bundle;
79358
78904
 
79359
78905
  const {getBinding, getBindingPath} = getBinding$2;
79360
78906
  const {isSimple: isSimple$1} = isSimple$2;
@@ -79382,7 +78928,7 @@ const {
79382
78928
  isExpression: isExpression$1,
79383
78929
  isStatement: isStatement$3,
79384
78930
  BlockStatement: BlockStatement$1,
79385
- } = types$l;
78931
+ } = types$k;
79386
78932
 
79387
78933
  const {assign: assign$d} = Object;
79388
78934
 
@@ -79820,13 +79366,13 @@ newline.isCurrentNewLine = (path) => {
79820
79366
 
79821
79367
  var indent = {};
79822
79368
 
79823
- const {types: types$k} = bundle;
79369
+ const {types: types$j} = bundle;
79824
79370
  const {isIndented} = is$3;
79825
79371
 
79826
79372
  const {
79827
79373
  isStringLiteral: isStringLiteral$3,
79828
79374
  isArrayExpression: isArrayExpression$1,
79829
- } = types$k;
79375
+ } = types$j;
79830
79376
 
79831
79377
  const isInsideArray$1 = (path) => path.parentPath.isArrayExpression();
79832
79378
 
@@ -79868,7 +79414,7 @@ const isTwoLongStrings = ([a, b]) => {
79868
79414
  return a.node.value.length > LONG_STRING;
79869
79415
  };
79870
79416
 
79871
- const {types: types$j} = bundle;
79417
+ const {types: types$i} = bundle;
79872
79418
  const {
79873
79419
  isCoupleLines: isCoupleLines$5,
79874
79420
  isStringAndIdentifier,
@@ -79892,7 +79438,7 @@ const {
79892
79438
  isObjectExpression: isObjectExpression$1,
79893
79439
  isSpreadElement,
79894
79440
  isStringLiteral: isStringLiteral$2,
79895
- } = types$j;
79441
+ } = types$i;
79896
79442
 
79897
79443
  const isNextString = (path) => isStringLiteral$2(path.getNextSibling());
79898
79444
  const isPrevString = (path) => isStringLiteral$2(path.getPrevSibling());
@@ -80499,7 +80045,7 @@ var expressions$1 = {
80499
80045
  var expressionStatement = {};
80500
80046
 
80501
80047
  const {
80502
- isNext: isNext$j,
80048
+ isNext: isNext$k,
80503
80049
  isLast: isLast$a,
80504
80050
  isParentBlock: isParentBlock$2,
80505
80051
  isParentLast,
@@ -80523,7 +80069,7 @@ const isBeforeElse = (path) => {
80523
80069
  const satisfyAfter = satisfy$1([
80524
80070
  isNotLastOrParentLast,
80525
80071
  isParentBlock$2,
80526
- isNext$j,
80072
+ isNext$k,
80527
80073
  isNextUp,
80528
80074
  ]);
80529
80075
 
@@ -80540,12 +80086,12 @@ expressionStatement.ExpressionStatement = {
80540
80086
  print('__expression');
80541
80087
  print(';');
80542
80088
 
80543
- if (!isNext$j(path))
80089
+ if (!isNext$k(path))
80544
80090
  return;
80545
80091
 
80546
80092
  if (shouldBreakline(path)) {
80547
80093
  print.newline();
80548
- maybe.indent(isNext$j(path) && noTrailingComment$2(path));
80094
+ maybe.indent(isNext$k(path) && noTrailingComment$2(path));
80549
80095
  store(true);
80550
80096
  }
80551
80097
  },
@@ -80579,7 +80125,7 @@ function isNotLastOrParentLast(path) {
80579
80125
  }
80580
80126
 
80581
80127
  function isNextUp(path) {
80582
- return path.findParent(isNext$j);
80128
+ return path.findParent(isNext$k);
80583
80129
  }
80584
80130
 
80585
80131
  function isStrictMode(path) {
@@ -80608,7 +80154,7 @@ maybeSpaceAfterKeyword$3.maybeSpaceAfterKeyword = (path, {write}) => {
80608
80154
  };
80609
80155
 
80610
80156
  const {
80611
- isNext: isNext$i,
80157
+ isNext: isNext$j,
80612
80158
  isCoupleLines: isCoupleLines$3,
80613
80159
  isNewlineBetweenSiblings: isNewlineBetweenSiblings$1,
80614
80160
  exists: exists$7,
@@ -80694,7 +80240,7 @@ variableDeclaration.VariableDeclaration = {
80694
80240
  write.newline();
80695
80241
  }
80696
80242
 
80697
- if (isParentBlock$1(path) && isNext$i(path) && (noTrailingComment$1(path) || isNewlineBetweenSiblings$1(path))) {
80243
+ if (isParentBlock$1(path) && isNext$j(path) && (noTrailingComment$1(path) || isNewlineBetweenSiblings$1(path))) {
80698
80244
  write.newline();
80699
80245
  wasNewline = true;
80700
80246
  }
@@ -80724,7 +80270,7 @@ variableDeclaration.VariableDeclaration = {
80724
80270
  };
80725
80271
 
80726
80272
  function noNextParentBlock(path) {
80727
- if (isNext$i(path))
80273
+ if (isNext$j(path))
80728
80274
  return false;
80729
80275
 
80730
80276
  return path.parentPath.isBlockStatement();
@@ -80770,7 +80316,7 @@ function isNextCoupleLines(path) {
80770
80316
  return isCoupleLines$3(next);
80771
80317
  }
80772
80318
 
80773
- const isLast$9 = (path) => path.parentPath?.isProgram() && !isNext$i(path);
80319
+ const isLast$9 = (path) => path.parentPath?.isProgram() && !isNext$j(path);
80774
80320
 
80775
80321
  function shouldAddNewlineBefore(path) {
80776
80322
  if (isFirst$1(path))
@@ -80813,7 +80359,7 @@ const isNextAssign = (path) => {
80813
80359
  var ifStatement = {};
80814
80360
 
80815
80361
  const {markAfter: markAfter$7} = mark;
80816
- const {exists: exists$6, isNext: isNext$h} = is$3;
80362
+ const {exists: exists$6, isNext: isNext$i} = is$3;
80817
80363
 
80818
80364
  const isInside = ({parentPath}) => !parentPath.parentPath.isProgram();
80819
80365
  const isEmptyConsequent = (path) => path.get('consequent').isEmptyStatement();
@@ -80884,7 +80430,7 @@ ifStatement.IfStatement = {
80884
80430
  if (path === partOfAlternate && isInside(path))
80885
80431
  print.newline();
80886
80432
  },
80887
- afterSatisfy: () => [isNext$h],
80433
+ afterSatisfy: () => [isNext$i],
80888
80434
  after: (path, {print}) => {
80889
80435
  print.linebreak();
80890
80436
  markAfter$7(path);
@@ -80902,7 +80448,7 @@ const {
80902
80448
 
80903
80449
  const {
80904
80450
  isFirst,
80905
- isNext: isNext$g,
80451
+ isNext: isNext$h,
80906
80452
  isLast: isLast$8,
80907
80453
  } = is$3;
80908
80454
 
@@ -80939,7 +80485,7 @@ forOfStatement.ForOfStatement = {
80939
80485
  print('__body');
80940
80486
 
80941
80487
  const {length} = bodyPath.node.body;
80942
- maybe.print.newline(!length && !isLast$8(path) && !isNext$g(path));
80488
+ maybe.print.newline(!length && !isLast$8(path) && !isNext$h(path));
80943
80489
 
80944
80490
  return;
80945
80491
  }
@@ -80951,7 +80497,7 @@ forOfStatement.ForOfStatement = {
80951
80497
 
80952
80498
  maybe.markAfter(isMarkedAfter$1(bodyPath), path);
80953
80499
  },
80954
- afterIf: isNext$g,
80500
+ afterIf: isNext$h,
80955
80501
  after(path, {print}) {
80956
80502
  print.linebreak();
80957
80503
  markAfter$6(path);
@@ -80981,7 +80527,7 @@ var getDirectives$2 = {};
80981
80527
  getDirectives$2.getDirectives = (path) => !path.node.directives ? [] : path.get('directives');
80982
80528
 
80983
80529
  const {
80984
- isNext: isNext$f,
80530
+ isNext: isNext$g,
80985
80531
  isParentProgram,
80986
80532
  isLast: isLast$7,
80987
80533
  exists: exists$4,
@@ -81061,10 +80607,10 @@ blockStatement.BlockStatement = {
81061
80607
  };
81062
80608
 
81063
80609
  const isTopLevelWithNoNext = (path) => {
81064
- if (isNext$f(path))
80610
+ if (isNext$g(path))
81065
80611
  return false;
81066
80612
 
81067
- return !isNext$f(path.parentPath) && isParentProgram(path.parentPath);
80613
+ return !isNext$g(path.parentPath) && isParentProgram(path.parentPath);
81068
80614
  };
81069
80615
 
81070
80616
  const isInsideIfWithoutElseInsideFn = (path) => {
@@ -81073,7 +80619,7 @@ const isInsideIfWithoutElseInsideFn = (path) => {
81073
80619
 
81074
80620
  const isEmptyBodyNoNext = (path) => {
81075
80621
  const {parentPath} = path;
81076
- return parentPath.isStatement() && !path.node.body.length && !isNext$f(parentPath);
80622
+ return parentPath.isStatement() && !path.node.body.length && !isNext$g(parentPath);
81077
80623
  };
81078
80624
 
81079
80625
  const isLooksLikeInsideFn = ({parentPath}) => {
@@ -81128,7 +80674,7 @@ function isExportFunction(path) {
81128
80674
  if (!isExportDeclaration$2(path.parentPath?.parentPath))
81129
80675
  return false;
81130
80676
 
81131
- return !isNext$f(path.parentPath?.parentPath);
80677
+ return !isNext$g(path.parentPath?.parentPath);
81132
80678
  }
81133
80679
 
81134
80680
  function isNextIfAlternate(path) {
@@ -81244,7 +80790,7 @@ function isJSXWithComment(path) {
81244
80790
 
81245
80791
  var tryStatements = {};
81246
80792
 
81247
- const {isNext: isNext$e} = is$3;
80793
+ const {isNext: isNext$f} = is$3;
81248
80794
 
81249
80795
  tryStatements.TryStatement = {
81250
80796
  print(path, {print}) {
@@ -81262,7 +80808,7 @@ tryStatements.TryStatement = {
81262
80808
  print.newline();
81263
80809
  }
81264
80810
  },
81265
- afterSatisfy: () => [isNext$e],
80811
+ afterSatisfy: () => [isNext$f],
81266
80812
  after(path, {maybe, print}) {
81267
80813
  maybe.print.newline(!path.node.finalizer);
81268
80814
  print.breakline();
@@ -81287,7 +80833,7 @@ tryStatements.CatchClause = (path, {print}) => {
81287
80833
 
81288
80834
  var debuggerStatement = {};
81289
80835
 
81290
- const {isNext: isNext$d} = is$3;
80836
+ const {isNext: isNext$e} = is$3;
81291
80837
  const isInsideBlock = (path) => path.parentPath.isBlockStatement();
81292
80838
  const isInsideIf = (path) => path.parentPath.isIfStatement();
81293
80839
 
@@ -81297,7 +80843,7 @@ debuggerStatement.DebuggerStatement = {
81297
80843
  print('debugger;');
81298
80844
  },
81299
80845
  afterSatisfy: () => [
81300
- isNext$d,
80846
+ isNext$e,
81301
80847
  isInsideBlock,
81302
80848
  isInsideIf,
81303
80849
  ],
@@ -81438,7 +80984,7 @@ function printAttributes(path, {write, traverse, keyword}) {
81438
80984
  const {parseImportSpecifiers} = parseImportSpecifiers$1;
81439
80985
 
81440
80986
  const {markAfter: markAfter$3} = mark;
81441
- const {isLast: isLast$5, isNext: isNext$c} = is$3;
80987
+ const {isLast: isLast$5, isNext: isNext$d} = is$3;
81442
80988
 
81443
80989
  const {
81444
80990
  maybePrintAttributes,
@@ -81530,7 +81076,7 @@ importDeclaration.ImportDeclaration = {
81530
81076
  });
81531
81077
  print(';');
81532
81078
 
81533
- if (isNext$c(path))
81079
+ if (isNext$d(path))
81534
81080
  print.newline();
81535
81081
  },
81536
81082
  afterIf(path) {
@@ -81550,7 +81096,7 @@ var exportDeclaration = {};
81550
81096
  const {
81551
81097
  isNewlineBetweenSiblings,
81552
81098
  exists: exists$2,
81553
- isNext: isNext$b,
81099
+ isNext: isNext$c,
81554
81100
  isLast: isLast$4,
81555
81101
  } = is$3;
81556
81102
 
@@ -81640,7 +81186,7 @@ exportDeclaration.ExportNamedDeclaration = {
81640
81186
  }
81641
81187
 
81642
81188
  write(';');
81643
- maybe.write.newline(isNext$b(path) || isInsideNamespace(path));
81189
+ maybe.write.newline(isNext$c(path) || isInsideNamespace(path));
81644
81190
 
81645
81191
  return;
81646
81192
  }
@@ -81680,7 +81226,7 @@ exportAllDeclaration.ExportAllDeclaration = (path, {print}) => {
81680
81226
 
81681
81227
  var whileStatement = {};
81682
81228
 
81683
- const {isNext: isNext$a} = is$3;
81229
+ const {isNext: isNext$b} = is$3;
81684
81230
  const {markAfter: markAfter$1} = mark;
81685
81231
 
81686
81232
  whileStatement.WhileStatement = {
@@ -81701,7 +81247,7 @@ whileStatement.WhileStatement = {
81701
81247
  }
81702
81248
  },
81703
81249
  afterIf(path) {
81704
- return isNext$a(path);
81250
+ return isNext$b(path);
81705
81251
  },
81706
81252
  after(path, {print}) {
81707
81253
  print.linebreak();
@@ -81712,7 +81258,7 @@ whileStatement.WhileStatement = {
81712
81258
  var switchStatement = {};
81713
81259
 
81714
81260
  const {
81715
- isNext: isNext$9,
81261
+ isNext: isNext$a,
81716
81262
  exists: exists$1,
81717
81263
  isLast: isLast$3,
81718
81264
  } = is$3;
@@ -81778,10 +81324,10 @@ switchStatement.SwitchStatement = {
81778
81324
  print.indent();
81779
81325
  print('}');
81780
81326
 
81781
- if (!isNext$9(path) && !isLast$3(path))
81327
+ if (!isNext$a(path) && !isLast$3(path))
81782
81328
  print.newline();
81783
81329
  },
81784
- afterSatisfy: () => [isNext$9],
81330
+ afterSatisfy: () => [isNext$a],
81785
81331
  after(path, {print}) {
81786
81332
  print.breakline();
81787
81333
  print.newline();
@@ -81807,10 +81353,10 @@ forInStatement.ForInStatement = (path, {print}) => {
81807
81353
 
81808
81354
  var exportDefaultDeclaration = {};
81809
81355
 
81810
- const {isNext: isNext$8} = is$3;
81356
+ const {isNext: isNext$9} = is$3;
81811
81357
 
81812
81358
  const notClass = (path) => {
81813
- if (!isNext$8(path))
81359
+ if (!isNext$9(path))
81814
81360
  return false;
81815
81361
 
81816
81362
  return !path.get('declaration').isClass();
@@ -82158,7 +81704,7 @@ var tsTypeAliasDeclaration = {};
82158
81704
 
82159
81705
  const {
82160
81706
  isLast: isLast$1,
82161
- isNext: isNext$7,
81707
+ isNext: isNext$8,
82162
81708
  isNextParent: isNextParent$2,
82163
81709
  } = is$3;
82164
81710
 
@@ -82191,7 +81737,7 @@ tsTypeAliasDeclaration.TSTypeAliasDeclaration = {
82191
81737
  if (last)
82192
81738
  return false;
82193
81739
 
82194
- if (!isNext$7(path) && !isNextParent$2(path))
81740
+ if (!isNext$8(path) && !isNextParent$2(path))
82195
81741
  return false;
82196
81742
 
82197
81743
  return !isNextType(path);
@@ -82204,8 +81750,8 @@ tsTypeAliasDeclaration.TSTypeAliasDeclaration = {
82204
81750
 
82205
81751
  var tsMappedType = {};
82206
81752
 
82207
- const {types: types$i} = bundle;
82208
- const {isTSConditionalType} = types$i;
81753
+ const {types: types$h} = bundle;
81754
+ const {isTSConditionalType} = types$h;
82209
81755
 
82210
81756
  tsMappedType.TSMappedType = (path, {print, indent, maybe}) => {
82211
81757
  const {
@@ -82308,7 +81854,7 @@ tsTypeParameter.TSTypeParameter = (path, {write, traverse}) => {
82308
81854
  var tsDeclareFunction = {};
82309
81855
 
82310
81856
  const {printParams: printParams$7} = params;
82311
- const {isNext: isNext$6} = is$3;
81857
+ const {isNext: isNext$7} = is$3;
82312
81858
  const {maybeDeclare: maybeDeclare$2} = maybeDeclare$6;
82313
81859
 
82314
81860
  const isInsideDefaultExport = (path) => {
@@ -82340,7 +81886,7 @@ tsDeclareFunction.TSDeclareFunction = {
82340
81886
  after: (path, {print}) => {
82341
81887
  print(';');
82342
81888
 
82343
- if (isNext$6(path) || isNext$6(path.parentPath) || isInsideNamedExport(path))
81889
+ if (isNext$7(path) || isNext$7(path.parentPath) || isInsideNamedExport(path))
82344
81890
  print.newline();
82345
81891
  },
82346
81892
  };
@@ -82383,7 +81929,7 @@ tsDeclareMethod.TSDeclareMethod = (path, printer, semantics) => {
82383
81929
 
82384
81930
  var tsModuleDeclaration = {};
82385
81931
 
82386
- const {isNext: isNext$5} = is$3;
81932
+ const {isNext: isNext$6} = is$3;
82387
81933
  const {maybeDeclare: maybeDeclare$1} = maybeDeclare$6;
82388
81934
 
82389
81935
  tsModuleDeclaration.TSModuleDeclaration = {
@@ -82399,7 +81945,7 @@ tsModuleDeclaration.TSModuleDeclaration = {
82399
81945
  print.space();
82400
81946
  print('__body');
82401
81947
  }),
82402
- afterSatisfy: () => [isNext$5],
81948
+ afterSatisfy: () => [isNext$6],
82403
81949
  after(path, {print}) {
82404
81950
  print.newline();
82405
81951
  print.newline();
@@ -82426,7 +81972,7 @@ const {
82426
81972
  isExportDeclaration: isExportDeclaration$1,
82427
81973
  } = bundle.types;
82428
81974
 
82429
- const {isNext: isNext$4, isNextParent: isNextParent$1} = is$3;
81975
+ const {isNext: isNext$5, isNextParent: isNextParent$1} = is$3;
82430
81976
  const {maybeDeclare} = maybeDeclare$6;
82431
81977
 
82432
81978
  tsInterfaceDeclaration.TSInterfaceDeclaration = {
@@ -82447,7 +81993,7 @@ tsInterfaceDeclaration.TSInterfaceDeclaration = {
82447
81993
  print('__typeParameters');
82448
81994
  print('__body');
82449
81995
  }),
82450
- afterSatisfy: () => [isNext$4, isNextParent$1],
81996
+ afterSatisfy: () => [isNext$5, isNextParent$1],
82451
81997
  after(path, {print}) {
82452
81998
  print.breakline();
82453
81999
 
@@ -82520,7 +82066,7 @@ const {maybePrintTypeAnnotation: maybePrintTypeAnnotation$1} = maybeTypeAnnotati
82520
82066
 
82521
82067
  const {
82522
82068
  hasTrailingComment,
82523
- isNext: isNext$3,
82069
+ isNext: isNext$4,
82524
82070
  } = is$3;
82525
82071
 
82526
82072
  tsPropertySignature.TSPropertySignature = (path, printer) => {
@@ -82543,7 +82089,7 @@ tsPropertySignature.TSPropertySignature = (path, printer) => {
82543
82089
  write.newline();
82544
82090
  }
82545
82091
 
82546
- if (isNext$3(path) && hasTrailingComment(path))
82092
+ if (isNext$4(path) && hasTrailingComment(path))
82547
82093
  write.newline();
82548
82094
  };
82549
82095
 
@@ -82574,7 +82120,7 @@ tsFunctionType.TSFunctionType = maybeParens((path, printer, semantics) => {
82574
82120
 
82575
82121
  var tsEnumDeclaration = {};
82576
82122
 
82577
- const {isNext: isNext$2, isNextParent} = is$3;
82123
+ const {isNext: isNext$3, isNextParent} = is$3;
82578
82124
 
82579
82125
  tsEnumDeclaration.TSEnumDeclaration = {
82580
82126
  beforeIf(path) {
@@ -82601,7 +82147,7 @@ tsEnumDeclaration.TSEnumDeclaration = {
82601
82147
  indent.dec();
82602
82148
  print('}');
82603
82149
  },
82604
- afterSatisfy: () => [isNext$2, isNextParent],
82150
+ afterSatisfy: () => [isNext$3, isNextParent],
82605
82151
  after(path, {print}) {
82606
82152
  print.breakline();
82607
82153
  },
@@ -82747,10 +82293,18 @@ tsImportType.TSImportType = (path, printer, semantics) => {
82747
82293
 
82748
82294
  var tsExportAssignment = {};
82749
82295
 
82750
- tsExportAssignment.TSExportAssignment = (path, {print}) => {
82751
- print('export = ');
82752
- print('__expression');
82753
- print(';');
82296
+ const {isNext: isNext$2} = is$3;
82297
+
82298
+ tsExportAssignment.TSExportAssignment = {
82299
+ print: (path, {print}) => {
82300
+ print('export = ');
82301
+ print('__expression');
82302
+ print(';');
82303
+ },
82304
+ afterSatisfy: () => [isNext$2],
82305
+ after: (path, {print}) => {
82306
+ print.newline();
82307
+ },
82754
82308
  };
82755
82309
 
82756
82310
  const {isNext: isNext$1} = is$3;
@@ -83287,7 +82841,7 @@ function snakeCase(str) {
83287
82841
  }
83288
82842
 
83289
82843
  const {stringify: stringify$8} = JSON;
83290
- const {TYPES: TYPES$2} = types$r;
82844
+ const {TYPES: TYPES$2} = types$q;
83291
82845
  const toSnakeCase = justSnakeCase;
83292
82846
 
83293
82847
  const {codeFrameColumns: codeFrameColumns$1} = bundle;
@@ -83412,7 +82966,7 @@ const {round} = Math;
83412
82966
  const fullstore$2 = fullstore$3;
83413
82967
  const isObject$4 = (a) => a && typeof a === 'object';
83414
82968
  const babelTraverse$2 = bundle.traverse;
83415
- const {TYPES: TYPES$1} = types$r;
82969
+ const {TYPES: TYPES$1} = types$q;
83416
82970
  const baseVisitors = visitors$1;
83417
82971
 
83418
82972
  const {
@@ -84305,7 +83859,7 @@ var getAst = (node) => {
84305
83859
  return ast;
84306
83860
  };
84307
83861
 
84308
- const {traverse: traverse$a, types: types$h} = bundle;
83862
+ const {traverse: traverse$a, types: types$g} = bundle;
84309
83863
 
84310
83864
  const traverseObjectExpression = traverseObjectExpression$1;
84311
83865
  const setClassMethod = setClassMethod$1;
@@ -84332,7 +83886,7 @@ const getAST = getAst;
84332
83886
  const {
84333
83887
  isObjectExpression,
84334
83888
  isExportDeclaration,
84335
- } = types$h;
83889
+ } = types$g;
84336
83890
 
84337
83891
  var estreeToBabel = (node) => {
84338
83892
  const ast = getAST(node);
@@ -92946,7 +92500,7 @@ function requireEspree () {
92946
92500
  };
92947
92501
  };
92948
92502
 
92949
- const version$1 = "9.6.1";
92503
+ const version$1 = "10.0.1";
92950
92504
 
92951
92505
  /* eslint-disable jsdoc/no-multi-asterisks -- needed to preserve original formatting of licences */
92952
92506
 
@@ -104462,7 +104016,7 @@ function isAbsolute(path) {
104462
104016
  }
104463
104017
 
104464
104018
  // posix version
104465
- function join$1() {
104019
+ function join$2() {
104466
104020
  var paths = Array.prototype.slice.call(arguments, 0);
104467
104021
  return normalize(filter$1(paths, function(p, index) {
104468
104022
  if (typeof p !== 'string') {
@@ -104557,7 +104111,7 @@ var _polyfillNode_path = {
104557
104111
  sep: sep,
104558
104112
  delimiter: delimiter,
104559
104113
  relative: relative$1,
104560
- join: join$1,
104114
+ join: join$2,
104561
104115
  isAbsolute: isAbsolute,
104562
104116
  normalize: normalize,
104563
104117
  resolve: resolve
@@ -104588,7 +104142,7 @@ var _polyfillNode_path$1 = /*#__PURE__*/Object.freeze({
104588
104142
  dirname: dirname$1,
104589
104143
  extname: extname,
104590
104144
  isAbsolute: isAbsolute,
104591
- join: join$1,
104145
+ join: join$2,
104592
104146
  normalize: normalize,
104593
104147
  relative: relative$1,
104594
104148
  resolve: resolve,
@@ -109731,11 +109285,11 @@ function customParse(source, {parser, isTS, isFlow, isJSX}) {
109731
109285
  return commonjsRequire(parser).parse(source);
109732
109286
  }
109733
109287
 
109734
- const {types: types$g} = bundle;
109288
+ const {types: types$f} = bundle;
109735
109289
  const {
109736
109290
  StringLiteral: StringLiteral$3,
109737
109291
  ExpressionStatement,
109738
- } = types$g;
109292
+ } = types$f;
109739
109293
 
109740
109294
  const {assign: assign$7} = Object;
109741
109295
 
@@ -109765,7 +109319,7 @@ const toBabel = estreeToBabel;
109765
109319
  const customParser = customParser$1;
109766
109320
  const moveOutDirectives = moveOutDirectives$1;
109767
109321
 
109768
- var parse$4 = (source, options) => {
109322
+ var parse$5 = (source, options) => {
109769
109323
  const {
109770
109324
  parser,
109771
109325
  printer = 'putout',
@@ -109810,7 +109364,7 @@ function getParser({parser = 'babel', isTS, isFlow, isJSX, printer}) {
109810
109364
  };
109811
109365
  }
109812
109366
 
109813
- parse$4.default;
109367
+ parse$5.default;
109814
109368
 
109815
109369
  const {generate: generate$4} = bundle;
109816
109370
 
@@ -109949,8 +109503,20 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(nanoMemoize);
109949
109503
  ],
109950
109504
  };
109951
109505
 
109952
- const {isExpressionStatement} = types;
109953
- const extractExpression = (a) => isExpressionStatement(a) ? a.expression : a;
109506
+ const {
109507
+ isExpressionStatement,
109508
+ isTSExternalModuleReference,
109509
+ } = types;
109510
+
109511
+ const extractExpression = (a) => {
109512
+ if (isExpressionStatement(a))
109513
+ return a.expression;
109514
+
109515
+ if (isTSExternalModuleReference(a))
109516
+ return a.expression;
109517
+
109518
+ return a;
109519
+ };
109954
109520
 
109955
109521
  module.exports = nanomemoize((value, options) => {
109956
109522
  const fn = template(value, {
@@ -109998,19 +109564,21 @@ var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(nanoMemoize);
109998
109564
  });
109999
109565
 
110000
109566
  return extractExpression(result);
110001
- };
109567
+ };
109568
+
109569
+ module.exports.extractExpression = extractExpression;
110002
109570
  } (template$a));
110003
109571
 
110004
109572
  var templateExports$1 = template$a.exports;
110005
109573
  templateExports$1.default;
110006
109574
 
110007
109575
  const print$3 = print$4;
110008
- const parse$3 = parse$4;
109576
+ const parse$4 = parse$5;
110009
109577
  const generate$3 = generate_1$1;
110010
109578
  const template$9 = templateExports$1;
110011
109579
 
110012
109580
  parser$6.print = print$3;
110013
- parser$6.parse = parse$3;
109581
+ parser$6.parse = parse$4;
110014
109582
  parser$6.generate = generate$3;
110015
109583
  parser$6.template = template$9;
110016
109584
 
@@ -111773,7 +111341,7 @@ const {merge: merge$2} = traverse$9.visitors;
111773
111341
 
111774
111342
  const {assign: assign$3} = Object;
111775
111343
 
111776
- const parse$2 = (name, plugin, options) => {
111344
+ const parse$3 = (name, plugin, options) => {
111777
111345
  const list = [];
111778
111346
 
111779
111347
  if (plugin[name])
@@ -111823,8 +111391,8 @@ var mergeVisitors$1 = (pluginsToMerge, {fix, shebang, template}) => {
111823
111391
  throw Error(`☝️ Visitors cannot be empty in "${rule}"`);
111824
111392
 
111825
111393
  assign$3(options, {
111826
- include: parse$2('include', plugin, options),
111827
- exclude: parse$2('exclude', plugin, options),
111394
+ include: parse$3('include', plugin, options),
111395
+ exclude: parse$3('exclude', plugin, options),
111828
111396
  });
111829
111397
 
111830
111398
  mergeItems.push(...template({
@@ -111896,7 +111464,7 @@ function getStore(plugin, {fix, rule, shebang, msg, options}) {
111896
111464
 
111897
111465
  mergeVisitors$1.default;
111898
111466
 
111899
- const {traverse: babelTraverse$1, types: types$f} = bundle;
111467
+ const {traverse: babelTraverse$1, types: types$e} = bundle;
111900
111468
 
111901
111469
  const {generate: generate$1} = parser$6;
111902
111470
  const {merge: merge$1} = babelTraverse$1.visitors;
@@ -111915,7 +111483,7 @@ var superFind$1 = function superFind({rule, find, ast, options, template}) {
111915
111483
  template,
111916
111484
  }),
111917
111485
  generate: generate$1,
111918
- types: types$f,
111486
+ types: types$e,
111919
111487
  push,
111920
111488
  options,
111921
111489
  });
@@ -112101,7 +111669,7 @@ function check$5(selector) {
112101
111669
  var is$2 = {};
112102
111670
 
112103
111671
  const {template: template$8} = parser$6;
112104
- const {types: types$e} = bundle;
111672
+ const {types: types$d} = bundle;
112105
111673
  const {
112106
111674
  isBlockStatement: isBlockStatement$1,
112107
111675
  isBooleanLiteral,
@@ -112117,7 +111685,7 @@ const {
112117
111685
  isJSXIdentifier,
112118
111686
  isJSXAttribute,
112119
111687
  isTSTypeReference: isTSTypeReference$1,
112120
- } = types$e;
111688
+ } = types$d;
112121
111689
 
112122
111690
  const isStr$1 = (a) => typeof a === 'string';
112123
111691
 
@@ -112418,7 +111986,7 @@ is$2.isInsideTypeReference = (path) => path.isIdentifier() && path.parentPath?.i
112418
111986
 
112419
111987
  const jessy = jessy$1;
112420
111988
  const nessy = nessy$1;
112421
- const {traverse: traverse$7, types: types$d} = bundle;
111989
+ const {traverse: traverse$7, types: types$c} = bundle;
112422
111990
  const {template: template$7} = parser$6;
112423
111991
 
112424
111992
  const {replaceWith: replaceWith$3, extract} = operate;
@@ -112440,12 +112008,13 @@ const {
112440
112008
  isLiteral: isLiteral$1,
112441
112009
  isTemplateLiteral,
112442
112010
  TemplateElement,
112443
- } = types$d;
112011
+ } = types$c;
112012
+
112013
+ const {extractExpression: extractExpression$1} = template$7;
112444
112014
 
112445
112015
  const {entries: entries$6} = Object;
112446
112016
  const isNumber = (a) => typeof a === 'number';
112447
112017
  const isString$5 = (a) => typeof a === 'string';
112448
- const parseExpression = (a) => a?.expression || a;
112449
112018
 
112450
112019
  const parseNode$1 = (a) => a.node || a;
112451
112020
 
@@ -112522,7 +112091,7 @@ function getValues$2({waysFrom, node}) {
112522
112091
  if (!isJSXElement(node))
112523
112092
  way = way.replace(/\.expression$/, '');
112524
112093
 
112525
- result[name] = result[name] || parseExpression(jessy(way, node));
112094
+ result[name] = result[name] || extractExpression$1(jessy(way, node));
112526
112095
  }
112527
112096
  }
112528
112097
 
@@ -112534,7 +112103,7 @@ const makeRaw = (a) => a.replace('`', '\\`');
112534
112103
  vars.setValues = setValues$2;
112535
112104
 
112536
112105
  function setValues$2({waysTo, values, path}) {
112537
- const node = parseExpression(path.node);
112106
+ const node = extractExpression$1(path.node);
112538
112107
 
112539
112108
  for (const [name, ways] of entries$6(waysTo)) {
112540
112109
  for (let way of ways) {
@@ -112618,14 +112187,14 @@ function parseValue(a) {
112618
112187
 
112619
112188
  var logExports = log$4.exports;
112620
112189
 
112621
- const {types: types$c} = bundle;
112190
+ const {types: types$b} = bundle;
112622
112191
  const {
112623
112192
  isIdentifier: isIdentifier$1,
112624
112193
  isLiteral,
112625
112194
  isStringLiteral: isStringLiteral$1,
112626
112195
  isTemplateElement: isTemplateElement$1,
112627
112196
  isTSTypeReference,
112628
- } = types$c;
112197
+ } = types$b;
112629
112198
 
112630
112199
  const parseName = (node) => {
112631
112200
  node = node[0] || node;
@@ -112690,13 +112259,13 @@ const {
112690
112259
  isLinkedRegExp: isLinkedRegExp$1,
112691
112260
  } = is$2;
112692
112261
 
112693
- const {types: types$b} = bundle;
112262
+ const {types: types$a} = bundle;
112694
112263
  const {
112695
112264
  isClassBody,
112696
112265
  isBlock,
112697
112266
  isJSXText,
112698
112267
  isTemplateElement,
112699
- } = types$b;
112268
+ } = types$a;
112700
112269
 
112701
112270
  const isEmptyBlock = (a) => isBlock(a) && !a.body.length;
112702
112271
  const isPrimitive = (a) => typeof a !== 'object' || a === null;
@@ -112803,7 +112372,7 @@ function compareJSXTexts(node, template) {
112803
112372
 
112804
112373
  var topLevelComparators = {};
112805
112374
 
112806
- const {types: types$a} = bundle;
112375
+ const {types: types$9} = bundle;
112807
112376
  const {
112808
112377
  isEqualBody,
112809
112378
  isEqualAnyObject,
@@ -112817,7 +112386,7 @@ const {
112817
112386
  const {
112818
112387
  isIdentifier,
112819
112388
  isStringLiteral,
112820
- } = types$a;
112389
+ } = types$9;
112821
112390
 
112822
112391
  const comparators = [
112823
112392
  isEqualAnyObject,
@@ -112853,7 +112422,6 @@ function isLinkedAndStringLiteral(node, templateNode) {
112853
112422
  }
112854
112423
 
112855
112424
  const {template: template$6} = parser$6;
112856
- const {types: types$9} = bundle;
112857
112425
 
112858
112426
  const {
112859
112427
  findVarsWays: findVarsWays$1,
@@ -112873,7 +112441,7 @@ const {
112873
112441
  parseTemplate: parseTemplate$2,
112874
112442
  } = is$2;
112875
112443
 
112876
- const {isExpressionStatement: isExpressionStatement$1} = types$9;
112444
+ const {extractExpression} = template$6;
112877
112445
 
112878
112446
  const {keys: keys$2} = Object;
112879
112447
  const {isArray: isArray$4} = Array;
@@ -112881,7 +112449,6 @@ const noop$2 = () => {};
112881
112449
  const isEmptyArray = (a) => isArray$4(a) && !a.length;
112882
112450
 
112883
112451
  const compareType = (type) => (path) => path.type === type;
112884
- const extractExpression = (a) => isExpressionStatement$1(a) ? a.expression : a;
112885
112452
  const superPush = (array) => (a, b) => array.push([a, b]);
112886
112453
  const maybeArray$3 = (a) => isArray$4(a) ? a : [a];
112887
112454
 
@@ -113225,7 +112792,7 @@ replace$1.exports.clearWatermark = (ast) => {
113225
112792
 
113226
112793
  const isFn$2 = (a) => typeof a === 'function';
113227
112794
 
113228
- const fix$3 = (from, to, path) => {
112795
+ const fix$4 = (from, to, path) => {
113229
112796
  const nodeFrom = template$5.ast(from);
113230
112797
  const mark = watermark(from, to, path);
113231
112798
 
@@ -113276,7 +112843,7 @@ const fix$3 = (from, to, path) => {
113276
112843
 
113277
112844
  const getFix = (items) => (path) => {
113278
112845
  for (const [from, to] of entries$4(items))
113279
- fix$3(from, to, path);
112846
+ fix$4(from, to, path);
113280
112847
  };
113281
112848
 
113282
112849
  const getFilter = (match = stubMatch, options) => (path) => {
@@ -113424,13 +112991,13 @@ const TS_EXCLUDE = [
113424
112991
  ];
113425
112992
 
113426
112993
  declare$2.declare = (declarations) => ({
113427
- report: report$3,
112994
+ report: report$4,
113428
112995
  include: include$1,
113429
- fix: fix$2(declarations),
112996
+ fix: fix$3(declarations),
113430
112997
  filter: filter(declarations),
113431
112998
  });
113432
112999
 
113433
- const report$3 = (path) => {
113000
+ const report$4 = (path) => {
113434
113001
  const {name} = path.node;
113435
113002
  const peaceOfName = cutName(name);
113436
113003
 
@@ -113472,7 +113039,7 @@ const filter = (declarations) => (path, {options}) => {
113472
113039
  return parseCode(type, allDeclarations[name]);
113473
113040
  };
113474
113041
 
113475
- const fix$2 = (declarations) => (path, {options}) => {
113042
+ const fix$3 = (declarations) => (path, {options}) => {
113476
113043
  const type = getModuleType(path);
113477
113044
 
113478
113045
  const allDeclarations = {
@@ -113657,7 +113224,7 @@ function deinit() {
113657
113224
  assign$2(maybeFS$1, defaultFS);
113658
113225
  }
113659
113226
 
113660
- const {join, basename: basename$1} = require$$0$2;
113227
+ const {join: join$1, basename: basename$1} = require$$0$2;
113661
113228
  const tryCatch$1 = tryCatch$5;
113662
113229
  const {types: types$5} = bundle;
113663
113230
 
@@ -113716,9 +113283,9 @@ filesystem.getParentDirectory = (filePath) => {
113716
113283
  return parentPath;
113717
113284
  };
113718
113285
 
113719
- filesystem.findFile = findFile$4;
113286
+ filesystem.findFile = findFile$5;
113720
113287
 
113721
- function findFile$4(node, name) {
113288
+ function findFile$5(node, name) {
113722
113289
  checkName(name);
113723
113290
 
113724
113291
  const filePaths = [];
@@ -113747,7 +113314,7 @@ function getFilenamePath(filePath) {
113747
113314
  return filenamePath.get('value');
113748
113315
  }
113749
113316
 
113750
- function getFilename$3(filePath) {
113317
+ function getFilename$4(filePath) {
113751
113318
  const {value} = getFilenamePath(filePath).node;
113752
113319
  return value;
113753
113320
  }
@@ -113770,10 +113337,10 @@ function getFileContent(filePath) {
113770
113337
  ];
113771
113338
  }
113772
113339
 
113773
- filesystem.getFilename = getFilename$3;
113340
+ filesystem.getFilename = getFilename$4;
113774
113341
 
113775
113342
  filesystem.renameFile = (filePath, name) => {
113776
- const oldName = getFilename$3(filePath);
113343
+ const oldName = getFilename$4(filePath);
113777
113344
  const valuePath = getFilenamePath(filePath);
113778
113345
  const baseName = oldName
113779
113346
  .split('/')
@@ -113790,7 +113357,7 @@ filesystem.renameFile = (filePath, name) => {
113790
113357
  };
113791
113358
 
113792
113359
  filesystem.removeFile = (filePath) => {
113793
- const filename = getFilename$3(filePath);
113360
+ const filename = getFilename$4(filePath);
113794
113361
 
113795
113362
  filePath.remove();
113796
113363
  maybeFS.removeFile(filename);
@@ -113800,8 +113367,8 @@ filesystem.moveFile = (filePath, dirPath) => {
113800
113367
  if (filePath === dirPath)
113801
113368
  return;
113802
113369
 
113803
- const dirname = getFilename$3(dirPath);
113804
- const filename = getFilename$3(filePath);
113370
+ const dirname = getFilename$4(dirPath);
113371
+ const filename = getFilename$4(filePath);
113805
113372
  const dirPathFiles = getProperty$2(dirPath, 'files');
113806
113373
  const filenamePath = getProperty$2(filePath, 'filename');
113807
113374
 
@@ -113809,7 +113376,7 @@ filesystem.moveFile = (filePath, dirPath) => {
113809
113376
  .split('/')
113810
113377
  .pop();
113811
113378
 
113812
- const newFilename = join(dirname, basename);
113379
+ const newFilename = join$1(dirname, basename);
113813
113380
 
113814
113381
  maybeRemoveFile(dirPath, newFilename);
113815
113382
 
@@ -113821,14 +113388,14 @@ filesystem.moveFile = (filePath, dirPath) => {
113821
113388
  };
113822
113389
 
113823
113390
  filesystem.copyFile = (filePath, dirPath) => {
113824
- const dirname = getFilename$3(dirPath);
113825
- const filename = getFilename$3(filePath);
113391
+ const dirname = getFilename$4(dirPath);
113392
+ const filename = getFilename$4(filePath);
113826
113393
 
113827
113394
  const basename = filename
113828
113395
  .split('/')
113829
113396
  .pop();
113830
113397
 
113831
- const newFilename = join(dirname, basename);
113398
+ const newFilename = join$1(dirname, basename);
113832
113399
  const [hasContent, content] = getFileContent(filePath);
113833
113400
 
113834
113401
  const copiedFile = ObjectExpression$1([
@@ -113849,12 +113416,12 @@ function maybeRemoveFile(dirPath, filename) {
113849
113416
  const type = getFileType$2(dirPath);
113850
113417
 
113851
113418
  if (type !== 'directory') {
113852
- const filename = getFilename$3(dirPath);
113419
+ const filename = getFilename$4(dirPath);
113853
113420
  throw Error(`☝️ Looks like '${filename}' is not a directory, but: '${type}'. Rename to '${filename}/'`);
113854
113421
  }
113855
113422
 
113856
113423
  const dirPathFiles = getProperty$2(dirPath, 'files');
113857
- const [fileToOverwrite] = findFile$4(dirPathFiles, filename);
113424
+ const [fileToOverwrite] = findFile$5(dirPathFiles, filename);
113858
113425
 
113859
113426
  if (!fileToOverwrite)
113860
113427
  return;
@@ -113882,8 +113449,8 @@ filesystem.createFile = (dirPath, name, content) => {
113882
113449
  maybeRemoveFile(dirPath, name);
113883
113450
 
113884
113451
  const dirPathFiles = getFiles$1(dirPath);
113885
- const parentFilename = getFilename$3(dirPath);
113886
- const filename = join(parentFilename, name);
113452
+ const parentFilename = getFilename$4(dirPath);
113453
+ const filename = join$1(parentFilename, name);
113887
113454
 
113888
113455
  const typeProperty = createTypeProperty('file');
113889
113456
  const filenameProperty = createFilenameProperty(filename);
@@ -113912,8 +113479,8 @@ function getFiles$1(dirPath) {
113912
113479
 
113913
113480
  filesystem.createDirectory = (dirPath, name) => {
113914
113481
  const dirPathFiles = getFiles$1(dirPath);
113915
- const parentFilename = getFilename$3(dirPath);
113916
- const filename = join(parentFilename, name);
113482
+ const parentFilename = getFilename$4(dirPath);
113483
+ const filename = join$1(parentFilename, name);
113917
113484
 
113918
113485
  const typeProperty = createTypeProperty('directory');
113919
113486
  const filesProperty = createFilesProperty([]);
@@ -113943,7 +113510,7 @@ filesystem.readFileContent = (filePath) => {
113943
113510
  if (hasContent)
113944
113511
  return fromBase64(content);
113945
113512
 
113946
- const filename = getFilename$3(filePath);
113513
+ const filename = getFilename$4(filePath);
113947
113514
  const fileContent = maybeFS.readFileContent(filename);
113948
113515
 
113949
113516
  const property = createContentProperty(toBase64(fileContent));
@@ -113961,7 +113528,7 @@ function writeFileContent$1(filePath, content) {
113961
113528
  if (fileType === 'directory')
113962
113529
  return;
113963
113530
 
113964
- const filename = getFilename$3(filePath);
113531
+ const filename = getFilename$4(filePath);
113965
113532
 
113966
113533
  maybeFS.writeFileContent(filename, content);
113967
113534
 
@@ -113989,8 +113556,8 @@ const {basename, dirname} = require$$0$2;
113989
113556
  const {
113990
113557
  createDirectory,
113991
113558
  getFileType: getFileType$1,
113992
- getFilename: getFilename$2,
113993
- findFile: findFile$3,
113559
+ getFilename: getFilename$3,
113560
+ findFile: findFile$4,
113994
113561
  } = filesystem;
113995
113562
 
113996
113563
  const {__filesystem_name: __filesystem_name$2} = json;
@@ -114072,17 +113639,17 @@ const noTrailingSlash = (a) => {
114072
113639
  };
114073
113640
 
114074
113641
  function buildTree(path, list) {
114075
- const [root, ...files] = findFile$3(list, '*');
113642
+ const [root, ...files] = findFile$4(list, '*');
114076
113643
 
114077
113644
  for (const filePath of files) {
114078
- const filename = getFilename$2(filePath);
113645
+ const filename = getFilename$3(filePath);
114079
113646
 
114080
113647
  check$2(filename);
114081
113648
 
114082
113649
  const type = getFileType$1(filePath);
114083
113650
  const dir = dirname(filename);
114084
113651
  const name = basename(filename);
114085
- const [dirPath] = findFile$3(root, dir);
113652
+ const [dirPath] = findFile$4(root, dir);
114086
113653
 
114087
113654
  if (!dirPath)
114088
113655
  throw Error(`☝️ Looks like directory '${dir}/' is missing`);
@@ -114111,8 +113678,8 @@ const {replaceWith, getProperty} = operate;
114111
113678
  const {__filesystem_name: __filesystem_name$1} = json;
114112
113679
 
114113
113680
  const {
114114
- findFile: findFile$2,
114115
- getFilename: getFilename$1,
113681
+ findFile: findFile$3,
113682
+ getFilename: getFilename$2,
114116
113683
  getFileType,
114117
113684
  } = filesystem;
114118
113685
 
@@ -114130,7 +113697,7 @@ convertFilesystemToSimpleFilesystem.fix = (root, {files}) => {
114130
113697
  const names = [];
114131
113698
 
114132
113699
  for (const file of files) {
114133
- const filename = getFilename$1(file);
113700
+ const filename = getFilename$2(file);
114134
113701
  const type = getFileType(file);
114135
113702
  const contentPath = getProperty(file, 'content');
114136
113703
  const content = contentPath?.node?.value;
@@ -114168,7 +113735,7 @@ convertFilesystemToSimpleFilesystem.fix = (root, {files}) => {
114168
113735
  convertFilesystemToSimpleFilesystem.traverse = ({push}) => ({
114169
113736
  [`${__filesystem_name$1}(__object)`]: (path) => {
114170
113737
  const root = path.get('arguments.0');
114171
- const files = findFile$2(root, '*');
113738
+ const files = findFile$3(root, '*');
114172
113739
 
114173
113740
  push(root, {
114174
113741
  files,
@@ -114181,7 +113748,7 @@ const {compare: compare$1} = compare$5;
114181
113748
  const {__filesystem_name} = json;
114182
113749
 
114183
113750
  const {
114184
- findFile: findFile$1,
113751
+ findFile: findFile$2,
114185
113752
  pause,
114186
113753
  start,
114187
113754
  } = filesystem;
@@ -114236,7 +113803,7 @@ const createFileProgress = ({rule, progress}) => ({i, n}) => {
114236
113803
  };
114237
113804
 
114238
113805
  const createTrackFile = (fileProgress) => function*(...a) {
114239
- const files = findFile$1(...a);
113806
+ const files = findFile$2(...a);
114240
113807
  const n = files.length;
114241
113808
 
114242
113809
  for (const [i, file] of files.entries()) {
@@ -114249,7 +113816,7 @@ const createTrackFile = (fileProgress) => function*(...a) {
114249
113816
  };
114250
113817
 
114251
113818
  const getTraverse = ({scan, rule, progress}) => ({push, options}) => ({
114252
- ['__putout_processor_filesystem(__)'](path) {
113819
+ [`${__filesystem_name}(__)`](path) {
114253
113820
  log$1(rule);
114254
113821
  progress.start(rule);
114255
113822
 
@@ -115304,7 +114871,7 @@ findPlaces$2.findPlacesAsync = async (ast, source, opts) => {
115304
114871
  const {isArray} = Array;
115305
114872
  const noop = () => {};
115306
114873
 
115307
- var report$2 = () => {
114874
+ var report$3 = () => {
115308
114875
  let filesCount = 0;
115309
114876
  let errorsCount = 0;
115310
114877
 
@@ -115354,7 +114921,7 @@ var report$2 = () => {
115354
114921
  };
115355
114922
  };
115356
114923
 
115357
- report$2.default;
114924
+ report$3.default;
115358
114925
 
115359
114926
  var traverse$5 = {};
115360
114927
 
@@ -122577,15 +122144,15 @@ const isCall = (path) => {
122577
122144
  return isCallExpression(path.find(isCallOrStatement));
122578
122145
  };
122579
122146
 
122580
- const report$1 = ({name}) => `Argument '${name}' is missing`;
122147
+ const report$2 = ({name}) => `Argument '${name}' is missing`;
122581
122148
 
122582
122149
  addArgs.addArgs = (args) => ({
122583
- report: report$1,
122584
- fix: fix$1,
122150
+ report: report$2,
122151
+ fix: fix$2,
122585
122152
  traverse: traverse$1(args),
122586
122153
  });
122587
122154
 
122588
- const fix$1 = ({declaration, path, pattern, params, index}) => {
122155
+ const fix$2 = ({declaration, path, pattern, params, index}) => {
122589
122156
  const declarationNode = template$1.ast.fresh(declaration);
122590
122157
 
122591
122158
  if (isBlockStatement(declarationNode)) {
@@ -123348,7 +122915,7 @@ function mergeIgnores(ignores) {
123348
122915
 
123349
122916
  ignores$1.default;
123350
122917
 
123351
- const {parse: parse$1, print: print$1} = parser$6;
122918
+ const {parse: parse$2, print: print$1} = parser$6;
123352
122919
  const {transform: transform$1} = transform$5;
123353
122920
  const {findPlaces: findPlaces$1} = findPlaces$2;
123354
122921
  const ignores = ignores$1;
@@ -123356,30 +122923,30 @@ const ignores = ignores$1;
123356
122923
  const {toJS, fromJS} = json;
123357
122924
 
123358
122925
  const {
123359
- readFileContent,
123360
- findFile,
122926
+ readFileContent: readFileContent$1,
122927
+ findFile: findFile$1,
123361
122928
  writeFileContent,
123362
- getFilename,
122929
+ getFilename: getFilename$1,
123363
122930
  createFile,
123364
- getParentDirectory,
122931
+ getParentDirectory: getParentDirectory$1,
123365
122932
  } = filesystem;
123366
122933
 
123367
122934
  const isObject = (a) => a && typeof a === 'object';
123368
122935
  const {entries} = Object;
123369
- const report = (path, {message}) => message;
122936
+ const report$1 = (path, {message}) => message;
123370
122937
 
123371
122938
  matchFiles.matchFiles = (files) => {
123372
122939
  check$1(files);
123373
122940
  const scan = createScan(files);
123374
122941
 
123375
122942
  return {
123376
- fix,
122943
+ fix: fix$1,
123377
122944
  scan,
123378
- report,
122945
+ report: report$1,
123379
122946
  };
123380
122947
  };
123381
122948
 
123382
- function fix(path, {outputFilename, matchedJS, matchedAST, plugins}) {
122949
+ function fix$1(path, {outputFilename, matchedJS, matchedAST, plugins}) {
123383
122950
  transform$1(matchedAST, matchedJS, {
123384
122951
  plugins,
123385
122952
  });
@@ -123391,15 +122958,15 @@ function fix(path, {outputFilename, matchedJS, matchedAST, plugins}) {
123391
122958
 
123392
122959
  const createScan = (files) => (path, {push, progress, options}) => {
123393
122960
  const allFiles = [];
123394
- const cwd = getFilename(path);
122961
+ const cwd = getFilename$1(path);
123395
122962
 
123396
122963
  for (const [filename, plugin] of entries(files)) {
123397
122964
  const [matchInputFilename, outputFilename = matchInputFilename] = parseMatcher(filename, options);
123398
- const inputFiles = findFile(path, matchInputFilename);
122965
+ const inputFiles = findFile$1(path, matchInputFilename);
123399
122966
 
123400
122967
  for (const inputFile of inputFiles) {
123401
- const dirPath = getParentDirectory(inputFile);
123402
- const inputFilename = getFilename(inputFile);
122968
+ const dirPath = getParentDirectory$1(inputFile);
122969
+ const inputFilename = getFilename$1(inputFile);
123403
122970
  const outputFile = getOutputFile(path, {
123404
122971
  dirPath,
123405
122972
  matchInputFilename,
@@ -123428,7 +122995,7 @@ const createScan = (files) => (path, {push, progress, options}) => {
123428
122995
  n,
123429
122996
  });
123430
122997
 
123431
- const fileContent = readFileContent(inputFile) || '{}';
122998
+ const fileContent = readFileContent$1(inputFile) || '{}';
123432
122999
  const [matchedJS, matchedAST] = magicParse(inputFilename, fileContent);
123433
123000
 
123434
123001
  const name = `match-file: ${inputFilename}`;
@@ -123459,20 +123026,20 @@ const createScan = (files) => (path, {push, progress, options}) => {
123459
123026
  function magicParse(name, content) {
123460
123027
  if (/\.json$/.test(name)) {
123461
123028
  const js = toJS(content);
123462
- const ast = parse$1(js);
123029
+ const ast = parse$2(js);
123463
123030
 
123464
123031
  return [js, ast];
123465
123032
  }
123466
123033
 
123467
123034
  if (/\.(c|m)?ts(x)?$/.test(name)) {
123468
- const ast = parse$1(content, {
123035
+ const ast = parse$2(content, {
123469
123036
  isTS: true,
123470
123037
  });
123471
123038
 
123472
123039
  return [content, ast];
123473
123040
  }
123474
123041
 
123475
- return [content, parse$1(content)];
123042
+ return [content, parse$2(content)];
123476
123043
  }
123477
123044
 
123478
123045
  function magicPrint(name, ast) {
@@ -123496,7 +123063,7 @@ function getOutputFile(path, {dirPath, matchInputFilename, outputFilename, input
123496
123063
  if (matchInputFilename === outputFilename)
123497
123064
  return inputFile;
123498
123065
 
123499
- const [outputFile] = findFile(dirPath, outputFilename);
123066
+ const [outputFile] = findFile$1(dirPath, outputFilename);
123500
123067
 
123501
123068
  if (outputFile)
123502
123069
  return outputFile;
@@ -123517,6 +123084,83 @@ function parseMatcher(matcher, options) {
123517
123084
  return matcher.split(' -> ');
123518
123085
  }
123519
123086
 
123087
+ var renameFiles = {};
123088
+
123089
+ const {join} = require$$0$2;
123090
+
123091
+ const {
123092
+ getParentDirectory,
123093
+ getFilename,
123094
+ readFileContent,
123095
+ findFile,
123096
+ renameFile,
123097
+ } = filesystem;
123098
+
123099
+ const {parse: parse$1} = JSON;
123100
+
123101
+ renameFiles.renameFiles = ({type, mask, rename}) => ({
123102
+ report,
123103
+ fix,
123104
+ scan: scan({
123105
+ type,
123106
+ mask,
123107
+ rename,
123108
+ }),
123109
+ });
123110
+
123111
+ const report = (file, {from, to}) => `Rename '${from}' to '${to}'`;
123112
+
123113
+ const fix = (file, {to}) => {
123114
+ renameFile(file, to);
123115
+ };
123116
+
123117
+ const scan = ({type, mask, rename}) => (path, {push, trackFile}) => {
123118
+ for (const file of trackFile(path, mask)) {
123119
+ if (type && !checkType(type, file))
123120
+ continue;
123121
+
123122
+ const from = getFilename(file);
123123
+ const to = rename(from);
123124
+
123125
+ push(file, {
123126
+ from,
123127
+ to,
123128
+ });
123129
+ }
123130
+ };
123131
+
123132
+ function checkType(type, file) {
123133
+ const packagePath = findUpPackage(file);
123134
+
123135
+ if (type === 'commonjs' && !packagePath)
123136
+ return true;
123137
+
123138
+ if (!packagePath)
123139
+ return false;
123140
+
123141
+ const packageContent = readFileContent(packagePath);
123142
+
123143
+ if (!packageContent)
123144
+ return false;
123145
+
123146
+ const info = parse$1(packageContent);
123147
+ const infoType = info.type || 'commonjs';
123148
+
123149
+ return infoType === type;
123150
+ }
123151
+
123152
+ function findUpPackage(file) {
123153
+ let packageJSON;
123154
+ let dirPath = getParentDirectory(file);
123155
+
123156
+ do {
123157
+ const dir = getFilename(dirPath);
123158
+ [packageJSON] = findFile(dirPath, join(dir, 'package.json'));
123159
+ } while (!packageJSON && (dirPath = getParentDirectory(dirPath)));
123160
+
123161
+ return packageJSON;
123162
+ }
123163
+
123520
123164
  const {codeFrameColumns} = bundle;
123521
123165
 
123522
123166
  var codeframe = ({source, error, highlightCode = true}) => {
@@ -123660,7 +123304,7 @@ var traverse_1 = putout.exports.traverse = traverse;
123660
123304
  var types_1 = putout.exports.types = types;
123661
123305
  var template_1 = putout.exports.template = template;
123662
123306
  var generate_1 = putout.exports.generate = generate;
123663
- putout.exports.initReport = report$2;
123307
+ putout.exports.initReport = report$3;
123664
123308
 
123665
123309
  var operator = putout.exports.operator = {
123666
123310
  ...operate,
@@ -123672,6 +123316,7 @@ var operator = putout.exports.operator = {
123672
123316
  ...addArgs,
123673
123317
  ...filesystem,
123674
123318
  ...matchFiles,
123319
+ ...renameFiles,
123675
123320
  };
123676
123321
 
123677
123322
  putout.exports.ignores = ignores$1;