hyperframes 0.6.90 → 0.6.91
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/cli.js +3758 -55
- package/dist/studio/assets/index-CgYcO2PV.js +146 -0
- package/dist/studio/index.html +1 -1
- package/package.json +1 -1
- package/dist/studio/assets/index-BKuDHMYl.js +0 -146
package/dist/cli.js
CHANGED
|
@@ -50,7 +50,7 @@ var VERSION;
|
|
|
50
50
|
var init_version = __esm({
|
|
51
51
|
"src/version.ts"() {
|
|
52
52
|
"use strict";
|
|
53
|
-
VERSION = true ? "0.6.
|
|
53
|
+
VERSION = true ? "0.6.91" : "0.0.0-dev";
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
|
|
@@ -47853,6 +47853,7 @@ __export(gsapParser_exports, {
|
|
|
47853
47853
|
removeKeyframeFromScript: () => removeKeyframeFromScript,
|
|
47854
47854
|
serializeGsapAnimations: () => serializeGsapAnimations,
|
|
47855
47855
|
setArcPathInScript: () => setArcPathInScript,
|
|
47856
|
+
splitAnimationsInScript: () => splitAnimationsInScript,
|
|
47856
47857
|
unrollDynamicAnimations: () => unrollDynamicAnimations,
|
|
47857
47858
|
updateAnimationInScript: () => updateAnimationInScript,
|
|
47858
47859
|
updateArcSegmentInScript: () => updateArcSegmentInScript,
|
|
@@ -48200,6 +48201,19 @@ function parsePercentageKeyframes(node, scope) {
|
|
|
48200
48201
|
...easeEach ? { easeEach } : {}
|
|
48201
48202
|
};
|
|
48202
48203
|
}
|
|
48204
|
+
function computeKeyframesTotalDuration(varsNode, scope) {
|
|
48205
|
+
const kfNode = (varsNode.properties ?? []).find(
|
|
48206
|
+
(p2) => (p2.key?.name ?? p2.key?.value) === "keyframes"
|
|
48207
|
+
)?.value;
|
|
48208
|
+
if (!kfNode || kfNode.type !== "ArrayExpression") return void 0;
|
|
48209
|
+
let total = 0;
|
|
48210
|
+
for (const el of kfNode.elements ?? []) {
|
|
48211
|
+
if (!el || el.type !== "ObjectExpression") continue;
|
|
48212
|
+
const r2 = objectExpressionToRecord(el, scope);
|
|
48213
|
+
if (typeof r2.duration === "number") total += r2.duration;
|
|
48214
|
+
}
|
|
48215
|
+
return total > 0 ? total : void 0;
|
|
48216
|
+
}
|
|
48203
48217
|
function parseObjectArrayKeyframes(node, scope) {
|
|
48204
48218
|
const elements = node.elements ?? [];
|
|
48205
48219
|
const raw = [];
|
|
@@ -48417,8 +48431,11 @@ function tweenCallToAnimation(call, scope) {
|
|
|
48417
48431
|
}
|
|
48418
48432
|
const posVal = call.positionArg ? extractLiteralValue(call.positionArg, scope) : 0;
|
|
48419
48433
|
const position = typeof posVal === "number" ? posVal : typeof posVal === "string" ? posVal : 0;
|
|
48420
|
-
|
|
48434
|
+
let duration = typeof vars.duration === "number" ? vars.duration : void 0;
|
|
48421
48435
|
const ease = typeof vars.ease === "string" ? vars.ease : void 0;
|
|
48436
|
+
if (duration === void 0 && keyframesData) {
|
|
48437
|
+
duration = computeKeyframesTotalDuration(call.varsArg, scope);
|
|
48438
|
+
}
|
|
48422
48439
|
const anim = {
|
|
48423
48440
|
targetSelector: call.selector,
|
|
48424
48441
|
method: call.method,
|
|
@@ -48524,15 +48541,18 @@ function setVarsKey(varsArg, key2, value) {
|
|
|
48524
48541
|
varsArg.properties.push(makeObjectProperty(key2, value));
|
|
48525
48542
|
}
|
|
48526
48543
|
}
|
|
48527
|
-
function
|
|
48544
|
+
function filterEditableKeys(varsArg, shouldKeep) {
|
|
48528
48545
|
if (varsArg?.type !== "ObjectExpression") return;
|
|
48529
48546
|
varsArg.properties = varsArg.properties.filter((p2) => {
|
|
48530
48547
|
if (!isObjectProperty(p2)) return true;
|
|
48531
48548
|
const key2 = propKeyName(p2);
|
|
48532
48549
|
if (typeof key2 !== "string") return true;
|
|
48533
48550
|
if (!isEditablePropertyKey(key2)) return true;
|
|
48534
|
-
return key2
|
|
48551
|
+
return shouldKeep(key2);
|
|
48535
48552
|
});
|
|
48553
|
+
}
|
|
48554
|
+
function reconcileEditableProperties(varsArg, newProps) {
|
|
48555
|
+
filterEditableKeys(varsArg, (key2) => key2 in newProps);
|
|
48536
48556
|
for (const [key2, value] of Object.entries(newProps)) {
|
|
48537
48557
|
setVarsKey(varsArg, key2, value);
|
|
48538
48558
|
}
|
|
@@ -48602,6 +48622,23 @@ function updateAnimationInScript(script, animationId, updates) {
|
|
|
48602
48622
|
applyUpdatesToCall(target.call, updates);
|
|
48603
48623
|
return recast.print(parsed.ast).code;
|
|
48604
48624
|
}
|
|
48625
|
+
function updateAnimationSelector(script, animationId, newSelector) {
|
|
48626
|
+
let parsed;
|
|
48627
|
+
try {
|
|
48628
|
+
parsed = parseGsapAst(script);
|
|
48629
|
+
} catch {
|
|
48630
|
+
return script;
|
|
48631
|
+
}
|
|
48632
|
+
const target = parsed.located.find((l) => l.id === animationId);
|
|
48633
|
+
if (!target) return script;
|
|
48634
|
+
const selectorArg = target.call.path.node.arguments?.[0];
|
|
48635
|
+
if (selectorArg?.type === "StringLiteral") {
|
|
48636
|
+
selectorArg.value = newSelector;
|
|
48637
|
+
} else if (selectorArg?.type === "Identifier") {
|
|
48638
|
+
target.call.path.node.arguments[0] = { type: "StringLiteral", value: newSelector };
|
|
48639
|
+
}
|
|
48640
|
+
return recast.print(parsed.ast).code;
|
|
48641
|
+
}
|
|
48605
48642
|
function addAnimationToScript(script, animation) {
|
|
48606
48643
|
let parsed;
|
|
48607
48644
|
try {
|
|
@@ -48716,6 +48753,127 @@ function removeAnimationFromScript(script, animationId) {
|
|
|
48716
48753
|
}
|
|
48717
48754
|
return recast.print(parsed.ast).code;
|
|
48718
48755
|
}
|
|
48756
|
+
function insertInheritedStateSet(script, selector, position, properties) {
|
|
48757
|
+
let parsed;
|
|
48758
|
+
try {
|
|
48759
|
+
parsed = parseGsapAst(script);
|
|
48760
|
+
} catch {
|
|
48761
|
+
return script;
|
|
48762
|
+
}
|
|
48763
|
+
const tlVar = parsed.timelineVar;
|
|
48764
|
+
const props = Object.entries(properties).map(([k2, v2]) => `${k2}: ${typeof v2 === "string" ? JSON.stringify(v2) : v2}`).join(", ");
|
|
48765
|
+
const code = `${tlVar}.set(${JSON.stringify(selector)}, { ${props} }, ${position});`;
|
|
48766
|
+
const newStatement = parseScript(code).program.body[0];
|
|
48767
|
+
const anchor = findTimelineDeclarationPath(parsed.ast, tlVar);
|
|
48768
|
+
if (anchor) {
|
|
48769
|
+
anchor.insertAfter(newStatement);
|
|
48770
|
+
} else if (parsed.located.length > 0) {
|
|
48771
|
+
const firstTween = parsed.located[0].call;
|
|
48772
|
+
const stmtPath = findStatementPath(firstTween.path);
|
|
48773
|
+
if (stmtPath) stmtPath.insertBefore(newStatement);
|
|
48774
|
+
else parsed.ast.program.body.unshift(newStatement);
|
|
48775
|
+
} else {
|
|
48776
|
+
parsed.ast.program.body.push(newStatement);
|
|
48777
|
+
}
|
|
48778
|
+
return recast.print(parsed.ast).code;
|
|
48779
|
+
}
|
|
48780
|
+
function splitAnimationsInScript(script, opts) {
|
|
48781
|
+
const parsed = parseGsapScript(script);
|
|
48782
|
+
const originalSelector = `#${opts.originalId}`;
|
|
48783
|
+
const newSelector = `#${opts.newId}`;
|
|
48784
|
+
const skippedSelectors = [];
|
|
48785
|
+
for (const a of parsed.animations) {
|
|
48786
|
+
if (a.targetSelector !== originalSelector && a.targetSelector.includes(opts.originalId)) {
|
|
48787
|
+
skippedSelectors.push(a.targetSelector);
|
|
48788
|
+
}
|
|
48789
|
+
}
|
|
48790
|
+
const matching = parsed.animations.filter((a) => a.targetSelector === originalSelector);
|
|
48791
|
+
if (matching.length === 0) return { script, skippedSelectors };
|
|
48792
|
+
let result = script;
|
|
48793
|
+
const newElementStart = opts.splitTime;
|
|
48794
|
+
const inheritedProps = {};
|
|
48795
|
+
for (let i2 = matching.length - 1; i2 >= 0; i2--) {
|
|
48796
|
+
const anim = matching[i2];
|
|
48797
|
+
const pos = typeof anim.position === "number" ? anim.position : 0;
|
|
48798
|
+
const dur = anim.duration ?? 0;
|
|
48799
|
+
const animEnd = pos + dur;
|
|
48800
|
+
if (anim.keyframes) {
|
|
48801
|
+
if (pos >= opts.splitTime) {
|
|
48802
|
+
result = updateAnimationSelector(result, anim.id, newSelector);
|
|
48803
|
+
} else if (animEnd > opts.splitTime) {
|
|
48804
|
+
skippedSelectors.push(`${originalSelector} (keyframes spanning split)`);
|
|
48805
|
+
const kfs = anim.keyframes.keyframes;
|
|
48806
|
+
for (const kf of kfs) {
|
|
48807
|
+
const kfTime = pos + kf.percentage / 100 * dur;
|
|
48808
|
+
if (kfTime <= opts.splitTime) {
|
|
48809
|
+
for (const [k2, v2] of Object.entries(kf.properties)) {
|
|
48810
|
+
inheritedProps[k2] = v2;
|
|
48811
|
+
}
|
|
48812
|
+
}
|
|
48813
|
+
}
|
|
48814
|
+
} else {
|
|
48815
|
+
const kfs = anim.keyframes.keyframes;
|
|
48816
|
+
if (kfs.length > 0) {
|
|
48817
|
+
for (const [k2, v2] of Object.entries(kfs[kfs.length - 1].properties)) {
|
|
48818
|
+
inheritedProps[k2] = v2;
|
|
48819
|
+
}
|
|
48820
|
+
}
|
|
48821
|
+
}
|
|
48822
|
+
continue;
|
|
48823
|
+
}
|
|
48824
|
+
if (animEnd <= opts.splitTime) {
|
|
48825
|
+
for (const [k2, v2] of Object.entries(anim.properties)) {
|
|
48826
|
+
inheritedProps[k2] = v2;
|
|
48827
|
+
}
|
|
48828
|
+
continue;
|
|
48829
|
+
}
|
|
48830
|
+
if (pos >= opts.splitTime) {
|
|
48831
|
+
result = updateAnimationSelector(result, anim.id, newSelector);
|
|
48832
|
+
continue;
|
|
48833
|
+
}
|
|
48834
|
+
const progress = dur > 0 ? (opts.splitTime - pos) / dur : 0;
|
|
48835
|
+
const fromSource = anim.fromProperties ?? inheritedProps;
|
|
48836
|
+
const midProps = {};
|
|
48837
|
+
for (const [k2, v2] of Object.entries(anim.properties)) {
|
|
48838
|
+
if (typeof v2 !== "number") {
|
|
48839
|
+
midProps[k2] = v2;
|
|
48840
|
+
continue;
|
|
48841
|
+
}
|
|
48842
|
+
const fromVal = typeof fromSource[k2] === "number" ? fromSource[k2] : 0;
|
|
48843
|
+
midProps[k2] = fromVal + (v2 - fromVal) * progress;
|
|
48844
|
+
}
|
|
48845
|
+
const firstHalfDuration = opts.splitTime - pos;
|
|
48846
|
+
result = updateAnimationInScript(result, anim.id, {
|
|
48847
|
+
duration: firstHalfDuration,
|
|
48848
|
+
properties: midProps
|
|
48849
|
+
});
|
|
48850
|
+
const secondHalfDuration = animEnd - opts.splitTime;
|
|
48851
|
+
const addResult = addAnimationToScript(result, {
|
|
48852
|
+
targetSelector: newSelector,
|
|
48853
|
+
method: "fromTo",
|
|
48854
|
+
position: newElementStart,
|
|
48855
|
+
duration: secondHalfDuration,
|
|
48856
|
+
properties: { ...anim.properties },
|
|
48857
|
+
fromProperties: { ...midProps },
|
|
48858
|
+
ease: anim.ease,
|
|
48859
|
+
extras: anim.extras
|
|
48860
|
+
});
|
|
48861
|
+
result = addResult.script;
|
|
48862
|
+
for (const [k2, v2] of Object.entries(midProps)) {
|
|
48863
|
+
inheritedProps[k2] = v2;
|
|
48864
|
+
}
|
|
48865
|
+
}
|
|
48866
|
+
if (Object.keys(inheritedProps).length > 0) {
|
|
48867
|
+
result = insertInheritedStateSet(result, newSelector, newElementStart, inheritedProps);
|
|
48868
|
+
}
|
|
48869
|
+
return { script: result, skippedSelectors };
|
|
48870
|
+
}
|
|
48871
|
+
function sortedKeyframes(kfs) {
|
|
48872
|
+
return kfs.slice().sort((a, b2) => a.percentage - b2.percentage);
|
|
48873
|
+
}
|
|
48874
|
+
function keyframePropsToCode(kf) {
|
|
48875
|
+
return Object.entries(kf.properties).map(([k2, v2]) => `${safeKey(k2)}: ${valueToCode(v2)}`);
|
|
48876
|
+
}
|
|
48719
48877
|
function removeVarsKey(varsArg, key2) {
|
|
48720
48878
|
if (varsArg?.type !== "ObjectExpression") return;
|
|
48721
48879
|
varsArg.properties = varsArg.properties.filter(
|
|
@@ -48760,6 +48918,13 @@ function collapseKeyframesToFlat(varsArg, record) {
|
|
|
48760
48918
|
removeVarsKey(varsArg, "keyframes");
|
|
48761
48919
|
removeVarsKey(varsArg, "easeEach");
|
|
48762
48920
|
}
|
|
48921
|
+
function locateKeyframeCtx(script, animationId, percentage) {
|
|
48922
|
+
const loc = locateAnimation(script, animationId);
|
|
48923
|
+
if (!loc) return null;
|
|
48924
|
+
const kfNode = findKeyframesObjectNode(loc.target.call.varsArg);
|
|
48925
|
+
if (!kfNode) return null;
|
|
48926
|
+
return { loc, kfNode, pctKey: `${percentage}%` };
|
|
48927
|
+
}
|
|
48763
48928
|
function addKeyframeToScript(script, animationId, percentage, properties, ease, backfillDefaults) {
|
|
48764
48929
|
let loc = locateAnimation(script, animationId);
|
|
48765
48930
|
if (!loc) {
|
|
@@ -48840,11 +49005,9 @@ function addKeyframeToScript(script, animationId, percentage, properties, ease,
|
|
|
48840
49005
|
return recast.print(loc.parsed.ast).code;
|
|
48841
49006
|
}
|
|
48842
49007
|
function removeKeyframeFromScript(script, animationId, percentage) {
|
|
48843
|
-
const
|
|
48844
|
-
if (!
|
|
48845
|
-
const kfNode =
|
|
48846
|
-
if (!kfNode) return script;
|
|
48847
|
-
const pctKey = `${percentage}%`;
|
|
49008
|
+
const ctx = locateKeyframeCtx(script, animationId, percentage);
|
|
49009
|
+
if (!ctx) return script;
|
|
49010
|
+
const { loc, kfNode, pctKey } = ctx;
|
|
48848
49011
|
const removeIdx = kfNode.properties.findIndex(
|
|
48849
49012
|
(p2) => isObjectProperty(p2) && propKeyName(p2) === pctKey
|
|
48850
49013
|
);
|
|
@@ -48858,11 +49021,9 @@ function removeKeyframeFromScript(script, animationId, percentage) {
|
|
|
48858
49021
|
return recast.print(loc.parsed.ast).code;
|
|
48859
49022
|
}
|
|
48860
49023
|
function updateKeyframeInScript(script, animationId, percentage, properties, ease) {
|
|
48861
|
-
const
|
|
48862
|
-
if (!
|
|
48863
|
-
const kfNode =
|
|
48864
|
-
if (!kfNode) return script;
|
|
48865
|
-
const pctKey = `${percentage}%`;
|
|
49024
|
+
const ctx = locateKeyframeCtx(script, animationId, percentage);
|
|
49025
|
+
if (!ctx) return script;
|
|
49026
|
+
const { loc, kfNode, pctKey } = ctx;
|
|
48866
49027
|
const existing = kfNode.properties.find(
|
|
48867
49028
|
(p2) => isObjectProperty(p2) && propKeyName(p2) === pctKey
|
|
48868
49029
|
);
|
|
@@ -48901,10 +49062,9 @@ function stripEditableAndEase(varsArg) {
|
|
|
48901
49062
|
varsArg.properties = varsArg.properties.filter((p2) => {
|
|
48902
49063
|
if (!isObjectProperty(p2)) return true;
|
|
48903
49064
|
const key2 = propKeyName(p2);
|
|
48904
|
-
|
|
48905
|
-
if (key2 === "ease" || key2 === "keyframes") return false;
|
|
48906
|
-
return !isEditablePropertyKey(key2);
|
|
49065
|
+
return key2 !== "ease" && key2 !== "keyframes";
|
|
48907
49066
|
});
|
|
49067
|
+
filterEditableKeys(varsArg, () => false);
|
|
48908
49068
|
}
|
|
48909
49069
|
function insertKeyframesProp(varsArg, fromProps, toProps, easeEach) {
|
|
48910
49070
|
const fromEntries = Object.entries(fromProps).map(([k2, v2]) => `${safeKey(k2)}: ${valueToCode(v2)}`);
|
|
@@ -48955,11 +49115,8 @@ function materializeKeyframesInScript(script, animationId, keyframes, easeEach,
|
|
|
48955
49115
|
loc.target.call.node.arguments[0] = parseExpr(JSON.stringify(resolvedSelector));
|
|
48956
49116
|
}
|
|
48957
49117
|
const entries2 = [];
|
|
48958
|
-
const
|
|
48959
|
-
|
|
48960
|
-
const propEntries = Object.entries(kf.properties).map(
|
|
48961
|
-
([k2, v2]) => `${safeKey(k2)}: ${valueToCode(v2)}`
|
|
48962
|
-
);
|
|
49118
|
+
for (const kf of sortedKeyframes(keyframes)) {
|
|
49119
|
+
const propEntries = keyframePropsToCode(kf);
|
|
48963
49120
|
if (kf.ease) propEntries.push(`ease: ${JSON.stringify(kf.ease)}`);
|
|
48964
49121
|
entries2.push(`${JSON.stringify(kf.percentage + "%")}: { ${propEntries.join(", ")} }`);
|
|
48965
49122
|
}
|
|
@@ -49166,11 +49323,8 @@ function unrollDynamicAnimations(script, animationId, elements) {
|
|
|
49166
49323
|
const calls = [];
|
|
49167
49324
|
for (const el of elements) {
|
|
49168
49325
|
const kfEntries = [];
|
|
49169
|
-
const
|
|
49170
|
-
|
|
49171
|
-
const propEntries = Object.entries(kf.properties).map(
|
|
49172
|
-
([k2, v2]) => `${safeKey(k2)}: ${valueToCode(v2)}`
|
|
49173
|
-
);
|
|
49326
|
+
for (const kf of sortedKeyframes(el.keyframes)) {
|
|
49327
|
+
const propEntries = keyframePropsToCode(kf);
|
|
49174
49328
|
kfEntries.push(`${JSON.stringify(kf.percentage + "%")}: { ${propEntries.join(", ")} }`);
|
|
49175
49329
|
}
|
|
49176
49330
|
if (el.easeEach) {
|
|
@@ -49464,11 +49618,11 @@ function generateZoomGsapAnimations(zoomKeyframes, canvasWidth, canvasHeight) {
|
|
|
49464
49618
|
if (!zoomKeyframes || zoomKeyframes.length === 0) {
|
|
49465
49619
|
return "";
|
|
49466
49620
|
}
|
|
49467
|
-
const
|
|
49621
|
+
const sortedKeyframes2 = [...zoomKeyframes].sort((a, b2) => a.time - b2.time);
|
|
49468
49622
|
const animations = [];
|
|
49469
49623
|
animations.push(" // Stage zoom animations");
|
|
49470
|
-
for (let i2 = 0; i2 <
|
|
49471
|
-
const kf =
|
|
49624
|
+
for (let i2 = 0; i2 < sortedKeyframes2.length; i2++) {
|
|
49625
|
+
const kf = sortedKeyframes2[i2];
|
|
49472
49626
|
if (!kf) continue;
|
|
49473
49627
|
const { x: x3, y } = calculateZoomTransform(
|
|
49474
49628
|
kf.zoom.scale,
|
|
@@ -49482,7 +49636,7 @@ function generateZoomGsapAnimations(zoomKeyframes, canvasWidth, canvasHeight) {
|
|
|
49482
49636
|
` tl.set("#stage-zoom-container", { scale: ${kf.zoom.scale}, x: ${x3}, y: ${y} }, ${kf.time});`
|
|
49483
49637
|
);
|
|
49484
49638
|
} else {
|
|
49485
|
-
const prevKf =
|
|
49639
|
+
const prevKf = sortedKeyframes2[i2 - 1];
|
|
49486
49640
|
if (!prevKf) continue;
|
|
49487
49641
|
const duration = kf.time - prevKf.time;
|
|
49488
49642
|
const ease = kf.ease ? `, ease: "${kf.ease}"` : "";
|
|
@@ -59635,7 +59789,3490 @@ var init_mediaValidation = __esm({
|
|
|
59635
59789
|
}
|
|
59636
59790
|
});
|
|
59637
59791
|
|
|
59792
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/unesc.js
|
|
59793
|
+
var require_unesc = __commonJS({
|
|
59794
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/unesc.js"(exports, module) {
|
|
59795
|
+
"use strict";
|
|
59796
|
+
exports.__esModule = true;
|
|
59797
|
+
exports["default"] = unesc;
|
|
59798
|
+
function gobbleHex(str) {
|
|
59799
|
+
var lower2 = str.toLowerCase();
|
|
59800
|
+
var hex = "";
|
|
59801
|
+
var spaceTerminated = false;
|
|
59802
|
+
for (var i2 = 0; i2 < 6 && lower2[i2] !== void 0; i2++) {
|
|
59803
|
+
var code = lower2.charCodeAt(i2);
|
|
59804
|
+
var valid = code >= 97 && code <= 102 || code >= 48 && code <= 57;
|
|
59805
|
+
spaceTerminated = code === 32;
|
|
59806
|
+
if (!valid) {
|
|
59807
|
+
break;
|
|
59808
|
+
}
|
|
59809
|
+
hex += lower2[i2];
|
|
59810
|
+
}
|
|
59811
|
+
if (hex.length === 0) {
|
|
59812
|
+
return void 0;
|
|
59813
|
+
}
|
|
59814
|
+
var codePoint = parseInt(hex, 16);
|
|
59815
|
+
var isSurrogate = codePoint >= 55296 && codePoint <= 57343;
|
|
59816
|
+
if (isSurrogate || codePoint === 0 || codePoint > 1114111) {
|
|
59817
|
+
return ["\uFFFD", hex.length + (spaceTerminated ? 1 : 0)];
|
|
59818
|
+
}
|
|
59819
|
+
return [String.fromCodePoint(codePoint), hex.length + (spaceTerminated ? 1 : 0)];
|
|
59820
|
+
}
|
|
59821
|
+
var CONTAINS_ESCAPE = /\\/;
|
|
59822
|
+
function unesc(str) {
|
|
59823
|
+
var needToProcess = CONTAINS_ESCAPE.test(str);
|
|
59824
|
+
if (!needToProcess) {
|
|
59825
|
+
return str;
|
|
59826
|
+
}
|
|
59827
|
+
var ret = "";
|
|
59828
|
+
for (var i2 = 0; i2 < str.length; i2++) {
|
|
59829
|
+
if (str[i2] === "\\") {
|
|
59830
|
+
var gobbled = gobbleHex(str.slice(i2 + 1, i2 + 7));
|
|
59831
|
+
if (gobbled !== void 0) {
|
|
59832
|
+
ret += gobbled[0];
|
|
59833
|
+
i2 += gobbled[1];
|
|
59834
|
+
continue;
|
|
59835
|
+
}
|
|
59836
|
+
if (str[i2 + 1] === "\\") {
|
|
59837
|
+
ret += "\\";
|
|
59838
|
+
i2++;
|
|
59839
|
+
continue;
|
|
59840
|
+
}
|
|
59841
|
+
if (str.length === i2 + 1) {
|
|
59842
|
+
ret += str[i2];
|
|
59843
|
+
}
|
|
59844
|
+
continue;
|
|
59845
|
+
}
|
|
59846
|
+
ret += str[i2];
|
|
59847
|
+
}
|
|
59848
|
+
return ret;
|
|
59849
|
+
}
|
|
59850
|
+
module.exports = exports.default;
|
|
59851
|
+
}
|
|
59852
|
+
});
|
|
59853
|
+
|
|
59854
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/getProp.js
|
|
59855
|
+
var require_getProp = __commonJS({
|
|
59856
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/getProp.js"(exports, module) {
|
|
59857
|
+
"use strict";
|
|
59858
|
+
exports.__esModule = true;
|
|
59859
|
+
exports["default"] = getProp;
|
|
59860
|
+
function getProp(obj) {
|
|
59861
|
+
for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
59862
|
+
props[_key - 1] = arguments[_key];
|
|
59863
|
+
}
|
|
59864
|
+
while (props.length > 0) {
|
|
59865
|
+
var prop2 = props.shift();
|
|
59866
|
+
if (!obj[prop2]) {
|
|
59867
|
+
return void 0;
|
|
59868
|
+
}
|
|
59869
|
+
obj = obj[prop2];
|
|
59870
|
+
}
|
|
59871
|
+
return obj;
|
|
59872
|
+
}
|
|
59873
|
+
module.exports = exports.default;
|
|
59874
|
+
}
|
|
59875
|
+
});
|
|
59876
|
+
|
|
59877
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/ensureObject.js
|
|
59878
|
+
var require_ensureObject = __commonJS({
|
|
59879
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/ensureObject.js"(exports, module) {
|
|
59880
|
+
"use strict";
|
|
59881
|
+
exports.__esModule = true;
|
|
59882
|
+
exports["default"] = ensureObject;
|
|
59883
|
+
function ensureObject(obj) {
|
|
59884
|
+
for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
59885
|
+
props[_key - 1] = arguments[_key];
|
|
59886
|
+
}
|
|
59887
|
+
while (props.length > 0) {
|
|
59888
|
+
var prop2 = props.shift();
|
|
59889
|
+
if (!obj[prop2]) {
|
|
59890
|
+
obj[prop2] = {};
|
|
59891
|
+
}
|
|
59892
|
+
obj = obj[prop2];
|
|
59893
|
+
}
|
|
59894
|
+
}
|
|
59895
|
+
module.exports = exports.default;
|
|
59896
|
+
}
|
|
59897
|
+
});
|
|
59898
|
+
|
|
59899
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/stripComments.js
|
|
59900
|
+
var require_stripComments = __commonJS({
|
|
59901
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/stripComments.js"(exports, module) {
|
|
59902
|
+
"use strict";
|
|
59903
|
+
exports.__esModule = true;
|
|
59904
|
+
exports["default"] = stripComments;
|
|
59905
|
+
function stripComments(str) {
|
|
59906
|
+
var s2 = "";
|
|
59907
|
+
var commentStart = str.indexOf("/*");
|
|
59908
|
+
var lastEnd = 0;
|
|
59909
|
+
while (commentStart >= 0) {
|
|
59910
|
+
s2 = s2 + str.slice(lastEnd, commentStart);
|
|
59911
|
+
var commentEnd = str.indexOf("*/", commentStart + 2);
|
|
59912
|
+
if (commentEnd < 0) {
|
|
59913
|
+
return s2;
|
|
59914
|
+
}
|
|
59915
|
+
lastEnd = commentEnd + 2;
|
|
59916
|
+
commentStart = str.indexOf("/*", lastEnd);
|
|
59917
|
+
}
|
|
59918
|
+
s2 = s2 + str.slice(lastEnd);
|
|
59919
|
+
return s2;
|
|
59920
|
+
}
|
|
59921
|
+
module.exports = exports.default;
|
|
59922
|
+
}
|
|
59923
|
+
});
|
|
59924
|
+
|
|
59925
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/maxNestingDepth.js
|
|
59926
|
+
var require_maxNestingDepth = __commonJS({
|
|
59927
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/maxNestingDepth.js"(exports) {
|
|
59928
|
+
"use strict";
|
|
59929
|
+
exports.__esModule = true;
|
|
59930
|
+
exports.MAX_NESTING_DEPTH = void 0;
|
|
59931
|
+
exports["default"] = resolveMaxNestingDepth;
|
|
59932
|
+
var MAX_NESTING_DEPTH = exports.MAX_NESTING_DEPTH = 256;
|
|
59933
|
+
function resolveMaxNestingDepth(value) {
|
|
59934
|
+
return Number.isSafeInteger(value) && value >= 0 ? value : MAX_NESTING_DEPTH;
|
|
59935
|
+
}
|
|
59936
|
+
}
|
|
59937
|
+
});
|
|
59938
|
+
|
|
59939
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/index.js
|
|
59940
|
+
var require_util3 = __commonJS({
|
|
59941
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/util/index.js"(exports) {
|
|
59942
|
+
"use strict";
|
|
59943
|
+
exports.__esModule = true;
|
|
59944
|
+
exports.unesc = exports.stripComments = exports.resolveMaxNestingDepth = exports.getProp = exports.ensureObject = exports.MAX_NESTING_DEPTH = void 0;
|
|
59945
|
+
var _unesc = _interopRequireDefault(require_unesc());
|
|
59946
|
+
exports.unesc = _unesc["default"];
|
|
59947
|
+
var _getProp = _interopRequireDefault(require_getProp());
|
|
59948
|
+
exports.getProp = _getProp["default"];
|
|
59949
|
+
var _ensureObject = _interopRequireDefault(require_ensureObject());
|
|
59950
|
+
exports.ensureObject = _ensureObject["default"];
|
|
59951
|
+
var _stripComments = _interopRequireDefault(require_stripComments());
|
|
59952
|
+
exports.stripComments = _stripComments["default"];
|
|
59953
|
+
var _maxNestingDepth = _interopRequireWildcard(require_maxNestingDepth());
|
|
59954
|
+
exports.resolveMaxNestingDepth = _maxNestingDepth["default"];
|
|
59955
|
+
exports.MAX_NESTING_DEPTH = _maxNestingDepth.MAX_NESTING_DEPTH;
|
|
59956
|
+
function _interopRequireWildcard(e3, t2) {
|
|
59957
|
+
if ("function" == typeof WeakMap) var r2 = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
59958
|
+
return (_interopRequireWildcard = function _interopRequireWildcard2(e4, t3) {
|
|
59959
|
+
if (!t3 && e4 && e4.__esModule) return e4;
|
|
59960
|
+
var o, i2, f3 = { __proto__: null, "default": e4 };
|
|
59961
|
+
if (null === e4 || "object" != typeof e4 && "function" != typeof e4) return f3;
|
|
59962
|
+
if (o = t3 ? n : r2) {
|
|
59963
|
+
if (o.has(e4)) return o.get(e4);
|
|
59964
|
+
o.set(e4, f3);
|
|
59965
|
+
}
|
|
59966
|
+
for (var _t2 in e4) {
|
|
59967
|
+
"default" !== _t2 && {}.hasOwnProperty.call(e4, _t2) && ((i2 = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e4, _t2)) && (i2.get || i2.set) ? o(f3, _t2, i2) : f3[_t2] = e4[_t2]);
|
|
59968
|
+
}
|
|
59969
|
+
return f3;
|
|
59970
|
+
})(e3, t2);
|
|
59971
|
+
}
|
|
59972
|
+
function _interopRequireDefault(e3) {
|
|
59973
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
59974
|
+
}
|
|
59975
|
+
}
|
|
59976
|
+
});
|
|
59977
|
+
|
|
59978
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/node.js
|
|
59979
|
+
var require_node = __commonJS({
|
|
59980
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/node.js"(exports, module) {
|
|
59981
|
+
"use strict";
|
|
59982
|
+
exports.__esModule = true;
|
|
59983
|
+
exports["default"] = void 0;
|
|
59984
|
+
var _util = require_util3();
|
|
59985
|
+
function _defineProperties(e3, r2) {
|
|
59986
|
+
for (var t2 = 0; t2 < r2.length; t2++) {
|
|
59987
|
+
var o = r2[t2];
|
|
59988
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e3, _toPropertyKey(o.key), o);
|
|
59989
|
+
}
|
|
59990
|
+
}
|
|
59991
|
+
function _createClass(e3, r2, t2) {
|
|
59992
|
+
return r2 && _defineProperties(e3.prototype, r2), t2 && _defineProperties(e3, t2), Object.defineProperty(e3, "prototype", { writable: false }), e3;
|
|
59993
|
+
}
|
|
59994
|
+
function _toPropertyKey(t2) {
|
|
59995
|
+
var i2 = _toPrimitive(t2, "string");
|
|
59996
|
+
return "symbol" == typeof i2 ? i2 : i2 + "";
|
|
59997
|
+
}
|
|
59998
|
+
function _toPrimitive(t2, r2) {
|
|
59999
|
+
if ("object" != typeof t2 || !t2) return t2;
|
|
60000
|
+
var e3 = t2[Symbol.toPrimitive];
|
|
60001
|
+
if (void 0 !== e3) {
|
|
60002
|
+
var i2 = e3.call(t2, r2 || "default");
|
|
60003
|
+
if ("object" != typeof i2) return i2;
|
|
60004
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
60005
|
+
}
|
|
60006
|
+
return ("string" === r2 ? String : Number)(t2);
|
|
60007
|
+
}
|
|
60008
|
+
var cloneNode2 = function cloneNode3(obj, parent) {
|
|
60009
|
+
if (typeof obj !== "object" || obj === null) {
|
|
60010
|
+
return obj;
|
|
60011
|
+
}
|
|
60012
|
+
var cloned = new obj.constructor();
|
|
60013
|
+
for (var i2 in obj) {
|
|
60014
|
+
if (!obj.hasOwnProperty(i2)) {
|
|
60015
|
+
continue;
|
|
60016
|
+
}
|
|
60017
|
+
var value = obj[i2];
|
|
60018
|
+
var type = typeof value;
|
|
60019
|
+
if (i2 === "parent" && type === "object") {
|
|
60020
|
+
if (parent) {
|
|
60021
|
+
cloned[i2] = parent;
|
|
60022
|
+
}
|
|
60023
|
+
} else if (value instanceof Array) {
|
|
60024
|
+
cloned[i2] = value.map(function(j3) {
|
|
60025
|
+
return cloneNode3(j3, cloned);
|
|
60026
|
+
});
|
|
60027
|
+
} else {
|
|
60028
|
+
cloned[i2] = cloneNode3(value, cloned);
|
|
60029
|
+
}
|
|
60030
|
+
}
|
|
60031
|
+
return cloned;
|
|
60032
|
+
};
|
|
60033
|
+
var Node4 = exports["default"] = /* @__PURE__ */ (function() {
|
|
60034
|
+
function Node5(opts) {
|
|
60035
|
+
if (opts === void 0) {
|
|
60036
|
+
opts = {};
|
|
60037
|
+
}
|
|
60038
|
+
Object.assign(this, opts);
|
|
60039
|
+
this.spaces = this.spaces || {};
|
|
60040
|
+
this.spaces.before = this.spaces.before || "";
|
|
60041
|
+
this.spaces.after = this.spaces.after || "";
|
|
60042
|
+
}
|
|
60043
|
+
var _proto = Node5.prototype;
|
|
60044
|
+
_proto.remove = function remove2() {
|
|
60045
|
+
if (this.parent) {
|
|
60046
|
+
this.parent.removeChild(this);
|
|
60047
|
+
}
|
|
60048
|
+
this.parent = void 0;
|
|
60049
|
+
return this;
|
|
60050
|
+
};
|
|
60051
|
+
_proto.replaceWith = function replaceWith2() {
|
|
60052
|
+
if (this.parent) {
|
|
60053
|
+
for (var index in arguments) {
|
|
60054
|
+
this.parent.insertBefore(this, arguments[index]);
|
|
60055
|
+
}
|
|
60056
|
+
this.remove();
|
|
60057
|
+
}
|
|
60058
|
+
return this;
|
|
60059
|
+
};
|
|
60060
|
+
_proto.next = function next() {
|
|
60061
|
+
return this.parent.at(this.parent.index(this) + 1);
|
|
60062
|
+
};
|
|
60063
|
+
_proto.prev = function prev() {
|
|
60064
|
+
return this.parent.at(this.parent.index(this) - 1);
|
|
60065
|
+
};
|
|
60066
|
+
_proto.clone = function clone2(overrides) {
|
|
60067
|
+
if (overrides === void 0) {
|
|
60068
|
+
overrides = {};
|
|
60069
|
+
}
|
|
60070
|
+
var cloned = cloneNode2(this);
|
|
60071
|
+
for (var name in overrides) {
|
|
60072
|
+
cloned[name] = overrides[name];
|
|
60073
|
+
}
|
|
60074
|
+
return cloned;
|
|
60075
|
+
};
|
|
60076
|
+
_proto.appendToPropertyAndEscape = function appendToPropertyAndEscape(name, value, valueEscaped) {
|
|
60077
|
+
if (!this.raws) {
|
|
60078
|
+
this.raws = {};
|
|
60079
|
+
}
|
|
60080
|
+
var originalValue = this[name];
|
|
60081
|
+
var originalEscaped = this.raws[name];
|
|
60082
|
+
this[name] = originalValue + value;
|
|
60083
|
+
if (originalEscaped || valueEscaped !== value) {
|
|
60084
|
+
this.raws[name] = (originalEscaped || originalValue) + valueEscaped;
|
|
60085
|
+
} else {
|
|
60086
|
+
delete this.raws[name];
|
|
60087
|
+
}
|
|
60088
|
+
};
|
|
60089
|
+
_proto.setPropertyAndEscape = function setPropertyAndEscape(name, value, valueEscaped) {
|
|
60090
|
+
if (!this.raws) {
|
|
60091
|
+
this.raws = {};
|
|
60092
|
+
}
|
|
60093
|
+
this[name] = value;
|
|
60094
|
+
this.raws[name] = valueEscaped;
|
|
60095
|
+
};
|
|
60096
|
+
_proto.setPropertyWithoutEscape = function setPropertyWithoutEscape(name, value) {
|
|
60097
|
+
this[name] = value;
|
|
60098
|
+
if (this.raws) {
|
|
60099
|
+
delete this.raws[name];
|
|
60100
|
+
}
|
|
60101
|
+
};
|
|
60102
|
+
_proto.isAtPosition = function isAtPosition(line, column) {
|
|
60103
|
+
if (this.source && this.source.start && this.source.end) {
|
|
60104
|
+
if (this.source.start.line > line) {
|
|
60105
|
+
return false;
|
|
60106
|
+
}
|
|
60107
|
+
if (this.source.end.line < line) {
|
|
60108
|
+
return false;
|
|
60109
|
+
}
|
|
60110
|
+
if (this.source.start.line === line && this.source.start.column > column) {
|
|
60111
|
+
return false;
|
|
60112
|
+
}
|
|
60113
|
+
if (this.source.end.line === line && this.source.end.column < column) {
|
|
60114
|
+
return false;
|
|
60115
|
+
}
|
|
60116
|
+
return true;
|
|
60117
|
+
}
|
|
60118
|
+
return void 0;
|
|
60119
|
+
};
|
|
60120
|
+
_proto.stringifyProperty = function stringifyProperty(name) {
|
|
60121
|
+
return this.raws && this.raws[name] || this[name];
|
|
60122
|
+
};
|
|
60123
|
+
_proto.valueToString = function valueToString() {
|
|
60124
|
+
return String(this.stringifyProperty("value"));
|
|
60125
|
+
};
|
|
60126
|
+
_proto.toString = function toString2() {
|
|
60127
|
+
return [this.rawSpaceBefore, this.valueToString(), this.rawSpaceAfter].join("");
|
|
60128
|
+
};
|
|
60129
|
+
_proto._stringify = function _stringify() {
|
|
60130
|
+
return this.toString();
|
|
60131
|
+
};
|
|
60132
|
+
_createClass(Node5, [{
|
|
60133
|
+
key: "rawSpaceBefore",
|
|
60134
|
+
get: function get() {
|
|
60135
|
+
var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.before;
|
|
60136
|
+
if (rawSpace === void 0) {
|
|
60137
|
+
rawSpace = this.spaces && this.spaces.before;
|
|
60138
|
+
}
|
|
60139
|
+
return rawSpace || "";
|
|
60140
|
+
},
|
|
60141
|
+
set: function set(raw) {
|
|
60142
|
+
(0, _util.ensureObject)(this, "raws", "spaces");
|
|
60143
|
+
this.raws.spaces.before = raw;
|
|
60144
|
+
}
|
|
60145
|
+
}, {
|
|
60146
|
+
key: "rawSpaceAfter",
|
|
60147
|
+
get: function get() {
|
|
60148
|
+
var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.after;
|
|
60149
|
+
if (rawSpace === void 0) {
|
|
60150
|
+
rawSpace = this.spaces.after;
|
|
60151
|
+
}
|
|
60152
|
+
return rawSpace || "";
|
|
60153
|
+
},
|
|
60154
|
+
set: function set(raw) {
|
|
60155
|
+
(0, _util.ensureObject)(this, "raws", "spaces");
|
|
60156
|
+
this.raws.spaces.after = raw;
|
|
60157
|
+
}
|
|
60158
|
+
}]);
|
|
60159
|
+
return Node5;
|
|
60160
|
+
})();
|
|
60161
|
+
module.exports = exports.default;
|
|
60162
|
+
}
|
|
60163
|
+
});
|
|
60164
|
+
|
|
60165
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/types.js
|
|
60166
|
+
var require_types2 = __commonJS({
|
|
60167
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/types.js"(exports) {
|
|
60168
|
+
"use strict";
|
|
60169
|
+
exports.__esModule = true;
|
|
60170
|
+
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;
|
|
60171
|
+
var TAG = exports.TAG = "tag";
|
|
60172
|
+
var STRING = exports.STRING = "string";
|
|
60173
|
+
var SELECTOR = exports.SELECTOR = "selector";
|
|
60174
|
+
var ROOT = exports.ROOT = "root";
|
|
60175
|
+
var PSEUDO = exports.PSEUDO = "pseudo";
|
|
60176
|
+
var NESTING = exports.NESTING = "nesting";
|
|
60177
|
+
var ID = exports.ID = "id";
|
|
60178
|
+
var COMMENT = exports.COMMENT = "comment";
|
|
60179
|
+
var COMBINATOR = exports.COMBINATOR = "combinator";
|
|
60180
|
+
var CLASS = exports.CLASS = "class";
|
|
60181
|
+
var ATTRIBUTE = exports.ATTRIBUTE = "attribute";
|
|
60182
|
+
var UNIVERSAL = exports.UNIVERSAL = "universal";
|
|
60183
|
+
}
|
|
60184
|
+
});
|
|
60185
|
+
|
|
60186
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/container.js
|
|
60187
|
+
var require_container = __commonJS({
|
|
60188
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/container.js"(exports, module) {
|
|
60189
|
+
"use strict";
|
|
60190
|
+
exports.__esModule = true;
|
|
60191
|
+
exports["default"] = void 0;
|
|
60192
|
+
var _util = require_util3();
|
|
60193
|
+
var _node = _interopRequireDefault(require_node());
|
|
60194
|
+
var types4 = _interopRequireWildcard(require_types2());
|
|
60195
|
+
function _interopRequireWildcard(e3, t2) {
|
|
60196
|
+
if ("function" == typeof WeakMap) var r2 = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
60197
|
+
return (_interopRequireWildcard = function _interopRequireWildcard2(e4, t3) {
|
|
60198
|
+
if (!t3 && e4 && e4.__esModule) return e4;
|
|
60199
|
+
var o, i2, f3 = { __proto__: null, "default": e4 };
|
|
60200
|
+
if (null === e4 || "object" != typeof e4 && "function" != typeof e4) return f3;
|
|
60201
|
+
if (o = t3 ? n : r2) {
|
|
60202
|
+
if (o.has(e4)) return o.get(e4);
|
|
60203
|
+
o.set(e4, f3);
|
|
60204
|
+
}
|
|
60205
|
+
for (var _t2 in e4) {
|
|
60206
|
+
"default" !== _t2 && {}.hasOwnProperty.call(e4, _t2) && ((i2 = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e4, _t2)) && (i2.get || i2.set) ? o(f3, _t2, i2) : f3[_t2] = e4[_t2]);
|
|
60207
|
+
}
|
|
60208
|
+
return f3;
|
|
60209
|
+
})(e3, t2);
|
|
60210
|
+
}
|
|
60211
|
+
function _interopRequireDefault(e3) {
|
|
60212
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
60213
|
+
}
|
|
60214
|
+
function _createForOfIteratorHelperLoose(r2, e3) {
|
|
60215
|
+
var t2 = "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
|
|
60216
|
+
if (t2) return (t2 = t2.call(r2)).next.bind(t2);
|
|
60217
|
+
if (Array.isArray(r2) || (t2 = _unsupportedIterableToArray(r2)) || e3 && r2 && "number" == typeof r2.length) {
|
|
60218
|
+
t2 && (r2 = t2);
|
|
60219
|
+
var o = 0;
|
|
60220
|
+
return function() {
|
|
60221
|
+
return o >= r2.length ? { done: true } : { done: false, value: r2[o++] };
|
|
60222
|
+
};
|
|
60223
|
+
}
|
|
60224
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
60225
|
+
}
|
|
60226
|
+
function _unsupportedIterableToArray(r2, a) {
|
|
60227
|
+
if (r2) {
|
|
60228
|
+
if ("string" == typeof r2) return _arrayLikeToArray(r2, a);
|
|
60229
|
+
var t2 = {}.toString.call(r2).slice(8, -1);
|
|
60230
|
+
return "Object" === t2 && r2.constructor && (t2 = r2.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r2) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray(r2, a) : void 0;
|
|
60231
|
+
}
|
|
60232
|
+
}
|
|
60233
|
+
function _arrayLikeToArray(r2, a) {
|
|
60234
|
+
(null == a || a > r2.length) && (a = r2.length);
|
|
60235
|
+
for (var e3 = 0, n = Array(a); e3 < a; e3++) {
|
|
60236
|
+
n[e3] = r2[e3];
|
|
60237
|
+
}
|
|
60238
|
+
return n;
|
|
60239
|
+
}
|
|
60240
|
+
function _defineProperties(e3, r2) {
|
|
60241
|
+
for (var t2 = 0; t2 < r2.length; t2++) {
|
|
60242
|
+
var o = r2[t2];
|
|
60243
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e3, _toPropertyKey(o.key), o);
|
|
60244
|
+
}
|
|
60245
|
+
}
|
|
60246
|
+
function _createClass(e3, r2, t2) {
|
|
60247
|
+
return r2 && _defineProperties(e3.prototype, r2), t2 && _defineProperties(e3, t2), Object.defineProperty(e3, "prototype", { writable: false }), e3;
|
|
60248
|
+
}
|
|
60249
|
+
function _toPropertyKey(t2) {
|
|
60250
|
+
var i2 = _toPrimitive(t2, "string");
|
|
60251
|
+
return "symbol" == typeof i2 ? i2 : i2 + "";
|
|
60252
|
+
}
|
|
60253
|
+
function _toPrimitive(t2, r2) {
|
|
60254
|
+
if ("object" != typeof t2 || !t2) return t2;
|
|
60255
|
+
var e3 = t2[Symbol.toPrimitive];
|
|
60256
|
+
if (void 0 !== e3) {
|
|
60257
|
+
var i2 = e3.call(t2, r2 || "default");
|
|
60258
|
+
if ("object" != typeof i2) return i2;
|
|
60259
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
60260
|
+
}
|
|
60261
|
+
return ("string" === r2 ? String : Number)(t2);
|
|
60262
|
+
}
|
|
60263
|
+
function _inheritsLoose(t2, o) {
|
|
60264
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
60265
|
+
}
|
|
60266
|
+
function _setPrototypeOf(t2, e3) {
|
|
60267
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
60268
|
+
return t3.__proto__ = e4, t3;
|
|
60269
|
+
}, _setPrototypeOf(t2, e3);
|
|
60270
|
+
}
|
|
60271
|
+
var Container = exports["default"] = /* @__PURE__ */ (function(_Node) {
|
|
60272
|
+
_inheritsLoose(Container2, _Node);
|
|
60273
|
+
function Container2(opts) {
|
|
60274
|
+
var _this;
|
|
60275
|
+
_this = _Node.call(this, opts) || this;
|
|
60276
|
+
if (!_this.nodes) {
|
|
60277
|
+
_this.nodes = [];
|
|
60278
|
+
}
|
|
60279
|
+
return _this;
|
|
60280
|
+
}
|
|
60281
|
+
var _proto = Container2.prototype;
|
|
60282
|
+
_proto.append = function append3(selector) {
|
|
60283
|
+
selector.parent = this;
|
|
60284
|
+
this.nodes.push(selector);
|
|
60285
|
+
return this;
|
|
60286
|
+
};
|
|
60287
|
+
_proto.prepend = function prepend2(selector) {
|
|
60288
|
+
selector.parent = this;
|
|
60289
|
+
this.nodes.unshift(selector);
|
|
60290
|
+
for (var id in this.indexes) {
|
|
60291
|
+
this.indexes[id]++;
|
|
60292
|
+
}
|
|
60293
|
+
return this;
|
|
60294
|
+
};
|
|
60295
|
+
_proto.at = function at3(index) {
|
|
60296
|
+
return this.nodes[index];
|
|
60297
|
+
};
|
|
60298
|
+
_proto.index = function index(child) {
|
|
60299
|
+
if (typeof child === "number") {
|
|
60300
|
+
return child;
|
|
60301
|
+
}
|
|
60302
|
+
return this.nodes.indexOf(child);
|
|
60303
|
+
};
|
|
60304
|
+
_proto.removeChild = function removeChild(child) {
|
|
60305
|
+
child = this.index(child);
|
|
60306
|
+
this.at(child).parent = void 0;
|
|
60307
|
+
this.nodes.splice(child, 1);
|
|
60308
|
+
var index;
|
|
60309
|
+
for (var id in this.indexes) {
|
|
60310
|
+
index = this.indexes[id];
|
|
60311
|
+
if (index >= child) {
|
|
60312
|
+
this.indexes[id] = index - 1;
|
|
60313
|
+
}
|
|
60314
|
+
}
|
|
60315
|
+
return this;
|
|
60316
|
+
};
|
|
60317
|
+
_proto.removeAll = function removeAll() {
|
|
60318
|
+
for (var _iterator = _createForOfIteratorHelperLoose(this.nodes), _step; !(_step = _iterator()).done; ) {
|
|
60319
|
+
var node = _step.value;
|
|
60320
|
+
node.parent = void 0;
|
|
60321
|
+
}
|
|
60322
|
+
this.nodes = [];
|
|
60323
|
+
return this;
|
|
60324
|
+
};
|
|
60325
|
+
_proto.empty = function empty() {
|
|
60326
|
+
return this.removeAll();
|
|
60327
|
+
};
|
|
60328
|
+
_proto.insertAfter = function insertAfter(oldNode, newNode) {
|
|
60329
|
+
var _this$nodes;
|
|
60330
|
+
newNode.parent = this;
|
|
60331
|
+
var oldIndex = this.index(oldNode);
|
|
60332
|
+
var resetNode = [];
|
|
60333
|
+
for (var i2 = 2; i2 < arguments.length; i2++) {
|
|
60334
|
+
resetNode.push(arguments[i2]);
|
|
60335
|
+
}
|
|
60336
|
+
(_this$nodes = this.nodes).splice.apply(_this$nodes, [oldIndex + 1, 0, newNode].concat(resetNode));
|
|
60337
|
+
newNode.parent = this;
|
|
60338
|
+
var index;
|
|
60339
|
+
for (var id in this.indexes) {
|
|
60340
|
+
index = this.indexes[id];
|
|
60341
|
+
if (oldIndex < index) {
|
|
60342
|
+
this.indexes[id] = index + arguments.length - 1;
|
|
60343
|
+
}
|
|
60344
|
+
}
|
|
60345
|
+
return this;
|
|
60346
|
+
};
|
|
60347
|
+
_proto.insertBefore = function insertBefore(oldNode, newNode) {
|
|
60348
|
+
var _this$nodes2;
|
|
60349
|
+
newNode.parent = this;
|
|
60350
|
+
var oldIndex = this.index(oldNode);
|
|
60351
|
+
var resetNode = [];
|
|
60352
|
+
for (var i2 = 2; i2 < arguments.length; i2++) {
|
|
60353
|
+
resetNode.push(arguments[i2]);
|
|
60354
|
+
}
|
|
60355
|
+
(_this$nodes2 = this.nodes).splice.apply(_this$nodes2, [oldIndex, 0, newNode].concat(resetNode));
|
|
60356
|
+
newNode.parent = this;
|
|
60357
|
+
var index;
|
|
60358
|
+
for (var id in this.indexes) {
|
|
60359
|
+
index = this.indexes[id];
|
|
60360
|
+
if (index >= oldIndex) {
|
|
60361
|
+
this.indexes[id] = index + arguments.length - 1;
|
|
60362
|
+
}
|
|
60363
|
+
}
|
|
60364
|
+
return this;
|
|
60365
|
+
};
|
|
60366
|
+
_proto._findChildAtPosition = function _findChildAtPosition(line, col) {
|
|
60367
|
+
var found = void 0;
|
|
60368
|
+
this.each(function(node) {
|
|
60369
|
+
if (node.atPosition) {
|
|
60370
|
+
var foundChild = node.atPosition(line, col);
|
|
60371
|
+
if (foundChild) {
|
|
60372
|
+
found = foundChild;
|
|
60373
|
+
return false;
|
|
60374
|
+
}
|
|
60375
|
+
} else if (node.isAtPosition(line, col)) {
|
|
60376
|
+
found = node;
|
|
60377
|
+
return false;
|
|
60378
|
+
}
|
|
60379
|
+
});
|
|
60380
|
+
return found;
|
|
60381
|
+
};
|
|
60382
|
+
_proto.atPosition = function atPosition(line, col) {
|
|
60383
|
+
if (this.isAtPosition(line, col)) {
|
|
60384
|
+
return this._findChildAtPosition(line, col) || this;
|
|
60385
|
+
} else {
|
|
60386
|
+
return void 0;
|
|
60387
|
+
}
|
|
60388
|
+
};
|
|
60389
|
+
_proto._inferEndPosition = function _inferEndPosition() {
|
|
60390
|
+
if (this.last && this.last.source && this.last.source.end) {
|
|
60391
|
+
this.source = this.source || {};
|
|
60392
|
+
this.source.end = this.source.end || {};
|
|
60393
|
+
Object.assign(this.source.end, this.last.source.end);
|
|
60394
|
+
}
|
|
60395
|
+
};
|
|
60396
|
+
_proto.each = function each(callback) {
|
|
60397
|
+
if (!this.lastEach) {
|
|
60398
|
+
this.lastEach = 0;
|
|
60399
|
+
}
|
|
60400
|
+
if (!this.indexes) {
|
|
60401
|
+
this.indexes = {};
|
|
60402
|
+
}
|
|
60403
|
+
this.lastEach++;
|
|
60404
|
+
var id = this.lastEach;
|
|
60405
|
+
this.indexes[id] = 0;
|
|
60406
|
+
if (!this.length) {
|
|
60407
|
+
return void 0;
|
|
60408
|
+
}
|
|
60409
|
+
var index, result;
|
|
60410
|
+
while (this.indexes[id] < this.length) {
|
|
60411
|
+
index = this.indexes[id];
|
|
60412
|
+
result = callback(this.at(index), index);
|
|
60413
|
+
if (result === false) {
|
|
60414
|
+
break;
|
|
60415
|
+
}
|
|
60416
|
+
this.indexes[id] += 1;
|
|
60417
|
+
}
|
|
60418
|
+
delete this.indexes[id];
|
|
60419
|
+
if (result === false) {
|
|
60420
|
+
return false;
|
|
60421
|
+
}
|
|
60422
|
+
};
|
|
60423
|
+
_proto.walk = function walk(callback) {
|
|
60424
|
+
return this.each(function(node, i2) {
|
|
60425
|
+
var result = callback(node, i2);
|
|
60426
|
+
if (result !== false && node.length) {
|
|
60427
|
+
result = node.walk(callback);
|
|
60428
|
+
}
|
|
60429
|
+
if (result === false) {
|
|
60430
|
+
return false;
|
|
60431
|
+
}
|
|
60432
|
+
});
|
|
60433
|
+
};
|
|
60434
|
+
_proto.walkAttributes = function walkAttributes(callback) {
|
|
60435
|
+
var _this2 = this;
|
|
60436
|
+
return this.walk(function(selector) {
|
|
60437
|
+
if (selector.type === types4.ATTRIBUTE) {
|
|
60438
|
+
return callback.call(_this2, selector);
|
|
60439
|
+
}
|
|
60440
|
+
});
|
|
60441
|
+
};
|
|
60442
|
+
_proto.walkClasses = function walkClasses(callback) {
|
|
60443
|
+
var _this3 = this;
|
|
60444
|
+
return this.walk(function(selector) {
|
|
60445
|
+
if (selector.type === types4.CLASS) {
|
|
60446
|
+
return callback.call(_this3, selector);
|
|
60447
|
+
}
|
|
60448
|
+
});
|
|
60449
|
+
};
|
|
60450
|
+
_proto.walkCombinators = function walkCombinators(callback) {
|
|
60451
|
+
var _this4 = this;
|
|
60452
|
+
return this.walk(function(selector) {
|
|
60453
|
+
if (selector.type === types4.COMBINATOR) {
|
|
60454
|
+
return callback.call(_this4, selector);
|
|
60455
|
+
}
|
|
60456
|
+
});
|
|
60457
|
+
};
|
|
60458
|
+
_proto.walkComments = function walkComments(callback) {
|
|
60459
|
+
var _this5 = this;
|
|
60460
|
+
return this.walk(function(selector) {
|
|
60461
|
+
if (selector.type === types4.COMMENT) {
|
|
60462
|
+
return callback.call(_this5, selector);
|
|
60463
|
+
}
|
|
60464
|
+
});
|
|
60465
|
+
};
|
|
60466
|
+
_proto.walkIds = function walkIds(callback) {
|
|
60467
|
+
var _this6 = this;
|
|
60468
|
+
return this.walk(function(selector) {
|
|
60469
|
+
if (selector.type === types4.ID) {
|
|
60470
|
+
return callback.call(_this6, selector);
|
|
60471
|
+
}
|
|
60472
|
+
});
|
|
60473
|
+
};
|
|
60474
|
+
_proto.walkNesting = function walkNesting(callback) {
|
|
60475
|
+
var _this7 = this;
|
|
60476
|
+
return this.walk(function(selector) {
|
|
60477
|
+
if (selector.type === types4.NESTING) {
|
|
60478
|
+
return callback.call(_this7, selector);
|
|
60479
|
+
}
|
|
60480
|
+
});
|
|
60481
|
+
};
|
|
60482
|
+
_proto.walkPseudos = function walkPseudos(callback) {
|
|
60483
|
+
var _this8 = this;
|
|
60484
|
+
return this.walk(function(selector) {
|
|
60485
|
+
if (selector.type === types4.PSEUDO) {
|
|
60486
|
+
return callback.call(_this8, selector);
|
|
60487
|
+
}
|
|
60488
|
+
});
|
|
60489
|
+
};
|
|
60490
|
+
_proto.walkTags = function walkTags(callback) {
|
|
60491
|
+
var _this9 = this;
|
|
60492
|
+
return this.walk(function(selector) {
|
|
60493
|
+
if (selector.type === types4.TAG) {
|
|
60494
|
+
return callback.call(_this9, selector);
|
|
60495
|
+
}
|
|
60496
|
+
});
|
|
60497
|
+
};
|
|
60498
|
+
_proto.walkUniversals = function walkUniversals(callback) {
|
|
60499
|
+
var _this0 = this;
|
|
60500
|
+
return this.walk(function(selector) {
|
|
60501
|
+
if (selector.type === types4.UNIVERSAL) {
|
|
60502
|
+
return callback.call(_this0, selector);
|
|
60503
|
+
}
|
|
60504
|
+
});
|
|
60505
|
+
};
|
|
60506
|
+
_proto.split = function split(callback) {
|
|
60507
|
+
var _this1 = this;
|
|
60508
|
+
var current = [];
|
|
60509
|
+
return this.reduce(function(memo, node, index) {
|
|
60510
|
+
var split2 = callback.call(_this1, node);
|
|
60511
|
+
current.push(node);
|
|
60512
|
+
if (split2) {
|
|
60513
|
+
memo.push(current);
|
|
60514
|
+
current = [];
|
|
60515
|
+
} else if (index === _this1.length - 1) {
|
|
60516
|
+
memo.push(current);
|
|
60517
|
+
}
|
|
60518
|
+
return memo;
|
|
60519
|
+
}, []);
|
|
60520
|
+
};
|
|
60521
|
+
_proto.map = function map(callback) {
|
|
60522
|
+
return this.nodes.map(callback);
|
|
60523
|
+
};
|
|
60524
|
+
_proto.reduce = function reduce(callback, memo) {
|
|
60525
|
+
return this.nodes.reduce(callback, memo);
|
|
60526
|
+
};
|
|
60527
|
+
_proto.every = function every(callback) {
|
|
60528
|
+
return this.nodes.every(callback);
|
|
60529
|
+
};
|
|
60530
|
+
_proto.some = function some(callback) {
|
|
60531
|
+
return this.nodes.some(callback);
|
|
60532
|
+
};
|
|
60533
|
+
_proto.filter = function filter2(callback) {
|
|
60534
|
+
return this.nodes.filter(callback);
|
|
60535
|
+
};
|
|
60536
|
+
_proto.sort = function sort(callback) {
|
|
60537
|
+
return this.nodes.sort(callback);
|
|
60538
|
+
};
|
|
60539
|
+
_proto.toString = function toString2(options) {
|
|
60540
|
+
if (options === void 0) {
|
|
60541
|
+
options = {};
|
|
60542
|
+
}
|
|
60543
|
+
return this._stringify(options, 0, (0, _util.resolveMaxNestingDepth)(options.maxNestingDepth));
|
|
60544
|
+
};
|
|
60545
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
60546
|
+
return this.map(function(child) {
|
|
60547
|
+
return child._stringify(options, depth, max);
|
|
60548
|
+
}).join("");
|
|
60549
|
+
};
|
|
60550
|
+
_createClass(Container2, [{
|
|
60551
|
+
key: "first",
|
|
60552
|
+
get: function get() {
|
|
60553
|
+
return this.at(0);
|
|
60554
|
+
}
|
|
60555
|
+
}, {
|
|
60556
|
+
key: "last",
|
|
60557
|
+
get: function get() {
|
|
60558
|
+
return this.at(this.length - 1);
|
|
60559
|
+
}
|
|
60560
|
+
}, {
|
|
60561
|
+
key: "length",
|
|
60562
|
+
get: function get() {
|
|
60563
|
+
return this.nodes.length;
|
|
60564
|
+
}
|
|
60565
|
+
}]);
|
|
60566
|
+
return Container2;
|
|
60567
|
+
})(_node["default"]);
|
|
60568
|
+
module.exports = exports.default;
|
|
60569
|
+
}
|
|
60570
|
+
});
|
|
60571
|
+
|
|
60572
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/root.js
|
|
60573
|
+
var require_root = __commonJS({
|
|
60574
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/root.js"(exports, module) {
|
|
60575
|
+
"use strict";
|
|
60576
|
+
exports.__esModule = true;
|
|
60577
|
+
exports["default"] = void 0;
|
|
60578
|
+
var _container = _interopRequireDefault(require_container());
|
|
60579
|
+
var _types = require_types2();
|
|
60580
|
+
function _interopRequireDefault(e3) {
|
|
60581
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
60582
|
+
}
|
|
60583
|
+
function _defineProperties(e3, r2) {
|
|
60584
|
+
for (var t2 = 0; t2 < r2.length; t2++) {
|
|
60585
|
+
var o = r2[t2];
|
|
60586
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e3, _toPropertyKey(o.key), o);
|
|
60587
|
+
}
|
|
60588
|
+
}
|
|
60589
|
+
function _createClass(e3, r2, t2) {
|
|
60590
|
+
return r2 && _defineProperties(e3.prototype, r2), t2 && _defineProperties(e3, t2), Object.defineProperty(e3, "prototype", { writable: false }), e3;
|
|
60591
|
+
}
|
|
60592
|
+
function _toPropertyKey(t2) {
|
|
60593
|
+
var i2 = _toPrimitive(t2, "string");
|
|
60594
|
+
return "symbol" == typeof i2 ? i2 : i2 + "";
|
|
60595
|
+
}
|
|
60596
|
+
function _toPrimitive(t2, r2) {
|
|
60597
|
+
if ("object" != typeof t2 || !t2) return t2;
|
|
60598
|
+
var e3 = t2[Symbol.toPrimitive];
|
|
60599
|
+
if (void 0 !== e3) {
|
|
60600
|
+
var i2 = e3.call(t2, r2 || "default");
|
|
60601
|
+
if ("object" != typeof i2) return i2;
|
|
60602
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
60603
|
+
}
|
|
60604
|
+
return ("string" === r2 ? String : Number)(t2);
|
|
60605
|
+
}
|
|
60606
|
+
function _inheritsLoose(t2, o) {
|
|
60607
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
60608
|
+
}
|
|
60609
|
+
function _setPrototypeOf(t2, e3) {
|
|
60610
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
60611
|
+
return t3.__proto__ = e4, t3;
|
|
60612
|
+
}, _setPrototypeOf(t2, e3);
|
|
60613
|
+
}
|
|
60614
|
+
var Root2 = exports["default"] = /* @__PURE__ */ (function(_Container) {
|
|
60615
|
+
_inheritsLoose(Root3, _Container);
|
|
60616
|
+
function Root3(opts) {
|
|
60617
|
+
var _this;
|
|
60618
|
+
_this = _Container.call(this, opts) || this;
|
|
60619
|
+
_this.type = _types.ROOT;
|
|
60620
|
+
return _this;
|
|
60621
|
+
}
|
|
60622
|
+
var _proto = Root3.prototype;
|
|
60623
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
60624
|
+
var str = this.reduce(function(memo, selector) {
|
|
60625
|
+
memo.push(selector._stringify(options, depth, max));
|
|
60626
|
+
return memo;
|
|
60627
|
+
}, []).join(",");
|
|
60628
|
+
return this.trailingComma ? str + "," : str;
|
|
60629
|
+
};
|
|
60630
|
+
_proto.error = function error(message, options) {
|
|
60631
|
+
if (this._error) {
|
|
60632
|
+
return this._error(message, options);
|
|
60633
|
+
} else {
|
|
60634
|
+
return new Error(message);
|
|
60635
|
+
}
|
|
60636
|
+
};
|
|
60637
|
+
_createClass(Root3, [{
|
|
60638
|
+
key: "errorGenerator",
|
|
60639
|
+
set: function set(handler4) {
|
|
60640
|
+
this._error = handler4;
|
|
60641
|
+
}
|
|
60642
|
+
}]);
|
|
60643
|
+
return Root3;
|
|
60644
|
+
})(_container["default"]);
|
|
60645
|
+
module.exports = exports.default;
|
|
60646
|
+
}
|
|
60647
|
+
});
|
|
60648
|
+
|
|
60649
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/selector.js
|
|
60650
|
+
var require_selector = __commonJS({
|
|
60651
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/selector.js"(exports, module) {
|
|
60652
|
+
"use strict";
|
|
60653
|
+
exports.__esModule = true;
|
|
60654
|
+
exports["default"] = void 0;
|
|
60655
|
+
var _container = _interopRequireDefault(require_container());
|
|
60656
|
+
var _types = require_types2();
|
|
60657
|
+
function _interopRequireDefault(e3) {
|
|
60658
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
60659
|
+
}
|
|
60660
|
+
function _inheritsLoose(t2, o) {
|
|
60661
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
60662
|
+
}
|
|
60663
|
+
function _setPrototypeOf(t2, e3) {
|
|
60664
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
60665
|
+
return t3.__proto__ = e4, t3;
|
|
60666
|
+
}, _setPrototypeOf(t2, e3);
|
|
60667
|
+
}
|
|
60668
|
+
var Selector = exports["default"] = /* @__PURE__ */ (function(_Container) {
|
|
60669
|
+
_inheritsLoose(Selector2, _Container);
|
|
60670
|
+
function Selector2(opts) {
|
|
60671
|
+
var _this;
|
|
60672
|
+
_this = _Container.call(this, opts) || this;
|
|
60673
|
+
_this.type = _types.SELECTOR;
|
|
60674
|
+
return _this;
|
|
60675
|
+
}
|
|
60676
|
+
return Selector2;
|
|
60677
|
+
})(_container["default"]);
|
|
60678
|
+
module.exports = exports.default;
|
|
60679
|
+
}
|
|
60680
|
+
});
|
|
60681
|
+
|
|
60682
|
+
// ../../node_modules/.bun/cssesc@3.0.0/node_modules/cssesc/cssesc.js
|
|
60683
|
+
var require_cssesc = __commonJS({
|
|
60684
|
+
"../../node_modules/.bun/cssesc@3.0.0/node_modules/cssesc/cssesc.js"(exports, module) {
|
|
60685
|
+
"use strict";
|
|
60686
|
+
var object = {};
|
|
60687
|
+
var hasOwnProperty2 = object.hasOwnProperty;
|
|
60688
|
+
var merge = function merge2(options, defaults) {
|
|
60689
|
+
if (!options) {
|
|
60690
|
+
return defaults;
|
|
60691
|
+
}
|
|
60692
|
+
var result = {};
|
|
60693
|
+
for (var key2 in defaults) {
|
|
60694
|
+
result[key2] = hasOwnProperty2.call(options, key2) ? options[key2] : defaults[key2];
|
|
60695
|
+
}
|
|
60696
|
+
return result;
|
|
60697
|
+
};
|
|
60698
|
+
var regexAnySingleEscape = /[ -,\.\/:-@\[-\^`\{-~]/;
|
|
60699
|
+
var regexSingleEscape = /[ -,\.\/:-@\[\]\^`\{-~]/;
|
|
60700
|
+
var regexExcessiveSpaces = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g;
|
|
60701
|
+
var cssesc = function cssesc2(string, options) {
|
|
60702
|
+
options = merge(options, cssesc2.options);
|
|
60703
|
+
if (options.quotes != "single" && options.quotes != "double") {
|
|
60704
|
+
options.quotes = "single";
|
|
60705
|
+
}
|
|
60706
|
+
var quote = options.quotes == "double" ? '"' : "'";
|
|
60707
|
+
var isIdentifier = options.isIdentifier;
|
|
60708
|
+
var firstChar = string.charAt(0);
|
|
60709
|
+
var output = "";
|
|
60710
|
+
var counter = 0;
|
|
60711
|
+
var length = string.length;
|
|
60712
|
+
while (counter < length) {
|
|
60713
|
+
var character = string.charAt(counter++);
|
|
60714
|
+
var codePoint = character.charCodeAt();
|
|
60715
|
+
var value = void 0;
|
|
60716
|
+
if (codePoint < 32 || codePoint > 126) {
|
|
60717
|
+
if (codePoint >= 55296 && codePoint <= 56319 && counter < length) {
|
|
60718
|
+
var extra = string.charCodeAt(counter++);
|
|
60719
|
+
if ((extra & 64512) == 56320) {
|
|
60720
|
+
codePoint = ((codePoint & 1023) << 10) + (extra & 1023) + 65536;
|
|
60721
|
+
} else {
|
|
60722
|
+
counter--;
|
|
60723
|
+
}
|
|
60724
|
+
}
|
|
60725
|
+
value = "\\" + codePoint.toString(16).toUpperCase() + " ";
|
|
60726
|
+
} else {
|
|
60727
|
+
if (options.escapeEverything) {
|
|
60728
|
+
if (regexAnySingleEscape.test(character)) {
|
|
60729
|
+
value = "\\" + character;
|
|
60730
|
+
} else {
|
|
60731
|
+
value = "\\" + codePoint.toString(16).toUpperCase() + " ";
|
|
60732
|
+
}
|
|
60733
|
+
} else if (/[\t\n\f\r\x0B]/.test(character)) {
|
|
60734
|
+
value = "\\" + codePoint.toString(16).toUpperCase() + " ";
|
|
60735
|
+
} else if (character == "\\" || !isIdentifier && (character == '"' && quote == character || character == "'" && quote == character) || isIdentifier && regexSingleEscape.test(character)) {
|
|
60736
|
+
value = "\\" + character;
|
|
60737
|
+
} else {
|
|
60738
|
+
value = character;
|
|
60739
|
+
}
|
|
60740
|
+
}
|
|
60741
|
+
output += value;
|
|
60742
|
+
}
|
|
60743
|
+
if (isIdentifier) {
|
|
60744
|
+
if (/^-[-\d]/.test(output)) {
|
|
60745
|
+
output = "\\-" + output.slice(1);
|
|
60746
|
+
} else if (/\d/.test(firstChar)) {
|
|
60747
|
+
output = "\\3" + firstChar + " " + output.slice(1);
|
|
60748
|
+
}
|
|
60749
|
+
}
|
|
60750
|
+
output = output.replace(regexExcessiveSpaces, function($0, $1, $22) {
|
|
60751
|
+
if ($1 && $1.length % 2) {
|
|
60752
|
+
return $0;
|
|
60753
|
+
}
|
|
60754
|
+
return ($1 || "") + $22;
|
|
60755
|
+
});
|
|
60756
|
+
if (!isIdentifier && options.wrap) {
|
|
60757
|
+
return quote + output + quote;
|
|
60758
|
+
}
|
|
60759
|
+
return output;
|
|
60760
|
+
};
|
|
60761
|
+
cssesc.options = {
|
|
60762
|
+
"escapeEverything": false,
|
|
60763
|
+
"isIdentifier": false,
|
|
60764
|
+
"quotes": "single",
|
|
60765
|
+
"wrap": false
|
|
60766
|
+
};
|
|
60767
|
+
cssesc.version = "3.0.0";
|
|
60768
|
+
module.exports = cssesc;
|
|
60769
|
+
}
|
|
60770
|
+
});
|
|
60771
|
+
|
|
60772
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/className.js
|
|
60773
|
+
var require_className = __commonJS({
|
|
60774
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/className.js"(exports, module) {
|
|
60775
|
+
"use strict";
|
|
60776
|
+
exports.__esModule = true;
|
|
60777
|
+
exports["default"] = void 0;
|
|
60778
|
+
var _cssesc = _interopRequireDefault(require_cssesc());
|
|
60779
|
+
var _util = require_util3();
|
|
60780
|
+
var _node = _interopRequireDefault(require_node());
|
|
60781
|
+
var _types = require_types2();
|
|
60782
|
+
function _interopRequireDefault(e3) {
|
|
60783
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
60784
|
+
}
|
|
60785
|
+
function _defineProperties(e3, r2) {
|
|
60786
|
+
for (var t2 = 0; t2 < r2.length; t2++) {
|
|
60787
|
+
var o = r2[t2];
|
|
60788
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e3, _toPropertyKey(o.key), o);
|
|
60789
|
+
}
|
|
60790
|
+
}
|
|
60791
|
+
function _createClass(e3, r2, t2) {
|
|
60792
|
+
return r2 && _defineProperties(e3.prototype, r2), t2 && _defineProperties(e3, t2), Object.defineProperty(e3, "prototype", { writable: false }), e3;
|
|
60793
|
+
}
|
|
60794
|
+
function _toPropertyKey(t2) {
|
|
60795
|
+
var i2 = _toPrimitive(t2, "string");
|
|
60796
|
+
return "symbol" == typeof i2 ? i2 : i2 + "";
|
|
60797
|
+
}
|
|
60798
|
+
function _toPrimitive(t2, r2) {
|
|
60799
|
+
if ("object" != typeof t2 || !t2) return t2;
|
|
60800
|
+
var e3 = t2[Symbol.toPrimitive];
|
|
60801
|
+
if (void 0 !== e3) {
|
|
60802
|
+
var i2 = e3.call(t2, r2 || "default");
|
|
60803
|
+
if ("object" != typeof i2) return i2;
|
|
60804
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
60805
|
+
}
|
|
60806
|
+
return ("string" === r2 ? String : Number)(t2);
|
|
60807
|
+
}
|
|
60808
|
+
function _inheritsLoose(t2, o) {
|
|
60809
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
60810
|
+
}
|
|
60811
|
+
function _setPrototypeOf(t2, e3) {
|
|
60812
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
60813
|
+
return t3.__proto__ = e4, t3;
|
|
60814
|
+
}, _setPrototypeOf(t2, e3);
|
|
60815
|
+
}
|
|
60816
|
+
var ClassName = exports["default"] = /* @__PURE__ */ (function(_Node) {
|
|
60817
|
+
_inheritsLoose(ClassName2, _Node);
|
|
60818
|
+
function ClassName2(opts) {
|
|
60819
|
+
var _this;
|
|
60820
|
+
_this = _Node.call(this, opts) || this;
|
|
60821
|
+
_this.type = _types.CLASS;
|
|
60822
|
+
_this._constructed = true;
|
|
60823
|
+
return _this;
|
|
60824
|
+
}
|
|
60825
|
+
var _proto = ClassName2.prototype;
|
|
60826
|
+
_proto.valueToString = function valueToString() {
|
|
60827
|
+
return "." + _Node.prototype.valueToString.call(this);
|
|
60828
|
+
};
|
|
60829
|
+
_createClass(ClassName2, [{
|
|
60830
|
+
key: "value",
|
|
60831
|
+
get: function get() {
|
|
60832
|
+
return this._value;
|
|
60833
|
+
},
|
|
60834
|
+
set: function set(v2) {
|
|
60835
|
+
if (this._constructed) {
|
|
60836
|
+
var escaped = (0, _cssesc["default"])(v2, {
|
|
60837
|
+
isIdentifier: true
|
|
60838
|
+
});
|
|
60839
|
+
if (escaped !== v2) {
|
|
60840
|
+
(0, _util.ensureObject)(this, "raws");
|
|
60841
|
+
this.raws.value = escaped;
|
|
60842
|
+
} else if (this.raws) {
|
|
60843
|
+
delete this.raws.value;
|
|
60844
|
+
}
|
|
60845
|
+
}
|
|
60846
|
+
this._value = v2;
|
|
60847
|
+
}
|
|
60848
|
+
}]);
|
|
60849
|
+
return ClassName2;
|
|
60850
|
+
})(_node["default"]);
|
|
60851
|
+
module.exports = exports.default;
|
|
60852
|
+
}
|
|
60853
|
+
});
|
|
60854
|
+
|
|
60855
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/comment.js
|
|
60856
|
+
var require_comment = __commonJS({
|
|
60857
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/comment.js"(exports, module) {
|
|
60858
|
+
"use strict";
|
|
60859
|
+
exports.__esModule = true;
|
|
60860
|
+
exports["default"] = void 0;
|
|
60861
|
+
var _node = _interopRequireDefault(require_node());
|
|
60862
|
+
var _types = require_types2();
|
|
60863
|
+
function _interopRequireDefault(e3) {
|
|
60864
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
60865
|
+
}
|
|
60866
|
+
function _inheritsLoose(t2, o) {
|
|
60867
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
60868
|
+
}
|
|
60869
|
+
function _setPrototypeOf(t2, e3) {
|
|
60870
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
60871
|
+
return t3.__proto__ = e4, t3;
|
|
60872
|
+
}, _setPrototypeOf(t2, e3);
|
|
60873
|
+
}
|
|
60874
|
+
var Comment5 = exports["default"] = /* @__PURE__ */ (function(_Node) {
|
|
60875
|
+
_inheritsLoose(Comment6, _Node);
|
|
60876
|
+
function Comment6(opts) {
|
|
60877
|
+
var _this;
|
|
60878
|
+
_this = _Node.call(this, opts) || this;
|
|
60879
|
+
_this.type = _types.COMMENT;
|
|
60880
|
+
return _this;
|
|
60881
|
+
}
|
|
60882
|
+
return Comment6;
|
|
60883
|
+
})(_node["default"]);
|
|
60884
|
+
module.exports = exports.default;
|
|
60885
|
+
}
|
|
60886
|
+
});
|
|
60887
|
+
|
|
60888
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/id.js
|
|
60889
|
+
var require_id = __commonJS({
|
|
60890
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/id.js"(exports, module) {
|
|
60891
|
+
"use strict";
|
|
60892
|
+
exports.__esModule = true;
|
|
60893
|
+
exports["default"] = void 0;
|
|
60894
|
+
var _node = _interopRequireDefault(require_node());
|
|
60895
|
+
var _types = require_types2();
|
|
60896
|
+
function _interopRequireDefault(e3) {
|
|
60897
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
60898
|
+
}
|
|
60899
|
+
function _inheritsLoose(t2, o) {
|
|
60900
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
60901
|
+
}
|
|
60902
|
+
function _setPrototypeOf(t2, e3) {
|
|
60903
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
60904
|
+
return t3.__proto__ = e4, t3;
|
|
60905
|
+
}, _setPrototypeOf(t2, e3);
|
|
60906
|
+
}
|
|
60907
|
+
var ID = exports["default"] = /* @__PURE__ */ (function(_Node) {
|
|
60908
|
+
_inheritsLoose(ID2, _Node);
|
|
60909
|
+
function ID2(opts) {
|
|
60910
|
+
var _this;
|
|
60911
|
+
_this = _Node.call(this, opts) || this;
|
|
60912
|
+
_this.type = _types.ID;
|
|
60913
|
+
return _this;
|
|
60914
|
+
}
|
|
60915
|
+
var _proto = ID2.prototype;
|
|
60916
|
+
_proto.valueToString = function valueToString() {
|
|
60917
|
+
return "#" + _Node.prototype.valueToString.call(this);
|
|
60918
|
+
};
|
|
60919
|
+
return ID2;
|
|
60920
|
+
})(_node["default"]);
|
|
60921
|
+
module.exports = exports.default;
|
|
60922
|
+
}
|
|
60923
|
+
});
|
|
60924
|
+
|
|
60925
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/namespace.js
|
|
60926
|
+
var require_namespace = __commonJS({
|
|
60927
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/namespace.js"(exports, module) {
|
|
60928
|
+
"use strict";
|
|
60929
|
+
exports.__esModule = true;
|
|
60930
|
+
exports["default"] = void 0;
|
|
60931
|
+
var _cssesc = _interopRequireDefault(require_cssesc());
|
|
60932
|
+
var _util = require_util3();
|
|
60933
|
+
var _node = _interopRequireDefault(require_node());
|
|
60934
|
+
function _interopRequireDefault(e3) {
|
|
60935
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
60936
|
+
}
|
|
60937
|
+
function _defineProperties(e3, r2) {
|
|
60938
|
+
for (var t2 = 0; t2 < r2.length; t2++) {
|
|
60939
|
+
var o = r2[t2];
|
|
60940
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e3, _toPropertyKey(o.key), o);
|
|
60941
|
+
}
|
|
60942
|
+
}
|
|
60943
|
+
function _createClass(e3, r2, t2) {
|
|
60944
|
+
return r2 && _defineProperties(e3.prototype, r2), t2 && _defineProperties(e3, t2), Object.defineProperty(e3, "prototype", { writable: false }), e3;
|
|
60945
|
+
}
|
|
60946
|
+
function _toPropertyKey(t2) {
|
|
60947
|
+
var i2 = _toPrimitive(t2, "string");
|
|
60948
|
+
return "symbol" == typeof i2 ? i2 : i2 + "";
|
|
60949
|
+
}
|
|
60950
|
+
function _toPrimitive(t2, r2) {
|
|
60951
|
+
if ("object" != typeof t2 || !t2) return t2;
|
|
60952
|
+
var e3 = t2[Symbol.toPrimitive];
|
|
60953
|
+
if (void 0 !== e3) {
|
|
60954
|
+
var i2 = e3.call(t2, r2 || "default");
|
|
60955
|
+
if ("object" != typeof i2) return i2;
|
|
60956
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
60957
|
+
}
|
|
60958
|
+
return ("string" === r2 ? String : Number)(t2);
|
|
60959
|
+
}
|
|
60960
|
+
function _inheritsLoose(t2, o) {
|
|
60961
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
60962
|
+
}
|
|
60963
|
+
function _setPrototypeOf(t2, e3) {
|
|
60964
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
60965
|
+
return t3.__proto__ = e4, t3;
|
|
60966
|
+
}, _setPrototypeOf(t2, e3);
|
|
60967
|
+
}
|
|
60968
|
+
var Namespace = exports["default"] = /* @__PURE__ */ (function(_Node) {
|
|
60969
|
+
_inheritsLoose(Namespace2, _Node);
|
|
60970
|
+
function Namespace2() {
|
|
60971
|
+
return _Node.apply(this, arguments) || this;
|
|
60972
|
+
}
|
|
60973
|
+
var _proto = Namespace2.prototype;
|
|
60974
|
+
_proto.qualifiedName = function qualifiedName(value) {
|
|
60975
|
+
if (this.namespace) {
|
|
60976
|
+
return this.namespaceString + "|" + value;
|
|
60977
|
+
} else {
|
|
60978
|
+
return value;
|
|
60979
|
+
}
|
|
60980
|
+
};
|
|
60981
|
+
_proto.valueToString = function valueToString() {
|
|
60982
|
+
return this.qualifiedName(_Node.prototype.valueToString.call(this));
|
|
60983
|
+
};
|
|
60984
|
+
_createClass(Namespace2, [{
|
|
60985
|
+
key: "namespace",
|
|
60986
|
+
get: function get() {
|
|
60987
|
+
return this._namespace;
|
|
60988
|
+
},
|
|
60989
|
+
set: function set(namespace) {
|
|
60990
|
+
if (namespace === true || namespace === "*" || namespace === "&") {
|
|
60991
|
+
this._namespace = namespace;
|
|
60992
|
+
if (this.raws) {
|
|
60993
|
+
delete this.raws.namespace;
|
|
60994
|
+
}
|
|
60995
|
+
return;
|
|
60996
|
+
}
|
|
60997
|
+
var escaped = (0, _cssesc["default"])(namespace, {
|
|
60998
|
+
isIdentifier: true
|
|
60999
|
+
});
|
|
61000
|
+
this._namespace = namespace;
|
|
61001
|
+
if (escaped !== namespace) {
|
|
61002
|
+
(0, _util.ensureObject)(this, "raws");
|
|
61003
|
+
this.raws.namespace = escaped;
|
|
61004
|
+
} else if (this.raws) {
|
|
61005
|
+
delete this.raws.namespace;
|
|
61006
|
+
}
|
|
61007
|
+
}
|
|
61008
|
+
}, {
|
|
61009
|
+
key: "ns",
|
|
61010
|
+
get: function get() {
|
|
61011
|
+
return this._namespace;
|
|
61012
|
+
},
|
|
61013
|
+
set: function set(namespace) {
|
|
61014
|
+
this.namespace = namespace;
|
|
61015
|
+
}
|
|
61016
|
+
}, {
|
|
61017
|
+
key: "namespaceString",
|
|
61018
|
+
get: function get() {
|
|
61019
|
+
if (this.namespace) {
|
|
61020
|
+
var ns = this.stringifyProperty("namespace");
|
|
61021
|
+
if (ns === true) {
|
|
61022
|
+
return "";
|
|
61023
|
+
} else {
|
|
61024
|
+
return ns;
|
|
61025
|
+
}
|
|
61026
|
+
} else {
|
|
61027
|
+
return "";
|
|
61028
|
+
}
|
|
61029
|
+
}
|
|
61030
|
+
}]);
|
|
61031
|
+
return Namespace2;
|
|
61032
|
+
})(_node["default"]);
|
|
61033
|
+
module.exports = exports.default;
|
|
61034
|
+
}
|
|
61035
|
+
});
|
|
61036
|
+
|
|
61037
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/tag.js
|
|
61038
|
+
var require_tag = __commonJS({
|
|
61039
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/tag.js"(exports, module) {
|
|
61040
|
+
"use strict";
|
|
61041
|
+
exports.__esModule = true;
|
|
61042
|
+
exports["default"] = void 0;
|
|
61043
|
+
var _namespace = _interopRequireDefault(require_namespace());
|
|
61044
|
+
var _types = require_types2();
|
|
61045
|
+
function _interopRequireDefault(e3) {
|
|
61046
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
61047
|
+
}
|
|
61048
|
+
function _inheritsLoose(t2, o) {
|
|
61049
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
61050
|
+
}
|
|
61051
|
+
function _setPrototypeOf(t2, e3) {
|
|
61052
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
61053
|
+
return t3.__proto__ = e4, t3;
|
|
61054
|
+
}, _setPrototypeOf(t2, e3);
|
|
61055
|
+
}
|
|
61056
|
+
var Tag2 = exports["default"] = /* @__PURE__ */ (function(_Namespace) {
|
|
61057
|
+
_inheritsLoose(Tag3, _Namespace);
|
|
61058
|
+
function Tag3(opts) {
|
|
61059
|
+
var _this;
|
|
61060
|
+
_this = _Namespace.call(this, opts) || this;
|
|
61061
|
+
_this.type = _types.TAG;
|
|
61062
|
+
return _this;
|
|
61063
|
+
}
|
|
61064
|
+
return Tag3;
|
|
61065
|
+
})(_namespace["default"]);
|
|
61066
|
+
module.exports = exports.default;
|
|
61067
|
+
}
|
|
61068
|
+
});
|
|
61069
|
+
|
|
61070
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/string.js
|
|
61071
|
+
var require_string = __commonJS({
|
|
61072
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/string.js"(exports, module) {
|
|
61073
|
+
"use strict";
|
|
61074
|
+
exports.__esModule = true;
|
|
61075
|
+
exports["default"] = void 0;
|
|
61076
|
+
var _node = _interopRequireDefault(require_node());
|
|
61077
|
+
var _types = require_types2();
|
|
61078
|
+
function _interopRequireDefault(e3) {
|
|
61079
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
61080
|
+
}
|
|
61081
|
+
function _inheritsLoose(t2, o) {
|
|
61082
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
61083
|
+
}
|
|
61084
|
+
function _setPrototypeOf(t2, e3) {
|
|
61085
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
61086
|
+
return t3.__proto__ = e4, t3;
|
|
61087
|
+
}, _setPrototypeOf(t2, e3);
|
|
61088
|
+
}
|
|
61089
|
+
var String2 = exports["default"] = /* @__PURE__ */ (function(_Node) {
|
|
61090
|
+
_inheritsLoose(String3, _Node);
|
|
61091
|
+
function String3(opts) {
|
|
61092
|
+
var _this;
|
|
61093
|
+
_this = _Node.call(this, opts) || this;
|
|
61094
|
+
_this.type = _types.STRING;
|
|
61095
|
+
return _this;
|
|
61096
|
+
}
|
|
61097
|
+
return String3;
|
|
61098
|
+
})(_node["default"]);
|
|
61099
|
+
module.exports = exports.default;
|
|
61100
|
+
}
|
|
61101
|
+
});
|
|
61102
|
+
|
|
61103
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/pseudo.js
|
|
61104
|
+
var require_pseudo = __commonJS({
|
|
61105
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/pseudo.js"(exports, module) {
|
|
61106
|
+
"use strict";
|
|
61107
|
+
exports.__esModule = true;
|
|
61108
|
+
exports["default"] = void 0;
|
|
61109
|
+
var _container = _interopRequireDefault(require_container());
|
|
61110
|
+
var _types = require_types2();
|
|
61111
|
+
function _interopRequireDefault(e3) {
|
|
61112
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
61113
|
+
}
|
|
61114
|
+
function _inheritsLoose(t2, o) {
|
|
61115
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
61116
|
+
}
|
|
61117
|
+
function _setPrototypeOf(t2, e3) {
|
|
61118
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
61119
|
+
return t3.__proto__ = e4, t3;
|
|
61120
|
+
}, _setPrototypeOf(t2, e3);
|
|
61121
|
+
}
|
|
61122
|
+
var Pseudo = exports["default"] = /* @__PURE__ */ (function(_Container) {
|
|
61123
|
+
_inheritsLoose(Pseudo2, _Container);
|
|
61124
|
+
function Pseudo2(opts) {
|
|
61125
|
+
var _this;
|
|
61126
|
+
_this = _Container.call(this, opts) || this;
|
|
61127
|
+
_this.type = _types.PSEUDO;
|
|
61128
|
+
return _this;
|
|
61129
|
+
}
|
|
61130
|
+
var _proto = Pseudo2.prototype;
|
|
61131
|
+
_proto._stringify = function _stringify(options, depth, max) {
|
|
61132
|
+
if (depth >= max) {
|
|
61133
|
+
throw new Error("Cannot serialize selector: nesting depth exceeds the maximum of " + max + ".");
|
|
61134
|
+
}
|
|
61135
|
+
var params = this.length ? "(" + this.map(function(child) {
|
|
61136
|
+
return child._stringify(options, depth + 1, max);
|
|
61137
|
+
}).join(",") + ")" : "";
|
|
61138
|
+
return [this.rawSpaceBefore, this.stringifyProperty("value"), params, this.rawSpaceAfter].join("");
|
|
61139
|
+
};
|
|
61140
|
+
return Pseudo2;
|
|
61141
|
+
})(_container["default"]);
|
|
61142
|
+
module.exports = exports.default;
|
|
61143
|
+
}
|
|
61144
|
+
});
|
|
61145
|
+
|
|
61146
|
+
// ../../node_modules/.bun/util-deprecate@1.0.2/node_modules/util-deprecate/node.js
|
|
61147
|
+
var require_node2 = __commonJS({
|
|
61148
|
+
"../../node_modules/.bun/util-deprecate@1.0.2/node_modules/util-deprecate/node.js"(exports, module) {
|
|
61149
|
+
"use strict";
|
|
61150
|
+
module.exports = __require("util").deprecate;
|
|
61151
|
+
}
|
|
61152
|
+
});
|
|
61153
|
+
|
|
61154
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/attribute.js
|
|
61155
|
+
var require_attribute = __commonJS({
|
|
61156
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/attribute.js"(exports) {
|
|
61157
|
+
"use strict";
|
|
61158
|
+
exports.__esModule = true;
|
|
61159
|
+
exports["default"] = void 0;
|
|
61160
|
+
exports.unescapeValue = unescapeValue;
|
|
61161
|
+
var _cssesc = _interopRequireDefault(require_cssesc());
|
|
61162
|
+
var _unesc = _interopRequireDefault(require_unesc());
|
|
61163
|
+
var _namespace = _interopRequireDefault(require_namespace());
|
|
61164
|
+
var _types = require_types2();
|
|
61165
|
+
var _CSSESC_QUOTE_OPTIONS;
|
|
61166
|
+
function _interopRequireDefault(e3) {
|
|
61167
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
61168
|
+
}
|
|
61169
|
+
function _defineProperties(e3, r2) {
|
|
61170
|
+
for (var t2 = 0; t2 < r2.length; t2++) {
|
|
61171
|
+
var o = r2[t2];
|
|
61172
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e3, _toPropertyKey(o.key), o);
|
|
61173
|
+
}
|
|
61174
|
+
}
|
|
61175
|
+
function _createClass(e3, r2, t2) {
|
|
61176
|
+
return r2 && _defineProperties(e3.prototype, r2), t2 && _defineProperties(e3, t2), Object.defineProperty(e3, "prototype", { writable: false }), e3;
|
|
61177
|
+
}
|
|
61178
|
+
function _toPropertyKey(t2) {
|
|
61179
|
+
var i2 = _toPrimitive(t2, "string");
|
|
61180
|
+
return "symbol" == typeof i2 ? i2 : i2 + "";
|
|
61181
|
+
}
|
|
61182
|
+
function _toPrimitive(t2, r2) {
|
|
61183
|
+
if ("object" != typeof t2 || !t2) return t2;
|
|
61184
|
+
var e3 = t2[Symbol.toPrimitive];
|
|
61185
|
+
if (void 0 !== e3) {
|
|
61186
|
+
var i2 = e3.call(t2, r2 || "default");
|
|
61187
|
+
if ("object" != typeof i2) return i2;
|
|
61188
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
61189
|
+
}
|
|
61190
|
+
return ("string" === r2 ? String : Number)(t2);
|
|
61191
|
+
}
|
|
61192
|
+
function _inheritsLoose(t2, o) {
|
|
61193
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
61194
|
+
}
|
|
61195
|
+
function _setPrototypeOf(t2, e3) {
|
|
61196
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
61197
|
+
return t3.__proto__ = e4, t3;
|
|
61198
|
+
}, _setPrototypeOf(t2, e3);
|
|
61199
|
+
}
|
|
61200
|
+
var deprecate3 = require_node2();
|
|
61201
|
+
var WRAPPED_IN_QUOTES = /^('|")([^]*)\1$/;
|
|
61202
|
+
var warnOfDeprecatedValueAssignment = deprecate3(function() {
|
|
61203
|
+
}, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead.");
|
|
61204
|
+
var warnOfDeprecatedQuotedAssignment = deprecate3(function() {
|
|
61205
|
+
}, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.");
|
|
61206
|
+
var warnOfDeprecatedConstructor = deprecate3(function() {
|
|
61207
|
+
}, "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");
|
|
61208
|
+
function unescapeValue(value) {
|
|
61209
|
+
var deprecatedUsage = false;
|
|
61210
|
+
var quoteMark = null;
|
|
61211
|
+
var unescaped = value;
|
|
61212
|
+
var m2 = unescaped.match(WRAPPED_IN_QUOTES);
|
|
61213
|
+
if (m2) {
|
|
61214
|
+
quoteMark = m2[1];
|
|
61215
|
+
unescaped = m2[2];
|
|
61216
|
+
}
|
|
61217
|
+
unescaped = (0, _unesc["default"])(unescaped);
|
|
61218
|
+
if (unescaped !== value) {
|
|
61219
|
+
deprecatedUsage = true;
|
|
61220
|
+
}
|
|
61221
|
+
return {
|
|
61222
|
+
deprecatedUsage,
|
|
61223
|
+
unescaped,
|
|
61224
|
+
quoteMark
|
|
61225
|
+
};
|
|
61226
|
+
}
|
|
61227
|
+
function handleDeprecatedContructorOpts(opts) {
|
|
61228
|
+
if (opts.quoteMark !== void 0) {
|
|
61229
|
+
return opts;
|
|
61230
|
+
}
|
|
61231
|
+
if (opts.value === void 0) {
|
|
61232
|
+
return opts;
|
|
61233
|
+
}
|
|
61234
|
+
warnOfDeprecatedConstructor();
|
|
61235
|
+
var _unescapeValue = unescapeValue(opts.value), quoteMark = _unescapeValue.quoteMark, unescaped = _unescapeValue.unescaped;
|
|
61236
|
+
if (!opts.raws) {
|
|
61237
|
+
opts.raws = {};
|
|
61238
|
+
}
|
|
61239
|
+
if (opts.raws.value === void 0) {
|
|
61240
|
+
opts.raws.value = opts.value;
|
|
61241
|
+
}
|
|
61242
|
+
opts.value = unescaped;
|
|
61243
|
+
opts.quoteMark = quoteMark;
|
|
61244
|
+
return opts;
|
|
61245
|
+
}
|
|
61246
|
+
var Attribute = exports["default"] = /* @__PURE__ */ (function(_Namespace) {
|
|
61247
|
+
_inheritsLoose(Attribute2, _Namespace);
|
|
61248
|
+
function Attribute2(opts) {
|
|
61249
|
+
var _this;
|
|
61250
|
+
if (opts === void 0) {
|
|
61251
|
+
opts = {};
|
|
61252
|
+
}
|
|
61253
|
+
_this = _Namespace.call(this, handleDeprecatedContructorOpts(opts)) || this;
|
|
61254
|
+
_this.type = _types.ATTRIBUTE;
|
|
61255
|
+
_this.raws = _this.raws || {};
|
|
61256
|
+
Object.defineProperty(_this.raws, "unquoted", {
|
|
61257
|
+
get: deprecate3(function() {
|
|
61258
|
+
return _this.value;
|
|
61259
|
+
}, "attr.raws.unquoted is deprecated. Call attr.value instead."),
|
|
61260
|
+
set: deprecate3(function() {
|
|
61261
|
+
return _this.value;
|
|
61262
|
+
}, "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")
|
|
61263
|
+
});
|
|
61264
|
+
_this._constructed = true;
|
|
61265
|
+
return _this;
|
|
61266
|
+
}
|
|
61267
|
+
var _proto = Attribute2.prototype;
|
|
61268
|
+
_proto.getQuotedValue = function getQuotedValue(options) {
|
|
61269
|
+
if (options === void 0) {
|
|
61270
|
+
options = {};
|
|
61271
|
+
}
|
|
61272
|
+
var quoteMark = this._determineQuoteMark(options);
|
|
61273
|
+
var cssescopts = CSSESC_QUOTE_OPTIONS[quoteMark];
|
|
61274
|
+
var escaped = (0, _cssesc["default"])(this._value, cssescopts);
|
|
61275
|
+
return escaped;
|
|
61276
|
+
};
|
|
61277
|
+
_proto._determineQuoteMark = function _determineQuoteMark(options) {
|
|
61278
|
+
return options.smart ? this.smartQuoteMark(options) : this.preferredQuoteMark(options);
|
|
61279
|
+
};
|
|
61280
|
+
_proto.setValue = function setValue(value, options) {
|
|
61281
|
+
if (options === void 0) {
|
|
61282
|
+
options = {};
|
|
61283
|
+
}
|
|
61284
|
+
this._value = value;
|
|
61285
|
+
this._quoteMark = this._determineQuoteMark(options);
|
|
61286
|
+
this._syncRawValue();
|
|
61287
|
+
};
|
|
61288
|
+
_proto.smartQuoteMark = function smartQuoteMark(options) {
|
|
61289
|
+
var v2 = this.value;
|
|
61290
|
+
var numSingleQuotes = v2.replace(/[^']/g, "").length;
|
|
61291
|
+
var numDoubleQuotes = v2.replace(/[^"]/g, "").length;
|
|
61292
|
+
if (numSingleQuotes + numDoubleQuotes === 0) {
|
|
61293
|
+
var escaped = (0, _cssesc["default"])(v2, {
|
|
61294
|
+
isIdentifier: true
|
|
61295
|
+
});
|
|
61296
|
+
if (escaped === v2) {
|
|
61297
|
+
return Attribute2.NO_QUOTE;
|
|
61298
|
+
} else {
|
|
61299
|
+
var pref = this.preferredQuoteMark(options);
|
|
61300
|
+
if (pref === Attribute2.NO_QUOTE) {
|
|
61301
|
+
var quote = this.quoteMark || options.quoteMark || Attribute2.DOUBLE_QUOTE;
|
|
61302
|
+
var opts = CSSESC_QUOTE_OPTIONS[quote];
|
|
61303
|
+
var quoteValue = (0, _cssesc["default"])(v2, opts);
|
|
61304
|
+
if (quoteValue.length < escaped.length) {
|
|
61305
|
+
return quote;
|
|
61306
|
+
}
|
|
61307
|
+
}
|
|
61308
|
+
return pref;
|
|
61309
|
+
}
|
|
61310
|
+
} else if (numDoubleQuotes === numSingleQuotes) {
|
|
61311
|
+
return this.preferredQuoteMark(options);
|
|
61312
|
+
} else if (numDoubleQuotes < numSingleQuotes) {
|
|
61313
|
+
return Attribute2.DOUBLE_QUOTE;
|
|
61314
|
+
} else {
|
|
61315
|
+
return Attribute2.SINGLE_QUOTE;
|
|
61316
|
+
}
|
|
61317
|
+
};
|
|
61318
|
+
_proto.preferredQuoteMark = function preferredQuoteMark(options) {
|
|
61319
|
+
var quoteMark = options.preferCurrentQuoteMark ? this.quoteMark : options.quoteMark;
|
|
61320
|
+
if (quoteMark === void 0) {
|
|
61321
|
+
quoteMark = options.preferCurrentQuoteMark ? options.quoteMark : this.quoteMark;
|
|
61322
|
+
}
|
|
61323
|
+
if (quoteMark === void 0) {
|
|
61324
|
+
quoteMark = Attribute2.DOUBLE_QUOTE;
|
|
61325
|
+
}
|
|
61326
|
+
return quoteMark;
|
|
61327
|
+
};
|
|
61328
|
+
_proto._syncRawValue = function _syncRawValue() {
|
|
61329
|
+
var rawValue = (0, _cssesc["default"])(this._value, CSSESC_QUOTE_OPTIONS[this.quoteMark]);
|
|
61330
|
+
if (rawValue === this._value) {
|
|
61331
|
+
if (this.raws) {
|
|
61332
|
+
delete this.raws.value;
|
|
61333
|
+
}
|
|
61334
|
+
} else {
|
|
61335
|
+
this.raws.value = rawValue;
|
|
61336
|
+
}
|
|
61337
|
+
};
|
|
61338
|
+
_proto._handleEscapes = function _handleEscapes(prop2, value) {
|
|
61339
|
+
if (this._constructed) {
|
|
61340
|
+
var escaped = (0, _cssesc["default"])(value, {
|
|
61341
|
+
isIdentifier: true
|
|
61342
|
+
});
|
|
61343
|
+
if (escaped !== value) {
|
|
61344
|
+
this.raws[prop2] = escaped;
|
|
61345
|
+
} else {
|
|
61346
|
+
delete this.raws[prop2];
|
|
61347
|
+
}
|
|
61348
|
+
}
|
|
61349
|
+
};
|
|
61350
|
+
_proto._spacesFor = function _spacesFor(name) {
|
|
61351
|
+
var attrSpaces = {
|
|
61352
|
+
before: "",
|
|
61353
|
+
after: ""
|
|
61354
|
+
};
|
|
61355
|
+
var spaces = this.spaces[name] || {};
|
|
61356
|
+
var rawSpaces = this.raws.spaces && this.raws.spaces[name] || {};
|
|
61357
|
+
return Object.assign(attrSpaces, spaces, rawSpaces);
|
|
61358
|
+
};
|
|
61359
|
+
_proto._stringFor = function _stringFor(name, spaceName, concat) {
|
|
61360
|
+
if (spaceName === void 0) {
|
|
61361
|
+
spaceName = name;
|
|
61362
|
+
}
|
|
61363
|
+
if (concat === void 0) {
|
|
61364
|
+
concat = defaultAttrConcat;
|
|
61365
|
+
}
|
|
61366
|
+
var attrSpaces = this._spacesFor(spaceName);
|
|
61367
|
+
return concat(this.stringifyProperty(name), attrSpaces);
|
|
61368
|
+
};
|
|
61369
|
+
_proto.offsetOf = function offsetOf(name) {
|
|
61370
|
+
var count = 1;
|
|
61371
|
+
var attributeSpaces = this._spacesFor("attribute");
|
|
61372
|
+
count += attributeSpaces.before.length;
|
|
61373
|
+
if (name === "namespace" || name === "ns") {
|
|
61374
|
+
return this.namespace ? count : -1;
|
|
61375
|
+
}
|
|
61376
|
+
if (name === "attributeNS") {
|
|
61377
|
+
return count;
|
|
61378
|
+
}
|
|
61379
|
+
count += this.namespaceString.length;
|
|
61380
|
+
if (this.namespace) {
|
|
61381
|
+
count += 1;
|
|
61382
|
+
}
|
|
61383
|
+
if (name === "attribute") {
|
|
61384
|
+
return count;
|
|
61385
|
+
}
|
|
61386
|
+
count += this.stringifyProperty("attribute").length;
|
|
61387
|
+
count += attributeSpaces.after.length;
|
|
61388
|
+
var operatorSpaces = this._spacesFor("operator");
|
|
61389
|
+
count += operatorSpaces.before.length;
|
|
61390
|
+
var operator = this.stringifyProperty("operator");
|
|
61391
|
+
if (name === "operator") {
|
|
61392
|
+
return operator ? count : -1;
|
|
61393
|
+
}
|
|
61394
|
+
count += operator.length;
|
|
61395
|
+
count += operatorSpaces.after.length;
|
|
61396
|
+
var valueSpaces = this._spacesFor("value");
|
|
61397
|
+
count += valueSpaces.before.length;
|
|
61398
|
+
var value = this.stringifyProperty("value");
|
|
61399
|
+
if (name === "value") {
|
|
61400
|
+
return value ? count : -1;
|
|
61401
|
+
}
|
|
61402
|
+
count += value.length;
|
|
61403
|
+
count += valueSpaces.after.length;
|
|
61404
|
+
var insensitiveSpaces = this._spacesFor("insensitive");
|
|
61405
|
+
count += insensitiveSpaces.before.length;
|
|
61406
|
+
if (name === "insensitive") {
|
|
61407
|
+
return this.insensitive ? count : -1;
|
|
61408
|
+
}
|
|
61409
|
+
return -1;
|
|
61410
|
+
};
|
|
61411
|
+
_proto.toString = function toString2() {
|
|
61412
|
+
var _this2 = this;
|
|
61413
|
+
var selector = [this.rawSpaceBefore, "["];
|
|
61414
|
+
selector.push(this._stringFor("qualifiedAttribute", "attribute"));
|
|
61415
|
+
if (this.operator && (this.value || this.value === "")) {
|
|
61416
|
+
selector.push(this._stringFor("operator"));
|
|
61417
|
+
selector.push(this._stringFor("value"));
|
|
61418
|
+
selector.push(this._stringFor("insensitiveFlag", "insensitive", function(attrValue, attrSpaces) {
|
|
61419
|
+
if (attrValue.length > 0 && !_this2.quoted && attrSpaces.before.length === 0 && !(_this2.spaces.value && _this2.spaces.value.after)) {
|
|
61420
|
+
attrSpaces.before = " ";
|
|
61421
|
+
}
|
|
61422
|
+
return defaultAttrConcat(attrValue, attrSpaces);
|
|
61423
|
+
}));
|
|
61424
|
+
}
|
|
61425
|
+
selector.push("]");
|
|
61426
|
+
selector.push(this.rawSpaceAfter);
|
|
61427
|
+
return selector.join("");
|
|
61428
|
+
};
|
|
61429
|
+
_createClass(Attribute2, [{
|
|
61430
|
+
key: "quoted",
|
|
61431
|
+
get: function get() {
|
|
61432
|
+
var qm = this.quoteMark;
|
|
61433
|
+
return qm === "'" || qm === '"';
|
|
61434
|
+
},
|
|
61435
|
+
set: function set(value) {
|
|
61436
|
+
warnOfDeprecatedQuotedAssignment();
|
|
61437
|
+
}
|
|
61438
|
+
/**
|
|
61439
|
+
* returns a single (`'`) or double (`"`) quote character if the value is quoted.
|
|
61440
|
+
* returns `null` if the value is not quoted.
|
|
61441
|
+
* returns `undefined` if the quotation state is unknown (this can happen when
|
|
61442
|
+
* the attribute is constructed without specifying a quote mark.)
|
|
61443
|
+
*/
|
|
61444
|
+
}, {
|
|
61445
|
+
key: "quoteMark",
|
|
61446
|
+
get: function get() {
|
|
61447
|
+
return this._quoteMark;
|
|
61448
|
+
},
|
|
61449
|
+
set: function set(quoteMark) {
|
|
61450
|
+
if (!this._constructed) {
|
|
61451
|
+
this._quoteMark = quoteMark;
|
|
61452
|
+
return;
|
|
61453
|
+
}
|
|
61454
|
+
if (this._quoteMark !== quoteMark) {
|
|
61455
|
+
this._quoteMark = quoteMark;
|
|
61456
|
+
this._syncRawValue();
|
|
61457
|
+
}
|
|
61458
|
+
}
|
|
61459
|
+
}, {
|
|
61460
|
+
key: "qualifiedAttribute",
|
|
61461
|
+
get: function get() {
|
|
61462
|
+
return this.qualifiedName(this.raws.attribute || this.attribute);
|
|
61463
|
+
}
|
|
61464
|
+
}, {
|
|
61465
|
+
key: "insensitiveFlag",
|
|
61466
|
+
get: function get() {
|
|
61467
|
+
return this.insensitive ? "i" : "";
|
|
61468
|
+
}
|
|
61469
|
+
}, {
|
|
61470
|
+
key: "value",
|
|
61471
|
+
get: function get() {
|
|
61472
|
+
return this._value;
|
|
61473
|
+
},
|
|
61474
|
+
set: (
|
|
61475
|
+
/**
|
|
61476
|
+
* Before 3.0, the value had to be set to an escaped value including any wrapped
|
|
61477
|
+
* quote marks. In 3.0, the semantics of `Attribute.value` changed so that the value
|
|
61478
|
+
* is unescaped during parsing and any quote marks are removed.
|
|
61479
|
+
*
|
|
61480
|
+
* Because the ambiguity of this semantic change, if you set `attr.value = newValue`,
|
|
61481
|
+
* a deprecation warning is raised when the new value contains any characters that would
|
|
61482
|
+
* require escaping (including if it contains wrapped quotes).
|
|
61483
|
+
*
|
|
61484
|
+
* Instead, you should call `attr.setValue(newValue, opts)` and pass options that describe
|
|
61485
|
+
* how the new value is quoted.
|
|
61486
|
+
*/
|
|
61487
|
+
function set(v2) {
|
|
61488
|
+
if (this._constructed) {
|
|
61489
|
+
var _unescapeValue2 = unescapeValue(v2), deprecatedUsage = _unescapeValue2.deprecatedUsage, unescaped = _unescapeValue2.unescaped, quoteMark = _unescapeValue2.quoteMark;
|
|
61490
|
+
if (deprecatedUsage) {
|
|
61491
|
+
warnOfDeprecatedValueAssignment();
|
|
61492
|
+
}
|
|
61493
|
+
if (unescaped === this._value && quoteMark === this._quoteMark) {
|
|
61494
|
+
return;
|
|
61495
|
+
}
|
|
61496
|
+
this._value = unescaped;
|
|
61497
|
+
this._quoteMark = quoteMark;
|
|
61498
|
+
this._syncRawValue();
|
|
61499
|
+
} else {
|
|
61500
|
+
this._value = v2;
|
|
61501
|
+
}
|
|
61502
|
+
}
|
|
61503
|
+
)
|
|
61504
|
+
}, {
|
|
61505
|
+
key: "insensitive",
|
|
61506
|
+
get: function get() {
|
|
61507
|
+
return this._insensitive;
|
|
61508
|
+
},
|
|
61509
|
+
set: function set(insensitive) {
|
|
61510
|
+
if (!insensitive) {
|
|
61511
|
+
this._insensitive = false;
|
|
61512
|
+
if (this.raws && (this.raws.insensitiveFlag === "I" || this.raws.insensitiveFlag === "i")) {
|
|
61513
|
+
this.raws.insensitiveFlag = void 0;
|
|
61514
|
+
}
|
|
61515
|
+
}
|
|
61516
|
+
this._insensitive = insensitive;
|
|
61517
|
+
}
|
|
61518
|
+
}, {
|
|
61519
|
+
key: "attribute",
|
|
61520
|
+
get: function get() {
|
|
61521
|
+
return this._attribute;
|
|
61522
|
+
},
|
|
61523
|
+
set: function set(name) {
|
|
61524
|
+
this._handleEscapes("attribute", name);
|
|
61525
|
+
this._attribute = name;
|
|
61526
|
+
}
|
|
61527
|
+
}]);
|
|
61528
|
+
return Attribute2;
|
|
61529
|
+
})(_namespace["default"]);
|
|
61530
|
+
Attribute.NO_QUOTE = null;
|
|
61531
|
+
Attribute.SINGLE_QUOTE = "'";
|
|
61532
|
+
Attribute.DOUBLE_QUOTE = '"';
|
|
61533
|
+
var CSSESC_QUOTE_OPTIONS = (_CSSESC_QUOTE_OPTIONS = {
|
|
61534
|
+
"'": {
|
|
61535
|
+
quotes: "single",
|
|
61536
|
+
wrap: true
|
|
61537
|
+
},
|
|
61538
|
+
'"': {
|
|
61539
|
+
quotes: "double",
|
|
61540
|
+
wrap: true
|
|
61541
|
+
}
|
|
61542
|
+
}, _CSSESC_QUOTE_OPTIONS[null] = {
|
|
61543
|
+
isIdentifier: true
|
|
61544
|
+
}, _CSSESC_QUOTE_OPTIONS);
|
|
61545
|
+
function defaultAttrConcat(attrValue, attrSpaces) {
|
|
61546
|
+
return "" + attrSpaces.before + attrValue + attrSpaces.after;
|
|
61547
|
+
}
|
|
61548
|
+
}
|
|
61549
|
+
});
|
|
61550
|
+
|
|
61551
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/universal.js
|
|
61552
|
+
var require_universal = __commonJS({
|
|
61553
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/universal.js"(exports, module) {
|
|
61554
|
+
"use strict";
|
|
61555
|
+
exports.__esModule = true;
|
|
61556
|
+
exports["default"] = void 0;
|
|
61557
|
+
var _namespace = _interopRequireDefault(require_namespace());
|
|
61558
|
+
var _types = require_types2();
|
|
61559
|
+
function _interopRequireDefault(e3) {
|
|
61560
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
61561
|
+
}
|
|
61562
|
+
function _inheritsLoose(t2, o) {
|
|
61563
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
61564
|
+
}
|
|
61565
|
+
function _setPrototypeOf(t2, e3) {
|
|
61566
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
61567
|
+
return t3.__proto__ = e4, t3;
|
|
61568
|
+
}, _setPrototypeOf(t2, e3);
|
|
61569
|
+
}
|
|
61570
|
+
var Universal = exports["default"] = /* @__PURE__ */ (function(_Namespace) {
|
|
61571
|
+
_inheritsLoose(Universal2, _Namespace);
|
|
61572
|
+
function Universal2(opts) {
|
|
61573
|
+
var _this;
|
|
61574
|
+
_this = _Namespace.call(this, opts) || this;
|
|
61575
|
+
_this.type = _types.UNIVERSAL;
|
|
61576
|
+
_this.value = "*";
|
|
61577
|
+
return _this;
|
|
61578
|
+
}
|
|
61579
|
+
return Universal2;
|
|
61580
|
+
})(_namespace["default"]);
|
|
61581
|
+
module.exports = exports.default;
|
|
61582
|
+
}
|
|
61583
|
+
});
|
|
61584
|
+
|
|
61585
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/combinator.js
|
|
61586
|
+
var require_combinator = __commonJS({
|
|
61587
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/combinator.js"(exports, module) {
|
|
61588
|
+
"use strict";
|
|
61589
|
+
exports.__esModule = true;
|
|
61590
|
+
exports["default"] = void 0;
|
|
61591
|
+
var _node = _interopRequireDefault(require_node());
|
|
61592
|
+
var _types = require_types2();
|
|
61593
|
+
function _interopRequireDefault(e3) {
|
|
61594
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
61595
|
+
}
|
|
61596
|
+
function _inheritsLoose(t2, o) {
|
|
61597
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
61598
|
+
}
|
|
61599
|
+
function _setPrototypeOf(t2, e3) {
|
|
61600
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
61601
|
+
return t3.__proto__ = e4, t3;
|
|
61602
|
+
}, _setPrototypeOf(t2, e3);
|
|
61603
|
+
}
|
|
61604
|
+
var Combinator = exports["default"] = /* @__PURE__ */ (function(_Node) {
|
|
61605
|
+
_inheritsLoose(Combinator2, _Node);
|
|
61606
|
+
function Combinator2(opts) {
|
|
61607
|
+
var _this;
|
|
61608
|
+
_this = _Node.call(this, opts) || this;
|
|
61609
|
+
_this.type = _types.COMBINATOR;
|
|
61610
|
+
return _this;
|
|
61611
|
+
}
|
|
61612
|
+
return Combinator2;
|
|
61613
|
+
})(_node["default"]);
|
|
61614
|
+
module.exports = exports.default;
|
|
61615
|
+
}
|
|
61616
|
+
});
|
|
61617
|
+
|
|
61618
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/nesting.js
|
|
61619
|
+
var require_nesting = __commonJS({
|
|
61620
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/nesting.js"(exports, module) {
|
|
61621
|
+
"use strict";
|
|
61622
|
+
exports.__esModule = true;
|
|
61623
|
+
exports["default"] = void 0;
|
|
61624
|
+
var _node = _interopRequireDefault(require_node());
|
|
61625
|
+
var _types = require_types2();
|
|
61626
|
+
function _interopRequireDefault(e3) {
|
|
61627
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
61628
|
+
}
|
|
61629
|
+
function _inheritsLoose(t2, o) {
|
|
61630
|
+
t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
|
|
61631
|
+
}
|
|
61632
|
+
function _setPrototypeOf(t2, e3) {
|
|
61633
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e4) {
|
|
61634
|
+
return t3.__proto__ = e4, t3;
|
|
61635
|
+
}, _setPrototypeOf(t2, e3);
|
|
61636
|
+
}
|
|
61637
|
+
var Nesting = exports["default"] = /* @__PURE__ */ (function(_Node) {
|
|
61638
|
+
_inheritsLoose(Nesting2, _Node);
|
|
61639
|
+
function Nesting2(opts) {
|
|
61640
|
+
var _this;
|
|
61641
|
+
_this = _Node.call(this, opts) || this;
|
|
61642
|
+
_this.type = _types.NESTING;
|
|
61643
|
+
_this.value = "&";
|
|
61644
|
+
return _this;
|
|
61645
|
+
}
|
|
61646
|
+
return Nesting2;
|
|
61647
|
+
})(_node["default"]);
|
|
61648
|
+
module.exports = exports.default;
|
|
61649
|
+
}
|
|
61650
|
+
});
|
|
61651
|
+
|
|
61652
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/sortAscending.js
|
|
61653
|
+
var require_sortAscending = __commonJS({
|
|
61654
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/sortAscending.js"(exports, module) {
|
|
61655
|
+
"use strict";
|
|
61656
|
+
exports.__esModule = true;
|
|
61657
|
+
exports["default"] = sortAscending;
|
|
61658
|
+
function sortAscending(list) {
|
|
61659
|
+
return list.sort(function(a, b2) {
|
|
61660
|
+
return a - b2;
|
|
61661
|
+
});
|
|
61662
|
+
}
|
|
61663
|
+
module.exports = exports.default;
|
|
61664
|
+
}
|
|
61665
|
+
});
|
|
61666
|
+
|
|
61667
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/tokenTypes.js
|
|
61668
|
+
var require_tokenTypes = __commonJS({
|
|
61669
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/tokenTypes.js"(exports) {
|
|
61670
|
+
"use strict";
|
|
61671
|
+
exports.__esModule = true;
|
|
61672
|
+
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;
|
|
61673
|
+
var ampersand = exports.ampersand = 38;
|
|
61674
|
+
var asterisk = exports.asterisk = 42;
|
|
61675
|
+
var at3 = exports.at = 64;
|
|
61676
|
+
var comma = exports.comma = 44;
|
|
61677
|
+
var colon = exports.colon = 58;
|
|
61678
|
+
var semicolon = exports.semicolon = 59;
|
|
61679
|
+
var openParenthesis = exports.openParenthesis = 40;
|
|
61680
|
+
var closeParenthesis = exports.closeParenthesis = 41;
|
|
61681
|
+
var openSquare = exports.openSquare = 91;
|
|
61682
|
+
var closeSquare = exports.closeSquare = 93;
|
|
61683
|
+
var dollar = exports.dollar = 36;
|
|
61684
|
+
var tilde = exports.tilde = 126;
|
|
61685
|
+
var caret = exports.caret = 94;
|
|
61686
|
+
var plus = exports.plus = 43;
|
|
61687
|
+
var equals = exports.equals = 61;
|
|
61688
|
+
var pipe = exports.pipe = 124;
|
|
61689
|
+
var greaterThan = exports.greaterThan = 62;
|
|
61690
|
+
var space = exports.space = 32;
|
|
61691
|
+
var singleQuote = exports.singleQuote = 39;
|
|
61692
|
+
var doubleQuote = exports.doubleQuote = 34;
|
|
61693
|
+
var slash = exports.slash = 47;
|
|
61694
|
+
var bang = exports.bang = 33;
|
|
61695
|
+
var backslash = exports.backslash = 92;
|
|
61696
|
+
var cr = exports.cr = 13;
|
|
61697
|
+
var feed = exports.feed = 12;
|
|
61698
|
+
var newline = exports.newline = 10;
|
|
61699
|
+
var tab = exports.tab = 9;
|
|
61700
|
+
var str = exports.str = singleQuote;
|
|
61701
|
+
var comment = exports.comment = -1;
|
|
61702
|
+
var word = exports.word = -2;
|
|
61703
|
+
var combinator = exports.combinator = -3;
|
|
61704
|
+
}
|
|
61705
|
+
});
|
|
61706
|
+
|
|
61707
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/tokenize.js
|
|
61708
|
+
var require_tokenize = __commonJS({
|
|
61709
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/tokenize.js"(exports) {
|
|
61710
|
+
"use strict";
|
|
61711
|
+
exports.__esModule = true;
|
|
61712
|
+
exports.FIELDS = void 0;
|
|
61713
|
+
exports["default"] = tokenize;
|
|
61714
|
+
var t2 = _interopRequireWildcard(require_tokenTypes());
|
|
61715
|
+
var _unescapable;
|
|
61716
|
+
var _wordDelimiters;
|
|
61717
|
+
function _interopRequireWildcard(e3, t3) {
|
|
61718
|
+
if ("function" == typeof WeakMap) var r2 = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
61719
|
+
return (_interopRequireWildcard = function _interopRequireWildcard2(e4, t4) {
|
|
61720
|
+
if (!t4 && e4 && e4.__esModule) return e4;
|
|
61721
|
+
var o, i3, f3 = { __proto__: null, "default": e4 };
|
|
61722
|
+
if (null === e4 || "object" != typeof e4 && "function" != typeof e4) return f3;
|
|
61723
|
+
if (o = t4 ? n : r2) {
|
|
61724
|
+
if (o.has(e4)) return o.get(e4);
|
|
61725
|
+
o.set(e4, f3);
|
|
61726
|
+
}
|
|
61727
|
+
for (var _t2 in e4) {
|
|
61728
|
+
"default" !== _t2 && {}.hasOwnProperty.call(e4, _t2) && ((i3 = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e4, _t2)) && (i3.get || i3.set) ? o(f3, _t2, i3) : f3[_t2] = e4[_t2]);
|
|
61729
|
+
}
|
|
61730
|
+
return f3;
|
|
61731
|
+
})(e3, t3);
|
|
61732
|
+
}
|
|
61733
|
+
var unescapable = (_unescapable = {}, _unescapable[t2.tab] = true, _unescapable[t2.newline] = true, _unescapable[t2.cr] = true, _unescapable[t2.feed] = true, _unescapable);
|
|
61734
|
+
var wordDelimiters = (_wordDelimiters = {}, _wordDelimiters[t2.space] = true, _wordDelimiters[t2.tab] = true, _wordDelimiters[t2.newline] = true, _wordDelimiters[t2.cr] = true, _wordDelimiters[t2.feed] = true, _wordDelimiters[t2.ampersand] = true, _wordDelimiters[t2.asterisk] = true, _wordDelimiters[t2.bang] = true, _wordDelimiters[t2.comma] = true, _wordDelimiters[t2.colon] = true, _wordDelimiters[t2.semicolon] = true, _wordDelimiters[t2.openParenthesis] = true, _wordDelimiters[t2.closeParenthesis] = true, _wordDelimiters[t2.openSquare] = true, _wordDelimiters[t2.closeSquare] = true, _wordDelimiters[t2.singleQuote] = true, _wordDelimiters[t2.doubleQuote] = true, _wordDelimiters[t2.plus] = true, _wordDelimiters[t2.pipe] = true, _wordDelimiters[t2.tilde] = true, _wordDelimiters[t2.greaterThan] = true, _wordDelimiters[t2.equals] = true, _wordDelimiters[t2.dollar] = true, _wordDelimiters[t2.caret] = true, _wordDelimiters[t2.slash] = true, _wordDelimiters);
|
|
61735
|
+
var hex = {};
|
|
61736
|
+
var hexChars = "0123456789abcdefABCDEF";
|
|
61737
|
+
for (i2 = 0; i2 < hexChars.length; i2++) {
|
|
61738
|
+
hex[hexChars.charCodeAt(i2)] = true;
|
|
61739
|
+
}
|
|
61740
|
+
var i2;
|
|
61741
|
+
function consumeWord(css, start) {
|
|
61742
|
+
var next = start;
|
|
61743
|
+
var code;
|
|
61744
|
+
do {
|
|
61745
|
+
code = css.charCodeAt(next);
|
|
61746
|
+
if (wordDelimiters[code]) {
|
|
61747
|
+
return next - 1;
|
|
61748
|
+
} else if (code === t2.backslash) {
|
|
61749
|
+
next = consumeEscape(css, next) + 1;
|
|
61750
|
+
} else {
|
|
61751
|
+
next++;
|
|
61752
|
+
}
|
|
61753
|
+
} while (next < css.length);
|
|
61754
|
+
return next - 1;
|
|
61755
|
+
}
|
|
61756
|
+
function consumeEscape(css, start) {
|
|
61757
|
+
var next = start;
|
|
61758
|
+
var code = css.charCodeAt(next + 1);
|
|
61759
|
+
if (unescapable[code]) {
|
|
61760
|
+
} else if (hex[code]) {
|
|
61761
|
+
var hexDigits = 0;
|
|
61762
|
+
do {
|
|
61763
|
+
next++;
|
|
61764
|
+
hexDigits++;
|
|
61765
|
+
code = css.charCodeAt(next + 1);
|
|
61766
|
+
} while (hex[code] && hexDigits < 6);
|
|
61767
|
+
if (hexDigits < 6 && code === t2.space) {
|
|
61768
|
+
next++;
|
|
61769
|
+
}
|
|
61770
|
+
} else {
|
|
61771
|
+
next++;
|
|
61772
|
+
}
|
|
61773
|
+
return next;
|
|
61774
|
+
}
|
|
61775
|
+
var FIELDS = exports.FIELDS = {
|
|
61776
|
+
TYPE: 0,
|
|
61777
|
+
START_LINE: 1,
|
|
61778
|
+
START_COL: 2,
|
|
61779
|
+
END_LINE: 3,
|
|
61780
|
+
END_COL: 4,
|
|
61781
|
+
START_POS: 5,
|
|
61782
|
+
END_POS: 6
|
|
61783
|
+
};
|
|
61784
|
+
function tokenize(input2) {
|
|
61785
|
+
var tokens = [];
|
|
61786
|
+
var css = input2.css.valueOf();
|
|
61787
|
+
var _css = css, length = _css.length;
|
|
61788
|
+
var offset = -1;
|
|
61789
|
+
var line = 1;
|
|
61790
|
+
var start = 0;
|
|
61791
|
+
var end = 0;
|
|
61792
|
+
var code, content, endColumn, endLine, escaped, escapePos, last, lines, next, nextLine, nextOffset, quote, tokenType;
|
|
61793
|
+
function unclosed(what, fix) {
|
|
61794
|
+
if (input2.safe) {
|
|
61795
|
+
css += fix;
|
|
61796
|
+
next = css.length - 1;
|
|
61797
|
+
} else {
|
|
61798
|
+
throw input2.error("Unclosed " + what, line, start - offset, start);
|
|
61799
|
+
}
|
|
61800
|
+
}
|
|
61801
|
+
while (start < length) {
|
|
61802
|
+
code = css.charCodeAt(start);
|
|
61803
|
+
if (code === t2.newline) {
|
|
61804
|
+
offset = start;
|
|
61805
|
+
line += 1;
|
|
61806
|
+
}
|
|
61807
|
+
switch (code) {
|
|
61808
|
+
case t2.space:
|
|
61809
|
+
case t2.tab:
|
|
61810
|
+
case t2.newline:
|
|
61811
|
+
case t2.cr:
|
|
61812
|
+
case t2.feed:
|
|
61813
|
+
next = start;
|
|
61814
|
+
do {
|
|
61815
|
+
next += 1;
|
|
61816
|
+
code = css.charCodeAt(next);
|
|
61817
|
+
if (code === t2.newline) {
|
|
61818
|
+
offset = next;
|
|
61819
|
+
line += 1;
|
|
61820
|
+
}
|
|
61821
|
+
} while (code === t2.space || code === t2.newline || code === t2.tab || code === t2.cr || code === t2.feed);
|
|
61822
|
+
tokenType = t2.space;
|
|
61823
|
+
endLine = line;
|
|
61824
|
+
endColumn = next - offset - 1;
|
|
61825
|
+
end = next;
|
|
61826
|
+
break;
|
|
61827
|
+
case t2.plus:
|
|
61828
|
+
case t2.greaterThan:
|
|
61829
|
+
case t2.tilde:
|
|
61830
|
+
case t2.pipe:
|
|
61831
|
+
next = start;
|
|
61832
|
+
do {
|
|
61833
|
+
next += 1;
|
|
61834
|
+
code = css.charCodeAt(next);
|
|
61835
|
+
} while (code === t2.plus || code === t2.greaterThan || code === t2.tilde || code === t2.pipe);
|
|
61836
|
+
tokenType = t2.combinator;
|
|
61837
|
+
endLine = line;
|
|
61838
|
+
endColumn = start - offset;
|
|
61839
|
+
end = next;
|
|
61840
|
+
break;
|
|
61841
|
+
// Consume these characters as single tokens.
|
|
61842
|
+
case t2.asterisk:
|
|
61843
|
+
case t2.ampersand:
|
|
61844
|
+
case t2.bang:
|
|
61845
|
+
case t2.comma:
|
|
61846
|
+
case t2.equals:
|
|
61847
|
+
case t2.dollar:
|
|
61848
|
+
case t2.caret:
|
|
61849
|
+
case t2.openSquare:
|
|
61850
|
+
case t2.closeSquare:
|
|
61851
|
+
case t2.colon:
|
|
61852
|
+
case t2.semicolon:
|
|
61853
|
+
case t2.openParenthesis:
|
|
61854
|
+
case t2.closeParenthesis:
|
|
61855
|
+
next = start;
|
|
61856
|
+
tokenType = code;
|
|
61857
|
+
endLine = line;
|
|
61858
|
+
endColumn = start - offset;
|
|
61859
|
+
end = next + 1;
|
|
61860
|
+
break;
|
|
61861
|
+
case t2.singleQuote:
|
|
61862
|
+
case t2.doubleQuote:
|
|
61863
|
+
quote = code === t2.singleQuote ? "'" : '"';
|
|
61864
|
+
next = start;
|
|
61865
|
+
do {
|
|
61866
|
+
escaped = false;
|
|
61867
|
+
next = css.indexOf(quote, next + 1);
|
|
61868
|
+
if (next === -1) {
|
|
61869
|
+
unclosed("quote", quote);
|
|
61870
|
+
}
|
|
61871
|
+
escapePos = next;
|
|
61872
|
+
while (css.charCodeAt(escapePos - 1) === t2.backslash) {
|
|
61873
|
+
escapePos -= 1;
|
|
61874
|
+
escaped = !escaped;
|
|
61875
|
+
}
|
|
61876
|
+
} while (escaped);
|
|
61877
|
+
tokenType = t2.str;
|
|
61878
|
+
endLine = line;
|
|
61879
|
+
endColumn = start - offset;
|
|
61880
|
+
end = next + 1;
|
|
61881
|
+
break;
|
|
61882
|
+
default:
|
|
61883
|
+
if (code === t2.slash && css.charCodeAt(start + 1) === t2.asterisk) {
|
|
61884
|
+
next = css.indexOf("*/", start + 2) + 1;
|
|
61885
|
+
if (next === 0) {
|
|
61886
|
+
unclosed("comment", "*/");
|
|
61887
|
+
}
|
|
61888
|
+
content = css.slice(start, next + 1);
|
|
61889
|
+
lines = content.split("\n");
|
|
61890
|
+
last = lines.length - 1;
|
|
61891
|
+
if (last > 0) {
|
|
61892
|
+
nextLine = line + last;
|
|
61893
|
+
nextOffset = next - lines[last].length;
|
|
61894
|
+
} else {
|
|
61895
|
+
nextLine = line;
|
|
61896
|
+
nextOffset = offset;
|
|
61897
|
+
}
|
|
61898
|
+
tokenType = t2.comment;
|
|
61899
|
+
line = nextLine;
|
|
61900
|
+
endLine = nextLine;
|
|
61901
|
+
endColumn = next - nextOffset;
|
|
61902
|
+
} else if (code === t2.slash) {
|
|
61903
|
+
next = start;
|
|
61904
|
+
tokenType = code;
|
|
61905
|
+
endLine = line;
|
|
61906
|
+
endColumn = start - offset;
|
|
61907
|
+
end = next + 1;
|
|
61908
|
+
} else {
|
|
61909
|
+
next = consumeWord(css, start);
|
|
61910
|
+
tokenType = t2.word;
|
|
61911
|
+
endLine = line;
|
|
61912
|
+
endColumn = next - offset;
|
|
61913
|
+
}
|
|
61914
|
+
end = next + 1;
|
|
61915
|
+
break;
|
|
61916
|
+
}
|
|
61917
|
+
tokens.push([
|
|
61918
|
+
tokenType,
|
|
61919
|
+
// [0] Token type
|
|
61920
|
+
line,
|
|
61921
|
+
// [1] Starting line
|
|
61922
|
+
start - offset,
|
|
61923
|
+
// [2] Starting column
|
|
61924
|
+
endLine,
|
|
61925
|
+
// [3] Ending line
|
|
61926
|
+
endColumn,
|
|
61927
|
+
// [4] Ending column
|
|
61928
|
+
start,
|
|
61929
|
+
// [5] Start position / Source index
|
|
61930
|
+
end
|
|
61931
|
+
// [6] End position
|
|
61932
|
+
]);
|
|
61933
|
+
if (nextOffset) {
|
|
61934
|
+
offset = nextOffset;
|
|
61935
|
+
nextOffset = null;
|
|
61936
|
+
}
|
|
61937
|
+
start = end;
|
|
61938
|
+
}
|
|
61939
|
+
return tokens;
|
|
61940
|
+
}
|
|
61941
|
+
}
|
|
61942
|
+
});
|
|
61943
|
+
|
|
61944
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/parser.js
|
|
61945
|
+
var require_parser2 = __commonJS({
|
|
61946
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/parser.js"(exports, module) {
|
|
61947
|
+
"use strict";
|
|
61948
|
+
exports.__esModule = true;
|
|
61949
|
+
exports["default"] = void 0;
|
|
61950
|
+
var _root = _interopRequireDefault(require_root());
|
|
61951
|
+
var _selector = _interopRequireDefault(require_selector());
|
|
61952
|
+
var _className = _interopRequireDefault(require_className());
|
|
61953
|
+
var _comment = _interopRequireDefault(require_comment());
|
|
61954
|
+
var _id = _interopRequireDefault(require_id());
|
|
61955
|
+
var _tag = _interopRequireDefault(require_tag());
|
|
61956
|
+
var _string = _interopRequireDefault(require_string());
|
|
61957
|
+
var _pseudo = _interopRequireDefault(require_pseudo());
|
|
61958
|
+
var _attribute = _interopRequireWildcard(require_attribute());
|
|
61959
|
+
var _universal = _interopRequireDefault(require_universal());
|
|
61960
|
+
var _combinator = _interopRequireDefault(require_combinator());
|
|
61961
|
+
var _nesting = _interopRequireDefault(require_nesting());
|
|
61962
|
+
var _sortAscending = _interopRequireDefault(require_sortAscending());
|
|
61963
|
+
var _tokenize = _interopRequireWildcard(require_tokenize());
|
|
61964
|
+
var tokens = _interopRequireWildcard(require_tokenTypes());
|
|
61965
|
+
var types4 = _interopRequireWildcard(require_types2());
|
|
61966
|
+
var _util = require_util3();
|
|
61967
|
+
var _WHITESPACE_TOKENS;
|
|
61968
|
+
var _Object$assign;
|
|
61969
|
+
function _interopRequireWildcard(e3, t2) {
|
|
61970
|
+
if ("function" == typeof WeakMap) var r2 = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
61971
|
+
return (_interopRequireWildcard = function _interopRequireWildcard2(e4, t3) {
|
|
61972
|
+
if (!t3 && e4 && e4.__esModule) return e4;
|
|
61973
|
+
var o, i2, f3 = { __proto__: null, "default": e4 };
|
|
61974
|
+
if (null === e4 || "object" != typeof e4 && "function" != typeof e4) return f3;
|
|
61975
|
+
if (o = t3 ? n : r2) {
|
|
61976
|
+
if (o.has(e4)) return o.get(e4);
|
|
61977
|
+
o.set(e4, f3);
|
|
61978
|
+
}
|
|
61979
|
+
for (var _t2 in e4) {
|
|
61980
|
+
"default" !== _t2 && {}.hasOwnProperty.call(e4, _t2) && ((i2 = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e4, _t2)) && (i2.get || i2.set) ? o(f3, _t2, i2) : f3[_t2] = e4[_t2]);
|
|
61981
|
+
}
|
|
61982
|
+
return f3;
|
|
61983
|
+
})(e3, t2);
|
|
61984
|
+
}
|
|
61985
|
+
function _interopRequireDefault(e3) {
|
|
61986
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
61987
|
+
}
|
|
61988
|
+
function _defineProperties(e3, r2) {
|
|
61989
|
+
for (var t2 = 0; t2 < r2.length; t2++) {
|
|
61990
|
+
var o = r2[t2];
|
|
61991
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e3, _toPropertyKey(o.key), o);
|
|
61992
|
+
}
|
|
61993
|
+
}
|
|
61994
|
+
function _createClass(e3, r2, t2) {
|
|
61995
|
+
return r2 && _defineProperties(e3.prototype, r2), t2 && _defineProperties(e3, t2), Object.defineProperty(e3, "prototype", { writable: false }), e3;
|
|
61996
|
+
}
|
|
61997
|
+
function _toPropertyKey(t2) {
|
|
61998
|
+
var i2 = _toPrimitive(t2, "string");
|
|
61999
|
+
return "symbol" == typeof i2 ? i2 : i2 + "";
|
|
62000
|
+
}
|
|
62001
|
+
function _toPrimitive(t2, r2) {
|
|
62002
|
+
if ("object" != typeof t2 || !t2) return t2;
|
|
62003
|
+
var e3 = t2[Symbol.toPrimitive];
|
|
62004
|
+
if (void 0 !== e3) {
|
|
62005
|
+
var i2 = e3.call(t2, r2 || "default");
|
|
62006
|
+
if ("object" != typeof i2) return i2;
|
|
62007
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
62008
|
+
}
|
|
62009
|
+
return ("string" === r2 ? String : Number)(t2);
|
|
62010
|
+
}
|
|
62011
|
+
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);
|
|
62012
|
+
var WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign));
|
|
62013
|
+
function tokenStart(token) {
|
|
62014
|
+
return {
|
|
62015
|
+
line: token[_tokenize.FIELDS.START_LINE],
|
|
62016
|
+
column: token[_tokenize.FIELDS.START_COL]
|
|
62017
|
+
};
|
|
62018
|
+
}
|
|
62019
|
+
function tokenEnd(token) {
|
|
62020
|
+
return {
|
|
62021
|
+
line: token[_tokenize.FIELDS.END_LINE],
|
|
62022
|
+
column: token[_tokenize.FIELDS.END_COL]
|
|
62023
|
+
};
|
|
62024
|
+
}
|
|
62025
|
+
function getSource(startLine, startColumn, endLine, endColumn) {
|
|
62026
|
+
return {
|
|
62027
|
+
start: {
|
|
62028
|
+
line: startLine,
|
|
62029
|
+
column: startColumn
|
|
62030
|
+
},
|
|
62031
|
+
end: {
|
|
62032
|
+
line: endLine,
|
|
62033
|
+
column: endColumn
|
|
62034
|
+
}
|
|
62035
|
+
};
|
|
62036
|
+
}
|
|
62037
|
+
function getTokenSource(token) {
|
|
62038
|
+
return getSource(token[_tokenize.FIELDS.START_LINE], token[_tokenize.FIELDS.START_COL], token[_tokenize.FIELDS.END_LINE], token[_tokenize.FIELDS.END_COL]);
|
|
62039
|
+
}
|
|
62040
|
+
function getTokenSourceSpan(startToken, endToken) {
|
|
62041
|
+
if (!startToken) {
|
|
62042
|
+
return void 0;
|
|
62043
|
+
}
|
|
62044
|
+
return getSource(startToken[_tokenize.FIELDS.START_LINE], startToken[_tokenize.FIELDS.START_COL], endToken[_tokenize.FIELDS.END_LINE], endToken[_tokenize.FIELDS.END_COL]);
|
|
62045
|
+
}
|
|
62046
|
+
function unescapeProp(node, prop2) {
|
|
62047
|
+
var value = node[prop2];
|
|
62048
|
+
if (typeof value !== "string") {
|
|
62049
|
+
return;
|
|
62050
|
+
}
|
|
62051
|
+
if (value.indexOf("\\") !== -1) {
|
|
62052
|
+
(0, _util.ensureObject)(node, "raws");
|
|
62053
|
+
node[prop2] = (0, _util.unesc)(value);
|
|
62054
|
+
if (node.raws[prop2] === void 0) {
|
|
62055
|
+
node.raws[prop2] = value;
|
|
62056
|
+
}
|
|
62057
|
+
}
|
|
62058
|
+
return node;
|
|
62059
|
+
}
|
|
62060
|
+
function indexesOf(array, item) {
|
|
62061
|
+
var i2 = -1;
|
|
62062
|
+
var indexes = [];
|
|
62063
|
+
while ((i2 = array.indexOf(item, i2 + 1)) !== -1) {
|
|
62064
|
+
indexes.push(i2);
|
|
62065
|
+
}
|
|
62066
|
+
return indexes;
|
|
62067
|
+
}
|
|
62068
|
+
function uniqs() {
|
|
62069
|
+
var list = Array.prototype.concat.apply([], arguments);
|
|
62070
|
+
return list.filter(function(item, i2) {
|
|
62071
|
+
return i2 === list.indexOf(item);
|
|
62072
|
+
});
|
|
62073
|
+
}
|
|
62074
|
+
var Parser3 = exports["default"] = /* @__PURE__ */ (function() {
|
|
62075
|
+
function Parser4(rule, options) {
|
|
62076
|
+
if (options === void 0) {
|
|
62077
|
+
options = {};
|
|
62078
|
+
}
|
|
62079
|
+
this.rule = rule;
|
|
62080
|
+
this.options = Object.assign({
|
|
62081
|
+
lossy: false,
|
|
62082
|
+
safe: false
|
|
62083
|
+
}, options);
|
|
62084
|
+
this.position = 0;
|
|
62085
|
+
this.nestingDepth = 0;
|
|
62086
|
+
this.maxNestingDepth = (0, _util.resolveMaxNestingDepth)(this.options.maxNestingDepth);
|
|
62087
|
+
this.css = typeof this.rule === "string" ? this.rule : this.rule.selector;
|
|
62088
|
+
this.tokens = (0, _tokenize["default"])({
|
|
62089
|
+
css: this.css,
|
|
62090
|
+
error: this._errorGenerator(),
|
|
62091
|
+
safe: this.options.safe
|
|
62092
|
+
});
|
|
62093
|
+
var rootSource = getTokenSourceSpan(this.tokens[0], this.tokens[this.tokens.length - 1]);
|
|
62094
|
+
this.root = new _root["default"]({
|
|
62095
|
+
source: rootSource
|
|
62096
|
+
});
|
|
62097
|
+
this.root.errorGenerator = this._errorGenerator();
|
|
62098
|
+
var selector = new _selector["default"]({
|
|
62099
|
+
source: {
|
|
62100
|
+
start: {
|
|
62101
|
+
line: 1,
|
|
62102
|
+
column: 1
|
|
62103
|
+
}
|
|
62104
|
+
},
|
|
62105
|
+
sourceIndex: 0
|
|
62106
|
+
});
|
|
62107
|
+
this.root.append(selector);
|
|
62108
|
+
this.current = selector;
|
|
62109
|
+
this.loop();
|
|
62110
|
+
}
|
|
62111
|
+
var _proto = Parser4.prototype;
|
|
62112
|
+
_proto._errorGenerator = function _errorGenerator() {
|
|
62113
|
+
var _this = this;
|
|
62114
|
+
return function(message, errorOptions) {
|
|
62115
|
+
if (typeof _this.rule === "string") {
|
|
62116
|
+
return new Error(message);
|
|
62117
|
+
}
|
|
62118
|
+
return _this.rule.error(message, errorOptions);
|
|
62119
|
+
};
|
|
62120
|
+
};
|
|
62121
|
+
_proto.attribute = function attribute2() {
|
|
62122
|
+
var attr = [];
|
|
62123
|
+
var startingToken = this.currToken;
|
|
62124
|
+
this.position++;
|
|
62125
|
+
while (this.position < this.tokens.length && this.currToken[_tokenize.FIELDS.TYPE] !== tokens.closeSquare) {
|
|
62126
|
+
attr.push(this.currToken);
|
|
62127
|
+
this.position++;
|
|
62128
|
+
}
|
|
62129
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] !== tokens.closeSquare) {
|
|
62130
|
+
return this.expected("closing square bracket", this.currToken[_tokenize.FIELDS.START_POS]);
|
|
62131
|
+
}
|
|
62132
|
+
var len = attr.length;
|
|
62133
|
+
var node = {
|
|
62134
|
+
source: getSource(startingToken[1], startingToken[2], this.currToken[3], this.currToken[4]),
|
|
62135
|
+
sourceIndex: startingToken[_tokenize.FIELDS.START_POS]
|
|
62136
|
+
};
|
|
62137
|
+
if (len === 1 && !~[tokens.word].indexOf(attr[0][_tokenize.FIELDS.TYPE])) {
|
|
62138
|
+
return this.expected("attribute", attr[0][_tokenize.FIELDS.START_POS]);
|
|
62139
|
+
}
|
|
62140
|
+
var pos = 0;
|
|
62141
|
+
var spaceBefore = "";
|
|
62142
|
+
var commentBefore = "";
|
|
62143
|
+
var lastAdded = null;
|
|
62144
|
+
var spaceAfterMeaningfulToken = false;
|
|
62145
|
+
while (pos < len) {
|
|
62146
|
+
var token = attr[pos];
|
|
62147
|
+
var content = this.content(token);
|
|
62148
|
+
var next = attr[pos + 1];
|
|
62149
|
+
switch (token[_tokenize.FIELDS.TYPE]) {
|
|
62150
|
+
case tokens.space:
|
|
62151
|
+
spaceAfterMeaningfulToken = true;
|
|
62152
|
+
if (this.options.lossy) {
|
|
62153
|
+
break;
|
|
62154
|
+
}
|
|
62155
|
+
if (lastAdded) {
|
|
62156
|
+
(0, _util.ensureObject)(node, "spaces", lastAdded);
|
|
62157
|
+
var prevContent = node.spaces[lastAdded].after || "";
|
|
62158
|
+
node.spaces[lastAdded].after = prevContent + content;
|
|
62159
|
+
var existingComment = (0, _util.getProp)(node, "raws", "spaces", lastAdded, "after") || null;
|
|
62160
|
+
if (existingComment) {
|
|
62161
|
+
node.raws.spaces[lastAdded].after = existingComment + content;
|
|
62162
|
+
}
|
|
62163
|
+
} else {
|
|
62164
|
+
spaceBefore = spaceBefore + content;
|
|
62165
|
+
commentBefore = commentBefore + content;
|
|
62166
|
+
}
|
|
62167
|
+
break;
|
|
62168
|
+
case tokens.asterisk:
|
|
62169
|
+
if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {
|
|
62170
|
+
node.operator = content;
|
|
62171
|
+
lastAdded = "operator";
|
|
62172
|
+
} else if ((!node.namespace || lastAdded === "namespace" && !spaceAfterMeaningfulToken) && next) {
|
|
62173
|
+
if (spaceBefore) {
|
|
62174
|
+
(0, _util.ensureObject)(node, "spaces", "attribute");
|
|
62175
|
+
node.spaces.attribute.before = spaceBefore;
|
|
62176
|
+
spaceBefore = "";
|
|
62177
|
+
}
|
|
62178
|
+
if (commentBefore) {
|
|
62179
|
+
(0, _util.ensureObject)(node, "raws", "spaces", "attribute");
|
|
62180
|
+
node.raws.spaces.attribute.before = spaceBefore;
|
|
62181
|
+
commentBefore = "";
|
|
62182
|
+
}
|
|
62183
|
+
node.namespace = (node.namespace || "") + content;
|
|
62184
|
+
var rawValue = (0, _util.getProp)(node, "raws", "namespace") || null;
|
|
62185
|
+
if (rawValue) {
|
|
62186
|
+
node.raws.namespace += content;
|
|
62187
|
+
}
|
|
62188
|
+
lastAdded = "namespace";
|
|
62189
|
+
}
|
|
62190
|
+
spaceAfterMeaningfulToken = false;
|
|
62191
|
+
break;
|
|
62192
|
+
case tokens.dollar:
|
|
62193
|
+
if (lastAdded === "value") {
|
|
62194
|
+
var oldRawValue = (0, _util.getProp)(node, "raws", "value");
|
|
62195
|
+
node.value += "$";
|
|
62196
|
+
if (oldRawValue) {
|
|
62197
|
+
node.raws.value = oldRawValue + "$";
|
|
62198
|
+
}
|
|
62199
|
+
break;
|
|
62200
|
+
}
|
|
62201
|
+
// Falls through
|
|
62202
|
+
case tokens.caret:
|
|
62203
|
+
if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {
|
|
62204
|
+
node.operator = content;
|
|
62205
|
+
lastAdded = "operator";
|
|
62206
|
+
}
|
|
62207
|
+
spaceAfterMeaningfulToken = false;
|
|
62208
|
+
break;
|
|
62209
|
+
case tokens.combinator:
|
|
62210
|
+
if (content === "~" && next[_tokenize.FIELDS.TYPE] === tokens.equals) {
|
|
62211
|
+
node.operator = content;
|
|
62212
|
+
lastAdded = "operator";
|
|
62213
|
+
}
|
|
62214
|
+
if (content !== "|") {
|
|
62215
|
+
spaceAfterMeaningfulToken = false;
|
|
62216
|
+
break;
|
|
62217
|
+
}
|
|
62218
|
+
if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {
|
|
62219
|
+
node.operator = content;
|
|
62220
|
+
lastAdded = "operator";
|
|
62221
|
+
} else if (!node.namespace && !node.attribute) {
|
|
62222
|
+
node.namespace = true;
|
|
62223
|
+
}
|
|
62224
|
+
spaceAfterMeaningfulToken = false;
|
|
62225
|
+
break;
|
|
62226
|
+
case tokens.word:
|
|
62227
|
+
if (next && this.content(next) === "|" && attr[pos + 2] && attr[pos + 2][_tokenize.FIELDS.TYPE] !== tokens.equals && // this look-ahead probably fails with comment nodes involved.
|
|
62228
|
+
!node.operator && !node.namespace) {
|
|
62229
|
+
node.namespace = content;
|
|
62230
|
+
lastAdded = "namespace";
|
|
62231
|
+
} else if (!node.attribute || lastAdded === "attribute" && !spaceAfterMeaningfulToken) {
|
|
62232
|
+
if (spaceBefore) {
|
|
62233
|
+
(0, _util.ensureObject)(node, "spaces", "attribute");
|
|
62234
|
+
node.spaces.attribute.before = spaceBefore;
|
|
62235
|
+
spaceBefore = "";
|
|
62236
|
+
}
|
|
62237
|
+
if (commentBefore) {
|
|
62238
|
+
(0, _util.ensureObject)(node, "raws", "spaces", "attribute");
|
|
62239
|
+
node.raws.spaces.attribute.before = commentBefore;
|
|
62240
|
+
commentBefore = "";
|
|
62241
|
+
}
|
|
62242
|
+
node.attribute = (node.attribute || "") + content;
|
|
62243
|
+
var _rawValue = (0, _util.getProp)(node, "raws", "attribute") || null;
|
|
62244
|
+
if (_rawValue) {
|
|
62245
|
+
node.raws.attribute += content;
|
|
62246
|
+
}
|
|
62247
|
+
lastAdded = "attribute";
|
|
62248
|
+
} else if (!node.value && node.value !== "" || lastAdded === "value" && !(spaceAfterMeaningfulToken || node.quoteMark)) {
|
|
62249
|
+
var _unescaped = (0, _util.unesc)(content);
|
|
62250
|
+
var _oldRawValue = (0, _util.getProp)(node, "raws", "value") || "";
|
|
62251
|
+
var oldValue = node.value || "";
|
|
62252
|
+
node.value = oldValue + _unescaped;
|
|
62253
|
+
node.quoteMark = null;
|
|
62254
|
+
if (_unescaped !== content || _oldRawValue) {
|
|
62255
|
+
(0, _util.ensureObject)(node, "raws");
|
|
62256
|
+
node.raws.value = (_oldRawValue || oldValue) + content;
|
|
62257
|
+
}
|
|
62258
|
+
lastAdded = "value";
|
|
62259
|
+
} else {
|
|
62260
|
+
var insensitive = content === "i" || content === "I";
|
|
62261
|
+
if ((node.value || node.value === "") && (node.quoteMark || spaceAfterMeaningfulToken)) {
|
|
62262
|
+
node.insensitive = insensitive;
|
|
62263
|
+
if (!insensitive || content === "I") {
|
|
62264
|
+
(0, _util.ensureObject)(node, "raws");
|
|
62265
|
+
node.raws.insensitiveFlag = content;
|
|
62266
|
+
}
|
|
62267
|
+
lastAdded = "insensitive";
|
|
62268
|
+
if (spaceBefore) {
|
|
62269
|
+
(0, _util.ensureObject)(node, "spaces", "insensitive");
|
|
62270
|
+
node.spaces.insensitive.before = spaceBefore;
|
|
62271
|
+
spaceBefore = "";
|
|
62272
|
+
}
|
|
62273
|
+
if (commentBefore) {
|
|
62274
|
+
(0, _util.ensureObject)(node, "raws", "spaces", "insensitive");
|
|
62275
|
+
node.raws.spaces.insensitive.before = commentBefore;
|
|
62276
|
+
commentBefore = "";
|
|
62277
|
+
}
|
|
62278
|
+
} else if (node.value || node.value === "") {
|
|
62279
|
+
lastAdded = "value";
|
|
62280
|
+
node.value += content;
|
|
62281
|
+
if (node.raws.value) {
|
|
62282
|
+
node.raws.value += content;
|
|
62283
|
+
}
|
|
62284
|
+
}
|
|
62285
|
+
}
|
|
62286
|
+
spaceAfterMeaningfulToken = false;
|
|
62287
|
+
break;
|
|
62288
|
+
case tokens.str:
|
|
62289
|
+
if (!node.attribute || !node.operator) {
|
|
62290
|
+
return this.error("Expected an attribute followed by an operator preceding the string.", {
|
|
62291
|
+
index: token[_tokenize.FIELDS.START_POS]
|
|
62292
|
+
});
|
|
62293
|
+
}
|
|
62294
|
+
var _unescapeValue = (0, _attribute.unescapeValue)(content), unescaped = _unescapeValue.unescaped, quoteMark = _unescapeValue.quoteMark;
|
|
62295
|
+
node.value = unescaped;
|
|
62296
|
+
node.quoteMark = quoteMark;
|
|
62297
|
+
lastAdded = "value";
|
|
62298
|
+
(0, _util.ensureObject)(node, "raws");
|
|
62299
|
+
node.raws.value = content;
|
|
62300
|
+
spaceAfterMeaningfulToken = false;
|
|
62301
|
+
break;
|
|
62302
|
+
case tokens.equals:
|
|
62303
|
+
if (!node.attribute) {
|
|
62304
|
+
return this.expected("attribute", token[_tokenize.FIELDS.START_POS], content);
|
|
62305
|
+
}
|
|
62306
|
+
if (node.value) {
|
|
62307
|
+
return this.error('Unexpected "=" found; an operator was already defined.', {
|
|
62308
|
+
index: token[_tokenize.FIELDS.START_POS]
|
|
62309
|
+
});
|
|
62310
|
+
}
|
|
62311
|
+
node.operator = node.operator ? node.operator + content : content;
|
|
62312
|
+
lastAdded = "operator";
|
|
62313
|
+
spaceAfterMeaningfulToken = false;
|
|
62314
|
+
break;
|
|
62315
|
+
case tokens.comment:
|
|
62316
|
+
if (lastAdded) {
|
|
62317
|
+
if (spaceAfterMeaningfulToken || next && next[_tokenize.FIELDS.TYPE] === tokens.space || lastAdded === "insensitive") {
|
|
62318
|
+
var lastComment = (0, _util.getProp)(node, "spaces", lastAdded, "after") || "";
|
|
62319
|
+
var rawLastComment = (0, _util.getProp)(node, "raws", "spaces", lastAdded, "after") || lastComment;
|
|
62320
|
+
(0, _util.ensureObject)(node, "raws", "spaces", lastAdded);
|
|
62321
|
+
node.raws.spaces[lastAdded].after = rawLastComment + content;
|
|
62322
|
+
} else {
|
|
62323
|
+
var lastValue = node[lastAdded] || "";
|
|
62324
|
+
var rawLastValue = (0, _util.getProp)(node, "raws", lastAdded) || lastValue;
|
|
62325
|
+
(0, _util.ensureObject)(node, "raws");
|
|
62326
|
+
node.raws[lastAdded] = rawLastValue + content;
|
|
62327
|
+
}
|
|
62328
|
+
} else {
|
|
62329
|
+
commentBefore = commentBefore + content;
|
|
62330
|
+
}
|
|
62331
|
+
break;
|
|
62332
|
+
default:
|
|
62333
|
+
return this.error('Unexpected "' + content + '" found.', {
|
|
62334
|
+
index: token[_tokenize.FIELDS.START_POS]
|
|
62335
|
+
});
|
|
62336
|
+
}
|
|
62337
|
+
pos++;
|
|
62338
|
+
}
|
|
62339
|
+
unescapeProp(node, "attribute");
|
|
62340
|
+
unescapeProp(node, "namespace");
|
|
62341
|
+
this.newNode(new _attribute["default"](node));
|
|
62342
|
+
this.position++;
|
|
62343
|
+
};
|
|
62344
|
+
_proto.parseWhitespaceEquivalentTokens = function parseWhitespaceEquivalentTokens(stopPosition) {
|
|
62345
|
+
if (stopPosition < 0) {
|
|
62346
|
+
stopPosition = this.tokens.length;
|
|
62347
|
+
}
|
|
62348
|
+
var startPosition = this.position;
|
|
62349
|
+
var nodes = [];
|
|
62350
|
+
var space = "";
|
|
62351
|
+
var lastComment = void 0;
|
|
62352
|
+
do {
|
|
62353
|
+
if (WHITESPACE_TOKENS[this.currToken[_tokenize.FIELDS.TYPE]]) {
|
|
62354
|
+
if (!this.options.lossy) {
|
|
62355
|
+
space += this.content();
|
|
62356
|
+
}
|
|
62357
|
+
} else if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.comment) {
|
|
62358
|
+
var spaces = {};
|
|
62359
|
+
if (space) {
|
|
62360
|
+
spaces.before = space;
|
|
62361
|
+
space = "";
|
|
62362
|
+
}
|
|
62363
|
+
lastComment = new _comment["default"]({
|
|
62364
|
+
value: this.content(),
|
|
62365
|
+
source: getTokenSource(this.currToken),
|
|
62366
|
+
sourceIndex: this.currToken[_tokenize.FIELDS.START_POS],
|
|
62367
|
+
spaces
|
|
62368
|
+
});
|
|
62369
|
+
nodes.push(lastComment);
|
|
62370
|
+
}
|
|
62371
|
+
} while (++this.position < stopPosition);
|
|
62372
|
+
if (space) {
|
|
62373
|
+
if (lastComment) {
|
|
62374
|
+
lastComment.spaces.after = space;
|
|
62375
|
+
} else if (!this.options.lossy) {
|
|
62376
|
+
var firstToken = this.tokens[startPosition];
|
|
62377
|
+
var lastToken = this.tokens[this.position - 1];
|
|
62378
|
+
nodes.push(new _string["default"]({
|
|
62379
|
+
value: "",
|
|
62380
|
+
source: getSource(firstToken[_tokenize.FIELDS.START_LINE], firstToken[_tokenize.FIELDS.START_COL], lastToken[_tokenize.FIELDS.END_LINE], lastToken[_tokenize.FIELDS.END_COL]),
|
|
62381
|
+
sourceIndex: firstToken[_tokenize.FIELDS.START_POS],
|
|
62382
|
+
spaces: {
|
|
62383
|
+
before: space,
|
|
62384
|
+
after: ""
|
|
62385
|
+
}
|
|
62386
|
+
}));
|
|
62387
|
+
}
|
|
62388
|
+
}
|
|
62389
|
+
return nodes;
|
|
62390
|
+
};
|
|
62391
|
+
_proto.convertWhitespaceNodesToSpace = function convertWhitespaceNodesToSpace(nodes, requiredSpace) {
|
|
62392
|
+
var _this2 = this;
|
|
62393
|
+
if (requiredSpace === void 0) {
|
|
62394
|
+
requiredSpace = false;
|
|
62395
|
+
}
|
|
62396
|
+
var space = "";
|
|
62397
|
+
var rawSpace = "";
|
|
62398
|
+
nodes.forEach(function(n) {
|
|
62399
|
+
var spaceBefore = _this2.lossySpace(n.spaces.before, requiredSpace);
|
|
62400
|
+
var rawSpaceBefore = _this2.lossySpace(n.rawSpaceBefore, requiredSpace);
|
|
62401
|
+
space += spaceBefore + _this2.lossySpace(n.spaces.after, requiredSpace && spaceBefore.length === 0);
|
|
62402
|
+
rawSpace += spaceBefore + n.value + _this2.lossySpace(n.rawSpaceAfter, requiredSpace && rawSpaceBefore.length === 0);
|
|
62403
|
+
});
|
|
62404
|
+
if (rawSpace === space) {
|
|
62405
|
+
rawSpace = void 0;
|
|
62406
|
+
}
|
|
62407
|
+
var result = {
|
|
62408
|
+
space,
|
|
62409
|
+
rawSpace
|
|
62410
|
+
};
|
|
62411
|
+
return result;
|
|
62412
|
+
};
|
|
62413
|
+
_proto.isNamedCombinator = function isNamedCombinator(position) {
|
|
62414
|
+
if (position === void 0) {
|
|
62415
|
+
position = this.position;
|
|
62416
|
+
}
|
|
62417
|
+
return this.tokens[position + 0] && this.tokens[position + 0][_tokenize.FIELDS.TYPE] === tokens.slash && this.tokens[position + 1] && this.tokens[position + 1][_tokenize.FIELDS.TYPE] === tokens.word && this.tokens[position + 2] && this.tokens[position + 2][_tokenize.FIELDS.TYPE] === tokens.slash;
|
|
62418
|
+
};
|
|
62419
|
+
_proto.namedCombinator = function namedCombinator() {
|
|
62420
|
+
if (this.isNamedCombinator()) {
|
|
62421
|
+
var nameRaw = this.content(this.tokens[this.position + 1]);
|
|
62422
|
+
var name = (0, _util.unesc)(nameRaw).toLowerCase();
|
|
62423
|
+
var raws = {};
|
|
62424
|
+
if (name !== nameRaw) {
|
|
62425
|
+
raws.value = "/" + nameRaw + "/";
|
|
62426
|
+
}
|
|
62427
|
+
var node = new _combinator["default"]({
|
|
62428
|
+
value: "/" + name + "/",
|
|
62429
|
+
source: getSource(this.currToken[_tokenize.FIELDS.START_LINE], this.currToken[_tokenize.FIELDS.START_COL], this.tokens[this.position + 2][_tokenize.FIELDS.END_LINE], this.tokens[this.position + 2][_tokenize.FIELDS.END_COL]),
|
|
62430
|
+
sourceIndex: this.currToken[_tokenize.FIELDS.START_POS],
|
|
62431
|
+
raws
|
|
62432
|
+
});
|
|
62433
|
+
this.position = this.position + 3;
|
|
62434
|
+
return node;
|
|
62435
|
+
} else {
|
|
62436
|
+
this.unexpected();
|
|
62437
|
+
}
|
|
62438
|
+
};
|
|
62439
|
+
_proto.combinator = function combinator() {
|
|
62440
|
+
var _this3 = this;
|
|
62441
|
+
if (this.content() === "|") {
|
|
62442
|
+
return this.namespace();
|
|
62443
|
+
}
|
|
62444
|
+
var nextSigTokenPos = this.locateNextMeaningfulToken(this.position);
|
|
62445
|
+
if (nextSigTokenPos < 0 || this.tokens[nextSigTokenPos][_tokenize.FIELDS.TYPE] === tokens.comma || this.tokens[nextSigTokenPos][_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {
|
|
62446
|
+
var nodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos);
|
|
62447
|
+
if (nodes.length > 0) {
|
|
62448
|
+
var last = this.current.last;
|
|
62449
|
+
if (last) {
|
|
62450
|
+
var _this$convertWhitespa = this.convertWhitespaceNodesToSpace(nodes), space = _this$convertWhitespa.space, rawSpace = _this$convertWhitespa.rawSpace;
|
|
62451
|
+
if (rawSpace !== void 0) {
|
|
62452
|
+
last.rawSpaceAfter += rawSpace;
|
|
62453
|
+
}
|
|
62454
|
+
last.spaces.after += space;
|
|
62455
|
+
} else {
|
|
62456
|
+
nodes.forEach(function(n) {
|
|
62457
|
+
return _this3.newNode(n);
|
|
62458
|
+
});
|
|
62459
|
+
}
|
|
62460
|
+
}
|
|
62461
|
+
return;
|
|
62462
|
+
}
|
|
62463
|
+
var firstToken = this.currToken;
|
|
62464
|
+
var spaceOrDescendantSelectorNodes = void 0;
|
|
62465
|
+
if (nextSigTokenPos > this.position) {
|
|
62466
|
+
spaceOrDescendantSelectorNodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos);
|
|
62467
|
+
}
|
|
62468
|
+
var node;
|
|
62469
|
+
if (this.isNamedCombinator()) {
|
|
62470
|
+
node = this.namedCombinator();
|
|
62471
|
+
} else if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.combinator) {
|
|
62472
|
+
node = new _combinator["default"]({
|
|
62473
|
+
value: this.content(),
|
|
62474
|
+
source: getTokenSource(this.currToken),
|
|
62475
|
+
sourceIndex: this.currToken[_tokenize.FIELDS.START_POS]
|
|
62476
|
+
});
|
|
62477
|
+
this.position++;
|
|
62478
|
+
} else if (WHITESPACE_TOKENS[this.currToken[_tokenize.FIELDS.TYPE]]) {
|
|
62479
|
+
} else if (!spaceOrDescendantSelectorNodes) {
|
|
62480
|
+
this.unexpected();
|
|
62481
|
+
}
|
|
62482
|
+
if (node) {
|
|
62483
|
+
if (spaceOrDescendantSelectorNodes) {
|
|
62484
|
+
var _this$convertWhitespa2 = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes), _space = _this$convertWhitespa2.space, _rawSpace = _this$convertWhitespa2.rawSpace;
|
|
62485
|
+
node.spaces.before = _space;
|
|
62486
|
+
node.rawSpaceBefore = _rawSpace;
|
|
62487
|
+
}
|
|
62488
|
+
} else {
|
|
62489
|
+
var _this$convertWhitespa3 = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes, true), _space2 = _this$convertWhitespa3.space, _rawSpace2 = _this$convertWhitespa3.rawSpace;
|
|
62490
|
+
if (!_rawSpace2) {
|
|
62491
|
+
_rawSpace2 = _space2;
|
|
62492
|
+
}
|
|
62493
|
+
var spaces = {};
|
|
62494
|
+
var raws = {
|
|
62495
|
+
spaces: {}
|
|
62496
|
+
};
|
|
62497
|
+
if (_space2.endsWith(" ") && _rawSpace2.endsWith(" ")) {
|
|
62498
|
+
spaces.before = _space2.slice(0, _space2.length - 1);
|
|
62499
|
+
raws.spaces.before = _rawSpace2.slice(0, _rawSpace2.length - 1);
|
|
62500
|
+
} else if (_space2[0] === " " && _rawSpace2[0] === " ") {
|
|
62501
|
+
spaces.after = _space2.slice(1);
|
|
62502
|
+
raws.spaces.after = _rawSpace2.slice(1);
|
|
62503
|
+
} else {
|
|
62504
|
+
raws.value = _rawSpace2;
|
|
62505
|
+
}
|
|
62506
|
+
node = new _combinator["default"]({
|
|
62507
|
+
value: " ",
|
|
62508
|
+
source: getTokenSourceSpan(firstToken, this.tokens[this.position - 1]),
|
|
62509
|
+
sourceIndex: firstToken[_tokenize.FIELDS.START_POS],
|
|
62510
|
+
spaces,
|
|
62511
|
+
raws
|
|
62512
|
+
});
|
|
62513
|
+
}
|
|
62514
|
+
if (this.currToken && this.currToken[_tokenize.FIELDS.TYPE] === tokens.space) {
|
|
62515
|
+
node.spaces.after = this.optionalSpace(this.content());
|
|
62516
|
+
this.position++;
|
|
62517
|
+
}
|
|
62518
|
+
return this.newNode(node);
|
|
62519
|
+
};
|
|
62520
|
+
_proto.comma = function comma() {
|
|
62521
|
+
if (this.position === this.tokens.length - 1) {
|
|
62522
|
+
this.root.trailingComma = true;
|
|
62523
|
+
this.position++;
|
|
62524
|
+
return;
|
|
62525
|
+
}
|
|
62526
|
+
this.current._inferEndPosition();
|
|
62527
|
+
var selector = new _selector["default"]({
|
|
62528
|
+
source: {
|
|
62529
|
+
start: tokenStart(this.tokens[this.position + 1])
|
|
62530
|
+
},
|
|
62531
|
+
sourceIndex: this.tokens[this.position + 1][_tokenize.FIELDS.START_POS]
|
|
62532
|
+
});
|
|
62533
|
+
this.current.parent.append(selector);
|
|
62534
|
+
this.current = selector;
|
|
62535
|
+
this.position++;
|
|
62536
|
+
};
|
|
62537
|
+
_proto.comment = function comment() {
|
|
62538
|
+
var current = this.currToken;
|
|
62539
|
+
this.newNode(new _comment["default"]({
|
|
62540
|
+
value: this.content(),
|
|
62541
|
+
source: getTokenSource(current),
|
|
62542
|
+
sourceIndex: current[_tokenize.FIELDS.START_POS]
|
|
62543
|
+
}));
|
|
62544
|
+
this.position++;
|
|
62545
|
+
};
|
|
62546
|
+
_proto.error = function error(message, opts) {
|
|
62547
|
+
throw this.root.error(message, opts);
|
|
62548
|
+
};
|
|
62549
|
+
_proto.missingBackslash = function missingBackslash() {
|
|
62550
|
+
return this.error("Expected a backslash preceding the semicolon.", {
|
|
62551
|
+
index: this.currToken[_tokenize.FIELDS.START_POS]
|
|
62552
|
+
});
|
|
62553
|
+
};
|
|
62554
|
+
_proto.missingParenthesis = function missingParenthesis() {
|
|
62555
|
+
return this.expected("opening parenthesis", this.currToken[_tokenize.FIELDS.START_POS]);
|
|
62556
|
+
};
|
|
62557
|
+
_proto.missingSquareBracket = function missingSquareBracket() {
|
|
62558
|
+
return this.expected("opening square bracket", this.currToken[_tokenize.FIELDS.START_POS]);
|
|
62559
|
+
};
|
|
62560
|
+
_proto.unexpected = function unexpected() {
|
|
62561
|
+
return this.error("Unexpected '" + this.content() + "'. Escaping special characters with \\ may help.", this.currToken[_tokenize.FIELDS.START_POS]);
|
|
62562
|
+
};
|
|
62563
|
+
_proto.unexpectedPipe = function unexpectedPipe() {
|
|
62564
|
+
return this.error("Unexpected '|'.", this.currToken[_tokenize.FIELDS.START_POS]);
|
|
62565
|
+
};
|
|
62566
|
+
_proto.namespace = function namespace() {
|
|
62567
|
+
var before2 = this.prevToken && this.content(this.prevToken) || true;
|
|
62568
|
+
if (this.nextToken[_tokenize.FIELDS.TYPE] === tokens.word) {
|
|
62569
|
+
this.position++;
|
|
62570
|
+
return this.word(before2);
|
|
62571
|
+
} else if (this.nextToken[_tokenize.FIELDS.TYPE] === tokens.asterisk) {
|
|
62572
|
+
this.position++;
|
|
62573
|
+
return this.universal(before2);
|
|
62574
|
+
}
|
|
62575
|
+
this.unexpectedPipe();
|
|
62576
|
+
};
|
|
62577
|
+
_proto.nesting = function nesting() {
|
|
62578
|
+
if (this.nextToken) {
|
|
62579
|
+
var nextContent = this.content(this.nextToken);
|
|
62580
|
+
if (nextContent === "|") {
|
|
62581
|
+
this.position++;
|
|
62582
|
+
return;
|
|
62583
|
+
}
|
|
62584
|
+
}
|
|
62585
|
+
var current = this.currToken;
|
|
62586
|
+
this.newNode(new _nesting["default"]({
|
|
62587
|
+
value: this.content(),
|
|
62588
|
+
source: getTokenSource(current),
|
|
62589
|
+
sourceIndex: current[_tokenize.FIELDS.START_POS]
|
|
62590
|
+
}));
|
|
62591
|
+
this.position++;
|
|
62592
|
+
};
|
|
62593
|
+
_proto.parentheses = function parentheses() {
|
|
62594
|
+
var last = this.current.last;
|
|
62595
|
+
var unbalanced = 1;
|
|
62596
|
+
this.position++;
|
|
62597
|
+
if (last && last.type === types4.PSEUDO) {
|
|
62598
|
+
var selector = new _selector["default"]({
|
|
62599
|
+
source: {
|
|
62600
|
+
start: tokenStart(this.tokens[this.position])
|
|
62601
|
+
},
|
|
62602
|
+
sourceIndex: this.tokens[this.position][_tokenize.FIELDS.START_POS]
|
|
62603
|
+
});
|
|
62604
|
+
var cache2 = this.current;
|
|
62605
|
+
last.append(selector);
|
|
62606
|
+
this.current = selector;
|
|
62607
|
+
this.nestingDepth++;
|
|
62608
|
+
try {
|
|
62609
|
+
if (this.nestingDepth > this.maxNestingDepth) {
|
|
62610
|
+
this.error("Cannot parse selector: nesting depth exceeds the maximum of " + this.maxNestingDepth + ".", {
|
|
62611
|
+
index: this.currToken[_tokenize.FIELDS.START_POS]
|
|
62612
|
+
});
|
|
62613
|
+
}
|
|
62614
|
+
while (this.position < this.tokens.length && unbalanced) {
|
|
62615
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {
|
|
62616
|
+
unbalanced++;
|
|
62617
|
+
}
|
|
62618
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {
|
|
62619
|
+
unbalanced--;
|
|
62620
|
+
}
|
|
62621
|
+
if (unbalanced) {
|
|
62622
|
+
this.parse();
|
|
62623
|
+
} else {
|
|
62624
|
+
this.current.source.end = tokenEnd(this.currToken);
|
|
62625
|
+
this.current.parent.source.end = tokenEnd(this.currToken);
|
|
62626
|
+
this.position++;
|
|
62627
|
+
}
|
|
62628
|
+
}
|
|
62629
|
+
} finally {
|
|
62630
|
+
this.nestingDepth--;
|
|
62631
|
+
}
|
|
62632
|
+
this.current = cache2;
|
|
62633
|
+
} else {
|
|
62634
|
+
var parenStart = this.currToken;
|
|
62635
|
+
var parenValue = "(";
|
|
62636
|
+
var parenEnd;
|
|
62637
|
+
while (this.position < this.tokens.length && unbalanced) {
|
|
62638
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {
|
|
62639
|
+
unbalanced++;
|
|
62640
|
+
}
|
|
62641
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {
|
|
62642
|
+
unbalanced--;
|
|
62643
|
+
}
|
|
62644
|
+
parenEnd = this.currToken;
|
|
62645
|
+
parenValue += this.parseParenthesisToken(this.currToken);
|
|
62646
|
+
this.position++;
|
|
62647
|
+
}
|
|
62648
|
+
if (last) {
|
|
62649
|
+
last.appendToPropertyAndEscape("value", parenValue, parenValue);
|
|
62650
|
+
} else {
|
|
62651
|
+
this.newNode(new _string["default"]({
|
|
62652
|
+
value: parenValue,
|
|
62653
|
+
source: getSource(parenStart[_tokenize.FIELDS.START_LINE], parenStart[_tokenize.FIELDS.START_COL], parenEnd[_tokenize.FIELDS.END_LINE], parenEnd[_tokenize.FIELDS.END_COL]),
|
|
62654
|
+
sourceIndex: parenStart[_tokenize.FIELDS.START_POS]
|
|
62655
|
+
}));
|
|
62656
|
+
}
|
|
62657
|
+
}
|
|
62658
|
+
if (unbalanced) {
|
|
62659
|
+
return this.expected("closing parenthesis", this.currToken[_tokenize.FIELDS.START_POS]);
|
|
62660
|
+
}
|
|
62661
|
+
};
|
|
62662
|
+
_proto.pseudo = function pseudo() {
|
|
62663
|
+
var _this4 = this;
|
|
62664
|
+
var pseudoStr = "";
|
|
62665
|
+
var startingToken = this.currToken;
|
|
62666
|
+
while (this.currToken && this.currToken[_tokenize.FIELDS.TYPE] === tokens.colon) {
|
|
62667
|
+
pseudoStr += this.content();
|
|
62668
|
+
this.position++;
|
|
62669
|
+
}
|
|
62670
|
+
if (!this.currToken) {
|
|
62671
|
+
return this.expected(["pseudo-class", "pseudo-element"], this.position - 1);
|
|
62672
|
+
}
|
|
62673
|
+
if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.word) {
|
|
62674
|
+
this.splitWord(false, function(first, length) {
|
|
62675
|
+
pseudoStr += first;
|
|
62676
|
+
_this4.newNode(new _pseudo["default"]({
|
|
62677
|
+
value: pseudoStr,
|
|
62678
|
+
source: getTokenSourceSpan(startingToken, _this4.currToken),
|
|
62679
|
+
sourceIndex: startingToken[_tokenize.FIELDS.START_POS]
|
|
62680
|
+
}));
|
|
62681
|
+
if (length > 1 && _this4.nextToken && _this4.nextToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {
|
|
62682
|
+
_this4.error("Misplaced parenthesis.", {
|
|
62683
|
+
index: _this4.nextToken[_tokenize.FIELDS.START_POS]
|
|
62684
|
+
});
|
|
62685
|
+
}
|
|
62686
|
+
});
|
|
62687
|
+
} else {
|
|
62688
|
+
return this.expected(["pseudo-class", "pseudo-element"], this.currToken[_tokenize.FIELDS.START_POS]);
|
|
62689
|
+
}
|
|
62690
|
+
};
|
|
62691
|
+
_proto.space = function space() {
|
|
62692
|
+
var content = this.content();
|
|
62693
|
+
if (this.position === 0 || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.comma || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis || this.current.nodes.every(function(node) {
|
|
62694
|
+
return node.type === "comment";
|
|
62695
|
+
})) {
|
|
62696
|
+
this.spaces = this.optionalSpace(content);
|
|
62697
|
+
this.position++;
|
|
62698
|
+
} else if (this.position === this.tokens.length - 1 || this.nextToken[_tokenize.FIELDS.TYPE] === tokens.comma || this.nextToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {
|
|
62699
|
+
this.current.last.spaces.after = this.optionalSpace(content);
|
|
62700
|
+
this.position++;
|
|
62701
|
+
} else {
|
|
62702
|
+
this.combinator();
|
|
62703
|
+
}
|
|
62704
|
+
};
|
|
62705
|
+
_proto.string = function string() {
|
|
62706
|
+
var current = this.currToken;
|
|
62707
|
+
this.newNode(new _string["default"]({
|
|
62708
|
+
value: this.content(),
|
|
62709
|
+
source: getTokenSource(current),
|
|
62710
|
+
sourceIndex: current[_tokenize.FIELDS.START_POS]
|
|
62711
|
+
}));
|
|
62712
|
+
this.position++;
|
|
62713
|
+
};
|
|
62714
|
+
_proto.universal = function universal(namespace) {
|
|
62715
|
+
var nextToken = this.nextToken;
|
|
62716
|
+
if (nextToken && this.content(nextToken) === "|") {
|
|
62717
|
+
this.position++;
|
|
62718
|
+
return this.namespace();
|
|
62719
|
+
}
|
|
62720
|
+
var current = this.currToken;
|
|
62721
|
+
this.newNode(new _universal["default"]({
|
|
62722
|
+
value: this.content(),
|
|
62723
|
+
source: getTokenSource(current),
|
|
62724
|
+
sourceIndex: current[_tokenize.FIELDS.START_POS]
|
|
62725
|
+
}), namespace);
|
|
62726
|
+
this.position++;
|
|
62727
|
+
};
|
|
62728
|
+
_proto.splitWord = function splitWord(namespace, firstCallback) {
|
|
62729
|
+
var _this5 = this;
|
|
62730
|
+
var nextToken = this.nextToken;
|
|
62731
|
+
var word = this.content();
|
|
62732
|
+
while (nextToken && ~[tokens.dollar, tokens.caret, tokens.equals, tokens.word].indexOf(nextToken[_tokenize.FIELDS.TYPE])) {
|
|
62733
|
+
this.position++;
|
|
62734
|
+
var current = this.content();
|
|
62735
|
+
word += current;
|
|
62736
|
+
if (current.lastIndexOf("\\") === current.length - 1) {
|
|
62737
|
+
var next = this.nextToken;
|
|
62738
|
+
if (next && next[_tokenize.FIELDS.TYPE] === tokens.space) {
|
|
62739
|
+
word += this.requiredSpace(this.content(next));
|
|
62740
|
+
this.position++;
|
|
62741
|
+
}
|
|
62742
|
+
}
|
|
62743
|
+
nextToken = this.nextToken;
|
|
62744
|
+
}
|
|
62745
|
+
var hasClass = indexesOf(word, ".").filter(function(i2) {
|
|
62746
|
+
var escapedDot = word[i2 - 1] === "\\";
|
|
62747
|
+
var isKeyframesPercent = /^\d+\.\d+%$/.test(word);
|
|
62748
|
+
return !escapedDot && !isKeyframesPercent;
|
|
62749
|
+
});
|
|
62750
|
+
var hasId = indexesOf(word, "#").filter(function(i2) {
|
|
62751
|
+
return word[i2 - 1] !== "\\";
|
|
62752
|
+
});
|
|
62753
|
+
var interpolations = indexesOf(word, "#{");
|
|
62754
|
+
if (interpolations.length) {
|
|
62755
|
+
hasId = hasId.filter(function(hashIndex) {
|
|
62756
|
+
return !~interpolations.indexOf(hashIndex);
|
|
62757
|
+
});
|
|
62758
|
+
}
|
|
62759
|
+
var indices = (0, _sortAscending["default"])(uniqs([0].concat(hasClass, hasId)));
|
|
62760
|
+
indices.forEach(function(ind, i2) {
|
|
62761
|
+
var index = indices[i2 + 1] || word.length;
|
|
62762
|
+
var value = word.slice(ind, index);
|
|
62763
|
+
if (i2 === 0 && firstCallback) {
|
|
62764
|
+
return firstCallback.call(_this5, value, indices.length);
|
|
62765
|
+
}
|
|
62766
|
+
var node;
|
|
62767
|
+
var current2 = _this5.currToken;
|
|
62768
|
+
var sourceIndex = current2[_tokenize.FIELDS.START_POS] + indices[i2];
|
|
62769
|
+
var source = getSource(current2[1], current2[2] + ind, current2[3], current2[2] + (index - 1));
|
|
62770
|
+
if (~hasClass.indexOf(ind)) {
|
|
62771
|
+
var classNameOpts = {
|
|
62772
|
+
value: value.slice(1),
|
|
62773
|
+
source,
|
|
62774
|
+
sourceIndex
|
|
62775
|
+
};
|
|
62776
|
+
node = new _className["default"](unescapeProp(classNameOpts, "value"));
|
|
62777
|
+
} else if (~hasId.indexOf(ind)) {
|
|
62778
|
+
var idOpts = {
|
|
62779
|
+
value: value.slice(1),
|
|
62780
|
+
source,
|
|
62781
|
+
sourceIndex
|
|
62782
|
+
};
|
|
62783
|
+
node = new _id["default"](unescapeProp(idOpts, "value"));
|
|
62784
|
+
} else {
|
|
62785
|
+
var tagOpts = {
|
|
62786
|
+
value,
|
|
62787
|
+
source,
|
|
62788
|
+
sourceIndex
|
|
62789
|
+
};
|
|
62790
|
+
unescapeProp(tagOpts, "value");
|
|
62791
|
+
node = new _tag["default"](tagOpts);
|
|
62792
|
+
}
|
|
62793
|
+
_this5.newNode(node, namespace);
|
|
62794
|
+
namespace = null;
|
|
62795
|
+
});
|
|
62796
|
+
this.position++;
|
|
62797
|
+
};
|
|
62798
|
+
_proto.word = function word(namespace) {
|
|
62799
|
+
var nextToken = this.nextToken;
|
|
62800
|
+
if (nextToken && this.content(nextToken) === "|") {
|
|
62801
|
+
this.position++;
|
|
62802
|
+
return this.namespace();
|
|
62803
|
+
}
|
|
62804
|
+
return this.splitWord(namespace);
|
|
62805
|
+
};
|
|
62806
|
+
_proto.loop = function loop() {
|
|
62807
|
+
while (this.position < this.tokens.length) {
|
|
62808
|
+
this.parse(true);
|
|
62809
|
+
}
|
|
62810
|
+
this.current._inferEndPosition();
|
|
62811
|
+
return this.root;
|
|
62812
|
+
};
|
|
62813
|
+
_proto.parse = function parse6(throwOnParenthesis) {
|
|
62814
|
+
switch (this.currToken[_tokenize.FIELDS.TYPE]) {
|
|
62815
|
+
case tokens.space:
|
|
62816
|
+
this.space();
|
|
62817
|
+
break;
|
|
62818
|
+
case tokens.comment:
|
|
62819
|
+
this.comment();
|
|
62820
|
+
break;
|
|
62821
|
+
case tokens.openParenthesis:
|
|
62822
|
+
this.parentheses();
|
|
62823
|
+
break;
|
|
62824
|
+
case tokens.closeParenthesis:
|
|
62825
|
+
if (throwOnParenthesis) {
|
|
62826
|
+
this.missingParenthesis();
|
|
62827
|
+
}
|
|
62828
|
+
break;
|
|
62829
|
+
case tokens.openSquare:
|
|
62830
|
+
this.attribute();
|
|
62831
|
+
break;
|
|
62832
|
+
case tokens.dollar:
|
|
62833
|
+
case tokens.caret:
|
|
62834
|
+
case tokens.equals:
|
|
62835
|
+
case tokens.word:
|
|
62836
|
+
this.word();
|
|
62837
|
+
break;
|
|
62838
|
+
case tokens.colon:
|
|
62839
|
+
this.pseudo();
|
|
62840
|
+
break;
|
|
62841
|
+
case tokens.comma:
|
|
62842
|
+
this.comma();
|
|
62843
|
+
break;
|
|
62844
|
+
case tokens.asterisk:
|
|
62845
|
+
this.universal();
|
|
62846
|
+
break;
|
|
62847
|
+
case tokens.ampersand:
|
|
62848
|
+
this.nesting();
|
|
62849
|
+
break;
|
|
62850
|
+
case tokens.slash:
|
|
62851
|
+
case tokens.combinator:
|
|
62852
|
+
this.combinator();
|
|
62853
|
+
break;
|
|
62854
|
+
case tokens.str:
|
|
62855
|
+
this.string();
|
|
62856
|
+
break;
|
|
62857
|
+
// These cases throw; no break needed.
|
|
62858
|
+
case tokens.closeSquare:
|
|
62859
|
+
this.missingSquareBracket();
|
|
62860
|
+
case tokens.semicolon:
|
|
62861
|
+
this.missingBackslash();
|
|
62862
|
+
default:
|
|
62863
|
+
this.unexpected();
|
|
62864
|
+
}
|
|
62865
|
+
};
|
|
62866
|
+
_proto.expected = function expected(description, index, found) {
|
|
62867
|
+
if (Array.isArray(description)) {
|
|
62868
|
+
var last = description.pop();
|
|
62869
|
+
description = description.join(", ") + " or " + last;
|
|
62870
|
+
}
|
|
62871
|
+
var an = /^[aeiou]/.test(description[0]) ? "an" : "a";
|
|
62872
|
+
if (!found) {
|
|
62873
|
+
return this.error("Expected " + an + " " + description + ".", {
|
|
62874
|
+
index
|
|
62875
|
+
});
|
|
62876
|
+
}
|
|
62877
|
+
return this.error("Expected " + an + " " + description + ', found "' + found + '" instead.', {
|
|
62878
|
+
index
|
|
62879
|
+
});
|
|
62880
|
+
};
|
|
62881
|
+
_proto.requiredSpace = function requiredSpace(space) {
|
|
62882
|
+
return this.options.lossy ? " " : space;
|
|
62883
|
+
};
|
|
62884
|
+
_proto.optionalSpace = function optionalSpace(space) {
|
|
62885
|
+
return this.options.lossy ? "" : space;
|
|
62886
|
+
};
|
|
62887
|
+
_proto.lossySpace = function lossySpace(space, required) {
|
|
62888
|
+
if (this.options.lossy) {
|
|
62889
|
+
return required ? " " : "";
|
|
62890
|
+
} else {
|
|
62891
|
+
return space;
|
|
62892
|
+
}
|
|
62893
|
+
};
|
|
62894
|
+
_proto.parseParenthesisToken = function parseParenthesisToken(token) {
|
|
62895
|
+
var content = this.content(token);
|
|
62896
|
+
if (token[_tokenize.FIELDS.TYPE] === tokens.space) {
|
|
62897
|
+
return this.requiredSpace(content);
|
|
62898
|
+
} else {
|
|
62899
|
+
return content;
|
|
62900
|
+
}
|
|
62901
|
+
};
|
|
62902
|
+
_proto.newNode = function newNode(node, namespace) {
|
|
62903
|
+
if (namespace) {
|
|
62904
|
+
if (/^ +$/.test(namespace)) {
|
|
62905
|
+
if (!this.options.lossy) {
|
|
62906
|
+
this.spaces = (this.spaces || "") + namespace;
|
|
62907
|
+
}
|
|
62908
|
+
namespace = true;
|
|
62909
|
+
}
|
|
62910
|
+
node.namespace = namespace;
|
|
62911
|
+
unescapeProp(node, "namespace");
|
|
62912
|
+
}
|
|
62913
|
+
if (this.spaces) {
|
|
62914
|
+
node.spaces.before = this.spaces;
|
|
62915
|
+
this.spaces = "";
|
|
62916
|
+
}
|
|
62917
|
+
return this.current.append(node);
|
|
62918
|
+
};
|
|
62919
|
+
_proto.content = function content(token) {
|
|
62920
|
+
if (token === void 0) {
|
|
62921
|
+
token = this.currToken;
|
|
62922
|
+
}
|
|
62923
|
+
return this.css.slice(token[_tokenize.FIELDS.START_POS], token[_tokenize.FIELDS.END_POS]);
|
|
62924
|
+
};
|
|
62925
|
+
_proto.locateNextMeaningfulToken = function locateNextMeaningfulToken(startPosition) {
|
|
62926
|
+
if (startPosition === void 0) {
|
|
62927
|
+
startPosition = this.position + 1;
|
|
62928
|
+
}
|
|
62929
|
+
var searchPosition = startPosition;
|
|
62930
|
+
while (searchPosition < this.tokens.length) {
|
|
62931
|
+
if (WHITESPACE_EQUIV_TOKENS[this.tokens[searchPosition][_tokenize.FIELDS.TYPE]]) {
|
|
62932
|
+
searchPosition++;
|
|
62933
|
+
continue;
|
|
62934
|
+
} else {
|
|
62935
|
+
return searchPosition;
|
|
62936
|
+
}
|
|
62937
|
+
}
|
|
62938
|
+
return -1;
|
|
62939
|
+
};
|
|
62940
|
+
_createClass(Parser4, [{
|
|
62941
|
+
key: "currToken",
|
|
62942
|
+
get: function get() {
|
|
62943
|
+
return this.tokens[this.position];
|
|
62944
|
+
}
|
|
62945
|
+
}, {
|
|
62946
|
+
key: "nextToken",
|
|
62947
|
+
get: function get() {
|
|
62948
|
+
return this.tokens[this.position + 1];
|
|
62949
|
+
}
|
|
62950
|
+
}, {
|
|
62951
|
+
key: "prevToken",
|
|
62952
|
+
get: function get() {
|
|
62953
|
+
return this.tokens[this.position - 1];
|
|
62954
|
+
}
|
|
62955
|
+
}]);
|
|
62956
|
+
return Parser4;
|
|
62957
|
+
})();
|
|
62958
|
+
module.exports = exports.default;
|
|
62959
|
+
}
|
|
62960
|
+
});
|
|
62961
|
+
|
|
62962
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/processor.js
|
|
62963
|
+
var require_processor = __commonJS({
|
|
62964
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/processor.js"(exports, module) {
|
|
62965
|
+
"use strict";
|
|
62966
|
+
exports.__esModule = true;
|
|
62967
|
+
exports["default"] = void 0;
|
|
62968
|
+
var _parser = _interopRequireDefault(require_parser2());
|
|
62969
|
+
function _interopRequireDefault(e3) {
|
|
62970
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
62971
|
+
}
|
|
62972
|
+
var Processor = exports["default"] = /* @__PURE__ */ (function() {
|
|
62973
|
+
function Processor2(func, options) {
|
|
62974
|
+
this.func = func || function noop3() {
|
|
62975
|
+
};
|
|
62976
|
+
this.funcRes = null;
|
|
62977
|
+
this.options = options;
|
|
62978
|
+
}
|
|
62979
|
+
var _proto = Processor2.prototype;
|
|
62980
|
+
_proto._shouldUpdateSelector = function _shouldUpdateSelector(rule, options) {
|
|
62981
|
+
if (options === void 0) {
|
|
62982
|
+
options = {};
|
|
62983
|
+
}
|
|
62984
|
+
var merged = Object.assign({}, this.options, options);
|
|
62985
|
+
if (merged.updateSelector === false) {
|
|
62986
|
+
return false;
|
|
62987
|
+
} else {
|
|
62988
|
+
return typeof rule !== "string";
|
|
62989
|
+
}
|
|
62990
|
+
};
|
|
62991
|
+
_proto._isLossy = function _isLossy(options) {
|
|
62992
|
+
if (options === void 0) {
|
|
62993
|
+
options = {};
|
|
62994
|
+
}
|
|
62995
|
+
var merged = Object.assign({}, this.options, options);
|
|
62996
|
+
if (merged.lossless === false) {
|
|
62997
|
+
return true;
|
|
62998
|
+
} else {
|
|
62999
|
+
return false;
|
|
63000
|
+
}
|
|
63001
|
+
};
|
|
63002
|
+
_proto._root = function _root(rule, options) {
|
|
63003
|
+
if (options === void 0) {
|
|
63004
|
+
options = {};
|
|
63005
|
+
}
|
|
63006
|
+
var parser = new _parser["default"](rule, this._parseOptions(options));
|
|
63007
|
+
return parser.root;
|
|
63008
|
+
};
|
|
63009
|
+
_proto._parseOptions = function _parseOptions(options) {
|
|
63010
|
+
var merged = Object.assign({}, this.options, options);
|
|
63011
|
+
return {
|
|
63012
|
+
lossy: this._isLossy(merged),
|
|
63013
|
+
maxNestingDepth: merged.maxNestingDepth
|
|
63014
|
+
};
|
|
63015
|
+
};
|
|
63016
|
+
_proto._stringifyOptions = function _stringifyOptions(options) {
|
|
63017
|
+
var merged = Object.assign({}, this.options, options);
|
|
63018
|
+
return {
|
|
63019
|
+
maxNestingDepth: merged.maxNestingDepth
|
|
63020
|
+
};
|
|
63021
|
+
};
|
|
63022
|
+
_proto._run = function _run(rule, options) {
|
|
63023
|
+
var _this = this;
|
|
63024
|
+
if (options === void 0) {
|
|
63025
|
+
options = {};
|
|
63026
|
+
}
|
|
63027
|
+
return new Promise(function(resolve52, reject) {
|
|
63028
|
+
try {
|
|
63029
|
+
var root = _this._root(rule, options);
|
|
63030
|
+
Promise.resolve(_this.func(root)).then(function(transform) {
|
|
63031
|
+
var string = void 0;
|
|
63032
|
+
if (_this._shouldUpdateSelector(rule, options)) {
|
|
63033
|
+
string = root.toString(_this._stringifyOptions(options));
|
|
63034
|
+
rule.selector = string;
|
|
63035
|
+
}
|
|
63036
|
+
return {
|
|
63037
|
+
transform,
|
|
63038
|
+
root,
|
|
63039
|
+
string
|
|
63040
|
+
};
|
|
63041
|
+
}).then(resolve52, reject);
|
|
63042
|
+
} catch (e3) {
|
|
63043
|
+
reject(e3);
|
|
63044
|
+
return;
|
|
63045
|
+
}
|
|
63046
|
+
});
|
|
63047
|
+
};
|
|
63048
|
+
_proto._runSync = function _runSync(rule, options) {
|
|
63049
|
+
if (options === void 0) {
|
|
63050
|
+
options = {};
|
|
63051
|
+
}
|
|
63052
|
+
var root = this._root(rule, options);
|
|
63053
|
+
var transform = this.func(root);
|
|
63054
|
+
if (transform && typeof transform.then === "function") {
|
|
63055
|
+
throw new Error("Selector processor returned a promise to a synchronous call.");
|
|
63056
|
+
}
|
|
63057
|
+
var string = void 0;
|
|
63058
|
+
if (options.updateSelector && typeof rule !== "string") {
|
|
63059
|
+
string = root.toString(this._stringifyOptions(options));
|
|
63060
|
+
rule.selector = string;
|
|
63061
|
+
}
|
|
63062
|
+
return {
|
|
63063
|
+
transform,
|
|
63064
|
+
root,
|
|
63065
|
+
string
|
|
63066
|
+
};
|
|
63067
|
+
};
|
|
63068
|
+
_proto.ast = function ast(rule, options) {
|
|
63069
|
+
return this._run(rule, options).then(function(result) {
|
|
63070
|
+
return result.root;
|
|
63071
|
+
});
|
|
63072
|
+
};
|
|
63073
|
+
_proto.astSync = function astSync(rule, options) {
|
|
63074
|
+
return this._runSync(rule, options).root;
|
|
63075
|
+
};
|
|
63076
|
+
_proto.transform = function transform(rule, options) {
|
|
63077
|
+
return this._run(rule, options).then(function(result) {
|
|
63078
|
+
return result.transform;
|
|
63079
|
+
});
|
|
63080
|
+
};
|
|
63081
|
+
_proto.transformSync = function transformSync2(rule, options) {
|
|
63082
|
+
return this._runSync(rule, options).transform;
|
|
63083
|
+
};
|
|
63084
|
+
_proto.process = function process2(rule, options) {
|
|
63085
|
+
var _this2 = this;
|
|
63086
|
+
return this._run(rule, options).then(function(result) {
|
|
63087
|
+
return result.string || result.root.toString(_this2._stringifyOptions(options));
|
|
63088
|
+
});
|
|
63089
|
+
};
|
|
63090
|
+
_proto.processSync = function processSync(rule, options) {
|
|
63091
|
+
var result = this._runSync(rule, options);
|
|
63092
|
+
return result.string || result.root.toString(this._stringifyOptions(options));
|
|
63093
|
+
};
|
|
63094
|
+
return Processor2;
|
|
63095
|
+
})();
|
|
63096
|
+
module.exports = exports.default;
|
|
63097
|
+
}
|
|
63098
|
+
});
|
|
63099
|
+
|
|
63100
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/constructors.js
|
|
63101
|
+
var require_constructors = __commonJS({
|
|
63102
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/constructors.js"(exports) {
|
|
63103
|
+
"use strict";
|
|
63104
|
+
exports.__esModule = true;
|
|
63105
|
+
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;
|
|
63106
|
+
var _attribute = _interopRequireDefault(require_attribute());
|
|
63107
|
+
var _className = _interopRequireDefault(require_className());
|
|
63108
|
+
var _combinator = _interopRequireDefault(require_combinator());
|
|
63109
|
+
var _comment = _interopRequireDefault(require_comment());
|
|
63110
|
+
var _id = _interopRequireDefault(require_id());
|
|
63111
|
+
var _nesting = _interopRequireDefault(require_nesting());
|
|
63112
|
+
var _pseudo = _interopRequireDefault(require_pseudo());
|
|
63113
|
+
var _root = _interopRequireDefault(require_root());
|
|
63114
|
+
var _selector = _interopRequireDefault(require_selector());
|
|
63115
|
+
var _string = _interopRequireDefault(require_string());
|
|
63116
|
+
var _tag = _interopRequireDefault(require_tag());
|
|
63117
|
+
var _universal = _interopRequireDefault(require_universal());
|
|
63118
|
+
function _interopRequireDefault(e3) {
|
|
63119
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
63120
|
+
}
|
|
63121
|
+
var attribute2 = exports.attribute = function attribute3(opts) {
|
|
63122
|
+
return new _attribute["default"](opts);
|
|
63123
|
+
};
|
|
63124
|
+
var className = exports.className = function className2(opts) {
|
|
63125
|
+
return new _className["default"](opts);
|
|
63126
|
+
};
|
|
63127
|
+
var combinator = exports.combinator = function combinator2(opts) {
|
|
63128
|
+
return new _combinator["default"](opts);
|
|
63129
|
+
};
|
|
63130
|
+
var comment = exports.comment = function comment2(opts) {
|
|
63131
|
+
return new _comment["default"](opts);
|
|
63132
|
+
};
|
|
63133
|
+
var id = exports.id = function id2(opts) {
|
|
63134
|
+
return new _id["default"](opts);
|
|
63135
|
+
};
|
|
63136
|
+
var nesting = exports.nesting = function nesting2(opts) {
|
|
63137
|
+
return new _nesting["default"](opts);
|
|
63138
|
+
};
|
|
63139
|
+
var pseudo = exports.pseudo = function pseudo2(opts) {
|
|
63140
|
+
return new _pseudo["default"](opts);
|
|
63141
|
+
};
|
|
63142
|
+
var root = exports.root = function root2(opts) {
|
|
63143
|
+
return new _root["default"](opts);
|
|
63144
|
+
};
|
|
63145
|
+
var selector = exports.selector = function selector2(opts) {
|
|
63146
|
+
return new _selector["default"](opts);
|
|
63147
|
+
};
|
|
63148
|
+
var string = exports.string = function string2(opts) {
|
|
63149
|
+
return new _string["default"](opts);
|
|
63150
|
+
};
|
|
63151
|
+
var tag = exports.tag = function tag2(opts) {
|
|
63152
|
+
return new _tag["default"](opts);
|
|
63153
|
+
};
|
|
63154
|
+
var universal = exports.universal = function universal2(opts) {
|
|
63155
|
+
return new _universal["default"](opts);
|
|
63156
|
+
};
|
|
63157
|
+
}
|
|
63158
|
+
});
|
|
63159
|
+
|
|
63160
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/guards.js
|
|
63161
|
+
var require_guards = __commonJS({
|
|
63162
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/guards.js"(exports) {
|
|
63163
|
+
"use strict";
|
|
63164
|
+
exports.__esModule = true;
|
|
63165
|
+
exports.isComment = exports.isCombinator = exports.isClassName = exports.isAttribute = void 0;
|
|
63166
|
+
exports.isContainer = isContainer;
|
|
63167
|
+
exports.isIdentifier = void 0;
|
|
63168
|
+
exports.isNamespace = isNamespace;
|
|
63169
|
+
exports.isNesting = void 0;
|
|
63170
|
+
exports.isNode = isNode2;
|
|
63171
|
+
exports.isPseudo = void 0;
|
|
63172
|
+
exports.isPseudoClass = isPseudoClass;
|
|
63173
|
+
exports.isPseudoElement = isPseudoElement;
|
|
63174
|
+
exports.isUniversal = exports.isTag = exports.isString = exports.isSelector = exports.isRoot = void 0;
|
|
63175
|
+
var _types = require_types2();
|
|
63176
|
+
var _IS_TYPE;
|
|
63177
|
+
var IS_TYPE = (_IS_TYPE = {}, _IS_TYPE[_types.ATTRIBUTE] = true, _IS_TYPE[_types.CLASS] = true, _IS_TYPE[_types.COMBINATOR] = true, _IS_TYPE[_types.COMMENT] = true, _IS_TYPE[_types.ID] = true, _IS_TYPE[_types.NESTING] = true, _IS_TYPE[_types.PSEUDO] = true, _IS_TYPE[_types.ROOT] = true, _IS_TYPE[_types.SELECTOR] = true, _IS_TYPE[_types.STRING] = true, _IS_TYPE[_types.TAG] = true, _IS_TYPE[_types.UNIVERSAL] = true, _IS_TYPE);
|
|
63178
|
+
function isNode2(node) {
|
|
63179
|
+
return typeof node === "object" && IS_TYPE[node.type];
|
|
63180
|
+
}
|
|
63181
|
+
function isNodeType(type, node) {
|
|
63182
|
+
return isNode2(node) && node.type === type;
|
|
63183
|
+
}
|
|
63184
|
+
var isAttribute = exports.isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);
|
|
63185
|
+
var isClassName = exports.isClassName = isNodeType.bind(null, _types.CLASS);
|
|
63186
|
+
var isCombinator = exports.isCombinator = isNodeType.bind(null, _types.COMBINATOR);
|
|
63187
|
+
var isComment2 = exports.isComment = isNodeType.bind(null, _types.COMMENT);
|
|
63188
|
+
var isIdentifier = exports.isIdentifier = isNodeType.bind(null, _types.ID);
|
|
63189
|
+
var isNesting = exports.isNesting = isNodeType.bind(null, _types.NESTING);
|
|
63190
|
+
var isPseudo = exports.isPseudo = isNodeType.bind(null, _types.PSEUDO);
|
|
63191
|
+
var isRoot = exports.isRoot = isNodeType.bind(null, _types.ROOT);
|
|
63192
|
+
var isSelector = exports.isSelector = isNodeType.bind(null, _types.SELECTOR);
|
|
63193
|
+
var isString = exports.isString = isNodeType.bind(null, _types.STRING);
|
|
63194
|
+
var isTag4 = exports.isTag = isNodeType.bind(null, _types.TAG);
|
|
63195
|
+
var isUniversal = exports.isUniversal = isNodeType.bind(null, _types.UNIVERSAL);
|
|
63196
|
+
function isPseudoElement(node) {
|
|
63197
|
+
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");
|
|
63198
|
+
}
|
|
63199
|
+
function isPseudoClass(node) {
|
|
63200
|
+
return isPseudo(node) && !isPseudoElement(node);
|
|
63201
|
+
}
|
|
63202
|
+
function isContainer(node) {
|
|
63203
|
+
return !!(isNode2(node) && node.walk);
|
|
63204
|
+
}
|
|
63205
|
+
function isNamespace(node) {
|
|
63206
|
+
return isAttribute(node) || isTag4(node);
|
|
63207
|
+
}
|
|
63208
|
+
}
|
|
63209
|
+
});
|
|
63210
|
+
|
|
63211
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/index.js
|
|
63212
|
+
var require_selectors = __commonJS({
|
|
63213
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/selectors/index.js"(exports) {
|
|
63214
|
+
"use strict";
|
|
63215
|
+
exports.__esModule = true;
|
|
63216
|
+
var _types = require_types2();
|
|
63217
|
+
Object.keys(_types).forEach(function(key2) {
|
|
63218
|
+
if (key2 === "default" || key2 === "__esModule") return;
|
|
63219
|
+
if (key2 in exports && exports[key2] === _types[key2]) return;
|
|
63220
|
+
exports[key2] = _types[key2];
|
|
63221
|
+
});
|
|
63222
|
+
var _constructors = require_constructors();
|
|
63223
|
+
Object.keys(_constructors).forEach(function(key2) {
|
|
63224
|
+
if (key2 === "default" || key2 === "__esModule") return;
|
|
63225
|
+
if (key2 in exports && exports[key2] === _constructors[key2]) return;
|
|
63226
|
+
exports[key2] = _constructors[key2];
|
|
63227
|
+
});
|
|
63228
|
+
var _guards = require_guards();
|
|
63229
|
+
Object.keys(_guards).forEach(function(key2) {
|
|
63230
|
+
if (key2 === "default" || key2 === "__esModule") return;
|
|
63231
|
+
if (key2 in exports && exports[key2] === _guards[key2]) return;
|
|
63232
|
+
exports[key2] = _guards[key2];
|
|
63233
|
+
});
|
|
63234
|
+
}
|
|
63235
|
+
});
|
|
63236
|
+
|
|
63237
|
+
// ../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/index.js
|
|
63238
|
+
var require_dist = __commonJS({
|
|
63239
|
+
"../../node_modules/.bun/postcss-selector-parser@7.1.2/node_modules/postcss-selector-parser/dist/index.js"(exports, module) {
|
|
63240
|
+
"use strict";
|
|
63241
|
+
exports.__esModule = true;
|
|
63242
|
+
exports["default"] = void 0;
|
|
63243
|
+
var _processor = _interopRequireDefault(require_processor());
|
|
63244
|
+
var selectors = _interopRequireWildcard(require_selectors());
|
|
63245
|
+
function _interopRequireWildcard(e3, t2) {
|
|
63246
|
+
if ("function" == typeof WeakMap) var r2 = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
|
|
63247
|
+
return (_interopRequireWildcard = function _interopRequireWildcard2(e4, t3) {
|
|
63248
|
+
if (!t3 && e4 && e4.__esModule) return e4;
|
|
63249
|
+
var o, i2, f3 = { __proto__: null, "default": e4 };
|
|
63250
|
+
if (null === e4 || "object" != typeof e4 && "function" != typeof e4) return f3;
|
|
63251
|
+
if (o = t3 ? n : r2) {
|
|
63252
|
+
if (o.has(e4)) return o.get(e4);
|
|
63253
|
+
o.set(e4, f3);
|
|
63254
|
+
}
|
|
63255
|
+
for (var _t2 in e4) {
|
|
63256
|
+
"default" !== _t2 && {}.hasOwnProperty.call(e4, _t2) && ((i2 = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e4, _t2)) && (i2.get || i2.set) ? o(f3, _t2, i2) : f3[_t2] = e4[_t2]);
|
|
63257
|
+
}
|
|
63258
|
+
return f3;
|
|
63259
|
+
})(e3, t2);
|
|
63260
|
+
}
|
|
63261
|
+
function _interopRequireDefault(e3) {
|
|
63262
|
+
return e3 && e3.__esModule ? e3 : { "default": e3 };
|
|
63263
|
+
}
|
|
63264
|
+
var parser = function parser2(processor) {
|
|
63265
|
+
return new _processor["default"](processor);
|
|
63266
|
+
};
|
|
63267
|
+
Object.assign(parser, selectors);
|
|
63268
|
+
delete parser.__esModule;
|
|
63269
|
+
var _default = exports["default"] = parser;
|
|
63270
|
+
module.exports = exports.default;
|
|
63271
|
+
}
|
|
63272
|
+
});
|
|
63273
|
+
|
|
59638
63274
|
// ../core/src/studio-api/helpers/sourceMutation.ts
|
|
63275
|
+
import postcss3 from "postcss";
|
|
59639
63276
|
function parseSourceDocument(source) {
|
|
59640
63277
|
const hasDocumentShell = /<!doctype|<html[\s>]/i.test(source);
|
|
59641
63278
|
if (hasDocumentShell) {
|
|
@@ -59646,6 +63283,35 @@ function parseSourceDocument(source) {
|
|
|
59646
63283
|
wrappedFragment: true
|
|
59647
63284
|
};
|
|
59648
63285
|
}
|
|
63286
|
+
function duplicateCssRulesForId(document2, originalId, newId) {
|
|
63287
|
+
const idToken = `#${originalId}`;
|
|
63288
|
+
const transform = (0, import_postcss_selector_parser.default)((selectors) => {
|
|
63289
|
+
selectors.walkIds((node) => {
|
|
63290
|
+
if (node.value === originalId) node.value = newId;
|
|
63291
|
+
});
|
|
63292
|
+
});
|
|
63293
|
+
for (const styleEl of document2.querySelectorAll("style")) {
|
|
63294
|
+
const css = styleEl.textContent ?? "";
|
|
63295
|
+
let root;
|
|
63296
|
+
try {
|
|
63297
|
+
root = postcss3.parse(css);
|
|
63298
|
+
} catch {
|
|
63299
|
+
continue;
|
|
63300
|
+
}
|
|
63301
|
+
const clones = [];
|
|
63302
|
+
root.walkRules((rule) => {
|
|
63303
|
+
if (!rule.selector.includes(idToken)) return;
|
|
63304
|
+
const newSelector = transform.processSync(rule.selector);
|
|
63305
|
+
if (newSelector === rule.selector) return;
|
|
63306
|
+
const clone2 = rule.clone({ selector: newSelector });
|
|
63307
|
+
clones.push(clone2);
|
|
63308
|
+
});
|
|
63309
|
+
if (clones.length > 0) {
|
|
63310
|
+
for (const c3 of clones) root.append(c3);
|
|
63311
|
+
styleEl.textContent = root.toString();
|
|
63312
|
+
}
|
|
63313
|
+
}
|
|
63314
|
+
}
|
|
59649
63315
|
function querySelectorAllWithTemplates(root, selector) {
|
|
59650
63316
|
const matches2 = Array.from(root.querySelectorAll(selector));
|
|
59651
63317
|
if (matches2.length > 0) return matches2;
|
|
@@ -59796,6 +63462,13 @@ function splitElementInHtml(source, target, splitTime, newId) {
|
|
|
59796
63462
|
if (duration <= 0 || splitTime <= start || splitTime >= start + duration) {
|
|
59797
63463
|
return { html: source, matched: false, newId: null };
|
|
59798
63464
|
}
|
|
63465
|
+
if (document2.getElementById(newId)) {
|
|
63466
|
+
let suffix = 2;
|
|
63467
|
+
const base = newId;
|
|
63468
|
+
while (document2.getElementById(newId)) {
|
|
63469
|
+
newId = `${base}-${suffix++}`;
|
|
63470
|
+
}
|
|
63471
|
+
}
|
|
59799
63472
|
const firstDuration = splitTime - start;
|
|
59800
63473
|
const secondDuration = duration - firstDuration;
|
|
59801
63474
|
const clone2 = el.cloneNode(true);
|
|
@@ -59813,6 +63486,10 @@ function splitElementInHtml(source, target, splitTime, newId) {
|
|
|
59813
63486
|
String(Math.round((currentTrim + firstDuration * rate) * 1e3) / 1e3)
|
|
59814
63487
|
);
|
|
59815
63488
|
}
|
|
63489
|
+
const originalId = el.getAttribute("id");
|
|
63490
|
+
if (originalId) {
|
|
63491
|
+
duplicateCssRulesForId(document2, originalId, newId);
|
|
63492
|
+
}
|
|
59816
63493
|
setElementDuration(el, start, firstDuration, usesDataEnd);
|
|
59817
63494
|
if (el.nextSibling) {
|
|
59818
63495
|
el.parentElement.insertBefore(clone2, el.nextSibling);
|
|
@@ -59825,11 +63502,12 @@ function splitElementInHtml(source, target, splitTime, newId) {
|
|
|
59825
63502
|
newId
|
|
59826
63503
|
};
|
|
59827
63504
|
}
|
|
59828
|
-
var ALLOWED_HTML_ATTRS, DANGEROUS_URI_SCHEMES, DANGEROUS_DATA_URI, URI_ATTRS;
|
|
63505
|
+
var import_postcss_selector_parser, ALLOWED_HTML_ATTRS, DANGEROUS_URI_SCHEMES, DANGEROUS_DATA_URI, URI_ATTRS;
|
|
59829
63506
|
var init_sourceMutation = __esm({
|
|
59830
63507
|
"../core/src/studio-api/helpers/sourceMutation.ts"() {
|
|
59831
63508
|
"use strict";
|
|
59832
63509
|
init_esm10();
|
|
63510
|
+
import_postcss_selector_parser = __toESM(require_dist(), 1);
|
|
59833
63511
|
ALLOWED_HTML_ATTRS = /* @__PURE__ */ new Set([
|
|
59834
63512
|
// Identity & structure
|
|
59835
63513
|
"id",
|
|
@@ -60101,7 +63779,8 @@ async function executeGsapMutation(body, block, respond2) {
|
|
|
60101
63779
|
setArcPathInScript: setArcPathInScript2,
|
|
60102
63780
|
updateArcSegmentInScript: updateArcSegmentInScript2,
|
|
60103
63781
|
removeArcPathFromScript: removeArcPathFromScript2,
|
|
60104
|
-
addAnimationWithKeyframesToScript: addAnimationWithKeyframesToScript2
|
|
63782
|
+
addAnimationWithKeyframesToScript: addAnimationWithKeyframesToScript2,
|
|
63783
|
+
splitAnimationsInScript: splitAnimationsInScript2
|
|
60105
63784
|
} = parser;
|
|
60106
63785
|
function requireAnimation(scriptText, animationId) {
|
|
60107
63786
|
const parsed = parseGsapScript2(scriptText);
|
|
@@ -60265,6 +63944,23 @@ async function executeGsapMutation(body, block, respond2) {
|
|
|
60265
63944
|
);
|
|
60266
63945
|
return result.script;
|
|
60267
63946
|
}
|
|
63947
|
+
case "split-animations": {
|
|
63948
|
+
if (typeof body.originalId !== "string" || !body.originalId || typeof body.newId !== "string" || !body.newId || typeof body.splitTime !== "number" || !Number.isFinite(body.splitTime) || typeof body.elementStart !== "number" || !Number.isFinite(body.elementStart) || typeof body.elementDuration !== "number" || !Number.isFinite(body.elementDuration) || body.elementDuration <= 0) {
|
|
63949
|
+
return respond2(
|
|
63950
|
+
{
|
|
63951
|
+
error: "split-animations requires originalId, newId (non-empty strings), splitTime, elementStart (finite numbers), and elementDuration (positive number)"
|
|
63952
|
+
},
|
|
63953
|
+
400
|
|
63954
|
+
);
|
|
63955
|
+
}
|
|
63956
|
+
return splitAnimationsInScript2(block.scriptText, {
|
|
63957
|
+
originalId: body.originalId,
|
|
63958
|
+
newId: body.newId,
|
|
63959
|
+
splitTime: body.splitTime,
|
|
63960
|
+
elementStart: body.elementStart,
|
|
63961
|
+
elementDuration: body.elementDuration
|
|
63962
|
+
});
|
|
63963
|
+
}
|
|
60268
63964
|
default:
|
|
60269
63965
|
return respond2({ error: `unknown mutation type: ${body.type}` }, 400);
|
|
60270
63966
|
}
|
|
@@ -60562,20 +64258,24 @@ ${bootstrap}`;
|
|
|
60562
64258
|
);
|
|
60563
64259
|
const result = await executeGsapMutation(body, block, respond2);
|
|
60564
64260
|
if (result instanceof Response) return result;
|
|
60565
|
-
const newScript = result;
|
|
64261
|
+
const newScript = typeof result === "string" ? result : result.script;
|
|
60566
64262
|
const newHtml = block.replaceScript(newScript);
|
|
60567
64263
|
if (newHtml !== html) {
|
|
60568
64264
|
writeFileSync8(res.absPath, newHtml, "utf-8");
|
|
60569
64265
|
}
|
|
60570
64266
|
const { parseGsapScript: parseGsapScript2 } = await loadGsapParser();
|
|
60571
64267
|
const freshParsed = parseGsapScript2(newScript);
|
|
60572
|
-
|
|
64268
|
+
const responsePayload = {
|
|
60573
64269
|
ok: true,
|
|
60574
64270
|
parsed: freshParsed,
|
|
60575
64271
|
before: html,
|
|
60576
64272
|
after: newHtml,
|
|
60577
64273
|
scriptText: newScript
|
|
60578
|
-
}
|
|
64274
|
+
};
|
|
64275
|
+
if (typeof result !== "string" && result.skippedSelectors.length > 0) {
|
|
64276
|
+
responsePayload.skippedSelectors = result.skippedSelectors;
|
|
64277
|
+
}
|
|
64278
|
+
return c3.json(responsePayload);
|
|
60579
64279
|
});
|
|
60580
64280
|
}
|
|
60581
64281
|
var init_files = __esm({
|
|
@@ -66828,7 +70528,7 @@ var init_htmlCompiler = __esm({
|
|
|
66828
70528
|
});
|
|
66829
70529
|
|
|
66830
70530
|
// ../core/src/compiler/compositionScoping.ts
|
|
66831
|
-
import
|
|
70531
|
+
import postcss4 from "postcss";
|
|
66832
70532
|
function escapeRegExp3(value) {
|
|
66833
70533
|
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
66834
70534
|
}
|
|
@@ -66954,7 +70654,7 @@ function scopeCssToComposition(css, compositionId, scopeSelectorOverride, author
|
|
|
66954
70654
|
const trimmedCompositionId = compositionId.trim();
|
|
66955
70655
|
if (!css || !trimmedCompositionId) return css;
|
|
66956
70656
|
const scope = scopeSelectorOverride || `[data-composition-id="${escapeCssAttributeValue(trimmedCompositionId)}"]`;
|
|
66957
|
-
const root =
|
|
70657
|
+
const root = postcss4.parse(css);
|
|
66958
70658
|
root.walkRules((rule) => {
|
|
66959
70659
|
if (isInsideGlobalAtRule(rule)) return;
|
|
66960
70660
|
rule.selectors = rule.selectors.map(
|
|
@@ -94307,7 +98007,7 @@ var require_package = __commonJS({
|
|
|
94307
98007
|
});
|
|
94308
98008
|
|
|
94309
98009
|
// ../../node_modules/.bun/gaxios@7.1.4/node_modules/gaxios/build/cjs/src/util.cjs
|
|
94310
|
-
var
|
|
98010
|
+
var require_util4 = __commonJS({
|
|
94311
98011
|
"../../node_modules/.bun/gaxios@7.1.4/node_modules/gaxios/build/cjs/src/util.cjs"(exports, module) {
|
|
94312
98012
|
"use strict";
|
|
94313
98013
|
var pkg = require_package();
|
|
@@ -94326,7 +98026,7 @@ var require_common = __commonJS({
|
|
|
94326
98026
|
exports.GaxiosError = exports.GAXIOS_ERROR_SYMBOL = void 0;
|
|
94327
98027
|
exports.defaultErrorRedactor = defaultErrorRedactor;
|
|
94328
98028
|
var extend_1 = __importDefault2(require_extend());
|
|
94329
|
-
var util_cjs_1 = __importDefault2(
|
|
98029
|
+
var util_cjs_1 = __importDefault2(require_util4());
|
|
94330
98030
|
var pkg = util_cjs_1.default.pkg;
|
|
94331
98031
|
exports.GAXIOS_ERROR_SYMBOL = /* @__PURE__ */ Symbol.for(`${pkg.name}-gaxios-error`);
|
|
94332
98032
|
var GaxiosError = class _GaxiosError extends Error {
|
|
@@ -94745,7 +98445,7 @@ var require_helpers = __commonJS({
|
|
|
94745
98445
|
});
|
|
94746
98446
|
|
|
94747
98447
|
// ../../node_modules/.bun/agent-base@7.1.4/node_modules/agent-base/dist/index.js
|
|
94748
|
-
var
|
|
98448
|
+
var require_dist2 = __commonJS({
|
|
94749
98449
|
"../../node_modules/.bun/agent-base@7.1.4/node_modules/agent-base/dist/index.js"(exports) {
|
|
94750
98450
|
"use strict";
|
|
94751
98451
|
var __createBinding2 = exports && exports.__createBinding || (Object.create ? (function(o, m2, k2, k22) {
|
|
@@ -94997,7 +98697,7 @@ var require_parse_proxy_response = __commonJS({
|
|
|
94997
98697
|
});
|
|
94998
98698
|
|
|
94999
98699
|
// ../../node_modules/.bun/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/index.js
|
|
95000
|
-
var
|
|
98700
|
+
var require_dist3 = __commonJS({
|
|
95001
98701
|
"../../node_modules/.bun/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/index.js"(exports) {
|
|
95002
98702
|
"use strict";
|
|
95003
98703
|
var __createBinding2 = exports && exports.__createBinding || (Object.create ? (function(o, m2, k2, k22) {
|
|
@@ -95036,7 +98736,7 @@ var require_dist2 = __commonJS({
|
|
|
95036
98736
|
var tls = __importStar2(__require("tls"));
|
|
95037
98737
|
var assert_1 = __importDefault2(__require("assert"));
|
|
95038
98738
|
var debug_1 = __importDefault2(__require("debug"));
|
|
95039
|
-
var agent_base_1 =
|
|
98739
|
+
var agent_base_1 = require_dist2();
|
|
95040
98740
|
var url_1 = __require("url");
|
|
95041
98741
|
var parse_proxy_response_1 = require_parse_proxy_response();
|
|
95042
98742
|
var debug = (0, debug_1.default)("https-proxy-agent");
|
|
@@ -102088,7 +105788,7 @@ Content-Type: ${partContentType}\r
|
|
|
102088
105788
|
* @returns A proxy agent
|
|
102089
105789
|
*/
|
|
102090
105790
|
static async #getProxyAgent() {
|
|
102091
|
-
this.#proxyAgent ||= (await Promise.resolve().then(() => __toESM(
|
|
105791
|
+
this.#proxyAgent ||= (await Promise.resolve().then(() => __toESM(require_dist3()))).HttpsProxyAgent;
|
|
102092
105792
|
return this.#proxyAgent;
|
|
102093
105793
|
}
|
|
102094
105794
|
static async #getFetch() {
|
|
@@ -105160,7 +108860,7 @@ var require_ecdsa_sig_formatter = __commonJS({
|
|
|
105160
108860
|
});
|
|
105161
108861
|
|
|
105162
108862
|
// ../../node_modules/.bun/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/util.js
|
|
105163
|
-
var
|
|
108863
|
+
var require_util5 = __commonJS({
|
|
105164
108864
|
"../../node_modules/.bun/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/util.js"(exports) {
|
|
105165
108865
|
"use strict";
|
|
105166
108866
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -105395,7 +109095,7 @@ var require_authclient = __commonJS({
|
|
|
105395
109095
|
exports.AuthClient = exports.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS = exports.DEFAULT_UNIVERSE = void 0;
|
|
105396
109096
|
var events_1 = __require("events");
|
|
105397
109097
|
var gaxios_1 = require_src2();
|
|
105398
|
-
var util_1 =
|
|
109098
|
+
var util_1 = require_util5();
|
|
105399
109099
|
var google_logging_utils_1 = require_src3();
|
|
105400
109100
|
var shared_cjs_1 = require_shared3();
|
|
105401
109101
|
exports.DEFAULT_UNIVERSE = "googleapis.com";
|
|
@@ -105684,7 +109384,7 @@ var require_oauth2client = __commonJS({
|
|
|
105684
109384
|
var querystring = __require("querystring");
|
|
105685
109385
|
var stream = __require("stream");
|
|
105686
109386
|
var formatEcdsa = require_ecdsa_sig_formatter();
|
|
105687
|
-
var util_1 =
|
|
109387
|
+
var util_1 = require_util5();
|
|
105688
109388
|
var crypto_1 = require_crypto3();
|
|
105689
109389
|
var authclient_1 = require_authclient();
|
|
105690
109390
|
var loginticket_1 = require_loginticket();
|
|
@@ -107537,7 +111237,7 @@ var require_jwtaccess = __commonJS({
|
|
|
107537
111237
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
107538
111238
|
exports.JWTAccess = void 0;
|
|
107539
111239
|
var jws = require_jws();
|
|
107540
|
-
var util_1 =
|
|
111240
|
+
var util_1 = require_util5();
|
|
107541
111241
|
var DEFAULT_HEADER = {
|
|
107542
111242
|
alg: "RS256",
|
|
107543
111243
|
typ: "JWT"
|
|
@@ -108108,7 +111808,7 @@ var require_impersonated = __commonJS({
|
|
|
108108
111808
|
exports.Impersonated = exports.IMPERSONATED_ACCOUNT_TYPE = void 0;
|
|
108109
111809
|
var oauth2client_1 = require_oauth2client();
|
|
108110
111810
|
var gaxios_1 = require_src2();
|
|
108111
|
-
var util_1 =
|
|
111811
|
+
var util_1 = require_util5();
|
|
108112
111812
|
exports.IMPERSONATED_ACCOUNT_TYPE = "impersonated_service_account";
|
|
108113
111813
|
var Impersonated = class _Impersonated extends oauth2client_1.OAuth2Client {
|
|
108114
111814
|
sourceClient;
|
|
@@ -108436,7 +112136,7 @@ var require_stscredentials = __commonJS({
|
|
|
108436
112136
|
var gaxios_1 = require_src2();
|
|
108437
112137
|
var authclient_1 = require_authclient();
|
|
108438
112138
|
var oauth2common_1 = require_oauth2common();
|
|
108439
|
-
var util_1 =
|
|
112139
|
+
var util_1 = require_util5();
|
|
108440
112140
|
var StsCredentials = class _StsCredentials extends oauth2common_1.OAuthClientAuthHandler {
|
|
108441
112141
|
#tokenExchangeEndpoint;
|
|
108442
112142
|
/**
|
|
@@ -108525,7 +112225,7 @@ var require_baseexternalclient = __commonJS({
|
|
|
108525
112225
|
var stream = __require("stream");
|
|
108526
112226
|
var authclient_1 = require_authclient();
|
|
108527
112227
|
var sts = require_stscredentials();
|
|
108528
|
-
var util_1 =
|
|
112228
|
+
var util_1 = require_util5();
|
|
108529
112229
|
var shared_cjs_1 = require_shared3();
|
|
108530
112230
|
var STS_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
108531
112231
|
var STS_REQUEST_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:access_token";
|
|
@@ -109023,7 +112723,7 @@ var require_certificatesubjecttokensupplier = __commonJS({
|
|
|
109023
112723
|
"use strict";
|
|
109024
112724
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109025
112725
|
exports.CertificateSubjectTokenSupplier = exports.InvalidConfigurationError = exports.CertificateSourceUnavailableError = exports.CERTIFICATE_CONFIGURATION_ENV_VARIABLE = void 0;
|
|
109026
|
-
var util_1 =
|
|
112726
|
+
var util_1 = require_util5();
|
|
109027
112727
|
var fs5 = __require("fs");
|
|
109028
112728
|
var crypto_1 = __require("crypto");
|
|
109029
112729
|
var https2 = __require("https");
|
|
@@ -109208,7 +112908,7 @@ var require_identitypoolclient = __commonJS({
|
|
|
109208
112908
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109209
112909
|
exports.IdentityPoolClient = void 0;
|
|
109210
112910
|
var baseexternalclient_1 = require_baseexternalclient();
|
|
109211
|
-
var util_1 =
|
|
112911
|
+
var util_1 = require_util5();
|
|
109212
112912
|
var filesubjecttokensupplier_1 = require_filesubjecttokensupplier();
|
|
109213
112913
|
var urlsubjecttokensupplier_1 = require_urlsubjecttokensupplier();
|
|
109214
112914
|
var certificatesubjecttokensupplier_1 = require_certificatesubjecttokensupplier();
|
|
@@ -109627,7 +113327,7 @@ var require_awsclient = __commonJS({
|
|
|
109627
113327
|
var awsrequestsigner_1 = require_awsrequestsigner();
|
|
109628
113328
|
var baseexternalclient_1 = require_baseexternalclient();
|
|
109629
113329
|
var defaultawssecuritycredentialssupplier_1 = require_defaultawssecuritycredentialssupplier();
|
|
109630
|
-
var util_1 =
|
|
113330
|
+
var util_1 = require_util5();
|
|
109631
113331
|
var gaxios_1 = require_src2();
|
|
109632
113332
|
var AwsClient = class _AwsClient extends baseexternalclient_1.BaseExternalAccountClient {
|
|
109633
113333
|
environmentId;
|
|
@@ -110390,7 +114090,7 @@ var require_googleauth = __commonJS({
|
|
|
110390
114090
|
var baseexternalclient_1 = require_baseexternalclient();
|
|
110391
114091
|
var authclient_1 = require_authclient();
|
|
110392
114092
|
var externalAccountAuthorizedUserClient_1 = require_externalAccountAuthorizedUserClient();
|
|
110393
|
-
var util_1 =
|
|
114093
|
+
var util_1 = require_util5();
|
|
110394
114094
|
exports.GoogleAuthExceptionMessages = {
|
|
110395
114095
|
API_KEY_WITH_CREDENTIALS: "API Keys and Credentials are mutually exclusive authentication methods and cannot be used together.",
|
|
110396
114096
|
NO_PROJECT_ID_FOUND: "Unable to detect a Project Id in the current environment. \nTo learn more about authentication and Google APIs, visit: \nhttps://cloud.google.com/docs/authentication/getting-started",
|
|
@@ -143025,6 +146725,9 @@ async function showUsage3(cmd, parent) {
|
|
|
143025
146725
|
runMain(main, { showUsage: showUsage3 });
|
|
143026
146726
|
/*! Bundled license information:
|
|
143027
146727
|
|
|
146728
|
+
cssesc/cssesc.js:
|
|
146729
|
+
(*! https://mths.be/cssesc v3.0.0 by @mathias *)
|
|
146730
|
+
|
|
143028
146731
|
web-streams-polyfill/dist/ponyfill.es2018.js:
|
|
143029
146732
|
(**
|
|
143030
146733
|
* @license
|