@pie-players/pie-tool-theme 0.3.37 → 0.3.38
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/tool-color-scheme.js +93 -93
- package/package.json +5 -5
|
@@ -25,10 +25,10 @@ var ct = new class extends Error {
|
|
|
25
25
|
super(...t), b(this, "name", "StaleReactionError"), b(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
26
26
|
}
|
|
27
27
|
}(), Xa = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
28
|
-
function
|
|
28
|
+
function Ja(e) {
|
|
29
29
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Qa() {
|
|
32
32
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
33
33
|
}
|
|
34
34
|
function Za(e, t, r) {
|
|
@@ -580,9 +580,9 @@ var kl = Pn | kr;
|
|
|
580
580
|
function El(e, t, r, i) {
|
|
581
581
|
new Al(e, t, r, i);
|
|
582
582
|
}
|
|
583
|
-
var He = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), jr = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(),
|
|
583
|
+
var He = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), jr = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakSet(), Al = class {
|
|
584
584
|
constructor(e, t, r, i) {
|
|
585
|
-
Dn(this, se), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), L(this, He, void 0), L(this, hn, D ? x : null), L(this, Ke, void 0), L(this, jr, void 0), L(this, Ie, void 0), L(this,
|
|
585
|
+
Dn(this, se), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), L(this, He, void 0), L(this, hn, D ? x : null), L(this, Ke, void 0), L(this, jr, void 0), L(this, Ie, void 0), L(this, Je, null), L(this, Te, null), L(this, Ue, null), L(this, Ut, null), L(this, cr, 0), L(this, Ft, 0), L(this, ai, !1), L(this, vn, /* @__PURE__ */ new Set()), L(this, mn, /* @__PURE__ */ new Set()), L(this, Mt, null), L(this, Ao, Tl(() => (R(Mt, this, jt(c(cr, this))), () => {
|
|
586
586
|
R(Mt, this, null);
|
|
587
587
|
}))), R(He, this, e), R(Ke, this, t), R(jr, this, (n) => {
|
|
588
588
|
var o = C;
|
|
@@ -618,14 +618,14 @@ var He = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), Ke =
|
|
|
618
618
|
}
|
|
619
619
|
error(e) {
|
|
620
620
|
if (!c(Ke, this).onerror && !c(Ke, this).failed) throw e;
|
|
621
|
-
$?.is_fork ? (c(
|
|
621
|
+
$?.is_fork ? (c(Je, this) && $.skip_effect(c(Je, this)), c(Te, this) && $.skip_effect(c(Te, this)), c(Ue, this) && $.skip_effect(c(Ue, this)), $.on_fork_commit(() => {
|
|
622
622
|
N(se, this, So).call(this, e);
|
|
623
623
|
})) : N(se, this, So).call(this, e);
|
|
624
624
|
}
|
|
625
625
|
};
|
|
626
626
|
function Sl() {
|
|
627
627
|
try {
|
|
628
|
-
R(
|
|
628
|
+
R(Je, this, Ce(() => c(jr, this).call(this, c(He, this))));
|
|
629
629
|
} catch (e) {
|
|
630
630
|
this.error(e);
|
|
631
631
|
}
|
|
@@ -641,18 +641,18 @@ function Ol() {
|
|
|
641
641
|
const e = c(Ke, this).pending;
|
|
642
642
|
e && (this.is_pending = !0, R(Te, this, Ce(() => e(c(He, this)))), Bt(() => {
|
|
643
643
|
var t = R(Ut, this, document.createDocumentFragment()), r = Le();
|
|
644
|
-
t.append(r), R(
|
|
644
|
+
t.append(r), R(Je, this, N(se, this, gn).call(this, () => Ce(() => c(jr, this).call(this, r)))), c(Ft, this) === 0 && (c(He, this).before(t), R(Ut, this, null), qt(c(Te, this), () => {
|
|
645
645
|
R(Te, this, null);
|
|
646
646
|
}), N(se, this, zn).call(this, $));
|
|
647
647
|
}));
|
|
648
648
|
}
|
|
649
649
|
function Rs() {
|
|
650
650
|
try {
|
|
651
|
-
if (this.is_pending = this.has_pending_snippet(), R(Ft, this, 0), R(cr, this, 0), R(
|
|
651
|
+
if (this.is_pending = this.has_pending_snippet(), R(Ft, this, 0), R(cr, this, 0), R(Je, this, Ce(() => {
|
|
652
652
|
c(jr, this).call(this, c(He, this));
|
|
653
653
|
})), c(Ft, this) > 0) {
|
|
654
654
|
var e = R(Ut, this, document.createDocumentFragment());
|
|
655
|
-
Xn(c(
|
|
655
|
+
Xn(c(Je, this), e);
|
|
656
656
|
const t = c(Ke, this).pending;
|
|
657
657
|
R(Te, this, Ce(() => t(c(He, this))));
|
|
658
658
|
} else N(se, this, zn).call(this, $);
|
|
@@ -665,13 +665,13 @@ function zn(e) {
|
|
|
665
665
|
}
|
|
666
666
|
function gn(e) {
|
|
667
667
|
var t = C, r = P, i = j;
|
|
668
|
-
|
|
668
|
+
Qe(c(Ie, this)), $e(c(Ie, this)), _r(c(Ie, this).ctx);
|
|
669
669
|
try {
|
|
670
670
|
return Gt.ensure(), e();
|
|
671
671
|
} catch (n) {
|
|
672
672
|
return bs(n), null;
|
|
673
673
|
} finally {
|
|
674
|
-
|
|
674
|
+
Qe(t), $e(r), _r(i);
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
function Ms(e, t) {
|
|
@@ -687,7 +687,7 @@ function Ms(e, t) {
|
|
|
687
687
|
}), c(Ut, this) && (c(He, this).before(c(Ut, this)), R(Ut, this, null)));
|
|
688
688
|
}
|
|
689
689
|
function So(e) {
|
|
690
|
-
c(
|
|
690
|
+
c(Je, this) && (fe(c(Je, this)), R(Je, this, null)), c(Te, this) && (fe(c(Te, this)), R(Te, this, null)), c(Ue, this) && (fe(c(Ue, this)), R(Ue, this, null)), D && (_e(c(hn, this)), ds(), _e(ki()));
|
|
691
691
|
var t = c(Ke, this).onerror;
|
|
692
692
|
let r = c(Ke, this).failed;
|
|
693
693
|
var i = !1, n = !1;
|
|
@@ -762,11 +762,11 @@ function Rl() {
|
|
|
762
762
|
var e = C, t = P, r = j, i = $;
|
|
763
763
|
if (0) var n;
|
|
764
764
|
return function(s = !0) {
|
|
765
|
-
|
|
765
|
+
Qe(e), $e(t), _r(r), s && (e.f & 16384) === 0 && (i?.activate(), i?.apply());
|
|
766
766
|
};
|
|
767
767
|
}
|
|
768
768
|
function Si(e = !0) {
|
|
769
|
-
|
|
769
|
+
Qe(null), $e(null), _r(null), e && $?.deactivate();
|
|
770
770
|
}
|
|
771
771
|
function Cs() {
|
|
772
772
|
var e = C, t = e.b, r = $, i = t.is_rendered();
|
|
@@ -795,7 +795,7 @@ function Ci(e) {
|
|
|
795
795
|
// @__NO_SIDE_EFFECTS__
|
|
796
796
|
function Ml(e, t, r) {
|
|
797
797
|
let i = C;
|
|
798
|
-
i === null &&
|
|
798
|
+
i === null && Qa();
|
|
799
799
|
var n = void 0, o = jt(ee), s = !P, a = /* @__PURE__ */ new Map();
|
|
800
800
|
return jl(() => {
|
|
801
801
|
var f = C, u = fs();
|
|
@@ -864,17 +864,17 @@ function Wn(e) {
|
|
|
864
864
|
var t, r = C, i = e.parent;
|
|
865
865
|
if (!pt && i !== null && (i.f & 24576) !== 0)
|
|
866
866
|
return fl(), e.v;
|
|
867
|
-
|
|
867
|
+
Qe(i);
|
|
868
868
|
try {
|
|
869
869
|
e.f &= ~Gr, Cl(e), t = ea(e);
|
|
870
870
|
} finally {
|
|
871
|
-
|
|
871
|
+
Qe(r);
|
|
872
872
|
}
|
|
873
873
|
return t;
|
|
874
874
|
}
|
|
875
875
|
function $s(e) {
|
|
876
876
|
var t = Wn(e);
|
|
877
|
-
if (!e.equals(t) && (e.wv =
|
|
877
|
+
if (!e.equals(t) && (e.wv = Qs(), (!$?.is_fork || e.deps === null) && ($ !== null ? $.capture(e, t, !0) : e.v = t, e.deps === null))) {
|
|
878
878
|
V(e, Me);
|
|
879
879
|
return;
|
|
880
880
|
}
|
|
@@ -928,7 +928,7 @@ function wr(e, t, r = null) {
|
|
|
928
928
|
const n = e;
|
|
929
929
|
(e.f & 2048) !== 0 && Wn(n), ce === null && xn(n);
|
|
930
930
|
}
|
|
931
|
-
e.wv =
|
|
931
|
+
e.wv = Qs(), Ns(e, We, r), Yr() && C !== null && (C.f & 1024) !== 0 && (C.f & 96) === 0 && (Se === null ? Yl([e]) : Se.push(e)), !i.is_fork && _n.size > 0 && !xs && Pl();
|
|
932
932
|
}
|
|
933
933
|
return t;
|
|
934
934
|
}
|
|
@@ -1151,11 +1151,11 @@ function jn(e) {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
function Bs(e) {
|
|
1153
1153
|
var t = P, r = C;
|
|
1154
|
-
$e(null),
|
|
1154
|
+
$e(null), Qe(null);
|
|
1155
1155
|
try {
|
|
1156
1156
|
return e();
|
|
1157
1157
|
} finally {
|
|
1158
|
-
$e(t),
|
|
1158
|
+
$e(t), Qe(r);
|
|
1159
1159
|
}
|
|
1160
1160
|
}
|
|
1161
1161
|
function Fl(e) {
|
|
@@ -1362,7 +1362,7 @@ function $e(e) {
|
|
|
1362
1362
|
P = e;
|
|
1363
1363
|
}
|
|
1364
1364
|
var C = null;
|
|
1365
|
-
function
|
|
1365
|
+
function Qe(e) {
|
|
1366
1366
|
C = e;
|
|
1367
1367
|
}
|
|
1368
1368
|
var Re = null;
|
|
@@ -1373,12 +1373,12 @@ var ge = null, ye = 0, Se = null;
|
|
|
1373
1373
|
function Yl(e) {
|
|
1374
1374
|
Se = e;
|
|
1375
1375
|
}
|
|
1376
|
-
var
|
|
1376
|
+
var Js = 1, xt = 0, Ht = xt;
|
|
1377
1377
|
function Ro(e) {
|
|
1378
1378
|
Ht = e;
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1381
|
-
return ++
|
|
1380
|
+
function Qs() {
|
|
1381
|
+
return ++Js;
|
|
1382
1382
|
}
|
|
1383
1383
|
function Kr(e) {
|
|
1384
1384
|
var t = e.f;
|
|
@@ -1462,7 +1462,7 @@ function Tr(e) {
|
|
|
1462
1462
|
try {
|
|
1463
1463
|
(t & 16777232) !== 0 ? Vl(e) : Yn(e), Gs(e);
|
|
1464
1464
|
var s = ea(e);
|
|
1465
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1465
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = Js, 0)
|
|
1466
1466
|
for (var a of e.deps) ;
|
|
1467
1467
|
} finally {
|
|
1468
1468
|
vi = i, C = r;
|
|
@@ -1555,7 +1555,7 @@ function Co(e) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
});
|
|
1557
1557
|
var d = P, h = C;
|
|
1558
|
-
$e(null),
|
|
1558
|
+
$e(null), Qe(null);
|
|
1559
1559
|
try {
|
|
1560
1560
|
for (var p, v = []; o !== null; ) {
|
|
1561
1561
|
var _ = o.assignedSlot || o.parentNode || o.host || null;
|
|
@@ -1575,17 +1575,17 @@ function Co(e) {
|
|
|
1575
1575
|
throw p;
|
|
1576
1576
|
}
|
|
1577
1577
|
} finally {
|
|
1578
|
-
e[hr] = t, delete e.currentTarget, $e(d),
|
|
1578
|
+
e[hr] = t, delete e.currentTarget, $e(d), Qe(h);
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
|
-
var
|
|
1583
|
-
function
|
|
1584
|
-
return
|
|
1582
|
+
var Jl = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1583
|
+
function Ql(e) {
|
|
1584
|
+
return Jl?.createHTML(e) ?? e;
|
|
1585
1585
|
}
|
|
1586
1586
|
function na(e) {
|
|
1587
1587
|
var t = Bn("template");
|
|
1588
|
-
return t.innerHTML =
|
|
1588
|
+
return t.innerHTML = Ql(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1589
1589
|
}
|
|
1590
1590
|
function ut(e, t) {
|
|
1591
1591
|
var r = C;
|
|
@@ -1597,7 +1597,7 @@ function ut(e, t) {
|
|
|
1597
1597
|
});
|
|
1598
1598
|
}
|
|
1599
1599
|
// @__NO_SIDE_EFFECTS__
|
|
1600
|
-
function
|
|
1600
|
+
function Jn(e, t) {
|
|
1601
1601
|
var r = (t & 1) !== 0, i = (t & 2) !== 0, n, o = !e.startsWith("<!>");
|
|
1602
1602
|
return () => {
|
|
1603
1603
|
if (D)
|
|
@@ -1845,7 +1845,7 @@ var at = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), De =
|
|
|
1845
1845
|
}
|
|
1846
1846
|
};
|
|
1847
1847
|
function cc(e) {
|
|
1848
|
-
j === null &&
|
|
1848
|
+
j === null && Ja("onMount"), qr && j.l !== null ? fc(j).m.push(e) : fr(() => {
|
|
1849
1849
|
const t = $i(e);
|
|
1850
1850
|
if (typeof t == "function") return t;
|
|
1851
1851
|
});
|
|
@@ -2139,7 +2139,7 @@ function ar(e, t, r, i) {
|
|
|
2139
2139
|
return i;
|
|
2140
2140
|
}
|
|
2141
2141
|
var bc = /* @__PURE__ */ Symbol("is custom element"), yc = /* @__PURE__ */ Symbol("is html"), wc = Xa ? "link" : "LINK";
|
|
2142
|
-
function
|
|
2142
|
+
function Ji(e, t, r, i) {
|
|
2143
2143
|
var n = Tc(e);
|
|
2144
2144
|
if (D && (n[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === wc)) {
|
|
2145
2145
|
i || void 0;
|
|
@@ -2165,13 +2165,13 @@ function kc(e) {
|
|
|
2165
2165
|
}
|
|
2166
2166
|
return r;
|
|
2167
2167
|
}
|
|
2168
|
-
var aa, dr = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(),
|
|
2168
|
+
var aa, dr = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakSet(), la = class {
|
|
2169
2169
|
constructor(e) {
|
|
2170
|
-
Dn(this, Uo), L(this, dr, /* @__PURE__ */ new WeakMap()), L(this, Ii, void 0), L(this,
|
|
2170
|
+
Dn(this, Uo), L(this, dr, /* @__PURE__ */ new WeakMap()), L(this, Ii, void 0), L(this, Qi, void 0), R(Qi, this, e);
|
|
2171
2171
|
}
|
|
2172
2172
|
observe(e, t) {
|
|
2173
2173
|
var r = c(dr, this).get(e) || /* @__PURE__ */ new Set();
|
|
2174
|
-
return r.add(t), c(dr, this).set(e, r), N(Uo, this, Ec).call(this).observe(e, c(
|
|
2174
|
+
return r.add(t), c(dr, this).set(e, r), N(Uo, this, Ec).call(this).observe(e, c(Qi, this)), () => {
|
|
2175
2175
|
var i = c(dr, this).get(e);
|
|
2176
2176
|
i.delete(t), i.size === 0 && (c(dr, this).delete(e), c(Ii, this).unobserve(e));
|
|
2177
2177
|
};
|
|
@@ -2571,15 +2571,15 @@ function kt(e) {
|
|
|
2571
2571
|
}
|
|
2572
2572
|
return Array.from(t);
|
|
2573
2573
|
}
|
|
2574
|
-
function zc(e) {
|
|
2574
|
+
function zc(e, t) {
|
|
2575
2575
|
if (e != null) {
|
|
2576
2576
|
if (e === "on" || e === "off") return e;
|
|
2577
|
-
throw new Error(`Invalid tools config at "
|
|
2577
|
+
throw new Error(`Invalid tools config at "${t}": expected "on" or "off", got ${JSON.stringify(e)}.`);
|
|
2578
2578
|
}
|
|
2579
2579
|
}
|
|
2580
2580
|
function Hc(e) {
|
|
2581
2581
|
if (e != null && !Wt(e)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
|
|
2582
|
-
const t = Nc(e?.policy), r = Dc(e?.placement), i = Fc(e?.providers), n = zc(e?.
|
|
2582
|
+
const t = Nc(e?.policy), r = Dc(e?.placement), i = Fc(e?.providers), n = zc(e?.pnpEnforcement, "pnpEnforcement"), o = {
|
|
2583
2583
|
policy: {
|
|
2584
2584
|
allowed: kt(Tt(t?.allowed, "policy.allowed")),
|
|
2585
2585
|
blocked: kt(Tt(t?.blocked, "policy.blocked"))
|
|
@@ -2591,7 +2591,7 @@ function Hc(e) {
|
|
|
2591
2591
|
},
|
|
2592
2592
|
providers: i
|
|
2593
2593
|
};
|
|
2594
|
-
return n && (o.
|
|
2594
|
+
return n && (o.pnpEnforcement = n), o;
|
|
2595
2595
|
}
|
|
2596
2596
|
var Wc = [
|
|
2597
2597
|
"assessment",
|
|
@@ -2796,7 +2796,7 @@ function qc(e) {
|
|
|
2796
2796
|
function pa(e) {
|
|
2797
2797
|
return e.level === "element";
|
|
2798
2798
|
}
|
|
2799
|
-
function
|
|
2799
|
+
function Qn(e) {
|
|
2800
2800
|
if (pa(e)) {
|
|
2801
2801
|
const t = e.item.config;
|
|
2802
2802
|
if (!t) return "";
|
|
@@ -2857,7 +2857,7 @@ function Jn(e) {
|
|
|
2857
2857
|
return "";
|
|
2858
2858
|
}
|
|
2859
2859
|
function xi(e) {
|
|
2860
|
-
const t =
|
|
2860
|
+
const t = Qn(e);
|
|
2861
2861
|
return [
|
|
2862
2862
|
/<math[>\s]/i,
|
|
2863
2863
|
/\\\[([^\]]+)\\\]/,
|
|
@@ -2895,10 +2895,10 @@ function Yc(e) {
|
|
|
2895
2895
|
return !1;
|
|
2896
2896
|
}
|
|
2897
2897
|
function Di(e) {
|
|
2898
|
-
return
|
|
2898
|
+
return Qn(e).trim().length >= 10;
|
|
2899
2899
|
}
|
|
2900
2900
|
function Kc(e) {
|
|
2901
|
-
const t =
|
|
2901
|
+
const t = Qn(e);
|
|
2902
2902
|
return [
|
|
2903
2903
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
2904
2904
|
/periodic\s+table/i,
|
|
@@ -2914,14 +2914,14 @@ var Xc = [
|
|
|
2914
2914
|
"item",
|
|
2915
2915
|
"passage",
|
|
2916
2916
|
"rubric"
|
|
2917
|
-
],
|
|
2918
|
-
function
|
|
2919
|
-
return
|
|
2917
|
+
], Jc = new Set(Xc);
|
|
2918
|
+
function Qc(e) {
|
|
2919
|
+
return Jc.has(e);
|
|
2920
2920
|
}
|
|
2921
2921
|
function Zn(e, t, r) {
|
|
2922
2922
|
const i = e.trim(), n = r.trim();
|
|
2923
2923
|
if (!i || !n) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2924
|
-
if (!
|
|
2924
|
+
if (!Qc(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2925
2925
|
return `${i}:${t}:${n}`;
|
|
2926
2926
|
}
|
|
2927
2927
|
var Zc = class {
|
|
@@ -4822,7 +4822,7 @@ function ya(e) {
|
|
|
4822
4822
|
var Xu = typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL || ya("PUBLIC_BUILDER_ORIGIN_URL") || ba, Kf = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || ya("PUBLIC_BUILDER_BUNDLE_URL") || Yf, Xf = {
|
|
4823
4823
|
retryDelayMs: 3e3,
|
|
4824
4824
|
timeoutMs: 12e4
|
|
4825
|
-
}, { entries: wa, setPrototypeOf: Yo, isFrozen:
|
|
4825
|
+
}, { entries: wa, setPrototypeOf: Yo, isFrozen: Jf, getPrototypeOf: Qf, getOwnPropertyDescriptor: Zf } = Object, { freeze: ue, seal: Pe, create: Fr } = Object, { apply: Ln, construct: Rn } = typeof Reflect < "u" && Reflect;
|
|
4826
4826
|
ue || (ue = function(t) {
|
|
4827
4827
|
return t;
|
|
4828
4828
|
});
|
|
@@ -4859,7 +4859,7 @@ function M(e, t) {
|
|
|
4859
4859
|
let n = t[i];
|
|
4860
4860
|
if (typeof n == "string") {
|
|
4861
4861
|
const o = r(n);
|
|
4862
|
-
o !== n && (
|
|
4862
|
+
o !== n && (Jf(t) || (t[i] = o), n = o);
|
|
4863
4863
|
}
|
|
4864
4864
|
e[n] = !0;
|
|
4865
4865
|
}
|
|
@@ -4881,7 +4881,7 @@ function xr(e, t) {
|
|
|
4881
4881
|
if (i.get) return de(i.get);
|
|
4882
4882
|
if (typeof i.value == "function") return de(i.value);
|
|
4883
4883
|
}
|
|
4884
|
-
e =
|
|
4884
|
+
e = Qf(e);
|
|
4885
4885
|
}
|
|
4886
4886
|
function r() {
|
|
4887
4887
|
return null;
|
|
@@ -5152,7 +5152,7 @@ var Xo = ue([
|
|
|
5152
5152
|
"annotation-xml",
|
|
5153
5153
|
"mprescripts",
|
|
5154
5154
|
"none"
|
|
5155
|
-
]),
|
|
5155
|
+
]), Jo = ue(["#text"]), Qo = ue([
|
|
5156
5156
|
"accept",
|
|
5157
5157
|
"action",
|
|
5158
5158
|
"align",
|
|
@@ -5586,18 +5586,18 @@ function Ea() {
|
|
|
5586
5586
|
const { implementation: q, createNodeIterator: pe, createDocumentFragment: ne, getElementsByTagName: Xt } = r, { importNode: Y } = i;
|
|
5587
5587
|
let K = ts();
|
|
5588
5588
|
t.isSupported = typeof wa == "function" && typeof I == "function" && q && q.createHTMLDocument !== void 0;
|
|
5589
|
-
const { MUSTACHE_EXPR: mt, ERB_EXPR:
|
|
5590
|
-
let { IS_ALLOWED_URI:
|
|
5589
|
+
const { MUSTACHE_EXPR: mt, ERB_EXPR: Jt, TMPLIT_EXPR: w, DATA_ATTR: S, ARIA_ATTR: U, IS_SCRIPT_OR_DATA: re, ATTR_WHITESPACE: rt, CUSTOM_ELEMENT: he } = es;
|
|
5590
|
+
let { IS_ALLOWED_URI: Qt } = es, B = null;
|
|
5591
5591
|
const Xr = M({}, [
|
|
5592
5592
|
...Xo,
|
|
5593
5593
|
...sn,
|
|
5594
5594
|
...an,
|
|
5595
5595
|
...ln,
|
|
5596
|
-
...
|
|
5596
|
+
...Jo
|
|
5597
5597
|
]);
|
|
5598
5598
|
let X = null;
|
|
5599
5599
|
const Zt = M({}, [
|
|
5600
|
-
...
|
|
5600
|
+
...Qo,
|
|
5601
5601
|
...cn,
|
|
5602
5602
|
...Zo,
|
|
5603
5603
|
...di
|
|
@@ -5636,7 +5636,7 @@ function Ea() {
|
|
|
5636
5636
|
value: null
|
|
5637
5637
|
}
|
|
5638
5638
|
}));
|
|
5639
|
-
let
|
|
5639
|
+
let Jr = !0, it = !0, tr = !1, rr = !0, Q = !1, be = !0, je = !1, It = !1, Ot = !1, nt = !1, ir = !1, _t = !1, nr = !0, Qr = !1;
|
|
5640
5640
|
const Zr = "user-content-";
|
|
5641
5641
|
let Er = !0, Lt = !1, bt = {}, ve = null;
|
|
5642
5642
|
const Ar = M({}, [
|
|
@@ -5714,13 +5714,13 @@ function Ea() {
|
|
|
5714
5714
|
]);
|
|
5715
5715
|
let Sr = null;
|
|
5716
5716
|
const xa = ["application/xhtml+xml", "text/html"], Da = "text/html";
|
|
5717
|
-
let
|
|
5717
|
+
let J = null, sr = null;
|
|
5718
5718
|
const Na = r.createElement("form"), no = function(l) {
|
|
5719
5719
|
return l instanceof RegExp || l instanceof Function;
|
|
5720
5720
|
}, zi = function() {
|
|
5721
5721
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5722
5722
|
if (!(sr && sr === l)) {
|
|
5723
|
-
if ((!l || typeof l != "object") && (l = {}), l = qe(l), Sr = xa.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? Da : l.PARSER_MEDIA_TYPE,
|
|
5723
|
+
if ((!l || typeof l != "object") && (l = {}), l = qe(l), Sr = xa.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? Da : l.PARSER_MEDIA_TYPE, J = Sr === "application/xhtml+xml" ? nn : bi, B = Ne(l, "ALLOWED_TAGS") ? M({}, l.ALLOWED_TAGS, J) : Xr, X = Ne(l, "ALLOWED_ATTR") ? M({}, l.ALLOWED_ATTR, J) : Zt, Fi = Ne(l, "ALLOWED_NAMESPACES") ? M({}, l.ALLOWED_NAMESPACES, nn) : $a, Ni = Ne(l, "ADD_URI_SAFE_ATTR") ? M(qe(io), l.ADD_URI_SAFE_ATTR, J) : io, to = Ne(l, "ADD_DATA_URI_TAGS") ? M(qe(ro), l.ADD_DATA_URI_TAGS, J) : ro, ve = Ne(l, "FORBID_CONTENTS") ? M({}, l.FORBID_CONTENTS, J) : Ar, gt = Ne(l, "FORBID_TAGS") ? M({}, l.FORBID_TAGS, J) : qe({}), er = Ne(l, "FORBID_ATTR") ? M({}, l.FORBID_ATTR, J) : qe({}), bt = Ne(l, "USE_PROFILES") ? l.USE_PROFILES : !1, Jr = l.ALLOW_ARIA_ATTR !== !1, it = l.ALLOW_DATA_ATTR !== !1, tr = l.ALLOW_UNKNOWN_PROTOCOLS || !1, rr = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Q = l.SAFE_FOR_TEMPLATES || !1, be = l.SAFE_FOR_XML !== !1, je = l.WHOLE_DOCUMENT || !1, nt = l.RETURN_DOM || !1, ir = l.RETURN_DOM_FRAGMENT || !1, _t = l.RETURN_TRUSTED_TYPE || !1, Ot = l.FORCE_BODY || !1, nr = l.SANITIZE_DOM !== !1, Qr = l.SANITIZE_NAMED_PROPS || !1, Er = l.KEEP_CONTENT !== !1, Lt = l.IN_PLACE || !1, Qt = l.ALLOWED_URI_REGEXP || Ta, or = l.NAMESPACE || Ve, ri = l.MATHML_TEXT_INTEGRATION_POINTS || ri, ii = l.HTML_INTEGRATION_POINTS || ii, H = l.CUSTOM_ELEMENT_HANDLING || Fr(null), l.CUSTOM_ELEMENT_HANDLING && no(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (H.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && no(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (H.attributeNameCheck = l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Q && (it = !1), ir && (nt = !0), bt && (B = M({}, Jo), X = Fr(null), bt.html === !0 && (M(B, Xo), M(X, Qo)), bt.svg === !0 && (M(B, sn), M(X, cn), M(X, di)), bt.svgFilters === !0 && (M(B, an), M(X, cn), M(X, di)), bt.mathMl === !0 && (M(B, ln), M(X, Zo), M(X, di))), Be.tagCheck = null, Be.attributeCheck = null, l.ADD_TAGS && (typeof l.ADD_TAGS == "function" ? Be.tagCheck = l.ADD_TAGS : (B === Xr && (B = qe(B)), M(B, l.ADD_TAGS, J))), l.ADD_ATTR && (typeof l.ADD_ATTR == "function" ? Be.attributeCheck = l.ADD_ATTR : (X === Zt && (X = qe(X)), M(X, l.ADD_ATTR, J))), l.ADD_URI_SAFE_ATTR && M(Ni, l.ADD_URI_SAFE_ATTR, J), l.FORBID_CONTENTS && (ve === Ar && (ve = qe(ve)), M(ve, l.FORBID_CONTENTS, J)), l.ADD_FORBID_CONTENTS && (ve === Ar && (ve = qe(ve)), M(ve, l.ADD_FORBID_CONTENTS, J)), Er && (B["#text"] = !0), je && M(B, [
|
|
5724
5724
|
"html",
|
|
5725
5725
|
"head",
|
|
5726
5726
|
"body"
|
|
@@ -5809,7 +5809,7 @@ function Ea() {
|
|
|
5809
5809
|
let g = null;
|
|
5810
5810
|
if (ot(K.beforeSanitizeElements, l, null), Hi(l))
|
|
5811
5811
|
return xe(l), !0;
|
|
5812
|
-
const k =
|
|
5812
|
+
const k = J(l.nodeName);
|
|
5813
5813
|
if (ot(K.uponSanitizeElement, l, {
|
|
5814
5814
|
tagName: k,
|
|
5815
5815
|
allowedTags: B
|
|
@@ -5830,9 +5830,9 @@ function Ea() {
|
|
|
5830
5830
|
}
|
|
5831
5831
|
return xe(l), !0;
|
|
5832
5832
|
}
|
|
5833
|
-
return l instanceof f && !Ua(l) || (k === "noscript" || k === "noembed" || k === "noframes") && le(/<\/no(script|embed|frames)/i, l.innerHTML) ? (xe(l), !0) : (
|
|
5833
|
+
return l instanceof f && !Ua(l) || (k === "noscript" || k === "noembed" || k === "noframes") && le(/<\/no(script|embed|frames)/i, l.innerHTML) ? (xe(l), !0) : (Q && l.nodeType === Dr.text && (g = l.textContent, Cr([
|
|
5834
5834
|
mt,
|
|
5835
|
-
|
|
5835
|
+
Jt,
|
|
5836
5836
|
w
|
|
5837
5837
|
], (W) => {
|
|
5838
5838
|
g = lr(g, W, " ");
|
|
@@ -5840,12 +5840,12 @@ function Ea() {
|
|
|
5840
5840
|
}, fo = function(l, g, k) {
|
|
5841
5841
|
if (er[g] || nr && (g === "id" || g === "name") && (k in r || k in Na)) return !1;
|
|
5842
5842
|
if (!(it && !er[g] && le(S, g))) {
|
|
5843
|
-
if (!(
|
|
5843
|
+
if (!(Jr && le(U, g))) {
|
|
5844
5844
|
if (!(Be.attributeCheck instanceof Function && Be.attributeCheck(g, l))) {
|
|
5845
5845
|
if (!X[g] || er[g]) {
|
|
5846
5846
|
if (!(uo(l) && (H.tagNameCheck instanceof RegExp && le(H.tagNameCheck, l) || H.tagNameCheck instanceof Function && H.tagNameCheck(l)) && (H.attributeNameCheck instanceof RegExp && le(H.attributeNameCheck, g) || H.attributeNameCheck instanceof Function && H.attributeNameCheck(g, l)) || g === "is" && H.allowCustomizedBuiltInElements && (H.tagNameCheck instanceof RegExp && le(H.tagNameCheck, k) || H.tagNameCheck instanceof Function && H.tagNameCheck(k)))) return !1;
|
|
5847
5847
|
} else if (!Ni[g]) {
|
|
5848
|
-
if (!le(
|
|
5848
|
+
if (!le(Qt, lr(k, rt, ""))) {
|
|
5849
5849
|
if (!((g === "src" || g === "xlink:href" || g === "href") && l !== "script" && ru(k, "data:") === 0 && to[l])) {
|
|
5850
5850
|
if (!(tr && !le(re, lr(k, rt, "")))) {
|
|
5851
5851
|
if (k) return !1;
|
|
@@ -5872,9 +5872,9 @@ function Ea() {
|
|
|
5872
5872
|
};
|
|
5873
5873
|
let W = g.length;
|
|
5874
5874
|
for (; W--; ) {
|
|
5875
|
-
const { name: z, namespaceURI: ke, value: Ee } = g[W], Z =
|
|
5875
|
+
const { name: z, namespaceURI: ke, value: Ee } = g[W], Z = J(z), Ir = Ee;
|
|
5876
5876
|
let ie = z === "value" ? Ir : iu(Ir);
|
|
5877
|
-
if (k.attrName = Z, k.attrValue = ie, k.keepAttr = !0, k.forceKeepAttr = void 0, ot(K.uponSanitizeAttribute, l, k), ie = k.attrValue,
|
|
5877
|
+
if (k.attrName = Z, k.attrValue = ie, k.keepAttr = !0, k.forceKeepAttr = void 0, ot(K.uponSanitizeAttribute, l, k), ie = k.attrValue, Qr && (Z === "id" || Z === "name") && (Rt(z, l), ie = Zr + ie), be && le(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, ie)) {
|
|
5878
5878
|
Rt(z, l);
|
|
5879
5879
|
continue;
|
|
5880
5880
|
}
|
|
@@ -5891,14 +5891,14 @@ function Ea() {
|
|
|
5891
5891
|
Rt(z, l);
|
|
5892
5892
|
continue;
|
|
5893
5893
|
}
|
|
5894
|
-
|
|
5894
|
+
Q && Cr([
|
|
5895
5895
|
mt,
|
|
5896
|
-
|
|
5896
|
+
Jt,
|
|
5897
5897
|
w
|
|
5898
5898
|
], (mo) => {
|
|
5899
5899
|
ie = lr(ie, mo, " ");
|
|
5900
5900
|
});
|
|
5901
|
-
const vo =
|
|
5901
|
+
const vo = J(l.nodeName);
|
|
5902
5902
|
if (!fo(vo, Z, ie)) {
|
|
5903
5903
|
Rt(z, l);
|
|
5904
5904
|
continue;
|
|
@@ -5933,13 +5933,13 @@ function Ea() {
|
|
|
5933
5933
|
if (!t.isSupported) return A;
|
|
5934
5934
|
if (It || zi(l), t.removed = [], typeof A == "string" && (Lt = !1), Lt) {
|
|
5935
5935
|
if (A.nodeName) {
|
|
5936
|
-
const Z =
|
|
5936
|
+
const Z = J(A.nodeName);
|
|
5937
5937
|
if (!B[Z] || gt[Z]) throw Pr("root node is forbidden and cannot be sanitized in-place");
|
|
5938
5938
|
}
|
|
5939
5939
|
} else if (A instanceof a)
|
|
5940
5940
|
g = ao("<!---->"), k = g.ownerDocument.importNode(A, !0), k.nodeType === Dr.element && k.nodeName === "BODY" || k.nodeName === "HTML" ? g = k : g.appendChild(k);
|
|
5941
5941
|
else {
|
|
5942
|
-
if (!nt && !
|
|
5942
|
+
if (!nt && !Q && !je && A.indexOf("<") === -1) return O && _t ? O.createHTML(A) : A;
|
|
5943
5943
|
if (g = ao(A), !g) return nt ? null : _t ? G : "";
|
|
5944
5944
|
}
|
|
5945
5945
|
g && Ot && xe(g.firstChild);
|
|
@@ -5948,12 +5948,12 @@ function Ea() {
|
|
|
5948
5948
|
co(W), po(W), W.content instanceof o && ho(W.content);
|
|
5949
5949
|
if (Lt) return A;
|
|
5950
5950
|
if (nt) {
|
|
5951
|
-
if (
|
|
5951
|
+
if (Q) {
|
|
5952
5952
|
g.normalize();
|
|
5953
5953
|
let Z = g.innerHTML;
|
|
5954
5954
|
Cr([
|
|
5955
5955
|
mt,
|
|
5956
|
-
|
|
5956
|
+
Jt,
|
|
5957
5957
|
w
|
|
5958
5958
|
], (Ir) => {
|
|
5959
5959
|
Z = lr(Z, Ir, " ");
|
|
@@ -5966,9 +5966,9 @@ function Ea() {
|
|
|
5966
5966
|
}
|
|
5967
5967
|
let Ee = je ? g.outerHTML : g.innerHTML;
|
|
5968
5968
|
return je && B["!doctype"] && g.ownerDocument && g.ownerDocument.doctype && g.ownerDocument.doctype.name && le(ka, g.ownerDocument.doctype.name) && (Ee = "<!DOCTYPE " + g.ownerDocument.doctype.name + `>
|
|
5969
|
-
` + Ee),
|
|
5969
|
+
` + Ee), Q && Cr([
|
|
5970
5970
|
mt,
|
|
5971
|
-
|
|
5971
|
+
Jt,
|
|
5972
5972
|
w
|
|
5973
5973
|
], (Z) => {
|
|
5974
5974
|
Ee = lr(Ee, Z, " ");
|
|
@@ -5978,7 +5978,7 @@ function Ea() {
|
|
|
5978
5978
|
}, t.clearConfig = function() {
|
|
5979
5979
|
sr = null, It = !1;
|
|
5980
5980
|
}, t.isValidAttribute = function(A, l, g) {
|
|
5981
|
-
return sr || zi({}), fo(
|
|
5981
|
+
return sr || zi({}), fo(J(A), J(l), g);
|
|
5982
5982
|
}, t.addHook = function(A, l) {
|
|
5983
5983
|
typeof l == "function" && $r(K[A], l);
|
|
5984
5984
|
}, t.removeHook = function(A, l) {
|
|
@@ -5993,7 +5993,7 @@ function Ea() {
|
|
|
5993
5993
|
K = ts();
|
|
5994
5994
|
}, t;
|
|
5995
5995
|
}
|
|
5996
|
-
var
|
|
5996
|
+
var Ju = Ea(), Mn;
|
|
5997
5997
|
(function(e) {
|
|
5998
5998
|
e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js";
|
|
5999
5999
|
})(Mn || (Mn = {}));
|
|
@@ -6001,7 +6001,7 @@ var rs;
|
|
|
6001
6001
|
(function(e) {
|
|
6002
6002
|
e.loading = "loading", e.loaded = "loaded";
|
|
6003
6003
|
})(rs || (rs = {}));
|
|
6004
|
-
var
|
|
6004
|
+
var Qu = Xf.timeoutMs, is;
|
|
6005
6005
|
(function(e) {
|
|
6006
6006
|
e.SAVE = "save", e.MODEL = "model", e.SCORE = "score", e.MANUAL_SCORE = "manual-score";
|
|
6007
6007
|
})(is || (is = {}));
|
|
@@ -6185,7 +6185,7 @@ function Ou(e, t) {
|
|
|
6185
6185
|
} catch {
|
|
6186
6186
|
}
|
|
6187
6187
|
}
|
|
6188
|
-
var Lu = /* @__PURE__ */ ec('<svg xmlns="http://www.w3.org/2000/svg" class="pie-tool-color-scheme__check svelte-17qy4wk" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"></polyline></svg>'), Ru = /* @__PURE__ */
|
|
6188
|
+
var Lu = /* @__PURE__ */ ec('<svg xmlns="http://www.w3.org/2000/svg" class="pie-tool-color-scheme__check svelte-17qy4wk" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"></polyline></svg>'), Ru = /* @__PURE__ */ Jn('<button type="button" role="menuitem"><div class="pie-tool-color-scheme__preview svelte-17qy4wk"><div class="pie-tool-color-scheme__preview-bg svelte-17qy4wk"><div class="pie-tool-color-scheme__preview-text svelte-17qy4wk">A</div> <div class="pie-tool-color-scheme__preview-primary svelte-17qy4wk"></div></div></div> <div class="pie-tool-color-scheme__info svelte-17qy4wk"><div class="pie-tool-color-scheme__name svelte-17qy4wk"> </div> <div class="pie-tool-color-scheme__description svelte-17qy4wk"> </div></div> <!></button>'), Mu = /* @__PURE__ */ Jn('<div class="pie-tool-color-scheme__dropdown svelte-17qy4wk" role="menu"></div>'), Cu = /* @__PURE__ */ Jn('<div class="pie-tool-color-scheme svelte-17qy4wk" role="dialog" tabindex="-1" aria-label="Theme selector"><div class="pie-tool-color-scheme__content svelte-17qy4wk"><p class="pie-tool-color-scheme__description svelte-17qy4wk">Select a theme to improve readability and reduce eye strain.</p> <button type="button" class="pie-tool-color-scheme__dropdown-trigger svelte-17qy4wk" aria-label="Select theme"><div class="pie-tool-color-scheme__current svelte-17qy4wk"><div class="pie-tool-color-scheme__preview svelte-17qy4wk"><div class="pie-tool-color-scheme__preview-bg svelte-17qy4wk"><div class="pie-tool-color-scheme__preview-text svelte-17qy4wk">A</div> <div class="pie-tool-color-scheme__preview-primary svelte-17qy4wk"></div></div></div> <div class="pie-tool-color-scheme__current-info svelte-17qy4wk"><div class="pie-tool-color-scheme__current-name svelte-17qy4wk"> </div> <div class="pie-tool-color-scheme__current-description svelte-17qy4wk"> </div></div> <svg class="pie-tool-color-scheme__dropdown-arrow svelte-17qy4wk" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M7,10L12,15L17,10H7Z"></path></svg></div></button> <!></div></div>'), $u = {
|
|
6189
6189
|
hash: "svelte-17qy4wk",
|
|
6190
6190
|
code: `.pie-tool-color-scheme.svelte-17qy4wk {position:relative;width:100%;height:100%;min-height:0;background-color:var(--pie-background, white);display:flex;flex-direction:column;}.pie-tool-color-scheme__content.svelte-17qy4wk {padding:1rem;position:relative;display:flex;flex-direction:column;gap:1rem;min-height:0;overflow:auto;}.pie-tool-color-scheme__description.svelte-17qy4wk {margin:0 0 1rem 0;color:var(--pie-text, black);opacity:0.7;font-size:0.875rem;}.pie-tool-color-scheme__dropdown-trigger.svelte-17qy4wk {width:100%;padding:0.75rem;border:2px solid var(--pie-border, #ccc);border-radius:0.5rem;background-color:var(--pie-background, white);color:var(--pie-text, black);cursor:pointer;transition:all 0.15s ease;}.pie-tool-color-scheme__dropdown-trigger.svelte-17qy4wk:hover {background-color:var(--pie-secondary-background, #f0f0f0);}.pie-tool-color-scheme__current.svelte-17qy4wk {display:flex;align-items:center;gap:0.75rem;}.pie-tool-color-scheme__current-info.svelte-17qy4wk {flex:1;text-align:left;}.pie-tool-color-scheme__current-name.svelte-17qy4wk {font-size:0.875rem;font-weight:600;color:var(--pie-text, black);}.pie-tool-color-scheme__current-description.svelte-17qy4wk {font-size:0.75rem;color:var(--pie-text, black);opacity:0.6;}.pie-tool-color-scheme__dropdown-arrow.svelte-17qy4wk {width:1.5rem;height:1.5rem;flex-shrink:0;}.pie-tool-color-scheme__dropdown.svelte-17qy4wk {position:relative;width:100%;max-height:24rem;background-color:var(--pie-background, white);border:2px solid var(--pie-border, #ccc);border-radius:0.5rem;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);overflow-y:auto;overflow-x:hidden;margin-top:0.5rem;}.pie-tool-color-scheme__option.svelte-17qy4wk {display:flex;align-items:center;gap:0.75rem;width:100%;padding:0.75rem 1rem;border:none;background-color:transparent;color:var(--pie-text, black);cursor:pointer;text-align:left;transition:background-color 0.15s ease;}.pie-tool-color-scheme__option.svelte-17qy4wk:hover {background-color:var(--pie-secondary-background, rgba(0, 0, 0, 0.05));}.pie-tool-color-scheme__option--active.svelte-17qy4wk {background-color:var(--pie-primary-light, rgba(63, 81, 181, 0.1));}.pie-tool-color-scheme__preview.svelte-17qy4wk {flex-shrink:0;width:2.5rem;height:2.5rem;border:2px solid var(--pie-border, #ccc);border-radius:0.25rem;overflow:hidden;}.pie-tool-color-scheme__preview-bg.svelte-17qy4wk {width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;}.pie-tool-color-scheme__preview-text.svelte-17qy4wk {font-weight:700;font-size:1.25rem;}.pie-tool-color-scheme__preview-primary.svelte-17qy4wk {position:absolute;bottom:0;right:0;width:0.75rem;height:0.75rem;border-radius:50%;}.pie-tool-color-scheme__info.svelte-17qy4wk {flex:1;}.pie-tool-color-scheme__name.svelte-17qy4wk {font-size:0.875rem;font-weight:600;color:var(--pie-text, black);line-height:1.25;}.pie-tool-color-scheme__description.svelte-17qy4wk {font-size:0.75rem;color:var(--pie-text, black);opacity:0.6;}.pie-tool-color-scheme__check.svelte-17qy4wk {flex-shrink:0;width:1rem;height:1rem;color:var(--pie-primary, #3f51b5);}
|
|
6191
6191
|
|
|
@@ -6355,21 +6355,21 @@ function Pu(e, t) {
|
|
|
6355
6355
|
set schemeCatalog(w = null) {
|
|
6356
6356
|
s(w), Nr();
|
|
6357
6357
|
}
|
|
6358
|
-
}, K = tc(), mt = Ul(K),
|
|
6359
|
-
var S = Cu(), U = ae(S), re = st(ae(U), 2), rt = ae(re), he = ae(rt),
|
|
6360
|
-
oe(
|
|
6358
|
+
}, K = tc(), mt = Ul(K), Jt = (w) => {
|
|
6359
|
+
var S = Cu(), U = ae(S), re = st(ae(U), 2), rt = ae(re), he = ae(rt), Qt = ae(he), B = ae(Qt), Xr = st(B, 2);
|
|
6360
|
+
oe(Qt), oe(he);
|
|
6361
6361
|
var X = st(he, 2), Zt = ae(X), H = ae(Zt, !0);
|
|
6362
6362
|
oe(Zt);
|
|
6363
6363
|
var gt = st(Zt, 2), er = ae(gt, !0);
|
|
6364
6364
|
oe(gt), oe(X), ds(2), oe(rt), oe(re);
|
|
6365
|
-
var Be = st(re, 2),
|
|
6365
|
+
var Be = st(re, 2), Jr = (it) => {
|
|
6366
6366
|
var tr = Mu();
|
|
6367
|
-
dc(tr, 21, () => y(T), (rr) => rr.id, (rr,
|
|
6367
|
+
dc(tr, 21, () => y(T), (rr) => rr.id, (rr, Q) => {
|
|
6368
6368
|
var be = Ru();
|
|
6369
6369
|
let je;
|
|
6370
6370
|
var It = ae(be), Ot = ae(It), nt = ae(Ot), ir = st(nt, 2);
|
|
6371
6371
|
oe(Ot), oe(It);
|
|
6372
|
-
var _t = st(It, 2), nr = ae(_t),
|
|
6372
|
+
var _t = st(It, 2), nr = ae(_t), Qr = ae(nr, !0);
|
|
6373
6373
|
oe(nr);
|
|
6374
6374
|
var Zr = st(nr, 2), Er = ae(Zr, !0);
|
|
6375
6375
|
oe(Zr), oe(_t);
|
|
@@ -6378,20 +6378,20 @@ function Pu(e, t) {
|
|
|
6378
6378
|
ur(ve, Ar);
|
|
6379
6379
|
};
|
|
6380
6380
|
Yi(Lt, (ve) => {
|
|
6381
|
-
y(F) === y(
|
|
6381
|
+
y(F) === y(Q).id && ve(bt);
|
|
6382
6382
|
}), oe(be), Oo(() => {
|
|
6383
|
-
je = _c(be, 1, "pie-tool-color-scheme__option svelte-17qy4wk", null, je, { "pie-tool-color-scheme__option--active": y(F) === y(
|
|
6384
|
-
}), Vi("click", be, () => q(y(
|
|
6383
|
+
je = _c(be, 1, "pie-tool-color-scheme__option svelte-17qy4wk", null, je, { "pie-tool-color-scheme__option--active": y(F) === y(Q).id }), Ji(be, "aria-label", y(Q).name), Ji(be, "aria-current", y(F) === y(Q).id), ar(Ot, `background-color: ${y(Q).preview.bg ?? ""}`), ar(nt, `color: ${y(Q).preview.text ?? ""}`), ar(ir, `background-color: ${y(Q).preview.primary ?? ""}`), li(Qr, y(Q).name), li(Er, y(Q).description);
|
|
6384
|
+
}), Vi("click", be, () => q(y(Q).id)), ur(rr, be);
|
|
6385
6385
|
}), oe(tr), ur(it, tr);
|
|
6386
6386
|
};
|
|
6387
6387
|
Yi(Be, (it) => {
|
|
6388
|
-
y(I) && it(
|
|
6388
|
+
y(I) && it(Jr);
|
|
6389
6389
|
}), oe(U), oe(S), Ac(S, (it) => te(a, it), () => y(a)), Oo(() => {
|
|
6390
|
-
|
|
6390
|
+
Ji(re, "aria-expanded", y(I)), ar(Qt, `background-color: ${y(ne).preview.bg ?? ""}`), ar(B, `color: ${y(ne).preview.text ?? ""}`), ar(Xr, `background-color: ${y(ne).preview.primary ?? ""}`), li(H, y(ne).name), li(er, y(ne).description);
|
|
6391
6391
|
}), Vi("keydown", S, Xt), Vi("click", re, pe), ur(w, S);
|
|
6392
6392
|
};
|
|
6393
6393
|
return Yi(mt, (w) => {
|
|
6394
|
-
i() && w(
|
|
6394
|
+
i() && w(Jt);
|
|
6395
6395
|
}), ur(e, K), gs(Y);
|
|
6396
6396
|
}
|
|
6397
6397
|
Xl(["keydown", "click"]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-tool-theme",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.38",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Theme tool for PIE assessment player - provides accessible themes and color schemes",
|
|
6
6
|
"repository": {
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"unpkg": "./dist/tool-color-scheme.js",
|
|
40
40
|
"jsdelivr": "./dist/tool-color-scheme.js",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@pie-players/pie-assessment-toolkit": "0.3.
|
|
43
|
-
"@pie-players/pie-context": "0.3.
|
|
44
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
45
|
-
"@pie-players/pie-theme": "0.3.
|
|
42
|
+
"@pie-players/pie-assessment-toolkit": "0.3.38",
|
|
43
|
+
"@pie-players/pie-context": "0.3.38",
|
|
44
|
+
"@pie-players/pie-players-shared": "0.3.38",
|
|
45
|
+
"@pie-players/pie-theme": "0.3.38"
|
|
46
46
|
},
|
|
47
47
|
"types": "./dist/index.d.ts",
|
|
48
48
|
"scripts": {
|