@jasonshimmy/custom-elements-runtime 2.6.2 → 2.6.3

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
- import { j as K, t as Y, i as P, k as We, m as x, o as F, p as U, q as G, T as Ct, v as Qe, S as kt, x as pt, y as _e, z as X, A as _t, B as nt, a as rt, C as st, d as At } from "./namespace-helpers-DcD_6_K1.js";
2
- import { a as q, d as B } from "./logger-BvkEbVM4.js";
3
- import { j as wt, g as Tt, a as He, b as ye, m as Ae, s as Lt, d as ot } from "./transitions-Bo0DVkSp.js";
1
+ import { j as K, t as J, i as P, k as We, m as x, o as V, p as U, q, T as St, v as Xe, S as Ct, x as dt, y as _e, z as Y, A as kt, B as tt, a as nt, C as rt, d as _t } from "./namespace-helpers-DcD_6_K1.js";
2
+ import { a as ee, d as B } from "./logger-BvkEbVM4.js";
3
+ import { j as At, g as wt, a as Re, b as ye, m as Ae, s as Tt, d as st } from "./transitions-Bo0DVkSp.js";
4
4
  const ge = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ Symbol.for("cer.registry");
5
- function Nt() {
5
+ function Lt() {
6
6
  if (!(typeof window > "u" && typeof document > "u" && typeof navigator > "u"))
7
7
  try {
8
8
  const n = globalThis;
@@ -11,78 +11,78 @@ function Nt() {
11
11
  n[Ke] = new Map([...ge.entries()]), n[Ke].__realmId = t;
12
12
  }
13
13
  } catch (n) {
14
- q("Could not initialize global registry:", n);
14
+ ee("Could not initialize global registry:", n);
15
15
  }
16
16
  }
17
- function Ot(e, n, t) {
17
+ function Nt(e, n, t) {
18
18
  if (t)
19
19
  for (const [s, r] of Object.entries(t)) {
20
- let i, o = {};
21
- if (Array.isArray(r) ? (i = r[0], o = r[1] || {}) : i = r, n.set(s, {
22
- callback: i,
23
- options: o,
20
+ let o, i = {};
21
+ if (Array.isArray(r) ? (o = r[0], i = r[1] || {}) : o = r, n.set(s, {
22
+ callback: o,
23
+ options: i,
24
24
  oldValue: K(e, s)
25
- }), o.immediate)
25
+ }), i.immediate)
26
26
  try {
27
27
  const c = K(e, s);
28
- i(c, void 0, e);
28
+ o(c, void 0, e);
29
29
  } catch (c) {
30
30
  B(`Error in immediate watcher for "${s}":`, c);
31
31
  }
32
32
  }
33
33
  }
34
- function jt(e, n, t, s) {
35
- const r = (o, c) => {
36
- if (o === c) return !0;
37
- if (typeof o != typeof c || typeof o != "object" || o === null || c === null) return !1;
38
- if (Array.isArray(o) && Array.isArray(c))
39
- return o.length !== c.length ? !1 : o.every((d, k) => r(d, c[k]));
40
- const f = o, u = c, h = Object.keys(f || {}), p = Object.keys(u || {});
34
+ function Ot(e, n, t, s) {
35
+ const r = (i, c) => {
36
+ if (i === c) return !0;
37
+ if (typeof i != typeof c || typeof i != "object" || i === null || c === null) return !1;
38
+ if (Array.isArray(i) && Array.isArray(c))
39
+ return i.length !== c.length ? !1 : i.every((d, k) => r(d, c[k]));
40
+ const f = i, u = c, h = Object.keys(f || {}), p = Object.keys(u || {});
41
41
  return h.length !== p.length ? !1 : h.every((d) => r(f[d], u[d]));
42
- }, i = n.get(t);
43
- if (i && !r(s, i.oldValue))
42
+ }, o = n.get(t);
43
+ if (o && !r(s, o.oldValue))
44
44
  try {
45
- i.callback(s, i.oldValue, e), i.oldValue = s;
46
- } catch (o) {
47
- B(`Error in watcher for "${t}":`, o);
45
+ o.callback(s, o.oldValue, e), o.oldValue = s;
46
+ } catch (i) {
47
+ B(`Error in watcher for "${t}":`, i);
48
48
  }
49
- for (const [o, c] of n.entries())
50
- if (c.options.deep && t.startsWith(o + "."))
49
+ for (const [i, c] of n.entries())
50
+ if (c.options.deep && t.startsWith(i + "."))
51
51
  try {
52
- const f = K(e, o);
52
+ const f = K(e, i);
53
53
  r(f, c.oldValue) || (c.callback(f, c.oldValue, e), c.oldValue = f);
54
54
  } catch (f) {
55
- B(`Error in deep watcher for "${o}":`, f);
55
+ B(`Error in deep watcher for "${i}":`, f);
56
56
  }
57
57
  }
58
- function Fe(e, n) {
58
+ function Ve(e, n) {
59
59
  return n === Boolean ? e === "" || e === "true" : n === Number ? Number(e) : e;
60
60
  }
61
- function Mt(e, n, t) {
61
+ function jt(e, n, t) {
62
62
  if (n)
63
63
  for (const s in n) {
64
- const r = n[s], i = Y(s), o = e.getAttribute(i);
64
+ const r = n[s], o = J(s), i = e.getAttribute(o);
65
65
  if (r.type === Function && typeof e[s] == "function")
66
66
  t[s] = e[s];
67
- else if (o !== null)
68
- t[s] = Fe(o, r.type);
67
+ else if (i !== null)
68
+ t[s] = Ve(i, r.type);
69
69
  else if (typeof e[s] < "u")
70
70
  try {
71
71
  const c = e[s];
72
72
  if (r.type === String && c && typeof c == "object")
73
73
  try {
74
- t[s] = Fe(String(c), r.type);
74
+ t[s] = Ve(String(c), r.type);
75
75
  } catch {
76
76
  t[s] = c;
77
77
  }
78
- else r.type === Boolean && typeof c == "boolean" || r.type === Number && typeof c == "number" || r.type === Function && typeof c == "function" ? t[s] = c : t[s] = Fe(String(c), r.type);
78
+ else r.type === Boolean && typeof c == "boolean" || r.type === Number && typeof c == "number" || r.type === Function && typeof c == "function" ? t[s] = c : t[s] = Ve(String(c), r.type);
79
79
  } catch {
80
80
  t[s] = e[s];
81
81
  }
82
82
  else "default" in r && r.default !== void 0 && (t[s] = r.default);
83
83
  }
84
84
  }
85
- function Pt(e, n, t) {
85
+ function Mt(e, n, t) {
86
86
  if (!n.props) {
87
87
  try {
88
88
  const s = t?._hookCallbacks?.props || {}, r = Array.from(
@@ -91,27 +91,27 @@ function Pt(e, n, t) {
91
91
  ...Object.keys(s || {})
92
92
  ])
93
93
  );
94
- for (const i of r) {
95
- if (typeof i != "string" || i.startsWith("_")) continue;
96
- const o = Object.getOwnPropertyDescriptor(t, i);
94
+ for (const o of r) {
95
+ if (typeof o != "string" || o.startsWith("_")) continue;
96
+ const i = Object.getOwnPropertyDescriptor(t, o);
97
97
  if (!(!Object.prototype.hasOwnProperty.call(
98
98
  s,
99
- i
100
- ) && o && (o.get || o.set || !o.configurable)))
99
+ o
100
+ ) && i && (i.get || i.set || !i.configurable)))
101
101
  try {
102
- Object.defineProperty(t, i, {
102
+ Object.defineProperty(t, o, {
103
103
  enumerable: !0,
104
104
  configurable: !0,
105
105
  get() {
106
106
  try {
107
- const f = Y(i), u = e.getAttribute(f);
107
+ const f = J(o), u = e.getAttribute(f);
108
108
  if (u !== null)
109
109
  return u;
110
- const h = e[i];
110
+ const h = e[o];
111
111
  let p;
112
112
  return P(h) || h && typeof h == "object" && "value" in h && !(h instanceof Node) ? p = h.value : p = h, p;
113
113
  } catch {
114
- return e[i];
114
+ return e[o];
115
115
  }
116
116
  }
117
117
  });
@@ -122,15 +122,15 @@ function Pt(e, n, t) {
122
122
  }
123
123
  return;
124
124
  }
125
- Mt(e, n.props, t);
125
+ jt(e, n.props, t);
126
126
  }
127
- function $t(e, n, t, s) {
127
+ function Pt(e, n, t, s) {
128
128
  e.onConnected && !t && (e.onConnected(n), s(!0));
129
129
  }
130
- function xt(e, n, t, s, r, i, o, c) {
131
- e.onDisconnected && e.onDisconnected(n), t.forEach((f) => f()), s(), r(), i(!1), o(null), c(!1);
130
+ function $t(e, n, t, s, r, o, i, c) {
131
+ e.onDisconnected && e.onDisconnected(n), t.forEach((f) => f()), s(), r(), o(!1), i(null), c(!1);
132
132
  }
133
- function Ht(e, n, t, s, r) {
133
+ function xt(e, n, t, s, r) {
134
134
  e.onAttributeChanged && e.onAttributeChanged(n, t, s, r);
135
135
  }
136
136
  class ne {
@@ -140,7 +140,7 @@ class ne {
140
140
  */
141
141
  static addListener(n, t, s, r) {
142
142
  n.addEventListener(t, s, r);
143
- const o = {
143
+ const i = {
144
144
  event: t,
145
145
  handler: s,
146
146
  wrapper: s,
@@ -150,19 +150,19 @@ class ne {
150
150
  };
151
151
  this.cleanupFunctions.has(n) || this.cleanupFunctions.set(n, []);
152
152
  const c = this.cleanupFunctions.get(n);
153
- c.push(o), c.__metaList = c;
153
+ c.push(i), c.__metaList = c;
154
154
  }
155
155
  /**
156
156
  * Remove a specific event listener
157
157
  */
158
158
  static removeListener(n, t, s, r) {
159
159
  n.removeEventListener(t, s, r);
160
- const i = this.cleanupFunctions.get(n);
161
- if (i)
162
- for (let o = 0; o < i.length; o++) {
163
- const c = i[o];
160
+ const o = this.cleanupFunctions.get(n);
161
+ if (o)
162
+ for (let i = 0; i < o.length; i++) {
163
+ const c = o[i];
164
164
  if (c.event === t && c.handler === s) {
165
- i.splice(o, 1), i.length === 0 && this.cleanupFunctions.delete(n);
165
+ o.splice(i, 1), o.length === 0 && this.cleanupFunctions.delete(n);
166
166
  return;
167
167
  }
168
168
  }
@@ -237,7 +237,7 @@ class Rt {
237
237
  const s = this.cache.get(n);
238
238
  if (s) {
239
239
  if (!s.isSecure) {
240
- q("Blocked cached dangerous expression:", n);
240
+ ee("Blocked cached dangerous expression:", n);
241
241
  return;
242
242
  }
243
243
  try {
@@ -248,11 +248,11 @@ class Rt {
248
248
  }
249
249
  const r = this.createEvaluator(n);
250
250
  if (this.cache.size >= this.maxCacheSize) {
251
- const i = this.cache.keys().next().value;
252
- i && this.cache.delete(i);
251
+ const o = this.cache.keys().next().value;
252
+ o && this.cache.delete(o);
253
253
  }
254
254
  if (this.cache.set(n, r), !r.isSecure) {
255
- q("Blocked dangerous expression:", n);
255
+ ee("Blocked dangerous expression:", n);
256
256
  return;
257
257
  }
258
258
  return r.evaluator(t);
@@ -267,7 +267,7 @@ class Rt {
267
267
  try {
268
268
  return { evaluator: this.createSafeEvaluator(n), isSecure: !0 };
269
269
  } catch (t) {
270
- return q("Failed to create evaluator for expression:", n, t), { evaluator: () => {
270
+ return ee("Failed to create evaluator for expression:", n, t), { evaluator: () => {
271
271
  }, isSecure: !1 };
272
272
  }
273
273
  }
@@ -287,26 +287,26 @@ class Rt {
287
287
  static createObjectEvaluator(n) {
288
288
  const t = n.trim().slice(1, -1), s = this.parseObjectProperties(t);
289
289
  return (r) => {
290
- const i = {};
291
- for (const { key: o, value: c } of s)
290
+ const o = {};
291
+ for (const { key: i, value: c } of s)
292
292
  try {
293
293
  if (c.startsWith("ctx.")) {
294
294
  const f = c.slice(4);
295
- i[o] = K(r, f);
295
+ o[i] = K(r, f);
296
296
  } else
297
- i[o] = this.evaluateSimpleValue(c, r);
297
+ o[i] = this.evaluateSimpleValue(c, r);
298
298
  } catch {
299
- i[o] = void 0;
299
+ o[i] = void 0;
300
300
  }
301
- return i;
301
+ return o;
302
302
  };
303
303
  }
304
304
  static parseObjectProperties(n) {
305
305
  const t = [], s = n.split(",");
306
306
  for (const r of s) {
307
- const i = r.indexOf(":");
308
- if (i === -1) continue;
309
- const o = r.slice(0, i).trim(), c = r.slice(i + 1).trim(), f = o.replace(/^['"]|['"]$/g, "");
307
+ const o = r.indexOf(":");
308
+ if (o === -1) continue;
309
+ const i = r.slice(0, o).trim(), c = r.slice(o + 1).trim(), f = i.replace(/^['"]|['"]$/g, "");
310
310
  t.push({ key: f, value: c });
311
311
  }
312
312
  return t;
@@ -320,17 +320,17 @@ class Rt {
320
320
  /("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')/g,
321
321
  (p) => `<<#${r.push(p) - 1}#>>`
322
322
  );
323
- const i = s.match(/ctx\.[\w.]+/g) || [];
324
- for (const p of i) {
323
+ const o = s.match(/ctx\.[\w.]+/g) || [];
324
+ for (const p of o) {
325
325
  const d = p.slice(4), k = K(t, d);
326
326
  if (k === void 0) return;
327
- const N = r.push(JSON.stringify(k)) - 1;
327
+ const j = r.push(JSON.stringify(k)) - 1;
328
328
  s = s.replace(
329
329
  new RegExp(p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
330
- `<<#${N}#>>`
330
+ `<<#${j}#>>`
331
331
  );
332
332
  }
333
- const o = /\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g, c = s.match(o) || [];
333
+ const i = /\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g, c = s.match(i) || [];
334
334
  for (const p of c) {
335
335
  if (p.startsWith("ctx.")) continue;
336
336
  const d = K(t, p);
@@ -350,16 +350,16 @@ class Rt {
350
350
  h.add(p);
351
351
  const d = K(t, p);
352
352
  if (d === void 0) return;
353
- const k = JSON.stringify(d), N = r.push(k) - 1;
353
+ const k = JSON.stringify(d), j = r.push(k) - 1;
354
354
  p.includes(".") ? s = s.replace(
355
355
  new RegExp(p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
356
- `<<#${N}#>>`
356
+ `<<#${j}#>>`
357
357
  ) : s = s.replace(
358
358
  new RegExp(
359
359
  "\\b" + p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "\\b",
360
360
  "g"
361
361
  ),
362
- `<<#${N}#>>`
362
+ `<<#${j}#>>`
363
363
  );
364
364
  }
365
365
  s = s.replace(
@@ -387,56 +387,56 @@ class Rt {
387
387
  function r() {
388
388
  return t[s];
389
389
  }
390
- function i(g) {
391
- const A = t[s++];
392
- if (g && !A)
390
+ function o(g) {
391
+ const _ = t[s++];
392
+ if (g && !_)
393
393
  throw new Error(`Unexpected token EOF, expected ${g}`);
394
- if (g && A && A.type !== g && A.value !== g)
394
+ if (g && _ && _.type !== g && _.value !== g)
395
395
  throw new Error(
396
- `Unexpected token ${A.type}/${A.value}, expected ${g}`
396
+ `Unexpected token ${_.type}/${_.value}, expected ${g}`
397
397
  );
398
- return A;
398
+ return _;
399
399
  }
400
- function o() {
401
- return N();
400
+ function i() {
401
+ return j();
402
402
  }
403
403
  function c(g) {
404
404
  if (typeof g == "number") return g;
405
405
  if (g == null) return NaN;
406
406
  if (typeof g == "boolean") return g ? 1 : 0;
407
- const A = Number(g);
408
- return Number.isNaN(A) ? NaN : A;
407
+ const _ = Number(g);
408
+ return Number.isNaN(_) ? NaN : _;
409
409
  }
410
- function f(g, A) {
411
- return typeof g == "string" || typeof A == "string" ? String(g) + String(A) : c(g) + c(A);
410
+ function f(g, _) {
411
+ return typeof g == "string" || typeof _ == "string" ? String(g) + String(_) : c(g) + c(_);
412
412
  }
413
- function u(g, A) {
414
- return c(g) - c(A);
413
+ function u(g, _) {
414
+ return c(g) - c(_);
415
415
  }
416
- function h(g, A) {
417
- return c(g) * c(A);
416
+ function h(g, _) {
417
+ return c(g) * c(_);
418
418
  }
419
- function p(g, A) {
420
- return c(g) / c(A);
419
+ function p(g, _) {
420
+ return c(g) / c(_);
421
421
  }
422
- function d(g, A) {
423
- return c(g) % c(A);
422
+ function d(g, _) {
423
+ return c(g) % c(_);
424
424
  }
425
- function k(g, A, l) {
426
- if (typeof A == "number" && typeof l == "number")
425
+ function k(g, _, l) {
426
+ if (typeof _ == "number" && typeof l == "number")
427
427
  switch (g) {
428
428
  case ">":
429
- return A > l;
429
+ return _ > l;
430
430
  case "<":
431
- return A < l;
431
+ return _ < l;
432
432
  case ">=":
433
- return A >= l;
433
+ return _ >= l;
434
434
  case "<=":
435
- return A <= l;
435
+ return _ <= l;
436
436
  default:
437
437
  return !1;
438
438
  }
439
- const y = String(A), w = String(l);
439
+ const y = String(_), w = String(l);
440
440
  switch (g) {
441
441
  case ">":
442
442
  return y > w;
@@ -450,23 +450,23 @@ class Rt {
450
450
  return !1;
451
451
  }
452
452
  }
453
- function N() {
454
- const g = _(), A = r();
455
- if (A && A.value === "?") {
456
- i("?");
457
- const l = o();
458
- i(":");
459
- const y = o();
453
+ function j() {
454
+ const g = A(), _ = r();
455
+ if (_ && _.value === "?") {
456
+ o("?");
457
+ const l = i();
458
+ o(":");
459
+ const y = i();
460
460
  return g ? l : y;
461
461
  }
462
462
  return g;
463
463
  }
464
- function _() {
464
+ function A() {
465
465
  let g = a();
466
466
  for (; ; ) {
467
- const A = r();
468
- if (!A || A.value !== "||") break;
469
- i("OP");
467
+ const _ = r();
468
+ if (!_ || _.value !== "||") break;
469
+ o("OP");
470
470
  const l = a();
471
471
  g = g || l;
472
472
  }
@@ -475,9 +475,9 @@ class Rt {
475
475
  function a() {
476
476
  let g = b();
477
477
  for (; ; ) {
478
- const A = r();
479
- if (!A || A.value !== "&&") break;
480
- i("OP");
478
+ const _ = r();
479
+ if (!_ || _.value !== "&&") break;
480
+ o("OP");
481
481
  const l = b();
482
482
  g = g && l;
483
483
  }
@@ -486,9 +486,9 @@ class Rt {
486
486
  function b() {
487
487
  let g = E();
488
488
  for (; ; ) {
489
- const A = r();
490
- if (!A || !["==", "!=", "===", "!=="].includes(A.value)) break;
491
- const l = i("OP").value, y = E();
489
+ const _ = r();
490
+ if (!_ || !["==", "!=", "===", "!=="].includes(_.value)) break;
491
+ const l = o("OP").value, y = E();
492
492
  switch (l) {
493
493
  case "==":
494
494
  g = g == y;
@@ -509,9 +509,9 @@ class Rt {
509
509
  function E() {
510
510
  let g = m();
511
511
  for (; ; ) {
512
- const A = r();
513
- if (!A || ![">", "<", ">=", "<="].includes(A.value)) break;
514
- const l = i("OP").value, y = m();
512
+ const _ = r();
513
+ if (!_ || ![">", "<", ">=", "<="].includes(_.value)) break;
514
+ const l = o("OP").value, y = m();
515
515
  switch (l) {
516
516
  case ">":
517
517
  g = k(">", g, y);
@@ -532,9 +532,9 @@ class Rt {
532
532
  function m() {
533
533
  let g = v();
534
534
  for (; ; ) {
535
- const A = r();
536
- if (!A || A.value !== "+" && A.value !== "-") break;
537
- const l = i("OP").value, y = v();
535
+ const _ = r();
536
+ if (!_ || _.value !== "+" && _.value !== "-") break;
537
+ const l = o("OP").value, y = v();
538
538
  g = l === "+" ? f(g, y) : u(g, y);
539
539
  }
540
540
  return g;
@@ -542,10 +542,10 @@ class Rt {
542
542
  function v() {
543
543
  let g = S();
544
544
  for (; ; ) {
545
- const A = r();
546
- if (!A || A.value !== "*" && A.value !== "/" && A.value !== "%")
545
+ const _ = r();
546
+ if (!_ || _.value !== "*" && _.value !== "/" && _.value !== "%")
547
547
  break;
548
- const l = i("OP").value, y = S();
548
+ const l = o("OP").value, y = S();
549
549
  switch (l) {
550
550
  case "*":
551
551
  g = h(g, y);
@@ -563,11 +563,11 @@ class Rt {
563
563
  function S() {
564
564
  const g = r();
565
565
  if (g && g.value === "!")
566
- return i("OP"), !S();
566
+ return o("OP"), !S();
567
567
  if (g && g.value === "-") {
568
- i("OP");
569
- const A = S();
570
- return u(0, A);
568
+ o("OP");
569
+ const _ = S();
570
+ return u(0, _);
571
571
  }
572
572
  return C();
573
573
  }
@@ -575,39 +575,39 @@ class Rt {
575
575
  const g = r();
576
576
  if (g) {
577
577
  if (g.type === "NUMBER")
578
- return i("NUMBER"), Number(g.value);
578
+ return o("NUMBER"), Number(g.value);
579
579
  if (g.type === "STRING")
580
- return i("STRING"), g.value.slice(1, -1);
580
+ return o("STRING"), g.value.slice(1, -1);
581
581
  if (g.type === "IDENT")
582
- return i("IDENT"), g.value === "true" ? !0 : g.value === "false" ? !1 : g.value === "null" ? null : void 0;
582
+ return o("IDENT"), g.value === "true" ? !0 : g.value === "false" ? !1 : g.value === "null" ? null : void 0;
583
583
  if (g.value === "[") {
584
- i("PUNC");
585
- const A = [];
584
+ o("PUNC");
585
+ const _ = [];
586
586
  for (; ; ) {
587
587
  const l = r();
588
588
  if (!l || l.value === "]") break;
589
- A.push(o());
589
+ _.push(i());
590
590
  const y = r();
591
- y && y.value === "," && i("PUNC");
591
+ y && y.value === "," && o("PUNC");
592
592
  }
593
- return i("PUNC"), A;
593
+ return o("PUNC"), _;
594
594
  }
595
595
  if (g.value === "(") {
596
- i("PUNC");
597
- const A = o();
598
- return i("PUNC"), A;
596
+ o("PUNC");
597
+ const _ = i();
598
+ return o("PUNC"), _;
599
599
  }
600
600
  throw new Error("Unexpected token in expression");
601
601
  }
602
602
  }
603
- return o();
603
+ return i();
604
604
  }
605
605
  static tokenize(n) {
606
606
  const t = [], s = /\s*(=>|===|!==|==|!=|>=|<=|\|\||&&|[()?:,[\]]|\+|-|\*|\/|%|>|<|!|\d+\.?\d*|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|[a-zA-Z_][a-zA-Z0-9_]*|\S)\s*/g;
607
607
  let r;
608
608
  for (; (r = s.exec(n)) !== null; ) {
609
- const i = r[1];
610
- i && (/^\d/.test(i) ? t.push({ type: "NUMBER", value: i }) : /^"/.test(i) || /^'/.test(i) ? t.push({ type: "STRING", value: i }) : /^[a-zA-Z_]/.test(i) ? t.push({ type: "IDENT", value: i }) : /^[()?:,[\]]$/.test(i) ? t.push({ type: "PUNC", value: i }) : t.push({ type: "OP", value: i }));
609
+ const o = r[1];
610
+ o && (/^\d/.test(o) ? t.push({ type: "NUMBER", value: o }) : /^"/.test(o) || /^'/.test(o) ? t.push({ type: "STRING", value: o }) : /^[a-zA-Z_]/.test(o) ? t.push({ type: "IDENT", value: o }) : /^[()?:,[\]]$/.test(o) ? t.push({ type: "PUNC", value: o }) : t.push({ type: "OP", value: o }));
611
611
  }
612
612
  return t;
613
613
  }
@@ -628,20 +628,20 @@ class Rt {
628
628
  return this.cache.size;
629
629
  }
630
630
  }
631
- function Re(e, n) {
631
+ function He(e, n) {
632
632
  return Array.isArray(e) && Array.isArray(n) ? JSON.stringify([...e].sort()) !== JSON.stringify([...n].sort()) : e !== n;
633
633
  }
634
634
  function it(e, n, t, s, r) {
635
635
  if (e) {
636
- const i = n.value;
637
- if (r && typeof i == "object" && i !== null) {
638
- const o = { ...i };
639
- o[r] = t, n.value = o;
636
+ const o = n.value;
637
+ if (r && typeof o == "object" && o !== null) {
638
+ const i = { ...o };
639
+ i[r] = t, n.value = i;
640
640
  } else
641
641
  n.value = t;
642
642
  } else {
643
- const i = s._state || s;
644
- We(i, n, t);
643
+ const o = s._state || s;
644
+ We(o, n, t);
645
645
  }
646
646
  }
647
647
  function Ie(e, n, t, s) {
@@ -650,19 +650,19 @@ function Ie(e, n, t, s) {
650
650
  e._triggerWatchers(r, s);
651
651
  }
652
652
  }
653
- function It(e, n, t) {
654
- const s = `update:${Y(n)}`, r = `update:${n}`, i = new CustomEvent(s, {
653
+ function Ht(e, n, t) {
654
+ const s = `update:${J(n)}`, r = `update:${n}`, o = new CustomEvent(s, {
655
655
  detail: t,
656
656
  bubbles: !0,
657
657
  cancelable: !0
658
- }), o = new CustomEvent(r, {
658
+ }), i = new CustomEvent(r, {
659
659
  detail: t,
660
660
  bubbles: !0,
661
661
  cancelable: !0
662
662
  });
663
- e.dispatchEvent(i), e.dispatchEvent(o);
663
+ e.dispatchEvent(o), e.dispatchEvent(i);
664
664
  }
665
- function ct(e, n, t, s) {
665
+ function ot(e, n, t, s) {
666
666
  const r = t;
667
667
  if (x(() => {
668
668
  if (typeof e.setAttribute == "function")
@@ -673,19 +673,19 @@ function ct(e, n, t, s) {
673
673
  else
674
674
  e[n] = r;
675
675
  }), r == null || typeof r == "string" || typeof r == "number" || typeof r == "boolean") {
676
- const i = F(r);
677
- i !== null ? x(() => {
676
+ const o = V(r);
677
+ o !== null ? x(() => {
678
678
  typeof e.setAttribute == "function" && U(
679
679
  e,
680
- Y(n),
681
- String(i)
680
+ J(n),
681
+ String(o)
682
682
  );
683
683
  }) : x(() => {
684
- typeof e.removeAttribute == "function" && G(e, Y(n));
684
+ typeof e.removeAttribute == "function" && q(e, J(n));
685
685
  });
686
686
  }
687
687
  }
688
- function Dt(e, n, t, s) {
688
+ function It(e, n, t, s) {
689
689
  if (e) {
690
690
  const r = n.value;
691
691
  return s && typeof r == "object" && r !== null ? r[s] : r;
@@ -697,67 +697,67 @@ function Dt(e, n, t, s) {
697
697
  function Ne(e) {
698
698
  return e != null && typeof e == "object" && "value" in e;
699
699
  }
700
- function Ze(e) {
700
+ function Ge(e) {
701
701
  return e != null && typeof e == "object" && "value" in e ? e.value : e;
702
702
  }
703
- function oe(e, n, t) {
703
+ function ie(e, n, t) {
704
704
  if (!e) return;
705
705
  e.attrs || (e.attrs = {});
706
706
  const s = e.attrs;
707
707
  s[n] = t;
708
708
  }
709
- function ee(e) {
709
+ function Q(e) {
710
710
  return e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement;
711
711
  }
712
712
  function pe(e) {
713
713
  return e != null && typeof e == "object" && "value" in e ? pe(e.value) : !(e != null && typeof e == "object" || e === !1 || e === "false" || e === null || e === void 0 || e === 0);
714
714
  }
715
- function ht(e) {
715
+ function pt(e) {
716
716
  return e.substring(2, 3).toLowerCase() + e.substring(3);
717
717
  }
718
- function Je(e) {
718
+ function Ze(e) {
719
719
  return typeof e == "boolean" || e === "true" || e === "false";
720
720
  }
721
- function Bt(e, n, t, s, r, i, o, c) {
722
- if (!i) return;
721
+ function Dt(e, n, t, s, r, o, i, c) {
722
+ if (!o) return;
723
723
  const f = n.includes("lazy"), u = n.includes("trim"), h = n.includes("number"), p = () => {
724
724
  if (P(e)) {
725
725
  const v = e.value;
726
- return c && o && (o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement) && typeof v == "object" && v !== null ? v[c] : v;
726
+ return c && i && (i instanceof HTMLInputElement || i instanceof HTMLTextAreaElement || i instanceof HTMLSelectElement) && typeof v == "object" && v !== null ? v[c] : v;
727
727
  }
728
- const m = i?._state || i;
728
+ const m = o?._state || o;
729
729
  return K(m, e);
730
730
  }, d = p();
731
731
  let k = "text";
732
- o instanceof HTMLInputElement ? k = s?.type || o.type || "text" : o instanceof HTMLSelectElement ? k = "select" : o instanceof HTMLTextAreaElement && (k = "textarea");
733
- const N = o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement, a = N ? k === "checkbox" || k === "radio" ? "checked" : "value" : c ?? "modelValue";
732
+ i instanceof HTMLInputElement ? k = s?.type || i.type || "text" : i instanceof HTMLSelectElement ? k = "select" : i instanceof HTMLTextAreaElement && (k = "textarea");
733
+ const j = i instanceof HTMLInputElement || i instanceof HTMLTextAreaElement || i instanceof HTMLSelectElement, a = j ? k === "checkbox" || k === "radio" ? "checked" : "value" : c ?? "modelValue";
734
734
  if (k === "checkbox")
735
735
  if (Array.isArray(d))
736
736
  t[a] = d.includes(
737
- String(o?.getAttribute("value") ?? s?.value ?? "")
737
+ String(i?.getAttribute("value") ?? s?.value ?? "")
738
738
  );
739
739
  else {
740
- const m = o?.getAttribute("true-value") ?? !0;
740
+ const m = i?.getAttribute("true-value") ?? !0;
741
741
  t[a] = d === m;
742
742
  }
743
743
  else if (k === "radio")
744
744
  t[a] = d === (s?.value ?? "");
745
745
  else if (k === "select")
746
- if (o && o.hasAttribute("multiple") && o instanceof HTMLSelectElement) {
746
+ if (i && i.hasAttribute("multiple") && i instanceof HTMLSelectElement) {
747
747
  const m = Array.isArray(d) ? d.map(String) : [];
748
748
  setTimeout(() => {
749
- Array.from(o.options).forEach((v) => {
749
+ Array.from(i.options).forEach((v) => {
750
750
  v.selected = m.includes(v.value);
751
751
  });
752
752
  }, 0), t[a] = Array.isArray(d) ? d : [];
753
753
  } else
754
754
  t[a] = d;
755
- else if (!N && P(e))
755
+ else if (!j && P(e))
756
756
  t[a] = e;
757
757
  else {
758
758
  t[a] = d;
759
759
  try {
760
- const m = Y(a);
760
+ const m = J(a);
761
761
  s && (s[m] = d);
762
762
  } catch {
763
763
  }
@@ -798,10 +798,10 @@ function Bt(e, n, t, s, r, i, o, c) {
798
798
  isNaN(l) || (T = l);
799
799
  }
800
800
  const g = p();
801
- if (Re(T, g)) {
801
+ if (He(T, g)) {
802
802
  C._modelUpdating = !0;
803
803
  try {
804
- it(P(e), e, T, i, c), Ie(i, P(e), e, T), C && It(C, a, T);
804
+ it(P(e), e, T, o, c), Ie(o, P(e), e, T), C && Ht(C, a, T);
805
805
  } finally {
806
806
  setTimeout(
807
807
  () => C._modelUpdating = !1,
@@ -810,21 +810,21 @@ function Bt(e, n, t, s, r, i, o, c) {
810
810
  }
811
811
  }
812
812
  };
813
- if (N) {
813
+ if (j) {
814
814
  if (r[b]) {
815
815
  const m = r[b];
816
- o && ne.removeListener(o, b, m);
816
+ i && ne.removeListener(i, b, m);
817
817
  }
818
818
  r[b] = E;
819
819
  } else {
820
- const m = `update:${Y(a)}`, v = `update:${a}`;
820
+ const m = `update:${J(a)}`, v = `update:${a}`;
821
821
  if (r[m]) {
822
822
  const S = r[m];
823
- o && ne.removeListener(o, m, S);
823
+ i && ne.removeListener(i, m, S);
824
824
  }
825
825
  if (r[v]) {
826
826
  const S = r[v];
827
- o && ne.removeListener(o, v, S);
827
+ i && ne.removeListener(i, v, S);
828
828
  }
829
829
  if (r[m] = (S) => {
830
830
  const C = S.detail;
@@ -838,16 +838,16 @@ function Bt(e, n, t, s, r, i, o, c) {
838
838
  T = void 0;
839
839
  }
840
840
  }
841
- const g = Dt(
841
+ const g = It(
842
842
  P(e),
843
843
  e,
844
- i,
844
+ o,
845
845
  c
846
846
  );
847
- if (Re(T, g)) {
848
- it(P(e), e, T, i, c), Ie(i, P(e), e, T);
847
+ if (He(T, g)) {
848
+ it(P(e), e, T, o, c), Ie(o, P(e), e, T);
849
849
  const l = S.target;
850
- l && ct(
850
+ l && ot(
851
851
  l,
852
852
  a,
853
853
  P(e) ? e : T,
@@ -865,13 +865,13 @@ function Bt(e, n, t, s, r, i, o, c) {
865
865
  (T) => typeof T == "string" && !String(T).startsWith("_") && T !== "constructor"
866
866
  );
867
867
  for (const T of C) {
868
- const g = String(T), A = `update:${Y(g)}`, l = `update:${g}`;
869
- r[A] || (r[A] = (y) => {
868
+ const g = String(T), _ = `update:${J(g)}`, l = `update:${g}`;
869
+ r[_] || (r[_] = (y) => {
870
870
  const w = y.detail !== void 0 ? y.detail : y.target?.value, L = P(e) ? e.value[g] : K(
871
- i?._state || i,
871
+ o?._state || o,
872
872
  e
873
873
  );
874
- if (!Re(w, L)) return;
874
+ if (!He(w, L)) return;
875
875
  if (P(e)) {
876
876
  const D = {
877
877
  ...e.value
@@ -879,19 +879,19 @@ function Bt(e, n, t, s, r, i, o, c) {
879
879
  D[g] = w, e.value = D;
880
880
  } else
881
881
  We(
882
- i?._state || i,
882
+ o?._state || o,
883
883
  e,
884
884
  w
885
885
  );
886
- Ie(i, P(e), e, w);
887
- const M = y.currentTarget || o || y.target;
888
- M && ct(
886
+ Ie(o, P(e), e, w);
887
+ const M = y.currentTarget || i || y.target;
888
+ M && ot(
889
889
  M,
890
890
  a,
891
891
  P(e) ? e : w,
892
892
  P(e)
893
893
  );
894
- }, r[l] = r[A]);
894
+ }, r[l] = r[_]);
895
895
  }
896
896
  }
897
897
  r[v] = r[m];
@@ -900,16 +900,16 @@ function Bt(e, n, t, s, r, i, o, c) {
900
900
  r._isComposing = !1;
901
901
  const v = m.target;
902
902
  v && setTimeout(() => {
903
- const S = v.value, C = i?._state || i, T = K(C, e);
903
+ const S = v.value, C = o?._state || o, T = K(C, e);
904
904
  let g = S;
905
905
  if (u && (g = g.trim()), h) {
906
906
  const l = Number(g);
907
907
  isNaN(l) || (g = l);
908
908
  }
909
- if (Re(g, T)) {
909
+ if (He(g, T)) {
910
910
  v._modelUpdating = !0;
911
911
  try {
912
- We(C, e, g), Ie(i, P(e), e, g);
912
+ We(C, e, g), Ie(o, P(e), e, g);
913
913
  } finally {
914
914
  setTimeout(
915
915
  () => v._modelUpdating = !1,
@@ -920,31 +920,31 @@ function Bt(e, n, t, s, r, i, o, c) {
920
920
  }, 0);
921
921
  });
922
922
  }
923
- function Wt(e, n, t, s, r) {
923
+ function Bt(e, n, t, s, r) {
924
924
  if (typeof e == "object" && e !== null)
925
- for (const [i, o] of Object.entries(e))
926
- if (i.startsWith("data-") || i.startsWith("aria-") || i === "class")
927
- t[i] = o;
928
- else if (i === "disabled" && r && ee(r)) {
929
- const c = o && typeof o == "object" && "value" in o;
925
+ for (const [o, i] of Object.entries(e))
926
+ if (o.startsWith("data-") || o.startsWith("aria-") || o === "class")
927
+ t[o] = i;
928
+ else if (o === "disabled" && r && Q(r)) {
929
+ const c = i && typeof i == "object" && "value" in i;
930
930
  (() => {
931
931
  try {
932
- return P(o);
932
+ return P(i);
933
933
  } catch {
934
934
  return !1;
935
935
  }
936
- })() || c ? n[i] = o : t[i] = o;
936
+ })() || c ? n[o] = i : t[o] = i;
937
937
  } else
938
- n[i] = o;
938
+ n[o] = i;
939
939
  else if (typeof e == "string") {
940
940
  if (!s) return;
941
941
  try {
942
- const i = Pe(e, s);
943
- if (typeof i == "object" && i !== null) {
944
- for (const [o, c] of Object.entries(i))
945
- if (o.startsWith("data-") || o.startsWith("aria-") || o === "class")
946
- t[o] = c;
947
- else if (o === "disabled" && r && ee(r)) {
942
+ const o = Pe(e, s);
943
+ if (typeof o == "object" && o !== null) {
944
+ for (const [i, c] of Object.entries(o))
945
+ if (i.startsWith("data-") || i.startsWith("aria-") || i === "class")
946
+ t[i] = c;
947
+ else if (i === "disabled" && r && Q(r)) {
948
948
  const f = c && typeof c == "object" && "value" in c;
949
949
  (() => {
950
950
  try {
@@ -952,24 +952,24 @@ function Wt(e, n, t, s, r) {
952
952
  } catch {
953
953
  return !1;
954
954
  }
955
- })() || f ? n[o] = c : t[o] = c;
955
+ })() || f ? n[i] = c : t[i] = c;
956
956
  } else
957
- n[o] = c;
957
+ n[i] = c;
958
958
  return;
959
959
  } else {
960
- t[e] = i;
960
+ t[e] = o;
961
961
  return;
962
962
  }
963
963
  } catch {
964
- const i = K(
964
+ const o = K(
965
965
  s,
966
966
  e
967
967
  );
968
- t[e] = i;
968
+ t[e] = o;
969
969
  }
970
970
  }
971
971
  }
972
- function Ut(e, n, t) {
972
+ function Wt(e, n, t) {
973
973
  let s;
974
974
  if (typeof e == "string") {
975
975
  if (!t) return;
@@ -977,27 +977,27 @@ function Ut(e, n, t) {
977
977
  } else
978
978
  s = e;
979
979
  const r = String(n.style || "");
980
- let i = r;
980
+ let o = r;
981
981
  if (s) {
982
982
  if (r) {
983
- const o = String(r).split(";").map((f) => f.trim()).filter(Boolean), c = o.findIndex(
983
+ const i = String(r).split(";").map((f) => f.trim()).filter(Boolean), c = i.findIndex(
984
984
  (f) => f.startsWith("display:")
985
985
  );
986
- c >= 0 && o[c] === "display: none" && (o.splice(c, 1), i = o.length > 0 ? o.join("; ") + ";" : "");
986
+ c >= 0 && i[c] === "display: none" && (i.splice(c, 1), o = i.length > 0 ? i.join("; ") + ";" : "");
987
987
  }
988
988
  } else if (r) {
989
- const o = String(r).split(";").filter(Boolean), c = o.findIndex(
989
+ const i = String(r).split(";").filter(Boolean), c = i.findIndex(
990
990
  (f) => f.trim().startsWith("display:")
991
991
  );
992
- c >= 0 ? o[c] = "display: none" : o.push("display: none"), i = o.join("; ");
992
+ c >= 0 ? i[c] = "display: none" : i.push("display: none"), o = i.join("; ");
993
993
  } else
994
- i = "display: none";
995
- i !== r && (i ? n.style = i : n.style = void 0);
994
+ o = "display: none";
995
+ o !== r && (o ? n.style = o : n.style = void 0);
996
996
  }
997
997
  function Pe(e, n) {
998
998
  return Rt.evaluate(e, n);
999
999
  }
1000
- function zt(e, n, t, s) {
1000
+ function Ut(e, n, t, s) {
1001
1001
  let r;
1002
1002
  if (typeof e == "string") {
1003
1003
  if (!t) return;
@@ -1015,18 +1015,18 @@ function zt(e, n, t, s) {
1015
1015
  }
1016
1016
  } catch {
1017
1017
  }
1018
- let i = [];
1018
+ let o = [];
1019
1019
  if (typeof r == "string")
1020
- i = [r];
1020
+ o = [r];
1021
1021
  else if (Array.isArray(r))
1022
- i = r.filter(Boolean);
1022
+ o = r.filter(Boolean);
1023
1023
  else if (typeof r == "object" && r !== null)
1024
1024
  for (const [u, h] of Object.entries(r))
1025
- h && i.push(u);
1026
- const o = i.join(" "), c = s && s.class || n.class || "", f = c ? `${c} ${o}`.trim() : o.trim();
1025
+ h && o.push(u);
1026
+ const i = o.join(" "), c = s && s.class || n.class || "", f = c ? `${c} ${i}`.trim() : i.trim();
1027
1027
  f ? n.class = f : n.class = void 0;
1028
1028
  }
1029
- function Kt(e, n, t) {
1029
+ function zt(e, n, t) {
1030
1030
  let s;
1031
1031
  if (typeof e == "string") {
1032
1032
  if (!t) return;
@@ -1037,7 +1037,7 @@ function Kt(e, n, t) {
1037
1037
  if (typeof s == "string")
1038
1038
  r = s;
1039
1039
  else if (s && typeof s == "object") {
1040
- const o = [];
1040
+ const i = [];
1041
1041
  for (const [c, f] of Object.entries(s))
1042
1042
  if (f != null && f !== "") {
1043
1043
  const u = c.replace(
@@ -1070,30 +1070,30 @@ function Kt(e, n, t) {
1070
1070
  "max-height"
1071
1071
  ];
1072
1072
  let p = String(f);
1073
- typeof f == "number" && h.includes(u) && (p = `${f}px`), o.push(`${u}: ${p}`);
1073
+ typeof f == "number" && h.includes(u) && (p = `${f}px`), i.push(`${u}: ${p}`);
1074
1074
  }
1075
- r = o.join("; ") + (o.length > 0 ? ";" : "");
1075
+ r = i.join("; ") + (i.length > 0 ? ";" : "");
1076
1076
  }
1077
- const i = String(n.style || "");
1078
- n.style = i + (i && !i.endsWith(";") ? "; " : "") + r;
1077
+ const o = String(n.style || "");
1078
+ n.style = o + (o && !o.endsWith(";") ? "; " : "") + r;
1079
1079
  }
1080
- function Ft(e, n, t) {
1080
+ function Kt(e, n, t) {
1081
1081
  let s = e;
1082
1082
  typeof e == "string" && t && (s = Pe(e, t)), P(s) ? n.reactiveRef = s : n.ref = s;
1083
1083
  }
1084
- function yt(e, n, t, s) {
1085
- const r = {}, i = { ...s || {} }, o = {};
1084
+ function ht(e, n, t, s) {
1085
+ const r = {}, o = { ...s || {} }, i = {};
1086
1086
  for (const [c, f] of Object.entries(e)) {
1087
1087
  const { value: u, modifiers: h, arg: p } = f;
1088
1088
  if (c === "model" || c.startsWith("model:")) {
1089
1089
  const d = c.split(":"), k = d.length > 1 ? d[1] : p;
1090
- Bt(
1090
+ Dt(
1091
1091
  u,
1092
1092
  // Pass the original value (could be string or reactive state object)
1093
1093
  h,
1094
1094
  r,
1095
- i,
1096
1095
  o,
1096
+ i,
1097
1097
  n,
1098
1098
  t,
1099
1099
  k
@@ -1102,24 +1102,24 @@ function yt(e, n, t, s) {
1102
1102
  }
1103
1103
  switch (c) {
1104
1104
  case "bind":
1105
- Wt(u, r, i, n, t);
1105
+ Bt(u, r, o, n, t);
1106
1106
  break;
1107
1107
  case "show":
1108
- Ut(u, i, n);
1108
+ Wt(u, o, n);
1109
1109
  break;
1110
1110
  case "class":
1111
- zt(u, i, n, s);
1111
+ Ut(u, o, n, s);
1112
1112
  break;
1113
1113
  case "style":
1114
- Kt(u, i, n);
1114
+ zt(u, o, n);
1115
1115
  break;
1116
1116
  case "ref":
1117
- Ft(u, r, n);
1117
+ Kt(u, r, n);
1118
1118
  break;
1119
1119
  }
1120
1120
  }
1121
1121
  try {
1122
- if (Object.prototype.hasOwnProperty.call(r, "disabled") && t && ee(t)) {
1122
+ if (Object.prototype.hasOwnProperty.call(r, "disabled") && t && Q(t)) {
1123
1123
  const f = r.disabled, u = f && typeof f == "object" && "value" in f;
1124
1124
  let h = !1;
1125
1125
  try {
@@ -1129,7 +1129,7 @@ function yt(e, n, t, s) {
1129
1129
  }
1130
1130
  if (!u && !h)
1131
1131
  try {
1132
- i.disabled = f, delete r.disabled;
1132
+ o.disabled = f, delete r.disabled;
1133
1133
  const p = globalThis;
1134
1134
  p.__VDOM_DISABLED_PROMOTIONS || (p.__VDOM_DISABLED_PROMOTIONS = []), p.__VDOM_DISABLED_PROMOTIONS.push({
1135
1135
  phase: "bind-directive:postfix-move",
@@ -1144,7 +1144,7 @@ function yt(e, n, t, s) {
1144
1144
  }
1145
1145
  } catch {
1146
1146
  }
1147
- return { props: r, attrs: i, listeners: o };
1147
+ return { props: r, attrs: o, listeners: i };
1148
1148
  }
1149
1149
  function be(e) {
1150
1150
  return e ? e.split(/\s+/).filter(Boolean) : [];
@@ -1161,104 +1161,76 @@ function me(e, n) {
1161
1161
  const t = n.filter(Boolean);
1162
1162
  t.length > 0 && e.classList.remove(...t);
1163
1163
  }
1164
- let Ve = !1;
1165
- async function Vt(e, n, t = 10) {
1166
- if (!Ve) {
1167
- if (!e.isConnected) {
1168
- q("⚠️ Element not connected to DOM, skipping style wait");
1169
- return;
1170
- }
1171
- for (let s = 0; s < t; s++) {
1172
- const r = window.getComputedStyle(e), i = r.transform && r.transform !== "", o = r.opacity && r.opacity !== "";
1173
- if (i || o) {
1174
- Ve = !0;
1175
- return;
1176
- }
1177
- await new Promise(
1178
- (c) => requestAnimationFrame(() => c(void 0))
1179
- );
1180
- }
1181
- Ve = !0, q("⚠️ Styles did not load in time for transition, continuing anyway");
1182
- }
1183
- }
1184
- function qt(e) {
1185
- const n = window.getComputedStyle(e), t = n.transitionDuration || "0s", s = n.transitionDelay || "0s", r = (i) => {
1186
- const o = parseFloat(i);
1187
- return i.includes("ms") ? o : o * 1e3;
1164
+ function Vt(e) {
1165
+ const n = window.getComputedStyle(e), t = n.transitionDuration || "0s", s = n.transitionDelay || "0s", r = (o) => {
1166
+ const i = parseFloat(o);
1167
+ return o.includes("ms") ? i : i * 1e3;
1188
1168
  };
1189
1169
  return r(t) + r(s);
1190
1170
  }
1191
- function mt(e, n) {
1171
+ function yt(e, n) {
1192
1172
  return new Promise((t) => {
1193
- const s = n ?? qt(e);
1173
+ const s = n ?? Vt(e);
1194
1174
  if (s <= 0) {
1195
1175
  t();
1196
1176
  return;
1197
1177
  }
1198
1178
  let r = !1;
1199
- const i = () => {
1200
- r || (r = !0, e.removeEventListener("transitionend", o), e.removeEventListener("transitioncancel", o), t());
1201
- }, o = () => i();
1202
- e.addEventListener("transitionend", o), e.addEventListener("transitioncancel", o), setTimeout(i, s + 50);
1179
+ const o = () => {
1180
+ r || (r = !0, e.removeEventListener("transitionend", i), e.removeEventListener("transitioncancel", i), t());
1181
+ }, i = () => o();
1182
+ e.addEventListener("transitionend", i), e.addEventListener("transitioncancel", i), setTimeout(o, s + 50);
1203
1183
  });
1204
1184
  }
1205
1185
  async function we(e, n) {
1206
- const { classes: t, hooks: s, css: r, duration: i } = n;
1186
+ const { classes: t, hooks: s, css: r, duration: o } = n;
1207
1187
  if (s?.onBeforeEnter)
1208
1188
  try {
1209
1189
  s.onBeforeEnter(e);
1210
- } catch (N) {
1211
- B("Transition onBeforeEnter error:", N);
1190
+ } catch (p) {
1191
+ B("Transition onBeforeEnter error:", p);
1212
1192
  }
1213
1193
  if (!r)
1214
- return s?.onEnter ? new Promise((N) => {
1215
- const _ = s.onEnter;
1216
- typeof _ == "function" ? _(e, () => {
1194
+ return s?.onEnter ? new Promise((p) => {
1195
+ const d = s.onEnter;
1196
+ typeof d == "function" ? d(e, () => {
1217
1197
  if (s?.onAfterEnter)
1218
1198
  try {
1219
1199
  s.onAfterEnter(e);
1220
- } catch (a) {
1221
- B("Transition onAfterEnter error:", a);
1200
+ } catch (k) {
1201
+ B("Transition onAfterEnter error:", k);
1222
1202
  }
1223
- N();
1224
- }) : N();
1203
+ p();
1204
+ }) : p();
1225
1205
  }) : void 0;
1226
- const o = be(t?.enterFrom), c = be(t?.enterActive), f = be(t?.enterTo);
1227
- ve(e, o), e.offsetHeight, ve(e, c), e.offsetHeight;
1206
+ const i = be(t?.enterFrom), c = be(t?.enterActive), f = be(t?.enterTo);
1207
+ ve(e, i), e.offsetHeight, ve(e, c), e.offsetHeight;
1228
1208
  let u;
1229
1209
  if (s?.onEnter) {
1230
- const N = new Promise((_) => {
1231
- u = _;
1210
+ const p = new Promise((d) => {
1211
+ u = d;
1232
1212
  });
1233
1213
  try {
1234
- const _ = s.onEnter;
1235
- typeof _ == "function" && _(e, () => {
1214
+ const d = s.onEnter;
1215
+ typeof d == "function" && d(e, () => {
1236
1216
  u && u();
1237
1217
  });
1238
- } catch (_) {
1239
- B("Transition onEnter error:", _);
1240
- }
1241
- u && await N;
1242
- }
1243
- await new Promise(
1244
- (N) => requestAnimationFrame(() => N(void 0))
1245
- ), e.offsetHeight;
1246
- const h = window.getComputedStyle(e), p = h.transform, d = h.opacity;
1247
- me(e, o), p && p !== "none" && (e.style.transform = p), d && d !== "" && (e.style.opacity = d), e.offsetHeight, await new Promise(
1248
- (N) => requestAnimationFrame(() => N(void 0))
1249
- ), e.style.transform = "", e.style.opacity = "", ve(e, f), e.offsetHeight, await new Promise(
1250
- (N) => requestAnimationFrame(() => N(void 0))
1251
- );
1252
- let k;
1253
- if (typeof i == "number" ? k = i : i && typeof i == "object" && "enter" in i && (k = i.enter), await mt(e, k), me(e, c), s?.onAfterEnter)
1218
+ } catch (d) {
1219
+ B("Transition onEnter error:", d);
1220
+ }
1221
+ u && await p;
1222
+ }
1223
+ await new Promise((p) => requestAnimationFrame(() => p())), e.offsetHeight, me(e, i), ve(e, f), e.offsetHeight, await new Promise((p) => requestAnimationFrame(() => p()));
1224
+ let h;
1225
+ if (typeof o == "number" ? h = o : o && typeof o == "object" && "enter" in o && (h = o.enter), await yt(e, h), me(e, c), s?.onAfterEnter)
1254
1226
  try {
1255
1227
  s.onAfterEnter(e);
1256
- } catch (N) {
1257
- B("Transition onAfterEnter error:", N);
1228
+ } catch (p) {
1229
+ B("Transition onAfterEnter error:", p);
1258
1230
  }
1259
1231
  }
1260
- async function qe(e, n) {
1261
- const { classes: t, hooks: s, css: r, duration: i } = n;
1232
+ async function Fe(e, n) {
1233
+ const { classes: t, hooks: s, css: r, duration: o } = n;
1262
1234
  if (s?.onBeforeLeave)
1263
1235
  try {
1264
1236
  s.onBeforeLeave(e);
@@ -1278,8 +1250,8 @@ async function qe(e, n) {
1278
1250
  p();
1279
1251
  }) : p();
1280
1252
  }) : void 0;
1281
- const o = be(t?.leaveFrom), c = be(t?.leaveActive), f = be(t?.leaveTo);
1282
- ve(e, o), e.offsetHeight, ve(e, c);
1253
+ const i = be(t?.leaveFrom), c = be(t?.leaveActive), f = be(t?.leaveTo);
1254
+ ve(e, i), e.offsetHeight, ve(e, c);
1283
1255
  let u;
1284
1256
  if (s?.onLeave) {
1285
1257
  const p = new Promise((d) => {
@@ -1295,21 +1267,19 @@ async function qe(e, n) {
1295
1267
  }
1296
1268
  u && await p;
1297
1269
  }
1298
- await new Promise(
1299
- (p) => requestAnimationFrame(() => p(void 0))
1300
- ), await Vt(e, [...o, ...c]), me(e, o), ve(e, f);
1270
+ await new Promise((p) => requestAnimationFrame(() => p())), me(e, i), ve(e, f);
1301
1271
  let h;
1302
- if (typeof i == "number" ? h = i : i && typeof i == "object" && "leave" in i && (h = i.leave), await mt(e, h), me(e, c), me(e, f), me(e, o), s?.onAfterLeave)
1272
+ if (typeof o == "number" ? h = o : o && typeof o == "object" && "leave" in o && (h = o.leave), await yt(e, h), me(e, c), me(e, f), me(e, i), s?.onAfterLeave)
1303
1273
  try {
1304
1274
  s.onAfterLeave(e);
1305
1275
  } catch (p) {
1306
1276
  B("Transition onAfterLeave error:", p);
1307
1277
  }
1308
1278
  }
1309
- const gt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap();
1279
+ const mt = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap();
1310
1280
  function De(e) {
1311
1281
  if (!e) return;
1312
- const n = gt.get(e);
1282
+ const n = mt.get(e);
1313
1283
  if (n !== void 0) return n;
1314
1284
  try {
1315
1285
  const t = e;
@@ -1321,9 +1291,9 @@ function De(e) {
1321
1291
  if (t) return t;
1322
1292
  }
1323
1293
  }
1324
- function Z(e, n) {
1294
+ function G(e, n) {
1325
1295
  try {
1326
- gt.set(e, n);
1296
+ mt.set(e, n);
1327
1297
  } catch {
1328
1298
  }
1329
1299
  try {
@@ -1332,15 +1302,15 @@ function Z(e, n) {
1332
1302
  }
1333
1303
  try {
1334
1304
  if (e instanceof Element) {
1335
- const t = F(n);
1305
+ const t = V(n);
1336
1306
  t !== null && U(e, "data-anchor-key", t);
1337
1307
  }
1338
1308
  } catch {
1339
1309
  }
1340
1310
  }
1341
- function Gt(e) {
1311
+ function Ft(e) {
1342
1312
  if (!e) return;
1343
- const n = bt.get(e);
1313
+ const n = gt.get(e);
1344
1314
  if (n !== void 0) return n;
1345
1315
  try {
1346
1316
  const t = e;
@@ -1349,9 +1319,9 @@ function Gt(e) {
1349
1319
  } catch {
1350
1320
  }
1351
1321
  }
1352
- function Zt(e, n) {
1322
+ function qt(e, n) {
1353
1323
  try {
1354
- bt.set(e, n);
1324
+ gt.set(e, n);
1355
1325
  } catch {
1356
1326
  }
1357
1327
  try {
@@ -1387,64 +1357,64 @@ function Te(e, n, t) {
1387
1357
  s(n);
1388
1358
  else if (typeof s == "string" && t)
1389
1359
  try {
1390
- const i = String(s);
1391
- t[i] = n;
1360
+ const o = String(s);
1361
+ t[o] = n;
1392
1362
  } catch {
1393
1363
  }
1394
1364
  } catch {
1395
1365
  }
1396
1366
  else if (r && t)
1397
1367
  try {
1398
- const i = String(r);
1399
- t[i] = n;
1368
+ const o = String(r);
1369
+ t[o] = n;
1400
1370
  } catch {
1401
1371
  }
1402
1372
  }
1403
- function Ye(e, n) {
1373
+ function Je(e, n) {
1404
1374
  if (Array.isArray(e)) {
1405
- const i = /* @__PURE__ */ new Set();
1406
- return e.map((o) => {
1407
- if (!o || typeof o != "object") return o;
1408
- let c = o.props?.key ?? o.key;
1375
+ const o = /* @__PURE__ */ new Set();
1376
+ return e.map((i) => {
1377
+ if (!i || typeof i != "object") return i;
1378
+ let c = i.props?.key ?? i.key;
1409
1379
  if (!c) {
1410
- const p = o.tag || "node", k = [
1380
+ const p = i.tag || "node", k = [
1411
1381
  // attrs (kebab-case)
1412
- o.props?.attrs?.id,
1413
- o.props?.attrs?.name,
1414
- o.props?.attrs?.["data-key"],
1382
+ i.props?.attrs?.id,
1383
+ i.props?.attrs?.name,
1384
+ i.props?.attrs?.["data-key"],
1415
1385
  // promoted JS props (camelCase or original)
1416
- o.props?.props?.id,
1417
- o.props?.props?.name,
1418
- o.props?.props?.dataKey,
1419
- o.props?.props?.["data-key"]
1420
- ].find((N) => N != null) ?? "";
1386
+ i.props?.props?.id,
1387
+ i.props?.props?.name,
1388
+ i.props?.props?.dataKey,
1389
+ i.props?.props?.["data-key"]
1390
+ ].find((j) => j != null) ?? "";
1421
1391
  c = k ? `${n}:${p}:${k}` : `${n}:${p}`;
1422
1392
  }
1423
1393
  let f = c, u = 1;
1424
- for (; i.has(f); )
1394
+ for (; o.has(f); )
1425
1395
  f = `${c}#${u++}`;
1426
- i.add(f);
1427
- let h = o.children;
1428
- return Array.isArray(h) && (h = Ye(h, f)), { ...o, key: f, children: h };
1396
+ o.add(f);
1397
+ let h = i.children;
1398
+ return Array.isArray(h) && (h = Je(h, f)), { ...i, key: f, children: h };
1429
1399
  });
1430
1400
  }
1431
1401
  const t = e, s = t.props?.key ?? t.key ?? n;
1432
1402
  let r = t.children;
1433
- return Array.isArray(r) && (r = Ye(r, s)), { ...t, key: s, children: r };
1403
+ return Array.isArray(r) && (r = Je(r, s)), { ...t, key: s, children: r };
1434
1404
  }
1435
- function at(e, n, t, s) {
1436
- const r = t.directives ?? {}, i = t.attrs ? { ...t.attrs } : {}, o = yt(
1405
+ function ct(e, n, t, s) {
1406
+ const r = t.directives ?? {}, o = t.attrs ? { ...t.attrs } : {}, i = ht(
1437
1407
  r,
1438
1408
  s,
1439
1409
  e,
1440
- i
1410
+ o
1441
1411
  ), c = {
1442
1412
  ...n.props || {},
1443
1413
  ...t.props || {},
1444
- ...o.props || {}
1414
+ ...i.props || {}
1445
1415
  }, f = {
1446
- ...i || {},
1447
- ...o.attrs || {}
1416
+ ...o || {},
1417
+ ...i.attrs || {}
1448
1418
  }, u = n.props ?? {}, h = c, p = !!(t?.isCustomElement ?? n?.isCustomElement ?? !1);
1449
1419
  let d = !1;
1450
1420
  for (const a in { ...u, ...h }) {
@@ -1456,13 +1426,13 @@ function at(e, n, t, s) {
1456
1426
  (P(E) || Ne(E)) && (v = E.value);
1457
1427
  }), !(b === E && m === v))
1458
1428
  if (d = !0, a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement)) {
1459
- const S = Ze(E), C = S == null ? "" : String(S);
1429
+ const S = Ge(E), C = S == null ? "" : String(S);
1460
1430
  e.value !== C && (e.value = C);
1461
1431
  } else if (a === "checked" && e instanceof HTMLInputElement) {
1462
- const S = Ze(E);
1432
+ const S = Ge(E);
1463
1433
  e.checked = !!S;
1464
1434
  } else if (a.startsWith("on") && typeof E == "function") {
1465
- const S = ht(a);
1435
+ const S = pt(a);
1466
1436
  typeof b == "function" && ne.removeListener(e, S, b), typeof E == "function" && ne.addListener(e, S, E);
1467
1437
  try {
1468
1438
  if (S && S.startsWith("update:")) {
@@ -1476,12 +1446,12 @@ function at(e, n, t, s) {
1476
1446
  } catch {
1477
1447
  g = [];
1478
1448
  }
1479
- const A = g.filter(
1449
+ const _ = g.filter(
1480
1450
  (l) => typeof l == "string" && !l.startsWith("_") && l !== "constructor"
1481
1451
  );
1482
- for (const l of A) {
1452
+ for (const l of _) {
1483
1453
  const y = `update:${l}`, w = (L) => {
1484
- const O = L.detail !== void 0 ? L.detail : L.target instanceof HTMLInputElement || L.target instanceof HTMLTextAreaElement || L.target instanceof HTMLSelectElement ? L.target.value : void 0, D = { ...P(T) ? T.value || {} : h[C] || {}, [l]: O };
1454
+ const N = L.detail !== void 0 ? L.detail : L.target instanceof HTMLInputElement || L.target instanceof HTMLTextAreaElement || L.target instanceof HTMLSelectElement ? L.target.value : void 0, D = { ...P(T) ? T.value || {} : h[C] || {}, [l]: N };
1485
1455
  try {
1486
1456
  typeof E == "function" && E({
1487
1457
  detail: D
@@ -1497,20 +1467,20 @@ function at(e, n, t, s) {
1497
1467
  } catch {
1498
1468
  }
1499
1469
  } else if (E == null)
1500
- G(e, a);
1470
+ q(e, a);
1501
1471
  else {
1502
1472
  const S = t?.isCustomElement ?? n?.isCustomElement ?? !1;
1503
1473
  if (S || a in e)
1504
1474
  try {
1505
- e[a] = E, a === "disabled" && E === !1 && !S && ee(e) && G(e, "disabled");
1475
+ e[a] = E, a === "disabled" && E === !1 && !S && Q(e) && q(e, "disabled");
1506
1476
  } catch {
1507
1477
  }
1508
1478
  else
1509
- E === !1 && G(e, a);
1479
+ E === !1 && q(e, a);
1510
1480
  }
1511
1481
  }
1512
1482
  for (const [a, b] of Object.entries(
1513
- o.listeners || {}
1483
+ i.listeners || {}
1514
1484
  )) {
1515
1485
  ne.addListener(e, a, b);
1516
1486
  try {
@@ -1523,21 +1493,21 @@ function at(e, n, t, s) {
1523
1493
  } catch {
1524
1494
  }
1525
1495
  }
1526
- const k = { ...n.attrs ?? {} }, N = f, _ = o && o.attrs || {};
1527
- if (Object.prototype.hasOwnProperty.call(_, "class") && typeof e.getAttribute == "function") {
1496
+ const k = { ...n.attrs ?? {} }, j = f, A = i && i.attrs || {};
1497
+ if (Object.prototype.hasOwnProperty.call(A, "class") && typeof e.getAttribute == "function") {
1528
1498
  const a = e.getAttribute("class");
1529
1499
  a !== null && (k.class = a);
1530
1500
  }
1531
- if (Object.prototype.hasOwnProperty.call(_, "style") && typeof e.getAttribute == "function") {
1501
+ if (Object.prototype.hasOwnProperty.call(A, "style") && typeof e.getAttribute == "function") {
1532
1502
  const a = e.getAttribute("style");
1533
1503
  a !== null && (k.style = a);
1534
1504
  }
1535
1505
  try {
1536
- if (Object.prototype.hasOwnProperty.call(_, "class") && _.class === void 0 && typeof e.getAttribute == "function") {
1506
+ if (Object.prototype.hasOwnProperty.call(A, "class") && A.class === void 0 && typeof e.getAttribute == "function") {
1537
1507
  const a = e.getAttribute("class");
1538
1508
  a !== null && (k.class = a);
1539
1509
  }
1540
- if (Object.prototype.hasOwnProperty.call(_, "style") && _.style === void 0 && typeof e.getAttribute == "function") {
1510
+ if (Object.prototype.hasOwnProperty.call(A, "style") && A.style === void 0 && typeof e.getAttribute == "function") {
1541
1511
  const a = e.getAttribute("style");
1542
1512
  a !== null && (k.style = a);
1543
1513
  }
@@ -1553,14 +1523,14 @@ function at(e, n, t, s) {
1553
1523
  }
1554
1524
  } catch {
1555
1525
  }
1556
- for (const a in { ...k, ...N }) {
1557
- const b = k[a], E = N[a];
1526
+ for (const a in { ...k, ...j }) {
1527
+ const b = k[a], E = j[a];
1558
1528
  let m = b, v = E;
1559
1529
  if (P(b) && (m = b.value), P(E) && (v = E.value), m !== v)
1560
1530
  if (d = !0, v == null || v === !1)
1561
1531
  x(() => {
1562
- G(e, a);
1563
- }), oe(n, a, void 0), a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? x(() => {
1532
+ q(e, a);
1533
+ }), ie(n, a, void 0), a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? x(() => {
1564
1534
  e.value = "";
1565
1535
  }) : e instanceof HTMLSelectElement ? x(() => {
1566
1536
  e.value = "";
@@ -1568,7 +1538,7 @@ function at(e, n, t, s) {
1568
1538
  e.value = 0;
1569
1539
  })), a === "checked" && e instanceof HTMLInputElement && x(() => {
1570
1540
  e.checked = !1;
1571
- }), a === "disabled" && ee(e) && x(() => {
1541
+ }), a === "disabled" && Q(e) && x(() => {
1572
1542
  (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = !1);
1573
1543
  });
1574
1544
  else {
@@ -1597,75 +1567,75 @@ function at(e, n, t, s) {
1597
1567
  continue;
1598
1568
  }
1599
1569
  if (a === "style") {
1600
- const C = F(v);
1601
- C !== null && U(e, a, String(C)), oe(n, a, v);
1570
+ const C = V(v);
1571
+ C !== null && U(e, a, String(C)), ie(n, a, v);
1602
1572
  continue;
1603
1573
  }
1604
1574
  if (a === "class") {
1605
- const C = F(v);
1606
- C !== null && U(e, a, String(C)), oe(n, a, v);
1575
+ const C = V(v);
1576
+ C !== null && U(e, a, String(C)), ie(n, a, v);
1607
1577
  continue;
1608
1578
  }
1609
- if (a === "disabled" && ee(e)) {
1579
+ if (a === "disabled" && Q(e)) {
1610
1580
  x(() => {
1611
1581
  const C = pe(v);
1612
1582
  (e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = C);
1613
1583
  }), pe(v) ? x(() => {
1614
1584
  U(e, a, "");
1615
1585
  }) : x(() => {
1616
- G(e, a);
1586
+ q(e, a);
1617
1587
  });
1618
1588
  continue;
1619
1589
  }
1620
1590
  const S = e.namespaceURI === "http://www.w3.org/2000/svg";
1621
1591
  if (p && !S && a.includes("-"))
1622
- if (pt(a)) {
1623
- const C = F(E ?? v);
1592
+ if (dt(a)) {
1593
+ const C = V(E ?? v);
1624
1594
  if (C !== null) {
1625
1595
  try {
1626
1596
  U(e, a, String(C));
1627
1597
  } catch {
1628
1598
  }
1629
- oe(n, a, v);
1599
+ ie(n, a, v);
1630
1600
  }
1631
1601
  } else {
1632
- const C = Qe(a);
1602
+ const C = Xe(a);
1633
1603
  try {
1634
1604
  const T = e;
1635
- T[C] = P(E) ? E : v, oe(n, a, v);
1605
+ T[C] = P(E) ? E : v, ie(n, a, v);
1636
1606
  } catch {
1637
- const T = F(E ?? v);
1607
+ const T = V(E ?? v);
1638
1608
  T !== null && U(e, a, String(T));
1639
1609
  }
1640
1610
  }
1641
1611
  else if (!S && a in e)
1642
1612
  try {
1643
1613
  const C = e;
1644
- C[a] = P(E) ? E : v, oe(n, a, v);
1614
+ C[a] = P(E) ? E : v, ie(n, a, v);
1645
1615
  } catch {
1646
- const C = F(v);
1647
- C !== null && (U(e, a, String(C)), oe(n, a, v));
1616
+ const C = V(v);
1617
+ C !== null && (U(e, a, String(C)), ie(n, a, v));
1648
1618
  }
1649
1619
  else {
1650
- const C = F(v);
1651
- C !== null && (U(e, a, String(C)), oe(n, a, v));
1620
+ const C = V(v);
1621
+ C !== null && (U(e, a, String(C)), ie(n, a, v));
1652
1622
  }
1653
1623
  }
1654
1624
  }
1655
1625
  try {
1656
- if (ee(e)) {
1626
+ if (Q(e)) {
1657
1627
  const a = c.disabled;
1658
1628
  let b;
1659
1629
  try {
1660
1630
  const m = Object.prototype.hasOwnProperty.call(
1661
- o.props || {},
1631
+ i.props || {},
1662
1632
  "disabled"
1663
1633
  ), v = a && typeof a == "object" && "value" in a;
1664
1634
  let S = !1;
1665
1635
  x(() => {
1666
1636
  S = !!P(a);
1667
1637
  });
1668
- const C = Je(a);
1638
+ const C = Ze(a);
1669
1639
  S || v || m || C ? b = a : b = f.disabled;
1670
1640
  } catch {
1671
1641
  b = f.disabled;
@@ -1676,7 +1646,7 @@ function at(e, n, t, s) {
1676
1646
  }), E ? x(() => {
1677
1647
  U(e, "disabled", "");
1678
1648
  }) : x(() => {
1679
- G(e, "disabled");
1649
+ q(e, "disabled");
1680
1650
  });
1681
1651
  }
1682
1652
  } catch {
@@ -1690,14 +1660,14 @@ function at(e, n, t, s) {
1690
1660
  });
1691
1661
  }
1692
1662
  }
1693
- function J(e, n, t, s = null) {
1663
+ function Z(e, n, t, s = null) {
1694
1664
  if (typeof e == "string")
1695
1665
  return document.createTextNode(e);
1696
1666
  if (e.tag === "#text") {
1697
1667
  const a = document.createTextNode(
1698
1668
  typeof e.children == "string" ? e.children : ""
1699
1669
  );
1700
- return e.key != null && Z(a, e.key), a;
1670
+ return e.key != null && G(a, e.key), a;
1701
1671
  }
1702
1672
  if (e.tag === "#raw") {
1703
1673
  const a = typeof e.children == "string" ? e.children : "";
@@ -1705,11 +1675,11 @@ function J(e, n, t, s = null) {
1705
1675
  }
1706
1676
  if (e.tag === "#anchor") {
1707
1677
  const a = e, b = Array.isArray(a.children) ? a.children : [], E = document.createTextNode(""), m = document.createTextNode("");
1708
- a.key != null && (Z(E, `${a.key}:start`), Z(m, `${a.key}:end`)), a._startNode = E, a._endNode = m;
1678
+ a.key != null && (G(E, `${a.key}:start`), G(m, `${a.key}:end`)), a._startNode = E, a._endNode = m;
1709
1679
  const v = document.createDocumentFragment();
1710
1680
  v.appendChild(E);
1711
1681
  for (const S of b) {
1712
- const C = J(
1682
+ const C = Z(
1713
1683
  S,
1714
1684
  n,
1715
1685
  t,
@@ -1718,18 +1688,18 @@ function J(e, n, t, s = null) {
1718
1688
  );
1719
1689
  if (a.key != null && C instanceof Element && !C.hasAttribute("data-anchor-key")) {
1720
1690
  const T = S;
1721
- T && typeof T == "object" && T.key != null || Z(C, String(a.key));
1691
+ T && typeof T == "object" && T.key != null || G(C, String(a.key));
1722
1692
  }
1723
1693
  v.appendChild(C);
1724
1694
  }
1725
1695
  return v.appendChild(m), v;
1726
1696
  }
1727
- const r = e && typeof e == "object" && e.props && e.props.attrs ? e.props.attrs : void 0, o = (r && typeof r.xmlns == "string" ? String(r.xmlns) : void 0) ?? s ?? Ct[e.tag] ?? null, c = o ? document.createElementNS(o, e.tag) : document.createElement(e.tag);
1728
- e.key != null && Z(c, e.key), e.props && e.props?._transitionGroup && Zt(
1697
+ const r = e && typeof e == "object" && e.props && e.props.attrs ? e.props.attrs : void 0, i = (r && typeof r.xmlns == "string" ? String(r.xmlns) : void 0) ?? s ?? St[e.tag] ?? null, c = i ? document.createElementNS(i, e.tag) : document.createElement(e.tag);
1698
+ e.key != null && G(c, e.key), e.props && e.props?._transitionGroup && qt(
1729
1699
  c,
1730
1700
  e.props?._transitionGroup
1731
1701
  );
1732
- const { props: f = {}, attrs: u = {}, directives: h = {} } = e.props ?? {}, p = yt(
1702
+ const { props: f = {}, attrs: u = {}, directives: h = {} } = e.props ?? {}, p = ht(
1733
1703
  h,
1734
1704
  n,
1735
1705
  c instanceof HTMLElement ? c : void 0,
@@ -1742,7 +1712,7 @@ function J(e, n, t, s = null) {
1742
1712
  ...p.attrs
1743
1713
  };
1744
1714
  try {
1745
- const a = (k && k.class) ?? (d && d.class) ?? (e.props && e.props.attrs && e.props.attrs.class) ?? (e.props && e.props.props && e.props.props.class), b = F(a);
1715
+ const a = (k && k.class) ?? (d && d.class) ?? (e.props && e.props.attrs && e.props.attrs.class) ?? (e.props && e.props.props && e.props.props.class), b = V(a);
1746
1716
  if (b !== null) {
1747
1717
  const E = String(b).trim();
1748
1718
  E && U(c, "class", E);
@@ -1750,7 +1720,7 @@ function J(e, n, t, s = null) {
1750
1720
  } catch {
1751
1721
  }
1752
1722
  try {
1753
- if (d.disabled !== void 0 && c && ee(c)) {
1723
+ if (d.disabled !== void 0 && c && Q(c)) {
1754
1724
  const a = d.disabled, b = a && typeof a == "object" && "value" in a;
1755
1725
  let E = !1;
1756
1726
  try {
@@ -1764,59 +1734,59 @@ function J(e, n, t, s = null) {
1764
1734
  }
1765
1735
  } catch {
1766
1736
  }
1767
- const N = c.namespaceURI === "http://www.w3.org/2000/svg";
1737
+ const j = c.namespaceURI === "http://www.w3.org/2000/svg";
1768
1738
  for (const a in k) {
1769
1739
  const b = k[a];
1770
1740
  if (typeof a != "string" || /\[object Object\]/.test(a))
1771
1741
  continue;
1772
- const E = Ze(b);
1742
+ const E = Ge(b);
1773
1743
  if (typeof E == "boolean")
1774
1744
  E ? U(c, a, "") : x(() => {
1775
- G(c, a);
1745
+ q(c, a);
1776
1746
  });
1777
1747
  else if (E != null) {
1778
- if (a === "disabled" && ee(c)) {
1779
- const m = d.disabled, v = Je(m) ? m : E, S = pe(v);
1748
+ if (a === "disabled" && Q(c)) {
1749
+ const m = d.disabled, v = Ze(m) ? m : E, S = pe(v);
1780
1750
  x(() => {
1781
1751
  c.disabled = S;
1782
1752
  }), S ? x(() => {
1783
1753
  U(c, a, "");
1784
1754
  }) : x(() => {
1785
- G(c, a);
1755
+ q(c, a);
1786
1756
  });
1787
1757
  continue;
1788
1758
  }
1789
- if (!N && a === "value" && (c instanceof HTMLInputElement || c instanceof HTMLTextAreaElement || c instanceof HTMLSelectElement || c instanceof HTMLProgressElement))
1759
+ if (!j && a === "value" && (c instanceof HTMLInputElement || c instanceof HTMLTextAreaElement || c instanceof HTMLSelectElement || c instanceof HTMLProgressElement))
1790
1760
  try {
1791
1761
  c instanceof HTMLProgressElement ? c.value = Number(E) : c.value = String(E ?? "");
1792
1762
  } catch {
1793
- const m = F(E);
1763
+ const m = V(E);
1794
1764
  m !== null && U(c, a, String(m));
1795
1765
  }
1796
- else if (!N && a === "checked" && c instanceof HTMLInputElement)
1766
+ else if (!j && a === "checked" && c instanceof HTMLInputElement)
1797
1767
  try {
1798
1768
  c.checked = !!E;
1799
1769
  } catch {
1800
- const m = F(E);
1770
+ const m = V(E);
1801
1771
  m !== null && U(c, a, String(m));
1802
1772
  }
1803
- else if (!N && a in c)
1773
+ else if (!j && a in c)
1804
1774
  try {
1805
- c[a] = E, a === "disabled" && E === !1 && ee(c) && G(c, "disabled"), oe(e.props, a, E);
1775
+ c[a] = E, a === "disabled" && E === !1 && Q(c) && q(c, "disabled"), ie(e.props, a, E);
1806
1776
  } catch {
1807
- const m = F(E);
1777
+ const m = V(E);
1808
1778
  m !== null && U(c, a, String(m));
1809
1779
  }
1810
- else if ((e.props?.isCustomElement ?? !1) && !N && a.includes("-")) {
1811
- const v = Qe(a);
1780
+ else if ((e.props?.isCustomElement ?? !1) && !j && a.includes("-")) {
1781
+ const v = Xe(a);
1812
1782
  try {
1813
1783
  c[v] = E;
1814
1784
  } catch {
1815
- const S = F(E);
1785
+ const S = V(E);
1816
1786
  S !== null && U(c, a, String(S));
1817
1787
  }
1818
1788
  } else {
1819
- const v = F(E);
1789
+ const v = V(E);
1820
1790
  v !== null && U(c, a, String(v));
1821
1791
  }
1822
1792
  }
@@ -1830,7 +1800,7 @@ function J(e, n, t, s = null) {
1830
1800
  c.value = String(E ?? "");
1831
1801
  });
1832
1802
  } else if (a.startsWith("on") && typeof b == "function") {
1833
- const E = ht(a), m = E.includes(":") ? (() => {
1803
+ const E = pt(a), m = E.includes(":") ? (() => {
1834
1804
  const v = E.split(":"), S = v[1];
1835
1805
  if (S.includes("-")) {
1836
1806
  const C = S.split("-").map(
@@ -1847,12 +1817,12 @@ function J(e, n, t, s = null) {
1847
1817
  if (a.startsWith("on") && b === void 0)
1848
1818
  continue;
1849
1819
  if (b == null || b === !1)
1850
- G(c, a);
1820
+ q(c, a);
1851
1821
  else {
1852
1822
  const E = e.props?.isCustomElement ?? !1, m = typeof b == "object" && b !== null && P(b) ? b : Ne(b) && typeof b.value < "u" ? b.value : b;
1853
1823
  if (a === "class" || a === "style") {
1854
1824
  try {
1855
- const v = F(m);
1825
+ const v = V(m);
1856
1826
  v !== null && U(c, a, String(v));
1857
1827
  } catch {
1858
1828
  }
@@ -1861,14 +1831,14 @@ function J(e, n, t, s = null) {
1861
1831
  if (E || a in c)
1862
1832
  try {
1863
1833
  const v = typeof b == "object" && b !== null && P(b) ? b : Ne(b) ? b.value : b;
1864
- if (a === "disabled" && ee(c)) {
1834
+ if (a === "disabled" && Q(c)) {
1865
1835
  const S = d.disabled !== void 0 ? d.disabled : v, C = pe(S);
1866
1836
  x(() => {
1867
1837
  c.disabled = C;
1868
1838
  }), C ? x(() => {
1869
1839
  U(c, a, "");
1870
1840
  }) : x(() => {
1871
- G(c, a);
1841
+ q(c, a);
1872
1842
  });
1873
1843
  continue;
1874
1844
  }
@@ -1890,14 +1860,14 @@ function J(e, n, t, s = null) {
1890
1860
  p.listeners || {}
1891
1861
  ))
1892
1862
  ne.addListener(c, a, b);
1893
- const _ = {
1863
+ const A = {
1894
1864
  ...e,
1895
1865
  props: {
1896
1866
  ...e.props,
1897
1867
  ...p.props
1898
1868
  }
1899
1869
  };
1900
- Te(_, c, t);
1870
+ Te(A, c, t);
1901
1871
  try {
1902
1872
  const a = c;
1903
1873
  if (typeof a._applyProps == "function")
@@ -1909,9 +1879,9 @@ function J(e, n, t, s = null) {
1909
1879
  } catch {
1910
1880
  }
1911
1881
  if (Array.isArray(e.children)) {
1912
- const a = e.tag === "foreignObject" && o === kt ? null : c.namespaceURI ?? null;
1882
+ const a = e.tag === "foreignObject" && i === Ct ? null : c.namespaceURI ?? null;
1913
1883
  for (const b of e.children)
1914
- c.appendChild(J(b, n, t, a));
1884
+ c.appendChild(Z(b, n, t, a));
1915
1885
  } else typeof e.children == "string" && (c.textContent = e.children);
1916
1886
  try {
1917
1887
  if (c instanceof HTMLSelectElement && k && Object.prototype.hasOwnProperty.call(k, "value"))
@@ -1922,7 +1892,7 @@ function J(e, n, t, s = null) {
1922
1892
  } catch {
1923
1893
  }
1924
1894
  try {
1925
- if (ee(c)) {
1895
+ if (Q(c)) {
1926
1896
  const a = d.disabled, b = k.disabled, E = a && typeof a == "object" && "value" in a;
1927
1897
  let m = !1;
1928
1898
  try {
@@ -1930,31 +1900,31 @@ function J(e, n, t, s = null) {
1930
1900
  } catch {
1931
1901
  m = !1;
1932
1902
  }
1933
- const S = m || E || Je(a) ? a : b, C = pe(S);
1903
+ const S = m || E || Ze(a) ? a : b, C = pe(S);
1934
1904
  x(() => {
1935
1905
  c.disabled = C;
1936
1906
  }), C ? x(() => {
1937
1907
  U(c, "disabled", "");
1938
1908
  }) : x(() => {
1939
- G(c, "disabled");
1909
+ q(c, "disabled");
1940
1910
  });
1941
1911
  }
1942
1912
  } catch {
1943
1913
  }
1944
1914
  return c;
1945
1915
  }
1946
- function Jt(e, n, t, s, r) {
1916
+ function Gt(e, n, t, s, r) {
1947
1917
  if (typeof t == "string") {
1948
1918
  e.textContent !== t && (e.textContent = t);
1949
1919
  return;
1950
1920
  }
1951
1921
  if (!Array.isArray(t)) return;
1952
- const i = e.childNodes, o = [];
1953
- for (let _ = 0; _ < i.length; _++)
1954
- o.push(i[_]);
1955
- const c = Array.isArray(n) ? n : [], f = Gt(e);
1922
+ const o = e.childNodes, i = [];
1923
+ for (let A = 0; A < o.length; A++)
1924
+ i.push(o[A]);
1925
+ const c = Array.isArray(n) ? n : [], f = Ft(e);
1956
1926
  if (f) {
1957
- const _ = (m) => {
1927
+ const A = (m) => {
1958
1928
  if (typeof m == "string")
1959
1929
  return m.startsWith("each-") ? m.substring(5) : m;
1960
1930
  if (typeof m == "number") return String(m);
@@ -1963,24 +1933,24 @@ function Jt(e, n, t, s, r) {
1963
1933
  if (m && m.tag === "#anchor") {
1964
1934
  const v = Array.isArray(m.children) ? m.children : [];
1965
1935
  for (const S of v) {
1966
- const C = _(
1936
+ const C = A(
1967
1937
  S.key ?? m.key ?? "unknown"
1968
1938
  );
1969
1939
  a.push({ ...S, key: C });
1970
1940
  }
1971
- } else m && a.push({ ...m, key: _(m.key) });
1941
+ } else m && a.push({ ...m, key: A(m.key) });
1972
1942
  for (const m of c)
1973
1943
  if (m && m.tag === "#anchor") {
1974
1944
  const v = Array.isArray(m.children) ? m.children : [];
1975
1945
  for (const S of v) {
1976
- const C = _(
1946
+ const C = A(
1977
1947
  S.key ?? m.key ?? "unknown"
1978
1948
  );
1979
1949
  b.push({ ...S, key: C });
1980
1950
  }
1981
1951
  } else m && b.push({
1982
1952
  ...m,
1983
- key: _(m.key)
1953
+ key: A(m.key)
1984
1954
  });
1985
1955
  if (a.some((m) => m && m.key != null) || b.some((m) => m && m.key != null)) {
1986
1956
  const m = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
@@ -1989,18 +1959,18 @@ function Jt(e, n, t, s, r) {
1989
1959
  const y = String(l.key);
1990
1960
  m.set(y, l);
1991
1961
  }
1992
- for (let l = 0; l < o.length; l++) {
1993
- const y = o[l];
1962
+ for (let l = 0; l < i.length; l++) {
1963
+ const y = i[l];
1994
1964
  let w = De(y);
1995
- if (w = _(w), w != null && y instanceof Element && y.nodeType === Node.ELEMENT_NODE) {
1965
+ if (w = A(w), w != null && y instanceof Element && y.nodeType === Node.ELEMENT_NODE) {
1996
1966
  let L = typeof w == "string" && w.includes(":") ? w.substring(0, w.lastIndexOf(":")) : w;
1997
1967
  L = String(L), v.set(L, y);
1998
1968
  }
1999
1969
  }
2000
- const S = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Map(), T = o.length > 0;
1970
+ const S = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Map(), T = i.length > 0;
2001
1971
  if (f.moveClass && T)
2002
- for (let l = 0; l < o.length; l++) {
2003
- const y = o[l];
1972
+ for (let l = 0; l < i.length; l++) {
1973
+ const y = i[l];
2004
1974
  if (y instanceof HTMLElement && y.parentElement) {
2005
1975
  const w = y.getBoundingClientRect();
2006
1976
  C.set(y, w);
@@ -2014,42 +1984,42 @@ function Jt(e, n, t, s, r) {
2014
1984
  const w = m.get(y);
2015
1985
  let L = v.get(y);
2016
1986
  if (L && w) {
2017
- const O = Le(L, w, l, s);
1987
+ const N = Le(L, w, l, s);
2018
1988
  S.add(L);
2019
1989
  const M = String(y);
2020
- Z(O, M), g.push({
2021
- node: O,
1990
+ G(N, M), g.push({
1991
+ node: N,
2022
1992
  key: y,
2023
1993
  newVNode: l,
2024
1994
  oldVNode: w,
2025
1995
  isNew: !1
2026
1996
  });
2027
1997
  } else {
2028
- L = J(
1998
+ L = Z(
2029
1999
  l,
2030
2000
  s,
2031
2001
  void 0,
2032
2002
  e instanceof Element ? e.namespaceURI ?? null : null
2033
- ), Z(L, String(y)), e.appendChild(L);
2034
- const O = T || f.appear === !0;
2035
- L instanceof HTMLElement && O && we(L, f).catch((M) => {
2003
+ ), G(L, String(y)), e.appendChild(L);
2004
+ const N = T || f.appear === !0;
2005
+ L instanceof HTMLElement && N && we(L, f).catch((M) => {
2036
2006
  B("Enter transition error:", M);
2037
2007
  }), g.push({ node: L, key: y, newVNode: l, isNew: !0 });
2038
2008
  }
2039
2009
  }
2040
- const A = [];
2041
- for (let l = 0; l < o.length; l++) {
2042
- const y = o[l], w = De(y);
2010
+ const _ = [];
2011
+ for (let l = 0; l < i.length; l++) {
2012
+ const y = i[l], w = De(y);
2043
2013
  if (!S.has(y) && w != null && y instanceof HTMLElement) {
2044
- const O = qe(y, f).then(() => {
2014
+ const N = Fe(y, f).then(() => {
2045
2015
  e.contains(y) && e.removeChild(y);
2046
2016
  }).catch((M) => {
2047
2017
  B("Leave transition error:", M), e.contains(y) && e.removeChild(y);
2048
2018
  });
2049
- A.push(O);
2019
+ _.push(N);
2050
2020
  }
2051
2021
  }
2052
- if (A.length === 0) {
2022
+ if (_.length === 0) {
2053
2023
  let l = e.firstChild;
2054
2024
  for (const { node: y } of g)
2055
2025
  y !== l && e.insertBefore(y, l), l = y.nextSibling;
@@ -2057,40 +2027,40 @@ function Jt(e, n, t, s, r) {
2057
2027
  const y = [];
2058
2028
  for (const { node: w, isNew: L } of g)
2059
2029
  if (!L && w instanceof HTMLElement) {
2060
- const O = C.get(w);
2061
- if (O) {
2062
- const M = w.getBoundingClientRect(), D = O.left - M.left, j = O.top - M.top;
2063
- if (D !== 0 || j !== 0) {
2030
+ const N = C.get(w);
2031
+ if (N) {
2032
+ const M = w.getBoundingClientRect(), D = N.left - M.left, O = N.top - M.top;
2033
+ if (D !== 0 || O !== 0) {
2064
2034
  const z = f.moveClass.split(/\s+/).filter((I) => I);
2065
- y.push({ node: w, deltaX: D, deltaY: j, moveClasses: z });
2035
+ y.push({ node: w, deltaX: D, deltaY: O, moveClasses: z });
2066
2036
  }
2067
2037
  }
2068
2038
  }
2069
2039
  if (y.length > 0) {
2070
- for (const { node: w, deltaX: L, deltaY: O } of y)
2071
- w.style.transform = `translate(${L}px, ${O}px)`, w.style.transitionProperty = "none";
2040
+ for (const { node: w, deltaX: L, deltaY: N } of y)
2041
+ w.style.transform = `translate(${L}px, ${N}px)`, w.style.transitionProperty = "none";
2072
2042
  e.offsetHeight, requestAnimationFrame(() => {
2073
2043
  requestAnimationFrame(() => {
2074
2044
  for (const { node: w, moveClasses: L } of y)
2075
- for (const O of L)
2076
- w.classList.add(O);
2045
+ for (const N of L)
2046
+ w.classList.add(N);
2077
2047
  requestAnimationFrame(() => {
2078
- const w = f.moveClass || "", L = w.match(/duration-(\d+)/), O = L ? `${L[1]}ms` : "300ms", M = w.match(
2048
+ const w = f.moveClass || "", L = w.match(/duration-(\d+)/), N = L ? `${L[1]}ms` : "300ms", M = w.match(
2079
2049
  /ease-(out|in|in-out|linear)/
2080
2050
  ), D = M ? `ease-${M[1]}` : "ease-out";
2081
- for (const { node: j } of y)
2082
- j.style.transition = `transform ${O} ${D}`;
2051
+ for (const { node: O } of y)
2052
+ O.style.transition = `transform ${N} ${D}`;
2083
2053
  requestAnimationFrame(() => {
2084
- for (const { node: j, moveClasses: z } of y) {
2085
- j.style.removeProperty("transform");
2054
+ for (const { node: O, moveClasses: z } of y) {
2055
+ O.style.removeProperty("transform");
2086
2056
  const I = () => {
2087
- for (const ie of z)
2088
- j.classList.remove(ie);
2089
- j.style.removeProperty("transition"), j.removeEventListener("transitionend", I), j.removeEventListener("transitioncancel", I);
2057
+ for (const oe of z)
2058
+ O.classList.remove(oe);
2059
+ O.style.removeProperty("transition"), O.removeEventListener("transitionend", I), O.removeEventListener("transitioncancel", I);
2090
2060
  };
2091
- j.addEventListener("transitionend", I, {
2061
+ O.addEventListener("transitionend", I, {
2092
2062
  once: !0
2093
- }), j.addEventListener("transitioncancel", I, {
2063
+ }), O.addEventListener("transitioncancel", I, {
2094
2064
  once: !0
2095
2065
  });
2096
2066
  }
@@ -2105,51 +2075,51 @@ function Jt(e, n, t, s, r) {
2105
2075
  }
2106
2076
  }
2107
2077
  const u = /* @__PURE__ */ new Map();
2108
- for (const _ of c)
2109
- _ && _.key != null && u.set(_.key, _);
2078
+ for (const A of c)
2079
+ A && A.key != null && u.set(A.key, A);
2110
2080
  const h = /* @__PURE__ */ new Map();
2111
- for (let _ = 0; _ < o.length; _++) {
2112
- const a = o[_], b = De(a);
2081
+ for (let A = 0; A < i.length; A++) {
2082
+ const a = i[A], b = De(a);
2113
2083
  b != null && h.set(b, a);
2114
2084
  }
2115
2085
  const p = /* @__PURE__ */ new Set();
2116
2086
  let d = e.firstChild;
2117
- function k(_, a) {
2118
- let b = _;
2087
+ function k(A, a) {
2088
+ let b = A;
2119
2089
  for (; b && (p.add(b), b !== a); )
2120
2090
  b = b.nextSibling;
2121
2091
  }
2122
- function N(_, a, b, E, m, v = !0) {
2092
+ function j(A, a, b, E, m, v = !0) {
2123
2093
  const S = [];
2124
- let C = _.nextSibling;
2094
+ let C = A.nextSibling;
2125
2095
  for (; C && C !== a; )
2126
2096
  S.push(C), C = C.nextSibling;
2127
2097
  const T = Array.isArray(b) ? b : [];
2128
- if (E.some((A) => A && A.key != null) || T.some((A) => A && A.key != null)) {
2129
- const A = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
2130
- for (const O of T)
2131
- O && O.key != null && A.set(O.key, O);
2132
- for (const O of S) {
2133
- const M = De(O);
2134
- M != null && l.set(M, O);
2098
+ if (E.some((_) => _ && _.key != null) || T.some((_) => _ && _.key != null)) {
2099
+ const _ = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
2100
+ for (const N of T)
2101
+ N && N.key != null && _.set(N.key, N);
2102
+ for (const N of S) {
2103
+ const M = De(N);
2104
+ M != null && l.set(M, N);
2135
2105
  }
2136
2106
  const y = m && m.state === "visible" && T.length === 0 && E.length > 0, w = /* @__PURE__ */ new Set();
2137
- let L = _.nextSibling;
2138
- for (const O of E) {
2107
+ let L = A.nextSibling;
2108
+ for (const N of E) {
2139
2109
  let M;
2140
- if (O.key != null && l.has(O.key)) {
2141
- const D = A.get(O.key);
2110
+ if (N.key != null && l.has(N.key)) {
2111
+ const D = _.get(N.key);
2142
2112
  M = Le(
2143
- l.get(O.key),
2113
+ l.get(N.key),
2144
2114
  D,
2145
- O,
2115
+ N,
2146
2116
  s
2147
- ), w.add(M), m && M instanceof HTMLElement && y && m.appear && we(M, m).catch((j) => {
2148
- B("Transition enter error (appear):", j);
2117
+ ), w.add(M), m && M instanceof HTMLElement && y && m.appear && we(M, m).catch((O) => {
2118
+ B("Transition enter error (appear):", O);
2149
2119
  }), M !== L && e.contains(M) && e.insertBefore(M, L);
2150
2120
  } else
2151
- M = J(
2152
- O,
2121
+ M = Z(
2122
+ N,
2153
2123
  s,
2154
2124
  void 0,
2155
2125
  e instanceof Element ? e.namespaceURI ?? null : null
@@ -2158,23 +2128,23 @@ function Jt(e, n, t, s, r) {
2158
2128
  });
2159
2129
  L = M.nextSibling;
2160
2130
  }
2161
- for (const O of S)
2162
- !w.has(O) && e.contains(O) && (m && O instanceof HTMLElement && v ? qe(O, m).then(() => {
2163
- e.contains(O) && e.removeChild(O);
2131
+ for (const N of S)
2132
+ !w.has(N) && e.contains(N) && (m && N instanceof HTMLElement && v ? Fe(N, m).then(() => {
2133
+ e.contains(N) && e.removeChild(N);
2164
2134
  }).catch((M) => {
2165
- B("Transition leave error:", M), e.contains(O) && e.removeChild(O);
2166
- }) : e.removeChild(O));
2135
+ B("Transition leave error:", M), e.contains(N) && e.removeChild(N);
2136
+ }) : e.removeChild(N));
2167
2137
  } else {
2168
- const A = Math.min(
2138
+ const _ = Math.min(
2169
2139
  T.length,
2170
2140
  E.length
2171
2141
  );
2172
- for (let l = 0; l < A; l++) {
2142
+ for (let l = 0; l < _; l++) {
2173
2143
  const y = T[l], w = E[l], L = Le(S[l], y, w, s);
2174
2144
  L !== S[l] && (e.insertBefore(L, S[l]), e.removeChild(S[l]));
2175
2145
  }
2176
- for (let l = A; l < E.length; l++) {
2177
- const y = J(
2146
+ for (let l = _; l < E.length; l++) {
2147
+ const y = Z(
2178
2148
  E[l],
2179
2149
  s,
2180
2150
  void 0,
@@ -2184,9 +2154,9 @@ function Jt(e, n, t, s, r) {
2184
2154
  B("Transition enter error:", w);
2185
2155
  });
2186
2156
  }
2187
- for (let l = A; l < S.length; l++) {
2157
+ for (let l = _; l < S.length; l++) {
2188
2158
  const y = S[l];
2189
- m && y instanceof HTMLElement && v ? qe(y, m).then(() => {
2159
+ m && y instanceof HTMLElement && v ? Fe(y, m).then(() => {
2190
2160
  e.contains(y) && e.removeChild(y);
2191
2161
  }).catch((w) => {
2192
2162
  B("Transition leave error:", w), e.contains(y) && e.removeChild(y);
@@ -2194,30 +2164,30 @@ function Jt(e, n, t, s, r) {
2194
2164
  }
2195
2165
  }
2196
2166
  }
2197
- for (const _ of t) {
2167
+ for (const A of t) {
2198
2168
  let a;
2199
- if (_.tag === "#anchor") {
2200
- const b = _.key, E = `${b}:start`, m = `${b}:end`;
2169
+ if (A.tag === "#anchor") {
2170
+ const b = A.key, E = `${b}:start`, m = `${b}:end`;
2201
2171
  let v = h.get(E), S = h.get(m);
2202
- const C = Array.isArray(_.children) ? _.children : [];
2203
- if (v || (v = document.createTextNode(""), Z(v, E)), S || (S = document.createTextNode(""), Z(S, m)), _._startNode = v, _._endNode = S, !e.contains(v) || !e.contains(S)) {
2172
+ const C = Array.isArray(A.children) ? A.children : [];
2173
+ if (v || (v = document.createTextNode(""), G(v, E)), S || (S = document.createTextNode(""), G(S, m)), A._startNode = v, A._endNode = S, !e.contains(v) || !e.contains(S)) {
2204
2174
  e.insertBefore(v, d);
2205
- const T = _._transition, A = !(T && T.state === "visible" && C.length > 0) || T.appear;
2175
+ const T = A._transition, _ = !(T && T.state === "visible" && C.length > 0) || T.appear;
2206
2176
  for (const l of C) {
2207
- const y = J(
2177
+ const y = Z(
2208
2178
  l,
2209
2179
  s,
2210
2180
  r,
2211
2181
  e instanceof Element ? e.namespaceURI ?? null : null
2212
2182
  );
2213
- e.insertBefore(y, d), T && y instanceof HTMLElement && A && we(y, T).catch((w) => {
2183
+ e.insertBefore(y, d), T && y instanceof HTMLElement && _ && we(y, T).catch((w) => {
2214
2184
  B("Transition enter error:", w);
2215
2185
  });
2216
2186
  }
2217
2187
  e.insertBefore(S, d);
2218
2188
  } else {
2219
- const T = _._transition, A = u.get(b)._transition, l = A && A.state !== T?.state, y = T && T.state === "visible" && C.length > 0 && !l, w = l || !y || T?.appear === !0;
2220
- N(
2189
+ const T = A._transition, _ = u.get(b)._transition, l = _ && _.state !== T?.state, y = T && T.state === "visible" && C.length > 0 && !l, w = l || !y || T?.appear === !0;
2190
+ j(
2221
2191
  v,
2222
2192
  S,
2223
2193
  u.get(b)?.children,
@@ -2229,26 +2199,26 @@ function Jt(e, n, t, s, r) {
2229
2199
  k(v, S), d = S.nextSibling;
2230
2200
  continue;
2231
2201
  }
2232
- if (_.key != null && h.has(_.key)) {
2233
- const b = u.get(_.key);
2202
+ if (A.key != null && h.has(A.key)) {
2203
+ const b = u.get(A.key);
2234
2204
  a = Le(
2235
- h.get(_.key),
2205
+ h.get(A.key),
2236
2206
  b,
2237
- _,
2207
+ A,
2238
2208
  s,
2239
2209
  r
2240
2210
  ), p.add(a), a !== d && e.contains(a) && (d && !e.contains(d) && (d = null), e.insertBefore(a, d));
2241
2211
  } else
2242
- a = J(
2243
- _,
2212
+ a = Z(
2213
+ A,
2244
2214
  s,
2245
2215
  r,
2246
2216
  e instanceof Element ? e.namespaceURI ?? null : null
2247
2217
  ), d && !e.contains(d) && (d = null), e.insertBefore(a, d), p.add(a);
2248
2218
  d = a.nextSibling;
2249
2219
  }
2250
- for (let _ = 0; _ < o.length; _++) {
2251
- const a = o[_];
2220
+ for (let A = 0; A < i.length; A++) {
2221
+ const a = i[A];
2252
2222
  !p.has(a) && e.contains(a) && (de(a, r), e.removeChild(a));
2253
2223
  }
2254
2224
  }
@@ -2258,17 +2228,17 @@ function Le(e, n, t, s, r) {
2258
2228
  if (e.nodeType === Node.TEXT_NODE)
2259
2229
  return e.textContent !== t && (e.textContent = t), e;
2260
2230
  {
2261
- const o = document.createTextNode(t);
2262
- return e.parentNode?.replaceChild(o, e), o;
2231
+ const i = document.createTextNode(t);
2232
+ return e.parentNode?.replaceChild(i, e), i;
2263
2233
  }
2264
2234
  }
2265
2235
  if (t && typeof t != "string" && t.tag === "#anchor") {
2266
- const o = t, c = Array.isArray(o.children) ? o.children : [], f = o._startNode ?? document.createTextNode(""), u = o._endNode ?? document.createTextNode("");
2267
- o.key != null && (Z(f, `${o.key}:start`), Z(u, `${o.key}:end`)), o._startNode = f, o._endNode = u;
2236
+ const i = t, c = Array.isArray(i.children) ? i.children : [], f = i._startNode ?? document.createTextNode(""), u = i._endNode ?? document.createTextNode("");
2237
+ i.key != null && (G(f, `${i.key}:start`), G(u, `${i.key}:end`)), i._startNode = f, i._endNode = u;
2268
2238
  const h = document.createDocumentFragment();
2269
2239
  h.appendChild(f);
2270
2240
  for (const p of c) {
2271
- const d = J(
2241
+ const d = Z(
2272
2242
  p,
2273
2243
  s,
2274
2244
  r,
@@ -2280,27 +2250,27 @@ function Le(e, n, t, s, r) {
2280
2250
  }
2281
2251
  if (!t) {
2282
2252
  de(e, r);
2283
- const o = document.createComment("removed");
2284
- return e.parentNode?.replaceChild(o, e), o;
2253
+ const i = document.createComment("removed");
2254
+ return e.parentNode?.replaceChild(i, e), i;
2285
2255
  }
2286
2256
  if (!n || typeof n == "string") {
2287
2257
  de(e, r);
2288
- const o = J(
2258
+ const i = Z(
2289
2259
  t,
2290
2260
  s,
2291
2261
  r,
2292
2262
  e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
2293
2263
  );
2294
- return Te(t, o, r), e.parentNode?.replaceChild(o, e), o;
2264
+ return Te(t, i, r), e.parentNode?.replaceChild(i, e), i;
2295
2265
  }
2296
2266
  if (t.tag === "#anchor") {
2297
- const o = Array.isArray(t.children) ? t.children : [], c = t._startNode ?? document.createTextNode(""), f = t._endNode ?? document.createTextNode("");
2298
- t.key != null && (Z(c, `${t.key}:start`), Z(f, `${t.key}:end`)), t._startNode = c, t._endNode = f;
2267
+ const i = Array.isArray(t.children) ? t.children : [], c = t._startNode ?? document.createTextNode(""), f = t._endNode ?? document.createTextNode("");
2268
+ t.key != null && (G(c, `${t.key}:start`), G(f, `${t.key}:end`)), t._startNode = c, t._endNode = f;
2299
2269
  const u = document.createDocumentFragment();
2300
2270
  u.appendChild(c);
2301
- for (const h of o)
2271
+ for (const h of i)
2302
2272
  u.appendChild(
2303
- J(
2273
+ Z(
2304
2274
  h,
2305
2275
  s,
2306
2276
  r,
@@ -2310,25 +2280,25 @@ function Le(e, n, t, s, r) {
2310
2280
  return u.appendChild(f), e.parentNode?.replaceChild(u, e), c;
2311
2281
  }
2312
2282
  if (typeof n != "string" && typeof t != "string" && n.tag === t.tag && n.key === t.key) {
2313
- const o = e;
2314
- return at(o, n.props || {}, t.props || {}, s), Jt(o, n.children, t.children, s, r), Te(t, o, r), o;
2283
+ const i = e;
2284
+ return ct(i, n.props || {}, t.props || {}, s), Gt(i, n.children, t.children, s, r), Te(t, i, r), i;
2315
2285
  }
2316
2286
  if (typeof n != "string" && typeof t != "string" && n.tag === t.tag && (n.tag && String(n.tag).includes("-") || t.props && t.props.isCustomElement || n.props && n.props.isCustomElement))
2317
2287
  try {
2318
2288
  const c = e;
2319
- return at(c, n.props || {}, t.props || {}, s), Te(t, c, r), c;
2289
+ return ct(c, n.props || {}, t.props || {}, s), Te(t, c, r), c;
2320
2290
  } catch {
2321
2291
  }
2322
2292
  de(e, r);
2323
- const i = J(
2293
+ const o = Z(
2324
2294
  t,
2325
2295
  s,
2326
2296
  r,
2327
2297
  e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
2328
2298
  );
2329
- return Te(t, i, r), e.parentNode?.replaceChild(i, e), i;
2299
+ return Te(t, o, r), e.parentNode?.replaceChild(o, e), o;
2330
2300
  }
2331
- function Yt(e, n, t, s) {
2301
+ function Zt(e, n, t, s) {
2332
2302
  let r;
2333
2303
  Array.isArray(n) ? n.length === 1 ? (r = n[0], r && typeof r == "object" && r.key == null && (r = { ...r, key: "__root__" })) : r = { tag: "div", key: "__root__", children: n } : (r = n, r && typeof r == "object" && r.key == null && (r = { ...r, key: "__root__" })), r && typeof r == "object" && r.tag === "#anchor" && (r = {
2334
2304
  tag: "div",
@@ -2337,15 +2307,15 @@ function Yt(e, n, t, s) {
2337
2307
  attrs: { "data-anchor-block-root": "", key: "__anchor_root__" }
2338
2308
  },
2339
2309
  children: [r]
2340
- }), r = Ye(r, String(r.key ?? "root"));
2341
- const i = e._prevVNode ?? null, o = e._prevDom ?? e.firstChild ?? null;
2310
+ }), r = Je(r, String(r.key ?? "root"));
2311
+ const o = e._prevVNode ?? null, i = e._prevDom ?? e.firstChild ?? null;
2342
2312
  let c;
2343
- i && o ? typeof i != "string" && typeof r != "string" && i.tag === r.tag && i.key === r.key ? c = Le(o, i, r, t, s) : (c = J(
2313
+ o && i ? typeof o != "string" && typeof r != "string" && o.tag === r.tag && o.key === r.key ? c = Le(i, o, r, t, s) : (c = Z(
2344
2314
  r,
2345
2315
  t,
2346
2316
  s,
2347
2317
  e.host instanceof Element ? e.host.namespaceURI ?? null : null
2348
- ), e.replaceChild(c, o)) : (c = J(
2318
+ ), e.replaceChild(c, i)) : (c = Z(
2349
2319
  r,
2350
2320
  t,
2351
2321
  s,
@@ -2367,50 +2337,50 @@ function Yt(e, n, t, s) {
2367
2337
  } : r;
2368
2338
  e._prevVNode = u, e._prevDom = c;
2369
2339
  }
2370
- const Oe = [], lt = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap();
2371
- function Xt(e, n) {
2340
+ const Oe = [], at = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap();
2341
+ function Jt(e, n) {
2372
2342
  Ee.has(e) || Ee.set(e, /* @__PURE__ */ new Set()), Ee.get(e).add(n);
2373
2343
  }
2374
- function Qt(e, n) {
2344
+ function Yt(e, n) {
2375
2345
  const t = Ee.get(e);
2376
2346
  t && (t.delete(n), t.size === 0 && Ee.delete(e));
2377
2347
  }
2378
- function en(e, n, t, s, r, i, o, c) {
2348
+ function Xt(e, n, t, s, r, o, i, c) {
2379
2349
  if (e) {
2380
2350
  Oe.push(t);
2381
2351
  try {
2382
2352
  const f = n.render(t);
2383
2353
  if (f instanceof Promise) {
2384
- i(!0), f.then((u) => {
2385
- i(!1), o(null), ft(e, u, t, s, r), c(e.innerHTML);
2354
+ o(!0), f.then((u) => {
2355
+ o(!1), i(null), lt(e, u, t, s, r), c(e.innerHTML);
2386
2356
  }).catch((u) => {
2387
- i(!1), o(u instanceof Error ? u : new Error(String(u)));
2357
+ o(!1), i(u instanceof Error ? u : new Error(String(u)));
2388
2358
  });
2389
2359
  return;
2390
2360
  }
2391
- ft(e, f, t, s, r), c(e.innerHTML);
2361
+ lt(e, f, t, s, r), c(e.innerHTML);
2392
2362
  } catch (f) {
2393
- o(f instanceof Error ? f : new Error(String(f)));
2363
+ i(f instanceof Error ? f : new Error(String(f)));
2394
2364
  } finally {
2395
2365
  Oe.pop();
2396
2366
  }
2397
2367
  }
2398
2368
  }
2399
- function ft(e, n, t, s, r) {
2369
+ function lt(e, n, t, s, r) {
2400
2370
  if (e)
2401
2371
  try {
2402
- Yt(
2372
+ Zt(
2403
2373
  e,
2404
2374
  Array.isArray(n) ? n : [n],
2405
2375
  t,
2406
2376
  s
2407
2377
  ), r(e.innerHTML);
2408
- } catch (i) {
2409
- throw B("Error during VDOM rendering:", i), i;
2378
+ } catch (o) {
2379
+ throw B("Error during VDOM rendering:", o), o;
2410
2380
  }
2411
2381
  }
2412
- function tn(e, n, t, s, r, i, o) {
2413
- i !== null && clearTimeout(i);
2382
+ function Qt(e, n, t, s, r, o, i) {
2383
+ o !== null && clearTimeout(o);
2414
2384
  const u = Date.now() - n < 16, h = (() => {
2415
2385
  try {
2416
2386
  return typeof window < "u" && !!window.Cypress;
@@ -2425,73 +2395,73 @@ function tn(e, n, t, s, r, i, o) {
2425
2395
  }
2426
2396
  })(), d = p || h;
2427
2397
  if (u) {
2428
- const _ = t + 1;
2429
- r(_);
2398
+ const A = t + 1;
2399
+ r(A);
2430
2400
  const a = d ? 50 : 10, b = d ? 100 : 25, E = p ? 12 : 50;
2431
- if (_ === a && !d)
2432
- q(
2401
+ if (A === a && !d)
2402
+ ee(
2433
2403
  `⚠️ Component rendering frequently. Performance may be impacted.
2434
2404
  Common causes:
2435
2405
  • State updates during render cycle
2436
2406
  • Event handlers with immediate function calls
2437
2407
  • Missing effect dependencies`
2438
2408
  );
2439
- else if (_ === b && !d)
2440
- q(
2409
+ else if (A === b && !d)
2410
+ ee(
2441
2411
  `⚠️ Component is re-rendering rapidly. Applying throttling.
2442
2412
  This might indicate:
2443
2413
  • Event handler calling function immediately: @click="\${fn()}" should be @click="\${fn}"
2444
2414
  • State modification during render
2445
2415
  • Missing dependencies in computed/watch`
2446
2416
  );
2447
- else if (_ >= E) {
2417
+ else if (A >= E) {
2448
2418
  B(
2449
2419
  `🛑 Infinite render loop detected. Stopping to prevent browser freeze.
2450
2420
  Possible causes:
2451
2421
  • State updates triggering immediate re-renders
2452
2422
  • Computed values changing during evaluation
2453
2423
  • Circular dependencies in reactive system`
2454
- ), o(null);
2424
+ ), i(null);
2455
2425
  return;
2456
2426
  }
2457
2427
  } else
2458
2428
  r(0);
2459
2429
  let k = 0;
2460
2430
  d || (t >= 40 ? k = 500 : t >= 25 ? k = 100 : t >= 15 && (k = 16));
2461
- const N = () => {
2431
+ const j = () => {
2462
2432
  s(Date.now());
2463
2433
  try {
2464
2434
  e();
2465
- } catch (_) {
2466
- B("Error during render execution:", _);
2435
+ } catch (A) {
2436
+ B("Error during render execution:", A);
2467
2437
  } finally {
2468
- o(null);
2438
+ i(null);
2469
2439
  }
2470
2440
  };
2471
2441
  if (k > 0) {
2472
- const _ = setTimeout(N, k);
2473
- o(_);
2474
- } else d ? N() : (o({}), queueMicrotask(N));
2442
+ const A = setTimeout(j, k);
2443
+ i(A);
2444
+ } else d ? j() : (i({}), queueMicrotask(j));
2475
2445
  }
2476
- function nn(e, n) {
2446
+ function en(e, n) {
2477
2447
  let t = n;
2478
2448
  try {
2479
2449
  const s = Ee.get(e);
2480
2450
  if (s?.size)
2481
2451
  for (const r of s)
2482
2452
  try {
2483
- const i = r.lastHtmlStringForJitCSS;
2484
- i?.trim() && (t += `
2485
- ` + i);
2453
+ const o = r.lastHtmlStringForJitCSS;
2454
+ o?.trim() && (t += `
2455
+ ` + o);
2486
2456
  } catch {
2487
2457
  }
2488
2458
  else {
2489
2459
  const r = e.querySelectorAll("*");
2490
- for (const i of r)
2460
+ for (const o of r)
2491
2461
  try {
2492
- const o = i.lastHtmlStringForJitCSS;
2493
- o?.trim() && (t += `
2494
- ` + o);
2462
+ const i = o.lastHtmlStringForJitCSS;
2463
+ i?.trim() && (t += `
2464
+ ` + i);
2495
2465
  } catch {
2496
2466
  }
2497
2467
  }
@@ -2499,10 +2469,10 @@ function nn(e, n) {
2499
2469
  }
2500
2470
  return t;
2501
2471
  }
2502
- function ut(e) {
2472
+ function ft(e) {
2503
2473
  return "adoptedStyleSheets" in e && typeof CSSStyleSheet < "u" && "replaceSync" in CSSStyleSheet.prototype;
2504
2474
  }
2505
- function dt(e, n) {
2475
+ function ut(e, n) {
2506
2476
  let t = e.querySelector(
2507
2477
  "style[data-cer-runtime]"
2508
2478
  );
@@ -2512,21 +2482,21 @@ function dt(e, n) {
2512
2482
  } catch {
2513
2483
  }
2514
2484
  }
2515
- function rn(e, n, t, s, r) {
2485
+ function tn(e, n, t, s, r) {
2516
2486
  if (!e) return;
2517
- const i = nn(e, t);
2518
- if (lt.get(e) === i)
2487
+ const o = en(e, t);
2488
+ if (at.get(e) === o)
2519
2489
  return;
2520
- lt.set(e, i);
2521
- const c = wt(i), f = Tt(), u = n._computedStyle;
2490
+ at.set(e, o);
2491
+ const c = At(o), f = wt(), u = n._computedStyle;
2522
2492
  if (!c?.trim() && !u && !f) {
2523
- if (r(null), ut(e))
2493
+ if (r(null), ft(e))
2524
2494
  e.adoptedStyleSheets = [
2525
- He(),
2495
+ Re(),
2526
2496
  ye()
2527
2497
  ];
2528
2498
  else {
2529
- const b = Ae(ot), E = ye();
2499
+ const b = Ae(st), E = ye();
2530
2500
  let m = "";
2531
2501
  try {
2532
2502
  E?.cssRules && (m = Array.from(E.cssRules).map((S) => S.cssText).join(`
@@ -2536,9 +2506,9 @@ function rn(e, n, t, s, r) {
2536
2506
  }
2537
2507
  const v = Ae(`${b}
2538
2508
  ${m}`);
2539
- dt(e, v);
2509
+ ut(e, v);
2540
2510
  try {
2541
- e.adoptedStyleSheets = [He(), ye()];
2511
+ e.adoptedStyleSheets = [Re(), ye()];
2542
2512
  } catch {
2543
2513
  }
2544
2514
  }
@@ -2547,32 +2517,32 @@ ${m}`);
2547
2517
  let h = "";
2548
2518
  if (u && (h += u + `
2549
2519
  `), c && (h += c + `
2550
- `), h = Lt(h), h = Ae(h), ut(e)) {
2520
+ `), h = Tt(h), h = Ae(h), ft(e)) {
2551
2521
  let a = s;
2552
2522
  a || (a = new CSSStyleSheet());
2553
2523
  try {
2554
2524
  a.replaceSync(h);
2555
- const b = [He(), ye()];
2525
+ const b = [Re(), ye()];
2556
2526
  f && b.push(f), b.push(a), e.adoptedStyleSheets = b, r(a);
2557
2527
  return;
2558
2528
  } catch {
2559
2529
  }
2560
2530
  }
2561
- const d = Ae(ot), k = ye();
2562
- let N = "";
2531
+ const d = Ae(st), k = ye();
2532
+ let j = "";
2563
2533
  try {
2564
- k?.cssRules && (N = Array.from(k.cssRules).map((a) => a.cssText).join(`
2534
+ k?.cssRules && (j = Array.from(k.cssRules).map((a) => a.cssText).join(`
2565
2535
  `));
2566
2536
  } catch {
2567
- N = "";
2537
+ j = "";
2568
2538
  }
2569
- const _ = Ae(`${d}
2570
- ${N}
2539
+ const A = Ae(`${d}
2540
+ ${j}
2571
2541
  ${h}`);
2572
- dt(e, _);
2542
+ ut(e, A);
2573
2543
  try {
2574
2544
  const a = [
2575
- He(),
2545
+ Re(),
2576
2546
  ye()
2577
2547
  ];
2578
2548
  if (f && a.push(f), typeof CSSStyleSheet < "u")
@@ -2591,7 +2561,7 @@ ${h}`);
2591
2561
  }
2592
2562
  r(null);
2593
2563
  }
2594
- function sn(e, n) {
2564
+ function nn(e, n) {
2595
2565
  if (!n.render)
2596
2566
  throw new Error("Component must have a render function");
2597
2567
  return typeof window > "u" ? class {
@@ -2635,8 +2605,8 @@ function sn(e, n) {
2635
2605
  _templateError = null;
2636
2606
  constructor() {
2637
2607
  super(), this.attachShadow({ mode: "open" }), this._cfg = ge.get(e) || n, this._componentId = `${e}-${crypto.randomUUID()}`;
2638
- const t = this._initContext(n), s = (i, o, c) => {
2639
- Object.defineProperty(i, o, {
2608
+ const t = this._initContext(n), s = (o, i, c) => {
2609
+ Object.defineProperty(o, i, {
2640
2610
  value: c,
2641
2611
  writable: !1,
2642
2612
  enumerable: !1,
@@ -2654,26 +2624,26 @@ function sn(e, n) {
2654
2624
  ), s(t, "_componentId", this._componentId), s(
2655
2625
  t,
2656
2626
  "_triggerWatchers",
2657
- (i, o) => this._triggerWatchers(i, o)
2627
+ (o, i) => this._triggerWatchers(o, i)
2658
2628
  ), this.context = t, x(() => {
2659
2629
  s(t, "_host", this);
2660
2630
  }), s(
2661
2631
  this.context,
2662
2632
  "emit",
2663
- (i, o, c) => {
2633
+ (o, i, c) => {
2664
2634
  const f = {
2665
- detail: o,
2635
+ detail: i,
2666
2636
  bubbles: !0,
2667
2637
  composed: !0,
2668
2638
  ...c || {}
2669
- }, u = new CustomEvent(i, f);
2639
+ }, u = new CustomEvent(o, f);
2670
2640
  this.dispatchEvent(u);
2671
- const h = i.indexOf(":");
2641
+ const h = o.indexOf(":");
2672
2642
  if (h > 0) {
2673
- const p = i.substring(0, h), d = i.substring(h + 1), k = d.includes("-") ? `${p}:${d.split("-").map(
2674
- (N, _) => _ === 0 ? N : N.charAt(0).toUpperCase() + N.slice(1)
2643
+ const p = o.substring(0, h), d = o.substring(h + 1), k = d.includes("-") ? `${p}:${d.split("-").map(
2644
+ (j, A) => A === 0 ? j : j.charAt(0).toUpperCase() + j.slice(1)
2675
2645
  ).join("")}` : `${p}:${d.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
2676
- k !== i && x(() => {
2646
+ k !== o && x(() => {
2677
2647
  this.dispatchEvent(new CustomEvent(k, f));
2678
2648
  });
2679
2649
  }
@@ -2681,20 +2651,20 @@ function sn(e, n) {
2681
2651
  }
2682
2652
  );
2683
2653
  const r = ge.get(e) || n;
2684
- for (const i in r) {
2685
- const o = r[i];
2686
- typeof o == "function" && (this.context[i] = (...c) => o(...c, this.context));
2654
+ for (const o in r) {
2655
+ const i = r[o];
2656
+ typeof i == "function" && (this.context[o] = (...c) => i(...c, this.context));
2687
2657
  }
2688
2658
  if (r.props)
2689
- for (const i in r.props) {
2690
- let o = this[i];
2691
- Object.defineProperty(this, i, {
2659
+ for (const o in r.props) {
2660
+ let i = this[o];
2661
+ Object.defineProperty(this, o, {
2692
2662
  get() {
2693
- return o;
2663
+ return i;
2694
2664
  },
2695
2665
  set(c) {
2696
- const f = o;
2697
- o = c, this.context[i] = c, this._initializing || (this._applyProps(r), f !== c && this._requestRender());
2666
+ const f = i;
2667
+ i = c, this.context[o] = c, this._initializing || (this._applyProps(r), f !== c && this._requestRender());
2698
2668
  },
2699
2669
  enumerable: !0,
2700
2670
  configurable: !0
@@ -2705,7 +2675,7 @@ function sn(e, n) {
2705
2675
  connectedCallback() {
2706
2676
  this._runLogicWithinErrorBoundary(n, () => {
2707
2677
  const t = this.getRootNode();
2708
- t && t !== document && "host" in t && Xt(t, this), this._applyProps(n), this._requestRender(), $t(n, this.context, this._mounted, (s) => {
2678
+ t && t !== document && "host" in t && Jt(t, this), this._applyProps(n), this._requestRender(), Pt(n, this.context, this._mounted, (s) => {
2709
2679
  this._mounted = s;
2710
2680
  });
2711
2681
  });
@@ -2713,7 +2683,7 @@ function sn(e, n) {
2713
2683
  disconnectedCallback() {
2714
2684
  this._runLogicWithinErrorBoundary(n, () => {
2715
2685
  const t = this.getRootNode();
2716
- t && t !== document && "host" in t && Qt(t, this), xt(
2686
+ t && t !== document && "host" in t && Yt(t, this), $t(
2717
2687
  n,
2718
2688
  this.context,
2719
2689
  this._listeners,
@@ -2737,16 +2707,16 @@ function sn(e, n) {
2737
2707
  }
2738
2708
  attributeChangedCallback(t, s, r) {
2739
2709
  this._runLogicWithinErrorBoundary(n, () => {
2740
- this._applyProps(n), s !== r && this._requestRender(), Ht(n, t, s, r, this.context);
2710
+ this._applyProps(n), s !== r && this._requestRender(), xt(n, t, s, r, this.context);
2741
2711
  });
2742
2712
  }
2743
2713
  static get observedAttributes() {
2744
- return n.props ? Object.keys(n.props).map(Y) : [];
2714
+ return n.props ? Object.keys(n.props).map(J) : [];
2745
2715
  }
2746
2716
  // --- Render ---
2747
2717
  _render(t) {
2748
2718
  this._runLogicWithinErrorBoundary(t, () => {
2749
- en(
2719
+ Xt(
2750
2720
  this.shadowRoot,
2751
2721
  t,
2752
2722
  this.context,
@@ -2770,7 +2740,7 @@ function sn(e, n) {
2770
2740
  _requestRender() {
2771
2741
  this._runLogicWithinErrorBoundary(this._cfg, () => {
2772
2742
  _e(() => {
2773
- tn(
2743
+ Qt(
2774
2744
  () => this._render(this._cfg),
2775
2745
  this._lastRenderTime,
2776
2746
  this._renderCount,
@@ -2791,7 +2761,7 @@ function sn(e, n) {
2791
2761
  // --- Style ---
2792
2762
  _applyStyle(t, s) {
2793
2763
  this._runLogicWithinErrorBoundary(t, () => {
2794
- rn(
2764
+ tn(
2795
2765
  this.shadowRoot,
2796
2766
  this.context,
2797
2767
  s,
@@ -2810,7 +2780,7 @@ function sn(e, n) {
2810
2780
  } catch (r) {
2811
2781
  this._hasError = !0;
2812
2782
  try {
2813
- const i = this.tagName?.toLowerCase?.() || "<unknown>", o = this._componentId || "<unknown-id>", c = {};
2783
+ const o = this.tagName?.toLowerCase?.() || "<unknown>", i = this._componentId || "<unknown-id>", c = {};
2814
2784
  if (t && t.props)
2815
2785
  for (const f of Object.keys(t.props))
2816
2786
  try {
@@ -2819,30 +2789,30 @@ function sn(e, n) {
2819
2789
  } catch {
2820
2790
  c[f] = "[unreadable]";
2821
2791
  }
2822
- B(`Error rendering component <${i}> (id=${o}):`, r), B("Component props snapshot:", c), q(
2792
+ B(`Error rendering component <${o}> (id=${i}):`, r), B("Component props snapshot:", c), ee(
2823
2793
  "Common causes: accessing properties of null/undefined inside template interpolations; expensive or throwing expressions inside templates that evaluate eagerly. Fixes: use optional chaining (obj?.prop), guard with ternary, or use the runtime lazy overload: when(cond, () => html`...`)."
2824
2794
  );
2825
2795
  } catch {
2826
2796
  }
2827
2797
  if (t.onError && t.onError(r, this.context), this.tagName.toLowerCase() !== "cer-error-boundary") {
2828
- let i = this.parentElement;
2829
- if (!i) {
2830
- const o = this.getRootNode();
2831
- o instanceof ShadowRoot && (i = o.host.parentElement);
2798
+ let o = this.parentElement;
2799
+ if (!o) {
2800
+ const i = this.getRootNode();
2801
+ i instanceof ShadowRoot && (o = i.host.parentElement);
2832
2802
  }
2833
- for (; i; ) {
2834
- if (i.tagName.toLowerCase() === "cer-error-boundary") {
2835
- i._cerHandleChildError?.(
2803
+ for (; o; ) {
2804
+ if (o.tagName.toLowerCase() === "cer-error-boundary") {
2805
+ o._cerHandleChildError?.(
2836
2806
  r
2837
2807
  );
2838
2808
  break;
2839
2809
  }
2840
- let o = i.parentElement;
2841
- if (!o) {
2842
- const c = i.getRootNode();
2843
- c instanceof ShadowRoot && (o = c.host.parentElement);
2810
+ let i = o.parentElement;
2811
+ if (!i) {
2812
+ const c = o.getRootNode();
2813
+ c instanceof ShadowRoot && (i = c.host.parentElement);
2844
2814
  }
2845
- i = o;
2815
+ o = i;
2846
2816
  }
2847
2817
  }
2848
2818
  }
@@ -2850,9 +2820,9 @@ function sn(e, n) {
2850
2820
  // --- State, props, computed ---
2851
2821
  _initContext(t) {
2852
2822
  try {
2853
- let s = function(i, o = "") {
2854
- if (Array.isArray(i))
2855
- return new Proxy(i, {
2823
+ let s = function(o, i = "") {
2824
+ if (Array.isArray(o))
2825
+ return new Proxy(o, {
2856
2826
  get(c, f, u) {
2857
2827
  const h = Reflect.get(c, f, u);
2858
2828
  return typeof h == "function" && typeof f == "string" && [
@@ -2866,8 +2836,8 @@ function sn(e, n) {
2866
2836
  ].includes(f) ? function(...d) {
2867
2837
  const k = h.apply(c, d);
2868
2838
  if (!r._initializing) {
2869
- const N = o || "root";
2870
- r._triggerWatchers(N, c), _e(
2839
+ const j = i || "root";
2840
+ r._triggerWatchers(j, c), _e(
2871
2841
  () => r._render(t),
2872
2842
  r._componentId
2873
2843
  );
@@ -2877,29 +2847,29 @@ function sn(e, n) {
2877
2847
  },
2878
2848
  set(c, f, u) {
2879
2849
  if (c[String(f)] = u, !r._initializing) {
2880
- const h = o ? `${o}.${String(f)}` : String(f);
2850
+ const h = i ? `${i}.${String(f)}` : String(f);
2881
2851
  r._triggerWatchers(h, u), _e(() => r._render(t), r._componentId);
2882
2852
  }
2883
2853
  return !0;
2884
2854
  },
2885
2855
  deleteProperty(c, f) {
2886
2856
  if (delete c[String(f)], !r._initializing) {
2887
- const u = o ? `${o}.${String(f)}` : String(f);
2857
+ const u = i ? `${i}.${String(f)}` : String(f);
2888
2858
  r._triggerWatchers(u, void 0), _e(() => r._render(t), r._componentId);
2889
2859
  }
2890
2860
  return !0;
2891
2861
  }
2892
2862
  });
2893
- if (i && typeof i == "object") {
2894
- if (P(i))
2895
- return i;
2896
- for (const c in i) {
2897
- const f = o ? `${o}.${c}` : c;
2898
- i[c] = s(i[c], f);
2863
+ if (o && typeof o == "object") {
2864
+ if (P(o))
2865
+ return o;
2866
+ for (const c in o) {
2867
+ const f = i ? `${i}.${c}` : c;
2868
+ o[c] = s(o[c], f);
2899
2869
  }
2900
- return new Proxy(i, {
2870
+ return new Proxy(o, {
2901
2871
  set(c, f, u) {
2902
- const h = o ? `${o}.${String(f)}` : String(f);
2872
+ const h = i ? `${i}.${String(f)}` : String(f);
2903
2873
  return c[String(f)] = s(u, h), r._initializing || (r._triggerWatchers(
2904
2874
  h,
2905
2875
  c[String(f)]
@@ -2910,16 +2880,16 @@ function sn(e, n) {
2910
2880
  }
2911
2881
  });
2912
2882
  }
2913
- return i;
2883
+ return o;
2914
2884
  };
2915
2885
  const r = this;
2916
2886
  return s({
2917
2887
  // For functional components, state is managed by state() function calls
2918
2888
  // Include prop defaults in initial reactive context so prop updates trigger reactivity
2919
2889
  ...t.props ? Object.fromEntries(
2920
- Object.entries(t.props).map(([i, o]) => [
2921
- i,
2922
- o.default
2890
+ Object.entries(t.props).map(([o, i]) => [
2891
+ o,
2892
+ i.default
2923
2893
  ])
2924
2894
  ) : {}
2925
2895
  });
@@ -2929,7 +2899,7 @@ function sn(e, n) {
2929
2899
  }
2930
2900
  _initWatchers(t) {
2931
2901
  this._runLogicWithinErrorBoundary(t, () => {
2932
- Ot(
2902
+ Nt(
2933
2903
  this.context,
2934
2904
  this._watchers,
2935
2905
  {}
@@ -2938,34 +2908,34 @@ function sn(e, n) {
2938
2908
  });
2939
2909
  }
2940
2910
  _triggerWatchers(t, s) {
2941
- jt(this.context, this._watchers, t, s);
2911
+ Ot(this.context, this._watchers, t, s);
2942
2912
  }
2943
2913
  _applyProps(t) {
2944
2914
  this._runLogicWithinErrorBoundary(t, () => {
2945
- Pt(this, t, this.context);
2915
+ Mt(this, t, this.context);
2946
2916
  });
2947
2917
  }
2948
2918
  };
2949
2919
  }
2950
- function gn() {
2951
- return X();
2920
+ function yn() {
2921
+ return Y();
2952
2922
  }
2953
- let H = null;
2923
+ let R = null;
2954
2924
  function Ue(e) {
2955
- H = e;
2925
+ R = e;
2956
2926
  }
2957
2927
  function Be() {
2958
- H = null;
2928
+ R = null;
2959
2929
  }
2960
- function bn() {
2961
- return H;
2930
+ function mn() {
2931
+ return R;
2962
2932
  }
2963
- function vn() {
2964
- if (!H)
2933
+ function gn() {
2934
+ if (!R)
2965
2935
  throw new Error("useEmit must be called during component render");
2966
- if (X())
2936
+ if (Y())
2967
2937
  return () => !1;
2968
- const e = H.emit;
2938
+ const e = R.emit;
2969
2939
  if (typeof e != "function")
2970
2940
  throw new Error(
2971
2941
  "useEmit requires an emit function on the component context"
@@ -2981,38 +2951,38 @@ function he(e) {
2981
2951
  configurable: !1
2982
2952
  });
2983
2953
  }
2984
- function En(e) {
2985
- if (!H)
2954
+ function bn(e) {
2955
+ if (!R)
2986
2956
  throw new Error("useOnConnected must be called during component render");
2987
- if (X()) return;
2988
- he(H);
2989
- const n = H._hookCallbacks;
2957
+ if (Y()) return;
2958
+ he(R);
2959
+ const n = R._hookCallbacks;
2990
2960
  n.onConnected || (n.onConnected = []), n.onConnected.push(e);
2991
2961
  }
2992
- function Sn(e) {
2993
- if (!H)
2962
+ function vn(e) {
2963
+ if (!R)
2994
2964
  throw new Error("useOnDisconnected must be called during component render");
2995
- if (X()) return;
2996
- he(H);
2997
- const n = H._hookCallbacks;
2965
+ if (Y()) return;
2966
+ he(R);
2967
+ const n = R._hookCallbacks;
2998
2968
  n.onDisconnected || (n.onDisconnected = []), n.onDisconnected.push(e);
2999
2969
  }
3000
- function Cn(e) {
3001
- if (!H)
2970
+ function En(e) {
2971
+ if (!R)
3002
2972
  throw new Error(
3003
2973
  "useOnAttributeChanged must be called during component render"
3004
2974
  );
3005
- if (X()) return;
3006
- he(H);
3007
- const n = H._hookCallbacks;
2975
+ if (Y()) return;
2976
+ he(R);
2977
+ const n = R._hookCallbacks;
3008
2978
  n.onAttributeChanged || (n.onAttributeChanged = []), n.onAttributeChanged.push(e);
3009
2979
  }
3010
- function kn(e) {
3011
- if (!H)
2980
+ function Sn(e) {
2981
+ if (!R)
3012
2982
  throw new Error("useOnError must be called during component render");
3013
- if (X()) return;
3014
- he(H);
3015
- const n = H._hookCallbacks;
2983
+ if (Y()) return;
2984
+ he(R);
2985
+ const n = R._hookCallbacks;
3016
2986
  n.onError || (n.onError = []), n.onError.push((t) => {
3017
2987
  try {
3018
2988
  t instanceof Error ? e(t) : e(new Error(String(t)));
@@ -3020,41 +2990,41 @@ function kn(e) {
3020
2990
  }
3021
2991
  });
3022
2992
  }
3023
- function on(e) {
3024
- if (!H)
2993
+ function rn(e) {
2994
+ if (!R)
3025
2995
  throw new Error("useProps must be called during component render");
3026
- he(H);
3027
- const n = H._hookCallbacks;
2996
+ he(R);
2997
+ const n = R._hookCallbacks;
3028
2998
  n.props = {
3029
2999
  ...n.props || {},
3030
3000
  ...e
3031
3001
  };
3032
- const t = H;
3002
+ const t = R;
3033
3003
  try {
3034
3004
  const r = Object.keys(e || {});
3035
- for (const i of r) {
3036
- if (typeof i != "string" || i.startsWith("_")) continue;
3037
- const o = Object.getOwnPropertyDescriptor(t, i);
3038
- if (!(o && !o.configurable))
3005
+ for (const o of r) {
3006
+ if (typeof o != "string" || o.startsWith("_")) continue;
3007
+ const i = Object.getOwnPropertyDescriptor(t, o);
3008
+ if (!(i && !i.configurable))
3039
3009
  try {
3040
- let f = Object.prototype.hasOwnProperty.call(t, i) ? t[i] : void 0;
3041
- Object.defineProperty(t, i, {
3010
+ let f = Object.prototype.hasOwnProperty.call(t, o) ? t[o] : void 0;
3011
+ Object.defineProperty(t, o, {
3042
3012
  configurable: !0,
3043
3013
  enumerable: !0,
3044
3014
  get() {
3045
3015
  try {
3046
3016
  const u = t && t._host;
3047
3017
  if (u) {
3048
- const h = Y(i), p = u.getAttribute(h);
3018
+ const h = J(o), p = u.getAttribute(h);
3049
3019
  if (p !== null) {
3050
- const d = typeof e[i];
3020
+ const d = typeof e[o];
3051
3021
  return d === "boolean" ? p === "" || p === "true" : d === "number" ? Number(p) : p;
3052
3022
  }
3053
- if (typeof u[i] < "u") {
3054
- const d = u[i];
3023
+ if (typeof u[o] < "u") {
3024
+ const d = u[o];
3055
3025
  if (P(d) || d && typeof d == "object" && "value" in d && !(d instanceof Node))
3056
3026
  return d.value;
3057
- const k = typeof e[i];
3027
+ const k = typeof e[o];
3058
3028
  if (!(k === "string" && d && typeof d == "object"))
3059
3029
  return k === "boolean" && typeof d == "string" ? d === "" || d === "true" : d;
3060
3030
  }
@@ -3073,31 +3043,31 @@ function on(e) {
3073
3043
  } catch {
3074
3044
  }
3075
3045
  return new Proxy({}, {
3076
- get(r, i) {
3077
- if (typeof i != "string") return;
3078
- const o = e[i];
3046
+ get(r, o) {
3047
+ if (typeof o != "string") return;
3048
+ const i = e[o];
3079
3049
  try {
3080
3050
  const f = t && t._host;
3081
3051
  if (f) {
3082
3052
  if (f instanceof HTMLElement || typeof f.getAttribute == "function" && typeof f.hasAttribute == "function") {
3083
- const h = i.replace(/([A-Z])/g, "-$1").toLowerCase(), p = f.getAttribute(h);
3053
+ const h = o.replace(/([A-Z])/g, "-$1").toLowerCase(), p = f.getAttribute(h);
3084
3054
  if (p !== null)
3085
- return typeof o == "boolean" ? p === "" || p === "true" : typeof o == "number" ? Number(p) : p;
3055
+ return typeof i == "boolean" ? p === "" || p === "true" : typeof i == "number" ? Number(p) : p;
3086
3056
  }
3087
- const u = f[i];
3057
+ const u = f[o];
3088
3058
  if (typeof u < "u" && u !== "") {
3089
3059
  const h = u && typeof u == "object" && "value" in u && !(u instanceof Node);
3090
- if (!(typeof o == "string" && u && typeof u == "object" && !h && !P(u)))
3091
- return typeof o == "boolean" && o === !1 && u === "" ? o : P(u) || h ? u.value : typeof o == "boolean" && typeof u == "string" ? u === "true" || u !== "" && u !== "false" : typeof o == "number" && typeof u == "string" && !Number.isNaN(Number(u)) ? Number(u) : u;
3060
+ if (!(typeof i == "string" && u && typeof u == "object" && !h && !P(u)))
3061
+ return typeof i == "boolean" && i === !1 && u === "" ? i : P(u) || h ? 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;
3092
3062
  }
3093
3063
  }
3094
3064
  } catch {
3095
3065
  }
3096
- const c = t[i];
3097
- return typeof o == "boolean" && c === "" ? o === !1 ? o : !0 : P(c) || c && typeof c == "object" && "value" in c && !(c instanceof Node) ? c.value : c != null && c !== "" ? typeof o == "boolean" && typeof c == "string" ? c === "true" : typeof o == "number" && typeof c == "string" && !Number.isNaN(Number(c)) ? Number(c) : c : o;
3066
+ const c = t[o];
3067
+ return typeof i == "boolean" && c === "" ? i === !1 ? i : !0 : P(c) || c && typeof c == "object" && "value" in c && !(c instanceof Node) ? c.value : c != null && c !== "" ? typeof i == "boolean" && typeof c == "string" ? c === "true" : typeof i == "number" && typeof c == "string" && !Number.isNaN(Number(c)) ? Number(c) : c : i;
3098
3068
  },
3099
- has(r, i) {
3100
- return typeof i == "string" && (i in t || i in e);
3069
+ has(r, o) {
3070
+ return typeof o == "string" && (o in t || o in e);
3101
3071
  },
3102
3072
  ownKeys() {
3103
3073
  return Array.from(
@@ -3109,21 +3079,21 @@ function on(e) {
3109
3079
  }
3110
3080
  });
3111
3081
  }
3112
- function _n(e) {
3113
- if (!H)
3082
+ function Cn(e) {
3083
+ if (!R)
3114
3084
  throw new Error("useStyle must be called during component render");
3115
- if (!X()) {
3116
- he(H);
3085
+ if (!Y()) {
3086
+ he(R);
3117
3087
  try {
3118
3088
  const n = e();
3119
- Object.defineProperty(H, "_computedStyle", {
3089
+ Object.defineProperty(R, "_computedStyle", {
3120
3090
  value: n,
3121
3091
  writable: !0,
3122
3092
  enumerable: !1,
3123
3093
  configurable: !0
3124
3094
  });
3125
3095
  } catch (n) {
3126
- q("Error in useStyle callback:", n), Object.defineProperty(H, "_computedStyle", {
3096
+ ee("Error in useStyle callback:", n), Object.defineProperty(R, "_computedStyle", {
3127
3097
  value: "",
3128
3098
  writable: !0,
3129
3099
  enumerable: !1,
@@ -3133,11 +3103,11 @@ function _n(e) {
3133
3103
  }
3134
3104
  }
3135
3105
  const je = /* @__PURE__ */ Symbol.for("@cer/provides");
3136
- function An(e, n) {
3137
- if (!H)
3106
+ function kn(e, n) {
3107
+ if (!R)
3138
3108
  throw new Error("provide must be called during component render");
3139
- if (X()) return;
3140
- const t = H;
3109
+ if (Y()) return;
3110
+ const t = R;
3141
3111
  t[je] || Object.defineProperty(t, je, {
3142
3112
  value: /* @__PURE__ */ new Map(),
3143
3113
  writable: !1,
@@ -3145,28 +3115,28 @@ function An(e, n) {
3145
3115
  configurable: !0
3146
3116
  }), t[je].set(e, n);
3147
3117
  }
3148
- function wn(e, n) {
3149
- if (!H)
3118
+ function _n(e, n) {
3119
+ if (!R)
3150
3120
  throw new Error("inject must be called during component render");
3151
- if (X()) return n;
3121
+ if (Y()) return n;
3152
3122
  try {
3153
- const t = H._host;
3123
+ const t = R._host;
3154
3124
  if (t) {
3155
3125
  let s = t.parentNode;
3156
3126
  for (s || (s = t.getRootNode()); s; )
3157
3127
  if (s instanceof ShadowRoot) {
3158
- const r = s.host, i = r.context;
3159
- if (i) {
3160
- const c = i[je];
3128
+ const r = s.host, o = r.context;
3129
+ if (o) {
3130
+ const c = o[je];
3161
3131
  if (c?.has(e))
3162
3132
  return c.get(e);
3163
3133
  }
3164
3134
  if (s = r.parentNode ?? r.getRootNode(), s === document || s === r) break;
3165
3135
  } else {
3166
3136
  if (s instanceof Element) {
3167
- const o = s.context;
3168
- if (o) {
3169
- const c = o[je];
3137
+ const i = s.context;
3138
+ if (i) {
3139
+ const c = i[je];
3170
3140
  if (c?.has(e))
3171
3141
  return c.get(e);
3172
3142
  }
@@ -3179,14 +3149,14 @@ function wn(e, n) {
3179
3149
  }
3180
3150
  return n;
3181
3151
  }
3182
- function Tn(e) {
3152
+ function An(e) {
3183
3153
  return (n) => {
3184
- const t = n ?? H;
3154
+ const t = n ?? R;
3185
3155
  if (!t)
3186
3156
  throw new Error(
3187
3157
  "createComposable: no component context available. Pass a context explicitly or call inside a render function."
3188
3158
  );
3189
- const s = H;
3159
+ const s = R;
3190
3160
  Ue(t);
3191
3161
  try {
3192
3162
  return e();
@@ -3195,14 +3165,14 @@ function Tn(e) {
3195
3165
  }
3196
3166
  };
3197
3167
  }
3198
- function Ln(e) {
3199
- if (!H)
3168
+ function wn(e) {
3169
+ if (!R)
3200
3170
  throw new Error("useExpose must be called during component render");
3201
- if (X()) return;
3202
- he(H);
3203
- const n = H._hookCallbacks;
3171
+ if (Y()) return;
3172
+ he(R);
3173
+ const n = R._hookCallbacks;
3204
3174
  n.expose = { ...n.expose ?? {}, ...e };
3205
- const t = H._host;
3175
+ const t = R._host;
3206
3176
  if (t)
3207
3177
  for (const [s, r] of Object.entries(e))
3208
3178
  try {
@@ -3210,12 +3180,12 @@ function Ln(e) {
3210
3180
  } catch {
3211
3181
  }
3212
3182
  }
3213
- function Nn() {
3214
- if (!H)
3183
+ function Tn() {
3184
+ if (!R)
3215
3185
  throw new Error("useSlots must be called during component render");
3216
- if (X())
3186
+ if (Y())
3217
3187
  return { has: () => !1, getNodes: () => [], names: () => [] };
3218
- const e = H._host;
3188
+ const e = R._host;
3219
3189
  return {
3220
3190
  /**
3221
3191
  * Returns true if the named slot (or the default slot when name is
@@ -3249,86 +3219,86 @@ function Nn() {
3249
3219
  }
3250
3220
  };
3251
3221
  }
3252
- function On(...e) {
3253
- if (!H)
3222
+ function Ln(...e) {
3223
+ if (!R)
3254
3224
  throw new Error("defineModel must be called during component render");
3255
- const n = e.length === 2 ? e[0] : "modelValue", t = e.length === 2 ? e[1] : e.length === 1 ? e[0] : void 0, s = on({
3225
+ const n = e.length === 2 ? e[0] : "modelValue", t = e.length === 2 ? e[1] : e.length === 1 ? e[0] : void 0, s = rn({
3256
3226
  [n]: t
3257
- }), i = X() ? null : (() => {
3258
- const c = H.emit;
3227
+ }), o = Y() ? null : (() => {
3228
+ const c = R.emit;
3259
3229
  return typeof c != "function" ? null : c;
3260
- })(), o = {
3230
+ })(), i = {
3261
3231
  get value() {
3262
3232
  return s[n];
3263
3233
  },
3264
3234
  set value(c) {
3265
- i && i(`update:${n}`, c);
3235
+ o && o(`update:${n}`, c);
3266
3236
  }
3267
3237
  };
3268
3238
  try {
3269
- Object.defineProperty(o, /* @__PURE__ */ Symbol.for("@cer/ReactiveState"), {
3239
+ Object.defineProperty(i, /* @__PURE__ */ Symbol.for("@cer/ReactiveState"), {
3270
3240
  value: !0,
3271
3241
  enumerable: !1,
3272
3242
  configurable: !1
3273
3243
  });
3274
3244
  } catch {
3275
3245
  }
3276
- return o;
3246
+ return i;
3277
3247
  }
3278
- function jn(e, n) {
3279
- Nt();
3280
- let t = Y(e);
3248
+ function Nn(e, n) {
3249
+ Lt();
3250
+ let t = J(e);
3281
3251
  t.includes("-") || (t = `cer-${t}`);
3282
3252
  const s = {}, r = {
3283
3253
  // Props are accessed via useProps() hook
3284
3254
  props: {},
3285
3255
  // Add lifecycle hooks from the stored functions
3286
- onConnected: (i) => {
3256
+ onConnected: (o) => {
3287
3257
  if (s.onConnected)
3288
3258
  try {
3289
- s.onConnected(i);
3259
+ s.onConnected(o);
3290
3260
  } catch {
3291
3261
  }
3292
3262
  },
3293
- onDisconnected: (i) => {
3263
+ onDisconnected: (o) => {
3294
3264
  if (s.onDisconnected)
3295
3265
  try {
3296
- s.onDisconnected(i);
3266
+ s.onDisconnected(o);
3297
3267
  } catch {
3298
3268
  }
3299
3269
  },
3300
- onAttributeChanged: (i, o, c, f) => {
3270
+ onAttributeChanged: (o, i, c, f) => {
3301
3271
  if (s.onAttributeChanged)
3302
3272
  try {
3303
- s.onAttributeChanged(i, o, c, f);
3273
+ s.onAttributeChanged(o, i, c, f);
3304
3274
  } catch {
3305
3275
  }
3306
3276
  },
3307
- onError: (i, o) => {
3308
- if (s.onError && i)
3277
+ onError: (o, i) => {
3278
+ if (s.onError && o)
3309
3279
  try {
3310
- s.onError(i, o);
3280
+ s.onError(o, i);
3311
3281
  } catch {
3312
3282
  }
3313
3283
  },
3314
- render: (i) => {
3315
- const o = i, c = o._componentId || `${t}-${crypto.randomUUID()}`;
3316
- rt.setCurrentComponent(c, () => {
3317
- i.requestRender && i.requestRender();
3284
+ render: (o) => {
3285
+ const i = o, c = i._componentId || `${t}-${crypto.randomUUID()}`;
3286
+ nt.setCurrentComponent(c, () => {
3287
+ o.requestRender && o.requestRender();
3318
3288
  });
3319
3289
  try {
3320
- Object.defineProperty(i, "_hookCallbacks", {
3290
+ Object.defineProperty(o, "_hookCallbacks", {
3321
3291
  value: {},
3322
3292
  writable: !0,
3323
3293
  enumerable: !1,
3324
3294
  configurable: !0
3325
- }), Ue(i);
3295
+ }), Ue(o);
3326
3296
  let f;
3327
3297
  try {
3328
3298
  f = n();
3329
3299
  } catch (u) {
3330
3300
  try {
3331
- const p = o._hookCallbacks?.onError;
3301
+ const p = i._hookCallbacks?.onError;
3332
3302
  if (Array.isArray(p))
3333
3303
  for (const d of p)
3334
3304
  try {
@@ -3343,7 +3313,7 @@ function jn(e, n) {
3343
3313
  } catch {
3344
3314
  }
3345
3315
  try {
3346
- const h = o._host;
3316
+ const h = i._host;
3347
3317
  if (h?.parentElement) {
3348
3318
  let p = h.parentElement;
3349
3319
  for (; p; ) {
@@ -3365,8 +3335,8 @@ function jn(e, n) {
3365
3335
  }
3366
3336
  throw u;
3367
3337
  }
3368
- if (o._hookCallbacks) {
3369
- const u = o._hookCallbacks;
3338
+ if (i._hookCallbacks) {
3339
+ const u = i._hookCallbacks;
3370
3340
  if (u.onConnected) {
3371
3341
  const h = u.onConnected;
3372
3342
  s.onConnected = (p) => {
@@ -3389,10 +3359,10 @@ function jn(e, n) {
3389
3359
  }
3390
3360
  if (u.onAttributeChanged) {
3391
3361
  const h = u.onAttributeChanged;
3392
- s.onAttributeChanged = (p, d, k, N) => {
3393
- for (const _ of h)
3362
+ s.onAttributeChanged = (p, d, k, j) => {
3363
+ for (const A of h)
3394
3364
  try {
3395
- _(p, d, k, N);
3365
+ A(p, d, k, j);
3396
3366
  } catch {
3397
3367
  }
3398
3368
  };
@@ -3419,49 +3389,49 @@ function jn(e, n) {
3419
3389
  }
3420
3390
  return f;
3421
3391
  } finally {
3422
- Be(), rt.clearCurrentComponent();
3392
+ Be(), nt.clearCurrentComponent();
3423
3393
  }
3424
3394
  }
3425
3395
  };
3426
3396
  if (ge.set(t, r), typeof window < "u") {
3427
3397
  try {
3428
- const i = {
3398
+ const o = {
3429
3399
  _hookCallbacks: {},
3430
3400
  requestRender: () => {
3431
3401
  },
3432
3402
  emit: () => !0
3433
3403
  };
3434
- Ue(i), _t();
3404
+ Ue(o), kt();
3435
3405
  try {
3436
3406
  n();
3437
- } catch (o) {
3407
+ } catch (i) {
3438
3408
  try {
3439
- const f = i?._hookCallbacks?.onError;
3409
+ const f = o?._hookCallbacks?.onError;
3440
3410
  if (Array.isArray(f))
3441
3411
  for (const u of f)
3442
3412
  try {
3443
- u(o);
3413
+ u(i);
3444
3414
  } catch {
3445
3415
  }
3446
3416
  else if (typeof f == "function")
3447
3417
  try {
3448
- f(o);
3418
+ f(i);
3449
3419
  } catch {
3450
3420
  }
3451
3421
  B(
3452
3422
  `Error during component discovery render <${t}>:`,
3453
- o
3454
- ), q(
3423
+ i
3424
+ ), ee(
3455
3425
  "Error occurred during initial component discovery render. Consider guarding expensive expressions or using lazy factories for directives like when()."
3456
3426
  );
3457
3427
  } catch {
3458
3428
  }
3459
- throw nt(), Be(), o;
3429
+ throw tt(), Be(), i;
3460
3430
  }
3461
- if (nt(), Be(), i._hookCallbacks?.props) {
3462
- const o = i._hookCallbacks.props;
3431
+ if (tt(), Be(), o._hookCallbacks?.props) {
3432
+ const i = o._hookCallbacks.props;
3463
3433
  r.props = Object.fromEntries(
3464
- Object.entries(o).map(([c, f]) => [
3434
+ Object.entries(i).map(([c, f]) => [
3465
3435
  c,
3466
3436
  { type: typeof f == "boolean" ? Boolean : typeof f == "number" ? Number : typeof f == "string" ? String : Function, default: f }
3467
3437
  ])
@@ -3471,7 +3441,7 @@ function jn(e, n) {
3471
3441
  }
3472
3442
  customElements.get(t) || customElements.define(
3473
3443
  t,
3474
- sn(t, r)
3444
+ nn(t, r)
3475
3445
  );
3476
3446
  }
3477
3447
  }
@@ -3485,10 +3455,10 @@ function Me(e) {
3485
3455
  function ue(e) {
3486
3456
  return typeof e == "object" && e !== null && "tag" in e && !Me(e);
3487
3457
  }
3488
- function cn(e, n) {
3458
+ function sn(e, n) {
3489
3459
  return e.key != null ? e : { ...e, key: n };
3490
3460
  }
3491
- class an {
3461
+ class on {
3492
3462
  map = /* @__PURE__ */ new Map();
3493
3463
  maxSize;
3494
3464
  accessOrder = /* @__PURE__ */ new Map();
@@ -3521,7 +3491,7 @@ class an {
3521
3491
  return this.map.size;
3522
3492
  }
3523
3493
  }
3524
- const ln = () => {
3494
+ const cn = () => {
3525
3495
  if (typeof navigator < "u" && "deviceMemory" in navigator) {
3526
3496
  const n = navigator.deviceMemory;
3527
3497
  if (n)
@@ -3534,24 +3504,24 @@ const ln = () => {
3534
3504
  return !1;
3535
3505
  }
3536
3506
  })() ? 100 : 500;
3537
- }, Ge = new an(
3538
- ln()
3507
+ }, qe = new on(
3508
+ cn()
3539
3509
  );
3540
- function fn(e, n) {
3510
+ function an(e, n) {
3541
3511
  if (e == null) {
3542
- q(
3512
+ ee(
3543
3513
  `⚠️ Event handler for '@${n}' is ${e}. This will prevent the event from working. Use a function reference instead: @${n}="\${functionName}"`
3544
3514
  );
3545
3515
  return;
3546
3516
  }
3547
- typeof e != "function" && q(
3517
+ typeof e != "function" && ee(
3548
3518
  `🚨 Potential infinite loop detected! Event handler for '@${n}' appears to be the result of a function call (${typeof e}) instead of a function reference. Change @${n}="\${functionName()}" to @${n}="\${functionName}" to pass the function reference instead of calling it immediately.`
3549
- ), e === void 0 && typeof e != "function" && q(
3519
+ ), e === void 0 && typeof e != "function" && ee(
3550
3520
  `💡 Tip: If your event handler function returns undefined, make sure you're passing the function reference, not calling it. Use @${n}="\${fn}" not @${n}="\${fn()}"`
3551
3521
  );
3552
3522
  }
3553
- function un(e, n = [], t = {}) {
3554
- const s = {}, r = {}, i = {}, o = [], c = /([:@#]?)([a-zA-Z0-9-:.]+)(?:\s*=\s*("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'|([^\s>]+)))?/g;
3523
+ function ln(e, n = [], t = {}) {
3524
+ const s = {}, r = {}, o = {}, i = [], c = /([:@#]?)([a-zA-Z0-9-:.]+)(?:\s*=\s*("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'|([^\s>]+)))?/g;
3555
3525
  let f;
3556
3526
  for (; f = c.exec(e); ) {
3557
3527
  const u = f[1], h = f[2];
@@ -3562,12 +3532,12 @@ function un(e, n = [], t = {}) {
3562
3532
  break;
3563
3533
  }
3564
3534
  p.length >= 2 && (p[0] === '"' && p[p.length - 1] === '"' || p[0] === "'" && p[p.length - 1] === "'") && (p = p.slice(1, -1));
3565
- const d = !/=/.test(f[0]), k = p.match(/^{{(\d+)}}$/), N = !k && /{{(\d+)}}/.test(p);
3566
- let _ = d ? !0 : k ? n[Number(k[1])] ?? null : N ? p.replace(
3535
+ const d = !/=/.test(f[0]), k = p.match(/^{{(\d+)}}$/), j = !k && /{{(\d+)}}/.test(p);
3536
+ let A = d ? !0 : k ? n[Number(k[1])] ?? null : j ? p.replace(
3567
3537
  /{{(\d+)}}/g,
3568
3538
  (b, E) => String(n[Number(E)] ?? "")
3569
3539
  ) : p;
3570
- !k && !N && (_ === "true" ? _ = !0 : _ === "false" ? _ = !1 : _ === "null" ? _ = null : isNaN(Number(_)) || (_ = Number(_)));
3540
+ !k && !j && (A === "true" ? A = !0 : A === "false" ? A = !1 : A === "null" ? A = null : isNaN(Number(A)) || (A = Number(A)));
3571
3541
  const a = [
3572
3542
  "model",
3573
3543
  "bind",
@@ -3581,30 +3551,30 @@ function un(e, n = [], t = {}) {
3581
3551
  const [b, E] = h.split(":"), [m, ...v] = b.split(".");
3582
3552
  if (a.includes(m)) {
3583
3553
  const S = [...v], C = m === "model" && E ? `model:${E}` : m;
3584
- i[C] = {
3585
- value: _,
3554
+ o[C] = {
3555
+ value: A,
3586
3556
  modifiers: S,
3587
3557
  arg: E
3588
3558
  };
3589
3559
  } else if (h === "disabled") {
3590
- let S = _;
3560
+ let S = A;
3591
3561
  S && P(S) && (S = S.value);
3592
3562
  const C = typeof S;
3593
3563
  if (S === "" || C === "boolean" || C === "string" && (S === "true" || S === "false") || S == null || C === "number")
3594
3564
  s[h] = S;
3595
3565
  else {
3596
- let A = _;
3597
- A && P(A) && (A = A.value), r[h] = A;
3566
+ let _ = A;
3567
+ _ && P(_) && (_ = _.value), r[h] = _;
3598
3568
  }
3599
- o.push(h);
3569
+ i.push(h);
3600
3570
  } else {
3601
- let S = _;
3602
- S && P(S) && (S = S.value), r[h] = S, o.push(h);
3571
+ let S = A;
3572
+ S && P(S) && (S = S.value), r[h] = S, i.push(h);
3603
3573
  }
3604
3574
  } else if (u === "@") {
3605
3575
  const [b, ...E] = h.split("."), m = E;
3606
- fn(_, b);
3607
- const v = typeof _ == "function" ? _ : typeof t[_] == "function" ? t[_] : void 0;
3576
+ an(A, b);
3577
+ const v = typeof A == "function" ? A : typeof t[A] == "function" ? t[A] : void 0;
3608
3578
  if (v) {
3609
3579
  const S = (T) => {
3610
3580
  if (m.includes("prevent") && T.preventDefault(), m.includes("stop") && T.stopPropagation(), !(m.includes("self") && T.target !== T.currentTarget))
@@ -3615,34 +3585,34 @@ function un(e, n = [], t = {}) {
3615
3585
  }, C = "on" + b.charAt(0).toUpperCase() + b.slice(1);
3616
3586
  s[C] = S;
3617
3587
  }
3618
- } else h === "ref" ? s.ref = _ : r[h] = _;
3588
+ } else h === "ref" ? s.ref = A : r[h] = A;
3619
3589
  }
3620
- return { props: s, attrs: r, directives: i, bound: o };
3590
+ return { props: s, attrs: r, directives: o, bound: i };
3621
3591
  }
3622
- function Xe(e) {
3592
+ function Ye(e) {
3623
3593
  if (!ue(e) || Me(e))
3624
3594
  return e;
3625
3595
  const n = e.props?.directives;
3626
3596
  if (n && n.when) {
3627
3597
  const t = n.when.value, s = P(t) ? t.value : t, r = { ...n };
3628
3598
  delete r.when;
3629
- const i = { ...e.props };
3630
- Object.keys(r).length > 0 ? i.directives = r : delete i.directives;
3631
- const o = {
3599
+ const o = { ...e.props };
3600
+ Object.keys(r).length > 0 ? o.directives = r : delete o.directives;
3601
+ const i = {
3632
3602
  ...e,
3633
- props: i
3603
+ props: o
3634
3604
  };
3635
- return Array.isArray(o.children) && (o.children = o.children.map(
3636
- (f) => typeof f == "object" && f !== null ? Xe(f) : f
3605
+ return Array.isArray(i.children) && (i.children = i.children.map(
3606
+ (f) => typeof f == "object" && f !== null ? Ye(f) : f
3637
3607
  )), {
3638
3608
  tag: "#anchor",
3639
3609
  key: e.key != null ? `when-${e.key}` : `when-${e.tag}`,
3640
- children: s ? [o] : []
3610
+ children: s ? [i] : []
3641
3611
  };
3642
3612
  }
3643
3613
  if (Array.isArray(e.children)) {
3644
3614
  const t = e.children.map(
3645
- (s) => typeof s == "object" && s !== null ? Xe(s) : s
3615
+ (s) => typeof s == "object" && s !== null ? Ye(s) : s
3646
3616
  );
3647
3617
  return {
3648
3618
  ...e,
@@ -3651,24 +3621,24 @@ function Xe(e) {
3651
3621
  }
3652
3622
  return e;
3653
3623
  }
3654
- function dn(e, n, t) {
3655
- const s = Oe.length > 0 ? Oe[Oe.length - 1] : void 0, r = t ?? s, i = !t && n.length === 0, o = i ? e.join("<!--TEMPLATE_DELIM-->") : null;
3656
- if (i && o) {
3657
- const l = Ge.get(o);
3624
+ function fn(e, n, t) {
3625
+ const s = Oe.length > 0 ? Oe[Oe.length - 1] : void 0, r = t ?? s, o = !t && n.length === 0, i = o ? e.join("<!--TEMPLATE_DELIM-->") : null;
3626
+ if (o && i) {
3627
+ const l = qe.get(i);
3658
3628
  if (l) return l;
3659
3629
  }
3660
3630
  function c(l, y) {
3661
3631
  return ce("#text", {}, l, y);
3662
3632
  }
3663
3633
  function f(l, y, w = !1) {
3664
- let L = typeof l == "string" ? At(l) : l;
3634
+ let L = typeof l == "string" ? _t(l) : l;
3665
3635
  return !w && typeof L == "string" && /[\r\n]/.test(L) && (L = L.replace(/\s+/g, " ")), ce("#text", {}, L, y);
3666
3636
  }
3667
3637
  let u = "";
3668
3638
  for (let l = 0; l < e.length; l++)
3669
3639
  u += e[l], l < n.length && (u += `{{${l}}}`);
3670
3640
  const h = /<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g, p = [];
3671
- let d, k = [], N = null, _ = {}, a, b = 0;
3641
+ let d, k = [], j = null, A = {}, a, b = 0;
3672
3642
  const E = [], m = /* @__PURE__ */ new Set([
3673
3643
  "pre",
3674
3644
  "code",
@@ -3677,7 +3647,7 @@ function dn(e, n, t) {
3677
3647
  "style"
3678
3648
  ]);
3679
3649
  function v() {
3680
- if (N && m.has(N.toLowerCase()))
3650
+ if (j && m.has(j.toLowerCase()))
3681
3651
  return !0;
3682
3652
  for (const l of p)
3683
3653
  if (m.has(l.tag.toLowerCase()))
@@ -3686,56 +3656,56 @@ function dn(e, n, t) {
3686
3656
  }
3687
3657
  function S(l) {
3688
3658
  if (!l || typeof l != "object" || Me(l)) return;
3689
- const y = l, w = _;
3659
+ const y = l, w = A;
3690
3660
  if (y.props || y.attrs) {
3691
3661
  const L = y;
3692
- L.props && (w.props || (w.props = {}), Object.assign(w.props, L.props)), L.attrs && (w.attrs || (w.attrs = {}), Object.keys(L.attrs).forEach((O) => {
3693
- if (O === "style" && w.attrs.style) {
3662
+ L.props && (w.props || (w.props = {}), Object.assign(w.props, L.props)), L.attrs && (w.attrs || (w.attrs = {}), Object.keys(L.attrs).forEach((N) => {
3663
+ if (N === "style" && w.attrs.style) {
3694
3664
  const M = String(w.attrs.style).replace(/;?\s*$/, ""), D = String(L.attrs.style).replace(/^;?\s*/, "");
3695
3665
  w.attrs.style = M + "; " + D;
3696
- } else if (O === "class" && w.attrs.class) {
3697
- const M = String(w.attrs.class).trim().split(/\s+/).filter(Boolean), D = String(L.attrs.class).trim().split(/\s+/).filter(Boolean), j = [
3666
+ } else if (N === "class" && w.attrs.class) {
3667
+ const M = String(w.attrs.class).trim().split(/\s+/).filter(Boolean), D = String(L.attrs.class).trim().split(/\s+/).filter(Boolean), O = [
3698
3668
  .../* @__PURE__ */ new Set([...M, ...D])
3699
3669
  ];
3700
- w.attrs.class = j.join(" ");
3670
+ w.attrs.class = O.join(" ");
3701
3671
  } else
3702
- w.attrs[O] = L.attrs[O];
3672
+ w.attrs[N] = L.attrs[N];
3703
3673
  }));
3704
3674
  } else
3705
3675
  w.props || (w.props = {}), Object.assign(w.props, y);
3706
3676
  }
3707
3677
  function C(l, y) {
3708
- const w = N ? k : E;
3678
+ const w = j ? k : E;
3709
3679
  if (Me(l)) {
3710
- const L = l.key ?? y, O = l.children;
3680
+ const L = l.key ?? y, N = l.children;
3711
3681
  w.push({
3712
3682
  ...l,
3713
3683
  key: L,
3714
- children: O
3684
+ children: N
3715
3685
  });
3716
3686
  return;
3717
3687
  }
3718
3688
  if (ue(l)) {
3719
- w.push(cn(l, void 0));
3689
+ w.push(sn(l, void 0));
3720
3690
  return;
3721
3691
  }
3722
3692
  if (Array.isArray(l)) {
3723
3693
  if (l.length === 0) return;
3724
3694
  for (let L = 0; L < l.length; L++) {
3725
- const O = l[L];
3726
- Me(O) || ue(O) || Array.isArray(O) ? C(O, `${y}-${L}`) : O !== null && typeof O == "object" ? st(O) ? w.push(
3695
+ const N = l[L];
3696
+ Me(N) || ue(N) || Array.isArray(N) ? C(N, `${y}-${L}`) : N !== null && typeof N == "object" ? rt(N) ? w.push(
3727
3697
  ce(
3728
3698
  "#raw",
3729
3699
  {},
3730
- O.__rawHTML,
3700
+ N.__rawHTML,
3731
3701
  `${y}-${L}`
3732
3702
  )
3733
- ) : S(O) : w.push(c(String(O), `${y}-${L}`));
3703
+ ) : S(N) : w.push(c(String(N), `${y}-${L}`));
3734
3704
  }
3735
3705
  return;
3736
3706
  }
3737
3707
  if (l !== null && typeof l == "object") {
3738
- if (st(l)) {
3708
+ if (rt(l)) {
3739
3709
  const L = l.__rawHTML ?? "";
3740
3710
  w.push(ce("#raw", {}, L, y));
3741
3711
  return;
@@ -3766,18 +3736,18 @@ function dn(e, n, t) {
3766
3736
  if (d[1]) {
3767
3737
  const l = d[1], y = d[0][1] === "/", w = d[0][d[0].length - 2] === "/" || T.has(l), {
3768
3738
  props: L,
3769
- attrs: O,
3739
+ attrs: N,
3770
3740
  directives: M,
3771
3741
  bound: D
3772
- } = un(
3742
+ } = ln(
3773
3743
  d[2] || "",
3774
3744
  n,
3775
3745
  r ?? {}
3776
- ), j = { props: {}, attrs: {} };
3777
- for (const z in L) j.props[z] = L[z];
3778
- for (const z in O) j.attrs[z] = O[z];
3779
- j.attrs && Object.prototype.hasOwnProperty.call(j.attrs, "key") && !(j.props && Object.prototype.hasOwnProperty.call(j.props, "key")) && x(() => {
3780
- j.props.key = j.attrs.key;
3746
+ ), O = { props: {}, attrs: {} };
3747
+ for (const z in L) O.props[z] = L[z];
3748
+ for (const z in N) O.attrs[z] = N[z];
3749
+ O.attrs && Object.prototype.hasOwnProperty.call(O.attrs, "key") && !(O.props && Object.prototype.hasOwnProperty.call(O.props, "key")) && x(() => {
3750
+ O.props.key = O.attrs.key;
3781
3751
  });
3782
3752
  try {
3783
3753
  const z = {
@@ -3804,51 +3774,51 @@ function dn(e, n, t) {
3804
3774
  audio: ["muted", "autoplay", "controls", "loop"],
3805
3775
  img: ["src", "alt", "width", "height"],
3806
3776
  button: ["type", "name", "value", "autofocus", "form"]
3807
- }, I = l.toLowerCase(), ie = z[I] ?? [];
3808
- if (j.attrs) {
3809
- for (const R of ie)
3810
- if (D && D.includes(R) && R in j.attrs && !(j.props && R in j.props)) {
3811
- let $ = j.attrs[R];
3777
+ }, I = l.toLowerCase(), oe = z[I] ?? [];
3778
+ if (O.attrs) {
3779
+ for (const H of oe)
3780
+ if (D && D.includes(H) && H in O.attrs && !(O.props && H in O.props)) {
3781
+ let $ = O.attrs[H];
3812
3782
  if ($ && P($))
3813
- $ = $.value, j.props[R] = $, delete j.attrs[R];
3783
+ $ = $.value, O.props[H] = $, delete O.attrs[H];
3814
3784
  else if ($ && typeof $ == "object" && "value" in $ && !($ instanceof Node))
3815
3785
  try {
3816
3786
  const W = $.value;
3817
- j.props[R] = (I === "select" || I === "option") && R === "value" ? String(W) : W, delete j.attrs[R];
3787
+ O.props[H] = (I === "select" || I === "option") && H === "value" ? String(W) : W, delete O.attrs[H];
3818
3788
  } catch {
3819
3789
  }
3820
3790
  else {
3821
3791
  const W = typeof $;
3822
- if (R === "disabled")
3823
- ($ === "" || W === "boolean" || W === "string" && ($ === "true" || $ === "false") || $ == null || W === "number") && (j.props[R] = $, delete j.attrs[R]);
3792
+ if (H === "disabled")
3793
+ ($ === "" || W === "boolean" || W === "string" && ($ === "true" || $ === "false") || $ == null || W === "number") && (O.props[H] = $, delete O.attrs[H]);
3824
3794
  else if ($ === "" || W === "string" || W === "number" || W === "boolean" || $ == null) {
3825
- const te = (I === "select" || I === "option") && R === "value" ? String($) : $;
3826
- j.props[R] = te, delete j.attrs[R];
3795
+ const te = (I === "select" || I === "option") && H === "value" ? String($) : $;
3796
+ O.props[H] = te, delete O.attrs[H];
3827
3797
  }
3828
3798
  }
3829
3799
  }
3830
3800
  }
3831
3801
  if (l.includes("-") || !!r?.__customElements?.has?.(l)) {
3832
- if (j.isCustomElement = !0, D && j.attrs) {
3833
- const R = /* @__PURE__ */ new Set(["id", "name", "data-key", "key"]);
3802
+ if (O.isCustomElement = !0, D && O.attrs) {
3803
+ const H = /* @__PURE__ */ new Set(["id", "name", "data-key", "key"]);
3834
3804
  for (const $ of D)
3835
- if ($ in j.attrs && !(j.props && $ in j.props)) {
3836
- const W = $.includes("-") ? Qe($) : $, te = j.attrs[$];
3837
- if (j.props[W] = te, R.has($) || pt($))
3805
+ if ($ in O.attrs && !(O.props && $ in O.props)) {
3806
+ const W = $.includes("-") ? Xe($) : $, te = O.attrs[$];
3807
+ if (O.props[W] = te, H.has($) || dt($))
3838
3808
  try {
3839
- const xe = F(j.attrs[$]);
3840
- xe === null ? delete j.attrs[$] : j.attrs[$] = xe;
3809
+ const xe = V(O.attrs[$]);
3810
+ xe === null ? delete O.attrs[$] : O.attrs[$] = xe;
3841
3811
  } catch {
3842
- delete j.attrs[$];
3812
+ delete O.attrs[$];
3843
3813
  }
3844
3814
  else
3845
- delete j.attrs[$];
3815
+ delete O.attrs[$];
3846
3816
  }
3847
3817
  }
3848
3818
  try {
3849
- if (j.attrs && !(j.props && "modelValue" in j.props)) {
3850
- const R = j.attrs["model-value"] ?? j.attrs.modelValue;
3851
- typeof R < "u" && (j.props.modelValue = R);
3819
+ if (O.attrs && !(O.props && "modelValue" in O.props)) {
3820
+ const H = O.attrs["model-value"] ?? O.attrs.modelValue;
3821
+ typeof H < "u" && (O.props.modelValue = H);
3852
3822
  }
3853
3823
  } catch {
3854
3824
  }
@@ -3859,40 +3829,40 @@ function dn(e, n, t) {
3859
3829
  (z) => z === "model" || z.startsWith("model:")
3860
3830
  ))
3861
3831
  try {
3862
- const I = globalThis[/* @__PURE__ */ Symbol.for("cer.registry")], ie = !!(I && typeof I.has == "function" && I.has(l)), Q = r, R = !!(Q && (Q.__customElements instanceof Set && Q.__customElements.has(l) || Array.isArray(Q.__isCustomElements) && Q.__isCustomElements.includes(l)));
3863
- if (!!(l.includes("-") || R || ie))
3832
+ const I = globalThis[/* @__PURE__ */ Symbol.for("cer.registry")], oe = !!(I && typeof I.has == "function" && I.has(l)), X = r, H = !!(X && (X.__customElements instanceof Set && X.__customElements.has(l) || Array.isArray(X.__isCustomElements) && X.__isCustomElements.includes(l)));
3833
+ if (!!(l.includes("-") || H || oe))
3864
3834
  for (const te of Object.keys(M)) {
3865
3835
  if (te !== "model" && !te.startsWith("model:")) continue;
3866
- const $e = M[te], xe = $e.arg ?? (te.includes(":") ? te.split(":", 2)[1] : void 0), V = $e.value, ze = xe ?? "modelValue", et = K, vt = We, Se = r?._state || r;
3836
+ const $e = M[te], xe = $e.arg ?? (te.includes(":") ? te.split(":", 2)[1] : void 0), F = $e.value, ze = xe ?? "modelValue", Qe = K, bt = We, Se = r?._state || r;
3867
3837
  let se;
3868
- if (typeof V == "string" && Se)
3869
- se = et(
3838
+ if (typeof F == "string" && Se)
3839
+ se = Qe(
3870
3840
  Se,
3871
- V
3841
+ F
3872
3842
  );
3873
- else if (se = V, P(V))
3843
+ else if (se = F, P(F))
3874
3844
  try {
3875
- V.value;
3845
+ F.value;
3876
3846
  } catch {
3877
3847
  }
3878
- j.props[ze] = se;
3848
+ O.props[ze] = se;
3879
3849
  try {
3880
- const ae = Y(ze);
3881
- j.attrs || (j.attrs = {}), se != null && (typeof se == "string" || typeof se == "number" || typeof se == "boolean") && (j.attrs[ae] = se);
3850
+ const ae = J(ze);
3851
+ O.attrs || (O.attrs = {}), se != null && (typeof se == "string" || typeof se == "number" || typeof se == "boolean") && (O.attrs[ae] = se);
3882
3852
  } catch {
3883
3853
  }
3884
- j.isCustomElement = !0;
3885
- const tt = `update:${Y(ze)}`.replace(
3854
+ O.isCustomElement = !0;
3855
+ const et = `update:${J(ze)}`.replace(
3886
3856
  /-([a-z])/g,
3887
3857
  (ae, re) => re.toUpperCase()
3888
- ), Et = "on" + tt.charAt(0).toUpperCase() + tt.slice(1);
3889
- j.props[Et] = function(ae) {
3858
+ ), vt = "on" + et.charAt(0).toUpperCase() + et.slice(1);
3859
+ O.props[vt] = function(ae) {
3890
3860
  const re = ae.detail !== void 0 ? ae.detail : ae.target ? ae.target.value : void 0;
3891
3861
  if (Se)
3892
- if (V && P(V)) {
3893
- const le = V.value;
3862
+ if (F && P(F)) {
3863
+ const le = F.value;
3894
3864
  if (Array.isArray(re) && Array.isArray(le) ? JSON.stringify([...re].sort()) !== JSON.stringify([...le].sort()) : re !== le) {
3895
- V.value = re;
3865
+ F.value = re;
3896
3866
  try {
3897
3867
  const fe = r;
3898
3868
  if (fe) {
@@ -3903,14 +3873,14 @@ function dn(e, n, t) {
3903
3873
  }
3904
3874
  }
3905
3875
  } else {
3906
- const le = et(
3876
+ const le = Qe(
3907
3877
  Se || {},
3908
- typeof V == "string" ? V : String(V)
3878
+ typeof F == "string" ? F : String(F)
3909
3879
  );
3910
3880
  if (Array.isArray(re) && Array.isArray(le) ? JSON.stringify([...re].sort()) !== JSON.stringify([...le].sort()) : re !== le) {
3911
- vt(
3881
+ bt(
3912
3882
  Se || {},
3913
- typeof V == "string" ? V : String(V),
3883
+ typeof F == "string" ? F : String(F),
3914
3884
  re
3915
3885
  );
3916
3886
  try {
@@ -3927,18 +3897,18 @@ function dn(e, n, t) {
3927
3897
  }
3928
3898
  } catch {
3929
3899
  }
3930
- if (Object.keys(M).length > 0 && (j.directives = { ...M }), y) {
3900
+ if (Object.keys(M).length > 0 && (O.directives = { ...M }), y) {
3931
3901
  const z = k.some(
3932
- (R) => typeof R == "object" && R.tag !== "#text"
3902
+ (H) => typeof H == "object" && H.tag !== "#text"
3933
3903
  );
3934
3904
  let I = k;
3935
3905
  if (z && k.length > 0) {
3936
- let R = 0;
3937
- for (; R < k.length; ) {
3938
- const W = k[R];
3906
+ let H = 0;
3907
+ for (; H < k.length; ) {
3908
+ const W = k[H];
3939
3909
  if (!ue(W) || W.tag !== "#text" || typeof W.children != "string" || W.children.trim() !== "")
3940
3910
  break;
3941
- R++;
3911
+ H++;
3942
3912
  }
3943
3913
  let $ = k.length - 1;
3944
3914
  for (; $ >= 0; ) {
@@ -3947,32 +3917,32 @@ function dn(e, n, t) {
3947
3917
  break;
3948
3918
  $--;
3949
3919
  }
3950
- R === 0 && $ === k.length - 1 ? I = k : R > $ ? I = [] : I = k.slice(R, $ + 1);
3920
+ H === 0 && $ === k.length - 1 ? I = k : H > $ ? I = [] : I = k.slice(H, $ + 1);
3951
3921
  }
3952
- const ie = ce(
3953
- N,
3954
- _,
3922
+ const oe = ce(
3923
+ j,
3924
+ A,
3955
3925
  I.length === 1 && ue(I[0]) && I[0].tag === "#text" ? typeof I[0].children == "string" ? I[0].children : "" : I.length ? I : void 0,
3956
3926
  a
3957
- ), Q = p.pop();
3958
- Q ? (N = Q.tag, _ = Q.props, a = Q.key, k = Q.children, k.push(ie)) : (E.push(ie), N = null, _ = {}, a = void 0, k = []);
3959
- } else w ? N ? k.push(ce(l, j, void 0, void 0)) : E.push(ce(l, j, void 0, void 0)) : (N && p.push({
3960
- tag: N,
3961
- props: _,
3927
+ ), X = p.pop();
3928
+ X ? (j = X.tag, A = X.props, a = X.key, k = X.children, k.push(oe)) : (E.push(oe), j = null, A = {}, a = void 0, k = []);
3929
+ } else w ? j ? k.push(ce(l, O, void 0, void 0)) : E.push(ce(l, O, void 0, void 0)) : (j && p.push({
3930
+ tag: j,
3931
+ props: A,
3962
3932
  children: k,
3963
3933
  key: a
3964
- }), N = l, _ = j, k = []);
3934
+ }), j = l, A = O, k = []);
3965
3935
  } else if (typeof d[3] < "u") {
3966
3936
  const l = Number(d[3]), y = n[l], w = `interp-${l}`;
3967
3937
  C(y, w);
3968
3938
  } else if (d[4]) {
3969
- const l = d[4], y = N ? k : E, w = l.split(/({{\d+}})/);
3939
+ const l = d[4], y = j ? k : E, w = l.split(/({{\d+}})/);
3970
3940
  for (const L of w) {
3971
3941
  if (!L) continue;
3972
- const O = L.match(/^{{(\d+)}}$/);
3973
- if (O) {
3974
- const M = Number(O[1]), D = n[M], j = `interp-${M}`;
3975
- C(D, j);
3942
+ const N = L.match(/^{{(\d+)}}$/);
3943
+ if (N) {
3944
+ const M = Number(N[1]), D = n[M], O = `interp-${M}`;
3945
+ C(D, O);
3976
3946
  } else {
3977
3947
  const M = `text-${b++}`, D = v();
3978
3948
  y.push(f(L, M, D));
@@ -3980,41 +3950,41 @@ function dn(e, n, t) {
3980
3950
  }
3981
3951
  }
3982
3952
  }
3983
- const A = E.filter((l) => ue(l) && l.tag === "#text" ? typeof l.children == "string" && l.children.trim() !== "" : !0).map(
3984
- (l) => Xe(l)
3953
+ const _ = E.filter((l) => ue(l) && l.tag === "#text" ? typeof l.children == "string" && l.children.trim() !== "" : !0).map(
3954
+ (l) => Ye(l)
3985
3955
  );
3986
- if (A.length === 1) {
3987
- const l = A[0];
3988
- return i && o && Ge.set(o, l), l;
3989
- } else if (A.length > 1) {
3990
- const l = A;
3991
- return i && o && Ge.set(o, l), l;
3956
+ if (_.length === 1) {
3957
+ const l = _[0];
3958
+ return o && i && qe.set(i, l), l;
3959
+ } else if (_.length > 1) {
3960
+ const l = _;
3961
+ return o && i && qe.set(i, l), l;
3992
3962
  }
3993
3963
  return ce("div", {}, "", "fallback-root");
3994
3964
  }
3995
- function Mn(e, ...n) {
3996
- if (X()) return [];
3965
+ function On(e, ...n) {
3966
+ if (Y()) return [];
3997
3967
  const t = n[n.length - 1], s = typeof t == "object" && t && !Array.isArray(t) ? t : void 0;
3998
- return dn(e, n, s);
3968
+ return fn(e, n, s);
3999
3969
  }
4000
3970
  export {
4001
- Ln as a,
4002
- on as b,
4003
- jn as c,
4004
- Tn as d,
4005
- On as e,
4006
- wn as f,
4007
- bn as g,
4008
- Mn as h,
4009
- gn as i,
4010
- vn as j,
4011
- Cn as k,
4012
- En as l,
4013
- Sn as m,
4014
- Nn as n,
4015
- _n as o,
4016
- An as p,
4017
- kn as u,
4018
- Yt as v
3971
+ wn as a,
3972
+ rn as b,
3973
+ Nn as c,
3974
+ An as d,
3975
+ Ln as e,
3976
+ _n as f,
3977
+ mn as g,
3978
+ On as h,
3979
+ yn as i,
3980
+ gn as j,
3981
+ En as k,
3982
+ bn as l,
3983
+ vn as m,
3984
+ Tn as n,
3985
+ Cn as o,
3986
+ kn as p,
3987
+ Sn as u,
3988
+ Zt as v
4019
3989
  };
4020
- //# sourceMappingURL=template-compiler-DvbSi27u.js.map
3990
+ //# sourceMappingURL=template-compiler-taX5Zg4G.js.map