@jasonshimmy/custom-elements-runtime 2.5.5 → 2.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements-runtime.cjs.js +1 -1
- package/dist/custom-elements-runtime.es.js +2 -2
- package/dist/custom-elements-runtime.router.cjs.js +1 -1
- package/dist/custom-elements-runtime.router.es.js +1 -1
- package/dist/{template-compiler-CJFwjLCP.js → template-compiler-BO8UEEDA.js} +955 -952
- package/dist/{template-compiler-CJFwjLCP.js.map → template-compiler-BO8UEEDA.js.map} +1 -1
- package/dist/{template-compiler-CA4YRaBu.cjs → template-compiler-C4L8vT-6.cjs} +13 -13
- package/dist/{template-compiler-CA4YRaBu.cjs.map → template-compiler-C4L8vT-6.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as K, t as Y, i as
|
|
1
|
+
import { j as K, t as Y, i as P, k as We, m as $, 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 ee, A as _t, B as nt, a as rt, C as st, d as At } from "./namespace-helpers-DcD_6_K1.js";
|
|
2
2
|
import { a as V, d as B } from "./logger-BvkEbVM4.js";
|
|
3
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-Di5wW9yc.js";
|
|
4
4
|
const ge = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ Symbol.for("cer.registry");
|
|
@@ -36,9 +36,9 @@ function jt(e, n, t, s) {
|
|
|
36
36
|
if (o === c) return !0;
|
|
37
37
|
if (typeof o != typeof c || typeof o != "object" || o === null || c === null) return !1;
|
|
38
38
|
if (Array.isArray(o) && Array.isArray(c))
|
|
39
|
-
return o.length !== c.length ? !1 : o.every((d,
|
|
40
|
-
const f = o, u = c,
|
|
41
|
-
return
|
|
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 || {});
|
|
41
|
+
return h.length !== p.length ? !1 : h.every((d) => r(f[d], u[d]));
|
|
42
42
|
}, i = n.get(t);
|
|
43
43
|
if (i && !r(s, i.oldValue))
|
|
44
44
|
try {
|
|
@@ -58,7 +58,7 @@ function jt(e, n, t, s) {
|
|
|
58
58
|
function Fe(e, n) {
|
|
59
59
|
return n === Boolean ? e === "" || e === "true" : n === Number ? Number(e) : e;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Mt(e, n, t) {
|
|
62
62
|
if (n)
|
|
63
63
|
for (const s in n) {
|
|
64
64
|
const r = n[s], i = Y(s), o = e.getAttribute(i);
|
|
@@ -82,7 +82,7 @@ function Pt(e, n, t) {
|
|
|
82
82
|
else "default" in r && r.default !== void 0 && (t[s] = r.default);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Pt(e, n, t) {
|
|
86
86
|
if (!n.props) {
|
|
87
87
|
try {
|
|
88
88
|
const s = t?._hookCallbacks?.props || {}, r = Array.from(
|
|
@@ -107,9 +107,9 @@ function Mt(e, n, t) {
|
|
|
107
107
|
const f = Y(i), u = e.getAttribute(f);
|
|
108
108
|
if (u !== null)
|
|
109
109
|
return u;
|
|
110
|
-
const
|
|
110
|
+
const h = e[i];
|
|
111
111
|
let p;
|
|
112
|
-
return
|
|
112
|
+
return P(h) || h && typeof h == "object" && "value" in h && !(h instanceof Node) ? p = h.value : p = h, p;
|
|
113
113
|
} catch {
|
|
114
114
|
return e[i];
|
|
115
115
|
}
|
|
@@ -122,12 +122,12 @@ function Mt(e, n, t) {
|
|
|
122
122
|
}
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
Mt(e, n.props, t);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function xt(e, n, t, s) {
|
|
128
128
|
e.onConnected && !t && (e.onConnected(n), s(!0));
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function $t(e, n, t, s, r, i, o, c) {
|
|
131
131
|
e.onDisconnected && e.onDisconnected(n), t.forEach((f) => f()), s(), r(), i(!1), o(null), c(!1);
|
|
132
132
|
}
|
|
133
133
|
function Ht(e, n, t, s, r) {
|
|
@@ -322,12 +322,12 @@ class Rt {
|
|
|
322
322
|
);
|
|
323
323
|
const i = s.match(/ctx\.[\w.]+/g) || [];
|
|
324
324
|
for (const p of i) {
|
|
325
|
-
const d = p.slice(4),
|
|
326
|
-
if (
|
|
327
|
-
const
|
|
325
|
+
const d = p.slice(4), k = K(t, d);
|
|
326
|
+
if (k === void 0) return;
|
|
327
|
+
const N = r.push(JSON.stringify(k)) - 1;
|
|
328
328
|
s = s.replace(
|
|
329
329
|
new RegExp(p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
|
|
330
|
-
`<<#${
|
|
330
|
+
`<<#${N}#>>`
|
|
331
331
|
);
|
|
332
332
|
}
|
|
333
333
|
const o = /\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g, c = s.match(o) || [];
|
|
@@ -335,31 +335,31 @@ class Rt {
|
|
|
335
335
|
if (p.startsWith("ctx.")) continue;
|
|
336
336
|
const d = K(t, p);
|
|
337
337
|
if (d === void 0) return;
|
|
338
|
-
const
|
|
338
|
+
const k = r.push(JSON.stringify(d)) - 1;
|
|
339
339
|
s = s.replace(
|
|
340
340
|
new RegExp(p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
|
|
341
|
-
`<<#${
|
|
341
|
+
`<<#${k}#>>`
|
|
342
342
|
);
|
|
343
343
|
}
|
|
344
344
|
const f = /\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g;
|
|
345
345
|
let u;
|
|
346
|
-
const
|
|
346
|
+
const h = /* @__PURE__ */ new Set();
|
|
347
347
|
for (; (u = f.exec(s)) !== null; ) {
|
|
348
348
|
const p = u[1];
|
|
349
|
-
if (["true", "false", "null", "undefined"].includes(p) || /^[0-9]+$/.test(p) || p === "ctx" ||
|
|
350
|
-
|
|
349
|
+
if (["true", "false", "null", "undefined"].includes(p) || /^[0-9]+$/.test(p) || p === "ctx" || h.has(p)) continue;
|
|
350
|
+
h.add(p);
|
|
351
351
|
const d = K(t, p);
|
|
352
352
|
if (d === void 0) return;
|
|
353
|
-
const
|
|
353
|
+
const k = JSON.stringify(d), N = r.push(k) - 1;
|
|
354
354
|
p.includes(".") ? s = s.replace(
|
|
355
355
|
new RegExp(p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"),
|
|
356
|
-
`<<#${
|
|
356
|
+
`<<#${N}#>>`
|
|
357
357
|
) : s = s.replace(
|
|
358
358
|
new RegExp(
|
|
359
359
|
"\\b" + p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + "\\b",
|
|
360
360
|
"g"
|
|
361
361
|
),
|
|
362
|
-
`<<#${
|
|
362
|
+
`<<#${N}#>>`
|
|
363
363
|
);
|
|
364
364
|
}
|
|
365
365
|
s = s.replace(
|
|
@@ -387,215 +387,215 @@ class Rt {
|
|
|
387
387
|
function r() {
|
|
388
388
|
return t[s];
|
|
389
389
|
}
|
|
390
|
-
function i(
|
|
391
|
-
const
|
|
392
|
-
if (
|
|
393
|
-
throw new Error(`Unexpected token EOF, expected ${
|
|
394
|
-
if (
|
|
390
|
+
function i(g) {
|
|
391
|
+
const A = t[s++];
|
|
392
|
+
if (g && !A)
|
|
393
|
+
throw new Error(`Unexpected token EOF, expected ${g}`);
|
|
394
|
+
if (g && A && A.type !== g && A.value !== g)
|
|
395
395
|
throw new Error(
|
|
396
|
-
`Unexpected token ${
|
|
396
|
+
`Unexpected token ${A.type}/${A.value}, expected ${g}`
|
|
397
397
|
);
|
|
398
|
-
return
|
|
398
|
+
return A;
|
|
399
399
|
}
|
|
400
400
|
function o() {
|
|
401
|
-
return
|
|
401
|
+
return N();
|
|
402
402
|
}
|
|
403
|
-
function c(
|
|
404
|
-
if (typeof
|
|
405
|
-
if (
|
|
406
|
-
if (typeof
|
|
407
|
-
const
|
|
408
|
-
return Number.isNaN(
|
|
403
|
+
function c(g) {
|
|
404
|
+
if (typeof g == "number") return g;
|
|
405
|
+
if (g == null) return NaN;
|
|
406
|
+
if (typeof g == "boolean") return g ? 1 : 0;
|
|
407
|
+
const A = Number(g);
|
|
408
|
+
return Number.isNaN(A) ? NaN : A;
|
|
409
409
|
}
|
|
410
|
-
function f(
|
|
411
|
-
return typeof
|
|
410
|
+
function f(g, A) {
|
|
411
|
+
return typeof g == "string" || typeof A == "string" ? String(g) + String(A) : c(g) + c(A);
|
|
412
412
|
}
|
|
413
|
-
function u(
|
|
414
|
-
return c(
|
|
413
|
+
function u(g, A) {
|
|
414
|
+
return c(g) - c(A);
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
return c(
|
|
416
|
+
function h(g, A) {
|
|
417
|
+
return c(g) * c(A);
|
|
418
418
|
}
|
|
419
|
-
function p(
|
|
420
|
-
return c(
|
|
419
|
+
function p(g, A) {
|
|
420
|
+
return c(g) / c(A);
|
|
421
421
|
}
|
|
422
|
-
function d(
|
|
423
|
-
return c(
|
|
422
|
+
function d(g, A) {
|
|
423
|
+
return c(g) % c(A);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
if (typeof
|
|
427
|
-
switch (
|
|
425
|
+
function k(g, A, l) {
|
|
426
|
+
if (typeof A == "number" && typeof l == "number")
|
|
427
|
+
switch (g) {
|
|
428
428
|
case ">":
|
|
429
|
-
return
|
|
429
|
+
return A > l;
|
|
430
430
|
case "<":
|
|
431
|
-
return
|
|
431
|
+
return A < l;
|
|
432
432
|
case ">=":
|
|
433
|
-
return
|
|
433
|
+
return A >= l;
|
|
434
434
|
case "<=":
|
|
435
|
-
return
|
|
435
|
+
return A <= l;
|
|
436
436
|
default:
|
|
437
437
|
return !1;
|
|
438
438
|
}
|
|
439
|
-
const
|
|
440
|
-
switch (
|
|
439
|
+
const y = String(A), w = String(l);
|
|
440
|
+
switch (g) {
|
|
441
441
|
case ">":
|
|
442
|
-
return
|
|
442
|
+
return y > w;
|
|
443
443
|
case "<":
|
|
444
|
-
return
|
|
444
|
+
return y < w;
|
|
445
445
|
case ">=":
|
|
446
|
-
return
|
|
446
|
+
return y >= w;
|
|
447
447
|
case "<=":
|
|
448
|
-
return
|
|
448
|
+
return y <= w;
|
|
449
449
|
default:
|
|
450
450
|
return !1;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
const
|
|
455
|
-
if (
|
|
453
|
+
function N() {
|
|
454
|
+
const g = _(), A = r();
|
|
455
|
+
if (A && A.value === "?") {
|
|
456
456
|
i("?");
|
|
457
457
|
const l = o();
|
|
458
458
|
i(":");
|
|
459
|
-
const
|
|
460
|
-
return
|
|
459
|
+
const y = o();
|
|
460
|
+
return g ? l : y;
|
|
461
461
|
}
|
|
462
|
-
return
|
|
462
|
+
return g;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
465
|
-
let
|
|
464
|
+
function _() {
|
|
465
|
+
let g = a();
|
|
466
466
|
for (; ; ) {
|
|
467
|
-
const
|
|
468
|
-
if (!
|
|
467
|
+
const A = r();
|
|
468
|
+
if (!A || A.value !== "||") break;
|
|
469
469
|
i("OP");
|
|
470
470
|
const l = a();
|
|
471
|
-
|
|
471
|
+
g = g || l;
|
|
472
472
|
}
|
|
473
|
-
return
|
|
473
|
+
return g;
|
|
474
474
|
}
|
|
475
475
|
function a() {
|
|
476
|
-
let
|
|
476
|
+
let g = b();
|
|
477
477
|
for (; ; ) {
|
|
478
|
-
const
|
|
479
|
-
if (!
|
|
478
|
+
const A = r();
|
|
479
|
+
if (!A || A.value !== "&&") break;
|
|
480
480
|
i("OP");
|
|
481
|
-
const l =
|
|
482
|
-
|
|
481
|
+
const l = b();
|
|
482
|
+
g = g && l;
|
|
483
483
|
}
|
|
484
|
-
return
|
|
484
|
+
return g;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
487
|
-
let
|
|
486
|
+
function b() {
|
|
487
|
+
let g = E();
|
|
488
488
|
for (; ; ) {
|
|
489
|
-
const
|
|
490
|
-
if (!
|
|
491
|
-
const l = i("OP").value,
|
|
489
|
+
const A = r();
|
|
490
|
+
if (!A || !["==", "!=", "===", "!=="].includes(A.value)) break;
|
|
491
|
+
const l = i("OP").value, y = E();
|
|
492
492
|
switch (l) {
|
|
493
493
|
case "==":
|
|
494
|
-
|
|
494
|
+
g = g == y;
|
|
495
495
|
break;
|
|
496
496
|
case "!=":
|
|
497
|
-
|
|
497
|
+
g = g != y;
|
|
498
498
|
break;
|
|
499
499
|
case "===":
|
|
500
|
-
|
|
500
|
+
g = g === y;
|
|
501
501
|
break;
|
|
502
502
|
case "!==":
|
|
503
|
-
|
|
503
|
+
g = g !== y;
|
|
504
504
|
break;
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
return
|
|
507
|
+
return g;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
let
|
|
509
|
+
function E() {
|
|
510
|
+
let g = m();
|
|
511
511
|
for (; ; ) {
|
|
512
|
-
const
|
|
513
|
-
if (!
|
|
514
|
-
const l = i("OP").value,
|
|
512
|
+
const A = r();
|
|
513
|
+
if (!A || ![">", "<", ">=", "<="].includes(A.value)) break;
|
|
514
|
+
const l = i("OP").value, y = m();
|
|
515
515
|
switch (l) {
|
|
516
516
|
case ">":
|
|
517
|
-
|
|
517
|
+
g = k(">", g, y);
|
|
518
518
|
break;
|
|
519
519
|
case "<":
|
|
520
|
-
|
|
520
|
+
g = k("<", g, y);
|
|
521
521
|
break;
|
|
522
522
|
case ">=":
|
|
523
|
-
|
|
523
|
+
g = k(">=", g, y);
|
|
524
524
|
break;
|
|
525
525
|
case "<=":
|
|
526
|
-
|
|
526
|
+
g = k("<=", g, y);
|
|
527
527
|
break;
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
return
|
|
530
|
+
return g;
|
|
531
531
|
}
|
|
532
|
-
function
|
|
533
|
-
let
|
|
532
|
+
function m() {
|
|
533
|
+
let g = v();
|
|
534
534
|
for (; ; ) {
|
|
535
|
-
const
|
|
536
|
-
if (!
|
|
537
|
-
const l = i("OP").value,
|
|
538
|
-
|
|
535
|
+
const A = r();
|
|
536
|
+
if (!A || A.value !== "+" && A.value !== "-") break;
|
|
537
|
+
const l = i("OP").value, y = v();
|
|
538
|
+
g = l === "+" ? f(g, y) : u(g, y);
|
|
539
539
|
}
|
|
540
|
-
return
|
|
540
|
+
return g;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
543
|
-
let
|
|
542
|
+
function v() {
|
|
543
|
+
let g = S();
|
|
544
544
|
for (; ; ) {
|
|
545
|
-
const
|
|
546
|
-
if (!
|
|
545
|
+
const A = r();
|
|
546
|
+
if (!A || A.value !== "*" && A.value !== "/" && A.value !== "%")
|
|
547
547
|
break;
|
|
548
|
-
const l = i("OP").value,
|
|
548
|
+
const l = i("OP").value, y = S();
|
|
549
549
|
switch (l) {
|
|
550
550
|
case "*":
|
|
551
|
-
|
|
551
|
+
g = h(g, y);
|
|
552
552
|
break;
|
|
553
553
|
case "/":
|
|
554
|
-
|
|
554
|
+
g = p(g, y);
|
|
555
555
|
break;
|
|
556
556
|
case "%":
|
|
557
|
-
|
|
557
|
+
g = d(g, y);
|
|
558
558
|
break;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
return
|
|
562
|
-
}
|
|
563
|
-
function k() {
|
|
564
|
-
const y = r();
|
|
565
|
-
if (y && y.value === "!")
|
|
566
|
-
return i("OP"), !k();
|
|
567
|
-
if (y && y.value === "-") {
|
|
568
|
-
i("OP");
|
|
569
|
-
const _ = k();
|
|
570
|
-
return u(0, _);
|
|
571
|
-
}
|
|
572
|
-
return S();
|
|
561
|
+
return g;
|
|
573
562
|
}
|
|
574
563
|
function S() {
|
|
575
|
-
const
|
|
576
|
-
if (
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
564
|
+
const g = r();
|
|
565
|
+
if (g && g.value === "!")
|
|
566
|
+
return i("OP"), !S();
|
|
567
|
+
if (g && g.value === "-") {
|
|
568
|
+
i("OP");
|
|
569
|
+
const A = S();
|
|
570
|
+
return u(0, A);
|
|
571
|
+
}
|
|
572
|
+
return C();
|
|
573
|
+
}
|
|
574
|
+
function C() {
|
|
575
|
+
const g = r();
|
|
576
|
+
if (g) {
|
|
577
|
+
if (g.type === "NUMBER")
|
|
578
|
+
return i("NUMBER"), Number(g.value);
|
|
579
|
+
if (g.type === "STRING")
|
|
580
|
+
return i("STRING"), g.value.slice(1, -1);
|
|
581
|
+
if (g.type === "IDENT")
|
|
582
|
+
return i("IDENT"), g.value === "true" ? !0 : g.value === "false" ? !1 : g.value === "null" ? null : void 0;
|
|
583
|
+
if (g.value === "[") {
|
|
584
584
|
i("PUNC");
|
|
585
|
-
const
|
|
585
|
+
const A = [];
|
|
586
586
|
for (; ; ) {
|
|
587
587
|
const l = r();
|
|
588
588
|
if (!l || l.value === "]") break;
|
|
589
|
-
|
|
590
|
-
const
|
|
591
|
-
|
|
589
|
+
A.push(o());
|
|
590
|
+
const y = r();
|
|
591
|
+
y && y.value === "," && i("PUNC");
|
|
592
592
|
}
|
|
593
|
-
return i("PUNC"),
|
|
593
|
+
return i("PUNC"), A;
|
|
594
594
|
}
|
|
595
|
-
if (
|
|
595
|
+
if (g.value === "(") {
|
|
596
596
|
i("PUNC");
|
|
597
|
-
const
|
|
598
|
-
return i("PUNC"),
|
|
597
|
+
const A = o();
|
|
598
|
+
return i("PUNC"), A;
|
|
599
599
|
}
|
|
600
600
|
throw new Error("Unexpected token in expression");
|
|
601
601
|
}
|
|
@@ -664,7 +664,7 @@ function It(e, n, t) {
|
|
|
664
664
|
}
|
|
665
665
|
function ct(e, n, t, s) {
|
|
666
666
|
const r = t;
|
|
667
|
-
if (
|
|
667
|
+
if ($(() => {
|
|
668
668
|
if (typeof e.setAttribute == "function")
|
|
669
669
|
try {
|
|
670
670
|
e[n] = r;
|
|
@@ -674,13 +674,13 @@ function ct(e, n, t, s) {
|
|
|
674
674
|
e[n] = r;
|
|
675
675
|
}), r == null || typeof r == "string" || typeof r == "number" || typeof r == "boolean") {
|
|
676
676
|
const i = F(r);
|
|
677
|
-
i !== null ?
|
|
677
|
+
i !== null ? $(() => {
|
|
678
678
|
typeof e.setAttribute == "function" && U(
|
|
679
679
|
e,
|
|
680
680
|
Y(n),
|
|
681
681
|
String(i)
|
|
682
682
|
);
|
|
683
|
-
}) :
|
|
683
|
+
}) : $(() => {
|
|
684
684
|
typeof e.removeAttribute == "function" && G(e, Y(n));
|
|
685
685
|
});
|
|
686
686
|
}
|
|
@@ -720,197 +720,197 @@ function Je(e) {
|
|
|
720
720
|
}
|
|
721
721
|
function Bt(e, n, t, s, r, i, o, c) {
|
|
722
722
|
if (!i) return;
|
|
723
|
-
const f = n.includes("lazy"), u = n.includes("trim"),
|
|
724
|
-
if (
|
|
725
|
-
const
|
|
726
|
-
return c && o && (o instanceof HTMLInputElement || o instanceof HTMLTextAreaElement || o instanceof HTMLSelectElement) && typeof
|
|
723
|
+
const f = n.includes("lazy"), u = n.includes("trim"), h = n.includes("number"), p = () => {
|
|
724
|
+
if (P(e)) {
|
|
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;
|
|
727
727
|
}
|
|
728
|
-
const
|
|
729
|
-
return K(
|
|
728
|
+
const m = i?._state || i;
|
|
729
|
+
return K(m, e);
|
|
730
730
|
}, d = p();
|
|
731
|
-
let
|
|
732
|
-
o instanceof HTMLInputElement ?
|
|
733
|
-
const
|
|
734
|
-
if (
|
|
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";
|
|
734
|
+
if (k === "checkbox")
|
|
735
735
|
if (Array.isArray(d))
|
|
736
736
|
t[a] = d.includes(
|
|
737
737
|
String(o?.getAttribute("value") ?? s?.value ?? "")
|
|
738
738
|
);
|
|
739
739
|
else {
|
|
740
|
-
const
|
|
741
|
-
t[a] = d ===
|
|
740
|
+
const m = o?.getAttribute("true-value") ?? !0;
|
|
741
|
+
t[a] = d === m;
|
|
742
742
|
}
|
|
743
|
-
else if (
|
|
743
|
+
else if (k === "radio")
|
|
744
744
|
t[a] = d === (s?.value ?? "");
|
|
745
|
-
else if (
|
|
745
|
+
else if (k === "select")
|
|
746
746
|
if (o && o.hasAttribute("multiple") && o instanceof HTMLSelectElement) {
|
|
747
|
-
const
|
|
747
|
+
const m = Array.isArray(d) ? d.map(String) : [];
|
|
748
748
|
setTimeout(() => {
|
|
749
|
-
Array.from(o.options).forEach((
|
|
750
|
-
|
|
749
|
+
Array.from(o.options).forEach((v) => {
|
|
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
755
|
else {
|
|
756
|
-
!
|
|
756
|
+
!N && P(e) ? t[a] = e : t[a] = d;
|
|
757
757
|
try {
|
|
758
|
-
const
|
|
759
|
-
s && (s[
|
|
758
|
+
const m = Y(a);
|
|
759
|
+
s && (s[m] = d);
|
|
760
760
|
} catch {
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
|
-
const
|
|
764
|
-
if (
|
|
763
|
+
const b = f || k === "checkbox" || k === "radio" || k === "select" ? "change" : "input", E = (m) => {
|
|
764
|
+
if (m.isComposing || r._isComposing)
|
|
765
765
|
return;
|
|
766
|
-
const
|
|
767
|
-
if (
|
|
766
|
+
const v = globalThis.process, S = !!v && v.env?.NODE_ENV === "test" || typeof window < "u" && globalThis.__vitest__;
|
|
767
|
+
if (m.isTrusted === !1 && !S)
|
|
768
768
|
return;
|
|
769
|
-
const
|
|
770
|
-
if (!
|
|
769
|
+
const C = m.target;
|
|
770
|
+
if (!C || C._modelUpdating)
|
|
771
771
|
return;
|
|
772
|
-
let
|
|
773
|
-
if (
|
|
772
|
+
let T = C.value;
|
|
773
|
+
if (k === "checkbox") {
|
|
774
774
|
const l = p();
|
|
775
775
|
if (Array.isArray(l)) {
|
|
776
|
-
const
|
|
777
|
-
if (
|
|
778
|
-
|
|
776
|
+
const y = C.getAttribute("value") ?? "", w = Array.from(l);
|
|
777
|
+
if (C.checked)
|
|
778
|
+
w.includes(y) || w.push(y);
|
|
779
779
|
else {
|
|
780
|
-
const
|
|
781
|
-
|
|
780
|
+
const L = w.indexOf(y);
|
|
781
|
+
L > -1 && w.splice(L, 1);
|
|
782
782
|
}
|
|
783
|
-
|
|
783
|
+
T = w;
|
|
784
784
|
} else {
|
|
785
|
-
const
|
|
786
|
-
|
|
785
|
+
const y = C.getAttribute("true-value") ?? !0, w = C.getAttribute("false-value") ?? !1;
|
|
786
|
+
T = C.checked ? y : w;
|
|
787
787
|
}
|
|
788
|
-
} else if (
|
|
789
|
-
|
|
790
|
-
else if (
|
|
791
|
-
|
|
788
|
+
} else if (k === "radio")
|
|
789
|
+
T = C.getAttribute("value") ?? C.value;
|
|
790
|
+
else if (k === "select" && C.multiple)
|
|
791
|
+
T = Array.from(C.selectedOptions).map(
|
|
792
792
|
(l) => l.value
|
|
793
793
|
);
|
|
794
|
-
else if (u && typeof
|
|
795
|
-
const l = Number(
|
|
796
|
-
isNaN(l) || (
|
|
794
|
+
else if (u && typeof T == "string" && (T = T.trim()), h) {
|
|
795
|
+
const l = Number(T);
|
|
796
|
+
isNaN(l) || (T = l);
|
|
797
797
|
}
|
|
798
|
-
const
|
|
799
|
-
if (Re(
|
|
800
|
-
|
|
798
|
+
const g = p();
|
|
799
|
+
if (Re(T, g)) {
|
|
800
|
+
C._modelUpdating = !0;
|
|
801
801
|
try {
|
|
802
|
-
it(
|
|
802
|
+
it(P(e), e, T, i, c), Ie(i, P(e), e, T), C && It(C, a, T);
|
|
803
803
|
} finally {
|
|
804
804
|
setTimeout(
|
|
805
|
-
() =>
|
|
805
|
+
() => C._modelUpdating = !1,
|
|
806
806
|
0
|
|
807
807
|
);
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
};
|
|
811
|
-
if (
|
|
812
|
-
if (r[
|
|
813
|
-
const
|
|
814
|
-
o && ne.removeListener(o,
|
|
811
|
+
if (N) {
|
|
812
|
+
if (r[b]) {
|
|
813
|
+
const m = r[b];
|
|
814
|
+
o && ne.removeListener(o, b, m);
|
|
815
815
|
}
|
|
816
|
-
r[
|
|
816
|
+
r[b] = E;
|
|
817
817
|
} else {
|
|
818
|
-
const
|
|
819
|
-
if (r[
|
|
820
|
-
const
|
|
821
|
-
o && ne.removeListener(o,
|
|
822
|
-
}
|
|
823
|
-
if (r[
|
|
824
|
-
const
|
|
825
|
-
o && ne.removeListener(o,
|
|
826
|
-
}
|
|
827
|
-
if (r[
|
|
828
|
-
const
|
|
829
|
-
let
|
|
830
|
-
if (
|
|
831
|
-
const l =
|
|
818
|
+
const m = `update:${Y(a)}`, v = `update:${a}`;
|
|
819
|
+
if (r[m]) {
|
|
820
|
+
const S = r[m];
|
|
821
|
+
o && ne.removeListener(o, m, S);
|
|
822
|
+
}
|
|
823
|
+
if (r[v]) {
|
|
824
|
+
const S = r[v];
|
|
825
|
+
o && ne.removeListener(o, v, S);
|
|
826
|
+
}
|
|
827
|
+
if (r[m] = (S) => {
|
|
828
|
+
const C = S.detail;
|
|
829
|
+
let T = C !== void 0 ? C : void 0;
|
|
830
|
+
if (T === void 0) {
|
|
831
|
+
const l = S.target;
|
|
832
832
|
if (l && typeof l == "object" && "value" in l)
|
|
833
833
|
try {
|
|
834
|
-
|
|
834
|
+
T = l.value;
|
|
835
835
|
} catch {
|
|
836
|
-
|
|
836
|
+
T = void 0;
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
|
-
const
|
|
840
|
-
|
|
839
|
+
const g = Dt(
|
|
840
|
+
P(e),
|
|
841
841
|
e,
|
|
842
842
|
i,
|
|
843
843
|
c
|
|
844
844
|
);
|
|
845
|
-
if (Re(
|
|
846
|
-
it(
|
|
847
|
-
const l =
|
|
845
|
+
if (Re(T, g)) {
|
|
846
|
+
it(P(e), e, T, i, c), Ie(i, P(e), e, T);
|
|
847
|
+
const l = S.target;
|
|
848
848
|
l && ct(
|
|
849
849
|
l,
|
|
850
850
|
a,
|
|
851
|
-
|
|
852
|
-
|
|
851
|
+
P(e) ? e : T,
|
|
852
|
+
P(e)
|
|
853
853
|
);
|
|
854
854
|
}
|
|
855
|
-
},
|
|
856
|
-
let
|
|
855
|
+
}, P(e) && typeof e.value == "object" && e.value !== null) {
|
|
856
|
+
let S;
|
|
857
857
|
try {
|
|
858
|
-
|
|
858
|
+
S = Reflect.ownKeys(e.value);
|
|
859
859
|
} catch {
|
|
860
|
-
|
|
860
|
+
S = Object.keys(e.value);
|
|
861
861
|
}
|
|
862
|
-
const
|
|
863
|
-
(
|
|
862
|
+
const C = S.filter(
|
|
863
|
+
(T) => typeof T == "string" && !String(T).startsWith("_") && T !== "constructor"
|
|
864
864
|
);
|
|
865
|
-
for (const
|
|
866
|
-
const
|
|
867
|
-
r[
|
|
868
|
-
const
|
|
865
|
+
for (const T of C) {
|
|
866
|
+
const g = String(T), A = `update:${Y(g)}`, l = `update:${g}`;
|
|
867
|
+
r[A] || (r[A] = (y) => {
|
|
868
|
+
const w = y.detail !== void 0 ? y.detail : y.target?.value, L = P(e) ? e.value[g] : K(
|
|
869
869
|
i?._state || i,
|
|
870
870
|
e
|
|
871
871
|
);
|
|
872
|
-
if (!Re(
|
|
873
|
-
if (
|
|
872
|
+
if (!Re(w, L)) return;
|
|
873
|
+
if (P(e)) {
|
|
874
874
|
const D = {
|
|
875
875
|
...e.value
|
|
876
876
|
};
|
|
877
|
-
D[
|
|
877
|
+
D[g] = w, e.value = D;
|
|
878
878
|
} else
|
|
879
879
|
We(
|
|
880
880
|
i?._state || i,
|
|
881
881
|
e,
|
|
882
|
-
|
|
882
|
+
w
|
|
883
883
|
);
|
|
884
|
-
Ie(i,
|
|
885
|
-
const
|
|
886
|
-
|
|
887
|
-
|
|
884
|
+
Ie(i, P(e), e, w);
|
|
885
|
+
const M = y.currentTarget || o || y.target;
|
|
886
|
+
M && ct(
|
|
887
|
+
M,
|
|
888
888
|
a,
|
|
889
|
-
|
|
890
|
-
|
|
889
|
+
P(e) ? e : w,
|
|
890
|
+
P(e)
|
|
891
891
|
);
|
|
892
|
-
}, r[l] = r[
|
|
892
|
+
}, r[l] = r[A]);
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
|
-
r[
|
|
895
|
+
r[v] = r[m];
|
|
896
896
|
}
|
|
897
|
-
(
|
|
897
|
+
(k === "text" || k === "textarea") && (r.compositionstart = () => r._isComposing = !0, r.compositionend = (m) => {
|
|
898
898
|
r._isComposing = !1;
|
|
899
|
-
const
|
|
900
|
-
|
|
901
|
-
const
|
|
902
|
-
let
|
|
903
|
-
if (u && (
|
|
904
|
-
const l = Number(
|
|
905
|
-
isNaN(l) || (
|
|
906
|
-
}
|
|
907
|
-
if (Re(
|
|
908
|
-
|
|
899
|
+
const v = m.target;
|
|
900
|
+
v && setTimeout(() => {
|
|
901
|
+
const S = v.value, C = i?._state || i, T = K(C, e);
|
|
902
|
+
let g = S;
|
|
903
|
+
if (u && (g = g.trim()), h) {
|
|
904
|
+
const l = Number(g);
|
|
905
|
+
isNaN(l) || (g = l);
|
|
906
|
+
}
|
|
907
|
+
if (Re(g, T)) {
|
|
908
|
+
v._modelUpdating = !0;
|
|
909
909
|
try {
|
|
910
|
-
We(
|
|
910
|
+
We(C, e, g), Ie(i, P(e), e, g);
|
|
911
911
|
} finally {
|
|
912
912
|
setTimeout(
|
|
913
|
-
() =>
|
|
913
|
+
() => v._modelUpdating = !1,
|
|
914
914
|
0
|
|
915
915
|
);
|
|
916
916
|
}
|
|
@@ -927,7 +927,7 @@ function Wt(e, n, t, s, r) {
|
|
|
927
927
|
const c = o && typeof o == "object" && "value" in o;
|
|
928
928
|
(() => {
|
|
929
929
|
try {
|
|
930
|
-
return
|
|
930
|
+
return P(o);
|
|
931
931
|
} catch {
|
|
932
932
|
return !1;
|
|
933
933
|
}
|
|
@@ -937,7 +937,7 @@ function Wt(e, n, t, s, r) {
|
|
|
937
937
|
else if (typeof e == "string") {
|
|
938
938
|
if (!s) return;
|
|
939
939
|
try {
|
|
940
|
-
const i =
|
|
940
|
+
const i = Pe(e, s);
|
|
941
941
|
if (typeof i == "object" && i !== null) {
|
|
942
942
|
for (const [o, c] of Object.entries(i))
|
|
943
943
|
if (o.startsWith("data-") || o.startsWith("aria-") || o === "class")
|
|
@@ -946,7 +946,7 @@ function Wt(e, n, t, s, r) {
|
|
|
946
946
|
const f = c && typeof c == "object" && "value" in c;
|
|
947
947
|
(() => {
|
|
948
948
|
try {
|
|
949
|
-
return
|
|
949
|
+
return P(c);
|
|
950
950
|
} catch {
|
|
951
951
|
return !1;
|
|
952
952
|
}
|
|
@@ -971,7 +971,7 @@ function Ut(e, n, t) {
|
|
|
971
971
|
let s;
|
|
972
972
|
if (typeof e == "string") {
|
|
973
973
|
if (!t) return;
|
|
974
|
-
s =
|
|
974
|
+
s = Pe(e, t);
|
|
975
975
|
} else
|
|
976
976
|
s = e;
|
|
977
977
|
const r = String(n.style || "");
|
|
@@ -992,19 +992,19 @@ function Ut(e, n, t) {
|
|
|
992
992
|
i = "display: none";
|
|
993
993
|
i !== r && (i ? n.style = i : n.style = void 0);
|
|
994
994
|
}
|
|
995
|
-
function
|
|
995
|
+
function Pe(e, n) {
|
|
996
996
|
return Rt.evaluate(e, n);
|
|
997
997
|
}
|
|
998
998
|
function zt(e, n, t, s) {
|
|
999
999
|
let r;
|
|
1000
1000
|
if (typeof e == "string") {
|
|
1001
1001
|
if (!t) return;
|
|
1002
|
-
r =
|
|
1002
|
+
r = Pe(e, t);
|
|
1003
1003
|
} else
|
|
1004
1004
|
r = e;
|
|
1005
1005
|
try {
|
|
1006
1006
|
if (r && typeof r == "object") {
|
|
1007
|
-
if (
|
|
1007
|
+
if (P(r))
|
|
1008
1008
|
r = r.value;
|
|
1009
1009
|
else if ("value" in r && typeof r.value < "u") {
|
|
1010
1010
|
const u = r.value;
|
|
@@ -1019,8 +1019,8 @@ function zt(e, n, t, s) {
|
|
|
1019
1019
|
else if (Array.isArray(r))
|
|
1020
1020
|
i = r.filter(Boolean);
|
|
1021
1021
|
else if (typeof r == "object" && r !== null)
|
|
1022
|
-
for (const [u,
|
|
1023
|
-
|
|
1022
|
+
for (const [u, h] of Object.entries(r))
|
|
1023
|
+
h && i.push(u);
|
|
1024
1024
|
const o = i.join(" "), c = s && s.class || n.class || "", f = c ? `${c} ${o}`.trim() : o.trim();
|
|
1025
1025
|
f ? n.class = f : n.class = void 0;
|
|
1026
1026
|
}
|
|
@@ -1028,7 +1028,7 @@ function Kt(e, n, t) {
|
|
|
1028
1028
|
let s;
|
|
1029
1029
|
if (typeof e == "string") {
|
|
1030
1030
|
if (!t) return;
|
|
1031
|
-
s =
|
|
1031
|
+
s = Pe(e, t);
|
|
1032
1032
|
} else
|
|
1033
1033
|
s = e;
|
|
1034
1034
|
let r = "";
|
|
@@ -1041,7 +1041,7 @@ function Kt(e, n, t) {
|
|
|
1041
1041
|
const u = c.replace(
|
|
1042
1042
|
/[A-Z]/g,
|
|
1043
1043
|
(d) => `-${d.toLowerCase()}`
|
|
1044
|
-
),
|
|
1044
|
+
), h = [
|
|
1045
1045
|
"width",
|
|
1046
1046
|
"height",
|
|
1047
1047
|
"top",
|
|
@@ -1068,7 +1068,7 @@ function Kt(e, n, t) {
|
|
|
1068
1068
|
"max-height"
|
|
1069
1069
|
];
|
|
1070
1070
|
let p = String(f);
|
|
1071
|
-
typeof f == "number" &&
|
|
1071
|
+
typeof f == "number" && h.includes(u) && (p = `${f}px`), o.push(`${u}: ${p}`);
|
|
1072
1072
|
}
|
|
1073
1073
|
r = o.join("; ") + (o.length > 0 ? ";" : "");
|
|
1074
1074
|
}
|
|
@@ -1077,24 +1077,24 @@ function Kt(e, n, t) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
function Ft(e, n, t) {
|
|
1079
1079
|
let s = e;
|
|
1080
|
-
typeof e == "string" && t && (s =
|
|
1080
|
+
typeof e == "string" && t && (s = Pe(e, t)), P(s) ? n.reactiveRef = s : n.ref = s;
|
|
1081
1081
|
}
|
|
1082
1082
|
function yt(e, n, t, s) {
|
|
1083
1083
|
const r = {}, i = { ...s || {} }, o = {};
|
|
1084
1084
|
for (const [c, f] of Object.entries(e)) {
|
|
1085
|
-
const { value: u, modifiers:
|
|
1085
|
+
const { value: u, modifiers: h, arg: p } = f;
|
|
1086
1086
|
if (c === "model" || c.startsWith("model:")) {
|
|
1087
|
-
const d = c.split(":"),
|
|
1087
|
+
const d = c.split(":"), k = d.length > 1 ? d[1] : p;
|
|
1088
1088
|
Bt(
|
|
1089
1089
|
u,
|
|
1090
1090
|
// Pass the original value (could be string or reactive state object)
|
|
1091
|
-
|
|
1091
|
+
h,
|
|
1092
1092
|
r,
|
|
1093
1093
|
i,
|
|
1094
1094
|
o,
|
|
1095
1095
|
n,
|
|
1096
1096
|
t,
|
|
1097
|
-
|
|
1097
|
+
k
|
|
1098
1098
|
);
|
|
1099
1099
|
continue;
|
|
1100
1100
|
}
|
|
@@ -1119,13 +1119,13 @@ function yt(e, n, t, s) {
|
|
|
1119
1119
|
try {
|
|
1120
1120
|
if (Object.prototype.hasOwnProperty.call(r, "disabled") && t && Q(t)) {
|
|
1121
1121
|
const f = r.disabled, u = f && typeof f == "object" && "value" in f;
|
|
1122
|
-
let
|
|
1122
|
+
let h = !1;
|
|
1123
1123
|
try {
|
|
1124
|
-
|
|
1124
|
+
h = P(f);
|
|
1125
1125
|
} catch {
|
|
1126
|
-
|
|
1126
|
+
h = !1;
|
|
1127
1127
|
}
|
|
1128
|
-
if (!u && !
|
|
1128
|
+
if (!u && !h)
|
|
1129
1129
|
try {
|
|
1130
1130
|
i.disabled = f, delete r.disabled;
|
|
1131
1131
|
const p = globalThis;
|
|
@@ -1205,54 +1205,54 @@ async function we(e, n) {
|
|
|
1205
1205
|
if (s?.onBeforeEnter)
|
|
1206
1206
|
try {
|
|
1207
1207
|
s.onBeforeEnter(e);
|
|
1208
|
-
} catch (
|
|
1209
|
-
B("Transition onBeforeEnter error:",
|
|
1208
|
+
} catch (N) {
|
|
1209
|
+
B("Transition onBeforeEnter error:", N);
|
|
1210
1210
|
}
|
|
1211
1211
|
if (!r)
|
|
1212
|
-
return s?.onEnter ? new Promise((
|
|
1213
|
-
const
|
|
1214
|
-
typeof
|
|
1212
|
+
return s?.onEnter ? new Promise((N) => {
|
|
1213
|
+
const _ = s.onEnter;
|
|
1214
|
+
typeof _ == "function" ? _(e, () => {
|
|
1215
1215
|
if (s?.onAfterEnter)
|
|
1216
1216
|
try {
|
|
1217
1217
|
s.onAfterEnter(e);
|
|
1218
1218
|
} catch (a) {
|
|
1219
1219
|
B("Transition onAfterEnter error:", a);
|
|
1220
1220
|
}
|
|
1221
|
-
|
|
1222
|
-
}) :
|
|
1221
|
+
N();
|
|
1222
|
+
}) : N();
|
|
1223
1223
|
}) : void 0;
|
|
1224
1224
|
const o = be(t?.enterFrom), c = be(t?.enterActive), f = be(t?.enterTo);
|
|
1225
1225
|
ve(e, o), e.offsetHeight, ve(e, c), e.offsetHeight;
|
|
1226
1226
|
let u;
|
|
1227
1227
|
if (s?.onEnter) {
|
|
1228
|
-
const
|
|
1229
|
-
u =
|
|
1228
|
+
const N = new Promise((_) => {
|
|
1229
|
+
u = _;
|
|
1230
1230
|
});
|
|
1231
1231
|
try {
|
|
1232
|
-
const
|
|
1233
|
-
typeof
|
|
1232
|
+
const _ = s.onEnter;
|
|
1233
|
+
typeof _ == "function" && _(e, () => {
|
|
1234
1234
|
u && u();
|
|
1235
1235
|
});
|
|
1236
|
-
} catch (
|
|
1237
|
-
B("Transition onEnter error:",
|
|
1236
|
+
} catch (_) {
|
|
1237
|
+
B("Transition onEnter error:", _);
|
|
1238
1238
|
}
|
|
1239
|
-
u && await
|
|
1239
|
+
u && await N;
|
|
1240
1240
|
}
|
|
1241
1241
|
await new Promise(
|
|
1242
|
-
(
|
|
1242
|
+
(N) => requestAnimationFrame(() => N(void 0))
|
|
1243
1243
|
), e.offsetHeight;
|
|
1244
|
-
const
|
|
1244
|
+
const h = window.getComputedStyle(e), p = h.transform, d = h.opacity;
|
|
1245
1245
|
me(e, o), p && p !== "none" && (e.style.transform = p), d && d !== "" && (e.style.opacity = d), e.offsetHeight, await new Promise(
|
|
1246
|
-
(
|
|
1246
|
+
(N) => requestAnimationFrame(() => N(void 0))
|
|
1247
1247
|
), e.style.transform = "", e.style.opacity = "", ve(e, f), e.offsetHeight, await new Promise(
|
|
1248
|
-
(
|
|
1248
|
+
(N) => requestAnimationFrame(() => N(void 0))
|
|
1249
1249
|
);
|
|
1250
|
-
let
|
|
1251
|
-
if (typeof i == "number" ?
|
|
1250
|
+
let k;
|
|
1251
|
+
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)
|
|
1252
1252
|
try {
|
|
1253
1253
|
s.onAfterEnter(e);
|
|
1254
|
-
} catch (
|
|
1255
|
-
B("Transition onAfterEnter error:",
|
|
1254
|
+
} catch (N) {
|
|
1255
|
+
B("Transition onAfterEnter error:", N);
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
1258
|
async function qe(e, n) {
|
|
@@ -1270,8 +1270,8 @@ async function qe(e, n) {
|
|
|
1270
1270
|
if (s?.onAfterLeave)
|
|
1271
1271
|
try {
|
|
1272
1272
|
s.onAfterLeave(e);
|
|
1273
|
-
} catch (
|
|
1274
|
-
B("Transition onAfterLeave error:",
|
|
1273
|
+
} catch (k) {
|
|
1274
|
+
B("Transition onAfterLeave error:", k);
|
|
1275
1275
|
}
|
|
1276
1276
|
p();
|
|
1277
1277
|
}) : p();
|
|
@@ -1296,8 +1296,8 @@ async function qe(e, n) {
|
|
|
1296
1296
|
await new Promise(
|
|
1297
1297
|
(p) => requestAnimationFrame(() => p(void 0))
|
|
1298
1298
|
), await Vt(e, [...o, ...c]), me(e, o), ve(e, f);
|
|
1299
|
-
let
|
|
1300
|
-
if (typeof i == "number" ?
|
|
1299
|
+
let h;
|
|
1300
|
+
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)
|
|
1301
1301
|
try {
|
|
1302
1302
|
s.onAfterLeave(e);
|
|
1303
1303
|
} catch (p) {
|
|
@@ -1379,7 +1379,7 @@ function Te(e, n, t) {
|
|
|
1379
1379
|
const s = e.props?.reactiveRef ?? (e.props?.props && e.props.props.reactiveRef), r = e.props?.ref ?? (e.props?.props && e.props.props.ref);
|
|
1380
1380
|
if (s)
|
|
1381
1381
|
try {
|
|
1382
|
-
if (
|
|
1382
|
+
if (P(s) || typeof s == "object" && "value" in s)
|
|
1383
1383
|
s.value = n;
|
|
1384
1384
|
else if (typeof s == "function")
|
|
1385
1385
|
s(n);
|
|
@@ -1405,7 +1405,7 @@ function Ye(e, n) {
|
|
|
1405
1405
|
if (!o || typeof o != "object") return o;
|
|
1406
1406
|
let c = o.props?.key ?? o.key;
|
|
1407
1407
|
if (!c) {
|
|
1408
|
-
const p = o.tag || "node",
|
|
1408
|
+
const p = o.tag || "node", k = [
|
|
1409
1409
|
// attrs (kebab-case)
|
|
1410
1410
|
o.props?.attrs?.id,
|
|
1411
1411
|
o.props?.attrs?.name,
|
|
@@ -1415,15 +1415,15 @@ function Ye(e, n) {
|
|
|
1415
1415
|
o.props?.props?.name,
|
|
1416
1416
|
o.props?.props?.dataKey,
|
|
1417
1417
|
o.props?.props?.["data-key"]
|
|
1418
|
-
].find((
|
|
1419
|
-
c =
|
|
1418
|
+
].find((N) => N != null) ?? "";
|
|
1419
|
+
c = k ? `${n}:${p}:${k}` : `${n}:${p}`;
|
|
1420
1420
|
}
|
|
1421
1421
|
let f = c, u = 1;
|
|
1422
1422
|
for (; i.has(f); )
|
|
1423
1423
|
f = `${c}#${u++}`;
|
|
1424
1424
|
i.add(f);
|
|
1425
|
-
let
|
|
1426
|
-
return Array.isArray(
|
|
1425
|
+
let h = o.children;
|
|
1426
|
+
return Array.isArray(h) && (h = Ye(h, f)), { ...o, key: f, children: h };
|
|
1427
1427
|
});
|
|
1428
1428
|
}
|
|
1429
1429
|
const t = e, s = t.props?.key ?? t.key ?? n;
|
|
@@ -1443,107 +1443,107 @@ function at(e, n, t, s) {
|
|
|
1443
1443
|
}, f = {
|
|
1444
1444
|
...i || {},
|
|
1445
1445
|
...o.attrs || {}
|
|
1446
|
-
}, u = n.props ?? {},
|
|
1446
|
+
}, u = n.props ?? {}, h = c, p = !!(t?.isCustomElement ?? n?.isCustomElement ?? !1);
|
|
1447
1447
|
let d = !1;
|
|
1448
|
-
for (const a in { ...u, ...
|
|
1449
|
-
const
|
|
1450
|
-
let
|
|
1451
|
-
if (
|
|
1452
|
-
(
|
|
1453
|
-
}),
|
|
1454
|
-
(
|
|
1455
|
-
}), !(
|
|
1448
|
+
for (const a in { ...u, ...h }) {
|
|
1449
|
+
const b = u[a], E = h[a];
|
|
1450
|
+
let m = b, v = E;
|
|
1451
|
+
if ($(() => {
|
|
1452
|
+
(P(b) || Ne(b)) && (m = b.value);
|
|
1453
|
+
}), $(() => {
|
|
1454
|
+
(P(E) || Ne(E)) && (v = E.value);
|
|
1455
|
+
}), !(b === E && m === v))
|
|
1456
1456
|
if (d = !0, a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement)) {
|
|
1457
|
-
const
|
|
1458
|
-
e.value !==
|
|
1457
|
+
const S = Ze(E), C = S == null ? "" : String(S);
|
|
1458
|
+
e.value !== C && (e.value = C);
|
|
1459
1459
|
} else if (a === "checked" && e instanceof HTMLInputElement) {
|
|
1460
|
-
const
|
|
1461
|
-
e.checked = !!
|
|
1462
|
-
} else if (a.startsWith("on") && typeof
|
|
1463
|
-
const
|
|
1464
|
-
typeof
|
|
1460
|
+
const S = Ze(E);
|
|
1461
|
+
e.checked = !!S;
|
|
1462
|
+
} else if (a.startsWith("on") && typeof E == "function") {
|
|
1463
|
+
const S = ht(a);
|
|
1464
|
+
typeof b == "function" && ne.removeListener(e, S, b), typeof E == "function" && ne.addListener(e, S, E);
|
|
1465
1465
|
try {
|
|
1466
|
-
if (
|
|
1467
|
-
const
|
|
1468
|
-
let
|
|
1466
|
+
if (S && S.startsWith("update:")) {
|
|
1467
|
+
const C = S.split(":", 2)[1], T = h[C];
|
|
1468
|
+
let g = [];
|
|
1469
1469
|
try {
|
|
1470
|
-
if (
|
|
1471
|
-
const l =
|
|
1472
|
-
|
|
1473
|
-
} else
|
|
1470
|
+
if (P(T)) {
|
|
1471
|
+
const l = T.value;
|
|
1472
|
+
g = l && typeof l == "object" ? Object.keys(l) : [];
|
|
1473
|
+
} else T && typeof T == "object" && (g = Object.keys(T));
|
|
1474
1474
|
} catch {
|
|
1475
|
-
|
|
1475
|
+
g = [];
|
|
1476
1476
|
}
|
|
1477
|
-
const
|
|
1477
|
+
const A = g.filter(
|
|
1478
1478
|
(l) => typeof l == "string" && !l.startsWith("_") && l !== "constructor"
|
|
1479
1479
|
);
|
|
1480
|
-
for (const l of
|
|
1481
|
-
const
|
|
1482
|
-
const O =
|
|
1480
|
+
for (const l of A) {
|
|
1481
|
+
const y = `update:${l}`, w = (L) => {
|
|
1482
|
+
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 };
|
|
1483
1483
|
try {
|
|
1484
|
-
typeof
|
|
1484
|
+
typeof E == "function" && E({
|
|
1485
1485
|
detail: D
|
|
1486
1486
|
});
|
|
1487
1487
|
} catch {
|
|
1488
1488
|
}
|
|
1489
1489
|
};
|
|
1490
|
-
|
|
1491
|
-
ne.addListener(e,
|
|
1490
|
+
$(() => {
|
|
1491
|
+
ne.addListener(e, y, w);
|
|
1492
1492
|
});
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
1495
1495
|
} catch {
|
|
1496
1496
|
}
|
|
1497
|
-
} else if (
|
|
1497
|
+
} else if (E == null)
|
|
1498
1498
|
G(e, a);
|
|
1499
1499
|
else {
|
|
1500
|
-
const
|
|
1501
|
-
if (
|
|
1500
|
+
const S = t?.isCustomElement ?? n?.isCustomElement ?? !1;
|
|
1501
|
+
if (S || a in e)
|
|
1502
1502
|
try {
|
|
1503
|
-
e[a] =
|
|
1503
|
+
e[a] = E, a === "disabled" && E === !1 && !S && Q(e) && G(e, "disabled");
|
|
1504
1504
|
} catch {
|
|
1505
1505
|
}
|
|
1506
1506
|
else
|
|
1507
|
-
|
|
1507
|
+
E === !1 && G(e, a);
|
|
1508
1508
|
}
|
|
1509
1509
|
}
|
|
1510
|
-
for (const [a,
|
|
1510
|
+
for (const [a, b] of Object.entries(
|
|
1511
1511
|
o.listeners || {}
|
|
1512
1512
|
)) {
|
|
1513
|
-
ne.addListener(e, a,
|
|
1513
|
+
ne.addListener(e, a, b);
|
|
1514
1514
|
try {
|
|
1515
|
-
const
|
|
1516
|
-
|
|
1517
|
-
|
|
1515
|
+
const E = e && e.parentElement;
|
|
1516
|
+
E && E !== e && ne.addListener(
|
|
1517
|
+
E,
|
|
1518
1518
|
a,
|
|
1519
|
-
|
|
1519
|
+
b
|
|
1520
1520
|
);
|
|
1521
1521
|
} catch {
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
const
|
|
1525
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1524
|
+
const k = { ...n.attrs ?? {} }, N = f, _ = o && o.attrs || {};
|
|
1525
|
+
if (Object.prototype.hasOwnProperty.call(_, "class") && typeof e.getAttribute == "function") {
|
|
1526
1526
|
const a = e.getAttribute("class");
|
|
1527
|
-
a !== null && (
|
|
1527
|
+
a !== null && (k.class = a);
|
|
1528
1528
|
}
|
|
1529
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1529
|
+
if (Object.prototype.hasOwnProperty.call(_, "style") && typeof e.getAttribute == "function") {
|
|
1530
1530
|
const a = e.getAttribute("style");
|
|
1531
|
-
a !== null && (
|
|
1531
|
+
a !== null && (k.style = a);
|
|
1532
1532
|
}
|
|
1533
1533
|
try {
|
|
1534
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1534
|
+
if (Object.prototype.hasOwnProperty.call(_, "class") && _.class === void 0 && typeof e.getAttribute == "function") {
|
|
1535
1535
|
const a = e.getAttribute("class");
|
|
1536
|
-
a !== null && (
|
|
1536
|
+
a !== null && (k.class = a);
|
|
1537
1537
|
}
|
|
1538
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1538
|
+
if (Object.prototype.hasOwnProperty.call(_, "style") && _.style === void 0 && typeof e.getAttribute == "function") {
|
|
1539
1539
|
const a = e.getAttribute("style");
|
|
1540
|
-
a !== null && (
|
|
1540
|
+
a !== null && (k.style = a);
|
|
1541
1541
|
}
|
|
1542
1542
|
try {
|
|
1543
1543
|
if (typeof e.getAttribute == "function") {
|
|
1544
1544
|
const a = e.getAttribute("class");
|
|
1545
1545
|
try {
|
|
1546
|
-
e instanceof HTMLInputElement && e.type === "text" && a !== null && a !==
|
|
1546
|
+
e instanceof HTMLInputElement && e.type === "text" && a !== null && a !== k.class && (k.class = a);
|
|
1547
1547
|
} catch {
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
@@ -1551,129 +1551,129 @@ function at(e, n, t, s) {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
} catch {
|
|
1553
1553
|
}
|
|
1554
|
-
for (const a in { ...
|
|
1555
|
-
const
|
|
1556
|
-
let
|
|
1557
|
-
if (
|
|
1558
|
-
if (d = !0,
|
|
1559
|
-
|
|
1554
|
+
for (const a in { ...k, ...N }) {
|
|
1555
|
+
const b = k[a], E = N[a];
|
|
1556
|
+
let m = b, v = E;
|
|
1557
|
+
if (P(b) && (m = b.value), P(E) && (v = E.value), m !== v)
|
|
1558
|
+
if (d = !0, v == null || v === !1)
|
|
1559
|
+
$(() => {
|
|
1560
1560
|
G(e, a);
|
|
1561
|
-
}), oe(n, a, void 0), a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ?
|
|
1561
|
+
}), oe(n, a, void 0), a === "value" && (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement ? $(() => {
|
|
1562
1562
|
e.value = "";
|
|
1563
|
-
}) : e instanceof HTMLSelectElement ?
|
|
1563
|
+
}) : e instanceof HTMLSelectElement ? $(() => {
|
|
1564
1564
|
e.value = "";
|
|
1565
|
-
}) : e instanceof HTMLProgressElement &&
|
|
1565
|
+
}) : e instanceof HTMLProgressElement && $(() => {
|
|
1566
1566
|
e.value = 0;
|
|
1567
|
-
})), a === "checked" && e instanceof HTMLInputElement &&
|
|
1567
|
+
})), a === "checked" && e instanceof HTMLInputElement && $(() => {
|
|
1568
1568
|
e.checked = !1;
|
|
1569
|
-
}), a === "disabled" && Q(e) &&
|
|
1569
|
+
}), a === "disabled" && Q(e) && $(() => {
|
|
1570
1570
|
(e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = !1);
|
|
1571
1571
|
});
|
|
1572
1572
|
else {
|
|
1573
1573
|
if (a === "value") {
|
|
1574
1574
|
if (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement) {
|
|
1575
|
-
|
|
1576
|
-
e.value =
|
|
1575
|
+
$(() => {
|
|
1576
|
+
e.value = v ?? "";
|
|
1577
1577
|
});
|
|
1578
1578
|
continue;
|
|
1579
1579
|
} else if (e instanceof HTMLSelectElement) {
|
|
1580
|
-
|
|
1581
|
-
e.value =
|
|
1580
|
+
$(() => {
|
|
1581
|
+
e.value = v ?? "";
|
|
1582
1582
|
});
|
|
1583
1583
|
continue;
|
|
1584
1584
|
} else if (e instanceof HTMLProgressElement) {
|
|
1585
|
-
|
|
1586
|
-
e.value = Number(
|
|
1585
|
+
$(() => {
|
|
1586
|
+
e.value = Number(v);
|
|
1587
1587
|
});
|
|
1588
1588
|
continue;
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
1591
1591
|
if (a === "checked" && e instanceof HTMLInputElement) {
|
|
1592
|
-
|
|
1593
|
-
e.checked = !!
|
|
1592
|
+
$(() => {
|
|
1593
|
+
e.checked = !!v;
|
|
1594
1594
|
});
|
|
1595
1595
|
continue;
|
|
1596
1596
|
}
|
|
1597
1597
|
if (a === "style") {
|
|
1598
|
-
const
|
|
1599
|
-
|
|
1598
|
+
const C = F(v);
|
|
1599
|
+
C !== null && U(e, a, String(C)), oe(n, a, v);
|
|
1600
1600
|
continue;
|
|
1601
1601
|
}
|
|
1602
1602
|
if (a === "class") {
|
|
1603
|
-
const
|
|
1604
|
-
|
|
1603
|
+
const C = F(v);
|
|
1604
|
+
C !== null && U(e, a, String(C)), oe(n, a, v);
|
|
1605
1605
|
continue;
|
|
1606
1606
|
}
|
|
1607
1607
|
if (a === "disabled" && Q(e)) {
|
|
1608
|
-
|
|
1609
|
-
const
|
|
1610
|
-
(e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled =
|
|
1611
|
-
}), pe(
|
|
1608
|
+
$(() => {
|
|
1609
|
+
const C = pe(v);
|
|
1610
|
+
(e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = C);
|
|
1611
|
+
}), pe(v) ? $(() => {
|
|
1612
1612
|
U(e, a, "");
|
|
1613
|
-
}) :
|
|
1613
|
+
}) : $(() => {
|
|
1614
1614
|
G(e, a);
|
|
1615
1615
|
});
|
|
1616
1616
|
continue;
|
|
1617
1617
|
}
|
|
1618
|
-
const
|
|
1619
|
-
if (p && !
|
|
1618
|
+
const S = e.namespaceURI === "http://www.w3.org/2000/svg";
|
|
1619
|
+
if (p && !S && a.includes("-"))
|
|
1620
1620
|
if (pt(a)) {
|
|
1621
|
-
const
|
|
1622
|
-
if (
|
|
1621
|
+
const C = F(E ?? v);
|
|
1622
|
+
if (C !== null) {
|
|
1623
1623
|
try {
|
|
1624
|
-
U(e, a, String(
|
|
1624
|
+
U(e, a, String(C));
|
|
1625
1625
|
} catch {
|
|
1626
1626
|
}
|
|
1627
|
-
oe(n, a,
|
|
1627
|
+
oe(n, a, v);
|
|
1628
1628
|
}
|
|
1629
1629
|
} else {
|
|
1630
|
-
const
|
|
1630
|
+
const C = Qe(a);
|
|
1631
1631
|
try {
|
|
1632
|
-
const
|
|
1633
|
-
|
|
1632
|
+
const T = e;
|
|
1633
|
+
T[C] = P(E) ? E : v, oe(n, a, v);
|
|
1634
1634
|
} catch {
|
|
1635
|
-
const
|
|
1636
|
-
|
|
1635
|
+
const T = F(E ?? v);
|
|
1636
|
+
T !== null && U(e, a, String(T));
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
1639
|
-
else if (!
|
|
1639
|
+
else if (!S && a in e)
|
|
1640
1640
|
try {
|
|
1641
|
-
const
|
|
1642
|
-
|
|
1641
|
+
const C = e;
|
|
1642
|
+
C[a] = P(E) ? E : v, oe(n, a, v);
|
|
1643
1643
|
} catch {
|
|
1644
|
-
const
|
|
1645
|
-
|
|
1644
|
+
const C = F(v);
|
|
1645
|
+
C !== null && (U(e, a, String(C)), oe(n, a, v));
|
|
1646
1646
|
}
|
|
1647
1647
|
else {
|
|
1648
|
-
const
|
|
1649
|
-
|
|
1648
|
+
const C = F(v);
|
|
1649
|
+
C !== null && (U(e, a, String(C)), oe(n, a, v));
|
|
1650
1650
|
}
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
1653
1653
|
try {
|
|
1654
1654
|
if (Q(e)) {
|
|
1655
1655
|
const a = c.disabled;
|
|
1656
|
-
let
|
|
1656
|
+
let b;
|
|
1657
1657
|
try {
|
|
1658
|
-
const
|
|
1658
|
+
const m = Object.prototype.hasOwnProperty.call(
|
|
1659
1659
|
o.props || {},
|
|
1660
1660
|
"disabled"
|
|
1661
|
-
),
|
|
1662
|
-
let
|
|
1663
|
-
|
|
1664
|
-
|
|
1661
|
+
), v = a && typeof a == "object" && "value" in a;
|
|
1662
|
+
let S = !1;
|
|
1663
|
+
$(() => {
|
|
1664
|
+
S = !!P(a);
|
|
1665
1665
|
});
|
|
1666
|
-
const
|
|
1667
|
-
|
|
1666
|
+
const C = Je(a);
|
|
1667
|
+
S || v || m || C ? b = a : b = f.disabled;
|
|
1668
1668
|
} catch {
|
|
1669
|
-
|
|
1669
|
+
b = f.disabled;
|
|
1670
1670
|
}
|
|
1671
|
-
const
|
|
1672
|
-
|
|
1673
|
-
(e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled =
|
|
1674
|
-
}),
|
|
1671
|
+
const E = pe(b);
|
|
1672
|
+
$(() => {
|
|
1673
|
+
(e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLButtonElement) && (e.disabled = E);
|
|
1674
|
+
}), E ? $(() => {
|
|
1675
1675
|
U(e, "disabled", "");
|
|
1676
|
-
}) :
|
|
1676
|
+
}) : $(() => {
|
|
1677
1677
|
G(e, "disabled");
|
|
1678
1678
|
});
|
|
1679
1679
|
}
|
|
@@ -1681,9 +1681,9 @@ function at(e, n, t, s) {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
if (p && d) {
|
|
1683
1683
|
const a = e;
|
|
1684
|
-
|
|
1684
|
+
$(() => {
|
|
1685
1685
|
a._applyProps?.(a._cfg);
|
|
1686
|
-
}),
|
|
1686
|
+
}), $(() => {
|
|
1687
1687
|
typeof a.requestRender == "function" ? a.requestRender() : typeof a._render == "function" && a._render?.(a._cfg);
|
|
1688
1688
|
});
|
|
1689
1689
|
}
|
|
@@ -1702,200 +1702,200 @@ function J(e, n, t, s = null) {
|
|
|
1702
1702
|
return document.createRange().createContextualFragment(a);
|
|
1703
1703
|
}
|
|
1704
1704
|
if (e.tag === "#anchor") {
|
|
1705
|
-
const a = e,
|
|
1706
|
-
a.key != null && (Z(
|
|
1707
|
-
const
|
|
1708
|
-
|
|
1709
|
-
for (const
|
|
1710
|
-
const
|
|
1711
|
-
|
|
1705
|
+
const a = e, b = Array.isArray(a.children) ? a.children : [], E = document.createTextNode(""), m = document.createTextNode("");
|
|
1706
|
+
a.key != null && (Z(E, `${a.key}:start`), Z(m, `${a.key}:end`)), a._startNode = E, a._endNode = m;
|
|
1707
|
+
const v = document.createDocumentFragment();
|
|
1708
|
+
v.appendChild(E);
|
|
1709
|
+
for (const S of b) {
|
|
1710
|
+
const C = J(
|
|
1711
|
+
S,
|
|
1712
1712
|
n,
|
|
1713
1713
|
t,
|
|
1714
1714
|
// propagate parent namespace (was previously a boolean)
|
|
1715
1715
|
s
|
|
1716
1716
|
);
|
|
1717
|
-
if (a.key != null &&
|
|
1718
|
-
const
|
|
1719
|
-
|
|
1717
|
+
if (a.key != null && C instanceof Element && !C.hasAttribute("data-anchor-key")) {
|
|
1718
|
+
const T = S;
|
|
1719
|
+
T && typeof T == "object" && T.key != null || Z(C, String(a.key));
|
|
1720
1720
|
}
|
|
1721
|
-
|
|
1721
|
+
v.appendChild(C);
|
|
1722
1722
|
}
|
|
1723
|
-
return
|
|
1723
|
+
return v.appendChild(m), v;
|
|
1724
1724
|
}
|
|
1725
1725
|
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);
|
|
1726
1726
|
e.key != null && Z(c, e.key), e.props && e.props?._transitionGroup && Zt(
|
|
1727
1727
|
c,
|
|
1728
1728
|
e.props?._transitionGroup
|
|
1729
1729
|
);
|
|
1730
|
-
const { props: f = {}, attrs: u = {}, directives:
|
|
1731
|
-
|
|
1730
|
+
const { props: f = {}, attrs: u = {}, directives: h = {} } = e.props ?? {}, p = yt(
|
|
1731
|
+
h,
|
|
1732
1732
|
n,
|
|
1733
1733
|
c instanceof HTMLElement ? c : void 0,
|
|
1734
1734
|
u
|
|
1735
1735
|
), d = {
|
|
1736
1736
|
...f,
|
|
1737
1737
|
...p.props
|
|
1738
|
-
},
|
|
1738
|
+
}, k = {
|
|
1739
1739
|
...u,
|
|
1740
1740
|
...p.attrs
|
|
1741
1741
|
};
|
|
1742
1742
|
try {
|
|
1743
|
-
const a = (
|
|
1744
|
-
if (
|
|
1745
|
-
const
|
|
1746
|
-
|
|
1743
|
+
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);
|
|
1744
|
+
if (b !== null) {
|
|
1745
|
+
const E = String(b).trim();
|
|
1746
|
+
E && U(c, "class", E);
|
|
1747
1747
|
}
|
|
1748
1748
|
} catch {
|
|
1749
1749
|
}
|
|
1750
1750
|
try {
|
|
1751
1751
|
if (d.disabled !== void 0 && c && Q(c)) {
|
|
1752
|
-
const a = d.disabled,
|
|
1753
|
-
let
|
|
1752
|
+
const a = d.disabled, b = a && typeof a == "object" && "value" in a;
|
|
1753
|
+
let E = !1;
|
|
1754
1754
|
try {
|
|
1755
|
-
|
|
1755
|
+
E = P(a);
|
|
1756
1756
|
} catch {
|
|
1757
|
-
|
|
1757
|
+
E = !1;
|
|
1758
1758
|
}
|
|
1759
|
-
!
|
|
1760
|
-
|
|
1759
|
+
!b && !E && $(() => {
|
|
1760
|
+
k.disabled = a, delete d.disabled;
|
|
1761
1761
|
});
|
|
1762
1762
|
}
|
|
1763
1763
|
} catch {
|
|
1764
1764
|
}
|
|
1765
|
-
const
|
|
1766
|
-
for (const a in
|
|
1767
|
-
const
|
|
1765
|
+
const N = c.namespaceURI === "http://www.w3.org/2000/svg";
|
|
1766
|
+
for (const a in k) {
|
|
1767
|
+
const b = k[a];
|
|
1768
1768
|
if (typeof a != "string" || /\[object Object\]/.test(a))
|
|
1769
1769
|
continue;
|
|
1770
|
-
const
|
|
1771
|
-
if (typeof
|
|
1772
|
-
|
|
1770
|
+
const E = Ze(b);
|
|
1771
|
+
if (typeof E == "boolean")
|
|
1772
|
+
E ? U(c, a, "") : $(() => {
|
|
1773
1773
|
G(c, a);
|
|
1774
1774
|
});
|
|
1775
|
-
else if (
|
|
1775
|
+
else if (E != null) {
|
|
1776
1776
|
if (a === "disabled" && Q(c)) {
|
|
1777
|
-
const
|
|
1778
|
-
|
|
1779
|
-
c.disabled =
|
|
1780
|
-
}),
|
|
1777
|
+
const m = d.disabled, v = Je(m) ? m : E, S = pe(v);
|
|
1778
|
+
$(() => {
|
|
1779
|
+
c.disabled = S;
|
|
1780
|
+
}), S ? $(() => {
|
|
1781
1781
|
U(c, a, "");
|
|
1782
|
-
}) :
|
|
1782
|
+
}) : $(() => {
|
|
1783
1783
|
G(c, a);
|
|
1784
1784
|
});
|
|
1785
1785
|
continue;
|
|
1786
1786
|
}
|
|
1787
|
-
if (!
|
|
1787
|
+
if (!N && a === "value" && (c instanceof HTMLInputElement || c instanceof HTMLTextAreaElement || c instanceof HTMLSelectElement || c instanceof HTMLProgressElement))
|
|
1788
1788
|
try {
|
|
1789
|
-
c instanceof HTMLProgressElement ? c.value = Number(
|
|
1789
|
+
c instanceof HTMLProgressElement ? c.value = Number(E) : c.value = String(E ?? "");
|
|
1790
1790
|
} catch {
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1791
|
+
const m = F(E);
|
|
1792
|
+
m !== null && U(c, a, String(m));
|
|
1793
1793
|
}
|
|
1794
|
-
else if (!
|
|
1794
|
+
else if (!N && a === "checked" && c instanceof HTMLInputElement)
|
|
1795
1795
|
try {
|
|
1796
|
-
c.checked = !!
|
|
1796
|
+
c.checked = !!E;
|
|
1797
1797
|
} catch {
|
|
1798
|
-
const
|
|
1799
|
-
|
|
1798
|
+
const m = F(E);
|
|
1799
|
+
m !== null && U(c, a, String(m));
|
|
1800
1800
|
}
|
|
1801
|
-
else if (!
|
|
1801
|
+
else if (!N && a in c)
|
|
1802
1802
|
try {
|
|
1803
|
-
c[a] =
|
|
1803
|
+
c[a] = E, a === "disabled" && E === !1 && Q(c) && G(c, "disabled"), oe(e.props, a, E);
|
|
1804
1804
|
} catch {
|
|
1805
|
-
const
|
|
1806
|
-
|
|
1805
|
+
const m = F(E);
|
|
1806
|
+
m !== null && U(c, a, String(m));
|
|
1807
1807
|
}
|
|
1808
|
-
else if ((e.props?.isCustomElement ?? !1) && !
|
|
1809
|
-
const
|
|
1808
|
+
else if ((e.props?.isCustomElement ?? !1) && !N && a.includes("-")) {
|
|
1809
|
+
const v = Qe(a);
|
|
1810
1810
|
try {
|
|
1811
|
-
c[
|
|
1811
|
+
c[v] = E;
|
|
1812
1812
|
} catch {
|
|
1813
|
-
const
|
|
1814
|
-
|
|
1813
|
+
const S = F(E);
|
|
1814
|
+
S !== null && U(c, a, String(S));
|
|
1815
1815
|
}
|
|
1816
1816
|
} else {
|
|
1817
|
-
const
|
|
1818
|
-
|
|
1817
|
+
const v = F(E);
|
|
1818
|
+
v !== null && U(c, a, String(v));
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
1822
|
for (const a in d) {
|
|
1823
|
-
const
|
|
1823
|
+
const b = d[a];
|
|
1824
1824
|
if (!(typeof a != "string" || /\[object Object\]/.test(a)))
|
|
1825
1825
|
if (a === "value" && (c instanceof HTMLInputElement || c instanceof HTMLTextAreaElement || c instanceof HTMLSelectElement)) {
|
|
1826
|
-
const
|
|
1827
|
-
|
|
1828
|
-
c.value = String(
|
|
1826
|
+
const E = typeof b == "object" && b !== null && Ne(b) ? b.value : b;
|
|
1827
|
+
$(() => {
|
|
1828
|
+
c.value = String(E ?? "");
|
|
1829
1829
|
});
|
|
1830
|
-
} else if (a.startsWith("on") && typeof
|
|
1831
|
-
const
|
|
1832
|
-
const
|
|
1833
|
-
if (
|
|
1834
|
-
const
|
|
1835
|
-
(
|
|
1830
|
+
} else if (a.startsWith("on") && typeof b == "function") {
|
|
1831
|
+
const E = ht(a), m = E.includes(":") ? (() => {
|
|
1832
|
+
const v = E.split(":"), S = v[1];
|
|
1833
|
+
if (S.includes("-")) {
|
|
1834
|
+
const C = S.split("-").map(
|
|
1835
|
+
(T, g) => g === 0 ? T : T.charAt(0).toUpperCase() + T.slice(1)
|
|
1836
1836
|
).join("");
|
|
1837
|
-
return `${
|
|
1837
|
+
return `${v[0]}:${C}`;
|
|
1838
1838
|
} else {
|
|
1839
|
-
const
|
|
1840
|
-
return `${
|
|
1839
|
+
const C = S.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1840
|
+
return `${v[0]}:${C}`;
|
|
1841
1841
|
}
|
|
1842
|
-
})() :
|
|
1843
|
-
p.listeners && (p.listeners[
|
|
1842
|
+
})() : E;
|
|
1843
|
+
p.listeners && (p.listeners[E] || p.listeners[m]) || ne.addListener(c, E, b);
|
|
1844
1844
|
} else {
|
|
1845
|
-
if (a.startsWith("on") &&
|
|
1845
|
+
if (a.startsWith("on") && b === void 0)
|
|
1846
1846
|
continue;
|
|
1847
|
-
if (
|
|
1847
|
+
if (b == null || b === !1)
|
|
1848
1848
|
G(c, a);
|
|
1849
1849
|
else {
|
|
1850
|
-
const
|
|
1850
|
+
const E = e.props?.isCustomElement ?? !1, m = typeof b == "object" && b !== null && P(b) ? b : Ne(b) && typeof b.value < "u" ? b.value : b;
|
|
1851
1851
|
if (a === "class" || a === "style") {
|
|
1852
1852
|
try {
|
|
1853
|
-
const
|
|
1854
|
-
|
|
1853
|
+
const v = F(m);
|
|
1854
|
+
v !== null && U(c, a, String(v));
|
|
1855
1855
|
} catch {
|
|
1856
1856
|
}
|
|
1857
1857
|
continue;
|
|
1858
1858
|
}
|
|
1859
|
-
if (
|
|
1859
|
+
if (E || a in c)
|
|
1860
1860
|
try {
|
|
1861
|
-
const
|
|
1861
|
+
const v = typeof b == "object" && b !== null && P(b) ? b : Ne(b) ? b.value : b;
|
|
1862
1862
|
if (a === "disabled" && Q(c)) {
|
|
1863
|
-
const
|
|
1864
|
-
|
|
1865
|
-
c.disabled =
|
|
1866
|
-
}),
|
|
1863
|
+
const S = d.disabled !== void 0 ? d.disabled : v, C = pe(S);
|
|
1864
|
+
$(() => {
|
|
1865
|
+
c.disabled = C;
|
|
1866
|
+
}), C ? $(() => {
|
|
1867
1867
|
U(c, a, "");
|
|
1868
|
-
}) :
|
|
1868
|
+
}) : $(() => {
|
|
1869
1869
|
G(c, a);
|
|
1870
1870
|
});
|
|
1871
1871
|
continue;
|
|
1872
1872
|
}
|
|
1873
1873
|
try {
|
|
1874
1874
|
if (typeof c[a] == "boolean") {
|
|
1875
|
-
let
|
|
1876
|
-
typeof
|
|
1875
|
+
let C = v;
|
|
1876
|
+
typeof v == "string" ? v === "false" ? C = !1 : v === "true" ? C = !0 : C = !!v && v !== "" : C = !!v, c[a] = C;
|
|
1877
1877
|
} else
|
|
1878
|
-
c[a] =
|
|
1878
|
+
c[a] = v;
|
|
1879
1879
|
} catch {
|
|
1880
|
-
c[a] =
|
|
1880
|
+
c[a] = v;
|
|
1881
1881
|
}
|
|
1882
1882
|
} catch {
|
|
1883
1883
|
}
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
1886
|
}
|
|
1887
|
-
for (const [a,
|
|
1887
|
+
for (const [a, b] of Object.entries(
|
|
1888
1888
|
p.listeners || {}
|
|
1889
1889
|
))
|
|
1890
|
-
ne.addListener(c, a,
|
|
1891
|
-
const
|
|
1890
|
+
ne.addListener(c, a, b);
|
|
1891
|
+
const _ = {
|
|
1892
1892
|
...e,
|
|
1893
1893
|
props: {
|
|
1894
1894
|
...e.props,
|
|
1895
1895
|
...p.props
|
|
1896
1896
|
}
|
|
1897
1897
|
};
|
|
1898
|
-
Te(
|
|
1898
|
+
Te(_, c, t);
|
|
1899
1899
|
try {
|
|
1900
1900
|
const a = c;
|
|
1901
1901
|
if (typeof a._applyProps == "function")
|
|
@@ -1908,32 +1908,32 @@ function J(e, n, t, s = null) {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
if (Array.isArray(e.children)) {
|
|
1910
1910
|
const a = e.tag === "foreignObject" && o === kt ? null : c.namespaceURI ?? null;
|
|
1911
|
-
for (const
|
|
1912
|
-
c.appendChild(J(
|
|
1911
|
+
for (const b of e.children)
|
|
1912
|
+
c.appendChild(J(b, n, t, a));
|
|
1913
1913
|
} else typeof e.children == "string" && (c.textContent = e.children);
|
|
1914
1914
|
try {
|
|
1915
|
-
if (c instanceof HTMLSelectElement &&
|
|
1915
|
+
if (c instanceof HTMLSelectElement && k && Object.prototype.hasOwnProperty.call(k, "value"))
|
|
1916
1916
|
try {
|
|
1917
|
-
c.value = String(
|
|
1917
|
+
c.value = String(k.value ?? "");
|
|
1918
1918
|
} catch {
|
|
1919
1919
|
}
|
|
1920
1920
|
} catch {
|
|
1921
1921
|
}
|
|
1922
1922
|
try {
|
|
1923
1923
|
if (Q(c)) {
|
|
1924
|
-
const a = d.disabled,
|
|
1925
|
-
let
|
|
1924
|
+
const a = d.disabled, b = k.disabled, E = a && typeof a == "object" && "value" in a;
|
|
1925
|
+
let m = !1;
|
|
1926
1926
|
try {
|
|
1927
|
-
|
|
1927
|
+
m = !!P(a);
|
|
1928
1928
|
} catch {
|
|
1929
|
-
|
|
1929
|
+
m = !1;
|
|
1930
1930
|
}
|
|
1931
|
-
const
|
|
1932
|
-
|
|
1933
|
-
c.disabled =
|
|
1934
|
-
}),
|
|
1931
|
+
const S = m || E || Je(a) ? a : b, C = pe(S);
|
|
1932
|
+
$(() => {
|
|
1933
|
+
c.disabled = C;
|
|
1934
|
+
}), C ? $(() => {
|
|
1935
1935
|
U(c, "disabled", "");
|
|
1936
|
-
}) :
|
|
1936
|
+
}) : $(() => {
|
|
1937
1937
|
G(c, "disabled");
|
|
1938
1938
|
});
|
|
1939
1939
|
}
|
|
@@ -1948,138 +1948,138 @@ function Jt(e, n, t, s, r) {
|
|
|
1948
1948
|
}
|
|
1949
1949
|
if (!Array.isArray(t)) return;
|
|
1950
1950
|
const i = e.childNodes, o = [];
|
|
1951
|
-
for (let
|
|
1952
|
-
o.push(i[
|
|
1951
|
+
for (let _ = 0; _ < i.length; _++)
|
|
1952
|
+
o.push(i[_]);
|
|
1953
1953
|
const c = Array.isArray(n) ? n : [], f = Gt(e);
|
|
1954
1954
|
if (f) {
|
|
1955
|
-
const
|
|
1956
|
-
if (typeof
|
|
1957
|
-
return
|
|
1958
|
-
if (typeof
|
|
1959
|
-
}, a = [],
|
|
1960
|
-
for (const
|
|
1961
|
-
if (
|
|
1962
|
-
const
|
|
1963
|
-
for (const
|
|
1964
|
-
const
|
|
1965
|
-
|
|
1955
|
+
const _ = (m) => {
|
|
1956
|
+
if (typeof m == "string")
|
|
1957
|
+
return m.startsWith("each-") ? m.substring(5) : m;
|
|
1958
|
+
if (typeof m == "number") return String(m);
|
|
1959
|
+
}, a = [], b = [];
|
|
1960
|
+
for (const m of t)
|
|
1961
|
+
if (m && m.tag === "#anchor") {
|
|
1962
|
+
const v = Array.isArray(m.children) ? m.children : [];
|
|
1963
|
+
for (const S of v) {
|
|
1964
|
+
const C = _(
|
|
1965
|
+
S.key ?? m.key ?? "unknown"
|
|
1966
1966
|
);
|
|
1967
|
-
a.push({ ...
|
|
1967
|
+
a.push({ ...S, key: C });
|
|
1968
1968
|
}
|
|
1969
|
-
} else
|
|
1970
|
-
for (const
|
|
1971
|
-
if (
|
|
1972
|
-
const
|
|
1973
|
-
for (const
|
|
1974
|
-
const
|
|
1975
|
-
|
|
1969
|
+
} else m && a.push({ ...m, key: _(m.key) });
|
|
1970
|
+
for (const m of c)
|
|
1971
|
+
if (m && m.tag === "#anchor") {
|
|
1972
|
+
const v = Array.isArray(m.children) ? m.children : [];
|
|
1973
|
+
for (const S of v) {
|
|
1974
|
+
const C = _(
|
|
1975
|
+
S.key ?? m.key ?? "unknown"
|
|
1976
1976
|
);
|
|
1977
|
-
|
|
1977
|
+
b.push({ ...S, key: C });
|
|
1978
1978
|
}
|
|
1979
|
-
} else
|
|
1980
|
-
...
|
|
1981
|
-
key:
|
|
1979
|
+
} else m && b.push({
|
|
1980
|
+
...m,
|
|
1981
|
+
key: _(m.key)
|
|
1982
1982
|
});
|
|
1983
|
-
if (a.some((
|
|
1984
|
-
const
|
|
1985
|
-
for (const l of
|
|
1983
|
+
if (a.some((m) => m && m.key != null) || b.some((m) => m && m.key != null)) {
|
|
1984
|
+
const m = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
|
|
1985
|
+
for (const l of b)
|
|
1986
1986
|
if (l && l.key != null) {
|
|
1987
|
-
const
|
|
1988
|
-
|
|
1987
|
+
const y = String(l.key);
|
|
1988
|
+
m.set(y, l);
|
|
1989
1989
|
}
|
|
1990
1990
|
for (let l = 0; l < o.length; l++) {
|
|
1991
|
-
const
|
|
1992
|
-
let
|
|
1993
|
-
if (
|
|
1994
|
-
let
|
|
1995
|
-
|
|
1991
|
+
const y = o[l];
|
|
1992
|
+
let w = De(y);
|
|
1993
|
+
if (w = _(w), w != null && y instanceof Element && y.nodeType === Node.ELEMENT_NODE) {
|
|
1994
|
+
let L = typeof w == "string" && w.includes(":") ? w.substring(0, w.lastIndexOf(":")) : w;
|
|
1995
|
+
L = String(L), v.set(L, y);
|
|
1996
1996
|
}
|
|
1997
1997
|
}
|
|
1998
|
-
const
|
|
1999
|
-
if (f.moveClass &&
|
|
1998
|
+
const S = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Map(), T = o.length > 0;
|
|
1999
|
+
if (f.moveClass && T)
|
|
2000
2000
|
for (let l = 0; l < o.length; l++) {
|
|
2001
|
-
const
|
|
2002
|
-
if (
|
|
2003
|
-
const
|
|
2004
|
-
|
|
2001
|
+
const y = o[l];
|
|
2002
|
+
if (y instanceof HTMLElement && y.parentElement) {
|
|
2003
|
+
const w = y.getBoundingClientRect();
|
|
2004
|
+
C.set(y, w);
|
|
2005
2005
|
}
|
|
2006
2006
|
}
|
|
2007
|
-
const
|
|
2007
|
+
const g = [];
|
|
2008
2008
|
for (const l of a) {
|
|
2009
|
-
let
|
|
2010
|
-
if (
|
|
2011
|
-
|
|
2012
|
-
const
|
|
2013
|
-
let
|
|
2014
|
-
if (
|
|
2015
|
-
const O = Le(
|
|
2016
|
-
|
|
2017
|
-
const
|
|
2018
|
-
Z(O,
|
|
2009
|
+
let y = l.key;
|
|
2010
|
+
if (y == null) continue;
|
|
2011
|
+
y = String(y);
|
|
2012
|
+
const w = m.get(y);
|
|
2013
|
+
let L = v.get(y);
|
|
2014
|
+
if (L && w) {
|
|
2015
|
+
const O = Le(L, w, l, s);
|
|
2016
|
+
S.add(L);
|
|
2017
|
+
const M = String(y);
|
|
2018
|
+
Z(O, M), g.push({
|
|
2019
2019
|
node: O,
|
|
2020
|
-
key:
|
|
2020
|
+
key: y,
|
|
2021
2021
|
newVNode: l,
|
|
2022
|
-
oldVNode:
|
|
2022
|
+
oldVNode: w,
|
|
2023
2023
|
isNew: !1
|
|
2024
2024
|
});
|
|
2025
2025
|
} else {
|
|
2026
|
-
|
|
2026
|
+
L = J(
|
|
2027
2027
|
l,
|
|
2028
2028
|
s,
|
|
2029
2029
|
void 0,
|
|
2030
2030
|
e instanceof Element ? e.namespaceURI ?? null : null
|
|
2031
|
-
), Z(
|
|
2032
|
-
const O =
|
|
2033
|
-
|
|
2034
|
-
B("Enter transition error:",
|
|
2035
|
-
}),
|
|
2031
|
+
), Z(L, String(y)), e.appendChild(L);
|
|
2032
|
+
const O = T || f.appear === !0;
|
|
2033
|
+
L instanceof HTMLElement && O && we(L, f).catch((M) => {
|
|
2034
|
+
B("Enter transition error:", M);
|
|
2035
|
+
}), g.push({ node: L, key: y, newVNode: l, isNew: !0 });
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
|
-
const
|
|
2038
|
+
const A = [];
|
|
2039
2039
|
for (let l = 0; l < o.length; l++) {
|
|
2040
|
-
const
|
|
2041
|
-
if (!
|
|
2042
|
-
const O = qe(
|
|
2043
|
-
e.contains(
|
|
2044
|
-
}).catch((
|
|
2045
|
-
B("Leave transition error:",
|
|
2040
|
+
const y = o[l], w = De(y);
|
|
2041
|
+
if (!S.has(y) && w != null && y instanceof HTMLElement) {
|
|
2042
|
+
const O = qe(y, f).then(() => {
|
|
2043
|
+
e.contains(y) && e.removeChild(y);
|
|
2044
|
+
}).catch((M) => {
|
|
2045
|
+
B("Leave transition error:", M), e.contains(y) && e.removeChild(y);
|
|
2046
2046
|
});
|
|
2047
|
-
|
|
2047
|
+
A.push(O);
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
|
-
if (
|
|
2050
|
+
if (A.length === 0) {
|
|
2051
2051
|
let l = e.firstChild;
|
|
2052
|
-
for (const { node:
|
|
2053
|
-
|
|
2054
|
-
if (f.moveClass &&
|
|
2055
|
-
const
|
|
2056
|
-
for (const { node:
|
|
2057
|
-
if (!
|
|
2058
|
-
const O =
|
|
2052
|
+
for (const { node: y } of g)
|
|
2053
|
+
y !== l && e.insertBefore(y, l), l = y.nextSibling;
|
|
2054
|
+
if (f.moveClass && C.size > 0) {
|
|
2055
|
+
const y = [];
|
|
2056
|
+
for (const { node: w, isNew: L } of g)
|
|
2057
|
+
if (!L && w instanceof HTMLElement) {
|
|
2058
|
+
const O = C.get(w);
|
|
2059
2059
|
if (O) {
|
|
2060
|
-
const
|
|
2060
|
+
const M = w.getBoundingClientRect(), D = O.left - M.left, j = O.top - M.top;
|
|
2061
2061
|
if (D !== 0 || j !== 0) {
|
|
2062
2062
|
const z = f.moveClass.split(/\s+/).filter((I) => I);
|
|
2063
|
-
|
|
2063
|
+
y.push({ node: w, deltaX: D, deltaY: j, moveClasses: z });
|
|
2064
2064
|
}
|
|
2065
2065
|
}
|
|
2066
2066
|
}
|
|
2067
|
-
if (
|
|
2068
|
-
for (const { node:
|
|
2069
|
-
|
|
2067
|
+
if (y.length > 0) {
|
|
2068
|
+
for (const { node: w, deltaX: L, deltaY: O } of y)
|
|
2069
|
+
w.style.transform = `translate(${L}px, ${O}px)`, w.style.transitionProperty = "none";
|
|
2070
2070
|
e.offsetHeight, requestAnimationFrame(() => {
|
|
2071
2071
|
requestAnimationFrame(() => {
|
|
2072
|
-
for (const { node:
|
|
2073
|
-
for (const O of
|
|
2074
|
-
|
|
2072
|
+
for (const { node: w, moveClasses: L } of y)
|
|
2073
|
+
for (const O of L)
|
|
2074
|
+
w.classList.add(O);
|
|
2075
2075
|
requestAnimationFrame(() => {
|
|
2076
|
-
const
|
|
2076
|
+
const w = f.moveClass || "", L = w.match(/duration-(\d+)/), O = L ? `${L[1]}ms` : "300ms", M = w.match(
|
|
2077
2077
|
/ease-(out|in|in-out|linear)/
|
|
2078
|
-
), D =
|
|
2079
|
-
for (const { node: j } of
|
|
2078
|
+
), D = M ? `ease-${M[1]}` : "ease-out";
|
|
2079
|
+
for (const { node: j } of y)
|
|
2080
2080
|
j.style.transition = `transform ${O} ${D}`;
|
|
2081
2081
|
requestAnimationFrame(() => {
|
|
2082
|
-
for (const { node: j, moveClasses: z } of
|
|
2082
|
+
for (const { node: j, moveClasses: z } of y) {
|
|
2083
2083
|
j.style.removeProperty("transform");
|
|
2084
2084
|
const I = () => {
|
|
2085
2085
|
for (const ie of z)
|
|
@@ -2103,150 +2103,150 @@ function Jt(e, n, t, s, r) {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
2105
|
const u = /* @__PURE__ */ new Map();
|
|
2106
|
-
for (const
|
|
2107
|
-
|
|
2108
|
-
const
|
|
2109
|
-
for (let
|
|
2110
|
-
const a = o[
|
|
2111
|
-
|
|
2106
|
+
for (const _ of c)
|
|
2107
|
+
_ && _.key != null && u.set(_.key, _);
|
|
2108
|
+
const h = /* @__PURE__ */ new Map();
|
|
2109
|
+
for (let _ = 0; _ < o.length; _++) {
|
|
2110
|
+
const a = o[_], b = De(a);
|
|
2111
|
+
b != null && h.set(b, a);
|
|
2112
2112
|
}
|
|
2113
2113
|
const p = /* @__PURE__ */ new Set();
|
|
2114
2114
|
let d = e.firstChild;
|
|
2115
|
-
function
|
|
2116
|
-
let
|
|
2117
|
-
for (;
|
|
2118
|
-
|
|
2119
|
-
}
|
|
2120
|
-
function
|
|
2121
|
-
const
|
|
2122
|
-
let
|
|
2123
|
-
for (;
|
|
2124
|
-
|
|
2125
|
-
const
|
|
2126
|
-
if (
|
|
2127
|
-
const
|
|
2128
|
-
for (const O of
|
|
2129
|
-
O && O.key != null &&
|
|
2130
|
-
for (const O of
|
|
2131
|
-
const
|
|
2132
|
-
|
|
2133
|
-
}
|
|
2134
|
-
const
|
|
2135
|
-
let
|
|
2136
|
-
for (const O of
|
|
2137
|
-
let
|
|
2115
|
+
function k(_, a) {
|
|
2116
|
+
let b = _;
|
|
2117
|
+
for (; b && (p.add(b), b !== a); )
|
|
2118
|
+
b = b.nextSibling;
|
|
2119
|
+
}
|
|
2120
|
+
function N(_, a, b, E, m, v = !0) {
|
|
2121
|
+
const S = [];
|
|
2122
|
+
let C = _.nextSibling;
|
|
2123
|
+
for (; C && C !== a; )
|
|
2124
|
+
S.push(C), C = C.nextSibling;
|
|
2125
|
+
const T = Array.isArray(b) ? b : [];
|
|
2126
|
+
if (E.some((A) => A && A.key != null) || T.some((A) => A && A.key != null)) {
|
|
2127
|
+
const A = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
|
|
2128
|
+
for (const O of T)
|
|
2129
|
+
O && O.key != null && A.set(O.key, O);
|
|
2130
|
+
for (const O of S) {
|
|
2131
|
+
const M = De(O);
|
|
2132
|
+
M != null && l.set(M, O);
|
|
2133
|
+
}
|
|
2134
|
+
const y = m && m.state === "visible" && T.length === 0 && E.length > 0, w = /* @__PURE__ */ new Set();
|
|
2135
|
+
let L = _.nextSibling;
|
|
2136
|
+
for (const O of E) {
|
|
2137
|
+
let M;
|
|
2138
2138
|
if (O.key != null && l.has(O.key)) {
|
|
2139
|
-
const D =
|
|
2140
|
-
|
|
2139
|
+
const D = A.get(O.key);
|
|
2140
|
+
M = Le(
|
|
2141
2141
|
l.get(O.key),
|
|
2142
2142
|
D,
|
|
2143
2143
|
O,
|
|
2144
2144
|
s
|
|
2145
|
-
),
|
|
2145
|
+
), w.add(M), m && M instanceof HTMLElement && y && m.appear && we(M, m).catch((j) => {
|
|
2146
2146
|
B("Transition enter error (appear):", j);
|
|
2147
|
-
}),
|
|
2147
|
+
}), M !== L && e.contains(M) && e.insertBefore(M, L);
|
|
2148
2148
|
} else
|
|
2149
|
-
|
|
2149
|
+
M = J(
|
|
2150
2150
|
O,
|
|
2151
2151
|
s,
|
|
2152
2152
|
void 0,
|
|
2153
2153
|
e instanceof Element ? e.namespaceURI ?? null : null
|
|
2154
|
-
), e.insertBefore(
|
|
2154
|
+
), e.insertBefore(M, L), w.add(M), m && M instanceof HTMLElement && v && we(M, m).catch((D) => {
|
|
2155
2155
|
B("Transition enter error:", D);
|
|
2156
2156
|
});
|
|
2157
|
-
|
|
2157
|
+
L = M.nextSibling;
|
|
2158
2158
|
}
|
|
2159
|
-
for (const O of
|
|
2160
|
-
!
|
|
2159
|
+
for (const O of S)
|
|
2160
|
+
!w.has(O) && e.contains(O) && (m && O instanceof HTMLElement && v ? qe(O, m).then(() => {
|
|
2161
2161
|
e.contains(O) && e.removeChild(O);
|
|
2162
|
-
}).catch((
|
|
2163
|
-
B("Transition leave error:",
|
|
2162
|
+
}).catch((M) => {
|
|
2163
|
+
B("Transition leave error:", M), e.contains(O) && e.removeChild(O);
|
|
2164
2164
|
}) : e.removeChild(O));
|
|
2165
2165
|
} else {
|
|
2166
|
-
const
|
|
2167
|
-
|
|
2168
|
-
|
|
2166
|
+
const A = Math.min(
|
|
2167
|
+
T.length,
|
|
2168
|
+
E.length
|
|
2169
2169
|
);
|
|
2170
|
-
for (let l = 0; l <
|
|
2171
|
-
const
|
|
2172
|
-
|
|
2170
|
+
for (let l = 0; l < A; l++) {
|
|
2171
|
+
const y = T[l], w = E[l], L = Le(S[l], y, w, s);
|
|
2172
|
+
L !== S[l] && (e.insertBefore(L, S[l]), e.removeChild(S[l]));
|
|
2173
2173
|
}
|
|
2174
|
-
for (let l =
|
|
2175
|
-
const
|
|
2176
|
-
|
|
2174
|
+
for (let l = A; l < E.length; l++) {
|
|
2175
|
+
const y = J(
|
|
2176
|
+
E[l],
|
|
2177
2177
|
s,
|
|
2178
2178
|
void 0,
|
|
2179
2179
|
e instanceof Element ? e.namespaceURI ?? null : null
|
|
2180
2180
|
);
|
|
2181
|
-
e.insertBefore(
|
|
2182
|
-
B("Transition enter error:",
|
|
2181
|
+
e.insertBefore(y, a), m && y instanceof HTMLElement && v && we(y, m).catch((w) => {
|
|
2182
|
+
B("Transition enter error:", w);
|
|
2183
2183
|
});
|
|
2184
2184
|
}
|
|
2185
|
-
for (let l =
|
|
2186
|
-
const
|
|
2187
|
-
|
|
2188
|
-
e.contains(
|
|
2189
|
-
}).catch((
|
|
2190
|
-
B("Transition leave error:",
|
|
2191
|
-
}) : e.removeChild(
|
|
2185
|
+
for (let l = A; l < S.length; l++) {
|
|
2186
|
+
const y = S[l];
|
|
2187
|
+
m && y instanceof HTMLElement && v ? qe(y, m).then(() => {
|
|
2188
|
+
e.contains(y) && e.removeChild(y);
|
|
2189
|
+
}).catch((w) => {
|
|
2190
|
+
B("Transition leave error:", w), e.contains(y) && e.removeChild(y);
|
|
2191
|
+
}) : e.removeChild(y);
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
2194
|
}
|
|
2195
|
-
for (const
|
|
2195
|
+
for (const _ of t) {
|
|
2196
2196
|
let a;
|
|
2197
|
-
if (
|
|
2198
|
-
const
|
|
2199
|
-
let
|
|
2200
|
-
const
|
|
2201
|
-
if (
|
|
2202
|
-
e.insertBefore(
|
|
2203
|
-
const
|
|
2204
|
-
for (const l of
|
|
2205
|
-
const
|
|
2197
|
+
if (_.tag === "#anchor") {
|
|
2198
|
+
const b = _.key, E = `${b}:start`, m = `${b}:end`;
|
|
2199
|
+
let v = h.get(E), S = h.get(m);
|
|
2200
|
+
const C = Array.isArray(_.children) ? _.children : [];
|
|
2201
|
+
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)) {
|
|
2202
|
+
e.insertBefore(v, d);
|
|
2203
|
+
const T = _._transition, A = !(T && T.state === "visible" && C.length > 0) || T.appear;
|
|
2204
|
+
for (const l of C) {
|
|
2205
|
+
const y = J(
|
|
2206
2206
|
l,
|
|
2207
2207
|
s,
|
|
2208
2208
|
r,
|
|
2209
2209
|
e instanceof Element ? e.namespaceURI ?? null : null
|
|
2210
2210
|
);
|
|
2211
|
-
e.insertBefore(
|
|
2212
|
-
B("Transition enter error:",
|
|
2211
|
+
e.insertBefore(y, d), T && y instanceof HTMLElement && A && we(y, T).catch((w) => {
|
|
2212
|
+
B("Transition enter error:", w);
|
|
2213
2213
|
});
|
|
2214
2214
|
}
|
|
2215
|
-
e.insertBefore(
|
|
2215
|
+
e.insertBefore(S, d);
|
|
2216
2216
|
} else {
|
|
2217
|
-
const
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
k,
|
|
2221
|
-
u.get(E)?.children,
|
|
2217
|
+
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;
|
|
2218
|
+
N(
|
|
2219
|
+
v,
|
|
2222
2220
|
S,
|
|
2223
|
-
|
|
2224
|
-
|
|
2221
|
+
u.get(b)?.children,
|
|
2222
|
+
C,
|
|
2223
|
+
T,
|
|
2224
|
+
w
|
|
2225
2225
|
);
|
|
2226
2226
|
}
|
|
2227
|
-
|
|
2227
|
+
k(v, S), d = S.nextSibling;
|
|
2228
2228
|
continue;
|
|
2229
2229
|
}
|
|
2230
|
-
if (
|
|
2231
|
-
const
|
|
2230
|
+
if (_.key != null && h.has(_.key)) {
|
|
2231
|
+
const b = u.get(_.key);
|
|
2232
2232
|
a = Le(
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2233
|
+
h.get(_.key),
|
|
2234
|
+
b,
|
|
2235
|
+
_,
|
|
2236
2236
|
s,
|
|
2237
2237
|
r
|
|
2238
2238
|
), p.add(a), a !== d && e.contains(a) && (d && !e.contains(d) && (d = null), e.insertBefore(a, d));
|
|
2239
2239
|
} else
|
|
2240
2240
|
a = J(
|
|
2241
|
-
|
|
2241
|
+
_,
|
|
2242
2242
|
s,
|
|
2243
2243
|
r,
|
|
2244
2244
|
e instanceof Element ? e.namespaceURI ?? null : null
|
|
2245
2245
|
), d && !e.contains(d) && (d = null), e.insertBefore(a, d), p.add(a);
|
|
2246
2246
|
d = a.nextSibling;
|
|
2247
2247
|
}
|
|
2248
|
-
for (let
|
|
2249
|
-
const a = o[
|
|
2248
|
+
for (let _ = 0; _ < o.length; _++) {
|
|
2249
|
+
const a = o[_];
|
|
2250
2250
|
!p.has(a) && e.contains(a) && (de(a, r), e.removeChild(a));
|
|
2251
2251
|
}
|
|
2252
2252
|
}
|
|
@@ -2263,8 +2263,8 @@ function Le(e, n, t, s, r) {
|
|
|
2263
2263
|
if (t && typeof t != "string" && t.tag === "#anchor") {
|
|
2264
2264
|
const o = t, c = Array.isArray(o.children) ? o.children : [], f = o._startNode ?? document.createTextNode(""), u = o._endNode ?? document.createTextNode("");
|
|
2265
2265
|
o.key != null && (Z(f, `${o.key}:start`), Z(u, `${o.key}:end`)), o._startNode = f, o._endNode = u;
|
|
2266
|
-
const
|
|
2267
|
-
|
|
2266
|
+
const h = document.createDocumentFragment();
|
|
2267
|
+
h.appendChild(f);
|
|
2268
2268
|
for (const p of c) {
|
|
2269
2269
|
const d = J(
|
|
2270
2270
|
p,
|
|
@@ -2272,9 +2272,9 @@ function Le(e, n, t, s, r) {
|
|
|
2272
2272
|
r,
|
|
2273
2273
|
e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
|
|
2274
2274
|
);
|
|
2275
|
-
|
|
2275
|
+
h.appendChild(d);
|
|
2276
2276
|
}
|
|
2277
|
-
return
|
|
2277
|
+
return h.appendChild(u), e.parentNode?.replaceChild(h, e), f;
|
|
2278
2278
|
}
|
|
2279
2279
|
if (!t) {
|
|
2280
2280
|
de(e, r);
|
|
@@ -2296,10 +2296,10 @@ function Le(e, n, t, s, r) {
|
|
|
2296
2296
|
t.key != null && (Z(c, `${t.key}:start`), Z(f, `${t.key}:end`)), t._startNode = c, t._endNode = f;
|
|
2297
2297
|
const u = document.createDocumentFragment();
|
|
2298
2298
|
u.appendChild(c);
|
|
2299
|
-
for (const
|
|
2299
|
+
for (const h of o)
|
|
2300
2300
|
u.appendChild(
|
|
2301
2301
|
J(
|
|
2302
|
-
|
|
2302
|
+
h,
|
|
2303
2303
|
s,
|
|
2304
2304
|
r,
|
|
2305
2305
|
e.parentNode instanceof Element ? e.parentNode.namespaceURI ?? null : null
|
|
@@ -2350,11 +2350,11 @@ function Yt(e, n, t, s) {
|
|
|
2350
2350
|
e.host instanceof Element ? e.host.namespaceURI ?? null : null
|
|
2351
2351
|
), e.firstChild ? e.replaceChild(c, e.firstChild) : e.appendChild(c));
|
|
2352
2352
|
const f = [];
|
|
2353
|
-
for (let
|
|
2354
|
-
const p = e.childNodes[
|
|
2353
|
+
for (let h = 0; h < e.childNodes.length; h++) {
|
|
2354
|
+
const p = e.childNodes[h];
|
|
2355
2355
|
p !== c && p.nodeName !== "STYLE" && (de(p, s), f.push(p));
|
|
2356
2356
|
}
|
|
2357
|
-
f.forEach((
|
|
2357
|
+
f.forEach((h) => e.removeChild(h));
|
|
2358
2358
|
const u = r && typeof r == "object" && r.props ? {
|
|
2359
2359
|
...r,
|
|
2360
2360
|
props: {
|
|
@@ -2409,7 +2409,7 @@ function ft(e, n, t, s, r) {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
function tn(e, n, t, s, r, i, o) {
|
|
2411
2411
|
i !== null && clearTimeout(i);
|
|
2412
|
-
const u = Date.now() - n < 16,
|
|
2412
|
+
const u = Date.now() - n < 16, h = (() => {
|
|
2413
2413
|
try {
|
|
2414
2414
|
return typeof window < "u" && !!window.Cypress;
|
|
2415
2415
|
} catch {
|
|
@@ -2417,16 +2417,16 @@ function tn(e, n, t, s, r, i, o) {
|
|
|
2417
2417
|
}
|
|
2418
2418
|
})(), p = (() => {
|
|
2419
2419
|
try {
|
|
2420
|
-
return globalThis.process?.env?.NODE_ENV === "test" && !
|
|
2420
|
+
return globalThis.process?.env?.NODE_ENV === "test" && !h;
|
|
2421
2421
|
} catch {
|
|
2422
2422
|
return !1;
|
|
2423
2423
|
}
|
|
2424
|
-
})(), d = p ||
|
|
2424
|
+
})(), d = p || h;
|
|
2425
2425
|
if (u) {
|
|
2426
|
-
const
|
|
2427
|
-
r(
|
|
2428
|
-
const a = d ? 50 : 10,
|
|
2429
|
-
if (
|
|
2426
|
+
const _ = t + 1;
|
|
2427
|
+
r(_);
|
|
2428
|
+
const a = d ? 50 : 10, b = d ? 100 : 25, E = p ? 12 : 50;
|
|
2429
|
+
if (_ === a && !d)
|
|
2430
2430
|
V(
|
|
2431
2431
|
`⚠️ Component rendering frequently. Performance may be impacted.
|
|
2432
2432
|
Common causes:
|
|
@@ -2434,7 +2434,7 @@ Common causes:
|
|
|
2434
2434
|
• Event handlers with immediate function calls
|
|
2435
2435
|
• Missing effect dependencies`
|
|
2436
2436
|
);
|
|
2437
|
-
else if (
|
|
2437
|
+
else if (_ === b && !d)
|
|
2438
2438
|
V(
|
|
2439
2439
|
`⚠️ Component is re-rendering rapidly. Applying throttling.
|
|
2440
2440
|
This might indicate:
|
|
@@ -2442,7 +2442,7 @@ This might indicate:
|
|
|
2442
2442
|
• State modification during render
|
|
2443
2443
|
• Missing dependencies in computed/watch`
|
|
2444
2444
|
);
|
|
2445
|
-
else if (
|
|
2445
|
+
else if (_ >= E) {
|
|
2446
2446
|
B(
|
|
2447
2447
|
`🛑 Infinite render loop detected. Stopping to prevent browser freeze.
|
|
2448
2448
|
Possible causes:
|
|
@@ -2454,22 +2454,22 @@ Possible causes:
|
|
|
2454
2454
|
}
|
|
2455
2455
|
} else
|
|
2456
2456
|
r(0);
|
|
2457
|
-
let
|
|
2458
|
-
d || (t >= 40 ?
|
|
2459
|
-
const
|
|
2457
|
+
let k = 0;
|
|
2458
|
+
d || (t >= 40 ? k = 500 : t >= 25 ? k = 100 : t >= 15 && (k = 16));
|
|
2459
|
+
const N = () => {
|
|
2460
2460
|
s(Date.now());
|
|
2461
2461
|
try {
|
|
2462
2462
|
e();
|
|
2463
|
-
} catch (
|
|
2464
|
-
B("Error during render execution:",
|
|
2463
|
+
} catch (_) {
|
|
2464
|
+
B("Error during render execution:", _);
|
|
2465
2465
|
} finally {
|
|
2466
2466
|
o(null);
|
|
2467
2467
|
}
|
|
2468
2468
|
};
|
|
2469
|
-
if (
|
|
2470
|
-
const
|
|
2471
|
-
o(
|
|
2472
|
-
} else d ?
|
|
2469
|
+
if (k > 0) {
|
|
2470
|
+
const _ = setTimeout(N, k);
|
|
2471
|
+
o(_);
|
|
2472
|
+
} else d ? N() : (o({}), queueMicrotask(N));
|
|
2473
2473
|
}
|
|
2474
2474
|
function nn(e, n) {
|
|
2475
2475
|
let t = n;
|
|
@@ -2524,17 +2524,17 @@ function rn(e, n, t, s, r) {
|
|
|
2524
2524
|
ye()
|
|
2525
2525
|
];
|
|
2526
2526
|
else {
|
|
2527
|
-
const
|
|
2528
|
-
let
|
|
2527
|
+
const b = Ae(ot), E = ye();
|
|
2528
|
+
let m = "";
|
|
2529
2529
|
try {
|
|
2530
|
-
|
|
2530
|
+
E?.cssRules && (m = Array.from(E.cssRules).map((S) => S.cssText).join(`
|
|
2531
2531
|
`));
|
|
2532
2532
|
} catch {
|
|
2533
|
-
|
|
2533
|
+
m = "";
|
|
2534
2534
|
}
|
|
2535
|
-
const
|
|
2536
|
-
${
|
|
2537
|
-
dt(e,
|
|
2535
|
+
const v = Ae(`${b}
|
|
2536
|
+
${m}`);
|
|
2537
|
+
dt(e, v);
|
|
2538
2538
|
try {
|
|
2539
2539
|
e.adoptedStyleSheets = [He(), ye()];
|
|
2540
2540
|
} catch {
|
|
@@ -2542,32 +2542,32 @@ ${b}`);
|
|
|
2542
2542
|
}
|
|
2543
2543
|
return;
|
|
2544
2544
|
}
|
|
2545
|
-
let
|
|
2546
|
-
if (u && (
|
|
2547
|
-
`), c && (
|
|
2548
|
-
`),
|
|
2545
|
+
let h = "";
|
|
2546
|
+
if (u && (h += u + `
|
|
2547
|
+
`), c && (h += c + `
|
|
2548
|
+
`), h = Lt(h), h = Ae(h), ut(e)) {
|
|
2549
2549
|
let a = s;
|
|
2550
2550
|
a || (a = new CSSStyleSheet());
|
|
2551
2551
|
try {
|
|
2552
|
-
a.replaceSync(
|
|
2553
|
-
const
|
|
2554
|
-
f &&
|
|
2552
|
+
a.replaceSync(h);
|
|
2553
|
+
const b = [He(), ye()];
|
|
2554
|
+
f && b.push(f), b.push(a), e.adoptedStyleSheets = b, r(a);
|
|
2555
2555
|
return;
|
|
2556
2556
|
} catch {
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
|
-
const d = Ae(ot),
|
|
2560
|
-
let
|
|
2559
|
+
const d = Ae(ot), k = ye();
|
|
2560
|
+
let N = "";
|
|
2561
2561
|
try {
|
|
2562
|
-
|
|
2562
|
+
k?.cssRules && (N = Array.from(k.cssRules).map((a) => a.cssText).join(`
|
|
2563
2563
|
`));
|
|
2564
2564
|
} catch {
|
|
2565
|
-
|
|
2565
|
+
N = "";
|
|
2566
2566
|
}
|
|
2567
|
-
const
|
|
2568
|
-
${
|
|
2569
|
-
${
|
|
2570
|
-
dt(e,
|
|
2567
|
+
const _ = Ae(`${d}
|
|
2568
|
+
${N}
|
|
2569
|
+
${h}`);
|
|
2570
|
+
dt(e, _);
|
|
2571
2571
|
try {
|
|
2572
2572
|
const a = [
|
|
2573
2573
|
He(),
|
|
@@ -2575,8 +2575,8 @@ ${m}`);
|
|
|
2575
2575
|
];
|
|
2576
2576
|
if (f && a.push(f), typeof CSSStyleSheet < "u")
|
|
2577
2577
|
try {
|
|
2578
|
-
const
|
|
2579
|
-
|
|
2578
|
+
const b = new CSSStyleSheet();
|
|
2579
|
+
b.replaceSync(h), a.push(b);
|
|
2580
2580
|
} catch {
|
|
2581
2581
|
a.push({
|
|
2582
2582
|
cssRules: [],
|
|
@@ -2653,7 +2653,7 @@ function sn(e, n) {
|
|
|
2653
2653
|
t,
|
|
2654
2654
|
"_triggerWatchers",
|
|
2655
2655
|
(i, o) => this._triggerWatchers(i, o)
|
|
2656
|
-
), this.context = t,
|
|
2656
|
+
), this.context = t, $(() => {
|
|
2657
2657
|
s(t, "_host", this);
|
|
2658
2658
|
}), s(
|
|
2659
2659
|
this.context,
|
|
@@ -2666,13 +2666,13 @@ function sn(e, n) {
|
|
|
2666
2666
|
...c || {}
|
|
2667
2667
|
}, u = new CustomEvent(i, f);
|
|
2668
2668
|
this.dispatchEvent(u);
|
|
2669
|
-
const
|
|
2670
|
-
if (
|
|
2671
|
-
const p = i.substring(0,
|
|
2672
|
-
(
|
|
2669
|
+
const h = i.indexOf(":");
|
|
2670
|
+
if (h > 0) {
|
|
2671
|
+
const p = i.substring(0, h), d = i.substring(h + 1), k = d.includes("-") ? `${p}:${d.split("-").map(
|
|
2672
|
+
(N, _) => _ === 0 ? N : N.charAt(0).toUpperCase() + N.slice(1)
|
|
2673
2673
|
).join("")}` : `${p}:${d.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase()}`;
|
|
2674
|
-
|
|
2675
|
-
this.dispatchEvent(new CustomEvent(
|
|
2674
|
+
k !== i && $(() => {
|
|
2675
|
+
this.dispatchEvent(new CustomEvent(k, f));
|
|
2676
2676
|
});
|
|
2677
2677
|
}
|
|
2678
2678
|
return !u.defaultPrevented;
|
|
@@ -2703,7 +2703,7 @@ function sn(e, n) {
|
|
|
2703
2703
|
connectedCallback() {
|
|
2704
2704
|
this._runLogicWithinErrorBoundary(n, () => {
|
|
2705
2705
|
const t = this.getRootNode();
|
|
2706
|
-
t && t !== document && "host" in t && Xt(t, this), this._applyProps(n), this._requestRender(),
|
|
2706
|
+
t && t !== document && "host" in t && Xt(t, this), this._applyProps(n), this._requestRender(), xt(n, this.context, this._mounted, (s) => {
|
|
2707
2707
|
this._mounted = s;
|
|
2708
2708
|
});
|
|
2709
2709
|
});
|
|
@@ -2711,7 +2711,7 @@ function sn(e, n) {
|
|
|
2711
2711
|
disconnectedCallback() {
|
|
2712
2712
|
this._runLogicWithinErrorBoundary(n, () => {
|
|
2713
2713
|
const t = this.getRootNode();
|
|
2714
|
-
t && t !== document && "host" in t && Qt(t, this),
|
|
2714
|
+
t && t !== document && "host" in t && Qt(t, this), $t(
|
|
2715
2715
|
n,
|
|
2716
2716
|
this.context,
|
|
2717
2717
|
this._listeners,
|
|
@@ -2852,8 +2852,8 @@ function sn(e, n) {
|
|
|
2852
2852
|
if (Array.isArray(i))
|
|
2853
2853
|
return new Proxy(i, {
|
|
2854
2854
|
get(c, f, u) {
|
|
2855
|
-
const
|
|
2856
|
-
return typeof
|
|
2855
|
+
const h = Reflect.get(c, f, u);
|
|
2856
|
+
return typeof h == "function" && typeof f == "string" && [
|
|
2857
2857
|
"push",
|
|
2858
2858
|
"pop",
|
|
2859
2859
|
"shift",
|
|
@@ -2862,21 +2862,21 @@ function sn(e, n) {
|
|
|
2862
2862
|
"sort",
|
|
2863
2863
|
"reverse"
|
|
2864
2864
|
].includes(f) ? function(...d) {
|
|
2865
|
-
const
|
|
2865
|
+
const k = h.apply(c, d);
|
|
2866
2866
|
if (!r._initializing) {
|
|
2867
|
-
const
|
|
2868
|
-
r._triggerWatchers(
|
|
2867
|
+
const N = o || "root";
|
|
2868
|
+
r._triggerWatchers(N, c), _e(
|
|
2869
2869
|
() => r._render(t),
|
|
2870
2870
|
r._componentId
|
|
2871
2871
|
);
|
|
2872
2872
|
}
|
|
2873
|
-
return
|
|
2874
|
-
} :
|
|
2873
|
+
return k;
|
|
2874
|
+
} : h;
|
|
2875
2875
|
},
|
|
2876
2876
|
set(c, f, u) {
|
|
2877
2877
|
if (c[String(f)] = u, !r._initializing) {
|
|
2878
|
-
const
|
|
2879
|
-
r._triggerWatchers(
|
|
2878
|
+
const h = o ? `${o}.${String(f)}` : String(f);
|
|
2879
|
+
r._triggerWatchers(h, u), _e(() => r._render(t), r._componentId);
|
|
2880
2880
|
}
|
|
2881
2881
|
return !0;
|
|
2882
2882
|
},
|
|
@@ -2889,7 +2889,7 @@ function sn(e, n) {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
});
|
|
2891
2891
|
if (i && typeof i == "object") {
|
|
2892
|
-
if (
|
|
2892
|
+
if (P(i))
|
|
2893
2893
|
return i;
|
|
2894
2894
|
for (const c in i) {
|
|
2895
2895
|
const f = o ? `${o}.${c}` : c;
|
|
@@ -2897,9 +2897,9 @@ function sn(e, n) {
|
|
|
2897
2897
|
}
|
|
2898
2898
|
return new Proxy(i, {
|
|
2899
2899
|
set(c, f, u) {
|
|
2900
|
-
const
|
|
2901
|
-
return c[String(f)] = s(u,
|
|
2902
|
-
|
|
2900
|
+
const h = o ? `${o}.${String(f)}` : String(f);
|
|
2901
|
+
return c[String(f)] = s(u, h), r._initializing || (r._triggerWatchers(
|
|
2902
|
+
h,
|
|
2903
2903
|
c[String(f)]
|
|
2904
2904
|
), _e(() => r._render(t), r._componentId)), !0;
|
|
2905
2905
|
},
|
|
@@ -2940,7 +2940,7 @@ function sn(e, n) {
|
|
|
2940
2940
|
}
|
|
2941
2941
|
_applyProps(t) {
|
|
2942
2942
|
this._runLogicWithinErrorBoundary(t, () => {
|
|
2943
|
-
|
|
2943
|
+
Pt(this, t, this.context);
|
|
2944
2944
|
});
|
|
2945
2945
|
}
|
|
2946
2946
|
};
|
|
@@ -3043,18 +3043,18 @@ function kn(e) {
|
|
|
3043
3043
|
try {
|
|
3044
3044
|
const u = t && t._host;
|
|
3045
3045
|
if (u) {
|
|
3046
|
-
const
|
|
3046
|
+
const h = Y(i), p = u.getAttribute(h);
|
|
3047
3047
|
if (p !== null) {
|
|
3048
3048
|
const d = typeof e[i];
|
|
3049
3049
|
return d === "boolean" ? p === "" || p === "true" : d === "number" ? Number(p) : p;
|
|
3050
3050
|
}
|
|
3051
3051
|
if (typeof u[i] < "u") {
|
|
3052
3052
|
const d = u[i];
|
|
3053
|
-
if (
|
|
3053
|
+
if (P(d) || d && typeof d == "object" && "value" in d && !(d instanceof Node))
|
|
3054
3054
|
return d.value;
|
|
3055
|
-
const
|
|
3056
|
-
if (!(
|
|
3057
|
-
return
|
|
3055
|
+
const k = typeof e[i];
|
|
3056
|
+
if (!(k === "string" && d && typeof d == "object"))
|
|
3057
|
+
return k === "boolean" && typeof d == "string" ? d === "" || d === "true" : d;
|
|
3058
3058
|
}
|
|
3059
3059
|
}
|
|
3060
3060
|
} catch {
|
|
@@ -3078,21 +3078,21 @@ function kn(e) {
|
|
|
3078
3078
|
const f = t && t._host;
|
|
3079
3079
|
if (f) {
|
|
3080
3080
|
if (f instanceof HTMLElement || typeof f.getAttribute == "function" && typeof f.hasAttribute == "function") {
|
|
3081
|
-
const
|
|
3081
|
+
const h = i.replace(/([A-Z])/g, "-$1").toLowerCase(), p = f.getAttribute(h);
|
|
3082
3082
|
if (p !== null)
|
|
3083
3083
|
return typeof o == "boolean" ? p === "" || p === "true" : typeof o == "number" ? Number(p) : p;
|
|
3084
3084
|
}
|
|
3085
3085
|
const u = f[i];
|
|
3086
3086
|
if (typeof u < "u" && u !== "") {
|
|
3087
|
-
const
|
|
3088
|
-
if (!(typeof o == "string" && u && typeof u == "object" && !
|
|
3089
|
-
return typeof o == "boolean" && o === !1 && u === "" ? o :
|
|
3087
|
+
const h = u && typeof u == "object" && "value" in u && !(u instanceof Node);
|
|
3088
|
+
if (!(typeof o == "string" && u && typeof u == "object" && !h && !P(u)))
|
|
3089
|
+
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;
|
|
3090
3090
|
}
|
|
3091
3091
|
}
|
|
3092
3092
|
} catch {
|
|
3093
3093
|
}
|
|
3094
3094
|
const c = t[i];
|
|
3095
|
-
return typeof o == "boolean" && c === "" ? o === !1 ? o : !0 :
|
|
3095
|
+
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;
|
|
3096
3096
|
},
|
|
3097
3097
|
has(r, i) {
|
|
3098
3098
|
return typeof i == "string" && (i in t || i in e);
|
|
@@ -3315,9 +3315,9 @@ function On(e, n) {
|
|
|
3315
3315
|
} catch {
|
|
3316
3316
|
}
|
|
3317
3317
|
try {
|
|
3318
|
-
const
|
|
3319
|
-
if (
|
|
3320
|
-
let p =
|
|
3318
|
+
const h = o._host;
|
|
3319
|
+
if (h?.parentElement) {
|
|
3320
|
+
let p = h.parentElement;
|
|
3321
3321
|
for (; p; ) {
|
|
3322
3322
|
if (p.tagName.toLowerCase() === "cer-error-boundary") {
|
|
3323
3323
|
p._cerHandleChildError?.(
|
|
@@ -3327,8 +3327,8 @@ function On(e, n) {
|
|
|
3327
3327
|
}
|
|
3328
3328
|
let d = p.parentElement;
|
|
3329
3329
|
if (!d) {
|
|
3330
|
-
const
|
|
3331
|
-
|
|
3330
|
+
const k = p.getRootNode();
|
|
3331
|
+
k instanceof ShadowRoot && (d = k.host.parentElement);
|
|
3332
3332
|
}
|
|
3333
3333
|
p = d;
|
|
3334
3334
|
}
|
|
@@ -3340,9 +3340,9 @@ function On(e, n) {
|
|
|
3340
3340
|
if (o._hookCallbacks) {
|
|
3341
3341
|
const u = o._hookCallbacks;
|
|
3342
3342
|
if (u.onConnected) {
|
|
3343
|
-
const
|
|
3343
|
+
const h = u.onConnected;
|
|
3344
3344
|
s.onConnected = (p) => {
|
|
3345
|
-
for (const d of
|
|
3345
|
+
for (const d of h)
|
|
3346
3346
|
try {
|
|
3347
3347
|
d(p);
|
|
3348
3348
|
} catch {
|
|
@@ -3350,9 +3350,9 @@ function On(e, n) {
|
|
|
3350
3350
|
};
|
|
3351
3351
|
}
|
|
3352
3352
|
if (u.onDisconnected) {
|
|
3353
|
-
const
|
|
3353
|
+
const h = u.onDisconnected;
|
|
3354
3354
|
s.onDisconnected = (p) => {
|
|
3355
|
-
for (const d of
|
|
3355
|
+
for (const d of h)
|
|
3356
3356
|
try {
|
|
3357
3357
|
d(p);
|
|
3358
3358
|
} catch {
|
|
@@ -3360,19 +3360,19 @@ function On(e, n) {
|
|
|
3360
3360
|
};
|
|
3361
3361
|
}
|
|
3362
3362
|
if (u.onAttributeChanged) {
|
|
3363
|
-
const
|
|
3364
|
-
s.onAttributeChanged = (p, d,
|
|
3365
|
-
for (const
|
|
3363
|
+
const h = u.onAttributeChanged;
|
|
3364
|
+
s.onAttributeChanged = (p, d, k, N) => {
|
|
3365
|
+
for (const _ of h)
|
|
3366
3366
|
try {
|
|
3367
|
-
|
|
3367
|
+
_(p, d, k, N);
|
|
3368
3368
|
} catch {
|
|
3369
3369
|
}
|
|
3370
3370
|
};
|
|
3371
3371
|
}
|
|
3372
3372
|
if (u.onError) {
|
|
3373
|
-
const
|
|
3373
|
+
const h = u.onError;
|
|
3374
3374
|
s.onError = (p) => {
|
|
3375
|
-
for (const d of
|
|
3375
|
+
for (const d of h)
|
|
3376
3376
|
try {
|
|
3377
3377
|
d(p);
|
|
3378
3378
|
} catch {
|
|
@@ -3380,9 +3380,9 @@ function On(e, n) {
|
|
|
3380
3380
|
};
|
|
3381
3381
|
}
|
|
3382
3382
|
if (u.props) {
|
|
3383
|
-
const
|
|
3383
|
+
const h = u.props;
|
|
3384
3384
|
r.props = Object.fromEntries(
|
|
3385
|
-
Object.entries(
|
|
3385
|
+
Object.entries(h).map(([p, d]) => [
|
|
3386
3386
|
p,
|
|
3387
3387
|
{ type: typeof d == "boolean" ? Boolean : typeof d == "number" ? Number : typeof d == "string" ? String : Function, default: d }
|
|
3388
3388
|
])
|
|
@@ -3451,11 +3451,11 @@ function ce(e, n = {}, t, s) {
|
|
|
3451
3451
|
const r = s ?? n.key;
|
|
3452
3452
|
return { tag: e, key: r, props: n, children: t };
|
|
3453
3453
|
}
|
|
3454
|
-
function
|
|
3454
|
+
function Me(e) {
|
|
3455
3455
|
return !!e && typeof e == "object" && (e.type === "AnchorBlock" || e.tag === "#anchor");
|
|
3456
3456
|
}
|
|
3457
3457
|
function ue(e) {
|
|
3458
|
-
return typeof e == "object" && e !== null && "tag" in e && !
|
|
3458
|
+
return typeof e == "object" && e !== null && "tag" in e && !Me(e);
|
|
3459
3459
|
}
|
|
3460
3460
|
function on(e, n) {
|
|
3461
3461
|
return e.key != null ? e : { ...e, key: n };
|
|
@@ -3526,18 +3526,21 @@ function fn(e, n = [], t = {}) {
|
|
|
3526
3526
|
const s = {}, r = {}, i = {}, o = [], c = /([:@#]?)([a-zA-Z0-9-:.]+)(?:\s*=\s*("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'|([^\s>]+)))?/g;
|
|
3527
3527
|
let f;
|
|
3528
3528
|
for (; f = c.exec(e); ) {
|
|
3529
|
-
const u = f[1],
|
|
3529
|
+
const u = f[1], h = f[2];
|
|
3530
3530
|
let p = "";
|
|
3531
|
-
for (let
|
|
3532
|
-
if (f[
|
|
3533
|
-
p = f[
|
|
3531
|
+
for (let b = 3; b < f.length; b++)
|
|
3532
|
+
if (f[b] !== void 0) {
|
|
3533
|
+
p = f[b];
|
|
3534
3534
|
break;
|
|
3535
3535
|
}
|
|
3536
3536
|
p.length >= 2 && (p[0] === '"' && p[p.length - 1] === '"' || p[0] === "'" && p[p.length - 1] === "'") && (p = p.slice(1, -1));
|
|
3537
|
-
const d = !/=/.test(f[0]),
|
|
3538
|
-
let
|
|
3539
|
-
|
|
3540
|
-
|
|
3537
|
+
const d = !/=/.test(f[0]), k = p.match(/^{{(\d+)}}$/), N = !k && /{{(\d+)}}/.test(p);
|
|
3538
|
+
let _ = d ? !0 : k ? n[Number(k[1])] ?? null : N ? p.replace(
|
|
3539
|
+
/{{(\d+)}}/g,
|
|
3540
|
+
(b, E) => String(n[Number(E)] ?? "")
|
|
3541
|
+
) : p;
|
|
3542
|
+
!k && !N && (_ === "true" ? _ = !0 : _ === "false" ? _ = !1 : _ === "null" ? _ = null : isNaN(Number(_)) || (_ = Number(_)));
|
|
3543
|
+
const a = [
|
|
3541
3544
|
"model",
|
|
3542
3545
|
"bind",
|
|
3543
3546
|
"show",
|
|
@@ -3547,53 +3550,53 @@ function fn(e, n = [], t = {}) {
|
|
|
3547
3550
|
"when"
|
|
3548
3551
|
];
|
|
3549
3552
|
if (u === ":") {
|
|
3550
|
-
const [
|
|
3551
|
-
if (
|
|
3552
|
-
const
|
|
3553
|
-
i[
|
|
3554
|
-
value:
|
|
3555
|
-
modifiers:
|
|
3553
|
+
const [b, E] = h.split(":"), [m, ...v] = b.split(".");
|
|
3554
|
+
if (a.includes(m)) {
|
|
3555
|
+
const S = [...v], C = m === "model" && E ? `model:${E}` : m;
|
|
3556
|
+
i[C] = {
|
|
3557
|
+
value: _,
|
|
3558
|
+
modifiers: S,
|
|
3556
3559
|
arg: E
|
|
3557
3560
|
};
|
|
3558
|
-
} else if (
|
|
3559
|
-
let
|
|
3560
|
-
|
|
3561
|
-
const
|
|
3562
|
-
if (
|
|
3563
|
-
s[
|
|
3561
|
+
} else if (h === "disabled") {
|
|
3562
|
+
let S = _;
|
|
3563
|
+
S && P(S) && (S = S.value);
|
|
3564
|
+
const C = typeof S;
|
|
3565
|
+
if (S === "" || C === "boolean" || C === "string" && (S === "true" || S === "false") || S == null || C === "number")
|
|
3566
|
+
s[h] = S;
|
|
3564
3567
|
else {
|
|
3565
|
-
let
|
|
3566
|
-
|
|
3568
|
+
let A = _;
|
|
3569
|
+
A && P(A) && (A = A.value), r[h] = A;
|
|
3567
3570
|
}
|
|
3568
|
-
o.push(
|
|
3571
|
+
o.push(h);
|
|
3569
3572
|
} else {
|
|
3570
|
-
let
|
|
3571
|
-
|
|
3573
|
+
let S = _;
|
|
3574
|
+
S && P(S) && (S = S.value), r[h] = S, o.push(h);
|
|
3572
3575
|
}
|
|
3573
3576
|
} else if (u === "@") {
|
|
3574
|
-
const [
|
|
3575
|
-
ln(
|
|
3576
|
-
const
|
|
3577
|
-
if (
|
|
3578
|
-
const
|
|
3579
|
-
if (
|
|
3580
|
-
return
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
),
|
|
3584
|
-
},
|
|
3585
|
-
s[
|
|
3586
|
-
}
|
|
3587
|
-
} else
|
|
3577
|
+
const [b, ...E] = h.split("."), m = E;
|
|
3578
|
+
ln(_, b);
|
|
3579
|
+
const v = typeof _ == "function" ? _ : typeof t[_] == "function" ? t[_] : void 0;
|
|
3580
|
+
if (v) {
|
|
3581
|
+
const S = (T) => {
|
|
3582
|
+
if (m.includes("prevent") && T.preventDefault(), m.includes("stop") && T.stopPropagation(), !(m.includes("self") && T.target !== T.currentTarget))
|
|
3583
|
+
return m.includes("once") && T.currentTarget?.removeEventListener(
|
|
3584
|
+
b,
|
|
3585
|
+
S
|
|
3586
|
+
), v(T);
|
|
3587
|
+
}, C = "on" + b.charAt(0).toUpperCase() + b.slice(1);
|
|
3588
|
+
s[C] = S;
|
|
3589
|
+
}
|
|
3590
|
+
} else h === "ref" ? s.ref = _ : r[h] = _;
|
|
3588
3591
|
}
|
|
3589
3592
|
return { props: s, attrs: r, directives: i, bound: o };
|
|
3590
3593
|
}
|
|
3591
3594
|
function Xe(e) {
|
|
3592
|
-
if (!ue(e) ||
|
|
3595
|
+
if (!ue(e) || Me(e))
|
|
3593
3596
|
return e;
|
|
3594
3597
|
const n = e.props?.directives;
|
|
3595
3598
|
if (n && n.when) {
|
|
3596
|
-
const t = n.when.value, s =
|
|
3599
|
+
const t = n.when.value, s = P(t) ? t.value : t, r = { ...n };
|
|
3597
3600
|
delete r.when;
|
|
3598
3601
|
const i = { ...e.props };
|
|
3599
3602
|
Object.keys(r).length > 0 ? i.directives = r : delete i.directives;
|
|
@@ -3626,95 +3629,95 @@ function un(e, n, t) {
|
|
|
3626
3629
|
const l = Ge.get(o);
|
|
3627
3630
|
if (l) return l;
|
|
3628
3631
|
}
|
|
3629
|
-
function c(l,
|
|
3630
|
-
return ce("#text", {}, l,
|
|
3632
|
+
function c(l, y) {
|
|
3633
|
+
return ce("#text", {}, l, y);
|
|
3631
3634
|
}
|
|
3632
|
-
function f(l,
|
|
3633
|
-
let
|
|
3634
|
-
return !
|
|
3635
|
+
function f(l, y, w = !1) {
|
|
3636
|
+
let L = typeof l == "string" ? At(l) : l;
|
|
3637
|
+
return !w && typeof L == "string" && /[\r\n]/.test(L) && (L = L.replace(/\s+/g, " ")), ce("#text", {}, L, y);
|
|
3635
3638
|
}
|
|
3636
3639
|
let u = "";
|
|
3637
3640
|
for (let l = 0; l < e.length; l++)
|
|
3638
3641
|
u += e[l], l < n.length && (u += `{{${l}}}`);
|
|
3639
|
-
const
|
|
3640
|
-
let d,
|
|
3641
|
-
const
|
|
3642
|
+
const h = /<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g, p = [];
|
|
3643
|
+
let d, k = [], N = null, _ = {}, a, b = 0;
|
|
3644
|
+
const E = [], m = /* @__PURE__ */ new Set([
|
|
3642
3645
|
"pre",
|
|
3643
3646
|
"code",
|
|
3644
3647
|
"textarea",
|
|
3645
3648
|
"script",
|
|
3646
3649
|
"style"
|
|
3647
3650
|
]);
|
|
3648
|
-
function
|
|
3649
|
-
if (
|
|
3651
|
+
function v() {
|
|
3652
|
+
if (N && m.has(N.toLowerCase()))
|
|
3650
3653
|
return !0;
|
|
3651
3654
|
for (const l of p)
|
|
3652
|
-
if (
|
|
3655
|
+
if (m.has(l.tag.toLowerCase()))
|
|
3653
3656
|
return !0;
|
|
3654
3657
|
return !1;
|
|
3655
3658
|
}
|
|
3656
|
-
function
|
|
3657
|
-
if (!l || typeof l != "object" ||
|
|
3658
|
-
const
|
|
3659
|
-
if (
|
|
3660
|
-
const
|
|
3661
|
-
|
|
3662
|
-
if (O === "style" &&
|
|
3663
|
-
const
|
|
3664
|
-
|
|
3665
|
-
} else if (O === "class" &&
|
|
3666
|
-
const
|
|
3667
|
-
.../* @__PURE__ */ new Set([...
|
|
3659
|
+
function S(l) {
|
|
3660
|
+
if (!l || typeof l != "object" || Me(l)) return;
|
|
3661
|
+
const y = l, w = _;
|
|
3662
|
+
if (y.props || y.attrs) {
|
|
3663
|
+
const L = y;
|
|
3664
|
+
L.props && (w.props || (w.props = {}), Object.assign(w.props, L.props)), L.attrs && (w.attrs || (w.attrs = {}), Object.keys(L.attrs).forEach((O) => {
|
|
3665
|
+
if (O === "style" && w.attrs.style) {
|
|
3666
|
+
const M = String(w.attrs.style).replace(/;?\s*$/, ""), D = String(L.attrs.style).replace(/^;?\s*/, "");
|
|
3667
|
+
w.attrs.style = M + "; " + D;
|
|
3668
|
+
} else if (O === "class" && w.attrs.class) {
|
|
3669
|
+
const M = String(w.attrs.class).trim().split(/\s+/).filter(Boolean), D = String(L.attrs.class).trim().split(/\s+/).filter(Boolean), j = [
|
|
3670
|
+
.../* @__PURE__ */ new Set([...M, ...D])
|
|
3668
3671
|
];
|
|
3669
|
-
|
|
3672
|
+
w.attrs.class = j.join(" ");
|
|
3670
3673
|
} else
|
|
3671
|
-
|
|
3674
|
+
w.attrs[O] = L.attrs[O];
|
|
3672
3675
|
}));
|
|
3673
3676
|
} else
|
|
3674
|
-
|
|
3677
|
+
w.props || (w.props = {}), Object.assign(w.props, y);
|
|
3675
3678
|
}
|
|
3676
|
-
function
|
|
3677
|
-
const
|
|
3678
|
-
if (
|
|
3679
|
-
const
|
|
3680
|
-
|
|
3679
|
+
function C(l, y) {
|
|
3680
|
+
const w = N ? k : E;
|
|
3681
|
+
if (Me(l)) {
|
|
3682
|
+
const L = l.key ?? y, O = l.children;
|
|
3683
|
+
w.push({
|
|
3681
3684
|
...l,
|
|
3682
|
-
key:
|
|
3685
|
+
key: L,
|
|
3683
3686
|
children: O
|
|
3684
3687
|
});
|
|
3685
3688
|
return;
|
|
3686
3689
|
}
|
|
3687
3690
|
if (ue(l)) {
|
|
3688
|
-
|
|
3691
|
+
w.push(on(l, void 0));
|
|
3689
3692
|
return;
|
|
3690
3693
|
}
|
|
3691
3694
|
if (Array.isArray(l)) {
|
|
3692
3695
|
if (l.length === 0) return;
|
|
3693
|
-
for (let
|
|
3694
|
-
const O = l[
|
|
3695
|
-
|
|
3696
|
+
for (let L = 0; L < l.length; L++) {
|
|
3697
|
+
const O = l[L];
|
|
3698
|
+
Me(O) || ue(O) || Array.isArray(O) ? C(O, `${y}-${L}`) : O !== null && typeof O == "object" ? st(O) ? w.push(
|
|
3696
3699
|
ce(
|
|
3697
3700
|
"#raw",
|
|
3698
3701
|
{},
|
|
3699
3702
|
O.__rawHTML,
|
|
3700
|
-
`${
|
|
3703
|
+
`${y}-${L}`
|
|
3701
3704
|
)
|
|
3702
|
-
) :
|
|
3705
|
+
) : S(O) : w.push(c(String(O), `${y}-${L}`));
|
|
3703
3706
|
}
|
|
3704
3707
|
return;
|
|
3705
3708
|
}
|
|
3706
3709
|
if (l !== null && typeof l == "object") {
|
|
3707
3710
|
if (st(l)) {
|
|
3708
|
-
const
|
|
3709
|
-
|
|
3711
|
+
const L = l.__rawHTML ?? "";
|
|
3712
|
+
w.push(ce("#raw", {}, L, y));
|
|
3710
3713
|
return;
|
|
3711
3714
|
}
|
|
3712
|
-
|
|
3715
|
+
S(l);
|
|
3713
3716
|
return;
|
|
3714
3717
|
}
|
|
3715
|
-
|
|
3718
|
+
w.push(c(String(l), y));
|
|
3716
3719
|
}
|
|
3717
|
-
const
|
|
3720
|
+
const T = /* @__PURE__ */ new Set([
|
|
3718
3721
|
"area",
|
|
3719
3722
|
"base",
|
|
3720
3723
|
"br",
|
|
@@ -3730,22 +3733,22 @@ function un(e, n, t) {
|
|
|
3730
3733
|
"track",
|
|
3731
3734
|
"wbr"
|
|
3732
3735
|
]);
|
|
3733
|
-
for (; d =
|
|
3736
|
+
for (; d = h.exec(u); )
|
|
3734
3737
|
if (!(d[0].startsWith("<!--") && d[0].endsWith("-->"))) {
|
|
3735
3738
|
if (d[1]) {
|
|
3736
|
-
const l = d[1],
|
|
3737
|
-
props:
|
|
3739
|
+
const l = d[1], y = d[0][1] === "/", w = d[0][d[0].length - 2] === "/" || T.has(l), {
|
|
3740
|
+
props: L,
|
|
3738
3741
|
attrs: O,
|
|
3739
|
-
directives:
|
|
3742
|
+
directives: M,
|
|
3740
3743
|
bound: D
|
|
3741
3744
|
} = fn(
|
|
3742
3745
|
d[2] || "",
|
|
3743
3746
|
n,
|
|
3744
3747
|
r ?? {}
|
|
3745
3748
|
), j = { props: {}, attrs: {} };
|
|
3746
|
-
for (const z in
|
|
3749
|
+
for (const z in L) j.props[z] = L[z];
|
|
3747
3750
|
for (const z in O) j.attrs[z] = O[z];
|
|
3748
|
-
j.attrs && Object.prototype.hasOwnProperty.call(j.attrs, "key") && !(j.props && Object.prototype.hasOwnProperty.call(j.props, "key")) &&
|
|
3751
|
+
j.attrs && Object.prototype.hasOwnProperty.call(j.attrs, "key") && !(j.props && Object.prototype.hasOwnProperty.call(j.props, "key")) && $(() => {
|
|
3749
3752
|
j.props.key = j.attrs.key;
|
|
3750
3753
|
});
|
|
3751
3754
|
try {
|
|
@@ -3777,21 +3780,21 @@ function un(e, n, t) {
|
|
|
3777
3780
|
if (j.attrs) {
|
|
3778
3781
|
for (const R of ie)
|
|
3779
3782
|
if (D && D.includes(R) && R in j.attrs && !(j.props && R in j.props)) {
|
|
3780
|
-
let
|
|
3781
|
-
if (
|
|
3782
|
-
|
|
3783
|
-
else if (
|
|
3783
|
+
let x = j.attrs[R];
|
|
3784
|
+
if (x && P(x))
|
|
3785
|
+
x = x.value, j.props[R] = x, delete j.attrs[R];
|
|
3786
|
+
else if (x && typeof x == "object" && "value" in x && !(x instanceof Node))
|
|
3784
3787
|
try {
|
|
3785
|
-
const W =
|
|
3788
|
+
const W = x.value;
|
|
3786
3789
|
j.props[R] = (I === "select" || I === "option") && R === "value" ? String(W) : W, delete j.attrs[R];
|
|
3787
3790
|
} catch {
|
|
3788
3791
|
}
|
|
3789
3792
|
else {
|
|
3790
|
-
const W = typeof
|
|
3793
|
+
const W = typeof x;
|
|
3791
3794
|
if (R === "disabled")
|
|
3792
|
-
(
|
|
3793
|
-
else if (
|
|
3794
|
-
const te = (I === "select" || I === "option") && R === "value" ? String(
|
|
3795
|
+
(x === "" || W === "boolean" || W === "string" && (x === "true" || x === "false") || x == null || W === "number") && (j.props[R] = x, delete j.attrs[R]);
|
|
3796
|
+
else if (x === "" || W === "string" || W === "number" || W === "boolean" || x == null) {
|
|
3797
|
+
const te = (I === "select" || I === "option") && R === "value" ? String(x) : x;
|
|
3795
3798
|
j.props[R] = te, delete j.attrs[R];
|
|
3796
3799
|
}
|
|
3797
3800
|
}
|
|
@@ -3800,18 +3803,18 @@ function un(e, n, t) {
|
|
|
3800
3803
|
if (l.includes("-") || !!r?.__customElements?.has?.(l)) {
|
|
3801
3804
|
if (j.isCustomElement = !0, D && j.attrs) {
|
|
3802
3805
|
const R = /* @__PURE__ */ new Set(["id", "name", "data-key", "key"]);
|
|
3803
|
-
for (const
|
|
3804
|
-
if (
|
|
3805
|
-
const W =
|
|
3806
|
-
if (j.props[W] = te, R.has(
|
|
3806
|
+
for (const x of D)
|
|
3807
|
+
if (x in j.attrs && !(j.props && x in j.props)) {
|
|
3808
|
+
const W = x.includes("-") ? Qe(x) : x, te = j.attrs[x];
|
|
3809
|
+
if (j.props[W] = te, R.has(x) || pt(x))
|
|
3807
3810
|
try {
|
|
3808
|
-
const
|
|
3809
|
-
|
|
3811
|
+
const $e = F(j.attrs[x]);
|
|
3812
|
+
$e === null ? delete j.attrs[x] : j.attrs[x] = $e;
|
|
3810
3813
|
} catch {
|
|
3811
|
-
delete j.attrs[
|
|
3814
|
+
delete j.attrs[x];
|
|
3812
3815
|
}
|
|
3813
3816
|
else
|
|
3814
|
-
delete j.attrs[
|
|
3817
|
+
delete j.attrs[x];
|
|
3815
3818
|
}
|
|
3816
3819
|
}
|
|
3817
3820
|
try {
|
|
@@ -3824,15 +3827,15 @@ function un(e, n, t) {
|
|
|
3824
3827
|
}
|
|
3825
3828
|
} catch {
|
|
3826
3829
|
}
|
|
3827
|
-
if (
|
|
3830
|
+
if (M && Object.keys(M).some(
|
|
3828
3831
|
(z) => z === "model" || z.startsWith("model:")
|
|
3829
3832
|
))
|
|
3830
3833
|
try {
|
|
3831
3834
|
const I = globalThis[/* @__PURE__ */ Symbol.for("cer.registry")], ie = !!(I && typeof I.has == "function" && I.has(l)), X = r, R = !!(X && (X.__customElements instanceof Set && X.__customElements.has(l) || Array.isArray(X.__isCustomElements) && X.__isCustomElements.includes(l)));
|
|
3832
3835
|
if (!!(l.includes("-") || R || ie))
|
|
3833
|
-
for (const te of Object.keys(
|
|
3836
|
+
for (const te of Object.keys(M)) {
|
|
3834
3837
|
if (te !== "model" && !te.startsWith("model:")) continue;
|
|
3835
|
-
const
|
|
3838
|
+
const xe = M[te], $e = xe.arg ?? (te.includes(":") ? te.split(":", 2)[1] : void 0), q = xe.value, ze = $e ?? "modelValue", et = K, vt = We, Se = r?._state || r;
|
|
3836
3839
|
let se;
|
|
3837
3840
|
typeof q == "string" && Se ? se = et(
|
|
3838
3841
|
Se,
|
|
@@ -3851,7 +3854,7 @@ function un(e, n, t) {
|
|
|
3851
3854
|
j.props[Et] = function(ae) {
|
|
3852
3855
|
const re = ae.detail !== void 0 ? ae.detail : ae.target ? ae.target.value : void 0;
|
|
3853
3856
|
if (Se)
|
|
3854
|
-
if (q &&
|
|
3857
|
+
if (q && P(q)) {
|
|
3855
3858
|
const le = q.value;
|
|
3856
3859
|
if (Array.isArray(re) && Array.isArray(le) ? JSON.stringify([...re].sort()) !== JSON.stringify([...le].sort()) : re !== le) {
|
|
3857
3860
|
q.value = re;
|
|
@@ -3885,71 +3888,71 @@ function un(e, n, t) {
|
|
|
3885
3888
|
}
|
|
3886
3889
|
}
|
|
3887
3890
|
}
|
|
3888
|
-
}, delete
|
|
3891
|
+
}, delete M[te];
|
|
3889
3892
|
}
|
|
3890
3893
|
} catch {
|
|
3891
3894
|
}
|
|
3892
|
-
if (Object.keys(
|
|
3893
|
-
const z =
|
|
3895
|
+
if (Object.keys(M).length > 0 && (j.directives = { ...M }), y) {
|
|
3896
|
+
const z = k.some(
|
|
3894
3897
|
(R) => typeof R == "object" && R.tag !== "#text"
|
|
3895
3898
|
);
|
|
3896
|
-
let I =
|
|
3897
|
-
if (z &&
|
|
3899
|
+
let I = k;
|
|
3900
|
+
if (z && k.length > 0) {
|
|
3898
3901
|
let R = 0;
|
|
3899
|
-
for (; R <
|
|
3900
|
-
const W =
|
|
3902
|
+
for (; R < k.length; ) {
|
|
3903
|
+
const W = k[R];
|
|
3901
3904
|
if (!ue(W) || W.tag !== "#text" || typeof W.children != "string" || W.children.trim() !== "")
|
|
3902
3905
|
break;
|
|
3903
3906
|
R++;
|
|
3904
3907
|
}
|
|
3905
|
-
let
|
|
3906
|
-
for (;
|
|
3907
|
-
const W =
|
|
3908
|
+
let x = k.length - 1;
|
|
3909
|
+
for (; x >= 0; ) {
|
|
3910
|
+
const W = k[x];
|
|
3908
3911
|
if (!ue(W) || W.tag !== "#text" || typeof W.children != "string" || W.children.trim() !== "")
|
|
3909
3912
|
break;
|
|
3910
|
-
|
|
3913
|
+
x--;
|
|
3911
3914
|
}
|
|
3912
|
-
R === 0 &&
|
|
3915
|
+
R === 0 && x === k.length - 1 ? I = k : R > x ? I = [] : I = k.slice(R, x + 1);
|
|
3913
3916
|
}
|
|
3914
3917
|
const ie = ce(
|
|
3915
|
-
|
|
3916
|
-
|
|
3918
|
+
N,
|
|
3919
|
+
_,
|
|
3917
3920
|
I.length === 1 && ue(I[0]) && I[0].tag === "#text" ? typeof I[0].children == "string" ? I[0].children : "" : I.length ? I : void 0,
|
|
3918
3921
|
a
|
|
3919
3922
|
), X = p.pop();
|
|
3920
|
-
X ? (
|
|
3921
|
-
} else
|
|
3922
|
-
tag:
|
|
3923
|
-
props:
|
|
3924
|
-
children:
|
|
3923
|
+
X ? (N = X.tag, _ = X.props, a = X.key, k = X.children, k.push(ie)) : (E.push(ie), N = null, _ = {}, a = void 0, k = []);
|
|
3924
|
+
} else w ? N ? k.push(ce(l, j, void 0, void 0)) : E.push(ce(l, j, void 0, void 0)) : (N && p.push({
|
|
3925
|
+
tag: N,
|
|
3926
|
+
props: _,
|
|
3927
|
+
children: k,
|
|
3925
3928
|
key: a
|
|
3926
|
-
}),
|
|
3929
|
+
}), N = l, _ = j, k = []);
|
|
3927
3930
|
} else if (typeof d[3] < "u") {
|
|
3928
|
-
const l = Number(d[3]),
|
|
3929
|
-
|
|
3931
|
+
const l = Number(d[3]), y = n[l], w = `interp-${l}`;
|
|
3932
|
+
C(y, w);
|
|
3930
3933
|
} else if (d[4]) {
|
|
3931
|
-
const l = d[4],
|
|
3932
|
-
for (const
|
|
3933
|
-
if (!
|
|
3934
|
-
const O =
|
|
3934
|
+
const l = d[4], y = N ? k : E, w = l.split(/({{\d+}})/);
|
|
3935
|
+
for (const L of w) {
|
|
3936
|
+
if (!L) continue;
|
|
3937
|
+
const O = L.match(/^{{(\d+)}}$/);
|
|
3935
3938
|
if (O) {
|
|
3936
|
-
const
|
|
3937
|
-
|
|
3939
|
+
const M = Number(O[1]), D = n[M], j = `interp-${M}`;
|
|
3940
|
+
C(D, j);
|
|
3938
3941
|
} else {
|
|
3939
|
-
const
|
|
3940
|
-
|
|
3942
|
+
const M = `text-${b++}`, D = v();
|
|
3943
|
+
y.push(f(L, M, D));
|
|
3941
3944
|
}
|
|
3942
3945
|
}
|
|
3943
3946
|
}
|
|
3944
3947
|
}
|
|
3945
|
-
const
|
|
3948
|
+
const A = E.filter((l) => ue(l) && l.tag === "#text" ? typeof l.children == "string" && l.children.trim() !== "" : !0).map(
|
|
3946
3949
|
(l) => Xe(l)
|
|
3947
3950
|
);
|
|
3948
|
-
if (
|
|
3949
|
-
const l =
|
|
3951
|
+
if (A.length === 1) {
|
|
3952
|
+
const l = A[0];
|
|
3950
3953
|
return i && o && Ge.set(o, l), l;
|
|
3951
|
-
} else if (
|
|
3952
|
-
const l =
|
|
3954
|
+
} else if (A.length > 1) {
|
|
3955
|
+
const l = A;
|
|
3953
3956
|
return i && o && Ge.set(o, l), l;
|
|
3954
3957
|
}
|
|
3955
3958
|
return ce("div", {}, "", "fallback-root");
|
|
@@ -3978,4 +3981,4 @@ export {
|
|
|
3978
3981
|
Cn as u,
|
|
3979
3982
|
Yt as v
|
|
3980
3983
|
};
|
|
3981
|
-
//# sourceMappingURL=template-compiler-
|
|
3984
|
+
//# sourceMappingURL=template-compiler-BO8UEEDA.js.map
|