@papu1337/builder 0.0.4 → 1.0.1
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/builder/BuilderView.svelte +158 -0
- package/dist/builder/BuilderView.svelte.d.ts +8 -0
- package/dist/builder/builder.vanilla.es.js +6514 -0
- package/dist/builder/builder.vanilla.umd.js +89 -0
- package/dist/builder/canvas/canvas.svelte +92 -0
- package/dist/builder/canvas/canvas.svelte.d.ts +17 -0
- package/dist/builder/canvas/styles.css +63 -0
- package/dist/builder/createBuilder.svelte.d.ts +9 -0
- package/dist/builder/createBuilder.svelte.js +17 -0
- package/dist/builder/index.d.ts +8 -0
- package/dist/builder/index.js +7 -0
- package/dist/builder/leftbar/leftBar.svelte +740 -0
- package/dist/builder/leftbar/leftBar.svelte.d.ts +8 -0
- package/dist/builder/leftbar/styles.css +152 -0
- package/dist/builder/pageMeta.svelte.d.ts +13 -0
- package/dist/builder/pageMeta.svelte.js +25 -0
- package/dist/builder/rightbar/rightBar.svelte +100 -0
- package/dist/builder/rightbar/rightBar.svelte.d.ts +10 -0
- package/dist/builder/rightbar/styles.css +167 -0
- package/dist/builder/topbar/TopBar.svelte +337 -0
- package/dist/builder/topbar/TopBar.svelte.d.ts +12 -0
- package/dist/builder/topbar/styles.css +123 -0
- package/dist/builder/viewport.svelte.d.ts +9 -0
- package/dist/builder/viewport.svelte.js +17 -0
- package/dist/elements/_shared/Arrow.svelte +58 -0
- package/dist/elements/_shared/Arrow.svelte.d.ts +11 -0
- package/dist/elements/_shared/GradientBorder.svelte +55 -0
- package/dist/elements/_shared/GradientBorder.svelte.d.ts +10 -0
- package/dist/elements/banner/bannerElement.svelte +120 -24
- package/dist/elements/banner/settings.d.ts +15 -3
- package/dist/elements/banner/settings.js +93 -8
- package/dist/elements/button/buttonElement.svelte +31 -21
- package/dist/elements/button/settings.d.ts +12 -9
- package/dist/elements/button/settings.js +21 -38
- package/dist/elements/globalSettings.js +5 -4
- package/dist/elements/howItWorks/howItWorksElement.svelte +221 -0
- package/dist/elements/howItWorks/howItWorksElement.svelte.d.ts +7 -0
- package/dist/elements/howItWorks/settings.d.ts +16 -0
- package/dist/elements/howItWorks/settings.js +70 -0
- package/dist/elements/steps/settings.d.ts +17 -0
- package/dist/elements/steps/settings.js +69 -0
- package/dist/elements/steps/stepsElement.svelte +220 -0
- package/dist/elements/steps/stepsElement.svelte.d.ts +7 -0
- package/dist/elements/terms/settings.d.ts +8 -5
- package/dist/elements/terms/settings.js +26 -33
- package/dist/elements/terms/termsElement.svelte +164 -79
- package/dist/elements/text/settings.d.ts +5 -3
- package/dist/elements/text/settings.js +22 -8
- package/dist/elements/text/textElement.svelte +25 -20
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useTranslation.svelte.d.ts +9 -0
- package/dist/hooks/useTranslation.svelte.js +10 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/renderer/BuilderRenderer.svelte +30 -2
- package/dist/renderer/registry.js +7 -13
- package/dist/renderer/renderer.vanilla.es.js +1395 -1218
- package/dist/renderer/renderer.vanilla.umd.js +64 -31
- package/dist/renderer/resolve.d.ts +1 -1
- package/dist/renderer/resolve.js +28 -14
- package/dist/renderer/types.d.ts +2 -0
- package/dist/service/element.action.svelte.d.ts +21 -0
- package/dist/service/element.action.svelte.js +125 -0
- package/dist/service/element.history.svelte.d.ts +8 -0
- package/dist/service/element.history.svelte.js +36 -0
- package/dist/service/element.io.svelte.d.ts +4 -0
- package/dist/service/element.io.svelte.js +232 -0
- package/dist/service/element.reader.svelte.d.ts +4 -0
- package/dist/service/element.reader.svelte.js +51 -0
- package/dist/service/element.translate.svelte.d.ts +12 -0
- package/dist/service/element.translate.svelte.js +81 -0
- package/dist/service/index.d.ts +5 -0
- package/dist/service/index.js +5 -0
- package/dist/service/types.d.ts +13 -0
- package/dist/service/types.js +1 -0
- package/dist/settings/base.svelte.d.ts +6 -1
- package/dist/settings/base.svelte.js +64 -22
- package/dist/settings/components/ColorSettings.svelte +174 -45
- package/dist/settings/components/ColorSettings.svelte.d.ts +3 -2
- package/dist/settings/components/ListSettings.svelte +11 -12
- package/dist/settings/components/NumberSettings.svelte +121 -24
- package/dist/settings/components/RepeaterSettings.svelte +145 -0
- package/dist/settings/components/RepeaterSettings.svelte.d.ts +14 -0
- package/dist/settings/components/SegmentSettings.svelte +85 -0
- package/dist/settings/components/SegmentSettings.svelte.d.ts +5 -0
- package/dist/settings/components/SelectSettings.svelte +6 -7
- package/dist/settings/components/SettingsGroup.svelte +13 -68
- package/dist/settings/components/SettingsRenderer.svelte +76 -0
- package/dist/settings/components/SettingsRenderer.svelte.d.ts +8 -0
- package/dist/settings/components/TextSettings.svelte +52 -2
- package/dist/settings/components/TranslatableSettings.svelte +16 -17
- package/dist/settings/components/UploadSettings.svelte +7 -8
- package/dist/settings/groups.d.ts +23 -7
- package/dist/settings/groups.js +48 -24
- package/dist/settings/implementation.svelte.js +4 -0
- package/dist/settings/index.d.ts +2 -0
- package/dist/settings/index.js +2 -0
- package/dist/settings/mode.svelte.d.ts +4 -0
- package/dist/settings/mode.svelte.js +4 -0
- package/dist/settings/repeater.svelte.d.ts +26 -0
- package/dist/settings/repeater.svelte.js +70 -0
- package/dist/settings/types.d.ts +28 -2
- package/package.json +11 -5
- package/dist/elements/auth/authElement.svelte +0 -115
- package/dist/elements/auth/authElement.svelte.d.ts +0 -7
- package/dist/elements/auth/settings.d.ts +0 -25
- package/dist/elements/auth/settings.js +0 -63
- package/dist/elements/badge/badgeElement.svelte +0 -48
- package/dist/elements/badge/badgeElement.svelte.d.ts +0 -7
- package/dist/elements/badge/settings.d.ts +0 -13
- package/dist/elements/badge/settings.js +0 -57
- package/dist/elements/cards/cardsElement.svelte +0 -136
- package/dist/elements/cards/cardsElement.svelte.d.ts +0 -7
- package/dist/elements/cards/settings.d.ts +0 -14
- package/dist/elements/cards/settings.js +0 -52
- package/dist/elements/divider/dividerElement.svelte +0 -34
- package/dist/elements/divider/dividerElement.svelte.d.ts +0 -7
- package/dist/elements/divider/settings.d.ts +0 -7
- package/dist/elements/divider/settings.js +0 -15
- package/dist/elements/products/productsElement.svelte +0 -283
- package/dist/elements/products/productsElement.svelte.d.ts +0 -7
- package/dist/elements/products/settings.d.ts +0 -16
- package/dist/elements/products/settings.js +0 -56
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
const
|
|
2
|
-
var
|
|
3
|
-
const
|
|
1
|
+
const P = /* @__PURE__ */ Symbol(), sn = "http://www.w3.org/1999/xhtml", Qn = !1;
|
|
2
|
+
var an = Array.isArray, $n = Array.prototype.indexOf, Ge = Array.prototype.includes, pt = Array.from, er = Object.defineProperty, tt = Object.getOwnPropertyDescriptor, tr = Object.getOwnPropertyDescriptors, nr = Object.prototype, rr = Array.prototype, ln = Object.getPrototypeOf, Ht = Object.isExtensible;
|
|
3
|
+
const ir = () => {
|
|
4
4
|
};
|
|
5
|
-
function
|
|
5
|
+
function sr(e) {
|
|
6
6
|
for (var t = 0; t < e.length; t++)
|
|
7
7
|
e[t]();
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function on() {
|
|
10
10
|
var e, t, n = new Promise((r, i) => {
|
|
11
11
|
e = r, t = i;
|
|
12
12
|
});
|
|
13
13
|
return { promise: n, resolve: e, reject: t };
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const L = 2, He = 4, gt = 8, fn = 1 << 24, ke = 16, ae = 32, Oe = 64, bt = 128, $ = 512, D = 1024, q = 2048, le = 4096, K = 8192, se = 16384, De = 32768, Vt = 1 << 25, be = 65536, Ut = 1 << 17, ar = 1 << 18, Xe = 1 << 19, lr = 1 << 20, ce = 1 << 25, Fe = 65536, yt = 1 << 21, Rt = 1 << 22, _e = 1 << 23, xt = /* @__PURE__ */ Symbol("$state"), or = /* @__PURE__ */ Symbol(""), ue = new class extends Error {
|
|
16
16
|
name = "StaleReactionError";
|
|
17
17
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
18
18
|
}();
|
|
19
|
-
function
|
|
19
|
+
function fr() {
|
|
20
20
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ur(e, t, n) {
|
|
23
23
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function cr(e) {
|
|
26
26
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function dr() {
|
|
29
29
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function vr(e) {
|
|
32
32
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function hr() {
|
|
35
35
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function pr() {
|
|
38
38
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function gr() {
|
|
41
41
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function _r() {
|
|
44
44
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function mr() {
|
|
47
47
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
48
48
|
}
|
|
49
49
|
function xr() {
|
|
50
50
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function un(e) {
|
|
53
53
|
return e === this.v;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function wr(e, t) {
|
|
56
56
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return !
|
|
58
|
+
function cn(e) {
|
|
59
|
+
return !wr(e, this.v);
|
|
60
60
|
}
|
|
61
|
-
let
|
|
62
|
-
function
|
|
63
|
-
|
|
61
|
+
let br = !1, te = null;
|
|
62
|
+
function Ve(e) {
|
|
63
|
+
te = e;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
p:
|
|
65
|
+
function Ee(e, t = !1, n) {
|
|
66
|
+
te = {
|
|
67
|
+
p: te,
|
|
68
68
|
i: !1,
|
|
69
69
|
c: null,
|
|
70
70
|
e: null,
|
|
@@ -77,48 +77,48 @@ function ie(e, t = !1, n) {
|
|
|
77
77
|
l: null
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Te(e) {
|
|
81
81
|
var t = (
|
|
82
82
|
/** @type {ComponentContext} */
|
|
83
|
-
|
|
83
|
+
te
|
|
84
84
|
), n = t.e;
|
|
85
85
|
if (n !== null) {
|
|
86
86
|
t.e = null;
|
|
87
87
|
for (var r of n)
|
|
88
|
-
|
|
88
|
+
In(r);
|
|
89
89
|
}
|
|
90
|
-
return t.i = !0,
|
|
90
|
+
return t.i = !0, te = t.p, /** @type {T} */
|
|
91
91
|
{};
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function dn() {
|
|
94
94
|
return !0;
|
|
95
95
|
}
|
|
96
|
-
let
|
|
97
|
-
function
|
|
98
|
-
var e =
|
|
99
|
-
|
|
96
|
+
let Pe = [];
|
|
97
|
+
function yr() {
|
|
98
|
+
var e = Pe;
|
|
99
|
+
Pe = [], sr(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
if (
|
|
103
|
-
var t =
|
|
101
|
+
function qe(e) {
|
|
102
|
+
if (Pe.length === 0) {
|
|
103
|
+
var t = Pe;
|
|
104
104
|
queueMicrotask(() => {
|
|
105
|
-
t ===
|
|
105
|
+
t === Pe && yr();
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
Pe.push(e);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function vn(e) {
|
|
111
111
|
var t = k;
|
|
112
112
|
if (t === null)
|
|
113
|
-
return b.f |=
|
|
114
|
-
if ((t.f &
|
|
113
|
+
return b.f |= _e, e;
|
|
114
|
+
if ((t.f & De) === 0 && (t.f & He) === 0)
|
|
115
115
|
throw e;
|
|
116
|
-
|
|
116
|
+
ge(e, t);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function ge(e, t) {
|
|
119
119
|
for (; t !== null; ) {
|
|
120
|
-
if ((t.f &
|
|
121
|
-
if ((t.f &
|
|
120
|
+
if ((t.f & bt) !== 0) {
|
|
121
|
+
if ((t.f & De) === 0)
|
|
122
122
|
throw e;
|
|
123
123
|
try {
|
|
124
124
|
t.b.error(e);
|
|
@@ -131,29 +131,29 @@ function me(e, t) {
|
|
|
131
131
|
}
|
|
132
132
|
throw e;
|
|
133
133
|
}
|
|
134
|
-
const
|
|
135
|
-
function
|
|
136
|
-
e.f = e.f &
|
|
134
|
+
const kr = -7169;
|
|
135
|
+
function z(e, t) {
|
|
136
|
+
e.f = e.f & kr | t;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
(e.f &
|
|
138
|
+
function It(e) {
|
|
139
|
+
(e.f & $) !== 0 || e.deps === null ? z(e, D) : z(e, le);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function hn(e) {
|
|
142
142
|
if (e !== null)
|
|
143
143
|
for (const t of e)
|
|
144
|
-
(t.f &
|
|
144
|
+
(t.f & L) === 0 || (t.f & Fe) === 0 || (t.f ^= Fe, hn(
|
|
145
145
|
/** @type {Derived} */
|
|
146
146
|
t.deps
|
|
147
147
|
));
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
(e.f & q) !== 0 ? t.add(e) : (e.f &
|
|
149
|
+
function pn(e, t, n) {
|
|
150
|
+
(e.f & q) !== 0 ? t.add(e) : (e.f & le) !== 0 && n.add(e), hn(e.deps), z(e, D);
|
|
151
151
|
}
|
|
152
|
-
const
|
|
153
|
-
let
|
|
154
|
-
var
|
|
152
|
+
const he = /* @__PURE__ */ new Set();
|
|
153
|
+
let N = null, re = null, kt = null, wt = !1, Be = null, ut = null;
|
|
154
|
+
var Wt = 0;
|
|
155
155
|
let Er = 1;
|
|
156
|
-
class
|
|
156
|
+
class ye {
|
|
157
157
|
id = Er++;
|
|
158
158
|
/**
|
|
159
159
|
* The current values of any signals that are updated in this batch.
|
|
@@ -209,7 +209,7 @@ class Ee {
|
|
|
209
209
|
* Deferred effects that are MAYBE_DIRTY
|
|
210
210
|
* @type {Set<Effect>}
|
|
211
211
|
*/
|
|
212
|
-
#
|
|
212
|
+
#a = /* @__PURE__ */ new Set();
|
|
213
213
|
/**
|
|
214
214
|
* A map of branches that still exist, but will be destroyed when this batch
|
|
215
215
|
* is committed — we skip over these during `process`.
|
|
@@ -217,7 +217,7 @@ class Ee {
|
|
|
217
217
|
* so they can be rescheduled if the branch survives.
|
|
218
218
|
* @type {Map<Effect, { d: Effect[], m: Effect[] }>}
|
|
219
219
|
*/
|
|
220
|
-
#
|
|
220
|
+
#l = /* @__PURE__ */ new Map();
|
|
221
221
|
is_fork = !1;
|
|
222
222
|
#c = !1;
|
|
223
223
|
/** @type {Set<Batch>} */
|
|
@@ -229,7 +229,7 @@ class Ee {
|
|
|
229
229
|
for (const r of this.#f)
|
|
230
230
|
for (const i of r.#r.keys()) {
|
|
231
231
|
for (var t = !1, n = i; n.parent !== null; ) {
|
|
232
|
-
if (this.#
|
|
232
|
+
if (this.#l.has(n)) {
|
|
233
233
|
t = !0;
|
|
234
234
|
break;
|
|
235
235
|
}
|
|
@@ -245,7 +245,7 @@ class Ee {
|
|
|
245
245
|
* @param {Effect} effect
|
|
246
246
|
*/
|
|
247
247
|
skip_effect(t) {
|
|
248
|
-
this.#
|
|
248
|
+
this.#l.has(t) || this.#l.set(t, { d: [], m: [] });
|
|
249
249
|
}
|
|
250
250
|
/**
|
|
251
251
|
* Remove an effect from the #skipped_branches map and reschedule
|
|
@@ -253,55 +253,55 @@ class Ee {
|
|
|
253
253
|
* @param {Effect} effect
|
|
254
254
|
*/
|
|
255
255
|
unskip_effect(t) {
|
|
256
|
-
var n = this.#
|
|
256
|
+
var n = this.#l.get(t);
|
|
257
257
|
if (n) {
|
|
258
|
-
this.#
|
|
258
|
+
this.#l.delete(t);
|
|
259
259
|
for (var r of n.d)
|
|
260
|
-
|
|
260
|
+
z(r, q), this.schedule(r);
|
|
261
261
|
for (r of n.m)
|
|
262
|
-
|
|
262
|
+
z(r, le), this.schedule(r);
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
#v() {
|
|
266
|
-
if (
|
|
266
|
+
if (Wt++ > 1e3 && (he.delete(this), Tr()), !this.#d()) {
|
|
267
267
|
for (const a of this.#s)
|
|
268
|
-
this.#
|
|
269
|
-
for (const a of this.#
|
|
270
|
-
|
|
268
|
+
this.#a.delete(a), z(a, q), this.schedule(a);
|
|
269
|
+
for (const a of this.#a)
|
|
270
|
+
z(a, le), this.schedule(a);
|
|
271
271
|
}
|
|
272
272
|
const t = this.#n;
|
|
273
273
|
this.#n = [], this.apply();
|
|
274
|
-
var n =
|
|
274
|
+
var n = Be = [], r = [], i = ut = [];
|
|
275
275
|
for (const a of t)
|
|
276
276
|
try {
|
|
277
277
|
this.#u(a, n, r);
|
|
278
|
-
} catch (
|
|
279
|
-
throw
|
|
278
|
+
} catch (f) {
|
|
279
|
+
throw xn(a), f;
|
|
280
280
|
}
|
|
281
|
-
if (
|
|
282
|
-
var s =
|
|
281
|
+
if (N = null, i.length > 0) {
|
|
282
|
+
var s = ye.ensure();
|
|
283
283
|
for (const a of i)
|
|
284
284
|
s.schedule(a);
|
|
285
285
|
}
|
|
286
|
-
if (
|
|
286
|
+
if (Be = null, ut = null, this.#d() || this.#h()) {
|
|
287
287
|
this.#p(r), this.#p(n);
|
|
288
|
-
for (const [a,
|
|
289
|
-
|
|
288
|
+
for (const [a, f] of this.#l)
|
|
289
|
+
mn(a, f);
|
|
290
290
|
} else {
|
|
291
|
-
this.#e.size === 0 &&
|
|
291
|
+
this.#e.size === 0 && he.delete(this), this.#s.clear(), this.#a.clear();
|
|
292
292
|
for (const a of this.#t) a(this);
|
|
293
|
-
this.#t.clear(),
|
|
293
|
+
this.#t.clear(), Yt(r), Yt(n), this.#i?.resolve();
|
|
294
294
|
}
|
|
295
295
|
var o = (
|
|
296
296
|
/** @type {Batch | null} */
|
|
297
297
|
/** @type {unknown} */
|
|
298
|
-
|
|
298
|
+
N
|
|
299
299
|
);
|
|
300
300
|
if (this.#n.length > 0) {
|
|
301
301
|
const a = o ??= this;
|
|
302
|
-
a.#n.push(...this.#n.filter((
|
|
302
|
+
a.#n.push(...this.#n.filter((f) => !a.#n.includes(f)));
|
|
303
303
|
}
|
|
304
|
-
o !== null && (
|
|
304
|
+
o !== null && (he.add(o), o.#v()), he.has(this) || this.#m();
|
|
305
305
|
}
|
|
306
306
|
/**
|
|
307
307
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -311,14 +311,14 @@ class Ee {
|
|
|
311
311
|
* @param {Effect[]} render_effects
|
|
312
312
|
*/
|
|
313
313
|
#u(t, n, r) {
|
|
314
|
-
t.f ^=
|
|
314
|
+
t.f ^= D;
|
|
315
315
|
for (var i = t.first; i !== null; ) {
|
|
316
|
-
var s = i.f, o = (s & (
|
|
317
|
-
if (!
|
|
318
|
-
o ? i.f ^=
|
|
319
|
-
var
|
|
320
|
-
if (
|
|
321
|
-
i =
|
|
316
|
+
var s = i.f, o = (s & (ae | Oe)) !== 0, a = o && (s & D) !== 0, f = a || (s & K) !== 0 || this.#l.has(i);
|
|
317
|
+
if (!f && i.fn !== null) {
|
|
318
|
+
o ? i.f ^= D : (s & He) !== 0 ? n.push(i) : lt(i) && ((s & ke) !== 0 && this.#a.add(i), Ye(i));
|
|
319
|
+
var l = i.first;
|
|
320
|
+
if (l !== null) {
|
|
321
|
+
i = l;
|
|
322
322
|
continue;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
@@ -337,7 +337,7 @@ class Ee {
|
|
|
337
337
|
*/
|
|
338
338
|
#p(t) {
|
|
339
339
|
for (var n = 0; n < t.length; n += 1)
|
|
340
|
-
|
|
340
|
+
pn(t[n], this.#s, this.#a);
|
|
341
341
|
}
|
|
342
342
|
/**
|
|
343
343
|
* Associate a change to a given source with the current
|
|
@@ -347,60 +347,60 @@ class Ee {
|
|
|
347
347
|
* @param {boolean} [is_derived]
|
|
348
348
|
*/
|
|
349
349
|
capture(t, n, r = !1) {
|
|
350
|
-
n !==
|
|
350
|
+
n !== P && !this.previous.has(t) && this.previous.set(t, n), (t.f & _e) === 0 && (this.current.set(t, [t.v, r]), re?.set(t, t.v));
|
|
351
351
|
}
|
|
352
352
|
activate() {
|
|
353
|
-
|
|
353
|
+
N = this;
|
|
354
354
|
}
|
|
355
355
|
deactivate() {
|
|
356
|
-
|
|
356
|
+
N = null, re = null;
|
|
357
357
|
}
|
|
358
358
|
flush() {
|
|
359
359
|
try {
|
|
360
|
-
|
|
360
|
+
wt = !0, N = this, this.#v();
|
|
361
361
|
} finally {
|
|
362
|
-
|
|
362
|
+
Wt = 0, kt = null, Be = null, ut = null, wt = !1, N = null, re = null, me.clear();
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
discard() {
|
|
366
366
|
for (const t of this.#o) t(this);
|
|
367
|
-
this.#o.clear(),
|
|
367
|
+
this.#o.clear(), he.delete(this);
|
|
368
368
|
}
|
|
369
|
-
#
|
|
370
|
-
for (const
|
|
371
|
-
var t =
|
|
372
|
-
for (const [u, [
|
|
373
|
-
if (
|
|
369
|
+
#m() {
|
|
370
|
+
for (const l of he) {
|
|
371
|
+
var t = l.id < this.id, n = [];
|
|
372
|
+
for (const [u, [d, v]] of this.current) {
|
|
373
|
+
if (l.current.has(u)) {
|
|
374
374
|
var r = (
|
|
375
375
|
/** @type {[any, boolean]} */
|
|
376
|
-
|
|
376
|
+
l.current.get(u)[0]
|
|
377
377
|
);
|
|
378
|
-
if (t &&
|
|
379
|
-
|
|
378
|
+
if (t && d !== r)
|
|
379
|
+
l.current.set(u, [d, v]);
|
|
380
380
|
else
|
|
381
381
|
continue;
|
|
382
382
|
}
|
|
383
383
|
n.push(u);
|
|
384
384
|
}
|
|
385
|
-
var i = [...
|
|
385
|
+
var i = [...l.current.keys()].filter((u) => !this.current.has(u));
|
|
386
386
|
if (i.length === 0)
|
|
387
|
-
t &&
|
|
387
|
+
t && l.discard();
|
|
388
388
|
else if (n.length > 0) {
|
|
389
|
-
|
|
389
|
+
l.activate();
|
|
390
390
|
var s = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
391
391
|
for (var a of n)
|
|
392
|
-
|
|
393
|
-
if (
|
|
394
|
-
|
|
395
|
-
for (var
|
|
396
|
-
|
|
397
|
-
|
|
392
|
+
gn(a, i, s, o);
|
|
393
|
+
if (l.#n.length > 0) {
|
|
394
|
+
l.apply();
|
|
395
|
+
for (var f of l.#n)
|
|
396
|
+
l.#u(f, [], []);
|
|
397
|
+
l.#n = [];
|
|
398
398
|
}
|
|
399
|
-
|
|
399
|
+
l.deactivate();
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
for (const
|
|
403
|
-
|
|
402
|
+
for (const l of he)
|
|
403
|
+
l.#f.has(this) && (l.#f.delete(this), l.#f.size === 0 && !l.#d() && (l.activate(), l.#v()));
|
|
404
404
|
}
|
|
405
405
|
/**
|
|
406
406
|
* @param {boolean} blocking
|
|
@@ -424,7 +424,7 @@ class Ee {
|
|
|
424
424
|
let s = this.#r.get(n) ?? 0;
|
|
425
425
|
s === 1 ? this.#r.delete(n) : this.#r.set(n, s - 1);
|
|
426
426
|
}
|
|
427
|
-
this.#c || r || (this.#c = !0,
|
|
427
|
+
this.#c || r || (this.#c = !0, qe(() => {
|
|
428
428
|
this.#c = !1, this.flush();
|
|
429
429
|
}));
|
|
430
430
|
}
|
|
@@ -436,7 +436,7 @@ class Ee {
|
|
|
436
436
|
for (const r of t)
|
|
437
437
|
this.#s.add(r);
|
|
438
438
|
for (const r of n)
|
|
439
|
-
this.#
|
|
439
|
+
this.#a.add(r);
|
|
440
440
|
t.clear(), n.clear();
|
|
441
441
|
}
|
|
442
442
|
/** @param {(batch: Batch) => void} fn */
|
|
@@ -448,20 +448,20 @@ class Ee {
|
|
|
448
448
|
this.#o.add(t);
|
|
449
449
|
}
|
|
450
450
|
settled() {
|
|
451
|
-
return (this.#i ??=
|
|
451
|
+
return (this.#i ??= on()).promise;
|
|
452
452
|
}
|
|
453
453
|
static ensure() {
|
|
454
|
-
if (
|
|
455
|
-
const t =
|
|
456
|
-
|
|
457
|
-
|
|
454
|
+
if (N === null) {
|
|
455
|
+
const t = N = new ye();
|
|
456
|
+
wt || (he.add(N), qe(() => {
|
|
457
|
+
N === t && t.flush();
|
|
458
458
|
}));
|
|
459
459
|
}
|
|
460
|
-
return
|
|
460
|
+
return N;
|
|
461
461
|
}
|
|
462
462
|
apply() {
|
|
463
463
|
{
|
|
464
|
-
|
|
464
|
+
re = null;
|
|
465
465
|
return;
|
|
466
466
|
}
|
|
467
467
|
}
|
|
@@ -470,80 +470,80 @@ class Ee {
|
|
|
470
470
|
* @param {Effect} effect
|
|
471
471
|
*/
|
|
472
472
|
schedule(t) {
|
|
473
|
-
if (
|
|
473
|
+
if (kt = t, t.b?.is_pending && (t.f & (He | gt | fn)) !== 0 && (t.f & De) === 0) {
|
|
474
474
|
t.b.defer_effect(t);
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
477
|
for (var n = t; n.parent !== null; ) {
|
|
478
478
|
n = n.parent;
|
|
479
479
|
var r = n.f;
|
|
480
|
-
if (
|
|
480
|
+
if (Be !== null && n === k && (b === null || (b.f & L) === 0))
|
|
481
481
|
return;
|
|
482
|
-
if ((r & (
|
|
483
|
-
if ((r &
|
|
482
|
+
if ((r & (Oe | ae)) !== 0) {
|
|
483
|
+
if ((r & D) === 0)
|
|
484
484
|
return;
|
|
485
|
-
n.f ^=
|
|
485
|
+
n.f ^= D;
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
this.#n.push(n);
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Tr() {
|
|
492
492
|
try {
|
|
493
|
-
|
|
493
|
+
hr();
|
|
494
494
|
} catch (e) {
|
|
495
|
-
|
|
495
|
+
ge(e, kt);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
let
|
|
499
|
-
function
|
|
498
|
+
let fe = null;
|
|
499
|
+
function Yt(e) {
|
|
500
500
|
var t = e.length;
|
|
501
501
|
if (t !== 0) {
|
|
502
502
|
for (var n = 0; n < t; ) {
|
|
503
503
|
var r = e[n++];
|
|
504
|
-
if ((r.f & (
|
|
505
|
-
|
|
506
|
-
for (const i of
|
|
507
|
-
if ((i.f & (
|
|
504
|
+
if ((r.f & (se | K)) === 0 && lt(r) && (fe = /* @__PURE__ */ new Set(), Ye(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Fn(r), fe?.size > 0)) {
|
|
505
|
+
me.clear();
|
|
506
|
+
for (const i of fe) {
|
|
507
|
+
if ((i.f & (se | K)) !== 0) continue;
|
|
508
508
|
const s = [i];
|
|
509
509
|
let o = i.parent;
|
|
510
510
|
for (; o !== null; )
|
|
511
|
-
|
|
511
|
+
fe.has(o) && (fe.delete(o), s.push(o)), o = o.parent;
|
|
512
512
|
for (let a = s.length - 1; a >= 0; a--) {
|
|
513
|
-
const
|
|
514
|
-
(
|
|
513
|
+
const f = s[a];
|
|
514
|
+
(f.f & (se | K)) === 0 && Ye(f);
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
|
|
517
|
+
fe.clear();
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
|
|
520
|
+
fe = null;
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function gn(e, t, n, r) {
|
|
524
524
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
525
525
|
for (const i of e.reactions) {
|
|
526
526
|
const s = i.f;
|
|
527
|
-
(s &
|
|
527
|
+
(s & L) !== 0 ? gn(
|
|
528
528
|
/** @type {Derived} */
|
|
529
529
|
i,
|
|
530
530
|
t,
|
|
531
531
|
n,
|
|
532
532
|
r
|
|
533
|
-
) : (s & (
|
|
533
|
+
) : (s & (Rt | ke)) !== 0 && (s & q) === 0 && _n(i, t, r) && (z(i, q), Ot(
|
|
534
534
|
/** @type {Effect} */
|
|
535
535
|
i
|
|
536
536
|
));
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function _n(e, t, n) {
|
|
540
540
|
const r = n.get(e);
|
|
541
541
|
if (r !== void 0) return r;
|
|
542
542
|
if (e.deps !== null)
|
|
543
543
|
for (const i of e.deps) {
|
|
544
|
-
if (
|
|
544
|
+
if (Ge.call(t, i))
|
|
545
545
|
return !0;
|
|
546
|
-
if ((i.f &
|
|
546
|
+
if ((i.f & L) !== 0 && _n(
|
|
547
547
|
/** @type {Derived} */
|
|
548
548
|
i,
|
|
549
549
|
t,
|
|
@@ -557,36 +557,36 @@ function dn(e, t, n) {
|
|
|
557
557
|
}
|
|
558
558
|
return n.set(e, !1), !1;
|
|
559
559
|
}
|
|
560
|
-
function
|
|
561
|
-
|
|
560
|
+
function Ot(e) {
|
|
561
|
+
N.schedule(e);
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
if (!((e.f &
|
|
565
|
-
(e.f & q) !== 0 ? t.d.push(e) : (e.f &
|
|
563
|
+
function mn(e, t) {
|
|
564
|
+
if (!((e.f & ae) !== 0 && (e.f & D) !== 0)) {
|
|
565
|
+
(e.f & q) !== 0 ? t.d.push(e) : (e.f & le) !== 0 && t.m.push(e), z(e, D);
|
|
566
566
|
for (var n = e.first; n !== null; )
|
|
567
|
-
|
|
567
|
+
mn(n, t), n = n.next;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
|
|
570
|
+
function xn(e) {
|
|
571
|
+
z(e, D);
|
|
572
572
|
for (var t = e.first; t !== null; )
|
|
573
|
-
|
|
573
|
+
xn(t), t = t.next;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
let t = 0, n =
|
|
575
|
+
function Ar(e) {
|
|
576
|
+
let t = 0, n = je(0), r;
|
|
577
577
|
return () => {
|
|
578
|
-
zt() && (
|
|
579
|
-
|
|
580
|
-
t -= 1, t === 0 && (r?.(), r = void 0,
|
|
578
|
+
zt() && (p(n), Yr(() => (t === 0 && (r = Qr(() => e(() => nt(n)))), t += 1, () => {
|
|
579
|
+
qe(() => {
|
|
580
|
+
t -= 1, t === 0 && (r?.(), r = void 0, nt(n));
|
|
581
581
|
});
|
|
582
582
|
})));
|
|
583
583
|
};
|
|
584
584
|
}
|
|
585
|
-
var
|
|
586
|
-
function
|
|
587
|
-
new
|
|
585
|
+
var Sr = be | Xe;
|
|
586
|
+
function Cr(e, t, n, r) {
|
|
587
|
+
new Mr(e, t, n, r);
|
|
588
588
|
}
|
|
589
|
-
class
|
|
589
|
+
class Mr {
|
|
590
590
|
/** @type {Boundary | null} */
|
|
591
591
|
parent;
|
|
592
592
|
is_pending = !1;
|
|
@@ -611,9 +611,9 @@ class Ar {
|
|
|
611
611
|
/** @type {Effect | null} */
|
|
612
612
|
#s = null;
|
|
613
613
|
/** @type {Effect | null} */
|
|
614
|
-
#l = null;
|
|
615
|
-
/** @type {DocumentFragment | null} */
|
|
616
614
|
#a = null;
|
|
615
|
+
/** @type {DocumentFragment | null} */
|
|
616
|
+
#l = null;
|
|
617
617
|
#c = 0;
|
|
618
618
|
#f = 0;
|
|
619
619
|
#d = !1;
|
|
@@ -629,7 +629,7 @@ class Ar {
|
|
|
629
629
|
* @type {Source<number> | null}
|
|
630
630
|
*/
|
|
631
631
|
#u = null;
|
|
632
|
-
#p =
|
|
632
|
+
#p = Ar(() => (this.#u = je(this.#c), () => {
|
|
633
633
|
this.#u = null;
|
|
634
634
|
}));
|
|
635
635
|
/**
|
|
@@ -644,15 +644,15 @@ class Ar {
|
|
|
644
644
|
/** @type {Effect} */
|
|
645
645
|
k
|
|
646
646
|
);
|
|
647
|
-
o.b = this, o.f |=
|
|
647
|
+
o.b = this, o.f |= bt, r(s);
|
|
648
648
|
}, this.parent = /** @type {Effect} */
|
|
649
|
-
k.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i =
|
|
650
|
-
this.#
|
|
651
|
-
},
|
|
649
|
+
k.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = at(() => {
|
|
650
|
+
this.#x();
|
|
651
|
+
}, Sr);
|
|
652
652
|
}
|
|
653
|
-
#
|
|
653
|
+
#m() {
|
|
654
654
|
try {
|
|
655
|
-
this.#n =
|
|
655
|
+
this.#n = Z(() => this.#r(this.#t));
|
|
656
656
|
} catch (t) {
|
|
657
657
|
this.error(t);
|
|
658
658
|
}
|
|
@@ -662,7 +662,7 @@ class Ar {
|
|
|
662
662
|
*/
|
|
663
663
|
#b(t) {
|
|
664
664
|
const n = this.#e.failed;
|
|
665
|
-
n && (this.#
|
|
665
|
+
n && (this.#a = Z(() => {
|
|
666
666
|
n(
|
|
667
667
|
this.#t,
|
|
668
668
|
() => t,
|
|
@@ -673,9 +673,9 @@ class Ar {
|
|
|
673
673
|
}
|
|
674
674
|
#y() {
|
|
675
675
|
const t = this.#e.pending;
|
|
676
|
-
t && (this.is_pending = !0, this.#s =
|
|
677
|
-
var n = this.#
|
|
678
|
-
n.append(r), this.#n = this.#_(() =>
|
|
676
|
+
t && (this.is_pending = !0, this.#s = Z(() => t(this.#t)), qe(() => {
|
|
677
|
+
var n = this.#l = document.createDocumentFragment(), r = xe();
|
|
678
|
+
n.append(r), this.#n = this.#_(() => Z(() => this.#r(r))), this.#f === 0 && (this.#t.before(n), this.#l = null, Re(
|
|
679
679
|
/** @type {Effect} */
|
|
680
680
|
this.#s,
|
|
681
681
|
() => {
|
|
@@ -683,26 +683,26 @@ class Ar {
|
|
|
683
683
|
}
|
|
684
684
|
), this.#g(
|
|
685
685
|
/** @type {Batch} */
|
|
686
|
-
|
|
686
|
+
N
|
|
687
687
|
));
|
|
688
688
|
}));
|
|
689
689
|
}
|
|
690
|
-
#
|
|
690
|
+
#x() {
|
|
691
691
|
try {
|
|
692
|
-
if (this.is_pending = this.has_pending_snippet(), this.#f = 0, this.#c = 0, this.#n =
|
|
692
|
+
if (this.is_pending = this.has_pending_snippet(), this.#f = 0, this.#c = 0, this.#n = Z(() => {
|
|
693
693
|
this.#r(this.#t);
|
|
694
694
|
}), this.#f > 0) {
|
|
695
|
-
var t = this.#
|
|
695
|
+
var t = this.#l = document.createDocumentFragment();
|
|
696
696
|
Pt(this.#n, t);
|
|
697
697
|
const n = (
|
|
698
698
|
/** @type {(anchor: Node) => void} */
|
|
699
699
|
this.#e.pending
|
|
700
700
|
);
|
|
701
|
-
this.#s =
|
|
701
|
+
this.#s = Z(() => n(this.#t));
|
|
702
702
|
} else
|
|
703
703
|
this.#g(
|
|
704
704
|
/** @type {Batch} */
|
|
705
|
-
|
|
705
|
+
N
|
|
706
706
|
);
|
|
707
707
|
} catch (n) {
|
|
708
708
|
this.error(n);
|
|
@@ -719,7 +719,7 @@ class Ar {
|
|
|
719
719
|
* @param {Effect} effect
|
|
720
720
|
*/
|
|
721
721
|
defer_effect(t) {
|
|
722
|
-
|
|
722
|
+
pn(t, this.#h, this.#v);
|
|
723
723
|
}
|
|
724
724
|
/**
|
|
725
725
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -736,14 +736,14 @@ class Ar {
|
|
|
736
736
|
* @param {() => T} fn
|
|
737
737
|
*/
|
|
738
738
|
#_(t) {
|
|
739
|
-
var n = k, r = b, i =
|
|
740
|
-
|
|
739
|
+
var n = k, r = b, i = te;
|
|
740
|
+
oe(this.#i), ne(this.#i), Ve(this.#i.ctx);
|
|
741
741
|
try {
|
|
742
|
-
return
|
|
742
|
+
return ye.ensure(), t();
|
|
743
743
|
} catch (s) {
|
|
744
|
-
return
|
|
744
|
+
return vn(s), null;
|
|
745
745
|
} finally {
|
|
746
|
-
|
|
746
|
+
oe(n), ne(r), Ve(i);
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
/**
|
|
@@ -757,9 +757,9 @@ class Ar {
|
|
|
757
757
|
this.parent && this.parent.#w(t, n);
|
|
758
758
|
return;
|
|
759
759
|
}
|
|
760
|
-
this.#f += t, this.#f === 0 && (this.#g(n), this.#s &&
|
|
760
|
+
this.#f += t, this.#f === 0 && (this.#g(n), this.#s && Re(this.#s, () => {
|
|
761
761
|
this.#s = null;
|
|
762
|
-
}), this.#
|
|
762
|
+
}), this.#l && (this.#t.before(this.#l), this.#l = null));
|
|
763
763
|
}
|
|
764
764
|
/**
|
|
765
765
|
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
@@ -769,12 +769,12 @@ class Ar {
|
|
|
769
769
|
* @param {Batch} batch
|
|
770
770
|
*/
|
|
771
771
|
update_pending_count(t, n) {
|
|
772
|
-
this.#w(t, n), this.#c += t, !(!this.#u || this.#d) && (this.#d = !0,
|
|
773
|
-
this.#d = !1, this.#u &&
|
|
772
|
+
this.#w(t, n), this.#c += t, !(!this.#u || this.#d) && (this.#d = !0, qe(() => {
|
|
773
|
+
this.#d = !1, this.#u && Ue(this.#u, this.#c);
|
|
774
774
|
}));
|
|
775
775
|
}
|
|
776
776
|
get_effect_pending() {
|
|
777
|
-
return this.#p(),
|
|
777
|
+
return this.#p(), p(
|
|
778
778
|
/** @type {Source<number>} */
|
|
779
779
|
this.#u
|
|
780
780
|
);
|
|
@@ -785,66 +785,66 @@ class Ar {
|
|
|
785
785
|
let r = this.#e.failed;
|
|
786
786
|
if (!n && !r)
|
|
787
787
|
throw t;
|
|
788
|
-
this.#n && (V(this.#n), this.#n = null), this.#s && (V(this.#s), this.#s = null), this.#
|
|
788
|
+
this.#n && (V(this.#n), this.#n = null), this.#s && (V(this.#s), this.#s = null), this.#a && (V(this.#a), this.#a = null);
|
|
789
789
|
var i = !1, s = !1;
|
|
790
790
|
const o = () => {
|
|
791
791
|
if (i) {
|
|
792
792
|
xr();
|
|
793
793
|
return;
|
|
794
794
|
}
|
|
795
|
-
i = !0, s &&
|
|
796
|
-
this.#
|
|
795
|
+
i = !0, s && mr(), this.#a !== null && Re(this.#a, () => {
|
|
796
|
+
this.#a = null;
|
|
797
797
|
}), this.#_(() => {
|
|
798
|
-
this.#
|
|
798
|
+
this.#x();
|
|
799
799
|
});
|
|
800
|
-
}, a = (
|
|
800
|
+
}, a = (f) => {
|
|
801
801
|
try {
|
|
802
|
-
s = !0, n?.(
|
|
803
|
-
} catch (
|
|
804
|
-
|
|
802
|
+
s = !0, n?.(f, o), s = !1;
|
|
803
|
+
} catch (l) {
|
|
804
|
+
ge(l, this.#i && this.#i.parent);
|
|
805
805
|
}
|
|
806
|
-
r && (this.#
|
|
806
|
+
r && (this.#a = this.#_(() => {
|
|
807
807
|
try {
|
|
808
|
-
return
|
|
809
|
-
var
|
|
808
|
+
return Z(() => {
|
|
809
|
+
var l = (
|
|
810
810
|
/** @type {Effect} */
|
|
811
811
|
k
|
|
812
812
|
);
|
|
813
|
-
|
|
813
|
+
l.b = this, l.f |= bt, r(
|
|
814
814
|
this.#t,
|
|
815
|
-
() =>
|
|
815
|
+
() => f,
|
|
816
816
|
() => o
|
|
817
817
|
);
|
|
818
818
|
});
|
|
819
|
-
} catch (
|
|
820
|
-
return
|
|
821
|
-
|
|
819
|
+
} catch (l) {
|
|
820
|
+
return ge(
|
|
821
|
+
l,
|
|
822
822
|
/** @type {Effect} */
|
|
823
823
|
this.#i.parent
|
|
824
824
|
), null;
|
|
825
825
|
}
|
|
826
826
|
}));
|
|
827
827
|
};
|
|
828
|
-
|
|
829
|
-
var
|
|
828
|
+
qe(() => {
|
|
829
|
+
var f;
|
|
830
830
|
try {
|
|
831
|
-
|
|
832
|
-
} catch (
|
|
833
|
-
|
|
831
|
+
f = this.transform_error(t);
|
|
832
|
+
} catch (l) {
|
|
833
|
+
ge(l, this.#i && this.#i.parent);
|
|
834
834
|
return;
|
|
835
835
|
}
|
|
836
|
-
|
|
837
|
-
|
|
836
|
+
f !== null && typeof f == "object" && typeof /** @type {any} */
|
|
837
|
+
f.then == "function" ? f.then(
|
|
838
838
|
a,
|
|
839
839
|
/** @param {unknown} e */
|
|
840
|
-
(
|
|
841
|
-
) : a(
|
|
840
|
+
(l) => ge(l, this.#i && this.#i.parent)
|
|
841
|
+
) : a(f);
|
|
842
842
|
});
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
const i =
|
|
847
|
-
var s = e.filter((
|
|
845
|
+
function Nr(e, t, n, r) {
|
|
846
|
+
const i = Ft;
|
|
847
|
+
var s = e.filter((v) => !v.settled);
|
|
848
848
|
if (n.length === 0 && s.length === 0) {
|
|
849
849
|
r(t.map(i));
|
|
850
850
|
return;
|
|
@@ -852,44 +852,44 @@ function Mr(e, t, n, r) {
|
|
|
852
852
|
var o = (
|
|
853
853
|
/** @type {Effect} */
|
|
854
854
|
k
|
|
855
|
-
), a =
|
|
856
|
-
function
|
|
855
|
+
), a = Rr(), f = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((v) => v.promise)) : null;
|
|
856
|
+
function l(v) {
|
|
857
857
|
a();
|
|
858
858
|
try {
|
|
859
|
-
r(
|
|
859
|
+
r(v);
|
|
860
860
|
} catch (g) {
|
|
861
|
-
(o.f &
|
|
861
|
+
(o.f & se) === 0 && ge(g, o);
|
|
862
862
|
}
|
|
863
|
-
|
|
863
|
+
dt();
|
|
864
864
|
}
|
|
865
865
|
if (n.length === 0) {
|
|
866
|
-
|
|
866
|
+
f.then(() => l(t.map(i)));
|
|
867
867
|
return;
|
|
868
868
|
}
|
|
869
|
-
var u =
|
|
870
|
-
function
|
|
871
|
-
Promise.all(n.map((
|
|
869
|
+
var u = wn();
|
|
870
|
+
function d() {
|
|
871
|
+
Promise.all(n.map((v) => /* @__PURE__ */ Ir(v))).then((v) => l([...t.map(i), ...v])).catch((v) => ge(v, o)).finally(() => u());
|
|
872
872
|
}
|
|
873
|
-
|
|
874
|
-
a(),
|
|
875
|
-
}) :
|
|
873
|
+
f ? f.then(() => {
|
|
874
|
+
a(), d(), dt();
|
|
875
|
+
}) : d();
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function Rr() {
|
|
878
878
|
var e = (
|
|
879
879
|
/** @type {Effect} */
|
|
880
880
|
k
|
|
881
|
-
), t = b, n =
|
|
881
|
+
), t = b, n = te, r = (
|
|
882
882
|
/** @type {Batch} */
|
|
883
|
-
|
|
883
|
+
N
|
|
884
884
|
);
|
|
885
885
|
return function(s = !0) {
|
|
886
|
-
|
|
886
|
+
oe(e), ne(t), Ve(n), s && (e.f & se) === 0 && (r?.activate(), r?.apply());
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
|
-
function
|
|
890
|
-
|
|
889
|
+
function dt(e = !0) {
|
|
890
|
+
oe(null), ne(null), Ve(null), e && N?.deactivate();
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function wn() {
|
|
893
893
|
var e = (
|
|
894
894
|
/** @type {Effect} */
|
|
895
895
|
k
|
|
@@ -898,30 +898,30 @@ function pn() {
|
|
|
898
898
|
e.b
|
|
899
899
|
), n = (
|
|
900
900
|
/** @type {Batch} */
|
|
901
|
-
|
|
901
|
+
N
|
|
902
902
|
), r = t.is_rendered();
|
|
903
903
|
return t.update_pending_count(1, n), n.increment(r, e), (i = !1) => {
|
|
904
904
|
t.update_pending_count(-1, n), n.decrement(r, e, i);
|
|
905
905
|
};
|
|
906
906
|
}
|
|
907
907
|
// @__NO_SIDE_EFFECTS__
|
|
908
|
-
function
|
|
909
|
-
var t =
|
|
908
|
+
function Ft(e) {
|
|
909
|
+
var t = L | q, n = b !== null && (b.f & L) !== 0 ? (
|
|
910
910
|
/** @type {Derived} */
|
|
911
911
|
b
|
|
912
912
|
) : null;
|
|
913
|
-
return k !== null && (k.f |=
|
|
914
|
-
ctx:
|
|
913
|
+
return k !== null && (k.f |= Xe), {
|
|
914
|
+
ctx: te,
|
|
915
915
|
deps: null,
|
|
916
916
|
effects: null,
|
|
917
|
-
equals:
|
|
917
|
+
equals: un,
|
|
918
918
|
f: t,
|
|
919
919
|
fn: e,
|
|
920
920
|
reactions: null,
|
|
921
921
|
rv: 0,
|
|
922
922
|
v: (
|
|
923
923
|
/** @type {V} */
|
|
924
|
-
|
|
924
|
+
P
|
|
925
925
|
),
|
|
926
926
|
wv: 0,
|
|
927
927
|
parent: n ?? k,
|
|
@@ -929,93 +929,93 @@ function Rt(e) {
|
|
|
929
929
|
};
|
|
930
930
|
}
|
|
931
931
|
// @__NO_SIDE_EFFECTS__
|
|
932
|
-
function
|
|
932
|
+
function Ir(e, t, n) {
|
|
933
933
|
let r = (
|
|
934
934
|
/** @type {Effect | null} */
|
|
935
935
|
k
|
|
936
936
|
);
|
|
937
|
-
r === null &&
|
|
937
|
+
r === null && fr();
|
|
938
938
|
var i = (
|
|
939
939
|
/** @type {Promise<V>} */
|
|
940
940
|
/** @type {unknown} */
|
|
941
941
|
void 0
|
|
942
|
-
), s =
|
|
942
|
+
), s = je(
|
|
943
943
|
/** @type {V} */
|
|
944
|
-
|
|
944
|
+
P
|
|
945
945
|
), o = !b, a = /* @__PURE__ */ new Map();
|
|
946
|
-
return
|
|
947
|
-
var
|
|
946
|
+
return Wr(() => {
|
|
947
|
+
var f = (
|
|
948
948
|
/** @type {Effect} */
|
|
949
949
|
k
|
|
950
|
-
),
|
|
951
|
-
i =
|
|
950
|
+
), l = on();
|
|
951
|
+
i = l.promise;
|
|
952
952
|
try {
|
|
953
|
-
Promise.resolve(e()).then(
|
|
953
|
+
Promise.resolve(e()).then(l.resolve, l.reject).finally(dt);
|
|
954
954
|
} catch (g) {
|
|
955
|
-
|
|
955
|
+
l.reject(g), dt();
|
|
956
956
|
}
|
|
957
957
|
var u = (
|
|
958
958
|
/** @type {Batch} */
|
|
959
|
-
|
|
959
|
+
N
|
|
960
960
|
);
|
|
961
961
|
if (o) {
|
|
962
|
-
if ((
|
|
963
|
-
var
|
|
962
|
+
if ((f.f & De) !== 0)
|
|
963
|
+
var d = wn();
|
|
964
964
|
if (
|
|
965
965
|
/** @type {Boundary} */
|
|
966
966
|
r.b.is_rendered()
|
|
967
967
|
)
|
|
968
|
-
a.get(u)?.reject(
|
|
968
|
+
a.get(u)?.reject(ue), a.delete(u);
|
|
969
969
|
else {
|
|
970
970
|
for (const g of a.values())
|
|
971
|
-
g.reject(
|
|
971
|
+
g.reject(ue);
|
|
972
972
|
a.clear();
|
|
973
973
|
}
|
|
974
|
-
a.set(u,
|
|
974
|
+
a.set(u, l);
|
|
975
975
|
}
|
|
976
|
-
const
|
|
977
|
-
if (
|
|
978
|
-
var
|
|
979
|
-
h
|
|
976
|
+
const v = (g, c = void 0) => {
|
|
977
|
+
if (d) {
|
|
978
|
+
var h = c === ue;
|
|
979
|
+
d(h);
|
|
980
980
|
}
|
|
981
|
-
if (!(
|
|
982
|
-
if (u.activate(),
|
|
983
|
-
s.f |=
|
|
981
|
+
if (!(c === ue || (f.f & se) !== 0)) {
|
|
982
|
+
if (u.activate(), c)
|
|
983
|
+
s.f |= _e, Ue(s, c);
|
|
984
984
|
else {
|
|
985
|
-
(s.f &
|
|
986
|
-
for (const [
|
|
987
|
-
if (a.delete(
|
|
988
|
-
|
|
985
|
+
(s.f & _e) !== 0 && (s.f ^= _e), Ue(s, g);
|
|
986
|
+
for (const [m, w] of a) {
|
|
987
|
+
if (a.delete(m), m === u) break;
|
|
988
|
+
w.reject(ue);
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
991
|
u.deactivate();
|
|
992
992
|
}
|
|
993
993
|
};
|
|
994
|
-
|
|
994
|
+
l.promise.then(v, (g) => v(null, g || "unknown"));
|
|
995
995
|
}), Hr(() => {
|
|
996
|
-
for (const
|
|
997
|
-
|
|
998
|
-
}), new Promise((
|
|
999
|
-
function
|
|
1000
|
-
function
|
|
1001
|
-
u === i ?
|
|
996
|
+
for (const f of a.values())
|
|
997
|
+
f.reject(ue);
|
|
998
|
+
}), new Promise((f) => {
|
|
999
|
+
function l(u) {
|
|
1000
|
+
function d() {
|
|
1001
|
+
u === i ? f(s) : l(i);
|
|
1002
1002
|
}
|
|
1003
|
-
u.then(
|
|
1003
|
+
u.then(d, d);
|
|
1004
1004
|
}
|
|
1005
|
-
|
|
1005
|
+
l(i);
|
|
1006
1006
|
});
|
|
1007
1007
|
}
|
|
1008
1008
|
// @__NO_SIDE_EFFECTS__
|
|
1009
|
-
function
|
|
1010
|
-
const t = /* @__PURE__ */
|
|
1011
|
-
return
|
|
1009
|
+
function X(e) {
|
|
1010
|
+
const t = /* @__PURE__ */ Ft(e);
|
|
1011
|
+
return Dn(t), t;
|
|
1012
1012
|
}
|
|
1013
1013
|
// @__NO_SIDE_EFFECTS__
|
|
1014
1014
|
function Or(e) {
|
|
1015
|
-
const t = /* @__PURE__ */
|
|
1016
|
-
return t.equals =
|
|
1015
|
+
const t = /* @__PURE__ */ Ft(e);
|
|
1016
|
+
return t.equals = cn, t;
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function Fr(e) {
|
|
1019
1019
|
var t = e.effects;
|
|
1020
1020
|
if (t !== null) {
|
|
1021
1021
|
e.effects = null;
|
|
@@ -1026,10 +1026,10 @@ function Dr(e) {
|
|
|
1026
1026
|
);
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function jr(e) {
|
|
1030
1030
|
for (var t = e.parent; t !== null; ) {
|
|
1031
|
-
if ((t.f &
|
|
1032
|
-
return (t.f &
|
|
1031
|
+
if ((t.f & L) === 0)
|
|
1032
|
+
return (t.f & se) === 0 ? (
|
|
1033
1033
|
/** @type {Effect} */
|
|
1034
1034
|
t
|
|
1035
1035
|
) : null;
|
|
@@ -1037,317 +1037,317 @@ function zr(e) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
return null;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function jt(e) {
|
|
1041
1041
|
var t, n = k;
|
|
1042
|
-
|
|
1042
|
+
oe(jr(e));
|
|
1043
1043
|
try {
|
|
1044
|
-
e.f &= ~
|
|
1044
|
+
e.f &= ~Fe, Fr(e), t = qn(e);
|
|
1045
1045
|
} finally {
|
|
1046
|
-
|
|
1046
|
+
oe(n);
|
|
1047
1047
|
}
|
|
1048
1048
|
return t;
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1051
|
-
var t = e.v, n =
|
|
1052
|
-
if (!e.equals(n) && (e.wv =
|
|
1053
|
-
|
|
1050
|
+
function bn(e) {
|
|
1051
|
+
var t = e.v, n = jt(e);
|
|
1052
|
+
if (!e.equals(n) && (e.wv = Pn(), (!N?.is_fork || e.deps === null) && (e.v = n, N?.capture(e, t, !0), e.deps === null))) {
|
|
1053
|
+
z(e, D);
|
|
1054
1054
|
return;
|
|
1055
1055
|
}
|
|
1056
|
-
ze || (
|
|
1056
|
+
ze || (re !== null ? (zt() || N?.is_fork) && re.set(e, n) : It(e));
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function zr(e) {
|
|
1059
1059
|
if (e.effects !== null)
|
|
1060
1060
|
for (const t of e.effects)
|
|
1061
|
-
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(
|
|
1061
|
+
(t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(ue), t.teardown = ir, t.ac = null, rt(t, 0), Dt(t));
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function yn(e) {
|
|
1064
1064
|
if (e.effects !== null)
|
|
1065
1065
|
for (const t of e.effects)
|
|
1066
|
-
t.teardown &&
|
|
1066
|
+
t.teardown && Ye(t);
|
|
1067
1067
|
}
|
|
1068
|
-
let
|
|
1069
|
-
const
|
|
1070
|
-
let
|
|
1071
|
-
function
|
|
1068
|
+
let Et = /* @__PURE__ */ new Set();
|
|
1069
|
+
const me = /* @__PURE__ */ new Map();
|
|
1070
|
+
let kn = !1;
|
|
1071
|
+
function je(e, t) {
|
|
1072
1072
|
var n = {
|
|
1073
1073
|
f: 0,
|
|
1074
1074
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1075
1075
|
v: e,
|
|
1076
1076
|
reactions: null,
|
|
1077
|
-
equals:
|
|
1077
|
+
equals: un,
|
|
1078
1078
|
rv: 0,
|
|
1079
1079
|
wv: 0
|
|
1080
1080
|
};
|
|
1081
1081
|
return n;
|
|
1082
1082
|
}
|
|
1083
1083
|
// @__NO_SIDE_EFFECTS__
|
|
1084
|
-
function
|
|
1085
|
-
const n =
|
|
1086
|
-
return
|
|
1084
|
+
function W(e, t) {
|
|
1085
|
+
const n = je(e);
|
|
1086
|
+
return Dn(n), n;
|
|
1087
1087
|
}
|
|
1088
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1089
|
-
function
|
|
1090
|
-
const r =
|
|
1091
|
-
return t || (r.equals =
|
|
1089
|
+
function Dr(e, t = !1, n = !0) {
|
|
1090
|
+
const r = je(e);
|
|
1091
|
+
return t || (r.equals = cn), r;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function Y(e, t, n = !1) {
|
|
1094
1094
|
b !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1095
1095
|
// to ensure we error if state is set inside an inspect effect
|
|
1096
|
-
(!
|
|
1097
|
-
let r = n ?
|
|
1098
|
-
return
|
|
1096
|
+
(!ie || (b.f & Ut) !== 0) && dn() && (b.f & (L | ke | Rt | Ut)) !== 0 && (ee === null || !Ge.call(ee, e)) && _r();
|
|
1097
|
+
let r = n ? Me(t) : t;
|
|
1098
|
+
return Ue(e, r, ut);
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function Ue(e, t, n = null) {
|
|
1101
1101
|
if (!e.equals(t)) {
|
|
1102
1102
|
var r = e.v;
|
|
1103
|
-
ze ?
|
|
1104
|
-
var i =
|
|
1105
|
-
if (i.capture(e, r), (e.f &
|
|
1103
|
+
ze ? me.set(e, t) : me.set(e, r), e.v = t;
|
|
1104
|
+
var i = ye.ensure();
|
|
1105
|
+
if (i.capture(e, r), (e.f & L) !== 0) {
|
|
1106
1106
|
const s = (
|
|
1107
1107
|
/** @type {Derived} */
|
|
1108
1108
|
e
|
|
1109
1109
|
);
|
|
1110
|
-
(e.f & q) !== 0 &&
|
|
1110
|
+
(e.f & q) !== 0 && jt(s), re === null && It(s);
|
|
1111
1111
|
}
|
|
1112
|
-
e.wv =
|
|
1112
|
+
e.wv = Pn(), En(e, q, n), k !== null && (k.f & D) !== 0 && (k.f & (ae | Oe)) === 0 && (J === null ? Jr([e]) : J.push(e)), !i.is_fork && Et.size > 0 && !kn && Lr();
|
|
1113
1113
|
}
|
|
1114
1114
|
return t;
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
|
|
1118
|
-
for (const e of
|
|
1119
|
-
(e.f &
|
|
1120
|
-
|
|
1116
|
+
function Lr() {
|
|
1117
|
+
kn = !1;
|
|
1118
|
+
for (const e of Et)
|
|
1119
|
+
(e.f & D) !== 0 && z(e, le), lt(e) && Ye(e);
|
|
1120
|
+
Et.clear();
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1123
|
-
|
|
1122
|
+
function nt(e) {
|
|
1123
|
+
Y(e, e.v + 1);
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function En(e, t, n) {
|
|
1126
1126
|
var r = e.reactions;
|
|
1127
1127
|
if (r !== null)
|
|
1128
1128
|
for (var i = r.length, s = 0; s < i; s++) {
|
|
1129
|
-
var o = r[s], a = o.f,
|
|
1130
|
-
if (
|
|
1131
|
-
var
|
|
1129
|
+
var o = r[s], a = o.f, f = (a & q) === 0;
|
|
1130
|
+
if (f && z(o, t), (a & L) !== 0) {
|
|
1131
|
+
var l = (
|
|
1132
1132
|
/** @type {Derived} */
|
|
1133
1133
|
o
|
|
1134
1134
|
);
|
|
1135
|
-
|
|
1136
|
-
} else if (
|
|
1135
|
+
re?.delete(l), (a & Fe) === 0 && (a & $ && (o.f |= Fe), En(l, le, n));
|
|
1136
|
+
} else if (f) {
|
|
1137
1137
|
var u = (
|
|
1138
1138
|
/** @type {Effect} */
|
|
1139
1139
|
o
|
|
1140
1140
|
);
|
|
1141
|
-
(a & ke) !== 0 &&
|
|
1141
|
+
(a & ke) !== 0 && fe !== null && fe.add(u), n !== null ? n.push(u) : Ot(u);
|
|
1142
1142
|
}
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1146
|
-
if (typeof e != "object" || e === null ||
|
|
1145
|
+
function Me(e) {
|
|
1146
|
+
if (typeof e != "object" || e === null || xt in e)
|
|
1147
1147
|
return e;
|
|
1148
|
-
const t =
|
|
1149
|
-
if (t !==
|
|
1148
|
+
const t = ln(e);
|
|
1149
|
+
if (t !== nr && t !== rr)
|
|
1150
1150
|
return e;
|
|
1151
|
-
var n = /* @__PURE__ */ new Map(), r =
|
|
1152
|
-
if (
|
|
1151
|
+
var n = /* @__PURE__ */ new Map(), r = an(e), i = /* @__PURE__ */ W(0), s = Ie, o = (a) => {
|
|
1152
|
+
if (Ie === s)
|
|
1153
1153
|
return a();
|
|
1154
|
-
var
|
|
1155
|
-
|
|
1154
|
+
var f = b, l = Ie;
|
|
1155
|
+
ne(null), Jt(s);
|
|
1156
1156
|
var u = a();
|
|
1157
|
-
return
|
|
1157
|
+
return ne(f), Jt(l), u;
|
|
1158
1158
|
};
|
|
1159
|
-
return r && n.set("length", /* @__PURE__ */
|
|
1159
|
+
return r && n.set("length", /* @__PURE__ */ W(
|
|
1160
1160
|
/** @type {any[]} */
|
|
1161
1161
|
e.length
|
|
1162
1162
|
)), new Proxy(
|
|
1163
1163
|
/** @type {any} */
|
|
1164
1164
|
e,
|
|
1165
1165
|
{
|
|
1166
|
-
defineProperty(a,
|
|
1167
|
-
(!("value" in
|
|
1168
|
-
var u = n.get(
|
|
1166
|
+
defineProperty(a, f, l) {
|
|
1167
|
+
(!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && pr();
|
|
1168
|
+
var u = n.get(f);
|
|
1169
1169
|
return u === void 0 ? o(() => {
|
|
1170
|
-
var
|
|
1171
|
-
return n.set(
|
|
1172
|
-
}) :
|
|
1170
|
+
var d = /* @__PURE__ */ W(l.value);
|
|
1171
|
+
return n.set(f, d), d;
|
|
1172
|
+
}) : Y(u, l.value, !0), !0;
|
|
1173
1173
|
},
|
|
1174
|
-
deleteProperty(a,
|
|
1175
|
-
var
|
|
1176
|
-
if (
|
|
1177
|
-
if (
|
|
1178
|
-
const u = o(() => /* @__PURE__ */
|
|
1179
|
-
n.set(
|
|
1174
|
+
deleteProperty(a, f) {
|
|
1175
|
+
var l = n.get(f);
|
|
1176
|
+
if (l === void 0) {
|
|
1177
|
+
if (f in a) {
|
|
1178
|
+
const u = o(() => /* @__PURE__ */ W(P));
|
|
1179
|
+
n.set(f, u), nt(i);
|
|
1180
1180
|
}
|
|
1181
1181
|
} else
|
|
1182
|
-
|
|
1182
|
+
Y(l, P), nt(i);
|
|
1183
1183
|
return !0;
|
|
1184
1184
|
},
|
|
1185
|
-
get(a,
|
|
1186
|
-
if (
|
|
1185
|
+
get(a, f, l) {
|
|
1186
|
+
if (f === xt)
|
|
1187
1187
|
return e;
|
|
1188
|
-
var u = n.get(
|
|
1189
|
-
if (u === void 0 && (!
|
|
1190
|
-
var g =
|
|
1191
|
-
return
|
|
1192
|
-
}), n.set(
|
|
1193
|
-
var
|
|
1194
|
-
return
|
|
1188
|
+
var u = n.get(f), d = f in a;
|
|
1189
|
+
if (u === void 0 && (!d || tt(a, f)?.writable) && (u = o(() => {
|
|
1190
|
+
var g = Me(d ? a[f] : P), c = /* @__PURE__ */ W(g);
|
|
1191
|
+
return c;
|
|
1192
|
+
}), n.set(f, u)), u !== void 0) {
|
|
1193
|
+
var v = p(u);
|
|
1194
|
+
return v === P ? void 0 : v;
|
|
1195
1195
|
}
|
|
1196
|
-
return Reflect.get(a,
|
|
1196
|
+
return Reflect.get(a, f, l);
|
|
1197
1197
|
},
|
|
1198
|
-
getOwnPropertyDescriptor(a,
|
|
1199
|
-
var
|
|
1200
|
-
if (
|
|
1201
|
-
var u = n.get(
|
|
1202
|
-
u && (
|
|
1203
|
-
} else if (
|
|
1204
|
-
var
|
|
1205
|
-
if (
|
|
1198
|
+
getOwnPropertyDescriptor(a, f) {
|
|
1199
|
+
var l = Reflect.getOwnPropertyDescriptor(a, f);
|
|
1200
|
+
if (l && "value" in l) {
|
|
1201
|
+
var u = n.get(f);
|
|
1202
|
+
u && (l.value = p(u));
|
|
1203
|
+
} else if (l === void 0) {
|
|
1204
|
+
var d = n.get(f), v = d?.v;
|
|
1205
|
+
if (d !== void 0 && v !== P)
|
|
1206
1206
|
return {
|
|
1207
1207
|
enumerable: !0,
|
|
1208
1208
|
configurable: !0,
|
|
1209
|
-
value:
|
|
1209
|
+
value: v,
|
|
1210
1210
|
writable: !0
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
|
-
return
|
|
1213
|
+
return l;
|
|
1214
1214
|
},
|
|
1215
|
-
has(a,
|
|
1216
|
-
if (
|
|
1215
|
+
has(a, f) {
|
|
1216
|
+
if (f === xt)
|
|
1217
1217
|
return !0;
|
|
1218
|
-
var
|
|
1219
|
-
if (
|
|
1220
|
-
|
|
1221
|
-
var
|
|
1218
|
+
var l = n.get(f), u = l !== void 0 && l.v !== P || Reflect.has(a, f);
|
|
1219
|
+
if (l !== void 0 || k !== null && (!u || tt(a, f)?.writable)) {
|
|
1220
|
+
l === void 0 && (l = o(() => {
|
|
1221
|
+
var v = u ? Me(a[f]) : P, g = /* @__PURE__ */ W(v);
|
|
1222
1222
|
return g;
|
|
1223
|
-
}), n.set(
|
|
1224
|
-
var
|
|
1225
|
-
if (
|
|
1223
|
+
}), n.set(f, l));
|
|
1224
|
+
var d = p(l);
|
|
1225
|
+
if (d === P)
|
|
1226
1226
|
return !1;
|
|
1227
1227
|
}
|
|
1228
1228
|
return u;
|
|
1229
1229
|
},
|
|
1230
|
-
set(a,
|
|
1231
|
-
var
|
|
1232
|
-
if (r &&
|
|
1233
|
-
for (var g =
|
|
1234
|
-
|
|
1235
|
-
var
|
|
1236
|
-
|
|
1230
|
+
set(a, f, l, u) {
|
|
1231
|
+
var d = n.get(f), v = f in a;
|
|
1232
|
+
if (r && f === "length")
|
|
1233
|
+
for (var g = l; g < /** @type {Source<number>} */
|
|
1234
|
+
d.v; g += 1) {
|
|
1235
|
+
var c = n.get(g + "");
|
|
1236
|
+
c !== void 0 ? Y(c, P) : g in a && (c = o(() => /* @__PURE__ */ W(P)), n.set(g + "", c));
|
|
1237
1237
|
}
|
|
1238
|
-
if (
|
|
1239
|
-
(!
|
|
1238
|
+
if (d === void 0)
|
|
1239
|
+
(!v || tt(a, f)?.writable) && (d = o(() => /* @__PURE__ */ W(void 0)), Y(d, Me(l)), n.set(f, d));
|
|
1240
1240
|
else {
|
|
1241
|
-
|
|
1242
|
-
var
|
|
1243
|
-
|
|
1241
|
+
v = d.v !== P;
|
|
1242
|
+
var h = o(() => Me(l));
|
|
1243
|
+
Y(d, h);
|
|
1244
1244
|
}
|
|
1245
|
-
var
|
|
1246
|
-
if (
|
|
1247
|
-
if (r && typeof
|
|
1248
|
-
var
|
|
1245
|
+
var m = Reflect.getOwnPropertyDescriptor(a, f);
|
|
1246
|
+
if (m?.set && m.set.call(u, l), !v) {
|
|
1247
|
+
if (r && typeof f == "string") {
|
|
1248
|
+
var w = (
|
|
1249
1249
|
/** @type {Source<number>} */
|
|
1250
1250
|
n.get("length")
|
|
1251
|
-
),
|
|
1252
|
-
Number.isInteger(
|
|
1251
|
+
), _ = Number(f);
|
|
1252
|
+
Number.isInteger(_) && _ >= w.v && Y(w, _ + 1);
|
|
1253
1253
|
}
|
|
1254
|
-
|
|
1254
|
+
nt(i);
|
|
1255
1255
|
}
|
|
1256
1256
|
return !0;
|
|
1257
1257
|
},
|
|
1258
1258
|
ownKeys(a) {
|
|
1259
|
-
|
|
1260
|
-
var
|
|
1261
|
-
var
|
|
1262
|
-
return
|
|
1259
|
+
p(i);
|
|
1260
|
+
var f = Reflect.ownKeys(a).filter((d) => {
|
|
1261
|
+
var v = n.get(d);
|
|
1262
|
+
return v === void 0 || v.v !== P;
|
|
1263
1263
|
});
|
|
1264
|
-
for (var [
|
|
1265
|
-
u.v !==
|
|
1266
|
-
return
|
|
1264
|
+
for (var [l, u] of n)
|
|
1265
|
+
u.v !== P && !(l in a) && f.push(l);
|
|
1266
|
+
return f;
|
|
1267
1267
|
},
|
|
1268
1268
|
setPrototypeOf() {
|
|
1269
|
-
|
|
1269
|
+
gr();
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
1272
|
);
|
|
1273
1273
|
}
|
|
1274
|
-
var
|
|
1275
|
-
function
|
|
1276
|
-
if (
|
|
1277
|
-
|
|
1274
|
+
var Kt, Tn, An, Sn;
|
|
1275
|
+
function Pr() {
|
|
1276
|
+
if (Kt === void 0) {
|
|
1277
|
+
Kt = window, Tn = /Firefox/.test(navigator.userAgent);
|
|
1278
1278
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1279
|
-
|
|
1279
|
+
An = tt(t, "firstChild").get, Sn = tt(t, "nextSibling").get, Ht(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Ht(n) && (n.__t = void 0);
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function xe(e = "") {
|
|
1283
1283
|
return document.createTextNode(e);
|
|
1284
1284
|
}
|
|
1285
1285
|
// @__NO_SIDE_EFFECTS__
|
|
1286
|
-
function
|
|
1286
|
+
function We(e) {
|
|
1287
1287
|
return (
|
|
1288
1288
|
/** @type {TemplateNode | null} */
|
|
1289
|
-
|
|
1289
|
+
An.call(e)
|
|
1290
1290
|
);
|
|
1291
1291
|
}
|
|
1292
1292
|
// @__NO_SIDE_EFFECTS__
|
|
1293
|
-
function
|
|
1293
|
+
function st(e) {
|
|
1294
1294
|
return (
|
|
1295
1295
|
/** @type {TemplateNode | null} */
|
|
1296
|
-
|
|
1296
|
+
Sn.call(e)
|
|
1297
1297
|
);
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1300
|
-
return /* @__PURE__ */
|
|
1299
|
+
function x(e, t) {
|
|
1300
|
+
return /* @__PURE__ */ We(e);
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1302
|
+
function vt(e, t = !1) {
|
|
1303
1303
|
{
|
|
1304
|
-
var n = /* @__PURE__ */
|
|
1305
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
1304
|
+
var n = /* @__PURE__ */ We(e);
|
|
1305
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ st(n) : n;
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function F(e, t = 1, n = !1) {
|
|
1309
1309
|
let r = e;
|
|
1310
1310
|
for (; t--; )
|
|
1311
1311
|
r = /** @type {TemplateNode} */
|
|
1312
|
-
/* @__PURE__ */
|
|
1312
|
+
/* @__PURE__ */ st(r);
|
|
1313
1313
|
return r;
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function Br(e) {
|
|
1316
1316
|
e.textContent = "";
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function Cn() {
|
|
1319
1319
|
return !1;
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function Mn(e, t, n) {
|
|
1322
1322
|
return (
|
|
1323
1323
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1324
|
-
document.createElementNS(
|
|
1324
|
+
document.createElementNS(sn, e, void 0)
|
|
1325
1325
|
);
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function Nn(e) {
|
|
1328
1328
|
var t = b, n = k;
|
|
1329
|
-
|
|
1329
|
+
ne(null), oe(null);
|
|
1330
1330
|
try {
|
|
1331
1331
|
return e();
|
|
1332
1332
|
} finally {
|
|
1333
|
-
|
|
1333
|
+
ne(t), oe(n);
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1337
|
-
k === null && (b === null &&
|
|
1336
|
+
function qr(e) {
|
|
1337
|
+
k === null && (b === null && vr(), dr()), ze && cr();
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function Gr(e, t) {
|
|
1340
1340
|
var n = t.last;
|
|
1341
1341
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function de(e, t) {
|
|
1344
1344
|
var n = k;
|
|
1345
|
-
n !== null && (n.f &
|
|
1345
|
+
n !== null && (n.f & K) !== 0 && (e |= K);
|
|
1346
1346
|
var r = {
|
|
1347
|
-
ctx:
|
|
1347
|
+
ctx: te,
|
|
1348
1348
|
deps: null,
|
|
1349
1349
|
nodes: null,
|
|
1350
|
-
f: e | q |
|
|
1350
|
+
f: e | q | $,
|
|
1351
1351
|
first: null,
|
|
1352
1352
|
fn: t,
|
|
1353
1353
|
last: null,
|
|
@@ -1359,18 +1359,18 @@ function pe(e, t) {
|
|
|
1359
1359
|
wv: 0,
|
|
1360
1360
|
ac: null
|
|
1361
1361
|
}, i = r;
|
|
1362
|
-
if ((e &
|
|
1363
|
-
|
|
1362
|
+
if ((e & He) !== 0)
|
|
1363
|
+
Be !== null ? Be.push(r) : ye.ensure().schedule(r);
|
|
1364
1364
|
else if (t !== null) {
|
|
1365
1365
|
try {
|
|
1366
|
-
|
|
1366
|
+
Ye(r);
|
|
1367
1367
|
} catch (o) {
|
|
1368
1368
|
throw V(r), o;
|
|
1369
1369
|
}
|
|
1370
1370
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
1371
|
-
(i.f &
|
|
1371
|
+
(i.f & Xe) === 0 && (i = i.first, (e & ke) !== 0 && (e & be) !== 0 && i !== null && (i.f |= be));
|
|
1372
1372
|
}
|
|
1373
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
1373
|
+
if (i !== null && (i.parent = n, n !== null && Gr(i, n), b !== null && (b.f & L) !== 0 && (e & Oe) === 0)) {
|
|
1374
1374
|
var s = (
|
|
1375
1375
|
/** @type {Derived} */
|
|
1376
1376
|
b
|
|
@@ -1380,117 +1380,117 @@ function pe(e, t) {
|
|
|
1380
1380
|
return r;
|
|
1381
1381
|
}
|
|
1382
1382
|
function zt() {
|
|
1383
|
-
return b !== null && !
|
|
1383
|
+
return b !== null && !ie;
|
|
1384
1384
|
}
|
|
1385
1385
|
function Hr(e) {
|
|
1386
|
-
const t =
|
|
1387
|
-
return
|
|
1386
|
+
const t = de(gt, null);
|
|
1387
|
+
return z(t, D), t.teardown = e, t;
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1390
|
-
|
|
1389
|
+
function Rn(e) {
|
|
1390
|
+
qr();
|
|
1391
1391
|
var t = (
|
|
1392
1392
|
/** @type {Effect} */
|
|
1393
1393
|
k.f
|
|
1394
|
-
), n = !b && (t &
|
|
1394
|
+
), n = !b && (t & ae) !== 0 && (t & De) === 0;
|
|
1395
1395
|
if (n) {
|
|
1396
1396
|
var r = (
|
|
1397
1397
|
/** @type {ComponentContext} */
|
|
1398
|
-
|
|
1398
|
+
te
|
|
1399
1399
|
);
|
|
1400
1400
|
(r.e ??= []).push(e);
|
|
1401
1401
|
} else
|
|
1402
|
-
return
|
|
1402
|
+
return In(e);
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1405
|
-
return
|
|
1404
|
+
function In(e) {
|
|
1405
|
+
return de(He | lr, e);
|
|
1406
1406
|
}
|
|
1407
1407
|
function Vr(e) {
|
|
1408
|
-
|
|
1409
|
-
const t =
|
|
1408
|
+
ye.ensure();
|
|
1409
|
+
const t = de(Oe | Xe, e);
|
|
1410
1410
|
return (n = {}) => new Promise((r) => {
|
|
1411
|
-
n.outro ?
|
|
1411
|
+
n.outro ? Re(t, () => {
|
|
1412
1412
|
V(t), r(void 0);
|
|
1413
1413
|
}) : (V(t), r(void 0));
|
|
1414
1414
|
});
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1417
|
-
return
|
|
1416
|
+
function Ur(e) {
|
|
1417
|
+
return de(He, e);
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return
|
|
1419
|
+
function Wr(e) {
|
|
1420
|
+
return de(Rt | Xe, e);
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1423
|
-
return
|
|
1422
|
+
function Yr(e, t = 0) {
|
|
1423
|
+
return de(gt | t, e);
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1426
|
-
|
|
1427
|
-
|
|
1425
|
+
function C(e, t = [], n = [], r = []) {
|
|
1426
|
+
Nr(r, t, n, (i) => {
|
|
1427
|
+
de(gt, () => e(...i.map(p)));
|
|
1428
1428
|
});
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1431
|
-
var n =
|
|
1430
|
+
function at(e, t = 0) {
|
|
1431
|
+
var n = de(ke | t, e);
|
|
1432
1432
|
return n;
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1435
|
-
return
|
|
1434
|
+
function Z(e) {
|
|
1435
|
+
return de(ae | Xe, e);
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function On(e) {
|
|
1438
1438
|
var t = e.teardown;
|
|
1439
1439
|
if (t !== null) {
|
|
1440
1440
|
const n = ze, r = b;
|
|
1441
|
-
|
|
1441
|
+
Xt(!0), ne(null);
|
|
1442
1442
|
try {
|
|
1443
1443
|
t.call(null);
|
|
1444
1444
|
} finally {
|
|
1445
|
-
|
|
1445
|
+
Xt(n), ne(r);
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function Dt(e, t = !1) {
|
|
1450
1450
|
var n = e.first;
|
|
1451
1451
|
for (e.first = e.last = null; n !== null; ) {
|
|
1452
1452
|
const i = n.ac;
|
|
1453
|
-
i !== null &&
|
|
1454
|
-
i.abort(
|
|
1453
|
+
i !== null && Nn(() => {
|
|
1454
|
+
i.abort(ue);
|
|
1455
1455
|
});
|
|
1456
1456
|
var r = n.next;
|
|
1457
|
-
(n.f &
|
|
1457
|
+
(n.f & Oe) !== 0 ? n.parent = null : V(n, t), n = r;
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function Kr(e) {
|
|
1461
1461
|
for (var t = e.first; t !== null; ) {
|
|
1462
1462
|
var n = t.next;
|
|
1463
|
-
(t.f &
|
|
1463
|
+
(t.f & ae) === 0 && V(t), t = n;
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
1466
|
function V(e, t = !0) {
|
|
1467
1467
|
var n = !1;
|
|
1468
|
-
(t || (e.f &
|
|
1468
|
+
(t || (e.f & ar) !== 0) && e.nodes !== null && e.nodes.end !== null && (Xr(
|
|
1469
1469
|
e.nodes.start,
|
|
1470
1470
|
/** @type {TemplateNode} */
|
|
1471
1471
|
e.nodes.end
|
|
1472
|
-
), n = !0),
|
|
1472
|
+
), n = !0), z(e, Vt), Dt(e, t && !n), rt(e, 0);
|
|
1473
1473
|
var r = e.nodes && e.nodes.t;
|
|
1474
1474
|
if (r !== null)
|
|
1475
1475
|
for (const s of r)
|
|
1476
1476
|
s.stop();
|
|
1477
|
-
|
|
1477
|
+
On(e), e.f ^= Vt, e.f |= se;
|
|
1478
1478
|
var i = e.parent;
|
|
1479
|
-
i !== null && i.first !== null &&
|
|
1479
|
+
i !== null && i.first !== null && Fn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1480
1480
|
}
|
|
1481
1481
|
function Xr(e, t) {
|
|
1482
1482
|
for (; e !== null; ) {
|
|
1483
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1483
|
+
var n = e === t ? null : /* @__PURE__ */ st(e);
|
|
1484
1484
|
e.remove(), e = n;
|
|
1485
1485
|
}
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function Fn(e) {
|
|
1488
1488
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1489
1489
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function Re(e, t, n = !0) {
|
|
1492
1492
|
var r = [];
|
|
1493
|
-
|
|
1493
|
+
jn(e, r, !0);
|
|
1494
1494
|
var i = () => {
|
|
1495
1495
|
n && V(e), t && t();
|
|
1496
1496
|
}, s = r.length;
|
|
@@ -1501,31 +1501,31 @@ function Se(e, t, n = !0) {
|
|
|
1501
1501
|
} else
|
|
1502
1502
|
i();
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1505
|
-
if ((e.f &
|
|
1506
|
-
e.f ^=
|
|
1504
|
+
function jn(e, t, n) {
|
|
1505
|
+
if ((e.f & K) === 0) {
|
|
1506
|
+
e.f ^= K;
|
|
1507
1507
|
var r = e.nodes && e.nodes.t;
|
|
1508
1508
|
if (r !== null)
|
|
1509
1509
|
for (const a of r)
|
|
1510
1510
|
(a.is_global || n) && t.push(a);
|
|
1511
1511
|
for (var i = e.first; i !== null; ) {
|
|
1512
|
-
var s = i.next, o = (i.f &
|
|
1512
|
+
var s = i.next, o = (i.f & be) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1513
1513
|
// it means the parent block effect was pruned. In that case,
|
|
1514
1514
|
// transparency information was transferred to the branch effect.
|
|
1515
|
-
(i.f &
|
|
1516
|
-
|
|
1515
|
+
(i.f & ae) !== 0 && (e.f & ke) !== 0;
|
|
1516
|
+
jn(i, t, o ? n : !1), i = s;
|
|
1517
1517
|
}
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1521
|
-
|
|
1520
|
+
function Lt(e) {
|
|
1521
|
+
zn(e, !0);
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1524
|
-
if ((e.f &
|
|
1525
|
-
e.f ^=
|
|
1523
|
+
function zn(e, t) {
|
|
1524
|
+
if ((e.f & K) !== 0) {
|
|
1525
|
+
e.f ^= K, (e.f & D) === 0 && (z(e, q), ye.ensure().schedule(e));
|
|
1526
1526
|
for (var n = e.first; n !== null; ) {
|
|
1527
|
-
var r = n.next, i = (n.f &
|
|
1528
|
-
|
|
1527
|
+
var r = n.next, i = (n.f & be) !== 0 || (n.f & ae) !== 0;
|
|
1528
|
+
zn(n, i ? t : !1), n = r;
|
|
1529
1529
|
}
|
|
1530
1530
|
var s = e.nodes && e.nodes.t;
|
|
1531
1531
|
if (s !== null)
|
|
@@ -1536,188 +1536,188 @@ function Nn(e, t) {
|
|
|
1536
1536
|
function Pt(e, t) {
|
|
1537
1537
|
if (e.nodes)
|
|
1538
1538
|
for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
|
|
1539
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1539
|
+
var i = n === r ? null : /* @__PURE__ */ st(n);
|
|
1540
1540
|
t.append(n), n = i;
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
|
-
let
|
|
1544
|
-
function
|
|
1543
|
+
let ct = !1, ze = !1;
|
|
1544
|
+
function Xt(e) {
|
|
1545
1545
|
ze = e;
|
|
1546
1546
|
}
|
|
1547
|
-
let b = null,
|
|
1548
|
-
function
|
|
1547
|
+
let b = null, ie = !1;
|
|
1548
|
+
function ne(e) {
|
|
1549
1549
|
b = e;
|
|
1550
1550
|
}
|
|
1551
1551
|
let k = null;
|
|
1552
|
-
function
|
|
1552
|
+
function oe(e) {
|
|
1553
1553
|
k = e;
|
|
1554
1554
|
}
|
|
1555
|
-
let
|
|
1556
|
-
function
|
|
1557
|
-
b !== null && (
|
|
1555
|
+
let ee = null;
|
|
1556
|
+
function Dn(e) {
|
|
1557
|
+
b !== null && (ee === null ? ee = [e] : ee.push(e));
|
|
1558
1558
|
}
|
|
1559
|
-
let
|
|
1559
|
+
let H = null, U = 0, J = null;
|
|
1560
1560
|
function Jr(e) {
|
|
1561
|
-
|
|
1561
|
+
J = e;
|
|
1562
1562
|
}
|
|
1563
|
-
let
|
|
1564
|
-
function
|
|
1565
|
-
|
|
1563
|
+
let Ln = 1, Ne = 0, Ie = Ne;
|
|
1564
|
+
function Jt(e) {
|
|
1565
|
+
Ie = e;
|
|
1566
1566
|
}
|
|
1567
|
-
function
|
|
1568
|
-
return ++
|
|
1567
|
+
function Pn() {
|
|
1568
|
+
return ++Ln;
|
|
1569
1569
|
}
|
|
1570
|
-
function
|
|
1570
|
+
function lt(e) {
|
|
1571
1571
|
var t = e.f;
|
|
1572
1572
|
if ((t & q) !== 0)
|
|
1573
1573
|
return !0;
|
|
1574
|
-
if (t &
|
|
1574
|
+
if (t & L && (e.f &= ~Fe), (t & le) !== 0) {
|
|
1575
1575
|
for (var n = (
|
|
1576
1576
|
/** @type {Value[]} */
|
|
1577
1577
|
e.deps
|
|
1578
1578
|
), r = n.length, i = 0; i < r; i++) {
|
|
1579
1579
|
var s = n[i];
|
|
1580
|
-
if (
|
|
1580
|
+
if (lt(
|
|
1581
1581
|
/** @type {Derived} */
|
|
1582
1582
|
s
|
|
1583
|
-
) &&
|
|
1583
|
+
) && bn(
|
|
1584
1584
|
/** @type {Derived} */
|
|
1585
1585
|
s
|
|
1586
1586
|
), s.wv > e.wv)
|
|
1587
1587
|
return !0;
|
|
1588
1588
|
}
|
|
1589
|
-
(t &
|
|
1589
|
+
(t & $) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1590
1590
|
// traversal of the graph in the other batches still happens
|
|
1591
|
-
|
|
1591
|
+
re === null && z(e, D);
|
|
1592
1592
|
}
|
|
1593
1593
|
return !1;
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1595
|
+
function Bn(e, t, n = !0) {
|
|
1596
1596
|
var r = e.reactions;
|
|
1597
|
-
if (r !== null && !(
|
|
1597
|
+
if (r !== null && !(ee !== null && Ge.call(ee, e)))
|
|
1598
1598
|
for (var i = 0; i < r.length; i++) {
|
|
1599
1599
|
var s = r[i];
|
|
1600
|
-
(s.f &
|
|
1600
|
+
(s.f & L) !== 0 ? Bn(
|
|
1601
1601
|
/** @type {Derived} */
|
|
1602
1602
|
s,
|
|
1603
1603
|
t,
|
|
1604
1604
|
!1
|
|
1605
|
-
) : t === s && (n ?
|
|
1605
|
+
) : t === s && (n ? z(s, q) : (s.f & D) !== 0 && z(s, le), Ot(
|
|
1606
1606
|
/** @type {Effect} */
|
|
1607
1607
|
s
|
|
1608
1608
|
));
|
|
1609
1609
|
}
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1612
|
-
var t =
|
|
1613
|
-
|
|
1614
|
-
null,
|
|
1615
|
-
e.ac.abort(
|
|
1611
|
+
function qn(e) {
|
|
1612
|
+
var t = H, n = U, r = J, i = b, s = ee, o = te, a = ie, f = Ie, l = e.f;
|
|
1613
|
+
H = /** @type {null | Value[]} */
|
|
1614
|
+
null, U = 0, J = null, b = (l & (ae | Oe)) === 0 ? e : null, ee = null, Ve(e.ctx), ie = !1, Ie = ++Ne, e.ac !== null && (Nn(() => {
|
|
1615
|
+
e.ac.abort(ue);
|
|
1616
1616
|
}), e.ac = null);
|
|
1617
1617
|
try {
|
|
1618
|
-
e.f |=
|
|
1618
|
+
e.f |= yt;
|
|
1619
1619
|
var u = (
|
|
1620
1620
|
/** @type {Function} */
|
|
1621
1621
|
e.fn
|
|
1622
|
-
),
|
|
1623
|
-
e.f |=
|
|
1624
|
-
var
|
|
1625
|
-
if (
|
|
1626
|
-
var
|
|
1627
|
-
if (g ||
|
|
1628
|
-
for (
|
|
1629
|
-
|
|
1622
|
+
), d = u();
|
|
1623
|
+
e.f |= De;
|
|
1624
|
+
var v = e.deps, g = N?.is_fork;
|
|
1625
|
+
if (H !== null) {
|
|
1626
|
+
var c;
|
|
1627
|
+
if (g || rt(e, U), v !== null && U > 0)
|
|
1628
|
+
for (v.length = U + H.length, c = 0; c < H.length; c++)
|
|
1629
|
+
v[U + c] = H[c];
|
|
1630
1630
|
else
|
|
1631
|
-
e.deps =
|
|
1632
|
-
if (zt() && (e.f &
|
|
1633
|
-
for (
|
|
1634
|
-
(
|
|
1635
|
-
} else !g &&
|
|
1636
|
-
if (
|
|
1637
|
-
for (
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1631
|
+
e.deps = v = H;
|
|
1632
|
+
if (zt() && (e.f & $) !== 0)
|
|
1633
|
+
for (c = U; c < v.length; c++)
|
|
1634
|
+
(v[c].reactions ??= []).push(e);
|
|
1635
|
+
} else !g && v !== null && U < v.length && (rt(e, U), v.length = U);
|
|
1636
|
+
if (dn() && J !== null && !ie && v !== null && (e.f & (L | le | q)) === 0)
|
|
1637
|
+
for (c = 0; c < /** @type {Source[]} */
|
|
1638
|
+
J.length; c++)
|
|
1639
|
+
Bn(
|
|
1640
|
+
J[c],
|
|
1641
1641
|
/** @type {Effect} */
|
|
1642
1642
|
e
|
|
1643
1643
|
);
|
|
1644
1644
|
if (i !== null && i !== e) {
|
|
1645
|
-
if (
|
|
1646
|
-
for (let
|
|
1647
|
-
i.deps[
|
|
1645
|
+
if (Ne++, i.deps !== null)
|
|
1646
|
+
for (let h = 0; h < n; h += 1)
|
|
1647
|
+
i.deps[h].rv = Ne;
|
|
1648
1648
|
if (t !== null)
|
|
1649
|
-
for (const
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1649
|
+
for (const h of t)
|
|
1650
|
+
h.rv = Ne;
|
|
1651
|
+
J !== null && (r === null ? r = J : r.push(.../** @type {Source[]} */
|
|
1652
|
+
J));
|
|
1653
1653
|
}
|
|
1654
|
-
return (e.f &
|
|
1655
|
-
} catch (
|
|
1656
|
-
return
|
|
1654
|
+
return (e.f & _e) !== 0 && (e.f ^= _e), d;
|
|
1655
|
+
} catch (h) {
|
|
1656
|
+
return vn(h);
|
|
1657
1657
|
} finally {
|
|
1658
|
-
e.f ^=
|
|
1658
|
+
e.f ^= yt, H = t, U = n, J = r, b = i, ee = s, Ve(o), ie = a, Ie = f;
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
function Zr(e, t) {
|
|
1662
1662
|
let n = t.reactions;
|
|
1663
1663
|
if (n !== null) {
|
|
1664
|
-
var r =
|
|
1664
|
+
var r = $n.call(n, e);
|
|
1665
1665
|
if (r !== -1) {
|
|
1666
1666
|
var i = n.length - 1;
|
|
1667
1667
|
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
|
-
if (n === null && (t.f &
|
|
1670
|
+
if (n === null && (t.f & L) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1671
1671
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1672
1672
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1673
|
-
(
|
|
1673
|
+
(H === null || !Ge.call(H, t))) {
|
|
1674
1674
|
var s = (
|
|
1675
1675
|
/** @type {Derived} */
|
|
1676
1676
|
t
|
|
1677
1677
|
);
|
|
1678
|
-
(s.f &
|
|
1678
|
+
(s.f & $) !== 0 && (s.f ^= $, s.f &= ~Fe), It(s), zr(s), rt(s, 0);
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function rt(e, t) {
|
|
1682
1682
|
var n = e.deps;
|
|
1683
1683
|
if (n !== null)
|
|
1684
1684
|
for (var r = t; r < n.length; r++)
|
|
1685
1685
|
Zr(e, n[r]);
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function Ye(e) {
|
|
1688
1688
|
var t = e.f;
|
|
1689
|
-
if ((t &
|
|
1690
|
-
|
|
1691
|
-
var n = k, r =
|
|
1692
|
-
k = e,
|
|
1689
|
+
if ((t & se) === 0) {
|
|
1690
|
+
z(e, D);
|
|
1691
|
+
var n = k, r = ct;
|
|
1692
|
+
k = e, ct = !0;
|
|
1693
1693
|
try {
|
|
1694
|
-
(t & (ke |
|
|
1695
|
-
var i =
|
|
1696
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1694
|
+
(t & (ke | fn)) !== 0 ? Kr(e) : Dt(e), On(e);
|
|
1695
|
+
var i = qn(e);
|
|
1696
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = Ln;
|
|
1697
1697
|
var s;
|
|
1698
|
-
|
|
1698
|
+
Qn && br && (e.f & q) !== 0 && e.deps;
|
|
1699
1699
|
} finally {
|
|
1700
|
-
|
|
1700
|
+
ct = r, k = n;
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1705
|
-
var t = e.f, n = (t &
|
|
1706
|
-
if (b !== null && !
|
|
1707
|
-
var r = k !== null && (k.f &
|
|
1708
|
-
if (!r && (
|
|
1704
|
+
function p(e) {
|
|
1705
|
+
var t = e.f, n = (t & L) !== 0;
|
|
1706
|
+
if (b !== null && !ie) {
|
|
1707
|
+
var r = k !== null && (k.f & se) !== 0;
|
|
1708
|
+
if (!r && (ee === null || !Ge.call(ee, e))) {
|
|
1709
1709
|
var i = b.deps;
|
|
1710
|
-
if ((b.f &
|
|
1711
|
-
e.rv <
|
|
1710
|
+
if ((b.f & yt) !== 0)
|
|
1711
|
+
e.rv < Ne && (e.rv = Ne, H === null && i !== null && i[U] === e ? U++ : H === null ? H = [e] : H.push(e));
|
|
1712
1712
|
else {
|
|
1713
1713
|
(b.deps ??= []).push(e);
|
|
1714
1714
|
var s = e.reactions;
|
|
1715
|
-
s === null ? e.reactions = [b] :
|
|
1715
|
+
s === null ? e.reactions = [b] : Ge.call(s, b) || s.push(b);
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
1718
|
}
|
|
1719
|
-
if (ze &&
|
|
1720
|
-
return
|
|
1719
|
+
if (ze && me.has(e))
|
|
1720
|
+
return me.get(e);
|
|
1721
1721
|
if (n) {
|
|
1722
1722
|
var o = (
|
|
1723
1723
|
/** @type {Derived} */
|
|
@@ -1725,33 +1725,33 @@ function _(e) {
|
|
|
1725
1725
|
);
|
|
1726
1726
|
if (ze) {
|
|
1727
1727
|
var a = o.v;
|
|
1728
|
-
return ((o.f &
|
|
1728
|
+
return ((o.f & D) === 0 && o.reactions !== null || Hn(o)) && (a = jt(o)), me.set(o, a), a;
|
|
1729
1729
|
}
|
|
1730
|
-
var
|
|
1731
|
-
|
|
1730
|
+
var f = (o.f & $) === 0 && !ie && b !== null && (ct || (b.f & $) !== 0), l = (o.f & De) === 0;
|
|
1731
|
+
lt(o) && (f && (o.f |= $), bn(o)), f && !l && (yn(o), Gn(o));
|
|
1732
1732
|
}
|
|
1733
|
-
if (
|
|
1734
|
-
return
|
|
1735
|
-
if ((e.f &
|
|
1733
|
+
if (re?.has(e))
|
|
1734
|
+
return re.get(e);
|
|
1735
|
+
if ((e.f & _e) !== 0)
|
|
1736
1736
|
throw e.v;
|
|
1737
1737
|
return e.v;
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1740
|
-
if (e.f |=
|
|
1739
|
+
function Gn(e) {
|
|
1740
|
+
if (e.f |= $, e.deps !== null)
|
|
1741
1741
|
for (const t of e.deps)
|
|
1742
|
-
(t.reactions ??= []).push(e), (t.f &
|
|
1742
|
+
(t.reactions ??= []).push(e), (t.f & L) !== 0 && (t.f & $) === 0 && (yn(
|
|
1743
1743
|
/** @type {Derived} */
|
|
1744
1744
|
t
|
|
1745
|
-
),
|
|
1745
|
+
), Gn(
|
|
1746
1746
|
/** @type {Derived} */
|
|
1747
1747
|
t
|
|
1748
1748
|
));
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1751
|
-
if (e.v ===
|
|
1750
|
+
function Hn(e) {
|
|
1751
|
+
if (e.v === P) return !0;
|
|
1752
1752
|
if (e.deps === null) return !1;
|
|
1753
1753
|
for (const t of e.deps)
|
|
1754
|
-
if (
|
|
1754
|
+
if (me.has(t) || (t.f & L) !== 0 && Hn(
|
|
1755
1755
|
/** @type {Derived} */
|
|
1756
1756
|
t
|
|
1757
1757
|
))
|
|
@@ -1759,25 +1759,25 @@ function Pn(e) {
|
|
|
1759
1759
|
return !1;
|
|
1760
1760
|
}
|
|
1761
1761
|
function Qr(e) {
|
|
1762
|
-
var t =
|
|
1762
|
+
var t = ie;
|
|
1763
1763
|
try {
|
|
1764
|
-
return
|
|
1764
|
+
return ie = !0, e();
|
|
1765
1765
|
} finally {
|
|
1766
|
-
|
|
1766
|
+
ie = t;
|
|
1767
1767
|
}
|
|
1768
1768
|
}
|
|
1769
|
-
const
|
|
1770
|
-
function
|
|
1771
|
-
(t[
|
|
1769
|
+
const $e = /* @__PURE__ */ Symbol("events"), Vn = /* @__PURE__ */ new Set(), Tt = /* @__PURE__ */ new Set();
|
|
1770
|
+
function Zt(e, t, n) {
|
|
1771
|
+
(t[$e] ??= {})[e] = n;
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function $r(e) {
|
|
1774
1774
|
for (var t = 0; t < e.length; t++)
|
|
1775
|
-
|
|
1776
|
-
for (var n of
|
|
1775
|
+
Vn.add(e[t]);
|
|
1776
|
+
for (var n of Tt)
|
|
1777
1777
|
n(e);
|
|
1778
1778
|
}
|
|
1779
|
-
let
|
|
1780
|
-
function
|
|
1779
|
+
let Qt = null;
|
|
1780
|
+
function $t(e) {
|
|
1781
1781
|
var t = this, n = (
|
|
1782
1782
|
/** @type {Node} */
|
|
1783
1783
|
t.ownerDocument
|
|
@@ -1785,77 +1785,77 @@ function Wt(e) {
|
|
|
1785
1785
|
/** @type {null | Element} */
|
|
1786
1786
|
i[0] || e.target
|
|
1787
1787
|
);
|
|
1788
|
-
|
|
1789
|
-
var o = 0, a =
|
|
1788
|
+
Qt = e;
|
|
1789
|
+
var o = 0, a = Qt === e && e[$e];
|
|
1790
1790
|
if (a) {
|
|
1791
|
-
var
|
|
1792
|
-
if (
|
|
1791
|
+
var f = i.indexOf(a);
|
|
1792
|
+
if (f !== -1 && (t === document || t === /** @type {any} */
|
|
1793
1793
|
window)) {
|
|
1794
|
-
e[
|
|
1794
|
+
e[$e] = t;
|
|
1795
1795
|
return;
|
|
1796
1796
|
}
|
|
1797
|
-
var
|
|
1798
|
-
if (
|
|
1797
|
+
var l = i.indexOf(t);
|
|
1798
|
+
if (l === -1)
|
|
1799
1799
|
return;
|
|
1800
|
-
|
|
1800
|
+
f <= l && (o = f);
|
|
1801
1801
|
}
|
|
1802
1802
|
if (s = /** @type {Element} */
|
|
1803
1803
|
i[o] || e.target, s !== t) {
|
|
1804
|
-
|
|
1804
|
+
er(e, "currentTarget", {
|
|
1805
1805
|
configurable: !0,
|
|
1806
1806
|
get() {
|
|
1807
1807
|
return s || n;
|
|
1808
1808
|
}
|
|
1809
1809
|
});
|
|
1810
|
-
var u = b,
|
|
1811
|
-
|
|
1810
|
+
var u = b, d = k;
|
|
1811
|
+
ne(null), oe(null);
|
|
1812
1812
|
try {
|
|
1813
|
-
for (var
|
|
1814
|
-
var
|
|
1813
|
+
for (var v, g = []; s !== null; ) {
|
|
1814
|
+
var c = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
1815
1815
|
s.host || null;
|
|
1816
1816
|
try {
|
|
1817
|
-
var
|
|
1818
|
-
|
|
1817
|
+
var h = s[$e]?.[r];
|
|
1818
|
+
h != null && (!/** @type {any} */
|
|
1819
1819
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1820
1820
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1821
|
-
e.target === s) &&
|
|
1822
|
-
} catch (
|
|
1823
|
-
|
|
1821
|
+
e.target === s) && h.call(s, e);
|
|
1822
|
+
} catch (m) {
|
|
1823
|
+
v ? g.push(m) : v = m;
|
|
1824
1824
|
}
|
|
1825
|
-
if (e.cancelBubble ||
|
|
1825
|
+
if (e.cancelBubble || c === t || c === null)
|
|
1826
1826
|
break;
|
|
1827
|
-
s =
|
|
1827
|
+
s = c;
|
|
1828
1828
|
}
|
|
1829
|
-
if (
|
|
1830
|
-
for (let
|
|
1829
|
+
if (v) {
|
|
1830
|
+
for (let m of g)
|
|
1831
1831
|
queueMicrotask(() => {
|
|
1832
|
-
throw
|
|
1832
|
+
throw m;
|
|
1833
1833
|
});
|
|
1834
|
-
throw
|
|
1834
|
+
throw v;
|
|
1835
1835
|
}
|
|
1836
1836
|
} finally {
|
|
1837
|
-
e[
|
|
1837
|
+
e[$e] = t, delete e.currentTarget, ne(u), oe(d);
|
|
1838
1838
|
}
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
|
-
const
|
|
1841
|
+
const ei = (
|
|
1842
1842
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1843
1843
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1844
1844
|
/** @param {string} html */
|
|
1845
1845
|
createHTML: (e) => e
|
|
1846
1846
|
})
|
|
1847
1847
|
);
|
|
1848
|
-
function
|
|
1848
|
+
function ti(e) {
|
|
1849
1849
|
return (
|
|
1850
1850
|
/** @type {string} */
|
|
1851
|
-
|
|
1851
|
+
ei?.createHTML(e) ?? e
|
|
1852
1852
|
);
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1855
|
-
var t =
|
|
1856
|
-
return t.innerHTML =
|
|
1854
|
+
function Un(e) {
|
|
1855
|
+
var t = Mn("template");
|
|
1856
|
+
return t.innerHTML = ti(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1858
|
+
function ht(e, t) {
|
|
1859
1859
|
var n = (
|
|
1860
1860
|
/** @type {Effect} */
|
|
1861
1861
|
k
|
|
@@ -1863,34 +1863,60 @@ function kt(e, t) {
|
|
|
1863
1863
|
n.nodes === null && (n.nodes = { start: e, end: t, a: null, t: null });
|
|
1864
1864
|
}
|
|
1865
1865
|
// @__NO_SIDE_EFFECTS__
|
|
1866
|
-
function
|
|
1866
|
+
function E(e, t) {
|
|
1867
1867
|
var n = (t & 1) !== 0, r = (t & 2) !== 0, i, s = !e.startsWith("<!>");
|
|
1868
1868
|
return () => {
|
|
1869
|
-
i === void 0 && (i =
|
|
1870
|
-
/* @__PURE__ */
|
|
1869
|
+
i === void 0 && (i = Un(s ? e : "<!>" + e), n || (i = /** @type {TemplateNode} */
|
|
1870
|
+
/* @__PURE__ */ We(i)));
|
|
1871
1871
|
var o = (
|
|
1872
1872
|
/** @type {TemplateNode} */
|
|
1873
|
-
r ||
|
|
1873
|
+
r || Tn ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
1874
1874
|
);
|
|
1875
1875
|
if (n) {
|
|
1876
1876
|
var a = (
|
|
1877
1877
|
/** @type {TemplateNode} */
|
|
1878
|
-
/* @__PURE__ */
|
|
1879
|
-
),
|
|
1878
|
+
/* @__PURE__ */ We(o)
|
|
1879
|
+
), f = (
|
|
1880
1880
|
/** @type {TemplateNode} */
|
|
1881
1881
|
o.lastChild
|
|
1882
1882
|
);
|
|
1883
|
-
|
|
1883
|
+
ht(a, f);
|
|
1884
1884
|
} else
|
|
1885
|
-
|
|
1885
|
+
ht(o, o);
|
|
1886
1886
|
return o;
|
|
1887
1887
|
};
|
|
1888
1888
|
}
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1889
|
+
// @__NO_SIDE_EFFECTS__
|
|
1890
|
+
function ni(e, t, n = "svg") {
|
|
1891
|
+
var r = !e.startsWith("<!>"), i = `<${n}>${r ? e : "<!>" + e}</${n}>`, s;
|
|
1892
|
+
return () => {
|
|
1893
|
+
if (!s) {
|
|
1894
|
+
var o = (
|
|
1895
|
+
/** @type {DocumentFragment} */
|
|
1896
|
+
Un(i)
|
|
1897
|
+
), a = (
|
|
1898
|
+
/** @type {Element} */
|
|
1899
|
+
/* @__PURE__ */ We(o)
|
|
1900
|
+
);
|
|
1901
|
+
s = /** @type {Element} */
|
|
1902
|
+
/* @__PURE__ */ We(a);
|
|
1903
|
+
}
|
|
1904
|
+
var f = (
|
|
1905
|
+
/** @type {TemplateNode} */
|
|
1906
|
+
s.cloneNode(!0)
|
|
1907
|
+
);
|
|
1908
|
+
return ht(f, f), f;
|
|
1909
|
+
};
|
|
1910
|
+
}
|
|
1911
|
+
// @__NO_SIDE_EFFECTS__
|
|
1912
|
+
function ri(e, t) {
|
|
1913
|
+
return /* @__PURE__ */ ni(e, t, "svg");
|
|
1914
|
+
}
|
|
1915
|
+
function Wn() {
|
|
1916
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = xe();
|
|
1917
|
+
return e.append(t, n), ht(t, n), e;
|
|
1892
1918
|
}
|
|
1893
|
-
function
|
|
1919
|
+
function y(e, t) {
|
|
1894
1920
|
e !== null && e.before(
|
|
1895
1921
|
/** @type {Node} */
|
|
1896
1922
|
t
|
|
@@ -1900,19 +1926,19 @@ const ii = ["touchstart", "touchmove"];
|
|
|
1900
1926
|
function si(e) {
|
|
1901
1927
|
return ii.includes(e);
|
|
1902
1928
|
}
|
|
1903
|
-
function
|
|
1929
|
+
function B(e, t) {
|
|
1904
1930
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1905
1931
|
n !== (e.__t ??= e.nodeValue) && (e.__t = n, e.nodeValue = `${n}`);
|
|
1906
1932
|
}
|
|
1907
|
-
function
|
|
1908
|
-
return
|
|
1933
|
+
function ai(e, t) {
|
|
1934
|
+
return li(e, t);
|
|
1909
1935
|
}
|
|
1910
|
-
const
|
|
1911
|
-
function
|
|
1912
|
-
|
|
1913
|
-
var
|
|
1914
|
-
var u = n ?? t.appendChild(
|
|
1915
|
-
|
|
1936
|
+
const ft = /* @__PURE__ */ new Map();
|
|
1937
|
+
function li(e, { target: t, anchor: n, props: r = {}, events: i, context: s, intro: o = !0, transformError: a }) {
|
|
1938
|
+
Pr();
|
|
1939
|
+
var f = void 0, l = Vr(() => {
|
|
1940
|
+
var u = n ?? t.appendChild(xe());
|
|
1941
|
+
Cr(
|
|
1916
1942
|
/** @type {TemplateNode} */
|
|
1917
1943
|
u,
|
|
1918
1944
|
{
|
|
@@ -1920,53 +1946,53 @@ function ai(e, { target: t, anchor: n, props: r = {}, events: i, context: s, int
|
|
|
1920
1946
|
}
|
|
1921
1947
|
},
|
|
1922
1948
|
(g) => {
|
|
1923
|
-
|
|
1924
|
-
var
|
|
1949
|
+
Ee({});
|
|
1950
|
+
var c = (
|
|
1925
1951
|
/** @type {ComponentContext} */
|
|
1926
|
-
|
|
1952
|
+
te
|
|
1927
1953
|
);
|
|
1928
|
-
s && (
|
|
1954
|
+
s && (c.c = s), i && (r.$$events = i), f = e(g, r) || {}, Te();
|
|
1929
1955
|
},
|
|
1930
1956
|
a
|
|
1931
1957
|
);
|
|
1932
|
-
var
|
|
1933
|
-
for (var
|
|
1934
|
-
var
|
|
1935
|
-
if (!
|
|
1936
|
-
|
|
1937
|
-
var
|
|
1938
|
-
for (const
|
|
1939
|
-
var
|
|
1940
|
-
|
|
1941
|
-
var
|
|
1942
|
-
|
|
1958
|
+
var d = /* @__PURE__ */ new Set(), v = (g) => {
|
|
1959
|
+
for (var c = 0; c < g.length; c++) {
|
|
1960
|
+
var h = g[c];
|
|
1961
|
+
if (!d.has(h)) {
|
|
1962
|
+
d.add(h);
|
|
1963
|
+
var m = si(h);
|
|
1964
|
+
for (const A of [t, document]) {
|
|
1965
|
+
var w = ft.get(A);
|
|
1966
|
+
w === void 0 && (w = /* @__PURE__ */ new Map(), ft.set(A, w));
|
|
1967
|
+
var _ = w.get(h);
|
|
1968
|
+
_ === void 0 ? (A.addEventListener(h, $t, { passive: m }), w.set(h, 1)) : w.set(h, _ + 1);
|
|
1943
1969
|
}
|
|
1944
1970
|
}
|
|
1945
1971
|
}
|
|
1946
1972
|
};
|
|
1947
|
-
return
|
|
1948
|
-
for (var g of
|
|
1949
|
-
for (const
|
|
1950
|
-
var
|
|
1973
|
+
return v(pt(Vn)), Tt.add(v), () => {
|
|
1974
|
+
for (var g of d)
|
|
1975
|
+
for (const m of [t, document]) {
|
|
1976
|
+
var c = (
|
|
1951
1977
|
/** @type {Map<string, number>} */
|
|
1952
|
-
|
|
1953
|
-
),
|
|
1978
|
+
ft.get(m)
|
|
1979
|
+
), h = (
|
|
1954
1980
|
/** @type {number} */
|
|
1955
|
-
|
|
1981
|
+
c.get(g)
|
|
1956
1982
|
);
|
|
1957
|
-
--
|
|
1983
|
+
--h == 0 ? (m.removeEventListener(g, $t), c.delete(g), c.size === 0 && ft.delete(m)) : c.set(g, h);
|
|
1958
1984
|
}
|
|
1959
|
-
|
|
1985
|
+
Tt.delete(v), u !== n && u.parentNode?.removeChild(u);
|
|
1960
1986
|
};
|
|
1961
1987
|
});
|
|
1962
|
-
return
|
|
1988
|
+
return At.set(f, l), f;
|
|
1963
1989
|
}
|
|
1964
|
-
let
|
|
1990
|
+
let At = /* @__PURE__ */ new WeakMap();
|
|
1965
1991
|
function oi(e, t) {
|
|
1966
|
-
const n =
|
|
1967
|
-
return n ? (
|
|
1992
|
+
const n = At.get(e);
|
|
1993
|
+
return n ? (At.delete(e), n(t)) : Promise.resolve();
|
|
1968
1994
|
}
|
|
1969
|
-
class
|
|
1995
|
+
class Bt {
|
|
1970
1996
|
/** @type {TemplateNode} */
|
|
1971
1997
|
anchor;
|
|
1972
1998
|
/** @type {Map<Batch, Key>} */
|
|
@@ -2019,7 +2045,7 @@ class Bn {
|
|
|
2019
2045
|
this.#t.get(t)
|
|
2020
2046
|
), r = this.#o.get(n);
|
|
2021
2047
|
if (r)
|
|
2022
|
-
|
|
2048
|
+
Lt(r), this.#r.delete(n);
|
|
2023
2049
|
else {
|
|
2024
2050
|
var i = this.#e.get(n);
|
|
2025
2051
|
i && (this.#o.set(n, i.effect), this.#e.delete(n), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), r = i.effect);
|
|
@@ -2034,13 +2060,13 @@ class Bn {
|
|
|
2034
2060
|
if (s === n || this.#r.has(s)) continue;
|
|
2035
2061
|
const a = () => {
|
|
2036
2062
|
if (Array.from(this.#t.values()).includes(s)) {
|
|
2037
|
-
var
|
|
2038
|
-
Pt(o,
|
|
2063
|
+
var l = document.createDocumentFragment();
|
|
2064
|
+
Pt(o, l), l.append(xe()), this.#e.set(s, { effect: o, fragment: l });
|
|
2039
2065
|
} else
|
|
2040
2066
|
V(o);
|
|
2041
2067
|
this.#r.delete(s), this.#o.delete(s);
|
|
2042
2068
|
};
|
|
2043
|
-
this.#i || !r ? (this.#r.add(s),
|
|
2069
|
+
this.#i || !r ? (this.#r.add(s), Re(o, a, !1)) : a();
|
|
2044
2070
|
}
|
|
2045
2071
|
}
|
|
2046
2072
|
};
|
|
@@ -2061,58 +2087,65 @@ class Bn {
|
|
|
2061
2087
|
ensure(t, n) {
|
|
2062
2088
|
var r = (
|
|
2063
2089
|
/** @type {Batch} */
|
|
2064
|
-
|
|
2065
|
-
), i =
|
|
2090
|
+
N
|
|
2091
|
+
), i = Cn();
|
|
2066
2092
|
if (n && !this.#o.has(t) && !this.#e.has(t))
|
|
2067
2093
|
if (i) {
|
|
2068
|
-
var s = document.createDocumentFragment(), o =
|
|
2094
|
+
var s = document.createDocumentFragment(), o = xe();
|
|
2069
2095
|
s.append(o), this.#e.set(t, {
|
|
2070
|
-
effect:
|
|
2096
|
+
effect: Z(() => n(o)),
|
|
2071
2097
|
fragment: s
|
|
2072
2098
|
});
|
|
2073
2099
|
} else
|
|
2074
2100
|
this.#o.set(
|
|
2075
2101
|
t,
|
|
2076
|
-
|
|
2102
|
+
Z(() => n(this.anchor))
|
|
2077
2103
|
);
|
|
2078
2104
|
if (this.#t.set(r, t), i) {
|
|
2079
|
-
for (const [a,
|
|
2080
|
-
a === t ? r.unskip_effect(
|
|
2081
|
-
for (const [a,
|
|
2082
|
-
a === t ? r.unskip_effect(
|
|
2105
|
+
for (const [a, f] of this.#o)
|
|
2106
|
+
a === t ? r.unskip_effect(f) : r.skip_effect(f);
|
|
2107
|
+
for (const [a, f] of this.#e)
|
|
2108
|
+
a === t ? r.unskip_effect(f.effect) : r.skip_effect(f.effect);
|
|
2083
2109
|
r.oncommit(this.#n), r.ondiscard(this.#s);
|
|
2084
2110
|
} else
|
|
2085
2111
|
this.#n(r);
|
|
2086
2112
|
}
|
|
2087
2113
|
}
|
|
2088
|
-
function
|
|
2089
|
-
var r = new
|
|
2114
|
+
function fi(e, t, ...n) {
|
|
2115
|
+
var r = new Bt(e);
|
|
2116
|
+
at(() => {
|
|
2117
|
+
const i = t() ?? null;
|
|
2118
|
+
r.ensure(i, i && ((s) => i(s, ...n)));
|
|
2119
|
+
}, be);
|
|
2120
|
+
}
|
|
2121
|
+
function G(e, t, n = !1) {
|
|
2122
|
+
var r = new Bt(e), i = n ? be : 0;
|
|
2090
2123
|
function s(o, a) {
|
|
2091
2124
|
r.ensure(o, a);
|
|
2092
2125
|
}
|
|
2093
|
-
|
|
2126
|
+
at(() => {
|
|
2094
2127
|
var o = !1;
|
|
2095
|
-
t((a,
|
|
2096
|
-
o = !0, s(
|
|
2128
|
+
t((a, f = 0) => {
|
|
2129
|
+
o = !0, s(f, a);
|
|
2097
2130
|
}), o || s(-1, null);
|
|
2098
2131
|
}, i);
|
|
2099
2132
|
}
|
|
2100
|
-
function
|
|
2133
|
+
function it(e, t) {
|
|
2101
2134
|
return t;
|
|
2102
2135
|
}
|
|
2103
|
-
function
|
|
2136
|
+
function ui(e, t, n) {
|
|
2104
2137
|
for (var r = [], i = t.length, s, o = t.length, a = 0; a < i; a++) {
|
|
2105
|
-
let
|
|
2106
|
-
|
|
2107
|
-
|
|
2138
|
+
let d = t[a];
|
|
2139
|
+
Re(
|
|
2140
|
+
d,
|
|
2108
2141
|
() => {
|
|
2109
2142
|
if (s) {
|
|
2110
|
-
if (s.pending.delete(
|
|
2111
|
-
var
|
|
2143
|
+
if (s.pending.delete(d), s.done.add(d), s.pending.size === 0) {
|
|
2144
|
+
var v = (
|
|
2112
2145
|
/** @type {Set<EachOutroGroup>} */
|
|
2113
2146
|
e.outrogroups
|
|
2114
2147
|
);
|
|
2115
|
-
St(e,
|
|
2148
|
+
St(e, pt(s.done)), v.delete(s), v.size === 0 && (e.outrogroups = null);
|
|
2116
2149
|
}
|
|
2117
2150
|
} else
|
|
2118
2151
|
o -= 1;
|
|
@@ -2121,18 +2154,18 @@ function fi(e, t, n) {
|
|
|
2121
2154
|
);
|
|
2122
2155
|
}
|
|
2123
2156
|
if (o === 0) {
|
|
2124
|
-
var
|
|
2125
|
-
if (
|
|
2126
|
-
var
|
|
2157
|
+
var f = r.length === 0 && n !== null;
|
|
2158
|
+
if (f) {
|
|
2159
|
+
var l = (
|
|
2127
2160
|
/** @type {Element} */
|
|
2128
2161
|
n
|
|
2129
2162
|
), u = (
|
|
2130
2163
|
/** @type {Element} */
|
|
2131
|
-
|
|
2164
|
+
l.parentNode
|
|
2132
2165
|
);
|
|
2133
|
-
|
|
2166
|
+
Br(u), u.append(l), e.items.clear();
|
|
2134
2167
|
}
|
|
2135
|
-
St(e, t, !
|
|
2168
|
+
St(e, t, !f);
|
|
2136
2169
|
} else
|
|
2137
2170
|
s = {
|
|
2138
2171
|
pending: new Set(t),
|
|
@@ -2153,178 +2186,163 @@ function St(e, t, n = !0) {
|
|
|
2153
2186
|
for (var i = 0; i < t.length; i++) {
|
|
2154
2187
|
var s = t[i];
|
|
2155
2188
|
if (r?.has(s)) {
|
|
2156
|
-
s.f |=
|
|
2189
|
+
s.f |= ce;
|
|
2157
2190
|
const o = document.createDocumentFragment();
|
|
2158
2191
|
Pt(s, o);
|
|
2159
2192
|
} else
|
|
2160
2193
|
V(t[i], n);
|
|
2161
2194
|
}
|
|
2162
2195
|
}
|
|
2163
|
-
var
|
|
2164
|
-
function
|
|
2165
|
-
var o = e, a = /* @__PURE__ */ new Map()
|
|
2166
|
-
|
|
2196
|
+
var en;
|
|
2197
|
+
function Ke(e, t, n, r, i, s = null) {
|
|
2198
|
+
var o = e, a = /* @__PURE__ */ new Map();
|
|
2199
|
+
{
|
|
2167
2200
|
var f = (
|
|
2168
2201
|
/** @type {Element} */
|
|
2169
2202
|
e
|
|
2170
2203
|
);
|
|
2171
|
-
o = f.appendChild(
|
|
2172
|
-
}
|
|
2173
|
-
var
|
|
2174
|
-
var
|
|
2175
|
-
return
|
|
2176
|
-
}), d,
|
|
2177
|
-
function
|
|
2178
|
-
(
|
|
2179
|
-
|
|
2204
|
+
o = f.appendChild(xe());
|
|
2205
|
+
}
|
|
2206
|
+
var l = null, u = /* @__PURE__ */ Or(() => {
|
|
2207
|
+
var _ = n();
|
|
2208
|
+
return an(_) ? _ : _ == null ? [] : pt(_);
|
|
2209
|
+
}), d, v = /* @__PURE__ */ new Map(), g = !0;
|
|
2210
|
+
function c(_) {
|
|
2211
|
+
(w.effect.f & se) === 0 && (w.pending.delete(_), w.fallback = l, ci(w, d, o, t, r), l !== null && (d.length === 0 ? (l.f & ce) === 0 ? Lt(l) : (l.f ^= ce, et(l, null, o)) : Re(l, () => {
|
|
2212
|
+
l = null;
|
|
2180
2213
|
})));
|
|
2181
2214
|
}
|
|
2182
|
-
function
|
|
2183
|
-
|
|
2215
|
+
function h(_) {
|
|
2216
|
+
w.pending.delete(_);
|
|
2184
2217
|
}
|
|
2185
|
-
var
|
|
2218
|
+
var m = at(() => {
|
|
2186
2219
|
d = /** @type {V[]} */
|
|
2187
|
-
|
|
2188
|
-
for (var
|
|
2220
|
+
p(u);
|
|
2221
|
+
for (var _ = d.length, A = /* @__PURE__ */ new Set(), I = (
|
|
2189
2222
|
/** @type {Batch} */
|
|
2190
|
-
|
|
2191
|
-
),
|
|
2192
|
-
var
|
|
2193
|
-
|
|
2223
|
+
N
|
|
2224
|
+
), M = Cn(), T = 0; T < _; T += 1) {
|
|
2225
|
+
var j = d[T], S = r(j, T), O = g ? null : a.get(S);
|
|
2226
|
+
O ? (O.v && Ue(O.v, j), O.i && Ue(O.i, T), M && I.unskip_effect(O.e)) : (O = di(
|
|
2194
2227
|
a,
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2228
|
+
g ? o : en ??= xe(),
|
|
2229
|
+
j,
|
|
2230
|
+
S,
|
|
2231
|
+
T,
|
|
2199
2232
|
i,
|
|
2200
2233
|
t,
|
|
2201
2234
|
n
|
|
2202
|
-
),
|
|
2235
|
+
), g || (O.e.f |= ce), a.set(S, O)), A.add(S);
|
|
2203
2236
|
}
|
|
2204
|
-
if (
|
|
2205
|
-
if (
|
|
2206
|
-
for (const [
|
|
2207
|
-
|
|
2208
|
-
|
|
2237
|
+
if (_ === 0 && s && !l && (g ? l = Z(() => s(o)) : (l = Z(() => s(en ??= xe())), l.f |= ce)), _ > A.size && ur(), !g)
|
|
2238
|
+
if (v.set(I, A), M) {
|
|
2239
|
+
for (const [ve, Je] of a)
|
|
2240
|
+
A.has(ve) || I.skip_effect(Je.e);
|
|
2241
|
+
I.oncommit(c), I.ondiscard(h);
|
|
2209
2242
|
} else
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
}),
|
|
2213
|
-
|
|
2243
|
+
c(I);
|
|
2244
|
+
p(u);
|
|
2245
|
+
}), w = { effect: m, items: a, pending: v, outrogroups: null, fallback: l };
|
|
2246
|
+
g = !1;
|
|
2214
2247
|
}
|
|
2215
|
-
function
|
|
2216
|
-
for (; e !== null && (e.f &
|
|
2248
|
+
function Qe(e) {
|
|
2249
|
+
for (; e !== null && (e.f & ae) === 0; )
|
|
2217
2250
|
e = e.next;
|
|
2218
2251
|
return e;
|
|
2219
2252
|
}
|
|
2220
|
-
function
|
|
2221
|
-
var s =
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
if (
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
z.pending.delete(c), z.done.delete(c);
|
|
2231
|
-
if ((c.f & G) !== 0 && (Ft(c), s && (c.nodes?.a?.unfix(), (h ??= /* @__PURE__ */ new Set()).delete(c))), (c.f & ae) !== 0)
|
|
2232
|
-
if (c.f ^= ae, c === l)
|
|
2233
|
-
We(c, null, n);
|
|
2253
|
+
function ci(e, t, n, r, i) {
|
|
2254
|
+
var s = t.length, o = e.items, a = Qe(e.effect.first), f, l = null, u = [], d = [], v, g, c, h;
|
|
2255
|
+
for (h = 0; h < s; h += 1) {
|
|
2256
|
+
if (v = t[h], g = i(v, h), c = /** @type {EachItem} */
|
|
2257
|
+
o.get(g).e, e.outrogroups !== null)
|
|
2258
|
+
for (const S of e.outrogroups)
|
|
2259
|
+
S.pending.delete(c), S.done.delete(c);
|
|
2260
|
+
if ((c.f & K) !== 0 && Lt(c), (c.f & ce) !== 0)
|
|
2261
|
+
if (c.f ^= ce, c === a)
|
|
2262
|
+
et(c, null, n);
|
|
2234
2263
|
else {
|
|
2235
|
-
var
|
|
2236
|
-
c === e.effect.last && (e.effect.last = c.prev), c.prev && (c.prev.next = c.next), c.next && (c.next.prev = c.prev),
|
|
2264
|
+
var m = l ? l.next : a;
|
|
2265
|
+
c === e.effect.last && (e.effect.last = c.prev), c.prev && (c.prev.next = c.next), c.next && (c.next.prev = c.prev), pe(e, l, c), pe(e, c, m), et(c, m, n), l = c, u = [], d = [], a = Qe(l.next);
|
|
2237
2266
|
continue;
|
|
2238
2267
|
}
|
|
2239
|
-
if (c !==
|
|
2268
|
+
if (c !== a) {
|
|
2240
2269
|
if (f !== void 0 && f.has(c)) {
|
|
2241
|
-
if (
|
|
2242
|
-
var
|
|
2243
|
-
|
|
2244
|
-
var
|
|
2245
|
-
for (
|
|
2246
|
-
|
|
2247
|
-
for (
|
|
2248
|
-
f.delete(
|
|
2249
|
-
|
|
2270
|
+
if (u.length < d.length) {
|
|
2271
|
+
var w = d[0], _;
|
|
2272
|
+
l = w.prev;
|
|
2273
|
+
var A = u[0], I = u[u.length - 1];
|
|
2274
|
+
for (_ = 0; _ < u.length; _ += 1)
|
|
2275
|
+
et(u[_], w, n);
|
|
2276
|
+
for (_ = 0; _ < d.length; _ += 1)
|
|
2277
|
+
f.delete(d[_]);
|
|
2278
|
+
pe(e, A.prev, I.next), pe(e, l, A), pe(e, I, w), a = w, l = I, h -= 1, u = [], d = [];
|
|
2250
2279
|
} else
|
|
2251
|
-
f.delete(c),
|
|
2280
|
+
f.delete(c), et(c, a, n), pe(e, c.prev, c.next), pe(e, c, l === null ? e.effect.first : l.next), pe(e, l, c), l = c;
|
|
2252
2281
|
continue;
|
|
2253
2282
|
}
|
|
2254
|
-
for (
|
|
2255
|
-
(f ??= /* @__PURE__ */ new Set()).add(
|
|
2256
|
-
if (
|
|
2283
|
+
for (u = [], d = []; a !== null && a !== c; )
|
|
2284
|
+
(f ??= /* @__PURE__ */ new Set()).add(a), d.push(a), a = Qe(a.next);
|
|
2285
|
+
if (a === null)
|
|
2257
2286
|
continue;
|
|
2258
2287
|
}
|
|
2259
|
-
(c.f &
|
|
2288
|
+
(c.f & ce) === 0 && u.push(c), l = c, a = Qe(c.next);
|
|
2260
2289
|
}
|
|
2261
2290
|
if (e.outrogroups !== null) {
|
|
2262
|
-
for (const
|
|
2263
|
-
|
|
2291
|
+
for (const S of e.outrogroups)
|
|
2292
|
+
S.pending.size === 0 && (St(e, pt(S.done)), e.outrogroups?.delete(S));
|
|
2264
2293
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2265
2294
|
}
|
|
2266
|
-
if (
|
|
2267
|
-
var
|
|
2295
|
+
if (a !== null || f !== void 0) {
|
|
2296
|
+
var M = [];
|
|
2268
2297
|
if (f !== void 0)
|
|
2269
2298
|
for (c of f)
|
|
2270
|
-
(c.f &
|
|
2271
|
-
for (;
|
|
2272
|
-
(
|
|
2273
|
-
var
|
|
2274
|
-
if (
|
|
2275
|
-
var
|
|
2276
|
-
|
|
2277
|
-
for (v = 0; v < $; v += 1)
|
|
2278
|
-
D[v].nodes?.a?.measure();
|
|
2279
|
-
for (v = 0; v < $; v += 1)
|
|
2280
|
-
D[v].nodes?.a?.fix();
|
|
2281
|
-
}
|
|
2282
|
-
fi(e, D, le);
|
|
2299
|
+
(c.f & K) === 0 && M.push(c);
|
|
2300
|
+
for (; a !== null; )
|
|
2301
|
+
(a.f & K) === 0 && a !== e.fallback && M.push(a), a = Qe(a.next);
|
|
2302
|
+
var T = M.length;
|
|
2303
|
+
if (T > 0) {
|
|
2304
|
+
var j = s === 0 ? n : null;
|
|
2305
|
+
ui(e, M, j);
|
|
2283
2306
|
}
|
|
2284
2307
|
}
|
|
2285
|
-
s && Ce(() => {
|
|
2286
|
-
if (h !== void 0)
|
|
2287
|
-
for (c of h)
|
|
2288
|
-
c.nodes?.a?.apply();
|
|
2289
|
-
});
|
|
2290
2308
|
}
|
|
2291
|
-
function
|
|
2292
|
-
var
|
|
2309
|
+
function di(e, t, n, r, i, s, o, a) {
|
|
2310
|
+
var f = (o & 1) !== 0 ? (o & 16) === 0 ? /* @__PURE__ */ Dr(n, !1, !1) : je(n) : null, l = (o & 2) !== 0 ? je(i) : null;
|
|
2293
2311
|
return {
|
|
2294
|
-
v:
|
|
2295
|
-
i:
|
|
2296
|
-
e:
|
|
2312
|
+
v: f,
|
|
2313
|
+
i: l,
|
|
2314
|
+
e: Z(() => (s(t, f ?? n, l ?? i, a), () => {
|
|
2297
2315
|
e.delete(r);
|
|
2298
2316
|
}))
|
|
2299
2317
|
};
|
|
2300
2318
|
}
|
|
2301
|
-
function
|
|
2319
|
+
function et(e, t, n) {
|
|
2302
2320
|
if (e.nodes)
|
|
2303
|
-
for (var r = e.nodes.start, i = e.nodes.end, s = t && (t.f &
|
|
2321
|
+
for (var r = e.nodes.start, i = e.nodes.end, s = t && (t.f & ce) === 0 ? (
|
|
2304
2322
|
/** @type {EffectNodes} */
|
|
2305
2323
|
t.nodes.start
|
|
2306
2324
|
) : n; r !== null; ) {
|
|
2307
2325
|
var o = (
|
|
2308
2326
|
/** @type {TemplateNode} */
|
|
2309
|
-
/* @__PURE__ */
|
|
2327
|
+
/* @__PURE__ */ st(r)
|
|
2310
2328
|
);
|
|
2311
2329
|
if (s.before(r), r === i)
|
|
2312
2330
|
return;
|
|
2313
2331
|
r = o;
|
|
2314
2332
|
}
|
|
2315
2333
|
}
|
|
2316
|
-
function
|
|
2334
|
+
function pe(e, t, n) {
|
|
2317
2335
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
2318
2336
|
}
|
|
2319
|
-
function
|
|
2320
|
-
var r = new
|
|
2321
|
-
|
|
2337
|
+
function vi(e, t, n) {
|
|
2338
|
+
var r = new Bt(e);
|
|
2339
|
+
at(() => {
|
|
2322
2340
|
var i = t() ?? null;
|
|
2323
2341
|
r.ensure(i, i && ((s) => n(s, i)));
|
|
2324
|
-
},
|
|
2342
|
+
}, be);
|
|
2325
2343
|
}
|
|
2326
|
-
function
|
|
2327
|
-
|
|
2344
|
+
function Ae(e, t) {
|
|
2345
|
+
Ur(() => {
|
|
2328
2346
|
var n = e.getRootNode(), r = (
|
|
2329
2347
|
/** @type {ShadowRoot} */
|
|
2330
2348
|
n.host ? (
|
|
@@ -2337,30 +2355,30 @@ function ge(e, t) {
|
|
|
2337
2355
|
)
|
|
2338
2356
|
);
|
|
2339
2357
|
if (!r.querySelector("#" + t.hash)) {
|
|
2340
|
-
const i =
|
|
2358
|
+
const i = Mn("style");
|
|
2341
2359
|
i.id = t.hash, i.textContent = t.code, r.appendChild(i);
|
|
2342
2360
|
}
|
|
2343
2361
|
});
|
|
2344
2362
|
}
|
|
2345
|
-
function
|
|
2363
|
+
function Yn(e) {
|
|
2346
2364
|
var t, n, r = "";
|
|
2347
2365
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
2348
2366
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
2349
2367
|
var i = e.length;
|
|
2350
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
2368
|
+
for (t = 0; t < i; t++) e[t] && (n = Yn(e[t])) && (r && (r += " "), r += n);
|
|
2351
2369
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
2352
2370
|
return r;
|
|
2353
2371
|
}
|
|
2354
|
-
function
|
|
2355
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
2372
|
+
function hi() {
|
|
2373
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Yn(e)) && (r && (r += " "), r += t);
|
|
2356
2374
|
return r;
|
|
2357
2375
|
}
|
|
2358
|
-
function
|
|
2359
|
-
return typeof e == "object" ?
|
|
2376
|
+
function pi(e) {
|
|
2377
|
+
return typeof e == "object" ? hi(e) : e ?? "";
|
|
2360
2378
|
}
|
|
2361
|
-
const
|
|
2379
|
+
const tn = [...`
|
|
2362
2380
|
\r\f \v\uFEFF`];
|
|
2363
|
-
function
|
|
2381
|
+
function gi(e, t, n) {
|
|
2364
2382
|
var r = e == null ? "" : "" + e;
|
|
2365
2383
|
if (t && (r = r ? r + " " + t : t), n) {
|
|
2366
2384
|
for (var i of Object.keys(n))
|
|
@@ -2369,63 +2387,63 @@ function pi(e, t, n) {
|
|
|
2369
2387
|
else if (r.length)
|
|
2370
2388
|
for (var s = i.length, o = 0; (o = r.indexOf(i, o)) >= 0; ) {
|
|
2371
2389
|
var a = o + s;
|
|
2372
|
-
(o === 0 ||
|
|
2390
|
+
(o === 0 || tn.includes(r[o - 1])) && (a === r.length || tn.includes(r[a])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(a + 1) : o = a;
|
|
2373
2391
|
}
|
|
2374
2392
|
}
|
|
2375
2393
|
return r === "" ? null : r;
|
|
2376
2394
|
}
|
|
2377
|
-
function
|
|
2395
|
+
function _i(e, t) {
|
|
2378
2396
|
return e == null ? null : String(e);
|
|
2379
2397
|
}
|
|
2380
|
-
function
|
|
2398
|
+
function _t(e, t, n, r, i, s) {
|
|
2381
2399
|
var o = e.__className;
|
|
2382
2400
|
if (o !== n || o === void 0) {
|
|
2383
|
-
var a =
|
|
2384
|
-
a == null ? e.removeAttribute("class") : e.className = a, e.__className = n;
|
|
2401
|
+
var a = gi(n, r, s);
|
|
2402
|
+
a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a), e.__className = n;
|
|
2385
2403
|
} else if (s && i !== s)
|
|
2386
|
-
for (var
|
|
2387
|
-
var
|
|
2388
|
-
(i == null ||
|
|
2404
|
+
for (var f in s) {
|
|
2405
|
+
var l = !!s[f];
|
|
2406
|
+
(i == null || l !== !!i[f]) && e.classList.toggle(f, l);
|
|
2389
2407
|
}
|
|
2390
2408
|
return s;
|
|
2391
2409
|
}
|
|
2392
|
-
function
|
|
2410
|
+
function R(e, t, n, r) {
|
|
2393
2411
|
var i = e.__style;
|
|
2394
2412
|
if (i !== t) {
|
|
2395
|
-
var s =
|
|
2413
|
+
var s = _i(t);
|
|
2396
2414
|
s == null ? e.removeAttribute("style") : e.style.cssText = s, e.__style = t;
|
|
2397
2415
|
}
|
|
2398
2416
|
return r;
|
|
2399
2417
|
}
|
|
2400
|
-
const
|
|
2401
|
-
function
|
|
2402
|
-
var i =
|
|
2403
|
-
i[t] !== (i[t] = n) && (t === "loading" && (e[
|
|
2418
|
+
const mi = /* @__PURE__ */ Symbol("is custom element"), xi = /* @__PURE__ */ Symbol("is html");
|
|
2419
|
+
function we(e, t, n, r) {
|
|
2420
|
+
var i = wi(e);
|
|
2421
|
+
i[t] !== (i[t] = n) && (t === "loading" && (e[or] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && bi(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2404
2422
|
}
|
|
2405
|
-
function
|
|
2423
|
+
function wi(e) {
|
|
2406
2424
|
return (
|
|
2407
2425
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2408
2426
|
// @ts-expect-error
|
|
2409
2427
|
e.__attributes ??= {
|
|
2410
|
-
[
|
|
2411
|
-
[xi]: e.namespaceURI ===
|
|
2428
|
+
[mi]: e.nodeName.includes("-"),
|
|
2429
|
+
[xi]: e.namespaceURI === sn
|
|
2412
2430
|
}
|
|
2413
2431
|
);
|
|
2414
2432
|
}
|
|
2415
|
-
var
|
|
2416
|
-
function
|
|
2417
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2433
|
+
var nn = /* @__PURE__ */ new Map();
|
|
2434
|
+
function bi(e) {
|
|
2435
|
+
var t = e.getAttribute("is") || e.nodeName, n = nn.get(t);
|
|
2418
2436
|
if (n) return n;
|
|
2419
|
-
|
|
2437
|
+
nn.set(t, n = []);
|
|
2420
2438
|
for (var r, i = e, s = Element.prototype; s !== i; ) {
|
|
2421
|
-
r =
|
|
2439
|
+
r = tr(i);
|
|
2422
2440
|
for (var o in r)
|
|
2423
2441
|
r[o].set && n.push(o);
|
|
2424
|
-
i =
|
|
2442
|
+
i = ln(i);
|
|
2425
2443
|
}
|
|
2426
2444
|
return n;
|
|
2427
2445
|
}
|
|
2428
|
-
function
|
|
2446
|
+
function Q(e, t, n, r) {
|
|
2429
2447
|
var i = (
|
|
2430
2448
|
/** @type {V} */
|
|
2431
2449
|
r
|
|
@@ -2433,397 +2451,556 @@ function xt(e, t, n, r) {
|
|
|
2433
2451
|
r), i), a;
|
|
2434
2452
|
a = /** @type {V} */
|
|
2435
2453
|
e[t], a === void 0 && r !== void 0 && (a = o());
|
|
2436
|
-
var
|
|
2437
|
-
return
|
|
2438
|
-
var
|
|
2454
|
+
var f;
|
|
2455
|
+
return f = () => {
|
|
2456
|
+
var l = (
|
|
2439
2457
|
/** @type {V} */
|
|
2440
2458
|
e[t]
|
|
2441
2459
|
);
|
|
2442
|
-
return
|
|
2443
|
-
},
|
|
2460
|
+
return l === void 0 ? o() : (s = !0, l);
|
|
2461
|
+
}, f;
|
|
2444
2462
|
}
|
|
2445
|
-
const
|
|
2446
|
-
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(
|
|
2447
|
-
var
|
|
2448
|
-
const
|
|
2449
|
-
hash: "svelte-qvulfy",
|
|
2450
|
-
code: ".text-wrapper.svelte-qvulfy {width:100%;margin-left:auto;margin-right:auto;}.text-element.svelte-qvulfy {margin:0;word-wrap:break-word;white-space:pre-wrap;}"
|
|
2451
|
-
};
|
|
2452
|
-
function ki(e, t) {
|
|
2453
|
-
ie(t, !0), ge(e, Ei);
|
|
2454
|
-
var n = yi(), r = m(n), i = m(r);
|
|
2455
|
-
N(() => {
|
|
2456
|
-
y(r, `
|
|
2457
|
-
font-size: ${t.settings.fontSize ?? ""}px;
|
|
2458
|
-
font-weight: ${t.settings.fontWeight ?? ""};
|
|
2459
|
-
line-height: ${t.settings.lineHeight ?? ""};
|
|
2460
|
-
letter-spacing: ${t.settings.letterSpacing ?? ""}px;
|
|
2461
|
-
`), A(i, t.settings.text);
|
|
2462
|
-
}), T(e, n), se();
|
|
2463
|
-
}
|
|
2464
|
-
var Ti = /* @__PURE__ */ C('<div class="button-wrapper svelte-1xlikgk"><button class="cta-button svelte-1xlikgk"> </button></div>');
|
|
2465
|
-
const Ci = {
|
|
2466
|
-
hash: "svelte-1xlikgk",
|
|
2467
|
-
code: ".button-wrapper.svelte-1xlikgk {display:flex;justify-content:center;width:100%;max-width:750px;margin:0 auto;}.cta-button.svelte-1xlikgk {font-weight:700;border:none;cursor:pointer;letter-spacing:0.02em;transition:opacity 0.2s ease;}.cta-button.svelte-1xlikgk:hover {opacity:0.9;}"
|
|
2468
|
-
};
|
|
2469
|
-
function Si(e, t) {
|
|
2470
|
-
ie(t, !0), ge(e, Ci);
|
|
2471
|
-
var n = Ti(), r = m(n), i = m(r);
|
|
2472
|
-
N(() => {
|
|
2473
|
-
y(n, `margin-top: ${t.settings.marginTop ?? ""}px;`), y(r, `
|
|
2474
|
-
background: ${t.settings.backgroundColor ?? ""};
|
|
2475
|
-
color: ${t.settings.textColor ?? ""};
|
|
2476
|
-
border-radius: ${t.settings.borderRadius ?? ""}px;
|
|
2477
|
-
padding: ${t.settings.paddingY ?? ""}px ${t.settings.paddingX ?? ""}px;
|
|
2478
|
-
font-size: ${t.settings.fontSize ?? ""}px;
|
|
2479
|
-
`), A(i, t.settings.text);
|
|
2480
|
-
}), T(e, n), se();
|
|
2481
|
-
}
|
|
2482
|
-
var Ai = /* @__PURE__ */ C('<div class="auth-banner svelte-l4l5xk"><div class="auth-left svelte-l4l5xk"><div class="auth-icon svelte-l4l5xk"><svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"></path></svg></div> <p class="auth-prompt svelte-l4l5xk"> </p></div> <div class="auth-buttons svelte-l4l5xk"><button class="auth-btn login-btn svelte-l4l5xk"> </button> <button class="auth-btn signup-btn svelte-l4l5xk"> </button></div></div>');
|
|
2483
|
-
const Mi = {
|
|
2484
|
-
hash: "svelte-l4l5xk",
|
|
2485
|
-
code: `.auth-banner.svelte-l4l5xk {display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:10px;border:1.5px solid;max-width:750px;width:100%;margin:0 auto;}.auth-left.svelte-l4l5xk {display:flex;align-items:center;gap:16px;flex:1;}.auth-icon.svelte-l4l5xk {display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:2px solid;flex-shrink:0;}.auth-prompt.svelte-l4l5xk {font-size:0.95rem;line-height:1.4;margin:0;}.auth-buttons.svelte-l4l5xk {display:flex;gap:12px;flex-shrink:0;}.auth-btn.svelte-l4l5xk {height:48px;border-radius:8px;padding:13px 32px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;border:none;cursor:pointer;white-space:nowrap;}
|
|
2486
|
-
|
|
2487
|
-
@media (max-width: 640px) {.auth-banner.svelte-l4l5xk {flex-direction:column;text-align:center;}.auth-left.svelte-l4l5xk {flex-direction:column;}.auth-buttons.svelte-l4l5xk {width:100%;}.auth-btn.svelte-l4l5xk {flex:1;}
|
|
2488
|
-
}`
|
|
2489
|
-
};
|
|
2490
|
-
function Ni(e, t) {
|
|
2491
|
-
ie(t, !0), ge(e, Mi);
|
|
2492
|
-
var n = Ai(), r = m(n), i = m(r), s = m(i), o = m(s), a = I(i, 2), l = m(a), f = I(r, 2), u = m(f), h = m(u), d = I(u, 2), g = m(d);
|
|
2493
|
-
N(() => {
|
|
2494
|
-
y(n, `border-color: ${t.settings.borderColor ?? ""}; background: ${t.settings.backgroundColor ?? ""}; margin-top: ${t.settings.marginTop ?? ""}px; padding: ${t.settings.padding ?? ""}px;`), y(i, `border-color: ${t.settings.iconColor ?? ""};`), at(o, "fill", t.settings.iconColor), y(a, `color: ${t.settings.textColor ?? ""};`), A(l, t.settings.promptText), y(u, `background: ${t.settings.loginButtonBackground ?? ""}; color: ${t.settings.loginButtonColor ?? ""};`), A(h, t.settings.loginButtonText), y(d, `background: ${t.settings.signupButtonBackground ?? ""}; color: ${t.settings.signupButtonColor ?? ""};`), A(g, t.settings.signupButtonText);
|
|
2495
|
-
}), T(e, n), se();
|
|
2496
|
-
}
|
|
2497
|
-
var Ri = /* @__PURE__ */ C('<img alt="Banner" class="banner-image svelte-pvxr6w"/>'), Oi = /* @__PURE__ */ C('<div class="banner-placeholder svelte-pvxr6w"><span class="placeholder-icon svelte-pvxr6w">🖼</span> <span class="placeholder-text svelte-pvxr6w">No image — select this element and upload one</span></div>');
|
|
2498
|
-
const Di = {
|
|
2463
|
+
const yi = "5";
|
|
2464
|
+
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(yi);
|
|
2465
|
+
var ki = /* @__PURE__ */ E('<img class="banner-img banner-desktop svelte-pvxr6w" alt="Banner"/>'), Ei = /* @__PURE__ */ E('<img class="banner-img banner-mobile svelte-pvxr6w" alt="Banner"/>'), Ti = /* @__PURE__ */ E("<!> <!>", 1), Ai = /* @__PURE__ */ E('<div class="banner-empty svelte-pvxr6w">Banner image</div>'), Si = /* @__PURE__ */ E('<div class="banner-scrim svelte-pvxr6w"></div>'), Ci = /* @__PURE__ */ E('<span class="banner-layer-text svelte-pvxr6w"> </span>'), Mi = /* @__PURE__ */ E('<div class="banner-stack svelte-pvxr6w"></div>'), Ni = /* @__PURE__ */ E('<div class="banner-root svelte-pvxr6w"><div class="banner-media svelte-pvxr6w"><!> <!></div> <!></div>');
|
|
2466
|
+
const Ri = {
|
|
2499
2467
|
hash: "svelte-pvxr6w",
|
|
2500
|
-
code:
|
|
2468
|
+
code: `.banner-root.svelte-pvxr6w {position:relative;width:100%;}.banner-media.svelte-pvxr6w {position:relative;width:100%;overflow:hidden;}.banner-img.svelte-pvxr6w {display:block;width:100%;}.banner-mobile.svelte-pvxr6w {display:none;}
|
|
2469
|
+
|
|
2470
|
+
@container page (max-width: 767px) {.banner-desktop.svelte-pvxr6w {display:none;}.banner-mobile.svelte-pvxr6w {display:block;}
|
|
2471
|
+
}.banner-empty.svelte-pvxr6w {display:flex;align-items:center;justify-content:center;min-height:280px;font-size:0.85rem;color:rgba(255, 255, 255, 0.5);background:rgba(255, 255, 255, 0.04);border:1px dashed rgba(255, 255, 255, 0.15);}.banner-scrim.svelte-pvxr6w {position:absolute;inset:0;pointer-events:none;}.banner-stack.svelte-pvxr6w {position:absolute;left:0;right:0;transform:translateY(-50%);display:flex;flex-direction:column;padding:0 1.5rem;pointer-events:none;}.banner-layer-text.svelte-pvxr6w {display:inline-block;line-height:1.1;max-width:100%;}`
|
|
2501
2472
|
};
|
|
2502
|
-
function
|
|
2503
|
-
|
|
2504
|
-
|
|
2473
|
+
function Ii(e, t) {
|
|
2474
|
+
Ee(t, !0), Ae(e, Ri);
|
|
2475
|
+
const n = /* @__PURE__ */ X(() => !!(t.settings.desktopImage || t.settings.mobileImage)), r = /* @__PURE__ */ X(() => t.settings.layers ?? []), i = /* @__PURE__ */ X(() => t.settings.textAlign === "left" ? "flex-start" : t.settings.textAlign === "right" ? "flex-end" : "center"), s = (h) => /gradient\(/i.test(h) ? `background-image: ${h}; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;` : `color: ${h};`;
|
|
2476
|
+
var o = Ni(), a = x(o), f = x(a);
|
|
2477
|
+
{
|
|
2478
|
+
var l = (h) => {
|
|
2479
|
+
var m = Ti(), w = vt(m);
|
|
2480
|
+
{
|
|
2481
|
+
var _ = (M) => {
|
|
2482
|
+
var T = ki();
|
|
2483
|
+
C(() => {
|
|
2484
|
+
we(T, "src", t.settings.desktopImage), R(T, `object-fit: ${t.settings.objectFit ?? ""};`);
|
|
2485
|
+
}), y(M, T);
|
|
2486
|
+
};
|
|
2487
|
+
G(w, (M) => {
|
|
2488
|
+
t.settings.desktopImage && M(_);
|
|
2489
|
+
});
|
|
2490
|
+
}
|
|
2491
|
+
var A = F(w, 2);
|
|
2492
|
+
{
|
|
2493
|
+
var I = (M) => {
|
|
2494
|
+
var T = Ei();
|
|
2495
|
+
C(() => {
|
|
2496
|
+
we(T, "src", t.settings.mobileImage), R(T, `object-fit: ${t.settings.objectFit ?? ""};`);
|
|
2497
|
+
}), y(M, T);
|
|
2498
|
+
};
|
|
2499
|
+
G(A, (M) => {
|
|
2500
|
+
t.settings.mobileImage && M(I);
|
|
2501
|
+
});
|
|
2502
|
+
}
|
|
2503
|
+
y(h, m);
|
|
2504
|
+
}, u = (h) => {
|
|
2505
|
+
var m = Ai();
|
|
2506
|
+
y(h, m);
|
|
2507
|
+
};
|
|
2508
|
+
G(f, (h) => {
|
|
2509
|
+
p(n) ? h(l) : h(u, -1);
|
|
2510
|
+
});
|
|
2511
|
+
}
|
|
2512
|
+
var d = F(f, 2);
|
|
2513
|
+
{
|
|
2514
|
+
var v = (h) => {
|
|
2515
|
+
var m = Si();
|
|
2516
|
+
C(() => R(m, `background: ${t.settings.overlayColor ?? ""};`)), y(h, m);
|
|
2517
|
+
};
|
|
2518
|
+
G(d, (h) => {
|
|
2519
|
+
t.settings.overlayColor && t.settings.overlayColor !== "rgba(0,0,0,0)" && h(v);
|
|
2520
|
+
});
|
|
2521
|
+
}
|
|
2522
|
+
var g = F(a, 2);
|
|
2505
2523
|
{
|
|
2506
|
-
var
|
|
2507
|
-
var
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2524
|
+
var c = (h) => {
|
|
2525
|
+
var m = Mi();
|
|
2526
|
+
Ke(m, 21, () => p(r), it, (w, _) => {
|
|
2527
|
+
var A = Wn(), I = vt(A);
|
|
2528
|
+
{
|
|
2529
|
+
var M = (T) => {
|
|
2530
|
+
var j = Ci(), S = x(j);
|
|
2531
|
+
C(
|
|
2532
|
+
(O) => {
|
|
2533
|
+
R(j, `
|
|
2534
|
+
font-size: ${p(_).fontSize ?? ""}px;
|
|
2535
|
+
font-weight: ${p(_).fontWeight ?? ""};
|
|
2536
|
+
${O ?? ""}
|
|
2537
|
+
`), B(S, p(_).text);
|
|
2538
|
+
},
|
|
2539
|
+
[() => s(p(_).color)]
|
|
2540
|
+
), y(T, j);
|
|
2541
|
+
};
|
|
2542
|
+
G(I, (T) => {
|
|
2543
|
+
p(_).text && T(M);
|
|
2544
|
+
});
|
|
2545
|
+
}
|
|
2546
|
+
y(w, A);
|
|
2547
|
+
}), C(() => R(m, `
|
|
2548
|
+
top: ${t.settings.verticalPosition ?? ""}%;
|
|
2549
|
+
align-items: ${p(i) ?? ""};
|
|
2550
|
+
text-align: ${t.settings.textAlign ?? ""};
|
|
2551
|
+
gap: ${t.settings.gap ?? ""}px;
|
|
2552
|
+
`)), y(h, m);
|
|
2512
2553
|
};
|
|
2513
|
-
|
|
2514
|
-
|
|
2554
|
+
G(g, (h) => {
|
|
2555
|
+
p(r).length > 0 && h(c);
|
|
2515
2556
|
});
|
|
2516
2557
|
}
|
|
2517
|
-
|
|
2558
|
+
C(() => R(o, `margin-top: ${t.settings.marginTop ?? ""}px;`)), y(e, o), Te();
|
|
2518
2559
|
}
|
|
2519
|
-
var
|
|
2560
|
+
var Oi = /* @__PURE__ */ E('<p class="text-element svelte-qvulfy"> </p>');
|
|
2520
2561
|
const Fi = {
|
|
2521
|
-
hash: "svelte-
|
|
2522
|
-
code: ".
|
|
2562
|
+
hash: "svelte-qvulfy",
|
|
2563
|
+
code: ".text-element.svelte-qvulfy {margin:0 auto;width:100%;max-width:750px;line-height:1.4;word-wrap:break-word;white-space:pre-wrap;}"
|
|
2523
2564
|
};
|
|
2524
|
-
function
|
|
2525
|
-
|
|
2526
|
-
const n = {
|
|
2527
|
-
var
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
}
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2565
|
+
function ji(e, t) {
|
|
2566
|
+
Ee(t, !0), Ae(e, Fi);
|
|
2567
|
+
const n = /* @__PURE__ */ X(() => /gradient\(/i.test(t.settings.typography.color)), r = /* @__PURE__ */ X(() => p(n) ? `background-image: ${t.settings.typography.color}; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;` : `color: ${t.settings.typography.color};`);
|
|
2568
|
+
var i = Oi(), s = x(i);
|
|
2569
|
+
C(() => {
|
|
2570
|
+
R(i, `
|
|
2571
|
+
margin-top: ${t.settings.marginTop ?? ""}px;
|
|
2572
|
+
text-align: ${t.settings.align ?? ""};
|
|
2573
|
+
font-size: ${t.settings.typography.fontSize ?? ""}px;
|
|
2574
|
+
font-weight: ${t.settings.typography.fontWeight ?? ""};
|
|
2575
|
+
font-family: ${t.settings.typography.fontFamily ?? ""};
|
|
2576
|
+
${p(r) ?? ""}
|
|
2577
|
+
`), B(s, t.settings.typography.text);
|
|
2578
|
+
}), y(e, i), Te();
|
|
2579
|
+
}
|
|
2580
|
+
var zi = /* @__PURE__ */ E('<div class="button-wrap svelte-1xlikgk"><a class="button-element svelte-1xlikgk"> </a></div>');
|
|
2581
|
+
const Di = {
|
|
2582
|
+
hash: "svelte-1xlikgk",
|
|
2583
|
+
code: ".button-wrap.svelte-1xlikgk {display:flex;justify-content:center;width:100%;}.button-element.svelte-1xlikgk {display:inline-flex;align-items:center;justify-content:center;padding:0.75rem 2rem;text-decoration:none;text-align:center;letter-spacing:0.02em;cursor:pointer;transition:filter 0.2s ease;}.button-element.svelte-1xlikgk:hover {filter:brightness(1.05);}"
|
|
2584
|
+
};
|
|
2585
|
+
function Li(e, t) {
|
|
2586
|
+
Ee(t, !0), Ae(e, Di);
|
|
2587
|
+
const n = /* @__PURE__ */ X(() => /gradient\(/i.test(t.settings.background)), r = /* @__PURE__ */ X(() => p(n) ? `background-image: ${t.settings.background};` : `background: ${t.settings.background};`);
|
|
2588
|
+
var i = zi(), s = x(i), o = x(s);
|
|
2589
|
+
C(() => {
|
|
2590
|
+
R(i, `margin-top: ${t.settings.marginTop ?? ""}px;`), we(s, "href", t.settings.link || void 0), R(s, `
|
|
2591
|
+
${p(r) ?? ""}
|
|
2592
|
+
color: ${t.settings.typography.color ?? ""};
|
|
2593
|
+
border-radius: ${t.settings.border.borderRadius ?? ""}px;
|
|
2594
|
+
border: ${t.settings.border.borderWidth ?? ""}px solid ${t.settings.border.borderColor ?? ""};
|
|
2595
|
+
font-size: ${t.settings.typography.fontSize ?? ""}px;
|
|
2596
|
+
font-weight: ${t.settings.typography.fontWeight ?? ""};
|
|
2597
|
+
font-family: ${t.settings.typography.fontFamily ?? ""};
|
|
2598
|
+
`), B(o, t.settings.typography.text);
|
|
2599
|
+
}), y(e, i), Te();
|
|
2600
|
+
}
|
|
2601
|
+
var Pi = /* @__PURE__ */ E('<div><div class="lgb-mask svelte-17lkflg"></div> <!></div>');
|
|
2602
|
+
const Bi = {
|
|
2603
|
+
hash: "svelte-17lkflg",
|
|
2604
|
+
code: `.lgb-wrapper.svelte-17lkflg {position:relative;}.lgb-mask.svelte-17lkflg {display:none;position:absolute;inset:0;pointer-events:none;z-index:2;}
|
|
2542
2605
|
|
|
2543
|
-
@
|
|
2606
|
+
@supports (
|
|
2607
|
+
(-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)) and
|
|
2608
|
+
(mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)) and
|
|
2609
|
+
(-webkit-mask-composite: destination-out) and (mask-composite: exclude)
|
|
2610
|
+
) {.lgb-mask.svelte-17lkflg {display:block;mask:linear-gradient(#fff 0 0) content-box,
|
|
2611
|
+
linear-gradient(#fff 0 0);-webkit-mask:linear-gradient(#fff 0 0) content-box,
|
|
2612
|
+
linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask-composite:destination-out;}
|
|
2544
2613
|
}`
|
|
2545
2614
|
};
|
|
2546
|
-
function
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2615
|
+
function Kn(e, t) {
|
|
2616
|
+
Ae(e, Bi);
|
|
2617
|
+
let n = Q(t, "backgroundGradient", 3, "linear-gradient(180deg, #EC491200, #B7350D 100%)"), r = Q(t, "width", 3, "1px"), i = Q(t, "className", 3, "");
|
|
2618
|
+
var s = Pi(), o = x(s), a = F(o, 2);
|
|
2619
|
+
fi(a, () => t.children), C(() => {
|
|
2620
|
+
_t(s, 1, `lgb-wrapper ${i() ?? ""}`, "svelte-17lkflg"), R(s, `padding: ${r() ?? ""};`), R(o, `background: ${n() ?? ""}; padding: ${r() ?? ""}; border-radius: inherit;`);
|
|
2621
|
+
}), y(e, s);
|
|
2622
|
+
}
|
|
2623
|
+
var qi = /* @__PURE__ */ ri('<svg viewBox="0 0 19 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 6L9.5 12L16 6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
|
|
2624
|
+
const Gi = {
|
|
2625
|
+
hash: "svelte-av1ifv",
|
|
2626
|
+
code: `.arrow.svelte-av1ifv {transition:transform 0.2s ease;}.arrow-up.svelte-av1ifv {transform:rotate(180deg);}.arrow-left.svelte-av1ifv {transform:rotate(90deg);}.arrow-right.svelte-av1ifv {transform:rotate(-90deg);}.arrow-down.svelte-av1ifv {transform:rotate(0deg);}
|
|
2627
|
+
|
|
2628
|
+
@container page (min-width: 768px) {.arrow.md-rotate-left.svelte-av1ifv {transform:rotate(-90deg);}
|
|
2629
|
+
}`
|
|
2630
|
+
};
|
|
2631
|
+
function Ct(e, t) {
|
|
2632
|
+
Ae(e, Gi);
|
|
2633
|
+
let n = Q(t, "width", 3, 19), r = Q(t, "height", 3, 17), i = Q(t, "direction", 3, "down"), s = Q(t, "stroke", 3, "currentColor"), o = Q(t, "className", 3, "");
|
|
2634
|
+
var a = qi(), f = x(a);
|
|
2635
|
+
C(() => {
|
|
2636
|
+
we(a, "width", n()), we(a, "height", r()), _t(a, 0, `arrow arrow-${i() ?? ""} ${o() ?? ""}`, "svelte-av1ifv"), we(f, "stroke", s());
|
|
2637
|
+
}), y(e, a);
|
|
2638
|
+
}
|
|
2639
|
+
var Hi = /* @__PURE__ */ E('<h2 class="hiw-title svelte-w7peaa"> </h2>'), Vi = /* @__PURE__ */ E('<p class="hiw-step-highlight svelte-w7peaa"> </p>'), Ui = /* @__PURE__ */ E('<div class="hiw-step svelte-w7peaa"><div class="hiw-step-glow svelte-w7peaa"></div> <div class="hiw-step-content svelte-w7peaa"><div class="hiw-step-head svelte-w7peaa"><h3 class="hiw-step-title svelte-w7peaa"> </h3> <p class="hiw-step-text svelte-w7peaa"> </p></div> <!></div> <div class="hiw-step-line svelte-w7peaa"></div></div>'), Wi = /* @__PURE__ */ E('<div class="hiw-arrow svelte-w7peaa"><!></div>'), Yi = /* @__PURE__ */ E("<!> <!>", 1), Ki = /* @__PURE__ */ E('<div class="hiw-footer svelte-w7peaa"><p class="hiw-footer-text svelte-w7peaa"> </p></div>'), Xi = /* @__PURE__ */ E('<div class="hiw svelte-w7peaa"><!> <div class="hiw-steps svelte-w7peaa"></div> <!></div>');
|
|
2640
|
+
const Ji = {
|
|
2641
|
+
hash: "svelte-w7peaa",
|
|
2642
|
+
code: `.hiw.svelte-w7peaa {position:relative;width:100%;margin:0 auto;max-width:56rem;min-width:0;}.hiw-title.svelte-w7peaa {margin:0 0 1rem;font-size:1.5rem;font-weight:700;text-align:center;color:inherit;}.hiw-steps.svelte-w7peaa {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;min-width:0;}
|
|
2643
|
+
|
|
2644
|
+
@container page (min-width: 768px) {.hiw-steps.svelte-w7peaa {flex-direction:row;align-items:stretch;}
|
|
2645
|
+
}.hiw-step-border {width:100%;max-width:320px;flex:1 1 0;min-width:0;border-radius:1rem;}
|
|
2646
|
+
|
|
2647
|
+
@container page (min-width: 768px) {.hiw-step-border {max-width:273px;}
|
|
2648
|
+
}.hiw-step.svelte-w7peaa {position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:1rem;overflow:hidden;border-radius:1rem;background:rgba(13, 25, 35, 0.7);padding:1rem;min-height:145px;height:100%;width:100%;}.hiw-step-glow.svelte-w7peaa {pointer-events:none;position:absolute;right:-270px;top:-150px;height:175px;width:445px;transform:rotate(17deg);border-radius:9999px;filter:blur(48px);}.hiw-step-content.svelte-w7peaa {position:relative;display:flex;flex:1;flex-direction:column;justify-content:space-between;gap:0.25rem;text-align:center;}.hiw-step-head.svelte-w7peaa {display:flex;flex-direction:column;gap:0.5rem;}.hiw-step-title.svelte-w7peaa {margin:0;font-size:1.25rem;font-weight:700;line-height:1.1;letter-spacing:-0.025em;color:#fff;}.hiw-step-text.svelte-w7peaa {margin:0;font-size:0.875rem;font-weight:400;line-height:1.6;color:rgba(210, 216, 231, 0.92);}.hiw-step-highlight.svelte-w7peaa {margin:0;font-size:0.875rem;line-height:1.25rem;letter-spacing:-0.01em;font-weight:400;}.hiw-step-line.svelte-w7peaa {position:absolute;bottom:0;left:50%;height:1px;width:200px;transform:translateX(-50%);}.hiw-arrow.svelte-w7peaa {display:flex;align-items:center;justify-content:center;border-radius:9999px;border:1px solid rgba(255, 255, 255, 0.05);background:rgba(13, 25, 35, 0.6);padding:0.375rem;}
|
|
2649
|
+
|
|
2650
|
+
@container page (min-width: 768px) {.hiw-arrow.svelte-w7peaa {align-self:center;}
|
|
2651
|
+
}.hiw-footer.svelte-w7peaa {position:relative;margin:0 auto;max-width:800px;border-radius:0 0 1.5rem 1.5rem;border:1px solid #355d80;border-top:0;background:linear-gradient(to bottom, #10202d, #162a3b);padding:1.25rem 0.75rem;text-align:center;backdrop-filter:blur(4px);}.hiw-footer-text.svelte-w7peaa {margin:0;font-size:0.875rem;line-height:1.5;font-weight:400;color:#fff;}`
|
|
2652
|
+
};
|
|
2653
|
+
function Zi(e, t) {
|
|
2654
|
+
Ee(t, !0), Ae(e, Ji);
|
|
2655
|
+
const n = "linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(13,25,35,0) 100%)", r = (u) => `linear-gradient(90deg, rgba(22,45,63,0) 0%, ${u} 50%, rgba(22,45,63,0) 100%)`;
|
|
2656
|
+
var i = Xi(), s = x(i);
|
|
2657
|
+
{
|
|
2658
|
+
var o = (u) => {
|
|
2659
|
+
var d = Hi(), v = x(d);
|
|
2660
|
+
C(() => B(v, t.settings.title)), y(u, d);
|
|
2661
|
+
};
|
|
2662
|
+
G(s, (u) => {
|
|
2663
|
+
t.settings.title && u(o);
|
|
2664
|
+
});
|
|
2665
|
+
}
|
|
2666
|
+
var a = F(s, 2);
|
|
2667
|
+
Ke(a, 21, () => t.settings.steps, it, (u, d, v) => {
|
|
2668
|
+
var g = Yi(), c = vt(g);
|
|
2669
|
+
{
|
|
2670
|
+
let w = /* @__PURE__ */ X(() => p(d).borderColor || n);
|
|
2671
|
+
Kn(c, {
|
|
2672
|
+
className: "hiw-step-border",
|
|
2673
|
+
get backgroundGradient() {
|
|
2674
|
+
return p(w);
|
|
2675
|
+
},
|
|
2676
|
+
children: (_, A) => {
|
|
2677
|
+
var I = Ui(), M = x(I), T = F(M, 2), j = x(T), S = x(j), O = x(S), ve = F(S, 2), Je = x(ve), Le = F(j, 2);
|
|
2678
|
+
{
|
|
2679
|
+
var ot = (Se) => {
|
|
2680
|
+
var Ze = Vi(), Ce = x(Ze);
|
|
2681
|
+
C(() => {
|
|
2682
|
+
R(Ze, `color: ${p(d).highlightColor ?? ""};`), B(Ce, p(d).highlight);
|
|
2683
|
+
}), y(Se, Ze);
|
|
2684
|
+
};
|
|
2685
|
+
G(Le, (Se) => {
|
|
2686
|
+
p(d).highlight && Se(ot);
|
|
2687
|
+
});
|
|
2688
|
+
}
|
|
2689
|
+
var mt = F(T, 2);
|
|
2690
|
+
C(
|
|
2691
|
+
(Se) => {
|
|
2692
|
+
R(M, `background: ${p(d).glowColor ?? ""};`), B(O, p(d).title), B(Je, p(d).description), R(mt, `background: ${Se ?? ""};`);
|
|
2693
|
+
},
|
|
2694
|
+
[
|
|
2695
|
+
() => r(p(d).accentColor || p(d).highlightColor)
|
|
2696
|
+
]
|
|
2697
|
+
), y(_, I);
|
|
2698
|
+
},
|
|
2699
|
+
$$slots: { default: !0 }
|
|
2700
|
+
});
|
|
2701
|
+
}
|
|
2702
|
+
var h = F(c, 2);
|
|
2703
|
+
{
|
|
2704
|
+
var m = (w) => {
|
|
2705
|
+
var _ = Wi(), A = x(_);
|
|
2706
|
+
Ct(A, {
|
|
2707
|
+
width: 10,
|
|
2708
|
+
height: 10,
|
|
2709
|
+
direction: "down",
|
|
2710
|
+
className: "md-rotate-left",
|
|
2711
|
+
stroke: "#fff"
|
|
2712
|
+
}), y(w, _);
|
|
2713
|
+
};
|
|
2714
|
+
G(h, (w) => {
|
|
2715
|
+
v < t.settings.steps.length - 1 && w(m);
|
|
2716
|
+
});
|
|
2717
|
+
}
|
|
2718
|
+
y(u, g);
|
|
2573
2719
|
});
|
|
2574
|
-
var
|
|
2720
|
+
var f = F(a, 2);
|
|
2575
2721
|
{
|
|
2576
|
-
var
|
|
2577
|
-
var
|
|
2578
|
-
|
|
2579
|
-
y(l, `background: ${t.settings.footerBackground ?? ""}; color: ${t.settings.footerTextColor ?? ""};`), A(u, t.settings.footerText);
|
|
2580
|
-
}), T(a, l);
|
|
2722
|
+
var l = (u) => {
|
|
2723
|
+
var d = Ki(), v = x(d), g = x(v);
|
|
2724
|
+
C(() => B(g, t.settings.footer)), y(u, d);
|
|
2581
2725
|
};
|
|
2582
|
-
|
|
2583
|
-
t.settings.
|
|
2726
|
+
G(f, (u) => {
|
|
2727
|
+
t.settings.footer && u(l);
|
|
2584
2728
|
});
|
|
2585
2729
|
}
|
|
2586
|
-
|
|
2730
|
+
C(() => R(i, `margin-top: ${t.settings.marginTop ?? ""}px;`)), y(e, i), Te();
|
|
2587
2731
|
}
|
|
2588
|
-
var
|
|
2589
|
-
const
|
|
2590
|
-
hash: "svelte-
|
|
2591
|
-
code:
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
}
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2732
|
+
var Qi = /* @__PURE__ */ E('<p class="steps-highlight svelte-1nxdixu"> </p>'), $i = /* @__PURE__ */ E('<div class="steps-item svelte-1nxdixu"><div class="steps-rail svelte-1nxdixu"><div class="steps-badge svelte-1nxdixu"><div class="steps-badge__ring svelte-1nxdixu"><span class="steps-badge__number svelte-1nxdixu"> </span></div></div> <div class="steps-connector svelte-1nxdixu" aria-hidden="true"></div></div> <div class="steps-body svelte-1nxdixu"><h3 class="steps-title svelte-1nxdixu"> </h3> <p class="steps-description svelte-1nxdixu"> </p> <!></div></div>'), es = /* @__PURE__ */ E('<span class="steps-example__label svelte-1nxdixu"> </span>'), ts = /* @__PURE__ */ E('<div class="steps-example-wrap svelte-1nxdixu"><div class="steps-example svelte-1nxdixu"><p class="steps-example__text svelte-1nxdixu"><!><span> </span></p></div></div>'), ns = /* @__PURE__ */ E('<div class="steps svelte-1nxdixu"><div class="steps-grid svelte-1nxdixu"></div> <!></div>');
|
|
2733
|
+
const rs = {
|
|
2734
|
+
hash: "svelte-1nxdixu",
|
|
2735
|
+
code: `.steps.svelte-1nxdixu {position:relative;width:100%;min-width:0;}.steps-grid.svelte-1nxdixu {display:grid;grid-template-columns:1fr;gap:24px;}
|
|
2736
|
+
|
|
2737
|
+
@container page (min-width: 768px) {.steps-grid.svelte-1nxdixu {grid-template-columns:repeat(3, 1fr);gap:32px;}
|
|
2738
|
+
}.steps-item.svelte-1nxdixu {display:flex;align-items:flex-start;gap:8px;min-width:0;}.steps-rail.svelte-1nxdixu {display:flex;flex-direction:column;align-items:center;gap:12px;width:100px;flex-shrink:0;}.steps-badge.svelte-1nxdixu {position:relative;width:72px;height:72px;border-radius:9999px;}.steps-badge__ring.svelte-1nxdixu {position:absolute;inset:0;border-radius:9999px;border:1px solid rgba(255, 255, 255, 0.18);}.steps-badge__number.svelte-1nxdixu {position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);white-space:nowrap;font-size:30px;font-weight:700;line-height:1.2;letter-spacing:-0.8px;}.steps-connector.svelte-1nxdixu {width:2px;height:72px;flex-shrink:0;}.steps-body.svelte-1nxdixu {display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;padding-top:19px;}.steps-title.svelte-1nxdixu {margin:0;width:100%;font-size:24px;font-weight:700;line-height:1.2;letter-spacing:-0.8px;text-transform:uppercase;color:#fff;}.steps-description.svelte-1nxdixu {margin:0;width:100%;font-size:18px;line-height:1.5;color:#b1cadf;}.steps-highlight.svelte-1nxdixu {margin:0;width:100%;font-size:18px;font-weight:600;line-height:1.4;}
|
|
2739
|
+
|
|
2740
|
+
@container page (min-width: 768px) {.steps-body.svelte-1nxdixu {padding-top:0;}.steps-title.svelte-1nxdixu {font-size:30px;}.steps-description.svelte-1nxdixu {font-size:16px;}.steps-highlight.svelte-1nxdixu {font-size:16px;}
|
|
2741
|
+
}.steps-example-wrap.svelte-1nxdixu {display:flex;justify-content:center;margin-top:18px;}
|
|
2742
|
+
|
|
2743
|
+
@container page (min-width: 768px) {.steps-example-wrap.svelte-1nxdixu {margin-top:0;}
|
|
2744
|
+
}.steps-example.svelte-1nxdixu {position:relative;width:100%;max-width:800px;padding:12px 16px;border:1px solid rgba(177, 202, 223, 0.2);border-radius:24px;background:linear-gradient(
|
|
2745
|
+
180deg,
|
|
2746
|
+
rgba(13, 25, 35, 0) 0%,
|
|
2747
|
+
rgba(177, 202, 223, 0.1) 100%
|
|
2748
|
+
);backdrop-filter:blur(7.5px);-webkit-backdrop-filter:blur(7.5px);text-align:center;}.steps-example__text.svelte-1nxdixu {margin:0;font-size:14px;line-height:1.5;font-weight:400;color:#fff;}.steps-example__label.svelte-1nxdixu {font-weight:700;margin-right:4px;}`
|
|
2604
2749
|
};
|
|
2605
|
-
function
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
var i = Ji(), s = m(i), o = m(s), a = m(o), l = m(a), f = I(o, 2);
|
|
2612
|
-
$e(f, 17, () => t.settings.sections, Ct, (u, h, d) => {
|
|
2613
|
-
var g = Xi(), p = m(g), w = m(p), c = m(w), v = I(w, 2);
|
|
2614
|
-
let E;
|
|
2615
|
-
var x = I(p, 2);
|
|
2750
|
+
function is(e, t) {
|
|
2751
|
+
Ee(t, !0), Ae(e, rs);
|
|
2752
|
+
const n = (f) => `linear-gradient(135deg, color-mix(in srgb, ${f} 18%, transparent) 0%, rgba(255,255,255,0.04) 55%, rgba(0,0,0,0) 100%)`, r = (f, l) => `linear-gradient(180deg, ${f || l} 0%, #142636 100%)`;
|
|
2753
|
+
var i = ns(), s = x(i);
|
|
2754
|
+
Ke(s, 21, () => t.settings.steps, it, (f, l) => {
|
|
2755
|
+
var u = $i(), d = x(u), v = x(d), g = x(v), c = x(g), h = x(c), m = F(v, 2), w = F(d, 2), _ = x(w), A = x(_), I = F(_, 2), M = x(I), T = F(I, 2);
|
|
2616
2756
|
{
|
|
2617
|
-
var
|
|
2618
|
-
var
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
}),
|
|
2622
|
-
}
|
|
2623
|
-
|
|
2624
|
-
|
|
2757
|
+
var j = (S) => {
|
|
2758
|
+
var O = Qi(), ve = x(O);
|
|
2759
|
+
C(() => {
|
|
2760
|
+
R(O, `color: ${p(l).highlightColor ?? ""};`), B(ve, p(l).highlight);
|
|
2761
|
+
}), y(S, O);
|
|
2762
|
+
};
|
|
2763
|
+
G(T, (S) => {
|
|
2764
|
+
p(l).highlight && S(j);
|
|
2625
2765
|
});
|
|
2626
2766
|
}
|
|
2627
|
-
|
|
2628
|
-
(O) => {
|
|
2629
|
-
|
|
2767
|
+
C(
|
|
2768
|
+
(S, O) => {
|
|
2769
|
+
R(g, `background-image: ${S ?? ""};`), R(c, `color: ${p(l).accentColor ?? ""};`), B(h, p(l).number), R(m, `background: ${O ?? ""};`), B(A, p(l).title), B(M, p(l).description);
|
|
2630
2770
|
},
|
|
2631
|
-
[
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
}
|
|
2637
|
-
ei(["click"]);
|
|
2638
|
-
var $i = /* @__PURE__ */ C('<div class="placeholder svelte-1x15dd8"><span class="placeholder-icon svelte-1x15dd8">🛒</span> <span class="placeholder-text svelte-1x15dd8">Enter an API URL in settings to load products</span></div>'), es = /* @__PURE__ */ C('<div class="placeholder svelte-1x15dd8"><span class="placeholder-text svelte-1x15dd8">Loading products...</span></div>'), ts = /* @__PURE__ */ C('<div class="placeholder error svelte-1x15dd8"><span class="placeholder-text svelte-1x15dd8"> </span></div>'), ns = /* @__PURE__ */ C('<div class="placeholder svelte-1x15dd8"><span class="placeholder-text svelte-1x15dd8">No products found</span></div>'), rs = /* @__PURE__ */ C('<span class="discount-badge svelte-1x15dd8"> </span>'), is = /* @__PURE__ */ C('<span class="old-price svelte-1x15dd8"> </span>'), ss = /* @__PURE__ */ C('<div class="product-card svelte-1x15dd8"><div class="product-image-wrap svelte-1x15dd8"><img class="product-image svelte-1x15dd8"/> <!></div> <div class="product-info svelte-1x15dd8"><span class="product-brand svelte-1x15dd8"> </span> <h4 class="product-title svelte-1x15dd8"> </h4> <p class="product-desc svelte-1x15dd8"> </p> <div class="product-rating svelte-1x15dd8"> <span class="rating-num svelte-1x15dd8"> </span></div> <div class="product-price svelte-1x15dd8"><span class="current-price svelte-1x15dd8"> </span> <!></div></div></div>'), ls = /* @__PURE__ */ C('<div class="products-grid svelte-1x15dd8"></div>'), as = /* @__PURE__ */ C('<div class="products-wrapper svelte-1x15dd8"><!></div>');
|
|
2639
|
-
const os = {
|
|
2640
|
-
hash: "svelte-1x15dd8",
|
|
2641
|
-
code: `.products-wrapper.svelte-1x15dd8 {max-width:750px;width:100%;margin:0 auto;}.placeholder.svelte-1x15dd8 {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:48px 24px;border:1.5px dashed rgba(255, 255, 255, 0.12);border-radius:8px;background:rgba(255, 255, 255, 0.03);}.placeholder.error.svelte-1x15dd8 {border-color:rgba(239, 68, 68, 0.3);}.placeholder-icon.svelte-1x15dd8 {font-size:2rem;opacity:0.3;}.placeholder-text.svelte-1x15dd8 {font-size:0.8rem;color:rgba(255, 255, 255, 0.3);text-align:center;}.products-grid.svelte-1x15dd8 {display:grid;gap:14px;}.product-card.svelte-1x15dd8 {border-radius:10px;overflow:hidden;display:flex;flex-direction:column;}.product-image-wrap.svelte-1x15dd8 {position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:rgba(0, 0, 0, 0.2);}.product-image.svelte-1x15dd8 {width:100%;height:100%;object-fit:cover;}.discount-badge.svelte-1x15dd8 {position:absolute;top:8px;right:8px;padding:3px 8px;border-radius:6px;font-size:0.7rem;font-weight:700;}.product-info.svelte-1x15dd8 {padding:14px;display:flex;flex-direction:column;gap:6px;flex:1;}.product-brand.svelte-1x15dd8 {font-size:0.65rem;text-transform:uppercase;letter-spacing:0.08em;color:rgba(255, 255, 255, 0.35);font-weight:600;}.product-title.svelte-1x15dd8 {margin:0;font-size:0.85rem;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}.product-desc.svelte-1x15dd8 {margin:0;font-size:0.75rem;line-height:1.4;}.product-rating.svelte-1x15dd8 {font-size:0.75rem;display:flex;align-items:center;gap:4px;}.rating-num.svelte-1x15dd8 {font-size:0.7rem;opacity:0.6;color:rgba(255, 255, 255, 0.5);}.product-price.svelte-1x15dd8 {display:flex;align-items:baseline;gap:8px;margin-top:auto;padding-top:6px;}.current-price.svelte-1x15dd8 {font-size:1rem;font-weight:700;}.old-price.svelte-1x15dd8 {font-size:0.8rem;text-decoration:line-through;}
|
|
2642
|
-
|
|
2643
|
-
@media (max-width: 640px) {.products-grid.svelte-1x15dd8 {grid-template-columns:repeat(2, 1fr) !important;}
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2646
|
-
@media (max-width: 400px) {.products-grid.svelte-1x15dd8 {grid-template-columns:1fr !important;}
|
|
2647
|
-
}`
|
|
2648
|
-
};
|
|
2649
|
-
function fs(e, t) {
|
|
2650
|
-
ie(t, !0), ge(e, os);
|
|
2651
|
-
let n = /* @__PURE__ */ H(he([])), r = /* @__PURE__ */ H(!1), i = /* @__PURE__ */ H(""), s = /* @__PURE__ */ H("");
|
|
2652
|
-
Ur(() => {
|
|
2653
|
-
const c = t.settings.apiUrl;
|
|
2654
|
-
!c || c === _(s) || (B(s, c, !0), o(c));
|
|
2771
|
+
[
|
|
2772
|
+
() => n(p(l).accentColor),
|
|
2773
|
+
() => r(p(l).barColor, p(l).accentColor)
|
|
2774
|
+
]
|
|
2775
|
+
), y(f, u);
|
|
2655
2776
|
});
|
|
2656
|
-
|
|
2657
|
-
B(r, !0), B(i, "");
|
|
2658
|
-
try {
|
|
2659
|
-
const v = await fetch(c);
|
|
2660
|
-
if (!v.ok) throw new Error(`HTTP ${v.status}`);
|
|
2661
|
-
const E = await v.json();
|
|
2662
|
-
B(n, E.products ?? E.data ?? (Array.isArray(E) ? E : []), !0);
|
|
2663
|
-
} catch (v) {
|
|
2664
|
-
B(i, v instanceof Error ? v.message : "Failed to fetch", !0), B(n, [], !0);
|
|
2665
|
-
} finally {
|
|
2666
|
-
B(r, !1);
|
|
2667
|
-
}
|
|
2668
|
-
}
|
|
2669
|
-
function a(c, v) {
|
|
2670
|
-
return `${v === "USD" ? "$" : v} ${c}`;
|
|
2671
|
-
}
|
|
2672
|
-
function l(c) {
|
|
2673
|
-
const v = Math.floor(c), E = c - v >= 0.5 ? 1 : 0, x = 5 - v - E;
|
|
2674
|
-
return "★".repeat(v) + (E ? "½" : "") + "☆".repeat(x);
|
|
2675
|
-
}
|
|
2676
|
-
var f = as(), u = m(f);
|
|
2777
|
+
var o = F(s, 2);
|
|
2677
2778
|
{
|
|
2678
|
-
var
|
|
2679
|
-
var v =
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
var v =
|
|
2692
|
-
|
|
2693
|
-
var M = ss(), P = m(M), O = m(P), D = I(O, 2);
|
|
2694
|
-
{
|
|
2695
|
-
var $ = (ue) => {
|
|
2696
|
-
var ce = rs(), Ye = m(ce);
|
|
2697
|
-
N(() => {
|
|
2698
|
-
y(ce, `background: ${t.settings.discountBadgeBackground ?? ""}; color: ${t.settings.discountBadgeColor ?? ""};`), A(Ye, `-${_(x).price.discountPercentage ?? ""}%`);
|
|
2699
|
-
}), T(ue, ce);
|
|
2700
|
-
};
|
|
2701
|
-
Me(D, (ue) => {
|
|
2702
|
-
_(x).price.discountPercentage > 0 && ue($);
|
|
2703
|
-
});
|
|
2704
|
-
}
|
|
2705
|
-
var le = I(P, 2), z = m(le), ct = m(z), Ve = I(z, 2), Un = m(Ve), dt = I(Ve, 2), Vn = m(dt), vt = I(dt, 2), jt = m(vt), Yn = I(jt), Gn = m(Yn), Kn = I(vt, 2), ht = m(Kn), Wn = m(ht), Xn = I(ht, 2);
|
|
2706
|
-
{
|
|
2707
|
-
var Jn = (ue) => {
|
|
2708
|
-
var ce = is(), Ye = m(ce);
|
|
2709
|
-
N(
|
|
2710
|
-
(pt) => {
|
|
2711
|
-
y(ce, `color: ${t.settings.oldPriceColor ?? ""};`), A(Ye, pt);
|
|
2712
|
-
},
|
|
2713
|
-
[
|
|
2714
|
-
() => a(_(x).price.beforeDiscount, _(x).price.currency)
|
|
2715
|
-
]
|
|
2716
|
-
), T(ue, ce);
|
|
2717
|
-
};
|
|
2718
|
-
Me(Xn, (ue) => {
|
|
2719
|
-
_(x).price.beforeDiscount > _(x).price.current && ue(Jn);
|
|
2720
|
-
});
|
|
2721
|
-
}
|
|
2722
|
-
N(
|
|
2723
|
-
(ue, ce, Ye, pt) => {
|
|
2724
|
-
y(M, `background: ${t.settings.cardBackground ?? ""}; border: 1px solid ${t.settings.cardBorder ?? ""};`), at(O, "src", _(x).thumbnail), at(O, "alt", _(x).title), A(ct, _(x).brand), y(Ve, `color: ${t.settings.titleColor ?? ""};`), A(Un, _(x).title), y(dt, `color: ${t.settings.descriptionColor ?? ""};`), A(Vn, ue), y(vt, `color: ${t.settings.ratingColor ?? ""};`), A(jt, `${ce ?? ""} `), A(Gn, Ye), y(ht, `color: ${t.settings.priceColor ?? ""};`), A(Wn, pt);
|
|
2725
|
-
},
|
|
2726
|
-
[
|
|
2727
|
-
() => _(x).description.length > 80 ? _(x).description.slice(0, 80) + "..." : _(x).description,
|
|
2728
|
-
() => l(_(x).rating),
|
|
2729
|
-
() => _(x).rating.toFixed(1),
|
|
2730
|
-
() => a(_(x).price.current, _(x).price.currency)
|
|
2731
|
-
]
|
|
2732
|
-
), T(E, M);
|
|
2733
|
-
}), N(() => y(v, `grid-template-columns: repeat(${t.settings.columns ?? ""}, 1fr);`)), T(c, v);
|
|
2779
|
+
var a = (f) => {
|
|
2780
|
+
var l = ts(), u = x(l), d = x(u), v = x(d);
|
|
2781
|
+
{
|
|
2782
|
+
var g = (m) => {
|
|
2783
|
+
var w = es(), _ = x(w);
|
|
2784
|
+
C(() => {
|
|
2785
|
+
R(w, `color: ${t.settings.exampleLabelColor ?? ""};`), B(_, t.settings.exampleLabel);
|
|
2786
|
+
}), y(m, w);
|
|
2787
|
+
};
|
|
2788
|
+
G(v, (m) => {
|
|
2789
|
+
t.settings.exampleLabel && m(g);
|
|
2790
|
+
});
|
|
2791
|
+
}
|
|
2792
|
+
var c = F(v), h = x(c);
|
|
2793
|
+
C(() => B(h, t.settings.exampleText)), y(f, l);
|
|
2734
2794
|
};
|
|
2735
|
-
|
|
2736
|
-
t.settings.
|
|
2795
|
+
G(o, (f) => {
|
|
2796
|
+
(t.settings.exampleText || t.settings.exampleLabel) && f(a);
|
|
2737
2797
|
});
|
|
2738
2798
|
}
|
|
2739
|
-
|
|
2740
|
-
}
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2799
|
+
C(() => R(i, `margin-top: ${t.settings.marginTop ?? ""}px;`)), y(e, i), Te();
|
|
2800
|
+
}
|
|
2801
|
+
var ss = /* @__PURE__ */ E('<p class="section-line svelte-1t3p06a"> </p>'), as = /* @__PURE__ */ E('<div class="section-body svelte-1t3p06a"></div>'), ls = /* @__PURE__ */ E('<div class="terms-section svelte-1t3p06a"><div class="section-toggle svelte-1t3p06a"><span class="section-title svelte-1t3p06a"> </span> <button type="button"><!></button></div> <!></div>'), os = /* @__PURE__ */ E('<div class="terms-list svelte-1t3p06a"></div>'), fs = /* @__PURE__ */ E('<div class="terms-panel svelte-1t3p06a"><div class="terms-toggle svelte-1t3p06a"><span class="terms-toggle-label svelte-1t3p06a"> </span> <button type="button" class="terms-toggle-icon svelte-1t3p06a"><!></button></div> <!></div>'), us = /* @__PURE__ */ E('<div class="terms-root svelte-1t3p06a"><!></div>');
|
|
2802
|
+
const cs = {
|
|
2803
|
+
hash: "svelte-1t3p06a",
|
|
2804
|
+
code: ".terms-root.svelte-1t3p06a {margin-left:auto;margin-right:auto;width:100%;max-width:56rem;display:flex;flex-direction:column;gap:0.5rem;}.terms-border {overflow:hidden;border-radius:8px;}.terms-panel.svelte-1t3p06a {padding:0 16px;border-radius:inherit;}.terms-toggle.svelte-1t3p06a {width:100%;display:flex;align-items:center;justify-content:space-between;background:transparent;border:none;padding:12px 0;border-radius:8px;color:var(--terms-text-color, #b1cadf);}.terms-toggle-label.svelte-1t3p06a {font-size:1.125rem;font-weight:800;line-height:125%;color:var(--terms-text-color, #b1cadf);}.terms-toggle-icon.svelte-1t3p06a {min-width:30px;min-height:30px;padding:0;margin:0;font:inherit;color:inherit;appearance:none;display:flex;align-items:center;justify-content:center;border-radius:9999px;background:rgba(228, 246, 255, 0.1);border:1px solid rgba(177, 202, 223, 0.1);cursor:pointer;transition:background 0.15s ease;}.terms-toggle-icon.svelte-1t3p06a:hover {background:rgba(228, 246, 255, 0.2);}.terms-list.svelte-1t3p06a {margin-top:1px;padding:1rem 0;color:var(--terms-text-color, #fff);border-radius:0 0 8px 8px;}.terms-section.svelte-1t3p06a {overflow:hidden;border-top:1px solid rgba(177, 202, 223, 0.2);}.section-toggle.svelte-1t3p06a {width:100%;display:flex;justify-content:space-between;align-items:center;background:transparent;border:none;padding:12px 0;border-radius:8px;color:var(--terms-text-color, #fff);}.section-title.svelte-1t3p06a {text-align:left;color:var(--terms-text-color, #b1cadf);font-size:0.95rem;font-weight:600;}.section-icon.svelte-1t3p06a {height:30px;min-width:30px;padding:0;margin:0;font:inherit;appearance:none;display:flex;align-items:center;justify-content:center;border-radius:100%;background:transparent;border:1px solid transparent;color:inherit;cursor:pointer;transition:background 0.2s ease, border 0.2s ease;}.section-icon--active.svelte-1t3p06a {background:#1a364c;border-top:0.5px solid rgba(94, 131, 161, 0.1);backdrop-filter:blur(15px);}.section-body.svelte-1t3p06a {margin-top:1px;padding:0 0 12px;color:var(--terms-text-color, #fff);}.section-line.svelte-1t3p06a {margin:0 0 4px;font-size:14px;color:var(--terms-text-color, #b1cadf);line-height:1.5;}"
|
|
2805
|
+
};
|
|
2806
|
+
function ds(e, t) {
|
|
2807
|
+
Ee(t, !0), Ae(e, cs);
|
|
2808
|
+
let n = /* @__PURE__ */ W(!1), r = /* @__PURE__ */ W(null);
|
|
2809
|
+
Rn(() => {
|
|
2810
|
+
Y(n, t.settings.openByDefault === "true");
|
|
2811
|
+
});
|
|
2812
|
+
const i = () => {
|
|
2813
|
+
Y(n, !p(n));
|
|
2814
|
+
}, s = (l) => {
|
|
2815
|
+
Y(r, p(r) === l ? null : l, !0);
|
|
2816
|
+
}, o = (l) => l.split(`
|
|
2817
|
+
`).filter((u) => u.length > 0);
|
|
2818
|
+
var a = us(), f = x(a);
|
|
2819
|
+
Kn(f, {
|
|
2820
|
+
className: "terms-border",
|
|
2821
|
+
get backgroundGradient() {
|
|
2822
|
+
return t.settings.borderColor;
|
|
2823
|
+
},
|
|
2824
|
+
children: (l, u) => {
|
|
2825
|
+
var d = fs(), v = x(d), g = x(v), c = x(g), h = F(g, 2), m = x(h);
|
|
2826
|
+
{
|
|
2827
|
+
let A = /* @__PURE__ */ X(() => p(n) ? "up" : "down");
|
|
2828
|
+
Ct(m, {
|
|
2829
|
+
get stroke() {
|
|
2830
|
+
return t.settings.textColor;
|
|
2831
|
+
},
|
|
2832
|
+
width: 19,
|
|
2833
|
+
height: 17,
|
|
2834
|
+
get direction() {
|
|
2835
|
+
return p(A);
|
|
2836
|
+
}
|
|
2837
|
+
});
|
|
2838
|
+
}
|
|
2839
|
+
var w = F(v, 2);
|
|
2840
|
+
{
|
|
2841
|
+
var _ = (A) => {
|
|
2842
|
+
var I = os();
|
|
2843
|
+
Ke(I, 21, () => t.settings.sections, it, (M, T, j) => {
|
|
2844
|
+
var S = ls(), O = x(S), ve = x(O), Je = x(ve), Le = F(ve, 2);
|
|
2845
|
+
let ot;
|
|
2846
|
+
var mt = x(Le);
|
|
2847
|
+
{
|
|
2848
|
+
let Ce = /* @__PURE__ */ X(() => p(r) === j ? "up" : "down");
|
|
2849
|
+
Ct(mt, {
|
|
2850
|
+
get stroke() {
|
|
2851
|
+
return t.settings.textColor;
|
|
2852
|
+
},
|
|
2853
|
+
width: 19,
|
|
2854
|
+
height: 17,
|
|
2855
|
+
get direction() {
|
|
2856
|
+
return p(Ce);
|
|
2857
|
+
}
|
|
2858
|
+
});
|
|
2859
|
+
}
|
|
2860
|
+
var Se = F(O, 2);
|
|
2861
|
+
{
|
|
2862
|
+
var Ze = (Ce) => {
|
|
2863
|
+
var qt = as();
|
|
2864
|
+
Ke(qt, 21, () => o(p(T).lines), it, (Xn, Jn) => {
|
|
2865
|
+
var Gt = ss(), Zn = x(Gt);
|
|
2866
|
+
C(() => B(Zn, p(Jn))), y(Xn, Gt);
|
|
2867
|
+
}), y(Ce, qt);
|
|
2868
|
+
};
|
|
2869
|
+
G(Se, (Ce) => {
|
|
2870
|
+
p(r) === j && Ce(Ze);
|
|
2871
|
+
});
|
|
2872
|
+
}
|
|
2873
|
+
C(() => {
|
|
2874
|
+
B(Je, p(T).title), ot = _t(Le, 1, "section-icon svelte-1t3p06a", null, ot, { "section-icon--active": p(r) === j }), we(Le, "aria-label", p(r) === j ? "Collapse section" : "Expand section");
|
|
2875
|
+
}), Zt("click", Le, () => s(j)), y(M, S);
|
|
2876
|
+
}), y(A, I);
|
|
2877
|
+
};
|
|
2878
|
+
G(w, (A) => {
|
|
2879
|
+
p(n) && A(_);
|
|
2880
|
+
});
|
|
2881
|
+
}
|
|
2882
|
+
C(() => {
|
|
2883
|
+
R(d, `background: ${t.settings.panelBgColor ?? ""};`), B(c, t.settings.title), we(h, "aria-label", p(n) ? "Collapse terms" : "Expand terms");
|
|
2884
|
+
}), Zt("click", h, i), y(l, d);
|
|
2885
|
+
},
|
|
2886
|
+
$$slots: { default: !0 }
|
|
2887
|
+
}), C(() => R(a, `margin-top: ${t.settings.marginTop ?? ""}px; --terms-text-color: ${t.settings.textColor ?? ""};`)), y(e, a), Te();
|
|
2888
|
+
}
|
|
2889
|
+
$r(["click"]);
|
|
2890
|
+
const vs = {
|
|
2891
|
+
banner: Ii,
|
|
2892
|
+
text: ji,
|
|
2893
|
+
button: Li,
|
|
2894
|
+
howItWorks: Zi,
|
|
2895
|
+
steps: is,
|
|
2896
|
+
terms: ds
|
|
2751
2897
|
};
|
|
2752
|
-
function
|
|
2898
|
+
function hs(e) {
|
|
2753
2899
|
return e === null || typeof e != "object" || Array.isArray(e) ? !1 : typeof e.en == "string";
|
|
2754
2900
|
}
|
|
2755
|
-
function
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2901
|
+
function Mt(e, t) {
|
|
2902
|
+
if (hs(e))
|
|
2903
|
+
return e[t] ?? e.en ?? "";
|
|
2904
|
+
if (Array.isArray(e))
|
|
2905
|
+
return e.map((n) => Mt(n, t));
|
|
2906
|
+
if (e !== null && typeof e == "object") {
|
|
2907
|
+
const n = {};
|
|
2908
|
+
for (const [r, i] of Object.entries(e))
|
|
2909
|
+
n[r] = Mt(i, t);
|
|
2910
|
+
return n;
|
|
2911
|
+
}
|
|
2912
|
+
return e;
|
|
2763
2913
|
}
|
|
2764
|
-
function
|
|
2765
|
-
|
|
2766
|
-
for (const [r, i] of Object.entries(e))
|
|
2767
|
-
n[r] = cs(i, t);
|
|
2768
|
-
return n;
|
|
2914
|
+
function rn(e) {
|
|
2915
|
+
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
2769
2916
|
}
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2917
|
+
function Nt(e, t) {
|
|
2918
|
+
if (t === void 0) return e;
|
|
2919
|
+
if (Array.isArray(e) && Array.isArray(t))
|
|
2920
|
+
return e.map(
|
|
2921
|
+
(n, r) => r < t.length ? Nt(n, t[r]) : n
|
|
2922
|
+
);
|
|
2923
|
+
if (rn(e) && rn(t)) {
|
|
2924
|
+
const n = { ...e };
|
|
2925
|
+
for (const [r, i] of Object.entries(t))
|
|
2926
|
+
n[r] = Nt(e[r], i);
|
|
2927
|
+
return n;
|
|
2928
|
+
}
|
|
2929
|
+
return t;
|
|
2930
|
+
}
|
|
2931
|
+
function ps(e, t, n) {
|
|
2932
|
+
const r = n ? Nt(e, n) : e;
|
|
2933
|
+
return Mt(r, t);
|
|
2934
|
+
}
|
|
2935
|
+
var gs = /* @__PURE__ */ E("<div></div>");
|
|
2936
|
+
function _s(e, t) {
|
|
2937
|
+
Ee(t, !0);
|
|
2938
|
+
let n = Q(t, "locale", 3, "en"), r = Q(t, "containerClass", 3, ""), i = Q(t, "containerStyle", 3, ""), s = Q(t, "mobileBreakpoint", 3, 768), o = /* @__PURE__ */ W(!1);
|
|
2939
|
+
Rn(() => {
|
|
2940
|
+
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
2941
|
+
const u = window.matchMedia(`(max-width: ${s()}px)`), d = () => {
|
|
2942
|
+
Y(o, u.matches, !0);
|
|
2943
|
+
};
|
|
2944
|
+
return d(), u.addEventListener("change", d), () => u.removeEventListener("change", d);
|
|
2945
|
+
});
|
|
2946
|
+
const a = /* @__PURE__ */ X(() => () => {
|
|
2947
|
+
const u = t.data.global;
|
|
2776
2948
|
return [
|
|
2777
|
-
`background: ${
|
|
2778
|
-
`padding-top: ${
|
|
2779
|
-
`padding-bottom: ${
|
|
2780
|
-
`padding-left: ${
|
|
2781
|
-
`padding-right: ${
|
|
2949
|
+
`background: ${u.background ?? "#ffffff"}`,
|
|
2950
|
+
`padding-top: ${u.paddingTop ?? 0}px`,
|
|
2951
|
+
`padding-bottom: ${u.paddingBottom ?? 0}px`,
|
|
2952
|
+
`padding-left: ${u.paddingLeft ?? 0}px`,
|
|
2953
|
+
`padding-right: ${u.paddingRight ?? 0}px`,
|
|
2954
|
+
"display: flex",
|
|
2955
|
+
"flex-direction: column",
|
|
2956
|
+
"align-items: stretch",
|
|
2957
|
+
"container-type: inline-size",
|
|
2958
|
+
"container-name: page",
|
|
2782
2959
|
i()
|
|
2783
2960
|
].filter(Boolean).join("; ");
|
|
2784
|
-
}),
|
|
2785
|
-
component:
|
|
2786
|
-
settings:
|
|
2787
|
-
name:
|
|
2788
|
-
})).filter((
|
|
2789
|
-
var
|
|
2790
|
-
|
|
2791
|
-
let
|
|
2792
|
-
const
|
|
2793
|
-
var
|
|
2794
|
-
|
|
2795
|
-
|
|
2961
|
+
}), f = /* @__PURE__ */ X(() => t.data.components.map((u) => ({
|
|
2962
|
+
component: vs[u.name],
|
|
2963
|
+
settings: ps(u.settings, n(), p(o) ? u.mobileSettings : void 0),
|
|
2964
|
+
name: u.name
|
|
2965
|
+
})).filter((u) => u.component !== void 0));
|
|
2966
|
+
var l = gs();
|
|
2967
|
+
Ke(l, 21, () => p(f), ({ component: u, settings: d, name: v }) => v + JSON.stringify(d), (u, d) => {
|
|
2968
|
+
let v = () => p(d).component, g = () => p(d).settings;
|
|
2969
|
+
const c = /* @__PURE__ */ X(v);
|
|
2970
|
+
var h = Wn(), m = vt(h);
|
|
2971
|
+
vi(m, () => p(c), (w, _) => {
|
|
2972
|
+
_(w, {
|
|
2796
2973
|
get settings() {
|
|
2797
|
-
return
|
|
2974
|
+
return g();
|
|
2798
2975
|
}
|
|
2799
2976
|
});
|
|
2800
|
-
}),
|
|
2801
|
-
}),
|
|
2802
|
-
(
|
|
2803
|
-
|
|
2977
|
+
}), y(u, h);
|
|
2978
|
+
}), C(
|
|
2979
|
+
(u) => {
|
|
2980
|
+
_t(l, 1, pi(r())), R(l, u);
|
|
2804
2981
|
},
|
|
2805
|
-
[() =>
|
|
2806
|
-
),
|
|
2982
|
+
[() => p(a)()]
|
|
2983
|
+
), y(e, l), Te();
|
|
2807
2984
|
}
|
|
2808
|
-
function
|
|
2809
|
-
let r = /* @__PURE__ */
|
|
2810
|
-
const s =
|
|
2985
|
+
function xs(e, t, n = "en") {
|
|
2986
|
+
let r = /* @__PURE__ */ W(Me(t)), i = /* @__PURE__ */ W(Me(n));
|
|
2987
|
+
const s = ai(_s, {
|
|
2811
2988
|
target: e,
|
|
2812
2989
|
props: {
|
|
2813
2990
|
get data() {
|
|
2814
|
-
return
|
|
2991
|
+
return p(r);
|
|
2815
2992
|
},
|
|
2816
2993
|
get locale() {
|
|
2817
|
-
return
|
|
2994
|
+
return p(i);
|
|
2818
2995
|
}
|
|
2819
2996
|
}
|
|
2820
2997
|
});
|
|
2821
2998
|
return {
|
|
2822
2999
|
update(o) {
|
|
2823
|
-
|
|
3000
|
+
Y(r, o, !0);
|
|
2824
3001
|
},
|
|
2825
3002
|
setLocale(o) {
|
|
2826
|
-
|
|
3003
|
+
Y(i, o, !0);
|
|
2827
3004
|
},
|
|
2828
3005
|
destroy() {
|
|
2829
3006
|
oi(s);
|
|
@@ -2831,5 +3008,5 @@ function gs(e, t, n = "en") {
|
|
|
2831
3008
|
};
|
|
2832
3009
|
}
|
|
2833
3010
|
export {
|
|
2834
|
-
|
|
3011
|
+
xs as createRenderer
|
|
2835
3012
|
};
|