@putout/bundle 4.5.4 → 4.6.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 +211 -196
- package/bundle/putout.min.js +1 -1
- package/package.json +2 -2
package/bundle/putout.js
CHANGED
|
@@ -5833,7 +5833,7 @@ __export$1(lib_exports$1, {
|
|
|
5833
5833
|
isJSXAttribute: () => isJSXAttribute$4,
|
|
5834
5834
|
isJSXClosingElement: () => isJSXClosingElement$1,
|
|
5835
5835
|
isJSXClosingFragment: () => isJSXClosingFragment$1,
|
|
5836
|
-
isJSXElement: () => isJSXElement$
|
|
5836
|
+
isJSXElement: () => isJSXElement$6,
|
|
5837
5837
|
isJSXEmptyExpression: () => isJSXEmptyExpression$1,
|
|
5838
5838
|
isJSXExpressionContainer: () => isJSXExpressionContainer$1,
|
|
5839
5839
|
isJSXFragment: () => isJSXFragment$1,
|
|
@@ -9229,7 +9229,7 @@ function isJSXClosingElement$1(node, opts) {
|
|
|
9229
9229
|
return opts == null || shallowEqual$1(node, opts);
|
|
9230
9230
|
}
|
|
9231
9231
|
|
|
9232
|
-
function isJSXElement$
|
|
9232
|
+
function isJSXElement$6(node, opts) {
|
|
9233
9233
|
if (!node)
|
|
9234
9234
|
return false;
|
|
9235
9235
|
|
|
@@ -23432,7 +23432,7 @@ var TokContext$1 = class TokContext {
|
|
|
23432
23432
|
}
|
|
23433
23433
|
};
|
|
23434
23434
|
|
|
23435
|
-
var types$
|
|
23435
|
+
var types$18 = {
|
|
23436
23436
|
brace: new TokContext$1('{'),
|
|
23437
23437
|
j_oTag: new TokContext$1('<tag'),
|
|
23438
23438
|
j_cTag: new TokContext$1('</tag'),
|
|
@@ -25952,7 +25952,7 @@ var flow$1 = (superClass) => class FlowParserMixin extends superClass {
|
|
|
25952
25952
|
}
|
|
25953
25953
|
|
|
25954
25954
|
flowInTopLevelContext(cb) {
|
|
25955
|
-
if (this.curContext() !== types$
|
|
25955
|
+
if (this.curContext() !== types$18.brace) {
|
|
25956
25956
|
const oldContext = this.state.context;
|
|
25957
25957
|
|
|
25958
25958
|
this.state.context = [oldContext[0]];
|
|
@@ -25996,7 +25996,7 @@ var flow$1 = (superClass) => class FlowParserMixin extends superClass {
|
|
|
25996
25996
|
});
|
|
25997
25997
|
this.state.inType = oldInType;
|
|
25998
25998
|
|
|
25999
|
-
if (!this.state.inType && this.curContext() === types$
|
|
25999
|
+
if (!this.state.inType && this.curContext() === types$18.brace) {
|
|
26000
26000
|
this.reScan_lt_gt();
|
|
26001
26001
|
}
|
|
26002
26002
|
|
|
@@ -27616,7 +27616,7 @@ var flow$1 = (superClass) => class FlowParserMixin extends superClass {
|
|
|
27616
27616
|
|
|
27617
27617
|
const currentContext = context[context.length - 1];
|
|
27618
27618
|
|
|
27619
|
-
if (currentContext === types$
|
|
27619
|
+
if (currentContext === types$18.j_oTag || currentContext === types$18.j_expr) {
|
|
27620
27620
|
context.pop();
|
|
27621
27621
|
}
|
|
27622
27622
|
}
|
|
@@ -28700,7 +28700,7 @@ function getQualifiedJSXName$1(object) {
|
|
|
28700
28700
|
throw new Error('Node had unexpected type: ' + object.type);
|
|
28701
28701
|
}
|
|
28702
28702
|
|
|
28703
|
-
var jsx$
|
|
28703
|
+
var jsx$4 = (superClass) => class JSXParserMixin extends superClass {
|
|
28704
28704
|
jsxReadToken() {
|
|
28705
28705
|
let out = '';
|
|
28706
28706
|
let chunkStart = this.state.pos;
|
|
@@ -28909,9 +28909,9 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
28909
28909
|
switch(this.state.type) {
|
|
28910
28910
|
case 5:
|
|
28911
28911
|
node = this.startNode();
|
|
28912
|
-
this.setContext(types$
|
|
28912
|
+
this.setContext(types$18.brace);
|
|
28913
28913
|
this.next();
|
|
28914
|
-
node = this.jsxParseExpressionContainer(node, types$
|
|
28914
|
+
node = this.jsxParseExpressionContainer(node, types$18.j_oTag);
|
|
28915
28915
|
|
|
28916
28916
|
if (node.expression.type === 'JSXEmptyExpression') {
|
|
28917
28917
|
this.raise(JsxErrors$1.AttributeIsEmpty, node);
|
|
@@ -28936,7 +28936,7 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
28936
28936
|
jsxParseSpreadChild(node) {
|
|
28937
28937
|
this.next();
|
|
28938
28938
|
node.expression = this.parseExpression();
|
|
28939
|
-
this.setContext(types$
|
|
28939
|
+
this.setContext(types$18.j_expr);
|
|
28940
28940
|
this.state.canStartJSXElement = true;
|
|
28941
28941
|
this.expect(8);
|
|
28942
28942
|
return this.finishNode(node, 'JSXSpreadChild');
|
|
@@ -28966,11 +28966,11 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
28966
28966
|
const node = this.startNode();
|
|
28967
28967
|
|
|
28968
28968
|
if (this.match(5)) {
|
|
28969
|
-
this.setContext(types$
|
|
28969
|
+
this.setContext(types$18.brace);
|
|
28970
28970
|
this.next();
|
|
28971
28971
|
this.expect(21);
|
|
28972
28972
|
node.argument = this.parseMaybeAssignAllowIn();
|
|
28973
|
-
this.setContext(types$
|
|
28973
|
+
this.setContext(types$18.j_oTag);
|
|
28974
28974
|
this.state.canStartJSXElement = true;
|
|
28975
28975
|
this.expect(8);
|
|
28976
28976
|
return this.finishNode(node, 'JSXSpreadAttribute');
|
|
@@ -29044,13 +29044,13 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
29044
29044
|
|
|
29045
29045
|
case 5: {
|
|
29046
29046
|
const node2 = this.startNode();
|
|
29047
|
-
this.setContext(types$
|
|
29047
|
+
this.setContext(types$18.brace);
|
|
29048
29048
|
this.next();
|
|
29049
29049
|
|
|
29050
29050
|
if (this.match(21)) {
|
|
29051
29051
|
children.push(this.jsxParseSpreadChild(node2));
|
|
29052
29052
|
} else {
|
|
29053
|
-
children.push(this.jsxParseExpressionContainer(node2, types$
|
|
29053
|
+
children.push(this.jsxParseExpressionContainer(node2, types$18.j_expr));
|
|
29054
29054
|
}
|
|
29055
29055
|
|
|
29056
29056
|
break;
|
|
@@ -29126,12 +29126,12 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
29126
29126
|
getTokenFromCode(code2) {
|
|
29127
29127
|
const context = this.curContext();
|
|
29128
29128
|
|
|
29129
|
-
if (context === types$
|
|
29129
|
+
if (context === types$18.j_expr) {
|
|
29130
29130
|
this.jsxReadToken();
|
|
29131
29131
|
return;
|
|
29132
29132
|
}
|
|
29133
29133
|
|
|
29134
|
-
if (context === types$
|
|
29134
|
+
if (context === types$18.j_oTag || context === types$18.j_cTag) {
|
|
29135
29135
|
if (isIdentifierStart2$1(code2)) {
|
|
29136
29136
|
this.jsxReadWord();
|
|
29137
29137
|
return;
|
|
@@ -29143,7 +29143,7 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
29143
29143
|
return;
|
|
29144
29144
|
}
|
|
29145
29145
|
|
|
29146
|
-
if ((code2 === 34 || code2 === 39) && context === types$
|
|
29146
|
+
if ((code2 === 34 || code2 === 39) && context === types$18.j_oTag) {
|
|
29147
29147
|
this.jsxReadString(code2);
|
|
29148
29148
|
return;
|
|
29149
29149
|
}
|
|
@@ -29162,18 +29162,18 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
29162
29162
|
const {context, type} = this.state;
|
|
29163
29163
|
|
|
29164
29164
|
if (type === 56 && prevType === 143) {
|
|
29165
|
-
context.splice(-2, 2, types$
|
|
29165
|
+
context.splice(-2, 2, types$18.j_cTag);
|
|
29166
29166
|
this.state.canStartJSXElement = false;
|
|
29167
29167
|
} else if (type === 143) {
|
|
29168
|
-
context.push(types$
|
|
29168
|
+
context.push(types$18.j_oTag);
|
|
29169
29169
|
} else if (type === 144) {
|
|
29170
29170
|
const out = context[context.length - 1];
|
|
29171
29171
|
|
|
29172
|
-
if (out === types$
|
|
29172
|
+
if (out === types$18.j_oTag && prevType === 56 || out === types$18.j_cTag) {
|
|
29173
29173
|
context.pop();
|
|
29174
|
-
this.state.canStartJSXElement = context[context.length - 1] === types$
|
|
29174
|
+
this.state.canStartJSXElement = context[context.length - 1] === types$18.j_expr;
|
|
29175
29175
|
} else {
|
|
29176
|
-
this.setContext(types$
|
|
29176
|
+
this.setContext(types$18.j_expr);
|
|
29177
29177
|
this.state.canStartJSXElement = true;
|
|
29178
29178
|
}
|
|
29179
29179
|
} else {
|
|
@@ -29652,7 +29652,7 @@ var State$3 = class _State {
|
|
|
29652
29652
|
__publicField$1(this, 'end', 0);
|
|
29653
29653
|
__publicField$1(this, 'lastTokEndLoc', null);
|
|
29654
29654
|
__publicField$1(this, 'lastTokStartLoc', null);
|
|
29655
|
-
__publicField$1(this, 'context', [types$
|
|
29655
|
+
__publicField$1(this, 'context', [types$18.brace]);
|
|
29656
29656
|
__publicField$1(this, 'firstInvalidTemplateEscapePos', null);
|
|
29657
29657
|
__publicField$1(this, 'strictErrors', /* @__PURE__ */new Map());
|
|
29658
29658
|
__publicField$1(this, 'tokensLength', 0);
|
|
@@ -34175,7 +34175,7 @@ var typescript$4 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
34175
34175
|
}
|
|
34176
34176
|
|
|
34177
34177
|
tsInTopLevelContext(cb) {
|
|
34178
|
-
if (this.curContext() !== types$
|
|
34178
|
+
if (this.curContext() !== types$18.brace) {
|
|
34179
34179
|
const oldContext = this.state.context;
|
|
34180
34180
|
|
|
34181
34181
|
this.state.context = [oldContext[0]];
|
|
@@ -34607,7 +34607,7 @@ var typescript$4 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
34607
34607
|
|
|
34608
34608
|
if (node.params.length === 0) {
|
|
34609
34609
|
this.raise(TSErrors$1.EmptyTypeArguments, node);
|
|
34610
|
-
} else if (!this.state.inType && this.curContext() === types$
|
|
34610
|
+
} else if (!this.state.inType && this.curContext() === types$18.brace) {
|
|
34611
34611
|
this.reScan_lt_gt();
|
|
34612
34612
|
}
|
|
34613
34613
|
|
|
@@ -35461,7 +35461,7 @@ var typescript$4 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
35461
35461
|
|
|
35462
35462
|
const currentContext = context[context.length - 1];
|
|
35463
35463
|
|
|
35464
|
-
if (currentContext === types$
|
|
35464
|
+
if (currentContext === types$18.j_oTag || currentContext === types$18.j_expr) {
|
|
35465
35465
|
context.pop();
|
|
35466
35466
|
}
|
|
35467
35467
|
}
|
|
@@ -36645,7 +36645,7 @@ function validatePlugins$1(pluginsMap) {
|
|
|
36645
36645
|
|
|
36646
36646
|
var mixinPlugins$1 = {
|
|
36647
36647
|
estree: estree$1,
|
|
36648
|
-
jsx: jsx$
|
|
36648
|
+
jsx: jsx$4,
|
|
36649
36649
|
flow: flow$1,
|
|
36650
36650
|
typescript: typescript$4,
|
|
36651
36651
|
v8intrinsic: v8intrinsic$1,
|
|
@@ -56264,9 +56264,9 @@ var fullstore$3 = (value) => {
|
|
|
56264
56264
|
};
|
|
56265
56265
|
};
|
|
56266
56266
|
|
|
56267
|
-
var types$
|
|
56267
|
+
var types$17 = {};
|
|
56268
56268
|
|
|
56269
|
-
types$
|
|
56269
|
+
types$17.TYPES = {
|
|
56270
56270
|
TOKEN: 'Token',
|
|
56271
56271
|
NEWLINE: 'Newline',
|
|
56272
56272
|
LINEBREAK: 'Linebreak',
|
|
@@ -56286,7 +56286,7 @@ var arrowFunctionExpression$3 = {};
|
|
|
56286
56286
|
|
|
56287
56287
|
var is$4 = {};
|
|
56288
56288
|
|
|
56289
|
-
const {types: types$
|
|
56289
|
+
const {types: types$16} = bundle$1;
|
|
56290
56290
|
const {
|
|
56291
56291
|
isStringLiteral: isStringLiteral$a,
|
|
56292
56292
|
isIdentifier: isIdentifier$h,
|
|
@@ -56298,7 +56298,7 @@ const {
|
|
|
56298
56298
|
isArrayExpression: isArrayExpression$9,
|
|
56299
56299
|
isObjectExpression: isObjectExpression$8,
|
|
56300
56300
|
isLabeledStatement: isLabeledStatement$2,
|
|
56301
|
-
} = types$
|
|
56301
|
+
} = types$16;
|
|
56302
56302
|
|
|
56303
56303
|
const isParentProgram$1 = (path) => path.parentPath?.isProgram();
|
|
56304
56304
|
const isParentBlock$3 = (path) => path.parentPath.isBlockStatement();
|
|
@@ -56602,7 +56602,7 @@ commentsPrinter.printTrailingComments = (path, printer, semantics, {currentTrave
|
|
|
56602
56602
|
}
|
|
56603
56603
|
};
|
|
56604
56604
|
|
|
56605
|
-
const {types: types$
|
|
56605
|
+
const {types: types$15} = bundle$1;
|
|
56606
56606
|
const {
|
|
56607
56607
|
hasTrailingComment: hasTrailingComment$5,
|
|
56608
56608
|
satisfy: satisfy$3,
|
|
@@ -56628,7 +56628,7 @@ const {
|
|
|
56628
56628
|
isBinaryExpression: isBinaryExpression$2,
|
|
56629
56629
|
isClassMethod: isClassMethod$2,
|
|
56630
56630
|
isDecorator: isDecorator$2,
|
|
56631
|
-
} = types$
|
|
56631
|
+
} = types$15;
|
|
56632
56632
|
|
|
56633
56633
|
const isProperty$1 = satisfy$3([
|
|
56634
56634
|
isObjectProperty$3,
|
|
@@ -56880,7 +56880,7 @@ function build(path) {
|
|
|
56880
56880
|
return prop;
|
|
56881
56881
|
}
|
|
56882
56882
|
|
|
56883
|
-
const {types: types$
|
|
56883
|
+
const {types: types$14} = bundle$1;
|
|
56884
56884
|
const {chain: chain$3} = chain$4;
|
|
56885
56885
|
const {satisfy: satisfy$2} = is$4;
|
|
56886
56886
|
|
|
@@ -56889,7 +56889,7 @@ const {
|
|
|
56889
56889
|
isIfStatement: isIfStatement$2,
|
|
56890
56890
|
isCallExpression: isCallExpression$b,
|
|
56891
56891
|
isIdentifier: isIdentifier$g,
|
|
56892
|
-
} = types$
|
|
56892
|
+
} = types$14;
|
|
56893
56893
|
|
|
56894
56894
|
const isArgOfCall = (path) => path.parentPath?.isCallExpression() && path.parentPath.get('arguments.0') === path;
|
|
56895
56895
|
const isCall$1 = (a) => a.type === 'CallExpression';
|
|
@@ -56962,7 +56962,7 @@ const isIfUp = (path) => {
|
|
|
56962
56962
|
return is;
|
|
56963
56963
|
};
|
|
56964
56964
|
|
|
56965
|
-
const {types: types$
|
|
56965
|
+
const {types: types$13} = bundle$1;
|
|
56966
56966
|
|
|
56967
56967
|
const {
|
|
56968
56968
|
isLast: isLast$c,
|
|
@@ -56982,7 +56982,7 @@ const {
|
|
|
56982
56982
|
isMemberExpression: isMemberExpression$a,
|
|
56983
56983
|
isExpressionStatement: isExpressionStatement$7,
|
|
56984
56984
|
isCallExpression: isCallExpression$a,
|
|
56985
|
-
} = types$
|
|
56985
|
+
} = types$13;
|
|
56986
56986
|
|
|
56987
56987
|
const hasBody$1 = (path) => {
|
|
56988
56988
|
if (path.isTSModuleDeclaration())
|
|
@@ -57341,7 +57341,7 @@ arrowFunctionExpression$3.ArrowFunctionExpression = maybeParens$d((path, printer
|
|
|
57341
57341
|
|
|
57342
57342
|
var functionDeclaration$1 = {};
|
|
57343
57343
|
|
|
57344
|
-
const {types: types$
|
|
57344
|
+
const {types: types$12} = bundle$1;
|
|
57345
57345
|
const {markAfter: markAfter$a} = mark;
|
|
57346
57346
|
const {isNext: isNext$m, isNextParent: isNextParent$4} = is$4;
|
|
57347
57347
|
const {printParams: printParams$b} = params;
|
|
@@ -57357,7 +57357,7 @@ const {
|
|
|
57357
57357
|
isExpressionStatement: isExpressionStatement$6,
|
|
57358
57358
|
isFunctionDeclaration: isFunctionDeclaration$3,
|
|
57359
57359
|
isExportDefaultDeclaration: isExportDefaultDeclaration$1,
|
|
57360
|
-
} = types$
|
|
57360
|
+
} = types$12;
|
|
57361
57361
|
|
|
57362
57362
|
const isInsideNamedExport$1 = ({parentPath}) => isExportNamedDeclaration$4(parentPath);
|
|
57363
57363
|
|
|
@@ -57862,7 +57862,7 @@ maybeDeclare$6.maybeDeclare = (visit) => (path, printer, semantics) => {
|
|
|
57862
57862
|
visit(path, printer, semantics);
|
|
57863
57863
|
};
|
|
57864
57864
|
|
|
57865
|
-
const {types: types$
|
|
57865
|
+
const {types: types$11} = bundle$1;
|
|
57866
57866
|
|
|
57867
57867
|
const {isNext: isNext$j} = is$4;
|
|
57868
57868
|
const {markAfter: markAfter$9} = mark;
|
|
@@ -57878,7 +57878,7 @@ const isInsideTSModuleBlock = (path) => {
|
|
|
57878
57878
|
const {
|
|
57879
57879
|
isFunction: isFunction$7,
|
|
57880
57880
|
isTSModuleBlock: isTSModuleBlock$3,
|
|
57881
|
-
} = types$
|
|
57881
|
+
} = types$11;
|
|
57882
57882
|
|
|
57883
57883
|
const isInsideExport = ({parentPath}) => parentPath.isExportDeclaration();
|
|
57884
57884
|
const isFunctionLike = (path) => isFunction$7(path.parentPath.parentPath);
|
|
@@ -58043,14 +58043,14 @@ function tooLong$1(args) {
|
|
|
58043
58043
|
|
|
58044
58044
|
var newExpression$1 = {};
|
|
58045
58045
|
|
|
58046
|
-
const {types: types
|
|
58046
|
+
const {types: types$10} = bundle$1;
|
|
58047
58047
|
const {exists: exists$b} = is$4;
|
|
58048
58048
|
const {isMarkedAfter: isMarkedAfter$2} = mark;
|
|
58049
58049
|
|
|
58050
58050
|
const {
|
|
58051
58051
|
isExpressionStatement: isExpressionStatement$5,
|
|
58052
58052
|
isMemberExpression: isMemberExpression$9,
|
|
58053
|
-
} = types
|
|
58053
|
+
} = types$10;
|
|
58054
58054
|
|
|
58055
58055
|
const isInsideExpressionStatement = ({parentPath}) => isExpressionStatement$5(parentPath);
|
|
58056
58056
|
const notFirst = ({parentPath}) => exists$b(parentPath.getPrevSibling());
|
|
@@ -58129,8 +58129,8 @@ var objectExpression$3 = {};
|
|
|
58129
58129
|
|
|
58130
58130
|
var isInsideTuple$1 = {};
|
|
58131
58131
|
|
|
58132
|
-
const {types: types
|
|
58133
|
-
const {isArrayExpression: isArrayExpression$8} = types
|
|
58132
|
+
const {types: types$$} = bundle$1;
|
|
58133
|
+
const {isArrayExpression: isArrayExpression$8} = types$$;
|
|
58134
58134
|
|
|
58135
58135
|
const TYPES$4 = [
|
|
58136
58136
|
'NullLiteral',
|
|
@@ -58154,12 +58154,12 @@ isInsideTuple$1.isInsideTuple = (path) => {
|
|
|
58154
58154
|
|
|
58155
58155
|
var isThirdObjectInsideArray$1 = {};
|
|
58156
58156
|
|
|
58157
|
-
const {types: types$
|
|
58157
|
+
const {types: types$_} = bundle$1;
|
|
58158
58158
|
const {
|
|
58159
58159
|
isArrayExpression: isArrayExpression$7,
|
|
58160
58160
|
isCallExpression: isCallExpression$9,
|
|
58161
58161
|
isIdentifier: isIdentifier$f,
|
|
58162
|
-
} = types$
|
|
58162
|
+
} = types$_;
|
|
58163
58163
|
|
|
58164
58164
|
isThirdObjectInsideArray$1.isThirdObjectInsideArray = ({parentPath}) => {
|
|
58165
58165
|
if (!isArrayExpression$7(parentPath))
|
|
@@ -58170,7 +58170,7 @@ isThirdObjectInsideArray$1.isThirdObjectInsideArray = ({parentPath}) => {
|
|
|
58170
58170
|
return isCallExpression$9(second) && !!isIdentifier$f(second);
|
|
58171
58171
|
};
|
|
58172
58172
|
|
|
58173
|
-
const {types: types$
|
|
58173
|
+
const {types: types$Z} = bundle$1;
|
|
58174
58174
|
const {
|
|
58175
58175
|
isCoupleLines: isCoupleLines$7,
|
|
58176
58176
|
isForOf: isForOf$3,
|
|
@@ -58190,7 +58190,7 @@ const {isThirdObjectInsideArray} = isThirdObjectInsideArray$1;
|
|
|
58190
58190
|
const {
|
|
58191
58191
|
isStringLiteral: isStringLiteral$9,
|
|
58192
58192
|
isArrayExpression: isArrayExpression$6,
|
|
58193
|
-
} = types$
|
|
58193
|
+
} = types$Z;
|
|
58194
58194
|
|
|
58195
58195
|
const isBodyOfArrow = (path) => path.parentPath.node.body === path.node;
|
|
58196
58196
|
const isLogical = (path) => path.get('argument').isLogicalExpression();
|
|
@@ -58356,12 +58356,12 @@ var objectProperty$4 = {};
|
|
|
58356
58356
|
|
|
58357
58357
|
var concatenate$1 = {};
|
|
58358
58358
|
|
|
58359
|
-
const {types: types$
|
|
58359
|
+
const {types: types$Y} = bundle$1;
|
|
58360
58360
|
const {
|
|
58361
58361
|
isStringLiteral: isStringLiteral$8,
|
|
58362
58362
|
isTemplateLiteral: isTemplateLiteral$4,
|
|
58363
58363
|
isBinaryExpression: isBinaryExpression$1,
|
|
58364
|
-
} = types$
|
|
58364
|
+
} = types$Y;
|
|
58365
58365
|
|
|
58366
58366
|
const isStringLike = (a) => {
|
|
58367
58367
|
if (isStringLiteral$8(a))
|
|
@@ -58408,11 +58408,11 @@ concatenate$1.concatenate = (path, {print, indent}) => {
|
|
|
58408
58408
|
indent.dec();
|
|
58409
58409
|
};
|
|
58410
58410
|
|
|
58411
|
-
const {types: types$
|
|
58411
|
+
const {types: types$X} = bundle$1;
|
|
58412
58412
|
const {isConcatenation: isConcatenation$2} = concatenate$1;
|
|
58413
58413
|
const {isOneLine} = objectExpression$3;
|
|
58414
58414
|
const {printKey: printKey$4} = printKey$7;
|
|
58415
|
-
const {isTSImportType: isTSImportType$1} = types$
|
|
58415
|
+
const {isTSImportType: isTSImportType$1} = types$X;
|
|
58416
58416
|
const isInsideTSImportType = ({parentPath}) => isTSImportType$1(parentPath.parentPath);
|
|
58417
58417
|
|
|
58418
58418
|
objectProperty$4.ObjectProperty = (path, printer, semantics) => {
|
|
@@ -58466,11 +58466,11 @@ moreThenMaxPropertiesInOneLine$1.moreThenMaxPropertiesInOneLine = (path, {maxPro
|
|
|
58466
58466
|
|
|
58467
58467
|
var maybeTypeAnnotation$4 = {};
|
|
58468
58468
|
|
|
58469
|
-
const {types: types$
|
|
58469
|
+
const {types: types$W} = bundle$1;
|
|
58470
58470
|
const {
|
|
58471
58471
|
isMemberExpression: isMemberExpression$8,
|
|
58472
58472
|
isSequenceExpression: isSequenceExpression$2,
|
|
58473
|
-
} = types$
|
|
58473
|
+
} = types$W;
|
|
58474
58474
|
|
|
58475
58475
|
maybeTypeAnnotation$4.maybePrintTypeAnnotation = maybePrintTypeAnnotation$3;
|
|
58476
58476
|
|
|
@@ -58501,11 +58501,11 @@ function maybePrintTypeAnnotation$3(path, printer) {
|
|
|
58501
58501
|
|
|
58502
58502
|
var moreThenMaxPropertiesLengthInOneLine$1 = {};
|
|
58503
58503
|
|
|
58504
|
-
const {types: types$
|
|
58504
|
+
const {types: types$V} = bundle$1;
|
|
58505
58505
|
const {
|
|
58506
58506
|
isAssignmentPattern: isAssignmentPattern$2,
|
|
58507
58507
|
isIdentifier: isIdentifier$e,
|
|
58508
|
-
} = types$
|
|
58508
|
+
} = types$V;
|
|
58509
58509
|
|
|
58510
58510
|
function getLength(left, right) {
|
|
58511
58511
|
if (isIdentifier$e(left) && isIdentifier$e(right))
|
|
@@ -58542,7 +58542,7 @@ moreThenMaxPropertiesLengthInOneLine$1.moreThenMaxPropertiesLengthInOneLine = (p
|
|
|
58542
58542
|
return false;
|
|
58543
58543
|
};
|
|
58544
58544
|
|
|
58545
|
-
const {types: types$
|
|
58545
|
+
const {types: types$U} = bundle$1;
|
|
58546
58546
|
const {wrongShorthand} = wrongShortand;
|
|
58547
58547
|
|
|
58548
58548
|
const {
|
|
@@ -58566,7 +58566,7 @@ const {
|
|
|
58566
58566
|
isObjectPattern: isObjectPattern$3,
|
|
58567
58567
|
isForOfStatement: isForOfStatement$1,
|
|
58568
58568
|
isVariableDeclaration: isVariableDeclaration$5,
|
|
58569
|
-
} = types$
|
|
58569
|
+
} = types$U;
|
|
58570
58570
|
|
|
58571
58571
|
const isInsideFn = (path) => {
|
|
58572
58572
|
if (isFunction$6(path.parentPath))
|
|
@@ -58934,9 +58934,9 @@ maybeParensCondition.condition = (path, printer, semantics) => {
|
|
|
58934
58934
|
|
|
58935
58935
|
var assignmentExpressionComments = {};
|
|
58936
58936
|
|
|
58937
|
-
const {types: types$
|
|
58937
|
+
const {types: types$T} = bundle$1;
|
|
58938
58938
|
const {hasLeadingComment: hasLeadingComment$1} = is$4;
|
|
58939
|
-
const {isReturnStatement: isReturnStatement$3} = types$
|
|
58939
|
+
const {isReturnStatement: isReturnStatement$3} = types$T;
|
|
58940
58940
|
|
|
58941
58941
|
assignmentExpressionComments.printLeadingCommentLine = (path, printer, semantics, {printComment, isLast}) => {
|
|
58942
58942
|
const {parentPath} = path;
|
|
@@ -58994,11 +58994,11 @@ assignmentExpressionComments.maybeInsideReturnWithCommentEnd = (path, {print, in
|
|
|
58994
58994
|
|
|
58995
58995
|
var printSeparator = {};
|
|
58996
58996
|
|
|
58997
|
-
const {types: types$
|
|
58997
|
+
const {types: types$S} = bundle$1;
|
|
58998
58998
|
const {
|
|
58999
58999
|
isAssignmentExpression: isAssignmentExpression$2,
|
|
59000
59000
|
isExpressionStatement: isExpressionStatement$4,
|
|
59001
|
-
} = types$
|
|
59001
|
+
} = types$S;
|
|
59002
59002
|
|
|
59003
59003
|
printSeparator.printSeparator = (path, {print}) => {
|
|
59004
59004
|
if (isMultiline(path))
|
|
@@ -59071,11 +59071,11 @@ var operate = {};
|
|
|
59071
59071
|
|
|
59072
59072
|
var getBinding$3 = {};
|
|
59073
59073
|
|
|
59074
|
-
const {types: types$
|
|
59074
|
+
const {types: types$R} = bundle$1;
|
|
59075
59075
|
const {
|
|
59076
59076
|
isIdentifier: isIdentifier$c,
|
|
59077
59077
|
isMemberExpression: isMemberExpression$7,
|
|
59078
|
-
} = types$
|
|
59078
|
+
} = types$R;
|
|
59079
59079
|
|
|
59080
59080
|
const isString$e = (a) => typeof a === 'string';
|
|
59081
59081
|
|
|
@@ -59102,13 +59102,13 @@ const parseName$1 = (node) => {
|
|
|
59102
59102
|
|
|
59103
59103
|
var isSimple$2 = {};
|
|
59104
59104
|
|
|
59105
|
-
const {types: types$
|
|
59105
|
+
const {types: types$Q} = bundle$1;
|
|
59106
59106
|
const {
|
|
59107
59107
|
isOptionalMemberExpression: isOptionalMemberExpression$2,
|
|
59108
59108
|
isMemberExpression: isMemberExpression$6,
|
|
59109
59109
|
isIdentifier: isIdentifier$b,
|
|
59110
59110
|
isLiteral: isLiteral$4,
|
|
59111
|
-
} = types$
|
|
59111
|
+
} = types$Q;
|
|
59112
59112
|
|
|
59113
59113
|
isSimple$2.isSimple = (a) => {
|
|
59114
59114
|
if (isLiteral$4(a))
|
|
@@ -59125,7 +59125,7 @@ isSimple$2.isSimple = (a) => {
|
|
|
59125
59125
|
|
|
59126
59126
|
var extract$6 = {};
|
|
59127
59127
|
|
|
59128
|
-
const {types: types$
|
|
59128
|
+
const {types: types$P} = bundle$1;
|
|
59129
59129
|
const {
|
|
59130
59130
|
isArrayExpression: isArrayExpression$5,
|
|
59131
59131
|
isLiteral: isLiteral$3,
|
|
@@ -59140,7 +59140,7 @@ const {
|
|
|
59140
59140
|
isJSXIdentifier: isJSXIdentifier$3,
|
|
59141
59141
|
isTSTypeReference: isTSTypeReference$3,
|
|
59142
59142
|
isTSTypeParameter: isTSTypeParameter$1,
|
|
59143
|
-
} = types$
|
|
59143
|
+
} = types$P;
|
|
59144
59144
|
|
|
59145
59145
|
extract$6.extract = extract$5;
|
|
59146
59146
|
|
|
@@ -59557,13 +59557,13 @@ var properties = {};
|
|
|
59557
59557
|
|
|
59558
59558
|
var traverseProperties$4 = {};
|
|
59559
59559
|
|
|
59560
|
-
const {traverse: traverse$a, types: types$
|
|
59560
|
+
const {traverse: traverse$a, types: types$O} = bundle$1;
|
|
59561
59561
|
const {extract: extract$3} = extract$6;
|
|
59562
59562
|
|
|
59563
59563
|
const {
|
|
59564
59564
|
isCallExpression: isCallExpression$8,
|
|
59565
59565
|
isObjectExpression: isObjectExpression$6,
|
|
59566
|
-
} = types$
|
|
59566
|
+
} = types$O;
|
|
59567
59567
|
|
|
59568
59568
|
const nodeOrPath = (path) => path.node || path;
|
|
59569
59569
|
|
|
@@ -59703,13 +59703,13 @@ var replaceWithMultiple$3 = {};
|
|
|
59703
59703
|
|
|
59704
59704
|
var maybeBody$2 = {};
|
|
59705
59705
|
|
|
59706
|
-
const {types: types$
|
|
59706
|
+
const {types: types$N} = bundle$1;
|
|
59707
59707
|
const {
|
|
59708
59708
|
isStatement: isStatement$8,
|
|
59709
59709
|
isBlockStatement: isBlockStatement$6,
|
|
59710
59710
|
blockStatement: blockStatement$4,
|
|
59711
59711
|
expressionStatement: expressionStatement$8,
|
|
59712
|
-
} = types$
|
|
59712
|
+
} = types$N;
|
|
59713
59713
|
|
|
59714
59714
|
maybeBody$2.maybeBody = (path, node) => {
|
|
59715
59715
|
const {parentPath} = path;
|
|
@@ -59730,12 +59730,12 @@ maybeBody$2.maybeBody = (path, node) => {
|
|
|
59730
59730
|
|
|
59731
59731
|
var toExpression$4 = {};
|
|
59732
59732
|
|
|
59733
|
-
const {types: types$
|
|
59733
|
+
const {types: types$M} = bundle$1;
|
|
59734
59734
|
const {
|
|
59735
59735
|
isExpression: isExpression$4,
|
|
59736
59736
|
toStatement: toStatement$1,
|
|
59737
59737
|
expressionStatement: expressionStatement$7,
|
|
59738
|
-
} = types$
|
|
59738
|
+
} = types$M;
|
|
59739
59739
|
|
|
59740
59740
|
toExpression$4.toExpression = (el) => {
|
|
59741
59741
|
const {type} = el;
|
|
@@ -59856,7 +59856,7 @@ replaceWith$8.replaceWith = replaceWith$6;
|
|
|
59856
59856
|
replaceWith$8.replaceWithMultiple = replaceWithMultiple$2;
|
|
59857
59857
|
replaceWith$8.toExpression = toExpression$2;
|
|
59858
59858
|
|
|
59859
|
-
const {types: types$
|
|
59859
|
+
const {types: types$L} = bundle$1;
|
|
59860
59860
|
|
|
59861
59861
|
const {getBinding: getBinding$1, getBindingPath} = getBinding$3;
|
|
59862
59862
|
const {isSimple: isSimple$1} = isSimple$2;
|
|
@@ -59889,7 +59889,7 @@ const {
|
|
|
59889
59889
|
isExportDeclaration: isExportDeclaration$5,
|
|
59890
59890
|
isStatement: isStatement$7,
|
|
59891
59891
|
expressionStatement: expressionStatement$6,
|
|
59892
|
-
} = types$
|
|
59892
|
+
} = types$L;
|
|
59893
59893
|
|
|
59894
59894
|
operate.getBinding = getBinding$1;
|
|
59895
59895
|
operate.getBindingPath = getBindingPath;
|
|
@@ -59975,7 +59975,7 @@ operate.isESM = (path) => {
|
|
|
59975
59975
|
};
|
|
59976
59976
|
|
|
59977
59977
|
const {isSimple} = operate;
|
|
59978
|
-
const {types: types$
|
|
59978
|
+
const {types: types$K} = bundle$1;
|
|
59979
59979
|
|
|
59980
59980
|
const {
|
|
59981
59981
|
isStringAndMember,
|
|
@@ -59998,7 +59998,7 @@ const {
|
|
|
59998
59998
|
isStringLiteral: isStringLiteral$7,
|
|
59999
59999
|
isSpreadElement: isSpreadElement$2,
|
|
60000
60000
|
isIdentifier: isIdentifier$9,
|
|
60001
|
-
} = types$
|
|
60001
|
+
} = types$K;
|
|
60002
60002
|
|
|
60003
60003
|
const {round: round$1} = Math;
|
|
60004
60004
|
|
|
@@ -60289,13 +60289,13 @@ newline.isCurrentNewLine = (path) => {
|
|
|
60289
60289
|
|
|
60290
60290
|
var indent = {};
|
|
60291
60291
|
|
|
60292
|
-
const {types: types$
|
|
60292
|
+
const {types: types$J} = bundle$1;
|
|
60293
60293
|
const {isIndented} = is$4;
|
|
60294
60294
|
|
|
60295
60295
|
const {
|
|
60296
60296
|
isStringLiteral: isStringLiteral$6,
|
|
60297
60297
|
isArrayExpression: isArrayExpression$3,
|
|
60298
|
-
} = types$
|
|
60298
|
+
} = types$J;
|
|
60299
60299
|
|
|
60300
60300
|
const isInsideArray$1 = (path) => path.parentPath.isArrayExpression();
|
|
60301
60301
|
|
|
@@ -60367,7 +60367,7 @@ isObjectAfterSimple$1.isNextSimple = (a) => {
|
|
|
60367
60367
|
return SIMPLE_TYPES.includes(type);
|
|
60368
60368
|
};
|
|
60369
60369
|
|
|
60370
|
-
const {types: types$
|
|
60370
|
+
const {types: types$I} = bundle$1;
|
|
60371
60371
|
const {
|
|
60372
60372
|
isCoupleLines: isCoupleLines$4,
|
|
60373
60373
|
isStringAndIdentifier,
|
|
@@ -60402,7 +60402,7 @@ const {
|
|
|
60402
60402
|
isFunction: isFunction$5,
|
|
60403
60403
|
isCallExpression: isCallExpression$6,
|
|
60404
60404
|
isObjectProperty: isObjectProperty$1,
|
|
60405
|
-
} = types$
|
|
60405
|
+
} = types$I;
|
|
60406
60406
|
|
|
60407
60407
|
const isNextString = (path) => isStringLiteral$5(path.getNextSibling());
|
|
60408
60408
|
const isPrevString = (path) => isStringLiteral$5(path.getPrevSibling());
|
|
@@ -60822,12 +60822,12 @@ var logicalExpression$1 = {};
|
|
|
60822
60822
|
|
|
60823
60823
|
var chain$2 = {};
|
|
60824
60824
|
|
|
60825
|
-
const {types: types$
|
|
60825
|
+
const {types: types$H} = bundle$1;
|
|
60826
60826
|
const {
|
|
60827
60827
|
isLogicalExpression: isLogicalExpression$1,
|
|
60828
60828
|
isReturnStatement: isReturnStatement$2,
|
|
60829
60829
|
isVariableDeclarator: isVariableDeclarator$2,
|
|
60830
|
-
} = types$
|
|
60830
|
+
} = types$H;
|
|
60831
60831
|
|
|
60832
60832
|
chain$2.isRootOk = (path) => {
|
|
60833
60833
|
return isReturnStatement$2(path) || isVariableDeclarator$2(path);
|
|
@@ -60973,12 +60973,12 @@ function createImportExpression$1(path, printer, semantics, {source = 'source'}
|
|
|
60973
60973
|
|
|
60974
60974
|
var parenthesizedExpression$3 = {};
|
|
60975
60975
|
|
|
60976
|
-
const {types: types$
|
|
60977
|
-
const {isJSXElement: isJSXElement$
|
|
60976
|
+
const {types: types$G} = bundle$1;
|
|
60977
|
+
const {isJSXElement: isJSXElement$5} = types$G;
|
|
60978
60978
|
|
|
60979
60979
|
const condition$2 = (path) => {
|
|
60980
60980
|
const {expression} = path.node;
|
|
60981
|
-
return !isJSXElement$
|
|
60981
|
+
return !isJSXElement$5(expression);
|
|
60982
60982
|
};
|
|
60983
60983
|
|
|
60984
60984
|
parenthesizedExpression$3.ParenthesizedExpression = {
|
|
@@ -61075,12 +61075,12 @@ var expressionStatement$5 = {exports: {}};
|
|
|
61075
61075
|
|
|
61076
61076
|
var isInsideAssignNextAssignFunction = {};
|
|
61077
61077
|
|
|
61078
|
-
const {types: types$
|
|
61078
|
+
const {types: types$F} = bundle$1;
|
|
61079
61079
|
const {
|
|
61080
61080
|
isExpressionStatement: isExpressionStatement$3,
|
|
61081
61081
|
isFunction: isFunction$4,
|
|
61082
61082
|
isAssignmentExpression: isAssignmentExpression$1,
|
|
61083
|
-
} = types$
|
|
61083
|
+
} = types$F;
|
|
61084
61084
|
|
|
61085
61085
|
isInsideAssignNextAssignFunction.isInsideAssignNextAssignFunction = (path) => {
|
|
61086
61086
|
const {expression} = path.node;
|
|
@@ -61109,14 +61109,14 @@ isInsideAssignNextAssignFunction.isInsideAssignNextAssignFunction = (path) => {
|
|
|
61109
61109
|
|
|
61110
61110
|
var expressionStatementComments = {};
|
|
61111
61111
|
|
|
61112
|
-
const {types: types$
|
|
61112
|
+
const {types: types$E} = bundle$1;
|
|
61113
61113
|
const {hasTrailingComment: hasTrailingComment$1} = is$4;
|
|
61114
61114
|
|
|
61115
61115
|
const {
|
|
61116
61116
|
isBlockStatement: isBlockStatement$5,
|
|
61117
61117
|
isProgram: isProgram$5,
|
|
61118
61118
|
isIfStatement: isIfStatement$1,
|
|
61119
|
-
} = types$
|
|
61119
|
+
} = types$E;
|
|
61120
61120
|
|
|
61121
61121
|
expressionStatementComments.printLeadingCommentLine = (path, printer, semantics, {index, isLast, printComment}) => {
|
|
61122
61122
|
const {print, indent} = printer;
|
|
@@ -61372,7 +61372,7 @@ maybeSpaceAfterKeyword$3.maybeSpaceAfterKeyword = (path, {write}) => {
|
|
|
61372
61372
|
write(' ');
|
|
61373
61373
|
};
|
|
61374
61374
|
|
|
61375
|
-
const {types: types$
|
|
61375
|
+
const {types: types$D} = bundle$1;
|
|
61376
61376
|
const {
|
|
61377
61377
|
isNext: isNext$i,
|
|
61378
61378
|
isCoupleLines: isCoupleLines$3,
|
|
@@ -61388,7 +61388,7 @@ const {isConcatenation} = concatenate$1;
|
|
|
61388
61388
|
const {parseLeadingComments: parseLeadingComments$2} = comment;
|
|
61389
61389
|
const {maybeDeclare: maybeDeclare$4} = maybeDeclare$6;
|
|
61390
61390
|
|
|
61391
|
-
const {isExportDeclaration: isExportDeclaration$4} = types$
|
|
61391
|
+
const {isExportDeclaration: isExportDeclaration$4} = types$D;
|
|
61392
61392
|
|
|
61393
61393
|
const isParentTSModuleBlock = (path) => path.parentPath.isTSModuleBlock();
|
|
61394
61394
|
const isParentBlock$2 = (path) => /Program|BlockStatement|Export|LabeledStatement/.test(path.parentPath.type);
|
|
@@ -61588,7 +61588,7 @@ const isNextAssign = (path) => {
|
|
|
61588
61588
|
|
|
61589
61589
|
var ifStatement$1 = {};
|
|
61590
61590
|
|
|
61591
|
-
const {types: types$
|
|
61591
|
+
const {types: types$C} = bundle$1;
|
|
61592
61592
|
|
|
61593
61593
|
const {markAfter: markAfter$8} = mark;
|
|
61594
61594
|
const {
|
|
@@ -61601,7 +61601,7 @@ const {
|
|
|
61601
61601
|
isBlockStatement: isBlockStatement$4,
|
|
61602
61602
|
isFunctionDeclaration: isFunctionDeclaration$2,
|
|
61603
61603
|
isStatement: isStatement$6,
|
|
61604
|
-
} = types$
|
|
61604
|
+
} = types$C;
|
|
61605
61605
|
|
|
61606
61606
|
const isTopLevel = ({parentPath}) => parentPath.parentPath.isProgram();
|
|
61607
61607
|
const isEmptyConsequent = (path) => path.get('consequent').isEmptyStatement();
|
|
@@ -61798,14 +61798,14 @@ getDirectives$2.getDirectives = (path) => !path.node.directives ? [] : path.get(
|
|
|
61798
61798
|
|
|
61799
61799
|
var isCallInsideChain$1 = {};
|
|
61800
61800
|
|
|
61801
|
-
const {types: types$
|
|
61801
|
+
const {types: types$B} = bundle$1;
|
|
61802
61802
|
const {isLooksLikeChain} = isLooksLikeChain$4;
|
|
61803
61803
|
const {
|
|
61804
61804
|
isReturnStatement: isReturnStatement$1,
|
|
61805
61805
|
isExpressionStatement: isExpressionStatement$2,
|
|
61806
61806
|
isMemberExpression: isMemberExpression$4,
|
|
61807
61807
|
isCallExpression: isCallExpression$5,
|
|
61808
|
-
} = types$
|
|
61808
|
+
} = types$B;
|
|
61809
61809
|
|
|
61810
61810
|
isCallInsideChain$1.isCallInsideChain = (path) => {
|
|
61811
61811
|
if (!isCallExpression$5(path.parentPath.parentPath))
|
|
@@ -61845,7 +61845,7 @@ function isTopCall(path) {
|
|
|
61845
61845
|
return isExpressionStatement$2(parentPath);
|
|
61846
61846
|
}
|
|
61847
61847
|
|
|
61848
|
-
const {types: types$
|
|
61848
|
+
const {types: types$A} = bundle$1;
|
|
61849
61849
|
const {
|
|
61850
61850
|
isNext: isNext$f,
|
|
61851
61851
|
isParentProgram,
|
|
@@ -61868,7 +61868,7 @@ const {
|
|
|
61868
61868
|
isDoWhileStatement: isDoWhileStatement$1,
|
|
61869
61869
|
isBlockStatement: isBlockStatement$3,
|
|
61870
61870
|
isArrayExpression: isArrayExpression$2,
|
|
61871
|
-
} = types$
|
|
61871
|
+
} = types$A;
|
|
61872
61872
|
|
|
61873
61873
|
const isFirstStatement = (path) => path.node.body[0];
|
|
61874
61874
|
const isFirstDirective = (path) => path.node.directives?.[0];
|
|
@@ -62073,7 +62073,7 @@ maybeSpaceAfterKeyword$1.maybeSpaceAfterKeyword = (path, {print}, semantics) =>
|
|
|
62073
62073
|
print(' ');
|
|
62074
62074
|
};
|
|
62075
62075
|
|
|
62076
|
-
const {types: types$
|
|
62076
|
+
const {types: types$z} = bundle$1;
|
|
62077
62077
|
|
|
62078
62078
|
const {isInsideLabel: isInsideLabel$3} = is$4;
|
|
62079
62079
|
const {
|
|
@@ -62085,7 +62085,7 @@ const {
|
|
|
62085
62085
|
const {hasPrevNewline: hasPrevNewline$1} = mark;
|
|
62086
62086
|
const {maybeSpaceAfterKeyword} = maybeSpaceAfterKeyword$1;
|
|
62087
62087
|
|
|
62088
|
-
const {isJSXElement: isJSXElement$
|
|
62088
|
+
const {isJSXElement: isJSXElement$4} = types$z;
|
|
62089
62089
|
const isBodyLength = ({parentPath}) => parentPath.node?.body?.length > 2;
|
|
62090
62090
|
|
|
62091
62091
|
const isInsideIfWithElse = ({parentPath}) => parentPath.isIfStatement() && parentPath.node.alternate;
|
|
@@ -62140,7 +62140,7 @@ function isJSXWithComment(path) {
|
|
|
62140
62140
|
|
|
62141
62141
|
const {leadingComments} = arg;
|
|
62142
62142
|
|
|
62143
|
-
return isJSXElement$
|
|
62143
|
+
return isJSXElement$4(arg) && leadingComments?.length;
|
|
62144
62144
|
}
|
|
62145
62145
|
|
|
62146
62146
|
var tryStatements = {};
|
|
@@ -62340,8 +62340,8 @@ function printAttributes(path, keyword, {write, traverse, indent}) {
|
|
|
62340
62340
|
|
|
62341
62341
|
var importDeclarationComments = {};
|
|
62342
62342
|
|
|
62343
|
-
const {types: types$
|
|
62344
|
-
const {isExportDeclaration: isExportDeclaration$2} = types$
|
|
62343
|
+
const {types: types$y} = bundle$1;
|
|
62344
|
+
const {isExportDeclaration: isExportDeclaration$2} = types$y;
|
|
62345
62345
|
|
|
62346
62346
|
importDeclarationComments.printTrailingCommentLine = (path, printer, semantics, {printComment}) => {
|
|
62347
62347
|
const {print} = printer;
|
|
@@ -62505,7 +62505,7 @@ importDeclarationExports.default;
|
|
|
62505
62505
|
|
|
62506
62506
|
var exportDeclaration = {};
|
|
62507
62507
|
|
|
62508
|
-
const {types: types$
|
|
62508
|
+
const {types: types$x} = bundle$1;
|
|
62509
62509
|
|
|
62510
62510
|
const {isParentBlock: isParentBlock$1} = is$4;
|
|
62511
62511
|
const {
|
|
@@ -62525,7 +62525,7 @@ const {
|
|
|
62525
62525
|
isExportNamespaceSpecifier: isExportNamespaceSpecifier$1,
|
|
62526
62526
|
isVariableDeclaration: isVariableDeclaration$4,
|
|
62527
62527
|
isExportNamedDeclaration: isExportNamedDeclaration$3,
|
|
62528
|
-
} = types$
|
|
62528
|
+
} = types$x;
|
|
62529
62529
|
|
|
62530
62530
|
const isDeclarationNewline = (path) => isMarkedAfter(path.get('declaration'));
|
|
62531
62531
|
const isInsideNamespace$1 = (path) => path.parentPath.isTSModuleBlock();
|
|
@@ -62809,13 +62809,13 @@ forInStatement$1.ForInStatement = (path, {print, indent}) => {
|
|
|
62809
62809
|
|
|
62810
62810
|
var exportDefaultDeclaration$1 = {};
|
|
62811
62811
|
|
|
62812
|
-
const {types: types$
|
|
62812
|
+
const {types: types$w} = bundle$1;
|
|
62813
62813
|
const {isNext: isNext$9} = is$4;
|
|
62814
62814
|
|
|
62815
62815
|
const {
|
|
62816
62816
|
isVariableDeclaration: isVariableDeclaration$3,
|
|
62817
62817
|
isFunction: isFunction$3,
|
|
62818
|
-
} = types$
|
|
62818
|
+
} = types$w;
|
|
62819
62819
|
|
|
62820
62820
|
function shouldAddSemicolon(path) {
|
|
62821
62821
|
if (path.isClassDeclaration())
|
|
@@ -63339,8 +63339,8 @@ tsTypeAliasDeclaration$1.TSTypeAliasDeclaration = {
|
|
|
63339
63339
|
|
|
63340
63340
|
var tsMappedType$1 = {};
|
|
63341
63341
|
|
|
63342
|
-
const {types: types$
|
|
63343
|
-
const {isTSConditionalType: isTSConditionalType$1} = types$
|
|
63342
|
+
const {types: types$v} = bundle$1;
|
|
63343
|
+
const {isTSConditionalType: isTSConditionalType$1} = types$v;
|
|
63344
63344
|
|
|
63345
63345
|
tsMappedType$1.TSMappedType = (path, {print, indent, maybe}) => {
|
|
63346
63346
|
const {
|
|
@@ -63567,7 +63567,7 @@ tsModuleDeclaration$1.TSModuleBlock = (path, {print, traverse, indent}) => {
|
|
|
63567
63567
|
|
|
63568
63568
|
var tsInterfaceDeclaration$1 = {};
|
|
63569
63569
|
|
|
63570
|
-
const {types: types$
|
|
63570
|
+
const {types: types$u} = bundle$1;
|
|
63571
63571
|
|
|
63572
63572
|
const {isNext: isNext$5, isNextParent: isNextParent$1} = is$4;
|
|
63573
63573
|
const {maybeDeclare} = maybeDeclare$6;
|
|
@@ -63577,7 +63577,7 @@ const {
|
|
|
63577
63577
|
isTSTypeAliasDeclaration: isTSTypeAliasDeclaration$1,
|
|
63578
63578
|
isExportNamedDeclaration: isExportNamedDeclaration$2,
|
|
63579
63579
|
isTSModuleBlock: isTSModuleBlock$2,
|
|
63580
|
-
} = types$
|
|
63580
|
+
} = types$u;
|
|
63581
63581
|
|
|
63582
63582
|
const isInsideNamespace = (path) => isTSModuleBlock$2(path.parentPath.parentPath);
|
|
63583
63583
|
|
|
@@ -63619,13 +63619,13 @@ tsInterfaceDeclaration$1.TSInterfaceDeclaration = {
|
|
|
63619
63619
|
|
|
63620
63620
|
var tsAsExpression$1 = {};
|
|
63621
63621
|
|
|
63622
|
-
const {types: types$
|
|
63622
|
+
const {types: types$t} = bundle$1;
|
|
63623
63623
|
const {maybeParens: maybeParens$4} = maybeParens$e;
|
|
63624
63624
|
|
|
63625
63625
|
const {
|
|
63626
63626
|
isVariableDeclarator: isVariableDeclarator$1,
|
|
63627
63627
|
isObjectExpression: isObjectExpression$2,
|
|
63628
|
-
} = types$
|
|
63628
|
+
} = types$t;
|
|
63629
63629
|
|
|
63630
63630
|
tsAsExpression$1.TSAsExpression = maybeParens$4((path, {print, maybe}) => {
|
|
63631
63631
|
const is = isParens(path);
|
|
@@ -64356,8 +64356,8 @@ var typescript$3 = {
|
|
|
64356
64356
|
|
|
64357
64357
|
var jsxElement$1 = {};
|
|
64358
64358
|
|
|
64359
|
-
const {types: types$
|
|
64360
|
-
const {isJSXElement: isJSXElement$
|
|
64359
|
+
const {types: types$s} = bundle$1;
|
|
64360
|
+
const {isJSXElement: isJSXElement$3} = types$s;
|
|
64361
64361
|
const isInsideArrow = ({parentPath}) => parentPath.isArrowFunctionExpression();
|
|
64362
64362
|
|
|
64363
64363
|
jsxElement$1.JSXElement = {
|
|
@@ -64387,7 +64387,7 @@ jsxElement$1.JSXElement = {
|
|
|
64387
64387
|
},
|
|
64388
64388
|
after(path, {write, indent, maybe}) {
|
|
64389
64389
|
const {leadingComments} = path.node;
|
|
64390
|
-
const isJSX = isJSXElement$
|
|
64390
|
+
const isJSX = isJSXElement$3(path.parentPath.parentPath?.parentPath?.parentPath);
|
|
64391
64391
|
|
|
64392
64392
|
if (isJSX) {
|
|
64393
64393
|
write.breakline();
|
|
@@ -64580,7 +64580,7 @@ const fragments = jsxFragment$1;
|
|
|
64580
64580
|
const {JSXText: JSXText$1} = jsxText$1;
|
|
64581
64581
|
const {parseComments} = comment;
|
|
64582
64582
|
|
|
64583
|
-
var jsx$
|
|
64583
|
+
var jsx$3 = {
|
|
64584
64584
|
...fragments,
|
|
64585
64585
|
JSXElement: JSXElement$1,
|
|
64586
64586
|
JSXAttribute: JSXAttribute$1,
|
|
@@ -64623,14 +64623,14 @@ const expressions$1 = expressions$2;
|
|
|
64623
64623
|
const statements$3 = statements$4;
|
|
64624
64624
|
const literals = literals$1;
|
|
64625
64625
|
const typescript$2 = typescript$3;
|
|
64626
|
-
const jsx$
|
|
64626
|
+
const jsx$2 = jsx$3;
|
|
64627
64627
|
|
|
64628
64628
|
var visitors$2 = {
|
|
64629
64629
|
...expressions$1,
|
|
64630
64630
|
...statements$3,
|
|
64631
64631
|
...literals,
|
|
64632
64632
|
...typescript$2,
|
|
64633
|
-
...jsx$
|
|
64633
|
+
...jsx$2,
|
|
64634
64634
|
};
|
|
64635
64635
|
|
|
64636
64636
|
visitors$2.default;
|
|
@@ -64723,7 +64723,7 @@ const createIf = (getConditions) => {
|
|
|
64723
64723
|
|
|
64724
64724
|
const rendy = rendy$1;
|
|
64725
64725
|
|
|
64726
|
-
const {types: types$
|
|
64726
|
+
const {types: types$r} = bundle$1;
|
|
64727
64727
|
const maybeSatisfy = satisfy_1;
|
|
64728
64728
|
|
|
64729
64729
|
const {
|
|
@@ -64733,7 +64733,7 @@ const {
|
|
|
64733
64733
|
expressionStatement: expressionStatement$4,
|
|
64734
64734
|
program: program$2,
|
|
64735
64735
|
file: file$1,
|
|
64736
|
-
} = types$
|
|
64736
|
+
} = types$r;
|
|
64737
64737
|
|
|
64738
64738
|
const isFn$5 = (a) => typeof a === 'function';
|
|
64739
64739
|
|
|
@@ -64818,7 +64818,7 @@ function snakeCase(str) {
|
|
|
64818
64818
|
const process$1 = require$$0$3;
|
|
64819
64819
|
const toSnakeCase = justSnakeCase;
|
|
64820
64820
|
const {codeFrameColumns: codeFrameColumns$2} = bundle$1;
|
|
64821
|
-
const {TYPES: TYPES$3} = types$
|
|
64821
|
+
const {TYPES: TYPES$3} = types$17;
|
|
64822
64822
|
|
|
64823
64823
|
const {stringify: stringify$7} = JSON;
|
|
64824
64824
|
const {
|
|
@@ -65005,7 +65005,7 @@ const initSemantics = (format, semantics = {}) => ({
|
|
|
65005
65005
|
const fullstore$2 = fullstore$3;
|
|
65006
65006
|
|
|
65007
65007
|
const babelTraverse$2 = bundle$1.traverse;
|
|
65008
|
-
const {TYPES: TYPES$2} = types$
|
|
65008
|
+
const {TYPES: TYPES$2} = types$17;
|
|
65009
65009
|
const baseVisitors = visitors$2;
|
|
65010
65010
|
|
|
65011
65011
|
const {
|
|
@@ -65407,13 +65407,13 @@ json.isJSON = (source) => {
|
|
|
65407
65407
|
return false;
|
|
65408
65408
|
};
|
|
65409
65409
|
|
|
65410
|
-
const {types: types$
|
|
65410
|
+
const {types: types$q} = bundle$1;
|
|
65411
65411
|
const {isJSON} = json;
|
|
65412
65412
|
|
|
65413
65413
|
const {
|
|
65414
65414
|
isCallExpression: isCallExpression$4,
|
|
65415
65415
|
isIdentifier: isIdentifier$7,
|
|
65416
|
-
} = types$
|
|
65416
|
+
} = types$q;
|
|
65417
65417
|
|
|
65418
65418
|
json$1.maybeJSON = (ast, overrides) => {
|
|
65419
65419
|
if (isASTJSON(ast))
|
|
@@ -71074,7 +71074,7 @@ __export(lib_exports, {
|
|
|
71074
71074
|
isJSXAttribute: () => isJSXAttribute$2,
|
|
71075
71075
|
isJSXClosingElement: () => isJSXClosingElement,
|
|
71076
71076
|
isJSXClosingFragment: () => isJSXClosingFragment,
|
|
71077
|
-
isJSXElement: () => isJSXElement$
|
|
71077
|
+
isJSXElement: () => isJSXElement$2,
|
|
71078
71078
|
isJSXEmptyExpression: () => isJSXEmptyExpression,
|
|
71079
71079
|
isJSXExpressionContainer: () => isJSXExpressionContainer,
|
|
71080
71080
|
isJSXFragment: () => isJSXFragment,
|
|
@@ -72609,7 +72609,7 @@ function isJSXClosingElement(node, opts) {
|
|
|
72609
72609
|
if (node.type !== "JSXClosingElement") return false;
|
|
72610
72610
|
return opts == null || shallowEqual(node, opts);
|
|
72611
72611
|
}
|
|
72612
|
-
function isJSXElement$
|
|
72612
|
+
function isJSXElement$2(node, opts) {
|
|
72613
72613
|
if (!node) return false;
|
|
72614
72614
|
if (node.type !== "JSXElement") return false;
|
|
72615
72615
|
return opts == null || shallowEqual(node, opts);
|
|
@@ -82980,7 +82980,7 @@ var TokContext = class {
|
|
|
82980
82980
|
this.preserveSpace = !!preserveSpace;
|
|
82981
82981
|
}
|
|
82982
82982
|
};
|
|
82983
|
-
var types$
|
|
82983
|
+
var types$p = {
|
|
82984
82984
|
brace: new TokContext("{"),
|
|
82985
82985
|
j_oTag: new TokContext("<tag"),
|
|
82986
82986
|
j_cTag: new TokContext("</tag"),
|
|
@@ -84074,7 +84074,7 @@ var State$2 = class _State {
|
|
|
84074
84074
|
__publicField(this, "end", 0);
|
|
84075
84075
|
__publicField(this, "lastTokEndLoc", null);
|
|
84076
84076
|
__publicField(this, "lastTokStartLoc", null);
|
|
84077
|
-
__publicField(this, "context", [types$
|
|
84077
|
+
__publicField(this, "context", [types$p.brace]);
|
|
84078
84078
|
__publicField(this, "firstInvalidTemplateEscapePos", null);
|
|
84079
84079
|
__publicField(this, "strictErrors", /* @__PURE__ */ new Map());
|
|
84080
84080
|
__publicField(this, "tokensLength", 0);
|
|
@@ -86504,7 +86504,7 @@ var flow = (superClass) => class FlowParserMixin extends superClass {
|
|
|
86504
86504
|
return this.finishNode(node, "TypeParameterDeclaration");
|
|
86505
86505
|
}
|
|
86506
86506
|
flowInTopLevelContext(cb) {
|
|
86507
|
-
if (this.curContext() !== types$
|
|
86507
|
+
if (this.curContext() !== types$p.brace) {
|
|
86508
86508
|
const oldContext = this.state.context;
|
|
86509
86509
|
this.state.context = [oldContext[0]];
|
|
86510
86510
|
try {
|
|
@@ -86538,7 +86538,7 @@ var flow = (superClass) => class FlowParserMixin extends superClass {
|
|
|
86538
86538
|
this.state.noAnonFunctionType = oldNoAnonFunctionType;
|
|
86539
86539
|
});
|
|
86540
86540
|
this.state.inType = oldInType;
|
|
86541
|
-
if (!this.state.inType && this.curContext() === types$
|
|
86541
|
+
if (!this.state.inType && this.curContext() === types$p.brace) {
|
|
86542
86542
|
this.reScan_lt_gt();
|
|
86543
86543
|
}
|
|
86544
86544
|
this.expect(48);
|
|
@@ -87805,7 +87805,7 @@ var flow = (superClass) => class FlowParserMixin extends superClass {
|
|
|
87805
87805
|
context
|
|
87806
87806
|
} = this.state;
|
|
87807
87807
|
const currentContext = context[context.length - 1];
|
|
87808
|
-
if (currentContext === types$
|
|
87808
|
+
if (currentContext === types$p.j_oTag || currentContext === types$p.j_expr) {
|
|
87809
87809
|
context.pop();
|
|
87810
87810
|
}
|
|
87811
87811
|
}
|
|
@@ -88682,7 +88682,7 @@ function getQualifiedJSXName(object) {
|
|
|
88682
88682
|
}
|
|
88683
88683
|
throw new Error("Node had unexpected type: " + object.type);
|
|
88684
88684
|
}
|
|
88685
|
-
var jsx = (superClass) => class JSXParserMixin extends superClass {
|
|
88685
|
+
var jsx$1 = (superClass) => class JSXParserMixin extends superClass {
|
|
88686
88686
|
jsxReadToken() {
|
|
88687
88687
|
let out = "";
|
|
88688
88688
|
let chunkStart = this.state.pos;
|
|
@@ -88847,9 +88847,9 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
|
|
|
88847
88847
|
switch (this.state.type) {
|
|
88848
88848
|
case 5:
|
|
88849
88849
|
node = this.startNode();
|
|
88850
|
-
this.setContext(types$
|
|
88850
|
+
this.setContext(types$p.brace);
|
|
88851
88851
|
this.next();
|
|
88852
|
-
node = this.jsxParseExpressionContainer(node, types$
|
|
88852
|
+
node = this.jsxParseExpressionContainer(node, types$p.j_oTag);
|
|
88853
88853
|
if (node.expression.type === "JSXEmptyExpression") {
|
|
88854
88854
|
this.raise(JsxErrors.AttributeIsEmpty, node);
|
|
88855
88855
|
}
|
|
@@ -88868,7 +88868,7 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
|
|
|
88868
88868
|
jsxParseSpreadChild(node) {
|
|
88869
88869
|
this.next();
|
|
88870
88870
|
node.expression = this.parseExpression();
|
|
88871
|
-
this.setContext(types$
|
|
88871
|
+
this.setContext(types$p.j_expr);
|
|
88872
88872
|
this.state.canStartJSXElement = true;
|
|
88873
88873
|
this.expect(8);
|
|
88874
88874
|
return this.finishNode(node, "JSXSpreadChild");
|
|
@@ -88894,11 +88894,11 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
|
|
|
88894
88894
|
jsxParseAttribute() {
|
|
88895
88895
|
const node = this.startNode();
|
|
88896
88896
|
if (this.match(5)) {
|
|
88897
|
-
this.setContext(types$
|
|
88897
|
+
this.setContext(types$p.brace);
|
|
88898
88898
|
this.next();
|
|
88899
88899
|
this.expect(21);
|
|
88900
88900
|
node.argument = this.parseMaybeAssignAllowIn();
|
|
88901
|
-
this.setContext(types$
|
|
88901
|
+
this.setContext(types$p.j_oTag);
|
|
88902
88902
|
this.state.canStartJSXElement = true;
|
|
88903
88903
|
this.expect(8);
|
|
88904
88904
|
return this.finishNode(node, "JSXSpreadAttribute");
|
|
@@ -88956,12 +88956,12 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
|
|
|
88956
88956
|
break;
|
|
88957
88957
|
case 5: {
|
|
88958
88958
|
const node2 = this.startNode();
|
|
88959
|
-
this.setContext(types$
|
|
88959
|
+
this.setContext(types$p.brace);
|
|
88960
88960
|
this.next();
|
|
88961
88961
|
if (this.match(21)) {
|
|
88962
88962
|
children.push(this.jsxParseSpreadChild(node2));
|
|
88963
88963
|
} else {
|
|
88964
|
-
children.push(this.jsxParseExpressionContainer(node2, types$
|
|
88964
|
+
children.push(this.jsxParseExpressionContainer(node2, types$p.j_expr));
|
|
88965
88965
|
}
|
|
88966
88966
|
break;
|
|
88967
88967
|
}
|
|
@@ -89023,11 +89023,11 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
|
|
|
89023
89023
|
}
|
|
89024
89024
|
getTokenFromCode(code2) {
|
|
89025
89025
|
const context = this.curContext();
|
|
89026
|
-
if (context === types$
|
|
89026
|
+
if (context === types$p.j_expr) {
|
|
89027
89027
|
this.jsxReadToken();
|
|
89028
89028
|
return;
|
|
89029
89029
|
}
|
|
89030
|
-
if (context === types$
|
|
89030
|
+
if (context === types$p.j_oTag || context === types$p.j_cTag) {
|
|
89031
89031
|
if (isIdentifierStart2(code2)) {
|
|
89032
89032
|
this.jsxReadWord();
|
|
89033
89033
|
return;
|
|
@@ -89037,7 +89037,7 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
|
|
|
89037
89037
|
this.finishToken(144);
|
|
89038
89038
|
return;
|
|
89039
89039
|
}
|
|
89040
|
-
if ((code2 === 34 || code2 === 39) && context === types$
|
|
89040
|
+
if ((code2 === 34 || code2 === 39) && context === types$p.j_oTag) {
|
|
89041
89041
|
this.jsxReadString(code2);
|
|
89042
89042
|
return;
|
|
89043
89043
|
}
|
|
@@ -89055,17 +89055,17 @@ var jsx = (superClass) => class JSXParserMixin extends superClass {
|
|
|
89055
89055
|
type
|
|
89056
89056
|
} = this.state;
|
|
89057
89057
|
if (type === 56 && prevType === 143) {
|
|
89058
|
-
context.splice(-2, 2, types$
|
|
89058
|
+
context.splice(-2, 2, types$p.j_cTag);
|
|
89059
89059
|
this.state.canStartJSXElement = false;
|
|
89060
89060
|
} else if (type === 143) {
|
|
89061
|
-
context.push(types$
|
|
89061
|
+
context.push(types$p.j_oTag);
|
|
89062
89062
|
} else if (type === 144) {
|
|
89063
89063
|
const out = context[context.length - 1];
|
|
89064
|
-
if (out === types$
|
|
89064
|
+
if (out === types$p.j_oTag && prevType === 56 || out === types$p.j_cTag) {
|
|
89065
89065
|
context.pop();
|
|
89066
|
-
this.state.canStartJSXElement = context[context.length - 1] === types$
|
|
89066
|
+
this.state.canStartJSXElement = context[context.length - 1] === types$p.j_expr;
|
|
89067
89067
|
} else {
|
|
89068
|
-
this.setContext(types$
|
|
89068
|
+
this.setContext(types$p.j_expr);
|
|
89069
89069
|
this.state.canStartJSXElement = true;
|
|
89070
89070
|
}
|
|
89071
89071
|
} else {
|
|
@@ -90795,7 +90795,7 @@ var typescript$1 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
90795
90795
|
return this.finishNode(node, "TSTypeAliasDeclaration");
|
|
90796
90796
|
}
|
|
90797
90797
|
tsInTopLevelContext(cb) {
|
|
90798
|
-
if (this.curContext() !== types$
|
|
90798
|
+
if (this.curContext() !== types$p.brace) {
|
|
90799
90799
|
const oldContext = this.state.context;
|
|
90800
90800
|
this.state.context = [oldContext[0]];
|
|
90801
90801
|
try {
|
|
@@ -91113,7 +91113,7 @@ var typescript$1 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
91113
91113
|
}));
|
|
91114
91114
|
if (node.params.length === 0) {
|
|
91115
91115
|
this.raise(TSErrors.EmptyTypeArguments, node);
|
|
91116
|
-
} else if (!this.state.inType && this.curContext() === types$
|
|
91116
|
+
} else if (!this.state.inType && this.curContext() === types$p.brace) {
|
|
91117
91117
|
this.reScan_lt_gt();
|
|
91118
91118
|
}
|
|
91119
91119
|
this.expect(48);
|
|
@@ -91732,7 +91732,7 @@ var typescript$1 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
91732
91732
|
context
|
|
91733
91733
|
} = this.state;
|
|
91734
91734
|
const currentContext = context[context.length - 1];
|
|
91735
|
-
if (currentContext === types$
|
|
91735
|
+
if (currentContext === types$p.j_oTag || currentContext === types$p.j_expr) {
|
|
91736
91736
|
context.pop();
|
|
91737
91737
|
}
|
|
91738
91738
|
}
|
|
@@ -92541,7 +92541,7 @@ function validatePlugins(pluginsMap) {
|
|
|
92541
92541
|
}
|
|
92542
92542
|
var mixinPlugins = {
|
|
92543
92543
|
estree,
|
|
92544
|
-
jsx,
|
|
92544
|
+
jsx: jsx$1,
|
|
92545
92545
|
flow,
|
|
92546
92546
|
typescript: typescript$1,
|
|
92547
92547
|
v8intrinsic,
|
|
@@ -107477,11 +107477,11 @@ traverse3.cache = cache;
|
|
|
107477
107477
|
|
|
107478
107478
|
bundle.default;
|
|
107479
107479
|
|
|
107480
|
-
const {types: types$
|
|
107480
|
+
const {types: types$o} = bundle;
|
|
107481
107481
|
const {
|
|
107482
107482
|
isFunctionExpression,
|
|
107483
107483
|
ObjectMethod,
|
|
107484
|
-
} = types$
|
|
107484
|
+
} = types$o;
|
|
107485
107485
|
|
|
107486
107486
|
const {assign: assign$8} = Object;
|
|
107487
107487
|
|
|
@@ -107519,13 +107519,13 @@ function getObjectMethodLoc(key, value) {
|
|
|
107519
107519
|
return null;
|
|
107520
107520
|
}
|
|
107521
107521
|
|
|
107522
|
-
const {types: types$
|
|
107522
|
+
const {types: types$n} = bundle;
|
|
107523
107523
|
const {
|
|
107524
107524
|
classPrivateMethod,
|
|
107525
107525
|
classMethod,
|
|
107526
107526
|
PrivateName,
|
|
107527
107527
|
Identifier: Identifier$1,
|
|
107528
|
-
} = types$
|
|
107528
|
+
} = types$n;
|
|
107529
107529
|
|
|
107530
107530
|
const {assign: assign$7} = Object;
|
|
107531
107531
|
|
|
@@ -107581,8 +107581,8 @@ var setClassPrivateProperty$1 = (path) => {
|
|
|
107581
107581
|
path.node.type = 'ClassPrivateProperty';
|
|
107582
107582
|
};
|
|
107583
107583
|
|
|
107584
|
-
const {types: types$
|
|
107585
|
-
const {Identifier} = types$
|
|
107584
|
+
const {types: types$m} = bundle;
|
|
107585
|
+
const {Identifier} = types$m;
|
|
107586
107586
|
|
|
107587
107587
|
// acorn stores name in PrivateName.name
|
|
107588
107588
|
// babel stores name in PrivateName.id.name
|
|
@@ -107601,11 +107601,11 @@ var setClassPrivateName$1 = ({node}) => {
|
|
|
107601
107601
|
delete node.name;
|
|
107602
107602
|
};
|
|
107603
107603
|
|
|
107604
|
-
const {types: types$
|
|
107604
|
+
const {types: types$l} = bundle;
|
|
107605
107605
|
const {
|
|
107606
107606
|
Directive,
|
|
107607
107607
|
DirectiveLiteral,
|
|
107608
|
-
} = types$
|
|
107608
|
+
} = types$l;
|
|
107609
107609
|
|
|
107610
107610
|
var setDirectives$1 = (path) => {
|
|
107611
107611
|
const {node} = path;
|
|
@@ -107887,7 +107887,7 @@ const createPrivateName = (node) => ({
|
|
|
107887
107887
|
loc: node.loc,
|
|
107888
107888
|
});
|
|
107889
107889
|
|
|
107890
|
-
const {traverse: traverse$8, types: types$
|
|
107890
|
+
const {traverse: traverse$8, types: types$k} = bundle;
|
|
107891
107891
|
const traverseObjectExpression = traverseObjectExpression$1;
|
|
107892
107892
|
const setClassMethod = setClassMethod$1;
|
|
107893
107893
|
const setClassPrivateProperty = setClassPrivateProperty$1;
|
|
@@ -107912,7 +107912,7 @@ const {
|
|
|
107912
107912
|
const {
|
|
107913
107913
|
isObjectExpression,
|
|
107914
107914
|
isExportDeclaration,
|
|
107915
|
-
} = types$
|
|
107915
|
+
} = types$k;
|
|
107916
107916
|
|
|
107917
107917
|
const defaultOptions$5 = {
|
|
107918
107918
|
convertParens: true,
|
|
@@ -137685,7 +137685,7 @@ function getStore(plugin, {fix, rule, shebang, msg, options}) {
|
|
|
137685
137685
|
|
|
137686
137686
|
mergeVisitors$1.default;
|
|
137687
137687
|
|
|
137688
|
-
const {traverse: babelTraverse$1, types: types$
|
|
137688
|
+
const {traverse: babelTraverse$1, types: types$j} = bundle$1;
|
|
137689
137689
|
|
|
137690
137690
|
const {generate: generate$1} = parser$5;
|
|
137691
137691
|
const {merge: merge$1} = babelTraverse$1.visitors;
|
|
@@ -137705,7 +137705,7 @@ var superFind$1 = function superFind({rule, find, ast, options, template, traver
|
|
|
137705
137705
|
traverse,
|
|
137706
137706
|
}),
|
|
137707
137707
|
generate: generate$1,
|
|
137708
|
-
types: types$
|
|
137708
|
+
types: types$j,
|
|
137709
137709
|
push,
|
|
137710
137710
|
options,
|
|
137711
137711
|
});
|
|
@@ -137845,7 +137845,7 @@ prepareBodyWay$1.prepareBodyWay = (way) => {
|
|
|
137845
137845
|
var is$2 = {};
|
|
137846
137846
|
|
|
137847
137847
|
const {template: template$7} = parser$5;
|
|
137848
|
-
const {types: types$
|
|
137848
|
+
const {types: types$i} = bundle$1;
|
|
137849
137849
|
const {
|
|
137850
137850
|
isBlockStatement: isBlockStatement$1,
|
|
137851
137851
|
isTSModuleBlock,
|
|
@@ -137862,7 +137862,7 @@ const {
|
|
|
137862
137862
|
isJSXAttribute: isJSXAttribute$1,
|
|
137863
137863
|
isTSTypeReference: isTSTypeReference$1,
|
|
137864
137864
|
isTSTypeParameterDeclaration,
|
|
137865
|
-
} = types$
|
|
137865
|
+
} = types$i;
|
|
137866
137866
|
|
|
137867
137867
|
const isStr$1 = (a) => typeof a === 'string';
|
|
137868
137868
|
|
|
@@ -138211,7 +138211,7 @@ is$2.isInsideTypeParameter = (path) => path.isIdentifier() && path.parentPath?.i
|
|
|
138211
138211
|
|
|
138212
138212
|
const jessy = jessy$1;
|
|
138213
138213
|
const nessy = nessy$1;
|
|
138214
|
-
const {traverse: traverse$6, types: types$
|
|
138214
|
+
const {traverse: traverse$6, types: types$h} = bundle$1;
|
|
138215
138215
|
const {template: template$6} = parser$5;
|
|
138216
138216
|
|
|
138217
138217
|
const {replaceWith: replaceWith$3, extract} = operate;
|
|
@@ -138233,12 +138233,12 @@ const {
|
|
|
138233
138233
|
const {
|
|
138234
138234
|
isIdentifier: isIdentifier$3,
|
|
138235
138235
|
isStatement: isStatement$1,
|
|
138236
|
-
isJSXElement,
|
|
138236
|
+
isJSXElement: isJSXElement$1,
|
|
138237
138237
|
isJSXAttribute,
|
|
138238
138238
|
isStringLiteral: isStringLiteral$3,
|
|
138239
138239
|
isTemplateLiteral: isTemplateLiteral$1,
|
|
138240
138240
|
templateElement,
|
|
138241
|
-
} = types$
|
|
138241
|
+
} = types$h;
|
|
138242
138242
|
|
|
138243
138243
|
const {extractExpression: extractExpression$1} = template$6;
|
|
138244
138244
|
|
|
@@ -138323,7 +138323,7 @@ function getValues$2({waysFrom, node}) {
|
|
|
138323
138323
|
else if (isArgsStr(name) || isJSXChildrenStr(name) || isJSXAttributesStr(name) || isTypeParamsStr(name))
|
|
138324
138324
|
way = way.replace(/\.0$/, '');
|
|
138325
138325
|
|
|
138326
|
-
if (!isJSXElement(node))
|
|
138326
|
+
if (!isJSXElement$1(node))
|
|
138327
138327
|
way = way.replace(/\.expression$/, '');
|
|
138328
138328
|
|
|
138329
138329
|
if (isBodyStr(name))
|
|
@@ -138437,7 +138437,7 @@ var logExports = log$5.exports;
|
|
|
138437
138437
|
|
|
138438
138438
|
var link$1 = {exports: {}};
|
|
138439
138439
|
|
|
138440
|
-
const {types: types$
|
|
138440
|
+
const {types: types$g} = bundle$1;
|
|
138441
138441
|
const {
|
|
138442
138442
|
isIdentifier: isIdentifier$2,
|
|
138443
138443
|
isLiteral,
|
|
@@ -138446,7 +138446,7 @@ const {
|
|
|
138446
138446
|
isTSTypeReference,
|
|
138447
138447
|
isJSXText: isJSXText$1,
|
|
138448
138448
|
isJSXIdentifier,
|
|
138449
|
-
} = types$
|
|
138449
|
+
} = types$g;
|
|
138450
138450
|
|
|
138451
138451
|
const parseName = (node) => {
|
|
138452
138452
|
node = node[0] || node;
|
|
@@ -138507,11 +138507,11 @@ comparePrimitives$2.comparePrimitives = (node, template) => {
|
|
|
138507
138507
|
return isPrimitive(template) && !is(template) && template === node;
|
|
138508
138508
|
};
|
|
138509
138509
|
|
|
138510
|
-
const {types: types$
|
|
138510
|
+
const {types: types$f} = bundle$1;
|
|
138511
138511
|
const {isObject: isObject$3, isArrays: isArrays$1} = is$2;
|
|
138512
138512
|
const {comparePrimitives: comparePrimitives$1} = comparePrimitives$2;
|
|
138513
138513
|
|
|
138514
|
-
const {isIdentifier: isIdentifier$1} = types$
|
|
138514
|
+
const {isIdentifier: isIdentifier$1} = types$f;
|
|
138515
138515
|
|
|
138516
138516
|
comparePlain$1.comparePlain = (node, template, {add}) => {
|
|
138517
138517
|
if (!node && node === template)
|
|
@@ -138539,7 +138539,7 @@ comparePlain$1.comparePlain = (node, template, {add}) => {
|
|
|
138539
138539
|
return false;
|
|
138540
138540
|
};
|
|
138541
138541
|
|
|
138542
|
-
const {types: types$
|
|
138542
|
+
const {types: types$e} = bundle$1;
|
|
138543
138543
|
|
|
138544
138544
|
const log$4 = logExports;
|
|
138545
138545
|
const link = linkExports;
|
|
@@ -138577,7 +138577,7 @@ const {
|
|
|
138577
138577
|
isBlock,
|
|
138578
138578
|
isJSXText,
|
|
138579
138579
|
isTemplateElement,
|
|
138580
|
-
} = types$
|
|
138580
|
+
} = types$e;
|
|
138581
138581
|
|
|
138582
138582
|
const isEmptyBlock = (a) => isBlock(a) && !a.body.length;
|
|
138583
138583
|
|
|
@@ -138692,7 +138692,7 @@ function compareJSXTexts(node, template) {
|
|
|
138692
138692
|
|
|
138693
138693
|
var topLevelComparators = {};
|
|
138694
138694
|
|
|
138695
|
-
const {types: types$
|
|
138695
|
+
const {types: types$d} = bundle$1;
|
|
138696
138696
|
const {
|
|
138697
138697
|
isEqualBody,
|
|
138698
138698
|
isEqualAnyObject,
|
|
@@ -138706,7 +138706,7 @@ const {
|
|
|
138706
138706
|
const {
|
|
138707
138707
|
isIdentifier,
|
|
138708
138708
|
isStringLiteral: isStringLiteral$1,
|
|
138709
|
-
} = types$
|
|
138709
|
+
} = types$d;
|
|
138710
138710
|
|
|
138711
138711
|
const comparators = [
|
|
138712
138712
|
isEqualAnyObject,
|
|
@@ -139699,10 +139699,10 @@ function findKey(path, parent) {
|
|
|
139699
139699
|
|
|
139700
139700
|
const wraptile = wraptile$1;
|
|
139701
139701
|
|
|
139702
|
-
const {types: types$
|
|
139702
|
+
const {types: types$c} = bundle$1;
|
|
139703
139703
|
const findPath = findPath$1;
|
|
139704
139704
|
|
|
139705
|
-
const {isProgram: isProgram$2} = types$
|
|
139705
|
+
const {isProgram: isProgram$2} = types$c;
|
|
139706
139706
|
const name = '__putout_runner_replace';
|
|
139707
139707
|
const hasWatermark = (watermark) => (path) => path.node?.[name]?.has(watermark);
|
|
139708
139708
|
|
|
@@ -139770,7 +139770,7 @@ var watermarkExports = watermark$1.exports;
|
|
|
139770
139770
|
|
|
139771
139771
|
const {template: template$4, print: print$2} = parser$5;
|
|
139772
139772
|
const {remove, replaceWith: replaceWith$2} = operate;
|
|
139773
|
-
const {types: types$
|
|
139773
|
+
const {types: types$b} = bundle$1;
|
|
139774
139774
|
|
|
139775
139775
|
const {
|
|
139776
139776
|
compare: compare$3,
|
|
@@ -139792,7 +139792,7 @@ const {
|
|
|
139792
139792
|
isExpression,
|
|
139793
139793
|
isStatement,
|
|
139794
139794
|
isExpressionStatement,
|
|
139795
|
-
} = types$
|
|
139795
|
+
} = types$b;
|
|
139796
139796
|
|
|
139797
139797
|
const PRINT_OPTIONS = {
|
|
139798
139798
|
printer: ['putout', {
|
|
@@ -140044,7 +140044,7 @@ const {isESM, insertAfter} = operate;
|
|
|
140044
140044
|
|
|
140045
140045
|
const {compare: compare$2} = compare$5;
|
|
140046
140046
|
|
|
140047
|
-
const {types: types$
|
|
140047
|
+
const {types: types$a} = bundle$1;
|
|
140048
140048
|
|
|
140049
140049
|
const {
|
|
140050
140050
|
addDeclarationForESLint,
|
|
@@ -140056,7 +140056,7 @@ const {
|
|
|
140056
140056
|
const {
|
|
140057
140057
|
isImportDeclaration,
|
|
140058
140058
|
isVariableDeclaration,
|
|
140059
|
-
} = types$
|
|
140059
|
+
} = types$a;
|
|
140060
140060
|
|
|
140061
140061
|
const {keys} = Object;
|
|
140062
140062
|
const isString$2 = (a) => typeof a === 'string';
|
|
@@ -140323,12 +140323,12 @@ function deinit() {
|
|
|
140323
140323
|
|
|
140324
140324
|
var property = {};
|
|
140325
140325
|
|
|
140326
|
-
const {types: types$
|
|
140326
|
+
const {types: types$9} = bundle$1;
|
|
140327
140327
|
const {
|
|
140328
140328
|
arrayExpression: arrayExpression$2,
|
|
140329
140329
|
stringLiteral: stringLiteral$3,
|
|
140330
140330
|
objectProperty: objectProperty$2,
|
|
140331
|
-
} = types$
|
|
140331
|
+
} = types$9;
|
|
140332
140332
|
|
|
140333
140333
|
property.createTypeProperty = (type) => {
|
|
140334
140334
|
const value = stringLiteral$3(type);
|
|
@@ -140361,7 +140361,7 @@ const {
|
|
|
140361
140361
|
dirname: dirname$1,
|
|
140362
140362
|
} = require$$0$1;
|
|
140363
140363
|
|
|
140364
|
-
const {types: types$
|
|
140364
|
+
const {types: types$8} = bundle$1;
|
|
140365
140365
|
const tryCatch$1 = tryCatch$7;
|
|
140366
140366
|
|
|
140367
140367
|
const {
|
|
@@ -140382,7 +140382,7 @@ const {
|
|
|
140382
140382
|
const {
|
|
140383
140383
|
isProgram: isProgram$1,
|
|
140384
140384
|
objectExpression: objectExpression$1,
|
|
140385
|
-
} = types$
|
|
140385
|
+
} = types$8;
|
|
140386
140386
|
|
|
140387
140387
|
const isString$1 = (a) => typeof a === 'string';
|
|
140388
140388
|
const {isArray: isArray$2} = Array;
|
|
@@ -140801,7 +140801,7 @@ filesystem.start = maybeFS.start;
|
|
|
140801
140801
|
var convertSimpleFilesystemToFilesystem = {};
|
|
140802
140802
|
|
|
140803
140803
|
const {basename, dirname} = require$$0$1;
|
|
140804
|
-
const {types: types$
|
|
140804
|
+
const {types: types$7} = bundle$1;
|
|
140805
140805
|
const {
|
|
140806
140806
|
createDirectory,
|
|
140807
140807
|
getFileType: getFileType$1,
|
|
@@ -140820,7 +140820,7 @@ const {
|
|
|
140820
140820
|
isStringLiteral,
|
|
140821
140821
|
isTemplateLiteral,
|
|
140822
140822
|
objectProperty: objectProperty$1,
|
|
140823
|
-
} = types$
|
|
140823
|
+
} = types$7;
|
|
140824
140824
|
|
|
140825
140825
|
convertSimpleFilesystemToFilesystem.report = () => `Convert Simple Filesystem to Filesystem`;
|
|
140826
140826
|
|
|
@@ -140940,7 +140940,7 @@ function check$2(filename) {
|
|
|
140940
140940
|
|
|
140941
140941
|
var convertFilesystemToSimpleFilesystem = {};
|
|
140942
140942
|
|
|
140943
|
-
const {types: types$
|
|
140943
|
+
const {types: types$6} = bundle$1;
|
|
140944
140944
|
const {replaceWith, getProperty} = operate;
|
|
140945
140945
|
const {__filesystem_name: __filesystem_name$1} = json;
|
|
140946
140946
|
|
|
@@ -140953,7 +140953,7 @@ const {
|
|
|
140953
140953
|
const {
|
|
140954
140954
|
stringLiteral: stringLiteral$1,
|
|
140955
140955
|
arrayExpression,
|
|
140956
|
-
} = types$
|
|
140956
|
+
} = types$6;
|
|
140957
140957
|
|
|
140958
140958
|
const {isArray: isArray$1} = Array;
|
|
140959
140959
|
const maybeAddSlash = (a) => a === '/' ? a : `${a}/`;
|
|
@@ -141594,7 +141594,7 @@ report$3.default;
|
|
|
141594
141594
|
|
|
141595
141595
|
var traverse$5 = {};
|
|
141596
141596
|
|
|
141597
|
-
const {types: types$
|
|
141597
|
+
const {types: types$5, traverse: babelTraverse} = bundle$1;
|
|
141598
141598
|
|
|
141599
141599
|
const {
|
|
141600
141600
|
compare,
|
|
@@ -141603,7 +141603,7 @@ const {
|
|
|
141603
141603
|
getTemplateValues,
|
|
141604
141604
|
} = compare$5;
|
|
141605
141605
|
|
|
141606
|
-
const {isFile, isProgram} = types$
|
|
141606
|
+
const {isFile, isProgram} = types$5;
|
|
141607
141607
|
const {merge} = babelTraverse.visitors;
|
|
141608
141608
|
const {entries: entries$2} = Object;
|
|
141609
141609
|
|
|
@@ -141687,6 +141687,20 @@ traverse$5.contains = (path, items) => {
|
|
|
141687
141687
|
return found;
|
|
141688
141688
|
};
|
|
141689
141689
|
|
|
141690
|
+
var jsx = {};
|
|
141691
|
+
|
|
141692
|
+
const {types: types$4} = bundle$1;
|
|
141693
|
+
const {isJSXElement} = types$4;
|
|
141694
|
+
|
|
141695
|
+
jsx.hasTagName = (path, name) => {
|
|
141696
|
+
const node = path.node || path;
|
|
141697
|
+
|
|
141698
|
+
if (!isJSXElement(path))
|
|
141699
|
+
return false;
|
|
141700
|
+
|
|
141701
|
+
return node.openingElement.name.name === name;
|
|
141702
|
+
};
|
|
141703
|
+
|
|
141690
141704
|
/**
|
|
141691
141705
|
* The MIT License (MIT)
|
|
141692
141706
|
* Copyright (c) 2017-present Dmitry Soshnikov <dmitry.soshnikov@gmail.com>
|
|
@@ -150463,6 +150477,7 @@ var operator = putout$1.exports.operator = {
|
|
|
150463
150477
|
...compare$5,
|
|
150464
150478
|
...traverse$5,
|
|
150465
150479
|
...json,
|
|
150480
|
+
...jsx,
|
|
150466
150481
|
...declare$1,
|
|
150467
150482
|
...regexp,
|
|
150468
150483
|
...addArgs,
|