@jasonshimmy/custom-elements-runtime 2.5.0 → 2.5.2
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/custom-elements-runtime.cjs.js +1 -18
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +150 -3644
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.router.cjs.js +19 -19
- package/dist/custom-elements-runtime.router.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.router.es.js +762 -451
- package/dist/custom-elements-runtime.router.es.js.map +1 -1
- package/dist/custom-elements-runtime.ssr.cjs.js +1 -1
- package/dist/custom-elements-runtime.ssr.es.js +1 -1
- package/dist/custom-elements-runtime.transitions.cjs.js +1 -1
- package/dist/custom-elements-runtime.transitions.es.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/namespace-helpers-BCVTzhAO.cjs +5 -0
- package/dist/namespace-helpers-BCVTzhAO.cjs.map +1 -0
- package/dist/namespace-helpers-CF28TyaG.js +786 -0
- package/dist/namespace-helpers-CF28TyaG.js.map +1 -0
- package/dist/router.d.ts +82 -21
- package/dist/runtime/monitoring/health-monitor.d.ts +99 -0
- package/dist/runtime/render.d.ts +1 -1
- package/dist/runtime/scheduler.d.ts +46 -0
- package/dist/template-compiler-CXHEnaBh.cjs +17 -0
- package/dist/template-compiler-CXHEnaBh.cjs.map +1 -0
- package/dist/template-compiler-DD_VZrte.js +3729 -0
- package/dist/template-compiler-DD_VZrte.js.map +1 -0
- package/dist/{transitions-CZ21fzhh.js → transitions-Bx0Nc9zR.js} +256 -255
- package/dist/transitions-Bx0Nc9zR.js.map +1 -0
- package/dist/{transitions-RXe2brRm.cjs → transitions-DfcqL-X4.cjs} +4 -4
- package/dist/transitions-DfcqL-X4.cjs.map +1 -0
- package/package.json +9 -8
- package/dist/namespace-helpers-BsKQl3aH.cjs +0 -5
- package/dist/namespace-helpers-BsKQl3aH.cjs.map +0 -1
- package/dist/namespace-helpers-Dw1mgQab.js +0 -692
- package/dist/namespace-helpers-Dw1mgQab.js.map +0 -1
- package/dist/transitions-CZ21fzhh.js.map +0 -1
- package/dist/transitions-RXe2brRm.cjs.map +0 -1
|
@@ -96,7 +96,7 @@ const Ee = {
|
|
|
96
96
|
table: "2.2222222em"
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
|
-
function
|
|
99
|
+
function ze(e) {
|
|
100
100
|
const o = e.match(/^prose(?:-(sm|lg|xl|2xl))?$/);
|
|
101
101
|
if (!o) return null;
|
|
102
102
|
const a = o[1] || "base", t = Ee[a], r = `.${e}`, i = [];
|
|
@@ -233,14 +233,14 @@ const Oe = {
|
|
|
233
233
|
function Re(e, o, a, t, r, i, l, $) {
|
|
234
234
|
const n = e.match(/^prose-([a-z0-9]+):(.+)$/);
|
|
235
235
|
if (!n) return null;
|
|
236
|
-
const [, c,
|
|
236
|
+
const [, c, u] = n, j = Oe[c];
|
|
237
237
|
if (!j) return null;
|
|
238
|
-
const y = o[
|
|
238
|
+
const y = o[u] ?? a(u) ?? t(u) ?? r(u) ?? i(u) ?? l(u) ?? $(u);
|
|
239
239
|
if (!y) return null;
|
|
240
240
|
const F = ve(e);
|
|
241
241
|
return j.split(",").map((g) => {
|
|
242
|
-
const
|
|
243
|
-
return `${`.${F} ${
|
|
242
|
+
const b = g.trim();
|
|
243
|
+
return `${`.${F} ${b}:not(.not-prose):not(.not-prose *)`}{${y}}`;
|
|
244
244
|
}).join("");
|
|
245
245
|
}
|
|
246
246
|
const Me = `/*
|
|
@@ -373,7 +373,7 @@ const Me = `/*
|
|
|
373
373
|
--cer-color-error-950: #450a0a;
|
|
374
374
|
}
|
|
375
375
|
`;
|
|
376
|
-
function
|
|
376
|
+
function Pe(e, ...o) {
|
|
377
377
|
let a = "";
|
|
378
378
|
for (let t = 0; t < e.length; t++)
|
|
379
379
|
a += e[t], t < o.length && (a += o[t]);
|
|
@@ -383,7 +383,7 @@ function we(e) {
|
|
|
383
383
|
return e.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\s+/g, " ").replace(/\s*([{}:;,>+~])\s*/g, "$1").replace(/;}/g, "}").trim();
|
|
384
384
|
}
|
|
385
385
|
let ee = null;
|
|
386
|
-
function
|
|
386
|
+
function Je() {
|
|
387
387
|
return ee || (typeof CSSStyleSheet > "u" ? ee = {
|
|
388
388
|
cssRules: [],
|
|
389
389
|
replaceSync: () => {
|
|
@@ -391,37 +391,37 @@ function Ye() {
|
|
|
391
391
|
toString: () => we(ye)
|
|
392
392
|
} : (ee = new CSSStyleSheet(), ee.replaceSync(we(ye)))), ee;
|
|
393
393
|
}
|
|
394
|
-
let
|
|
394
|
+
let H = null;
|
|
395
395
|
const be = /* @__PURE__ */ new Set();
|
|
396
396
|
let ce = "";
|
|
397
|
-
function
|
|
397
|
+
function _e() {
|
|
398
398
|
if (be.size === 0) return null;
|
|
399
|
-
|
|
399
|
+
H || (typeof CSSStyleSheet > "u" ? H = {
|
|
400
400
|
cssRules: [],
|
|
401
401
|
replaceSync: () => {
|
|
402
402
|
},
|
|
403
403
|
toString: () => ce
|
|
404
|
-
} : (
|
|
404
|
+
} : (H = new CSSStyleSheet(), H.toString = () => ce));
|
|
405
405
|
let e = "";
|
|
406
406
|
for (const o of be) {
|
|
407
|
-
const a =
|
|
407
|
+
const a = ze(o);
|
|
408
408
|
a && (e += a);
|
|
409
409
|
}
|
|
410
|
-
if (ce = we(e), typeof
|
|
410
|
+
if (ce = we(e), typeof H.replaceSync == "function" && e)
|
|
411
411
|
try {
|
|
412
|
-
|
|
412
|
+
H.replaceSync(ce);
|
|
413
413
|
} catch {
|
|
414
414
|
}
|
|
415
|
-
return
|
|
415
|
+
return H;
|
|
416
416
|
}
|
|
417
417
|
function We(e) {
|
|
418
418
|
const o = !be.has(e);
|
|
419
|
-
be.add(e), o &&
|
|
419
|
+
be.add(e), o && H && _e();
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Ye(e) {
|
|
422
422
|
return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi, "").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi, "").replace(/expression\s*\([^)]*\)/gi, "");
|
|
423
423
|
}
|
|
424
|
-
const ye =
|
|
424
|
+
const ye = Pe`
|
|
425
425
|
${Me}
|
|
426
426
|
:host,
|
|
427
427
|
*,
|
|
@@ -637,7 +637,7 @@ const ye = _e`
|
|
|
637
637
|
black: { DEFAULT: "#000000" },
|
|
638
638
|
transparent: { DEFAULT: "transparent" },
|
|
639
639
|
current: { DEFAULT: "currentColor" }
|
|
640
|
-
},
|
|
640
|
+
}, Te = Object.fromEntries(
|
|
641
641
|
Object.entries(Le).map(([e, o]) => [
|
|
642
642
|
e,
|
|
643
643
|
Object.fromEntries(
|
|
@@ -816,8 +816,8 @@ const ye = _e`
|
|
|
816
816
|
["text-7xl", "4.5rem", "1"],
|
|
817
817
|
["text-8xl", "6rem", "1"],
|
|
818
818
|
["text-9xl", "8rem", "1"]
|
|
819
|
-
].forEach(([n, c,
|
|
820
|
-
e[n] = `font-size:${c};line-height:var(--cer-line-height,${
|
|
819
|
+
].forEach(([n, c, u]) => {
|
|
820
|
+
e[n] = `font-size:${c};line-height:var(--cer-line-height,${u});`;
|
|
821
821
|
}), [
|
|
822
822
|
["tracking-tighter", "-0.05em"],
|
|
823
823
|
["tracking-tight", "-0.025em"],
|
|
@@ -887,8 +887,8 @@ const ye = _e`
|
|
|
887
887
|
full: 9999
|
|
888
888
|
};
|
|
889
889
|
for (const [n, c] of Object.entries(l)) {
|
|
890
|
-
const
|
|
891
|
-
e[`rounded-${n}`] = `border-radius:${
|
|
890
|
+
const u = c === 9999 ? "9999px" : `${c / 16}rem`;
|
|
891
|
+
e[`rounded-${n}`] = `border-radius:${u};`, e[`rounded-t-${n}`] = `border-top-left-radius:${u};border-top-right-radius:${u};`, e[`rounded-r-${n}`] = `border-top-right-radius:${u};border-bottom-right-radius:${u};`, e[`rounded-b-${n}`] = `border-bottom-left-radius:${u};border-bottom-right-radius:${u};`, e[`rounded-l-${n}`] = `border-top-left-radius:${u};border-bottom-left-radius:${u};`, e[`rounded-tl-${n}`] = `border-top-left-radius:${u};`, e[`rounded-tr-${n}`] = `border-top-right-radius:${u};`, e[`rounded-br-${n}`] = `border-bottom-right-radius:${u};`, e[`rounded-bl-${n}`] = `border-bottom-left-radius:${u};`;
|
|
892
892
|
}
|
|
893
893
|
Object.assign(e, {
|
|
894
894
|
"shadow-none": "--cer-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--cer-shadow-color, #0000);",
|
|
@@ -1158,8 +1158,8 @@ function ke(e) {
|
|
|
1158
1158
|
return /^prose-([a-z0-9]+):(.+)$/.test(e) ? Re(
|
|
1159
1159
|
e,
|
|
1160
1160
|
pe,
|
|
1161
|
-
fe,
|
|
1162
1161
|
ue,
|
|
1162
|
+
fe,
|
|
1163
1163
|
he,
|
|
1164
1164
|
ge,
|
|
1165
1165
|
me,
|
|
@@ -1233,7 +1233,7 @@ const Se = {
|
|
|
1233
1233
|
"6xl",
|
|
1234
1234
|
"7xl"
|
|
1235
1235
|
];
|
|
1236
|
-
function
|
|
1236
|
+
function ue(e) {
|
|
1237
1237
|
const o = e.startsWith("-"), a = o ? e.slice(1) : e, t = a.lastIndexOf("-");
|
|
1238
1238
|
if (t === -1) return null;
|
|
1239
1239
|
const r = a.slice(0, t), i = a.slice(t + 1);
|
|
@@ -1242,25 +1242,25 @@ function fe(e) {
|
|
|
1242
1242
|
const [n, c] = i.split("/").map((j) => parseFloat(j));
|
|
1243
1243
|
if (Number.isNaN(n) || Number.isNaN(c) || c === 0)
|
|
1244
1244
|
return null;
|
|
1245
|
-
const
|
|
1246
|
-
return xe[r].map((j) => `${j}:${
|
|
1245
|
+
const u = n / c * 100;
|
|
1246
|
+
return xe[r].map((j) => `${j}:${u}%;`).join("");
|
|
1247
1247
|
}
|
|
1248
1248
|
const l = parseFloat(i);
|
|
1249
1249
|
if (Number.isNaN(l)) return null;
|
|
1250
1250
|
const $ = o ? "-" : "";
|
|
1251
1251
|
return xe[r].map((n) => `${n}:calc(${$}${K} * ${l});`).join("");
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function fe(e) {
|
|
1254
1254
|
const o = e.startsWith("-"), t = (o ? e.slice(1) : e).match(/^space-(x|y)-(.+)$/);
|
|
1255
1255
|
if (!t) return null;
|
|
1256
1256
|
const [, r, i] = t, l = r === "x";
|
|
1257
1257
|
if (i === "reverse")
|
|
1258
1258
|
return l ? "--cer-space-x-reverse:1;" : "--cer-space-y-reverse:1;";
|
|
1259
1259
|
if (i.includes("/")) {
|
|
1260
|
-
const [
|
|
1261
|
-
if (Number.isNaN(
|
|
1260
|
+
const [u, j] = i.split("/").map((p) => parseFloat(p));
|
|
1261
|
+
if (Number.isNaN(u) || Number.isNaN(j) || j === 0)
|
|
1262
1262
|
return null;
|
|
1263
|
-
const y =
|
|
1263
|
+
const y = u / j * 100, F = o ? "-" : "";
|
|
1264
1264
|
return l ? `--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${F}${y}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${F}${y}% * var(--cer-space-x-reverse));}` : `--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${F}${y}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${F}${y}% * var(--cer-space-y-reverse));}`;
|
|
1265
1265
|
}
|
|
1266
1266
|
const $ = parseFloat(i);
|
|
@@ -1288,28 +1288,28 @@ const Ne = /^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)
|
|
|
1288
1288
|
function Be(e) {
|
|
1289
1289
|
const o = Ne.exec(e);
|
|
1290
1290
|
if (!o) return null;
|
|
1291
|
-
const [, a, t, r = "DEFAULT"] = o, i =
|
|
1291
|
+
const [, a, t, r = "DEFAULT"] = o, i = Te[t]?.[r];
|
|
1292
1292
|
if (!i) return null;
|
|
1293
1293
|
if (a === "shadow") return `--cer-shadow-color:${i};`;
|
|
1294
1294
|
const l = Ve[a];
|
|
1295
1295
|
return l ? `${l}:${i};` : null;
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function Ue(e) {
|
|
1298
1298
|
const o = e.indexOf("/");
|
|
1299
1299
|
if (o === -1) return { base: e };
|
|
1300
1300
|
const a = e.slice(0, o), t = e.slice(o + 1), r = parseInt(t, 10);
|
|
1301
1301
|
return isNaN(r) || r < 0 || r > 100 ? { base: a } : { base: a, opacity: r / 100 };
|
|
1302
1302
|
}
|
|
1303
1303
|
function ge(e) {
|
|
1304
|
-
const { base: o, opacity: a } =
|
|
1304
|
+
const { base: o, opacity: a } = Ue(e), t = Be(o);
|
|
1305
1305
|
if (t) {
|
|
1306
1306
|
if (a !== void 0) {
|
|
1307
1307
|
if (t.includes("var(")) {
|
|
1308
1308
|
const l = /var\([^)]*\)/.exec(t);
|
|
1309
1309
|
if (l) {
|
|
1310
|
-
const $ = l[0], n = a * 100, c = `color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100 - n}%)`,
|
|
1311
|
-
if (
|
|
1312
|
-
const p = `rgb(${de(
|
|
1310
|
+
const $ = l[0], n = a * 100, c = `color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100 - n}%)`, u = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($), j = /^([a-z-]+):/.exec(t), y = j ? j[1] : "background-color";
|
|
1311
|
+
if (u) {
|
|
1312
|
+
const p = `rgb(${de(u[0])} / ${a})`, g = $.replace(
|
|
1313
1313
|
/#([0-9a-f]{6}|[0-9a-f]{3})/i,
|
|
1314
1314
|
p
|
|
1315
1315
|
);
|
|
@@ -1334,9 +1334,9 @@ function ge(e) {
|
|
|
1334
1334
|
if (r.includes("var(")) {
|
|
1335
1335
|
const l = /var\([^)]*\)/.exec(r);
|
|
1336
1336
|
if (l) {
|
|
1337
|
-
const $ = l[0], n = a * 100, c = `color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100 - n}%)`,
|
|
1338
|
-
if (
|
|
1339
|
-
const p = `rgb(${de(
|
|
1337
|
+
const $ = l[0], n = a * 100, c = `color-mix(in srgb, ${$} ${n}%, rgba(0 0 0 / 0) ${100 - n}%)`, u = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($), j = /^([a-z-]+):/.exec(r), y = j ? j[1] : null;
|
|
1338
|
+
if (u && y) {
|
|
1339
|
+
const p = `rgb(${de(u[0])} / ${a})`, g = $.replace(
|
|
1340
1340
|
/#([0-9a-f]{6}|[0-9a-f]{3})/i,
|
|
1341
1341
|
p
|
|
1342
1342
|
);
|
|
@@ -1359,7 +1359,7 @@ function ge(e) {
|
|
|
1359
1359
|
function me(e) {
|
|
1360
1360
|
const o = /^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);
|
|
1361
1361
|
if (!o) return null;
|
|
1362
|
-
const [, a, t, r = "DEFAULT"] = o, i =
|
|
1362
|
+
const [, a, t, r = "DEFAULT"] = o, i = Te[t]?.[r];
|
|
1363
1363
|
if (!i) return null;
|
|
1364
1364
|
switch (a) {
|
|
1365
1365
|
case "from":
|
|
@@ -1469,7 +1469,7 @@ function ve(e) {
|
|
|
1469
1469
|
function te(e) {
|
|
1470
1470
|
return "." + ve(e);
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function He(e) {
|
|
1473
1473
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1474
1474
|
}
|
|
1475
1475
|
function Ke(e) {
|
|
@@ -1481,31 +1481,31 @@ function Ke(e) {
|
|
|
1481
1481
|
}
|
|
1482
1482
|
return a;
|
|
1483
1483
|
}
|
|
1484
|
-
const ne = /* @__PURE__ */ new Map(),
|
|
1485
|
-
function
|
|
1484
|
+
const ne = /* @__PURE__ */ new Map(), Ae = 1e3;
|
|
1485
|
+
function Qe(e) {
|
|
1486
1486
|
const o = ne.get(e);
|
|
1487
|
-
if (o
|
|
1487
|
+
if (o)
|
|
1488
1488
|
return o.css;
|
|
1489
1489
|
const a = Ke(e);
|
|
1490
1490
|
if (!a.length) return "";
|
|
1491
1491
|
const t = new Set(a), r = [[], [], [], []], i = {}, l = (p, g = !1) => {
|
|
1492
|
-
const
|
|
1493
|
-
if (
|
|
1494
|
-
const x =
|
|
1495
|
-
return i[
|
|
1492
|
+
const b = g ? `dark|${p}` : p;
|
|
1493
|
+
if (b in i) return i[b];
|
|
1494
|
+
const x = u(p, g);
|
|
1495
|
+
return i[b] = x, x;
|
|
1496
1496
|
}, $ = (p) => {
|
|
1497
|
-
const g = p.some((
|
|
1498
|
-
(
|
|
1497
|
+
const g = p.some((C) => oe.includes(C)), b = p.some(
|
|
1498
|
+
(C) => C.startsWith("@") && (le.includes(C.slice(1)) || C.match(/^@\[.+\]$/))
|
|
1499
1499
|
), x = p.includes("dark");
|
|
1500
|
-
return p.length ? !g && !x && !
|
|
1500
|
+
return p.length ? !g && !x && !b ? 1 : x && (g || b) ? 3 : 2 : 0;
|
|
1501
1501
|
}, n = (p) => {
|
|
1502
1502
|
const g = [];
|
|
1503
|
-
let
|
|
1504
|
-
for (let
|
|
1505
|
-
const k = p[
|
|
1506
|
-
k === "[" || k === "(" ? x++ : (k === "]" || k === ")") && x--, k === ":" && x === 0 ? (g.push(
|
|
1503
|
+
let b = "", x = 0;
|
|
1504
|
+
for (let C = 0; C < p.length; C++) {
|
|
1505
|
+
const k = p[C];
|
|
1506
|
+
k === "[" || k === "(" ? x++ : (k === "]" || k === ")") && x--, k === ":" && x === 0 ? (g.push(b), b = "") : b += k;
|
|
1507
1507
|
}
|
|
1508
|
-
return
|
|
1508
|
+
return b && g.push(b), g;
|
|
1509
1509
|
}, c = {
|
|
1510
1510
|
hover: ":hover",
|
|
1511
1511
|
focus: ":focus",
|
|
@@ -1519,168 +1519,168 @@ function Ge(e) {
|
|
|
1519
1519
|
even: ":nth-child(even)",
|
|
1520
1520
|
"focus-within": ":focus-within",
|
|
1521
1521
|
"focus-visible": ":focus-visible"
|
|
1522
|
-
},
|
|
1523
|
-
const
|
|
1524
|
-
let x = "",
|
|
1525
|
-
for (const s of
|
|
1526
|
-
let
|
|
1527
|
-
if (
|
|
1522
|
+
}, u = (p, g = !1) => {
|
|
1523
|
+
const b = n(p);
|
|
1524
|
+
let x = "", C = !1;
|
|
1525
|
+
for (const s of b) {
|
|
1526
|
+
let h = s;
|
|
1527
|
+
if (h.startsWith("!") && (C = !0, h = h.slice(1)), h.endsWith("!") && (C = !0, h = h.slice(0, -1)), pe[h] || ue(h) || fe(h) || he(h) || ge(h) || me(h) || ie(h)) {
|
|
1528
1528
|
x = s;
|
|
1529
1529
|
break;
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
1532
|
if (!x) return null;
|
|
1533
|
-
const k = x.replace(/^!/, ""),
|
|
1534
|
-
if (!
|
|
1535
|
-
const W =
|
|
1536
|
-
let E = W >= 0 ?
|
|
1533
|
+
const k = x.replace(/^!/, "").replace(/!$/, ""), P = pe[k] ?? ue(k) ?? fe(k) ?? he(k) ?? ge(k) ?? me(k) ?? ie(k);
|
|
1534
|
+
if (!P) return null;
|
|
1535
|
+
const W = b.indexOf(x);
|
|
1536
|
+
let E = W >= 0 ? b.slice(0, W) : [];
|
|
1537
1537
|
g && (E = E.filter((s) => s !== "dark"));
|
|
1538
|
-
const
|
|
1539
|
-
let
|
|
1540
|
-
const
|
|
1538
|
+
const z = te(p), R = C ? P.replace(/;/g, " !important;") : P, m = "__SUBJECT__";
|
|
1539
|
+
let d = m;
|
|
1540
|
+
const A = [];
|
|
1541
1541
|
for (const s of E)
|
|
1542
|
-
s.startsWith("group-") ? (
|
|
1543
|
-
|
|
1544
|
-
`.peer:${s.slice(5)}~${
|
|
1545
|
-
),
|
|
1546
|
-
E = E.filter((s) => !
|
|
1547
|
-
const
|
|
1542
|
+
s.startsWith("group-") ? (d = `.group:${s.slice(6)} ${d}`, A.push(s)) : s.startsWith("peer-") && (d = d.replace(
|
|
1543
|
+
m,
|
|
1544
|
+
`.peer:${s.slice(5)}~${m}`
|
|
1545
|
+
), A.push(s));
|
|
1546
|
+
E = E.filter((s) => !A.includes(s));
|
|
1547
|
+
const _ = [], L = [];
|
|
1548
1548
|
let M = null;
|
|
1549
1549
|
for (const s of E) {
|
|
1550
1550
|
if (s === "dark" || oe.includes(s) || s.startsWith("@") && (le.includes(s.slice(1)) || s.match(/^@\[.+\]$/)))
|
|
1551
1551
|
continue;
|
|
1552
|
-
const
|
|
1553
|
-
if (
|
|
1554
|
-
M =
|
|
1552
|
+
const h = Ce(s);
|
|
1553
|
+
if (h) {
|
|
1554
|
+
M = h;
|
|
1555
1555
|
continue;
|
|
1556
1556
|
}
|
|
1557
1557
|
const S = c[s];
|
|
1558
1558
|
if (S) {
|
|
1559
|
-
M ? L.push(S) :
|
|
1559
|
+
M ? L.push(S) : _.push(S);
|
|
1560
1560
|
continue;
|
|
1561
1561
|
}
|
|
1562
1562
|
const v = Se[s];
|
|
1563
|
-
typeof v == "function" && (
|
|
1563
|
+
typeof v == "function" && (d = v(d, R).split("{")[0]);
|
|
1564
1564
|
}
|
|
1565
|
-
const
|
|
1566
|
-
function I(s,
|
|
1567
|
-
if (!
|
|
1565
|
+
const T = _.join(""), D = L.join("");
|
|
1566
|
+
function I(s, h) {
|
|
1567
|
+
if (!h) return s;
|
|
1568
1568
|
let S = 0, v = 0;
|
|
1569
1569
|
if (s.length && (s[0] === ">" || s[0] === "+" || s[0] === "~" || s[0] === " ")) {
|
|
1570
|
-
let
|
|
1571
|
-
for (;
|
|
1572
|
-
for (;
|
|
1573
|
-
const O = s[
|
|
1574
|
-
if (O === "[" ? S++ : O === "]" && S > 0 ? S-- : O === "(" ? v++ : O === ")" && v > 0 && v--, S === 0 && v === 0 && (s[
|
|
1575
|
-
return s.slice(0,
|
|
1570
|
+
let f = 1;
|
|
1571
|
+
for (; f < s.length && s[f] === " "; ) f++;
|
|
1572
|
+
for (; f < s.length; f++) {
|
|
1573
|
+
const O = s[f];
|
|
1574
|
+
if (O === "[" ? S++ : O === "]" && S > 0 ? S-- : O === "(" ? v++ : O === ")" && v > 0 && v--, S === 0 && v === 0 && (s[f] === ">" || s[f] === "+" || s[f] === "~" || s[f] === " "))
|
|
1575
|
+
return s.slice(0, f) + h + s.slice(f);
|
|
1576
1576
|
}
|
|
1577
|
-
return s +
|
|
1577
|
+
return s + h;
|
|
1578
1578
|
}
|
|
1579
|
-
for (let
|
|
1580
|
-
const O = s[
|
|
1579
|
+
for (let f = 0; f < s.length; f++) {
|
|
1580
|
+
const O = s[f];
|
|
1581
1581
|
if (O === "[" ? S++ : O === "]" && S > 0 ? S-- : O === "(" ? v++ : O === ")" && v > 0 && v--, S === 0 && v === 0 && (O === ">" || O === "+" || O === "~" || O === " "))
|
|
1582
|
-
return s.slice(0,
|
|
1582
|
+
return s.slice(0, f) + h + s.slice(f);
|
|
1583
1583
|
}
|
|
1584
|
-
return s +
|
|
1584
|
+
return s + h;
|
|
1585
1585
|
}
|
|
1586
1586
|
if (M)
|
|
1587
1587
|
if (M.includes("&")) {
|
|
1588
|
-
const s = M.indexOf("&"),
|
|
1589
|
-
if (
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1588
|
+
const s = M.indexOf("&"), h = M.slice(0, s), S = M.slice(s + 1), v = m + T;
|
|
1589
|
+
if (_.length === 0)
|
|
1590
|
+
d = d.replace(
|
|
1591
|
+
m,
|
|
1592
|
+
h + v + D + S
|
|
1593
1593
|
);
|
|
1594
1594
|
else {
|
|
1595
|
-
const
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1595
|
+
const f = I(S, D);
|
|
1596
|
+
d = d.replace(
|
|
1597
|
+
m,
|
|
1598
|
+
h + v + f
|
|
1599
1599
|
);
|
|
1600
1600
|
}
|
|
1601
1601
|
} else
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
`${M}${
|
|
1605
|
-
), D && (
|
|
1602
|
+
d = d.replace(
|
|
1603
|
+
m,
|
|
1604
|
+
`${M}${m + T}`
|
|
1605
|
+
), D && (d = d.replace(m, `${m}${D}`));
|
|
1606
1606
|
else
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1607
|
+
d = d.replace(
|
|
1608
|
+
m,
|
|
1609
|
+
m + T + D
|
|
1610
1610
|
);
|
|
1611
|
-
|
|
1612
|
-
const V = "__CE_COLOR_MIX_SPLIT__",
|
|
1611
|
+
d = d.replace(new RegExp(m, "g"), z);
|
|
1612
|
+
const V = "__CE_COLOR_MIX_SPLIT__", Z = R.includes(V) ? R.split(V).map((s) => `${d}{${s}}`) : [`${d}{${R}}`], Q = E.filter(
|
|
1613
1613
|
(s) => oe.includes(s)
|
|
1614
1614
|
), X = E.filter(
|
|
1615
1615
|
(s) => s.startsWith("@") && (le.includes(s.slice(1)) || s.match(/^@\[.+\]$/))
|
|
1616
|
-
), B = Q.length ? Q[Q.length - 1] : null, N = X.length ? X[X.length - 1] : null,
|
|
1617
|
-
let w = "",
|
|
1618
|
-
if (
|
|
1616
|
+
), B = Q.length ? Q[Q.length - 1] : null, N = X.length ? X[X.length - 1] : null, J = E.includes("dark");
|
|
1617
|
+
let w = "", U = "";
|
|
1618
|
+
if (J && B ? w = `@media (prefers-color-scheme: dark) and ${re[B]}` : J ? w = "@media (prefers-color-scheme: dark)" : B && (w = `@media ${re[B]}`), N)
|
|
1619
1619
|
if (N.startsWith("@[") && N.endsWith("]")) {
|
|
1620
1620
|
const s = N.slice(2, -1);
|
|
1621
1621
|
if (!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(s))
|
|
1622
1622
|
return null;
|
|
1623
|
-
|
|
1623
|
+
U = `@container (min-width:${s})`;
|
|
1624
1624
|
} else {
|
|
1625
1625
|
const s = N.slice(1);
|
|
1626
|
-
|
|
1626
|
+
U = `@container ${je[s] || `(min-width:${s})`}`;
|
|
1627
1627
|
}
|
|
1628
|
-
const $e = (s) => w &&
|
|
1629
|
-
return
|
|
1628
|
+
const $e = (s) => w && U ? `${w}${U}{${s}}` : w ? `${w}{${s}}` : U ? `${U}{${s}}` : s;
|
|
1629
|
+
return Z.map($e).join("");
|
|
1630
1630
|
};
|
|
1631
1631
|
for (const p of t) {
|
|
1632
|
-
const g = n(p),
|
|
1632
|
+
const g = n(p), b = g.slice(0, -1), x = g[g.length - 1];
|
|
1633
1633
|
if (Ie(x) !== null) {
|
|
1634
|
-
if (
|
|
1634
|
+
if (b.length === 0)
|
|
1635
1635
|
r[0].push(`${te(p)}{}`);
|
|
1636
1636
|
else {
|
|
1637
|
-
const
|
|
1638
|
-
if (!
|
|
1639
|
-
const
|
|
1640
|
-
let
|
|
1641
|
-
new RegExp(
|
|
1642
|
-
|
|
1637
|
+
const m = ze(x);
|
|
1638
|
+
if (!m) continue;
|
|
1639
|
+
const d = te(p), A = te(x);
|
|
1640
|
+
let _ = m.replace(
|
|
1641
|
+
new RegExp(He(A), "g"),
|
|
1642
|
+
d
|
|
1643
1643
|
);
|
|
1644
|
-
const L =
|
|
1645
|
-
(
|
|
1644
|
+
const L = b.filter(
|
|
1645
|
+
(T) => oe.includes(T)
|
|
1646
1646
|
);
|
|
1647
1647
|
if (L.length > 0) {
|
|
1648
|
-
const
|
|
1649
|
-
|
|
1648
|
+
const T = L[L.length - 1];
|
|
1649
|
+
_ = `${`@media ${re[T]}`}{${_}}`;
|
|
1650
1650
|
}
|
|
1651
|
-
|
|
1652
|
-
const M = $(
|
|
1653
|
-
r[M].push(
|
|
1651
|
+
b.includes("dark") && (_ = `@media (prefers-color-scheme: dark){${_}}`);
|
|
1652
|
+
const M = $(b);
|
|
1653
|
+
r[M].push(_);
|
|
1654
1654
|
}
|
|
1655
1655
|
continue;
|
|
1656
1656
|
}
|
|
1657
1657
|
let k = -1;
|
|
1658
|
-
for (let
|
|
1659
|
-
const
|
|
1660
|
-
if (ke(
|
|
1661
|
-
k =
|
|
1658
|
+
for (let m = g.length - 1; m >= 0; m--) {
|
|
1659
|
+
const d = g.slice(m).join(":");
|
|
1660
|
+
if (ke(d)) {
|
|
1661
|
+
k = m;
|
|
1662
1662
|
break;
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
1665
|
if (k >= 0) {
|
|
1666
|
-
const
|
|
1667
|
-
if (!
|
|
1668
|
-
if (
|
|
1669
|
-
r[0].push(
|
|
1666
|
+
const m = g.slice(k).join(":"), d = g.slice(0, k), A = ke(m);
|
|
1667
|
+
if (!A) continue;
|
|
1668
|
+
if (d.length === 0) {
|
|
1669
|
+
r[0].push(A);
|
|
1670
1670
|
continue;
|
|
1671
1671
|
}
|
|
1672
|
-
const
|
|
1672
|
+
const _ = ve(p), L = ve(m), M = A.replace(
|
|
1673
1673
|
new RegExp(
|
|
1674
1674
|
`\\.${L.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`,
|
|
1675
1675
|
"g"
|
|
1676
1676
|
),
|
|
1677
|
-
`.${
|
|
1678
|
-
),
|
|
1677
|
+
`.${_}`
|
|
1678
|
+
), T = /(.+?)\s+(.+?)\{([^}]+)\}/g, D = [...M.matchAll(T)];
|
|
1679
1679
|
if (D.length === 0) {
|
|
1680
|
-
r[0].push(
|
|
1680
|
+
r[0].push(A);
|
|
1681
1681
|
continue;
|
|
1682
1682
|
}
|
|
1683
|
-
const I = $(
|
|
1683
|
+
const I = $(d), V = {
|
|
1684
1684
|
hover: ":hover",
|
|
1685
1685
|
focus: ":focus",
|
|
1686
1686
|
active: ":active",
|
|
@@ -1693,42 +1693,42 @@ function Ge(e) {
|
|
|
1693
1693
|
even: ":nth-child(even)",
|
|
1694
1694
|
"focus-within": ":focus-within",
|
|
1695
1695
|
"focus-visible": ":focus-visible"
|
|
1696
|
-
},
|
|
1697
|
-
let
|
|
1698
|
-
for (const w of
|
|
1699
|
-
w.startsWith("group-") || w.startsWith("peer-") ?
|
|
1696
|
+
}, Z = [], Q = [], X = [], B = [], N = [];
|
|
1697
|
+
let J = !1;
|
|
1698
|
+
for (const w of d)
|
|
1699
|
+
w.startsWith("group-") || w.startsWith("peer-") ? Z.push(w) : w === "dark" || w === "dark-class" ? J = !0 : oe.includes(w) ? B.push(w) : w.startsWith("@") && (le.includes(w.slice(1)) || w.match(/^@\[.+\]$/)) ? N.push(w) : w.startsWith("[") && w.endsWith("]") ? X.push(w) : (V[w] || Se[w]) && Q.push(w);
|
|
1700
1700
|
for (const w of D) {
|
|
1701
|
-
const [,
|
|
1702
|
-
let
|
|
1703
|
-
for (const v of
|
|
1701
|
+
const [, U, $e, s] = w;
|
|
1702
|
+
let h = `${U} ${$e}`;
|
|
1703
|
+
for (const v of Z)
|
|
1704
1704
|
if (v.startsWith("group-")) {
|
|
1705
|
-
const
|
|
1706
|
-
|
|
1705
|
+
const f = v.slice(6);
|
|
1706
|
+
h = `.group${V[f] || `:${f}`} ${h}`;
|
|
1707
1707
|
} else if (v.startsWith("peer-")) {
|
|
1708
|
-
const
|
|
1709
|
-
|
|
1708
|
+
const f = v.slice(5);
|
|
1709
|
+
h = `.peer${V[f] || `:${f}`}~${h}`;
|
|
1710
1710
|
}
|
|
1711
1711
|
if (Q.length > 0) {
|
|
1712
|
-
const v = Q.map((
|
|
1713
|
-
|
|
1712
|
+
const v = Q.map((f) => V[f] || `:${f}`).join("");
|
|
1713
|
+
h = `${h}${v}`;
|
|
1714
1714
|
}
|
|
1715
1715
|
for (const v of X) {
|
|
1716
|
-
const
|
|
1717
|
-
if (
|
|
1718
|
-
const O =
|
|
1719
|
-
|
|
1716
|
+
const f = Ce(v);
|
|
1717
|
+
if (f && f.includes("&")) {
|
|
1718
|
+
const O = f.indexOf("&"), Y = f.slice(0, O), se = f.slice(O + 1);
|
|
1719
|
+
h = `${Y}${h}${se}`;
|
|
1720
1720
|
}
|
|
1721
1721
|
}
|
|
1722
|
-
let S = `${
|
|
1723
|
-
if (
|
|
1722
|
+
let S = `${h}{${s}}`;
|
|
1723
|
+
if (J && (S = `@media (prefers-color-scheme: dark){${S}}`), N.length > 0) {
|
|
1724
1724
|
const v = N[N.length - 1];
|
|
1725
1725
|
if (v.startsWith("@[") && v.endsWith("]")) {
|
|
1726
|
-
const
|
|
1726
|
+
const f = v.slice(2, -1);
|
|
1727
1727
|
/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(
|
|
1728
|
-
|
|
1729
|
-
) && (S = `@container (min-width:${
|
|
1728
|
+
f
|
|
1729
|
+
) && (S = `@container (min-width:${f}){${S}}`);
|
|
1730
1730
|
} else {
|
|
1731
|
-
const
|
|
1731
|
+
const f = v.slice(1), Y = {
|
|
1732
1732
|
xs: "20rem",
|
|
1733
1733
|
sm: "24rem",
|
|
1734
1734
|
md: "28rem",
|
|
@@ -1740,7 +1740,7 @@ function Ge(e) {
|
|
|
1740
1740
|
"5xl": "64rem",
|
|
1741
1741
|
"6xl": "72rem",
|
|
1742
1742
|
"7xl": "80rem"
|
|
1743
|
-
}[
|
|
1743
|
+
}[f];
|
|
1744
1744
|
if (Y) {
|
|
1745
1745
|
const se = p.match(/@([^/]+)\//)?.[1] || "";
|
|
1746
1746
|
S = se ? `@container ${se} (min-width: ${Y}){${S}}` : `@container (min-width: ${Y}){${S}}`;
|
|
@@ -1755,22 +1755,23 @@ function Ge(e) {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
continue;
|
|
1757
1757
|
}
|
|
1758
|
-
const
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1758
|
+
const P = g.find((m) => {
|
|
1759
|
+
const d = m.replace(/^!/, "").replace(/!$/, "");
|
|
1760
|
+
return pe[d] || ue(d) || fe(d) || he(d) || ge(d) || me(d) || ie(d);
|
|
1761
|
+
});
|
|
1762
|
+
if (!P) continue;
|
|
1763
|
+
const W = g.indexOf(P), E = W >= 0 ? g.slice(0, W) : [], z = $(E), R = l(p);
|
|
1764
|
+
R && r[z].push(R);
|
|
1764
1765
|
}
|
|
1765
1766
|
const j = /^(from|via|to)-[a-z]+-?\d{2,3}?$/;
|
|
1766
1767
|
for (const p of t)
|
|
1767
1768
|
if (j.test(p)) {
|
|
1768
1769
|
if (r.flat().join("").includes(te(p))) continue;
|
|
1769
|
-
const
|
|
1770
|
-
|
|
1770
|
+
const b = l(p);
|
|
1771
|
+
b && r[0].push(b);
|
|
1771
1772
|
}
|
|
1772
|
-
const y = (p) => p.sort((g,
|
|
1773
|
-
const x = (
|
|
1773
|
+
const y = (p) => p.sort((g, b) => {
|
|
1774
|
+
const x = (z) => {
|
|
1774
1775
|
const R = {
|
|
1775
1776
|
sm: 640,
|
|
1776
1777
|
md: 768,
|
|
@@ -1778,10 +1779,10 @@ function Ge(e) {
|
|
|
1778
1779
|
xl: 1280,
|
|
1779
1780
|
"2xl": 1536
|
|
1780
1781
|
};
|
|
1781
|
-
for (const [
|
|
1782
|
-
if (
|
|
1782
|
+
for (const [m, d] of Object.entries(R))
|
|
1783
|
+
if (z.includes(`@media ${re[m]}`)) return d;
|
|
1783
1784
|
return -1;
|
|
1784
|
-
},
|
|
1785
|
+
}, C = (z) => {
|
|
1785
1786
|
const R = {
|
|
1786
1787
|
xs: 320,
|
|
1787
1788
|
// 20rem
|
|
@@ -1806,24 +1807,24 @@ function Ge(e) {
|
|
|
1806
1807
|
"7xl": 1280
|
|
1807
1808
|
// 80rem
|
|
1808
1809
|
};
|
|
1809
|
-
for (const [
|
|
1810
|
-
if (
|
|
1811
|
-
if (
|
|
1812
|
-
const
|
|
1813
|
-
if (
|
|
1814
|
-
const
|
|
1815
|
-
return
|
|
1810
|
+
for (const [m, d] of Object.entries(R))
|
|
1811
|
+
if (z.includes(`@container ${je[m]}`)) return d;
|
|
1812
|
+
if (z.includes("@container (min-width:")) {
|
|
1813
|
+
const m = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(z);
|
|
1814
|
+
if (m) {
|
|
1815
|
+
const d = parseFloat(m[1]), A = m[2];
|
|
1816
|
+
return A === "rem" || A === "em" ? d * 16 : d;
|
|
1816
1817
|
}
|
|
1817
1818
|
}
|
|
1818
1819
|
return -1;
|
|
1819
|
-
}, k = x(g),
|
|
1820
|
-
return k >= 0 &&
|
|
1820
|
+
}, k = x(g), P = x(b), W = C(g), E = C(b);
|
|
1821
|
+
return k >= 0 && P >= 0 && k !== P ? k - P : W >= 0 && E >= 0 && W !== E ? W - E : 0;
|
|
1821
1822
|
});
|
|
1822
1823
|
r[2] = y(r[2]), r[3] = y(r[3]);
|
|
1823
1824
|
const F = r.flat().join("");
|
|
1824
|
-
return ne.size >=
|
|
1825
|
+
return ne.size >= Ae && Array.from(ne.keys()).slice(
|
|
1825
1826
|
0,
|
|
1826
|
-
Math.floor(
|
|
1827
|
+
Math.floor(Ae / 2)
|
|
1827
1828
|
).forEach((g) => ne.delete(g)), ne.set(e, { css: F, timestamp: Date.now() }), F;
|
|
1828
1829
|
}
|
|
1829
1830
|
const ae = {
|
|
@@ -1918,7 +1919,7 @@ const ae = {
|
|
|
1918
1919
|
leaveTo: "rotate-[90deg] opacity-0"
|
|
1919
1920
|
}
|
|
1920
1921
|
};
|
|
1921
|
-
function
|
|
1922
|
+
function er(e, o) {
|
|
1922
1923
|
const {
|
|
1923
1924
|
preset: a,
|
|
1924
1925
|
show: t,
|
|
@@ -1928,33 +1929,33 @@ function rr(e, o) {
|
|
|
1928
1929
|
css: $ = !0,
|
|
1929
1930
|
name: n,
|
|
1930
1931
|
enterFrom: c,
|
|
1931
|
-
enterActive:
|
|
1932
|
+
enterActive: u,
|
|
1932
1933
|
enterTo: j,
|
|
1933
1934
|
leaveFrom: y,
|
|
1934
1935
|
leaveActive: F,
|
|
1935
1936
|
leaveTo: p,
|
|
1936
1937
|
onBeforeEnter: g,
|
|
1937
|
-
onEnter:
|
|
1938
|
+
onEnter: b,
|
|
1938
1939
|
onAfterEnter: x,
|
|
1939
|
-
onEnterCancelled:
|
|
1940
|
+
onEnterCancelled: C,
|
|
1940
1941
|
onBeforeLeave: k,
|
|
1941
|
-
onLeave:
|
|
1942
|
+
onLeave: P,
|
|
1942
1943
|
onAfterLeave: W,
|
|
1943
1944
|
onLeaveCancelled: E
|
|
1944
1945
|
} = e;
|
|
1945
|
-
let
|
|
1946
|
-
a && ae[a] ? (
|
|
1946
|
+
let z;
|
|
1947
|
+
a && ae[a] ? (z = { ...ae[a] }, c && (z.enterFrom = c), u && (z.enterActive = u), j && (z.enterTo = j), y && (z.leaveFrom = y), F && (z.leaveActive = F), p && (z.leaveTo = p)) : z = {
|
|
1947
1948
|
enterFrom: c,
|
|
1948
|
-
enterActive:
|
|
1949
|
+
enterActive: u,
|
|
1949
1950
|
enterTo: j,
|
|
1950
1951
|
leaveFrom: y,
|
|
1951
1952
|
leaveActive: F,
|
|
1952
1953
|
leaveTo: p
|
|
1953
1954
|
};
|
|
1954
|
-
const R = n || (a ? `transition-${a}` : "transition"),
|
|
1955
|
-
return
|
|
1955
|
+
const R = n || (a ? `transition-${a}` : "transition"), m = Fe(t ? o : [], R);
|
|
1956
|
+
return m._transition = {
|
|
1956
1957
|
name: R,
|
|
1957
|
-
classes:
|
|
1958
|
+
classes: z,
|
|
1958
1959
|
mode: r,
|
|
1959
1960
|
duration: i,
|
|
1960
1961
|
appear: l,
|
|
@@ -1962,17 +1963,17 @@ function rr(e, o) {
|
|
|
1962
1963
|
state: t ? "visible" : "hidden",
|
|
1963
1964
|
hooks: {
|
|
1964
1965
|
onBeforeEnter: g,
|
|
1965
|
-
onEnter:
|
|
1966
|
+
onEnter: b,
|
|
1966
1967
|
onAfterEnter: x,
|
|
1967
|
-
onEnterCancelled:
|
|
1968
|
+
onEnterCancelled: C,
|
|
1968
1969
|
onBeforeLeave: k,
|
|
1969
|
-
onLeave:
|
|
1970
|
+
onLeave: P,
|
|
1970
1971
|
onAfterLeave: W,
|
|
1971
1972
|
onLeaveCancelled: E
|
|
1972
1973
|
}
|
|
1973
|
-
},
|
|
1974
|
+
}, m;
|
|
1974
1975
|
}
|
|
1975
|
-
function
|
|
1976
|
+
function rr(e, o) {
|
|
1976
1977
|
const {
|
|
1977
1978
|
tag: a = "div",
|
|
1978
1979
|
moveClass: t = "transition-transform duration-300",
|
|
@@ -1982,45 +1983,45 @@ function or(e, o) {
|
|
|
1982
1983
|
duration: $,
|
|
1983
1984
|
appear: n = !1,
|
|
1984
1985
|
css: c = !0,
|
|
1985
|
-
name:
|
|
1986
|
+
name: u,
|
|
1986
1987
|
class: j,
|
|
1987
1988
|
style: y,
|
|
1988
1989
|
enterFrom: F,
|
|
1989
1990
|
enterActive: p,
|
|
1990
1991
|
enterTo: g,
|
|
1991
|
-
leaveFrom:
|
|
1992
|
+
leaveFrom: b,
|
|
1992
1993
|
leaveActive: x,
|
|
1993
|
-
leaveTo:
|
|
1994
|
+
leaveTo: C,
|
|
1994
1995
|
onBeforeEnter: k,
|
|
1995
|
-
onEnter:
|
|
1996
|
+
onEnter: P,
|
|
1996
1997
|
onAfterEnter: W,
|
|
1997
1998
|
onEnterCancelled: E,
|
|
1998
|
-
onBeforeLeave:
|
|
1999
|
+
onBeforeLeave: z,
|
|
1999
2000
|
onLeave: R,
|
|
2000
|
-
onAfterLeave:
|
|
2001
|
-
onLeaveCancelled:
|
|
2001
|
+
onAfterLeave: m,
|
|
2002
|
+
onLeaveCancelled: d
|
|
2002
2003
|
} = e;
|
|
2003
|
-
let
|
|
2004
|
-
r && ae[r] ? (
|
|
2004
|
+
let A;
|
|
2005
|
+
r && ae[r] ? (A = { ...ae[r] }, F && (A.enterFrom = F), p && (A.enterActive = p), g && (A.enterTo = g), b && (A.leaveFrom = b), x && (A.leaveActive = x), C && (A.leaveTo = C)) : A = {
|
|
2005
2006
|
enterFrom: F,
|
|
2006
2007
|
enterActive: p,
|
|
2007
2008
|
enterTo: g,
|
|
2008
|
-
leaveFrom:
|
|
2009
|
+
leaveFrom: b,
|
|
2009
2010
|
leaveActive: x,
|
|
2010
|
-
leaveTo:
|
|
2011
|
+
leaveTo: C
|
|
2011
2012
|
};
|
|
2012
|
-
const
|
|
2013
|
-
for (const
|
|
2014
|
-
if (
|
|
2015
|
-
const D = Array.isArray(
|
|
2013
|
+
const _ = u || (r ? `transition-group-${r}` : "transition-group"), L = [];
|
|
2014
|
+
for (const T of i ? o : [])
|
|
2015
|
+
if (T && typeof T == "object" && T.tag === "#anchor") {
|
|
2016
|
+
const D = Array.isArray(T.children) ? T.children : [];
|
|
2016
2017
|
for (const I of D)
|
|
2017
2018
|
if (I && typeof I == "object") {
|
|
2018
2019
|
const V = {
|
|
2019
2020
|
...I,
|
|
2020
|
-
key:
|
|
2021
|
+
key: T.key || I.key,
|
|
2021
2022
|
props: {
|
|
2022
2023
|
...I.props,
|
|
2023
|
-
_anchorKey:
|
|
2024
|
+
_anchorKey: T.key
|
|
2024
2025
|
// Preserve original anchor key
|
|
2025
2026
|
}
|
|
2026
2027
|
};
|
|
@@ -2028,23 +2029,23 @@ function or(e, o) {
|
|
|
2028
2029
|
} else
|
|
2029
2030
|
L.push(I);
|
|
2030
2031
|
} else
|
|
2031
|
-
L.push(
|
|
2032
|
+
L.push(T);
|
|
2032
2033
|
const M = (() => {
|
|
2033
2034
|
if (y)
|
|
2034
|
-
return typeof y == "string" ? y : Object.entries(y).map(([
|
|
2035
|
+
return typeof y == "string" ? y : Object.entries(y).map(([T, D]) => `${T}: ${D}`).join("; ");
|
|
2035
2036
|
})();
|
|
2036
2037
|
return {
|
|
2037
2038
|
tag: a,
|
|
2038
2039
|
children: L,
|
|
2039
|
-
key:
|
|
2040
|
+
key: _,
|
|
2040
2041
|
props: {
|
|
2041
2042
|
attrs: {
|
|
2042
2043
|
...j ? { class: j } : {},
|
|
2043
2044
|
...M ? { style: M } : {}
|
|
2044
2045
|
},
|
|
2045
2046
|
_transitionGroup: {
|
|
2046
|
-
name:
|
|
2047
|
-
classes:
|
|
2047
|
+
name: _,
|
|
2048
|
+
classes: A,
|
|
2048
2049
|
moveClass: t,
|
|
2049
2050
|
mode: l,
|
|
2050
2051
|
duration: $,
|
|
@@ -2052,23 +2053,23 @@ function or(e, o) {
|
|
|
2052
2053
|
css: c,
|
|
2053
2054
|
hooks: {
|
|
2054
2055
|
onBeforeEnter: k,
|
|
2055
|
-
onEnter:
|
|
2056
|
+
onEnter: P,
|
|
2056
2057
|
onAfterEnter: W,
|
|
2057
2058
|
onEnterCancelled: E,
|
|
2058
|
-
onBeforeLeave:
|
|
2059
|
+
onBeforeLeave: z,
|
|
2059
2060
|
onLeave: R,
|
|
2060
|
-
onAfterLeave:
|
|
2061
|
-
onLeaveCancelled:
|
|
2061
|
+
onAfterLeave: m,
|
|
2062
|
+
onLeaveCancelled: d
|
|
2062
2063
|
}
|
|
2063
2064
|
}
|
|
2064
2065
|
}
|
|
2065
2066
|
};
|
|
2066
2067
|
}
|
|
2067
|
-
function
|
|
2068
|
+
function or(e) {
|
|
2068
2069
|
return { ...e };
|
|
2069
2070
|
}
|
|
2070
2071
|
let G = null;
|
|
2071
|
-
function
|
|
2072
|
+
function Ge() {
|
|
2072
2073
|
if (!G) {
|
|
2073
2074
|
if (typeof CSSStyleSheet > "u")
|
|
2074
2075
|
return G = {
|
|
@@ -2081,7 +2082,7 @@ function Xe() {
|
|
|
2081
2082
|
Object.values(ae).forEach((t) => {
|
|
2082
2083
|
t.enterFrom && e.push(t.enterFrom), t.enterActive && e.push(t.enterActive), t.enterTo && e.push(t.enterTo), t.leaveFrom && e.push(t.leaveFrom), t.leaveActive && e.push(t.leaveActive), t.leaveTo && e.push(t.leaveTo);
|
|
2083
2084
|
});
|
|
2084
|
-
const o = `<div class="${e.join(" ")}"></div>`, a =
|
|
2085
|
+
const o = `<div class="${e.join(" ")}"></div>`, a = Qe(o);
|
|
2085
2086
|
try {
|
|
2086
2087
|
G = new CSSStyleSheet(), G.replaceSync(a);
|
|
2087
2088
|
} catch {
|
|
@@ -2095,26 +2096,26 @@ function Xe() {
|
|
|
2095
2096
|
}
|
|
2096
2097
|
return G;
|
|
2097
2098
|
}
|
|
2098
|
-
function
|
|
2099
|
+
function Xe() {
|
|
2099
2100
|
if (!(typeof window > "u" || typeof CSSStyleSheet > "u"))
|
|
2100
2101
|
try {
|
|
2101
|
-
|
|
2102
|
+
Ge();
|
|
2102
2103
|
} catch {
|
|
2103
2104
|
}
|
|
2104
2105
|
}
|
|
2105
|
-
|
|
2106
|
+
Xe();
|
|
2106
2107
|
export {
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2108
|
+
er as T,
|
|
2109
|
+
Je as a,
|
|
2110
|
+
Ge as b,
|
|
2111
|
+
Pe as c,
|
|
2112
|
+
ye as d,
|
|
2113
|
+
rr as e,
|
|
2114
|
+
or as f,
|
|
2115
|
+
_e as g,
|
|
2116
|
+
Qe as j,
|
|
2116
2117
|
we as m,
|
|
2117
|
-
|
|
2118
|
+
Ye as s,
|
|
2118
2119
|
ae as t
|
|
2119
2120
|
};
|
|
2120
|
-
//# sourceMappingURL=transitions-
|
|
2121
|
+
//# sourceMappingURL=transitions-Bx0Nc9zR.js.map
|