@putout/babel 4.5.8 → 5.0.1
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/README.md +2 -0
- package/bundle/index.d.ts +1 -264
- package/bundle/index.js +466 -215
- package/bundle/metafile-cjs.json +1 -1
- package/package.json +1 -1
package/bundle/index.js
CHANGED
|
@@ -82,11 +82,11 @@ var require_picocolors = __commonJS({
|
|
|
82
82
|
return result + string.substring(cursor);
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
var createColors2 = (
|
|
86
|
-
let f =
|
|
85
|
+
var createColors2 = (enabled2 = isColorSupported2) => {
|
|
86
|
+
let f = enabled2 ? formatter : () => String;
|
|
87
87
|
|
|
88
88
|
return {
|
|
89
|
-
isColorSupported:
|
|
89
|
+
isColorSupported: enabled2,
|
|
90
90
|
reset: f('\x1B[0m', '\x1B[0m'),
|
|
91
91
|
bold: f('\x1B[1m', '\x1B[22m', '\x1B[22m\x1B[1m'),
|
|
92
92
|
dim: f('\x1B[2m', '\x1B[22m', '\x1B[22m\x1B[2m'),
|
|
@@ -136,9 +136,9 @@ var require_picocolors = __commonJS({
|
|
|
136
136
|
},
|
|
137
137
|
});
|
|
138
138
|
|
|
139
|
-
// ../babel-babel/node_modules/js-tokens
|
|
140
|
-
var
|
|
141
|
-
'../babel-babel/node_modules/js-tokens
|
|
139
|
+
// ../babel-babel/node_modules/js-tokens/index.js
|
|
140
|
+
var require_js_tokens = __commonJS({
|
|
141
|
+
'../babel-babel/node_modules/js-tokens/index.js'(exports2, module2) {
|
|
142
142
|
var Identifier3;
|
|
143
143
|
var JSXIdentifier3;
|
|
144
144
|
var JSXPunctuator;
|
|
@@ -160,7 +160,7 @@ var require_js_tokens_BABEL_8_BREAKING_true = __commonJS({
|
|
|
160
160
|
var WhiteSpace;
|
|
161
161
|
var jsTokens2;
|
|
162
162
|
|
|
163
|
-
RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![
|
|
163
|
+
RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;
|
|
164
164
|
Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;
|
|
165
165
|
Identifier3 = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;
|
|
166
166
|
StringLiteral4 = /(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y;
|
|
@@ -639,13 +639,6 @@ var require_js_tokens_BABEL_8_BREAKING_true = __commonJS({
|
|
|
639
639
|
},
|
|
640
640
|
});
|
|
641
641
|
|
|
642
|
-
// ../babel-babel/node_modules/js-tokens-BABEL_8_BREAKING-false/index.js
|
|
643
|
-
var require_js_tokens = __commonJS({
|
|
644
|
-
'../babel-babel/node_modules/js-tokens/index.js'(exports2, module2) {
|
|
645
|
-
module2.exports = require_js_tokens_BABEL_8_BREAKING_true();
|
|
646
|
-
},
|
|
647
|
-
});
|
|
648
|
-
|
|
649
642
|
// ../babel-babel/node_modules/jsesc/jsesc.js
|
|
650
643
|
var require_jsesc = __commonJS({
|
|
651
644
|
'../babel-babel/node_modules/jsesc/jsesc.js'(exports2, module2) {
|
|
@@ -995,28 +988,6 @@ var require_jsesc = __commonJS({
|
|
|
995
988
|
},
|
|
996
989
|
});
|
|
997
990
|
|
|
998
|
-
// ../babel-babel/node_modules/ms/index.js
|
|
999
|
-
// ../babel-babel/node_modules/debug/src/common.js
|
|
1000
|
-
var require_browser = () => () => ({
|
|
1001
|
-
enabled: false,
|
|
1002
|
-
});
|
|
1003
|
-
|
|
1004
|
-
// ../babel-babel/node_modules/has-flag/index.js
|
|
1005
|
-
var require_node = () => () => ({
|
|
1006
|
-
enabled: false,
|
|
1007
|
-
});
|
|
1008
|
-
|
|
1009
|
-
// ../babel-babel/node_modules/debug/src/index.js
|
|
1010
|
-
var require_src = __commonJS({
|
|
1011
|
-
'../babel-babel/node_modules/debug/src/index.js'(exports2, module2) {
|
|
1012
|
-
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
|
1013
|
-
module2.exports = require_browser();
|
|
1014
|
-
} else {
|
|
1015
|
-
module2.exports = require_node();
|
|
1016
|
-
}
|
|
1017
|
-
},
|
|
1018
|
-
});
|
|
1019
|
-
|
|
1020
991
|
// lib/index.mjs
|
|
1021
992
|
var index_exports = {};
|
|
1022
993
|
|
|
@@ -8464,7 +8435,7 @@ defineType$4('CallExpression', {
|
|
|
8464
8435
|
],
|
|
8465
8436
|
builder: ['callee', 'arguments'],
|
|
8466
8437
|
aliases: ['Expression'],
|
|
8467
|
-
fields:
|
|
8438
|
+
fields: {
|
|
8468
8439
|
callee: {
|
|
8469
8440
|
validate: assertNodeType('Expression', 'Super', 'V8IntrinsicIdentifier'),
|
|
8470
8441
|
},
|
|
@@ -8473,7 +8444,7 @@ defineType$4('CallExpression', {
|
|
|
8473
8444
|
validate: assertNodeType('TypeParameterInstantiation', 'TSTypeParameterInstantiation'),
|
|
8474
8445
|
optional: true,
|
|
8475
8446
|
},
|
|
8476
|
-
},
|
|
8447
|
+
},
|
|
8477
8448
|
});
|
|
8478
8449
|
defineType$4('CatchClause', {
|
|
8479
8450
|
visitor: ['param', 'body'],
|
|
@@ -8986,7 +8957,7 @@ defineType$4('MemberExpression', {
|
|
|
8986
8957
|
},
|
|
8987
8958
|
}],
|
|
8988
8959
|
},
|
|
8989
|
-
fields:
|
|
8960
|
+
fields: {
|
|
8990
8961
|
object: {
|
|
8991
8962
|
validate: assertNodeType('Expression', 'Super'),
|
|
8992
8963
|
},
|
|
@@ -9010,7 +8981,7 @@ defineType$4('MemberExpression', {
|
|
|
9010
8981
|
computed: {
|
|
9011
8982
|
default: false,
|
|
9012
8983
|
},
|
|
9013
|
-
},
|
|
8984
|
+
},
|
|
9014
8985
|
});
|
|
9015
8986
|
defineType$4('NewExpression', {
|
|
9016
8987
|
inherits: 'CallExpression',
|
|
@@ -9072,9 +9043,9 @@ defineType$4('ObjectMethod', Object.assign({
|
|
|
9072
9043
|
],
|
|
9073
9044
|
}, classMethodOrPropertyUnionShapeCommon(), {
|
|
9074
9045
|
fields: Object.assign({}, functionCommon(), functionTypeAnnotationCommon(), {
|
|
9075
|
-
kind:
|
|
9046
|
+
kind: {
|
|
9076
9047
|
validate: assertOneOf('method', 'get', 'set'),
|
|
9077
|
-
},
|
|
9048
|
+
},
|
|
9078
9049
|
computed: {
|
|
9079
9050
|
default: false,
|
|
9080
9051
|
},
|
|
@@ -9665,11 +9636,6 @@ var importAttributes = {
|
|
|
9665
9636
|
optional: true,
|
|
9666
9637
|
validate: arrayOfType('ImportAttribute'),
|
|
9667
9638
|
},
|
|
9668
|
-
assertions: {
|
|
9669
|
-
deprecated: true,
|
|
9670
|
-
optional: true,
|
|
9671
|
-
validate: arrayOfType('ImportAttribute'),
|
|
9672
|
-
},
|
|
9673
9639
|
};
|
|
9674
9640
|
|
|
9675
9641
|
defineType$4('ExportAllDeclaration', {
|
|
@@ -10252,7 +10218,7 @@ defineType$4('OptionalCallExpression', {
|
|
|
10252
10218
|
'optional',
|
|
10253
10219
|
],
|
|
10254
10220
|
aliases: ['Expression'],
|
|
10255
|
-
fields:
|
|
10221
|
+
fields: {
|
|
10256
10222
|
callee: {
|
|
10257
10223
|
validate: assertNodeType('Expression'),
|
|
10258
10224
|
},
|
|
@@ -10264,7 +10230,7 @@ defineType$4('OptionalCallExpression', {
|
|
|
10264
10230
|
validate: assertNodeType('TypeParameterInstantiation', 'TSTypeParameterInstantiation'),
|
|
10265
10231
|
optional: true,
|
|
10266
10232
|
},
|
|
10267
|
-
},
|
|
10233
|
+
},
|
|
10268
10234
|
});
|
|
10269
10235
|
defineType$4('ClassProperty', Object.assign({
|
|
10270
10236
|
visitor: [
|
|
@@ -11149,7 +11115,7 @@ defineType$2('JSXElement', {
|
|
|
11149
11115
|
'closingElement',
|
|
11150
11116
|
],
|
|
11151
11117
|
aliases: ['Immutable', 'Expression'],
|
|
11152
|
-
fields:
|
|
11118
|
+
fields: {
|
|
11153
11119
|
openingElement: {
|
|
11154
11120
|
validate: assertNodeType('JSXOpeningElement'),
|
|
11155
11121
|
},
|
|
@@ -11158,7 +11124,7 @@ defineType$2('JSXElement', {
|
|
|
11158
11124
|
validate: assertNodeType('JSXClosingElement'),
|
|
11159
11125
|
},
|
|
11160
11126
|
children: validateArrayOfType('JSXText', 'JSXExpressionContainer', 'JSXSpreadChild', 'JSXElement', 'JSXFragment'),
|
|
11161
|
-
},
|
|
11127
|
+
},
|
|
11162
11128
|
});
|
|
11163
11129
|
defineType$2('JSXEmptyExpression', {});
|
|
11164
11130
|
defineType$2('JSXExpressionContainer', {
|
|
@@ -11221,7 +11187,7 @@ defineType$2('JSXOpeningElement', {
|
|
|
11221
11187
|
'attributes',
|
|
11222
11188
|
],
|
|
11223
11189
|
aliases: ['Immutable'],
|
|
11224
|
-
fields:
|
|
11190
|
+
fields: {
|
|
11225
11191
|
name: {
|
|
11226
11192
|
validate: assertNodeType('JSXIdentifier', 'JSXMemberExpression', 'JSXNamespacedName'),
|
|
11227
11193
|
},
|
|
@@ -11233,7 +11199,7 @@ defineType$2('JSXOpeningElement', {
|
|
|
11233
11199
|
validate: assertNodeType('TypeParameterInstantiation', 'TSTypeParameterInstantiation'),
|
|
11234
11200
|
optional: true,
|
|
11235
11201
|
},
|
|
11236
|
-
},
|
|
11202
|
+
},
|
|
11237
11203
|
});
|
|
11238
11204
|
defineType$2('JSXSpreadAttribute', {
|
|
11239
11205
|
visitor: ['argument'],
|
|
@@ -11759,15 +11725,14 @@ defineType('TSMappedType', {
|
|
|
11759
11725
|
'nameType',
|
|
11760
11726
|
'typeAnnotation',
|
|
11761
11727
|
],
|
|
11762
|
-
fields:
|
|
11728
|
+
fields: {
|
|
11763
11729
|
key: validateType('Identifier'),
|
|
11764
11730
|
constraint: validateType('TSType'),
|
|
11765
|
-
}, {
|
|
11766
11731
|
readonly: validateOptional(assertOneOf(true, false, '+', '-')),
|
|
11767
11732
|
optional: validateOptional(assertOneOf(true, false, '+', '-')),
|
|
11768
11733
|
typeAnnotation: validateOptionalType('TSType'),
|
|
11769
11734
|
nameType: validateOptionalType('TSType'),
|
|
11770
|
-
}
|
|
11735
|
+
},
|
|
11771
11736
|
});
|
|
11772
11737
|
defineType('TSTemplateLiteralType', {
|
|
11773
11738
|
aliases: ['TSType', 'TSBaseType'],
|
|
@@ -11929,15 +11894,14 @@ defineType('TSEnumMember', {
|
|
|
11929
11894
|
defineType('TSModuleDeclaration', {
|
|
11930
11895
|
aliases: ['Statement', 'Declaration'],
|
|
11931
11896
|
visitor: ['id', 'body'],
|
|
11932
|
-
fields:
|
|
11897
|
+
fields: {
|
|
11933
11898
|
kind: {
|
|
11934
11899
|
validate: assertOneOf('global', 'module', 'namespace'),
|
|
11935
11900
|
},
|
|
11936
11901
|
declare: validateOptional(bool),
|
|
11937
|
-
}, false, {
|
|
11938
11902
|
id: validateType('TSEntityName', 'StringLiteral'),
|
|
11939
11903
|
body: validateType('TSModuleBlock'),
|
|
11940
|
-
}
|
|
11904
|
+
},
|
|
11941
11905
|
});
|
|
11942
11906
|
defineType('TSModuleBlock', {
|
|
11943
11907
|
aliases: [
|
|
@@ -11954,20 +11918,20 @@ defineType('TSModuleBlock', {
|
|
|
11954
11918
|
defineType('TSImportType', {
|
|
11955
11919
|
aliases: ['TSType'],
|
|
11956
11920
|
builder: [
|
|
11957
|
-
'
|
|
11921
|
+
'source',
|
|
11958
11922
|
'qualifier',
|
|
11959
11923
|
'typeArguments',
|
|
11960
11924
|
],
|
|
11961
11925
|
visitor: [
|
|
11962
|
-
'
|
|
11926
|
+
'source',
|
|
11963
11927
|
'options',
|
|
11964
11928
|
'qualifier',
|
|
11965
11929
|
'typeArguments',
|
|
11966
11930
|
],
|
|
11967
11931
|
fields: {
|
|
11968
|
-
|
|
11932
|
+
source: validateType('StringLiteral'),
|
|
11969
11933
|
qualifier: validateOptionalType('TSEntityName'),
|
|
11970
|
-
|
|
11934
|
+
typeArguments: validateOptionalType('TSTypeParameterInstantiation'),
|
|
11971
11935
|
options: {
|
|
11972
11936
|
validate: assertNodeType('ObjectExpression'),
|
|
11973
11937
|
optional: true,
|
|
@@ -11977,14 +11941,14 @@ defineType('TSImportType', {
|
|
|
11977
11941
|
defineType('TSImportEqualsDeclaration', {
|
|
11978
11942
|
aliases: ['Statement', 'Declaration'],
|
|
11979
11943
|
visitor: ['id', 'moduleReference'],
|
|
11980
|
-
fields:
|
|
11944
|
+
fields: {
|
|
11981
11945
|
id: validateType('Identifier'),
|
|
11982
11946
|
moduleReference: validateType('TSEntityName', 'TSExternalModuleReference'),
|
|
11983
11947
|
importKind: {
|
|
11984
11948
|
validate: assertOneOf('type', 'value'),
|
|
11985
11949
|
optional: true,
|
|
11986
11950
|
},
|
|
11987
|
-
}
|
|
11951
|
+
},
|
|
11988
11952
|
});
|
|
11989
11953
|
defineType('TSExternalModuleReference', {
|
|
11990
11954
|
visitor: ['expression'],
|
|
@@ -12907,6 +12871,7 @@ function exportAllDeclaration(source) {
|
|
|
12907
12871
|
const node = {
|
|
12908
12872
|
type: 'ExportAllDeclaration',
|
|
12909
12873
|
source,
|
|
12874
|
+
assertions: null,
|
|
12910
12875
|
};
|
|
12911
12876
|
|
|
12912
12877
|
const defs = NODE_FIELDS.ExportAllDeclaration;
|
|
@@ -15080,16 +15045,16 @@ function tsModuleBlock(body) {
|
|
|
15080
15045
|
return node;
|
|
15081
15046
|
}
|
|
15082
15047
|
|
|
15083
|
-
function tsImportType(
|
|
15048
|
+
function tsImportType(source, qualifier = null, typeArguments = null) {
|
|
15084
15049
|
const node = {
|
|
15085
15050
|
type: 'TSImportType',
|
|
15086
|
-
|
|
15051
|
+
source,
|
|
15087
15052
|
qualifier,
|
|
15088
15053
|
typeArguments,
|
|
15089
15054
|
};
|
|
15090
15055
|
|
|
15091
15056
|
const defs = NODE_FIELDS.TSImportType;
|
|
15092
|
-
validate(defs.
|
|
15057
|
+
validate(defs.source, node, 'source', source, 1);
|
|
15093
15058
|
validate(defs.qualifier, node, 'qualifier', qualifier, 1);
|
|
15094
15059
|
validate(defs.typeArguments, node, 'typeArguments', typeArguments, 1);
|
|
15095
15060
|
return node;
|
|
@@ -18736,7 +18701,7 @@ var UnparenthesizedPipeBodyDescriptions = /* @__PURE__ */new Set([
|
|
|
18736
18701
|
'YieldExpression',
|
|
18737
18702
|
]);
|
|
18738
18703
|
|
|
18739
|
-
var PipelineOperatorErrors =
|
|
18704
|
+
var PipelineOperatorErrors = {
|
|
18740
18705
|
PipeBodyIsTighter: 'Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.',
|
|
18741
18706
|
PipeTopicRequiresHackPipes: 'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',
|
|
18742
18707
|
PipeTopicUnbound: 'Topic reference is unbound; it must be inside a pipe body.',
|
|
@@ -18745,7 +18710,7 @@ var PipelineOperatorErrors = Object.assign({
|
|
|
18745
18710
|
PipeUnparenthesizedBody: ({type}) => `Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({
|
|
18746
18711
|
type,
|
|
18747
18712
|
})}; please wrap it in parentheses.`,
|
|
18748
|
-
}
|
|
18713
|
+
};
|
|
18749
18714
|
|
|
18750
18715
|
var _excluded = ['message'];
|
|
18751
18716
|
|
|
@@ -19386,22 +19351,6 @@ var estree = (superClass) => class ESTreeParserMixin extends superClass {
|
|
|
19386
19351
|
}
|
|
19387
19352
|
};
|
|
19388
19353
|
|
|
19389
|
-
var TokContext = class {
|
|
19390
|
-
constructor(token, preserveSpace) {
|
|
19391
|
-
__publicField(this, 'token');
|
|
19392
|
-
__publicField(this, 'preserveSpace');
|
|
19393
|
-
this.token = token;
|
|
19394
|
-
this.preserveSpace = !!preserveSpace;
|
|
19395
|
-
}
|
|
19396
|
-
};
|
|
19397
|
-
|
|
19398
|
-
var types = {
|
|
19399
|
-
brace: new TokContext('{'),
|
|
19400
|
-
j_oTag: new TokContext('<tag'),
|
|
19401
|
-
j_cTag: new TokContext('</tag'),
|
|
19402
|
-
j_expr: new TokContext('<tag>...</tag>', true),
|
|
19403
|
-
};
|
|
19404
|
-
|
|
19405
19354
|
var beforeExpr = true;
|
|
19406
19355
|
var startsExpr = true;
|
|
19407
19356
|
var isLoop2 = true;
|
|
@@ -19953,6 +19902,22 @@ function getExportedToken(token) {
|
|
|
19953
19902
|
return tokenTypes[token];
|
|
19954
19903
|
}
|
|
19955
19904
|
|
|
19905
|
+
var TokContext = class {
|
|
19906
|
+
constructor(token, preserveSpace) {
|
|
19907
|
+
__publicField(this, 'token');
|
|
19908
|
+
__publicField(this, 'preserveSpace');
|
|
19909
|
+
this.token = token;
|
|
19910
|
+
this.preserveSpace = !!preserveSpace;
|
|
19911
|
+
}
|
|
19912
|
+
};
|
|
19913
|
+
|
|
19914
|
+
var types = {
|
|
19915
|
+
brace: new TokContext('{'),
|
|
19916
|
+
j_oTag: new TokContext('<tag'),
|
|
19917
|
+
j_cTag: new TokContext('</tag'),
|
|
19918
|
+
j_expr: new TokContext('<tag>...</tag>', true),
|
|
19919
|
+
};
|
|
19920
|
+
|
|
19956
19921
|
var nonASCIIidentifierStartChars2 = '\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC';
|
|
19957
19922
|
var nonASCIIidentifierChars2 = '\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65';
|
|
19958
19923
|
var nonASCIIidentifierStart2 = new RegExp('[' + nonASCIIidentifierStartChars2 + ']');
|
|
@@ -25983,9 +25948,9 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
25983
25948
|
|
|
25984
25949
|
if (!this.match(134)) {
|
|
25985
25950
|
this.raise(TSErrors.UnsupportedImportTypeArgument, this.state.startLoc);
|
|
25986
|
-
node.
|
|
25951
|
+
node.source = this.tsParseNonConditionalType();
|
|
25987
25952
|
} else {
|
|
25988
|
-
node.
|
|
25953
|
+
node.source = this.parseStringLiteral(this.state.value);
|
|
25989
25954
|
}
|
|
25990
25955
|
|
|
25991
25956
|
if (this.eat(12)) {
|
|
@@ -27878,7 +27843,7 @@ var typescript = (superClass) => class TypeScriptParserMixin extends superClass
|
|
|
27878
27843
|
nodeImportEquals.importKind = 'value';
|
|
27879
27844
|
}
|
|
27880
27845
|
|
|
27881
|
-
const declaration = this.tsParseImportEqualsDeclaration(nodeImportEquals, maybeDefaultIdentifier
|
|
27846
|
+
const declaration = this.tsParseImportEqualsDeclaration(nodeImportEquals, maybeDefaultIdentifier);
|
|
27882
27847
|
|
|
27883
27848
|
node.attributes = [];
|
|
27884
27849
|
node.declaration = declaration;
|
|
@@ -29580,11 +29545,13 @@ function validatePlugins(pluginsMap) {
|
|
|
29580
29545
|
}
|
|
29581
29546
|
|
|
29582
29547
|
if (pluginsMap.has('importAssertions')) {
|
|
29583
|
-
throw new Error('`importAssertions` has been removed in Babel 8, please use import attributes instead.
|
|
29548
|
+
throw new Error('`importAssertions` has been removed in Babel 8, please use import attributes instead.');
|
|
29584
29549
|
}
|
|
29585
29550
|
|
|
29586
|
-
if (
|
|
29587
|
-
|
|
29551
|
+
if (pluginsMap.has('deprecatedImportAssert')) {
|
|
29552
|
+
console.warn('`deprecatedImportAssert` has been removed in Babel 8, please use import attributes instead.');
|
|
29553
|
+
} else if (pluginsMap.has('importAttributes') && pluginsMap.get('importAttributes').deprecatedAssertSyntax) {
|
|
29554
|
+
console.warn('The \'importAttributes\' plugin has been removed in Babel 8. Please migrate any usage of `assert`-style attributes to `with`.');
|
|
29588
29555
|
}
|
|
29589
29556
|
|
|
29590
29557
|
if (pluginsMap.has('recordAndTuple')) {
|
|
@@ -29884,8 +29851,6 @@ var ExpressionParser = class extends LValParser {
|
|
|
29884
29851
|
if (this.state.inFSharpPipelineDirectBody) {
|
|
29885
29852
|
return left;
|
|
29886
29853
|
}
|
|
29887
|
-
|
|
29888
|
-
this.checkPipelineAtInfixOperator(left, leftStartLoc);
|
|
29889
29854
|
}
|
|
29890
29855
|
|
|
29891
29856
|
const node = this.startNodeAt(leftStartLoc);
|
|
@@ -29916,7 +29881,6 @@ var ExpressionParser = class extends LValParser {
|
|
|
29916
29881
|
}
|
|
29917
29882
|
|
|
29918
29883
|
parseExprOpRightExpr(op, prec) {
|
|
29919
|
-
this.state.startLoc;
|
|
29920
29884
|
switch(op) {
|
|
29921
29885
|
case 39:
|
|
29922
29886
|
switch(this.getPluginOption('pipelineOperator', 'proposal')) {
|
|
@@ -31637,51 +31601,6 @@ var ExpressionParser = class extends LValParser {
|
|
|
31637
31601
|
return this.finishNode(node, 'ImportExpression');
|
|
31638
31602
|
}
|
|
31639
31603
|
|
|
31640
|
-
checkPipelineAtInfixOperator(left, leftStartLoc) {
|
|
31641
|
-
if (this.hasPlugin(['pipelineOperator', {proposal: 'smart'}])) {
|
|
31642
|
-
if (left.type === 'SequenceExpression') {
|
|
31643
|
-
this.raise(Errors.PipelineHeadSequenceExpression, leftStartLoc);
|
|
31644
|
-
}
|
|
31645
|
-
}
|
|
31646
|
-
}
|
|
31647
|
-
|
|
31648
|
-
parseSmartPipelineBodyInStyle(childExpr, startLoc) {
|
|
31649
|
-
if (this.isSimpleReference(childExpr)) {
|
|
31650
|
-
const bodyNode = this.startNodeAt(startLoc);
|
|
31651
|
-
|
|
31652
|
-
bodyNode.callee = childExpr;
|
|
31653
|
-
return this.finishNode(bodyNode, 'PipelineBareFunction');
|
|
31654
|
-
} else {
|
|
31655
|
-
const bodyNode = this.startNodeAt(startLoc);
|
|
31656
|
-
this.checkSmartPipeTopicBodyEarlyErrors(startLoc);
|
|
31657
|
-
bodyNode.expression = childExpr;
|
|
31658
|
-
return this.finishNode(bodyNode, 'PipelineTopicExpression');
|
|
31659
|
-
}
|
|
31660
|
-
}
|
|
31661
|
-
|
|
31662
|
-
isSimpleReference(expression2) {
|
|
31663
|
-
switch(expression2.type) {
|
|
31664
|
-
case 'MemberExpression':
|
|
31665
|
-
return !expression2.computed && this.isSimpleReference(expression2.object);
|
|
31666
|
-
|
|
31667
|
-
case 'Identifier':
|
|
31668
|
-
return true;
|
|
31669
|
-
|
|
31670
|
-
default:
|
|
31671
|
-
return false;
|
|
31672
|
-
}
|
|
31673
|
-
}
|
|
31674
|
-
|
|
31675
|
-
checkSmartPipeTopicBodyEarlyErrors(startLoc) {
|
|
31676
|
-
if (this.match(19)) {
|
|
31677
|
-
throw this.raise(Errors.PipelineBodyNoArrow, this.state.startLoc);
|
|
31678
|
-
}
|
|
31679
|
-
|
|
31680
|
-
if (!this.topicReferenceWasUsedInCurrentContext()) {
|
|
31681
|
-
this.raise(Errors.PipelineTopicUnused, startLoc);
|
|
31682
|
-
}
|
|
31683
|
-
}
|
|
31684
|
-
|
|
31685
31604
|
withTopicBindingContext(callback) {
|
|
31686
31605
|
const outerContextTopicState = this.state.topicContext;
|
|
31687
31606
|
|
|
@@ -31848,7 +31767,7 @@ var StatementParser = class extends ExpressionParser {
|
|
|
31848
31767
|
file2.comments = this.comments;
|
|
31849
31768
|
|
|
31850
31769
|
if (this.optionFlags & 256) {
|
|
31851
|
-
file2.tokens = babel7CompatTokens(this.tokens
|
|
31770
|
+
file2.tokens = babel7CompatTokens(this.tokens);
|
|
31852
31771
|
}
|
|
31853
31772
|
|
|
31854
31773
|
return this.finishNode(file2, 'File');
|
|
@@ -34018,14 +33937,6 @@ var StatementParser = class extends ExpressionParser {
|
|
|
34018
33937
|
return;
|
|
34019
33938
|
}
|
|
34020
33939
|
|
|
34021
|
-
this.next();
|
|
34022
|
-
attributes = this.parseImportAttributes();
|
|
34023
|
-
} else if (this.isContextual(94) && !this.hasPrecedingLineBreak()) {
|
|
34024
|
-
if (!this.hasPlugin('deprecatedImportAssert')) {
|
|
34025
|
-
this.raise(Errors.ImportAttributesUseAssert, this.state.startLoc);
|
|
34026
|
-
}
|
|
34027
|
-
|
|
34028
|
-
this.addExtra(node, 'deprecatedAssertSyntax', true);
|
|
34029
33940
|
this.next();
|
|
34030
33941
|
attributes = this.parseImportAttributes();
|
|
34031
33942
|
} else {
|
|
@@ -34325,29 +34236,29 @@ function isColorSupported() {
|
|
|
34325
34236
|
|
|
34326
34237
|
var compose = (f, g) => (v) => f(g(v));
|
|
34327
34238
|
|
|
34328
|
-
function buildDefs(
|
|
34239
|
+
function buildDefs(colors2) {
|
|
34329
34240
|
return {
|
|
34330
|
-
keyword:
|
|
34331
|
-
capitalized:
|
|
34332
|
-
jsxIdentifier:
|
|
34333
|
-
punctuator:
|
|
34334
|
-
number:
|
|
34335
|
-
string:
|
|
34336
|
-
regex:
|
|
34337
|
-
comment:
|
|
34338
|
-
invalid: compose(compose(
|
|
34339
|
-
gutter:
|
|
34340
|
-
marker: compose(
|
|
34341
|
-
message: compose(
|
|
34342
|
-
reset:
|
|
34241
|
+
keyword: colors2.cyan,
|
|
34242
|
+
capitalized: colors2.yellow,
|
|
34243
|
+
jsxIdentifier: colors2.yellow,
|
|
34244
|
+
punctuator: colors2.yellow,
|
|
34245
|
+
number: colors2.magenta,
|
|
34246
|
+
string: colors2.green,
|
|
34247
|
+
regex: colors2.magenta,
|
|
34248
|
+
comment: colors2.gray,
|
|
34249
|
+
invalid: compose(compose(colors2.white, colors2.bgRed), colors2.bold),
|
|
34250
|
+
gutter: colors2.gray,
|
|
34251
|
+
marker: compose(colors2.red, colors2.bold),
|
|
34252
|
+
message: compose(colors2.red, colors2.bold),
|
|
34253
|
+
reset: colors2.reset,
|
|
34343
34254
|
};
|
|
34344
34255
|
}
|
|
34345
34256
|
|
|
34346
34257
|
var defsOn = buildDefs((0, import_picocolors.createColors)(true));
|
|
34347
34258
|
var defsOff = buildDefs((0, import_picocolors.createColors)(false));
|
|
34348
34259
|
|
|
34349
|
-
function getDefs(
|
|
34350
|
-
return
|
|
34260
|
+
function getDefs(enabled2) {
|
|
34261
|
+
return enabled2 ? defsOn : defsOff;
|
|
34351
34262
|
}
|
|
34352
34263
|
|
|
34353
34264
|
var sometimesKeywords = /* @__PURE__ */new Set([
|
|
@@ -34360,7 +34271,6 @@ var sometimesKeywords = /* @__PURE__ */new Set([
|
|
|
34360
34271
|
]);
|
|
34361
34272
|
var NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
|
|
34362
34273
|
var BRACKET = /^[()[\]{}]$/;
|
|
34363
|
-
var tokenize;
|
|
34364
34274
|
|
|
34365
34275
|
var getTokenType = function(token) {
|
|
34366
34276
|
if (token.type === 'IdentifierName') {
|
|
@@ -34425,7 +34335,7 @@ var getTokenType = function(token) {
|
|
|
34425
34335
|
}
|
|
34426
34336
|
};
|
|
34427
34337
|
|
|
34428
|
-
|
|
34338
|
+
function* tokenize(text) {
|
|
34429
34339
|
for (const token of (0, import_js_tokens.default)(text, {jsx: true})) {
|
|
34430
34340
|
switch(token.type) {
|
|
34431
34341
|
case 'TemplateHead':
|
|
@@ -34472,7 +34382,8 @@ tokenize = function*(text) {
|
|
|
34472
34382
|
};
|
|
34473
34383
|
}
|
|
34474
34384
|
}
|
|
34475
|
-
}
|
|
34385
|
+
}
|
|
34386
|
+
|
|
34476
34387
|
function highlight(text) {
|
|
34477
34388
|
if (text === '')
|
|
34478
34389
|
return '';
|
|
@@ -35136,13 +35047,13 @@ function stringTemplate(formatter, code2, opts) {
|
|
|
35136
35047
|
}
|
|
35137
35048
|
|
|
35138
35049
|
function literalTemplate(formatter, tpl, opts) {
|
|
35139
|
-
const {metadata, names} = buildLiteralData(formatter, tpl, opts);
|
|
35050
|
+
const {metadata, names: names2} = buildLiteralData(formatter, tpl, opts);
|
|
35140
35051
|
|
|
35141
35052
|
return (arg) => {
|
|
35142
35053
|
const defaultReplacements = {};
|
|
35143
35054
|
|
|
35144
35055
|
arg.forEach((replacement, i) => {
|
|
35145
|
-
defaultReplacements[
|
|
35056
|
+
defaultReplacements[names2[i]] = replacement;
|
|
35146
35057
|
});
|
|
35147
35058
|
return (arg2) => {
|
|
35148
35059
|
const replacements = normalizeReplacements(arg2);
|
|
@@ -35169,11 +35080,11 @@ function buildLiteralData(formatter, tpl, opts) {
|
|
|
35169
35080
|
do {
|
|
35170
35081
|
prefix2 = '$$' + prefix2;
|
|
35171
35082
|
} while (raw.includes(prefix2))
|
|
35172
|
-
const {names, code: code2} = buildTemplateCode(tpl, prefix2);
|
|
35083
|
+
const {names: names2, code: code2} = buildTemplateCode(tpl, prefix2);
|
|
35173
35084
|
|
|
35174
35085
|
const metadata = parseAndBuildMetadata(formatter, formatter.code(code2), {
|
|
35175
35086
|
parser: opts.parser,
|
|
35176
|
-
placeholderWhitelist: new Set(
|
|
35087
|
+
placeholderWhitelist: new Set(names2.concat(opts.placeholderWhitelist ? Array.from(opts.placeholderWhitelist) : [])),
|
|
35177
35088
|
placeholderPattern: opts.placeholderPattern,
|
|
35178
35089
|
preserveComments: opts.preserveComments,
|
|
35179
35090
|
syntacticPlaceholders: opts.syntacticPlaceholders,
|
|
@@ -35181,22 +35092,22 @@ function buildLiteralData(formatter, tpl, opts) {
|
|
|
35181
35092
|
|
|
35182
35093
|
return {
|
|
35183
35094
|
metadata,
|
|
35184
|
-
names,
|
|
35095
|
+
names: names2,
|
|
35185
35096
|
};
|
|
35186
35097
|
}
|
|
35187
35098
|
|
|
35188
35099
|
function buildTemplateCode(tpl, prefix2) {
|
|
35189
|
-
const
|
|
35100
|
+
const names2 = [];
|
|
35190
35101
|
let code2 = tpl[0];
|
|
35191
35102
|
|
|
35192
35103
|
for (let i = 1; i < tpl.length; i++) {
|
|
35193
35104
|
const value = `${prefix2}${i - 1}`;
|
|
35194
|
-
|
|
35105
|
+
names2.push(value);
|
|
35195
35106
|
code2 += value + tpl[i];
|
|
35196
35107
|
}
|
|
35197
35108
|
|
|
35198
35109
|
return {
|
|
35199
|
-
names,
|
|
35110
|
+
names: names2,
|
|
35200
35111
|
code: code2,
|
|
35201
35112
|
};
|
|
35202
35113
|
}
|
|
@@ -35939,7 +35850,7 @@ var TraceMap = class {
|
|
|
35939
35850
|
const {
|
|
35940
35851
|
version,
|
|
35941
35852
|
file: file2,
|
|
35942
|
-
names,
|
|
35853
|
+
names: names2,
|
|
35943
35854
|
sourceRoot,
|
|
35944
35855
|
sources,
|
|
35945
35856
|
sourcesContent,
|
|
@@ -35947,7 +35858,7 @@ var TraceMap = class {
|
|
|
35947
35858
|
|
|
35948
35859
|
this.version = version;
|
|
35949
35860
|
this.file = file2;
|
|
35950
|
-
this.names =
|
|
35861
|
+
this.names = names2 || [];
|
|
35951
35862
|
this.sourceRoot = sourceRoot;
|
|
35952
35863
|
this.sources = sources;
|
|
35953
35864
|
this.sourcesContent = sourcesContent;
|
|
@@ -36016,11 +35927,11 @@ function originalPositionFor(map, needle) {
|
|
|
36016
35927
|
return OMapping(null, null, null, null);
|
|
36017
35928
|
|
|
36018
35929
|
const {
|
|
36019
|
-
names,
|
|
35930
|
+
names: names2,
|
|
36020
35931
|
resolvedSources,
|
|
36021
35932
|
} = map;
|
|
36022
35933
|
|
|
36023
|
-
return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ?
|
|
35934
|
+
return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names2[segment[NAMES_INDEX]] : null);
|
|
36024
35935
|
}
|
|
36025
35936
|
|
|
36026
35937
|
function OMapping(source, line, column, name) {
|
|
@@ -36119,7 +36030,7 @@ function toDecodedMap(map) {
|
|
|
36119
36030
|
_mappings: mappings,
|
|
36120
36031
|
_sources: sources,
|
|
36121
36032
|
_sourcesContent: sourcesContent,
|
|
36122
|
-
_names:
|
|
36033
|
+
_names: names2,
|
|
36123
36034
|
_ignoreList: ignoreList,
|
|
36124
36035
|
} = cast22(map);
|
|
36125
36036
|
|
|
@@ -36127,7 +36038,7 @@ function toDecodedMap(map) {
|
|
|
36127
36038
|
return {
|
|
36128
36039
|
version: 3,
|
|
36129
36040
|
file: map.file || void 0,
|
|
36130
|
-
names:
|
|
36041
|
+
names: names2.array,
|
|
36131
36042
|
sourceRoot: map.sourceRoot || void 0,
|
|
36132
36043
|
sources: sources.array,
|
|
36133
36044
|
sourcesContent,
|
|
@@ -36154,7 +36065,7 @@ function allMappings(map) {
|
|
|
36154
36065
|
const {
|
|
36155
36066
|
_mappings: mappings,
|
|
36156
36067
|
_sources: sources,
|
|
36157
|
-
_names:
|
|
36068
|
+
_names: names2,
|
|
36158
36069
|
} = cast22(map);
|
|
36159
36070
|
|
|
36160
36071
|
for (let i = 0; i < mappings.length; i++) {
|
|
@@ -36178,7 +36089,7 @@ function allMappings(map) {
|
|
|
36178
36089
|
};
|
|
36179
36090
|
|
|
36180
36091
|
if (seg.length === 5)
|
|
36181
|
-
name =
|
|
36092
|
+
name = names2.array[seg[NAMES_INDEX2]];
|
|
36182
36093
|
}
|
|
36183
36094
|
|
|
36184
36095
|
out.push({
|
|
@@ -36198,7 +36109,7 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
|
|
|
36198
36109
|
_mappings: mappings,
|
|
36199
36110
|
_sources: sources,
|
|
36200
36111
|
_sourcesContent: sourcesContent,
|
|
36201
|
-
_names:
|
|
36112
|
+
_names: names2,
|
|
36202
36113
|
} = cast22(map);
|
|
36203
36114
|
|
|
36204
36115
|
const line = getIndex(mappings, genLine);
|
|
@@ -36214,7 +36125,7 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
|
|
|
36214
36125
|
assert3(sourceLine);
|
|
36215
36126
|
assert3(sourceColumn);
|
|
36216
36127
|
const sourcesIndex = put(sources, source);
|
|
36217
|
-
const namesIndex = name ? put(
|
|
36128
|
+
const namesIndex = name ? put(names2, name) : NO_NAME;
|
|
36218
36129
|
|
|
36219
36130
|
if (sourcesIndex === sourcesContent.length)
|
|
36220
36131
|
sourcesContent[sourcesIndex] = content != null ? content : null;
|
|
@@ -36925,14 +36836,14 @@ var nodes = {
|
|
|
36925
36836
|
VariableDeclaration(node) {
|
|
36926
36837
|
for (let i = 0; i < node.declarations.length; i++) {
|
|
36927
36838
|
const declar = node.declarations[i];
|
|
36928
|
-
let
|
|
36839
|
+
let enabled2 = isHelper(declar.id) && !isType2(declar.init);
|
|
36929
36840
|
|
|
36930
|
-
if (!
|
|
36841
|
+
if (!enabled2 && declar.init) {
|
|
36931
36842
|
const state = crawl(declar.init);
|
|
36932
|
-
|
|
36843
|
+
enabled2 = isHelper(declar.init) && state.hasCall || state.hasFunction;
|
|
36933
36844
|
}
|
|
36934
36845
|
|
|
36935
|
-
if (
|
|
36846
|
+
if (enabled2) {
|
|
36936
36847
|
return 1 | 2;
|
|
36937
36848
|
}
|
|
36938
36849
|
}
|
|
@@ -38984,18 +38895,14 @@ function ExportNamespaceSpecifier2(node) {
|
|
|
38984
38895
|
}
|
|
38985
38896
|
|
|
38986
38897
|
function _printAttributes(node, hasPreviousBrace) {
|
|
38987
|
-
const {
|
|
38988
|
-
|
|
38989
|
-
const {attributes, assertions} = node;
|
|
38898
|
+
const {attributes} = node;
|
|
38990
38899
|
|
|
38991
|
-
|
|
38992
|
-
|
|
38993
|
-
this.word(useAssertKeyword ? 'assert' : 'with');
|
|
38900
|
+
this.word('with');
|
|
38994
38901
|
this.space();
|
|
38995
38902
|
const occurrenceCount = hasPreviousBrace ? 1 : 0;
|
|
38996
38903
|
this.token('{', void 0, occurrenceCount);
|
|
38997
38904
|
this.space();
|
|
38998
|
-
this.printList(attributes
|
|
38905
|
+
this.printList(attributes, this.shouldPrintTrailingComma('}'));
|
|
38999
38906
|
this.space();
|
|
39000
38907
|
this.token('}', void 0, occurrenceCount);
|
|
39001
38908
|
}
|
|
@@ -39014,7 +38921,7 @@ function ExportAllDeclaration2(node) {
|
|
|
39014
38921
|
this.word('from');
|
|
39015
38922
|
this.space();
|
|
39016
38923
|
|
|
39017
|
-
if (node.attributes?.length
|
|
38924
|
+
if (node.attributes?.length) {
|
|
39018
38925
|
this.print(node.source, true);
|
|
39019
38926
|
this.space();
|
|
39020
38927
|
this._printAttributes(node, false);
|
|
@@ -39087,7 +38994,7 @@ function ExportNamedDeclaration2(node) {
|
|
|
39087
38994
|
this.word('from');
|
|
39088
38995
|
this.space();
|
|
39089
38996
|
|
|
39090
|
-
if (node.attributes?.length
|
|
38997
|
+
if (node.attributes?.length) {
|
|
39091
38998
|
this.print(node.source, true);
|
|
39092
38999
|
this.space();
|
|
39093
39000
|
this._printAttributes(node, hasBrace);
|
|
@@ -39173,7 +39080,7 @@ function ImportDeclaration2(node) {
|
|
|
39173
39080
|
this.space();
|
|
39174
39081
|
}
|
|
39175
39082
|
|
|
39176
|
-
if (node.attributes?.length
|
|
39083
|
+
if (node.attributes?.length) {
|
|
39177
39084
|
this.print(node.source, true);
|
|
39178
39085
|
this.space();
|
|
39179
39086
|
this._printAttributes(node, hasBrace);
|
|
@@ -40926,15 +40833,11 @@ function TSModuleBlock2(node) {
|
|
|
40926
40833
|
}
|
|
40927
40834
|
|
|
40928
40835
|
function TSImportType2(node) {
|
|
40929
|
-
const {
|
|
40930
|
-
argument,
|
|
40931
|
-
qualifier,
|
|
40932
|
-
options,
|
|
40933
|
-
} = node;
|
|
40836
|
+
const {qualifier, options} = node;
|
|
40934
40837
|
|
|
40935
40838
|
this.word('import');
|
|
40936
40839
|
this.tokenChar(40);
|
|
40937
|
-
this.print(
|
|
40840
|
+
this.print(node.source);
|
|
40938
40841
|
|
|
40939
40842
|
if (options) {
|
|
40940
40843
|
this.tokenChar(44);
|
|
@@ -42414,7 +42317,6 @@ function normalizeOptions(code2, opts, ast) {
|
|
|
42414
42317
|
minimal: true,
|
|
42415
42318
|
}, opts.jsescOption),
|
|
42416
42319
|
topicToken: opts.topicToken,
|
|
42417
|
-
importAttributesKeyword: opts.importAttributesKeyword,
|
|
42418
42320
|
};
|
|
42419
42321
|
|
|
42420
42322
|
if (format.minified) {
|
|
@@ -42461,10 +42363,353 @@ function generate(ast, opts = {}, code2) {
|
|
|
42461
42363
|
return printer.generate(ast);
|
|
42462
42364
|
}
|
|
42463
42365
|
|
|
42464
|
-
// ../babel-babel/
|
|
42465
|
-
|
|
42366
|
+
// ../babel-babel/node_modules/obug/dist/core.js
|
|
42367
|
+
function coerce(value) {
|
|
42368
|
+
if (value instanceof Error)
|
|
42369
|
+
return value.stack || value.message;
|
|
42370
|
+
|
|
42371
|
+
return value;
|
|
42372
|
+
}
|
|
42373
|
+
|
|
42374
|
+
function selectColor(colors2, namespace) {
|
|
42375
|
+
let hash = 0;
|
|
42376
|
+
|
|
42377
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
42378
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
42379
|
+
hash |= 0;
|
|
42380
|
+
}
|
|
42381
|
+
|
|
42382
|
+
return colors2[Math.abs(hash) % colors2.length];
|
|
42383
|
+
}
|
|
42384
|
+
|
|
42385
|
+
function matchesTemplate(search, template) {
|
|
42386
|
+
let searchIndex = 0;
|
|
42387
|
+
let templateIndex = 0;
|
|
42388
|
+
let starIndex = -1;
|
|
42389
|
+
let matchIndex = 0;
|
|
42390
|
+
|
|
42391
|
+
while (searchIndex < search.length)
|
|
42392
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*'))
|
|
42393
|
+
if (template[templateIndex] === '*') {
|
|
42394
|
+
starIndex = templateIndex;
|
|
42395
|
+
matchIndex = searchIndex;
|
|
42396
|
+
templateIndex++;
|
|
42397
|
+
} else {
|
|
42398
|
+
searchIndex++;
|
|
42399
|
+
templateIndex++;
|
|
42400
|
+
} else if (starIndex !== -1) {
|
|
42401
|
+
templateIndex = starIndex + 1;
|
|
42402
|
+
matchIndex++;
|
|
42403
|
+
searchIndex = matchIndex;
|
|
42404
|
+
} else
|
|
42405
|
+
return false;
|
|
42406
|
+
|
|
42407
|
+
|
|
42408
|
+
while (templateIndex < template.length && template[templateIndex] === '*')
|
|
42409
|
+
templateIndex++;
|
|
42410
|
+
|
|
42411
|
+
return templateIndex === template.length;
|
|
42412
|
+
}
|
|
42413
|
+
|
|
42414
|
+
function humanize(value) {
|
|
42415
|
+
if (value >= 1e3)
|
|
42416
|
+
return `${(value / 1e3).toFixed(1)}s`;
|
|
42417
|
+
|
|
42418
|
+
return `${value}ms`;
|
|
42419
|
+
}
|
|
42420
|
+
|
|
42421
|
+
var globalNamespaces = '';
|
|
42422
|
+
|
|
42423
|
+
function createDebug(namespace, options) {
|
|
42424
|
+
let prevTime;
|
|
42425
|
+
let enableOverride;
|
|
42426
|
+
let namespacesCache;
|
|
42427
|
+
let enabledCache;
|
|
42428
|
+
|
|
42429
|
+
const debug2 = (...args) => {
|
|
42430
|
+
if (!debug2.enabled)
|
|
42431
|
+
return;
|
|
42432
|
+
|
|
42433
|
+
const curr = Date.now();
|
|
42434
|
+
const diff = curr - (prevTime || curr);
|
|
42435
|
+
|
|
42436
|
+
prevTime = curr;
|
|
42437
|
+
args[0] = coerce(args[0]);
|
|
42438
|
+
|
|
42439
|
+
if (typeof args[0] !== 'string')
|
|
42440
|
+
args.unshift('%O');
|
|
42441
|
+
|
|
42442
|
+
let index2 = 0;
|
|
42443
|
+
|
|
42444
|
+
args[0] = args[0].replace(/%([a-z%])/gi, (match, format) => {
|
|
42445
|
+
if (match === '%%')
|
|
42446
|
+
return '%';
|
|
42447
|
+
|
|
42448
|
+
index2++;
|
|
42449
|
+
const formatter = options.formatters[format];
|
|
42450
|
+
|
|
42451
|
+
if (typeof formatter === 'function') {
|
|
42452
|
+
const value = args[index2];
|
|
42453
|
+
|
|
42454
|
+
match = formatter.call(debug2, value);
|
|
42455
|
+
args.splice(index2, 1);
|
|
42456
|
+
index2--;
|
|
42457
|
+
}
|
|
42458
|
+
|
|
42459
|
+
return match;
|
|
42460
|
+
});
|
|
42461
|
+
options.formatArgs.call(debug2, diff, args);
|
|
42462
|
+
debug2.log(...args);
|
|
42463
|
+
};
|
|
42464
|
+
|
|
42465
|
+
debug2.extend = function(namespace$1, delimiter = ':') {
|
|
42466
|
+
return createDebug(this.namespace + delimiter + namespace$1, {
|
|
42467
|
+
useColors: this.useColors,
|
|
42468
|
+
color: this.color,
|
|
42469
|
+
formatArgs: this.formatArgs,
|
|
42470
|
+
formatters: this.formatters,
|
|
42471
|
+
inspectOpts: this.inspectOpts,
|
|
42472
|
+
log: this.log,
|
|
42473
|
+
humanize: this.humanize,
|
|
42474
|
+
});
|
|
42475
|
+
};
|
|
42476
|
+
Object.assign(debug2, options);
|
|
42477
|
+
debug2.namespace = namespace;
|
|
42478
|
+
Object.defineProperty(debug2, 'enabled', {
|
|
42479
|
+
enumerable: true,
|
|
42480
|
+
configurable: false,
|
|
42481
|
+
get: () => {
|
|
42482
|
+
if (enableOverride != null)
|
|
42483
|
+
return enableOverride;
|
|
42484
|
+
|
|
42485
|
+
if (namespacesCache !== globalNamespaces) {
|
|
42486
|
+
namespacesCache = globalNamespaces;
|
|
42487
|
+
enabledCache = enabled(namespace);
|
|
42488
|
+
}
|
|
42489
|
+
|
|
42490
|
+
return enabledCache;
|
|
42491
|
+
},
|
|
42492
|
+
set: (v) => {
|
|
42493
|
+
enableOverride = v;
|
|
42494
|
+
},
|
|
42495
|
+
});
|
|
42496
|
+
return debug2;
|
|
42497
|
+
}
|
|
42466
42498
|
|
|
42499
|
+
var names = [];
|
|
42500
|
+
var skips = [];
|
|
42501
|
+
|
|
42502
|
+
function enable(namespaces$1) {
|
|
42503
|
+
globalNamespaces = namespaces$1;
|
|
42504
|
+
names = [];
|
|
42505
|
+
skips = [];
|
|
42506
|
+
const split = globalNamespaces
|
|
42507
|
+
.trim()
|
|
42508
|
+
.replace(/\s+/g, ',')
|
|
42509
|
+
.split(',')
|
|
42510
|
+
.filter(Boolean);
|
|
42511
|
+
|
|
42512
|
+
for (const ns of split)
|
|
42513
|
+
if (ns[0] === '-')
|
|
42514
|
+
skips.push(ns.slice(1));
|
|
42515
|
+
else
|
|
42516
|
+
names.push(ns);
|
|
42517
|
+
}
|
|
42518
|
+
|
|
42519
|
+
function enabled(name) {
|
|
42520
|
+
for (const skip2 of skips)
|
|
42521
|
+
if (matchesTemplate(name, skip2))
|
|
42522
|
+
return false;
|
|
42523
|
+
|
|
42524
|
+
for (const ns of names)
|
|
42525
|
+
if (matchesTemplate(name, ns))
|
|
42526
|
+
return true;
|
|
42527
|
+
|
|
42528
|
+
return false;
|
|
42529
|
+
}
|
|
42530
|
+
|
|
42531
|
+
// ../babel-babel/node_modules/obug/dist/node.js
|
|
42532
|
+
var import_node_tty = require('tty');
|
|
42533
|
+
var import_node_util = require('util');
|
|
42534
|
+
|
|
42535
|
+
var colors = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [
|
|
42536
|
+
20,
|
|
42537
|
+
21,
|
|
42538
|
+
26,
|
|
42539
|
+
27,
|
|
42540
|
+
32,
|
|
42541
|
+
33,
|
|
42542
|
+
38,
|
|
42543
|
+
39,
|
|
42544
|
+
40,
|
|
42545
|
+
41,
|
|
42546
|
+
42,
|
|
42547
|
+
43,
|
|
42548
|
+
44,
|
|
42549
|
+
45,
|
|
42550
|
+
56,
|
|
42551
|
+
57,
|
|
42552
|
+
62,
|
|
42553
|
+
63,
|
|
42554
|
+
68,
|
|
42555
|
+
69,
|
|
42556
|
+
74,
|
|
42557
|
+
75,
|
|
42558
|
+
76,
|
|
42559
|
+
77,
|
|
42560
|
+
78,
|
|
42561
|
+
79,
|
|
42562
|
+
80,
|
|
42563
|
+
81,
|
|
42564
|
+
92,
|
|
42565
|
+
93,
|
|
42566
|
+
98,
|
|
42567
|
+
99,
|
|
42568
|
+
112,
|
|
42569
|
+
113,
|
|
42570
|
+
128,
|
|
42571
|
+
129,
|
|
42572
|
+
134,
|
|
42573
|
+
135,
|
|
42574
|
+
148,
|
|
42575
|
+
149,
|
|
42576
|
+
160,
|
|
42577
|
+
161,
|
|
42578
|
+
162,
|
|
42579
|
+
163,
|
|
42580
|
+
164,
|
|
42581
|
+
165,
|
|
42582
|
+
166,
|
|
42583
|
+
167,
|
|
42584
|
+
168,
|
|
42585
|
+
169,
|
|
42586
|
+
170,
|
|
42587
|
+
171,
|
|
42588
|
+
172,
|
|
42589
|
+
173,
|
|
42590
|
+
178,
|
|
42591
|
+
179,
|
|
42592
|
+
184,
|
|
42593
|
+
185,
|
|
42594
|
+
196,
|
|
42595
|
+
197,
|
|
42596
|
+
198,
|
|
42597
|
+
199,
|
|
42598
|
+
200,
|
|
42599
|
+
201,
|
|
42600
|
+
202,
|
|
42601
|
+
203,
|
|
42602
|
+
204,
|
|
42603
|
+
205,
|
|
42604
|
+
206,
|
|
42605
|
+
207,
|
|
42606
|
+
208,
|
|
42607
|
+
209,
|
|
42608
|
+
214,
|
|
42609
|
+
215,
|
|
42610
|
+
220,
|
|
42611
|
+
221,
|
|
42612
|
+
] : [
|
|
42613
|
+
6,
|
|
42614
|
+
2,
|
|
42615
|
+
3,
|
|
42616
|
+
4,
|
|
42617
|
+
5,
|
|
42618
|
+
1,
|
|
42619
|
+
];
|
|
42620
|
+
|
|
42621
|
+
var inspectOpts = Object
|
|
42622
|
+
.keys(process.env)
|
|
42623
|
+
.filter((key) => /^debug_/i.test(key))
|
|
42624
|
+
.reduce((obj, key) => {
|
|
42625
|
+
const prop = key
|
|
42626
|
+
.slice(6)
|
|
42627
|
+
.toLowerCase()
|
|
42628
|
+
.replace(/_([a-z])/g, (_, k) => k.toUpperCase());
|
|
42629
|
+
let value = process.env[key];
|
|
42630
|
+
const lowerCase = typeof value === 'string' && value.toLowerCase();
|
|
42631
|
+
|
|
42632
|
+
if (value === 'null')
|
|
42633
|
+
value = null;
|
|
42634
|
+
else if (lowerCase === 'yes' || lowerCase === 'on' || lowerCase === 'true' || lowerCase === 'enabled')
|
|
42635
|
+
value = true;
|
|
42636
|
+
else if (lowerCase === 'no' || lowerCase === 'off' || lowerCase === 'false' || lowerCase === 'disabled')
|
|
42637
|
+
value = false;
|
|
42638
|
+
else
|
|
42639
|
+
value = Number(value);
|
|
42640
|
+
|
|
42641
|
+
obj[prop] = value;
|
|
42642
|
+
return obj;
|
|
42643
|
+
}, {});
|
|
42644
|
+
|
|
42645
|
+
function useColors() {
|
|
42646
|
+
return 'colors' in inspectOpts ? Boolean(inspectOpts.colors) : (0, import_node_tty.isatty)(process.stderr.fd);
|
|
42647
|
+
}
|
|
42648
|
+
|
|
42649
|
+
function getDate() {
|
|
42650
|
+
if (inspectOpts.hideDate)
|
|
42651
|
+
return '';
|
|
42652
|
+
|
|
42653
|
+
return `${ /* @__PURE__ */new Date().toISOString()} `;
|
|
42654
|
+
}
|
|
42655
|
+
|
|
42656
|
+
function formatArgs(diff, args) {
|
|
42657
|
+
const {namespace: name, useColors: useColors$1} = this;
|
|
42658
|
+
|
|
42659
|
+
if (useColors$1) {
|
|
42660
|
+
const c = this.color;
|
|
42661
|
+
const colorCode = `\x1B[3${c < 8 ? c : `8;5;${c}`}`;
|
|
42662
|
+
const prefix2 = ` ${colorCode};1m${name} \x1B[0m`;
|
|
42663
|
+
|
|
42664
|
+
args[0] = prefix2 + args[0]
|
|
42665
|
+
.split('\n')
|
|
42666
|
+
.join(`
|
|
42667
|
+
${prefix2}`);
|
|
42668
|
+
args.push(`${colorCode}m+${this.humanize(diff)}\x1B[0m`);
|
|
42669
|
+
} else
|
|
42670
|
+
args[0] = `${getDate()}${name} ${args[0]}`;
|
|
42671
|
+
}
|
|
42672
|
+
|
|
42673
|
+
function log(...args) {
|
|
42674
|
+
process.stderr.write(`${(0, import_node_util.formatWithOptions)(this.inspectOpts, ...args)}
|
|
42675
|
+
`);
|
|
42676
|
+
}
|
|
42677
|
+
|
|
42678
|
+
var defaultOptions = {
|
|
42679
|
+
useColors: useColors(),
|
|
42680
|
+
formatArgs,
|
|
42681
|
+
formatters: {
|
|
42682
|
+
o(v) {
|
|
42683
|
+
this.inspectOpts.colors = this.useColors;
|
|
42684
|
+
return (0, import_node_util.inspect)(v, this
|
|
42685
|
+
.inspectOpts)
|
|
42686
|
+
.split('\n')
|
|
42687
|
+
.map((str) => str.trim())
|
|
42688
|
+
.join(' ');
|
|
42689
|
+
},
|
|
42690
|
+
O(v) {
|
|
42691
|
+
this.inspectOpts.colors = this.useColors;
|
|
42692
|
+
return (0, import_node_util.inspect)(v, this.inspectOpts);
|
|
42693
|
+
},
|
|
42694
|
+
},
|
|
42695
|
+
inspectOpts,
|
|
42696
|
+
log,
|
|
42697
|
+
humanize,
|
|
42698
|
+
};
|
|
42699
|
+
|
|
42700
|
+
function createDebug2(namespace, options) {
|
|
42701
|
+
var _ref;
|
|
42702
|
+
const color = (_ref = options && options.color) !== null && _ref !== void 0 ? _ref : selectColor(colors, namespace);
|
|
42703
|
+
|
|
42704
|
+
return createDebug(namespace, Object.assign(
|
|
42705
|
+
defaultOptions,{color},
|
|
42706
|
+
options,
|
|
42707
|
+
));
|
|
42708
|
+
}
|
|
42709
|
+
|
|
42710
|
+
enable(process.env.DEBUG || '');
|
|
42467
42711
|
// ../babel-babel/packages/babel-helper-globals/data/builtin-lower.json
|
|
42712
|
+
|
|
42468
42713
|
var builtin_lower_default = [
|
|
42469
42714
|
'decodeURI',
|
|
42470
42715
|
'decodeURIComponent',
|
|
@@ -46257,17 +46502,23 @@ function _evaluate(path, state) {
|
|
|
46257
46502
|
return;
|
|
46258
46503
|
}
|
|
46259
46504
|
|
|
46260
|
-
|
|
46261
|
-
|
|
46262
|
-
if (resolved === path) {
|
|
46505
|
+
if (!binding) {
|
|
46263
46506
|
deopt(path, state);
|
|
46264
46507
|
return;
|
|
46265
46508
|
}
|
|
46266
46509
|
|
|
46267
|
-
const
|
|
46510
|
+
const bindingPath = binding.path;
|
|
46511
|
+
|
|
46512
|
+
if (!bindingPath.isVariableDeclarator()) {
|
|
46513
|
+
deopt(bindingPath, state);
|
|
46514
|
+
return;
|
|
46515
|
+
}
|
|
46516
|
+
|
|
46517
|
+
const initPath = bindingPath.get('init');
|
|
46518
|
+
const value = evaluateCached(initPath, state);
|
|
46268
46519
|
|
|
46269
46520
|
if (typeof value === 'object' && value !== null && binding.references > 1) {
|
|
46270
|
-
deopt(
|
|
46521
|
+
deopt(initPath, state);
|
|
46271
46522
|
return;
|
|
46272
46523
|
}
|
|
46273
46524
|
|
|
@@ -48251,7 +48502,7 @@ function addComments2(type, comments) {
|
|
|
48251
48502
|
|
|
48252
48503
|
var {validate: validate3} = lib_exports;
|
|
48253
48504
|
|
|
48254
|
-
var debug = (
|
|
48505
|
+
var debug = createDebug2('babel');
|
|
48255
48506
|
var REMOVED = 1 << 0;
|
|
48256
48507
|
var SHOULD_STOP = 1 << 1;
|
|
48257
48508
|
var SHOULD_SKIP = 1 << 2;
|