@jasonshimmy/custom-elements-runtime 2.1.2 → 2.2.0

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.
@@ -1,8 +1,8 @@
1
1
  import { g as K, t as q, i as M, s as Ne, a as j, b as z, d as De, f as Qe, h as ze, j as ge, k as Fe, l as ct } from "./helpers-CDfJhmMS.js";
2
2
  import { c as on, r as an, u as cn, w as ln } from "./helpers-CDfJhmMS.js";
3
3
  import { d as B, a as Z } from "./logger-BpibrmKL.js";
4
- import { j as lt, g as Ve, a as Ue, s as ft, m as ut } from "./transitions-PEmFOapF.js";
5
- import { c as un } from "./transitions-PEmFOapF.js";
4
+ import { j as lt, g as Ve, a as Ue, s as ft, m as ut } from "./transitions-CbxTVf1F.js";
5
+ import { c as un } from "./transitions-CbxTVf1F.js";
6
6
  function dt(e, r, n) {
7
7
  if (n)
8
8
  for (const [t, s] of Object.entries(n)) {
@@ -26,8 +26,8 @@ function pt(e, r, n, t) {
26
26
  if (typeof i != typeof a || typeof i != "object" || i === null || a === null) return !1;
27
27
  if (Array.isArray(i) && Array.isArray(a))
28
28
  return i.length !== a.length ? !1 : i.every((c, m) => s(c, a[m]));
29
- const f = i, u = a, E = Object.keys(f || {}), k = Object.keys(u || {});
30
- return E.length !== k.length ? !1 : E.every((c) => s(f[c], u[c]));
29
+ const f = i, u = a, _ = Object.keys(f || {}), E = Object.keys(u || {});
30
+ return _.length !== E.length ? !1 : _.every((c) => s(f[c], u[c]));
31
31
  }, o = r.get(n);
32
32
  if (o && !s(t, o.oldValue))
33
33
  try {
@@ -96,9 +96,9 @@ function yt(e, r, n) {
96
96
  const f = q(o), u = e.getAttribute(f);
97
97
  if (u !== null)
98
98
  return u;
99
- const E = e[o];
100
- let k;
101
- return M(E) || E && typeof E == "object" && "value" in E && !(E instanceof Node) ? k = E.value : k = E, k;
99
+ const _ = e[o];
100
+ let E;
101
+ return M(_) || _ && typeof _ == "object" && "value" in _ && !(_ instanceof Node) ? E = _.value : E = _, E;
102
102
  } catch {
103
103
  return e[o];
104
104
  }
@@ -228,45 +228,45 @@ class vt {
228
228
  const s = [];
229
229
  t = t.replace(
230
230
  /("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')/g,
231
- (k) => `<<#${s.push(k) - 1}#>>`
231
+ (E) => `<<#${s.push(E) - 1}#>>`
232
232
  );
233
233
  const o = t.match(/ctx\.[\w.]+/g) || [];
234
- for (const k of o) {
235
- const c = k.slice(4), m = K(n, c);
234
+ for (const E of o) {
235
+ const c = E.slice(4), m = K(n, c);
236
236
  if (m === void 0) return;
237
237
  const d = s.push(JSON.stringify(m)) - 1;
238
238
  t = t.replace(
239
- new RegExp(k.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
239
+ new RegExp(E.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
240
240
  `<<#${d}#>>`
241
241
  );
242
242
  }
243
243
  const i = /\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g, a = t.match(i) || [];
244
- for (const k of a) {
245
- if (k.startsWith("ctx.")) continue;
246
- const c = K(n, k);
244
+ for (const E of a) {
245
+ if (E.startsWith("ctx.")) continue;
246
+ const c = K(n, E);
247
247
  if (c === void 0) return;
248
248
  const m = s.push(JSON.stringify(c)) - 1;
249
249
  t = t.replace(
250
- new RegExp(k.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
250
+ new RegExp(E.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
251
251
  `<<#${m}#>>`
252
252
  );
253
253
  }
254
254
  const f = /\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g;
255
255
  let u;
256
- const E = /* @__PURE__ */ new Set();
256
+ const _ = /* @__PURE__ */ new Set();
257
257
  for (; (u = f.exec(t)) !== null; ) {
258
- const k = u[1];
259
- if (["true", "false", "null", "undefined"].includes(k) || /^[0-9]+$/.test(k) || k === "ctx" || E.has(k)) continue;
260
- E.add(k);
261
- const c = K(n, k);
258
+ const E = u[1];
259
+ if (["true", "false", "null", "undefined"].includes(E) || /^[0-9]+$/.test(E) || E === "ctx" || _.has(E)) continue;
260
+ _.add(E);
261
+ const c = K(n, E);
262
262
  if (c === void 0) return;
263
263
  const m = JSON.stringify(c), d = s.push(m) - 1;
264
- k.includes(".") ? t = t.replace(
265
- new RegExp(k.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
264
+ E.includes(".") ? t = t.replace(
265
+ new RegExp(E.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
266
266
  `<<#${d}#>>`
267
267
  ) : t = t.replace(
268
268
  new RegExp(
269
- "\\b" + k.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "\\b",
269
+ "\\b" + E.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "\\b",
270
270
  "g"
271
271
  ),
272
272
  `<<#${d}#>>`
@@ -274,7 +274,7 @@ class vt {
274
274
  }
275
275
  t = t.replace(
276
276
  /<<#(\d+)#>>/g,
277
- (k, c) => s[Number(c)]
277
+ (E, c) => s[Number(c)]
278
278
  );
279
279
  try {
280
280
  return this.evaluateBasicExpression(t);
@@ -323,10 +323,10 @@ class vt {
323
323
  function u(l, v) {
324
324
  return a(l) - a(v);
325
325
  }
326
- function E(l, v) {
326
+ function _(l, v) {
327
327
  return a(l) * a(v);
328
328
  }
329
- function k(l, v) {
329
+ function E(l, v) {
330
330
  return a(l) / a(v);
331
331
  }
332
332
  function c(l, v) {
@@ -440,16 +440,16 @@ class vt {
440
440
  return l;
441
441
  }
442
442
  function b() {
443
- let l = _();
443
+ let l = k();
444
444
  for (; ; ) {
445
445
  const v = s();
446
446
  if (!v || v.value !== "+" && v.value !== "-") break;
447
- const h = o("OP").value, p = _();
447
+ const h = o("OP").value, p = k();
448
448
  l = h === "+" ? f(l, p) : u(l, p);
449
449
  }
450
450
  return l;
451
451
  }
452
- function _() {
452
+ function k() {
453
453
  let l = w();
454
454
  for (; ; ) {
455
455
  const v = s();
@@ -458,10 +458,10 @@ class vt {
458
458
  const h = o("OP").value, p = w();
459
459
  switch (h) {
460
460
  case "*":
461
- l = E(l, p);
461
+ l = _(l, p);
462
462
  break;
463
463
  case "/":
464
- l = k(l, p);
464
+ l = E(l, p);
465
465
  break;
466
466
  case "%":
467
467
  l = c(l, p);
@@ -776,8 +776,8 @@ async function be(e, r) {
776
776
  await new Promise(
777
777
  (d) => requestAnimationFrame(() => d(void 0))
778
778
  ), e.offsetHeight;
779
- const E = window.getComputedStyle(e), k = E.transform, c = E.opacity;
780
- ae(e, i), k && k !== "none" && (e.style.transform = k), c && c !== "" && (e.style.opacity = c), e.offsetHeight, await new Promise(
779
+ const _ = window.getComputedStyle(e), E = _.transform, c = _.opacity;
780
+ ae(e, i), E && E !== "none" && (e.style.transform = E), c && c !== "" && (e.style.opacity = c), e.offsetHeight, await new Promise(
781
781
  (d) => requestAnimationFrame(() => d(void 0))
782
782
  ), e.style.transform = "", e.style.opacity = "", le(e, f), e.offsetHeight, await new Promise(
783
783
  (d) => requestAnimationFrame(() => d(void 0))
@@ -795,11 +795,11 @@ async function $e(e, r) {
795
795
  if (t?.onBeforeLeave)
796
796
  try {
797
797
  t.onBeforeLeave(e);
798
- } catch (k) {
799
- B("Transition onBeforeLeave error:", k);
798
+ } catch (E) {
799
+ B("Transition onBeforeLeave error:", E);
800
800
  }
801
801
  if (!s)
802
- return t?.onLeave ? new Promise((k) => {
802
+ return t?.onLeave ? new Promise((E) => {
803
803
  const c = t.onLeave;
804
804
  typeof c == "function" ? c(e, () => {
805
805
  if (t?.onAfterLeave)
@@ -808,14 +808,14 @@ async function $e(e, r) {
808
808
  } catch (m) {
809
809
  B("Transition onAfterLeave error:", m);
810
810
  }
811
- k();
812
- }) : k();
811
+ E();
812
+ }) : E();
813
813
  }) : void 0;
814
814
  const i = ce(n?.leaveFrom), a = ce(n?.leaveActive), f = ce(n?.leaveTo);
815
815
  le(e, i), e.offsetHeight, le(e, a);
816
816
  let u;
817
817
  if (t?.onLeave) {
818
- const k = new Promise((c) => {
818
+ const E = new Promise((c) => {
819
819
  u = c;
820
820
  });
821
821
  try {
@@ -826,17 +826,17 @@ async function $e(e, r) {
826
826
  } catch (c) {
827
827
  B("Transition onLeave error:", c);
828
828
  }
829
- u && await k;
829
+ u && await E;
830
830
  }
831
831
  await new Promise(
832
- (k) => requestAnimationFrame(() => k(void 0))
832
+ (E) => requestAnimationFrame(() => E(void 0))
833
833
  ), await kt(e, [...i, ...a]), ae(e, i), le(e, f);
834
- let E;
835
- if (typeof o == "number" ? E = o : o && typeof o == "object" && "leave" in o && (E = o.leave), await et(e, E), ae(e, a), ae(e, f), ae(e, i), t?.onAfterLeave)
834
+ let _;
835
+ if (typeof o == "number" ? _ = o : o && typeof o == "object" && "leave" in o && (_ = o.leave), await et(e, _), ae(e, a), ae(e, f), ae(e, i), t?.onAfterLeave)
836
836
  try {
837
837
  t.onAfterLeave(e);
838
- } catch (k) {
839
- B("Transition onAfterLeave error:", k);
838
+ } catch (E) {
839
+ B("Transition onAfterLeave error:", E);
840
840
  }
841
841
  }
842
842
  const tt = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap();
@@ -947,14 +947,14 @@ function ve(e, r, n) {
947
947
  }
948
948
  function wt(e, r, n, t, s, o, i, a) {
949
949
  if (!o) return;
950
- const f = r.includes("lazy"), u = r.includes("trim"), E = r.includes("number"), k = () => {
950
+ const f = r.includes("lazy"), u = r.includes("trim"), _ = r.includes("number"), E = () => {
951
951
  if (M(e)) {
952
- const _ = e.value;
953
- return a && i && (i instanceof HTMLInputElement || i instanceof HTMLTextAreaElement || i instanceof HTMLSelectElement) && typeof _ == "object" && _ !== null ? _[a] : _;
952
+ const k = e.value;
953
+ return a && i && (i instanceof HTMLInputElement || i instanceof HTMLTextAreaElement || i instanceof HTMLSelectElement) && typeof k == "object" && k !== null ? k[a] : k;
954
954
  }
955
955
  const b = o?._state || o;
956
956
  return K(b, e);
957
- }, c = k();
957
+ }, c = E();
958
958
  let m = "text";
959
959
  i instanceof HTMLInputElement ? m = t?.type || i.type || "text" : i instanceof HTMLSelectElement ? m = "select" : i instanceof HTMLTextAreaElement && (m = "textarea");
960
960
  const d = i instanceof HTMLInputElement || i instanceof HTMLTextAreaElement || i instanceof HTMLSelectElement, y = d ? m === "checkbox" || m === "radio" ? "checked" : "value" : a ?? "modelValue";
@@ -973,8 +973,8 @@ function wt(e, r, n, t, s, o, i, a) {
973
973
  if (i && i.hasAttribute("multiple") && i instanceof HTMLSelectElement) {
974
974
  const b = Array.isArray(c) ? c.map(String) : [];
975
975
  setTimeout(() => {
976
- Array.from(i.options).forEach((_) => {
977
- _.selected = b.includes(_.value);
976
+ Array.from(i.options).forEach((k) => {
977
+ k.selected = b.includes(k.value);
978
978
  });
979
979
  }, 0), n[y] = Array.isArray(c) ? c : [];
980
980
  } else
@@ -990,7 +990,7 @@ function wt(e, r, n, t, s, o, i, a) {
990
990
  const T = f || m === "checkbox" || m === "radio" || m === "select" ? "change" : "input", S = (b) => {
991
991
  if (b.isComposing || s._isComposing)
992
992
  return;
993
- const _ = globalThis.process, w = !!_ && _.env?.NODE_ENV === "test" || typeof window < "u" && globalThis.__vitest__;
993
+ const k = globalThis.process, w = !!k && k.env?.NODE_ENV === "test" || typeof window < "u" && globalThis.__vitest__;
994
994
  if (b.isTrusted === !1 && !w)
995
995
  return;
996
996
  const L = b.target;
@@ -998,7 +998,7 @@ function wt(e, r, n, t, s, o, i, a) {
998
998
  return;
999
999
  let N = L.value;
1000
1000
  if (m === "checkbox") {
1001
- const h = k();
1001
+ const h = E();
1002
1002
  if (Array.isArray(h)) {
1003
1003
  const p = L.getAttribute("value") ?? "", C = Array.from(h);
1004
1004
  if (L.checked)
@@ -1018,11 +1018,11 @@ function wt(e, r, n, t, s, o, i, a) {
1018
1018
  N = Array.from(L.selectedOptions).map(
1019
1019
  (h) => h.value
1020
1020
  );
1021
- else if (u && typeof N == "string" && (N = N.trim()), E) {
1021
+ else if (u && typeof N == "string" && (N = N.trim()), _) {
1022
1022
  const h = Number(N);
1023
1023
  isNaN(h) || (N = h);
1024
1024
  }
1025
- const l = k();
1025
+ const l = E();
1026
1026
  if (we(N, l)) {
1027
1027
  L._modelUpdating = !0;
1028
1028
  try {
@@ -1042,14 +1042,14 @@ function wt(e, r, n, t, s, o, i, a) {
1042
1042
  }
1043
1043
  s[T] = S;
1044
1044
  } else {
1045
- const b = `update:${q(y)}`, _ = `update:${y}`;
1045
+ const b = `update:${q(y)}`, k = `update:${y}`;
1046
1046
  if (s[b]) {
1047
1047
  const w = s[b];
1048
1048
  i && Y.removeListener(i, b, w);
1049
1049
  }
1050
- if (s[_]) {
1051
- const w = s[_];
1052
- i && Y.removeListener(i, _, w);
1050
+ if (s[k]) {
1051
+ const w = s[k];
1052
+ i && Y.removeListener(i, k, w);
1053
1053
  }
1054
1054
  if (s[b] = (w) => {
1055
1055
  const L = w.detail;
@@ -1119,25 +1119,25 @@ function wt(e, r, n, t, s, o, i, a) {
1119
1119
  }, s[h] = s[v]);
1120
1120
  }
1121
1121
  }
1122
- s[_] = s[b];
1122
+ s[k] = s[b];
1123
1123
  }
1124
1124
  (m === "text" || m === "textarea") && (s.compositionstart = () => s._isComposing = !0, s.compositionend = (b) => {
1125
1125
  s._isComposing = !1;
1126
- const _ = b.target;
1127
- _ && setTimeout(() => {
1128
- const w = _.value, L = o?._state || o, N = K(L, e);
1126
+ const k = b.target;
1127
+ k && setTimeout(() => {
1128
+ const w = k.value, L = o?._state || o, N = K(L, e);
1129
1129
  let l = w;
1130
- if (u && (l = l.trim()), E) {
1130
+ if (u && (l = l.trim()), _) {
1131
1131
  const h = Number(l);
1132
1132
  isNaN(h) || (l = h);
1133
1133
  }
1134
1134
  if (we(l, N)) {
1135
- _._modelUpdating = !0;
1135
+ k._modelUpdating = !0;
1136
1136
  try {
1137
1137
  Ne(L, e, l), Te(o, M(e), e, l);
1138
1138
  } finally {
1139
1139
  setTimeout(
1140
- () => _._modelUpdating = !1,
1140
+ () => k._modelUpdating = !1,
1141
1141
  0
1142
1142
  );
1143
1143
  }
@@ -1285,7 +1285,7 @@ function Pt(e, r, n) {
1285
1285
  const u = a.replace(
1286
1286
  /[A-Z]/g,
1287
1287
  (c) => `-${c.toLowerCase()}`
1288
- ), E = [
1288
+ ), _ = [
1289
1289
  "width",
1290
1290
  "height",
1291
1291
  "top",
@@ -1311,8 +1311,8 @@ function Pt(e, r, n) {
1311
1311
  "min-height",
1312
1312
  "max-height"
1313
1313
  ];
1314
- let k = String(f);
1315
- typeof f == "number" && E.includes(u) && (k = `${f}px`), i.push(`${u}: ${k}`);
1314
+ let E = String(f);
1315
+ typeof f == "number" && _.includes(u) && (E = `${f}px`), i.push(`${u}: ${E}`);
1316
1316
  }
1317
1317
  s = i.join("; ") + (i.length > 0 ? ";" : "");
1318
1318
  }
@@ -1326,13 +1326,13 @@ function Ot(e, r, n) {
1326
1326
  function st(e, r, n, t) {
1327
1327
  const s = {}, o = { ...t || {} }, i = {};
1328
1328
  for (const [a, f] of Object.entries(e)) {
1329
- const { value: u, modifiers: E, arg: k } = f;
1329
+ const { value: u, modifiers: _, arg: E } = f;
1330
1330
  if (a === "model" || a.startsWith("model:")) {
1331
- const c = a.split(":"), m = c.length > 1 ? c[1] : k;
1331
+ const c = a.split(":"), m = c.length > 1 ? c[1] : E;
1332
1332
  wt(
1333
1333
  u,
1334
1334
  // Pass the original value (could be string or reactive state object)
1335
- E,
1335
+ _,
1336
1336
  s,
1337
1337
  o,
1338
1338
  i,
@@ -1363,17 +1363,17 @@ function st(e, r, n, t) {
1363
1363
  try {
1364
1364
  if (Object.prototype.hasOwnProperty.call(s, "disabled") && n && G(n)) {
1365
1365
  const f = s.disabled, u = f && typeof f == "object" && "value" in f;
1366
- let E = !1;
1366
+ let _ = !1;
1367
1367
  try {
1368
- E = M(f);
1368
+ _ = M(f);
1369
1369
  } catch {
1370
- E = !1;
1370
+ _ = !1;
1371
1371
  }
1372
- if (!u && !E)
1372
+ if (!u && !_)
1373
1373
  try {
1374
1374
  o.disabled = f, delete s.disabled;
1375
- const k = globalThis;
1376
- k.__VDOM_DISABLED_PROMOTIONS || (k.__VDOM_DISABLED_PROMOTIONS = []), k.__VDOM_DISABLED_PROMOTIONS.push({
1375
+ const E = globalThis;
1376
+ E.__VDOM_DISABLED_PROMOTIONS || (E.__VDOM_DISABLED_PROMOTIONS = []), E.__VDOM_DISABLED_PROMOTIONS.push({
1377
1377
  phase: "bind-directive:postfix-move",
1378
1378
  location: "attrs",
1379
1379
  key: "disabled",
@@ -1395,7 +1395,7 @@ function Ie(e, r) {
1395
1395
  if (!i || typeof i != "object") return i;
1396
1396
  let a = i.props?.key ?? i.key;
1397
1397
  if (!a) {
1398
- const k = i.tag || "node", m = [
1398
+ const E = i.tag || "node", m = [
1399
1399
  // attrs (kebab-case)
1400
1400
  i.props?.attrs?.id,
1401
1401
  i.props?.attrs?.name,
@@ -1406,14 +1406,14 @@ function Ie(e, r) {
1406
1406
  i.props?.props?.dataKey,
1407
1407
  i.props?.props?.["data-key"]
1408
1408
  ].find((d) => d != null) ?? "";
1409
- a = m ? `${r}:${k}:${m}` : `${r}:${k}`;
1409
+ a = m ? `${r}:${E}:${m}` : `${r}:${E}`;
1410
1410
  }
1411
1411
  let f = a, u = 1;
1412
1412
  for (; o.has(f); )
1413
1413
  f = `${a}#${u++}`;
1414
1414
  o.add(f);
1415
- let E = i.children;
1416
- return Array.isArray(E) && (E = Ie(E, f)), { ...i, key: f, children: E };
1415
+ let _ = i.children;
1416
+ return Array.isArray(_) && (_ = Ie(_, f)), { ...i, key: f, children: _ };
1417
1417
  });
1418
1418
  }
1419
1419
  const n = e, t = n.props?.key ?? n.key ?? r;
@@ -1434,8 +1434,8 @@ function Ze(e, r, n, t) {
1434
1434
  ...r.attrs || {},
1435
1435
  ...n.attrs || {},
1436
1436
  ...o.attrs || {}
1437
- }, f = r.props ?? {}, u = i, E = !!(n?.isCustomElement ?? r?.isCustomElement ?? !1);
1438
- let k = !1;
1437
+ }, f = r.props ?? {}, u = i, _ = !!(n?.isCustomElement ?? r?.isCustomElement ?? !1);
1438
+ let E = !1;
1439
1439
  for (const d in { ...f, ...u }) {
1440
1440
  const g = f[d], y = u[d];
1441
1441
  let T = g, S = y;
@@ -1444,9 +1444,9 @@ function Ze(e, r, n, t) {
1444
1444
  }), j(() => {
1445
1445
  (M(y) || fe(y)) && (S = y.value);
1446
1446
  }), !(g === y && T === S))
1447
- if (k = !0, d === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement)) {
1448
- const b = xe(y), _ = b == null ? "" : String(b);
1449
- e.value !== _ && (e.value = _);
1447
+ if (E = !0, d === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement)) {
1448
+ const b = xe(y), k = b == null ? "" : String(b);
1449
+ e.value !== k && (e.value = k);
1450
1450
  } else if (d === "checked" && e instanceof HTMLInputElement) {
1451
1451
  const b = xe(y);
1452
1452
  e.checked = !!b;
@@ -1455,7 +1455,7 @@ function Ze(e, r, n, t) {
1455
1455
  typeof g == "function" && Y.removeListener(e, b, g), typeof y == "function" && Y.addListener(e, b, y);
1456
1456
  try {
1457
1457
  if (b && b.startsWith("update:")) {
1458
- const _ = b.split(":", 2)[1], w = u[_];
1458
+ const k = b.split(":", 2)[1], w = u[k];
1459
1459
  let L = [];
1460
1460
  try {
1461
1461
  if (M(w)) {
@@ -1470,7 +1470,7 @@ function Ze(e, r, n, t) {
1470
1470
  );
1471
1471
  for (const l of N) {
1472
1472
  const v = `update:${l}`, h = (p) => {
1473
- const C = p.detail !== void 0 ? p.detail : p.target instanceof HTMLInputElement || p.target instanceof HTMLTextAreaElement || p.target instanceof HTMLSelectElement ? p.target.value : void 0, P = { ...M(w) ? w.value || {} : u[_] || {}, [l]: C };
1473
+ const C = p.detail !== void 0 ? p.detail : p.target instanceof HTMLInputElement || p.target instanceof HTMLTextAreaElement || p.target instanceof HTMLSelectElement ? p.target.value : void 0, P = { ...M(w) ? w.value || {} : u[k] || {}, [l]: C };
1474
1474
  try {
1475
1475
  typeof y == "function" && y({
1476
1476
  detail: P
@@ -1517,7 +1517,7 @@ function Ze(e, r, n, t) {
1517
1517
  const g = c[d], y = m[d];
1518
1518
  let T = g, S = y;
1519
1519
  if (M(g) && (T = g.value), M(y) && (S = y.value), T !== S)
1520
- if (k = !0, S == null || S === !1)
1520
+ if (E = !0, S == null || S === !1)
1521
1521
  j(() => {
1522
1522
  e.removeAttribute(d);
1523
1523
  }), d === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? j(() => {
@@ -1557,14 +1557,14 @@ function Ze(e, r, n, t) {
1557
1557
  continue;
1558
1558
  }
1559
1559
  if (d === "style") {
1560
- const _ = z(S);
1561
- _ !== null && e.setAttribute(d, _);
1560
+ const k = z(S);
1561
+ k !== null && e.setAttribute(d, k);
1562
1562
  continue;
1563
1563
  }
1564
1564
  if (d === "disabled" && G(e)) {
1565
1565
  j(() => {
1566
- const _ = ue(S);
1567
- (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = _);
1566
+ const k = ue(S);
1567
+ (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = k);
1568
1568
  }), ue(S) ? j(() => {
1569
1569
  e.setAttribute(d, "");
1570
1570
  }) : j(() => {
@@ -1573,19 +1573,19 @@ function Ze(e, r, n, t) {
1573
1573
  continue;
1574
1574
  }
1575
1575
  const b = e.namespaceURI === "http://www.w3.org/2000/svg";
1576
- if (E && !b && d.includes("-"))
1576
+ if (_ && !b && d.includes("-"))
1577
1577
  if (Qe(d)) {
1578
- const _ = z(y ?? S);
1579
- if (_ !== null)
1578
+ const k = z(y ?? S);
1579
+ if (k !== null)
1580
1580
  try {
1581
- e.setAttribute(d, _);
1581
+ e.setAttribute(d, k);
1582
1582
  } catch {
1583
1583
  }
1584
1584
  } else {
1585
- const _ = De(d);
1585
+ const k = De(d);
1586
1586
  try {
1587
1587
  const w = e;
1588
- w[_] = M(y) ? y : S;
1588
+ w[k] = M(y) ? y : S;
1589
1589
  } catch {
1590
1590
  const w = z(y ?? S);
1591
1591
  w !== null && e.setAttribute(d, w);
@@ -1593,15 +1593,15 @@ function Ze(e, r, n, t) {
1593
1593
  }
1594
1594
  else if (!b && d in e)
1595
1595
  try {
1596
- const _ = e;
1597
- _[d] = M(y) ? y : S;
1596
+ const k = e;
1597
+ k[d] = M(y) ? y : S;
1598
1598
  } catch {
1599
- const _ = z(S);
1600
- _ !== null && e.setAttribute(d, _);
1599
+ const k = z(S);
1600
+ k !== null && e.setAttribute(d, k);
1601
1601
  }
1602
1602
  else {
1603
- const _ = z(S);
1604
- _ !== null && e.setAttribute(d, _);
1603
+ const k = z(S);
1604
+ k !== null && e.setAttribute(d, k);
1605
1605
  }
1606
1606
  }
1607
1607
  }
@@ -1618,8 +1618,8 @@ function Ze(e, r, n, t) {
1618
1618
  j(() => {
1619
1619
  b = !!M(d);
1620
1620
  });
1621
- const _ = Re(d);
1622
- b || S || T || _ ? g = d : g = a.disabled;
1621
+ const k = Re(d);
1622
+ b || S || T || k ? g = d : g = a.disabled;
1623
1623
  } catch {
1624
1624
  g = a.disabled;
1625
1625
  }
@@ -1634,7 +1634,7 @@ function Ze(e, r, n, t) {
1634
1634
  }
1635
1635
  } catch {
1636
1636
  }
1637
- if (E && k) {
1637
+ if (_ && E) {
1638
1638
  const d = e;
1639
1639
  j(() => {
1640
1640
  d._applyProps?.(d._cfg);
@@ -1706,7 +1706,7 @@ function U(e, r, n) {
1706
1706
  }
1707
1707
  } catch {
1708
1708
  }
1709
- const E = t.namespaceURI === "http://www.w3.org/2000/svg";
1709
+ const _ = t.namespaceURI === "http://www.w3.org/2000/svg";
1710
1710
  for (const c in u) {
1711
1711
  const m = u[c];
1712
1712
  if (typeof c != "string" || /\[object Object\]/.test(c))
@@ -1728,28 +1728,28 @@ function U(e, r, n) {
1728
1728
  });
1729
1729
  continue;
1730
1730
  }
1731
- if (!E && c === "value" && (t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || t instanceof HTMLSelectElement || t instanceof HTMLProgressElement))
1731
+ if (!_ && c === "value" && (t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || t instanceof HTMLSelectElement || t instanceof HTMLProgressElement))
1732
1732
  try {
1733
1733
  t instanceof HTMLProgressElement ? t.value = Number(d) : t.value = String(d ?? "");
1734
1734
  } catch {
1735
1735
  const g = z(d);
1736
1736
  g !== null && t.setAttribute(c, g);
1737
1737
  }
1738
- else if (!E && c === "checked" && t instanceof HTMLInputElement)
1738
+ else if (!_ && c === "checked" && t instanceof HTMLInputElement)
1739
1739
  try {
1740
1740
  t.checked = !!d;
1741
1741
  } catch {
1742
1742
  const g = z(d);
1743
1743
  g !== null && t.setAttribute(c, g);
1744
1744
  }
1745
- else if (!E && c in t)
1745
+ else if (!_ && c in t)
1746
1746
  try {
1747
1747
  t[c] = d, c === "disabled" && d === !1 && G(t) && t.removeAttribute("disabled");
1748
1748
  } catch {
1749
1749
  const g = z(d);
1750
1750
  g !== null && t.setAttribute(c, g);
1751
1751
  }
1752
- else if ((e.props?.isCustomElement ?? !1) && !E && c.includes("-")) {
1752
+ else if ((e.props?.isCustomElement ?? !1) && !_ && c.includes("-")) {
1753
1753
  const y = De(c);
1754
1754
  try {
1755
1755
  t[y] = d;
@@ -1776,7 +1776,7 @@ function U(e, r, n) {
1776
1776
  const y = d.split(":"), T = y[1];
1777
1777
  if (T.includes("-")) {
1778
1778
  const S = T.split("-").map(
1779
- (b, _) => _ === 0 ? b : b.charAt(0).toUpperCase() + b.slice(1)
1779
+ (b, k) => k === 0 ? b : b.charAt(0).toUpperCase() + b.slice(1)
1780
1780
  ).join("");
1781
1781
  return `${y[0]}:${S}`;
1782
1782
  } else {
@@ -1832,14 +1832,14 @@ function U(e, r, n) {
1832
1832
  a.listeners || {}
1833
1833
  ))
1834
1834
  Y.addListener(t, c, m);
1835
- const k = {
1835
+ const E = {
1836
1836
  ...e,
1837
1837
  props: {
1838
1838
  ...e.props,
1839
1839
  ...a.props
1840
1840
  }
1841
1841
  };
1842
- ve(k, t, n);
1842
+ ve(E, t, n);
1843
1843
  try {
1844
1844
  const c = t;
1845
1845
  if (typeof c._applyProps == "function")
@@ -1902,8 +1902,8 @@ function Mt(e, r, n, t, s) {
1902
1902
  }, y = [], T = [];
1903
1903
  for (const b of n)
1904
1904
  if (b && b.tag === "#anchor") {
1905
- const _ = Array.isArray(b.children) ? b.children : [];
1906
- for (const w of _) {
1905
+ const k = Array.isArray(b.children) ? b.children : [];
1906
+ for (const w of k) {
1907
1907
  const L = g(
1908
1908
  w.key ?? b.key ?? "unknown"
1909
1909
  );
@@ -1912,8 +1912,8 @@ function Mt(e, r, n, t, s) {
1912
1912
  } else b && y.push({ ...b, key: g(b.key) });
1913
1913
  for (const b of a)
1914
1914
  if (b && b.tag === "#anchor") {
1915
- const _ = Array.isArray(b.children) ? b.children : [];
1916
- for (const w of _) {
1915
+ const k = Array.isArray(b.children) ? b.children : [];
1916
+ for (const w of k) {
1917
1917
  const L = g(
1918
1918
  w.key ?? b.key ?? "unknown"
1919
1919
  );
@@ -1924,7 +1924,7 @@ function Mt(e, r, n, t, s) {
1924
1924
  key: g(b.key)
1925
1925
  });
1926
1926
  if (y.some((b) => b && b.key != null) || T.some((b) => b && b.key != null)) {
1927
- const b = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
1927
+ const b = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map();
1928
1928
  for (const h of T)
1929
1929
  if (h && h.key != null) {
1930
1930
  const p = String(h.key);
@@ -1935,7 +1935,7 @@ function Mt(e, r, n, t, s) {
1935
1935
  let C = Le(p);
1936
1936
  if (C = g(C), C != null && p instanceof Element && p.nodeType === Node.ELEMENT_NODE) {
1937
1937
  let O = typeof C == "string" && C.includes(":") ? C.substring(0, C.lastIndexOf(":")) : C;
1938
- O = String(O), _.set(O, p);
1938
+ O = String(O), k.set(O, p);
1939
1939
  }
1940
1940
  }
1941
1941
  const w = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Map(), N = i.length > 0;
@@ -1953,7 +1953,7 @@ function Mt(e, r, n, t, s) {
1953
1953
  if (p == null) continue;
1954
1954
  p = String(p);
1955
1955
  const C = b.get(p);
1956
- let O = _.get(p);
1956
+ let O = k.get(p);
1957
1957
  if (O && C) {
1958
1958
  const P = Ee(O, C, h, t);
1959
1959
  w.add(O);
@@ -2043,19 +2043,19 @@ function Mt(e, r, n, t, s) {
2043
2043
  const u = /* @__PURE__ */ new Map();
2044
2044
  for (const g of a)
2045
2045
  g && g.key != null && u.set(g.key, g);
2046
- const E = /* @__PURE__ */ new Map();
2046
+ const _ = /* @__PURE__ */ new Map();
2047
2047
  for (let g = 0; g < i.length; g++) {
2048
2048
  const y = i[g], T = Le(y);
2049
- T != null && E.set(T, y);
2049
+ T != null && _.set(T, y);
2050
2050
  }
2051
- const k = /* @__PURE__ */ new Set();
2051
+ const E = /* @__PURE__ */ new Set();
2052
2052
  let c = e.firstChild;
2053
2053
  function m(g, y) {
2054
2054
  let T = g;
2055
- for (; T && (k.add(T), T !== y); )
2055
+ for (; T && (E.add(T), T !== y); )
2056
2056
  T = T.nextSibling;
2057
2057
  }
2058
- function d(g, y, T, S, b, _ = !0) {
2058
+ function d(g, y, T, S, b, k = !0) {
2059
2059
  const w = [];
2060
2060
  let L = g.nextSibling;
2061
2061
  for (; L && L !== y; )
@@ -2084,13 +2084,13 @@ function Mt(e, r, n, t, s) {
2084
2084
  B("Transition enter error (appear):", H);
2085
2085
  }), A !== O && e.contains(A) && e.insertBefore(A, O);
2086
2086
  } else
2087
- A = U(P, t), e.insertBefore(A, O), C.add(A), b && A instanceof HTMLElement && _ && be(A, b).catch((R) => {
2087
+ A = U(P, t), e.insertBefore(A, O), C.add(A), b && A instanceof HTMLElement && k && be(A, b).catch((R) => {
2088
2088
  B("Transition enter error:", R);
2089
2089
  });
2090
2090
  O = A.nextSibling;
2091
2091
  }
2092
2092
  for (const P of w)
2093
- !C.has(P) && e.contains(P) && (b && P instanceof HTMLElement && _ ? $e(P, b).then(() => {
2093
+ !C.has(P) && e.contains(P) && (b && P instanceof HTMLElement && k ? $e(P, b).then(() => {
2094
2094
  e.contains(P) && e.removeChild(P);
2095
2095
  }).catch((A) => {
2096
2096
  B("Transition leave error:", A), e.contains(P) && e.removeChild(P);
@@ -2106,13 +2106,13 @@ function Mt(e, r, n, t, s) {
2106
2106
  }
2107
2107
  for (let h = v; h < S.length; h++) {
2108
2108
  const p = U(S[h], t);
2109
- e.insertBefore(p, y), b && p instanceof HTMLElement && _ && be(p, b).catch((C) => {
2109
+ e.insertBefore(p, y), b && p instanceof HTMLElement && k && be(p, b).catch((C) => {
2110
2110
  B("Transition enter error:", C);
2111
2111
  });
2112
2112
  }
2113
2113
  for (let h = v; h < w.length; h++) {
2114
2114
  const p = w[h];
2115
- b && p instanceof HTMLElement && _ ? $e(p, b).then(() => {
2115
+ b && p instanceof HTMLElement && k ? $e(p, b).then(() => {
2116
2116
  e.contains(p) && e.removeChild(p);
2117
2117
  }).catch((C) => {
2118
2118
  B("Transition leave error:", C), e.contains(p) && e.removeChild(p);
@@ -2124,10 +2124,10 @@ function Mt(e, r, n, t, s) {
2124
2124
  let y;
2125
2125
  if (g.tag === "#anchor") {
2126
2126
  const T = g.key, S = `${T}:start`, b = `${T}:end`;
2127
- let _ = E.get(S), w = E.get(b);
2127
+ let k = _.get(S), w = _.get(b);
2128
2128
  const L = Array.isArray(g.children) ? g.children : [];
2129
- if (_ || (_ = document.createTextNode(""), V(_, S)), w || (w = document.createTextNode(""), V(w, b)), g._startNode = _, g._endNode = w, !e.contains(_) || !e.contains(w)) {
2130
- e.insertBefore(_, c);
2129
+ if (k || (k = document.createTextNode(""), V(k, S)), w || (w = document.createTextNode(""), V(w, b)), g._startNode = k, g._endNode = w, !e.contains(k) || !e.contains(w)) {
2130
+ e.insertBefore(k, c);
2131
2131
  const N = g._transition, v = !(N && N.state === "visible" && L.length > 0) || N.appear;
2132
2132
  for (const h of L) {
2133
2133
  const p = U(h, t);
@@ -2139,7 +2139,7 @@ function Mt(e, r, n, t, s) {
2139
2139
  } else {
2140
2140
  const N = g._transition, v = u.get(T)._transition, h = v && v.state !== N?.state, p = N && N.state === "visible" && L.length > 0 && !h, C = h || !p || N?.appear === !0;
2141
2141
  d(
2142
- _,
2142
+ k,
2143
2143
  w,
2144
2144
  u.get(T)?.children,
2145
2145
  L,
@@ -2147,25 +2147,25 @@ function Mt(e, r, n, t, s) {
2147
2147
  C
2148
2148
  );
2149
2149
  }
2150
- m(_, w), c = w.nextSibling;
2150
+ m(k, w), c = w.nextSibling;
2151
2151
  continue;
2152
2152
  }
2153
- if (g.key != null && E.has(g.key)) {
2153
+ if (g.key != null && _.has(g.key)) {
2154
2154
  const T = u.get(g.key);
2155
2155
  y = Ee(
2156
- E.get(g.key),
2156
+ _.get(g.key),
2157
2157
  T,
2158
2158
  g,
2159
2159
  t,
2160
2160
  s
2161
- ), k.add(y), y !== c && e.contains(y) && (c && !e.contains(c) && (c = null), e.insertBefore(y, c));
2161
+ ), E.add(y), y !== c && e.contains(y) && (c && !e.contains(c) && (c = null), e.insertBefore(y, c));
2162
2162
  } else
2163
- y = U(g, t, s), c && !e.contains(c) && (c = null), e.insertBefore(y, c), k.add(y);
2163
+ y = U(g, t, s), c && !e.contains(c) && (c = null), e.insertBefore(y, c), E.add(y);
2164
2164
  c = y.nextSibling;
2165
2165
  }
2166
2166
  for (let g = 0; g < i.length; g++) {
2167
2167
  const y = i[g];
2168
- !k.has(y) && e.contains(y) && (oe(y, s), e.removeChild(y));
2168
+ !E.has(y) && e.contains(y) && (oe(y, s), e.removeChild(y));
2169
2169
  }
2170
2170
  }
2171
2171
  function Ee(e, r, n, t, s) {
@@ -2181,13 +2181,13 @@ function Ee(e, r, n, t, s) {
2181
2181
  if (n && typeof n != "string" && n.tag === "#anchor") {
2182
2182
  const i = n, a = Array.isArray(i.children) ? i.children : [], f = i._startNode ?? document.createTextNode(""), u = i._endNode ?? document.createTextNode("");
2183
2183
  i.key != null && (V(f, `${i.key}:start`), V(u, `${i.key}:end`)), i._startNode = f, i._endNode = u;
2184
- const E = document.createDocumentFragment();
2185
- E.appendChild(f);
2186
- for (const k of a) {
2187
- const c = U(k, t);
2188
- E.appendChild(c);
2184
+ const _ = document.createDocumentFragment();
2185
+ _.appendChild(f);
2186
+ for (const E of a) {
2187
+ const c = U(E, t);
2188
+ _.appendChild(c);
2189
2189
  }
2190
- return E.appendChild(u), e.parentNode?.replaceChild(E, e), f;
2190
+ return _.appendChild(u), e.parentNode?.replaceChild(_, e), f;
2191
2191
  }
2192
2192
  if (!n) {
2193
2193
  oe(e, s);
@@ -2204,8 +2204,8 @@ function Ee(e, r, n, t, s) {
2204
2204
  n.key != null && (V(a, `${n.key}:start`), V(f, `${n.key}:end`)), n._startNode = a, n._endNode = f;
2205
2205
  const u = document.createDocumentFragment();
2206
2206
  u.appendChild(a);
2207
- for (const E of i)
2208
- u.appendChild(U(E, t));
2207
+ for (const _ of i)
2208
+ u.appendChild(U(_, t));
2209
2209
  return u.appendChild(f), e.parentNode?.replaceChild(u, e), a;
2210
2210
  }
2211
2211
  if (typeof r != "string" && typeof n != "string" && r.tag === n.tag && r.key === n.key) {
@@ -2237,8 +2237,8 @@ function $t(e, r, n, t) {
2237
2237
  o && i ? typeof o != "string" && typeof s != "string" && o.tag === s.tag && o.key === s.key ? a = Ee(i, o, s, n, t) : (a = U(s, n, t), e.replaceChild(a, i)) : (a = U(s, n, t), e.firstChild ? e.replaceChild(a, e.firstChild) : e.appendChild(a));
2238
2238
  const f = [];
2239
2239
  for (let u = 0; u < e.childNodes.length; u++) {
2240
- const E = e.childNodes[u];
2241
- E !== a && E.nodeName !== "STYLE" && (oe(E, t), f.push(E));
2240
+ const _ = e.childNodes[u];
2241
+ _ !== a && _.nodeName !== "STYLE" && (oe(_, t), f.push(_));
2242
2242
  }
2243
2243
  f.forEach((u) => e.removeChild(u)), e._prevVNode = s, e._prevDom = a;
2244
2244
  }
@@ -2305,10 +2305,10 @@ function xt(e, r, n, t, s) {
2305
2305
  let o = n || "";
2306
2306
  try {
2307
2307
  if (e) {
2308
- const k = Array.from(
2308
+ const E = Array.from(
2309
2309
  e.querySelectorAll("*")
2310
2310
  );
2311
- for (const c of k)
2311
+ for (const c of E)
2312
2312
  try {
2313
2313
  const m = c.lastHtmlStringForJitCSS;
2314
2314
  m && typeof m == "string" && m.trim() && (o += `
@@ -2333,7 +2333,7 @@ ${i}
2333
2333
  `);
2334
2334
  f = ut(f);
2335
2335
  let u = t;
2336
- u || (u = new CSSStyleSheet()), (u.cssRules.length === 0 || u.cssRules.length > 0 && Array.from(u.cssRules).map((k) => k.cssText).join("") !== f) && u.replaceSync(f), e.adoptedStyleSheets = [
2336
+ u || (u = new CSSStyleSheet()), (u.cssRules.length === 0 || u.cssRules.length > 0 && Array.from(u.cssRules).map((E) => E.cssText).join("") !== f) && u.replaceSync(f), e.adoptedStyleSheets = [
2337
2337
  Ve(),
2338
2338
  Ue(),
2339
2339
  u
@@ -2417,10 +2417,10 @@ function Qt(e) {
2417
2417
  try {
2418
2418
  const u = n && n._host;
2419
2419
  if (u) {
2420
- const E = q(o), k = u.getAttribute(E);
2421
- if (k !== null) {
2420
+ const _ = q(o), E = u.getAttribute(_);
2421
+ if (E !== null) {
2422
2422
  const c = typeof e[o];
2423
- return c === "boolean" ? k === "" || k === "true" : c === "number" ? Number(k) : k;
2423
+ return c === "boolean" ? E === "" || E === "true" : c === "number" ? Number(E) : E;
2424
2424
  }
2425
2425
  if (typeof u[o] < "u") {
2426
2426
  const c = u[o];
@@ -2452,15 +2452,15 @@ function Qt(e) {
2452
2452
  const f = n && n._host;
2453
2453
  if (f) {
2454
2454
  if (f instanceof HTMLElement || typeof f.getAttribute == "function" && typeof f.hasAttribute == "function") {
2455
- const E = o.replace(/([A-Z])/g, "-$1").toLowerCase(), k = f.getAttribute(E);
2456
- if (k !== null)
2457
- return typeof i == "boolean" ? k === "" || k === "true" : typeof i == "number" ? Number(k) : k;
2455
+ const _ = o.replace(/([A-Z])/g, "-$1").toLowerCase(), E = f.getAttribute(_);
2456
+ if (E !== null)
2457
+ return typeof i == "boolean" ? E === "" || E === "true" : typeof i == "number" ? Number(E) : E;
2458
2458
  }
2459
2459
  const u = f[o];
2460
2460
  if (typeof u < "u" && u !== "") {
2461
- const E = u && typeof u == "object" && "value" in u && !(u instanceof Node);
2462
- if (!(typeof i == "string" && u && typeof u == "object" && !E && !M(u)))
2463
- return typeof i == "boolean" && i === !1 && u === "" ? i : M(u) || E ? u.value : typeof i == "boolean" && typeof u == "string" ? u === "true" || u !== "" && u !== "false" : typeof i == "number" && typeof u == "string" && !Number.isNaN(Number(u)) ? Number(u) : u;
2461
+ const _ = u && typeof u == "object" && "value" in u && !(u instanceof Node);
2462
+ if (!(typeof i == "string" && u && typeof u == "object" && !_ && !M(u)))
2463
+ return typeof i == "boolean" && i === !1 && u === "" ? i : M(u) || _ ? u.value : typeof i == "boolean" && typeof u == "string" ? u === "true" || u !== "" && u !== "false" : typeof i == "number" && typeof u == "string" && !Number.isNaN(Number(u)) ? Number(u) : u;
2464
2464
  }
2465
2465
  }
2466
2466
  } catch {
@@ -2586,11 +2586,11 @@ function It(e, r) {
2586
2586
  ...a || {}
2587
2587
  }, u = new CustomEvent(o, f);
2588
2588
  this.dispatchEvent(u);
2589
- const E = o.indexOf(":");
2590
- if (E > 0) {
2591
- const k = o.substring(0, E), c = o.substring(E + 1), m = c.includes("-") ? `${k}:${c.split("-").map(
2589
+ const _ = o.indexOf(":");
2590
+ if (_ > 0) {
2591
+ const E = o.substring(0, _), c = o.substring(_ + 1), m = c.includes("-") ? `${E}:${c.split("-").map(
2592
2592
  (d, g) => g === 0 ? d : d.charAt(0).toUpperCase() + d.slice(1)
2593
- ).join("")}` : `${k}:${c.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
2593
+ ).join("")}` : `${E}:${c.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
2594
2594
  m !== o && j(() => {
2595
2595
  this.dispatchEvent(new CustomEvent(m, f));
2596
2596
  });
@@ -2750,8 +2750,8 @@ function It(e, r) {
2750
2750
  if (Array.isArray(o))
2751
2751
  return new Proxy(o, {
2752
2752
  get(a, f, u) {
2753
- const E = Reflect.get(a, f, u);
2754
- return typeof E == "function" && typeof f == "string" && [
2753
+ const _ = Reflect.get(a, f, u);
2754
+ return typeof _ == "function" && typeof f == "string" && [
2755
2755
  "push",
2756
2756
  "pop",
2757
2757
  "shift",
@@ -2760,7 +2760,7 @@ function It(e, r) {
2760
2760
  "sort",
2761
2761
  "reverse"
2762
2762
  ].includes(f) ? function(...c) {
2763
- const m = E.apply(a, c);
2763
+ const m = _.apply(a, c);
2764
2764
  if (!s._initializing) {
2765
2765
  const d = i || "root";
2766
2766
  s._triggerWatchers(d, a), ge(
@@ -2769,12 +2769,12 @@ function It(e, r) {
2769
2769
  );
2770
2770
  }
2771
2771
  return m;
2772
- } : E;
2772
+ } : _;
2773
2773
  },
2774
2774
  set(a, f, u) {
2775
2775
  if (a[String(f)] = u, !s._initializing) {
2776
- const E = i ? `${i}.${String(f)}` : String(f);
2777
- s._triggerWatchers(E, u), ge(() => s._render(n), s._componentId);
2776
+ const _ = i ? `${i}.${String(f)}` : String(f);
2777
+ s._triggerWatchers(_, u), ge(() => s._render(n), s._componentId);
2778
2778
  }
2779
2779
  return !0;
2780
2780
  },
@@ -2795,9 +2795,9 @@ function It(e, r) {
2795
2795
  }
2796
2796
  return new Proxy(o, {
2797
2797
  set(a, f, u) {
2798
- const E = i ? `${i}.${String(f)}` : String(f);
2799
- return a[String(f)] = t(u, E), s._initializing || (s._triggerWatchers(
2800
- E,
2798
+ const _ = i ? `${i}.${String(f)}` : String(f);
2799
+ return a[String(f)] = t(u, _), s._initializing || (s._triggerWatchers(
2800
+ _,
2801
2801
  a[String(f)]
2802
2802
  ), ge(() => s._render(n), s._componentId)), !0;
2803
2803
  },
@@ -2879,10 +2879,10 @@ function tn(e, r) {
2879
2879
  f = r();
2880
2880
  } catch (u) {
2881
2881
  try {
2882
- const E = i._hookCallbacks;
2883
- if (E && typeof E.onError == "function")
2882
+ const _ = i._hookCallbacks;
2883
+ if (_ && typeof _.onError == "function")
2884
2884
  try {
2885
- E.onError(u);
2885
+ _.onError(u);
2886
2886
  } catch {
2887
2887
  }
2888
2888
  } catch {
@@ -2892,10 +2892,10 @@ function tn(e, r) {
2892
2892
  if (i._hookCallbacks) {
2893
2893
  const u = i._hookCallbacks;
2894
2894
  if (u.onConnected && (t.onConnected = u.onConnected), u.onDisconnected && (t.onDisconnected = u.onDisconnected), u.onAttributeChanged && (t.onAttributeChanged = u.onAttributeChanged), u.onError && (t.onError = u.onError), u.style && (i._styleCallback = u.style), u.props) {
2895
- const E = u.props;
2895
+ const _ = u.props;
2896
2896
  s.props = Object.fromEntries(
2897
- Object.entries(E).map(([k, c]) => [
2898
- k,
2897
+ Object.entries(_).map(([E, c]) => [
2898
+ E,
2899
2899
  { type: typeof c == "boolean" ? Boolean : typeof c == "number" ? Number : typeof c == "string" ? String : Function, default: c }
2900
2900
  ])
2901
2901
  ), de.set(n, s);
@@ -3009,11 +3009,19 @@ function Wt(e, r) {
3009
3009
  return e.key != null ? e : { ...e, key: r };
3010
3010
  }
3011
3011
  function Kt(e, r = [], n = {}) {
3012
- const t = {}, s = {}, o = {}, i = [], a = /([:@#]?)([a-zA-Z0-9-:.]+)(?:=("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'))?/g;
3012
+ const t = {}, s = {}, o = {}, i = [], a = /([:@#]?)([a-zA-Z0-9-:.]+)(?:\s*=\s*("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'|([^\s>]+)))?/g;
3013
3013
  let f;
3014
3014
  for (; f = a.exec(e); ) {
3015
- const u = f[1], E = f[2], k = (f[4] || f[6]) ?? "", c = f[3] === void 0 && f[6] === void 0, m = k.match(/^{{(\d+)}}$/);
3016
- let d = c ? !0 : m ? r[Number(m[1])] ?? null : k;
3015
+ const u = f[1], _ = f[2];
3016
+ let E = "";
3017
+ for (let y = 3; y < f.length; y++)
3018
+ if (f[y] !== void 0) {
3019
+ E = f[y];
3020
+ break;
3021
+ }
3022
+ E.length >= 2 && (E[0] === '"' && E[E.length - 1] === '"' || E[0] === "'" && E[E.length - 1] === "'") && (E = E.slice(1, -1));
3023
+ const c = !/=/.test(f[0]), m = E.match(/^{{(\d+)}}$/);
3024
+ let d = c ? !0 : m ? r[Number(m[1])] ?? null : E;
3017
3025
  m || (d === "true" ? d = !0 : d === "false" ? d = !1 : d === "null" ? d = null : isNaN(Number(d)) || (d = Number(d)));
3018
3026
  const g = [
3019
3027
  "model",
@@ -3025,44 +3033,44 @@ function Kt(e, r = [], n = {}) {
3025
3033
  "when"
3026
3034
  ];
3027
3035
  if (u === ":") {
3028
- const [y, T] = E.split(":"), [S, ...b] = y.split(".");
3036
+ const [y, T] = _.split(":"), [S, ...b] = y.split(".");
3029
3037
  if (g.includes(S)) {
3030
- const _ = [...b], w = S === "model" && T ? `model:${T}` : S;
3038
+ const k = [...b], w = S === "model" && T ? `model:${T}` : S;
3031
3039
  o[w] = {
3032
3040
  value: d,
3033
- modifiers: _,
3041
+ modifiers: k,
3034
3042
  arg: T
3035
3043
  };
3036
- } else if (E === "disabled") {
3037
- let _ = d;
3038
- _ && M(_) && (_ = _.value);
3039
- const w = typeof _;
3040
- if (_ === "" || w === "boolean" || w === "string" && (_ === "true" || _ === "false") || _ == null || w === "number")
3041
- t[E] = _;
3044
+ } else if (_ === "disabled") {
3045
+ let k = d;
3046
+ k && M(k) && (k = k.value);
3047
+ const w = typeof k;
3048
+ if (k === "" || w === "boolean" || w === "string" && (k === "true" || k === "false") || k == null || w === "number")
3049
+ t[_] = k;
3042
3050
  else {
3043
3051
  let l = d;
3044
- l && M(l) && (l = l.value), s[E] = l;
3052
+ l && M(l) && (l = l.value), s[_] = l;
3045
3053
  }
3046
- i.push(E);
3054
+ i.push(_);
3047
3055
  } else {
3048
- let _ = d;
3049
- _ && M(_) && (_ = _.value), s[E] = _, i.push(E);
3056
+ let k = d;
3057
+ k && M(k) && (k = k.value), s[_] = k, i.push(_);
3050
3058
  }
3051
3059
  } else if (u === "@") {
3052
- const [y, ...T] = E.split("."), S = T;
3060
+ const [y, ...T] = _.split("."), S = T;
3053
3061
  Dt(d, y);
3054
3062
  const b = typeof d == "function" ? d : typeof n[d] == "function" ? n[d] : void 0;
3055
3063
  if (b) {
3056
- const _ = (L) => {
3064
+ const k = (L) => {
3057
3065
  if (S.includes("prevent") && L.preventDefault(), S.includes("stop") && L.stopPropagation(), !(S.includes("self") && L.target !== L.currentTarget))
3058
3066
  return S.includes("once") && L.currentTarget?.removeEventListener(
3059
3067
  y,
3060
- _
3068
+ k
3061
3069
  ), b(L);
3062
3070
  }, w = "on" + y.charAt(0).toUpperCase() + y.slice(1);
3063
- t[w] = _;
3071
+ t[w] = k;
3064
3072
  }
3065
- } else E === "ref" ? t.ref = d : s[E] = d;
3073
+ } else _ === "ref" ? t.ref = d : s[_] = d;
3066
3074
  }
3067
3075
  return { props: t, attrs: s, directives: o, bound: i };
3068
3076
  }
@@ -3114,7 +3122,7 @@ function zt(e, r, n) {
3114
3122
  let u = "";
3115
3123
  for (let l = 0; l < e.length; l++)
3116
3124
  u += e[l], l < r.length && (u += `{{${l}}}`);
3117
- const E = /<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g, k = [];
3125
+ const _ = /<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g, E = [];
3118
3126
  let c, m = [], d = null, g = {}, y, T = 0;
3119
3127
  const S = [];
3120
3128
  function b(l) {
@@ -3137,7 +3145,7 @@ function zt(e, r, n) {
3137
3145
  } else
3138
3146
  h.props || (h.props = {}), Object.assign(h.props, v);
3139
3147
  }
3140
- function _(l, v) {
3148
+ function k(l, v) {
3141
3149
  const h = d ? m : S;
3142
3150
  if (ke(l)) {
3143
3151
  const p = l.key ?? v, C = l.children;
@@ -3156,7 +3164,7 @@ function zt(e, r, n) {
3156
3164
  if (l.length === 0) return;
3157
3165
  for (let p = 0; p < l.length; p++) {
3158
3166
  const C = l[p];
3159
- ke(C) || ie(C) || Array.isArray(C) ? _(C, `${v}-${p}`) : C !== null && typeof C == "object" ? Fe(C) ? h.push(
3167
+ ke(C) || ie(C) || Array.isArray(C) ? k(C, `${v}-${p}`) : C !== null && typeof C == "object" ? Fe(C) ? h.push(
3160
3168
  te(
3161
3169
  "#raw",
3162
3170
  {},
@@ -3194,7 +3202,7 @@ function zt(e, r, n) {
3194
3202
  "track",
3195
3203
  "wbr"
3196
3204
  ]);
3197
- for (; c = E.exec(u); )
3205
+ for (; c = _.exec(u); )
3198
3206
  if (!(c[0].startsWith("<!--") && c[0].endsWith("-->"))) {
3199
3207
  if (c[1]) {
3200
3208
  const l = c[1], v = c[0][1] === "/", h = c[0][c[0].length - 2] === "/" || w.has(l), {
@@ -3380,9 +3388,9 @@ function zt(e, r, n) {
3380
3388
  g,
3381
3389
  H.length === 1 && ie(H[0]) && H[0].tag === "#text" ? typeof H[0].children == "string" ? H[0].children : "" : H.length ? H : void 0,
3382
3390
  y
3383
- ), W = k.pop();
3391
+ ), W = E.pop();
3384
3392
  W ? (d = W.tag, g = W.props, y = W.key, m = W.children, m.push(X)) : (S.push(X), d = null, g = {}, y = void 0, m = []);
3385
- } else h ? d ? m.push(te(l, A, void 0, void 0)) : S.push(te(l, A, void 0, void 0)) : (d && k.push({
3393
+ } else h ? d ? m.push(te(l, A, void 0, void 0)) : S.push(te(l, A, void 0, void 0)) : (d && E.push({
3386
3394
  tag: d,
3387
3395
  props: g,
3388
3396
  children: m,
@@ -3390,7 +3398,7 @@ function zt(e, r, n) {
3390
3398
  }), d = l, g = A, m = []);
3391
3399
  } else if (typeof c[3] < "u") {
3392
3400
  const l = Number(c[3]), v = r[l], h = `interp-${l}`;
3393
- _(v, h);
3401
+ k(v, h);
3394
3402
  } else if (c[4]) {
3395
3403
  const l = c[4], v = d ? m : S, h = l.split(/({{\d+}})/);
3396
3404
  for (const p of h) {
@@ -3398,7 +3406,7 @@ function zt(e, r, n) {
3398
3406
  const C = p.match(/^{{(\d+)}}$/);
3399
3407
  if (C) {
3400
3408
  const O = Number(C[1]), P = r[O], A = `interp-${O}`;
3401
- _(P, A);
3409
+ k(P, A);
3402
3410
  } else {
3403
3411
  const O = `text-${T++}`;
3404
3412
  v.push(f(p, O));