vite-plugin-millennium-skin 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +104 -104
- package/package.json +1 -1
- package/src/ts/index.ts +3 -1
package/dist/index.js
CHANGED
|
@@ -65,7 +65,7 @@ function we() {
|
|
|
65
65
|
if (ao) return v;
|
|
66
66
|
ao = 1, Object.defineProperty(v, "__esModule", {
|
|
67
67
|
value: !0
|
|
68
|
-
}), v.isAccessor = xn, v.isAnyTypeAnnotation = rs, v.isArgumentPlaceholder = Js, v.isArrayExpression = c, v.isArrayPattern = Et, v.isArrayTypeAnnotation = ie, v.isArrowFunctionExpression = st, v.isAssignmentExpression = o, v.isAssignmentPattern = ct, v.isAwaitExpression = zr, v.isBigIntLiteral = Wt, v.isBinary = Ii, v.isBinaryExpression = S, v.isBindExpression = Ys, v.isBlock = wi, v.isBlockParent = Ci, v.isBlockStatement = L, v.isBooleanLiteral = Ne, v.isBooleanLiteralTypeAnnotation = Gt, v.isBooleanTypeAnnotation = ss, v.isBreakStatement = k, v.isCallExpression = O, v.isCatchClause = F, v.isClass = mn, v.isClassAccessorProperty = Qr, v.isClassBody = At, v.isClassDeclaration = vt, v.isClassExpression = gt, v.isClassImplements = as, v.isClassMethod = $, v.isClassPrivateMethod = kt, v.isClassPrivateProperty = Zr, v.isClassProperty = Gr, v.isCompletionStatement = f, v.isConditional = h, v.isConditionalExpression = j, v.isContinueStatement = R, v.isDebuggerStatement = Z, v.isDecimalLiteral = zs, v.isDeclaration = rn, v.isDeclareClass = ns, v.isDeclareExportAllDeclaration = cs, v.isDeclareExportDeclaration = Bt, v.isDeclareFunction = os, v.isDeclareInterface = ls, v.isDeclareModule = us, v.isDeclareModuleExports = pt, v.isDeclareOpaqueType = Qt, v.isDeclareTypeAlias = Ze, v.isDeclareVariable = _t, v.isDeclaredPredicate = $e, v.isDecorator = qt, v.isDirective = M, v.isDirectiveLiteral = w, v.isDoExpression = Xs, v.isDoWhileStatement =
|
|
68
|
+
}), v.isAccessor = xn, v.isAnyTypeAnnotation = rs, v.isArgumentPlaceholder = Js, v.isArrayExpression = c, v.isArrayPattern = Et, v.isArrayTypeAnnotation = ie, v.isArrowFunctionExpression = st, v.isAssignmentExpression = o, v.isAssignmentPattern = ct, v.isAwaitExpression = zr, v.isBigIntLiteral = Wt, v.isBinary = Ii, v.isBinaryExpression = S, v.isBindExpression = Ys, v.isBlock = wi, v.isBlockParent = Ci, v.isBlockStatement = L, v.isBooleanLiteral = Ne, v.isBooleanLiteralTypeAnnotation = Gt, v.isBooleanTypeAnnotation = ss, v.isBreakStatement = k, v.isCallExpression = O, v.isCatchClause = F, v.isClass = mn, v.isClassAccessorProperty = Qr, v.isClassBody = At, v.isClassDeclaration = vt, v.isClassExpression = gt, v.isClassImplements = as, v.isClassMethod = $, v.isClassPrivateMethod = kt, v.isClassPrivateProperty = Zr, v.isClassProperty = Gr, v.isCompletionStatement = f, v.isConditional = h, v.isConditionalExpression = j, v.isContinueStatement = R, v.isDebuggerStatement = Z, v.isDecimalLiteral = zs, v.isDeclaration = rn, v.isDeclareClass = ns, v.isDeclareExportAllDeclaration = cs, v.isDeclareExportDeclaration = Bt, v.isDeclareFunction = os, v.isDeclareInterface = ls, v.isDeclareModule = us, v.isDeclareModuleExports = pt, v.isDeclareOpaqueType = Qt, v.isDeclareTypeAlias = Ze, v.isDeclareVariable = _t, v.isDeclaredPredicate = $e, v.isDecorator = qt, v.isDirective = M, v.isDirectiveLiteral = w, v.isDoExpression = Xs, v.isDoWhileStatement = U, v.isEmptyStatement = V, v.isEmptyTypeAnnotation = at, v.isEnumBody = In, v.isEnumBooleanBody = mt, v.isEnumBooleanMember = Ds, v.isEnumDeclaration = yt, v.isEnumDefaultedMember = nr, v.isEnumMember = Nn, v.isEnumNumberBody = jt, v.isEnumNumberMember = Kt, v.isEnumStringBody = Os, v.isEnumStringMember = Ls, v.isEnumSymbolBody = Ut, v.isExistsTypeAnnotation = Ue, v.isExportAllDeclaration = It, v.isExportDeclaration = Tn, v.isExportDefaultDeclaration = Nt, v.isExportDefaultSpecifier = $s, v.isExportNamedDeclaration = Be, v.isExportNamespaceSpecifier = zt, v.isExportSpecifier = He, v.isExpression = vi, v.isExpressionStatement = A, v.isExpressionWrapper = _, v.isFile = Y, v.isFlow = Pn, v.isFlowBaseAnnotation = An, v.isFlowDeclaration = gn, v.isFlowPredicate = vn, v.isFlowType = En, v.isFor = ee, v.isForInStatement = te, v.isForOfStatement = Ct, v.isForStatement = se, v.isForXStatement = Ae, v.isFunction = Ce, v.isFunctionDeclaration = Te, v.isFunctionExpression = be, v.isFunctionParameter = sn, v.isFunctionParent = tt, v.isFunctionTypeAnnotation = et, v.isFunctionTypeParam = ps, v.isGenericTypeAnnotation = fs, v.isIdentifier = ve, v.isIfStatement = ge, v.isImmutable = un, v.isImport = $t, v.isImportAttribute = ts, v.isImportDeclaration = Ge, v.isImportDefaultSpecifier = _e, v.isImportExpression = wt, v.isImportNamespaceSpecifier = it, v.isImportOrExportDeclaration = Yi, v.isImportSpecifier = Qe, v.isIndexedAccessType = H, v.isInferredPredicate = ds, v.isInterfaceDeclaration = ft, v.isInterfaceExtends = hs, v.isInterfaceTypeAnnotation = ys, v.isInterpreterDirective = x, v.isIntersectionTypeAnnotation = Zt, v.isJSX = Cn, v.isJSXAttribute = or, v.isJSXClosingElement = Ms, v.isJSXClosingFragment = dr, v.isJSXElement = _s, v.isJSXEmptyExpression = Bs, v.isJSXExpressionContainer = Fs, v.isJSXFragment = fr, v.isJSXIdentifier = Rs, v.isJSXMemberExpression = ur, v.isJSXNamespacedName = cr, v.isJSXOpeningElement = js, v.isJSXOpeningFragment = Ks, v.isJSXSpreadAttribute = Us, v.isJSXSpreadChild = lr, v.isJSXText = pr, v.isLVal = nn, v.isLabeledStatement = ue, v.isLiteral = ln, v.isLogicalExpression = Je, v.isLoop = b, v.isMemberExpression = z, v.isMetaProperty = Ot, v.isMethod = pn, v.isMiscellaneous = wn, v.isMixedTypeAnnotation = ms, v.isModuleDeclaration = Rn, v.isModuleExpression = Hs, v.isModuleSpecifier = Sn, v.isNewExpression = ne, v.isNoop = Vs, v.isNullLiteral = je, v.isNullLiteralTypeAnnotation = is, v.isNullableTypeAnnotation = Ke, v.isNumberLiteral = Mn, v.isNumberLiteralTypeAnnotation = Ts, v.isNumberTypeAnnotation = Ft, v.isNumericLiteral = q, v.isObjectExpression = Q, v.isObjectMember = fn, v.isObjectMethod = ce, v.isObjectPattern = $r, v.isObjectProperty = ye, v.isObjectTypeAnnotation = Ss, v.isObjectTypeCallProperty = dt, v.isObjectTypeIndexer = tr, v.isObjectTypeInternalSlot = er, v.isObjectTypeProperty = xs, v.isObjectTypeSpreadProperty = bs, v.isOpaqueType = Rt, v.isOptionalCallExpression = Hr, v.isOptionalIndexedAccessType = ks, v.isOptionalMemberExpression = Ht, v.isParenthesizedExpression = Oe, v.isPattern = yn, v.isPatternLike = an, v.isPipelineBareFunction = yr, v.isPipelinePrimaryTopicReference = Qs, v.isPipelineTopicExpression = ot, v.isPlaceholder = qs, v.isPrivate = bn, v.isPrivateName = Mt, v.isProgram = W, v.isProperty = dn, v.isPureish = tn, v.isQualifiedTypeIdentifier = rr, v.isRecordExpression = hr, v.isRegExpLiteral = Me, v.isRegexLiteral = _n, v.isRestElement = Se, v.isRestProperty = Bn, v.isReturnStatement = me, v.isScopable = Ni, v.isSequenceExpression = Ee, v.isSpreadElement = Dt, v.isSpreadProperty = Fn, v.isStandardized = gi, v.isStatement = Oi, v.isStaticBlock = es, v.isStringLiteral = ae, v.isStringLiteralTypeAnnotation = sr, v.isStringTypeAnnotation = nt, v.isSuper = Fe, v.isSwitchCase = De, v.isSwitchStatement = re, v.isSymbolTypeAnnotation = Ps, v.isTSAnyKeyword = D, v.isTSArrayType = vr, v.isTSAsExpression = Yr, v.isTSBaseType = kn, v.isTSBigIntKeyword = J, v.isTSBooleanKeyword = B, v.isTSCallSignatureDeclaration = u, v.isTSConditionalType = Lr, v.isTSConstructSignatureDeclaration = T, v.isTSConstructorType = br, v.isTSDeclareFunction = e, v.isTSDeclareMethod = r, v.isTSEntityName = on, v.isTSEnumBody = ui, v.isTSEnumDeclaration = ci, v.isTSEnumMember = pi, v.isTSExportAssignment = Si, v.isTSExpressionWithTypeArguments = Ur, v.isTSExternalModuleReference = mi, v.isTSFunctionType = xr, v.isTSImportEqualsDeclaration = yi, v.isTSImportType = hi, v.isTSIndexSignature = C, v.isTSIndexedAccessType = Br, v.isTSInferType = kr, v.isTSInstantiationExpression = Jr, v.isTSInterfaceBody = Vr, v.isTSInterfaceDeclaration = Kr, v.isTSIntersectionType = Dr, v.isTSIntrinsicKeyword = X, v.isTSLiteralType = jr, v.isTSMappedType = Fr, v.isTSMethodSignature = g, v.isTSModuleBlock = di, v.isTSModuleDeclaration = fi, v.isTSNamedTupleMember = wr, v.isTSNamespaceExportDeclaration = xi, v.isTSNeverKeyword = G, v.isTSNonNullExpression = Ti, v.isTSNullKeyword = de, v.isTSNumberKeyword = Pe, v.isTSObjectKeyword = oe, v.isTSOptionalType = Nr, v.isTSParameterProperty = t, v.isTSParenthesizedType = Mr, v.isTSPropertySignature = P, v.isTSQualifiedName = i, v.isTSRestType = Cr, v.isTSSatisfiesExpression = oi, v.isTSStringKeyword = xe, v.isTSSymbolKeyword = We, v.isTSTemplateLiteralType = Rr, v.isTSThisType = Sr, v.isTSTupleType = Ir, v.isTSType = Ln, v.isTSTypeAliasDeclaration = qr, v.isTSTypeAnnotation = bi, v.isTSTypeAssertion = li, v.isTSTypeElement = Dn, v.isTSTypeLiteral = gr, v.isTSTypeOperator = _r, v.isTSTypeParameter = Ai, v.isTSTypeParameterDeclaration = Ei, v.isTSTypeParameterInstantiation = Pi, v.isTSTypePredicate = Er, v.isTSTypeQuery = Ar, v.isTSTypeReference = Pr, v.isTSUndefinedKeyword = qe, v.isTSUnionType = Or, v.isTSUnknownKeyword = mr, v.isTSVoidKeyword = Tr, v.isTaggedTemplateExpression = Xe, v.isTemplateElement = Lt, v.isTemplateLiteral = Xt, v.isTerminatorless = p, v.isThisExpression = le, v.isThisTypeAnnotation = Ve, v.isThrowStatement = St, v.isTopicReference = Gs, v.isTryStatement = pe, v.isTupleExpression = Ws, v.isTupleTypeAnnotation = Es, v.isTypeAlias = gs, v.isTypeAnnotation = ht, v.isTypeCastExpression = ir, v.isTypeParameter = vs, v.isTypeParameterDeclaration = Is, v.isTypeParameterInstantiation = Ns, v.isTypeScript = On, v.isTypeofTypeAnnotation = As, v.isUnaryExpression = xt, v.isUnaryLike = hn, v.isUnionTypeAnnotation = Cs, v.isUpdateExpression = Le, v.isUserWhitespacable = cn, v.isV8IntrinsicIdentifier = Vt, v.isVariableDeclaration = ut, v.isVariableDeclarator = bt, v.isVariance = ar, v.isVoidPattern = y, v.isVoidTypeAnnotation = ws, v.isWhile = N, v.isWhileStatement = Ye, v.isWithStatement = Pt, v.isYieldExpression = Wr;
|
|
69
69
|
var n = Hn(), l = Ui();
|
|
70
70
|
function c(a, s) {
|
|
71
71
|
return !a || a.type !== "ArrayExpression" ? !1 : s == null || (0, n.default)(a, s);
|
|
@@ -106,7 +106,7 @@ function we() {
|
|
|
106
106
|
function Z(a, s) {
|
|
107
107
|
return !a || a.type !== "DebuggerStatement" ? !1 : s == null || (0, n.default)(a, s);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function U(a, s) {
|
|
110
110
|
return !a || a.type !== "DoWhileStatement" ? !1 : s == null || (0, n.default)(a, s);
|
|
111
111
|
}
|
|
112
112
|
function V(a, s) {
|
|
@@ -2288,14 +2288,14 @@ function wu() {
|
|
|
2288
2288
|
hex: (k) => k >= 48 && k <= 57 || k >= 65 && k <= 70 || k >= 97 && k <= 102
|
|
2289
2289
|
};
|
|
2290
2290
|
function o(k, O, F, j, R, Z) {
|
|
2291
|
-
const
|
|
2291
|
+
const U = F, V = j, A = R;
|
|
2292
2292
|
let Y = "", te = null, se = F;
|
|
2293
2293
|
const {
|
|
2294
2294
|
length: Te
|
|
2295
2295
|
} = O;
|
|
2296
2296
|
for (; ; ) {
|
|
2297
2297
|
if (F >= Te) {
|
|
2298
|
-
Z.unterminated(
|
|
2298
|
+
Z.unterminated(U, V, A), Y += O.slice(se, F);
|
|
2299
2299
|
break;
|
|
2300
2300
|
}
|
|
2301
2301
|
const be = O.charCodeAt(F);
|
|
@@ -2316,7 +2316,7 @@ function wu() {
|
|
|
2316
2316
|
curLine: R
|
|
2317
2317
|
} = ve, se = F;
|
|
2318
2318
|
} else be === 8232 || be === 8233 ? (++F, ++R, j = F) : be === 10 || be === 13 ? k === "template" ? (Y += O.slice(se, F) + `
|
|
2319
|
-
`, ++F, be === 13 && O.charCodeAt(F) === 10 && ++F, ++R, se = j = F) : Z.unterminated(
|
|
2319
|
+
`, ++F, be === 13 && O.charCodeAt(F) === 10 && ++F, ++R, se = j = F) : Z.unterminated(U, V, A) : ++F;
|
|
2320
2320
|
}
|
|
2321
2321
|
return {
|
|
2322
2322
|
pos: F,
|
|
@@ -2331,7 +2331,7 @@ function wu() {
|
|
|
2331
2331
|
return k === "template" ? O === 96 || O === 36 && F.charCodeAt(j + 1) === 123 : O === (k === "double" ? 34 : 39);
|
|
2332
2332
|
}
|
|
2333
2333
|
function x(k, O, F, j, R, Z) {
|
|
2334
|
-
const
|
|
2334
|
+
const U = !R;
|
|
2335
2335
|
O++;
|
|
2336
2336
|
const V = (Y) => ({
|
|
2337
2337
|
pos: O,
|
|
@@ -2350,14 +2350,14 @@ function wu() {
|
|
|
2350
2350
|
return {
|
|
2351
2351
|
code: Y,
|
|
2352
2352
|
pos: O
|
|
2353
|
-
} = M(k, O, F, j, 2, !1,
|
|
2353
|
+
} = M(k, O, F, j, 2, !1, U, Z), V(Y === null ? null : String.fromCharCode(Y));
|
|
2354
2354
|
}
|
|
2355
2355
|
case 117: {
|
|
2356
2356
|
let Y;
|
|
2357
2357
|
return {
|
|
2358
2358
|
code: Y,
|
|
2359
2359
|
pos: O
|
|
2360
|
-
} = L(k, O, F, j,
|
|
2360
|
+
} = L(k, O, F, j, U, Z), V(Y === null ? null : String.fromCodePoint(Y));
|
|
2361
2361
|
}
|
|
2362
2362
|
case 116:
|
|
2363
2363
|
return V(" ");
|
|
@@ -2395,18 +2395,18 @@ function wu() {
|
|
|
2395
2395
|
return V(String.fromCharCode(A));
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
|
-
function M(k, O, F, j, R, Z,
|
|
2398
|
+
function M(k, O, F, j, R, Z, U, V) {
|
|
2399
2399
|
const A = O;
|
|
2400
2400
|
let Y;
|
|
2401
2401
|
return {
|
|
2402
2402
|
n: Y,
|
|
2403
2403
|
pos: O
|
|
2404
|
-
} = w(k, O, F, j, 16, R, Z, !1, V, !
|
|
2404
|
+
} = w(k, O, F, j, 16, R, Z, !1, V, !U), Y === null && (U ? V.invalidEscapeSequence(A, F, j) : O = A - 1), {
|
|
2405
2405
|
code: Y,
|
|
2406
2406
|
pos: O
|
|
2407
2407
|
};
|
|
2408
2408
|
}
|
|
2409
|
-
function w(k, O, F, j, R, Z,
|
|
2409
|
+
function w(k, O, F, j, R, Z, U, V, A, Y) {
|
|
2410
2410
|
const te = O, se = R === 16 ? l.hex : l.decBinOct, Te = R === 16 ? c.hex : R === 10 ? c.dec : R === 8 ? c.oct : c.bin;
|
|
2411
2411
|
let be = !1, ve = 0;
|
|
2412
2412
|
for (let ge = 0, ue = Z ?? 1 / 0; ge < ue; ++ge) {
|
|
@@ -2440,7 +2440,7 @@ function wu() {
|
|
|
2440
2440
|
};
|
|
2441
2441
|
if (q <= 9 && A.invalidDigit(O, F, j, R))
|
|
2442
2442
|
q = 0;
|
|
2443
|
-
else if (
|
|
2443
|
+
else if (U)
|
|
2444
2444
|
q = 0, be = !0;
|
|
2445
2445
|
else
|
|
2446
2446
|
break;
|
|
@@ -2456,9 +2456,9 @@ function wu() {
|
|
|
2456
2456
|
};
|
|
2457
2457
|
}
|
|
2458
2458
|
function L(k, O, F, j, R, Z) {
|
|
2459
|
-
const
|
|
2459
|
+
const U = k.charCodeAt(O);
|
|
2460
2460
|
let V;
|
|
2461
|
-
if (
|
|
2461
|
+
if (U === 123) {
|
|
2462
2462
|
if (++O, {
|
|
2463
2463
|
code: V,
|
|
2464
2464
|
pos: O
|
|
@@ -2503,7 +2503,7 @@ function Yt() {
|
|
|
2503
2503
|
if (bo) return he;
|
|
2504
2504
|
bo = 1, Object.defineProperty(he, "__esModule", {
|
|
2505
2505
|
value: !0
|
|
2506
|
-
}), he.allExpandedTypes = he.VISITOR_KEYS = he.NODE_UNION_SHAPES__PRIVATE = he.NODE_PARENT_VALIDATIONS = he.NODE_FIELDS = he.FLIPPED_ALIAS_KEYS = he.DEPRECATED_KEYS = he.BUILDER_KEYS = he.ALIAS_KEYS = void 0, he.arrayOf =
|
|
2506
|
+
}), he.allExpandedTypes = he.VISITOR_KEYS = he.NODE_UNION_SHAPES__PRIVATE = he.NODE_PARENT_VALIDATIONS = he.NODE_FIELDS = he.FLIPPED_ALIAS_KEYS = he.DEPRECATED_KEYS = he.BUILDER_KEYS = he.ALIAS_KEYS = void 0, he.arrayOf = U, he.arrayOfType = V, he.assertEach = Y, he.assertNodeOrValueType = be, he.assertNodeType = Te, he.assertOneOf = te, he.assertOptionalChainStart = ue, he.assertShape = ge, he.assertValueType = ve, he.chain = ae, he.default = Je, he.defineAliasedType = Me, he.validate = F, he.validateArrayOfType = A, he.validateOptional = R, he.validateOptionalType = Z, he.validateType = j;
|
|
2507
2507
|
var n = Ki(), l = Zn();
|
|
2508
2508
|
const c = he.VISITOR_KEYS = {}, o = he.ALIAS_KEYS = {}, S = he.FLIPPED_ALIAS_KEYS = {}, x = he.NODE_FIELDS = {}, M = he.BUILDER_KEYS = {}, w = he.DEPRECATED_KEYS = {}, L = he.NODE_PARENT_VALIDATIONS = {}, k = he.NODE_UNION_SHAPES__PRIVATE = {};
|
|
2509
2509
|
function O(z) {
|
|
@@ -2529,11 +2529,11 @@ function Yt() {
|
|
|
2529
2529
|
optional: !0
|
|
2530
2530
|
};
|
|
2531
2531
|
}
|
|
2532
|
-
function
|
|
2532
|
+
function U(z) {
|
|
2533
2533
|
return ae(ve("array"), Y(z));
|
|
2534
2534
|
}
|
|
2535
2535
|
function V(...z) {
|
|
2536
|
-
return
|
|
2536
|
+
return U(Te(...z));
|
|
2537
2537
|
}
|
|
2538
2538
|
function A(...z) {
|
|
2539
2539
|
return F(V(...z));
|
|
@@ -2718,7 +2718,7 @@ function Za() {
|
|
|
2718
2718
|
value: !0
|
|
2719
2719
|
}), ke.patternLikeCommon = ke.importAttributes = ke.functionTypeAnnotationCommon = ke.functionDeclarationCommon = ke.functionCommon = ke.classMethodOrPropertyUnionShapeCommon = ke.classMethodOrPropertyCommon = ke.classMethodOrDeclareMethodCommon = void 0;
|
|
2720
2720
|
var n = Ki(), l = Vi(), c = Qn(), o = wu(), S = qi(), x = Yt();
|
|
2721
|
-
const M = (
|
|
2721
|
+
const M = (U = !1) => ({
|
|
2722
2722
|
unionShape: {
|
|
2723
2723
|
discriminator: "computed",
|
|
2724
2724
|
shapes: [{
|
|
@@ -2734,7 +2734,7 @@ function Za() {
|
|
|
2734
2734
|
value: [!1],
|
|
2735
2735
|
properties: {
|
|
2736
2736
|
key: {
|
|
2737
|
-
validate:
|
|
2737
|
+
validate: U ? (0, x.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName") : (0, x.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral")
|
|
2738
2738
|
}
|
|
2739
2739
|
}
|
|
2740
2740
|
}]
|
|
@@ -2755,9 +2755,9 @@ function Za() {
|
|
|
2755
2755
|
fields: {
|
|
2756
2756
|
operator: {
|
|
2757
2757
|
validate: process.env.BABEL_TYPES_8_BREAKING ? Object.assign((function() {
|
|
2758
|
-
const
|
|
2758
|
+
const U = (0, x.assertOneOf)(...S.ASSIGNMENT_OPERATORS), V = (0, x.assertOneOf)("=");
|
|
2759
2759
|
return function(A, Y, te) {
|
|
2760
|
-
((0, n.default)("Pattern", A.left) ? V :
|
|
2760
|
+
((0, n.default)("Pattern", A.left) ? V : U)(A, Y, te);
|
|
2761
2761
|
};
|
|
2762
2762
|
})(), {
|
|
2763
2763
|
oneOf: S.ASSIGNMENT_OPERATORS
|
|
@@ -2781,9 +2781,9 @@ function Za() {
|
|
|
2781
2781
|
},
|
|
2782
2782
|
left: {
|
|
2783
2783
|
validate: (function() {
|
|
2784
|
-
const
|
|
2784
|
+
const U = (0, x.assertNodeType)("Expression"), V = (0, x.assertNodeType)("Expression", "PrivateName");
|
|
2785
2785
|
return Object.assign(function(Y, te, se) {
|
|
2786
|
-
(Y.operator === "in" ? V :
|
|
2786
|
+
(Y.operator === "in" ? V : U)(Y, te, se);
|
|
2787
2787
|
}, {
|
|
2788
2788
|
oneOfNodeTypes: ["Expression", "PrivateName"]
|
|
2789
2789
|
});
|
|
@@ -3022,9 +3022,9 @@ function Za() {
|
|
|
3022
3022
|
}),
|
|
3023
3023
|
aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Statement", "Pureish", "Declaration"],
|
|
3024
3024
|
validate: process.env.BABEL_TYPES_8_BREAKING ? (function() {
|
|
3025
|
-
const
|
|
3025
|
+
const U = (0, x.assertNodeType)("Identifier");
|
|
3026
3026
|
return function(V, A, Y) {
|
|
3027
|
-
(0, n.default)("ExportDefaultDeclaration", V) ||
|
|
3027
|
+
(0, n.default)("ExportDefaultDeclaration", V) || U(Y, "id", Y.id);
|
|
3028
3028
|
};
|
|
3029
3029
|
})() : void 0
|
|
3030
3030
|
}), w("FunctionExpression", {
|
|
@@ -3064,7 +3064,7 @@ function Za() {
|
|
|
3064
3064
|
aliases: ["Expression", "FunctionParameter", "PatternLike", "LVal", "TSEntityName"],
|
|
3065
3065
|
fields: Object.assign({}, F(), {
|
|
3066
3066
|
name: {
|
|
3067
|
-
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertValueType)("string"), Object.assign(function(
|
|
3067
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertValueType)("string"), Object.assign(function(U, V, A) {
|
|
3068
3068
|
if (!(0, l.default)(A, !1))
|
|
3069
3069
|
throw new TypeError(`"${A}" is not a valid identifier name`);
|
|
3070
3070
|
}, {
|
|
@@ -3072,23 +3072,23 @@ function Za() {
|
|
|
3072
3072
|
})) : (0, x.assertValueType)("string")
|
|
3073
3073
|
}
|
|
3074
3074
|
}),
|
|
3075
|
-
validate: process.env.BABEL_TYPES_8_BREAKING ? function(
|
|
3075
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? function(U, V, A) {
|
|
3076
3076
|
const Y = /\.(\w+)$/.exec(V.toString());
|
|
3077
3077
|
if (!Y) return;
|
|
3078
3078
|
const [, te] = Y, se = {
|
|
3079
3079
|
computed: !1
|
|
3080
3080
|
};
|
|
3081
3081
|
if (te === "property") {
|
|
3082
|
-
if ((0, n.default)("MemberExpression",
|
|
3082
|
+
if ((0, n.default)("MemberExpression", U, se) || (0, n.default)("OptionalMemberExpression", U, se)) return;
|
|
3083
3083
|
} else if (te === "key") {
|
|
3084
|
-
if ((0, n.default)("Property",
|
|
3084
|
+
if ((0, n.default)("Property", U, se) || (0, n.default)("Method", U, se)) return;
|
|
3085
3085
|
} else if (te === "exported") {
|
|
3086
|
-
if ((0, n.default)("ExportSpecifier",
|
|
3086
|
+
if ((0, n.default)("ExportSpecifier", U)) return;
|
|
3087
3087
|
} else if (te === "imported") {
|
|
3088
|
-
if ((0, n.default)("ImportSpecifier",
|
|
3088
|
+
if ((0, n.default)("ImportSpecifier", U, {
|
|
3089
3089
|
imported: A
|
|
3090
3090
|
})) return;
|
|
3091
|
-
} else if (te === "meta" && (0, n.default)("MetaProperty",
|
|
3091
|
+
} else if (te === "meta" && (0, n.default)("MetaProperty", U, {
|
|
3092
3092
|
meta: A
|
|
3093
3093
|
}))
|
|
3094
3094
|
return;
|
|
@@ -3134,7 +3134,7 @@ function Za() {
|
|
|
3134
3134
|
deprecatedAlias: "NumberLiteral",
|
|
3135
3135
|
fields: {
|
|
3136
3136
|
value: {
|
|
3137
|
-
validate: (0, x.chain)((0, x.assertValueType)("number"), Object.assign(function(
|
|
3137
|
+
validate: (0, x.chain)((0, x.assertValueType)("number"), Object.assign(function(U, V, A) {
|
|
3138
3138
|
}, {
|
|
3139
3139
|
type: "number"
|
|
3140
3140
|
}))
|
|
@@ -3160,7 +3160,7 @@ function Za() {
|
|
|
3160
3160
|
validate: (0, x.assertValueType)("string")
|
|
3161
3161
|
},
|
|
3162
3162
|
flags: {
|
|
3163
|
-
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertValueType)("string"), Object.assign(function(
|
|
3163
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertValueType)("string"), Object.assign(function(U, V, A) {
|
|
3164
3164
|
const Y = /[^dgimsuvy]/.exec(A);
|
|
3165
3165
|
if (Y)
|
|
3166
3166
|
throw new TypeError(`"${Y[0]}" is not a valid RegExp flag`);
|
|
@@ -3215,8 +3215,8 @@ function Za() {
|
|
|
3215
3215
|
},
|
|
3216
3216
|
property: {
|
|
3217
3217
|
validate: (function() {
|
|
3218
|
-
const
|
|
3219
|
-
(Y.computed ? V :
|
|
3218
|
+
const U = (0, x.assertNodeType)("Identifier", "PrivateName"), V = (0, x.assertNodeType)("Expression"), A = function(Y, te, se) {
|
|
3219
|
+
(Y.computed ? V : U)(Y, te, se);
|
|
3220
3220
|
};
|
|
3221
3221
|
return A.oneOfNodeTypes = ["Expression", "Identifier", "PrivateName"], A;
|
|
3222
3222
|
})()
|
|
@@ -3273,8 +3273,8 @@ function Za() {
|
|
|
3273
3273
|
},
|
|
3274
3274
|
key: {
|
|
3275
3275
|
validate: (function() {
|
|
3276
|
-
const
|
|
3277
|
-
(Y.computed ? V :
|
|
3276
|
+
const U = (0, x.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), V = (0, x.assertNodeType)("Expression"), A = function(Y, te, se) {
|
|
3277
|
+
(Y.computed ? V : U)(Y, te, se);
|
|
3278
3278
|
};
|
|
3279
3279
|
return A.oneOfNodeTypes = ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"], A;
|
|
3280
3280
|
})()
|
|
@@ -3316,9 +3316,9 @@ function Za() {
|
|
|
3316
3316
|
},
|
|
3317
3317
|
key: {
|
|
3318
3318
|
validate: (function() {
|
|
3319
|
-
const
|
|
3319
|
+
const U = (0, x.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"), V = (0, x.assertNodeType)("Expression");
|
|
3320
3320
|
return Object.assign(function(Y, te, se) {
|
|
3321
|
-
(Y.computed ? V :
|
|
3321
|
+
(Y.computed ? V : U)(Y, te, se);
|
|
3322
3322
|
}, {
|
|
3323
3323
|
oneOfNodeTypes: ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"]
|
|
3324
3324
|
});
|
|
@@ -3328,11 +3328,11 @@ function Za() {
|
|
|
3328
3328
|
validate: (0, x.assertNodeType)("Expression", "PatternLike")
|
|
3329
3329
|
},
|
|
3330
3330
|
shorthand: {
|
|
3331
|
-
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertValueType)("boolean"), Object.assign(function(
|
|
3331
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertValueType)("boolean"), Object.assign(function(U, V, A) {
|
|
3332
3332
|
if (A) {
|
|
3333
|
-
if (
|
|
3333
|
+
if (U.computed)
|
|
3334
3334
|
throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");
|
|
3335
|
-
if (!(0, n.default)("Identifier",
|
|
3335
|
+
if (!(0, n.default)("Identifier", U.key))
|
|
3336
3336
|
throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier");
|
|
3337
3337
|
}
|
|
3338
3338
|
}, {
|
|
@@ -3348,9 +3348,9 @@ function Za() {
|
|
|
3348
3348
|
visitor: ["decorators", "key", "value"],
|
|
3349
3349
|
aliases: ["UserWhitespacable", "Property", "ObjectMember"],
|
|
3350
3350
|
validate: process.env.BABEL_TYPES_8_BREAKING ? (function() {
|
|
3351
|
-
const
|
|
3351
|
+
const U = (0, x.assertNodeType)("Identifier", "Pattern", "TSAsExpression", "TSSatisfiesExpression", "TSNonNullExpression", "TSTypeAssertion"), V = (0, x.assertNodeType)("Expression");
|
|
3352
3352
|
return function(A, Y, te) {
|
|
3353
|
-
((0, n.default)("ObjectPattern", A) ?
|
|
3353
|
+
((0, n.default)("ObjectPattern", A) ? U : V)(te, "value", te.value);
|
|
3354
3354
|
};
|
|
3355
3355
|
})() : void 0
|
|
3356
3356
|
}), w("RestElement", {
|
|
@@ -3363,11 +3363,11 @@ function Za() {
|
|
|
3363
3363
|
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, x.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression", "RestElement", "AssignmentPattern")
|
|
3364
3364
|
}
|
|
3365
3365
|
}),
|
|
3366
|
-
validate: process.env.BABEL_TYPES_8_BREAKING ? function(
|
|
3366
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? function(U, V) {
|
|
3367
3367
|
const A = /(\w+)\[(\d+)\]/.exec(V.toString());
|
|
3368
3368
|
if (!A) throw new Error("Internal Babel error: malformed key.");
|
|
3369
3369
|
const [, Y, te] = A;
|
|
3370
|
-
if (
|
|
3370
|
+
if (U[Y].length > +te + 1)
|
|
3371
3371
|
throw new TypeError(`RestElement must be last element of ${Y}`);
|
|
3372
3372
|
} : void 0
|
|
3373
3373
|
}), w("ReturnStatement", {
|
|
@@ -3426,8 +3426,8 @@ function Za() {
|
|
|
3426
3426
|
aliases: ["Statement"],
|
|
3427
3427
|
fields: {
|
|
3428
3428
|
block: {
|
|
3429
|
-
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertNodeType)("BlockStatement"), Object.assign(function(
|
|
3430
|
-
if (!
|
|
3429
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertNodeType)("BlockStatement"), Object.assign(function(U) {
|
|
3430
|
+
if (!U.handler && !U.finalizer)
|
|
3431
3431
|
throw new TypeError("TryStatement expects either a handler or finalizer, or both");
|
|
3432
3432
|
}, {
|
|
3433
3433
|
oneOfNodeTypes: ["BlockStatement"]
|
|
@@ -3487,7 +3487,7 @@ function Za() {
|
|
|
3487
3487
|
declarations: (0, x.validateArrayOfType)("VariableDeclarator")
|
|
3488
3488
|
},
|
|
3489
3489
|
validate: process.env.BABEL_TYPES_8_BREAKING ? (() => {
|
|
3490
|
-
const
|
|
3490
|
+
const U = (0, x.assertNodeType)("Identifier", "Placeholder"), V = (0, x.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "Placeholder"), A = (0, x.assertNodeType)("Identifier", "VoidPattern", "Placeholder");
|
|
3491
3491
|
return function(Y, te, se) {
|
|
3492
3492
|
const {
|
|
3493
3493
|
kind: Te,
|
|
@@ -3498,7 +3498,7 @@ function Za() {
|
|
|
3498
3498
|
if (ve && be.length !== 1)
|
|
3499
3499
|
throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${Y.type}`);
|
|
3500
3500
|
for (const ge of be)
|
|
3501
|
-
Te === "const" || Te === "let" || Te === "var" ? !ve && !ge.init ?
|
|
3501
|
+
Te === "const" || Te === "let" || Te === "var" ? !ve && !ge.init ? U(ge, "id", ge.id) : V(ge, "id", ge.id) : A(ge, "id", ge.id);
|
|
3502
3502
|
};
|
|
3503
3503
|
})() : void 0
|
|
3504
3504
|
}), w("VariableDeclarator", {
|
|
@@ -3666,9 +3666,9 @@ function Za() {
|
|
|
3666
3666
|
}
|
|
3667
3667
|
},
|
|
3668
3668
|
validate: process.env.BABEL_TYPES_8_BREAKING ? (function() {
|
|
3669
|
-
const
|
|
3669
|
+
const U = (0, x.assertNodeType)("Identifier");
|
|
3670
3670
|
return function(V, A, Y) {
|
|
3671
|
-
(0, n.default)("ExportDefaultDeclaration", V) ||
|
|
3671
|
+
(0, n.default)("ExportDefaultDeclaration", V) || U(Y, "id", Y.id);
|
|
3672
3672
|
};
|
|
3673
3673
|
})() : void 0
|
|
3674
3674
|
});
|
|
@@ -3707,10 +3707,10 @@ function Za() {
|
|
|
3707
3707
|
fields: Object.assign({
|
|
3708
3708
|
declaration: {
|
|
3709
3709
|
optional: !0,
|
|
3710
|
-
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertNodeType)("Declaration"), Object.assign(function(
|
|
3711
|
-
if (A &&
|
|
3710
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertNodeType)("Declaration"), Object.assign(function(U, V, A) {
|
|
3711
|
+
if (A && U.specifiers.length)
|
|
3712
3712
|
throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");
|
|
3713
|
-
if (A &&
|
|
3713
|
+
if (A && U.source)
|
|
3714
3714
|
throw new TypeError("Cannot export a declaration from a source");
|
|
3715
3715
|
}, {
|
|
3716
3716
|
oneOfNodeTypes: ["Declaration"]
|
|
@@ -3720,12 +3720,12 @@ function Za() {
|
|
|
3720
3720
|
specifiers: {
|
|
3721
3721
|
default: [],
|
|
3722
3722
|
validate: (0, x.arrayOf)((function() {
|
|
3723
|
-
const
|
|
3723
|
+
const U = (0, x.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"), V = (0, x.assertNodeType)("ExportSpecifier");
|
|
3724
3724
|
return process.env.BABEL_TYPES_8_BREAKING ? Object.assign(function(A, Y, te) {
|
|
3725
|
-
(A.source ?
|
|
3725
|
+
(A.source ? U : V)(A, Y, te);
|
|
3726
3726
|
}, {
|
|
3727
3727
|
oneOfNodeTypes: ["ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"]
|
|
3728
|
-
}) :
|
|
3728
|
+
}) : U;
|
|
3729
3729
|
})())
|
|
3730
3730
|
},
|
|
3731
3731
|
source: {
|
|
@@ -3758,9 +3758,9 @@ function Za() {
|
|
|
3758
3758
|
validate: (function() {
|
|
3759
3759
|
if (!process.env.BABEL_TYPES_8_BREAKING)
|
|
3760
3760
|
return (0, x.assertNodeType)("VariableDeclaration", "LVal");
|
|
3761
|
-
const
|
|
3761
|
+
const U = (0, x.assertNodeType)("VariableDeclaration"), V = (0, x.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression");
|
|
3762
3762
|
return Object.assign(function(A, Y, te) {
|
|
3763
|
-
(0, n.default)("VariableDeclaration", te) ?
|
|
3763
|
+
(0, n.default)("VariableDeclaration", te) ? U(A, Y, te) : V(A, Y, te);
|
|
3764
3764
|
}, {
|
|
3765
3765
|
oneOfNodeTypes: ["VariableDeclaration", "Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression"]
|
|
3766
3766
|
});
|
|
@@ -3851,7 +3851,7 @@ function Za() {
|
|
|
3851
3851
|
aliases: ["Expression"],
|
|
3852
3852
|
fields: {
|
|
3853
3853
|
meta: {
|
|
3854
|
-
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertNodeType)("Identifier"), Object.assign(function(
|
|
3854
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertNodeType)("Identifier"), Object.assign(function(U, V, A) {
|
|
3855
3855
|
let Y;
|
|
3856
3856
|
switch (A.name) {
|
|
3857
3857
|
case "function":
|
|
@@ -3864,7 +3864,7 @@ function Za() {
|
|
|
3864
3864
|
Y = "meta";
|
|
3865
3865
|
break;
|
|
3866
3866
|
}
|
|
3867
|
-
if (!(0, n.default)("Identifier",
|
|
3867
|
+
if (!(0, n.default)("Identifier", U.property, {
|
|
3868
3868
|
name: Y
|
|
3869
3869
|
}))
|
|
3870
3870
|
throw new TypeError("Unrecognised MetaProperty");
|
|
@@ -3901,9 +3901,9 @@ function Za() {
|
|
|
3901
3901
|
},
|
|
3902
3902
|
key: {
|
|
3903
3903
|
validate: (0, x.chain)((function() {
|
|
3904
|
-
const
|
|
3904
|
+
const U = (0, x.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), V = (0, x.assertNodeType)("Expression");
|
|
3905
3905
|
return function(A, Y, te) {
|
|
3906
|
-
(A.computed ? V :
|
|
3906
|
+
(A.computed ? V : U)(A, Y, te);
|
|
3907
3907
|
};
|
|
3908
3908
|
})(), (0, x.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression"))
|
|
3909
3909
|
}
|
|
@@ -4013,10 +4013,10 @@ function Za() {
|
|
|
4013
4013
|
fields: {
|
|
4014
4014
|
quasis: (0, x.validateArrayOfType)("TemplateElement"),
|
|
4015
4015
|
expressions: {
|
|
4016
|
-
validate: (0, x.chain)((0, x.assertValueType)("array"), (0, x.assertEach)((0, x.assertNodeType)("Expression", "TSType")), function(
|
|
4017
|
-
if (
|
|
4018
|
-
throw new TypeError(`Number of ${
|
|
4019
|
-
Expected ${A.length + 1} quasis but got ${
|
|
4016
|
+
validate: (0, x.chain)((0, x.assertValueType)("array"), (0, x.assertEach)((0, x.assertNodeType)("Expression", "TSType")), function(U, V, A) {
|
|
4017
|
+
if (U.quasis.length !== A.length + 1)
|
|
4018
|
+
throw new TypeError(`Number of ${U.type} quasis should be exactly one more than the number of expressions.
|
|
4019
|
+
Expected ${A.length + 1} quasis but got ${U.quasis.length}`);
|
|
4020
4020
|
})
|
|
4021
4021
|
}
|
|
4022
4022
|
}
|
|
@@ -4026,8 +4026,8 @@ Expected ${A.length + 1} quasis but got ${K.quasis.length}`);
|
|
|
4026
4026
|
aliases: ["Expression", "Terminatorless"],
|
|
4027
4027
|
fields: {
|
|
4028
4028
|
delegate: {
|
|
4029
|
-
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertValueType)("boolean"), Object.assign(function(
|
|
4030
|
-
if (A && !
|
|
4029
|
+
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, x.chain)((0, x.assertValueType)("boolean"), Object.assign(function(U, V, A) {
|
|
4030
|
+
if (A && !U.argument)
|
|
4031
4031
|
throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument");
|
|
4032
4032
|
}, {
|
|
4033
4033
|
type: "boolean"
|
|
@@ -4076,9 +4076,9 @@ Expected ${A.length + 1} quasis but got ${K.quasis.length}`);
|
|
|
4076
4076
|
},
|
|
4077
4077
|
property: {
|
|
4078
4078
|
validate: (function() {
|
|
4079
|
-
const
|
|
4079
|
+
const U = (0, x.assertNodeType)("Identifier"), V = (0, x.assertNodeType)("Expression");
|
|
4080
4080
|
return Object.assign(function(Y, te, se) {
|
|
4081
|
-
(Y.computed ? V :
|
|
4081
|
+
(Y.computed ? V : U)(Y, te, se);
|
|
4082
4082
|
}, {
|
|
4083
4083
|
oneOfNodeTypes: ["Expression", "Identifier"]
|
|
4084
4084
|
});
|
|
@@ -4156,9 +4156,9 @@ Expected ${A.length + 1} quasis but got ${K.quasis.length}`);
|
|
|
4156
4156
|
fields: Object.assign({}, R(), {
|
|
4157
4157
|
key: {
|
|
4158
4158
|
validate: (0, x.chain)((function() {
|
|
4159
|
-
const
|
|
4159
|
+
const U = (0, x.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName"), V = (0, x.assertNodeType)("Expression");
|
|
4160
4160
|
return function(A, Y, te) {
|
|
4161
|
-
(A.computed ? V :
|
|
4161
|
+
(A.computed ? V : U)(A, Y, te);
|
|
4162
4162
|
};
|
|
4163
4163
|
})(), (0, x.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression", "PrivateName"))
|
|
4164
4164
|
},
|
|
@@ -5264,10 +5264,10 @@ function Mu() {
|
|
|
5264
5264
|
fields: {
|
|
5265
5265
|
quasis: (0, n.validateArrayOfType)("TemplateElement"),
|
|
5266
5266
|
types: {
|
|
5267
|
-
validate: (0, n.chain)((0, n.assertValueType)("array"), (0, n.assertEach)((0, n.assertNodeType)("TSType")), function(R, Z,
|
|
5268
|
-
if (R.quasis.length !==
|
|
5267
|
+
validate: (0, n.chain)((0, n.assertValueType)("array"), (0, n.assertEach)((0, n.assertNodeType)("TSType")), function(R, Z, U) {
|
|
5268
|
+
if (R.quasis.length !== U.length + 1)
|
|
5269
5269
|
throw new TypeError(`Number of ${R.type} quasis should be exactly one more than the number of types.
|
|
5270
|
-
Expected ${
|
|
5270
|
+
Expected ${U.length + 1} quasis but got ${R.quasis.length}`);
|
|
5271
5271
|
})
|
|
5272
5272
|
}
|
|
5273
5273
|
}
|
|
@@ -5277,8 +5277,8 @@ Expected ${K.length + 1} quasis but got ${R.quasis.length}`);
|
|
|
5277
5277
|
fields: {
|
|
5278
5278
|
literal: {
|
|
5279
5279
|
validate: (function() {
|
|
5280
|
-
const R = (0, n.assertNodeType)("NumericLiteral", "BigIntLiteral"), Z = (0, n.assertOneOf)("-"),
|
|
5281
|
-
(0, c.default)("UnaryExpression", se) ? (Z(se, "operator", se.operator), R(se, "argument", se.argument)) :
|
|
5280
|
+
const R = (0, n.assertNodeType)("NumericLiteral", "BigIntLiteral"), Z = (0, n.assertOneOf)("-"), U = (0, n.assertNodeType)("NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral"), V = function(Y, te, se) {
|
|
5281
|
+
(0, c.default)("UnaryExpression", se) ? (Z(se, "operator", se.operator), R(se, "argument", se.argument)) : U(Y, te, se);
|
|
5282
5282
|
};
|
|
5283
5283
|
return V.oneOfNodeTypes = ["NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral", "UnaryExpression"], V;
|
|
5284
5284
|
})()
|
|
@@ -5602,7 +5602,7 @@ function au() {
|
|
|
5602
5602
|
if (Bo) return E;
|
|
5603
5603
|
Bo = 1, Object.defineProperty(E, "__esModule", {
|
|
5604
5604
|
value: !0
|
|
5605
|
-
}), E.anyTypeAnnotation = Gt, E.argumentPlaceholder = Xs, E.arrayExpression = M, E.arrayPattern = vt, E.arrayTypeAnnotation = is, E.arrowFunctionExpression = It, E.assignmentExpression = w, E.assignmentPattern = gt, E.awaitExpression = Ht, E.bigIntLiteral = x, E.binaryExpression = L, E.bindExpression = $s, E.blockStatement = j, E.booleanLiteral = ne, E.booleanLiteralTypeAnnotation = ns, E.booleanTypeAnnotation = as, E.breakStatement = R, E.callExpression = Z, E.catchClause =
|
|
5605
|
+
}), E.anyTypeAnnotation = Gt, E.argumentPlaceholder = Xs, E.arrayExpression = M, E.arrayPattern = vt, E.arrayTypeAnnotation = is, E.arrowFunctionExpression = It, E.assignmentExpression = w, E.assignmentPattern = gt, E.awaitExpression = Ht, E.bigIntLiteral = x, E.binaryExpression = L, E.bindExpression = $s, E.blockStatement = j, E.booleanLiteral = ne, E.booleanLiteralTypeAnnotation = ns, E.booleanTypeAnnotation = as, E.breakStatement = R, E.callExpression = Z, E.catchClause = U, E.classAccessorProperty = Mt, E.classBody = Nt, E.classDeclaration = He, E.classExpression = Be, E.classImplements = ls, E.classMethod = Xe, E.classPrivateMethod = ts, E.classPrivateProperty = es, E.classProperty = kt, E.conditionalExpression = V, E.continueStatement = A, E.debuggerStatement = Y, E.decimalLiteral = ot, E.declareClass = us, E.declareExportAllDeclaration = et, E.declareExportDeclaration = Ue, E.declareFunction = pt, E.declareInterface = Ze, E.declareModule = Qt, E.declareModuleExports = _t, E.declareOpaqueType = cs, E.declareTypeAlias = Bt, E.declareVariable = $e, E.declaredPredicate = ps, E.decorator = hr, E.directive = O, E.directiveLiteral = F, E.doExpression = Ws, E.doWhileStatement = te, E.emptyStatement = se, E.emptyTypeAnnotation = Ft, E.enumBooleanBody = Ut, E.enumBooleanMember = nr, E.enumDeclaration = Os, E.enumDefaultedMember = or, E.enumNumberBody = Ds, E.enumNumberMember = H, E.enumStringBody = Kt, E.enumStringMember = ks, E.enumSymbolBody = Ls, E.existsTypeAnnotation = fs, E.exportAllDeclaration = Ct, E.exportDefaultDeclaration = Ge, E.exportDefaultSpecifier = zs, E.exportNamedDeclaration = _e, E.exportNamespaceSpecifier = Gr, E.exportSpecifier = it, E.expressionStatement = Te, E.file = be, E.forInStatement = ve, E.forOfStatement = Qe, E.forStatement = ge, E.functionDeclaration = ue, E.functionExpression = ae, E.functionTypeAnnotation = ds, E.functionTypeParam = hs, E.genericTypeAnnotation = ft, E.identifier = q, E.ifStatement = je, E.import = Hr, E.importAttribute = ss, E.importDeclaration = wt, E.importDefaultSpecifier = Ot, E.importExpression = Dt, E.importNamespaceSpecifier = $, E.importSpecifier = $r, E.indexedAccessType = Ms, E.inferredPredicate = ys, E.interfaceDeclaration = ms, E.interfaceExtends = Zt, E.interfaceTypeAnnotation = at, E.interpreterDirective = k, E.intersectionTypeAnnotation = Ke, E.jSXAttribute = E.jsxAttribute = Bs, E.jSXClosingElement = E.jsxClosingElement = Fs, E.jSXClosingFragment = E.jsxClosingFragment = Vt, E.jSXElement = E.jsxElement = lr, E.jSXEmptyExpression = E.jsxEmptyExpression = Rs, E.jSXExpressionContainer = E.jsxExpressionContainer = ur, E.jSXFragment = E.jsxFragment = Vs, E.jSXIdentifier = E.jsxIdentifier = js, E.jSXMemberExpression = E.jsxMemberExpression = Us, E.jSXNamespacedName = E.jsxNamespacedName = pr, E.jSXOpeningElement = E.jsxOpeningElement = fr, E.jSXOpeningFragment = E.jsxOpeningFragment = qs, E.jSXSpreadAttribute = E.jsxSpreadAttribute = Ks, E.jSXSpreadChild = E.jsxSpreadChild = cr, E.jSXText = E.jsxText = dr, E.labeledStatement = Ne, E.logicalExpression = Q, E.memberExpression = ce, E.metaProperty = Fe, E.mixedTypeAnnotation = Ts, E.moduleExpression = yr, E.newExpression = ye, E.noop = Js, E.nullLiteral = z, E.nullLiteralTypeAnnotation = os, E.nullableTypeAnnotation = Ss, E.numberLiteral = Ni, E.numberLiteralTypeAnnotation = er, E.numberTypeAnnotation = dt, E.numericLiteral = Je, E.objectExpression = me, E.objectMethod = Ee, E.objectPattern = Lt, E.objectProperty = Oe, E.objectTypeAnnotation = tr, E.objectTypeCallProperty = bs, E.objectTypeIndexer = Rt, E.objectTypeInternalSlot = xs, E.objectTypeProperty = rr, E.objectTypeSpreadProperty = sr, E.opaqueType = nt, E.optionalCallExpression = Zr, E.optionalIndexedAccessType = _s, E.optionalMemberExpression = Qr, E.parenthesizedExpression = St, E.pipelineBareFunction = t, E.pipelinePrimaryTopicReference = e, E.pipelineTopicExpression = y, E.placeholder = Ys, E.privateName = rs, E.program = Se, E.qualifiedTypeIdentifier = Ps, E.recordExpression = Hs, E.regExpLiteral = W, E.regexLiteral = Ci, E.restElement = De, E.restProperty = wi, E.returnStatement = re, E.sequenceExpression = le, E.spreadElement = Xt, E.spreadProperty = Oi, E.staticBlock = ie, E.stringLiteral = Me, E.stringLiteralTypeAnnotation = Ve, E.stringTypeAnnotation = Es, E.super = Wr, E.switchCase = pe, E.switchStatement = xt, E.symbolTypeAnnotation = As, E.taggedTemplateExpression = zr, E.templateElement = $t, E.templateLiteral = Wt, E.thisExpression = Le, E.thisTypeAnnotation = gs, E.throwStatement = ut, E.topicReference = Qs, E.tryStatement = bt, E.tSAnyKeyword = E.tsAnyKeyword = X, E.tSArrayType = E.tsArrayType = Cr, E.tSAsExpression = E.tsAsExpression = ui, E.tSBigIntKeyword = E.tsBigIntKeyword = de, E.tSBooleanKeyword = E.tsBooleanKeyword = G, E.tSCallSignatureDeclaration = E.tsCallSignatureDeclaration = g, E.tSConditionalType = E.tsConditionalType = _r, E.tSConstructSignatureDeclaration = E.tsConstructSignatureDeclaration = C, E.tSConstructorType = E.tsConstructorType = Ar, E.tSDeclareFunction = E.tsDeclareFunction = u, E.tSDeclareMethod = E.tsDeclareMethod = T, E.tSEnumBody = E.tsEnumBody = fi, E.tSEnumDeclaration = E.tsEnumDeclaration = di, E.tSEnumMember = E.tsEnumMember = hi, E.tSExportAssignment = E.tsExportAssignment = Pi, E.tSExpressionWithTypeArguments = E.tsExpressionWithTypeArguments = qr, E.tSExternalModuleReference = E.tsExternalModuleReference = xi, E.tSFunctionType = E.tsFunctionType = Er, E.tSImportEqualsDeclaration = E.tsImportEqualsDeclaration = Si, E.tSImportType = E.tsImportType = Ti, E.tSIndexSignature = E.tsIndexSignature = J, E.tSIndexedAccessType = E.tsIndexedAccessType = jr, E.tSInferType = E.tsInferType = Br, E.tSInstantiationExpression = E.tsInstantiationExpression = li, E.tSInterfaceBody = E.tsInterfaceBody = Yr, E.tSInterfaceDeclaration = E.tsInterfaceDeclaration = Jr, E.tSIntersectionType = E.tsIntersectionType = Mr, E.tSIntrinsicKeyword = E.tsIntrinsicKeyword = Pe, E.tSLiteralType = E.tsLiteralType = Vr, E.tSMappedType = E.tsMappedType = Ur, E.tSMethodSignature = E.tsMethodSignature = B, E.tSModuleBlock = E.tsModuleBlock = mi, E.tSModuleDeclaration = E.tsModuleDeclaration = yi, E.tSNamedTupleMember = E.tsNamedTupleMember = Lr, E.tSNamespaceExportDeclaration = E.tsNamespaceExportDeclaration = Ei, E.tSNeverKeyword = E.tsNeverKeyword = oe, E.tSNonNullExpression = E.tsNonNullExpression = bi, E.tSNullKeyword = E.tsNullKeyword = xe, E.tSNumberKeyword = E.tsNumberKeyword = We, E.tSObjectKeyword = E.tsObjectKeyword = qe, E.tSOptionalType = E.tsOptionalType = Or, E.tSParameterProperty = E.tsParameterProperty = i, E.tSParenthesizedType = E.tsParenthesizedType = Fr, E.tSPropertySignature = E.tsPropertySignature = D, E.tSQualifiedName = E.tsQualifiedName = P, E.tSRestType = E.tsRestType = Dr, E.tSSatisfiesExpression = E.tsSatisfiesExpression = ci, E.tSStringKeyword = E.tsStringKeyword = mr, E.tSSymbolKeyword = E.tsSymbolKeyword = Tr, E.tSTemplateLiteralType = E.tsTemplateLiteralType = Kr, E.tSThisType = E.tsThisType = Pr, E.tSTupleType = E.tsTupleType = wr, E.tSTypeAliasDeclaration = E.tsTypeAliasDeclaration = oi, E.tSTypeAnnotation = E.tsTypeAnnotation = Ai, E.tSTypeAssertion = E.tsTypeAssertion = pi, E.tSTypeLiteral = E.tsTypeLiteral = Nr, E.tSTypeOperator = E.tsTypeOperator = Rr, E.tSTypeParameter = E.tsTypeParameter = Ii, E.tSTypeParameterDeclaration = E.tsTypeParameterDeclaration = vi, E.tSTypeParameterInstantiation = E.tsTypeParameterInstantiation = gi, E.tSTypePredicate = E.tsTypePredicate = vr, E.tSTypeQuery = E.tsTypeQuery = Ir, E.tSTypeReference = E.tsTypeReference = gr, E.tSUndefinedKeyword = E.tsUndefinedKeyword = Sr, E.tSUnionType = E.tsUnionType = kr, E.tSUnknownKeyword = E.tsUnknownKeyword = xr, E.tSVoidKeyword = E.tsVoidKeyword = br, E.tupleExpression = Gs, E.tupleTypeAnnotation = ht, E.typeAlias = vs, E.typeAnnotation = Is, E.typeCastExpression = Ns, E.typeParameter = Cs, E.typeParameterDeclaration = ar, E.typeParameterInstantiation = ws, E.typeofTypeAnnotation = ir, E.unaryExpression = Ye, E.unionTypeAnnotation = yt, E.updateExpression = Pt, E.v8IntrinsicIdentifier = qt, E.variableDeclaration = ct, E.variableDeclarator = Et, E.variance = mt, E.voidPattern = r, E.voidTypeAnnotation = jt, E.whileStatement = st, E.withStatement = At, E.yieldExpression = zt;
|
|
5606
5606
|
var n = Zn(), l = Ui(), c = Yt();
|
|
5607
5607
|
const {
|
|
5608
5608
|
validateInternal: o
|
|
@@ -5686,7 +5686,7 @@ function au() {
|
|
|
5686
5686
|
}, b = S.CallExpression;
|
|
5687
5687
|
return o(b.callee, h, "callee", p, 1), o(b.arguments, h, "arguments", f, 1), h;
|
|
5688
5688
|
}
|
|
5689
|
-
function
|
|
5689
|
+
function U(p = null, f) {
|
|
5690
5690
|
const h = {
|
|
5691
5691
|
type: "CatchClause",
|
|
5692
5692
|
param: p,
|
|
@@ -7684,7 +7684,7 @@ function Uu() {
|
|
|
7684
7684
|
if (qo) return I;
|
|
7685
7685
|
qo = 1, Object.defineProperty(I, "__esModule", {
|
|
7686
7686
|
value: !0
|
|
7687
|
-
}), I.assertAccessor = bn, I.assertAnyTypeAnnotation = ie, I.assertArgumentPlaceholder = Ys, I.assertArrayExpression = o, I.assertArrayPattern = st, I.assertArrayTypeAnnotation = ss, I.assertArrowFunctionExpression = At, I.assertAssignmentExpression = S, I.assertAssignmentPattern = Et, I.assertAwaitExpression = $t, I.assertBigIntLiteral = zt, I.assertBinary = Ni, I.assertBinaryExpression = x, I.assertBindExpression = qt, I.assertBlock = Oi, I.assertBlockParent = wi, I.assertBlockStatement = k, I.assertBooleanLiteral = Me, I.assertBooleanLiteralTypeAnnotation = is, I.assertBooleanTypeAnnotation = Gt, I.assertBreakStatement = O, I.assertCallExpression = F, I.assertCatchClause = j, I.assertClass = Yi, I.assertClassAccessorProperty = Zr, I.assertClassBody = gt, I.assertClassDeclaration = It, I.assertClassExpression = vt, I.assertClassImplements = ns, I.assertClassMethod = $r, I.assertClassPrivateMethod = Mt, I.assertClassPrivateProperty = kt, I.assertClassProperty = Qr, I.assertCompletionStatement = h, I.assertConditional = b, I.assertConditionalExpression = R, I.assertContinueStatement = Z, I.assertDebuggerStatement =
|
|
7687
|
+
}), I.assertAccessor = bn, I.assertAnyTypeAnnotation = ie, I.assertArgumentPlaceholder = Ys, I.assertArrayExpression = o, I.assertArrayPattern = st, I.assertArrayTypeAnnotation = ss, I.assertArrowFunctionExpression = At, I.assertAssignmentExpression = S, I.assertAssignmentPattern = Et, I.assertAwaitExpression = $t, I.assertBigIntLiteral = zt, I.assertBinary = Ni, I.assertBinaryExpression = x, I.assertBindExpression = qt, I.assertBlock = Oi, I.assertBlockParent = wi, I.assertBlockStatement = k, I.assertBooleanLiteral = Me, I.assertBooleanLiteralTypeAnnotation = is, I.assertBooleanTypeAnnotation = Gt, I.assertBreakStatement = O, I.assertCallExpression = F, I.assertCatchClause = j, I.assertClass = Yi, I.assertClassAccessorProperty = Zr, I.assertClassBody = gt, I.assertClassDeclaration = It, I.assertClassExpression = vt, I.assertClassImplements = ns, I.assertClassMethod = $r, I.assertClassPrivateMethod = Mt, I.assertClassPrivateProperty = kt, I.assertClassProperty = Qr, I.assertCompletionStatement = h, I.assertConditional = b, I.assertConditionalExpression = R, I.assertContinueStatement = Z, I.assertDebuggerStatement = U, I.assertDecimalLiteral = Hs, I.assertDeclaration = sn, I.assertDeclareClass = os, I.assertDeclareExportAllDeclaration = $e, I.assertDeclareExportDeclaration = cs, I.assertDeclareFunction = ls, I.assertDeclareInterface = us, I.assertDeclareModule = pt, I.assertDeclareModuleExports = Ze, I.assertDeclareOpaqueType = _t, I.assertDeclareTypeAlias = Qt, I.assertDeclareVariable = Bt, I.assertDeclaredPredicate = Ue, I.assertDecorator = Xs, I.assertDirective = w, I.assertDirectiveLiteral = L, I.assertDoExpression = $s, I.assertDoWhileStatement = V, I.assertEmptyStatement = A, I.assertEmptyTypeAnnotation = Ke, I.assertEnumBody = Nn, I.assertEnumBooleanBody = jt, I.assertEnumBooleanMember = Kt, I.assertEnumDeclaration = mt, I.assertEnumDefaultedMember = H, I.assertEnumMember = Cn, I.assertEnumNumberBody = Os, I.assertEnumNumberMember = Ls, I.assertEnumStringBody = Ut, I.assertEnumStringMember = nr, I.assertEnumSymbolBody = Ds, I.assertExistsTypeAnnotation = et, I.assertExportAllDeclaration = Nt, I.assertExportDeclaration = Sn, I.assertExportDefaultDeclaration = Be, I.assertExportDefaultSpecifier = hr, I.assertExportNamedDeclaration = He, I.assertExportNamespaceSpecifier = Ht, I.assertExportSpecifier = Ct, I.assertExpression = Ii, I.assertExpressionStatement = Y, I.assertExpressionWrapper = ee, I.assertFile = te, I.assertFlow = En, I.assertFlowBaseAnnotation = gn, I.assertFlowDeclaration = vn, I.assertFlowPredicate = In, I.assertFlowType = An, I.assertFor = Ae, I.assertForInStatement = se, I.assertForOfStatement = Ge, I.assertForStatement = Te, I.assertForXStatement = Ce, I.assertFunction = tt, I.assertFunctionDeclaration = be, I.assertFunctionExpression = ve, I.assertFunctionParameter = an, I.assertFunctionParent = tn, I.assertFunctionTypeAnnotation = ps, I.assertFunctionTypeParam = fs, I.assertGenericTypeAnnotation = ds, I.assertIdentifier = ge, I.assertIfStatement = ue, I.assertImmutable = cn, I.assertImport = Wt, I.assertImportAttribute = rs, I.assertImportDeclaration = _e, I.assertImportDefaultSpecifier = it, I.assertImportExpression = Ot, I.assertImportNamespaceSpecifier = Qe, I.assertImportOrExportDeclaration = Tn, I.assertImportSpecifier = wt, I.assertIndexedAccessType = ks, I.assertInferredPredicate = hs, I.assertInterfaceDeclaration = ys, I.assertInterfaceExtends = ft, I.assertInterfaceTypeAnnotation = Zt, I.assertInterpreterDirective = M, I.assertIntersectionTypeAnnotation = ms, I.assertJSX = wn, I.assertJSXAttribute = Ms, I.assertJSXClosingElement = _s, I.assertJSXClosingFragment = Vs, I.assertJSXElement = Bs, I.assertJSXEmptyExpression = Fs, I.assertJSXExpressionContainer = lr, I.assertJSXFragment = Ks, I.assertJSXIdentifier = ur, I.assertJSXMemberExpression = cr, I.assertJSXNamespacedName = js, I.assertJSXOpeningElement = Us, I.assertJSXOpeningFragment = dr, I.assertJSXSpreadAttribute = pr, I.assertJSXSpreadChild = Rs, I.assertJSXText = fr, I.assertLVal = on, I.assertLabeledStatement = ae, I.assertLiteral = un, I.assertLogicalExpression = z, I.assertLoop = N, I.assertMemberExpression = ne, I.assertMetaProperty = $, I.assertMethod = fn, I.assertMiscellaneous = On, I.assertMixedTypeAnnotation = at, I.assertModuleDeclaration = a, I.assertModuleExpression = Gs, I.assertModuleSpecifier = xn, I.assertNewExpression = W, I.assertNoop = qs, I.assertNullLiteral = Ne, I.assertNullLiteralTypeAnnotation = as, I.assertNullableTypeAnnotation = Ts, I.assertNumberLiteral = _n, I.assertNumberLiteralTypeAnnotation = Ft, I.assertNumberTypeAnnotation = Ss, I.assertNumericLiteral = je, I.assertObjectExpression = ce, I.assertObjectMember = dn, I.assertObjectMethod = ye, I.assertObjectPattern = Dt, I.assertObjectProperty = Se, I.assertObjectTypeAnnotation = er, I.assertObjectTypeCallProperty = tr, I.assertObjectTypeIndexer = xs, I.assertObjectTypeInternalSlot = dt, I.assertObjectTypeProperty = bs, I.assertObjectTypeSpreadProperty = Rt, I.assertOpaqueType = rr, I.assertOptionalCallExpression = Gr, I.assertOptionalIndexedAccessType = or, I.assertOptionalMemberExpression = Hr, I.assertParenthesizedExpression = De, I.assertPattern = mn, I.assertPatternLike = nn, I.assertPipelineBareFunction = Qs, I.assertPipelinePrimaryTopicReference = y, I.assertPipelineTopicExpression = yr, I.assertPlaceholder = Vt, I.assertPrivate = Pn, I.assertPrivateName = es, I.assertProgram = Q, I.assertProperty = hn, I.assertPureish = rn, I.assertQualifiedTypeIdentifier = sr, I.assertRecordExpression = Ws, I.assertRegExpLiteral = Je, I.assertRegexLiteral = Bn, I.assertRestElement = me, I.assertRestProperty = Fn, I.assertReturnStatement = Ee, I.assertScopable = Ci, I.assertSequenceExpression = Oe, I.assertSpreadElement = Fe, I.assertSpreadProperty = Rn, I.assertStandardized = vi, I.assertStatement = p, I.assertStaticBlock = ts, I.assertStringLiteral = q, I.assertStringLiteralTypeAnnotation = nt, I.assertStringTypeAnnotation = Ps, I.assertSuper = Xe, I.assertSwitchCase = re, I.assertSwitchStatement = le, I.assertSymbolTypeAnnotation = Ve, I.assertTSAnyKeyword = B, I.assertTSArrayType = Ir, I.assertTSAsExpression = oi, I.assertTSBaseType = Mn, I.assertTSBigIntKeyword = X, I.assertTSBooleanKeyword = J, I.assertTSCallSignatureDeclaration = T, I.assertTSConditionalType = kr, I.assertTSConstructSignatureDeclaration = P, I.assertTSConstructorType = Pr, I.assertTSDeclareFunction = r, I.assertTSDeclareMethod = i, I.assertTSEntityName = ln, I.assertTSEnumBody = ci, I.assertTSEnumDeclaration = pi, I.assertTSEnumMember = fi, I.assertTSExportAssignment = xi, I.assertTSExpressionWithTypeArguments = Kr, I.assertTSExternalModuleReference = Ti, I.assertTSFunctionType = br, I.assertTSImportEqualsDeclaration = mi, I.assertTSImportType = yi, I.assertTSIndexSignature = D, I.assertTSIndexedAccessType = Fr, I.assertTSInferType = Mr, I.assertTSInstantiationExpression = Yr, I.assertTSInterfaceBody = qr, I.assertTSInterfaceDeclaration = Vr, I.assertTSIntersectionType = Lr, I.assertTSIntrinsicKeyword = G, I.assertTSLiteralType = Ur, I.assertTSMappedType = Rr, I.assertTSMethodSignature = C, I.assertTSModuleBlock = hi, I.assertTSModuleDeclaration = di, I.assertTSNamedTupleMember = Or, I.assertTSNamespaceExportDeclaration = bi, I.assertTSNeverKeyword = de, I.assertTSNonNullExpression = Si, I.assertTSNullKeyword = Pe, I.assertTSNumberKeyword = oe, I.assertTSObjectKeyword = xe, I.assertTSOptionalType = Cr, I.assertTSParameterProperty = e, I.assertTSParenthesizedType = _r, I.assertTSPropertySignature = g, I.assertTSQualifiedName = u, I.assertTSRestType = wr, I.assertTSSatisfiesExpression = li, I.assertTSStringKeyword = We, I.assertTSSymbolKeyword = qe, I.assertTSTemplateLiteralType = jr, I.assertTSThisType = xr, I.assertTSTupleType = Nr, I.assertTSType = kn, I.assertTSTypeAliasDeclaration = Jr, I.assertTSTypeAnnotation = Pi, I.assertTSTypeAssertion = ui, I.assertTSTypeElement = Ln, I.assertTSTypeLiteral = vr, I.assertTSTypeOperator = Br, I.assertTSTypeParameter = gi, I.assertTSTypeParameterDeclaration = Ai, I.assertTSTypeParameterInstantiation = Ei, I.assertTSTypePredicate = Ar, I.assertTSTypeQuery = gr, I.assertTSTypeReference = Er, I.assertTSUndefinedKeyword = mr, I.assertTSUnionType = Dr, I.assertTSUnknownKeyword = Tr, I.assertTSVoidKeyword = Sr, I.assertTaggedTemplateExpression = Lt, I.assertTemplateElement = Xt, I.assertTemplateLiteral = Wr, I.assertTerminatorless = f, I.assertThisExpression = St, I.assertThisTypeAnnotation = Es, I.assertThrowStatement = pe, I.assertTopicReference = ot, I.assertTryStatement = xt, I.assertTupleExpression = zs, I.assertTupleTypeAnnotation = As, I.assertTypeAlias = ht, I.assertTypeAnnotation = ir, I.assertTypeCastExpression = vs, I.assertTypeParameter = Is, I.assertTypeParameterDeclaration = Ns, I.assertTypeParameterInstantiation = Cs, I.assertTypeScript = Dn, I.assertTypeofTypeAnnotation = gs, I.assertUnaryExpression = Le, I.assertUnaryLike = yn, I.assertUnionTypeAnnotation = ar, I.assertUpdateExpression = ut, I.assertUserWhitespacable = pn, I.assertV8IntrinsicIdentifier = Js, I.assertVariableDeclaration = bt, I.assertVariableDeclarator = Ye, I.assertVariance = ws, I.assertVoidPattern = t, I.assertVoidTypeAnnotation = yt, I.assertWhile = _, I.assertWhileStatement = Pt, I.assertWithStatement = ct, I.assertYieldExpression = zr;
|
|
7688
7688
|
var n = Ki(), l = Ui();
|
|
7689
7689
|
function c(s, d, ro) {
|
|
7690
7690
|
if (!(0, n.default)(s, d, ro))
|
|
@@ -7726,7 +7726,7 @@ function Uu() {
|
|
|
7726
7726
|
function Z(s, d) {
|
|
7727
7727
|
c("ContinueStatement", s, d);
|
|
7728
7728
|
}
|
|
7729
|
-
function
|
|
7729
|
+
function U(s, d) {
|
|
7730
7730
|
c("DebuggerStatement", s, d);
|
|
7731
7731
|
}
|
|
7732
7732
|
function V(s, d) {
|
|
@@ -8736,8 +8736,8 @@ function qu() {
|
|
|
8736
8736
|
const j = O[F], R = l(O.typeName);
|
|
8737
8737
|
if (x.has(R)) {
|
|
8738
8738
|
let Z = x.get(R);
|
|
8739
|
-
const
|
|
8740
|
-
|
|
8739
|
+
const U = Z[F];
|
|
8740
|
+
U ? (U.params.push(...j.params), U.params = c(U.params)) : Z = j;
|
|
8741
8741
|
} else
|
|
8742
8742
|
x.set(R, O);
|
|
8743
8743
|
continue;
|
|
@@ -8820,11 +8820,11 @@ function ei() {
|
|
|
8820
8820
|
if (R) return R;
|
|
8821
8821
|
const {
|
|
8822
8822
|
type: Z,
|
|
8823
|
-
value:
|
|
8823
|
+
value: U,
|
|
8824
8824
|
loc: V
|
|
8825
8825
|
} = j, A = {
|
|
8826
8826
|
type: Z,
|
|
8827
|
-
value:
|
|
8827
|
+
value: U,
|
|
8828
8828
|
loc: V
|
|
8829
8829
|
};
|
|
8830
8830
|
return O && (A.loc = null), F.set(j, A), A;
|
|
@@ -8981,16 +8981,16 @@ function Hu() {
|
|
|
8981
8981
|
}
|
|
8982
8982
|
return Ea;
|
|
8983
8983
|
}
|
|
8984
|
-
var
|
|
8984
|
+
var K = {}, ul;
|
|
8985
8985
|
function Gu() {
|
|
8986
|
-
if (ul) return
|
|
8987
|
-
ul = 1, Object.defineProperty(
|
|
8986
|
+
if (ul) return K;
|
|
8987
|
+
ul = 1, Object.defineProperty(K, "__esModule", {
|
|
8988
8988
|
value: !0
|
|
8989
|
-
}),
|
|
8989
|
+
}), K.WHILE_TYPES = K.USERWHITESPACABLE_TYPES = K.UNARYLIKE_TYPES = K.TYPESCRIPT_TYPES = K.TSTYPE_TYPES = K.TSTYPEELEMENT_TYPES = K.TSENTITYNAME_TYPES = K.TSBASETYPE_TYPES = K.TERMINATORLESS_TYPES = K.STATEMENT_TYPES = K.STANDARDIZED_TYPES = K.SCOPABLE_TYPES = K.PUREISH_TYPES = K.PROPERTY_TYPES = K.PRIVATE_TYPES = K.PATTERN_TYPES = K.PATTERNLIKE_TYPES = K.OBJECTMEMBER_TYPES = K.MODULESPECIFIER_TYPES = K.MODULEDECLARATION_TYPES = K.MISCELLANEOUS_TYPES = K.METHOD_TYPES = K.LVAL_TYPES = K.LOOP_TYPES = K.LITERAL_TYPES = K.JSX_TYPES = K.IMPORTOREXPORTDECLARATION_TYPES = K.IMMUTABLE_TYPES = K.FUNCTION_TYPES = K.FUNCTIONPARENT_TYPES = K.FUNCTIONPARAMETER_TYPES = K.FOR_TYPES = K.FORXSTATEMENT_TYPES = K.FLOW_TYPES = K.FLOWTYPE_TYPES = K.FLOWPREDICATE_TYPES = K.FLOWDECLARATION_TYPES = K.FLOWBASEANNOTATION_TYPES = K.EXPRESSION_TYPES = K.EXPRESSIONWRAPPER_TYPES = K.EXPORTDECLARATION_TYPES = K.ENUMMEMBER_TYPES = K.ENUMBODY_TYPES = K.DECLARATION_TYPES = K.CONDITIONAL_TYPES = K.COMPLETIONSTATEMENT_TYPES = K.CLASS_TYPES = K.BLOCK_TYPES = K.BLOCKPARENT_TYPES = K.BINARY_TYPES = K.ACCESSOR_TYPES = void 0;
|
|
8990
8990
|
var n = lt();
|
|
8991
|
-
|
|
8992
|
-
const l =
|
|
8993
|
-
return
|
|
8991
|
+
K.STANDARDIZED_TYPES = n.FLIPPED_ALIAS_KEYS.Standardized, K.EXPRESSION_TYPES = n.FLIPPED_ALIAS_KEYS.Expression, K.BINARY_TYPES = n.FLIPPED_ALIAS_KEYS.Binary, K.SCOPABLE_TYPES = n.FLIPPED_ALIAS_KEYS.Scopable, K.BLOCKPARENT_TYPES = n.FLIPPED_ALIAS_KEYS.BlockParent, K.BLOCK_TYPES = n.FLIPPED_ALIAS_KEYS.Block, K.STATEMENT_TYPES = n.FLIPPED_ALIAS_KEYS.Statement, K.TERMINATORLESS_TYPES = n.FLIPPED_ALIAS_KEYS.Terminatorless, K.COMPLETIONSTATEMENT_TYPES = n.FLIPPED_ALIAS_KEYS.CompletionStatement, K.CONDITIONAL_TYPES = n.FLIPPED_ALIAS_KEYS.Conditional, K.LOOP_TYPES = n.FLIPPED_ALIAS_KEYS.Loop, K.WHILE_TYPES = n.FLIPPED_ALIAS_KEYS.While, K.EXPRESSIONWRAPPER_TYPES = n.FLIPPED_ALIAS_KEYS.ExpressionWrapper, K.FOR_TYPES = n.FLIPPED_ALIAS_KEYS.For, K.FORXSTATEMENT_TYPES = n.FLIPPED_ALIAS_KEYS.ForXStatement, K.FUNCTION_TYPES = n.FLIPPED_ALIAS_KEYS.Function, K.FUNCTIONPARENT_TYPES = n.FLIPPED_ALIAS_KEYS.FunctionParent, K.PUREISH_TYPES = n.FLIPPED_ALIAS_KEYS.Pureish, K.DECLARATION_TYPES = n.FLIPPED_ALIAS_KEYS.Declaration, K.FUNCTIONPARAMETER_TYPES = n.FLIPPED_ALIAS_KEYS.FunctionParameter, K.PATTERNLIKE_TYPES = n.FLIPPED_ALIAS_KEYS.PatternLike, K.LVAL_TYPES = n.FLIPPED_ALIAS_KEYS.LVal, K.TSENTITYNAME_TYPES = n.FLIPPED_ALIAS_KEYS.TSEntityName, K.LITERAL_TYPES = n.FLIPPED_ALIAS_KEYS.Literal, K.IMMUTABLE_TYPES = n.FLIPPED_ALIAS_KEYS.Immutable, K.USERWHITESPACABLE_TYPES = n.FLIPPED_ALIAS_KEYS.UserWhitespacable, K.METHOD_TYPES = n.FLIPPED_ALIAS_KEYS.Method, K.OBJECTMEMBER_TYPES = n.FLIPPED_ALIAS_KEYS.ObjectMember, K.PROPERTY_TYPES = n.FLIPPED_ALIAS_KEYS.Property, K.UNARYLIKE_TYPES = n.FLIPPED_ALIAS_KEYS.UnaryLike, K.PATTERN_TYPES = n.FLIPPED_ALIAS_KEYS.Pattern, K.CLASS_TYPES = n.FLIPPED_ALIAS_KEYS.Class;
|
|
8992
|
+
const l = K.IMPORTOREXPORTDECLARATION_TYPES = n.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;
|
|
8993
|
+
return K.EXPORTDECLARATION_TYPES = n.FLIPPED_ALIAS_KEYS.ExportDeclaration, K.MODULESPECIFIER_TYPES = n.FLIPPED_ALIAS_KEYS.ModuleSpecifier, K.ACCESSOR_TYPES = n.FLIPPED_ALIAS_KEYS.Accessor, K.PRIVATE_TYPES = n.FLIPPED_ALIAS_KEYS.Private, K.FLOW_TYPES = n.FLIPPED_ALIAS_KEYS.Flow, K.FLOWTYPE_TYPES = n.FLIPPED_ALIAS_KEYS.FlowType, K.FLOWBASEANNOTATION_TYPES = n.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation, K.FLOWDECLARATION_TYPES = n.FLIPPED_ALIAS_KEYS.FlowDeclaration, K.FLOWPREDICATE_TYPES = n.FLIPPED_ALIAS_KEYS.FlowPredicate, K.ENUMBODY_TYPES = n.FLIPPED_ALIAS_KEYS.EnumBody, K.ENUMMEMBER_TYPES = n.FLIPPED_ALIAS_KEYS.EnumMember, K.JSX_TYPES = n.FLIPPED_ALIAS_KEYS.JSX, K.MISCELLANEOUS_TYPES = n.FLIPPED_ALIAS_KEYS.Miscellaneous, K.TYPESCRIPT_TYPES = n.FLIPPED_ALIAS_KEYS.TypeScript, K.TSTYPEELEMENT_TYPES = n.FLIPPED_ALIAS_KEYS.TSTypeElement, K.TSTYPE_TYPES = n.FLIPPED_ALIAS_KEYS.TSType, K.TSBASETYPE_TYPES = n.FLIPPED_ALIAS_KEYS.TSBaseType, K.MODULEDECLARATION_TYPES = l, K;
|
|
8994
8994
|
}
|
|
8995
8995
|
var Aa = {}, ga = {}, cl;
|
|
8996
8996
|
function hu() {
|
|
@@ -9908,7 +9908,7 @@ function to() {
|
|
|
9908
9908
|
}), Object.defineProperty(n, "cloneDeepWithoutLoc", {
|
|
9909
9909
|
enumerable: !0,
|
|
9910
9910
|
get: function() {
|
|
9911
|
-
return
|
|
9911
|
+
return U.default;
|
|
9912
9912
|
}
|
|
9913
9913
|
}), Object.defineProperty(n, "cloneNode", {
|
|
9914
9914
|
enumerable: !0,
|
|
@@ -10183,7 +10183,7 @@ function to() {
|
|
|
10183
10183
|
}
|
|
10184
10184
|
});
|
|
10185
10185
|
});
|
|
10186
|
-
var j = ei(), R = Yu(), Z = Xu(),
|
|
10186
|
+
var j = ei(), R = Yu(), Z = Xu(), U = $u(), V = Wu(), A = zu(), Y = uu(), te = cu(), se = pu(), Te = du(), be = fu(), ve = Hu(), ge = Gu();
|
|
10187
10187
|
Object.keys(ge).forEach(function($) {
|
|
10188
10188
|
$ === "default" || $ === "__esModule" || Object.prototype.hasOwnProperty.call(l, $) || $ in n && n[$] === ge[$] || Object.defineProperty(n, $, {
|
|
10189
10189
|
enumerable: !0,
|
|
@@ -10573,7 +10573,7 @@ function gc() {
|
|
|
10573
10573
|
value: e
|
|
10574
10574
|
});
|
|
10575
10575
|
}
|
|
10576
|
-
function
|
|
10576
|
+
function U({
|
|
10577
10577
|
toMessage: y,
|
|
10578
10578
|
code: t,
|
|
10579
10579
|
reasonCode: e,
|
|
@@ -10628,7 +10628,7 @@ function gc() {
|
|
|
10628
10628
|
} : i, {
|
|
10629
10629
|
message: T
|
|
10630
10630
|
} = u, P = n(u, R), g = typeof T == "string" ? () => T : T;
|
|
10631
|
-
e[r] =
|
|
10631
|
+
e[r] = U(Object.assign({
|
|
10632
10632
|
code: "BABEL_PARSER_SYNTAX_ERROR",
|
|
10633
10633
|
reasonCode: r,
|
|
10634
10634
|
toMessage: g
|
|
@@ -20192,7 +20192,7 @@ function Tp() {
|
|
|
20192
20192
|
for (let j = O.length - 1; j >= 0; j--) {
|
|
20193
20193
|
let R = O[j];
|
|
20194
20194
|
if (!Re.isImportDeclaration(R)) continue;
|
|
20195
|
-
const Z = R.source.value,
|
|
20195
|
+
const Z = R.source.value, U = [];
|
|
20196
20196
|
for (const V of jc) {
|
|
20197
20197
|
if (!V.module.test(Z)) continue;
|
|
20198
20198
|
const { method: A } = V;
|
|
@@ -20207,7 +20207,7 @@ function Tp() {
|
|
|
20207
20207
|
F[te] = V.links;
|
|
20208
20208
|
break;
|
|
20209
20209
|
case Wn:
|
|
20210
|
-
|
|
20210
|
+
U.push(
|
|
20211
20211
|
Xc(
|
|
20212
20212
|
te,
|
|
20213
20213
|
se
|
|
@@ -20217,13 +20217,13 @@ function Tp() {
|
|
|
20217
20217
|
}
|
|
20218
20218
|
}
|
|
20219
20219
|
}
|
|
20220
|
-
O.splice(j, 1, ...
|
|
20220
|
+
U.length && O.splice(j, 1, ...U);
|
|
20221
20221
|
}
|
|
20222
20222
|
Object.entries(F).forEach(
|
|
20223
20223
|
([j, R]) => {
|
|
20224
20224
|
const Z = k.scope.getBinding(j);
|
|
20225
|
-
Z !== void 0 && (Z.referencePaths.forEach((
|
|
20226
|
-
$c(
|
|
20225
|
+
Z !== void 0 && (Z.referencePaths.forEach((U) => {
|
|
20226
|
+
$c(U, j, R);
|
|
20227
20227
|
}), Z.scope.removeOwnBinding(j));
|
|
20228
20228
|
}
|
|
20229
20229
|
);
|
package/package.json
CHANGED
package/src/ts/index.ts
CHANGED