@vue/compiler-sfc 3.6.0-beta.13 → 3.6.0-beta.15
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 -707
- package/dist/compiler-sfc.esm-browser.js +667 -639
- 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.15
|
|
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
|
};
|
|
@@ -25813,7 +25826,7 @@ function isConstantBinding(value, context) {
|
|
|
25813
25826
|
//#region packages/compiler-vapor/src/generators/for.ts
|
|
25814
25827
|
function genFor(oper, context) {
|
|
25815
25828
|
const { helper } = context;
|
|
25816
|
-
const { source, value, key, index, render, keyProp, once, id, component, onlyChild } = oper;
|
|
25829
|
+
const { source, value, key, index, render, keyProp, once, id, component, onlyChild, slotRoot } = oper;
|
|
25817
25830
|
const rawValue = value && value.content;
|
|
25818
25831
|
const rawKey = key && key.content;
|
|
25819
25832
|
const rawIndex = index && index.content;
|
|
@@ -25872,6 +25885,7 @@ function genFor(oper, context) {
|
|
|
25872
25885
|
if (isFragmentBlock(render)) flags |= 16;
|
|
25873
25886
|
if (!component && isSingleNodeBlock(render)) flags |= 8;
|
|
25874
25887
|
if (once) flags |= 4;
|
|
25888
|
+
if (slotRoot) flags |= 32;
|
|
25875
25889
|
const onResetCalls = [];
|
|
25876
25890
|
for (let i = 0; i < selectorPatterns.length; i++) onResetCalls.push(NEWLINE, `n${id}.onReset(${selectorName(i)}.reset)`);
|
|
25877
25891
|
return [
|
|
@@ -25953,7 +25967,7 @@ function parseValueDestructure(value, context) {
|
|
|
25953
25967
|
if (child.type === "AssignmentPattern" && (parent.type === "ObjectProperty" || parent.type === "ArrayPattern")) {
|
|
25954
25968
|
isDynamic = true;
|
|
25955
25969
|
helper = context.helper("getDefaultValue");
|
|
25956
|
-
helperArgs = rawValue.slice(child.right.start - 1, child.right.end - 1)
|
|
25970
|
+
helperArgs = `() => (${rawValue.slice(child.right.start - 1, child.right.end - 1)})`;
|
|
25957
25971
|
}
|
|
25958
25972
|
}
|
|
25959
25973
|
map.set(id.name, {
|
|
@@ -26101,9 +26115,9 @@ function genSetHtml(oper, context) {
|
|
|
26101
26115
|
//#region packages/compiler-vapor/src/generators/if.ts
|
|
26102
26116
|
function genIf(oper, context, isNested = false) {
|
|
26103
26117
|
const { helper } = context;
|
|
26104
|
-
const { condition, positive, negative, once, index, blockShape } = oper;
|
|
26118
|
+
const { condition, positive, negative, once, slotRoot, index, blockShape } = oper;
|
|
26105
26119
|
const [frag, push] = buildCodeFragment();
|
|
26106
|
-
const flags = genIfFlags(blockShape, once, negative ? index : void 0);
|
|
26120
|
+
const flags = genIfFlags(blockShape, once, slotRoot, negative ? index : void 0);
|
|
26107
26121
|
const conditionExpr = [
|
|
26108
26122
|
"() => (",
|
|
26109
26123
|
...genExpression(condition, context),
|
|
@@ -26117,19 +26131,21 @@ function genIf(oper, context, isNested = false) {
|
|
|
26117
26131
|
push(...genCall(helper("createIf"), conditionExpr, positiveArg, negativeArg, flags));
|
|
26118
26132
|
return frag;
|
|
26119
26133
|
}
|
|
26120
|
-
function genIfFlags(blockShape, once, index) {
|
|
26134
|
+
function genIfFlags(blockShape, once, slotRoot, index) {
|
|
26121
26135
|
let flags = blockShape;
|
|
26136
|
+
if (slotRoot) flags |= 128;
|
|
26122
26137
|
if (once) flags |= 16;
|
|
26123
|
-
else if (index !== void 0) flags |= index + 1 <<
|
|
26138
|
+
else if (index !== void 0) flags |= index + 1 << 8;
|
|
26124
26139
|
if (flags === 1) return false;
|
|
26125
|
-
return `${flags} /* ${genIfFlagNames(once, index, blockShape)} */`;
|
|
26140
|
+
return `${flags} /* ${genIfFlagNames(once, slotRoot, index, blockShape)} */`;
|
|
26126
26141
|
}
|
|
26127
|
-
function genIfFlagNames(once, index, blockShape) {
|
|
26142
|
+
function genIfFlagNames(once, slotRoot, index, blockShape) {
|
|
26128
26143
|
const names = ["BLOCK_SHAPE"];
|
|
26129
26144
|
if (blockShape & 32) names.push("TRUE_NO_SCOPE");
|
|
26130
26145
|
if (blockShape & 64) names.push("FALSE_NO_SCOPE");
|
|
26131
26146
|
if (once) names.push("ONCE");
|
|
26132
|
-
|
|
26147
|
+
if (slotRoot) names.push("SLOT_ROOT");
|
|
26148
|
+
if (!once && index !== void 0) names.push("INDEX_SHIFT");
|
|
26133
26149
|
return names.join(", ");
|
|
26134
26150
|
}
|
|
26135
26151
|
//#endregion
|
|
@@ -26475,7 +26491,9 @@ function genCreateComponent(operation, context) {
|
|
|
26475
26491
|
const useAssetComponentHelper = operation.asset && !operation.dynamic && context.block === context.ir.block && !!singleUseAssetComponentNames && singleUseAssetComponentNames.has(operation.tag);
|
|
26476
26492
|
const maybeSelfReference = useAssetComponentHelper && operation.tag.endsWith("__self");
|
|
26477
26493
|
const tag = genTag();
|
|
26478
|
-
const { root, props, slots, once } = operation;
|
|
26494
|
+
const { root, props, slots, once, slotRoot } = operation;
|
|
26495
|
+
const isRuntimeDynamicComponent = !!(operation.dynamic && !operation.dynamic.isStatic);
|
|
26496
|
+
const dynamicComponentFlags = isRuntimeDynamicComponent ? (root ? 1 : 0) | (once ? 2 : 0) | (slotRoot ? 4 : 0) : 0;
|
|
26479
26497
|
const rawSlots = genRawSlots(slots, context);
|
|
26480
26498
|
const [ids, handlers] = processInlineHandlers(props, context);
|
|
26481
26499
|
const rawProps = context.withId(() => genRawProps(props, context, true), ids);
|
|
@@ -26491,7 +26509,7 @@ function genCreateComponent(operation, context) {
|
|
|
26491
26509
|
];
|
|
26492
26510
|
}, []),
|
|
26493
26511
|
`const n${operation.id} = `,
|
|
26494
|
-
...genCall(
|
|
26512
|
+
...genCall(isRuntimeDynamicComponent ? helper("createDynamicComponent") : operation.useCreateElement ? helper("createPlainElement") : useAssetComponentHelper ? helper("createAssetComponent") : operation.asset ? helper("createComponentWithFallback") : helper("createComponent"), tag, rawProps, rawSlots, isRuntimeDynamicComponent ? dynamicComponentFlags ? String(dynamicComponentFlags) : false : root ? "true" : false, isRuntimeDynamicComponent ? false : once && "true", isRuntimeDynamicComponent ? false : maybeSelfReference && "true"),
|
|
26495
26513
|
...genDirectivesForElement(operation.id, context)
|
|
26496
26514
|
];
|
|
26497
26515
|
function genTag() {
|
|
@@ -26768,23 +26786,12 @@ function genDynamicSlot(slot, context, withFunction = false) {
|
|
|
26768
26786
|
break;
|
|
26769
26787
|
}
|
|
26770
26788
|
if (!withFunction) return frag;
|
|
26771
|
-
return
|
|
26772
|
-
`${context.helper("withVaporCtx")}(() => (`,
|
|
26773
|
-
...frag,
|
|
26774
|
-
"))"
|
|
26775
|
-
] : [
|
|
26789
|
+
return [
|
|
26776
26790
|
"() => (",
|
|
26777
26791
|
...frag,
|
|
26778
26792
|
")"
|
|
26779
26793
|
];
|
|
26780
26794
|
}
|
|
26781
|
-
function needsDynamicSlotSourceCtx(slot) {
|
|
26782
|
-
switch (slot.slotType) {
|
|
26783
|
-
case 1: return needsVaporCtx(slot.fn);
|
|
26784
|
-
case 2: return needsVaporCtx(slot.fn);
|
|
26785
|
-
case 3: return needsDynamicSlotSourceCtx(slot.positive) || (slot.negative ? needsDynamicSlotSourceCtx(slot.negative) : false);
|
|
26786
|
-
}
|
|
26787
|
-
}
|
|
26788
26795
|
function genBasicDynamicSlot(slot, context) {
|
|
26789
26796
|
const { name, fn } = slot;
|
|
26790
26797
|
return genMulti(DELIMITERS_OBJECT_NEWLINE, ["name: ", ...genExpression(name, context)], ["fn: ", ...genSlotBlockWithProps(fn, context)]);
|
|
@@ -26829,7 +26836,7 @@ function genSlotBlockWithProps(oper, context) {
|
|
|
26829
26836
|
let propsName;
|
|
26830
26837
|
let exitScope;
|
|
26831
26838
|
let depth;
|
|
26832
|
-
const { props
|
|
26839
|
+
const { props } = oper;
|
|
26833
26840
|
const idToPathMap = props ? parseValueDestructure(props, context) : /* @__PURE__ */ new Map();
|
|
26834
26841
|
if (props) if (props.ast) {
|
|
26835
26842
|
[depth, exitScope] = context.enterScope();
|
|
@@ -26838,64 +26845,12 @@ function genSlotBlockWithProps(oper, context) {
|
|
|
26838
26845
|
const idMap = idToPathMap.size ? buildDestructureIdMap(idToPathMap, propsName || "", context.options.expressionPlugins) : {};
|
|
26839
26846
|
if (propsName) idMap[propsName] = null;
|
|
26840
26847
|
const exitSlotBlock = context.enterSlotBlock();
|
|
26848
|
+
markSlotRootOperations(oper);
|
|
26841
26849
|
let blockFn = context.withId(() => genBlock(oper, context, propsName ? [propsName] : []), idMap);
|
|
26842
26850
|
exitSlotBlock();
|
|
26843
26851
|
exitScope && exitScope();
|
|
26844
|
-
if (node.type === 1) {
|
|
26845
|
-
if (needsVaporCtx(oper)) blockFn = [
|
|
26846
|
-
`${context.helper("withVaporCtx")}(`,
|
|
26847
|
-
...blockFn,
|
|
26848
|
-
`)`
|
|
26849
|
-
];
|
|
26850
|
-
}
|
|
26851
26852
|
return blockFn;
|
|
26852
26853
|
}
|
|
26853
|
-
/**
|
|
26854
|
-
* Check if a slot block needs withVaporCtx wrapper.
|
|
26855
|
-
* Returns true if the block contains:
|
|
26856
|
-
* - Component creation (needs scopeId inheritance)
|
|
26857
|
-
* - Slot outlet (needs rawSlots from slot owner)
|
|
26858
|
-
*/
|
|
26859
|
-
function needsVaporCtx(block) {
|
|
26860
|
-
return hasComponentOrSlotInBlock(block);
|
|
26861
|
-
}
|
|
26862
|
-
function hasComponentOrSlotInBlock(block) {
|
|
26863
|
-
if (hasComponentOrSlotInOperations(block.operation)) return true;
|
|
26864
|
-
return hasComponentOrSlotInDynamic(block.dynamic);
|
|
26865
|
-
}
|
|
26866
|
-
function hasComponentOrSlotInDynamic(dynamic) {
|
|
26867
|
-
if (dynamic.operation) {
|
|
26868
|
-
const type = dynamic.operation.type;
|
|
26869
|
-
if (type === 12 || type === 13) return true;
|
|
26870
|
-
if (type === 15) {
|
|
26871
|
-
if (hasComponentOrSlotInIf(dynamic.operation)) return true;
|
|
26872
|
-
}
|
|
26873
|
-
if (type === 16) {
|
|
26874
|
-
if (hasComponentOrSlotInBlock(dynamic.operation.render)) return true;
|
|
26875
|
-
}
|
|
26876
|
-
}
|
|
26877
|
-
for (const child of dynamic.children) if (hasComponentOrSlotInDynamic(child)) return true;
|
|
26878
|
-
return false;
|
|
26879
|
-
}
|
|
26880
|
-
function hasComponentOrSlotInOperations(operations) {
|
|
26881
|
-
for (const op of operations) switch (op.type) {
|
|
26882
|
-
case 12:
|
|
26883
|
-
case 13: return true;
|
|
26884
|
-
case 15:
|
|
26885
|
-
if (hasComponentOrSlotInIf(op)) return true;
|
|
26886
|
-
break;
|
|
26887
|
-
case 16:
|
|
26888
|
-
if (hasComponentOrSlotInBlock(op.render)) return true;
|
|
26889
|
-
break;
|
|
26890
|
-
}
|
|
26891
|
-
return false;
|
|
26892
|
-
}
|
|
26893
|
-
function hasComponentOrSlotInIf(node) {
|
|
26894
|
-
if (hasComponentOrSlotInBlock(node.positive)) return true;
|
|
26895
|
-
if (node.negative) if ("positive" in node.negative) return hasComponentOrSlotInIf(node.negative);
|
|
26896
|
-
else return hasComponentOrSlotInBlock(node.negative);
|
|
26897
|
-
return false;
|
|
26898
|
-
}
|
|
26899
26854
|
//#endregion
|
|
26900
26855
|
//#region packages/compiler-vapor/src/generators/slotOutlet.ts
|
|
26901
26856
|
function genSlotOutlet(oper, context) {
|
|
@@ -26903,7 +26858,10 @@ function genSlotOutlet(oper, context) {
|
|
|
26903
26858
|
const { id, name, fallback, flags } = oper;
|
|
26904
26859
|
const [frag, push] = buildCodeFragment();
|
|
26905
26860
|
let fallbackArg;
|
|
26906
|
-
if (fallback)
|
|
26861
|
+
if (fallback) {
|
|
26862
|
+
markSlotRootOperations(fallback);
|
|
26863
|
+
fallbackArg = genBlock(fallback, context);
|
|
26864
|
+
}
|
|
26907
26865
|
const createSlot = helper("createSlot");
|
|
26908
26866
|
const rawPropsArg = genRawProps(oper.props, context, true);
|
|
26909
26867
|
const nameArg = name.isStatic && name.content === "default" && !rawPropsArg && !fallbackArg && !flags ? void 0 : name.isStatic ? genExpression(name, context) : [
|
|
@@ -27237,6 +27195,42 @@ function genBlockContent(block, context, root, genEffectsExtraFrag) {
|
|
|
27237
27195
|
for (const name of context.ir[kind]) push(NEWLINE, `const ${toValidAssetId(name, kind)} = `, ...genCall(context.helper(helper), JSON.stringify(name)));
|
|
27238
27196
|
}
|
|
27239
27197
|
}
|
|
27198
|
+
function markSlotRootOperations(block) {
|
|
27199
|
+
for (let i = 0; i < block.returns.length; i++) {
|
|
27200
|
+
const child = findReturnedDynamic$1(block, block.returns[i]);
|
|
27201
|
+
const operation = child && child.operation;
|
|
27202
|
+
if (!operation) continue;
|
|
27203
|
+
if (operation.type === 15) markSlotRootIf(operation);
|
|
27204
|
+
else if (operation.type === 16) markSlotRootFor(operation);
|
|
27205
|
+
else if (operation.type === 13) markSlotRootSlotOutlet(operation);
|
|
27206
|
+
else if (operation.type === 12) markSlotRootComponent(operation);
|
|
27207
|
+
}
|
|
27208
|
+
}
|
|
27209
|
+
function markSlotRootIf(operation) {
|
|
27210
|
+
if (!operation.once) operation.slotRoot = true;
|
|
27211
|
+
markSlotRootOperations(operation.positive);
|
|
27212
|
+
const negative = operation.negative;
|
|
27213
|
+
if (!negative) return;
|
|
27214
|
+
if (negative.type === 15) markSlotRootIf(negative);
|
|
27215
|
+
else markSlotRootOperations(negative);
|
|
27216
|
+
}
|
|
27217
|
+
function markSlotRootFor(operation) {
|
|
27218
|
+
if (!operation.once) operation.slotRoot = true;
|
|
27219
|
+
markSlotRootOperations(operation.render);
|
|
27220
|
+
}
|
|
27221
|
+
function markSlotRootSlotOutlet(operation) {
|
|
27222
|
+
operation.flags |= 4;
|
|
27223
|
+
if (operation.fallback) markSlotRootOperations(operation.fallback);
|
|
27224
|
+
}
|
|
27225
|
+
function markSlotRootComponent(operation) {
|
|
27226
|
+
if (!operation.once && operation.dynamic && !operation.dynamic.isStatic) operation.slotRoot = true;
|
|
27227
|
+
}
|
|
27228
|
+
function findReturnedDynamic$1(block, id) {
|
|
27229
|
+
for (let i = 0; i < block.dynamic.children.length; i++) {
|
|
27230
|
+
const child = block.dynamic.children[i];
|
|
27231
|
+
if (child.id === id) return child;
|
|
27232
|
+
}
|
|
27233
|
+
}
|
|
27240
27234
|
function collectSingleUseAssetComponents(block) {
|
|
27241
27235
|
const usageMap = /* @__PURE__ */ new Map();
|
|
27242
27236
|
const seenOperations = /* @__PURE__ */ new Set();
|
|
@@ -27668,7 +27662,6 @@ function transformNativeElement(node, propsResult, staticKey, singleRoot, contex
|
|
|
27668
27662
|
let template = "";
|
|
27669
27663
|
template += `<${tag}`;
|
|
27670
27664
|
if (scopeId) template += ` ${scopeId}`;
|
|
27671
|
-
const dynamicProps = [];
|
|
27672
27665
|
if (propsResult[0]) {
|
|
27673
27666
|
const [, dynamicArgs, expressions] = propsResult;
|
|
27674
27667
|
context.registerEffect(expressions, {
|
|
@@ -27689,54 +27682,24 @@ function transformNativeElement(node, propsResult, staticKey, singleRoot, contex
|
|
|
27689
27682
|
};
|
|
27690
27683
|
for (const prop of propsResult[1]) {
|
|
27691
27684
|
const { key, values } = prop;
|
|
27685
|
+
let foldedValue;
|
|
27692
27686
|
if (context.imports.some((imported) => values[0].content.includes(imported.exp.content))) {
|
|
27693
27687
|
if (!prevWasQuoted) template += ` `;
|
|
27694
27688
|
template += `${key.content}="${IMPORT_EXP_START}${values[0].content}${IMPORT_EXP_END}"`;
|
|
27695
27689
|
prevWasQuoted = true;
|
|
27696
|
-
} else if (key.isStatic && !prop.modifier && isBooleanAttr(key.content)) if (values.length === 1 && (values[0].isStatic || values[0].content === "''") && !dynamicKeys.includes(key.content)) {
|
|
27697
|
-
const value = values[0].content === "''" ? "" : values[0].content;
|
|
27698
|
-
appendTemplateProp(key.content, value);
|
|
27699
|
-
} else {
|
|
27700
|
-
const include = foldBooleanAttrValue(values);
|
|
27701
|
-
if (include != null) {
|
|
27702
|
-
if (include) appendTemplateProp(key.content);
|
|
27703
|
-
} else {
|
|
27704
|
-
dynamicProps.push(key.content);
|
|
27705
|
-
context.registerEffect(values, {
|
|
27706
|
-
type: 3,
|
|
27707
|
-
element: context.reference(),
|
|
27708
|
-
prop,
|
|
27709
|
-
tag
|
|
27710
|
-
}, getEffectIndex);
|
|
27711
|
-
}
|
|
27712
|
-
}
|
|
27713
|
-
else if (key.isStatic && !prop.modifier && hasBoundValue(values)) {
|
|
27714
|
-
let foldedValue;
|
|
27715
|
-
if (key.content === "class") foldedValue = foldClassValues(values);
|
|
27716
|
-
else if (key.content === "style") foldedValue = foldStyleValues(values);
|
|
27717
|
-
if (foldedValue != null) {
|
|
27718
|
-
if (foldedValue) appendTemplateProp(key.content, foldedValue, true);
|
|
27719
|
-
} else {
|
|
27720
|
-
dynamicProps.push(key.content);
|
|
27721
|
-
context.registerEffect(values, {
|
|
27722
|
-
type: 3,
|
|
27723
|
-
element: context.reference(),
|
|
27724
|
-
prop,
|
|
27725
|
-
tag
|
|
27726
|
-
}, getEffectIndex);
|
|
27727
|
-
}
|
|
27728
27690
|
} else if (key.isStatic && values.length === 1 && (values[0].isStatic || values[0].content === "''") && !dynamicKeys.includes(key.content)) {
|
|
27729
27691
|
const value = values[0].content === "''" ? "" : values[0].content;
|
|
27730
27692
|
appendTemplateProp(key.content, value);
|
|
27731
|
-
} else {
|
|
27732
|
-
|
|
27733
|
-
|
|
27734
|
-
|
|
27735
|
-
|
|
27736
|
-
|
|
27737
|
-
|
|
27738
|
-
|
|
27739
|
-
|
|
27693
|
+
} else if (key.isStatic && !prop.modifier && isBooleanAttr(key.content) && (foldedValue = foldBooleanAttrValue(values)) != null) {
|
|
27694
|
+
if (foldedValue) appendTemplateProp(key.content);
|
|
27695
|
+
} else if (key.isStatic && !prop.modifier && hasBoundValue(values) && (foldedValue = key.content === "class" ? foldClassValues(values) : key.content === "style" ? foldStyleValues(values) : void 0) != null) {
|
|
27696
|
+
if (foldedValue) appendTemplateProp(key.content, foldedValue, true);
|
|
27697
|
+
} else context.registerEffect(values, {
|
|
27698
|
+
type: 3,
|
|
27699
|
+
element: context.reference(),
|
|
27700
|
+
prop,
|
|
27701
|
+
tag
|
|
27702
|
+
}, getEffectIndex);
|
|
27740
27703
|
}
|
|
27741
27704
|
}
|
|
27742
27705
|
template += `>` + context.childrenTemplate.join("");
|
|
@@ -28465,12 +28428,10 @@ const transformVOn = (dir, node, context) => {
|
|
|
28465
28428
|
const { keyModifiers, nonKeyModifiers, eventOptionModifiers } = resolveModifiers(arg.isStatic ? `on${arg.content}` : arg, modifiers, null, loc);
|
|
28466
28429
|
let keyOverride;
|
|
28467
28430
|
const isStaticClick = arg.isStatic && arg.content.toLowerCase() === "click";
|
|
28468
|
-
if (nonKeyModifiers.includes("middle")) {
|
|
28469
|
-
if (keyOverride) {}
|
|
28470
|
-
if (!isStaticClick && !arg.isStatic) keyOverride = ["click", "mouseup"];
|
|
28471
|
-
}
|
|
28472
28431
|
if (nonKeyModifiers.includes("right")) {
|
|
28473
28432
|
if (!isStaticClick && !arg.isStatic) keyOverride = ["click", "contextmenu"];
|
|
28433
|
+
} else if (nonKeyModifiers.includes("middle")) {
|
|
28434
|
+
if (!isStaticClick && !arg.isStatic) keyOverride = ["click", "mouseup"];
|
|
28474
28435
|
}
|
|
28475
28436
|
arg = normalizeStaticEventArg(arg, nonKeyModifiers);
|
|
28476
28437
|
if (keyModifiers.length && isStaticExp(arg) && !isKeyboardEvent(`on${arg.content.toLowerCase()}`)) keyModifiers.length = 0;
|
|
@@ -28484,7 +28445,7 @@ const transformVOn = (dir, node, context) => {
|
|
|
28484
28445
|
options: eventOptionModifiers
|
|
28485
28446
|
}
|
|
28486
28447
|
};
|
|
28487
|
-
const delegate = arg.isStatic && !eventOptionModifiers.length && !hasStopHandlerForStaticEvent(node, arg.content) && delegatedEvents(arg.content);
|
|
28448
|
+
const delegate = context.options.eventDelegation && arg.isStatic && !eventOptionModifiers.length && !hasStopHandlerForStaticEvent(node, arg.content) && delegatedEvents(arg.content);
|
|
28488
28449
|
const operation = {
|
|
28489
28450
|
type: 6,
|
|
28490
28451
|
element: context.reference(),
|
|
@@ -28505,8 +28466,8 @@ function normalizeStaticEventArg(arg, nonKeyModifiers) {
|
|
|
28505
28466
|
if (!arg.isStatic) return arg;
|
|
28506
28467
|
let normalized = arg;
|
|
28507
28468
|
const isStaticClick = arg.content.toLowerCase() === "click";
|
|
28508
|
-
if (nonKeyModifiers.includes("middle") && isStaticClick) normalized = extend({}, normalized, { content: "mouseup" });
|
|
28509
28469
|
if (nonKeyModifiers.includes("right") && isStaticClick) normalized = extend({}, normalized, { content: "contextmenu" });
|
|
28470
|
+
else if (nonKeyModifiers.includes("middle") && isStaticClick) normalized = extend({}, normalized, { content: "mouseup" });
|
|
28510
28471
|
return normalized;
|
|
28511
28472
|
}
|
|
28512
28473
|
function hasStopHandlerForStaticEvent(node, eventName) {
|
|
@@ -28707,11 +28668,14 @@ function processIf(node, dir, context) {
|
|
|
28707
28668
|
}
|
|
28708
28669
|
while (lastIfNode.negative && lastIfNode.negative.type === 15) lastIfNode = lastIfNode.negative;
|
|
28709
28670
|
if (dir.name === "else-if" && lastIfNode.negative) context.options.onError(createCompilerError(30, node.loc));
|
|
28710
|
-
|
|
28711
|
-
|
|
28712
|
-
|
|
28671
|
+
const comments = context.comment;
|
|
28672
|
+
if (comments.length) {
|
|
28673
|
+
if (!isInTransition(context)) {
|
|
28674
|
+
node = wrapTemplate(node, ["else-if", "else"]);
|
|
28675
|
+
context.node = node = extend({}, node, { children: [...comments, ...node.children] });
|
|
28676
|
+
}
|
|
28677
|
+
comments.length = 0;
|
|
28713
28678
|
}
|
|
28714
|
-
context.root.comment = [];
|
|
28715
28679
|
const [branch, onExit] = createIfBranch(node, context);
|
|
28716
28680
|
if (dir.name === "else") lastIfNode.negative = branch;
|
|
28717
28681
|
else lastIfNode.negative = {
|
|
@@ -33490,7 +33454,7 @@ const trimPlugin = () => {
|
|
|
33490
33454
|
};
|
|
33491
33455
|
trimPlugin.postcss = true;
|
|
33492
33456
|
//#endregion
|
|
33493
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33457
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/unesc.js
|
|
33494
33458
|
var require_unesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33495
33459
|
exports.__esModule = true;
|
|
33496
33460
|
exports["default"] = unesc;
|
|
@@ -33542,7 +33506,7 @@ var require_unesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
33542
33506
|
module.exports = exports.default;
|
|
33543
33507
|
}));
|
|
33544
33508
|
//#endregion
|
|
33545
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33509
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/getProp.js
|
|
33546
33510
|
var require_getProp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33547
33511
|
exports.__esModule = true;
|
|
33548
33512
|
exports["default"] = getProp;
|
|
@@ -33558,7 +33522,7 @@ var require_getProp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
33558
33522
|
module.exports = exports.default;
|
|
33559
33523
|
}));
|
|
33560
33524
|
//#endregion
|
|
33561
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33525
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/ensureObject.js
|
|
33562
33526
|
var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33563
33527
|
exports.__esModule = true;
|
|
33564
33528
|
exports["default"] = ensureObject;
|
|
@@ -33573,7 +33537,7 @@ var require_ensureObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
33573
33537
|
module.exports = exports.default;
|
|
33574
33538
|
}));
|
|
33575
33539
|
//#endregion
|
|
33576
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33540
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/stripComments.js
|
|
33577
33541
|
var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33578
33542
|
exports.__esModule = true;
|
|
33579
33543
|
exports["default"] = stripComments;
|
|
@@ -33594,38 +33558,93 @@ var require_stripComments = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
33594
33558
|
module.exports = exports.default;
|
|
33595
33559
|
}));
|
|
33596
33560
|
//#endregion
|
|
33597
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33561
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/maxNestingDepth.js
|
|
33562
|
+
var require_maxNestingDepth = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
33563
|
+
exports.__esModule = true;
|
|
33564
|
+
exports.MAX_NESTING_DEPTH = void 0;
|
|
33565
|
+
exports["default"] = resolveMaxNestingDepth;
|
|
33566
|
+
/**
|
|
33567
|
+
* The default maximum selector nesting depth allowed when parsing or
|
|
33568
|
+
* serializing a selector. Going beyond this would otherwise recurse deeply
|
|
33569
|
+
* enough to overflow the call stack (CVE-2026-9358 / CWE-674). Real-world
|
|
33570
|
+
* selectors never get anywhere near this, so it acts purely as a safety net
|
|
33571
|
+
* that turns an uncatchable stack overflow into a catchable error.
|
|
33572
|
+
*/
|
|
33573
|
+
var MAX_NESTING_DEPTH = exports.MAX_NESTING_DEPTH = 256;
|
|
33574
|
+
/**
|
|
33575
|
+
* Coerce a user-supplied nesting-depth limit into a safe value. Anything that
|
|
33576
|
+
* is not a non-negative safe integer (NaN, Infinity, negative numbers, or a
|
|
33577
|
+
* non-number) would disable or break the guard, so it falls back to the
|
|
33578
|
+
* default.
|
|
33579
|
+
*
|
|
33580
|
+
* @param {unknown} value the limit provided through the `maxNestingDepth` option
|
|
33581
|
+
* @returns {number} a safe, non-negative integer limit
|
|
33582
|
+
*/
|
|
33583
|
+
function resolveMaxNestingDepth(value) {
|
|
33584
|
+
return Number.isSafeInteger(value) && value >= 0 ? value : MAX_NESTING_DEPTH;
|
|
33585
|
+
}
|
|
33586
|
+
}));
|
|
33587
|
+
//#endregion
|
|
33588
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/index.js
|
|
33598
33589
|
var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
33599
33590
|
exports.__esModule = true;
|
|
33600
|
-
exports.unesc = exports.stripComments = exports.getProp = exports.ensureObject = void 0;
|
|
33591
|
+
exports.unesc = exports.stripComments = exports.resolveMaxNestingDepth = exports.getProp = exports.ensureObject = exports.MAX_NESTING_DEPTH = void 0;
|
|
33601
33592
|
exports.unesc = _interopRequireDefault(require_unesc())["default"];
|
|
33602
33593
|
exports.getProp = _interopRequireDefault(require_getProp())["default"];
|
|
33603
33594
|
exports.ensureObject = _interopRequireDefault(require_ensureObject())["default"];
|
|
33604
33595
|
exports.stripComments = _interopRequireDefault(require_stripComments())["default"];
|
|
33605
|
-
|
|
33606
|
-
|
|
33596
|
+
var _maxNestingDepth = _interopRequireWildcard(require_maxNestingDepth());
|
|
33597
|
+
exports.resolveMaxNestingDepth = _maxNestingDepth["default"];
|
|
33598
|
+
exports.MAX_NESTING_DEPTH = _maxNestingDepth.MAX_NESTING_DEPTH;
|
|
33599
|
+
function _interopRequireWildcard(e, t) {
|
|
33600
|
+
if ("function" == typeof WeakMap) var r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
33601
|
+
return (_interopRequireWildcard = function _interopRequireWildcard(e, t) {
|
|
33602
|
+
if (!t && e && e.__esModule) return e;
|
|
33603
|
+
var o, i, f = {
|
|
33604
|
+
__proto__: null,
|
|
33605
|
+
"default": e
|
|
33606
|
+
};
|
|
33607
|
+
if (null === e || "object" != typeof e && "function" != typeof e) return f;
|
|
33608
|
+
if (o = t ? n : r) {
|
|
33609
|
+
if (o.has(e)) return o.get(e);
|
|
33610
|
+
o.set(e, f);
|
|
33611
|
+
}
|
|
33612
|
+
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]);
|
|
33613
|
+
return f;
|
|
33614
|
+
})(e, t);
|
|
33615
|
+
}
|
|
33616
|
+
function _interopRequireDefault(e) {
|
|
33617
|
+
return e && e.__esModule ? e : { "default": e };
|
|
33607
33618
|
}
|
|
33608
33619
|
}));
|
|
33609
33620
|
//#endregion
|
|
33610
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33621
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/node.js
|
|
33611
33622
|
var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33612
33623
|
exports.__esModule = true;
|
|
33613
33624
|
exports["default"] = void 0;
|
|
33614
33625
|
var _util = require_util$1();
|
|
33615
|
-
function _defineProperties(
|
|
33616
|
-
for (var
|
|
33617
|
-
var
|
|
33618
|
-
|
|
33619
|
-
descriptor.configurable = true;
|
|
33620
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33621
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
33626
|
+
function _defineProperties(e, r) {
|
|
33627
|
+
for (var t = 0; t < r.length; t++) {
|
|
33628
|
+
var o = r[t];
|
|
33629
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
33622
33630
|
}
|
|
33623
33631
|
}
|
|
33624
|
-
function _createClass(
|
|
33625
|
-
|
|
33626
|
-
|
|
33627
|
-
|
|
33628
|
-
|
|
33632
|
+
function _createClass(e, r, t) {
|
|
33633
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
33634
|
+
}
|
|
33635
|
+
function _toPropertyKey(t) {
|
|
33636
|
+
var i = _toPrimitive(t, "string");
|
|
33637
|
+
return "symbol" == typeof i ? i : i + "";
|
|
33638
|
+
}
|
|
33639
|
+
function _toPrimitive(t, r) {
|
|
33640
|
+
if ("object" != typeof t || !t) return t;
|
|
33641
|
+
var e = t[Symbol.toPrimitive];
|
|
33642
|
+
if (void 0 !== e) {
|
|
33643
|
+
var i = e.call(t, r || "default");
|
|
33644
|
+
if ("object" != typeof i) return i;
|
|
33645
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
33646
|
+
}
|
|
33647
|
+
return ("string" === r ? String : Number)(t);
|
|
33629
33648
|
}
|
|
33630
33649
|
var cloneNode = function cloneNode(obj, parent) {
|
|
33631
33650
|
if (typeof obj !== "object" || obj === null) return obj;
|
|
@@ -33714,6 +33733,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
33714
33733
|
this.rawSpaceAfter
|
|
33715
33734
|
].join("");
|
|
33716
33735
|
};
|
|
33736
|
+
_proto._stringify = function _stringify() {
|
|
33737
|
+
return this.toString();
|
|
33738
|
+
};
|
|
33717
33739
|
_createClass(Node, [{
|
|
33718
33740
|
key: "rawSpaceBefore",
|
|
33719
33741
|
get: function get() {
|
|
@@ -33742,7 +33764,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
33742
33764
|
module.exports = exports.default;
|
|
33743
33765
|
}));
|
|
33744
33766
|
//#endregion
|
|
33745
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33767
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/types.js
|
|
33746
33768
|
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
33747
33769
|
exports.__esModule = true;
|
|
33748
33770
|
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;
|
|
@@ -33760,94 +33782,90 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
33760
33782
|
exports.UNIVERSAL = "universal";
|
|
33761
33783
|
}));
|
|
33762
33784
|
//#endregion
|
|
33763
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
33785
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/container.js
|
|
33764
33786
|
var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
33765
33787
|
exports.__esModule = true;
|
|
33766
33788
|
exports["default"] = void 0;
|
|
33789
|
+
var _util = require_util$1();
|
|
33767
33790
|
var _node = _interopRequireDefault(require_node());
|
|
33768
33791
|
var types = _interopRequireWildcard(require_types());
|
|
33769
|
-
function
|
|
33770
|
-
if (typeof WeakMap
|
|
33771
|
-
|
|
33772
|
-
|
|
33773
|
-
|
|
33774
|
-
|
|
33775
|
-
|
|
33776
|
-
|
|
33777
|
-
|
|
33778
|
-
|
|
33779
|
-
|
|
33780
|
-
|
|
33781
|
-
|
|
33782
|
-
|
|
33783
|
-
|
|
33784
|
-
|
|
33785
|
-
|
|
33786
|
-
|
|
33787
|
-
|
|
33788
|
-
|
|
33789
|
-
|
|
33790
|
-
|
|
33791
|
-
return
|
|
33792
|
-
|
|
33793
|
-
|
|
33794
|
-
|
|
33795
|
-
}
|
|
33796
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
33797
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
33798
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
33799
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
33800
|
-
if (it) o = it;
|
|
33801
|
-
var i = 0;
|
|
33792
|
+
function _interopRequireWildcard(e, t) {
|
|
33793
|
+
if ("function" == typeof WeakMap) var r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
33794
|
+
return (_interopRequireWildcard = function _interopRequireWildcard(e, t) {
|
|
33795
|
+
if (!t && e && e.__esModule) return e;
|
|
33796
|
+
var o, i, f = {
|
|
33797
|
+
__proto__: null,
|
|
33798
|
+
"default": e
|
|
33799
|
+
};
|
|
33800
|
+
if (null === e || "object" != typeof e && "function" != typeof e) return f;
|
|
33801
|
+
if (o = t ? n : r) {
|
|
33802
|
+
if (o.has(e)) return o.get(e);
|
|
33803
|
+
o.set(e, f);
|
|
33804
|
+
}
|
|
33805
|
+
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]);
|
|
33806
|
+
return f;
|
|
33807
|
+
})(e, t);
|
|
33808
|
+
}
|
|
33809
|
+
function _interopRequireDefault(e) {
|
|
33810
|
+
return e && e.__esModule ? e : { "default": e };
|
|
33811
|
+
}
|
|
33812
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
33813
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
33814
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
33815
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
33816
|
+
t && (r = t);
|
|
33817
|
+
var o = 0;
|
|
33802
33818
|
return function() {
|
|
33803
|
-
|
|
33804
|
-
|
|
33805
|
-
|
|
33806
|
-
value: o[i++]
|
|
33819
|
+
return o >= r.length ? { done: !0 } : {
|
|
33820
|
+
done: !1,
|
|
33821
|
+
value: r[o++]
|
|
33807
33822
|
};
|
|
33808
33823
|
};
|
|
33809
33824
|
}
|
|
33810
33825
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
33811
33826
|
}
|
|
33812
|
-
function _unsupportedIterableToArray(
|
|
33813
|
-
if (
|
|
33814
|
-
|
|
33815
|
-
|
|
33816
|
-
|
|
33817
|
-
|
|
33818
|
-
|
|
33819
|
-
|
|
33820
|
-
|
|
33821
|
-
|
|
33822
|
-
|
|
33823
|
-
|
|
33824
|
-
|
|
33825
|
-
|
|
33826
|
-
|
|
33827
|
-
|
|
33828
|
-
|
|
33829
|
-
|
|
33830
|
-
|
|
33831
|
-
|
|
33832
|
-
|
|
33833
|
-
|
|
33834
|
-
|
|
33835
|
-
|
|
33836
|
-
|
|
33837
|
-
|
|
33838
|
-
return
|
|
33839
|
-
|
|
33840
|
-
|
|
33841
|
-
|
|
33842
|
-
|
|
33843
|
-
|
|
33844
|
-
|
|
33845
|
-
|
|
33846
|
-
|
|
33847
|
-
|
|
33848
|
-
|
|
33849
|
-
|
|
33850
|
-
|
|
33827
|
+
function _unsupportedIterableToArray(r, a) {
|
|
33828
|
+
if (r) {
|
|
33829
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
33830
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
33831
|
+
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;
|
|
33832
|
+
}
|
|
33833
|
+
}
|
|
33834
|
+
function _arrayLikeToArray(r, a) {
|
|
33835
|
+
(null == a || a > r.length) && (a = r.length);
|
|
33836
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
33837
|
+
return n;
|
|
33838
|
+
}
|
|
33839
|
+
function _defineProperties(e, r) {
|
|
33840
|
+
for (var t = 0; t < r.length; t++) {
|
|
33841
|
+
var o = r[t];
|
|
33842
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
33843
|
+
}
|
|
33844
|
+
}
|
|
33845
|
+
function _createClass(e, r, t) {
|
|
33846
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
33847
|
+
}
|
|
33848
|
+
function _toPropertyKey(t) {
|
|
33849
|
+
var i = _toPrimitive(t, "string");
|
|
33850
|
+
return "symbol" == typeof i ? i : i + "";
|
|
33851
|
+
}
|
|
33852
|
+
function _toPrimitive(t, r) {
|
|
33853
|
+
if ("object" != typeof t || !t) return t;
|
|
33854
|
+
var e = t[Symbol.toPrimitive];
|
|
33855
|
+
if (void 0 !== e) {
|
|
33856
|
+
var i = e.call(t, r || "default");
|
|
33857
|
+
if ("object" != typeof i) return i;
|
|
33858
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
33859
|
+
}
|
|
33860
|
+
return ("string" === r ? String : Number)(t);
|
|
33861
|
+
}
|
|
33862
|
+
function _inheritsLoose(t, o) {
|
|
33863
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
33864
|
+
}
|
|
33865
|
+
function _setPrototypeOf(t, e) {
|
|
33866
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
33867
|
+
return t.__proto__ = e, t;
|
|
33868
|
+
}, _setPrototypeOf(t, e);
|
|
33851
33869
|
}
|
|
33852
33870
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
33853
33871
|
_inheritsLoose(Container, _Node);
|
|
@@ -34035,21 +34053,21 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34035
34053
|
});
|
|
34036
34054
|
};
|
|
34037
34055
|
_proto.walkUniversals = function walkUniversals(callback) {
|
|
34038
|
-
var
|
|
34056
|
+
var _this0 = this;
|
|
34039
34057
|
return this.walk(function(selector) {
|
|
34040
|
-
if (selector.type === types.UNIVERSAL) return callback.call(
|
|
34058
|
+
if (selector.type === types.UNIVERSAL) return callback.call(_this0, selector);
|
|
34041
34059
|
});
|
|
34042
34060
|
};
|
|
34043
34061
|
_proto.split = function split(callback) {
|
|
34044
|
-
var
|
|
34062
|
+
var _this1 = this;
|
|
34045
34063
|
var current = [];
|
|
34046
34064
|
return this.reduce(function(memo, node, index) {
|
|
34047
|
-
var split = callback.call(
|
|
34065
|
+
var split = callback.call(_this1, node);
|
|
34048
34066
|
current.push(node);
|
|
34049
34067
|
if (split) {
|
|
34050
34068
|
memo.push(current);
|
|
34051
34069
|
current = [];
|
|
34052
|
-
} else if (index ===
|
|
34070
|
+
} else if (index === _this1.length - 1) memo.push(current);
|
|
34053
34071
|
return memo;
|
|
34054
34072
|
}, []);
|
|
34055
34073
|
};
|
|
@@ -34071,8 +34089,14 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34071
34089
|
_proto.sort = function sort(callback) {
|
|
34072
34090
|
return this.nodes.sort(callback);
|
|
34073
34091
|
};
|
|
34074
|
-
_proto.toString = function toString() {
|
|
34075
|
-
|
|
34092
|
+
_proto.toString = function toString(options) {
|
|
34093
|
+
if (options === void 0) options = {};
|
|
34094
|
+
return this._stringify(options, 0, (0, _util.resolveMaxNestingDepth)(options.maxNestingDepth));
|
|
34095
|
+
};
|
|
34096
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
34097
|
+
return this.map(function(child) {
|
|
34098
|
+
return child._stringify(options, depth, max);
|
|
34099
|
+
}).join("");
|
|
34076
34100
|
};
|
|
34077
34101
|
_createClass(Container, [
|
|
34078
34102
|
{
|
|
@@ -34099,41 +34123,45 @@ var require_container = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34099
34123
|
module.exports = exports.default;
|
|
34100
34124
|
}));
|
|
34101
34125
|
//#endregion
|
|
34102
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34126
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/root.js
|
|
34103
34127
|
var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34104
34128
|
exports.__esModule = true;
|
|
34105
34129
|
exports["default"] = void 0;
|
|
34106
34130
|
var _container = _interopRequireDefault(require_container());
|
|
34107
34131
|
var _types = require_types();
|
|
34108
|
-
function _interopRequireDefault(
|
|
34109
|
-
return
|
|
34110
|
-
}
|
|
34111
|
-
function _defineProperties(
|
|
34112
|
-
for (var
|
|
34113
|
-
var
|
|
34114
|
-
|
|
34115
|
-
|
|
34116
|
-
|
|
34117
|
-
|
|
34118
|
-
}
|
|
34119
|
-
}
|
|
34120
|
-
function
|
|
34121
|
-
|
|
34122
|
-
|
|
34123
|
-
|
|
34124
|
-
|
|
34125
|
-
|
|
34126
|
-
|
|
34127
|
-
|
|
34128
|
-
|
|
34129
|
-
|
|
34130
|
-
|
|
34131
|
-
|
|
34132
|
-
|
|
34133
|
-
|
|
34134
|
-
|
|
34135
|
-
|
|
34136
|
-
|
|
34132
|
+
function _interopRequireDefault(e) {
|
|
34133
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34134
|
+
}
|
|
34135
|
+
function _defineProperties(e, r) {
|
|
34136
|
+
for (var t = 0; t < r.length; t++) {
|
|
34137
|
+
var o = r[t];
|
|
34138
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
34139
|
+
}
|
|
34140
|
+
}
|
|
34141
|
+
function _createClass(e, r, t) {
|
|
34142
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
34143
|
+
}
|
|
34144
|
+
function _toPropertyKey(t) {
|
|
34145
|
+
var i = _toPrimitive(t, "string");
|
|
34146
|
+
return "symbol" == typeof i ? i : i + "";
|
|
34147
|
+
}
|
|
34148
|
+
function _toPrimitive(t, r) {
|
|
34149
|
+
if ("object" != typeof t || !t) return t;
|
|
34150
|
+
var e = t[Symbol.toPrimitive];
|
|
34151
|
+
if (void 0 !== e) {
|
|
34152
|
+
var i = e.call(t, r || "default");
|
|
34153
|
+
if ("object" != typeof i) return i;
|
|
34154
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
34155
|
+
}
|
|
34156
|
+
return ("string" === r ? String : Number)(t);
|
|
34157
|
+
}
|
|
34158
|
+
function _inheritsLoose(t, o) {
|
|
34159
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34160
|
+
}
|
|
34161
|
+
function _setPrototypeOf(t, e) {
|
|
34162
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34163
|
+
return t.__proto__ = e, t;
|
|
34164
|
+
}, _setPrototypeOf(t, e);
|
|
34137
34165
|
}
|
|
34138
34166
|
exports["default"] = /* @__PURE__ */ function(_Container) {
|
|
34139
34167
|
_inheritsLoose(Root, _Container);
|
|
@@ -34143,9 +34171,9 @@ var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34143
34171
|
return _this;
|
|
34144
34172
|
}
|
|
34145
34173
|
var _proto = Root.prototype;
|
|
34146
|
-
_proto.
|
|
34174
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
34147
34175
|
var str = this.reduce(function(memo, selector) {
|
|
34148
|
-
memo.push(
|
|
34176
|
+
memo.push(selector._stringify(options, depth, max));
|
|
34149
34177
|
return memo;
|
|
34150
34178
|
}, []).join(",");
|
|
34151
34179
|
return this.trailingComma ? str + "," : str;
|
|
@@ -34165,26 +34193,22 @@ var require_root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34165
34193
|
module.exports = exports.default;
|
|
34166
34194
|
}));
|
|
34167
34195
|
//#endregion
|
|
34168
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34196
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/selector.js
|
|
34169
34197
|
var require_selector = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34170
34198
|
exports.__esModule = true;
|
|
34171
34199
|
exports["default"] = void 0;
|
|
34172
34200
|
var _container = _interopRequireDefault(require_container());
|
|
34173
34201
|
var _types = require_types();
|
|
34174
|
-
function _interopRequireDefault(
|
|
34175
|
-
return
|
|
34176
|
-
}
|
|
34177
|
-
function _inheritsLoose(
|
|
34178
|
-
|
|
34179
|
-
|
|
34180
|
-
|
|
34181
|
-
|
|
34182
|
-
|
|
34183
|
-
|
|
34184
|
-
o.__proto__ = p;
|
|
34185
|
-
return o;
|
|
34186
|
-
};
|
|
34187
|
-
return _setPrototypeOf(o, p);
|
|
34202
|
+
function _interopRequireDefault(e) {
|
|
34203
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34204
|
+
}
|
|
34205
|
+
function _inheritsLoose(t, o) {
|
|
34206
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34207
|
+
}
|
|
34208
|
+
function _setPrototypeOf(t, e) {
|
|
34209
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34210
|
+
return t.__proto__ = e, t;
|
|
34211
|
+
}, _setPrototypeOf(t, e);
|
|
34188
34212
|
}
|
|
34189
34213
|
exports["default"] = /* @__PURE__ */ function(_Container) {
|
|
34190
34214
|
_inheritsLoose(Selector, _Container);
|
|
@@ -34259,7 +34283,7 @@ var require_cssesc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34259
34283
|
module.exports = cssesc;
|
|
34260
34284
|
}));
|
|
34261
34285
|
//#endregion
|
|
34262
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34286
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/className.js
|
|
34263
34287
|
var require_className = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34264
34288
|
exports.__esModule = true;
|
|
34265
34289
|
exports["default"] = void 0;
|
|
@@ -34267,35 +34291,39 @@ var require_className = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34267
34291
|
var _util = require_util$1();
|
|
34268
34292
|
var _node = _interopRequireDefault(require_node());
|
|
34269
34293
|
var _types = require_types();
|
|
34270
|
-
function _interopRequireDefault(
|
|
34271
|
-
return
|
|
34272
|
-
}
|
|
34273
|
-
function _defineProperties(
|
|
34274
|
-
for (var
|
|
34275
|
-
var
|
|
34276
|
-
|
|
34277
|
-
|
|
34278
|
-
|
|
34279
|
-
|
|
34280
|
-
}
|
|
34281
|
-
}
|
|
34282
|
-
function
|
|
34283
|
-
|
|
34284
|
-
|
|
34285
|
-
|
|
34286
|
-
|
|
34287
|
-
|
|
34288
|
-
|
|
34289
|
-
|
|
34290
|
-
|
|
34291
|
-
|
|
34292
|
-
|
|
34293
|
-
|
|
34294
|
-
|
|
34295
|
-
|
|
34296
|
-
|
|
34297
|
-
|
|
34298
|
-
|
|
34294
|
+
function _interopRequireDefault(e) {
|
|
34295
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34296
|
+
}
|
|
34297
|
+
function _defineProperties(e, r) {
|
|
34298
|
+
for (var t = 0; t < r.length; t++) {
|
|
34299
|
+
var o = r[t];
|
|
34300
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
34301
|
+
}
|
|
34302
|
+
}
|
|
34303
|
+
function _createClass(e, r, t) {
|
|
34304
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
34305
|
+
}
|
|
34306
|
+
function _toPropertyKey(t) {
|
|
34307
|
+
var i = _toPrimitive(t, "string");
|
|
34308
|
+
return "symbol" == typeof i ? i : i + "";
|
|
34309
|
+
}
|
|
34310
|
+
function _toPrimitive(t, r) {
|
|
34311
|
+
if ("object" != typeof t || !t) return t;
|
|
34312
|
+
var e = t[Symbol.toPrimitive];
|
|
34313
|
+
if (void 0 !== e) {
|
|
34314
|
+
var i = e.call(t, r || "default");
|
|
34315
|
+
if ("object" != typeof i) return i;
|
|
34316
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
34317
|
+
}
|
|
34318
|
+
return ("string" === r ? String : Number)(t);
|
|
34319
|
+
}
|
|
34320
|
+
function _inheritsLoose(t, o) {
|
|
34321
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34322
|
+
}
|
|
34323
|
+
function _setPrototypeOf(t, e) {
|
|
34324
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34325
|
+
return t.__proto__ = e, t;
|
|
34326
|
+
}, _setPrototypeOf(t, e);
|
|
34299
34327
|
}
|
|
34300
34328
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
34301
34329
|
_inheritsLoose(ClassName, _Node);
|
|
@@ -34330,26 +34358,22 @@ var require_className = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34330
34358
|
module.exports = exports.default;
|
|
34331
34359
|
}));
|
|
34332
34360
|
//#endregion
|
|
34333
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34361
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/comment.js
|
|
34334
34362
|
var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34335
34363
|
exports.__esModule = true;
|
|
34336
34364
|
exports["default"] = void 0;
|
|
34337
34365
|
var _node = _interopRequireDefault(require_node());
|
|
34338
34366
|
var _types = require_types();
|
|
34339
|
-
function _interopRequireDefault(
|
|
34340
|
-
return
|
|
34341
|
-
}
|
|
34342
|
-
function _inheritsLoose(
|
|
34343
|
-
|
|
34344
|
-
|
|
34345
|
-
|
|
34346
|
-
|
|
34347
|
-
|
|
34348
|
-
|
|
34349
|
-
o.__proto__ = p;
|
|
34350
|
-
return o;
|
|
34351
|
-
};
|
|
34352
|
-
return _setPrototypeOf(o, p);
|
|
34367
|
+
function _interopRequireDefault(e) {
|
|
34368
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34369
|
+
}
|
|
34370
|
+
function _inheritsLoose(t, o) {
|
|
34371
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34372
|
+
}
|
|
34373
|
+
function _setPrototypeOf(t, e) {
|
|
34374
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34375
|
+
return t.__proto__ = e, t;
|
|
34376
|
+
}, _setPrototypeOf(t, e);
|
|
34353
34377
|
}
|
|
34354
34378
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
34355
34379
|
_inheritsLoose(Comment, _Node);
|
|
@@ -34363,26 +34387,22 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34363
34387
|
module.exports = exports.default;
|
|
34364
34388
|
}));
|
|
34365
34389
|
//#endregion
|
|
34366
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34390
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/id.js
|
|
34367
34391
|
var require_id = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34368
34392
|
exports.__esModule = true;
|
|
34369
34393
|
exports["default"] = void 0;
|
|
34370
34394
|
var _node = _interopRequireDefault(require_node());
|
|
34371
34395
|
var _types = require_types();
|
|
34372
|
-
function _interopRequireDefault(
|
|
34373
|
-
return
|
|
34374
|
-
}
|
|
34375
|
-
function _inheritsLoose(
|
|
34376
|
-
|
|
34377
|
-
|
|
34378
|
-
|
|
34379
|
-
|
|
34380
|
-
|
|
34381
|
-
|
|
34382
|
-
o.__proto__ = p;
|
|
34383
|
-
return o;
|
|
34384
|
-
};
|
|
34385
|
-
return _setPrototypeOf(o, p);
|
|
34396
|
+
function _interopRequireDefault(e) {
|
|
34397
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34398
|
+
}
|
|
34399
|
+
function _inheritsLoose(t, o) {
|
|
34400
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34401
|
+
}
|
|
34402
|
+
function _setPrototypeOf(t, e) {
|
|
34403
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34404
|
+
return t.__proto__ = e, t;
|
|
34405
|
+
}, _setPrototypeOf(t, e);
|
|
34386
34406
|
}
|
|
34387
34407
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
34388
34408
|
_inheritsLoose(ID, _Node);
|
|
@@ -34400,42 +34420,46 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34400
34420
|
module.exports = exports.default;
|
|
34401
34421
|
}));
|
|
34402
34422
|
//#endregion
|
|
34403
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34423
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/namespace.js
|
|
34404
34424
|
var require_namespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34405
34425
|
exports.__esModule = true;
|
|
34406
34426
|
exports["default"] = void 0;
|
|
34407
34427
|
var _cssesc = _interopRequireDefault(require_cssesc());
|
|
34408
34428
|
var _util = require_util$1();
|
|
34409
34429
|
var _node = _interopRequireDefault(require_node());
|
|
34410
|
-
function _interopRequireDefault(
|
|
34411
|
-
return
|
|
34412
|
-
}
|
|
34413
|
-
function _defineProperties(
|
|
34414
|
-
for (var
|
|
34415
|
-
var
|
|
34416
|
-
|
|
34417
|
-
|
|
34418
|
-
|
|
34419
|
-
|
|
34420
|
-
}
|
|
34421
|
-
}
|
|
34422
|
-
function
|
|
34423
|
-
|
|
34424
|
-
|
|
34425
|
-
|
|
34426
|
-
|
|
34427
|
-
|
|
34428
|
-
|
|
34429
|
-
|
|
34430
|
-
|
|
34431
|
-
|
|
34432
|
-
|
|
34433
|
-
|
|
34434
|
-
|
|
34435
|
-
|
|
34436
|
-
|
|
34437
|
-
|
|
34438
|
-
|
|
34430
|
+
function _interopRequireDefault(e) {
|
|
34431
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34432
|
+
}
|
|
34433
|
+
function _defineProperties(e, r) {
|
|
34434
|
+
for (var t = 0; t < r.length; t++) {
|
|
34435
|
+
var o = r[t];
|
|
34436
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
34437
|
+
}
|
|
34438
|
+
}
|
|
34439
|
+
function _createClass(e, r, t) {
|
|
34440
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
34441
|
+
}
|
|
34442
|
+
function _toPropertyKey(t) {
|
|
34443
|
+
var i = _toPrimitive(t, "string");
|
|
34444
|
+
return "symbol" == typeof i ? i : i + "";
|
|
34445
|
+
}
|
|
34446
|
+
function _toPrimitive(t, r) {
|
|
34447
|
+
if ("object" != typeof t || !t) return t;
|
|
34448
|
+
var e = t[Symbol.toPrimitive];
|
|
34449
|
+
if (void 0 !== e) {
|
|
34450
|
+
var i = e.call(t, r || "default");
|
|
34451
|
+
if ("object" != typeof i) return i;
|
|
34452
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
34453
|
+
}
|
|
34454
|
+
return ("string" === r ? String : Number)(t);
|
|
34455
|
+
}
|
|
34456
|
+
function _inheritsLoose(t, o) {
|
|
34457
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34458
|
+
}
|
|
34459
|
+
function _setPrototypeOf(t, e) {
|
|
34460
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34461
|
+
return t.__proto__ = e, t;
|
|
34462
|
+
}, _setPrototypeOf(t, e);
|
|
34439
34463
|
}
|
|
34440
34464
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
34441
34465
|
_inheritsLoose(Namespace, _Node);
|
|
@@ -34495,26 +34519,22 @@ var require_namespace = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34495
34519
|
module.exports = exports.default;
|
|
34496
34520
|
}));
|
|
34497
34521
|
//#endregion
|
|
34498
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34522
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/tag.js
|
|
34499
34523
|
var require_tag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34500
34524
|
exports.__esModule = true;
|
|
34501
34525
|
exports["default"] = void 0;
|
|
34502
34526
|
var _namespace = _interopRequireDefault(require_namespace());
|
|
34503
34527
|
var _types = require_types();
|
|
34504
|
-
function _interopRequireDefault(
|
|
34505
|
-
return
|
|
34506
|
-
}
|
|
34507
|
-
function _inheritsLoose(
|
|
34508
|
-
|
|
34509
|
-
|
|
34510
|
-
|
|
34511
|
-
|
|
34512
|
-
|
|
34513
|
-
|
|
34514
|
-
o.__proto__ = p;
|
|
34515
|
-
return o;
|
|
34516
|
-
};
|
|
34517
|
-
return _setPrototypeOf(o, p);
|
|
34528
|
+
function _interopRequireDefault(e) {
|
|
34529
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34530
|
+
}
|
|
34531
|
+
function _inheritsLoose(t, o) {
|
|
34532
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34533
|
+
}
|
|
34534
|
+
function _setPrototypeOf(t, e) {
|
|
34535
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34536
|
+
return t.__proto__ = e, t;
|
|
34537
|
+
}, _setPrototypeOf(t, e);
|
|
34518
34538
|
}
|
|
34519
34539
|
exports["default"] = /* @__PURE__ */ function(_Namespace) {
|
|
34520
34540
|
_inheritsLoose(Tag, _Namespace);
|
|
@@ -34528,26 +34548,22 @@ var require_tag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34528
34548
|
module.exports = exports.default;
|
|
34529
34549
|
}));
|
|
34530
34550
|
//#endregion
|
|
34531
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34551
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/string.js
|
|
34532
34552
|
var require_string = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34533
34553
|
exports.__esModule = true;
|
|
34534
34554
|
exports["default"] = void 0;
|
|
34535
34555
|
var _node = _interopRequireDefault(require_node());
|
|
34536
34556
|
var _types = require_types();
|
|
34537
|
-
function _interopRequireDefault(
|
|
34538
|
-
return
|
|
34539
|
-
}
|
|
34540
|
-
function _inheritsLoose(
|
|
34541
|
-
|
|
34542
|
-
|
|
34543
|
-
|
|
34544
|
-
|
|
34545
|
-
|
|
34546
|
-
|
|
34547
|
-
o.__proto__ = p;
|
|
34548
|
-
return o;
|
|
34549
|
-
};
|
|
34550
|
-
return _setPrototypeOf(o, p);
|
|
34557
|
+
function _interopRequireDefault(e) {
|
|
34558
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34559
|
+
}
|
|
34560
|
+
function _inheritsLoose(t, o) {
|
|
34561
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34562
|
+
}
|
|
34563
|
+
function _setPrototypeOf(t, e) {
|
|
34564
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34565
|
+
return t.__proto__ = e, t;
|
|
34566
|
+
}, _setPrototypeOf(t, e);
|
|
34551
34567
|
}
|
|
34552
34568
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
34553
34569
|
_inheritsLoose(String, _Node);
|
|
@@ -34561,26 +34577,22 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34561
34577
|
module.exports = exports.default;
|
|
34562
34578
|
}));
|
|
34563
34579
|
//#endregion
|
|
34564
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34580
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/pseudo.js
|
|
34565
34581
|
var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34566
34582
|
exports.__esModule = true;
|
|
34567
34583
|
exports["default"] = void 0;
|
|
34568
34584
|
var _container = _interopRequireDefault(require_container());
|
|
34569
34585
|
var _types = require_types();
|
|
34570
|
-
function _interopRequireDefault(
|
|
34571
|
-
return
|
|
34572
|
-
}
|
|
34573
|
-
function _inheritsLoose(
|
|
34574
|
-
|
|
34575
|
-
|
|
34576
|
-
|
|
34577
|
-
|
|
34578
|
-
|
|
34579
|
-
|
|
34580
|
-
o.__proto__ = p;
|
|
34581
|
-
return o;
|
|
34582
|
-
};
|
|
34583
|
-
return _setPrototypeOf(o, p);
|
|
34586
|
+
function _interopRequireDefault(e) {
|
|
34587
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34588
|
+
}
|
|
34589
|
+
function _inheritsLoose(t, o) {
|
|
34590
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34591
|
+
}
|
|
34592
|
+
function _setPrototypeOf(t, e) {
|
|
34593
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34594
|
+
return t.__proto__ = e, t;
|
|
34595
|
+
}, _setPrototypeOf(t, e);
|
|
34584
34596
|
}
|
|
34585
34597
|
exports["default"] = /* @__PURE__ */ function(_Container) {
|
|
34586
34598
|
_inheritsLoose(Pseudo, _Container);
|
|
@@ -34590,8 +34602,11 @@ var require_pseudo = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34590
34602
|
return _this;
|
|
34591
34603
|
}
|
|
34592
34604
|
var _proto = Pseudo.prototype;
|
|
34593
|
-
_proto.
|
|
34594
|
-
|
|
34605
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
34606
|
+
if (depth >= max) throw new Error("Cannot serialize selector: nesting depth exceeds the maximum of " + max + ".");
|
|
34607
|
+
var params = this.length ? "(" + this.map(function(child) {
|
|
34608
|
+
return child._stringify(options, depth + 1, max);
|
|
34609
|
+
}).join(",") + ")" : "";
|
|
34595
34610
|
return [
|
|
34596
34611
|
this.rawSpaceBefore,
|
|
34597
34612
|
this.stringifyProperty("value"),
|
|
@@ -34661,7 +34676,7 @@ var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
34661
34676
|
}
|
|
34662
34677
|
}));
|
|
34663
34678
|
//#endregion
|
|
34664
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
34679
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/attribute.js
|
|
34665
34680
|
var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
34666
34681
|
exports.__esModule = true;
|
|
34667
34682
|
exports["default"] = void 0;
|
|
@@ -34671,35 +34686,39 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34671
34686
|
var _namespace = _interopRequireDefault(require_namespace());
|
|
34672
34687
|
var _types = require_types();
|
|
34673
34688
|
var _CSSESC_QUOTE_OPTIONS;
|
|
34674
|
-
function _interopRequireDefault(
|
|
34675
|
-
return
|
|
34676
|
-
}
|
|
34677
|
-
function _defineProperties(
|
|
34678
|
-
for (var
|
|
34679
|
-
var
|
|
34680
|
-
|
|
34681
|
-
|
|
34682
|
-
|
|
34683
|
-
|
|
34684
|
-
}
|
|
34685
|
-
}
|
|
34686
|
-
function
|
|
34687
|
-
|
|
34688
|
-
|
|
34689
|
-
|
|
34690
|
-
|
|
34691
|
-
|
|
34692
|
-
|
|
34693
|
-
|
|
34694
|
-
|
|
34695
|
-
|
|
34696
|
-
|
|
34697
|
-
|
|
34698
|
-
|
|
34699
|
-
|
|
34700
|
-
|
|
34701
|
-
|
|
34702
|
-
|
|
34689
|
+
function _interopRequireDefault(e) {
|
|
34690
|
+
return e && e.__esModule ? e : { "default": e };
|
|
34691
|
+
}
|
|
34692
|
+
function _defineProperties(e, r) {
|
|
34693
|
+
for (var t = 0; t < r.length; t++) {
|
|
34694
|
+
var o = r[t];
|
|
34695
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
34696
|
+
}
|
|
34697
|
+
}
|
|
34698
|
+
function _createClass(e, r, t) {
|
|
34699
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
34700
|
+
}
|
|
34701
|
+
function _toPropertyKey(t) {
|
|
34702
|
+
var i = _toPrimitive(t, "string");
|
|
34703
|
+
return "symbol" == typeof i ? i : i + "";
|
|
34704
|
+
}
|
|
34705
|
+
function _toPrimitive(t, r) {
|
|
34706
|
+
if ("object" != typeof t || !t) return t;
|
|
34707
|
+
var e = t[Symbol.toPrimitive];
|
|
34708
|
+
if (void 0 !== e) {
|
|
34709
|
+
var i = e.call(t, r || "default");
|
|
34710
|
+
if ("object" != typeof i) return i;
|
|
34711
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
34712
|
+
}
|
|
34713
|
+
return ("string" === r ? String : Number)(t);
|
|
34714
|
+
}
|
|
34715
|
+
function _inheritsLoose(t, o) {
|
|
34716
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
34717
|
+
}
|
|
34718
|
+
function _setPrototypeOf(t, e) {
|
|
34719
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
34720
|
+
return t.__proto__ = e, t;
|
|
34721
|
+
}, _setPrototypeOf(t, e);
|
|
34703
34722
|
}
|
|
34704
34723
|
var deprecate = require_browser();
|
|
34705
34724
|
var WRAPPED_IN_QUOTES = /^('|")([^]*)\1$/;
|
|
@@ -34734,7 +34753,7 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34734
34753
|
opts.quoteMark = quoteMark;
|
|
34735
34754
|
return opts;
|
|
34736
34755
|
}
|
|
34737
|
-
var Attribute = /* @__PURE__ */ function(_Namespace) {
|
|
34756
|
+
var Attribute = exports["default"] = /* @__PURE__ */ function(_Namespace) {
|
|
34738
34757
|
_inheritsLoose(Attribute, _Namespace);
|
|
34739
34758
|
function Attribute(opts) {
|
|
34740
34759
|
var _this;
|
|
@@ -34968,7 +34987,6 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34968
34987
|
]);
|
|
34969
34988
|
return Attribute;
|
|
34970
34989
|
}(_namespace["default"]);
|
|
34971
|
-
exports["default"] = Attribute;
|
|
34972
34990
|
Attribute.NO_QUOTE = null;
|
|
34973
34991
|
Attribute.SINGLE_QUOTE = "'";
|
|
34974
34992
|
Attribute.DOUBLE_QUOTE = "\"";
|
|
@@ -34987,26 +35005,22 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34987
35005
|
}
|
|
34988
35006
|
}));
|
|
34989
35007
|
//#endregion
|
|
34990
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35008
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/universal.js
|
|
34991
35009
|
var require_universal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
34992
35010
|
exports.__esModule = true;
|
|
34993
35011
|
exports["default"] = void 0;
|
|
34994
35012
|
var _namespace = _interopRequireDefault(require_namespace());
|
|
34995
35013
|
var _types = require_types();
|
|
34996
|
-
function _interopRequireDefault(
|
|
34997
|
-
return
|
|
34998
|
-
}
|
|
34999
|
-
function _inheritsLoose(
|
|
35000
|
-
|
|
35001
|
-
|
|
35002
|
-
|
|
35003
|
-
|
|
35004
|
-
|
|
35005
|
-
|
|
35006
|
-
o.__proto__ = p;
|
|
35007
|
-
return o;
|
|
35008
|
-
};
|
|
35009
|
-
return _setPrototypeOf(o, p);
|
|
35014
|
+
function _interopRequireDefault(e) {
|
|
35015
|
+
return e && e.__esModule ? e : { "default": e };
|
|
35016
|
+
}
|
|
35017
|
+
function _inheritsLoose(t, o) {
|
|
35018
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
35019
|
+
}
|
|
35020
|
+
function _setPrototypeOf(t, e) {
|
|
35021
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
35022
|
+
return t.__proto__ = e, t;
|
|
35023
|
+
}, _setPrototypeOf(t, e);
|
|
35010
35024
|
}
|
|
35011
35025
|
exports["default"] = /* @__PURE__ */ function(_Namespace) {
|
|
35012
35026
|
_inheritsLoose(Universal, _Namespace);
|
|
@@ -35021,26 +35035,22 @@ var require_universal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
35021
35035
|
module.exports = exports.default;
|
|
35022
35036
|
}));
|
|
35023
35037
|
//#endregion
|
|
35024
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35038
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/combinator.js
|
|
35025
35039
|
var require_combinator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35026
35040
|
exports.__esModule = true;
|
|
35027
35041
|
exports["default"] = void 0;
|
|
35028
35042
|
var _node = _interopRequireDefault(require_node());
|
|
35029
35043
|
var _types = require_types();
|
|
35030
|
-
function _interopRequireDefault(
|
|
35031
|
-
return
|
|
35032
|
-
}
|
|
35033
|
-
function _inheritsLoose(
|
|
35034
|
-
|
|
35035
|
-
|
|
35036
|
-
|
|
35037
|
-
|
|
35038
|
-
|
|
35039
|
-
|
|
35040
|
-
o.__proto__ = p;
|
|
35041
|
-
return o;
|
|
35042
|
-
};
|
|
35043
|
-
return _setPrototypeOf(o, p);
|
|
35044
|
+
function _interopRequireDefault(e) {
|
|
35045
|
+
return e && e.__esModule ? e : { "default": e };
|
|
35046
|
+
}
|
|
35047
|
+
function _inheritsLoose(t, o) {
|
|
35048
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
35049
|
+
}
|
|
35050
|
+
function _setPrototypeOf(t, e) {
|
|
35051
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
35052
|
+
return t.__proto__ = e, t;
|
|
35053
|
+
}, _setPrototypeOf(t, e);
|
|
35044
35054
|
}
|
|
35045
35055
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
35046
35056
|
_inheritsLoose(Combinator, _Node);
|
|
@@ -35054,26 +35064,22 @@ var require_combinator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
35054
35064
|
module.exports = exports.default;
|
|
35055
35065
|
}));
|
|
35056
35066
|
//#endregion
|
|
35057
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35067
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/nesting.js
|
|
35058
35068
|
var require_nesting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35059
35069
|
exports.__esModule = true;
|
|
35060
35070
|
exports["default"] = void 0;
|
|
35061
35071
|
var _node = _interopRequireDefault(require_node());
|
|
35062
35072
|
var _types = require_types();
|
|
35063
|
-
function _interopRequireDefault(
|
|
35064
|
-
return
|
|
35065
|
-
}
|
|
35066
|
-
function _inheritsLoose(
|
|
35067
|
-
|
|
35068
|
-
|
|
35069
|
-
|
|
35070
|
-
|
|
35071
|
-
|
|
35072
|
-
|
|
35073
|
-
o.__proto__ = p;
|
|
35074
|
-
return o;
|
|
35075
|
-
};
|
|
35076
|
-
return _setPrototypeOf(o, p);
|
|
35073
|
+
function _interopRequireDefault(e) {
|
|
35074
|
+
return e && e.__esModule ? e : { "default": e };
|
|
35075
|
+
}
|
|
35076
|
+
function _inheritsLoose(t, o) {
|
|
35077
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
35078
|
+
}
|
|
35079
|
+
function _setPrototypeOf(t, e) {
|
|
35080
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
|
|
35081
|
+
return t.__proto__ = e, t;
|
|
35082
|
+
}, _setPrototypeOf(t, e);
|
|
35077
35083
|
}
|
|
35078
35084
|
exports["default"] = /* @__PURE__ */ function(_Node) {
|
|
35079
35085
|
_inheritsLoose(Nesting, _Node);
|
|
@@ -35088,7 +35094,7 @@ var require_nesting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
35088
35094
|
module.exports = exports.default;
|
|
35089
35095
|
}));
|
|
35090
35096
|
//#endregion
|
|
35091
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35097
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/sortAscending.js
|
|
35092
35098
|
var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35093
35099
|
exports.__esModule = true;
|
|
35094
35100
|
exports["default"] = sortAscending;
|
|
@@ -35100,7 +35106,7 @@ var require_sortAscending = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
35100
35106
|
module.exports = exports.default;
|
|
35101
35107
|
}));
|
|
35102
35108
|
//#endregion
|
|
35103
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35109
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/tokenTypes.js
|
|
35104
35110
|
var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
35105
35111
|
exports.__esModule = true;
|
|
35106
35112
|
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;
|
|
@@ -35122,8 +35128,7 @@ var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35122
35128
|
exports.pipe = 124;
|
|
35123
35129
|
exports.greaterThan = 62;
|
|
35124
35130
|
exports.space = 32;
|
|
35125
|
-
var singleQuote = 39;
|
|
35126
|
-
exports.singleQuote = singleQuote;
|
|
35131
|
+
var singleQuote = exports.singleQuote = 39;
|
|
35127
35132
|
exports.doubleQuote = 34;
|
|
35128
35133
|
exports.slash = 47;
|
|
35129
35134
|
exports.bang = 33;
|
|
@@ -35138,36 +35143,29 @@ var require_tokenTypes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35138
35143
|
exports.combinator = -3;
|
|
35139
35144
|
}));
|
|
35140
35145
|
//#endregion
|
|
35141
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35146
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/tokenize.js
|
|
35142
35147
|
var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
35143
35148
|
exports.__esModule = true;
|
|
35144
35149
|
exports.FIELDS = void 0;
|
|
35145
35150
|
exports["default"] = tokenize;
|
|
35146
35151
|
var t = _interopRequireWildcard(require_tokenTypes());
|
|
35147
35152
|
var _unescapable, _wordDelimiters;
|
|
35148
|
-
function
|
|
35149
|
-
if (typeof WeakMap
|
|
35150
|
-
|
|
35151
|
-
|
|
35152
|
-
|
|
35153
|
-
|
|
35154
|
-
|
|
35155
|
-
|
|
35156
|
-
|
|
35157
|
-
|
|
35158
|
-
|
|
35159
|
-
|
|
35160
|
-
|
|
35161
|
-
|
|
35162
|
-
|
|
35163
|
-
|
|
35164
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
35165
|
-
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
|
|
35166
|
-
else newObj[key] = obj[key];
|
|
35167
|
-
}
|
|
35168
|
-
newObj["default"] = obj;
|
|
35169
|
-
if (cache) cache.set(obj, newObj);
|
|
35170
|
-
return newObj;
|
|
35153
|
+
function _interopRequireWildcard(e, t) {
|
|
35154
|
+
if ("function" == typeof WeakMap) var r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
35155
|
+
return (_interopRequireWildcard = function _interopRequireWildcard(e, t) {
|
|
35156
|
+
if (!t && e && e.__esModule) return e;
|
|
35157
|
+
var o, i, f = {
|
|
35158
|
+
__proto__: null,
|
|
35159
|
+
"default": e
|
|
35160
|
+
};
|
|
35161
|
+
if (null === e || "object" != typeof e && "function" != typeof e) return f;
|
|
35162
|
+
if (o = t ? n : r) {
|
|
35163
|
+
if (o.has(e)) return o.get(e);
|
|
35164
|
+
o.set(e, f);
|
|
35165
|
+
}
|
|
35166
|
+
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]);
|
|
35167
|
+
return f;
|
|
35168
|
+
})(e, t);
|
|
35171
35169
|
}
|
|
35172
35170
|
var unescapable = (_unescapable = {}, _unescapable[t.tab] = true, _unescapable[t.newline] = true, _unescapable[t.cr] = true, _unescapable[t.feed] = true, _unescapable);
|
|
35173
35171
|
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);
|
|
@@ -35363,7 +35361,7 @@ var require_tokenize = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35363
35361
|
}
|
|
35364
35362
|
}));
|
|
35365
35363
|
//#endregion
|
|
35366
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
35364
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/parser.js
|
|
35367
35365
|
var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35368
35366
|
exports.__esModule = true;
|
|
35369
35367
|
exports["default"] = void 0;
|
|
@@ -35385,47 +35383,48 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
35385
35383
|
var types = _interopRequireWildcard(require_types());
|
|
35386
35384
|
var _util = require_util$1();
|
|
35387
35385
|
var _WHITESPACE_TOKENS, _Object$assign;
|
|
35388
|
-
function
|
|
35389
|
-
if (typeof WeakMap
|
|
35390
|
-
|
|
35391
|
-
|
|
35392
|
-
|
|
35393
|
-
|
|
35394
|
-
|
|
35395
|
-
|
|
35396
|
-
|
|
35397
|
-
|
|
35398
|
-
|
|
35399
|
-
|
|
35400
|
-
|
|
35401
|
-
|
|
35402
|
-
|
|
35403
|
-
|
|
35404
|
-
|
|
35405
|
-
|
|
35406
|
-
|
|
35407
|
-
|
|
35408
|
-
|
|
35409
|
-
|
|
35410
|
-
|
|
35411
|
-
|
|
35412
|
-
|
|
35413
|
-
|
|
35414
|
-
|
|
35415
|
-
|
|
35416
|
-
|
|
35417
|
-
|
|
35418
|
-
|
|
35419
|
-
|
|
35420
|
-
|
|
35421
|
-
|
|
35422
|
-
|
|
35423
|
-
|
|
35424
|
-
|
|
35425
|
-
|
|
35426
|
-
|
|
35427
|
-
|
|
35428
|
-
|
|
35386
|
+
function _interopRequireWildcard(e, t) {
|
|
35387
|
+
if ("function" == typeof WeakMap) var r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
35388
|
+
return (_interopRequireWildcard = function _interopRequireWildcard(e, t) {
|
|
35389
|
+
if (!t && e && e.__esModule) return e;
|
|
35390
|
+
var o, i, f = {
|
|
35391
|
+
__proto__: null,
|
|
35392
|
+
"default": e
|
|
35393
|
+
};
|
|
35394
|
+
if (null === e || "object" != typeof e && "function" != typeof e) return f;
|
|
35395
|
+
if (o = t ? n : r) {
|
|
35396
|
+
if (o.has(e)) return o.get(e);
|
|
35397
|
+
o.set(e, f);
|
|
35398
|
+
}
|
|
35399
|
+
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]);
|
|
35400
|
+
return f;
|
|
35401
|
+
})(e, t);
|
|
35402
|
+
}
|
|
35403
|
+
function _interopRequireDefault(e) {
|
|
35404
|
+
return e && e.__esModule ? e : { "default": e };
|
|
35405
|
+
}
|
|
35406
|
+
function _defineProperties(e, r) {
|
|
35407
|
+
for (var t = 0; t < r.length; t++) {
|
|
35408
|
+
var o = r[t];
|
|
35409
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
35410
|
+
}
|
|
35411
|
+
}
|
|
35412
|
+
function _createClass(e, r, t) {
|
|
35413
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
35414
|
+
}
|
|
35415
|
+
function _toPropertyKey(t) {
|
|
35416
|
+
var i = _toPrimitive(t, "string");
|
|
35417
|
+
return "symbol" == typeof i ? i : i + "";
|
|
35418
|
+
}
|
|
35419
|
+
function _toPrimitive(t, r) {
|
|
35420
|
+
if ("object" != typeof t || !t) return t;
|
|
35421
|
+
var e = t[Symbol.toPrimitive];
|
|
35422
|
+
if (void 0 !== e) {
|
|
35423
|
+
var i = e.call(t, r || "default");
|
|
35424
|
+
if ("object" != typeof i) return i;
|
|
35425
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
35426
|
+
}
|
|
35427
|
+
return ("string" === r ? String : Number)(t);
|
|
35429
35428
|
}
|
|
35430
35429
|
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);
|
|
35431
35430
|
var WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign));
|
|
@@ -35491,6 +35490,8 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
35491
35490
|
safe: false
|
|
35492
35491
|
}, options);
|
|
35493
35492
|
this.position = 0;
|
|
35493
|
+
this.nestingDepth = 0;
|
|
35494
|
+
this.maxNestingDepth = (0, _util.resolveMaxNestingDepth)(this.options.maxNestingDepth);
|
|
35494
35495
|
this.css = typeof this.rule === "string" ? this.rule : this.rule.selector;
|
|
35495
35496
|
this.tokens = (0, _tokenize["default"])({
|
|
35496
35497
|
css: this.css,
|
|
@@ -35925,15 +35926,21 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
35925
35926
|
var cache = this.current;
|
|
35926
35927
|
last.append(selector);
|
|
35927
35928
|
this.current = selector;
|
|
35928
|
-
|
|
35929
|
-
|
|
35930
|
-
if (this.currToken[_tokenize.FIELDS.
|
|
35931
|
-
|
|
35932
|
-
|
|
35933
|
-
this.
|
|
35934
|
-
|
|
35935
|
-
|
|
35929
|
+
this.nestingDepth++;
|
|
35930
|
+
try {
|
|
35931
|
+
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] });
|
|
35932
|
+
while (this.position < this.tokens.length && unbalanced) {
|
|
35933
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) unbalanced++;
|
|
35934
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) unbalanced--;
|
|
35935
|
+
if (unbalanced) this.parse();
|
|
35936
|
+
else {
|
|
35937
|
+
this.current.source.end = tokenEnd(this.currToken);
|
|
35938
|
+
this.current.parent.source.end = tokenEnd(this.currToken);
|
|
35939
|
+
this.position++;
|
|
35940
|
+
}
|
|
35936
35941
|
}
|
|
35942
|
+
} finally {
|
|
35943
|
+
this.nestingDepth--;
|
|
35937
35944
|
}
|
|
35938
35945
|
this.current = cache;
|
|
35939
35946
|
} else {
|
|
@@ -36223,13 +36230,13 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
36223
36230
|
module.exports = exports.default;
|
|
36224
36231
|
}));
|
|
36225
36232
|
//#endregion
|
|
36226
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
36233
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/processor.js
|
|
36227
36234
|
var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
36228
36235
|
exports.__esModule = true;
|
|
36229
36236
|
exports["default"] = void 0;
|
|
36230
36237
|
var _parser = _interopRequireDefault(require_parser());
|
|
36231
|
-
function _interopRequireDefault(
|
|
36232
|
-
return
|
|
36238
|
+
function _interopRequireDefault(e) {
|
|
36239
|
+
return e && e.__esModule ? e : { "default": e };
|
|
36233
36240
|
}
|
|
36234
36241
|
exports["default"] = /* @__PURE__ */ function() {
|
|
36235
36242
|
function Processor(func, options) {
|
|
@@ -36253,7 +36260,14 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
36253
36260
|
return new _parser["default"](rule, this._parseOptions(options)).root;
|
|
36254
36261
|
};
|
|
36255
36262
|
_proto._parseOptions = function _parseOptions(options) {
|
|
36256
|
-
|
|
36263
|
+
var merged = Object.assign({}, this.options, options);
|
|
36264
|
+
return {
|
|
36265
|
+
lossy: this._isLossy(merged),
|
|
36266
|
+
maxNestingDepth: merged.maxNestingDepth
|
|
36267
|
+
};
|
|
36268
|
+
};
|
|
36269
|
+
_proto._stringifyOptions = function _stringifyOptions(options) {
|
|
36270
|
+
return { maxNestingDepth: Object.assign({}, this.options, options).maxNestingDepth };
|
|
36257
36271
|
};
|
|
36258
36272
|
_proto._run = function _run(rule, options) {
|
|
36259
36273
|
var _this = this;
|
|
@@ -36264,7 +36278,7 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
36264
36278
|
Promise.resolve(_this.func(root)).then(function(transform) {
|
|
36265
36279
|
var string = void 0;
|
|
36266
36280
|
if (_this._shouldUpdateSelector(rule, options)) {
|
|
36267
|
-
string = root.toString();
|
|
36281
|
+
string = root.toString(_this._stringifyOptions(options));
|
|
36268
36282
|
rule.selector = string;
|
|
36269
36283
|
}
|
|
36270
36284
|
return {
|
|
@@ -36286,7 +36300,7 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
36286
36300
|
if (transform && typeof transform.then === "function") throw new Error("Selector processor returned a promise to a synchronous call.");
|
|
36287
36301
|
var string = void 0;
|
|
36288
36302
|
if (options.updateSelector && typeof rule !== "string") {
|
|
36289
|
-
string = root.toString();
|
|
36303
|
+
string = root.toString(this._stringifyOptions(options));
|
|
36290
36304
|
rule.selector = string;
|
|
36291
36305
|
}
|
|
36292
36306
|
return {
|
|
@@ -36312,20 +36326,21 @@ var require_processor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
36312
36326
|
return this._runSync(rule, options).transform;
|
|
36313
36327
|
};
|
|
36314
36328
|
_proto.process = function process(rule, options) {
|
|
36329
|
+
var _this2 = this;
|
|
36315
36330
|
return this._run(rule, options).then(function(result) {
|
|
36316
|
-
return result.string || result.root.toString();
|
|
36331
|
+
return result.string || result.root.toString(_this2._stringifyOptions(options));
|
|
36317
36332
|
});
|
|
36318
36333
|
};
|
|
36319
36334
|
_proto.processSync = function processSync(rule, options) {
|
|
36320
36335
|
var result = this._runSync(rule, options);
|
|
36321
|
-
return result.string || result.root.toString();
|
|
36336
|
+
return result.string || result.root.toString(this._stringifyOptions(options));
|
|
36322
36337
|
};
|
|
36323
36338
|
return Processor;
|
|
36324
36339
|
}();
|
|
36325
36340
|
module.exports = exports.default;
|
|
36326
36341
|
}));
|
|
36327
36342
|
//#endregion
|
|
36328
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
36343
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/constructors.js
|
|
36329
36344
|
var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
36330
36345
|
exports.__esModule = true;
|
|
36331
36346
|
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;
|
|
@@ -36341,8 +36356,8 @@ var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
36341
36356
|
var _string = _interopRequireDefault(require_string());
|
|
36342
36357
|
var _tag = _interopRequireDefault(require_tag());
|
|
36343
36358
|
var _universal = _interopRequireDefault(require_universal());
|
|
36344
|
-
function _interopRequireDefault(
|
|
36345
|
-
return
|
|
36359
|
+
function _interopRequireDefault(e) {
|
|
36360
|
+
return e && e.__esModule ? e : { "default": e };
|
|
36346
36361
|
}
|
|
36347
36362
|
exports.attribute = function attribute(opts) {
|
|
36348
36363
|
return new _attribute["default"](opts);
|
|
@@ -36382,7 +36397,7 @@ var require_constructors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
36382
36397
|
};
|
|
36383
36398
|
}));
|
|
36384
36399
|
//#endregion
|
|
36385
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
36400
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/guards.js
|
|
36386
36401
|
var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
36387
36402
|
exports.__esModule = true;
|
|
36388
36403
|
exports.isComment = exports.isCombinator = exports.isClassName = exports.isAttribute = void 0;
|
|
@@ -36404,20 +36419,17 @@ var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
36404
36419
|
function isNodeType(type, node) {
|
|
36405
36420
|
return isNode(node) && node.type === type;
|
|
36406
36421
|
}
|
|
36407
|
-
var isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);
|
|
36408
|
-
exports.isAttribute = isAttribute;
|
|
36422
|
+
var isAttribute = exports.isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);
|
|
36409
36423
|
exports.isClassName = isNodeType.bind(null, _types.CLASS);
|
|
36410
36424
|
exports.isCombinator = isNodeType.bind(null, _types.COMBINATOR);
|
|
36411
36425
|
exports.isComment = isNodeType.bind(null, _types.COMMENT);
|
|
36412
36426
|
exports.isIdentifier = isNodeType.bind(null, _types.ID);
|
|
36413
36427
|
exports.isNesting = isNodeType.bind(null, _types.NESTING);
|
|
36414
|
-
var isPseudo = isNodeType.bind(null, _types.PSEUDO);
|
|
36415
|
-
exports.isPseudo = isPseudo;
|
|
36428
|
+
var isPseudo = exports.isPseudo = isNodeType.bind(null, _types.PSEUDO);
|
|
36416
36429
|
exports.isRoot = isNodeType.bind(null, _types.ROOT);
|
|
36417
36430
|
exports.isSelector = isNodeType.bind(null, _types.SELECTOR);
|
|
36418
36431
|
exports.isString = isNodeType.bind(null, _types.STRING);
|
|
36419
|
-
var isTag = isNodeType.bind(null, _types.TAG);
|
|
36420
|
-
exports.isTag = isTag;
|
|
36432
|
+
var isTag = exports.isTag = isNodeType.bind(null, _types.TAG);
|
|
36421
36433
|
exports.isUniversal = isNodeType.bind(null, _types.UNIVERSAL);
|
|
36422
36434
|
function isPseudoElement(node) {
|
|
36423
36435
|
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");
|
|
@@ -36433,7 +36445,7 @@ var require_guards = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
36433
36445
|
}
|
|
36434
36446
|
}));
|
|
36435
36447
|
//#endregion
|
|
36436
|
-
//#region node_modules/.pnpm/postcss-selector-parser@7.1.
|
|
36448
|
+
//#region node_modules/.pnpm/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/index.js
|
|
36437
36449
|
var require_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
36438
36450
|
exports.__esModule = true;
|
|
36439
36451
|
var _types = require_types();
|
|
@@ -36462,32 +36474,25 @@ var import_dist = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((expor
|
|
|
36462
36474
|
exports["default"] = void 0;
|
|
36463
36475
|
var _processor = _interopRequireDefault(require_processor());
|
|
36464
36476
|
var selectors = _interopRequireWildcard(require_selectors());
|
|
36465
|
-
function
|
|
36466
|
-
if (typeof WeakMap
|
|
36467
|
-
|
|
36468
|
-
|
|
36469
|
-
|
|
36470
|
-
|
|
36471
|
-
|
|
36472
|
-
|
|
36473
|
-
|
|
36474
|
-
|
|
36475
|
-
|
|
36476
|
-
|
|
36477
|
-
|
|
36478
|
-
|
|
36479
|
-
|
|
36480
|
-
|
|
36481
|
-
|
|
36482
|
-
|
|
36483
|
-
|
|
36484
|
-
}
|
|
36485
|
-
newObj["default"] = obj;
|
|
36486
|
-
if (cache) cache.set(obj, newObj);
|
|
36487
|
-
return newObj;
|
|
36488
|
-
}
|
|
36489
|
-
function _interopRequireDefault(obj) {
|
|
36490
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
36477
|
+
function _interopRequireWildcard(e, t) {
|
|
36478
|
+
if ("function" == typeof WeakMap) var r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
36479
|
+
return (_interopRequireWildcard = function _interopRequireWildcard(e, t) {
|
|
36480
|
+
if (!t && e && e.__esModule) return e;
|
|
36481
|
+
var o, i, f = {
|
|
36482
|
+
__proto__: null,
|
|
36483
|
+
"default": e
|
|
36484
|
+
};
|
|
36485
|
+
if (null === e || "object" != typeof e && "function" != typeof e) return f;
|
|
36486
|
+
if (o = t ? n : r) {
|
|
36487
|
+
if (o.has(e)) return o.get(e);
|
|
36488
|
+
o.set(e, f);
|
|
36489
|
+
}
|
|
36490
|
+
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]);
|
|
36491
|
+
return f;
|
|
36492
|
+
})(e, t);
|
|
36493
|
+
}
|
|
36494
|
+
function _interopRequireDefault(e) {
|
|
36495
|
+
return e && e.__esModule ? e : { "default": e };
|
|
36491
36496
|
}
|
|
36492
36497
|
var parser = function parser(processor) {
|
|
36493
36498
|
return new _processor["default"](processor);
|
|
@@ -40250,7 +40255,10 @@ function resolveTypeElements(ctx, node, scope, typeParameters) {
|
|
|
40250
40255
|
return canCache ? node._resolvedElements = resolved : resolved;
|
|
40251
40256
|
}
|
|
40252
40257
|
function innerResolveTypeElements(ctx, node, scope, typeParameters) {
|
|
40253
|
-
if (node
|
|
40258
|
+
if (hasVueIgnore(node)) {
|
|
40259
|
+
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);
|
|
40260
|
+
return { props: {} };
|
|
40261
|
+
}
|
|
40254
40262
|
switch (node.type) {
|
|
40255
40263
|
case "TSTypeLiteral": return typeElementsToMap(ctx, node.members, scope, typeParameters);
|
|
40256
40264
|
case "TSInterfaceDeclaration": return resolveInterfaceMembers(ctx, node, scope, typeParameters);
|
|
@@ -40325,6 +40333,9 @@ function typeElementsToMap(ctx, elements, scope = ctxToScope(ctx), typeParameter
|
|
|
40325
40333
|
} else if (e.type === "TSCallSignatureDeclaration") (res.calls || (res.calls = [])).push(e);
|
|
40326
40334
|
return res;
|
|
40327
40335
|
}
|
|
40336
|
+
function hasVueIgnore(node) {
|
|
40337
|
+
return !!(node.leadingComments && node.leadingComments.some((c) => c.value.includes("@vue-ignore")));
|
|
40338
|
+
}
|
|
40328
40339
|
function mergeElements(maps, type) {
|
|
40329
40340
|
if (maps.length === 1) return maps[0];
|
|
40330
40341
|
const res = { props: {} };
|
|
@@ -41409,6 +41420,7 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
41409
41420
|
if (ctx.options.propsDestructure === false) return;
|
|
41410
41421
|
const rootScope = Object.create(null);
|
|
41411
41422
|
const scopeStack = [rootScope];
|
|
41423
|
+
const functionScopeStack = [rootScope];
|
|
41412
41424
|
let currentScope = rootScope;
|
|
41413
41425
|
const excludedIds = /* @__PURE__ */ new WeakSet();
|
|
41414
41426
|
const parentStack = [];
|
|
@@ -41418,16 +41430,19 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
41418
41430
|
rootScope[local] = true;
|
|
41419
41431
|
propsLocalToPublicMap[local] = key;
|
|
41420
41432
|
}
|
|
41421
|
-
function pushScope() {
|
|
41422
|
-
|
|
41433
|
+
function pushScope(isFunctionScope = false) {
|
|
41434
|
+
const scope = currentScope = Object.create(currentScope);
|
|
41435
|
+
scopeStack.push(scope);
|
|
41436
|
+
if (isFunctionScope) functionScopeStack.push(scope);
|
|
41423
41437
|
}
|
|
41424
|
-
function popScope() {
|
|
41438
|
+
function popScope(isFunctionScope = false) {
|
|
41425
41439
|
scopeStack.pop();
|
|
41440
|
+
if (isFunctionScope) functionScopeStack.pop();
|
|
41426
41441
|
currentScope = scopeStack[scopeStack.length - 1] || null;
|
|
41427
41442
|
}
|
|
41428
|
-
function registerLocalBinding(id) {
|
|
41443
|
+
function registerLocalBinding(id, scope = currentScope) {
|
|
41429
41444
|
excludedIds.add(id);
|
|
41430
|
-
if (
|
|
41445
|
+
if (scope) scope[id.name] = false;
|
|
41431
41446
|
else ctx.error("registerBinding called without active scope, something is wrong.", id);
|
|
41432
41447
|
}
|
|
41433
41448
|
function walkScope(node, isRoot = false) {
|
|
@@ -41438,14 +41453,22 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
41438
41453
|
} else if (stmt.type === "ExportNamedDeclaration" && stmt.declaration && stmt.declaration.type === "VariableDeclaration") walkVariableDeclaration(stmt.declaration, isRoot);
|
|
41439
41454
|
else if (stmt.type === "LabeledStatement" && stmt.body.type === "VariableDeclaration") walkVariableDeclaration(stmt.body, isRoot);
|
|
41440
41455
|
}
|
|
41441
|
-
function walkVariableDeclaration(stmt, isRoot = false) {
|
|
41456
|
+
function walkVariableDeclaration(stmt, isRoot = false, scope = stmt.kind === "var" ? functionScopeStack[functionScopeStack.length - 1] : currentScope) {
|
|
41442
41457
|
if (stmt.declare) return;
|
|
41443
41458
|
for (const decl of stmt.declarations) {
|
|
41444
41459
|
const isDefineProps = isRoot && decl.init && isCallOf(unwrapTSNode(decl.init), "defineProps");
|
|
41445
41460
|
for (const id of extractIdentifiers(decl.id)) if (isDefineProps) excludedIds.add(id);
|
|
41446
|
-
else registerLocalBinding(id);
|
|
41461
|
+
else registerLocalBinding(id, scope);
|
|
41447
41462
|
}
|
|
41448
41463
|
}
|
|
41464
|
+
function walkFunctionScopeVarDeclarations(scopeNode, isRoot = false) {
|
|
41465
|
+
const scope = functionScopeStack[functionScopeStack.length - 1];
|
|
41466
|
+
walk$2(scopeNode, { enter(node, parent) {
|
|
41467
|
+
if (parent && parent.type.startsWith("TS") && !TS_NODE_TYPES.includes(parent.type)) return this.skip();
|
|
41468
|
+
if (isFunctionType(node) || node.type === "ClassDeclaration" || node.type === "ClassExpression") return this.skip();
|
|
41469
|
+
if (node.type === "VariableDeclaration" && node.kind === "var") walkVariableDeclaration(node, isRoot && parent === scopeNode, scope);
|
|
41470
|
+
} });
|
|
41471
|
+
}
|
|
41449
41472
|
function rewriteId(id, parent, parentStack) {
|
|
41450
41473
|
if (parent.type === "AssignmentExpression" && id === parent.left || parent.type === "UpdateExpression") ctx.error(`Cannot assign to destructured props as they are readonly.`, id);
|
|
41451
41474
|
if (isStaticProperty(parent) && parent.shorthand) {
|
|
@@ -41459,6 +41482,7 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
41459
41482
|
}
|
|
41460
41483
|
}
|
|
41461
41484
|
const ast = ctx.scriptSetupAst;
|
|
41485
|
+
walkFunctionScopeVarDeclarations(ast, true);
|
|
41462
41486
|
walkScope(ast, true);
|
|
41463
41487
|
walk$2(ast, {
|
|
41464
41488
|
enter(node, parent) {
|
|
@@ -41467,9 +41491,12 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
41467
41491
|
checkUsage(node, "watch", vueImportAliases.watch);
|
|
41468
41492
|
checkUsage(node, "toRef", vueImportAliases.toRef);
|
|
41469
41493
|
if (isFunctionType(node)) {
|
|
41470
|
-
pushScope();
|
|
41494
|
+
pushScope(true);
|
|
41471
41495
|
walkFunctionParams(node, registerLocalBinding);
|
|
41472
|
-
if (node.body.type === "BlockStatement")
|
|
41496
|
+
if (node.body.type === "BlockStatement") {
|
|
41497
|
+
walkFunctionScopeVarDeclarations(node.body);
|
|
41498
|
+
walkScope(node.body);
|
|
41499
|
+
}
|
|
41473
41500
|
return;
|
|
41474
41501
|
}
|
|
41475
41502
|
if (node.type === "CatchClause") {
|
|
@@ -41498,7 +41525,9 @@ function transformDestructuredProps(ctx, vueImportAliases) {
|
|
|
41498
41525
|
},
|
|
41499
41526
|
leave(node, parent) {
|
|
41500
41527
|
parent && parentStack.pop();
|
|
41501
|
-
if (
|
|
41528
|
+
if (isFunctionType(node)) popScope(true);
|
|
41529
|
+
else if (node.type === "BlockStatement" && !isFunctionType(parent)) popScope();
|
|
41530
|
+
else if (node.type === "CatchClause" || node.type === "ForOfStatement" || node.type === "ForInStatement" || node.type === "ForStatement") popScope();
|
|
41502
41531
|
}
|
|
41503
41532
|
});
|
|
41504
41533
|
}
|
|
@@ -41782,7 +41811,6 @@ function compileScript(sfc, options) {
|
|
|
41782
41811
|
const local = specifier.local.name;
|
|
41783
41812
|
const imported = getImportedName(specifier);
|
|
41784
41813
|
const source = node.source.value;
|
|
41785
|
-
if (vapor && ssr && specifier.type === "ImportSpecifier" && source === "vue" && imported === "defineVaporAsyncComponent") ctx.s.overwrite(specifier.start + startOffset, specifier.end + startOffset, `defineAsyncComponent as ${local}`);
|
|
41786
41814
|
const existing = ctx.userImports[local];
|
|
41787
41815
|
if (source === "vue" && MACROS.includes(imported)) {
|
|
41788
41816
|
if (local === imported) warnOnce(`\`${imported}\` is a compiler macro and no longer needs to be imported.`);
|
|
@@ -42177,7 +42205,7 @@ function mergeSourceMaps(scriptMap, templateMap, templateLineOffset) {
|
|
|
42177
42205
|
//#endregion
|
|
42178
42206
|
//#region packages/compiler-sfc/src/index.ts
|
|
42179
42207
|
init_objectSpread2();
|
|
42180
|
-
const version = "3.6.0-beta.
|
|
42208
|
+
const version = "3.6.0-beta.15";
|
|
42181
42209
|
const parseCache = parseCache$1;
|
|
42182
42210
|
const errorMessages = _objectSpread2(_objectSpread2({}, errorMessages$1), DOMErrorMessages);
|
|
42183
42211
|
const walk = walk$2;
|