@vue/compiler-sfc 3.6.0-beta.14 → 3.6.0-beta.16
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/compiler-sfc.cjs.js +3658 -706
- package/dist/compiler-sfc.esm-browser.js +749 -608
- package/package.json +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-sfc v3.6.0-beta.
|
|
2
|
+
* @vue/compiler-sfc v3.6.0-beta.16
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -3607,7 +3607,7 @@ const errorMessages$1 = {
|
|
|
3607
3607
|
[54]: ``
|
|
3608
3608
|
};
|
|
3609
3609
|
//#endregion
|
|
3610
|
-
//#region node_modules/.pnpm/@babel+parser@7.29.
|
|
3610
|
+
//#region node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/lib/index.js
|
|
3611
3611
|
var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3612
3612
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3613
3613
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
@@ -17141,7 +17141,7 @@ const tokenizer = new Tokenizer(stack, {
|
|
|
17141
17141
|
}
|
|
17142
17142
|
},
|
|
17143
17143
|
oncdata(start, end) {
|
|
17144
|
-
if (stack[0].ns !== 0) onText(getSlice(start, end), start, end);
|
|
17144
|
+
if ((stack[0] ? stack[0].ns : currentOptions.ns) !== 0) onText(getSlice(start, end), start, end);
|
|
17145
17145
|
else emitError(1, start - 9);
|
|
17146
17146
|
},
|
|
17147
17147
|
onprocessinginstruction(start) {
|
|
@@ -17615,7 +17615,7 @@ function getSelfName(filename) {
|
|
|
17615
17615
|
const nameMatch = filename.replace(/\?.*$/, "").match(/([^/\\]+)\.\w+$/);
|
|
17616
17616
|
return nameMatch ? capitalize(camelize(nameMatch[1])) : null;
|
|
17617
17617
|
}
|
|
17618
|
-
function createTransformContext(root, { filename = "", prefixIdentifiers = false, hoistStatic = false, hmr = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = NOOP, isCustomElement = NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError, onWarn = defaultOnWarn, compatConfig }) {
|
|
17618
|
+
function createTransformContext(root, { filename = "", prefixIdentifiers = false, hoistStatic = false, hmr = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = NOOP, isCustomElement = NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false, eventDelegation = true, onError = defaultOnError, onWarn = defaultOnWarn, compatConfig }) {
|
|
17619
17619
|
const context = {
|
|
17620
17620
|
filename,
|
|
17621
17621
|
selfName: getSelfName(filename),
|
|
@@ -17637,6 +17637,7 @@ function createTransformContext(root, { filename = "", prefixIdentifiers = false
|
|
|
17637
17637
|
bindingMetadata,
|
|
17638
17638
|
inline,
|
|
17639
17639
|
isTS,
|
|
17640
|
+
eventDelegation,
|
|
17640
17641
|
onError,
|
|
17641
17642
|
onWarn,
|
|
17642
17643
|
compatConfig,
|
|
@@ -17648,6 +17649,7 @@ function createTransformContext(root, { filename = "", prefixIdentifiers = false
|
|
|
17648
17649
|
imports: [],
|
|
17649
17650
|
cached: [],
|
|
17650
17651
|
constantCache: /* @__PURE__ */ new WeakMap(),
|
|
17652
|
+
vForMemoKeyedNodes: /* @__PURE__ */ new WeakSet(),
|
|
17651
17653
|
temps: 0,
|
|
17652
17654
|
identifiers: Object.create(null),
|
|
17653
17655
|
identifierScopes: Object.create(null),
|
|
@@ -20515,7 +20517,7 @@ const transformExpression = (node, context) => {
|
|
|
20515
20517
|
if (dir.type === 7 && dir.name !== "for") {
|
|
20516
20518
|
const exp = dir.exp;
|
|
20517
20519
|
const arg = dir.arg;
|
|
20518
|
-
if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
|
|
20520
|
+
if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && context.vForMemoKeyedNodes.has(node) && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
|
|
20519
20521
|
if (arg && arg.type === 4 && !arg.isStatic) dir.arg = processExpression(arg, context);
|
|
20520
20522
|
}
|
|
20521
20523
|
}
|
|
@@ -20774,7 +20776,10 @@ const transformFor = createStructuralDirectiveTransform$1("for", (node, dir, con
|
|
|
20774
20776
|
let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
|
|
20775
20777
|
const keyProperty = keyExp ? createObjectProperty(`key`, keyExp) : null;
|
|
20776
20778
|
if (isTemplate && memo) memo.exp = processExpression(memo.exp, context);
|
|
20777
|
-
if ((isTemplate || memo) && keyProperty && isDirKey)
|
|
20779
|
+
if ((isTemplate || memo) && keyProperty && isDirKey) {
|
|
20780
|
+
keyExp = keyProp.exp = keyProperty.value = processExpression(keyProperty.value, context);
|
|
20781
|
+
if (memo) context.vForMemoKeyedNodes.add(node);
|
|
20782
|
+
}
|
|
20778
20783
|
const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
|
|
20779
20784
|
const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
|
|
20780
20785
|
forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc);
|
|
@@ -24866,6 +24871,13 @@ function getLiteralExpressionValue(exp, excludeNumber) {
|
|
|
24866
24871
|
}
|
|
24867
24872
|
return exp.isStatic ? exp.content : null;
|
|
24868
24873
|
}
|
|
24874
|
+
function isInTransition(context) {
|
|
24875
|
+
const parentNode = context.parent && context.parent.node;
|
|
24876
|
+
return !!(parentNode && isTransitionNode(parentNode));
|
|
24877
|
+
}
|
|
24878
|
+
function isTransitionNode(node) {
|
|
24879
|
+
return node.type === 1 && isTransitionTag(node.tag);
|
|
24880
|
+
}
|
|
24869
24881
|
function isTransitionTag(tag) {
|
|
24870
24882
|
tag = tag.toLowerCase();
|
|
24871
24883
|
return tag === "transition" || tag === "vaportransition";
|
|
@@ -25097,6 +25109,7 @@ const defaultOptions = {
|
|
|
25097
25109
|
bindingMetadata: EMPTY_OBJ,
|
|
25098
25110
|
inline: false,
|
|
25099
25111
|
isTS: false,
|
|
25112
|
+
eventDelegation: true,
|
|
25100
25113
|
onError: defaultOnError,
|
|
25101
25114
|
onWarn: defaultOnWarn
|
|
25102
25115
|
};
|
|
@@ -25337,6 +25350,8 @@ init_objectSpread2();
|
|
|
25337
25350
|
function genExpression(node, context, assignment) {
|
|
25338
25351
|
node = context.getExpressionReplacement(node);
|
|
25339
25352
|
const { content, ast, isStatic, loc } = node;
|
|
25353
|
+
const { options } = context;
|
|
25354
|
+
const { inline } = options;
|
|
25340
25355
|
if (isStatic) return [[
|
|
25341
25356
|
JSON.stringify(content),
|
|
25342
25357
|
-2,
|
|
@@ -25358,23 +25373,31 @@ function genExpression(node, context, assignment) {
|
|
|
25358
25373
|
let hasMemberExpression = false;
|
|
25359
25374
|
if (ids.length) {
|
|
25360
25375
|
const [frag, push] = buildCodeFragment();
|
|
25361
|
-
|
|
25362
|
-
|
|
25363
|
-
const
|
|
25364
|
-
const
|
|
25365
|
-
const
|
|
25366
|
-
if (leadingText.length) push([leadingText, -3]);
|
|
25367
|
-
const source = content.slice(start, end);
|
|
25376
|
+
let lastEnd = 0;
|
|
25377
|
+
ids.sort((a, b) => a.start - b.start).forEach((id) => {
|
|
25378
|
+
const idStart = id.start - 1;
|
|
25379
|
+
const idEnd = id.end - 1;
|
|
25380
|
+
const source = content.slice(idStart, idEnd);
|
|
25368
25381
|
const parentStack = parentStackMap.get(id);
|
|
25369
25382
|
const parent = parentStack[parentStack.length - 1];
|
|
25383
|
+
let start = idStart;
|
|
25384
|
+
let end = idEnd;
|
|
25385
|
+
if (inline && options.bindingMetadata && options.bindingMetadata[source] === "setup-let" && parent && parent.type === "UpdateExpression" && parent.argument === id) {
|
|
25386
|
+
start = parent.start - 1;
|
|
25387
|
+
end = parent.end - 1;
|
|
25388
|
+
}
|
|
25389
|
+
if (start < lastEnd) return;
|
|
25390
|
+
const leadingText = content.slice(lastEnd, start);
|
|
25391
|
+
if (leadingText.length) push([leadingText, -3]);
|
|
25370
25392
|
hasMemberExpression || (hasMemberExpression = parent && (parent.type === "MemberExpression" || parent.type === "OptionalMemberExpression"));
|
|
25371
25393
|
push(...genIdentifier(source, context, {
|
|
25372
25394
|
start: advancePositionWithClone(node.loc.start, source, start),
|
|
25373
25395
|
end: advancePositionWithClone(node.loc.start, source, end),
|
|
25374
25396
|
source
|
|
25375
|
-
}, hasMemberExpression ? void 0 : assignment, id, parent, parentStack));
|
|
25376
|
-
|
|
25397
|
+
}, hasMemberExpression ? void 0 : assignment, id, parent, parentStack, node));
|
|
25398
|
+
lastEnd = end;
|
|
25377
25399
|
});
|
|
25400
|
+
if (lastEnd < content.length) push([content.slice(lastEnd), -3]);
|
|
25378
25401
|
if (assignment && hasMemberExpression) push(` = ${assignment}`);
|
|
25379
25402
|
return frag;
|
|
25380
25403
|
} else return [[
|
|
@@ -25383,7 +25406,7 @@ function genExpression(node, context, assignment) {
|
|
|
25383
25406
|
loc
|
|
25384
25407
|
]];
|
|
25385
25408
|
}
|
|
25386
|
-
function genIdentifier(raw, context, loc, assignment, id, parent, parentStack) {
|
|
25409
|
+
function genIdentifier(raw, context, loc, assignment, id, parent, parentStack, sourceNode) {
|
|
25387
25410
|
const { options, helper, identifiers } = context;
|
|
25388
25411
|
const { inline, bindingMetadata } = options;
|
|
25389
25412
|
let name = raw;
|
|
@@ -25403,19 +25426,49 @@ function genIdentifier(raw, context, loc, assignment, id, parent, parentStack) {
|
|
|
25403
25426
|
else return genExpression(replacement, context, assignment);
|
|
25404
25427
|
}
|
|
25405
25428
|
let prefix;
|
|
25406
|
-
if (isStaticProperty(parent) && parent.shorthand) prefix = `${raw}: `;
|
|
25407
25429
|
const type = bindingMetadata && bindingMetadata[raw];
|
|
25430
|
+
const isDestructureAssignment = parent && isInDestructureAssignment(parent, parentStack || []);
|
|
25431
|
+
const isAssignmentLVal = parent && parent.type === "AssignmentExpression" && parent.left === id;
|
|
25432
|
+
const isUpdateArg = parent && parent.type === "UpdateExpression" && parent.argument === id;
|
|
25433
|
+
if (isStaticProperty(parent) && parent.shorthand && !(inline && type === "setup-let" && isDestructureAssignment)) prefix = `${raw}: `;
|
|
25408
25434
|
if (inline) switch (type) {
|
|
25409
25435
|
case "setup-let":
|
|
25410
|
-
|
|
25436
|
+
if (isAssignmentLVal) {
|
|
25437
|
+
const { right, operator } = parent;
|
|
25438
|
+
const source = sourceNode;
|
|
25439
|
+
const sourceContent = source.content;
|
|
25440
|
+
const rightStart = right.start - 1;
|
|
25441
|
+
const rightEnd = right.end - 1;
|
|
25442
|
+
const rightContent = sourceContent.slice(rightStart, rightEnd);
|
|
25443
|
+
const rightExp = createSimpleExpression(rightContent, false, {
|
|
25444
|
+
start: advancePositionWithClone(source.loc.start, sourceContent, rightStart),
|
|
25445
|
+
end: advancePositionWithClone(source.loc.start, sourceContent, rightEnd),
|
|
25446
|
+
source: rightContent
|
|
25447
|
+
});
|
|
25448
|
+
rightExp.ast = parseExp(context, rightContent);
|
|
25449
|
+
return [
|
|
25450
|
+
prefix,
|
|
25451
|
+
`${helper("isRef")}(${raw}) ? ${raw}.value ${operator} `,
|
|
25452
|
+
...genExpression(rightExp, context),
|
|
25453
|
+
` : `,
|
|
25454
|
+
[
|
|
25455
|
+
raw,
|
|
25456
|
+
-2,
|
|
25457
|
+
loc,
|
|
25458
|
+
name
|
|
25459
|
+
]
|
|
25460
|
+
];
|
|
25461
|
+
} else if (isUpdateArg) {
|
|
25462
|
+
const { prefix: isPrefix, operator } = parent;
|
|
25463
|
+
const updatePrefix = isPrefix ? operator : ``;
|
|
25464
|
+
const updatePostfix = isPrefix ? `` : operator;
|
|
25465
|
+
raw = `${helper("isRef")}(${raw}) ? ${updatePrefix}${raw}.value${updatePostfix} : ${updatePrefix}${raw}${updatePostfix}`;
|
|
25466
|
+
} else if (!isDestructureAssignment) name = raw = assignment ? `${helper("isRef")}(${raw}) ? (${raw}.value = ${assignment}) : (${raw} = ${assignment})` : unref();
|
|
25411
25467
|
break;
|
|
25412
25468
|
case "setup-ref":
|
|
25413
25469
|
name = raw = withAssignment(`${raw}.value`);
|
|
25414
25470
|
break;
|
|
25415
25471
|
case "setup-maybe-ref":
|
|
25416
|
-
const isDestructureAssignment = parent && isInDestructureAssignment(parent, parentStack || []);
|
|
25417
|
-
const isAssignmentLVal = parent && parent.type === "AssignmentExpression" && parent.left === id;
|
|
25418
|
-
const isUpdateArg = parent && parent.type === "UpdateExpression" && parent.argument === id;
|
|
25419
25472
|
raw = isAssignmentLVal || isUpdateArg || isDestructureAssignment ? name = `${raw}.value` : assignment ? `${helper("isRef")}(${raw}) ? (${raw}.value = ${assignment}) : null` : unref();
|
|
25420
25473
|
break;
|
|
25421
25474
|
case "props":
|
|
@@ -26316,7 +26369,12 @@ function genPropKey({ key: node, modifier, runtimeCamelize, handler, handlerModi
|
|
|
26316
26369
|
if (runtimeCamelize) {
|
|
26317
26370
|
key.push(" || \"\"");
|
|
26318
26371
|
key = genCall(helper("camelize"), key);
|
|
26319
|
-
}
|
|
26372
|
+
} else if (modifier) key = [
|
|
26373
|
+
"(",
|
|
26374
|
+
...key,
|
|
26375
|
+
" || \"\"",
|
|
26376
|
+
")"
|
|
26377
|
+
];
|
|
26320
26378
|
if (handler) key = genCall(helper("toHandlerKey"), key);
|
|
26321
26379
|
return [
|
|
26322
26380
|
"[",
|
|
@@ -26408,6 +26466,11 @@ function genVShow(oper, context) {
|
|
|
26408
26466
|
])];
|
|
26409
26467
|
}
|
|
26410
26468
|
//#endregion
|
|
26469
|
+
//#region packages/compiler-vapor/src/generators/modifier.ts
|
|
26470
|
+
function genDirectiveModifiers(modifiers) {
|
|
26471
|
+
return modifiers.map((value) => `${isSimpleIdentifier(value) ? value : JSON.stringify(value)}: true`).join(", ");
|
|
26472
|
+
}
|
|
26473
|
+
//#endregion
|
|
26411
26474
|
//#region packages/compiler-vapor/src/generators/vModel.ts
|
|
26412
26475
|
const helperMap = {
|
|
26413
26476
|
text: "applyTextModel",
|
|
@@ -26422,7 +26485,7 @@ function genVModel(oper, context) {
|
|
|
26422
26485
|
`() => (`,
|
|
26423
26486
|
...genExpression(exp, context),
|
|
26424
26487
|
`)`
|
|
26425
|
-
], genModelHandler(exp, context), modifiers.length ? `{ ${modifiers.map((e) => e.content
|
|
26488
|
+
], genModelHandler(exp, context), modifiers.length ? `{ ${genDirectiveModifiers(modifiers.map((e) => e.content))} }` : void 0)];
|
|
26426
26489
|
}
|
|
26427
26490
|
function genModelHandler(exp, context) {
|
|
26428
26491
|
return [
|
|
@@ -26464,14 +26527,15 @@ function genCustomDirectives(opers, context) {
|
|
|
26464
26527
|
return genMulti(DELIMITERS_ARRAY.concat("void 0"), directiveVar, value, argument, modifiers);
|
|
26465
26528
|
}
|
|
26466
26529
|
}
|
|
26467
|
-
function genDirectiveModifiers(modifiers) {
|
|
26468
|
-
return modifiers.map((value) => `${isSimpleIdentifier(value) ? value : JSON.stringify(value)}: true`).join(", ");
|
|
26469
|
-
}
|
|
26470
26530
|
function filterCustomDirectives(id, operations) {
|
|
26471
26531
|
return operations.filter((oper) => oper.type === 14 && oper.element === id && !oper.builtin);
|
|
26472
26532
|
}
|
|
26473
26533
|
//#endregion
|
|
26474
26534
|
//#region packages/compiler-vapor/src/generators/component.ts
|
|
26535
|
+
function genStaticModifierPropKey(name) {
|
|
26536
|
+
const key = getModifierPropName(name);
|
|
26537
|
+
return [isSimpleIdentifier(key) ? key : JSON.stringify(key)];
|
|
26538
|
+
}
|
|
26475
26539
|
function genCreateComponent(operation, context) {
|
|
26476
26540
|
const { helper } = context;
|
|
26477
26541
|
const singleUseAssetComponentNames = context.singleUseAssetComponentNames;
|
|
@@ -26613,7 +26677,7 @@ function genStaticProps(props, context, dynamicProps, directStaticLiteralProps =
|
|
|
26613
26677
|
}
|
|
26614
26678
|
const { key, modelModifiers } = prop;
|
|
26615
26679
|
if (modelModifiers && modelModifiers.length) {
|
|
26616
|
-
const modifiersKey = key.isStatic ?
|
|
26680
|
+
const modifiersKey = key.isStatic ? genStaticModifierPropKey(key.content) : [
|
|
26617
26681
|
"[",
|
|
26618
26682
|
...genExpression(key, context),
|
|
26619
26683
|
" + \"Modifiers\"]"
|
|
@@ -26656,7 +26720,7 @@ function genDynamicProps(props, context, directStaticLiteralProps = false) {
|
|
|
26656
26720
|
]);
|
|
26657
26721
|
const { modelModifiers } = p;
|
|
26658
26722
|
if (modelModifiers && modelModifiers.length) {
|
|
26659
|
-
const modifiersKey = p.key.isStatic ?
|
|
26723
|
+
const modifiersKey = p.key.isStatic ? genStaticModifierPropKey(p.key.content) : [
|
|
26660
26724
|
"[",
|
|
26661
26725
|
...genExpression(p.key, context),
|
|
26662
26726
|
" + \"Modifiers\"]"
|
|
@@ -26781,7 +26845,7 @@ function genDynamicSlot(slot, context, withFunction = false) {
|
|
|
26781
26845
|
}
|
|
26782
26846
|
function genBasicDynamicSlot(slot, context) {
|
|
26783
26847
|
const { name, fn } = slot;
|
|
26784
|
-
return genMulti(DELIMITERS_OBJECT_NEWLINE, ["name: ", ...genExpression(name, context)], ["fn: ", ...genSlotBlockWithProps(fn, context)]);
|
|
26848
|
+
return genMulti(DELIMITERS_OBJECT_NEWLINE, ["name: ", ...genExpression(name, context)], ["fn: ", ...genSlotBlockWithProps(fn, context, false)]);
|
|
26785
26849
|
}
|
|
26786
26850
|
function genLoopSlot(slot, context) {
|
|
26787
26851
|
const { name, fn, loop } = slot;
|
|
@@ -26793,7 +26857,7 @@ function genLoopSlot(slot, context) {
|
|
|
26793
26857
|
if (rawValue) idMap[rawValue] = rawValue;
|
|
26794
26858
|
if (rawKey) idMap[rawKey] = rawKey;
|
|
26795
26859
|
if (rawIndex) idMap[rawIndex] = rawIndex;
|
|
26796
|
-
const slotExpr = genMulti(DELIMITERS_OBJECT_NEWLINE, ["name: ", ...context.withId(() => genExpression(name, context), idMap)], ["fn: ", ...context.withId(() => genSlotBlockWithProps(fn, context), idMap)]);
|
|
26860
|
+
const slotExpr = genMulti(DELIMITERS_OBJECT_NEWLINE, ["name: ", ...context.withId(() => genExpression(name, context), idMap)], ["fn: ", ...context.withId(() => genSlotBlockWithProps(fn, context, false), idMap)]);
|
|
26797
26861
|
return [...genCall(context.helper("createForSlots"), genExpression(source, context), [
|
|
26798
26862
|
...genMulti([
|
|
26799
26863
|
"(",
|
|
@@ -26819,7 +26883,7 @@ function genConditionalSlot(slot, context) {
|
|
|
26819
26883
|
INDENT_END
|
|
26820
26884
|
];
|
|
26821
26885
|
}
|
|
26822
|
-
function genSlotBlockWithProps(oper, context) {
|
|
26886
|
+
function genSlotBlockWithProps(oper, context, emitNonStableFlag = true) {
|
|
26823
26887
|
let propsName;
|
|
26824
26888
|
let exitScope;
|
|
26825
26889
|
let depth;
|
|
@@ -26834,10 +26898,45 @@ function genSlotBlockWithProps(oper, context) {
|
|
|
26834
26898
|
const exitSlotBlock = context.enterSlotBlock();
|
|
26835
26899
|
markSlotRootOperations(oper);
|
|
26836
26900
|
let blockFn = context.withId(() => genBlock(oper, context, propsName ? [propsName] : []), idMap);
|
|
26901
|
+
if (emitNonStableFlag && !hasStableSlotRoot(oper, context)) blockFn = genCall(context.helper("extend"), blockFn, `{ _: 8 }`);
|
|
26837
26902
|
exitSlotBlock();
|
|
26838
26903
|
exitScope && exitScope();
|
|
26839
26904
|
return blockFn;
|
|
26840
26905
|
}
|
|
26906
|
+
const commentOnlyTemplateRE = /^(?:<!--[\s\S]*?-->)+$/;
|
|
26907
|
+
function hasStableSlotRoot(block, context) {
|
|
26908
|
+
let hasValidRoot = false;
|
|
26909
|
+
for (let i = 0; i < block.returns.length; i++) {
|
|
26910
|
+
const id = block.returns[i];
|
|
26911
|
+
const child = findReturnedDynamic$1(block, id);
|
|
26912
|
+
const operation = child && child.operation;
|
|
26913
|
+
if (!operation) {
|
|
26914
|
+
if (child && isStableTemplateSlotRoot(child, context)) hasValidRoot = true;
|
|
26915
|
+
continue;
|
|
26916
|
+
}
|
|
26917
|
+
switch (operation.type) {
|
|
26918
|
+
case 12:
|
|
26919
|
+
if (!operation.dynamic || operation.dynamic.isStatic) {
|
|
26920
|
+
hasValidRoot = true;
|
|
26921
|
+
continue;
|
|
26922
|
+
}
|
|
26923
|
+
return false;
|
|
26924
|
+
case 17:
|
|
26925
|
+
if (hasStableSlotRoot(operation.block, context)) {
|
|
26926
|
+
hasValidRoot = true;
|
|
26927
|
+
continue;
|
|
26928
|
+
}
|
|
26929
|
+
return false;
|
|
26930
|
+
default: return false;
|
|
26931
|
+
}
|
|
26932
|
+
}
|
|
26933
|
+
return hasValidRoot;
|
|
26934
|
+
}
|
|
26935
|
+
function isStableTemplateSlotRoot(child, context) {
|
|
26936
|
+
if (child.template == null) return false;
|
|
26937
|
+
const content = context.ir.template.entries[child.template].content;
|
|
26938
|
+
return content !== "" && !commentOnlyTemplateRE.test(content.trim());
|
|
26939
|
+
}
|
|
26841
26940
|
//#endregion
|
|
26842
26941
|
//#region packages/compiler-vapor/src/generators/slotOutlet.ts
|
|
26843
26942
|
function genSlotOutlet(oper, context) {
|
|
@@ -27174,7 +27273,7 @@ function genBlockContent(block, context, root, genEffectsExtraFrag) {
|
|
|
27174
27273
|
else if (genEffectsExtraFrag) push(...genEffects([], context, genEffectsExtraFrag));
|
|
27175
27274
|
push(NEWLINE, `return `);
|
|
27176
27275
|
const returnNodes = returns.map((n) => `n${n}`);
|
|
27177
|
-
push(...returnNodes.length > 1 ? genMulti(DELIMITERS_ARRAY, ...returnNodes) : [returnNodes[0] || "
|
|
27276
|
+
push(...returnNodes.length > 1 ? genMulti(DELIMITERS_ARRAY, ...returnNodes) : [returnNodes[0] || "[]"]);
|
|
27178
27277
|
resetBlock();
|
|
27179
27278
|
context.singleUseAssetComponentNames = prevSingleUseAssetComponentNames;
|
|
27180
27279
|
return frag;
|
|
@@ -27513,12 +27612,37 @@ const transformVBind = (dir, node, context) => {
|
|
|
27513
27612
|
};
|
|
27514
27613
|
};
|
|
27515
27614
|
//#endregion
|
|
27615
|
+
//#region packages/compiler-vapor/src/transforms/vHtml.ts
|
|
27616
|
+
function ignoreVHtmlChildren(node, context, clear) {
|
|
27617
|
+
if (!node.children.length) return;
|
|
27618
|
+
const dir = findDir$1(node, "html");
|
|
27619
|
+
if (!dir) return;
|
|
27620
|
+
context.options.onError(createDOMCompilerError(55, dir.loc));
|
|
27621
|
+
if (clear === "node") node.children.length = 0;
|
|
27622
|
+
else context.childrenTemplate.length = 0;
|
|
27623
|
+
}
|
|
27624
|
+
const transformVHtml = (dir, node, context) => {
|
|
27625
|
+
let { exp, loc } = dir;
|
|
27626
|
+
if (!exp) {
|
|
27627
|
+
context.options.onError(createDOMCompilerError(54, loc));
|
|
27628
|
+
exp = EMPTY_EXPRESSION;
|
|
27629
|
+
}
|
|
27630
|
+
ignoreVHtmlChildren(node, context, "template");
|
|
27631
|
+
context.registerEffect([exp], {
|
|
27632
|
+
type: 8,
|
|
27633
|
+
element: context.reference(),
|
|
27634
|
+
value: exp,
|
|
27635
|
+
isComponent: node.tagType === 1
|
|
27636
|
+
});
|
|
27637
|
+
};
|
|
27638
|
+
//#endregion
|
|
27516
27639
|
//#region packages/compiler-vapor/src/transforms/transformElement.ts
|
|
27517
27640
|
init_objectSpread2();
|
|
27518
27641
|
const isReservedProp = /* @__PURE__ */ makeMap(",key,ref,ref_for,ref_key,");
|
|
27519
27642
|
const transformElement = (node, context) => {
|
|
27520
27643
|
let effectIndex = context.block.effect.length;
|
|
27521
27644
|
const getEffectIndex = () => effectIndex++;
|
|
27645
|
+
if (node.type === 1 && node.children.length) ignoreVHtmlChildren(node, context, "node");
|
|
27522
27646
|
let parentSlots;
|
|
27523
27647
|
if (node.type === 1 && (node.tagType === 1 || context.options.isCustomElement(node.tag))) {
|
|
27524
27648
|
parentSlots = context.slots;
|
|
@@ -27649,7 +27773,6 @@ function transformNativeElement(node, propsResult, staticKey, singleRoot, contex
|
|
|
27649
27773
|
let template = "";
|
|
27650
27774
|
template += `<${tag}`;
|
|
27651
27775
|
if (scopeId) template += ` ${scopeId}`;
|
|
27652
|
-
const dynamicProps = [];
|
|
27653
27776
|
if (propsResult[0]) {
|
|
27654
27777
|
const [, dynamicArgs, expressions] = propsResult;
|
|
27655
27778
|
context.registerEffect(expressions, {
|
|
@@ -27670,54 +27793,25 @@ function transformNativeElement(node, propsResult, staticKey, singleRoot, contex
|
|
|
27670
27793
|
};
|
|
27671
27794
|
for (const prop of propsResult[1]) {
|
|
27672
27795
|
const { key, values } = prop;
|
|
27673
|
-
|
|
27796
|
+
const canStringifyAttrName = key.isStatic && !UNSAFE_ATTR_NAME_RE.test(key.content);
|
|
27797
|
+
let foldedValue;
|
|
27798
|
+
if (canStringifyAttrName && context.imports.some((imported) => values[0].content.includes(imported.exp.content))) {
|
|
27674
27799
|
if (!prevWasQuoted) template += ` `;
|
|
27675
27800
|
template += `${key.content}="${IMPORT_EXP_START}${values[0].content}${IMPORT_EXP_END}"`;
|
|
27676
27801
|
prevWasQuoted = true;
|
|
27677
|
-
} else if (
|
|
27678
|
-
const value = values[0].content === "''" ? "" : values[0].content;
|
|
27679
|
-
appendTemplateProp(key.content, value);
|
|
27680
|
-
} else {
|
|
27681
|
-
const include = foldBooleanAttrValue(values);
|
|
27682
|
-
if (include != null) {
|
|
27683
|
-
if (include) appendTemplateProp(key.content);
|
|
27684
|
-
} else {
|
|
27685
|
-
dynamicProps.push(key.content);
|
|
27686
|
-
context.registerEffect(values, {
|
|
27687
|
-
type: 3,
|
|
27688
|
-
element: context.reference(),
|
|
27689
|
-
prop,
|
|
27690
|
-
tag
|
|
27691
|
-
}, getEffectIndex);
|
|
27692
|
-
}
|
|
27693
|
-
}
|
|
27694
|
-
else if (key.isStatic && !prop.modifier && hasBoundValue(values)) {
|
|
27695
|
-
let foldedValue;
|
|
27696
|
-
if (key.content === "class") foldedValue = foldClassValues(values);
|
|
27697
|
-
else if (key.content === "style") foldedValue = foldStyleValues(values);
|
|
27698
|
-
if (foldedValue != null) {
|
|
27699
|
-
if (foldedValue) appendTemplateProp(key.content, foldedValue, true);
|
|
27700
|
-
} else {
|
|
27701
|
-
dynamicProps.push(key.content);
|
|
27702
|
-
context.registerEffect(values, {
|
|
27703
|
-
type: 3,
|
|
27704
|
-
element: context.reference(),
|
|
27705
|
-
prop,
|
|
27706
|
-
tag
|
|
27707
|
-
}, getEffectIndex);
|
|
27708
|
-
}
|
|
27709
|
-
} else if (key.isStatic && values.length === 1 && (values[0].isStatic || values[0].content === "''") && !dynamicKeys.includes(key.content)) {
|
|
27802
|
+
} else if (canStringifyAttrName && values.length === 1 && (values[0].isStatic || values[0].content === "''") && !dynamicKeys.includes(key.content)) {
|
|
27710
27803
|
const value = values[0].content === "''" ? "" : values[0].content;
|
|
27711
27804
|
appendTemplateProp(key.content, value);
|
|
27712
|
-
} else {
|
|
27713
|
-
|
|
27714
|
-
|
|
27715
|
-
|
|
27716
|
-
|
|
27717
|
-
|
|
27718
|
-
|
|
27719
|
-
|
|
27720
|
-
|
|
27805
|
+
} else if (canStringifyAttrName && !prop.modifier && isBooleanAttr(key.content) && (foldedValue = foldBooleanAttrValue(values)) != null) {
|
|
27806
|
+
if (foldedValue) appendTemplateProp(key.content);
|
|
27807
|
+
} else if (canStringifyAttrName && !prop.modifier && hasBoundValue(values) && (foldedValue = key.content === "class" ? foldClassValues(values) : key.content === "style" ? foldStyleValues(values) : void 0) != null) {
|
|
27808
|
+
if (foldedValue) appendTemplateProp(key.content, foldedValue, true);
|
|
27809
|
+
} else context.registerEffect(values, {
|
|
27810
|
+
type: 3,
|
|
27811
|
+
element: context.reference(),
|
|
27812
|
+
prop,
|
|
27813
|
+
tag
|
|
27814
|
+
}, getEffectIndex);
|
|
27721
27815
|
}
|
|
27722
27816
|
}
|
|
27723
27817
|
template += `>` + context.childrenTemplate.join("");
|
|
@@ -28230,25 +28324,6 @@ const transformVOnce = (node, context) => {
|
|
|
28230
28324
|
if (node.type === 1 && findDir$1(node, "once", true)) context.inVOnce = true;
|
|
28231
28325
|
};
|
|
28232
28326
|
//#endregion
|
|
28233
|
-
//#region packages/compiler-vapor/src/transforms/vHtml.ts
|
|
28234
|
-
const transformVHtml = (dir, node, context) => {
|
|
28235
|
-
let { exp, loc } = dir;
|
|
28236
|
-
if (!exp) {
|
|
28237
|
-
context.options.onError(createDOMCompilerError(54, loc));
|
|
28238
|
-
exp = EMPTY_EXPRESSION;
|
|
28239
|
-
}
|
|
28240
|
-
if (node.children.length) {
|
|
28241
|
-
context.options.onError(createDOMCompilerError(55, loc));
|
|
28242
|
-
context.childrenTemplate.length = 0;
|
|
28243
|
-
}
|
|
28244
|
-
context.registerEffect([exp], {
|
|
28245
|
-
type: 8,
|
|
28246
|
-
element: context.reference(),
|
|
28247
|
-
value: exp,
|
|
28248
|
-
isComponent: node.tagType === 1
|
|
28249
|
-
});
|
|
28250
|
-
};
|
|
28251
|
-
//#endregion
|
|
28252
28327
|
//#region packages/compiler-vapor/src/transforms/transformText.ts
|
|
28253
28328
|
const seen = /* @__PURE__ */ new WeakMap();
|
|
28254
28329
|
function markNonTemplate(node, context) {
|
|
@@ -28446,12 +28521,10 @@ const transformVOn = (dir, node, context) => {
|
|
|
28446
28521
|
const { keyModifiers, nonKeyModifiers, eventOptionModifiers } = resolveModifiers(arg.isStatic ? `on${arg.content}` : arg, modifiers, null, loc);
|
|
28447
28522
|
let keyOverride;
|
|
28448
28523
|
const isStaticClick = arg.isStatic && arg.content.toLowerCase() === "click";
|
|
28449
|
-
if (nonKeyModifiers.includes("middle")) {
|
|
28450
|
-
if (keyOverride) {}
|
|
28451
|
-
if (!isStaticClick && !arg.isStatic) keyOverride = ["click", "mouseup"];
|
|
28452
|
-
}
|
|
28453
28524
|
if (nonKeyModifiers.includes("right")) {
|
|
28454
28525
|
if (!isStaticClick && !arg.isStatic) keyOverride = ["click", "contextmenu"];
|
|
28526
|
+
} else if (nonKeyModifiers.includes("middle")) {
|
|
28527
|
+
if (!isStaticClick && !arg.isStatic) keyOverride = ["click", "mouseup"];
|
|
28455
28528
|
}
|
|
28456
28529
|
arg = normalizeStaticEventArg(arg, nonKeyModifiers);
|
|
28457
28530
|
if (keyModifiers.length && isStaticExp(arg) && !isKeyboardEvent(`on${arg.content.toLowerCase()}`)) keyModifiers.length = 0;
|
|
@@ -28465,7 +28538,7 @@ const transformVOn = (dir, node, context) => {
|
|
|
28465
28538
|
options: eventOptionModifiers
|
|
28466
28539
|
}
|
|
28467
28540
|
};
|
|
28468
|
-
const delegate = arg.isStatic && !eventOptionModifiers.length && !hasStopHandlerForStaticEvent(node, arg.content) && delegatedEvents(arg.content);
|
|
28541
|
+
const delegate = context.options.eventDelegation && arg.isStatic && !eventOptionModifiers.length && !hasStopHandlerForStaticEvent(node, arg.content) && delegatedEvents(arg.content);
|
|
28469
28542
|
const operation = {
|
|
28470
28543
|
type: 6,
|
|
28471
28544
|
element: context.reference(),
|
|
@@ -28486,8 +28559,8 @@ function normalizeStaticEventArg(arg, nonKeyModifiers) {
|
|
|
28486
28559
|
if (!arg.isStatic) return arg;
|
|
28487
28560
|
let normalized = arg;
|
|
28488
28561
|
const isStaticClick = arg.content.toLowerCase() === "click";
|
|
28489
|
-
if (nonKeyModifiers.includes("middle") && isStaticClick) normalized = extend({}, normalized, { content: "mouseup" });
|
|
28490
28562
|
if (nonKeyModifiers.includes("right") && isStaticClick) normalized = extend({}, normalized, { content: "contextmenu" });
|
|
28563
|
+
else if (nonKeyModifiers.includes("middle") && isStaticClick) normalized = extend({}, normalized, { content: "mouseup" });
|
|
28491
28564
|
return normalized;
|
|
28492
28565
|
}
|
|
28493
28566
|
function hasStopHandlerForStaticEvent(node, eventName) {
|
|
@@ -28688,11 +28761,14 @@ function processIf(node, dir, context) {
|
|
|
28688
28761
|
}
|
|
28689
28762
|
while (lastIfNode.negative && lastIfNode.negative.type === 15) lastIfNode = lastIfNode.negative;
|
|
28690
28763
|
if (dir.name === "else-if" && lastIfNode.negative) context.options.onError(createCompilerError(30, node.loc));
|
|
28691
|
-
|
|
28692
|
-
|
|
28693
|
-
|
|
28764
|
+
const comments = context.comment;
|
|
28765
|
+
if (comments.length) {
|
|
28766
|
+
if (!isInTransition(context)) {
|
|
28767
|
+
node = wrapTemplate(node, ["else-if", "else"]);
|
|
28768
|
+
context.node = node = extend({}, node, { children: [...comments, ...node.children] });
|
|
28769
|
+
}
|
|
28770
|
+
comments.length = 0;
|
|
28694
28771
|
}
|
|
28695
|
-
context.root.comment = [];
|
|
28696
28772
|
const [branch, onExit] = createIfBranch(node, context);
|
|
28697
28773
|
if (dir.name === "else") lastIfNode.negative = branch;
|
|
28698
28774
|
else lastIfNode.negative = {
|
|
@@ -28943,7 +29019,7 @@ function transformTemplateSlot(node, dir, context) {
|
|
|
28943
29019
|
});
|
|
28944
29020
|
else if (vElse) {
|
|
28945
29021
|
const vIfSlot = slots[slots.length - 1];
|
|
28946
|
-
if (vIfSlot.slotType === 3) {
|
|
29022
|
+
if (vIfSlot && vIfSlot.slotType === 3) {
|
|
28947
29023
|
let ifNode = vIfSlot;
|
|
28948
29024
|
while (ifNode.negative && ifNode.negative.slotType === 3) ifNode = ifNode.negative;
|
|
28949
29025
|
const negative = vElse.exp ? {
|
|
@@ -33471,7 +33547,7 @@ const trimPlugin = () => {
|
|
|
33471
33547
|
};
|
|
33472
33548
|
trimPlugin.postcss = true;
|
|
33473
33549
|
//#endregion
|
|
33474
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33550
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/unesc.js
|
|
33475
33551
|
var require_unesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33476
33552
|
exports.__esModule = true;
|
|
33477
33553
|
exports["default"] = unesc;
|
|
@@ -33523,7 +33599,7 @@ var require_unesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
33523
33599
|
module.exports = exports.default;
|
|
33524
33600
|
}));
|
|
33525
33601
|
//#endregion
|
|
33526
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33602
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/getProp.js
|
|
33527
33603
|
var require_getProp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33528
33604
|
exports.__esModule = true;
|
|
33529
33605
|
exports["default"] = getProp;
|
|
@@ -33539,7 +33615,7 @@ var require_getProp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
33539
33615
|
module.exports = exports.default;
|
|
33540
33616
|
}));
|
|
33541
33617
|
//#endregion
|
|
33542
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33618
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/ensureObject.js
|
|
33543
33619
|
var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33544
33620
|
exports.__esModule = true;
|
|
33545
33621
|
exports["default"] = ensureObject;
|
|
@@ -33554,7 +33630,7 @@ var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
33554
33630
|
module.exports = exports.default;
|
|
33555
33631
|
}));
|
|
33556
33632
|
//#endregion
|
|
33557
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33633
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/stripComments.js
|
|
33558
33634
|
var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33559
33635
|
exports.__esModule = true;
|
|
33560
33636
|
exports["default"] = stripComments;
|
|
@@ -33575,38 +33651,93 @@ var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
33575
33651
|
module.exports = exports.default;
|
|
33576
33652
|
}));
|
|
33577
33653
|
//#endregion
|
|
33578
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33654
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/maxNestingDepth.js
|
|
33655
|
+
var require_maxNestingDepth = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
33656
|
+
exports.__esModule = true;
|
|
33657
|
+
exports.MAX_NESTING_DEPTH = void 0;
|
|
33658
|
+
exports["default"] = resolveMaxNestingDepth;
|
|
33659
|
+
/**
|
|
33660
|
+
* The default maximum selector nesting depth allowed when parsing or
|
|
33661
|
+
* serializing a selector. Going beyond this would otherwise recurse deeply
|
|
33662
|
+
* enough to overflow the call stack (CVE-2026-9358 / CWE-674). Real-world
|
|
33663
|
+
* selectors never get anywhere near this, so it acts purely as a safety net
|
|
33664
|
+
* that turns an uncatchable stack overflow into a catchable error.
|
|
33665
|
+
*/
|
|
33666
|
+
var MAX_NESTING_DEPTH = exports.MAX_NESTING_DEPTH = 256;
|
|
33667
|
+
/**
|
|
33668
|
+
* Coerce a user-supplied nesting-depth limit into a safe value. Anything that
|
|
33669
|
+
* is not a non-negative safe integer (NaN, Infinity, negative numbers, or a
|
|
33670
|
+
* non-number) would disable or break the guard, so it falls back to the
|
|
33671
|
+
* default.
|
|
33672
|
+
*
|
|
33673
|
+
* @param {unknown} value the limit provided through the `maxNestingDepth` option
|
|
33674
|
+
* @returns {number} a safe, non-negative integer limit
|
|
33675
|
+
*/
|
|
33676
|
+
function resolveMaxNestingDepth(value) {
|
|
33677
|
+
return Number.isSafeInteger(value) && value >= 0 ? value : MAX_NESTING_DEPTH;
|
|
33678
|
+
}
|
|
33679
|
+
}));
|
|
33680
|
+
//#endregion
|
|
33681
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/index.js
|
|
33579
33682
|
var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
33580
33683
|
exports.__esModule = true;
|
|
33581
|
-
exports.unesc = exports.stripComments = exports.getProp = exports.ensureObject = void 0;
|
|
33684
|
+
exports.unesc = exports.stripComments = exports.resolveMaxNestingDepth = exports.getProp = exports.ensureObject = exports.MAX_NESTING_DEPTH = void 0;
|
|
33582
33685
|
exports.unesc = _interopRequireDefault(require_unesc())["default"];
|
|
33583
33686
|
exports.getProp = _interopRequireDefault(require_getProp())["default"];
|
|
33584
33687
|
exports.ensureObject = _interopRequireDefault(require_ensureObject())["default"];
|
|
33585
33688
|
exports.stripComments = _interopRequireDefault(require_stripComments())["default"];
|
|
33586
|
-
|
|
33587
|
-
|
|
33689
|
+
var _maxNestingDepth = _interopRequireWildcard(require_maxNestingDepth());
|
|
33690
|
+
exports.resolveMaxNestingDepth = _maxNestingDepth["default"];
|
|
33691
|
+
exports.MAX_NESTING_DEPTH = _maxNestingDepth.MAX_NESTING_DEPTH;
|
|
33692
|
+
function _interopRequireWildcard(e, t) {
|
|
33693
|
+
if ("function" == typeof WeakMap) var r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
33694
|
+
return (_interopRequireWildcard = function _interopRequireWildcard(e, t) {
|
|
33695
|
+
if (!t && e && e.__esModule) return e;
|
|
33696
|
+
var o, i, f = {
|
|
33697
|
+
__proto__: null,
|
|
33698
|
+
"default": e
|
|
33699
|
+
};
|
|
33700
|
+
if (null === e || "object" != typeof e && "function" != typeof e) return f;
|
|
33701
|
+
if (o = t ? n : r) {
|
|
33702
|
+
if (o.has(e)) return o.get(e);
|
|
33703
|
+
o.set(e, f);
|
|
33704
|
+
}
|
|
33705
|
+
for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]);
|
|
33706
|
+
return f;
|
|
33707
|
+
})(e, t);
|
|
33708
|
+
}
|
|
33709
|
+
function _interopRequireDefault(e) {
|
|
33710
|
+
return e && e.__esModule ? e : { "default": e };
|
|
33588
33711
|
}
|
|
33589
33712
|
}));
|
|
33590
33713
|
//#endregion
|
|
33591
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33714
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/node.js
|
|
33592
33715
|
var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33593
33716
|
exports.__esModule = true;
|
|
33594
33717
|
exports["default"] = void 0;
|
|
33595
33718
|
var _util = require_util$1();
|
|
33596
|
-
function _defineProperties(
|
|
33597
|
-
for (var
|
|
33598
|
-
var
|
|
33599
|
-
|
|
33600
|
-
descriptor.configurable = true;
|
|
33601
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33602
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
33719
|
+
function _defineProperties(e, r) {
|
|
33720
|
+
for (var t = 0; t < r.length; t++) {
|
|
33721
|
+
var o = r[t];
|
|
33722
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
33603
33723
|
}
|
|
33604
33724
|
}
|
|
33605
|
-
function _createClass(
|
|
33606
|
-
|
|
33607
|
-
|
|
33608
|
-
|
|
33609
|
-
|
|
33725
|
+
function _createClass(e, r, t) {
|
|
33726
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
33727
|
+
}
|
|
33728
|
+
function _toPropertyKey(t) {
|
|
33729
|
+
var i = _toPrimitive(t, "string");
|
|
33730
|
+
return "symbol" == typeof i ? i : i + "";
|
|
33731
|
+
}
|
|
33732
|
+
function _toPrimitive(t, r) {
|
|
33733
|
+
if ("object" != typeof t || !t) return t;
|
|
33734
|
+
var e = t[Symbol.toPrimitive];
|
|
33735
|
+
if (void 0 !== e) {
|
|
33736
|
+
var i = e.call(t, r || "default");
|
|
33737
|
+
if ("object" != typeof i) return i;
|
|
33738
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
33739
|
+
}
|
|
33740
|
+
return ("string" === r ? String : Number)(t);
|
|
33610
33741
|
}
|
|
33611
33742
|
var cloneNode = function cloneNode(obj, parent) {
|
|
33612
33743
|
if (typeof obj !== "object" || obj === null) return obj;
|
|
@@ -33695,6 +33826,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
33695
33826
|
this.rawSpaceAfter
|
|
33696
33827
|
].join("");
|
|
33697
33828
|
};
|
|
33829
|
+
_proto._stringify = function _stringify() {
|
|
33830
|
+
return this.toString();
|
|
33831
|
+
};
|
|
33698
33832
|
_createClass(Node, [{
|
|
33699
33833
|
key: "rawSpaceBefore",
|
|
33700
33834
|
get: function get() {
|
|
@@ -33723,7 +33857,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
33723
33857
|
module.exports = exports.default;
|
|
33724
33858
|
}));
|
|
33725
33859
|
//#endregion
|
|
33726
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33860
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/types.js
|
|
33727
33861
|
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
33728
33862
|
exports.__esModule = true;
|
|
33729
33863
|
exports.UNIVERSAL = exports.TAG = exports.STRING = exports.SELECTOR = exports.ROOT = exports.PSEUDO = exports.NESTING = exports.ID = exports.COMMENT = exports.COMBINATOR = exports.CLASS = exports.ATTRIBUTE = void 0;
|
|
@@ -33741,94 +33875,90 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
33741
33875
|
exports.UNIVERSAL = "universal";
|
|
33742
33876
|
}));
|
|
33743
33877
|
//#endregion
|
|
33744
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33878
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/container.js
|
|
33745
33879
|
var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33746
33880
|
exports.__esModule = true;
|
|
33747
33881
|
exports["default"] = void 0;
|
|
33882
|
+
var _util = require_util$1();
|
|
33748
33883
|
var _node = _interopRequireDefault(require_node());
|
|
33749
33884
|
var types = _interopRequireWildcard(require_types());
|
|
33750
|
-
function
|
|
33751
|
-
if (typeof WeakMap
|
|
33752
|
-
|
|
33753
|
-
|
|
33754
|
-
|
|
33755
|
-
|
|
33756
|
-
|
|
33757
|
-
|
|
33758
|
-
|
|
33759
|
-
|
|
33760
|
-
|
|
33761
|
-
|
|
33762
|
-
|
|
33763
|
-
|
|
33764
|
-
|
|
33765
|
-
|
|
33766
|
-
|
|
33767
|
-
|
|
33768
|
-
|
|
33769
|
-
|
|
33770
|
-
|
|
33771
|
-
|
|
33772
|
-
return
|
|
33773
|
-
|
|
33774
|
-
|
|
33775
|
-
|
|
33776
|
-
}
|
|
33777
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
33778
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
33779
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
33780
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
33781
|
-
if (it) o = it;
|
|
33782
|
-
var i = 0;
|
|
33885
|
+
function _interopRequireWildcard(e, t) {
|
|
33886
|
+
if ("function" == typeof WeakMap) var r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
33887
|
+
return (_interopRequireWildcard = function _interopRequireWildcard(e, t) {
|
|
33888
|
+
if (!t && e && e.__esModule) return e;
|
|
33889
|
+
var o, i, f = {
|
|
33890
|
+
__proto__: null,
|
|
33891
|
+
"default": e
|
|
33892
|
+
};
|
|
33893
|
+
if (null === e || "object" != typeof e && "function" != typeof e) return f;
|
|
33894
|
+
if (o = t ? n : r) {
|
|
33895
|
+
if (o.has(e)) return o.get(e);
|
|
33896
|
+
o.set(e, f);
|
|
33897
|
+
}
|
|
33898
|
+
for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]);
|
|
33899
|
+
return f;
|
|
33900
|
+
})(e, t);
|
|
33901
|
+
}
|
|
33902
|
+
function _interopRequireDefault(e) {
|
|
33903
|
+
return e && e.__esModule ? e : { "default": e };
|
|
33904
|
+
}
|
|
33905
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
33906
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
33907
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
33908
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
33909
|
+
t && (r = t);
|
|
33910
|
+
var o = 0;
|
|
33783
33911
|
return function() {
|
|
33784
|
-
|
|
33785
|
-
|
|
33786
|
-
|
|
33787
|
-
value: o[i++]
|
|
33912
|
+
return o >= r.length ? { done: !0 } : {
|
|
33913
|
+
done: !1,
|
|
33914
|
+
value: r[o++]
|
|
33788
33915
|
};
|
|
33789
33916
|
};
|
|
33790
33917
|
}
|
|
33791
33918
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
33792
33919
|
}
|
|
33793
|
-
function _unsupportedIterableToArray(
|
|
33794
|
-
if (
|
|
33795
|
-
|
|
33796
|
-
|
|
33797
|
-
|
|
33798
|
-
|
|
33799
|
-
|
|
33800
|
-
|
|
33801
|
-
|
|
33802
|
-
|
|
33803
|
-
|
|
33804
|
-
|
|
33805
|
-
|
|
33806
|
-
|
|
33807
|
-
|
|
33808
|
-
|
|
33809
|
-
|
|
33810
|
-
|
|
33811
|
-
|
|
33812
|
-
|
|
33813
|
-
|
|
33814
|
-
|
|
33815
|
-
|
|
33816
|
-
|
|
33817
|
-
|
|
33818
|
-
|
|
33819
|
-
return
|
|
33820
|
-
|
|
33821
|
-
|
|
33822
|
-
|
|
33823
|
-
|
|
33824
|
-
|
|
33825
|
-
|
|
33826
|
-
|
|
33827
|
-
|
|
33828
|
-
|
|
33829
|
-
|
|
33830
|
-
|
|
33831
|
-
|
|
33920
|
+
function _unsupportedIterableToArray(r, a) {
|
|
33921
|
+
if (r) {
|
|
33922
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
33923
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
33924
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
33925
|
+
}
|
|
33926
|
+
}
|
|
33927
|
+
function _arrayLikeToArray(r, a) {
|
|
33928
|
+
(null == a || a > r.length) && (a = r.length);
|
|
33929
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
33930
|
+
return n;
|
|
33931
|
+
}
|
|
33932
|
+
function _defineProperties(e, r) {
|
|
33933
|
+
for (var t = 0; t < r.length; t++) {
|
|
33934
|
+
var o = r[t];
|
|
33935
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
33936
|
+
}
|
|
33937
|
+
}
|
|
33938
|
+
function _createClass(e, r, t) {
|
|
33939
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
33940
|
+
}
|
|
33941
|
+
function _toPropertyKey(t) {
|
|
33942
|
+
var i = _toPrimitive(t, "string");
|
|
33943
|
+
return "symbol" == typeof i ? i : i + "";
|
|
33944
|
+
}
|
|
33945
|
+
function _toPrimitive(t, r) {
|
|
33946
|
+
if ("object" != typeof t || !t) return t;
|
|
33947
|
+
var e = t[Symbol.toPrimitive];
|
|
33948
|
+
if (void 0 !== e) {
|
|
33949
|
+
var i = e.call(t, r || "default");
|
|
33950
|
+
if ("object" != typeof i) return i;
|
|
33951
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
33952
|
+
}
|
|
33953
|
+
return ("string" === r ? String : Number)(t);
|
|
33954
|
+
}
|
|
33955
|
+
function _inheritsLoose(t, o) {
|
|
33956
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
33957
|
+
}
|
|
33958
|
+
function _setPrototypeOf(t, e) {
|
|
33959
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
33960
|
+
return t.__proto__ = e, t;
|
|
33961
|
+
}, _setPrototypeOf(t, e);
|
|
33832
33962
|
}
|
|
33833
33963
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
33834
33964
|
_inheritsLoose(Container, _Node);
|
|
@@ -34016,21 +34146,21 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34016
34146
|
});
|
|
34017
34147
|
};
|
|
34018
34148
|
_proto.walkUniversals = function walkUniversals(callback) {
|
|
34019
|
-
var
|
|
34149
|
+
var _this0 = this;
|
|
34020
34150
|
return this.walk(function(selector) {
|
|
34021
|
-
if (selector.type === types.UNIVERSAL) return callback.call(
|
|
34151
|
+
if (selector.type === types.UNIVERSAL) return callback.call(_this0, selector);
|
|
34022
34152
|
});
|
|
34023
34153
|
};
|
|
34024
34154
|
_proto.split = function split(callback) {
|
|
34025
|
-
var
|
|
34155
|
+
var _this1 = this;
|
|
34026
34156
|
var current = [];
|
|
34027
34157
|
return this.reduce(function(memo, node, index) {
|
|
34028
|
-
var split = callback.call(
|
|
34158
|
+
var split = callback.call(_this1, node);
|
|
34029
34159
|
current.push(node);
|
|
34030
34160
|
if (split) {
|
|
34031
34161
|
memo.push(current);
|
|
34032
34162
|
current = [];
|
|
34033
|
-
} else if (index ===
|
|
34163
|
+
} else if (index === _this1.length - 1) memo.push(current);
|
|
34034
34164
|
return memo;
|
|
34035
34165
|
}, []);
|
|
34036
34166
|
};
|
|
@@ -34052,8 +34182,14 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34052
34182
|
_proto.sort = function sort(callback) {
|
|
34053
34183
|
return this.nodes.sort(callback);
|
|
34054
34184
|
};
|
|
34055
|
-
_proto.toString = function toString() {
|
|
34056
|
-
|
|
34185
|
+
_proto.toString = function toString(options) {
|
|
34186
|
+
if (options === void 0) options = {};
|
|
34187
|
+
return this._stringify(options, 0, (0, _util.resolveMaxNestingDepth)(options.maxNestingDepth));
|
|
34188
|
+
};
|
|
34189
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
34190
|
+
return this.map(function(child) {
|
|
34191
|
+
return child._stringify(options, depth, max);
|
|
34192
|
+
}).join("");
|
|
34057
34193
|
};
|
|
34058
34194
|
_createClass(Container, [
|
|
34059
34195
|
{
|
|
@@ -34080,41 +34216,45 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34080
34216
|
module.exports = exports.default;
|
|
34081
34217
|
}));
|
|
34082
34218
|
//#endregion
|
|
34083
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34219
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/root.js
|
|
34084
34220
|
var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34085
34221
|
exports.__esModule = true;
|
|
34086
34222
|
exports["default"] = void 0;
|
|
34087
34223
|
var _container = _interopRequireDefault(require_container());
|
|
34088
34224
|
var _types = require_types();
|
|
34089
|
-
function _interopRequireDefault(
|
|
34090
|
-
return
|
|
34091
|
-
}
|
|
34092
|
-
function _defineProperties(
|
|
34093
|
-
for (var
|
|
34094
|
-
var
|
|
34095
|
-
|
|
34096
|
-
|
|
34097
|
-
|
|
34098
|
-
|
|
34099
|
-
}
|
|
34100
|
-
}
|
|
34101
|
-
function
|
|
34102
|
-
|
|
34103
|
-
|
|
34104
|
-
|
|
34105
|
-
|
|
34106
|
-
|
|
34107
|
-
|
|
34108
|
-
|
|
34109
|
-
|
|
34110
|
-
|
|
34111
|
-
|
|
34112
|
-
|
|
34113
|
-
|
|
34114
|
-
|
|
34115
|
-
|
|
34116
|
-
|
|
34117
|
-
|
|
34225
|
+
function _interopRequireDefault(e) {
|
|
34226
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34227
|
+
}
|
|
34228
|
+
function _defineProperties(e, r) {
|
|
34229
|
+
for (var t = 0; t < r.length; t++) {
|
|
34230
|
+
var o = r[t];
|
|
34231
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
34232
|
+
}
|
|
34233
|
+
}
|
|
34234
|
+
function _createClass(e, r, t) {
|
|
34235
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
34236
|
+
}
|
|
34237
|
+
function _toPropertyKey(t) {
|
|
34238
|
+
var i = _toPrimitive(t, "string");
|
|
34239
|
+
return "symbol" == typeof i ? i : i + "";
|
|
34240
|
+
}
|
|
34241
|
+
function _toPrimitive(t, r) {
|
|
34242
|
+
if ("object" != typeof t || !t) return t;
|
|
34243
|
+
var e = t[Symbol.toPrimitive];
|
|
34244
|
+
if (void 0 !== e) {
|
|
34245
|
+
var i = e.call(t, r || "default");
|
|
34246
|
+
if ("object" != typeof i) return i;
|
|
34247
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
34248
|
+
}
|
|
34249
|
+
return ("string" === r ? String : Number)(t);
|
|
34250
|
+
}
|
|
34251
|
+
function _inheritsLoose(t, o) {
|
|
34252
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34253
|
+
}
|
|
34254
|
+
function _setPrototypeOf(t, e) {
|
|
34255
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34256
|
+
return t.__proto__ = e, t;
|
|
34257
|
+
}, _setPrototypeOf(t, e);
|
|
34118
34258
|
}
|
|
34119
34259
|
exports["default"] = /* @__PURE__ */ function(_Container) {
|
|
34120
34260
|
_inheritsLoose(Root, _Container);
|
|
@@ -34124,9 +34264,9 @@ var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34124
34264
|
return _this;
|
|
34125
34265
|
}
|
|
34126
34266
|
var _proto = Root.prototype;
|
|
34127
|
-
_proto.
|
|
34267
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
34128
34268
|
var str = this.reduce(function(memo, selector) {
|
|
34129
|
-
memo.push(
|
|
34269
|
+
memo.push(selector._stringify(options, depth, max));
|
|
34130
34270
|
return memo;
|
|
34131
34271
|
}, []).join(",");
|
|
34132
34272
|
return this.trailingComma ? str + "," : str;
|
|
@@ -34146,26 +34286,22 @@ var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34146
34286
|
module.exports = exports.default;
|
|
34147
34287
|
}));
|
|
34148
34288
|
//#endregion
|
|
34149
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34289
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/selector.js
|
|
34150
34290
|
var require_selector = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34151
34291
|
exports.__esModule = true;
|
|
34152
34292
|
exports["default"] = void 0;
|
|
34153
34293
|
var _container = _interopRequireDefault(require_container());
|
|
34154
34294
|
var _types = require_types();
|
|
34155
|
-
function _interopRequireDefault(
|
|
34156
|
-
return
|
|
34157
|
-
}
|
|
34158
|
-
function _inheritsLoose(
|
|
34159
|
-
|
|
34160
|
-
|
|
34161
|
-
|
|
34162
|
-
|
|
34163
|
-
|
|
34164
|
-
|
|
34165
|
-
o.__proto__ = p;
|
|
34166
|
-
return o;
|
|
34167
|
-
};
|
|
34168
|
-
return _setPrototypeOf(o, p);
|
|
34295
|
+
function _interopRequireDefault(e) {
|
|
34296
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34297
|
+
}
|
|
34298
|
+
function _inheritsLoose(t, o) {
|
|
34299
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34300
|
+
}
|
|
34301
|
+
function _setPrototypeOf(t, e) {
|
|
34302
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34303
|
+
return t.__proto__ = e, t;
|
|
34304
|
+
}, _setPrototypeOf(t, e);
|
|
34169
34305
|
}
|
|
34170
34306
|
exports["default"] = /* @__PURE__ */ function(_Container) {
|
|
34171
34307
|
_inheritsLoose(Selector, _Container);
|
|
@@ -34240,7 +34376,7 @@ var require_cssesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34240
34376
|
module.exports = cssesc;
|
|
34241
34377
|
}));
|
|
34242
34378
|
//#endregion
|
|
34243
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34379
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/className.js
|
|
34244
34380
|
var require_className = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34245
34381
|
exports.__esModule = true;
|
|
34246
34382
|
exports["default"] = void 0;
|
|
@@ -34248,35 +34384,39 @@ var require_className = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34248
34384
|
var _util = require_util$1();
|
|
34249
34385
|
var _node = _interopRequireDefault(require_node());
|
|
34250
34386
|
var _types = require_types();
|
|
34251
|
-
function _interopRequireDefault(
|
|
34252
|
-
return
|
|
34253
|
-
}
|
|
34254
|
-
function _defineProperties(
|
|
34255
|
-
for (var
|
|
34256
|
-
var
|
|
34257
|
-
|
|
34258
|
-
|
|
34259
|
-
|
|
34260
|
-
|
|
34261
|
-
}
|
|
34262
|
-
}
|
|
34263
|
-
function
|
|
34264
|
-
|
|
34265
|
-
|
|
34266
|
-
|
|
34267
|
-
|
|
34268
|
-
|
|
34269
|
-
|
|
34270
|
-
|
|
34271
|
-
|
|
34272
|
-
|
|
34273
|
-
|
|
34274
|
-
|
|
34275
|
-
|
|
34276
|
-
|
|
34277
|
-
|
|
34278
|
-
|
|
34279
|
-
|
|
34387
|
+
function _interopRequireDefault(e) {
|
|
34388
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34389
|
+
}
|
|
34390
|
+
function _defineProperties(e, r) {
|
|
34391
|
+
for (var t = 0; t < r.length; t++) {
|
|
34392
|
+
var o = r[t];
|
|
34393
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
34394
|
+
}
|
|
34395
|
+
}
|
|
34396
|
+
function _createClass(e, r, t) {
|
|
34397
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
34398
|
+
}
|
|
34399
|
+
function _toPropertyKey(t) {
|
|
34400
|
+
var i = _toPrimitive(t, "string");
|
|
34401
|
+
return "symbol" == typeof i ? i : i + "";
|
|
34402
|
+
}
|
|
34403
|
+
function _toPrimitive(t, r) {
|
|
34404
|
+
if ("object" != typeof t || !t) return t;
|
|
34405
|
+
var e = t[Symbol.toPrimitive];
|
|
34406
|
+
if (void 0 !== e) {
|
|
34407
|
+
var i = e.call(t, r || "default");
|
|
34408
|
+
if ("object" != typeof i) return i;
|
|
34409
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
34410
|
+
}
|
|
34411
|
+
return ("string" === r ? String : Number)(t);
|
|
34412
|
+
}
|
|
34413
|
+
function _inheritsLoose(t, o) {
|
|
34414
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34415
|
+
}
|
|
34416
|
+
function _setPrototypeOf(t, e) {
|
|
34417
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34418
|
+
return t.__proto__ = e, t;
|
|
34419
|
+
}, _setPrototypeOf(t, e);
|
|
34280
34420
|
}
|
|
34281
34421
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
34282
34422
|
_inheritsLoose(ClassName, _Node);
|
|
@@ -34311,26 +34451,22 @@ var require_className = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34311
34451
|
module.exports = exports.default;
|
|
34312
34452
|
}));
|
|
34313
34453
|
//#endregion
|
|
34314
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34454
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/comment.js
|
|
34315
34455
|
var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34316
34456
|
exports.__esModule = true;
|
|
34317
34457
|
exports["default"] = void 0;
|
|
34318
34458
|
var _node = _interopRequireDefault(require_node());
|
|
34319
34459
|
var _types = require_types();
|
|
34320
|
-
function _interopRequireDefault(
|
|
34321
|
-
return
|
|
34322
|
-
}
|
|
34323
|
-
function _inheritsLoose(
|
|
34324
|
-
|
|
34325
|
-
|
|
34326
|
-
|
|
34327
|
-
|
|
34328
|
-
|
|
34329
|
-
|
|
34330
|
-
o.__proto__ = p;
|
|
34331
|
-
return o;
|
|
34332
|
-
};
|
|
34333
|
-
return _setPrototypeOf(o, p);
|
|
34460
|
+
function _interopRequireDefault(e) {
|
|
34461
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34462
|
+
}
|
|
34463
|
+
function _inheritsLoose(t, o) {
|
|
34464
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34465
|
+
}
|
|
34466
|
+
function _setPrototypeOf(t, e) {
|
|
34467
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34468
|
+
return t.__proto__ = e, t;
|
|
34469
|
+
}, _setPrototypeOf(t, e);
|
|
34334
34470
|
}
|
|
34335
34471
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
34336
34472
|
_inheritsLoose(Comment, _Node);
|
|
@@ -34344,26 +34480,22 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34344
34480
|
module.exports = exports.default;
|
|
34345
34481
|
}));
|
|
34346
34482
|
//#endregion
|
|
34347
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34483
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/id.js
|
|
34348
34484
|
var require_id = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34349
34485
|
exports.__esModule = true;
|
|
34350
34486
|
exports["default"] = void 0;
|
|
34351
34487
|
var _node = _interopRequireDefault(require_node());
|
|
34352
34488
|
var _types = require_types();
|
|
34353
|
-
function _interopRequireDefault(
|
|
34354
|
-
return
|
|
34355
|
-
}
|
|
34356
|
-
function _inheritsLoose(
|
|
34357
|
-
|
|
34358
|
-
|
|
34359
|
-
|
|
34360
|
-
|
|
34361
|
-
|
|
34362
|
-
|
|
34363
|
-
o.__proto__ = p;
|
|
34364
|
-
return o;
|
|
34365
|
-
};
|
|
34366
|
-
return _setPrototypeOf(o, p);
|
|
34489
|
+
function _interopRequireDefault(e) {
|
|
34490
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34491
|
+
}
|
|
34492
|
+
function _inheritsLoose(t, o) {
|
|
34493
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34494
|
+
}
|
|
34495
|
+
function _setPrototypeOf(t, e) {
|
|
34496
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34497
|
+
return t.__proto__ = e, t;
|
|
34498
|
+
}, _setPrototypeOf(t, e);
|
|
34367
34499
|
}
|
|
34368
34500
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
34369
34501
|
_inheritsLoose(ID, _Node);
|
|
@@ -34381,42 +34513,46 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34381
34513
|
module.exports = exports.default;
|
|
34382
34514
|
}));
|
|
34383
34515
|
//#endregion
|
|
34384
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34516
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/namespace.js
|
|
34385
34517
|
var require_namespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34386
34518
|
exports.__esModule = true;
|
|
34387
34519
|
exports["default"] = void 0;
|
|
34388
34520
|
var _cssesc = _interopRequireDefault(require_cssesc());
|
|
34389
34521
|
var _util = require_util$1();
|
|
34390
34522
|
var _node = _interopRequireDefault(require_node());
|
|
34391
|
-
function _interopRequireDefault(
|
|
34392
|
-
return
|
|
34393
|
-
}
|
|
34394
|
-
function _defineProperties(
|
|
34395
|
-
for (var
|
|
34396
|
-
var
|
|
34397
|
-
|
|
34398
|
-
|
|
34399
|
-
|
|
34400
|
-
|
|
34401
|
-
}
|
|
34402
|
-
}
|
|
34403
|
-
function
|
|
34404
|
-
|
|
34405
|
-
|
|
34406
|
-
|
|
34407
|
-
|
|
34408
|
-
|
|
34409
|
-
|
|
34410
|
-
|
|
34411
|
-
|
|
34412
|
-
|
|
34413
|
-
|
|
34414
|
-
|
|
34415
|
-
|
|
34416
|
-
|
|
34417
|
-
|
|
34418
|
-
|
|
34419
|
-
|
|
34523
|
+
function _interopRequireDefault(e) {
|
|
34524
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34525
|
+
}
|
|
34526
|
+
function _defineProperties(e, r) {
|
|
34527
|
+
for (var t = 0; t < r.length; t++) {
|
|
34528
|
+
var o = r[t];
|
|
34529
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
34530
|
+
}
|
|
34531
|
+
}
|
|
34532
|
+
function _createClass(e, r, t) {
|
|
34533
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
34534
|
+
}
|
|
34535
|
+
function _toPropertyKey(t) {
|
|
34536
|
+
var i = _toPrimitive(t, "string");
|
|
34537
|
+
return "symbol" == typeof i ? i : i + "";
|
|
34538
|
+
}
|
|
34539
|
+
function _toPrimitive(t, r) {
|
|
34540
|
+
if ("object" != typeof t || !t) return t;
|
|
34541
|
+
var e = t[Symbol.toPrimitive];
|
|
34542
|
+
if (void 0 !== e) {
|
|
34543
|
+
var i = e.call(t, r || "default");
|
|
34544
|
+
if ("object" != typeof i) return i;
|
|
34545
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
34546
|
+
}
|
|
34547
|
+
return ("string" === r ? String : Number)(t);
|
|
34548
|
+
}
|
|
34549
|
+
function _inheritsLoose(t, o) {
|
|
34550
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34551
|
+
}
|
|
34552
|
+
function _setPrototypeOf(t, e) {
|
|
34553
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34554
|
+
return t.__proto__ = e, t;
|
|
34555
|
+
}, _setPrototypeOf(t, e);
|
|
34420
34556
|
}
|
|
34421
34557
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
34422
34558
|
_inheritsLoose(Namespace, _Node);
|
|
@@ -34476,26 +34612,22 @@ var require_namespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34476
34612
|
module.exports = exports.default;
|
|
34477
34613
|
}));
|
|
34478
34614
|
//#endregion
|
|
34479
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34615
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/tag.js
|
|
34480
34616
|
var require_tag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34481
34617
|
exports.__esModule = true;
|
|
34482
34618
|
exports["default"] = void 0;
|
|
34483
34619
|
var _namespace = _interopRequireDefault(require_namespace());
|
|
34484
34620
|
var _types = require_types();
|
|
34485
|
-
function _interopRequireDefault(
|
|
34486
|
-
return
|
|
34487
|
-
}
|
|
34488
|
-
function _inheritsLoose(
|
|
34489
|
-
|
|
34490
|
-
|
|
34491
|
-
|
|
34492
|
-
|
|
34493
|
-
|
|
34494
|
-
|
|
34495
|
-
o.__proto__ = p;
|
|
34496
|
-
return o;
|
|
34497
|
-
};
|
|
34498
|
-
return _setPrototypeOf(o, p);
|
|
34621
|
+
function _interopRequireDefault(e) {
|
|
34622
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34623
|
+
}
|
|
34624
|
+
function _inheritsLoose(t, o) {
|
|
34625
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34626
|
+
}
|
|
34627
|
+
function _setPrototypeOf(t, e) {
|
|
34628
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34629
|
+
return t.__proto__ = e, t;
|
|
34630
|
+
}, _setPrototypeOf(t, e);
|
|
34499
34631
|
}
|
|
34500
34632
|
exports["default"] = /* @__PURE__ */ function(_Namespace) {
|
|
34501
34633
|
_inheritsLoose(Tag, _Namespace);
|
|
@@ -34509,26 +34641,22 @@ var require_tag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34509
34641
|
module.exports = exports.default;
|
|
34510
34642
|
}));
|
|
34511
34643
|
//#endregion
|
|
34512
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34644
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/string.js
|
|
34513
34645
|
var require_string = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34514
34646
|
exports.__esModule = true;
|
|
34515
34647
|
exports["default"] = void 0;
|
|
34516
34648
|
var _node = _interopRequireDefault(require_node());
|
|
34517
34649
|
var _types = require_types();
|
|
34518
|
-
function _interopRequireDefault(
|
|
34519
|
-
return
|
|
34520
|
-
}
|
|
34521
|
-
function _inheritsLoose(
|
|
34522
|
-
|
|
34523
|
-
|
|
34524
|
-
|
|
34525
|
-
|
|
34526
|
-
|
|
34527
|
-
|
|
34528
|
-
o.__proto__ = p;
|
|
34529
|
-
return o;
|
|
34530
|
-
};
|
|
34531
|
-
return _setPrototypeOf(o, p);
|
|
34650
|
+
function _interopRequireDefault(e) {
|
|
34651
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34652
|
+
}
|
|
34653
|
+
function _inheritsLoose(t, o) {
|
|
34654
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34655
|
+
}
|
|
34656
|
+
function _setPrototypeOf(t, e) {
|
|
34657
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34658
|
+
return t.__proto__ = e, t;
|
|
34659
|
+
}, _setPrototypeOf(t, e);
|
|
34532
34660
|
}
|
|
34533
34661
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
34534
34662
|
_inheritsLoose(String, _Node);
|
|
@@ -34542,26 +34670,22 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34542
34670
|
module.exports = exports.default;
|
|
34543
34671
|
}));
|
|
34544
34672
|
//#endregion
|
|
34545
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34673
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/pseudo.js
|
|
34546
34674
|
var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34547
34675
|
exports.__esModule = true;
|
|
34548
34676
|
exports["default"] = void 0;
|
|
34549
34677
|
var _container = _interopRequireDefault(require_container());
|
|
34550
34678
|
var _types = require_types();
|
|
34551
|
-
function _interopRequireDefault(
|
|
34552
|
-
return
|
|
34553
|
-
}
|
|
34554
|
-
function _inheritsLoose(
|
|
34555
|
-
|
|
34556
|
-
|
|
34557
|
-
|
|
34558
|
-
|
|
34559
|
-
|
|
34560
|
-
|
|
34561
|
-
o.__proto__ = p;
|
|
34562
|
-
return o;
|
|
34563
|
-
};
|
|
34564
|
-
return _setPrototypeOf(o, p);
|
|
34679
|
+
function _interopRequireDefault(e) {
|
|
34680
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34681
|
+
}
|
|
34682
|
+
function _inheritsLoose(t, o) {
|
|
34683
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34684
|
+
}
|
|
34685
|
+
function _setPrototypeOf(t, e) {
|
|
34686
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34687
|
+
return t.__proto__ = e, t;
|
|
34688
|
+
}, _setPrototypeOf(t, e);
|
|
34565
34689
|
}
|
|
34566
34690
|
exports["default"] = /* @__PURE__ */ function(_Container) {
|
|
34567
34691
|
_inheritsLoose(Pseudo, _Container);
|
|
@@ -34571,8 +34695,11 @@ var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34571
34695
|
return _this;
|
|
34572
34696
|
}
|
|
34573
34697
|
var _proto = Pseudo.prototype;
|
|
34574
|
-
_proto.
|
|
34575
|
-
|
|
34698
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
34699
|
+
if (depth >= max) throw new Error("Cannot serialize selector: nesting depth exceeds the maximum of " + max + ".");
|
|
34700
|
+
var params = this.length ? "(" + this.map(function(child) {
|
|
34701
|
+
return child._stringify(options, depth + 1, max);
|
|
34702
|
+
}).join(",") + ")" : "";
|
|
34576
34703
|
return [
|
|
34577
34704
|
this.rawSpaceBefore,
|
|
34578
34705
|
this.stringifyProperty("value"),
|
|
@@ -34642,7 +34769,7 @@ var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34642
34769
|
}
|
|
34643
34770
|
}));
|
|
34644
34771
|
//#endregion
|
|
34645
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34772
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/attribute.js
|
|
34646
34773
|
var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
34647
34774
|
exports.__esModule = true;
|
|
34648
34775
|
exports["default"] = void 0;
|
|
@@ -34652,35 +34779,39 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34652
34779
|
var _namespace = _interopRequireDefault(require_namespace());
|
|
34653
34780
|
var _types = require_types();
|
|
34654
34781
|
var _CSSESC_QUOTE_OPTIONS;
|
|
34655
|
-
function _interopRequireDefault(
|
|
34656
|
-
return
|
|
34657
|
-
}
|
|
34658
|
-
function _defineProperties(
|
|
34659
|
-
for (var
|
|
34660
|
-
var
|
|
34661
|
-
|
|
34662
|
-
|
|
34663
|
-
|
|
34664
|
-
|
|
34665
|
-
}
|
|
34666
|
-
}
|
|
34667
|
-
function
|
|
34668
|
-
|
|
34669
|
-
|
|
34670
|
-
|
|
34671
|
-
|
|
34672
|
-
|
|
34673
|
-
|
|
34674
|
-
|
|
34675
|
-
|
|
34676
|
-
|
|
34677
|
-
|
|
34678
|
-
|
|
34679
|
-
|
|
34680
|
-
|
|
34681
|
-
|
|
34682
|
-
|
|
34683
|
-
|
|
34782
|
+
function _interopRequireDefault(e) {
|
|
34783
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34784
|
+
}
|
|
34785
|
+
function _defineProperties(e, r) {
|
|
34786
|
+
for (var t = 0; t < r.length; t++) {
|
|
34787
|
+
var o = r[t];
|
|
34788
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
34789
|
+
}
|
|
34790
|
+
}
|
|
34791
|
+
function _createClass(e, r, t) {
|
|
34792
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
34793
|
+
}
|
|
34794
|
+
function _toPropertyKey(t) {
|
|
34795
|
+
var i = _toPrimitive(t, "string");
|
|
34796
|
+
return "symbol" == typeof i ? i : i + "";
|
|
34797
|
+
}
|
|
34798
|
+
function _toPrimitive(t, r) {
|
|
34799
|
+
if ("object" != typeof t || !t) return t;
|
|
34800
|
+
var e = t[Symbol.toPrimitive];
|
|
34801
|
+
if (void 0 !== e) {
|
|
34802
|
+
var i = e.call(t, r || "default");
|
|
34803
|
+
if ("object" != typeof i) return i;
|
|
34804
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
34805
|
+
}
|
|
34806
|
+
return ("string" === r ? String : Number)(t);
|
|
34807
|
+
}
|
|
34808
|
+
function _inheritsLoose(t, o) {
|
|
34809
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34810
|
+
}
|
|
34811
|
+
function _setPrototypeOf(t, e) {
|
|
34812
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34813
|
+
return t.__proto__ = e, t;
|
|
34814
|
+
}, _setPrototypeOf(t, e);
|
|
34684
34815
|
}
|
|
34685
34816
|
var deprecate = require_browser();
|
|
34686
34817
|
var WRAPPED_IN_QUOTES = /^('|")([^]*)\1$/;
|
|
@@ -34715,7 +34846,7 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34715
34846
|
opts.quoteMark = quoteMark;
|
|
34716
34847
|
return opts;
|
|
34717
34848
|
}
|
|
34718
|
-
var Attribute = /* @__PURE__ */ function(_Namespace) {
|
|
34849
|
+
var Attribute = exports["default"] = /* @__PURE__ */ function(_Namespace) {
|
|
34719
34850
|
_inheritsLoose(Attribute, _Namespace);
|
|
34720
34851
|
function Attribute(opts) {
|
|
34721
34852
|
var _this;
|
|
@@ -34949,7 +35080,6 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34949
35080
|
]);
|
|
34950
35081
|
return Attribute;
|
|
34951
35082
|
}(_namespace["default"]);
|
|
34952
|
-
exports["default"] = Attribute;
|
|
34953
35083
|
Attribute.NO_QUOTE = null;
|
|
34954
35084
|
Attribute.SINGLE_QUOTE = "'";
|
|
34955
35085
|
Attribute.DOUBLE_QUOTE = "\"";
|
|
@@ -34968,26 +35098,22 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34968
35098
|
}
|
|
34969
35099
|
}));
|
|
34970
35100
|
//#endregion
|
|
34971
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35101
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/universal.js
|
|
34972
35102
|
var require_universal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34973
35103
|
exports.__esModule = true;
|
|
34974
35104
|
exports["default"] = void 0;
|
|
34975
35105
|
var _namespace = _interopRequireDefault(require_namespace());
|
|
34976
35106
|
var _types = require_types();
|
|
34977
|
-
function _interopRequireDefault(
|
|
34978
|
-
return
|
|
34979
|
-
}
|
|
34980
|
-
function _inheritsLoose(
|
|
34981
|
-
|
|
34982
|
-
|
|
34983
|
-
|
|
34984
|
-
|
|
34985
|
-
|
|
34986
|
-
|
|
34987
|
-
o.__proto__ = p;
|
|
34988
|
-
return o;
|
|
34989
|
-
};
|
|
34990
|
-
return _setPrototypeOf(o, p);
|
|
35107
|
+
function _interopRequireDefault(e) {
|
|
35108
|
+
return e && e.__esModule ? e : { "default": e };
|
|
35109
|
+
}
|
|
35110
|
+
function _inheritsLoose(t, o) {
|
|
35111
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
35112
|
+
}
|
|
35113
|
+
function _setPrototypeOf(t, e) {
|
|
35114
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
35115
|
+
return t.__proto__ = e, t;
|
|
35116
|
+
}, _setPrototypeOf(t, e);
|
|
34991
35117
|
}
|
|
34992
35118
|
exports["default"] = /* @__PURE__ */ function(_Namespace) {
|
|
34993
35119
|
_inheritsLoose(Universal, _Namespace);
|
|
@@ -35002,26 +35128,22 @@ var require_universal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
35002
35128
|
module.exports = exports.default;
|
|
35003
35129
|
}));
|
|
35004
35130
|
//#endregion
|
|
35005
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35131
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/combinator.js
|
|
35006
35132
|
var require_combinator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35007
35133
|
exports.__esModule = true;
|
|
35008
35134
|
exports["default"] = void 0;
|
|
35009
35135
|
var _node = _interopRequireDefault(require_node());
|
|
35010
35136
|
var _types = require_types();
|
|
35011
|
-
function _interopRequireDefault(
|
|
35012
|
-
return
|
|
35013
|
-
}
|
|
35014
|
-
function _inheritsLoose(
|
|
35015
|
-
|
|
35016
|
-
|
|
35017
|
-
|
|
35018
|
-
|
|
35019
|
-
|
|
35020
|
-
|
|
35021
|
-
o.__proto__ = p;
|
|
35022
|
-
return o;
|
|
35023
|
-
};
|
|
35024
|
-
return _setPrototypeOf(o, p);
|
|
35137
|
+
function _interopRequireDefault(e) {
|
|
35138
|
+
return e && e.__esModule ? e : { "default": e };
|
|
35139
|
+
}
|
|
35140
|
+
function _inheritsLoose(t, o) {
|
|
35141
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
35142
|
+
}
|
|
35143
|
+
function _setPrototypeOf(t, e) {
|
|
35144
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
35145
|
+
return t.__proto__ = e, t;
|
|
35146
|
+
}, _setPrototypeOf(t, e);
|
|
35025
35147
|
}
|
|
35026
35148
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
35027
35149
|
_inheritsLoose(Combinator, _Node);
|
|
@@ -35035,26 +35157,22 @@ var require_combinator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
35035
35157
|
module.exports = exports.default;
|
|
35036
35158
|
}));
|
|
35037
35159
|
//#endregion
|
|
35038
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35160
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/nesting.js
|
|
35039
35161
|
var require_nesting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35040
35162
|
exports.__esModule = true;
|
|
35041
35163
|
exports["default"] = void 0;
|
|
35042
35164
|
var _node = _interopRequireDefault(require_node());
|
|
35043
35165
|
var _types = require_types();
|
|
35044
|
-
function _interopRequireDefault(
|
|
35045
|
-
return
|
|
35046
|
-
}
|
|
35047
|
-
function _inheritsLoose(
|
|
35048
|
-
|
|
35049
|
-
|
|
35050
|
-
|
|
35051
|
-
|
|
35052
|
-
|
|
35053
|
-
|
|
35054
|
-
o.__proto__ = p;
|
|
35055
|
-
return o;
|
|
35056
|
-
};
|
|
35057
|
-
return _setPrototypeOf(o, p);
|
|
35166
|
+
function _interopRequireDefault(e) {
|
|
35167
|
+
return e && e.__esModule ? e : { "default": e };
|
|
35168
|
+
}
|
|
35169
|
+
function _inheritsLoose(t, o) {
|
|
35170
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
35171
|
+
}
|
|
35172
|
+
function _setPrototypeOf(t, e) {
|
|
35173
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
35174
|
+
return t.__proto__ = e, t;
|
|
35175
|
+
}, _setPrototypeOf(t, e);
|
|
35058
35176
|
}
|
|
35059
35177
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
35060
35178
|
_inheritsLoose(Nesting, _Node);
|
|
@@ -35069,7 +35187,7 @@ var require_nesting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
35069
35187
|
module.exports = exports.default;
|
|
35070
35188
|
}));
|
|
35071
35189
|
//#endregion
|
|
35072
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35190
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/sortAscending.js
|
|
35073
35191
|
var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35074
35192
|
exports.__esModule = true;
|
|
35075
35193
|
exports["default"] = sortAscending;
|
|
@@ -35081,7 +35199,7 @@ var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
35081
35199
|
module.exports = exports.default;
|
|
35082
35200
|
}));
|
|
35083
35201
|
//#endregion
|
|
35084
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35202
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/tokenTypes.js
|
|
35085
35203
|
var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
35086
35204
|
exports.__esModule = true;
|
|
35087
35205
|
exports.word = exports.tilde = exports.tab = exports.str = exports.space = exports.slash = exports.singleQuote = exports.semicolon = exports.plus = exports.pipe = exports.openSquare = exports.openParenthesis = exports.newline = exports.greaterThan = exports.feed = exports.equals = exports.doubleQuote = exports.dollar = exports.cr = exports.comment = exports.comma = exports.combinator = exports.colon = exports.closeSquare = exports.closeParenthesis = exports.caret = exports.bang = exports.backslash = exports.at = exports.asterisk = exports.ampersand = void 0;
|
|
@@ -35103,8 +35221,7 @@ var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35103
35221
|
exports.pipe = 124;
|
|
35104
35222
|
exports.greaterThan = 62;
|
|
35105
35223
|
exports.space = 32;
|
|
35106
|
-
var singleQuote = 39;
|
|
35107
|
-
exports.singleQuote = singleQuote;
|
|
35224
|
+
var singleQuote = exports.singleQuote = 39;
|
|
35108
35225
|
exports.doubleQuote = 34;
|
|
35109
35226
|
exports.slash = 47;
|
|
35110
35227
|
exports.bang = 33;
|
|
@@ -35119,36 +35236,29 @@ var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35119
35236
|
exports.combinator = -3;
|
|
35120
35237
|
}));
|
|
35121
35238
|
//#endregion
|
|
35122
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35239
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/tokenize.js
|
|
35123
35240
|
var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
35124
35241
|
exports.__esModule = true;
|
|
35125
35242
|
exports.FIELDS = void 0;
|
|
35126
35243
|
exports["default"] = tokenize;
|
|
35127
35244
|
var t = _interopRequireWildcard(require_tokenTypes());
|
|
35128
35245
|
var _unescapable, _wordDelimiters;
|
|
35129
|
-
function
|
|
35130
|
-
if (typeof WeakMap
|
|
35131
|
-
|
|
35132
|
-
|
|
35133
|
-
|
|
35134
|
-
|
|
35135
|
-
|
|
35136
|
-
|
|
35137
|
-
|
|
35138
|
-
|
|
35139
|
-
|
|
35140
|
-
|
|
35141
|
-
|
|
35142
|
-
|
|
35143
|
-
|
|
35144
|
-
|
|
35145
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
35146
|
-
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
|
|
35147
|
-
else newObj[key] = obj[key];
|
|
35148
|
-
}
|
|
35149
|
-
newObj["default"] = obj;
|
|
35150
|
-
if (cache) cache.set(obj, newObj);
|
|
35151
|
-
return newObj;
|
|
35246
|
+
function _interopRequireWildcard(e, t) {
|
|
35247
|
+
if ("function" == typeof WeakMap) var r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
35248
|
+
return (_interopRequireWildcard = function _interopRequireWildcard(e, t) {
|
|
35249
|
+
if (!t && e && e.__esModule) return e;
|
|
35250
|
+
var o, i, f = {
|
|
35251
|
+
__proto__: null,
|
|
35252
|
+
"default": e
|
|
35253
|
+
};
|
|
35254
|
+
if (null === e || "object" != typeof e && "function" != typeof e) return f;
|
|
35255
|
+
if (o = t ? n : r) {
|
|
35256
|
+
if (o.has(e)) return o.get(e);
|
|
35257
|
+
o.set(e, f);
|
|
35258
|
+
}
|
|
35259
|
+
for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]);
|
|
35260
|
+
return f;
|
|
35261
|
+
})(e, t);
|
|
35152
35262
|
}
|
|
35153
35263
|
var unescapable = (_unescapable = {}, _unescapable[t.tab] = true, _unescapable[t.newline] = true, _unescapable[t.cr] = true, _unescapable[t.feed] = true, _unescapable);
|
|
35154
35264
|
var wordDelimiters = (_wordDelimiters = {}, _wordDelimiters[t.space] = true, _wordDelimiters[t.tab] = true, _wordDelimiters[t.newline] = true, _wordDelimiters[t.cr] = true, _wordDelimiters[t.feed] = true, _wordDelimiters[t.ampersand] = true, _wordDelimiters[t.asterisk] = true, _wordDelimiters[t.bang] = true, _wordDelimiters[t.comma] = true, _wordDelimiters[t.colon] = true, _wordDelimiters[t.semicolon] = true, _wordDelimiters[t.openParenthesis] = true, _wordDelimiters[t.closeParenthesis] = true, _wordDelimiters[t.openSquare] = true, _wordDelimiters[t.closeSquare] = true, _wordDelimiters[t.singleQuote] = true, _wordDelimiters[t.doubleQuote] = true, _wordDelimiters[t.plus] = true, _wordDelimiters[t.pipe] = true, _wordDelimiters[t.tilde] = true, _wordDelimiters[t.greaterThan] = true, _wordDelimiters[t.equals] = true, _wordDelimiters[t.dollar] = true, _wordDelimiters[t.caret] = true, _wordDelimiters[t.slash] = true, _wordDelimiters);
|
|
@@ -35344,7 +35454,7 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35344
35454
|
}
|
|
35345
35455
|
}));
|
|
35346
35456
|
//#endregion
|
|
35347
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35457
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/parser.js
|
|
35348
35458
|
var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35349
35459
|
exports.__esModule = true;
|
|
35350
35460
|
exports["default"] = void 0;
|
|
@@ -35366,47 +35476,48 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
35366
35476
|
var types = _interopRequireWildcard(require_types());
|
|
35367
35477
|
var _util = require_util$1();
|
|
35368
35478
|
var _WHITESPACE_TOKENS, _Object$assign;
|
|
35369
|
-
function
|
|
35370
|
-
if (typeof WeakMap
|
|
35371
|
-
|
|
35372
|
-
|
|
35373
|
-
|
|
35374
|
-
|
|
35375
|
-
|
|
35376
|
-
|
|
35377
|
-
|
|
35378
|
-
|
|
35379
|
-
|
|
35380
|
-
|
|
35381
|
-
|
|
35382
|
-
|
|
35383
|
-
|
|
35384
|
-
|
|
35385
|
-
|
|
35386
|
-
|
|
35387
|
-
|
|
35388
|
-
|
|
35389
|
-
|
|
35390
|
-
|
|
35391
|
-
|
|
35392
|
-
|
|
35393
|
-
|
|
35394
|
-
|
|
35395
|
-
|
|
35396
|
-
|
|
35397
|
-
|
|
35398
|
-
|
|
35399
|
-
|
|
35400
|
-
|
|
35401
|
-
|
|
35402
|
-
|
|
35403
|
-
|
|
35404
|
-
|
|
35405
|
-
|
|
35406
|
-
|
|
35407
|
-
|
|
35408
|
-
|
|
35409
|
-
|
|
35479
|
+
function _interopRequireWildcard(e, t) {
|
|
35480
|
+
if ("function" == typeof WeakMap) var r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
35481
|
+
return (_interopRequireWildcard = function _interopRequireWildcard(e, t) {
|
|
35482
|
+
if (!t && e && e.__esModule) return e;
|
|
35483
|
+
var o, i, f = {
|
|
35484
|
+
__proto__: null,
|
|
35485
|
+
"default": e
|
|
35486
|
+
};
|
|
35487
|
+
if (null === e || "object" != typeof e && "function" != typeof e) return f;
|
|
35488
|
+
if (o = t ? n : r) {
|
|
35489
|
+
if (o.has(e)) return o.get(e);
|
|
35490
|
+
o.set(e, f);
|
|
35491
|
+
}
|
|
35492
|
+
for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]);
|
|
35493
|
+
return f;
|
|
35494
|
+
})(e, t);
|
|
35495
|
+
}
|
|
35496
|
+
function _interopRequireDefault(e) {
|
|
35497
|
+
return e && e.__esModule ? e : { "default": e };
|
|
35498
|
+
}
|
|
35499
|
+
function _defineProperties(e, r) {
|
|
35500
|
+
for (var t = 0; t < r.length; t++) {
|
|
35501
|
+
var o = r[t];
|
|
35502
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
35503
|
+
}
|
|
35504
|
+
}
|
|
35505
|
+
function _createClass(e, r, t) {
|
|
35506
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
35507
|
+
}
|
|
35508
|
+
function _toPropertyKey(t) {
|
|
35509
|
+
var i = _toPrimitive(t, "string");
|
|
35510
|
+
return "symbol" == typeof i ? i : i + "";
|
|
35511
|
+
}
|
|
35512
|
+
function _toPrimitive(t, r) {
|
|
35513
|
+
if ("object" != typeof t || !t) return t;
|
|
35514
|
+
var e = t[Symbol.toPrimitive];
|
|
35515
|
+
if (void 0 !== e) {
|
|
35516
|
+
var i = e.call(t, r || "default");
|
|
35517
|
+
if ("object" != typeof i) return i;
|
|
35518
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
35519
|
+
}
|
|
35520
|
+
return ("string" === r ? String : Number)(t);
|
|
35410
35521
|
}
|
|
35411
35522
|
var WHITESPACE_TOKENS = (_WHITESPACE_TOKENS = {}, _WHITESPACE_TOKENS[tokens.space] = true, _WHITESPACE_TOKENS[tokens.cr] = true, _WHITESPACE_TOKENS[tokens.feed] = true, _WHITESPACE_TOKENS[tokens.newline] = true, _WHITESPACE_TOKENS[tokens.tab] = true, _WHITESPACE_TOKENS);
|
|
35412
35523
|
var WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign));
|
|
@@ -35472,6 +35583,8 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
35472
35583
|
safe: false
|
|
35473
35584
|
}, options);
|
|
35474
35585
|
this.position = 0;
|
|
35586
|
+
this.nestingDepth = 0;
|
|
35587
|
+
this.maxNestingDepth = (0, _util.resolveMaxNestingDepth)(this.options.maxNestingDepth);
|
|
35475
35588
|
this.css = typeof this.rule === "string" ? this.rule : this.rule.selector;
|
|
35476
35589
|
this.tokens = (0, _tokenize["default"])({
|
|
35477
35590
|
css: this.css,
|
|
@@ -35906,15 +36019,21 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
35906
36019
|
var cache = this.current;
|
|
35907
36020
|
last.append(selector);
|
|
35908
36021
|
this.current = selector;
|
|
35909
|
-
|
|
35910
|
-
|
|
35911
|
-
if (this.currToken[_tokenize.FIELDS.
|
|
35912
|
-
|
|
35913
|
-
|
|
35914
|
-
this.
|
|
35915
|
-
|
|
35916
|
-
|
|
36022
|
+
this.nestingDepth++;
|
|
36023
|
+
try {
|
|
36024
|
+
if (this.nestingDepth > this.maxNestingDepth) this.error("Cannot parse selector: nesting depth exceeds the maximum of " + this.maxNestingDepth + ".", { index: this.currToken[_tokenize.FIELDS.START_POS] });
|
|
36025
|
+
while (this.position < this.tokens.length && unbalanced) {
|
|
36026
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) unbalanced++;
|
|
36027
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) unbalanced--;
|
|
36028
|
+
if (unbalanced) this.parse();
|
|
36029
|
+
else {
|
|
36030
|
+
this.current.source.end = tokenEnd(this.currToken);
|
|
36031
|
+
this.current.parent.source.end = tokenEnd(this.currToken);
|
|
36032
|
+
this.position++;
|
|
36033
|
+
}
|
|
35917
36034
|
}
|
|
36035
|
+
} finally {
|
|
36036
|
+
this.nestingDepth--;
|
|
35918
36037
|
}
|
|
35919
36038
|
this.current = cache;
|
|
35920
36039
|
} else {
|
|
@@ -36204,13 +36323,13 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
36204
36323
|
module.exports = exports.default;
|
|
36205
36324
|
}));
|
|
36206
36325
|
//#endregion
|
|
36207
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
36326
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/processor.js
|
|
36208
36327
|
var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
36209
36328
|
exports.__esModule = true;
|
|
36210
36329
|
exports["default"] = void 0;
|
|
36211
36330
|
var _parser = _interopRequireDefault(require_parser());
|
|
36212
|
-
function _interopRequireDefault(
|
|
36213
|
-
return
|
|
36331
|
+
function _interopRequireDefault(e) {
|
|
36332
|
+
return e && e.__esModule ? e : { "default": e };
|
|
36214
36333
|
}
|
|
36215
36334
|
exports["default"] = /* @__PURE__ */ function() {
|
|
36216
36335
|
function Processor(func, options) {
|
|
@@ -36234,7 +36353,14 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
36234
36353
|
return new _parser["default"](rule, this._parseOptions(options)).root;
|
|
36235
36354
|
};
|
|
36236
36355
|
_proto._parseOptions = function _parseOptions(options) {
|
|
36237
|
-
|
|
36356
|
+
var merged = Object.assign({}, this.options, options);
|
|
36357
|
+
return {
|
|
36358
|
+
lossy: this._isLossy(merged),
|
|
36359
|
+
maxNestingDepth: merged.maxNestingDepth
|
|
36360
|
+
};
|
|
36361
|
+
};
|
|
36362
|
+
_proto._stringifyOptions = function _stringifyOptions(options) {
|
|
36363
|
+
return { maxNestingDepth: Object.assign({}, this.options, options).maxNestingDepth };
|
|
36238
36364
|
};
|
|
36239
36365
|
_proto._run = function _run(rule, options) {
|
|
36240
36366
|
var _this = this;
|
|
@@ -36245,7 +36371,7 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
36245
36371
|
Promise.resolve(_this.func(root)).then(function(transform) {
|
|
36246
36372
|
var string = void 0;
|
|
36247
36373
|
if (_this._shouldUpdateSelector(rule, options)) {
|
|
36248
|
-
string = root.toString();
|
|
36374
|
+
string = root.toString(_this._stringifyOptions(options));
|
|
36249
36375
|
rule.selector = string;
|
|
36250
36376
|
}
|
|
36251
36377
|
return {
|
|
@@ -36267,7 +36393,7 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
36267
36393
|
if (transform && typeof transform.then === "function") throw new Error("Selector processor returned a promise to a synchronous call.");
|
|
36268
36394
|
var string = void 0;
|
|
36269
36395
|
if (options.updateSelector && typeof rule !== "string") {
|
|
36270
|
-
string = root.toString();
|
|
36396
|
+
string = root.toString(this._stringifyOptions(options));
|
|
36271
36397
|
rule.selector = string;
|
|
36272
36398
|
}
|
|
36273
36399
|
return {
|
|
@@ -36293,20 +36419,21 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
36293
36419
|
return this._runSync(rule, options).transform;
|
|
36294
36420
|
};
|
|
36295
36421
|
_proto.process = function process(rule, options) {
|
|
36422
|
+
var _this2 = this;
|
|
36296
36423
|
return this._run(rule, options).then(function(result) {
|
|
36297
|
-
return result.string || result.root.toString();
|
|
36424
|
+
return result.string || result.root.toString(_this2._stringifyOptions(options));
|
|
36298
36425
|
});
|
|
36299
36426
|
};
|
|
36300
36427
|
_proto.processSync = function processSync(rule, options) {
|
|
36301
36428
|
var result = this._runSync(rule, options);
|
|
36302
|
-
return result.string || result.root.toString();
|
|
36429
|
+
return result.string || result.root.toString(this._stringifyOptions(options));
|
|
36303
36430
|
};
|
|
36304
36431
|
return Processor;
|
|
36305
36432
|
}();
|
|
36306
36433
|
module.exports = exports.default;
|
|
36307
36434
|
}));
|
|
36308
36435
|
//#endregion
|
|
36309
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
36436
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/constructors.js
|
|
36310
36437
|
var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
36311
36438
|
exports.__esModule = true;
|
|
36312
36439
|
exports.universal = exports.tag = exports.string = exports.selector = exports.root = exports.pseudo = exports.nesting = exports.id = exports.comment = exports.combinator = exports.className = exports.attribute = void 0;
|
|
@@ -36322,8 +36449,8 @@ var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
36322
36449
|
var _string = _interopRequireDefault(require_string());
|
|
36323
36450
|
var _tag = _interopRequireDefault(require_tag());
|
|
36324
36451
|
var _universal = _interopRequireDefault(require_universal());
|
|
36325
|
-
function _interopRequireDefault(
|
|
36326
|
-
return
|
|
36452
|
+
function _interopRequireDefault(e) {
|
|
36453
|
+
return e && e.__esModule ? e : { "default": e };
|
|
36327
36454
|
}
|
|
36328
36455
|
exports.attribute = function attribute(opts) {
|
|
36329
36456
|
return new _attribute["default"](opts);
|
|
@@ -36363,7 +36490,7 @@ var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
36363
36490
|
};
|
|
36364
36491
|
}));
|
|
36365
36492
|
//#endregion
|
|
36366
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
36493
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/guards.js
|
|
36367
36494
|
var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
36368
36495
|
exports.__esModule = true;
|
|
36369
36496
|
exports.isComment = exports.isCombinator = exports.isClassName = exports.isAttribute = void 0;
|
|
@@ -36385,20 +36512,17 @@ var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
36385
36512
|
function isNodeType(type, node) {
|
|
36386
36513
|
return isNode(node) && node.type === type;
|
|
36387
36514
|
}
|
|
36388
|
-
var isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);
|
|
36389
|
-
exports.isAttribute = isAttribute;
|
|
36515
|
+
var isAttribute = exports.isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);
|
|
36390
36516
|
exports.isClassName = isNodeType.bind(null, _types.CLASS);
|
|
36391
36517
|
exports.isCombinator = isNodeType.bind(null, _types.COMBINATOR);
|
|
36392
36518
|
exports.isComment = isNodeType.bind(null, _types.COMMENT);
|
|
36393
36519
|
exports.isIdentifier = isNodeType.bind(null, _types.ID);
|
|
36394
36520
|
exports.isNesting = isNodeType.bind(null, _types.NESTING);
|
|
36395
|
-
var isPseudo = isNodeType.bind(null, _types.PSEUDO);
|
|
36396
|
-
exports.isPseudo = isPseudo;
|
|
36521
|
+
var isPseudo = exports.isPseudo = isNodeType.bind(null, _types.PSEUDO);
|
|
36397
36522
|
exports.isRoot = isNodeType.bind(null, _types.ROOT);
|
|
36398
36523
|
exports.isSelector = isNodeType.bind(null, _types.SELECTOR);
|
|
36399
36524
|
exports.isString = isNodeType.bind(null, _types.STRING);
|
|
36400
|
-
var isTag = isNodeType.bind(null, _types.TAG);
|
|
36401
|
-
exports.isTag = isTag;
|
|
36525
|
+
var isTag = exports.isTag = isNodeType.bind(null, _types.TAG);
|
|
36402
36526
|
exports.isUniversal = isNodeType.bind(null, _types.UNIVERSAL);
|
|
36403
36527
|
function isPseudoElement(node) {
|
|
36404
36528
|
return isPseudo(node) && node.value && (node.value.startsWith("::") || node.value.toLowerCase() === ":before" || node.value.toLowerCase() === ":after" || node.value.toLowerCase() === ":first-letter" || node.value.toLowerCase() === ":first-line");
|
|
@@ -36414,7 +36538,7 @@ var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
36414
36538
|
}
|
|
36415
36539
|
}));
|
|
36416
36540
|
//#endregion
|
|
36417
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
36541
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/index.js
|
|
36418
36542
|
var require_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
36419
36543
|
exports.__esModule = true;
|
|
36420
36544
|
var _types = require_types();
|
|
@@ -36443,32 +36567,25 @@ var import_dist = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((expor
|
|
|
36443
36567
|
exports["default"] = void 0;
|
|
36444
36568
|
var _processor = _interopRequireDefault(require_processor());
|
|
36445
36569
|
var selectors = _interopRequireWildcard(require_selectors());
|
|
36446
|
-
function
|
|
36447
|
-
if (typeof WeakMap
|
|
36448
|
-
|
|
36449
|
-
|
|
36450
|
-
|
|
36451
|
-
|
|
36452
|
-
|
|
36453
|
-
|
|
36454
|
-
|
|
36455
|
-
|
|
36456
|
-
|
|
36457
|
-
|
|
36458
|
-
|
|
36459
|
-
|
|
36460
|
-
|
|
36461
|
-
|
|
36462
|
-
|
|
36463
|
-
|
|
36464
|
-
|
|
36465
|
-
}
|
|
36466
|
-
newObj["default"] = obj;
|
|
36467
|
-
if (cache) cache.set(obj, newObj);
|
|
36468
|
-
return newObj;
|
|
36469
|
-
}
|
|
36470
|
-
function _interopRequireDefault(obj) {
|
|
36471
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
36570
|
+
function _interopRequireWildcard(e, t) {
|
|
36571
|
+
if ("function" == typeof WeakMap) var r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
36572
|
+
return (_interopRequireWildcard = function _interopRequireWildcard(e, t) {
|
|
36573
|
+
if (!t && e && e.__esModule) return e;
|
|
36574
|
+
var o, i, f = {
|
|
36575
|
+
__proto__: null,
|
|
36576
|
+
"default": e
|
|
36577
|
+
};
|
|
36578
|
+
if (null === e || "object" != typeof e && "function" != typeof e) return f;
|
|
36579
|
+
if (o = t ? n : r) {
|
|
36580
|
+
if (o.has(e)) return o.get(e);
|
|
36581
|
+
o.set(e, f);
|
|
36582
|
+
}
|
|
36583
|
+
for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]);
|
|
36584
|
+
return f;
|
|
36585
|
+
})(e, t);
|
|
36586
|
+
}
|
|
36587
|
+
function _interopRequireDefault(e) {
|
|
36588
|
+
return e && e.__esModule ? e : { "default": e };
|
|
36472
36589
|
}
|
|
36473
36590
|
var parser = function parser(processor) {
|
|
36474
36591
|
return new _processor["default"](processor);
|
|
@@ -40231,7 +40348,10 @@ function resolveTypeElements(ctx, node, scope, typeParameters) {
|
|
|
40231
40348
|
return canCache ? node._resolvedElements = resolved : resolved;
|
|
40232
40349
|
}
|
|
40233
40350
|
function innerResolveTypeElements(ctx, node, scope, typeParameters) {
|
|
40234
|
-
if (node
|
|
40351
|
+
if (hasVueIgnore(node)) {
|
|
40352
|
+
if ((node.type === "TSIntersectionType" || node.type === "TSUnionType") && node.types.length > 1) return mergeElements([{ props: {} }, ...node.types.slice(1).map((t) => resolveTypeElements(ctx, t, scope, typeParameters))], node.type);
|
|
40353
|
+
return { props: {} };
|
|
40354
|
+
}
|
|
40235
40355
|
switch (node.type) {
|
|
40236
40356
|
case "TSTypeLiteral": return typeElementsToMap(ctx, node.members, scope, typeParameters);
|
|
40237
40357
|
case "TSInterfaceDeclaration": return resolveInterfaceMembers(ctx, node, scope, typeParameters);
|
|
@@ -40306,6 +40426,9 @@ function typeElementsToMap(ctx, elements, scope = ctxToScope(ctx), typeParameter
|
|
|
40306
40426
|
} else if (e.type === "TSCallSignatureDeclaration") (res.calls || (res.calls = [])).push(e);
|
|
40307
40427
|
return res;
|
|
40308
40428
|
}
|
|
40429
|
+
function hasVueIgnore(node) {
|
|
40430
|
+
return !!(node.leadingComments && node.leadingComments.some((c) => c.value.includes("@vue-ignore")));
|
|
40431
|
+
}
|
|
40309
40432
|
function mergeElements(maps, type) {
|
|
40310
40433
|
if (maps.length === 1) return maps[0];
|
|
40311
40434
|
const res = { props: {} };
|
|
@@ -41390,6 +41513,7 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
41390
41513
|
if (ctx.options.propsDestructure === false) return;
|
|
41391
41514
|
const rootScope = Object.create(null);
|
|
41392
41515
|
const scopeStack = [rootScope];
|
|
41516
|
+
const functionScopeStack = [rootScope];
|
|
41393
41517
|
let currentScope = rootScope;
|
|
41394
41518
|
const excludedIds = /* @__PURE__ */ new WeakSet();
|
|
41395
41519
|
const parentStack = [];
|
|
@@ -41399,16 +41523,19 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
41399
41523
|
rootScope[local] = true;
|
|
41400
41524
|
propsLocalToPublicMap[local] = key;
|
|
41401
41525
|
}
|
|
41402
|
-
function pushScope() {
|
|
41403
|
-
|
|
41526
|
+
function pushScope(isFunctionScope = false) {
|
|
41527
|
+
const scope = currentScope = Object.create(currentScope);
|
|
41528
|
+
scopeStack.push(scope);
|
|
41529
|
+
if (isFunctionScope) functionScopeStack.push(scope);
|
|
41404
41530
|
}
|
|
41405
|
-
function popScope() {
|
|
41531
|
+
function popScope(isFunctionScope = false) {
|
|
41406
41532
|
scopeStack.pop();
|
|
41533
|
+
if (isFunctionScope) functionScopeStack.pop();
|
|
41407
41534
|
currentScope = scopeStack[scopeStack.length - 1] || null;
|
|
41408
41535
|
}
|
|
41409
|
-
function registerLocalBinding(id) {
|
|
41536
|
+
function registerLocalBinding(id, scope = currentScope) {
|
|
41410
41537
|
excludedIds.add(id);
|
|
41411
|
-
if (
|
|
41538
|
+
if (scope) scope[id.name] = false;
|
|
41412
41539
|
else ctx.error("registerBinding called without active scope, something is wrong.", id);
|
|
41413
41540
|
}
|
|
41414
41541
|
function walkScope(node, isRoot = false) {
|
|
@@ -41419,14 +41546,22 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
41419
41546
|
} else if (stmt.type === "ExportNamedDeclaration" && stmt.declaration && stmt.declaration.type === "VariableDeclaration") walkVariableDeclaration(stmt.declaration, isRoot);
|
|
41420
41547
|
else if (stmt.type === "LabeledStatement" && stmt.body.type === "VariableDeclaration") walkVariableDeclaration(stmt.body, isRoot);
|
|
41421
41548
|
}
|
|
41422
|
-
function walkVariableDeclaration(stmt, isRoot = false) {
|
|
41549
|
+
function walkVariableDeclaration(stmt, isRoot = false, scope = stmt.kind === "var" ? functionScopeStack[functionScopeStack.length - 1] : currentScope) {
|
|
41423
41550
|
if (stmt.declare) return;
|
|
41424
41551
|
for (const decl of stmt.declarations) {
|
|
41425
41552
|
const isDefineProps = isRoot && decl.init && isCallOf(unwrapTSNode(decl.init), "defineProps");
|
|
41426
41553
|
for (const id of extractIdentifiers(decl.id)) if (isDefineProps) excludedIds.add(id);
|
|
41427
|
-
else registerLocalBinding(id);
|
|
41554
|
+
else registerLocalBinding(id, scope);
|
|
41428
41555
|
}
|
|
41429
41556
|
}
|
|
41557
|
+
function walkFunctionScopeVarDeclarations(scopeNode, isRoot = false) {
|
|
41558
|
+
const scope = functionScopeStack[functionScopeStack.length - 1];
|
|
41559
|
+
walk$2(scopeNode, { enter(node, parent) {
|
|
41560
|
+
if (parent && parent.type.startsWith("TS") && !TS_NODE_TYPES.includes(parent.type)) return this.skip();
|
|
41561
|
+
if (isFunctionType(node) || node.type === "ClassDeclaration" || node.type === "ClassExpression") return this.skip();
|
|
41562
|
+
if (node.type === "VariableDeclaration" && node.kind === "var") walkVariableDeclaration(node, isRoot && parent === scopeNode, scope);
|
|
41563
|
+
} });
|
|
41564
|
+
}
|
|
41430
41565
|
function rewriteId(id, parent, parentStack) {
|
|
41431
41566
|
if (parent.type === "AssignmentExpression" && id === parent.left || parent.type === "UpdateExpression") ctx.error(`Cannot assign to destructured props as they are readonly.`, id);
|
|
41432
41567
|
if (isStaticProperty(parent) && parent.shorthand) {
|
|
@@ -41440,6 +41575,7 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
41440
41575
|
}
|
|
41441
41576
|
}
|
|
41442
41577
|
const ast = ctx.scriptSetupAst;
|
|
41578
|
+
walkFunctionScopeVarDeclarations(ast, true);
|
|
41443
41579
|
walkScope(ast, true);
|
|
41444
41580
|
walk$2(ast, {
|
|
41445
41581
|
enter(node, parent) {
|
|
@@ -41448,9 +41584,12 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
41448
41584
|
checkUsage(node, "watch", vueImportAliases.watch);
|
|
41449
41585
|
checkUsage(node, "toRef", vueImportAliases.toRef);
|
|
41450
41586
|
if (isFunctionType(node)) {
|
|
41451
|
-
pushScope();
|
|
41587
|
+
pushScope(true);
|
|
41452
41588
|
walkFunctionParams(node, registerLocalBinding);
|
|
41453
|
-
if (node.body.type === "BlockStatement")
|
|
41589
|
+
if (node.body.type === "BlockStatement") {
|
|
41590
|
+
walkFunctionScopeVarDeclarations(node.body);
|
|
41591
|
+
walkScope(node.body);
|
|
41592
|
+
}
|
|
41454
41593
|
return;
|
|
41455
41594
|
}
|
|
41456
41595
|
if (node.type === "CatchClause") {
|
|
@@ -41479,7 +41618,9 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
41479
41618
|
},
|
|
41480
41619
|
leave(node, parent) {
|
|
41481
41620
|
parent && parentStack.pop();
|
|
41482
|
-
if (
|
|
41621
|
+
if (isFunctionType(node)) popScope(true);
|
|
41622
|
+
else if (node.type === "BlockStatement" && !isFunctionType(parent)) popScope();
|
|
41623
|
+
else if (node.type === "CatchClause" || node.type === "ForOfStatement" || node.type === "ForInStatement" || node.type === "ForStatement") popScope();
|
|
41483
41624
|
}
|
|
41484
41625
|
});
|
|
41485
41626
|
}
|
|
@@ -42157,7 +42298,7 @@ function mergeSourceMaps(scriptMap, templateMap, templateLineOffset) {
|
|
|
42157
42298
|
//#endregion
|
|
42158
42299
|
//#region packages/compiler-sfc/src/index.ts
|
|
42159
42300
|
init_objectSpread2();
|
|
42160
|
-
const version = "3.6.0-beta.
|
|
42301
|
+
const version = "3.6.0-beta.16";
|
|
42161
42302
|
const parseCache = parseCache$1;
|
|
42162
42303
|
const errorMessages = _objectSpread2(_objectSpread2({}, errorMessages$1), DOMErrorMessages);
|
|
42163
42304
|
const walk = walk$2;
|