@jasonshimmy/custom-elements-runtime 2.5.1 → 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.
Files changed (36) hide show
  1. package/dist/custom-elements-runtime.cjs.js +1 -18
  2. package/dist/custom-elements-runtime.cjs.js.map +1 -1
  3. package/dist/custom-elements-runtime.es.js +150 -3644
  4. package/dist/custom-elements-runtime.es.js.map +1 -1
  5. package/dist/custom-elements-runtime.router.cjs.js +19 -19
  6. package/dist/custom-elements-runtime.router.cjs.js.map +1 -1
  7. package/dist/custom-elements-runtime.router.es.js +762 -454
  8. package/dist/custom-elements-runtime.router.es.js.map +1 -1
  9. package/dist/custom-elements-runtime.ssr.cjs.js +1 -1
  10. package/dist/custom-elements-runtime.ssr.es.js +1 -1
  11. package/dist/custom-elements-runtime.transitions.cjs.js +1 -1
  12. package/dist/custom-elements-runtime.transitions.es.js +1 -1
  13. package/dist/index.d.ts +2 -0
  14. package/dist/namespace-helpers-BCVTzhAO.cjs +5 -0
  15. package/dist/namespace-helpers-BCVTzhAO.cjs.map +1 -0
  16. package/dist/namespace-helpers-CF28TyaG.js +786 -0
  17. package/dist/namespace-helpers-CF28TyaG.js.map +1 -0
  18. package/dist/router.d.ts +82 -21
  19. package/dist/runtime/monitoring/health-monitor.d.ts +99 -0
  20. package/dist/runtime/render.d.ts +1 -1
  21. package/dist/runtime/scheduler.d.ts +46 -0
  22. package/dist/template-compiler-CXHEnaBh.cjs +17 -0
  23. package/dist/template-compiler-CXHEnaBh.cjs.map +1 -0
  24. package/dist/template-compiler-DD_VZrte.js +3729 -0
  25. package/dist/template-compiler-DD_VZrte.js.map +1 -0
  26. package/dist/{transitions-CZ21fzhh.js → transitions-Bx0Nc9zR.js} +256 -255
  27. package/dist/transitions-Bx0Nc9zR.js.map +1 -0
  28. package/dist/{transitions-RXe2brRm.cjs → transitions-DfcqL-X4.cjs} +4 -4
  29. package/dist/transitions-DfcqL-X4.cjs.map +1 -0
  30. package/package.json +9 -8
  31. package/dist/namespace-helpers-BsKQl3aH.cjs +0 -5
  32. package/dist/namespace-helpers-BsKQl3aH.cjs.map +0 -1
  33. package/dist/namespace-helpers-Dw1mgQab.js +0 -692
  34. package/dist/namespace-helpers-Dw1mgQab.js.map +0 -1
  35. package/dist/transitions-CZ21fzhh.js.map +0 -1
  36. 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 Ae(e) {
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, f] = n, j = Oe[c];
236
+ const [, c, u] = n, j = Oe[c];
237
237
  if (!j) return null;
238
- const y = o[f] ?? a(f) ?? t(f) ?? r(f) ?? i(f) ?? l(f) ?? $(f);
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 h = g.trim();
243
- return `${`.${F} ${h}:not(.not-prose):not(.not-prose *)`}{${y}}`;
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 _e(e, ...o) {
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 Ye() {
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 U = null;
394
+ let H = null;
395
395
  const be = /* @__PURE__ */ new Set();
396
396
  let ce = "";
397
- function Pe() {
397
+ function _e() {
398
398
  if (be.size === 0) return null;
399
- U || (typeof CSSStyleSheet > "u" ? U = {
399
+ H || (typeof CSSStyleSheet > "u" ? H = {
400
400
  cssRules: [],
401
401
  replaceSync: () => {
402
402
  },
403
403
  toString: () => ce
404
- } : (U = new CSSStyleSheet(), U.toString = () => ce));
404
+ } : (H = new CSSStyleSheet(), H.toString = () => ce));
405
405
  let e = "";
406
406
  for (const o of be) {
407
- const a = Ae(o);
407
+ const a = ze(o);
408
408
  a && (e += a);
409
409
  }
410
- if (ce = we(e), typeof U.replaceSync == "function" && e)
410
+ if (ce = we(e), typeof H.replaceSync == "function" && e)
411
411
  try {
412
- U.replaceSync(ce);
412
+ H.replaceSync(ce);
413
413
  } catch {
414
414
  }
415
- return U;
415
+ return H;
416
416
  }
417
417
  function We(e) {
418
418
  const o = !be.has(e);
419
- be.add(e), o && U && Pe();
419
+ be.add(e), o && H && _e();
420
420
  }
421
- function er(e) {
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 = _e`
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
- }, ze = Object.fromEntries(
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, f]) => {
820
- e[n] = `font-size:${c};line-height:var(--cer-line-height,${f});`;
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 f = c === 9999 ? "9999px" : `${c / 16}rem`;
891
- e[`rounded-${n}`] = `border-radius:${f};`, e[`rounded-t-${n}`] = `border-top-left-radius:${f};border-top-right-radius:${f};`, e[`rounded-r-${n}`] = `border-top-right-radius:${f};border-bottom-right-radius:${f};`, e[`rounded-b-${n}`] = `border-bottom-left-radius:${f};border-bottom-right-radius:${f};`, e[`rounded-l-${n}`] = `border-top-left-radius:${f};border-bottom-left-radius:${f};`, e[`rounded-tl-${n}`] = `border-top-left-radius:${f};`, e[`rounded-tr-${n}`] = `border-top-right-radius:${f};`, e[`rounded-br-${n}`] = `border-bottom-right-radius:${f};`, e[`rounded-bl-${n}`] = `border-bottom-left-radius:${f};`;
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 fe(e) {
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 f = n / c * 100;
1246
- return xe[r].map((j) => `${j}:${f}%;`).join("");
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 ue(e) {
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 [f, j] = i.split("/").map((p) => parseFloat(p));
1261
- if (Number.isNaN(f) || Number.isNaN(j) || j === 0)
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 = f / j * 100, F = o ? "-" : "";
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 = ze[t]?.[r];
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 He(e) {
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 } = He(e), t = Be(o);
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}%)`, f = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($), j = /^([a-z-]+):/.exec(t), y = j ? j[1] : "background-color";
1311
- if (f) {
1312
- const p = `rgb(${de(f[0])} / ${a})`, g = $.replace(
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}%)`, f = /#([0-9a-f]{6}|[0-9a-f]{3})/i.exec($), j = /^([a-z-]+):/.exec(r), y = j ? j[1] : null;
1338
- if (f && y) {
1339
- const p = `rgb(${de(f[0])} / ${a})`, g = $.replace(
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 = ze[t]?.[r];
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 Ue(e) {
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(), Qe = 16, Te = 1e3;
1485
- function Ge(e) {
1484
+ const ne = /* @__PURE__ */ new Map(), Ae = 1e3;
1485
+ function Qe(e) {
1486
1486
  const o = ne.get(e);
1487
- if (o && Date.now() - o.timestamp < Qe)
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 h = g ? `dark|${p}` : p;
1493
- if (h in i) return i[h];
1494
- const x = f(p, g);
1495
- return i[h] = x, x;
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((T) => oe.includes(T)), h = p.some(
1498
- (T) => T.startsWith("@") && (le.includes(T.slice(1)) || T.match(/^@\[.+\]$/))
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 && !h ? 1 : x && (g || h) ? 3 : 2 : 0;
1500
+ return p.length ? !g && !x && !b ? 1 : x && (g || b) ? 3 : 2 : 0;
1501
1501
  }, n = (p) => {
1502
1502
  const g = [];
1503
- let h = "", x = 0;
1504
- for (let T = 0; T < p.length; T++) {
1505
- const k = p[T];
1506
- k === "[" || k === "(" ? x++ : (k === "]" || k === ")") && x--, k === ":" && x === 0 ? (g.push(h), h = "") : h += k;
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 h && g.push(h), g;
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
- }, f = (p, g = !1) => {
1523
- const h = n(p);
1524
- let x = "", T = !1;
1525
- for (const s of h) {
1526
- let b = s;
1527
- if (b.startsWith("!") && (T = !0, b = b.slice(1)), pe[b] || fe(b) || ue(b) || he(b) || ge(b) || me(b) || ie(b)) {
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(/^!/, ""), _ = pe[k] ?? fe(k) ?? ue(k) ?? he(k) ?? ge(k) ?? me(k) ?? ie(k);
1534
- if (!_) return null;
1535
- const W = h.indexOf(x);
1536
- let E = W >= 0 ? h.slice(0, W) : [];
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 A = te(p), R = T ? _.replace(/;/g, " !important;") : _, d = "__SUBJECT__";
1539
- let m = d;
1540
- const C = [];
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-") ? (m = `.group:${s.slice(6)} ${m}`, C.push(s)) : s.startsWith("peer-") && (m = m.replace(
1543
- d,
1544
- `.peer:${s.slice(5)}~${d}`
1545
- ), C.push(s));
1546
- E = E.filter((s) => !C.includes(s));
1547
- const P = [], L = [];
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 b = Ce(s);
1553
- if (b) {
1554
- M = b;
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) : P.push(S);
1559
+ M ? L.push(S) : _.push(S);
1560
1560
  continue;
1561
1561
  }
1562
1562
  const v = Se[s];
1563
- typeof v == "function" && (m = v(m, R).split("{")[0]);
1563
+ typeof v == "function" && (d = v(d, R).split("{")[0]);
1564
1564
  }
1565
- const z = P.join(""), D = L.join("");
1566
- function I(s, b) {
1567
- if (!b) return s;
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 u = 1;
1571
- for (; u < s.length && s[u] === " "; ) u++;
1572
- for (; u < s.length; u++) {
1573
- const O = s[u];
1574
- if (O === "[" ? S++ : O === "]" && S > 0 ? S-- : O === "(" ? v++ : O === ")" && v > 0 && v--, S === 0 && v === 0 && (s[u] === ">" || s[u] === "+" || s[u] === "~" || s[u] === " "))
1575
- return s.slice(0, u) + b + s.slice(u);
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 + b;
1577
+ return s + h;
1578
1578
  }
1579
- for (let u = 0; u < s.length; u++) {
1580
- const O = s[u];
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, u) + b + s.slice(u);
1582
+ return s.slice(0, f) + h + s.slice(f);
1583
1583
  }
1584
- return s + b;
1584
+ return s + h;
1585
1585
  }
1586
1586
  if (M)
1587
1587
  if (M.includes("&")) {
1588
- const s = M.indexOf("&"), b = M.slice(0, s), S = M.slice(s + 1), v = d + z;
1589
- if (P.length === 0)
1590
- m = m.replace(
1591
- d,
1592
- b + v + D + S
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 u = I(S, D);
1596
- m = m.replace(
1597
- d,
1598
- b + v + u
1595
+ const f = I(S, D);
1596
+ d = d.replace(
1597
+ m,
1598
+ h + v + f
1599
1599
  );
1600
1600
  }
1601
1601
  } else
1602
- m = m.replace(
1603
- d,
1604
- `${M}${d + z}`
1605
- ), D && (m = m.replace(d, `${d}${D}`));
1602
+ d = d.replace(
1603
+ m,
1604
+ `${M}${m + T}`
1605
+ ), D && (d = d.replace(m, `${m}${D}`));
1606
1606
  else
1607
- m = m.replace(
1608
- d,
1609
- d + z + D
1607
+ d = d.replace(
1608
+ m,
1609
+ m + T + D
1610
1610
  );
1611
- m = m.replace(new RegExp(d, "g"), A);
1612
- const V = "__CE_COLOR_MIX_SPLIT__", J = R.includes(V) ? R.split(V).map((s) => `${m}{${s}}`) : [`${m}{${R}}`], Q = E.filter(
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, Z = E.includes("dark");
1617
- let w = "", H = "";
1618
- if (Z && B ? w = `@media (prefers-color-scheme: dark) and ${re[B]}` : Z ? w = "@media (prefers-color-scheme: dark)" : B && (w = `@media ${re[B]}`), N)
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
- H = `@container (min-width:${s})`;
1623
+ U = `@container (min-width:${s})`;
1624
1624
  } else {
1625
1625
  const s = N.slice(1);
1626
- H = `@container ${je[s] || `(min-width:${s})`}`;
1626
+ U = `@container ${je[s] || `(min-width:${s})`}`;
1627
1627
  }
1628
- const $e = (s) => w && H ? `${w}${H}{${s}}` : w ? `${w}{${s}}` : H ? `${H}{${s}}` : s;
1629
- return J.map($e).join("");
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), h = g.slice(0, -1), x = g[g.length - 1];
1632
+ const g = n(p), b = g.slice(0, -1), x = g[g.length - 1];
1633
1633
  if (Ie(x) !== null) {
1634
- if (h.length === 0)
1634
+ if (b.length === 0)
1635
1635
  r[0].push(`${te(p)}{}`);
1636
1636
  else {
1637
- const d = Ae(x);
1638
- if (!d) continue;
1639
- const m = te(p), C = te(x);
1640
- let P = d.replace(
1641
- new RegExp(Ue(C), "g"),
1642
- m
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 = h.filter(
1645
- (z) => oe.includes(z)
1644
+ const L = b.filter(
1645
+ (T) => oe.includes(T)
1646
1646
  );
1647
1647
  if (L.length > 0) {
1648
- const z = L[L.length - 1];
1649
- P = `${`@media ${re[z]}`}{${P}}`;
1648
+ const T = L[L.length - 1];
1649
+ _ = `${`@media ${re[T]}`}{${_}}`;
1650
1650
  }
1651
- h.includes("dark") && (P = `@media (prefers-color-scheme: dark){${P}}`);
1652
- const M = $(h);
1653
- r[M].push(P);
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 d = g.length - 1; d >= 0; d--) {
1659
- const m = g.slice(d).join(":");
1660
- if (ke(m)) {
1661
- k = d;
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 d = g.slice(k).join(":"), m = g.slice(0, k), C = ke(d);
1667
- if (!C) continue;
1668
- if (m.length === 0) {
1669
- r[0].push(C);
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 P = ve(p), L = ve(d), M = C.replace(
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
- `.${P}`
1678
- ), z = /(.+?)\s+(.+?)\{([^}]+)\}/g, D = [...M.matchAll(z)];
1677
+ `.${_}`
1678
+ ), T = /(.+?)\s+(.+?)\{([^}]+)\}/g, D = [...M.matchAll(T)];
1679
1679
  if (D.length === 0) {
1680
- r[0].push(C);
1680
+ r[0].push(A);
1681
1681
  continue;
1682
1682
  }
1683
- const I = $(m), V = {
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
- }, J = [], Q = [], X = [], B = [], N = [];
1697
- let Z = !1;
1698
- for (const w of m)
1699
- w.startsWith("group-") || w.startsWith("peer-") ? J.push(w) : w === "dark" || w === "dark-class" ? Z = !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);
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 [, H, $e, s] = w;
1702
- let b = `${H} ${$e}`;
1703
- for (const v of J)
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 u = v.slice(6);
1706
- b = `.group${V[u] || `:${u}`} ${b}`;
1705
+ const f = v.slice(6);
1706
+ h = `.group${V[f] || `:${f}`} ${h}`;
1707
1707
  } else if (v.startsWith("peer-")) {
1708
- const u = v.slice(5);
1709
- b = `.peer${V[u] || `:${u}`}~${b}`;
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((u) => V[u] || `:${u}`).join("");
1713
- b = `${b}${v}`;
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 u = Ce(v);
1717
- if (u && u.includes("&")) {
1718
- const O = u.indexOf("&"), Y = u.slice(0, O), se = u.slice(O + 1);
1719
- b = `${Y}${b}${se}`;
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 = `${b}{${s}}`;
1723
- if (Z && (S = `@media (prefers-color-scheme: dark){${S}}`), N.length > 0) {
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 u = v.slice(2, -1);
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
- u
1729
- ) && (S = `@container (min-width:${u}){${S}}`);
1728
+ f
1729
+ ) && (S = `@container (min-width:${f}){${S}}`);
1730
1730
  } else {
1731
- const u = v.slice(1), Y = {
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
- }[u];
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 _ = g.find(
1759
- (d) => pe[d.replace(/^!/, "")] || fe(d.replace(/^!/, "")) || ue(d.replace(/^!/, "")) || he(d.replace(/^!/, "")) || ge(d.replace(/^!/, "")) || me(d.replace(/^!/, "")) || ie(d.replace(/^!/, ""))
1760
- );
1761
- if (!_) continue;
1762
- const W = g.indexOf(_), E = W >= 0 ? g.slice(0, W) : [], A = $(E), R = l(p);
1763
- R && r[A].push(R);
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 h = l(p);
1770
- h && r[0].push(h);
1770
+ const b = l(p);
1771
+ b && r[0].push(b);
1771
1772
  }
1772
- const y = (p) => p.sort((g, h) => {
1773
- const x = (A) => {
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 [d, m] of Object.entries(R))
1782
- if (A.includes(`@media ${re[d]}`)) return m;
1782
+ for (const [m, d] of Object.entries(R))
1783
+ if (z.includes(`@media ${re[m]}`)) return d;
1783
1784
  return -1;
1784
- }, T = (A) => {
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 [d, m] of Object.entries(R))
1810
- if (A.includes(`@container ${je[d]}`)) return m;
1811
- if (A.includes("@container (min-width:")) {
1812
- const d = /@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(A);
1813
- if (d) {
1814
- const m = parseFloat(d[1]), C = d[2];
1815
- return C === "rem" || C === "em" ? m * 16 : m;
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), _ = x(h), W = T(g), E = T(h);
1820
- return k >= 0 && _ >= 0 && k !== _ ? k - _ : W >= 0 && E >= 0 && W !== E ? W - E : 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 >= Te && Array.from(ne.keys()).slice(
1825
+ return ne.size >= Ae && Array.from(ne.keys()).slice(
1825
1826
  0,
1826
- Math.floor(Te / 2)
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 rr(e, o) {
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: f,
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: h,
1938
+ onEnter: b,
1938
1939
  onAfterEnter: x,
1939
- onEnterCancelled: T,
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 A;
1946
- a && ae[a] ? (A = { ...ae[a] }, c && (A.enterFrom = c), f && (A.enterActive = f), j && (A.enterTo = j), y && (A.leaveFrom = y), F && (A.leaveActive = F), p && (A.leaveTo = p)) : 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: f,
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"), d = Fe(t ? o : [], R);
1955
- return d._transition = {
1955
+ const R = n || (a ? `transition-${a}` : "transition"), m = Fe(t ? o : [], R);
1956
+ return m._transition = {
1956
1957
  name: R,
1957
- classes: A,
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: h,
1966
+ onEnter: b,
1966
1967
  onAfterEnter: x,
1967
- onEnterCancelled: T,
1968
+ onEnterCancelled: C,
1968
1969
  onBeforeLeave: k,
1969
- onLeave: _,
1970
+ onLeave: P,
1970
1971
  onAfterLeave: W,
1971
1972
  onLeaveCancelled: E
1972
1973
  }
1973
- }, d;
1974
+ }, m;
1974
1975
  }
1975
- function or(e, o) {
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: f,
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: h,
1992
+ leaveFrom: b,
1992
1993
  leaveActive: x,
1993
- leaveTo: T,
1994
+ leaveTo: C,
1994
1995
  onBeforeEnter: k,
1995
- onEnter: _,
1996
+ onEnter: P,
1996
1997
  onAfterEnter: W,
1997
1998
  onEnterCancelled: E,
1998
- onBeforeLeave: A,
1999
+ onBeforeLeave: z,
1999
2000
  onLeave: R,
2000
- onAfterLeave: d,
2001
- onLeaveCancelled: m
2001
+ onAfterLeave: m,
2002
+ onLeaveCancelled: d
2002
2003
  } = e;
2003
- let C;
2004
- r && ae[r] ? (C = { ...ae[r] }, F && (C.enterFrom = F), p && (C.enterActive = p), g && (C.enterTo = g), h && (C.leaveFrom = h), x && (C.leaveActive = x), T && (C.leaveTo = T)) : C = {
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: h,
2009
+ leaveFrom: b,
2009
2010
  leaveActive: x,
2010
- leaveTo: T
2011
+ leaveTo: C
2011
2012
  };
2012
- const P = f || (r ? `transition-group-${r}` : "transition-group"), L = [];
2013
- for (const z of i ? o : [])
2014
- if (z && typeof z == "object" && z.tag === "#anchor") {
2015
- const D = Array.isArray(z.children) ? z.children : [];
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: z.key || I.key,
2021
+ key: T.key || I.key,
2021
2022
  props: {
2022
2023
  ...I.props,
2023
- _anchorKey: z.key
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(z);
2032
+ L.push(T);
2032
2033
  const M = (() => {
2033
2034
  if (y)
2034
- return typeof y == "string" ? y : Object.entries(y).map(([z, D]) => `${z}: ${D}`).join("; ");
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: P,
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: P,
2047
- classes: C,
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: A,
2059
+ onBeforeLeave: z,
2059
2060
  onLeave: R,
2060
- onAfterLeave: d,
2061
- onLeaveCancelled: m
2061
+ onAfterLeave: m,
2062
+ onLeaveCancelled: d
2062
2063
  }
2063
2064
  }
2064
2065
  }
2065
2066
  };
2066
2067
  }
2067
- function tr(e) {
2068
+ function or(e) {
2068
2069
  return { ...e };
2069
2070
  }
2070
2071
  let G = null;
2071
- function Xe() {
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 = Ge(o);
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 Je() {
2099
+ function Xe() {
2099
2100
  if (!(typeof window > "u" || typeof CSSStyleSheet > "u"))
2100
2101
  try {
2101
- Xe();
2102
+ Ge();
2102
2103
  } catch {
2103
2104
  }
2104
2105
  }
2105
- Je();
2106
+ Xe();
2106
2107
  export {
2107
- rr as T,
2108
- Ye as a,
2109
- Xe as b,
2110
- ye as c,
2111
- _e as d,
2112
- or as e,
2113
- tr as f,
2114
- Pe as g,
2115
- Ge as j,
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
- er as s,
2118
+ Ye as s,
2118
2119
  ae as t
2119
2120
  };
2120
- //# sourceMappingURL=transitions-CZ21fzhh.js.map
2121
+ //# sourceMappingURL=transitions-Bx0Nc9zR.js.map