@samhammer/tiptob 2.3.16 → 2.3.17
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/extensions.js +19 -0
- package/dist/extensions.js.map +1 -1
- package/dist/web-components.js +907 -897
- package/dist/web-components.js.map +1 -1
- package/package.json +1 -1
package/dist/web-components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
2
|
-
const $n = 1, Pn = 2, No = 4, ts = 8, ns = 16, rs = 1, os = 2, is = 4, ss = 8, as = 16, ls = 4, us = 1, fs = 2, $o = "[", Bn = "[!", Lr = "]", Ct = {},
|
|
2
|
+
const $n = 1, Pn = 2, No = 4, ts = 8, ns = 16, rs = 1, os = 2, is = 4, ss = 8, as = 16, ls = 4, us = 1, fs = 2, $o = "[", Bn = "[!", Lr = "]", Ct = {}, he = Symbol(), cs = "http://www.w3.org/1999/xhtml", Po = !1;
|
|
3
3
|
var Bo = Array.isArray, ds = Array.prototype.indexOf, Hr = Array.from, Sn = Object.keys, Vn = Object.defineProperty, bt = Object.getOwnPropertyDescriptor, gs = Object.getOwnPropertyDescriptors, vs = Object.prototype, hs = Array.prototype, Fo = Object.getPrototypeOf, co = Object.isExtensible;
|
|
4
4
|
function ps(e) {
|
|
5
5
|
return typeof e == "function";
|
|
@@ -16,7 +16,7 @@ function Zo() {
|
|
|
16
16
|
});
|
|
17
17
|
return { promise: n, resolve: e, reject: t };
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const be = 2, Fn = 4, kr = 8, We = 16, it = 32, gt = 64, Zn = 128, pe = 1024, Le = 2048, st = 4096, ke = 8192, rt = 16384, Un = 32768, dt = 65536, go = 1 << 17, Uo = 1 << 18, xt = 1 << 19, _s = 1 << 20, Oe = 256, Rn = 512, On = 32768, hr = 1 << 21, Mr = 1 << 22, ut = 1 << 23, sn = Symbol("$state"), zo = Symbol("legacy props"), bs = Symbol(""), $t = new class extends Error {
|
|
20
20
|
name = "StaleReactionError";
|
|
21
21
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
22
22
|
}(), Sr = 3, At = 8;
|
|
@@ -63,22 +63,22 @@ function Vs() {
|
|
|
63
63
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
64
64
|
}
|
|
65
65
|
let $ = !1;
|
|
66
|
-
function
|
|
66
|
+
function nt(e) {
|
|
67
67
|
$ = e;
|
|
68
68
|
}
|
|
69
69
|
let F;
|
|
70
|
-
function
|
|
70
|
+
function Ee(e) {
|
|
71
71
|
if (e === null)
|
|
72
72
|
throw cn(), Ct;
|
|
73
73
|
return F = e;
|
|
74
74
|
}
|
|
75
75
|
function Zt() {
|
|
76
|
-
return
|
|
76
|
+
return Ee(
|
|
77
77
|
/** @type {TemplateNode} */
|
|
78
78
|
/* @__PURE__ */ Ze(F)
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function O(e) {
|
|
82
82
|
if ($) {
|
|
83
83
|
if (/* @__PURE__ */ Ze(F) !== null)
|
|
84
84
|
throw cn(), Ct;
|
|
@@ -169,7 +169,7 @@ function Yo() {
|
|
|
169
169
|
var e = _t;
|
|
170
170
|
_t = [], ms(e);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function vt(e) {
|
|
173
173
|
if (_t.length === 0 && !an) {
|
|
174
174
|
var t = _t;
|
|
175
175
|
queueMicrotask(() => {
|
|
@@ -183,9 +183,9 @@ function Ns() {
|
|
|
183
183
|
Yo();
|
|
184
184
|
}
|
|
185
185
|
function qo(e) {
|
|
186
|
-
var t =
|
|
186
|
+
var t = R;
|
|
187
187
|
if (t === null)
|
|
188
|
-
return N.f |=
|
|
188
|
+
return N.f |= ut, e;
|
|
189
189
|
if ((t.f & Un) === 0) {
|
|
190
190
|
if ((t.f & Zn) === 0)
|
|
191
191
|
throw e;
|
|
@@ -288,9 +288,9 @@ class Pe {
|
|
|
288
288
|
* @param {EffectTarget} target
|
|
289
289
|
*/
|
|
290
290
|
#o(t, n) {
|
|
291
|
-
t.f ^=
|
|
291
|
+
t.f ^= pe;
|
|
292
292
|
for (var r = t.first; r !== null; ) {
|
|
293
|
-
var o = r.f, i = (o & (
|
|
293
|
+
var o = r.f, i = (o & (it | gt)) !== 0, s = i && (o & pe) !== 0, a = s || (o & ke) !== 0 || this.skipped_effects.has(r);
|
|
294
294
|
if ((r.f & Zn) !== 0 && r.b?.is_pending() && (n = {
|
|
295
295
|
parent: n,
|
|
296
296
|
effect: r,
|
|
@@ -298,7 +298,7 @@ class Pe {
|
|
|
298
298
|
render_effects: [],
|
|
299
299
|
block_effects: []
|
|
300
300
|
}), !a && r.fn !== null) {
|
|
301
|
-
i ? r.f ^=
|
|
301
|
+
i ? r.f ^= pe : (o & Fn) !== 0 ? n.effects.push(r) : vn(r) && ((r.f & We) !== 0 && n.block_effects.push(r), fn(r));
|
|
302
302
|
var u = r.first;
|
|
303
303
|
if (u !== null) {
|
|
304
304
|
r = u;
|
|
@@ -316,7 +316,7 @@ class Pe {
|
|
|
316
316
|
*/
|
|
317
317
|
#i(t) {
|
|
318
318
|
for (const n of t)
|
|
319
|
-
((n.f &
|
|
319
|
+
((n.f & Le) !== 0 ? this.#s : this.#a).push(n), _e(n, pe);
|
|
320
320
|
}
|
|
321
321
|
/**
|
|
322
322
|
* Associate a change to a given source with the current
|
|
@@ -325,7 +325,7 @@ class Pe {
|
|
|
325
325
|
* @param {any} value
|
|
326
326
|
*/
|
|
327
327
|
capture(t, n) {
|
|
328
|
-
this.previous.has(t) || this.previous.set(t, n), (t.f &
|
|
328
|
+
this.previous.has(t) || this.previous.set(t, n), (t.f & ut) === 0 && (this.current.set(t, t.v), Ne?.set(t, t.v));
|
|
329
329
|
}
|
|
330
330
|
activate() {
|
|
331
331
|
j = this, this.apply();
|
|
@@ -410,9 +410,9 @@ class Pe {
|
|
|
410
410
|
}
|
|
411
411
|
revive() {
|
|
412
412
|
for (const t of this.#s)
|
|
413
|
-
|
|
413
|
+
_e(t, Le), Et(t);
|
|
414
414
|
for (const t of this.#a)
|
|
415
|
-
|
|
415
|
+
_e(t, st), Et(t);
|
|
416
416
|
this.#s = [], this.#a = [], this.flush();
|
|
417
417
|
}
|
|
418
418
|
/** @param {() => void} fn */
|
|
@@ -437,12 +437,12 @@ class Pe {
|
|
|
437
437
|
}
|
|
438
438
|
/** @param {() => void} task */
|
|
439
439
|
static enqueue(t) {
|
|
440
|
-
|
|
440
|
+
vt(t);
|
|
441
441
|
}
|
|
442
442
|
apply() {
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function y(e) {
|
|
446
446
|
var t = an;
|
|
447
447
|
an = !0;
|
|
448
448
|
try {
|
|
@@ -467,7 +467,7 @@ function Ko() {
|
|
|
467
467
|
var r, o;
|
|
468
468
|
$s();
|
|
469
469
|
}
|
|
470
|
-
n.process(je),
|
|
470
|
+
n.process(je), ft.clear();
|
|
471
471
|
}
|
|
472
472
|
} finally {
|
|
473
473
|
pr = !1, mo(e), zn = null;
|
|
@@ -480,43 +480,43 @@ function $s() {
|
|
|
480
480
|
zt(e, zn);
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
let
|
|
483
|
+
let et = null;
|
|
484
484
|
function vo(e) {
|
|
485
485
|
var t = e.length;
|
|
486
486
|
if (t !== 0) {
|
|
487
487
|
for (var n = 0; n < t; ) {
|
|
488
488
|
var r = e[n++];
|
|
489
|
-
if ((r.f & (
|
|
490
|
-
|
|
491
|
-
for (const o of
|
|
492
|
-
if ((o.f & (
|
|
489
|
+
if ((r.f & (rt | ke)) === 0 && vn(r) && (et = /* @__PURE__ */ new Set(), fn(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null && r.ac === null ? mi(r) : r.fn = null), et?.size > 0)) {
|
|
490
|
+
ft.clear();
|
|
491
|
+
for (const o of et) {
|
|
492
|
+
if ((o.f & (rt | ke)) !== 0) continue;
|
|
493
493
|
const i = [o];
|
|
494
494
|
let s = o.parent;
|
|
495
495
|
for (; s !== null; )
|
|
496
|
-
|
|
496
|
+
et.has(s) && (et.delete(s), i.push(s)), s = s.parent;
|
|
497
497
|
for (let a = i.length - 1; a >= 0; a--) {
|
|
498
498
|
const u = i[a];
|
|
499
|
-
(u.f & (
|
|
499
|
+
(u.f & (rt | ke)) === 0 && fn(u);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
|
|
502
|
+
et.clear();
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
|
|
505
|
+
et = null;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
function Xo(e, t, n, r) {
|
|
509
509
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
510
510
|
for (const o of e.reactions) {
|
|
511
511
|
const i = o.f;
|
|
512
|
-
(i &
|
|
512
|
+
(i & be) !== 0 ? Xo(
|
|
513
513
|
/** @type {Derived} */
|
|
514
514
|
o,
|
|
515
515
|
t,
|
|
516
516
|
n,
|
|
517
517
|
r
|
|
518
|
-
) : (i & (Mr | We)) !== 0 && (i &
|
|
519
|
-
Jo(o, t, r) && (
|
|
518
|
+
) : (i & (Mr | We)) !== 0 && (i & Le) === 0 && // we may have scheduled this one already
|
|
519
|
+
Jo(o, t, r) && (_e(o, Le), Et(
|
|
520
520
|
/** @type {Effect} */
|
|
521
521
|
o
|
|
522
522
|
));
|
|
@@ -529,7 +529,7 @@ function Jo(e, t, n) {
|
|
|
529
529
|
for (const o of e.deps) {
|
|
530
530
|
if (t.includes(o))
|
|
531
531
|
return !0;
|
|
532
|
-
if ((o.f &
|
|
532
|
+
if ((o.f & be) !== 0 && Jo(
|
|
533
533
|
/** @type {Derived} */
|
|
534
534
|
o,
|
|
535
535
|
t,
|
|
@@ -547,11 +547,11 @@ function Et(e) {
|
|
|
547
547
|
for (var t = zn = e; t.parent !== null; ) {
|
|
548
548
|
t = t.parent;
|
|
549
549
|
var n = t.f;
|
|
550
|
-
if (pr && t ===
|
|
550
|
+
if (pr && t === R && (n & We) !== 0 && (n & Uo) === 0)
|
|
551
551
|
return;
|
|
552
|
-
if ((n & (
|
|
553
|
-
if ((n &
|
|
554
|
-
t.f ^=
|
|
552
|
+
if ((n & (gt | it)) !== 0) {
|
|
553
|
+
if ((n & pe) === 0) return;
|
|
554
|
+
t.f ^= pe;
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
je.push(t);
|
|
@@ -560,13 +560,13 @@ function Ps(e) {
|
|
|
560
560
|
let t = 0, n = yt(0), r;
|
|
561
561
|
return () => {
|
|
562
562
|
Xs() && (M(n), Gn(() => (t === 0 && (r = Ht(() => e(() => ln(n)))), t += 1, () => {
|
|
563
|
-
|
|
563
|
+
vt(() => {
|
|
564
564
|
t -= 1, t === 0 && (r?.(), r = void 0, ln(n));
|
|
565
565
|
});
|
|
566
566
|
})));
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
|
-
var Bs =
|
|
569
|
+
var Bs = dt | xt | Zn;
|
|
570
570
|
function Fs(e, t, n) {
|
|
571
571
|
new Zs(e, t, n);
|
|
572
572
|
}
|
|
@@ -615,8 +615,8 @@ class Zs {
|
|
|
615
615
|
*/
|
|
616
616
|
constructor(t, n, r) {
|
|
617
617
|
this.#e = t, this.#r = n, this.#l = r, this.parent = /** @type {Effect} */
|
|
618
|
-
|
|
619
|
-
if (
|
|
618
|
+
R.b, this.#t = !!this.#r.pending, this.#s = Wn(() => {
|
|
619
|
+
if (R.b = this, $) {
|
|
620
620
|
const i = this.#n;
|
|
621
621
|
Zt(), /** @type {Comment} */
|
|
622
622
|
i.nodeType === At && /** @type {Comment} */
|
|
@@ -674,14 +674,14 @@ class Zs {
|
|
|
674
674
|
* @param {() => Effect | null} fn
|
|
675
675
|
*/
|
|
676
676
|
#h(t) {
|
|
677
|
-
var n =
|
|
678
|
-
Ge(this.#s),
|
|
677
|
+
var n = R, r = N, o = oe;
|
|
678
|
+
Ge(this.#s), Ae(this.#s), Ut(this.#s.ctx);
|
|
679
679
|
try {
|
|
680
680
|
return t();
|
|
681
681
|
} catch (i) {
|
|
682
682
|
return qo(i), null;
|
|
683
683
|
} finally {
|
|
684
|
-
Ge(n),
|
|
684
|
+
Ge(n), Ae(r), Ut(o);
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
687
|
#p() {
|
|
@@ -729,10 +729,10 @@ class Zs {
|
|
|
729
729
|
let r = this.#r.failed;
|
|
730
730
|
if (this.#v || !n && !r)
|
|
731
731
|
throw t;
|
|
732
|
-
this.#a && (
|
|
732
|
+
this.#a && (me(this.#a), this.#a = null), this.#o && (me(this.#o), this.#o = null), this.#i && (me(this.#i), this.#i = null), $ && (Ee(
|
|
733
733
|
/** @type {TemplateNode} */
|
|
734
734
|
this.#n
|
|
735
|
-
), Rs(),
|
|
735
|
+
), Rs(), Ee(In()));
|
|
736
736
|
var o = !1, i = !1;
|
|
737
737
|
const s = () => {
|
|
738
738
|
if (o) {
|
|
@@ -745,13 +745,13 @@ class Zs {
|
|
|
745
745
|
};
|
|
746
746
|
var a = N;
|
|
747
747
|
try {
|
|
748
|
-
|
|
748
|
+
Ae(null), i = !0, n?.(t, s), i = !1;
|
|
749
749
|
} catch (u) {
|
|
750
750
|
zt(u, this.#s && this.#s.parent);
|
|
751
751
|
} finally {
|
|
752
|
-
|
|
752
|
+
Ae(a);
|
|
753
753
|
}
|
|
754
|
-
r &&
|
|
754
|
+
r && vt(() => {
|
|
755
755
|
this.#i = this.#h(() => {
|
|
756
756
|
Pe.ensure(), this.#v = !0;
|
|
757
757
|
try {
|
|
@@ -783,7 +783,7 @@ function Us(e, t, n, r) {
|
|
|
783
783
|
}
|
|
784
784
|
var i = j, s = (
|
|
785
785
|
/** @type {Effect} */
|
|
786
|
-
|
|
786
|
+
R
|
|
787
787
|
), a = zs();
|
|
788
788
|
function u() {
|
|
789
789
|
Promise.all(n.map((c) => /* @__PURE__ */ js(c))).then((c) => {
|
|
@@ -791,7 +791,7 @@ function Us(e, t, n, r) {
|
|
|
791
791
|
try {
|
|
792
792
|
r([...t.map(o), ...c]);
|
|
793
793
|
} catch (l) {
|
|
794
|
-
(s.f &
|
|
794
|
+
(s.f & rt) === 0 && zt(l, s);
|
|
795
795
|
}
|
|
796
796
|
i?.deactivate(), Dn();
|
|
797
797
|
}).catch((c) => {
|
|
@@ -808,21 +808,21 @@ function Us(e, t, n, r) {
|
|
|
808
808
|
}) : u();
|
|
809
809
|
}
|
|
810
810
|
function zs() {
|
|
811
|
-
var e =
|
|
811
|
+
var e = R, t = N, n = oe, r = j;
|
|
812
812
|
return function(i = !0) {
|
|
813
|
-
Ge(e),
|
|
813
|
+
Ge(e), Ae(t), Ut(n), i && r?.activate();
|
|
814
814
|
};
|
|
815
815
|
}
|
|
816
816
|
function Dn() {
|
|
817
|
-
Ge(null),
|
|
817
|
+
Ge(null), Ae(null), Ut(null);
|
|
818
818
|
}
|
|
819
819
|
// @__NO_SIDE_EFFECTS__
|
|
820
820
|
function jn(e) {
|
|
821
|
-
var t =
|
|
821
|
+
var t = be | Le, n = N !== null && (N.f & be) !== 0 ? (
|
|
822
822
|
/** @type {Derived} */
|
|
823
823
|
N
|
|
824
824
|
) : null;
|
|
825
|
-
return
|
|
825
|
+
return R === null || n !== null && (n.f & Oe) !== 0 ? t |= Oe : R.f |= xt, {
|
|
826
826
|
ctx: oe,
|
|
827
827
|
deps: null,
|
|
828
828
|
effects: null,
|
|
@@ -833,10 +833,10 @@ function jn(e) {
|
|
|
833
833
|
rv: 0,
|
|
834
834
|
v: (
|
|
835
835
|
/** @type {V} */
|
|
836
|
-
|
|
836
|
+
he
|
|
837
837
|
),
|
|
838
838
|
wv: 0,
|
|
839
|
-
parent: n ??
|
|
839
|
+
parent: n ?? R,
|
|
840
840
|
ac: null
|
|
841
841
|
};
|
|
842
842
|
}
|
|
@@ -844,7 +844,7 @@ function jn(e) {
|
|
|
844
844
|
function js(e, t) {
|
|
845
845
|
let n = (
|
|
846
846
|
/** @type {Effect | null} */
|
|
847
|
-
|
|
847
|
+
R
|
|
848
848
|
);
|
|
849
849
|
n === null && Cs();
|
|
850
850
|
var r = (
|
|
@@ -856,7 +856,7 @@ function js(e, t) {
|
|
|
856
856
|
void 0
|
|
857
857
|
), i = yt(
|
|
858
858
|
/** @type {V} */
|
|
859
|
-
|
|
859
|
+
he
|
|
860
860
|
), s = !N, a = /* @__PURE__ */ new Map();
|
|
861
861
|
return ea(() => {
|
|
862
862
|
var u = Zo();
|
|
@@ -876,11 +876,11 @@ function js(e, t) {
|
|
|
876
876
|
var l = !r.is_pending();
|
|
877
877
|
r.update_pending_count(1), c.increment(l), a.get(c)?.reject($t), a.delete(c), a.set(c, u);
|
|
878
878
|
}
|
|
879
|
-
const
|
|
879
|
+
const p = (v, g = void 0) => {
|
|
880
880
|
if (c.activate(), g)
|
|
881
|
-
g !== $t && (i.f |=
|
|
881
|
+
g !== $t && (i.f |= ut, jt(i, g));
|
|
882
882
|
else {
|
|
883
|
-
(i.f &
|
|
883
|
+
(i.f & ut) !== 0 && (i.f ^= ut), jt(i, v);
|
|
884
884
|
for (const [d, m] of a) {
|
|
885
885
|
if (a.delete(d), d === c) break;
|
|
886
886
|
m.reject($t);
|
|
@@ -888,16 +888,16 @@ function js(e, t) {
|
|
|
888
888
|
}
|
|
889
889
|
s && (r.update_pending_count(-1), c.decrement(l));
|
|
890
890
|
};
|
|
891
|
-
u.promise.then(
|
|
891
|
+
u.promise.then(p, (v) => p(null, v || "unknown"));
|
|
892
892
|
}), ci(() => {
|
|
893
893
|
for (const u of a.values())
|
|
894
894
|
u.reject($t);
|
|
895
895
|
}), new Promise((u) => {
|
|
896
896
|
function c(l) {
|
|
897
|
-
function
|
|
897
|
+
function p() {
|
|
898
898
|
l === o ? u(i) : c(o);
|
|
899
899
|
}
|
|
900
|
-
l.then(
|
|
900
|
+
l.then(p, p);
|
|
901
901
|
}
|
|
902
902
|
c(o);
|
|
903
903
|
});
|
|
@@ -917,7 +917,7 @@ function ei(e) {
|
|
|
917
917
|
if (t !== null) {
|
|
918
918
|
e.effects = null;
|
|
919
919
|
for (var n = 0; n < t.length; n += 1)
|
|
920
|
-
|
|
920
|
+
me(
|
|
921
921
|
/** @type {Effect} */
|
|
922
922
|
t[n]
|
|
923
923
|
);
|
|
@@ -925,7 +925,7 @@ function ei(e) {
|
|
|
925
925
|
}
|
|
926
926
|
function Gs(e) {
|
|
927
927
|
for (var t = e.parent; t !== null; ) {
|
|
928
|
-
if ((t.f &
|
|
928
|
+
if ((t.f & be) === 0)
|
|
929
929
|
return (
|
|
930
930
|
/** @type {Effect} */
|
|
931
931
|
t
|
|
@@ -935,7 +935,7 @@ function Gs(e) {
|
|
|
935
935
|
return null;
|
|
936
936
|
}
|
|
937
937
|
function Rr(e) {
|
|
938
|
-
var t, n =
|
|
938
|
+
var t, n = R;
|
|
939
939
|
Ge(Gs(e));
|
|
940
940
|
try {
|
|
941
941
|
e.f &= ~On, ei(e), t = xi(e);
|
|
@@ -950,12 +950,12 @@ function ti(e) {
|
|
|
950
950
|
if (Ne !== null)
|
|
951
951
|
Ne.set(e, e.v);
|
|
952
952
|
else {
|
|
953
|
-
var n = (
|
|
954
|
-
|
|
953
|
+
var n = (lt || (e.f & Oe) !== 0) && e.deps !== null ? st : pe;
|
|
954
|
+
_e(e, n);
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
957
|
let mr = /* @__PURE__ */ new Set();
|
|
958
|
-
const
|
|
958
|
+
const ft = /* @__PURE__ */ new Map();
|
|
959
959
|
let ni = !1;
|
|
960
960
|
function yt(e, t) {
|
|
961
961
|
var n = {
|
|
@@ -982,19 +982,19 @@ function ri(e, t = !1, n = !0) {
|
|
|
982
982
|
function S(e, t, n = !1) {
|
|
983
983
|
N !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
984
984
|
// to ensure we error if state is set inside an inspect effect
|
|
985
|
-
(!$e || (N.f & go) !== 0) && dn() && (N.f & (
|
|
985
|
+
(!$e || (N.f & go) !== 0) && dn() && (N.f & (be | We | Mr | go)) !== 0 && !ot?.includes(e) && Ms();
|
|
986
986
|
let r = n ? Pt(t) : t;
|
|
987
987
|
return jt(e, r);
|
|
988
988
|
}
|
|
989
989
|
function jt(e, t) {
|
|
990
990
|
if (!e.equals(t)) {
|
|
991
991
|
var n = e.v;
|
|
992
|
-
Lt ?
|
|
992
|
+
Lt ? ft.set(e, t) : ft.set(e, n), e.v = t;
|
|
993
993
|
var r = Pe.ensure();
|
|
994
|
-
r.capture(e, n), (e.f &
|
|
994
|
+
r.capture(e, n), (e.f & be) !== 0 && ((e.f & Le) !== 0 && Rr(
|
|
995
995
|
/** @type {Derived} */
|
|
996
996
|
e
|
|
997
|
-
),
|
|
997
|
+
), _e(e, (e.f & Oe) === 0 ? pe : st)), e.wv = yi(), oi(e, Le), dn() && R !== null && (R.f & pe) !== 0 && (R.f & (it | gt)) === 0 && (Ve === null ? na([e]) : Ve.push(e)), !r.is_fork && mr.size > 0 && !ni && Ws();
|
|
998
998
|
}
|
|
999
999
|
return t;
|
|
1000
1000
|
}
|
|
@@ -1002,7 +1002,7 @@ function Ws() {
|
|
|
1002
1002
|
ni = !1;
|
|
1003
1003
|
const e = Array.from(mr);
|
|
1004
1004
|
for (const t of e)
|
|
1005
|
-
(t.f &
|
|
1005
|
+
(t.f & pe) !== 0 && _e(t, st), vn(t) && fn(t);
|
|
1006
1006
|
mr.clear();
|
|
1007
1007
|
}
|
|
1008
1008
|
function ln(e) {
|
|
@@ -1013,13 +1013,13 @@ function oi(e, t) {
|
|
|
1013
1013
|
if (n !== null)
|
|
1014
1014
|
for (var r = dn(), o = n.length, i = 0; i < o; i++) {
|
|
1015
1015
|
var s = n[i], a = s.f;
|
|
1016
|
-
if (!(!r && s ===
|
|
1017
|
-
var u = (a &
|
|
1018
|
-
u &&
|
|
1016
|
+
if (!(!r && s === R)) {
|
|
1017
|
+
var u = (a & Le) === 0;
|
|
1018
|
+
u && _e(s, t), (a & be) !== 0 ? (a & On) === 0 && (s.f |= On, oi(
|
|
1019
1019
|
/** @type {Derived} */
|
|
1020
1020
|
s,
|
|
1021
|
-
|
|
1022
|
-
)) : u && ((a & We) !== 0 &&
|
|
1021
|
+
st
|
|
1022
|
+
)) : u && ((a & We) !== 0 && et !== null && et.add(
|
|
1023
1023
|
/** @type {Effect} */
|
|
1024
1024
|
s
|
|
1025
1025
|
), Et(
|
|
@@ -1039,9 +1039,9 @@ function Pt(e) {
|
|
|
1039
1039
|
if (wt === i)
|
|
1040
1040
|
return a();
|
|
1041
1041
|
var u = N, c = wt;
|
|
1042
|
-
|
|
1042
|
+
Ae(null), bo(i);
|
|
1043
1043
|
var l = a();
|
|
1044
|
-
return
|
|
1044
|
+
return Ae(u), bo(c), l;
|
|
1045
1045
|
};
|
|
1046
1046
|
return r && n.set("length", /* @__PURE__ */ J(
|
|
1047
1047
|
/** @type {any[]} */
|
|
@@ -1054,31 +1054,31 @@ function Pt(e) {
|
|
|
1054
1054
|
(!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && Hs();
|
|
1055
1055
|
var l = n.get(u);
|
|
1056
1056
|
return l === void 0 ? l = s(() => {
|
|
1057
|
-
var
|
|
1058
|
-
return n.set(u,
|
|
1057
|
+
var p = /* @__PURE__ */ J(c.value);
|
|
1058
|
+
return n.set(u, p), p;
|
|
1059
1059
|
}) : S(l, c.value, !0), !0;
|
|
1060
1060
|
},
|
|
1061
1061
|
deleteProperty(a, u) {
|
|
1062
1062
|
var c = n.get(u);
|
|
1063
1063
|
if (c === void 0) {
|
|
1064
1064
|
if (u in a) {
|
|
1065
|
-
const l = s(() => /* @__PURE__ */ J(
|
|
1065
|
+
const l = s(() => /* @__PURE__ */ J(he));
|
|
1066
1066
|
n.set(u, l), ln(o);
|
|
1067
1067
|
}
|
|
1068
1068
|
} else
|
|
1069
|
-
S(c,
|
|
1069
|
+
S(c, he), ln(o);
|
|
1070
1070
|
return !0;
|
|
1071
1071
|
},
|
|
1072
1072
|
get(a, u, c) {
|
|
1073
1073
|
if (u === sn)
|
|
1074
1074
|
return e;
|
|
1075
|
-
var l = n.get(u),
|
|
1076
|
-
if (l === void 0 && (!
|
|
1077
|
-
var g = Pt(
|
|
1075
|
+
var l = n.get(u), p = u in a;
|
|
1076
|
+
if (l === void 0 && (!p || bt(a, u)?.writable) && (l = s(() => {
|
|
1077
|
+
var g = Pt(p ? a[u] : he), d = /* @__PURE__ */ J(g);
|
|
1078
1078
|
return d;
|
|
1079
1079
|
}), n.set(u, l)), l !== void 0) {
|
|
1080
1080
|
var v = M(l);
|
|
1081
|
-
return v ===
|
|
1081
|
+
return v === he ? void 0 : v;
|
|
1082
1082
|
}
|
|
1083
1083
|
return Reflect.get(a, u, c);
|
|
1084
1084
|
},
|
|
@@ -1088,8 +1088,8 @@ function Pt(e) {
|
|
|
1088
1088
|
var l = n.get(u);
|
|
1089
1089
|
l && (c.value = M(l));
|
|
1090
1090
|
} else if (c === void 0) {
|
|
1091
|
-
var
|
|
1092
|
-
if (
|
|
1091
|
+
var p = n.get(u), v = p?.v;
|
|
1092
|
+
if (p !== void 0 && v !== he)
|
|
1093
1093
|
return {
|
|
1094
1094
|
enumerable: !0,
|
|
1095
1095
|
configurable: !0,
|
|
@@ -1102,41 +1102,41 @@ function Pt(e) {
|
|
|
1102
1102
|
has(a, u) {
|
|
1103
1103
|
if (u === sn)
|
|
1104
1104
|
return !0;
|
|
1105
|
-
var c = n.get(u), l = c !== void 0 && c.v !==
|
|
1106
|
-
if (c !== void 0 ||
|
|
1105
|
+
var c = n.get(u), l = c !== void 0 && c.v !== he || Reflect.has(a, u);
|
|
1106
|
+
if (c !== void 0 || R !== null && (!l || bt(a, u)?.writable)) {
|
|
1107
1107
|
c === void 0 && (c = s(() => {
|
|
1108
|
-
var v = l ? Pt(a[u]) :
|
|
1108
|
+
var v = l ? Pt(a[u]) : he, g = /* @__PURE__ */ J(v);
|
|
1109
1109
|
return g;
|
|
1110
1110
|
}), n.set(u, c));
|
|
1111
|
-
var
|
|
1112
|
-
if (
|
|
1111
|
+
var p = M(c);
|
|
1112
|
+
if (p === he)
|
|
1113
1113
|
return !1;
|
|
1114
1114
|
}
|
|
1115
1115
|
return l;
|
|
1116
1116
|
},
|
|
1117
1117
|
set(a, u, c, l) {
|
|
1118
|
-
var
|
|
1118
|
+
var p = n.get(u), v = u in a;
|
|
1119
1119
|
if (r && u === "length")
|
|
1120
1120
|
for (var g = c; g < /** @type {Source<number>} */
|
|
1121
|
-
|
|
1121
|
+
p.v; g += 1) {
|
|
1122
1122
|
var d = n.get(g + "");
|
|
1123
|
-
d !== void 0 ? S(d,
|
|
1123
|
+
d !== void 0 ? S(d, he) : g in a && (d = s(() => /* @__PURE__ */ J(he)), n.set(g + "", d));
|
|
1124
1124
|
}
|
|
1125
|
-
if (
|
|
1126
|
-
(!v || bt(a, u)?.writable) && (
|
|
1125
|
+
if (p === void 0)
|
|
1126
|
+
(!v || bt(a, u)?.writable) && (p = s(() => /* @__PURE__ */ J(void 0)), S(p, Pt(c)), n.set(u, p));
|
|
1127
1127
|
else {
|
|
1128
|
-
v =
|
|
1128
|
+
v = p.v !== he;
|
|
1129
1129
|
var m = s(() => Pt(c));
|
|
1130
|
-
S(
|
|
1130
|
+
S(p, m);
|
|
1131
1131
|
}
|
|
1132
|
-
var
|
|
1133
|
-
if (
|
|
1132
|
+
var h = Reflect.getOwnPropertyDescriptor(a, u);
|
|
1133
|
+
if (h?.set && h.set.call(l, c), !v) {
|
|
1134
1134
|
if (r && typeof u == "string") {
|
|
1135
1135
|
var b = (
|
|
1136
1136
|
/** @type {Source<number>} */
|
|
1137
1137
|
n.get("length")
|
|
1138
|
-
),
|
|
1139
|
-
Number.isInteger(
|
|
1138
|
+
), E = Number(u);
|
|
1139
|
+
Number.isInteger(E) && E >= b.v && S(b, E + 1);
|
|
1140
1140
|
}
|
|
1141
1141
|
ln(o);
|
|
1142
1142
|
}
|
|
@@ -1144,12 +1144,12 @@ function Pt(e) {
|
|
|
1144
1144
|
},
|
|
1145
1145
|
ownKeys(a) {
|
|
1146
1146
|
M(o);
|
|
1147
|
-
var u = Reflect.ownKeys(a).filter((
|
|
1148
|
-
var v = n.get(
|
|
1149
|
-
return v === void 0 || v.v !==
|
|
1147
|
+
var u = Reflect.ownKeys(a).filter((p) => {
|
|
1148
|
+
var v = n.get(p);
|
|
1149
|
+
return v === void 0 || v.v !== he;
|
|
1150
1150
|
});
|
|
1151
1151
|
for (var [c, l] of n)
|
|
1152
|
-
l.v !==
|
|
1152
|
+
l.v !== he && !(c in a) && u.push(c);
|
|
1153
1153
|
return u;
|
|
1154
1154
|
},
|
|
1155
1155
|
setPrototypeOf() {
|
|
@@ -1188,9 +1188,9 @@ function P(e, t) {
|
|
|
1188
1188
|
n = F.appendChild(Fe());
|
|
1189
1189
|
else if (t && n.nodeType !== Sr) {
|
|
1190
1190
|
var r = Fe();
|
|
1191
|
-
return n?.before(r),
|
|
1191
|
+
return n?.before(r), Ee(r), r;
|
|
1192
1192
|
}
|
|
1193
|
-
return
|
|
1193
|
+
return Ee(n), n;
|
|
1194
1194
|
}
|
|
1195
1195
|
function G(e, t = !1) {
|
|
1196
1196
|
if (!$) {
|
|
@@ -1205,11 +1205,11 @@ function G(e, t = !1) {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
if (t && F?.nodeType !== Sr) {
|
|
1207
1207
|
var r = Fe();
|
|
1208
|
-
return F?.before(r),
|
|
1208
|
+
return F?.before(r), Ee(r), r;
|
|
1209
1209
|
}
|
|
1210
1210
|
return F;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function ee(e, t = 1, n = !1) {
|
|
1213
1213
|
let r = $ ? F : e;
|
|
1214
1214
|
for (var o; t--; )
|
|
1215
1215
|
o = r, r = /** @type {TemplateNode} */
|
|
@@ -1218,9 +1218,9 @@ function te(e, t = 1, n = !1) {
|
|
|
1218
1218
|
return r;
|
|
1219
1219
|
if (n && r?.nodeType !== Sr) {
|
|
1220
1220
|
var i = Fe();
|
|
1221
|
-
return r === null ? o?.after(i) : r.before(i),
|
|
1221
|
+
return r === null ? o?.after(i) : r.before(i), Ee(i), i;
|
|
1222
1222
|
}
|
|
1223
|
-
return
|
|
1223
|
+
return Ee(r), /** @type {TemplateNode} */
|
|
1224
1224
|
r;
|
|
1225
1225
|
}
|
|
1226
1226
|
function li(e) {
|
|
@@ -1249,12 +1249,12 @@ function fi() {
|
|
|
1249
1249
|
));
|
|
1250
1250
|
}
|
|
1251
1251
|
function Wt(e) {
|
|
1252
|
-
var t = N, n =
|
|
1253
|
-
|
|
1252
|
+
var t = N, n = R;
|
|
1253
|
+
Ae(null), Ge(null);
|
|
1254
1254
|
try {
|
|
1255
1255
|
return e();
|
|
1256
1256
|
} finally {
|
|
1257
|
-
|
|
1257
|
+
Ae(t), Ge(n);
|
|
1258
1258
|
}
|
|
1259
1259
|
}
|
|
1260
1260
|
function Ys(e, t, n, r = n) {
|
|
@@ -1265,21 +1265,21 @@ function Ys(e, t, n, r = n) {
|
|
|
1265
1265
|
} : e.__on_r = () => r(!0), fi();
|
|
1266
1266
|
}
|
|
1267
1267
|
function qs(e) {
|
|
1268
|
-
|
|
1268
|
+
R === null && N === null && Ts(), N !== null && (N.f & Oe) !== 0 && R === null && ys(), Lt && Es();
|
|
1269
1269
|
}
|
|
1270
1270
|
function Ks(e, t) {
|
|
1271
1271
|
var n = t.last;
|
|
1272
1272
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1273
1273
|
}
|
|
1274
1274
|
function Ye(e, t, n, r = !0) {
|
|
1275
|
-
var o =
|
|
1276
|
-
o !== null && (o.f &
|
|
1275
|
+
var o = R;
|
|
1276
|
+
o !== null && (o.f & ke) !== 0 && (e |= ke);
|
|
1277
1277
|
var i = {
|
|
1278
1278
|
ctx: oe,
|
|
1279
1279
|
deps: null,
|
|
1280
1280
|
nodes_start: null,
|
|
1281
1281
|
nodes_end: null,
|
|
1282
|
-
f: e |
|
|
1282
|
+
f: e | Le,
|
|
1283
1283
|
first: null,
|
|
1284
1284
|
fn: t,
|
|
1285
1285
|
last: null,
|
|
@@ -1296,13 +1296,13 @@ function Ye(e, t, n, r = !0) {
|
|
|
1296
1296
|
try {
|
|
1297
1297
|
fn(i), i.f |= Un;
|
|
1298
1298
|
} catch (u) {
|
|
1299
|
-
throw
|
|
1299
|
+
throw me(i), u;
|
|
1300
1300
|
}
|
|
1301
1301
|
else t !== null && Et(i);
|
|
1302
1302
|
if (r) {
|
|
1303
1303
|
var s = i;
|
|
1304
1304
|
if (n && s.deps === null && s.teardown === null && s.nodes_start === null && s.first === s.last && // either `null`, or a singular child
|
|
1305
|
-
(s.f & xt) === 0 && (s = s.first, (e & We) !== 0 && (e &
|
|
1305
|
+
(s.f & xt) === 0 && (s = s.first, (e & We) !== 0 && (e & dt) !== 0 && s !== null && (s.f |= dt)), s !== null && (s.parent = o, o !== null && Ks(s, o), N !== null && (N.f & be) !== 0 && (e & gt) === 0)) {
|
|
1306
1306
|
var a = (
|
|
1307
1307
|
/** @type {Derived} */
|
|
1308
1308
|
N
|
|
@@ -1317,14 +1317,14 @@ function Xs() {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
function ci(e) {
|
|
1319
1319
|
const t = Ye(kr, null, !1);
|
|
1320
|
-
return
|
|
1320
|
+
return _e(t, pe), t.teardown = e, t;
|
|
1321
1321
|
}
|
|
1322
1322
|
function di(e) {
|
|
1323
1323
|
qs();
|
|
1324
1324
|
var t = (
|
|
1325
1325
|
/** @type {Effect} */
|
|
1326
|
-
|
|
1327
|
-
), n = !N && (t &
|
|
1326
|
+
R.f
|
|
1327
|
+
), n = !N && (t & it) !== 0 && (t & Un) === 0;
|
|
1328
1328
|
if (n) {
|
|
1329
1329
|
var r = (
|
|
1330
1330
|
/** @type {ComponentContext} */
|
|
@@ -1339,18 +1339,18 @@ function gi(e) {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
function Js(e) {
|
|
1341
1341
|
Pe.ensure();
|
|
1342
|
-
const t = Ye(
|
|
1342
|
+
const t = Ye(gt | xt, e, !0);
|
|
1343
1343
|
return () => {
|
|
1344
|
-
|
|
1344
|
+
me(t);
|
|
1345
1345
|
};
|
|
1346
1346
|
}
|
|
1347
1347
|
function Qs(e) {
|
|
1348
1348
|
Pe.ensure();
|
|
1349
|
-
const t = Ye(
|
|
1349
|
+
const t = Ye(gt | xt, e, !0);
|
|
1350
1350
|
return (n = {}) => new Promise((r) => {
|
|
1351
1351
|
n.outro ? Bt(t, () => {
|
|
1352
|
-
|
|
1353
|
-
}) : (
|
|
1352
|
+
me(t), r(void 0);
|
|
1353
|
+
}) : (me(t), r(void 0));
|
|
1354
1354
|
});
|
|
1355
1355
|
}
|
|
1356
1356
|
function gn(e) {
|
|
@@ -1362,7 +1362,7 @@ function ea(e) {
|
|
|
1362
1362
|
function Gn(e, t = 0) {
|
|
1363
1363
|
return Ye(kr | t, e, !0);
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function Me(e, t = [], n = [], r = [], o = !1) {
|
|
1366
1366
|
Us(r, t, n, (i) => {
|
|
1367
1367
|
Ye(o ? Fn : kr, () => e(...i.map(M)), !0);
|
|
1368
1368
|
});
|
|
@@ -1372,17 +1372,17 @@ function Wn(e, t = 0) {
|
|
|
1372
1372
|
return n;
|
|
1373
1373
|
}
|
|
1374
1374
|
function Re(e, t = !0) {
|
|
1375
|
-
return Ye(
|
|
1375
|
+
return Ye(it | xt, e, !0, t);
|
|
1376
1376
|
}
|
|
1377
1377
|
function vi(e) {
|
|
1378
1378
|
var t = e.teardown;
|
|
1379
1379
|
if (t !== null) {
|
|
1380
1380
|
const n = Lt, r = N;
|
|
1381
|
-
_o(!0),
|
|
1381
|
+
_o(!0), Ae(null);
|
|
1382
1382
|
try {
|
|
1383
1383
|
t.call(null);
|
|
1384
1384
|
} finally {
|
|
1385
|
-
_o(n),
|
|
1385
|
+
_o(n), Ae(r);
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
@@ -1394,22 +1394,22 @@ function hi(e, t = !1) {
|
|
|
1394
1394
|
o.abort($t);
|
|
1395
1395
|
});
|
|
1396
1396
|
var r = n.next;
|
|
1397
|
-
(n.f &
|
|
1397
|
+
(n.f & gt) !== 0 ? n.parent = null : me(n, t), n = r;
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
1400
|
function ta(e) {
|
|
1401
1401
|
for (var t = e.first; t !== null; ) {
|
|
1402
1402
|
var n = t.next;
|
|
1403
|
-
(t.f &
|
|
1403
|
+
(t.f & it) === 0 && me(t), t = n;
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function me(e, t = !0) {
|
|
1407
1407
|
var n = !1;
|
|
1408
1408
|
(t || (e.f & Uo) !== 0) && e.nodes_start !== null && e.nodes_end !== null && (pi(
|
|
1409
1409
|
e.nodes_start,
|
|
1410
1410
|
/** @type {TemplateNode} */
|
|
1411
1411
|
e.nodes_end
|
|
1412
|
-
), n = !0), hi(e, t && !n), Nn(e, 0),
|
|
1412
|
+
), n = !0), hi(e, t && !n), Nn(e, 0), _e(e, rt);
|
|
1413
1413
|
var r = e.transitions;
|
|
1414
1414
|
if (r !== null)
|
|
1415
1415
|
for (const i of r)
|
|
@@ -1434,7 +1434,7 @@ function mi(e) {
|
|
|
1434
1434
|
function Bt(e, t, n = !0) {
|
|
1435
1435
|
var r = [];
|
|
1436
1436
|
Or(e, r, !0), _i(r, () => {
|
|
1437
|
-
n &&
|
|
1437
|
+
n && me(e), t && t();
|
|
1438
1438
|
});
|
|
1439
1439
|
}
|
|
1440
1440
|
function _i(e, t) {
|
|
@@ -1447,15 +1447,15 @@ function _i(e, t) {
|
|
|
1447
1447
|
t();
|
|
1448
1448
|
}
|
|
1449
1449
|
function Or(e, t, n) {
|
|
1450
|
-
if ((e.f &
|
|
1451
|
-
if (e.f ^=
|
|
1450
|
+
if ((e.f & ke) === 0) {
|
|
1451
|
+
if (e.f ^= ke, e.transitions !== null)
|
|
1452
1452
|
for (const s of e.transitions)
|
|
1453
1453
|
(s.is_global || n) && t.push(s);
|
|
1454
1454
|
for (var r = e.first; r !== null; ) {
|
|
1455
|
-
var o = r.next, i = (r.f &
|
|
1455
|
+
var o = r.next, i = (r.f & dt) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1456
1456
|
// it means the parent block effect was pruned. In that case,
|
|
1457
1457
|
// transparency information was transferred to the branch effect.
|
|
1458
|
-
(r.f &
|
|
1458
|
+
(r.f & it) !== 0 && (e.f & We) !== 0;
|
|
1459
1459
|
Or(r, t, i ? n : !1), r = o;
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
@@ -1464,10 +1464,10 @@ function Ir(e) {
|
|
|
1464
1464
|
bi(e, !0);
|
|
1465
1465
|
}
|
|
1466
1466
|
function bi(e, t) {
|
|
1467
|
-
if ((e.f &
|
|
1468
|
-
e.f ^=
|
|
1467
|
+
if ((e.f & ke) !== 0) {
|
|
1468
|
+
e.f ^= ke, (e.f & pe) === 0 && (_e(e, Le), Et(e));
|
|
1469
1469
|
for (var n = e.first; n !== null; ) {
|
|
1470
|
-
var r = n.next, o = (n.f &
|
|
1470
|
+
var r = n.next, o = (n.f & dt) !== 0 || (n.f & it) !== 0;
|
|
1471
1471
|
bi(n, o ? t : !1), n = r;
|
|
1472
1472
|
}
|
|
1473
1473
|
if (e.transitions !== null)
|
|
@@ -1493,18 +1493,18 @@ function _o(e) {
|
|
|
1493
1493
|
Lt = e;
|
|
1494
1494
|
}
|
|
1495
1495
|
let N = null, $e = !1;
|
|
1496
|
-
function
|
|
1496
|
+
function Ae(e) {
|
|
1497
1497
|
N = e;
|
|
1498
1498
|
}
|
|
1499
|
-
let
|
|
1499
|
+
let R = null;
|
|
1500
1500
|
function Ge(e) {
|
|
1501
|
-
|
|
1501
|
+
R = e;
|
|
1502
1502
|
}
|
|
1503
|
-
let
|
|
1503
|
+
let ot = null;
|
|
1504
1504
|
function Ci(e) {
|
|
1505
|
-
N !== null && (
|
|
1505
|
+
N !== null && (ot === null ? ot = [e] : ot.push(e));
|
|
1506
1506
|
}
|
|
1507
|
-
let
|
|
1507
|
+
let Ce = null, He = 0, Ve = null;
|
|
1508
1508
|
function na(e) {
|
|
1509
1509
|
Ve = e;
|
|
1510
1510
|
}
|
|
@@ -1512,19 +1512,19 @@ let Ei = 1, un = 0, wt = un;
|
|
|
1512
1512
|
function bo(e) {
|
|
1513
1513
|
wt = e;
|
|
1514
1514
|
}
|
|
1515
|
-
let
|
|
1515
|
+
let lt = !1;
|
|
1516
1516
|
function yi() {
|
|
1517
1517
|
return ++Ei;
|
|
1518
1518
|
}
|
|
1519
1519
|
function vn(e) {
|
|
1520
1520
|
var t = e.f;
|
|
1521
|
-
if ((t &
|
|
1521
|
+
if ((t & Le) !== 0)
|
|
1522
1522
|
return !0;
|
|
1523
|
-
if ((t &
|
|
1523
|
+
if ((t & st) !== 0) {
|
|
1524
1524
|
var n = e.deps, r = (t & Oe) !== 0;
|
|
1525
|
-
if (t &
|
|
1526
|
-
var o, i, s = (t & Rn) !== 0, a = r &&
|
|
1527
|
-
if ((s || a) && (
|
|
1525
|
+
if (t & be && (e.f &= ~On), n !== null) {
|
|
1526
|
+
var o, i, s = (t & Rn) !== 0, a = r && R !== null && !lt, u = n.length;
|
|
1527
|
+
if ((s || a) && (R === null || (R.f & rt) === 0)) {
|
|
1528
1528
|
var c = (
|
|
1529
1529
|
/** @type {Derived} */
|
|
1530
1530
|
e
|
|
@@ -1543,52 +1543,52 @@ function vn(e) {
|
|
|
1543
1543
|
), i.wv > e.wv)
|
|
1544
1544
|
return !0;
|
|
1545
1545
|
}
|
|
1546
|
-
(!r ||
|
|
1546
|
+
(!r || R !== null && !lt) && _e(e, pe);
|
|
1547
1547
|
}
|
|
1548
1548
|
return !1;
|
|
1549
1549
|
}
|
|
1550
1550
|
function Ti(e, t, n = !0) {
|
|
1551
1551
|
var r = e.reactions;
|
|
1552
|
-
if (r !== null && !
|
|
1552
|
+
if (r !== null && !ot?.includes(e))
|
|
1553
1553
|
for (var o = 0; o < r.length; o++) {
|
|
1554
1554
|
var i = r[o];
|
|
1555
|
-
(i.f &
|
|
1555
|
+
(i.f & be) !== 0 ? Ti(
|
|
1556
1556
|
/** @type {Derived} */
|
|
1557
1557
|
i,
|
|
1558
1558
|
t,
|
|
1559
1559
|
!1
|
|
1560
|
-
) : t === i && (n ?
|
|
1560
|
+
) : t === i && (n ? _e(i, Le) : (i.f & pe) !== 0 && _e(i, st), Et(
|
|
1561
1561
|
/** @type {Effect} */
|
|
1562
1562
|
i
|
|
1563
1563
|
));
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
function xi(e) {
|
|
1567
|
-
var t =
|
|
1568
|
-
|
|
1569
|
-
null,
|
|
1567
|
+
var t = Ce, n = He, r = Ve, o = N, i = lt, s = ot, a = oe, u = $e, c = wt, l = e.f;
|
|
1568
|
+
Ce = /** @type {null | Value[]} */
|
|
1569
|
+
null, He = 0, Ve = null, lt = (l & Oe) !== 0 && ($e || !Ft || N === null), N = (l & (it | gt)) === 0 ? e : null, ot = null, Ut(e.ctx), $e = !1, wt = ++un, e.ac !== null && (Wt(() => {
|
|
1570
1570
|
e.ac.abort($t);
|
|
1571
1571
|
}), e.ac = null);
|
|
1572
1572
|
try {
|
|
1573
1573
|
e.f |= hr;
|
|
1574
|
-
var
|
|
1574
|
+
var p = (
|
|
1575
1575
|
/** @type {Function} */
|
|
1576
1576
|
e.fn
|
|
1577
|
-
), v =
|
|
1578
|
-
if (
|
|
1577
|
+
), v = p(), g = e.deps;
|
|
1578
|
+
if (Ce !== null) {
|
|
1579
1579
|
var d;
|
|
1580
|
-
if (Nn(e,
|
|
1581
|
-
for (g.length =
|
|
1582
|
-
g[
|
|
1580
|
+
if (Nn(e, He), g !== null && He > 0)
|
|
1581
|
+
for (g.length = He + Ce.length, d = 0; d < Ce.length; d++)
|
|
1582
|
+
g[He + d] = Ce[d];
|
|
1583
1583
|
else
|
|
1584
|
-
e.deps = g =
|
|
1585
|
-
if (!
|
|
1586
|
-
(l &
|
|
1584
|
+
e.deps = g = Ce;
|
|
1585
|
+
if (!lt || // Deriveds that already have reactions can cleanup, so we still add them as reactions
|
|
1586
|
+
(l & be) !== 0 && /** @type {import('#client').Derived} */
|
|
1587
1587
|
e.reactions !== null)
|
|
1588
|
-
for (d =
|
|
1588
|
+
for (d = He; d < g.length; d++)
|
|
1589
1589
|
(g[d].reactions ??= []).push(e);
|
|
1590
|
-
} else g !== null &&
|
|
1591
|
-
if (dn() && Ve !== null && !$e && g !== null && (e.f & (
|
|
1590
|
+
} else g !== null && He < g.length && (Nn(e, He), g.length = He);
|
|
1591
|
+
if (dn() && Ve !== null && !$e && g !== null && (e.f & (be | st | Le)) === 0)
|
|
1592
1592
|
for (d = 0; d < /** @type {Source[]} */
|
|
1593
1593
|
Ve.length; d++)
|
|
1594
1594
|
Ti(
|
|
@@ -1597,11 +1597,11 @@ function xi(e) {
|
|
|
1597
1597
|
e
|
|
1598
1598
|
);
|
|
1599
1599
|
return o !== null && o !== e && (un++, Ve !== null && (r === null ? r = Ve : r.push(.../** @type {Source[]} */
|
|
1600
|
-
Ve))), (e.f &
|
|
1600
|
+
Ve))), (e.f & ut) !== 0 && (e.f ^= ut), v;
|
|
1601
1601
|
} catch (m) {
|
|
1602
1602
|
return qo(m);
|
|
1603
1603
|
} finally {
|
|
1604
|
-
e.f ^= hr,
|
|
1604
|
+
e.f ^= hr, Ce = t, He = n, Ve = r, N = o, lt = i, ot = s, Ut(a), $e = u, wt = c;
|
|
1605
1605
|
}
|
|
1606
1606
|
}
|
|
1607
1607
|
function ra(e, t) {
|
|
@@ -1613,10 +1613,10 @@ function ra(e, t) {
|
|
|
1613
1613
|
o === 0 ? n = t.reactions = null : (n[r] = n[o], n.pop());
|
|
1614
1614
|
}
|
|
1615
1615
|
}
|
|
1616
|
-
n === null && (t.f &
|
|
1616
|
+
n === null && (t.f & be) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1617
1617
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1618
1618
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1619
|
-
(
|
|
1619
|
+
(Ce === null || !Ce.includes(t)) && (_e(t, st), (t.f & (Oe | Rn)) === 0 && (t.f ^= Rn), ei(
|
|
1620
1620
|
/** @type {Derived} **/
|
|
1621
1621
|
t
|
|
1622
1622
|
), Nn(
|
|
@@ -1633,32 +1633,32 @@ function Nn(e, t) {
|
|
|
1633
1633
|
}
|
|
1634
1634
|
function fn(e) {
|
|
1635
1635
|
var t = e.f;
|
|
1636
|
-
if ((t &
|
|
1637
|
-
|
|
1638
|
-
var n =
|
|
1639
|
-
|
|
1636
|
+
if ((t & rt) === 0) {
|
|
1637
|
+
_e(e, pe);
|
|
1638
|
+
var n = R, r = Ft;
|
|
1639
|
+
R = e, Ft = !0;
|
|
1640
1640
|
try {
|
|
1641
1641
|
(t & We) !== 0 ? ta(e) : hi(e), vi(e);
|
|
1642
1642
|
var o = xi(e);
|
|
1643
1643
|
e.teardown = typeof o == "function" ? o : null, e.wv = Ei;
|
|
1644
1644
|
var i;
|
|
1645
|
-
Po && Is && (e.f &
|
|
1645
|
+
Po && Is && (e.f & Le) !== 0 && e.deps;
|
|
1646
1646
|
} finally {
|
|
1647
|
-
Ft = r,
|
|
1647
|
+
Ft = r, R = n;
|
|
1648
1648
|
}
|
|
1649
1649
|
}
|
|
1650
1650
|
}
|
|
1651
1651
|
async function oa() {
|
|
1652
|
-
await Promise.resolve(),
|
|
1652
|
+
await Promise.resolve(), y();
|
|
1653
1653
|
}
|
|
1654
1654
|
function M(e) {
|
|
1655
|
-
var t = e.f, n = (t &
|
|
1655
|
+
var t = e.f, n = (t & be) !== 0;
|
|
1656
1656
|
if (N !== null && !$e) {
|
|
1657
|
-
var r =
|
|
1658
|
-
if (!r && !
|
|
1657
|
+
var r = R !== null && (R.f & rt) !== 0;
|
|
1658
|
+
if (!r && !ot?.includes(e)) {
|
|
1659
1659
|
var o = N.deps;
|
|
1660
1660
|
if ((N.f & hr) !== 0)
|
|
1661
|
-
e.rv < un && (e.rv = un,
|
|
1661
|
+
e.rv < un && (e.rv = un, Ce === null && o !== null && o[He] === e ? He++ : Ce === null ? Ce = [e] : (!lt || !Ce.includes(e)) && Ce.push(e));
|
|
1662
1662
|
else {
|
|
1663
1663
|
(N.deps ??= []).push(e);
|
|
1664
1664
|
var i = e.reactions;
|
|
@@ -1675,13 +1675,13 @@ function M(e) {
|
|
|
1675
1675
|
a !== null && (a.f & Oe) === 0 && (s.f ^= Oe);
|
|
1676
1676
|
}
|
|
1677
1677
|
if (Lt) {
|
|
1678
|
-
if (
|
|
1679
|
-
return
|
|
1678
|
+
if (ft.has(e))
|
|
1679
|
+
return ft.get(e);
|
|
1680
1680
|
if (n) {
|
|
1681
1681
|
s = /** @type {Derived} */
|
|
1682
1682
|
e;
|
|
1683
1683
|
var u = s.v;
|
|
1684
|
-
return ((s.f &
|
|
1684
|
+
return ((s.f & pe) === 0 && s.reactions !== null || Ai(s)) && (u = Rr(s)), ft.set(s, u), u;
|
|
1685
1685
|
}
|
|
1686
1686
|
} else if (n) {
|
|
1687
1687
|
if (s = /** @type {Derived} */
|
|
@@ -1691,15 +1691,15 @@ function M(e) {
|
|
|
1691
1691
|
}
|
|
1692
1692
|
if (Ne?.has(e))
|
|
1693
1693
|
return Ne.get(e);
|
|
1694
|
-
if ((e.f &
|
|
1694
|
+
if ((e.f & ut) !== 0)
|
|
1695
1695
|
throw e.v;
|
|
1696
1696
|
return e.v;
|
|
1697
1697
|
}
|
|
1698
1698
|
function Ai(e) {
|
|
1699
|
-
if (e.v ===
|
|
1699
|
+
if (e.v === he) return !0;
|
|
1700
1700
|
if (e.deps === null) return !1;
|
|
1701
1701
|
for (const t of e.deps)
|
|
1702
|
-
if (
|
|
1702
|
+
if (ft.has(t) || (t.f & be) !== 0 && Ai(
|
|
1703
1703
|
/** @type {Derived} */
|
|
1704
1704
|
t
|
|
1705
1705
|
))
|
|
@@ -1715,7 +1715,7 @@ function Ht(e) {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
}
|
|
1717
1717
|
const ia = -7169;
|
|
1718
|
-
function
|
|
1718
|
+
function _e(e, t) {
|
|
1719
1719
|
e.f = e.f & ia | t;
|
|
1720
1720
|
}
|
|
1721
1721
|
const Li = /* @__PURE__ */ new Set(), br = /* @__PURE__ */ new Set();
|
|
@@ -1724,7 +1724,7 @@ function sa(e, t, n, r = {}) {
|
|
|
1724
1724
|
if (r.capture || on.call(t, i), !i.cancelBubble)
|
|
1725
1725
|
return Wt(() => n?.call(this, i));
|
|
1726
1726
|
}
|
|
1727
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ?
|
|
1727
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? vt(() => {
|
|
1728
1728
|
t.addEventListener(e, o, r);
|
|
1729
1729
|
}) : t.addEventListener(e, o, r), o;
|
|
1730
1730
|
}
|
|
@@ -1737,7 +1737,7 @@ function Hi(e, t, n, r, o) {
|
|
|
1737
1737
|
t.removeEventListener(e, s, i);
|
|
1738
1738
|
});
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function ht(e) {
|
|
1741
1741
|
for (var t = 0; t < e.length; t++)
|
|
1742
1742
|
Li.add(e[t]);
|
|
1743
1743
|
for (var n of br)
|
|
@@ -1774,8 +1774,8 @@ function on(e) {
|
|
|
1774
1774
|
return i || n;
|
|
1775
1775
|
}
|
|
1776
1776
|
});
|
|
1777
|
-
var l = N,
|
|
1778
|
-
|
|
1777
|
+
var l = N, p = R;
|
|
1778
|
+
Ae(null), Ge(null);
|
|
1779
1779
|
try {
|
|
1780
1780
|
for (var v, g = []; i !== null; ) {
|
|
1781
1781
|
var d = i.assignedSlot || i.parentNode || /** @type {any} */
|
|
@@ -1786,22 +1786,22 @@ function on(e) {
|
|
|
1786
1786
|
i.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1787
1787
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1788
1788
|
e.target === i) && m.call(i, e);
|
|
1789
|
-
} catch (
|
|
1790
|
-
v ? g.push(
|
|
1789
|
+
} catch (h) {
|
|
1790
|
+
v ? g.push(h) : v = h;
|
|
1791
1791
|
}
|
|
1792
1792
|
if (e.cancelBubble || d === t || d === null)
|
|
1793
1793
|
break;
|
|
1794
1794
|
i = d;
|
|
1795
1795
|
}
|
|
1796
1796
|
if (v) {
|
|
1797
|
-
for (let
|
|
1797
|
+
for (let h of g)
|
|
1798
1798
|
queueMicrotask(() => {
|
|
1799
|
-
throw
|
|
1799
|
+
throw h;
|
|
1800
1800
|
});
|
|
1801
1801
|
throw v;
|
|
1802
1802
|
}
|
|
1803
1803
|
} finally {
|
|
1804
|
-
e.__root = t, delete e.currentTarget,
|
|
1804
|
+
e.__root = t, delete e.currentTarget, Ae(l), Ge(p);
|
|
1805
1805
|
}
|
|
1806
1806
|
}
|
|
1807
1807
|
}
|
|
@@ -1809,10 +1809,10 @@ function ki(e) {
|
|
|
1809
1809
|
var t = document.createElement("template");
|
|
1810
1810
|
return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function ct(e, t) {
|
|
1813
1813
|
var n = (
|
|
1814
1814
|
/** @type {Effect} */
|
|
1815
|
-
|
|
1815
|
+
R
|
|
1816
1816
|
);
|
|
1817
1817
|
n.nodes_start === null && (n.nodes_start = e, n.nodes_end = t);
|
|
1818
1818
|
}
|
|
@@ -1821,7 +1821,7 @@ function ie(e, t) {
|
|
|
1821
1821
|
var n = (t & us) !== 0, r = (t & fs) !== 0, o, i = !e.startsWith("<!>");
|
|
1822
1822
|
return () => {
|
|
1823
1823
|
if ($)
|
|
1824
|
-
return
|
|
1824
|
+
return ct(F, null), F;
|
|
1825
1825
|
o === void 0 && (o = ki(i ? e : "<!>" + e), n || (o = /** @type {Node} */
|
|
1826
1826
|
/* @__PURE__ */ Be(o)));
|
|
1827
1827
|
var s = (
|
|
@@ -1836,21 +1836,21 @@ function ie(e, t) {
|
|
|
1836
1836
|
/** @type {TemplateNode} */
|
|
1837
1837
|
s.lastChild
|
|
1838
1838
|
);
|
|
1839
|
-
|
|
1839
|
+
ct(a, u);
|
|
1840
1840
|
} else
|
|
1841
|
-
|
|
1841
|
+
ct(s, s);
|
|
1842
1842
|
return s;
|
|
1843
1843
|
};
|
|
1844
1844
|
}
|
|
1845
1845
|
function Q() {
|
|
1846
1846
|
if ($)
|
|
1847
|
-
return
|
|
1847
|
+
return ct(F, null), F;
|
|
1848
1848
|
var e = document.createDocumentFragment(), t = document.createComment(""), n = Fe();
|
|
1849
|
-
return e.append(t, n),
|
|
1849
|
+
return e.append(t, n), ct(t, n), e;
|
|
1850
1850
|
}
|
|
1851
1851
|
function V(e, t) {
|
|
1852
1852
|
if ($) {
|
|
1853
|
-
|
|
1853
|
+
R.nodes_end = F, Zt();
|
|
1854
1854
|
return;
|
|
1855
1855
|
}
|
|
1856
1856
|
e !== null && e.before(
|
|
@@ -1883,28 +1883,28 @@ function ua(e, t) {
|
|
|
1883
1883
|
/* @__PURE__ */ Ze(i);
|
|
1884
1884
|
if (!i)
|
|
1885
1885
|
throw Ct;
|
|
1886
|
-
|
|
1886
|
+
nt(!0), Ee(
|
|
1887
1887
|
/** @type {Comment} */
|
|
1888
1888
|
i
|
|
1889
1889
|
);
|
|
1890
1890
|
const s = Si(e, { ...t, anchor: i });
|
|
1891
|
-
return
|
|
1891
|
+
return nt(!1), /** @type {Exports} */
|
|
1892
1892
|
s;
|
|
1893
1893
|
} catch (s) {
|
|
1894
1894
|
if (s instanceof Error && s.message.split(`
|
|
1895
1895
|
`).some((a) => a.startsWith("https://svelte.dev/e/")))
|
|
1896
1896
|
throw s;
|
|
1897
|
-
return s !== Ct && console.warn("Failed to hydrate: ", s), t.recover === !1 && As(), _r(), li(n),
|
|
1897
|
+
return s !== Ct && console.warn("Failed to hydrate: ", s), t.recover === !1 && As(), _r(), li(n), nt(!1), Mi(e, t);
|
|
1898
1898
|
} finally {
|
|
1899
|
-
|
|
1899
|
+
nt(r), Ee(o);
|
|
1900
1900
|
}
|
|
1901
1901
|
}
|
|
1902
1902
|
const Nt = /* @__PURE__ */ new Map();
|
|
1903
1903
|
function Si(e, { target: t, anchor: n, props: r = {}, events: o, context: i, intro: s = !0 }) {
|
|
1904
1904
|
_r();
|
|
1905
|
-
var a = /* @__PURE__ */ new Set(), u = (
|
|
1906
|
-
for (var v = 0; v <
|
|
1907
|
-
var g =
|
|
1905
|
+
var a = /* @__PURE__ */ new Set(), u = (p) => {
|
|
1906
|
+
for (var v = 0; v < p.length; v++) {
|
|
1907
|
+
var g = p[v];
|
|
1908
1908
|
if (!a.has(g)) {
|
|
1909
1909
|
a.add(g);
|
|
1910
1910
|
var d = la(g);
|
|
@@ -1916,10 +1916,10 @@ function Si(e, { target: t, anchor: n, props: r = {}, events: o, context: i, int
|
|
|
1916
1916
|
};
|
|
1917
1917
|
u(Hr(Li)), br.add(u);
|
|
1918
1918
|
var c = void 0, l = Qs(() => {
|
|
1919
|
-
var
|
|
1919
|
+
var p = n ?? t.appendChild(Fe());
|
|
1920
1920
|
return Fs(
|
|
1921
1921
|
/** @type {TemplateNode} */
|
|
1922
|
-
|
|
1922
|
+
p,
|
|
1923
1923
|
{
|
|
1924
1924
|
pending: () => {
|
|
1925
1925
|
}
|
|
@@ -1933,11 +1933,11 @@ function Si(e, { target: t, anchor: n, props: r = {}, events: o, context: i, int
|
|
|
1933
1933
|
);
|
|
1934
1934
|
g.c = i;
|
|
1935
1935
|
}
|
|
1936
|
-
if (o && (r.$$events = o), $ &&
|
|
1936
|
+
if (o && (r.$$events = o), $ && ct(
|
|
1937
1937
|
/** @type {TemplateNode} */
|
|
1938
1938
|
v,
|
|
1939
1939
|
null
|
|
1940
|
-
), wr = s, c = e(v, r) || {}, wr = !0, $ && (
|
|
1940
|
+
), wr = s, c = e(v, r) || {}, wr = !0, $ && (R.nodes_end = F, F === null || F.nodeType !== At || /** @type {Comment} */
|
|
1941
1941
|
F.data !== Lr))
|
|
1942
1942
|
throw cn(), Ct;
|
|
1943
1943
|
i && Y();
|
|
@@ -1951,7 +1951,7 @@ function Si(e, { target: t, anchor: n, props: r = {}, events: o, context: i, int
|
|
|
1951
1951
|
);
|
|
1952
1952
|
--g === 0 ? (document.removeEventListener(v, on), Nt.delete(v)) : Nt.set(v, g);
|
|
1953
1953
|
}
|
|
1954
|
-
br.delete(u),
|
|
1954
|
+
br.delete(u), p !== n && p.parentNode?.removeChild(p);
|
|
1955
1955
|
};
|
|
1956
1956
|
});
|
|
1957
1957
|
return Cr.set(c, l), c;
|
|
@@ -2002,7 +2002,7 @@ class Vi {
|
|
|
2002
2002
|
if (this.#t.delete(i), i === t)
|
|
2003
2003
|
break;
|
|
2004
2004
|
const a = this.#n.get(s);
|
|
2005
|
-
a && (
|
|
2005
|
+
a && (me(a.effect), this.#n.delete(s));
|
|
2006
2006
|
}
|
|
2007
2007
|
for (const [i, s] of this.#e) {
|
|
2008
2008
|
if (i === n) continue;
|
|
@@ -2011,7 +2011,7 @@ class Vi {
|
|
|
2011
2011
|
var c = document.createDocumentFragment();
|
|
2012
2012
|
wi(s, c), c.append(Fe()), this.#n.set(i, { effect: s, fragment: c });
|
|
2013
2013
|
} else
|
|
2014
|
-
|
|
2014
|
+
me(s);
|
|
2015
2015
|
this.#e.delete(i);
|
|
2016
2016
|
};
|
|
2017
2017
|
this.#r || !r ? Bt(s, a, !1) : a();
|
|
@@ -2025,7 +2025,7 @@ class Vi {
|
|
|
2025
2025
|
this.#t.delete(t);
|
|
2026
2026
|
const n = Array.from(this.#t.values());
|
|
2027
2027
|
for (const [r, o] of this.#n)
|
|
2028
|
-
n.includes(r) || (
|
|
2028
|
+
n.includes(r) || (me(o.effect), this.#n.delete(r));
|
|
2029
2029
|
};
|
|
2030
2030
|
/**
|
|
2031
2031
|
*
|
|
@@ -2064,7 +2064,7 @@ function ca(e, t, ...n) {
|
|
|
2064
2064
|
Wn(() => {
|
|
2065
2065
|
const o = t() ?? null;
|
|
2066
2066
|
r.ensure(o, o && ((i) => o(i, ...n)));
|
|
2067
|
-
},
|
|
2067
|
+
}, dt);
|
|
2068
2068
|
}
|
|
2069
2069
|
function da(e) {
|
|
2070
2070
|
oe === null && ws(), Gt && oe.l !== null ? ga(oe).m.push(e) : di(() => {
|
|
@@ -2084,13 +2084,13 @@ function ga(e) {
|
|
|
2084
2084
|
}
|
|
2085
2085
|
function X(e, t, n = !1) {
|
|
2086
2086
|
$ && Zt();
|
|
2087
|
-
var r = new Vi(e), o = n ?
|
|
2087
|
+
var r = new Vi(e), o = n ? dt : 0;
|
|
2088
2088
|
function i(s, a) {
|
|
2089
2089
|
if ($) {
|
|
2090
2090
|
const c = jo(e) === Bn;
|
|
2091
2091
|
if (s === c) {
|
|
2092
2092
|
var u = In();
|
|
2093
|
-
|
|
2093
|
+
Ee(u), r.anchor = u, nt(!1), r.ensure(s, a), nt(!0);
|
|
2094
2094
|
return;
|
|
2095
2095
|
}
|
|
2096
2096
|
}
|
|
@@ -2124,7 +2124,7 @@ function va(e, t, n) {
|
|
|
2124
2124
|
_i(o, () => {
|
|
2125
2125
|
for (var c = 0; c < i; c++) {
|
|
2126
2126
|
var l = t[c];
|
|
2127
|
-
a || (r.delete(l.k), ze(e, l.prev, l.next)),
|
|
2127
|
+
a || (r.delete(l.k), ze(e, l.prev, l.next)), me(l.e, !a);
|
|
2128
2128
|
}
|
|
2129
2129
|
});
|
|
2130
2130
|
}
|
|
@@ -2135,17 +2135,17 @@ function Tt(e, t, n, r, o, i = null) {
|
|
|
2135
2135
|
/** @type {Element} */
|
|
2136
2136
|
e
|
|
2137
2137
|
);
|
|
2138
|
-
s = $ ?
|
|
2138
|
+
s = $ ? Ee(
|
|
2139
2139
|
/** @type {Comment | Text} */
|
|
2140
2140
|
/* @__PURE__ */ Be(c)
|
|
2141
2141
|
) : c.appendChild(Fe());
|
|
2142
2142
|
}
|
|
2143
2143
|
$ && Zt();
|
|
2144
|
-
var l = null,
|
|
2144
|
+
var l = null, p = !1, v = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ Vr(() => {
|
|
2145
2145
|
var b = n();
|
|
2146
2146
|
return Bo(b) ? b : b == null ? [] : Hr(b);
|
|
2147
2147
|
}), d, m;
|
|
2148
|
-
function
|
|
2148
|
+
function h() {
|
|
2149
2149
|
ha(
|
|
2150
2150
|
m,
|
|
2151
2151
|
d,
|
|
@@ -2162,40 +2162,40 @@ function Tt(e, t, n, r, o, i = null) {
|
|
|
2162
2162
|
}
|
|
2163
2163
|
Wn(() => {
|
|
2164
2164
|
m ??= /** @type {Effect} */
|
|
2165
|
-
|
|
2165
|
+
R, d = /** @type {V[]} */
|
|
2166
2166
|
M(g);
|
|
2167
2167
|
var b = d.length;
|
|
2168
|
-
if (
|
|
2168
|
+
if (p && b === 0)
|
|
2169
2169
|
return;
|
|
2170
|
-
|
|
2171
|
-
let
|
|
2170
|
+
p = b === 0;
|
|
2171
|
+
let E = !1;
|
|
2172
2172
|
if ($) {
|
|
2173
2173
|
var w = jo(s) === Bn;
|
|
2174
|
-
w !== (b === 0) && (s = In(),
|
|
2174
|
+
w !== (b === 0) && (s = In(), Ee(s), nt(!1), E = !0);
|
|
2175
2175
|
}
|
|
2176
2176
|
if ($) {
|
|
2177
|
-
for (var x = null,
|
|
2177
|
+
for (var x = null, A, C = 0; C < b; C++) {
|
|
2178
2178
|
if (F.nodeType === At && /** @type {Comment} */
|
|
2179
2179
|
F.data === Lr) {
|
|
2180
2180
|
s = /** @type {Comment} */
|
|
2181
|
-
F,
|
|
2181
|
+
F, E = !0, nt(!1);
|
|
2182
2182
|
break;
|
|
2183
2183
|
}
|
|
2184
|
-
var H = d[C],
|
|
2185
|
-
|
|
2184
|
+
var H = d[C], I = r(H, C);
|
|
2185
|
+
A = Er(
|
|
2186
2186
|
F,
|
|
2187
2187
|
a,
|
|
2188
2188
|
x,
|
|
2189
2189
|
null,
|
|
2190
2190
|
H,
|
|
2191
|
-
|
|
2191
|
+
I,
|
|
2192
2192
|
C,
|
|
2193
2193
|
o,
|
|
2194
2194
|
t,
|
|
2195
2195
|
n
|
|
2196
|
-
), a.items.set(
|
|
2196
|
+
), a.items.set(I, A), x = A;
|
|
2197
2197
|
}
|
|
2198
|
-
b > 0 &&
|
|
2198
|
+
b > 0 && Ee(In());
|
|
2199
2199
|
}
|
|
2200
2200
|
if ($)
|
|
2201
2201
|
b === 0 && i && (l = Re(() => i(s)));
|
|
@@ -2205,108 +2205,108 @@ function Tt(e, t, n, r, o, i = null) {
|
|
|
2205
2205
|
j
|
|
2206
2206
|
);
|
|
2207
2207
|
for (C = 0; C < b; C += 1) {
|
|
2208
|
-
H = d[C],
|
|
2209
|
-
var Z = a.items.get(
|
|
2210
|
-
Z ? (t & ($n | Pn)) !== 0 && Ri(Z, H, C, t) : (
|
|
2208
|
+
H = d[C], I = r(H, C);
|
|
2209
|
+
var Z = a.items.get(I) ?? v.get(I);
|
|
2210
|
+
Z ? (t & ($n | Pn)) !== 0 && Ri(Z, H, C, t) : (A = Er(
|
|
2211
2211
|
null,
|
|
2212
2212
|
a,
|
|
2213
2213
|
null,
|
|
2214
2214
|
null,
|
|
2215
2215
|
H,
|
|
2216
|
-
|
|
2216
|
+
I,
|
|
2217
2217
|
C,
|
|
2218
2218
|
o,
|
|
2219
2219
|
t,
|
|
2220
2220
|
n,
|
|
2221
2221
|
!0
|
|
2222
|
-
), v.set(
|
|
2222
|
+
), v.set(I, A)), B.add(I);
|
|
2223
2223
|
}
|
|
2224
|
-
for (const [U,
|
|
2225
|
-
B.has(U) || z.skipped_effects.add(
|
|
2226
|
-
z.oncommit(
|
|
2224
|
+
for (const [U, ae] of a.items)
|
|
2225
|
+
B.has(U) || z.skipped_effects.add(ae.e);
|
|
2226
|
+
z.oncommit(h);
|
|
2227
2227
|
} else
|
|
2228
|
-
|
|
2229
|
-
|
|
2228
|
+
h();
|
|
2229
|
+
E && nt(!0), M(g);
|
|
2230
2230
|
}), $ && (s = F);
|
|
2231
2231
|
}
|
|
2232
2232
|
function ha(e, t, n, r, o, i, s, a, u) {
|
|
2233
|
-
var c = (s & ts) !== 0, l = (s & ($n | Pn)) !== 0,
|
|
2233
|
+
var c = (s & ts) !== 0, l = (s & ($n | Pn)) !== 0, p = t.length, v = n.items, g = n.first, d = g, m, h = null, b, E = [], w = [], x, A, C, H;
|
|
2234
2234
|
if (c)
|
|
2235
|
-
for (H = 0; H <
|
|
2236
|
-
x = t[H],
|
|
2237
|
-
for (H = 0; H <
|
|
2238
|
-
if (x = t[H],
|
|
2239
|
-
var
|
|
2240
|
-
if (
|
|
2241
|
-
r.delete(
|
|
2242
|
-
var B =
|
|
2243
|
-
ze(n,
|
|
2235
|
+
for (H = 0; H < p; H += 1)
|
|
2236
|
+
x = t[H], A = a(x, H), C = v.get(A), C !== void 0 && (C.a?.measure(), (b ??= /* @__PURE__ */ new Set()).add(C));
|
|
2237
|
+
for (H = 0; H < p; H += 1) {
|
|
2238
|
+
if (x = t[H], A = a(x, H), C = v.get(A), C === void 0) {
|
|
2239
|
+
var I = r.get(A);
|
|
2240
|
+
if (I !== void 0) {
|
|
2241
|
+
r.delete(A), v.set(A, I);
|
|
2242
|
+
var B = h ? h.next : d;
|
|
2243
|
+
ze(n, h, I), ze(n, I, B), sr(I, B, o), h = I;
|
|
2244
2244
|
} else {
|
|
2245
2245
|
var z = d ? (
|
|
2246
2246
|
/** @type {TemplateNode} */
|
|
2247
2247
|
d.e.nodes_start
|
|
2248
2248
|
) : o;
|
|
2249
|
-
|
|
2249
|
+
h = Er(
|
|
2250
2250
|
z,
|
|
2251
2251
|
n,
|
|
2252
|
-
|
|
2253
|
-
|
|
2252
|
+
h,
|
|
2253
|
+
h === null ? n.first : h.next,
|
|
2254
2254
|
x,
|
|
2255
|
-
|
|
2255
|
+
A,
|
|
2256
2256
|
H,
|
|
2257
2257
|
i,
|
|
2258
2258
|
s,
|
|
2259
2259
|
u
|
|
2260
2260
|
);
|
|
2261
2261
|
}
|
|
2262
|
-
v.set(
|
|
2262
|
+
v.set(A, h), E = [], w = [], d = h.next;
|
|
2263
2263
|
continue;
|
|
2264
2264
|
}
|
|
2265
|
-
if (l && Ri(C, x, H, s), (C.e.f &
|
|
2265
|
+
if (l && Ri(C, x, H, s), (C.e.f & ke) !== 0 && (Ir(C.e), c && (C.a?.unfix(), (b ??= /* @__PURE__ */ new Set()).delete(C))), C !== d) {
|
|
2266
2266
|
if (m !== void 0 && m.has(C)) {
|
|
2267
|
-
if (
|
|
2267
|
+
if (E.length < w.length) {
|
|
2268
2268
|
var Z = w[0], U;
|
|
2269
|
-
|
|
2270
|
-
var
|
|
2271
|
-
for (U = 0; U <
|
|
2272
|
-
sr(
|
|
2269
|
+
h = Z.prev;
|
|
2270
|
+
var ae = E[0], fe = E[E.length - 1];
|
|
2271
|
+
for (U = 0; U < E.length; U += 1)
|
|
2272
|
+
sr(E[U], Z, o);
|
|
2273
2273
|
for (U = 0; U < w.length; U += 1)
|
|
2274
2274
|
m.delete(w[U]);
|
|
2275
|
-
ze(n,
|
|
2275
|
+
ze(n, ae.prev, fe.next), ze(n, h, ae), ze(n, fe, Z), d = Z, h = fe, H -= 1, E = [], w = [];
|
|
2276
2276
|
} else
|
|
2277
|
-
m.delete(C), sr(C, d, o), ze(n, C.prev, C.next), ze(n, C,
|
|
2277
|
+
m.delete(C), sr(C, d, o), ze(n, C.prev, C.next), ze(n, C, h === null ? n.first : h.next), ze(n, h, C), h = C;
|
|
2278
2278
|
continue;
|
|
2279
2279
|
}
|
|
2280
|
-
for (
|
|
2281
|
-
(d.e.f &
|
|
2280
|
+
for (E = [], w = []; d !== null && d.k !== A; )
|
|
2281
|
+
(d.e.f & ke) === 0 && (m ??= /* @__PURE__ */ new Set()).add(d), w.push(d), d = d.next;
|
|
2282
2282
|
if (d === null)
|
|
2283
2283
|
continue;
|
|
2284
2284
|
C = d;
|
|
2285
2285
|
}
|
|
2286
|
-
|
|
2286
|
+
E.push(C), h = C, d = C.next;
|
|
2287
2287
|
}
|
|
2288
2288
|
if (d !== null || m !== void 0) {
|
|
2289
|
-
for (var
|
|
2290
|
-
(d.e.f &
|
|
2291
|
-
var Yt =
|
|
2289
|
+
for (var qe = m === void 0 ? [] : Hr(m); d !== null; )
|
|
2290
|
+
(d.e.f & ke) === 0 && qe.push(d), d = d.next;
|
|
2291
|
+
var Yt = qe.length;
|
|
2292
2292
|
if (Yt > 0) {
|
|
2293
|
-
var Yn = (s & No) !== 0 &&
|
|
2293
|
+
var Yn = (s & No) !== 0 && p === 0 ? o : null;
|
|
2294
2294
|
if (c) {
|
|
2295
2295
|
for (H = 0; H < Yt; H += 1)
|
|
2296
|
-
|
|
2296
|
+
qe[H].a?.measure();
|
|
2297
2297
|
for (H = 0; H < Yt; H += 1)
|
|
2298
|
-
|
|
2298
|
+
qe[H].a?.fix();
|
|
2299
2299
|
}
|
|
2300
|
-
va(n,
|
|
2300
|
+
va(n, qe, Yn);
|
|
2301
2301
|
}
|
|
2302
2302
|
}
|
|
2303
|
-
c &&
|
|
2303
|
+
c && vt(() => {
|
|
2304
2304
|
if (b !== void 0)
|
|
2305
2305
|
for (C of b)
|
|
2306
2306
|
C.a?.apply();
|
|
2307
|
-
}), e.first = n.first && n.first.e, e.last =
|
|
2307
|
+
}), e.first = n.first && n.first.e, e.last = h && h.e;
|
|
2308
2308
|
for (var hn of r.values())
|
|
2309
|
-
|
|
2309
|
+
me(hn.e);
|
|
2310
2310
|
r.clear();
|
|
2311
2311
|
}
|
|
2312
2312
|
function Ri(e, t, n, r) {
|
|
@@ -2317,7 +2317,7 @@ function Ri(e, t, n, r) {
|
|
|
2317
2317
|
) : e.i = n;
|
|
2318
2318
|
}
|
|
2319
2319
|
function Er(e, t, n, r, o, i, s, a, u, c, l) {
|
|
2320
|
-
var
|
|
2320
|
+
var p = (u & $n) !== 0, v = (u & ns) === 0, g = p ? v ? /* @__PURE__ */ ri(o, !1, !1) : yt(o) : o, d = (u & Pn) === 0 ? s : yt(s), m = {
|
|
2321
2321
|
i: d,
|
|
2322
2322
|
v: g,
|
|
2323
2323
|
k: i,
|
|
@@ -2329,8 +2329,8 @@ function Er(e, t, n, r, o, i, s, a, u, c, l) {
|
|
|
2329
2329
|
};
|
|
2330
2330
|
try {
|
|
2331
2331
|
if (e === null) {
|
|
2332
|
-
var
|
|
2333
|
-
|
|
2332
|
+
var h = document.createDocumentFragment();
|
|
2333
|
+
h.append(e = Fe());
|
|
2334
2334
|
}
|
|
2335
2335
|
return m.e = Re(() => a(
|
|
2336
2336
|
/** @type {Node} */
|
|
@@ -2365,10 +2365,10 @@ function ze(e, t, n) {
|
|
|
2365
2365
|
}
|
|
2366
2366
|
function pa(e, t, n = !1, r = !1, o = !1) {
|
|
2367
2367
|
var i = e, s = "";
|
|
2368
|
-
|
|
2368
|
+
Me(() => {
|
|
2369
2369
|
var a = (
|
|
2370
2370
|
/** @type {Effect} */
|
|
2371
|
-
|
|
2371
|
+
R
|
|
2372
2372
|
);
|
|
2373
2373
|
if (s === (s = t() ?? "")) {
|
|
2374
2374
|
$ && Zt();
|
|
@@ -2387,30 +2387,30 @@ function pa(e, t, n = !1, r = !1, o = !1) {
|
|
|
2387
2387
|
/* @__PURE__ */ Ze(u);
|
|
2388
2388
|
if (u === null)
|
|
2389
2389
|
throw cn(), Ct;
|
|
2390
|
-
|
|
2390
|
+
ct(F, c), i = Ee(u);
|
|
2391
2391
|
return;
|
|
2392
2392
|
}
|
|
2393
2393
|
var l = s + "";
|
|
2394
2394
|
n ? l = `<svg>${l}</svg>` : r && (l = `<math>${l}</math>`);
|
|
2395
|
-
var
|
|
2396
|
-
if ((n || r) && (
|
|
2397
|
-
/* @__PURE__ */ Be(
|
|
2395
|
+
var p = ki(l);
|
|
2396
|
+
if ((n || r) && (p = /** @type {Element} */
|
|
2397
|
+
/* @__PURE__ */ Be(p)), ct(
|
|
2398
2398
|
/** @type {TemplateNode} */
|
|
2399
|
-
/* @__PURE__ */ Be(
|
|
2399
|
+
/* @__PURE__ */ Be(p),
|
|
2400
2400
|
/** @type {TemplateNode} */
|
|
2401
|
-
|
|
2401
|
+
p.lastChild
|
|
2402
2402
|
), n || r)
|
|
2403
|
-
for (; /* @__PURE__ */ Be(
|
|
2403
|
+
for (; /* @__PURE__ */ Be(p); )
|
|
2404
2404
|
i.before(
|
|
2405
2405
|
/** @type {Node} */
|
|
2406
|
-
/* @__PURE__ */ Be(
|
|
2406
|
+
/* @__PURE__ */ Be(p)
|
|
2407
2407
|
);
|
|
2408
2408
|
else
|
|
2409
|
-
i.before(
|
|
2409
|
+
i.before(p);
|
|
2410
2410
|
}
|
|
2411
2411
|
});
|
|
2412
2412
|
}
|
|
2413
|
-
function
|
|
2413
|
+
function Se(e, t) {
|
|
2414
2414
|
gn(() => {
|
|
2415
2415
|
var n = e.getRootNode(), r = (
|
|
2416
2416
|
/** @type {ShadowRoot} */
|
|
@@ -2485,18 +2485,18 @@ function Di(e) {
|
|
|
2485
2485
|
if (!t) {
|
|
2486
2486
|
if (t = !0, e.hasAttribute("value")) {
|
|
2487
2487
|
var r = e.value;
|
|
2488
|
-
|
|
2488
|
+
ne(e, "value", null), e.value = r;
|
|
2489
2489
|
}
|
|
2490
2490
|
if (e.hasAttribute("checked")) {
|
|
2491
2491
|
var o = e.checked;
|
|
2492
|
-
|
|
2492
|
+
ne(e, "checked", null), e.checked = o;
|
|
2493
2493
|
}
|
|
2494
2494
|
}
|
|
2495
2495
|
};
|
|
2496
|
-
e.__on_r = n,
|
|
2496
|
+
e.__on_r = n, vt(n), fi();
|
|
2497
2497
|
}
|
|
2498
2498
|
}
|
|
2499
|
-
function
|
|
2499
|
+
function ne(e, t, n, r) {
|
|
2500
2500
|
var o = Ca(e);
|
|
2501
2501
|
$ && (o[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || o[t] !== (o[t] = n) && (t === "loading" && (e[bs] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Ea(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2502
2502
|
}
|
|
@@ -2523,7 +2523,7 @@ function Ea(e) {
|
|
|
2523
2523
|
}
|
|
2524
2524
|
return n;
|
|
2525
2525
|
}
|
|
2526
|
-
const ya = () => performance.now(),
|
|
2526
|
+
const ya = () => performance.now(), tt = {
|
|
2527
2527
|
// don't access requestAnimationFrame eagerly outside method
|
|
2528
2528
|
// this allows basic testing of user code without JSDOM
|
|
2529
2529
|
// bunder will eval and remove ternary when the user's app is built
|
|
@@ -2535,19 +2535,19 @@ const ya = () => performance.now(), et = {
|
|
|
2535
2535
|
tasks: /* @__PURE__ */ new Set()
|
|
2536
2536
|
};
|
|
2537
2537
|
function Ni() {
|
|
2538
|
-
const e =
|
|
2539
|
-
|
|
2540
|
-
t.c(e) || (
|
|
2541
|
-
}),
|
|
2538
|
+
const e = tt.now();
|
|
2539
|
+
tt.tasks.forEach((t) => {
|
|
2540
|
+
t.c(e) || (tt.tasks.delete(t), t.f());
|
|
2541
|
+
}), tt.tasks.size !== 0 && tt.tick(Ni);
|
|
2542
2542
|
}
|
|
2543
2543
|
function Ta(e) {
|
|
2544
2544
|
let t;
|
|
2545
|
-
return
|
|
2545
|
+
return tt.tasks.size === 0 && tt.tick(Ni), {
|
|
2546
2546
|
promise: new Promise((n) => {
|
|
2547
|
-
|
|
2547
|
+
tt.tasks.add(t = { c: e, f: n });
|
|
2548
2548
|
}),
|
|
2549
2549
|
abort() {
|
|
2550
|
-
|
|
2550
|
+
tt.tasks.delete(t);
|
|
2551
2551
|
}
|
|
2552
2552
|
};
|
|
2553
2553
|
}
|
|
@@ -2579,7 +2579,7 @@ function To(e) {
|
|
|
2579
2579
|
const Aa = (e) => e;
|
|
2580
2580
|
function La(e, t, n, r) {
|
|
2581
2581
|
var o = (e & ls) !== 0, i = "both", s, a = t.inert, u = t.style.overflow, c, l;
|
|
2582
|
-
function
|
|
2582
|
+
function p() {
|
|
2583
2583
|
return Wt(() => s ??= n()(t, r?.() ?? /** @type {P} */
|
|
2584
2584
|
{}, {
|
|
2585
2585
|
direction: i
|
|
@@ -2588,13 +2588,13 @@ function La(e, t, n, r) {
|
|
|
2588
2588
|
var v = {
|
|
2589
2589
|
is_global: o,
|
|
2590
2590
|
in() {
|
|
2591
|
-
t.inert = a, Tn(t, "introstart"), c = yr(t,
|
|
2591
|
+
t.inert = a, Tn(t, "introstart"), c = yr(t, p(), l, 1, () => {
|
|
2592
2592
|
Tn(t, "introend"), c?.abort(), c = s = void 0, t.style.overflow = u;
|
|
2593
2593
|
});
|
|
2594
2594
|
},
|
|
2595
|
-
out(
|
|
2596
|
-
t.inert = !0, Tn(t, "outrostart"), l = yr(t,
|
|
2597
|
-
Tn(t, "outroend"),
|
|
2595
|
+
out(h) {
|
|
2596
|
+
t.inert = !0, Tn(t, "outrostart"), l = yr(t, p(), c, 0, () => {
|
|
2597
|
+
Tn(t, "outroend"), h?.();
|
|
2598
2598
|
});
|
|
2599
2599
|
},
|
|
2600
2600
|
stop: () => {
|
|
@@ -2602,7 +2602,7 @@ function La(e, t, n, r) {
|
|
|
2602
2602
|
}
|
|
2603
2603
|
}, g = (
|
|
2604
2604
|
/** @type {Effect} */
|
|
2605
|
-
|
|
2605
|
+
R
|
|
2606
2606
|
);
|
|
2607
2607
|
if ((g.transitions ??= []).push(v), wr) {
|
|
2608
2608
|
var d = o;
|
|
@@ -2610,7 +2610,7 @@ function La(e, t, n, r) {
|
|
|
2610
2610
|
for (var m = (
|
|
2611
2611
|
/** @type {Effect | null} */
|
|
2612
2612
|
g.parent
|
|
2613
|
-
); m && (m.f &
|
|
2613
|
+
); m && (m.f & dt) !== 0; )
|
|
2614
2614
|
for (; (m = m.parent) && (m.f & We) === 0; )
|
|
2615
2615
|
;
|
|
2616
2616
|
d = !m || (m.f & Un) !== 0;
|
|
@@ -2624,10 +2624,10 @@ function yr(e, t, n, r, o) {
|
|
|
2624
2624
|
var i = r === 1;
|
|
2625
2625
|
if (ps(t)) {
|
|
2626
2626
|
var s, a = !1;
|
|
2627
|
-
return
|
|
2627
|
+
return vt(() => {
|
|
2628
2628
|
if (!a) {
|
|
2629
|
-
var
|
|
2630
|
-
s = yr(e,
|
|
2629
|
+
var h = t({ direction: i ? "in" : "out" });
|
|
2630
|
+
s = yr(e, h, n, r, o);
|
|
2631
2631
|
}
|
|
2632
2632
|
}), {
|
|
2633
2633
|
abort: () => {
|
|
@@ -2645,7 +2645,7 @@ function yr(e, t, n, r, o) {
|
|
|
2645
2645
|
reset: Jt,
|
|
2646
2646
|
t: () => r
|
|
2647
2647
|
};
|
|
2648
|
-
const { delay: u = 0, css: c, tick: l, easing:
|
|
2648
|
+
const { delay: u = 0, css: c, tick: l, easing: p = Aa } = t;
|
|
2649
2649
|
var v = [];
|
|
2650
2650
|
if (i && n === void 0 && (l && l(0, 1), c)) {
|
|
2651
2651
|
var g = To(c(0, 1));
|
|
@@ -2654,18 +2654,18 @@ function yr(e, t, n, r, o) {
|
|
|
2654
2654
|
var d = () => 1 - r, m = e.animate(v, { duration: u, fill: "forwards" });
|
|
2655
2655
|
return m.onfinish = () => {
|
|
2656
2656
|
m.cancel();
|
|
2657
|
-
var
|
|
2657
|
+
var h = n?.t() ?? 1 - r;
|
|
2658
2658
|
n?.abort();
|
|
2659
|
-
var b = r -
|
|
2659
|
+
var b = r - h, E = (
|
|
2660
2660
|
/** @type {number} */
|
|
2661
2661
|
t.duration * Math.abs(b)
|
|
2662
2662
|
), w = [];
|
|
2663
|
-
if (
|
|
2663
|
+
if (E > 0) {
|
|
2664
2664
|
var x = !1;
|
|
2665
2665
|
if (c)
|
|
2666
|
-
for (var
|
|
2667
|
-
var H =
|
|
2668
|
-
w.push(
|
|
2666
|
+
for (var A = Math.ceil(E / 16.666666666666668), C = 0; C <= A; C += 1) {
|
|
2667
|
+
var H = h + b * p(C / A), I = To(c(H, 1 - H));
|
|
2668
|
+
w.push(I), x ||= I.overflow === "hidden";
|
|
2669
2669
|
}
|
|
2670
2670
|
x && (e.style.overflow = "hidden"), d = () => {
|
|
2671
2671
|
var B = (
|
|
@@ -2673,14 +2673,14 @@ function yr(e, t, n, r, o) {
|
|
|
2673
2673
|
/** @type {globalThis.Animation} */
|
|
2674
2674
|
m.currentTime
|
|
2675
2675
|
);
|
|
2676
|
-
return
|
|
2676
|
+
return h + b * p(B / E);
|
|
2677
2677
|
}, l && Ta(() => {
|
|
2678
2678
|
if (m.playState !== "running") return !1;
|
|
2679
2679
|
var B = d();
|
|
2680
2680
|
return l(B, 1 - B), !0;
|
|
2681
2681
|
});
|
|
2682
2682
|
}
|
|
2683
|
-
m = e.animate(w, { duration:
|
|
2683
|
+
m = e.animate(w, { duration: E, fill: "forwards" }), m.onfinish = () => {
|
|
2684
2684
|
d = () => r, l?.(r, 1 - r), o();
|
|
2685
2685
|
};
|
|
2686
2686
|
}, {
|
|
@@ -2742,7 +2742,7 @@ function Ha(e = {}, t, n, r) {
|
|
|
2742
2742
|
e !== n(...i) && (t(e, ...i), o && xo(n(...o), e) && t(null, ...o));
|
|
2743
2743
|
});
|
|
2744
2744
|
}), () => {
|
|
2745
|
-
|
|
2745
|
+
vt(() => {
|
|
2746
2746
|
i && xo(n(...i), e) && t(null, ...i);
|
|
2747
2747
|
});
|
|
2748
2748
|
};
|
|
@@ -2757,7 +2757,7 @@ function ka(e) {
|
|
|
2757
2757
|
xn = t;
|
|
2758
2758
|
}
|
|
2759
2759
|
}
|
|
2760
|
-
function
|
|
2760
|
+
function L(e, t, n, r) {
|
|
2761
2761
|
var o = !Gt || (n & os) !== 0, i = (n & ss) !== 0, s = (n & as) !== 0, a = (
|
|
2762
2762
|
/** @type {V} */
|
|
2763
2763
|
r
|
|
@@ -2769,8 +2769,8 @@ function A(e, t, n, r) {
|
|
|
2769
2769
|
r
|
|
2770
2770
|
)), a), l;
|
|
2771
2771
|
if (i) {
|
|
2772
|
-
var
|
|
2773
|
-
l = bt(e, t)?.set ?? (
|
|
2772
|
+
var p = sn in e || zo in e;
|
|
2773
|
+
l = bt(e, t)?.set ?? (p && t in e ? (w) => e[t] = w : void 0);
|
|
2774
2774
|
}
|
|
2775
2775
|
var v, g = !1;
|
|
2776
2776
|
i ? [v, g] = ka(() => (
|
|
@@ -2803,20 +2803,20 @@ function A(e, t, n, r) {
|
|
|
2803
2803
|
})
|
|
2804
2804
|
);
|
|
2805
2805
|
}
|
|
2806
|
-
var
|
|
2806
|
+
var h = !1, b = ((n & rs) !== 0 ? jn : Vr)(() => (h = !1, d()));
|
|
2807
2807
|
i && M(b);
|
|
2808
|
-
var
|
|
2808
|
+
var E = (
|
|
2809
2809
|
/** @type {Effect} */
|
|
2810
|
-
|
|
2810
|
+
R
|
|
2811
2811
|
);
|
|
2812
2812
|
return (
|
|
2813
2813
|
/** @type {() => V} */
|
|
2814
2814
|
(function(w, x) {
|
|
2815
2815
|
if (arguments.length > 0) {
|
|
2816
|
-
const
|
|
2817
|
-
return S(b,
|
|
2816
|
+
const A = x ? M(b) : o && i ? Pt(w) : w;
|
|
2817
|
+
return S(b, A), h = !0, a !== void 0 && (a = A), w;
|
|
2818
2818
|
}
|
|
2819
|
-
return Lt &&
|
|
2819
|
+
return Lt && h || (E.f & rt) !== 0 ? b.v : M(b);
|
|
2820
2820
|
})
|
|
2821
2821
|
);
|
|
2822
2822
|
}
|
|
@@ -2859,7 +2859,7 @@ class Sa {
|
|
|
2859
2859
|
context: t.context,
|
|
2860
2860
|
intro: t.intro ?? !1,
|
|
2861
2861
|
recover: t.recover
|
|
2862
|
-
}), (!t?.props?.$$host || t.sync === !1) &&
|
|
2862
|
+
}), (!t?.props?.$$host || t.sync === !1) && y(), this.#t = o.$$events;
|
|
2863
2863
|
for (const i of Object.keys(this.#e))
|
|
2864
2864
|
i === "$set" || i === "$destroy" || i === "$on" || Vn(this, i, {
|
|
2865
2865
|
get() {
|
|
@@ -3112,14 +3112,14 @@ const {
|
|
|
3112
3112
|
getOwnPropertyDescriptor: Da
|
|
3113
3113
|
} = Object;
|
|
3114
3114
|
let {
|
|
3115
|
-
freeze:
|
|
3115
|
+
freeze: ye,
|
|
3116
3116
|
seal: Ie,
|
|
3117
3117
|
create: Tr
|
|
3118
3118
|
} = Object, {
|
|
3119
3119
|
apply: xr,
|
|
3120
3120
|
construct: Ar
|
|
3121
3121
|
} = typeof Reflect < "u" && Reflect;
|
|
3122
|
-
|
|
3122
|
+
ye || (ye = function(t) {
|
|
3123
3123
|
return t;
|
|
3124
3124
|
});
|
|
3125
3125
|
Ie || (Ie = function(t) {
|
|
@@ -3135,8 +3135,8 @@ Ar || (Ar = function(t) {
|
|
|
3135
3135
|
r[o - 1] = arguments[o];
|
|
3136
3136
|
return new t(...r);
|
|
3137
3137
|
});
|
|
3138
|
-
const An =
|
|
3139
|
-
function
|
|
3138
|
+
const An = Te(Array.prototype.forEach), Na = Te(Array.prototype.lastIndexOf), Lo = Te(Array.prototype.pop), Qt = Te(Array.prototype.push), $a = Te(Array.prototype.splice), Mn = Te(String.prototype.toLowerCase), ur = Te(String.prototype.toString), fr = Te(String.prototype.match), en = Te(String.prototype.replace), Pa = Te(String.prototype.indexOf), Ba = Te(String.prototype.trim), De = Te(Object.prototype.hasOwnProperty), we = Te(RegExp.prototype.test), tn = Fa(TypeError);
|
|
3139
|
+
function Te(e) {
|
|
3140
3140
|
return function(t) {
|
|
3141
3141
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
3142
3142
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
@@ -3170,10 +3170,10 @@ function Za(e) {
|
|
|
3170
3170
|
De(e, t) || (e[t] = null);
|
|
3171
3171
|
return e;
|
|
3172
3172
|
}
|
|
3173
|
-
function
|
|
3173
|
+
function Qe(e) {
|
|
3174
3174
|
const t = Tr(null);
|
|
3175
3175
|
for (const [n, r] of Bi(e))
|
|
3176
|
-
De(e, n) && (Array.isArray(r) ? t[n] = Za(r) : r && typeof r == "object" && r.constructor === Object ? t[n] =
|
|
3176
|
+
De(e, n) && (Array.isArray(r) ? t[n] = Za(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Qe(r) : t[n] = r);
|
|
3177
3177
|
return t;
|
|
3178
3178
|
}
|
|
3179
3179
|
function nn(e, t) {
|
|
@@ -3181,9 +3181,9 @@ function nn(e, t) {
|
|
|
3181
3181
|
const r = Da(e, t);
|
|
3182
3182
|
if (r) {
|
|
3183
3183
|
if (r.get)
|
|
3184
|
-
return
|
|
3184
|
+
return Te(r.get);
|
|
3185
3185
|
if (typeof r.value == "function")
|
|
3186
|
-
return
|
|
3186
|
+
return Te(r.value);
|
|
3187
3187
|
}
|
|
3188
3188
|
e = Ia(e);
|
|
3189
3189
|
}
|
|
@@ -3192,7 +3192,7 @@ function nn(e, t) {
|
|
|
3192
3192
|
}
|
|
3193
3193
|
return n;
|
|
3194
3194
|
}
|
|
3195
|
-
const Ho =
|
|
3195
|
+
const Ho = ye(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), cr = ye(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), dr = ye(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ua = ye(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), gr = ye(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), za = ye(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ko = ye(["#text"]), Mo = ye(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), vr = ye(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), So = ye(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Ln = ye(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ja = Ie(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ga = Ie(/<%[\w\W]*|[\w\W]*%>/gm), Wa = Ie(/\$\{[\w\W]*/gm), Ya = Ie(/^data-[\-\w.\u00B7-\uFFFF]+$/), qa = Ie(/^aria-[\-\w]+$/), Fi = Ie(
|
|
3196
3196
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
3197
3197
|
// eslint-disable-line no-useless-escape
|
|
3198
3198
|
), Ka = Ie(/^(?:\w+script|data):/i), Xa = Ie(
|
|
@@ -3268,19 +3268,19 @@ function Ui() {
|
|
|
3268
3268
|
Element: u,
|
|
3269
3269
|
NodeFilter: c,
|
|
3270
3270
|
NamedNodeMap: l = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
3271
|
-
HTMLFormElement:
|
|
3271
|
+
HTMLFormElement: p,
|
|
3272
3272
|
DOMParser: v,
|
|
3273
3273
|
trustedTypes: g
|
|
3274
|
-
} = e, d = u.prototype, m = nn(d, "cloneNode"),
|
|
3274
|
+
} = e, d = u.prototype, m = nn(d, "cloneNode"), h = nn(d, "remove"), b = nn(d, "nextSibling"), E = nn(d, "childNodes"), w = nn(d, "parentNode");
|
|
3275
3275
|
if (typeof s == "function") {
|
|
3276
3276
|
const k = n.createElement("template");
|
|
3277
3277
|
k.content && k.content.ownerDocument && (n = k.content.ownerDocument);
|
|
3278
3278
|
}
|
|
3279
|
-
let x,
|
|
3279
|
+
let x, A = "";
|
|
3280
3280
|
const {
|
|
3281
3281
|
implementation: C,
|
|
3282
3282
|
createNodeIterator: H,
|
|
3283
|
-
createDocumentFragment:
|
|
3283
|
+
createDocumentFragment: I,
|
|
3284
3284
|
getElementsByTagName: B
|
|
3285
3285
|
} = n, {
|
|
3286
3286
|
importNode: z
|
|
@@ -3289,9 +3289,9 @@ function Ui() {
|
|
|
3289
3289
|
t.isSupported = typeof Bi == "function" && typeof w == "function" && C && C.createHTMLDocument !== void 0;
|
|
3290
3290
|
const {
|
|
3291
3291
|
MUSTACHE_EXPR: U,
|
|
3292
|
-
ERB_EXPR:
|
|
3293
|
-
TMPLIT_EXPR:
|
|
3294
|
-
DATA_ATTR:
|
|
3292
|
+
ERB_EXPR: ae,
|
|
3293
|
+
TMPLIT_EXPR: fe,
|
|
3294
|
+
DATA_ATTR: qe,
|
|
3295
3295
|
ARIA_ATTR: Yt,
|
|
3296
3296
|
IS_SCRIPT_OR_DATA: Yn,
|
|
3297
3297
|
ATTR_WHITESPACE: hn,
|
|
@@ -3299,11 +3299,11 @@ function Ui() {
|
|
|
3299
3299
|
} = Vo;
|
|
3300
3300
|
let {
|
|
3301
3301
|
IS_ALLOWED_URI: Fr
|
|
3302
|
-
} = Vo,
|
|
3302
|
+
} = Vo, le = null;
|
|
3303
3303
|
const Zr = D({}, [...Ho, ...cr, ...dr, ...gr, ...ko]);
|
|
3304
|
-
let
|
|
3304
|
+
let ce = null;
|
|
3305
3305
|
const Ur = D({}, [...Mo, ...vr, ...So, ...Ln]);
|
|
3306
|
-
let
|
|
3306
|
+
let te = Object.seal(Tr(null, {
|
|
3307
3307
|
tagNameCheck: {
|
|
3308
3308
|
writable: !0,
|
|
3309
3309
|
configurable: !1,
|
|
@@ -3344,29 +3344,29 @@ function Ui() {
|
|
|
3344
3344
|
let Kr = null;
|
|
3345
3345
|
const Xr = D({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
3346
3346
|
let er = null;
|
|
3347
|
-
const Jr = D({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), bn = "http://www.w3.org/1998/Math/MathML", wn = "http://www.w3.org/2000/svg",
|
|
3348
|
-
let Ot =
|
|
3349
|
-
const Yi = D({}, [bn, wn,
|
|
3347
|
+
const Jr = D({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), bn = "http://www.w3.org/1998/Math/MathML", wn = "http://www.w3.org/2000/svg", Ke = "http://www.w3.org/1999/xhtml";
|
|
3348
|
+
let Ot = Ke, tr = !1, nr = null;
|
|
3349
|
+
const Yi = D({}, [bn, wn, Ke], ur);
|
|
3350
3350
|
let Cn = D({}, ["mi", "mo", "mn", "ms", "mtext"]), En = D({}, ["annotation-xml"]);
|
|
3351
3351
|
const qi = D({}, ["title", "style", "font", "a", "script"]);
|
|
3352
3352
|
let Xt = null;
|
|
3353
3353
|
const Ki = ["application/xhtml+xml", "text/html"], Xi = "text/html";
|
|
3354
|
-
let
|
|
3354
|
+
let ue = null, It = null;
|
|
3355
3355
|
const Ji = n.createElement("form"), Qr = function(f) {
|
|
3356
3356
|
return f instanceof RegExp || f instanceof Function;
|
|
3357
3357
|
}, rr = function() {
|
|
3358
3358
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3359
3359
|
if (!(It && It === f)) {
|
|
3360
|
-
if ((!f || typeof f != "object") && (f = {}), f =
|
|
3361
|
-
Ki.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Xi : f.PARSER_MEDIA_TYPE,
|
|
3360
|
+
if ((!f || typeof f != "object") && (f = {}), f = Qe(f), Xt = // eslint-disable-next-line unicorn/prefer-includes
|
|
3361
|
+
Ki.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Xi : f.PARSER_MEDIA_TYPE, ue = Xt === "application/xhtml+xml" ? ur : Mn, le = De(f, "ALLOWED_TAGS") ? D({}, f.ALLOWED_TAGS, ue) : Zr, ce = De(f, "ALLOWED_ATTR") ? D({}, f.ALLOWED_ATTR, ue) : Ur, nr = De(f, "ALLOWED_NAMESPACES") ? D({}, f.ALLOWED_NAMESPACES, ur) : Yi, er = De(f, "ADD_URI_SAFE_ATTR") ? D(Qe(Jr), f.ADD_URI_SAFE_ATTR, ue) : Jr, Kr = De(f, "ADD_DATA_URI_TAGS") ? D(Qe(Xr), f.ADD_DATA_URI_TAGS, ue) : Xr, Rt = De(f, "FORBID_CONTENTS") ? D({}, f.FORBID_CONTENTS, ue) : qr, qt = De(f, "FORBID_TAGS") ? D({}, f.FORBID_TAGS, ue) : Qe({}), qn = De(f, "FORBID_ATTR") ? D({}, f.FORBID_ATTR, ue) : Qe({}), Vt = De(f, "USE_PROFILES") ? f.USE_PROFILES : !1, zr = f.ALLOW_ARIA_ATTR !== !1, Kn = f.ALLOW_DATA_ATTR !== !1, jr = f.ALLOW_UNKNOWN_PROTOCOLS || !1, Gr = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Mt = f.SAFE_FOR_TEMPLATES || !1, pn = f.SAFE_FOR_XML !== !1, pt = f.WHOLE_DOCUMENT || !1, St = f.RETURN_DOM || !1, mn = f.RETURN_DOM_FRAGMENT || !1, _n = f.RETURN_TRUSTED_TYPE || !1, Jn = f.FORCE_BODY || !1, Wr = f.SANITIZE_DOM !== !1, Yr = f.SANITIZE_NAMED_PROPS || !1, Qn = f.KEEP_CONTENT !== !1, Kt = f.IN_PLACE || !1, Fr = f.ALLOWED_URI_REGEXP || Fi, Ot = f.NAMESPACE || Ke, Cn = f.MATHML_TEXT_INTEGRATION_POINTS || Cn, En = f.HTML_INTEGRATION_POINTS || En, te = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && Qr(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (te.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && Qr(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (te.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (te.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Mt && (Kn = !1), mn && (St = !0), Vt && (le = D({}, ko), ce = [], Vt.html === !0 && (D(le, Ho), D(ce, Mo)), Vt.svg === !0 && (D(le, cr), D(ce, vr), D(ce, Ln)), Vt.svgFilters === !0 && (D(le, dr), D(ce, vr), D(ce, Ln)), Vt.mathMl === !0 && (D(le, gr), D(ce, So), D(ce, Ln))), f.ADD_TAGS && (typeof f.ADD_TAGS == "function" ? kt.tagCheck = f.ADD_TAGS : (le === Zr && (le = Qe(le)), D(le, f.ADD_TAGS, ue))), f.ADD_ATTR && (typeof f.ADD_ATTR == "function" ? kt.attributeCheck = f.ADD_ATTR : (ce === Ur && (ce = Qe(ce)), D(ce, f.ADD_ATTR, ue))), f.ADD_URI_SAFE_ATTR && D(er, f.ADD_URI_SAFE_ATTR, ue), f.FORBID_CONTENTS && (Rt === qr && (Rt = Qe(Rt)), D(Rt, f.FORBID_CONTENTS, ue)), Qn && (le["#text"] = !0), pt && D(le, ["html", "head", "body"]), le.table && (D(le, ["tbody"]), delete qt.tbody), f.TRUSTED_TYPES_POLICY) {
|
|
3362
3362
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
3363
3363
|
throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
3364
3364
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
3365
3365
|
throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
3366
|
-
x = f.TRUSTED_TYPES_POLICY,
|
|
3366
|
+
x = f.TRUSTED_TYPES_POLICY, A = x.createHTML("");
|
|
3367
3367
|
} else
|
|
3368
|
-
x === void 0 && (x = el(g, o)), x !== null && typeof
|
|
3369
|
-
|
|
3368
|
+
x === void 0 && (x = el(g, o)), x !== null && typeof A == "string" && (A = x.createHTML(""));
|
|
3369
|
+
ye && ye(f), It = f;
|
|
3370
3370
|
}
|
|
3371
3371
|
}, eo = D({}, [...cr, ...dr, ...Ua]), to = D({}, [...gr, ...za]), Qi = function(f) {
|
|
3372
3372
|
let _ = w(f);
|
|
@@ -3375,7 +3375,7 @@ function Ui() {
|
|
|
3375
3375
|
tagName: "template"
|
|
3376
3376
|
});
|
|
3377
3377
|
const T = Mn(f.tagName), K = Mn(_.tagName);
|
|
3378
|
-
return nr[f.namespaceURI] ? f.namespaceURI === wn ? _.namespaceURI ===
|
|
3378
|
+
return nr[f.namespaceURI] ? f.namespaceURI === wn ? _.namespaceURI === Ke ? T === "svg" : _.namespaceURI === bn ? T === "svg" && (K === "annotation-xml" || Cn[K]) : !!eo[T] : f.namespaceURI === bn ? _.namespaceURI === Ke ? T === "math" : _.namespaceURI === wn ? T === "math" && En[K] : !!to[T] : f.namespaceURI === Ke ? _.namespaceURI === wn && !En[K] || _.namespaceURI === bn && !Cn[K] ? !1 : !to[T] && (qi[T] || !eo[T]) : !!(Xt === "application/xhtml+xml" && nr[f.namespaceURI]) : !1;
|
|
3379
3379
|
}, Ue = function(f) {
|
|
3380
3380
|
Qt(t.removed, {
|
|
3381
3381
|
element: f
|
|
@@ -3383,7 +3383,7 @@ function Ui() {
|
|
|
3383
3383
|
try {
|
|
3384
3384
|
w(f).removeChild(f);
|
|
3385
3385
|
} catch {
|
|
3386
|
-
|
|
3386
|
+
h(f);
|
|
3387
3387
|
}
|
|
3388
3388
|
}, mt = function(f, _) {
|
|
3389
3389
|
try {
|
|
@@ -3413,12 +3413,12 @@ function Ui() {
|
|
|
3413
3413
|
if (Jn)
|
|
3414
3414
|
f = "<remove></remove>" + f;
|
|
3415
3415
|
else {
|
|
3416
|
-
const
|
|
3417
|
-
T =
|
|
3416
|
+
const re = fr(f, /^[\r\n\t ]+/);
|
|
3417
|
+
T = re && re[0];
|
|
3418
3418
|
}
|
|
3419
|
-
Xt === "application/xhtml+xml" && Ot ===
|
|
3419
|
+
Xt === "application/xhtml+xml" && Ot === Ke && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
|
|
3420
3420
|
const K = x ? x.createHTML(f) : f;
|
|
3421
|
-
if (Ot ===
|
|
3421
|
+
if (Ot === Ke)
|
|
3422
3422
|
try {
|
|
3423
3423
|
_ = new v().parseFromString(K, Xt);
|
|
3424
3424
|
} catch {
|
|
@@ -3426,12 +3426,12 @@ function Ui() {
|
|
|
3426
3426
|
if (!_ || !_.documentElement) {
|
|
3427
3427
|
_ = C.createDocument(Ot, "template", null);
|
|
3428
3428
|
try {
|
|
3429
|
-
_.documentElement.innerHTML = tr ?
|
|
3429
|
+
_.documentElement.innerHTML = tr ? A : K;
|
|
3430
3430
|
} catch {
|
|
3431
3431
|
}
|
|
3432
3432
|
}
|
|
3433
|
-
const
|
|
3434
|
-
return f && T &&
|
|
3433
|
+
const ve = _.body || _.documentElement;
|
|
3434
|
+
return f && T && ve.insertBefore(n.createTextNode(T), ve.childNodes[0] || null), Ot === Ke ? B.call(_, pt ? "html" : "body")[0] : pt ? _.documentElement : ve;
|
|
3435
3435
|
}, ro = function(f) {
|
|
3436
3436
|
return H.call(
|
|
3437
3437
|
f.ownerDocument || f,
|
|
@@ -3441,64 +3441,64 @@ function Ui() {
|
|
|
3441
3441
|
null
|
|
3442
3442
|
);
|
|
3443
3443
|
}, or = function(f) {
|
|
3444
|
-
return f instanceof
|
|
3444
|
+
return f instanceof p && (typeof f.nodeName != "string" || typeof f.textContent != "string" || typeof f.removeChild != "function" || !(f.attributes instanceof l) || typeof f.removeAttribute != "function" || typeof f.setAttribute != "function" || typeof f.namespaceURI != "string" || typeof f.insertBefore != "function" || typeof f.hasChildNodes != "function");
|
|
3445
3445
|
}, oo = function(f) {
|
|
3446
3446
|
return typeof a == "function" && f instanceof a;
|
|
3447
3447
|
};
|
|
3448
|
-
function
|
|
3448
|
+
function Xe(k, f, _) {
|
|
3449
3449
|
An(k, (T) => {
|
|
3450
3450
|
T.call(t, f, _, It);
|
|
3451
3451
|
});
|
|
3452
3452
|
}
|
|
3453
3453
|
const io = function(f) {
|
|
3454
3454
|
let _ = null;
|
|
3455
|
-
if (
|
|
3455
|
+
if (Xe(Z.beforeSanitizeElements, f, null), or(f))
|
|
3456
3456
|
return Ue(f), !0;
|
|
3457
|
-
const T =
|
|
3458
|
-
if (
|
|
3457
|
+
const T = ue(f.nodeName);
|
|
3458
|
+
if (Xe(Z.uponSanitizeElement, f, {
|
|
3459
3459
|
tagName: T,
|
|
3460
|
-
allowedTags:
|
|
3461
|
-
}), pn && f.hasChildNodes() && !oo(f.firstElementChild) &&
|
|
3460
|
+
allowedTags: le
|
|
3461
|
+
}), pn && f.hasChildNodes() && !oo(f.firstElementChild) && we(/<[/\w!]/g, f.innerHTML) && we(/<[/\w!]/g, f.textContent) || f.nodeType === rn.progressingInstruction || pn && f.nodeType === rn.comment && we(/<[/\w]/g, f.data))
|
|
3462
3462
|
return Ue(f), !0;
|
|
3463
|
-
if (!(kt.tagCheck instanceof Function && kt.tagCheck(T)) && (!
|
|
3464
|
-
if (!qt[T] && ao(T) && (
|
|
3463
|
+
if (!(kt.tagCheck instanceof Function && kt.tagCheck(T)) && (!le[T] || qt[T])) {
|
|
3464
|
+
if (!qt[T] && ao(T) && (te.tagNameCheck instanceof RegExp && we(te.tagNameCheck, T) || te.tagNameCheck instanceof Function && te.tagNameCheck(T)))
|
|
3465
3465
|
return !1;
|
|
3466
3466
|
if (Qn && !Rt[T]) {
|
|
3467
|
-
const K = w(f) || f.parentNode,
|
|
3468
|
-
if (
|
|
3469
|
-
const
|
|
3470
|
-
for (let
|
|
3471
|
-
const
|
|
3472
|
-
|
|
3467
|
+
const K = w(f) || f.parentNode, ve = E(f) || f.childNodes;
|
|
3468
|
+
if (ve && K) {
|
|
3469
|
+
const re = ve.length;
|
|
3470
|
+
for (let xe = re - 1; xe >= 0; --xe) {
|
|
3471
|
+
const Je = m(ve[xe], !0);
|
|
3472
|
+
Je.__removalCount = (f.__removalCount || 0) + 1, K.insertBefore(Je, b(f));
|
|
3473
3473
|
}
|
|
3474
3474
|
}
|
|
3475
3475
|
}
|
|
3476
3476
|
return Ue(f), !0;
|
|
3477
3477
|
}
|
|
3478
|
-
return f instanceof u && !Qi(f) || (T === "noscript" || T === "noembed" || T === "noframes") &&
|
|
3478
|
+
return f instanceof u && !Qi(f) || (T === "noscript" || T === "noembed" || T === "noframes") && we(/<\/no(script|embed|frames)/i, f.innerHTML) ? (Ue(f), !0) : (Mt && f.nodeType === rn.text && (_ = f.textContent, An([U, ae, fe], (K) => {
|
|
3479
3479
|
_ = en(_, K, " ");
|
|
3480
3480
|
}), f.textContent !== _ && (Qt(t.removed, {
|
|
3481
3481
|
element: f.cloneNode()
|
|
3482
|
-
}), f.textContent = _)),
|
|
3482
|
+
}), f.textContent = _)), Xe(Z.afterSanitizeElements, f, null), !1);
|
|
3483
3483
|
}, so = function(f, _, T) {
|
|
3484
3484
|
if (Wr && (_ === "id" || _ === "name") && (T in n || T in Ji))
|
|
3485
3485
|
return !1;
|
|
3486
|
-
if (!(Kn && !qn[_] &&
|
|
3487
|
-
if (!(zr &&
|
|
3486
|
+
if (!(Kn && !qn[_] && we(qe, _))) {
|
|
3487
|
+
if (!(zr && we(Yt, _))) {
|
|
3488
3488
|
if (!(kt.attributeCheck instanceof Function && kt.attributeCheck(_, f))) {
|
|
3489
|
-
if (!
|
|
3489
|
+
if (!ce[_] || qn[_]) {
|
|
3490
3490
|
if (
|
|
3491
3491
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
3492
3492
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
3493
3493
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
3494
|
-
!(ao(f) && (
|
|
3494
|
+
!(ao(f) && (te.tagNameCheck instanceof RegExp && we(te.tagNameCheck, f) || te.tagNameCheck instanceof Function && te.tagNameCheck(f)) && (te.attributeNameCheck instanceof RegExp && we(te.attributeNameCheck, _) || te.attributeNameCheck instanceof Function && te.attributeNameCheck(_, f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
3495
3495
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
3496
|
-
_ === "is" &&
|
|
3496
|
+
_ === "is" && te.allowCustomizedBuiltInElements && (te.tagNameCheck instanceof RegExp && we(te.tagNameCheck, T) || te.tagNameCheck instanceof Function && te.tagNameCheck(T)))
|
|
3497
3497
|
) return !1;
|
|
3498
3498
|
} else if (!er[_]) {
|
|
3499
|
-
if (!
|
|
3499
|
+
if (!we(Fr, en(T, hn, ""))) {
|
|
3500
3500
|
if (!((_ === "src" || _ === "xlink:href" || _ === "href") && f !== "script" && Pa(T, "data:") === 0 && Kr[f])) {
|
|
3501
|
-
if (!(jr && !
|
|
3501
|
+
if (!(jr && !we(Yn, en(T, hn, "")))) {
|
|
3502
3502
|
if (T)
|
|
3503
3503
|
return !1;
|
|
3504
3504
|
}
|
|
@@ -3512,7 +3512,7 @@ function Ui() {
|
|
|
3512
3512
|
}, ao = function(f) {
|
|
3513
3513
|
return f !== "annotation-xml" && fr(f, Gi);
|
|
3514
3514
|
}, lo = function(f) {
|
|
3515
|
-
|
|
3515
|
+
Xe(Z.beforeSanitizeAttributes, f, null);
|
|
3516
3516
|
const {
|
|
3517
3517
|
attributes: _
|
|
3518
3518
|
} = f;
|
|
@@ -3522,71 +3522,71 @@ function Ui() {
|
|
|
3522
3522
|
attrName: "",
|
|
3523
3523
|
attrValue: "",
|
|
3524
3524
|
keepAttr: !0,
|
|
3525
|
-
allowedAttributes:
|
|
3525
|
+
allowedAttributes: ce,
|
|
3526
3526
|
forceKeepAttr: void 0
|
|
3527
3527
|
};
|
|
3528
3528
|
let K = _.length;
|
|
3529
3529
|
for (; K--; ) {
|
|
3530
|
-
const
|
|
3531
|
-
name:
|
|
3532
|
-
namespaceURI:
|
|
3533
|
-
value:
|
|
3534
|
-
} =
|
|
3535
|
-
let
|
|
3536
|
-
if (T.attrName = Dt, T.attrValue =
|
|
3537
|
-
mt(
|
|
3530
|
+
const ve = _[K], {
|
|
3531
|
+
name: re,
|
|
3532
|
+
namespaceURI: xe,
|
|
3533
|
+
value: Je
|
|
3534
|
+
} = ve, Dt = ue(re), ir = Je;
|
|
3535
|
+
let de = re === "value" ? ir : Ba(ir);
|
|
3536
|
+
if (T.attrName = Dt, T.attrValue = de, T.keepAttr = !0, T.forceKeepAttr = void 0, Xe(Z.uponSanitizeAttribute, f, T), de = T.attrValue, Yr && (Dt === "id" || Dt === "name") && (mt(re, f), de = Wi + de), pn && we(/((--!?|])>)|<\/(style|title|textarea)/i, de)) {
|
|
3537
|
+
mt(re, f);
|
|
3538
3538
|
continue;
|
|
3539
3539
|
}
|
|
3540
|
-
if (Dt === "attributename" && fr(
|
|
3541
|
-
mt(
|
|
3540
|
+
if (Dt === "attributename" && fr(de, "href")) {
|
|
3541
|
+
mt(re, f);
|
|
3542
3542
|
continue;
|
|
3543
3543
|
}
|
|
3544
3544
|
if (T.forceKeepAttr)
|
|
3545
3545
|
continue;
|
|
3546
3546
|
if (!T.keepAttr) {
|
|
3547
|
-
mt(
|
|
3547
|
+
mt(re, f);
|
|
3548
3548
|
continue;
|
|
3549
3549
|
}
|
|
3550
|
-
if (!Gr &&
|
|
3551
|
-
mt(
|
|
3550
|
+
if (!Gr && we(/\/>/i, de)) {
|
|
3551
|
+
mt(re, f);
|
|
3552
3552
|
continue;
|
|
3553
3553
|
}
|
|
3554
|
-
Mt && An([U,
|
|
3555
|
-
|
|
3554
|
+
Mt && An([U, ae, fe], (fo) => {
|
|
3555
|
+
de = en(de, fo, " ");
|
|
3556
3556
|
});
|
|
3557
|
-
const uo =
|
|
3558
|
-
if (!so(uo, Dt,
|
|
3559
|
-
mt(
|
|
3557
|
+
const uo = ue(f.nodeName);
|
|
3558
|
+
if (!so(uo, Dt, de)) {
|
|
3559
|
+
mt(re, f);
|
|
3560
3560
|
continue;
|
|
3561
3561
|
}
|
|
3562
|
-
if (x && typeof g == "object" && typeof g.getAttributeType == "function" && !
|
|
3562
|
+
if (x && typeof g == "object" && typeof g.getAttributeType == "function" && !xe)
|
|
3563
3563
|
switch (g.getAttributeType(uo, Dt)) {
|
|
3564
3564
|
case "TrustedHTML": {
|
|
3565
|
-
|
|
3565
|
+
de = x.createHTML(de);
|
|
3566
3566
|
break;
|
|
3567
3567
|
}
|
|
3568
3568
|
case "TrustedScriptURL": {
|
|
3569
|
-
|
|
3569
|
+
de = x.createScriptURL(de);
|
|
3570
3570
|
break;
|
|
3571
3571
|
}
|
|
3572
3572
|
}
|
|
3573
|
-
if (
|
|
3573
|
+
if (de !== ir)
|
|
3574
3574
|
try {
|
|
3575
|
-
|
|
3575
|
+
xe ? f.setAttributeNS(xe, re, de) : f.setAttribute(re, de), or(f) ? Ue(f) : Lo(t.removed);
|
|
3576
3576
|
} catch {
|
|
3577
|
-
mt(
|
|
3577
|
+
mt(re, f);
|
|
3578
3578
|
}
|
|
3579
3579
|
}
|
|
3580
|
-
|
|
3580
|
+
Xe(Z.afterSanitizeAttributes, f, null);
|
|
3581
3581
|
}, es = function k(f) {
|
|
3582
3582
|
let _ = null;
|
|
3583
3583
|
const T = ro(f);
|
|
3584
|
-
for (
|
|
3585
|
-
|
|
3586
|
-
|
|
3584
|
+
for (Xe(Z.beforeSanitizeShadowDOM, f, null); _ = T.nextNode(); )
|
|
3585
|
+
Xe(Z.uponSanitizeShadowNode, _, null), io(_), lo(_), _.content instanceof i && k(_.content);
|
|
3586
|
+
Xe(Z.afterSanitizeShadowDOM, f, null);
|
|
3587
3587
|
};
|
|
3588
3588
|
return t.sanitize = function(k) {
|
|
3589
|
-
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ = null, T = null, K = null,
|
|
3589
|
+
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ = null, T = null, K = null, ve = null;
|
|
3590
3590
|
if (tr = !k, tr && (k = "<!-->"), typeof k != "string" && !oo(k))
|
|
3591
3591
|
if (typeof k.toString == "function") {
|
|
3592
3592
|
if (k = k.toString(), typeof k != "string")
|
|
@@ -3597,8 +3597,8 @@ function Ui() {
|
|
|
3597
3597
|
return k;
|
|
3598
3598
|
if (Xn || rr(f), t.removed = [], typeof k == "string" && (Kt = !1), Kt) {
|
|
3599
3599
|
if (k.nodeName) {
|
|
3600
|
-
const
|
|
3601
|
-
if (!
|
|
3600
|
+
const Je = ue(k.nodeName);
|
|
3601
|
+
if (!le[Je] || qt[Je])
|
|
3602
3602
|
throw tn("root node is forbidden and cannot be sanitized in-place");
|
|
3603
3603
|
}
|
|
3604
3604
|
} else if (k instanceof a)
|
|
@@ -3608,27 +3608,27 @@ function Ui() {
|
|
|
3608
3608
|
k.indexOf("<") === -1)
|
|
3609
3609
|
return x && _n ? x.createHTML(k) : k;
|
|
3610
3610
|
if (_ = no(k), !_)
|
|
3611
|
-
return St ? null : _n ?
|
|
3611
|
+
return St ? null : _n ? A : "";
|
|
3612
3612
|
}
|
|
3613
3613
|
_ && Jn && Ue(_.firstChild);
|
|
3614
|
-
const
|
|
3615
|
-
for (; K =
|
|
3614
|
+
const re = ro(Kt ? k : _);
|
|
3615
|
+
for (; K = re.nextNode(); )
|
|
3616
3616
|
io(K), lo(K), K.content instanceof i && es(K.content);
|
|
3617
3617
|
if (Kt)
|
|
3618
3618
|
return k;
|
|
3619
3619
|
if (St) {
|
|
3620
3620
|
if (mn)
|
|
3621
|
-
for (
|
|
3622
|
-
|
|
3621
|
+
for (ve = I.call(_.ownerDocument); _.firstChild; )
|
|
3622
|
+
ve.appendChild(_.firstChild);
|
|
3623
3623
|
else
|
|
3624
|
-
|
|
3625
|
-
return (
|
|
3624
|
+
ve = _;
|
|
3625
|
+
return (ce.shadowroot || ce.shadowrootmode) && (ve = z.call(r, ve, !0)), ve;
|
|
3626
3626
|
}
|
|
3627
|
-
let
|
|
3628
|
-
return pt &&
|
|
3629
|
-
` +
|
|
3630
|
-
|
|
3631
|
-
}), x && _n ? x.createHTML(
|
|
3627
|
+
let xe = pt ? _.outerHTML : _.innerHTML;
|
|
3628
|
+
return pt && le["!doctype"] && _.ownerDocument && _.ownerDocument.doctype && _.ownerDocument.doctype.name && we(Zi, _.ownerDocument.doctype.name) && (xe = "<!DOCTYPE " + _.ownerDocument.doctype.name + `>
|
|
3629
|
+
` + xe), Mt && An([U, ae, fe], (Je) => {
|
|
3630
|
+
xe = en(xe, Je, " ");
|
|
3631
|
+
}), x && _n ? x.createHTML(xe) : xe;
|
|
3632
3632
|
}, t.setConfig = function() {
|
|
3633
3633
|
let k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3634
3634
|
rr(k), Xn = !0;
|
|
@@ -3636,7 +3636,7 @@ function Ui() {
|
|
|
3636
3636
|
It = null, Xn = !1;
|
|
3637
3637
|
}, t.isValidAttribute = function(k, f, _) {
|
|
3638
3638
|
It || rr({});
|
|
3639
|
-
const T =
|
|
3639
|
+
const T = ue(k), K = ue(f);
|
|
3640
3640
|
return so(T, K, _);
|
|
3641
3641
|
}, t.addHook = function(k, f) {
|
|
3642
3642
|
typeof f == "function" && Qt(Z[k], f);
|
|
@@ -3657,20 +3657,20 @@ const rl = {
|
|
|
3657
3657
|
hash: "svelte-1ql962m",
|
|
3658
3658
|
code: ".icon-wrapper.svelte-1ql962m {display:inline-flex;align-items:center;justify-content:center;}svg {width:1.25rem;height:1.75rem;fill:var(--tiptob-bg-icon, #333333);}"
|
|
3659
3659
|
};
|
|
3660
|
-
function
|
|
3661
|
-
W(t, !0),
|
|
3662
|
-
let n =
|
|
3660
|
+
function se(e, t) {
|
|
3661
|
+
W(t, !0), Se(e, rl);
|
|
3662
|
+
let n = L(t, "content", 15);
|
|
3663
3663
|
var r = {
|
|
3664
3664
|
get content() {
|
|
3665
3665
|
return n();
|
|
3666
3666
|
},
|
|
3667
3667
|
set content(s) {
|
|
3668
|
-
n(s),
|
|
3668
|
+
n(s), y();
|
|
3669
3669
|
}
|
|
3670
3670
|
}, o = nl(), i = P(o);
|
|
3671
|
-
return pa(i, () => tl.sanitize(n(), { USE_PROFILES: { svg: !0 } })),
|
|
3671
|
+
return pa(i, () => tl.sanitize(n(), { USE_PROFILES: { svg: !0 } })), O(o), V(e, o), Y(r);
|
|
3672
3672
|
}
|
|
3673
|
-
q(
|
|
3673
|
+
q(se, { content: {} }, [], [], !0);
|
|
3674
3674
|
var ol = /* @__PURE__ */ ie('<div class="icon-text svelte-2g495f"> </div>'), il = /* @__PURE__ */ ie("<button><!> <!></button>");
|
|
3675
3675
|
const sl = {
|
|
3676
3676
|
hash: "svelte-2g495f",
|
|
@@ -3678,10 +3678,10 @@ const sl = {
|
|
|
3678
3678
|
button.highlighted.svelte-2g495f:enabled {color:var(--tiptob-bg-icon-highlighted, #2977ff);background-color:var(--tiptob-bg-button-highlighted, #f0f7ff);svg {fill:var(--tiptob-bg-icon-highlighted, #2977ff);}}button.dropdownOpen.svelte-2g495f:enabled::after,
|
|
3679
3679
|
button.highlighted.svelte-2g495f:enabled::after {border-top:0.3rem solid var(--tiptob-bg-icon-highlighted, #2977ff);}`
|
|
3680
3680
|
};
|
|
3681
|
-
function
|
|
3682
|
-
W(t, !0),
|
|
3683
|
-
let n =
|
|
3684
|
-
function
|
|
3681
|
+
function ge(e, t) {
|
|
3682
|
+
W(t, !0), Se(e, sl);
|
|
3683
|
+
let n = L(t, "editor", 7), r = L(t, "key", 7), o = L(t, "action", 7), i = L(t, "icon", 7), s = L(t, "tooltip", 7), a = L(t, "text", 7, ""), u = L(t, "dropdownOpen", 15, !1), c = /* @__PURE__ */ J(!1), l = /* @__PURE__ */ J(!1);
|
|
3684
|
+
function p() {
|
|
3685
3685
|
typeof r() == "string" ? S(
|
|
3686
3686
|
c,
|
|
3687
3687
|
r() === "textStyle" ? !!n().getAttributes(r()).color && n().isActive(r()) : n().isActive(r()),
|
|
@@ -3692,80 +3692,80 @@ function de(e, t) {
|
|
|
3692
3692
|
S(l, !n().isEditable);
|
|
3693
3693
|
}
|
|
3694
3694
|
da(() => {
|
|
3695
|
-
|
|
3695
|
+
p(), v(), n().on("transaction", p), n().on("update", v);
|
|
3696
3696
|
});
|
|
3697
3697
|
var g = {
|
|
3698
3698
|
get editor() {
|
|
3699
3699
|
return n();
|
|
3700
3700
|
},
|
|
3701
3701
|
set editor(w) {
|
|
3702
|
-
n(w),
|
|
3702
|
+
n(w), y();
|
|
3703
3703
|
},
|
|
3704
3704
|
get key() {
|
|
3705
3705
|
return r();
|
|
3706
3706
|
},
|
|
3707
3707
|
set key(w) {
|
|
3708
|
-
r(w),
|
|
3708
|
+
r(w), y();
|
|
3709
3709
|
},
|
|
3710
3710
|
get action() {
|
|
3711
3711
|
return o();
|
|
3712
3712
|
},
|
|
3713
3713
|
set action(w) {
|
|
3714
|
-
o(w),
|
|
3714
|
+
o(w), y();
|
|
3715
3715
|
},
|
|
3716
3716
|
get icon() {
|
|
3717
3717
|
return i();
|
|
3718
3718
|
},
|
|
3719
3719
|
set icon(w) {
|
|
3720
|
-
i(w),
|
|
3720
|
+
i(w), y();
|
|
3721
3721
|
},
|
|
3722
3722
|
get tooltip() {
|
|
3723
3723
|
return s();
|
|
3724
3724
|
},
|
|
3725
3725
|
set tooltip(w) {
|
|
3726
|
-
s(w),
|
|
3726
|
+
s(w), y();
|
|
3727
3727
|
},
|
|
3728
3728
|
get text() {
|
|
3729
3729
|
return a();
|
|
3730
3730
|
},
|
|
3731
3731
|
set text(w = "") {
|
|
3732
|
-
a(w),
|
|
3732
|
+
a(w), y();
|
|
3733
3733
|
},
|
|
3734
3734
|
get dropdownOpen() {
|
|
3735
3735
|
return u();
|
|
3736
3736
|
},
|
|
3737
3737
|
set dropdownOpen(w = !1) {
|
|
3738
|
-
u(w),
|
|
3738
|
+
u(w), y();
|
|
3739
3739
|
}
|
|
3740
3740
|
}, d = il();
|
|
3741
3741
|
d.__click = () => o()();
|
|
3742
3742
|
let m;
|
|
3743
|
-
var
|
|
3744
|
-
|
|
3743
|
+
var h = P(d);
|
|
3744
|
+
se(h, {
|
|
3745
3745
|
get content() {
|
|
3746
3746
|
return i();
|
|
3747
3747
|
}
|
|
3748
3748
|
});
|
|
3749
|
-
var b =
|
|
3749
|
+
var b = ee(h, 2);
|
|
3750
3750
|
{
|
|
3751
|
-
var
|
|
3752
|
-
var x = ol(),
|
|
3753
|
-
|
|
3751
|
+
var E = (w) => {
|
|
3752
|
+
var x = ol(), A = P(x, !0);
|
|
3753
|
+
O(x), Me(() => Dr(A, a())), V(w, x);
|
|
3754
3754
|
};
|
|
3755
3755
|
X(b, (w) => {
|
|
3756
|
-
a() && w(
|
|
3756
|
+
a() && w(E);
|
|
3757
3757
|
});
|
|
3758
3758
|
}
|
|
3759
|
-
return
|
|
3760
|
-
d.disabled = M(l),
|
|
3759
|
+
return O(d), Me(() => {
|
|
3760
|
+
d.disabled = M(l), ne(d, "title", M(l) ? "" : s()), m = Nr(d, 1, "svelte-2g495f", null, m, {
|
|
3761
3761
|
highlighted: M(c),
|
|
3762
3762
|
dropdownOpen: u()
|
|
3763
3763
|
});
|
|
3764
3764
|
}), V(e, d), Y(g);
|
|
3765
3765
|
}
|
|
3766
|
-
|
|
3766
|
+
ht(["click"]);
|
|
3767
3767
|
q(
|
|
3768
|
-
|
|
3768
|
+
ge,
|
|
3769
3769
|
{
|
|
3770
3770
|
editor: {},
|
|
3771
3771
|
key: {},
|
|
@@ -3781,25 +3781,25 @@ q(
|
|
|
3781
3781
|
);
|
|
3782
3782
|
function al(e, t) {
|
|
3783
3783
|
W(t, !0);
|
|
3784
|
-
let n =
|
|
3784
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
3785
3785
|
const o = { de: "Fett", en: "Bold" }, i = () => n().chain().focus().toggleBold().run();
|
|
3786
3786
|
var s = {
|
|
3787
3787
|
get editor() {
|
|
3788
3788
|
return n();
|
|
3789
3789
|
},
|
|
3790
3790
|
set editor(l) {
|
|
3791
|
-
n(l),
|
|
3791
|
+
n(l), y();
|
|
3792
3792
|
},
|
|
3793
3793
|
get language() {
|
|
3794
3794
|
return r();
|
|
3795
3795
|
},
|
|
3796
3796
|
set language(l = "en") {
|
|
3797
|
-
r(l),
|
|
3797
|
+
r(l), y();
|
|
3798
3798
|
}
|
|
3799
3799
|
}, a = Q(), u = G(a);
|
|
3800
3800
|
{
|
|
3801
3801
|
var c = (l) => {
|
|
3802
|
-
|
|
3802
|
+
ge(l, {
|
|
3803
3803
|
get editor() {
|
|
3804
3804
|
return n();
|
|
3805
3805
|
},
|
|
@@ -3844,14 +3844,14 @@ function Oo(e) {
|
|
|
3844
3844
|
];
|
|
3845
3845
|
}
|
|
3846
3846
|
function cl(e, { delay: t = 0, duration: n = 400, easing: r = fl, x: o = 0, y: i = 0, opacity: s = 0 } = {}) {
|
|
3847
|
-
const a = getComputedStyle(e), u = +a.opacity, c = a.transform === "none" ? "" : a.transform, l = u * (1 - s), [
|
|
3847
|
+
const a = getComputedStyle(e), u = +a.opacity, c = a.transform === "none" ? "" : a.transform, l = u * (1 - s), [p, v] = Oo(o), [g, d] = Oo(i);
|
|
3848
3848
|
return {
|
|
3849
3849
|
delay: t,
|
|
3850
3850
|
duration: n,
|
|
3851
3851
|
easing: r,
|
|
3852
|
-
css: (m,
|
|
3853
|
-
transform: ${c} translate(${(1 - m) *
|
|
3854
|
-
opacity: ${u - l *
|
|
3852
|
+
css: (m, h) => `
|
|
3853
|
+
transform: ${c} translate(${(1 - m) * p}${v}, ${(1 - m) * g}${d});
|
|
3854
|
+
opacity: ${u - l * h}`
|
|
3855
3855
|
};
|
|
3856
3856
|
}
|
|
3857
3857
|
var dl = /* @__PURE__ */ ie('<div class="dropdown svelte-1jj3d72"><!></div>'), gl = /* @__PURE__ */ ie("<div><!> <!></div>");
|
|
@@ -3860,62 +3860,62 @@ const vl = {
|
|
|
3860
3860
|
code: `.dropdown-wrapper.svelte-1jj3d72 {position:relative;> button::after {margin-left:0.25rem;content:"";display:inline-block;border-top:0.3rem solid var(--tiptob-bg-icon, #333333);border-right:0.3rem solid transparent;border-left:0.3rem solid transparent;transition:transform 0.3s ease;transform:rotate(0deg);}&.open > button::after {transform:rotate(180deg);}.dropdown:where(.svelte-1jj3d72) {z-index:99;position:absolute;box-shadow:rgba(0, 0, 0, 0.05) 0px 6px 10px 0px,
|
|
3861
3861
|
rgba(0, 0, 0, 0.1) 0px 0px 0px 1px;background-color:var(--tiptob-bg-button, #ffffff);top:2.125rem;}}`
|
|
3862
3862
|
};
|
|
3863
|
-
function
|
|
3864
|
-
W(t, !0),
|
|
3865
|
-
let n =
|
|
3863
|
+
function at(e, t) {
|
|
3864
|
+
W(t, !0), Se(e, vl);
|
|
3865
|
+
let n = L(t, "editor", 7), r = L(t, "key", 7), o = L(t, "icon", 7), i = L(t, "text", 7, ""), s = L(t, "dropdownOpen", 15), a = L(t, "children", 7), u = L(t, "tooltip", 7);
|
|
3866
3866
|
function c() {
|
|
3867
3867
|
s(!s());
|
|
3868
3868
|
}
|
|
3869
3869
|
function l() {
|
|
3870
3870
|
s(!1);
|
|
3871
3871
|
}
|
|
3872
|
-
var
|
|
3872
|
+
var p = {
|
|
3873
3873
|
get editor() {
|
|
3874
3874
|
return n();
|
|
3875
3875
|
},
|
|
3876
3876
|
set editor(b) {
|
|
3877
|
-
n(b),
|
|
3877
|
+
n(b), y();
|
|
3878
3878
|
},
|
|
3879
3879
|
get key() {
|
|
3880
3880
|
return r();
|
|
3881
3881
|
},
|
|
3882
3882
|
set key(b) {
|
|
3883
|
-
r(b),
|
|
3883
|
+
r(b), y();
|
|
3884
3884
|
},
|
|
3885
3885
|
get icon() {
|
|
3886
3886
|
return o();
|
|
3887
3887
|
},
|
|
3888
3888
|
set icon(b) {
|
|
3889
|
-
o(b),
|
|
3889
|
+
o(b), y();
|
|
3890
3890
|
},
|
|
3891
3891
|
get text() {
|
|
3892
3892
|
return i();
|
|
3893
3893
|
},
|
|
3894
3894
|
set text(b = "") {
|
|
3895
|
-
i(b),
|
|
3895
|
+
i(b), y();
|
|
3896
3896
|
},
|
|
3897
3897
|
get dropdownOpen() {
|
|
3898
3898
|
return s();
|
|
3899
3899
|
},
|
|
3900
3900
|
set dropdownOpen(b) {
|
|
3901
|
-
s(b),
|
|
3901
|
+
s(b), y();
|
|
3902
3902
|
},
|
|
3903
3903
|
get children() {
|
|
3904
3904
|
return a();
|
|
3905
3905
|
},
|
|
3906
3906
|
set children(b) {
|
|
3907
|
-
a(b),
|
|
3907
|
+
a(b), y();
|
|
3908
3908
|
},
|
|
3909
3909
|
get tooltip() {
|
|
3910
3910
|
return u();
|
|
3911
3911
|
},
|
|
3912
3912
|
set tooltip(b) {
|
|
3913
|
-
u(b),
|
|
3913
|
+
u(b), y();
|
|
3914
3914
|
}
|
|
3915
3915
|
}, v = gl();
|
|
3916
3916
|
let g;
|
|
3917
3917
|
var d = P(v);
|
|
3918
|
-
|
|
3918
|
+
ge(d, {
|
|
3919
3919
|
get key() {
|
|
3920
3920
|
return r();
|
|
3921
3921
|
},
|
|
@@ -3936,20 +3936,20 @@ function st(e, t) {
|
|
|
3936
3936
|
return s();
|
|
3937
3937
|
}
|
|
3938
3938
|
});
|
|
3939
|
-
var m =
|
|
3939
|
+
var m = ee(d, 2);
|
|
3940
3940
|
{
|
|
3941
|
-
var
|
|
3942
|
-
var
|
|
3943
|
-
ca(w, a),
|
|
3941
|
+
var h = (b) => {
|
|
3942
|
+
var E = dl(), w = P(E);
|
|
3943
|
+
ca(w, a), O(E), La(3, E, () => cl), V(b, E);
|
|
3944
3944
|
};
|
|
3945
3945
|
X(m, (b) => {
|
|
3946
|
-
s() && b(
|
|
3946
|
+
s() && b(h);
|
|
3947
3947
|
});
|
|
3948
3948
|
}
|
|
3949
|
-
return
|
|
3949
|
+
return O(v), Oi(v, (b) => ul?.(b)), Me(() => g = Nr(v, 1, "dropdown-wrapper svelte-1jj3d72", null, g, { open: s() })), Hi("outclick", v, l), V(e, v), Y(p);
|
|
3950
3950
|
}
|
|
3951
3951
|
q(
|
|
3952
|
-
|
|
3952
|
+
at,
|
|
3953
3953
|
{
|
|
3954
3954
|
editor: {},
|
|
3955
3955
|
key: {},
|
|
@@ -3969,8 +3969,8 @@ const ml = {
|
|
|
3969
3969
|
code: ".color-picker.svelte-1oe1fxx {display:flex;flex-flow:row wrap;gap:0.25rem;width:5rem;background-color:var(--tiptob-bg-button, #ffffff);padding:0.25rem;button:where(.svelte-1oe1fxx) {border:none;border-radius:0.25rem;}.clear:where(.svelte-1oe1fxx) {width:100%;text-align:center;padding:0.5rem;background-color:var(--tiptob-bg-button, #ffffff);color:#333333;align-items:center;justify-content:center;display:flex;cursor:pointer;&:hover {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}svg {width:1.125rem;height:1.125rem;}}button:where(.svelte-1oe1fxx):not(.clear) {display:flex;width:1.5rem;height:1.5rem;cursor:pointer;&:hover {border:2px solid #2977ff;}}}"
|
|
3970
3970
|
};
|
|
3971
3971
|
function _l(e, t) {
|
|
3972
|
-
W(t, !0),
|
|
3973
|
-
let n =
|
|
3972
|
+
W(t, !0), Se(e, ml);
|
|
3973
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = /* @__PURE__ */ J(!1);
|
|
3974
3974
|
const i = { de: "Schriftfarbe", en: "Font Color" }, s = [
|
|
3975
3975
|
"#E91313",
|
|
3976
3976
|
"#118800",
|
|
@@ -3990,18 +3990,18 @@ function _l(e, t) {
|
|
|
3990
3990
|
return n();
|
|
3991
3991
|
},
|
|
3992
3992
|
set editor(g) {
|
|
3993
|
-
n(g),
|
|
3993
|
+
n(g), y();
|
|
3994
3994
|
},
|
|
3995
3995
|
get language() {
|
|
3996
3996
|
return r();
|
|
3997
3997
|
},
|
|
3998
3998
|
set language(g = "en") {
|
|
3999
|
-
r(g),
|
|
3999
|
+
r(g), y();
|
|
4000
4000
|
}
|
|
4001
|
-
}, l = Q(),
|
|
4001
|
+
}, l = Q(), p = G(l);
|
|
4002
4002
|
{
|
|
4003
4003
|
var v = (g) => {
|
|
4004
|
-
|
|
4004
|
+
at(g, {
|
|
4005
4005
|
get editor() {
|
|
4006
4006
|
return n();
|
|
4007
4007
|
},
|
|
@@ -4019,32 +4019,32 @@ function _l(e, t) {
|
|
|
4019
4019
|
S(o, d, !0);
|
|
4020
4020
|
},
|
|
4021
4021
|
children: (d, m) => {
|
|
4022
|
-
var
|
|
4022
|
+
var h = pl(), b = P(h);
|
|
4023
4023
|
b.__click = a;
|
|
4024
|
-
var
|
|
4025
|
-
|
|
4024
|
+
var E = P(b);
|
|
4025
|
+
se(E, {
|
|
4026
4026
|
get content() {
|
|
4027
4027
|
return zi;
|
|
4028
4028
|
}
|
|
4029
|
-
}),
|
|
4030
|
-
var w =
|
|
4031
|
-
Tt(w, 17, () => s, (x) => s.indexOf(x), (x,
|
|
4029
|
+
}), O(b);
|
|
4030
|
+
var w = ee(b, 2);
|
|
4031
|
+
Tt(w, 17, () => s, (x) => s.indexOf(x), (x, A) => {
|
|
4032
4032
|
var C = hl();
|
|
4033
|
-
C.__click = () => u(M(
|
|
4034
|
-
Ii(C, `background-color: ${M(
|
|
4033
|
+
C.__click = () => u(M(A)), Me(() => {
|
|
4034
|
+
Ii(C, `background-color: ${M(A) ?? ""};`), ne(C, "aria-label", M(A));
|
|
4035
4035
|
}), V(x, C);
|
|
4036
|
-
}),
|
|
4036
|
+
}), O(h), V(d, h);
|
|
4037
4037
|
},
|
|
4038
4038
|
$$slots: { default: !0 }
|
|
4039
4039
|
});
|
|
4040
4040
|
};
|
|
4041
|
-
X(
|
|
4041
|
+
X(p, (g) => {
|
|
4042
4042
|
n() && g(v);
|
|
4043
4043
|
});
|
|
4044
4044
|
}
|
|
4045
4045
|
return V(e, l), Y(c);
|
|
4046
4046
|
}
|
|
4047
|
-
|
|
4047
|
+
ht(["click"]);
|
|
4048
4048
|
customElements.define("tiptob-font-color-button", q(_l, { editor: {}, language: {} }, [], [], !0));
|
|
4049
4049
|
const bl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z"></path></svg>';
|
|
4050
4050
|
var wl = /* @__PURE__ */ ie("<button></button>"), Cl = /* @__PURE__ */ ie('<div class="table svelte-tra6fl"></div> <div class="display svelte-tra6fl"> </div>', 1);
|
|
@@ -4054,8 +4054,8 @@ const El = {
|
|
|
4054
4054
|
&.highlight {background-color:var(--tiptob-bg-button-highlighted, #a6ccf7);}}}.display.svelte-tra6fl {text-align:center;color:var(--tiptob-bg-icon, #333333);padding-bottom:0.25rem;}`
|
|
4055
4055
|
};
|
|
4056
4056
|
function yl(e, t) {
|
|
4057
|
-
W(t, !0),
|
|
4058
|
-
let n =
|
|
4057
|
+
W(t, !0), Se(e, El);
|
|
4058
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4059
4059
|
const o = { de: "Tabelle", en: "Table" };
|
|
4060
4060
|
let i = /* @__PURE__ */ J(!1), s = /* @__PURE__ */ J(0), a = /* @__PURE__ */ J(0);
|
|
4061
4061
|
const u = 10;
|
|
@@ -4067,18 +4067,18 @@ function yl(e, t) {
|
|
|
4067
4067
|
return n();
|
|
4068
4068
|
},
|
|
4069
4069
|
set editor(d) {
|
|
4070
|
-
n(d),
|
|
4070
|
+
n(d), y();
|
|
4071
4071
|
},
|
|
4072
4072
|
get language() {
|
|
4073
4073
|
return r();
|
|
4074
4074
|
},
|
|
4075
4075
|
set language(d = "en") {
|
|
4076
|
-
r(d),
|
|
4076
|
+
r(d), y();
|
|
4077
4077
|
}
|
|
4078
|
-
},
|
|
4078
|
+
}, p = Q(), v = G(p);
|
|
4079
4079
|
{
|
|
4080
4080
|
var g = (d) => {
|
|
4081
|
-
|
|
4081
|
+
at(d, {
|
|
4082
4082
|
get editor() {
|
|
4083
4083
|
return n();
|
|
4084
4084
|
},
|
|
@@ -4095,19 +4095,19 @@ function yl(e, t) {
|
|
|
4095
4095
|
set dropdownOpen(m) {
|
|
4096
4096
|
S(i, m, !0);
|
|
4097
4097
|
},
|
|
4098
|
-
children: (m,
|
|
4099
|
-
var b = Cl(),
|
|
4100
|
-
Tt(
|
|
4101
|
-
var
|
|
4098
|
+
children: (m, h) => {
|
|
4099
|
+
var b = Cl(), E = G(b);
|
|
4100
|
+
Tt(E, 21, () => ({ length: u }), Co, (A, C, H) => {
|
|
4101
|
+
var I = Q(), B = G(I);
|
|
4102
4102
|
Tt(B, 17, () => ({ length: u }), Co, (z, Z, U) => {
|
|
4103
|
-
var
|
|
4104
|
-
|
|
4105
|
-
let
|
|
4106
|
-
|
|
4107
|
-
}), V(
|
|
4108
|
-
}),
|
|
4109
|
-
var w =
|
|
4110
|
-
|
|
4103
|
+
var ae = wl();
|
|
4104
|
+
ae.__click = () => c(H + 1, U + 1), ne(ae, "aria-label", `Create table with ${H + 1} rows and ${U + 1} columns`);
|
|
4105
|
+
let fe;
|
|
4106
|
+
Me(() => fe = Nr(ae, 1, "svelte-tra6fl", null, fe, { highlight: M(s) >= H && M(a) >= U })), Hi("mouseenter", ae, () => (S(s, H, !0), S(a, U, !0))), V(z, ae);
|
|
4107
|
+
}), V(A, I);
|
|
4108
|
+
}), O(E);
|
|
4109
|
+
var w = ee(E, 2), x = P(w);
|
|
4110
|
+
O(w), Me(() => Dr(x, `${M(s) + 1} x ${M(a) + 1}`)), V(m, b);
|
|
4111
4111
|
},
|
|
4112
4112
|
$$slots: { default: !0 }
|
|
4113
4113
|
});
|
|
@@ -4116,23 +4116,24 @@ function yl(e, t) {
|
|
|
4116
4116
|
n() && d(g);
|
|
4117
4117
|
});
|
|
4118
4118
|
}
|
|
4119
|
-
return V(e,
|
|
4119
|
+
return V(e, p), Y(l);
|
|
4120
4120
|
}
|
|
4121
|
-
|
|
4121
|
+
ht(["click"]);
|
|
4122
4122
|
customElements.define("tiptob-table-button", q(yl, { editor: {}, language: {} }, [], [], !0));
|
|
4123
|
-
const Tl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM13.4142 13.9997L15.182 15.7675L13.7678 17.1817L12 15.4139L10.2322 17.1817L8.81802 15.7675L10.5858 13.9997L8.81802 12.232L10.2322 10.8178L12 12.5855L13.7678 10.8178L15.182 12.232L13.4142 13.9997ZM9 4V6H15V4H9Z"></path></svg>', xl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 3C12.5523 3 13 3.44772 13 4L12.9998 11.9998C13.8355 11.372 14.8743 11 16 11C18.7614 11 21 13.2386 21 16C21 18.7614 18.7614 21 16 21C14.9681 21 14.0092 20.6874 13.2129 20.1518L13 20C13 20.5523 12.5523 21 12 21H6C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3H12ZM11 5H7V19H11V5ZM19 15H13V17H19V15Z"></path></svg>', Al = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 5C20.5523 5 21 5.44772 21 6V12C21 12.5523 20.5523 13 20 13C20.628 13.8355 21 14.8743 21 16C21 18.7614 18.7614 21 16 21C13.2386 21 11 18.7614 11 16C11 14.8743 11.372 13.8355 11.9998 12.9998L4 13C3.44772 13 3 12.5523 3 12V6C3 5.44772 3.44772 5 4 5H20ZM13 15V17H19V15H13ZM19 7H5V11H19V7Z"></path></svg>', Ll = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H14C13.4477 21 13 20.5523 13 20V4C13 3.44772 13.4477 3 14 3H20ZM19 5H15V19H19V5ZM6 7C8.76142 7 11 9.23858 11 12C11 14.7614 8.76142 17 6 17C3.23858 17 1 14.7614 1 12C1 9.23858 3.23858 7 6 7ZM7 9H5V10.999L3 11V13L5 12.999V15H7V12.999L9 13V11L7 10.999V9Z"></path></svg>', Hl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M10 3C10.5523 3 11 3.44772 11 4V20C11 20.5523 10.5523 21 10 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H10ZM9 5H5V19H9V5ZM18 7C20.7614 7 23 9.23858 23 12C23 14.7614 20.7614 17 18 17C15.2386 17 13 14.7614 13 12C13 9.23858 15.2386 7 18 7ZM19 9H17V10.999L15 11V13L17 12.999V15H19V12.999L21 13V11L19 10.999V9Z"></path></svg>', kl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 13C20.5523 13 21 13.4477 21 14V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V14C3 13.4477 3.44772 13 4 13H20ZM19 15H5V19H19V15ZM12 1C14.7614 1 17 3.23858 17 6C17 8.76142 14.7614 11 12 11C9.23858 11 7 8.76142 7 6C7 3.23858 9.23858 1 12 1ZM13 3H11V4.999L9 5V7L11 6.999V9H13V6.999L15 7V5L13 4.999V3Z"></path></svg>', Ml = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 13C14.7614 13 17 15.2386 17 18C17 20.7614 14.7614 23 12 23C9.23858 23 7 20.7614 7 18C7 15.2386 9.23858 13 12 13ZM13 15H11V16.999L9 17V19L11 18.999V21H13V18.999L15 19V17L13 16.999V15ZM20 3C20.5523 3 21 3.44772 21 4V10C21 10.5523 20.5523 11 20 11H4C3.44772 11 3 10.5523 3 10V4C3 3.44772 3.44772 3 4 3H20ZM5 5V9H19V5H5Z"></path></svg>';
|
|
4124
|
-
var
|
|
4125
|
-
const
|
|
4123
|
+
const Tl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM13.4142 13.9997L15.182 15.7675L13.7678 17.1817L12 15.4139L10.2322 17.1817L8.81802 15.7675L10.5858 13.9997L8.81802 12.232L10.2322 10.8178L12 12.5855L13.7678 10.8178L15.182 12.232L13.4142 13.9997ZM9 4V6H15V4H9Z"></path></svg>', xl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 3C12.5523 3 13 3.44772 13 4L12.9998 11.9998C13.8355 11.372 14.8743 11 16 11C18.7614 11 21 13.2386 21 16C21 18.7614 18.7614 21 16 21C14.9681 21 14.0092 20.6874 13.2129 20.1518L13 20C13 20.5523 12.5523 21 12 21H6C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3H12ZM11 5H7V19H11V5ZM19 15H13V17H19V15Z"></path></svg>', Al = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 5C20.5523 5 21 5.44772 21 6V12C21 12.5523 20.5523 13 20 13C20.628 13.8355 21 14.8743 21 16C21 18.7614 18.7614 21 16 21C13.2386 21 11 18.7614 11 16C11 14.8743 11.372 13.8355 11.9998 12.9998L4 13C3.44772 13 3 12.5523 3 12V6C3 5.44772 3.44772 5 4 5H20ZM13 15V17H19V15H13ZM19 7H5V11H19V7Z"></path></svg>', Ll = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H14C13.4477 21 13 20.5523 13 20V4C13 3.44772 13.4477 3 14 3H20ZM19 5H15V19H19V5ZM6 7C8.76142 7 11 9.23858 11 12C11 14.7614 8.76142 17 6 17C3.23858 17 1 14.7614 1 12C1 9.23858 3.23858 7 6 7ZM7 9H5V10.999L3 11V13L5 12.999V15H7V12.999L9 13V11L7 10.999V9Z"></path></svg>', Hl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M10 3C10.5523 3 11 3.44772 11 4V20C11 20.5523 10.5523 21 10 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H10ZM9 5H5V19H9V5ZM18 7C20.7614 7 23 9.23858 23 12C23 14.7614 20.7614 17 18 17C15.2386 17 13 14.7614 13 12C13 9.23858 15.2386 7 18 7ZM19 9H17V10.999L15 11V13L17 12.999V15H19V12.999L21 13V11L19 10.999V9Z"></path></svg>', kl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 13C20.5523 13 21 13.4477 21 14V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V14C3 13.4477 3.44772 13 4 13H20ZM19 15H5V19H19V15ZM12 1C14.7614 1 17 3.23858 17 6C17 8.76142 14.7614 11 12 11C9.23858 11 7 8.76142 7 6C7 3.23858 9.23858 1 12 1ZM13 3H11V4.999L9 5V7L11 6.999V9H13V6.999L15 7V5L13 4.999V3Z"></path></svg>', Ml = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 13C14.7614 13 17 15.2386 17 18C17 20.7614 14.7614 23 12 23C9.23858 23 7 20.7614 7 18C7 15.2386 9.23858 13 12 13ZM13 15H11V16.999L9 17V19L11 18.999V21H13V18.999L15 19V17L13 16.999V15ZM20 3C20.5523 3 21 3.44772 21 4V10C21 10.5523 20.5523 11 20 11H4C3.44772 11 3 10.5523 3 10V4C3 3.44772 3.44772 3 4 3H20ZM5 5V9H19V5H5Z"></path></svg>', Sl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="240" height="240" fill="currentColor"><path d="M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V10.999H7V9L10 12L7 15V13H5V19H11V17H13V19H19V13H17V15L14 12L17 9V10.999H19V5H13V7H11V5ZM13 13V15H11V13H13ZM13 9V11H11V9H13Z"></path></svg>';
|
|
4124
|
+
var Vl = /* @__PURE__ */ ie('<div class="table-bubble-menu svelte-v7vul0"><div class="table-toolbar svelte-v7vul0"><div class="toolbar-button-group svelte-v7vul0"><button class="toggle-header-button svelte-v7vul0">Toggle Header</button> <button class="svelte-v7vul0"><!></button> <button class="svelte-v7vul0"><!></button></div> <div class="toolbar-button-group svelte-v7vul0"><button class="svelte-v7vul0"><!></button> <button class="svelte-v7vul0"><!></button> <button class="svelte-v7vul0"><!></button></div> <div class="toolbar-button-group svelte-v7vul0"><button class="svelte-v7vul0"><!></button> <button class="svelte-v7vul0"><!></button> <button class="svelte-v7vul0"><!></button></div></div></div>');
|
|
4125
|
+
const Rl = {
|
|
4126
4126
|
hash: "svelte-v7vul0",
|
|
4127
4127
|
code: `.table-bubble-menu.svelte-v7vul0 {background-color:var(--tiptob-bg-button, #ffffff);border:1px solid var(--tiptob-bg-button, #eeeeee);border-radius:0.5rem;box-shadow:0 0 2px 0 rgba(34, 47, 62, 0.2),
|
|
4128
4128
|
0 0.25rem 0.5rem 0 rgba(34, 47, 62, 0.15);min-width:max-content;overflow:hidden;& .table-toolbar:where(.svelte-v7vul0) {display:flex;flex-direction:row;align-items:center;padding:0.25rem 0;& .toolbar-button-group:where(.svelte-v7vul0) {display:flex;gap:0.125rem;padding:0 0.5rem;align-items:center;& button:where(.svelte-v7vul0) {cursor:pointer;margin:0.5rem 0;height:1.75rem;border:none;border-radius:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);color:var(--tiptob-bg-icon, #333333);&:hover {background-color:var(--tiptob-bg-button-hover, #e2e2e2);}}}}}`
|
|
4129
4129
|
};
|
|
4130
|
-
function
|
|
4131
|
-
W(t, !0),
|
|
4132
|
-
let n =
|
|
4130
|
+
function Ol(e, t) {
|
|
4131
|
+
W(t, !0), Se(e, Rl);
|
|
4132
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4133
4133
|
const o = {
|
|
4134
4134
|
de: {
|
|
4135
4135
|
toggleHeader: "Kopfzeile umschalten",
|
|
4136
|
+
mergeCells: "Zellen zusammenführen",
|
|
4136
4137
|
deleteTable: "Tabelle löschen",
|
|
4137
4138
|
addRowBefore: "Zeile oben einfügen",
|
|
4138
4139
|
addRowAfter: "Zeile unten einfügen",
|
|
@@ -4143,6 +4144,7 @@ function Rl(e, t) {
|
|
|
4143
4144
|
},
|
|
4144
4145
|
en: {
|
|
4145
4146
|
toggleHeader: "Toggle Header",
|
|
4147
|
+
mergeCells: "Merge Cells",
|
|
4146
4148
|
deleteTable: "Delete Table",
|
|
4147
4149
|
addRowBefore: "Add Row Before",
|
|
4148
4150
|
addRowAfter: "Add Row After",
|
|
@@ -4157,76 +4159,84 @@ function Rl(e, t) {
|
|
|
4157
4159
|
return n();
|
|
4158
4160
|
},
|
|
4159
4161
|
set editor(c) {
|
|
4160
|
-
n(c),
|
|
4162
|
+
n(c), y();
|
|
4161
4163
|
},
|
|
4162
4164
|
get language() {
|
|
4163
4165
|
return r();
|
|
4164
4166
|
},
|
|
4165
4167
|
set language(c = "en") {
|
|
4166
|
-
r(c),
|
|
4168
|
+
r(c), y();
|
|
4167
4169
|
}
|
|
4168
4170
|
}, s = Q(), a = G(s);
|
|
4169
4171
|
{
|
|
4170
4172
|
var u = (c) => {
|
|
4171
|
-
var l =
|
|
4173
|
+
var l = Vl(), p = P(l), v = P(p), g = P(v);
|
|
4172
4174
|
g.__click = () => n().commands.toggleHeaderCell();
|
|
4173
|
-
var d =
|
|
4175
|
+
var d = ee(g, 2);
|
|
4174
4176
|
d.__click = () => n().commands.deleteTable();
|
|
4175
4177
|
var m = P(d);
|
|
4176
|
-
|
|
4178
|
+
se(m, {
|
|
4177
4179
|
get content() {
|
|
4178
4180
|
return Tl;
|
|
4179
4181
|
}
|
|
4180
|
-
}),
|
|
4181
|
-
var
|
|
4182
|
-
|
|
4183
|
-
var
|
|
4184
|
-
|
|
4182
|
+
}), O(d);
|
|
4183
|
+
var h = ee(d, 2);
|
|
4184
|
+
h.__click = () => n().commands.mergeCells();
|
|
4185
|
+
var b = P(h);
|
|
4186
|
+
se(b, {
|
|
4185
4187
|
get content() {
|
|
4186
|
-
return
|
|
4188
|
+
return Sl;
|
|
4187
4189
|
}
|
|
4188
|
-
}),
|
|
4189
|
-
var
|
|
4190
|
-
w.__click = () => n().commands.
|
|
4190
|
+
}), O(h), O(v);
|
|
4191
|
+
var E = ee(v, 2), w = P(E);
|
|
4192
|
+
w.__click = () => n().commands.addRowBefore();
|
|
4191
4193
|
var x = P(w);
|
|
4192
|
-
|
|
4194
|
+
se(x, {
|
|
4195
|
+
get content() {
|
|
4196
|
+
return kl;
|
|
4197
|
+
}
|
|
4198
|
+
}), O(w);
|
|
4199
|
+
var A = ee(w, 2);
|
|
4200
|
+
A.__click = () => n().commands.addRowAfter();
|
|
4201
|
+
var C = P(A);
|
|
4202
|
+
se(C, {
|
|
4193
4203
|
get content() {
|
|
4194
4204
|
return Ml;
|
|
4195
4205
|
}
|
|
4196
|
-
}),
|
|
4197
|
-
var
|
|
4198
|
-
|
|
4199
|
-
var
|
|
4200
|
-
|
|
4206
|
+
}), O(A);
|
|
4207
|
+
var H = ee(A, 2);
|
|
4208
|
+
H.__click = () => n().commands.deleteRow();
|
|
4209
|
+
var I = P(H);
|
|
4210
|
+
se(I, {
|
|
4201
4211
|
get content() {
|
|
4202
4212
|
return Al;
|
|
4203
4213
|
}
|
|
4204
|
-
}),
|
|
4205
|
-
var
|
|
4206
|
-
|
|
4207
|
-
var
|
|
4208
|
-
|
|
4214
|
+
}), O(H), O(E);
|
|
4215
|
+
var B = ee(E, 2), z = P(B);
|
|
4216
|
+
z.__click = () => n().commands.addColumnBefore();
|
|
4217
|
+
var Z = P(z);
|
|
4218
|
+
se(Z, {
|
|
4209
4219
|
get content() {
|
|
4210
4220
|
return Ll;
|
|
4211
4221
|
}
|
|
4212
|
-
}),
|
|
4213
|
-
var
|
|
4214
|
-
|
|
4215
|
-
var
|
|
4216
|
-
|
|
4222
|
+
}), O(z);
|
|
4223
|
+
var U = ee(z, 2);
|
|
4224
|
+
U.__click = () => n().commands.addColumnAfter();
|
|
4225
|
+
var ae = P(U);
|
|
4226
|
+
se(ae, {
|
|
4217
4227
|
get content() {
|
|
4218
4228
|
return Hl;
|
|
4219
4229
|
}
|
|
4220
|
-
}),
|
|
4221
|
-
var
|
|
4222
|
-
|
|
4223
|
-
var
|
|
4224
|
-
|
|
4230
|
+
}), O(U);
|
|
4231
|
+
var fe = ee(U, 2);
|
|
4232
|
+
fe.__click = () => n().commands.deleteColumn();
|
|
4233
|
+
var qe = P(fe);
|
|
4234
|
+
se(qe, {
|
|
4225
4235
|
get content() {
|
|
4226
4236
|
return xl;
|
|
4227
4237
|
}
|
|
4228
|
-
}),
|
|
4229
|
-
|
|
4238
|
+
}), O(fe), O(B), O(p), O(l), Me(() => {
|
|
4239
|
+
ne(g, "title", o[r()].toggleHeader), ne(d, "title", o[r()].deleteTable), ne(h, "title", o[r()].mergeCells), ne(w, "title", o[r()].addRowBefore), ne(A, "title", o[r()].addRowAfter), ne(H, "title", o[r()].deleteRow), ne(z, "title", o[r()].addColumnBefore), ne(U, "title", o[r()].addColumnAfter), ne(fe, "title", o[r()].deleteColumn);
|
|
4230
4240
|
}), V(c, l);
|
|
4231
4241
|
};
|
|
4232
4242
|
X(a, (c) => {
|
|
@@ -4235,37 +4245,37 @@ function Rl(e, t) {
|
|
|
4235
4245
|
}
|
|
4236
4246
|
return V(e, s), Y(i);
|
|
4237
4247
|
}
|
|
4238
|
-
|
|
4239
|
-
customElements.define("tiptob-table-bubble-menu", q(
|
|
4240
|
-
const
|
|
4241
|
-
function
|
|
4248
|
+
ht(["click"]);
|
|
4249
|
+
customElements.define("tiptob-table-bubble-menu", q(Ol, { editor: {}, language: {} }, [], [], !0));
|
|
4250
|
+
const Il = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z"></path></svg>';
|
|
4251
|
+
function Dl(e, t) {
|
|
4242
4252
|
W(t, !0);
|
|
4243
|
-
let n =
|
|
4253
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4244
4254
|
const o = { de: "Aufzählung", en: "Bulleted List" }, i = () => n().chain().focus().toggleBulletList().run();
|
|
4245
4255
|
var s = {
|
|
4246
4256
|
get editor() {
|
|
4247
4257
|
return n();
|
|
4248
4258
|
},
|
|
4249
4259
|
set editor(l) {
|
|
4250
|
-
n(l),
|
|
4260
|
+
n(l), y();
|
|
4251
4261
|
},
|
|
4252
4262
|
get language() {
|
|
4253
4263
|
return r();
|
|
4254
4264
|
},
|
|
4255
4265
|
set language(l = "en") {
|
|
4256
|
-
r(l),
|
|
4266
|
+
r(l), y();
|
|
4257
4267
|
}
|
|
4258
4268
|
}, a = Q(), u = G(a);
|
|
4259
4269
|
{
|
|
4260
4270
|
var c = (l) => {
|
|
4261
|
-
|
|
4271
|
+
ge(l, {
|
|
4262
4272
|
get editor() {
|
|
4263
4273
|
return n();
|
|
4264
4274
|
},
|
|
4265
4275
|
action: i,
|
|
4266
4276
|
key: "bulletList",
|
|
4267
4277
|
get icon() {
|
|
4268
|
-
return
|
|
4278
|
+
return Il;
|
|
4269
4279
|
},
|
|
4270
4280
|
get tooltip() {
|
|
4271
4281
|
return o[r()];
|
|
@@ -4278,16 +4288,16 @@ function Il(e, t) {
|
|
|
4278
4288
|
}
|
|
4279
4289
|
return V(e, a), Y(s);
|
|
4280
4290
|
}
|
|
4281
|
-
customElements.define("tiptob-bullet-list-button", q(
|
|
4282
|
-
const
|
|
4283
|
-
var
|
|
4284
|
-
const
|
|
4291
|
+
customElements.define("tiptob-bullet-list-button", q(Dl, { editor: {}, language: {} }, [], [], !0));
|
|
4292
|
+
const Nl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z"></path></svg>';
|
|
4293
|
+
var $l = /* @__PURE__ */ ie('<button class="svelte-1r88q31"></button>'), Pl = /* @__PURE__ */ ie('<div class="color-picker svelte-1r88q31"><button class="clear svelte-1r88q31"><!></button> <!></div>');
|
|
4294
|
+
const Bl = {
|
|
4285
4295
|
hash: "svelte-1r88q31",
|
|
4286
4296
|
code: ".color-picker.svelte-1r88q31 {display:flex;flex-flow:row wrap;gap:0.25rem;width:5rem;background-color:var(--tiptob-bg-button, #ffffff);padding:0.25rem;button:where(.svelte-1r88q31) {border:none;border-radius:0.25rem;}.clear:where(.svelte-1r88q31) {width:100%;text-align:center;padding:0.5rem;background-color:var(--tiptob-bg-button, #ffffff);color:#333333;align-items:center;justify-content:center;display:flex;cursor:pointer;&:hover {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}svg {width:1.125rem;height:1.125rem;}}button:where(.svelte-1r88q31):not(.clear) {display:flex;width:1.5rem;height:1.5rem;cursor:pointer;&:hover {border:2px solid #2977ff;}}}"
|
|
4287
4297
|
};
|
|
4288
|
-
function
|
|
4289
|
-
W(t, !0),
|
|
4290
|
-
let n =
|
|
4298
|
+
function Fl(e, t) {
|
|
4299
|
+
W(t, !0), Se(e, Bl);
|
|
4300
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = /* @__PURE__ */ J(!1);
|
|
4291
4301
|
const i = { de: "Markieren", en: "Font Highlight" }, s = [
|
|
4292
4302
|
"#E91313",
|
|
4293
4303
|
"#118800",
|
|
@@ -4307,24 +4317,24 @@ function Bl(e, t) {
|
|
|
4307
4317
|
return n();
|
|
4308
4318
|
},
|
|
4309
4319
|
set editor(g) {
|
|
4310
|
-
n(g),
|
|
4320
|
+
n(g), y();
|
|
4311
4321
|
},
|
|
4312
4322
|
get language() {
|
|
4313
4323
|
return r();
|
|
4314
4324
|
},
|
|
4315
4325
|
set language(g = "en") {
|
|
4316
|
-
r(g),
|
|
4326
|
+
r(g), y();
|
|
4317
4327
|
}
|
|
4318
|
-
}, l = Q(),
|
|
4328
|
+
}, l = Q(), p = G(l);
|
|
4319
4329
|
{
|
|
4320
4330
|
var v = (g) => {
|
|
4321
|
-
|
|
4331
|
+
at(g, {
|
|
4322
4332
|
get editor() {
|
|
4323
4333
|
return n();
|
|
4324
4334
|
},
|
|
4325
4335
|
key: "highlight",
|
|
4326
4336
|
get icon() {
|
|
4327
|
-
return
|
|
4337
|
+
return Nl;
|
|
4328
4338
|
},
|
|
4329
4339
|
get tooltip() {
|
|
4330
4340
|
return i[r()];
|
|
@@ -4336,85 +4346,85 @@ function Bl(e, t) {
|
|
|
4336
4346
|
S(o, d, !0);
|
|
4337
4347
|
},
|
|
4338
4348
|
children: (d, m) => {
|
|
4339
|
-
var
|
|
4349
|
+
var h = Pl(), b = P(h);
|
|
4340
4350
|
b.__click = a;
|
|
4341
|
-
var
|
|
4342
|
-
|
|
4351
|
+
var E = P(b);
|
|
4352
|
+
se(E, {
|
|
4343
4353
|
get content() {
|
|
4344
4354
|
return zi;
|
|
4345
4355
|
}
|
|
4346
|
-
}),
|
|
4347
|
-
var w =
|
|
4348
|
-
Tt(w, 17, () => s, (x) => s.indexOf(x), (x,
|
|
4349
|
-
var C =
|
|
4350
|
-
C.__click = () => u(M(
|
|
4351
|
-
Ii(C, `background-color: ${M(
|
|
4356
|
+
}), O(b);
|
|
4357
|
+
var w = ee(b, 2);
|
|
4358
|
+
Tt(w, 17, () => s, (x) => s.indexOf(x), (x, A) => {
|
|
4359
|
+
var C = $l();
|
|
4360
|
+
C.__click = () => u(M(A)), Me(() => {
|
|
4361
|
+
Ii(C, `background-color: ${M(A) ?? ""};`), ne(C, "aria-label", M(A));
|
|
4352
4362
|
}), V(x, C);
|
|
4353
|
-
}),
|
|
4363
|
+
}), O(h), V(d, h);
|
|
4354
4364
|
},
|
|
4355
4365
|
$$slots: { default: !0 }
|
|
4356
4366
|
});
|
|
4357
4367
|
};
|
|
4358
|
-
X(
|
|
4368
|
+
X(p, (g) => {
|
|
4359
4369
|
n() && g(v);
|
|
4360
4370
|
});
|
|
4361
4371
|
}
|
|
4362
4372
|
return V(e, l), Y(c);
|
|
4363
4373
|
}
|
|
4364
|
-
|
|
4365
|
-
customElements.define("tiptob-font-highlight-button", q(
|
|
4374
|
+
ht(["click"]);
|
|
4375
|
+
customElements.define("tiptob-font-highlight-button", q(Fl, { editor: {}, language: {} }, [], [], !0));
|
|
4366
4376
|
const $r = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"></path></svg>', Io = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M21 15V18H24V20H21V23H19V20H16V18H19V15H21ZM21.0082 3C21.556 3 22 3.44495 22 3.9934V13H20V5H4V18.999L14 9L17 12V14.829L14 11.8284L6.827 19H14V21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082ZM8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7Z"></path></svg>', Pr = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"></path></svg>';
|
|
4367
|
-
var
|
|
4368
|
-
const
|
|
4377
|
+
var Zl = /* @__PURE__ */ ie('<!> <input type="file" accept="image/*" class="svelte-1ov1cb6"/>', 1), Ul = /* @__PURE__ */ ie('<div class="tiptob-link-input-wrapper svelte-1ov1cb6"><input id="tiptob-link-input" type="url" placeholder="Paste a Image Url..." autocomplete="off" class="tiptob-link-input svelte-1ov1cb6"/> <button type="button" class="confirm svelte-1ov1cb6"><!></button> <button class="close svelte-1ov1cb6" type="button"><!></button></div>');
|
|
4378
|
+
const zl = {
|
|
4369
4379
|
hash: "svelte-1ov1cb6",
|
|
4370
4380
|
code: `
|
|
4371
4381
|
/* --- Image URL Modal Styles --- */.tiptob-link-input-wrapper.svelte-1ov1cb6 {display:flex;flex-direction:row;gap:0.25rem;padding:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);}button.svelte-1ov1cb6 {display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0.25rem;border:none;border-radius:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);flex:40%;&:hover:enabled {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}&:disabled {opacity:0.5;cursor:default;&.confirm {svg {fill:var(--tiptob-bg-icon, #333333);}}}&.confirm {svg {fill:var(--icon-green, #28a745);}}&.close {svg {fill:var(--icon-red, #dc3545);}}}.tiptob-link-input.svelte-1ov1cb6::placeholder {color:var(--table-resubmission-line, rgba(0, 0, 0, 0.4));}.tiptob-link-input.svelte-1ov1cb6 {display:flex;padding:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);color:var(--tiptob-bg-icon, #333333);outline:none;border:0;}
|
|
4372
4382
|
/* --- File Input Styles --- */input[type="file"].svelte-1ov1cb6 {display:none;}`
|
|
4373
4383
|
};
|
|
4374
|
-
function
|
|
4375
|
-
W(t, !0),
|
|
4376
|
-
let n =
|
|
4384
|
+
function jl(e, t) {
|
|
4385
|
+
W(t, !0), Se(e, zl);
|
|
4386
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = L(t, "imageUpload", 7);
|
|
4377
4387
|
const i = { de: "Bild einfügen", en: "Insert Image" };
|
|
4378
4388
|
let s = /* @__PURE__ */ J(!1), a = /* @__PURE__ */ J(""), u;
|
|
4379
|
-
function c(
|
|
4380
|
-
const b =
|
|
4381
|
-
for (const
|
|
4382
|
-
o()(
|
|
4389
|
+
function c(h) {
|
|
4390
|
+
const b = h.target;
|
|
4391
|
+
for (const E of b.files ?? [])
|
|
4392
|
+
o()(E).then((w) => n().chain().focus().setImage({ src: w }).run());
|
|
4383
4393
|
u.value = "";
|
|
4384
4394
|
}
|
|
4385
|
-
function l(
|
|
4386
|
-
|
|
4395
|
+
function l(h) {
|
|
4396
|
+
h.key === "Enter" && (h.preventDefault(), p());
|
|
4387
4397
|
}
|
|
4388
|
-
function
|
|
4398
|
+
function p() {
|
|
4389
4399
|
M(a).trim() && (n().chain().focus().setImage({ src: M(a).trim() }).run(), S(a, ""), S(s, !1));
|
|
4390
4400
|
}
|
|
4391
4401
|
var v = {
|
|
4392
4402
|
get editor() {
|
|
4393
4403
|
return n();
|
|
4394
4404
|
},
|
|
4395
|
-
set editor(
|
|
4396
|
-
n(
|
|
4405
|
+
set editor(h) {
|
|
4406
|
+
n(h), y();
|
|
4397
4407
|
},
|
|
4398
4408
|
get language() {
|
|
4399
4409
|
return r();
|
|
4400
4410
|
},
|
|
4401
|
-
set language(
|
|
4402
|
-
r(
|
|
4411
|
+
set language(h = "en") {
|
|
4412
|
+
r(h), y();
|
|
4403
4413
|
},
|
|
4404
4414
|
get imageUpload() {
|
|
4405
4415
|
return o();
|
|
4406
4416
|
},
|
|
4407
|
-
set imageUpload(
|
|
4408
|
-
o(
|
|
4417
|
+
set imageUpload(h) {
|
|
4418
|
+
o(h), y();
|
|
4409
4419
|
}
|
|
4410
4420
|
}, g = Q(), d = G(g);
|
|
4411
4421
|
{
|
|
4412
|
-
var m = (
|
|
4413
|
-
var b = Q(),
|
|
4422
|
+
var m = (h) => {
|
|
4423
|
+
var b = Q(), E = G(b);
|
|
4414
4424
|
{
|
|
4415
|
-
var w = (
|
|
4416
|
-
var C =
|
|
4417
|
-
|
|
4425
|
+
var w = (A) => {
|
|
4426
|
+
var C = Zl(), H = G(C);
|
|
4427
|
+
ge(H, {
|
|
4418
4428
|
get editor() {
|
|
4419
4429
|
return n();
|
|
4420
4430
|
},
|
|
@@ -4427,10 +4437,10 @@ function zl(e, t) {
|
|
|
4427
4437
|
return i[r()];
|
|
4428
4438
|
}
|
|
4429
4439
|
});
|
|
4430
|
-
var
|
|
4431
|
-
|
|
4432
|
-
}, x = (
|
|
4433
|
-
|
|
4440
|
+
var I = ee(H, 2);
|
|
4441
|
+
I.__change = c, Ha(I, (B) => u = B, () => u), V(A, C);
|
|
4442
|
+
}, x = (A) => {
|
|
4443
|
+
at(A, {
|
|
4434
4444
|
get editor() {
|
|
4435
4445
|
return n();
|
|
4436
4446
|
},
|
|
@@ -4449,75 +4459,75 @@ function zl(e, t) {
|
|
|
4449
4459
|
S(s, C, !0);
|
|
4450
4460
|
},
|
|
4451
4461
|
children: (C, H) => {
|
|
4452
|
-
var
|
|
4462
|
+
var I = Ul(), B = P(I);
|
|
4453
4463
|
Di(B), B.__keydown = l;
|
|
4454
|
-
var z =
|
|
4455
|
-
z.__click =
|
|
4464
|
+
var z = ee(B, 2);
|
|
4465
|
+
z.__click = p;
|
|
4456
4466
|
var Z = P(z);
|
|
4457
|
-
|
|
4467
|
+
se(Z, {
|
|
4458
4468
|
get content() {
|
|
4459
4469
|
return Pr;
|
|
4460
4470
|
}
|
|
4461
|
-
}),
|
|
4462
|
-
var U =
|
|
4471
|
+
}), O(z);
|
|
4472
|
+
var U = ee(z, 2);
|
|
4463
4473
|
U.__click = () => {
|
|
4464
4474
|
S(s, !1), S(a, "");
|
|
4465
4475
|
};
|
|
4466
|
-
var
|
|
4467
|
-
|
|
4476
|
+
var ae = P(U);
|
|
4477
|
+
se(ae, {
|
|
4468
4478
|
get content() {
|
|
4469
4479
|
return $r;
|
|
4470
4480
|
}
|
|
4471
|
-
}),
|
|
4472
|
-
z.disabled = !M(a),
|
|
4473
|
-
}), $i(B, () => M(a), (
|
|
4481
|
+
}), O(U), O(I), Me(() => {
|
|
4482
|
+
z.disabled = !M(a), ne(z, "title", M(a) ? i[r()] : "");
|
|
4483
|
+
}), $i(B, () => M(a), (fe) => S(a, fe)), V(C, I);
|
|
4474
4484
|
},
|
|
4475
4485
|
$$slots: { default: !0 }
|
|
4476
4486
|
});
|
|
4477
4487
|
};
|
|
4478
|
-
X(
|
|
4479
|
-
o() !== void 0 ?
|
|
4488
|
+
X(E, (A) => {
|
|
4489
|
+
o() !== void 0 ? A(w) : A(x, !1);
|
|
4480
4490
|
});
|
|
4481
4491
|
}
|
|
4482
|
-
V(
|
|
4492
|
+
V(h, b);
|
|
4483
4493
|
};
|
|
4484
|
-
X(d, (
|
|
4485
|
-
n() &&
|
|
4494
|
+
X(d, (h) => {
|
|
4495
|
+
n() && h(m);
|
|
4486
4496
|
});
|
|
4487
4497
|
}
|
|
4488
4498
|
return V(e, g), Y(v);
|
|
4489
4499
|
}
|
|
4490
|
-
|
|
4491
|
-
customElements.define("tiptob-image-button", q(
|
|
4492
|
-
const
|
|
4493
|
-
function
|
|
4500
|
+
ht(["change", "keydown", "click"]);
|
|
4501
|
+
customElements.define("tiptob-image-button", q(jl, { editor: {}, language: {}, imageUpload: {} }, [], [], !0));
|
|
4502
|
+
const Gl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 20H7V18H9.92661L12.0425 6H9V4H17V6H14.0734L11.9575 18H15V20Z"></path></svg>';
|
|
4503
|
+
function Wl(e, t) {
|
|
4494
4504
|
W(t, !0);
|
|
4495
|
-
let n =
|
|
4505
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4496
4506
|
const o = { de: "Kursiv", en: "Italic" }, i = () => n().chain().focus().toggleItalic().run();
|
|
4497
4507
|
var s = {
|
|
4498
4508
|
get editor() {
|
|
4499
4509
|
return n();
|
|
4500
4510
|
},
|
|
4501
4511
|
set editor(l) {
|
|
4502
|
-
n(l),
|
|
4512
|
+
n(l), y();
|
|
4503
4513
|
},
|
|
4504
4514
|
get language() {
|
|
4505
4515
|
return r();
|
|
4506
4516
|
},
|
|
4507
4517
|
set language(l = "en") {
|
|
4508
|
-
r(l),
|
|
4518
|
+
r(l), y();
|
|
4509
4519
|
}
|
|
4510
4520
|
}, a = Q(), u = G(a);
|
|
4511
4521
|
{
|
|
4512
4522
|
var c = (l) => {
|
|
4513
|
-
|
|
4523
|
+
ge(l, {
|
|
4514
4524
|
key: "italic",
|
|
4515
4525
|
get editor() {
|
|
4516
4526
|
return n();
|
|
4517
4527
|
},
|
|
4518
4528
|
action: i,
|
|
4519
4529
|
get icon() {
|
|
4520
|
-
return
|
|
4530
|
+
return Gl;
|
|
4521
4531
|
},
|
|
4522
4532
|
get tooltip() {
|
|
4523
4533
|
return o[r()];
|
|
@@ -4530,36 +4540,36 @@ function Gl(e, t) {
|
|
|
4530
4540
|
}
|
|
4531
4541
|
return V(e, a), Y(s);
|
|
4532
4542
|
}
|
|
4533
|
-
customElements.define("tiptob-italic-button", q(
|
|
4534
|
-
const
|
|
4535
|
-
function
|
|
4543
|
+
customElements.define("tiptob-italic-button", q(Wl, { editor: {}, language: {} }, [], [], !0));
|
|
4544
|
+
const Yl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9 4C10.1046 4 11 4.89543 11 6V12.8271C10.1058 12.1373 8.96602 11.7305 7.6644 11.5136L7.3356 13.4864C8.71622 13.7165 9.59743 14.1528 10.1402 14.7408C10.67 15.3147 11 16.167 11 17.5C11 18.8807 9.88071 20 8.5 20C7.11929 20 6 18.8807 6 17.5V17.1493C6.43007 17.2926 6.87634 17.4099 7.3356 17.4864L7.6644 15.5136C6.92149 15.3898 6.1752 15.1144 5.42909 14.7599C4.58157 14.3573 4 13.499 4 12.5C4 11.6653 4.20761 11.0085 4.55874 10.5257C4.90441 10.0504 5.4419 9.6703 6.24254 9.47014L7 9.28078V6C7 4.89543 7.89543 4 9 4ZM12 3.35418C11.2671 2.52376 10.1947 2 9 2C6.79086 2 5 3.79086 5 6V7.77422C4.14895 8.11644 3.45143 8.64785 2.94126 9.34933C2.29239 10.2415 2 11.3347 2 12.5C2 14.0652 2.79565 15.4367 4 16.2422V17.5C4 19.9853 6.01472 22 8.5 22C9.91363 22 11.175 21.3482 12 20.3287C12.825 21.3482 14.0864 22 15.5 22C17.9853 22 20 19.9853 20 17.5V16.2422C21.2044 15.4367 22 14.0652 22 12.5C22 11.3347 21.7076 10.2415 21.0587 9.34933C20.5486 8.64785 19.8511 8.11644 19 7.77422V6C19 3.79086 17.2091 2 15 2C13.8053 2 12.7329 2.52376 12 3.35418ZM18 17.1493V17.5C18 18.8807 16.8807 20 15.5 20C14.1193 20 13 18.8807 13 17.5C13 16.167 13.33 15.3147 13.8598 14.7408C14.4026 14.1528 15.2838 13.7165 16.6644 13.4864L16.3356 11.5136C15.034 11.7305 13.8942 12.1373 13 12.8271V6C13 4.89543 13.8954 4 15 4C16.1046 4 17 4.89543 17 6V9.28078L17.7575 9.47014C18.5581 9.6703 19.0956 10.0504 19.4413 10.5257C19.7924 11.0085 20 11.6653 20 12.5C20 13.499 19.4184 14.3573 18.5709 14.7599C17.8248 15.1144 17.0785 15.3898 16.3356 15.5136L16.6644 17.4864C17.1237 17.4099 17.5699 17.2926 18 17.1493Z"></path></svg>';
|
|
4545
|
+
function ql(e, t) {
|
|
4536
4546
|
W(t, !0);
|
|
4537
|
-
let n =
|
|
4547
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4538
4548
|
const o = { de: "Wissensmarkierung", en: "Knowledge Mark" }, i = () => n().chain().toggleKnowledgeMark().run();
|
|
4539
4549
|
var s = {
|
|
4540
4550
|
get editor() {
|
|
4541
4551
|
return n();
|
|
4542
4552
|
},
|
|
4543
4553
|
set editor(l) {
|
|
4544
|
-
n(l),
|
|
4554
|
+
n(l), y();
|
|
4545
4555
|
},
|
|
4546
4556
|
get language() {
|
|
4547
4557
|
return r();
|
|
4548
4558
|
},
|
|
4549
4559
|
set language(l = "en") {
|
|
4550
|
-
r(l),
|
|
4560
|
+
r(l), y();
|
|
4551
4561
|
}
|
|
4552
4562
|
}, a = Q(), u = G(a);
|
|
4553
4563
|
{
|
|
4554
4564
|
var c = (l) => {
|
|
4555
|
-
|
|
4565
|
+
ge(l, {
|
|
4556
4566
|
get editor() {
|
|
4557
4567
|
return n();
|
|
4558
4568
|
},
|
|
4559
4569
|
action: i,
|
|
4560
4570
|
key: "knowledge",
|
|
4561
4571
|
get icon() {
|
|
4562
|
-
return
|
|
4572
|
+
return Yl;
|
|
4563
4573
|
},
|
|
4564
4574
|
get tooltip() {
|
|
4565
4575
|
return o[r()];
|
|
@@ -4572,36 +4582,36 @@ function Yl(e, t) {
|
|
|
4572
4582
|
}
|
|
4573
4583
|
return V(e, a), Y(s);
|
|
4574
4584
|
}
|
|
4575
|
-
customElements.define("tiptob-knowledge-button", q(
|
|
4576
|
-
const
|
|
4577
|
-
function
|
|
4585
|
+
customElements.define("tiptob-knowledge-button", q(ql, { editor: {}, language: {} }, [], [], !0));
|
|
4586
|
+
const Kl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8 4H21V6H8V4ZM5 3V6H6V7H3V6H4V4H3V3H5ZM3 14V11.5H5V11H3V10H6V12.5H4V13H6V14H3ZM5 19.5H3V18.5H5V18H3V17H6V21H3V20H5V19.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z"></path></svg>';
|
|
4587
|
+
function Xl(e, t) {
|
|
4578
4588
|
W(t, !0);
|
|
4579
|
-
let n =
|
|
4589
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4580
4590
|
const o = { de: "Nummerierung", en: "Numbered List" }, i = () => n().chain().focus().toggleOrderedList().run();
|
|
4581
4591
|
var s = {
|
|
4582
4592
|
get editor() {
|
|
4583
4593
|
return n();
|
|
4584
4594
|
},
|
|
4585
4595
|
set editor(l) {
|
|
4586
|
-
n(l),
|
|
4596
|
+
n(l), y();
|
|
4587
4597
|
},
|
|
4588
4598
|
get language() {
|
|
4589
4599
|
return r();
|
|
4590
4600
|
},
|
|
4591
4601
|
set language(l = "en") {
|
|
4592
|
-
r(l),
|
|
4602
|
+
r(l), y();
|
|
4593
4603
|
}
|
|
4594
4604
|
}, a = Q(), u = G(a);
|
|
4595
4605
|
{
|
|
4596
4606
|
var c = (l) => {
|
|
4597
|
-
|
|
4607
|
+
ge(l, {
|
|
4598
4608
|
get editor() {
|
|
4599
4609
|
return n();
|
|
4600
4610
|
},
|
|
4601
4611
|
action: i,
|
|
4602
4612
|
key: "orderedList",
|
|
4603
4613
|
get icon() {
|
|
4604
|
-
return
|
|
4614
|
+
return Kl;
|
|
4605
4615
|
},
|
|
4606
4616
|
get tooltip() {
|
|
4607
4617
|
return o[r()];
|
|
@@ -4614,16 +4624,16 @@ function Kl(e, t) {
|
|
|
4614
4624
|
}
|
|
4615
4625
|
return V(e, a), Y(s);
|
|
4616
4626
|
}
|
|
4617
|
-
customElements.define("tiptob-ordered-list-button", q(
|
|
4618
|
-
const
|
|
4619
|
-
var
|
|
4620
|
-
const
|
|
4627
|
+
customElements.define("tiptob-ordered-list-button", q(Xl, { editor: {}, language: {} }, [], [], !0));
|
|
4628
|
+
const Jl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4H21V6H3V4ZM7 19H21V21H7V19ZM3 14H21V16H3V14ZM7 9H21V11H7V9Z"></path></svg>', Do = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z"></path></svg>', Ql = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z"></path></svg>', eu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z"></path></svg>';
|
|
4629
|
+
var tu = /* @__PURE__ */ ie('<div class="text-align-dropdown svelte-mxs45l"></div>');
|
|
4630
|
+
const nu = {
|
|
4621
4631
|
hash: "svelte-mxs45l",
|
|
4622
4632
|
code: ".text-align-dropdown.svelte-mxs45l {display:flex;flex-flow:column;padding:0.25rem;background-color:var(--tiptob-bg-button, #fff);}"
|
|
4623
4633
|
};
|
|
4624
|
-
function
|
|
4625
|
-
W(t, !0),
|
|
4626
|
-
let n =
|
|
4634
|
+
function ru(e, t) {
|
|
4635
|
+
W(t, !0), Se(e, nu);
|
|
4636
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = /* @__PURE__ */ J(!1);
|
|
4627
4637
|
const i = {
|
|
4628
4638
|
de: {
|
|
4629
4639
|
main: "Textausrichtung",
|
|
@@ -4649,21 +4659,21 @@ function nu(e, t) {
|
|
|
4649
4659
|
},
|
|
4650
4660
|
{
|
|
4651
4661
|
name: "center",
|
|
4652
|
-
icon:
|
|
4662
|
+
icon: Ql,
|
|
4653
4663
|
action: () => {
|
|
4654
4664
|
n().chain().focus().setTextAlign("center").run(), S(o, !1);
|
|
4655
4665
|
}
|
|
4656
4666
|
},
|
|
4657
4667
|
{
|
|
4658
4668
|
name: "right",
|
|
4659
|
-
icon:
|
|
4669
|
+
icon: Jl,
|
|
4660
4670
|
action: () => {
|
|
4661
4671
|
n().chain().focus().setTextAlign("right").run(), S(o, !1);
|
|
4662
4672
|
}
|
|
4663
4673
|
},
|
|
4664
4674
|
{
|
|
4665
4675
|
name: "justify",
|
|
4666
|
-
icon:
|
|
4676
|
+
icon: eu,
|
|
4667
4677
|
action: () => {
|
|
4668
4678
|
n().chain().focus().setTextAlign("justify").run(), S(o, !1);
|
|
4669
4679
|
}
|
|
@@ -4673,19 +4683,19 @@ function nu(e, t) {
|
|
|
4673
4683
|
get editor() {
|
|
4674
4684
|
return n();
|
|
4675
4685
|
},
|
|
4676
|
-
set editor(
|
|
4677
|
-
n(
|
|
4686
|
+
set editor(p) {
|
|
4687
|
+
n(p), y();
|
|
4678
4688
|
},
|
|
4679
4689
|
get language() {
|
|
4680
4690
|
return r();
|
|
4681
4691
|
},
|
|
4682
|
-
set language(
|
|
4683
|
-
r(
|
|
4692
|
+
set language(p = "en") {
|
|
4693
|
+
r(p), y();
|
|
4684
4694
|
}
|
|
4685
4695
|
}, u = Q(), c = G(u);
|
|
4686
4696
|
{
|
|
4687
|
-
var l = (
|
|
4688
|
-
|
|
4697
|
+
var l = (p) => {
|
|
4698
|
+
at(p, {
|
|
4689
4699
|
get editor() {
|
|
4690
4700
|
return n();
|
|
4691
4701
|
},
|
|
@@ -4703,67 +4713,67 @@ function nu(e, t) {
|
|
|
4703
4713
|
S(o, v, !0);
|
|
4704
4714
|
},
|
|
4705
4715
|
children: (v, g) => {
|
|
4706
|
-
var d =
|
|
4707
|
-
Tt(d, 21, () => s, (m) => m.name, (m,
|
|
4716
|
+
var d = tu();
|
|
4717
|
+
Tt(d, 21, () => s, (m) => m.name, (m, h) => {
|
|
4708
4718
|
{
|
|
4709
|
-
let b = /* @__PURE__ */ Qo(() => ({ attributes: { textAlign: M(
|
|
4710
|
-
|
|
4719
|
+
let b = /* @__PURE__ */ Qo(() => ({ attributes: { textAlign: M(h).name } }));
|
|
4720
|
+
ge(m, {
|
|
4711
4721
|
get editor() {
|
|
4712
4722
|
return n();
|
|
4713
4723
|
},
|
|
4714
4724
|
get key() {
|
|
4715
4725
|
return M(b);
|
|
4716
4726
|
},
|
|
4717
|
-
action: () => M(
|
|
4727
|
+
action: () => M(h).action(),
|
|
4718
4728
|
get icon() {
|
|
4719
|
-
return M(
|
|
4729
|
+
return M(h).icon;
|
|
4720
4730
|
},
|
|
4721
4731
|
get tooltip() {
|
|
4722
|
-
return i[r()][M(
|
|
4732
|
+
return i[r()][M(h).name];
|
|
4723
4733
|
}
|
|
4724
4734
|
});
|
|
4725
4735
|
}
|
|
4726
|
-
}),
|
|
4736
|
+
}), O(d), V(v, d);
|
|
4727
4737
|
},
|
|
4728
4738
|
$$slots: { default: !0 }
|
|
4729
4739
|
});
|
|
4730
4740
|
};
|
|
4731
|
-
X(c, (
|
|
4732
|
-
n() &&
|
|
4741
|
+
X(c, (p) => {
|
|
4742
|
+
n() && p(l);
|
|
4733
4743
|
});
|
|
4734
4744
|
}
|
|
4735
4745
|
return V(e, u), Y(a);
|
|
4736
4746
|
}
|
|
4737
|
-
customElements.define("tiptob-text-align-button", q(
|
|
4738
|
-
const
|
|
4739
|
-
function
|
|
4747
|
+
customElements.define("tiptob-text-align-button", q(ru, { editor: {}, language: {} }, [], [], !0));
|
|
4748
|
+
const ou = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.1716 6.99955H11C7.68629 6.99955 5 9.68584 5 12.9996C5 16.3133 7.68629 18.9996 11 18.9996H20V20.9996H11C6.58172 20.9996 3 17.4178 3 12.9996C3 8.58127 6.58172 4.99955 11 4.99955H18.1716L15.636 2.46402L17.0503 1.0498L22 5.99955L17.0503 10.9493L15.636 9.53509L18.1716 6.99955Z"></path></svg>';
|
|
4749
|
+
function iu(e, t) {
|
|
4740
4750
|
W(t, !0);
|
|
4741
|
-
let n =
|
|
4751
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4742
4752
|
const o = { de: "Wiederherstellen", en: "Redo" }, i = () => n().chain().focus().redo().run();
|
|
4743
4753
|
var s = {
|
|
4744
4754
|
get editor() {
|
|
4745
4755
|
return n();
|
|
4746
4756
|
},
|
|
4747
4757
|
set editor(l) {
|
|
4748
|
-
n(l),
|
|
4758
|
+
n(l), y();
|
|
4749
4759
|
},
|
|
4750
4760
|
get language() {
|
|
4751
4761
|
return r();
|
|
4752
4762
|
},
|
|
4753
4763
|
set language(l = "en") {
|
|
4754
|
-
r(l),
|
|
4764
|
+
r(l), y();
|
|
4755
4765
|
}
|
|
4756
4766
|
}, a = Q(), u = G(a);
|
|
4757
4767
|
{
|
|
4758
4768
|
var c = (l) => {
|
|
4759
|
-
|
|
4769
|
+
ge(l, {
|
|
4760
4770
|
get editor() {
|
|
4761
4771
|
return n();
|
|
4762
4772
|
},
|
|
4763
4773
|
action: i,
|
|
4764
4774
|
key: "redo",
|
|
4765
4775
|
get icon() {
|
|
4766
|
-
return
|
|
4776
|
+
return ou;
|
|
4767
4777
|
},
|
|
4768
4778
|
get tooltip() {
|
|
4769
4779
|
return o[r()];
|
|
@@ -4776,36 +4786,36 @@ function ou(e, t) {
|
|
|
4776
4786
|
}
|
|
4777
4787
|
return V(e, a), Y(s);
|
|
4778
4788
|
}
|
|
4779
|
-
customElements.define("tiptob-redo-button", q(
|
|
4780
|
-
const
|
|
4781
|
-
function
|
|
4789
|
+
customElements.define("tiptob-redo-button", q(iu, { editor: {}, language: {} }, [], [], !0));
|
|
4790
|
+
const su = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.6512 14.0654L11.6047 20H9.57389L10.9247 12.339L3.51465 4.92892L4.92886 3.51471L20.4852 19.0711L19.071 20.4853L12.6512 14.0654ZM11.7727 7.53009L12.0425 5.99999H10.2426L8.24257 3.99999H19.9999V5.99999H14.0733L13.4991 9.25652L11.7727 7.53009Z"></path></svg>';
|
|
4791
|
+
function au(e, t) {
|
|
4782
4792
|
W(t, !0);
|
|
4783
|
-
let n =
|
|
4793
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4784
4794
|
const o = { de: "Formatierung entfernen", en: "Remove Format" }, i = () => n().chain().focus().unsetAllMarks().run();
|
|
4785
4795
|
var s = {
|
|
4786
4796
|
get editor() {
|
|
4787
4797
|
return n();
|
|
4788
4798
|
},
|
|
4789
4799
|
set editor(l) {
|
|
4790
|
-
n(l),
|
|
4800
|
+
n(l), y();
|
|
4791
4801
|
},
|
|
4792
4802
|
get language() {
|
|
4793
4803
|
return r();
|
|
4794
4804
|
},
|
|
4795
4805
|
set language(l = "en") {
|
|
4796
|
-
r(l),
|
|
4806
|
+
r(l), y();
|
|
4797
4807
|
}
|
|
4798
4808
|
}, a = Q(), u = G(a);
|
|
4799
4809
|
{
|
|
4800
4810
|
var c = (l) => {
|
|
4801
|
-
|
|
4811
|
+
ge(l, {
|
|
4802
4812
|
get editor() {
|
|
4803
4813
|
return n();
|
|
4804
4814
|
},
|
|
4805
4815
|
action: i,
|
|
4806
4816
|
key: "remove-format",
|
|
4807
4817
|
get icon() {
|
|
4808
|
-
return
|
|
4818
|
+
return su;
|
|
4809
4819
|
},
|
|
4810
4820
|
get tooltip() {
|
|
4811
4821
|
return o[r()];
|
|
@@ -4818,29 +4828,29 @@ function su(e, t) {
|
|
|
4818
4828
|
}
|
|
4819
4829
|
return V(e, a), Y(s);
|
|
4820
4830
|
}
|
|
4821
|
-
customElements.define("tiptob-remove-format-button", q(
|
|
4831
|
+
customElements.define("tiptob-remove-format-button", q(au, { editor: {}, language: {} }, [], [], !0));
|
|
4822
4832
|
const Br = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17.1538 14C17.3846 14.5161 17.5 15.0893 17.5 15.7196C17.5 17.0625 16.9762 18.1116 15.9286 18.867C14.8809 19.6223 13.4335 20 11.5862 20C9.94674 20 8.32335 19.6185 6.71592 18.8555V16.6009C8.23538 17.4783 9.7908 17.917 11.3822 17.917C13.9333 17.917 15.2128 17.1846 15.2208 15.7196C15.2208 15.0939 15.0049 14.5598 14.5731 14.1173C14.5339 14.0772 14.4939 14.0381 14.4531 14H3V12H21V14H17.1538ZM13.076 11H7.62908C7.4566 10.8433 7.29616 10.6692 7.14776 10.4778C6.71592 9.92084 6.5 9.24559 6.5 8.45207C6.5 7.21602 6.96583 6.165 7.89749 5.299C8.82916 4.43299 10.2706 4 12.2219 4C13.6934 4 15.1009 4.32808 16.4444 4.98426V7.13591C15.2448 6.44921 13.9293 6.10587 12.4978 6.10587C10.0187 6.10587 8.77917 6.88793 8.77917 8.45207C8.77917 8.87172 8.99709 9.23796 9.43293 9.55079C9.86878 9.86362 10.4066 10.1135 11.0463 10.3004C11.6665 10.4816 12.3431 10.7148 13.076 11H13.076Z"></path></svg>';
|
|
4823
|
-
function
|
|
4833
|
+
function lu(e, t) {
|
|
4824
4834
|
W(t, !0);
|
|
4825
|
-
let n =
|
|
4835
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4826
4836
|
const o = { de: "Durchstreichen", en: "Strikethrough" }, i = () => n().chain().focus().toggleStrike().run();
|
|
4827
4837
|
var s = {
|
|
4828
4838
|
get editor() {
|
|
4829
4839
|
return n();
|
|
4830
4840
|
},
|
|
4831
4841
|
set editor(l) {
|
|
4832
|
-
n(l),
|
|
4842
|
+
n(l), y();
|
|
4833
4843
|
},
|
|
4834
4844
|
get language() {
|
|
4835
4845
|
return r();
|
|
4836
4846
|
},
|
|
4837
4847
|
set language(l = "en") {
|
|
4838
|
-
r(l),
|
|
4848
|
+
r(l), y();
|
|
4839
4849
|
}
|
|
4840
4850
|
}, a = Q(), u = G(a);
|
|
4841
4851
|
{
|
|
4842
4852
|
var c = (l) => {
|
|
4843
|
-
|
|
4853
|
+
ge(l, {
|
|
4844
4854
|
get editor() {
|
|
4845
4855
|
return n();
|
|
4846
4856
|
},
|
|
@@ -4860,36 +4870,36 @@ function au(e, t) {
|
|
|
4860
4870
|
}
|
|
4861
4871
|
return V(e, a), Y(s);
|
|
4862
4872
|
}
|
|
4863
|
-
customElements.define("tiptob-strike-button", q(
|
|
4864
|
-
const
|
|
4865
|
-
function
|
|
4873
|
+
customElements.define("tiptob-strike-button", q(lu, { editor: {}, language: {} }, [], [], !0));
|
|
4874
|
+
const uu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8 3V12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12V3H18V12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12V3H8ZM4 20H20V22H4V20Z"></path></svg>';
|
|
4875
|
+
function fu(e, t) {
|
|
4866
4876
|
W(t, !0);
|
|
4867
|
-
let n =
|
|
4877
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4868
4878
|
const o = { de: "Unterstreichen", en: "Underline" }, i = () => n().chain().focus().toggleUnderline().run();
|
|
4869
4879
|
var s = {
|
|
4870
4880
|
get editor() {
|
|
4871
4881
|
return n();
|
|
4872
4882
|
},
|
|
4873
4883
|
set editor(l) {
|
|
4874
|
-
n(l),
|
|
4884
|
+
n(l), y();
|
|
4875
4885
|
},
|
|
4876
4886
|
get language() {
|
|
4877
4887
|
return r();
|
|
4878
4888
|
},
|
|
4879
4889
|
set language(l = "en") {
|
|
4880
|
-
r(l),
|
|
4890
|
+
r(l), y();
|
|
4881
4891
|
}
|
|
4882
4892
|
}, a = Q(), u = G(a);
|
|
4883
4893
|
{
|
|
4884
4894
|
var c = (l) => {
|
|
4885
|
-
|
|
4895
|
+
ge(l, {
|
|
4886
4896
|
key: "underline",
|
|
4887
4897
|
get editor() {
|
|
4888
4898
|
return n();
|
|
4889
4899
|
},
|
|
4890
4900
|
action: i,
|
|
4891
4901
|
get icon() {
|
|
4892
|
-
return
|
|
4902
|
+
return uu;
|
|
4893
4903
|
},
|
|
4894
4904
|
get tooltip() {
|
|
4895
4905
|
return o[r()];
|
|
@@ -4902,36 +4912,36 @@ function uu(e, t) {
|
|
|
4902
4912
|
}
|
|
4903
4913
|
return V(e, a), Y(s);
|
|
4904
4914
|
}
|
|
4905
|
-
customElements.define("tiptob-underline-button", q(
|
|
4906
|
-
const
|
|
4907
|
-
function
|
|
4915
|
+
customElements.define("tiptob-underline-button", q(fu, { editor: {}, language: {} }, [], [], !0));
|
|
4916
|
+
const cu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M5.82843 6.99955L8.36396 9.53509L6.94975 10.9493L2 5.99955L6.94975 1.0498L8.36396 2.46402L5.82843 4.99955H13C17.4183 4.99955 21 8.58127 21 12.9996C21 17.4178 17.4183 20.9996 13 20.9996H4V18.9996H13C16.3137 18.9996 19 16.3133 19 12.9996C19 9.68584 16.3137 6.99955 13 6.99955H5.82843Z"></path></svg>';
|
|
4917
|
+
function du(e, t) {
|
|
4908
4918
|
W(t, !0);
|
|
4909
|
-
let n =
|
|
4919
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4910
4920
|
const o = { de: "Rückgängig", en: "Undo" }, i = () => n().chain().focus().undo().run();
|
|
4911
4921
|
var s = {
|
|
4912
4922
|
get editor() {
|
|
4913
4923
|
return n();
|
|
4914
4924
|
},
|
|
4915
4925
|
set editor(l) {
|
|
4916
|
-
n(l),
|
|
4926
|
+
n(l), y();
|
|
4917
4927
|
},
|
|
4918
4928
|
get language() {
|
|
4919
4929
|
return r();
|
|
4920
4930
|
},
|
|
4921
4931
|
set language(l = "en") {
|
|
4922
|
-
r(l),
|
|
4932
|
+
r(l), y();
|
|
4923
4933
|
}
|
|
4924
4934
|
}, a = Q(), u = G(a);
|
|
4925
4935
|
{
|
|
4926
4936
|
var c = (l) => {
|
|
4927
|
-
|
|
4937
|
+
ge(l, {
|
|
4928
4938
|
key: "undo",
|
|
4929
4939
|
get editor() {
|
|
4930
4940
|
return n();
|
|
4931
4941
|
},
|
|
4932
4942
|
action: i,
|
|
4933
4943
|
get icon() {
|
|
4934
|
-
return
|
|
4944
|
+
return cu;
|
|
4935
4945
|
},
|
|
4936
4946
|
get tooltip() {
|
|
4937
4947
|
return o[r()];
|
|
@@ -4944,29 +4954,29 @@ function cu(e, t) {
|
|
|
4944
4954
|
}
|
|
4945
4955
|
return V(e, a), Y(s);
|
|
4946
4956
|
}
|
|
4947
|
-
customElements.define("tiptob-undo-button", q(
|
|
4948
|
-
const
|
|
4957
|
+
customElements.define("tiptob-undo-button", q(du, { editor: {}, language: {} }, [], [], !0));
|
|
4958
|
+
const gu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z"></path></svg>', vu = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="240" height="240" fill="currentColor"><path d="M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z"></path></svg>
|
|
4949
4959
|
`;
|
|
4950
4960
|
Ds();
|
|
4951
|
-
var
|
|
4952
|
-
const
|
|
4961
|
+
var hu = /* @__PURE__ */ ie('<div class="tiptap-separator svelte-w2eepg"></div>');
|
|
4962
|
+
const pu = {
|
|
4953
4963
|
hash: "svelte-w2eepg",
|
|
4954
4964
|
code: ".tiptap-separator.svelte-w2eepg {flex-shrink:0;width:1px;background-color:var(--tiptob-bg-icon, rgba(37, 39, 45, 0.37));}"
|
|
4955
4965
|
};
|
|
4956
4966
|
function ji(e) {
|
|
4957
|
-
|
|
4958
|
-
var t =
|
|
4967
|
+
Se(e, pu);
|
|
4968
|
+
var t = hu();
|
|
4959
4969
|
V(e, t);
|
|
4960
4970
|
}
|
|
4961
4971
|
q(ji, {}, [], [], !0);
|
|
4962
|
-
var
|
|
4963
|
-
const
|
|
4972
|
+
var mu = /* @__PURE__ */ ie('<div class="tiptob-link-input-wrapper svelte-pelsj9"><input id="tiptob-link-input" type="url" placeholder="Paste a link..." autocomplete="off" class="tiptob-link-input svelte-pelsj9"/> <button type="button" class="confirm svelte-pelsj9"><!></button> <!> <button type="button" class="svelte-pelsj9"><!></button> <button class="close svelte-pelsj9" type="button"><!></button></div>');
|
|
4973
|
+
const _u = {
|
|
4964
4974
|
hash: "svelte-pelsj9",
|
|
4965
4975
|
code: ".tiptob-link-input-wrapper.svelte-pelsj9 {display:flex;flex-direction:row;gap:0.25rem;padding:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);}button.svelte-pelsj9 {display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0.25rem;border:none;border-radius:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);flex:40%;&:hover:enabled {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}&:disabled {opacity:0.5;cursor:default;&.confirm {svg {fill:var(--tiptob-bg-icon, #333333);}}}&.confirm {svg {fill:var(--icon-green, #28a745);}}&.close {svg {fill:var(--icon-red, #dc3545);}}}.tiptob-link-input.svelte-pelsj9::placeholder {color:var(--tiptob-bg-icon, #333333);opacity:0.5;}.tiptob-link-input.svelte-pelsj9 {display:flex;padding:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);color:var(--tiptob-bg-icon, #333333);outline:none;border:0;}"
|
|
4966
4976
|
};
|
|
4967
|
-
function
|
|
4968
|
-
W(t, !0),
|
|
4969
|
-
let n =
|
|
4977
|
+
function bu(e, t) {
|
|
4978
|
+
W(t, !0), Se(e, _u);
|
|
4979
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = /* @__PURE__ */ J(!1), i = /* @__PURE__ */ J("");
|
|
4970
4980
|
const s = {
|
|
4971
4981
|
de: {
|
|
4972
4982
|
main: "Link",
|
|
@@ -4999,29 +5009,29 @@ function _u(e, t) {
|
|
|
4999
5009
|
function l(m) {
|
|
5000
5010
|
m.focus();
|
|
5001
5011
|
}
|
|
5002
|
-
var
|
|
5012
|
+
var p = {
|
|
5003
5013
|
get editor() {
|
|
5004
5014
|
return n();
|
|
5005
5015
|
},
|
|
5006
5016
|
set editor(m) {
|
|
5007
|
-
n(m),
|
|
5017
|
+
n(m), y();
|
|
5008
5018
|
},
|
|
5009
5019
|
get language() {
|
|
5010
5020
|
return r();
|
|
5011
5021
|
},
|
|
5012
5022
|
set language(m = "en") {
|
|
5013
|
-
r(m),
|
|
5023
|
+
r(m), y();
|
|
5014
5024
|
}
|
|
5015
5025
|
}, v = Q(), g = G(v);
|
|
5016
5026
|
{
|
|
5017
5027
|
var d = (m) => {
|
|
5018
|
-
|
|
5028
|
+
at(m, {
|
|
5019
5029
|
get editor() {
|
|
5020
5030
|
return n();
|
|
5021
5031
|
},
|
|
5022
5032
|
key: "link",
|
|
5023
5033
|
get icon() {
|
|
5024
|
-
return
|
|
5034
|
+
return gu;
|
|
5025
5035
|
},
|
|
5026
5036
|
text: "",
|
|
5027
5037
|
get tooltip() {
|
|
@@ -5030,40 +5040,40 @@ function _u(e, t) {
|
|
|
5030
5040
|
get dropdownOpen() {
|
|
5031
5041
|
return M(o);
|
|
5032
5042
|
},
|
|
5033
|
-
set dropdownOpen(
|
|
5034
|
-
S(o,
|
|
5043
|
+
set dropdownOpen(h) {
|
|
5044
|
+
S(o, h, !0);
|
|
5035
5045
|
},
|
|
5036
|
-
children: (
|
|
5037
|
-
var
|
|
5046
|
+
children: (h, b) => {
|
|
5047
|
+
var E = mu(), w = P(E);
|
|
5038
5048
|
Di(w), w.__keydown = c, gn(() => $i(w, () => M(i), (Z) => S(i, Z))), Oi(w, (Z) => l?.(Z));
|
|
5039
|
-
var x =
|
|
5049
|
+
var x = ee(w, 2);
|
|
5040
5050
|
x.__click = a;
|
|
5041
|
-
var
|
|
5042
|
-
|
|
5051
|
+
var A = P(x);
|
|
5052
|
+
se(A, {
|
|
5043
5053
|
get content() {
|
|
5044
5054
|
return Pr;
|
|
5045
5055
|
}
|
|
5046
|
-
}),
|
|
5047
|
-
var C =
|
|
5056
|
+
}), O(x);
|
|
5057
|
+
var C = ee(x, 2);
|
|
5048
5058
|
ji(C);
|
|
5049
|
-
var H =
|
|
5059
|
+
var H = ee(C, 2);
|
|
5050
5060
|
H.__click = () => window.open(M(i), "_blank");
|
|
5051
|
-
var
|
|
5052
|
-
|
|
5061
|
+
var I = P(H);
|
|
5062
|
+
se(I, {
|
|
5053
5063
|
get content() {
|
|
5054
|
-
return
|
|
5064
|
+
return vu;
|
|
5055
5065
|
}
|
|
5056
|
-
}),
|
|
5057
|
-
var B =
|
|
5066
|
+
}), O(H);
|
|
5067
|
+
var B = ee(H, 2);
|
|
5058
5068
|
B.__click = u;
|
|
5059
5069
|
var z = P(B);
|
|
5060
|
-
|
|
5070
|
+
se(z, {
|
|
5061
5071
|
get content() {
|
|
5062
5072
|
return $r;
|
|
5063
5073
|
}
|
|
5064
|
-
}),
|
|
5065
|
-
x.disabled = !M(i),
|
|
5066
|
-
}), V(
|
|
5074
|
+
}), O(B), O(E), Me(() => {
|
|
5075
|
+
x.disabled = !M(i), ne(x, "title", M(i) ? s[r()].confirm : ""), H.disabled = !M(i), ne(H, "title", s[r()].open), ne(B, "title", s[r()].remove);
|
|
5076
|
+
}), V(h, E);
|
|
5067
5077
|
},
|
|
5068
5078
|
$$slots: { default: !0 }
|
|
5069
5079
|
});
|
|
@@ -5072,31 +5082,31 @@ function _u(e, t) {
|
|
|
5072
5082
|
n() && m(d);
|
|
5073
5083
|
});
|
|
5074
5084
|
}
|
|
5075
|
-
return V(e, v), Y(
|
|
5085
|
+
return V(e, v), Y(p);
|
|
5076
5086
|
}
|
|
5077
|
-
|
|
5078
|
-
customElements.define("tiptob-hyperlink-button", q(
|
|
5079
|
-
function
|
|
5087
|
+
ht(["keydown", "click"]);
|
|
5088
|
+
customElements.define("tiptob-hyperlink-button", q(bu, { editor: {}, language: {} }, [], [], !0));
|
|
5089
|
+
function wu(e, t) {
|
|
5080
5090
|
W(t, !0);
|
|
5081
|
-
let n =
|
|
5091
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
5082
5092
|
const o = { de: "HTML anzeigen", en: "Show HTML" }, i = () => n().commands.setContent(n().getText());
|
|
5083
5093
|
var s = {
|
|
5084
5094
|
get editor() {
|
|
5085
5095
|
return n();
|
|
5086
5096
|
},
|
|
5087
5097
|
set editor(l) {
|
|
5088
|
-
n(l),
|
|
5098
|
+
n(l), y();
|
|
5089
5099
|
},
|
|
5090
5100
|
get language() {
|
|
5091
5101
|
return r();
|
|
5092
5102
|
},
|
|
5093
5103
|
set language(l = "en") {
|
|
5094
|
-
r(l),
|
|
5104
|
+
r(l), y();
|
|
5095
5105
|
}
|
|
5096
5106
|
}, a = Q(), u = G(a);
|
|
5097
5107
|
{
|
|
5098
5108
|
var c = (l) => {
|
|
5099
|
-
|
|
5109
|
+
ge(l, {
|
|
5100
5110
|
get editor() {
|
|
5101
5111
|
return n();
|
|
5102
5112
|
},
|
|
@@ -5116,28 +5126,28 @@ function bu(e, t) {
|
|
|
5116
5126
|
}
|
|
5117
5127
|
return V(e, a), Y(s);
|
|
5118
5128
|
}
|
|
5119
|
-
customElements.define("tiptob-show-html-button", q(
|
|
5120
|
-
function
|
|
5129
|
+
customElements.define("tiptob-show-html-button", q(wu, { editor: {}, language: {} }, [], [], !0));
|
|
5130
|
+
function Cu(e, t) {
|
|
5121
5131
|
W(t, !0);
|
|
5122
|
-
let n =
|
|
5132
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
5123
5133
|
const o = { de: "Quellcode anzeigen", en: "Show source code" }, i = () => n().commands.setContent(`<textarea>${n().getHTML()}</textarea>`);
|
|
5124
5134
|
var s = {
|
|
5125
5135
|
get editor() {
|
|
5126
5136
|
return n();
|
|
5127
5137
|
},
|
|
5128
5138
|
set editor(l) {
|
|
5129
|
-
n(l),
|
|
5139
|
+
n(l), y();
|
|
5130
5140
|
},
|
|
5131
5141
|
get language() {
|
|
5132
5142
|
return r();
|
|
5133
5143
|
},
|
|
5134
5144
|
set language(l = "en") {
|
|
5135
|
-
r(l),
|
|
5145
|
+
r(l), y();
|
|
5136
5146
|
}
|
|
5137
5147
|
}, a = Q(), u = G(a);
|
|
5138
5148
|
{
|
|
5139
5149
|
var c = (l) => {
|
|
5140
|
-
|
|
5150
|
+
ge(l, {
|
|
5141
5151
|
get editor() {
|
|
5142
5152
|
return n();
|
|
5143
5153
|
},
|
|
@@ -5157,16 +5167,16 @@ function wu(e, t) {
|
|
|
5157
5167
|
}
|
|
5158
5168
|
return V(e, a), Y(s);
|
|
5159
5169
|
}
|
|
5160
|
-
customElements.define("tiptob-show-source-button", q(
|
|
5161
|
-
const
|
|
5162
|
-
var
|
|
5163
|
-
const
|
|
5170
|
+
customElements.define("tiptob-show-source-button", q(Cu, { editor: {}, language: {} }, [], [], !0));
|
|
5171
|
+
const Eu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="240" height="240" fill="currentColor"><path d="M13 6V21H11V6H5V4H19V6H13Z"></path></svg>';
|
|
5172
|
+
var yu = /* @__PURE__ */ ie('<button class="menu-item svelte-1oxnus1"> </button>'), Tu = /* @__PURE__ */ ie('<div class="dropdown-content svelte-1oxnus1"><div class="menu svelte-1oxnus1"></div> <div class="button-wrapper svelte-1oxnus1"><button type="button" class="confirm svelte-1oxnus1"><!></button> <button type="button" class="close svelte-1oxnus1"><!></button></div></div>');
|
|
5173
|
+
const xu = {
|
|
5164
5174
|
hash: "svelte-1oxnus1",
|
|
5165
5175
|
code: `.dropdown-content.svelte-1oxnus1 {display:flex;flex-direction:column;width:15rem;border:1px solid #ccc;background:#ffffff;overflow:hidden;}.menu.svelte-1oxnus1 {flex:1;overflow-y:auto;max-height:15rem;}.menu-item.svelte-1oxnus1 {padding:0.5rem 0.75rem;border:none;background:transparent;text-align:left;cursor:pointer;width:100%;font-size:0.8rem;color:#333333;}.menu-item.svelte-1oxnus1:focus,
|
|
5166
5176
|
.menu-item.svelte-1oxnus1:hover {background:#f0f0f0;}.button-wrapper.svelte-1oxnus1 {display:flex;justify-content:space-evenly;padding:0.25rem 0;border-top:1px solid #cecece;position:sticky;button:where(.svelte-1oxnus1) {display:flex;align-items:center;justify-content:center;width:40%;border:none;border-radius:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);cursor:pointer;&:hover:enabled {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}&.confirm {svg {fill:var(--icon-green, #28a745);}}&.close {svg {fill:var(--icon-red, #dc3545);}}}}`
|
|
5167
5177
|
};
|
|
5168
|
-
function
|
|
5169
|
-
W(t, !0),
|
|
5178
|
+
function Au(e, t) {
|
|
5179
|
+
W(t, !0), Se(e, xu);
|
|
5170
5180
|
const n = {
|
|
5171
5181
|
de: {
|
|
5172
5182
|
main: "Token auswählen",
|
|
@@ -5179,7 +5189,7 @@ function xu(e, t) {
|
|
|
5179
5189
|
close: "Abort"
|
|
5180
5190
|
}
|
|
5181
5191
|
};
|
|
5182
|
-
let r =
|
|
5192
|
+
let r = L(t, "editor", 7), o = L(t, "language", 7, "en"), i = L(t, "placeHolders", 7), s = /* @__PURE__ */ J(!1), a = /* @__PURE__ */ J("Select option");
|
|
5183
5193
|
function u() {
|
|
5184
5194
|
r().commands.insertContent(M(a)), S(s, !1);
|
|
5185
5195
|
}
|
|
@@ -5188,30 +5198,30 @@ function xu(e, t) {
|
|
|
5188
5198
|
return r();
|
|
5189
5199
|
},
|
|
5190
5200
|
set editor(g) {
|
|
5191
|
-
r(g),
|
|
5201
|
+
r(g), y();
|
|
5192
5202
|
},
|
|
5193
5203
|
get language() {
|
|
5194
5204
|
return o();
|
|
5195
5205
|
},
|
|
5196
5206
|
set language(g = "en") {
|
|
5197
|
-
o(g),
|
|
5207
|
+
o(g), y();
|
|
5198
5208
|
},
|
|
5199
5209
|
get placeHolders() {
|
|
5200
5210
|
return i();
|
|
5201
5211
|
},
|
|
5202
5212
|
set placeHolders(g) {
|
|
5203
|
-
i(g),
|
|
5213
|
+
i(g), y();
|
|
5204
5214
|
}
|
|
5205
|
-
}, l = Q(),
|
|
5215
|
+
}, l = Q(), p = G(l);
|
|
5206
5216
|
{
|
|
5207
5217
|
var v = (g) => {
|
|
5208
|
-
|
|
5218
|
+
at(g, {
|
|
5209
5219
|
get editor() {
|
|
5210
5220
|
return r();
|
|
5211
5221
|
},
|
|
5212
5222
|
key: "token",
|
|
5213
5223
|
get icon() {
|
|
5214
|
-
return
|
|
5224
|
+
return Eu;
|
|
5215
5225
|
},
|
|
5216
5226
|
text: "Token",
|
|
5217
5227
|
get tooltip() {
|
|
@@ -5224,52 +5234,52 @@ function xu(e, t) {
|
|
|
5224
5234
|
S(s, d, !0);
|
|
5225
5235
|
},
|
|
5226
5236
|
children: (d, m) => {
|
|
5227
|
-
var
|
|
5228
|
-
Tt(b, 20, i, (H) => H, (H,
|
|
5229
|
-
var B =
|
|
5230
|
-
B.__click = () => S(a,
|
|
5237
|
+
var h = Tu(), b = P(h);
|
|
5238
|
+
Tt(b, 20, i, (H) => H, (H, I) => {
|
|
5239
|
+
var B = yu();
|
|
5240
|
+
B.__click = () => S(a, I.expression, !0);
|
|
5231
5241
|
var z = P(B, !0);
|
|
5232
|
-
|
|
5233
|
-
}),
|
|
5234
|
-
var
|
|
5242
|
+
O(B), Me(() => Dr(z, I.translation)), V(H, B);
|
|
5243
|
+
}), O(b);
|
|
5244
|
+
var E = ee(b, 2), w = P(E);
|
|
5235
5245
|
w.__click = u;
|
|
5236
5246
|
var x = P(w);
|
|
5237
|
-
|
|
5247
|
+
se(x, {
|
|
5238
5248
|
get content() {
|
|
5239
5249
|
return Pr;
|
|
5240
5250
|
}
|
|
5241
|
-
}),
|
|
5242
|
-
var
|
|
5243
|
-
|
|
5244
|
-
var C = P(
|
|
5245
|
-
|
|
5251
|
+
}), O(w);
|
|
5252
|
+
var A = ee(w, 2);
|
|
5253
|
+
A.__click = () => S(s, !1);
|
|
5254
|
+
var C = P(A);
|
|
5255
|
+
se(C, {
|
|
5246
5256
|
get content() {
|
|
5247
5257
|
return $r;
|
|
5248
5258
|
}
|
|
5249
|
-
}),
|
|
5250
|
-
|
|
5251
|
-
}), V(d,
|
|
5259
|
+
}), O(A), O(E), O(h), Me(() => {
|
|
5260
|
+
ne(w, "title", n[o()].confirm), ne(A, "title", n[o()].close);
|
|
5261
|
+
}), V(d, h);
|
|
5252
5262
|
},
|
|
5253
5263
|
$$slots: { default: !0 }
|
|
5254
5264
|
});
|
|
5255
5265
|
};
|
|
5256
|
-
X(
|
|
5266
|
+
X(p, (g) => {
|
|
5257
5267
|
r() && g(v);
|
|
5258
5268
|
});
|
|
5259
5269
|
}
|
|
5260
5270
|
return V(e, l), Y(c);
|
|
5261
5271
|
}
|
|
5262
|
-
|
|
5263
|
-
customElements.define("tiptob-token-button", q(
|
|
5264
|
-
const
|
|
5265
|
-
var
|
|
5266
|
-
const
|
|
5272
|
+
ht(["click"]);
|
|
5273
|
+
customElements.define("tiptob-token-button", q(Au, { editor: {}, language: {}, placeHolders: {} }, [], [], !0));
|
|
5274
|
+
const Lu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13,4A4,4 0 0,1 17,8A4,4 0 0,1 13,12H11V18H9V4H13M13,10A2,2 0 0,0 15,8A2,2 0 0,0 13,6H11V10H13Z" /></svg>', Hu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17 11V4H19V21H17V13H7V21H5V4H7V11H17Z"></path></svg>', ku = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M13 20H11V13H4V20H2V4H4V11H11V4H13V20ZM21.0005 8V20H19.0005L19 10.204L17 10.74V8.67L19.5005 8H21.0005Z"></path></svg>', Mu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 4V11H11V4H13V20H11V13H4V20H2V4H4ZM18.5 8C20.5711 8 22.25 9.67893 22.25 11.75C22.25 12.6074 21.9623 13.3976 21.4781 14.0292L21.3302 14.2102L18.0343 18H22V20H15L14.9993 18.444L19.8207 12.8981C20.0881 12.5908 20.25 12.1893 20.25 11.75C20.25 10.7835 19.4665 10 18.5 10C17.5818 10 16.8288 10.7071 16.7558 11.6065L16.75 11.75H14.75C14.75 9.67893 16.4289 8 18.5 8Z"></path></svg>', Su = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M22 8L21.9984 10L19.4934 12.883C21.0823 13.3184 22.25 14.7728 22.25 16.5C22.25 18.5711 20.5711 20.25 18.5 20.25C16.674 20.25 15.1528 18.9449 14.8184 17.2166L16.7821 16.8352C16.9384 17.6413 17.6481 18.25 18.5 18.25C19.4665 18.25 20.25 17.4665 20.25 16.5C20.25 15.5335 19.4665 14.75 18.5 14.75C18.214 14.75 17.944 14.8186 17.7056 14.9403L16.3992 13.3932L19.3484 10H15V8H22ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4Z"></path></svg>', Vu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M13 20H11V13H4V20H2V4H4V11H11V4H13V20ZM22 8V16H23.5V18H22V20H20V18H14.5V16.66L19.5 8H22ZM20 11.133L17.19 16H20V11.133Z"></path></svg>', Ru = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M22 8V10H17.6769L17.2126 12.6358C17.5435 12.5472 17.8912 12.5 18.25 12.5C20.4591 12.5 22.25 14.2909 22.25 16.5C22.25 18.7091 20.4591 20.5 18.25 20.5C16.4233 20.5 14.8827 19.2756 14.4039 17.6027L16.3271 17.0519C16.5667 17.8881 17.3369 18.5 18.25 18.5C19.3546 18.5 20.25 17.6046 20.25 16.5C20.25 15.3954 19.3546 14.5 18.25 14.5C17.6194 14.5 17.057 14.7918 16.6904 15.2478L14.8803 14.3439L16 8H22ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4Z"></path></svg>', Ou = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M21.097 8L18.499 12.5C20.7091 12.5 22.5 14.2909 22.5 16.5C22.5 18.7091 20.7091 20.5 18.5 20.5C16.2909 20.5 14.5 18.7091 14.5 16.5C14.5 15.7636 14.699 15.0737 15.0461 14.4811L18.788 8H21.097ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4ZM18.5 14.5C17.3954 14.5 16.5 15.3954 16.5 16.5C16.5 17.6046 17.3954 18.5 18.5 18.5C19.6046 18.5 20.5 17.6046 20.5 16.5C20.5 15.3954 19.6046 14.5 18.5 14.5Z"></path></svg>';
|
|
5275
|
+
var Iu = /* @__PURE__ */ ie('<div class="heading-dropdown svelte-162mxmd"></div>');
|
|
5276
|
+
const Du = {
|
|
5267
5277
|
hash: "svelte-162mxmd",
|
|
5268
5278
|
code: ".heading-dropdown.svelte-162mxmd {display:flex;flex-flow:column;padding:0.25rem;background-color:var(--tiptob-bg-button, #fff);}"
|
|
5269
5279
|
};
|
|
5270
|
-
function
|
|
5271
|
-
W(t, !0),
|
|
5272
|
-
let n =
|
|
5280
|
+
function Nu(e, t) {
|
|
5281
|
+
W(t, !0), Se(e, Du);
|
|
5282
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = L(t, "availableOptions", 23, () => ["paragraph", "h1", "h2", "h3", "h4", "h5", "h6"]), i = /* @__PURE__ */ J(!1);
|
|
5273
5283
|
const s = {
|
|
5274
5284
|
de: {
|
|
5275
5285
|
main: "Überschriften",
|
|
@@ -5292,13 +5302,13 @@ function Du(e, t) {
|
|
|
5292
5302
|
h6: "Heading 6"
|
|
5293
5303
|
}
|
|
5294
5304
|
}, a = {
|
|
5295
|
-
paragraph: { level: null, label: "paragraph", icon:
|
|
5296
|
-
h1: { level: 1, label: "h1", icon:
|
|
5297
|
-
h2: { level: 2, label: "h2", icon:
|
|
5298
|
-
h3: { level: 3, label: "h3", icon:
|
|
5299
|
-
h4: { level: 4, label: "h4", icon:
|
|
5300
|
-
h5: { level: 5, label: "h5", icon:
|
|
5301
|
-
h6: { level: 6, label: "h6", icon:
|
|
5305
|
+
paragraph: { level: null, label: "paragraph", icon: Lu },
|
|
5306
|
+
h1: { level: 1, label: "h1", icon: ku },
|
|
5307
|
+
h2: { level: 2, label: "h2", icon: Mu },
|
|
5308
|
+
h3: { level: 3, label: "h3", icon: Su },
|
|
5309
|
+
h4: { level: 4, label: "h4", icon: Vu },
|
|
5310
|
+
h5: { level: 5, label: "h5", icon: Ru },
|
|
5311
|
+
h6: { level: 6, label: "h6", icon: Ou }
|
|
5302
5312
|
};
|
|
5303
5313
|
function u(g) {
|
|
5304
5314
|
g === null ? n().chain().focus().setParagraph().run() : n().chain().focus().toggleHeading({ level: g }).run(), S(i, !1);
|
|
@@ -5308,30 +5318,30 @@ function Du(e, t) {
|
|
|
5308
5318
|
return n();
|
|
5309
5319
|
},
|
|
5310
5320
|
set editor(g) {
|
|
5311
|
-
n(g),
|
|
5321
|
+
n(g), y();
|
|
5312
5322
|
},
|
|
5313
5323
|
get language() {
|
|
5314
5324
|
return r();
|
|
5315
5325
|
},
|
|
5316
5326
|
set language(g = "en") {
|
|
5317
|
-
r(g),
|
|
5327
|
+
r(g), y();
|
|
5318
5328
|
},
|
|
5319
5329
|
get availableOptions() {
|
|
5320
5330
|
return o();
|
|
5321
5331
|
},
|
|
5322
5332
|
set availableOptions(g = ["paragraph", "h1", "h2", "h3", "h4", "h5", "h6"]) {
|
|
5323
|
-
o(g),
|
|
5333
|
+
o(g), y();
|
|
5324
5334
|
}
|
|
5325
|
-
}, l = Q(),
|
|
5335
|
+
}, l = Q(), p = G(l);
|
|
5326
5336
|
{
|
|
5327
5337
|
var v = (g) => {
|
|
5328
|
-
|
|
5338
|
+
at(g, {
|
|
5329
5339
|
get editor() {
|
|
5330
5340
|
return n();
|
|
5331
5341
|
},
|
|
5332
5342
|
key: "heading",
|
|
5333
5343
|
get icon() {
|
|
5334
|
-
return
|
|
5344
|
+
return Hu;
|
|
5335
5345
|
},
|
|
5336
5346
|
get tooltip() {
|
|
5337
5347
|
return s[r()].main;
|
|
@@ -5343,62 +5353,62 @@ function Du(e, t) {
|
|
|
5343
5353
|
S(i, d, !0);
|
|
5344
5354
|
},
|
|
5345
5355
|
children: (d, m) => {
|
|
5346
|
-
var
|
|
5347
|
-
Tt(
|
|
5356
|
+
var h = Iu();
|
|
5357
|
+
Tt(h, 20, o, (b) => b, (b, E) => {
|
|
5348
5358
|
{
|
|
5349
|
-
let w = /* @__PURE__ */ Qo(() => a[
|
|
5359
|
+
let w = /* @__PURE__ */ Qo(() => a[E].label === "paragraph" ? "paragraph" : {
|
|
5350
5360
|
name: "heading",
|
|
5351
|
-
attributes: { level: a[
|
|
5361
|
+
attributes: { level: a[E].level }
|
|
5352
5362
|
});
|
|
5353
|
-
|
|
5363
|
+
ge(b, {
|
|
5354
5364
|
get editor() {
|
|
5355
5365
|
return n();
|
|
5356
5366
|
},
|
|
5357
5367
|
get key() {
|
|
5358
5368
|
return M(w);
|
|
5359
5369
|
},
|
|
5360
|
-
action: () => u(a[
|
|
5370
|
+
action: () => u(a[E].level),
|
|
5361
5371
|
get icon() {
|
|
5362
|
-
return a[
|
|
5372
|
+
return a[E].icon;
|
|
5363
5373
|
},
|
|
5364
5374
|
get tooltip() {
|
|
5365
|
-
return s[r()][a[
|
|
5375
|
+
return s[r()][a[E].label];
|
|
5366
5376
|
}
|
|
5367
5377
|
});
|
|
5368
5378
|
}
|
|
5369
|
-
}),
|
|
5379
|
+
}), O(h), V(d, h);
|
|
5370
5380
|
},
|
|
5371
5381
|
$$slots: { default: !0 }
|
|
5372
5382
|
});
|
|
5373
5383
|
};
|
|
5374
|
-
X(
|
|
5384
|
+
X(p, (g) => {
|
|
5375
5385
|
n() && g(v);
|
|
5376
5386
|
});
|
|
5377
5387
|
}
|
|
5378
5388
|
return V(e, l), Y(c);
|
|
5379
5389
|
}
|
|
5380
|
-
customElements.define("tiptob-heading-button", q(
|
|
5390
|
+
customElements.define("tiptob-heading-button", q(Nu, { editor: {}, language: {}, availableOptions: {} }, [], [], !0));
|
|
5381
5391
|
export {
|
|
5382
5392
|
al as BoldButton,
|
|
5383
|
-
|
|
5393
|
+
Dl as BulletListButton,
|
|
5384
5394
|
_l as FontColorButton,
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5395
|
+
Fl as FontHighlightButton,
|
|
5396
|
+
Nu as HeadingAction,
|
|
5397
|
+
bu as HyperlinkButton,
|
|
5398
|
+
jl as ImageButton,
|
|
5399
|
+
Wl as ItalicButton,
|
|
5400
|
+
ql as KnowledgeButton,
|
|
5401
|
+
Xl as OrderedListButton,
|
|
5402
|
+
iu as RedoButton,
|
|
5403
|
+
au as RemoveFormatButton,
|
|
5404
|
+
wu as ShowHtmlButton,
|
|
5405
|
+
Cu as ShowSourceButton,
|
|
5406
|
+
lu as StrikeButton,
|
|
5407
|
+
Ol as TableBubbleMenu,
|
|
5398
5408
|
yl as TableButton,
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5409
|
+
ru as TextAlignButton,
|
|
5410
|
+
Au as TokenAction,
|
|
5411
|
+
fu as UnderlineButton,
|
|
5412
|
+
du as UndoButton
|
|
5403
5413
|
};
|
|
5404
5414
|
//# sourceMappingURL=web-components.js.map
|