@papu1337/builder 0.0.5 → 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 +101 -33
- package/dist/elements/banner/settings.d.ts +13 -3
- package/dist/elements/banner/settings.js +88 -8
- package/dist/elements/button/buttonElement.svelte +27 -21
- package/dist/elements/button/settings.d.ts +11 -9
- package/dist/elements/button/settings.js +18 -39
- 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 +14 -0
- package/dist/elements/terms/settings.js +32 -0
- package/dist/elements/terms/termsElement.svelte +209 -0
- package/dist/elements/terms/termsElement.svelte.d.ts +7 -0
- package/dist/elements/text/settings.d.ts +8 -11
- package/dist/elements/text/settings.js +21 -51
- package/dist/elements/text/textElement.svelte +23 -23
- 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 +6 -6
- package/dist/renderer/renderer.vanilla.es.js +1547 -1188
- package/dist/renderer/renderer.vanilla.umd.js +64 -39
- 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 +61 -17
- package/dist/settings/components/ColorSettings.svelte +169 -40
- package/dist/settings/components/ColorSettings.svelte.d.ts +3 -2
- package/dist/settings/components/ListSettings.svelte +4 -5
- package/dist/settings/components/NumberSettings.svelte +117 -20
- 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 +2 -3
- package/dist/settings/components/SettingsGroup.svelte +14 -69
- package/dist/settings/components/SettingsRenderer.svelte +76 -0
- package/dist/settings/components/SettingsRenderer.svelte.d.ts +8 -0
- package/dist/settings/components/TextSettings.svelte +2 -3
- package/dist/settings/components/TranslatableSettings.svelte +3 -4
- package/dist/settings/components/UploadSettings.svelte +2 -3
- 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 +8 -2
- package/dist/elements/accordion/accordionElement.svelte +0 -101
- package/dist/elements/accordion/accordionElement.svelte.d.ts +0 -7
- package/dist/elements/accordion/settings.d.ts +0 -17
- package/dist/elements/accordion/settings.js +0 -54
- package/dist/elements/badge/badgeElement.svelte +0 -49
- package/dist/elements/badge/badgeElement.svelte.d.ts +0 -7
- package/dist/elements/badge/settings.d.ts +0 -14
- package/dist/elements/badge/settings.js +0 -47
- package/dist/elements/ctaCard/ctaCardElement.svelte +0 -132
- package/dist/elements/ctaCard/ctaCardElement.svelte.d.ts +0 -7
- package/dist/elements/ctaCard/settings.d.ts +0 -22
- package/dist/elements/ctaCard/settings.js +0 -64
|
@@ -1,61 +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
|
+
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
27
|
+
}
|
|
28
|
+
function dr() {
|
|
29
|
+
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
30
|
+
}
|
|
31
|
+
function vr(e) {
|
|
32
|
+
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
33
|
+
}
|
|
34
|
+
function hr() {
|
|
26
35
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
27
36
|
}
|
|
28
|
-
function
|
|
37
|
+
function pr() {
|
|
29
38
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
30
39
|
}
|
|
31
|
-
function
|
|
40
|
+
function gr() {
|
|
32
41
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
33
42
|
}
|
|
34
|
-
function
|
|
43
|
+
function _r() {
|
|
35
44
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
36
45
|
}
|
|
37
|
-
function
|
|
46
|
+
function mr() {
|
|
38
47
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
39
48
|
}
|
|
40
|
-
function
|
|
49
|
+
function xr() {
|
|
41
50
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
42
51
|
}
|
|
43
|
-
function
|
|
52
|
+
function un(e) {
|
|
44
53
|
return e === this.v;
|
|
45
54
|
}
|
|
46
|
-
function
|
|
55
|
+
function wr(e, t) {
|
|
47
56
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
48
57
|
}
|
|
49
|
-
function
|
|
50
|
-
return !
|
|
58
|
+
function cn(e) {
|
|
59
|
+
return !wr(e, this.v);
|
|
51
60
|
}
|
|
52
|
-
let
|
|
53
|
-
function
|
|
54
|
-
|
|
61
|
+
let br = !1, te = null;
|
|
62
|
+
function Ve(e) {
|
|
63
|
+
te = e;
|
|
55
64
|
}
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
p:
|
|
65
|
+
function Ee(e, t = !1, n) {
|
|
66
|
+
te = {
|
|
67
|
+
p: te,
|
|
59
68
|
i: !1,
|
|
60
69
|
c: null,
|
|
61
70
|
e: null,
|
|
@@ -63,53 +72,53 @@ function pe(e, t = !1, n) {
|
|
|
63
72
|
x: null,
|
|
64
73
|
r: (
|
|
65
74
|
/** @type {Effect} */
|
|
66
|
-
|
|
75
|
+
k
|
|
67
76
|
),
|
|
68
77
|
l: null
|
|
69
78
|
};
|
|
70
79
|
}
|
|
71
|
-
function
|
|
80
|
+
function Te(e) {
|
|
72
81
|
var t = (
|
|
73
82
|
/** @type {ComponentContext} */
|
|
74
|
-
|
|
83
|
+
te
|
|
75
84
|
), n = t.e;
|
|
76
85
|
if (n !== null) {
|
|
77
86
|
t.e = null;
|
|
78
87
|
for (var r of n)
|
|
79
|
-
|
|
88
|
+
In(r);
|
|
80
89
|
}
|
|
81
|
-
return t.i = !0,
|
|
90
|
+
return t.i = !0, te = t.p, /** @type {T} */
|
|
82
91
|
{};
|
|
83
92
|
}
|
|
84
|
-
function
|
|
93
|
+
function dn() {
|
|
85
94
|
return !0;
|
|
86
95
|
}
|
|
87
|
-
let
|
|
88
|
-
function
|
|
89
|
-
var e =
|
|
90
|
-
|
|
96
|
+
let Pe = [];
|
|
97
|
+
function yr() {
|
|
98
|
+
var e = Pe;
|
|
99
|
+
Pe = [], sr(e);
|
|
91
100
|
}
|
|
92
|
-
function
|
|
93
|
-
if (
|
|
94
|
-
var t =
|
|
101
|
+
function qe(e) {
|
|
102
|
+
if (Pe.length === 0) {
|
|
103
|
+
var t = Pe;
|
|
95
104
|
queueMicrotask(() => {
|
|
96
|
-
t ===
|
|
105
|
+
t === Pe && yr();
|
|
97
106
|
});
|
|
98
107
|
}
|
|
99
|
-
|
|
108
|
+
Pe.push(e);
|
|
100
109
|
}
|
|
101
|
-
function
|
|
102
|
-
var t =
|
|
110
|
+
function vn(e) {
|
|
111
|
+
var t = k;
|
|
103
112
|
if (t === null)
|
|
104
|
-
return
|
|
105
|
-
if ((t.f &
|
|
113
|
+
return b.f |= _e, e;
|
|
114
|
+
if ((t.f & De) === 0 && (t.f & He) === 0)
|
|
106
115
|
throw e;
|
|
107
|
-
|
|
116
|
+
ge(e, t);
|
|
108
117
|
}
|
|
109
|
-
function
|
|
118
|
+
function ge(e, t) {
|
|
110
119
|
for (; t !== null; ) {
|
|
111
|
-
if ((t.f &
|
|
112
|
-
if ((t.f &
|
|
120
|
+
if ((t.f & bt) !== 0) {
|
|
121
|
+
if ((t.f & De) === 0)
|
|
113
122
|
throw e;
|
|
114
123
|
try {
|
|
115
124
|
t.b.error(e);
|
|
@@ -122,30 +131,30 @@ function oe(e, t) {
|
|
|
122
131
|
}
|
|
123
132
|
throw e;
|
|
124
133
|
}
|
|
125
|
-
const
|
|
126
|
-
function
|
|
127
|
-
e.f = e.f &
|
|
134
|
+
const kr = -7169;
|
|
135
|
+
function z(e, t) {
|
|
136
|
+
e.f = e.f & kr | t;
|
|
128
137
|
}
|
|
129
|
-
function
|
|
130
|
-
(e.f &
|
|
138
|
+
function It(e) {
|
|
139
|
+
(e.f & $) !== 0 || e.deps === null ? z(e, D) : z(e, le);
|
|
131
140
|
}
|
|
132
|
-
function
|
|
141
|
+
function hn(e) {
|
|
133
142
|
if (e !== null)
|
|
134
143
|
for (const t of e)
|
|
135
|
-
(t.f &
|
|
144
|
+
(t.f & L) === 0 || (t.f & Fe) === 0 || (t.f ^= Fe, hn(
|
|
136
145
|
/** @type {Derived} */
|
|
137
146
|
t.deps
|
|
138
147
|
));
|
|
139
148
|
}
|
|
140
|
-
function
|
|
141
|
-
(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);
|
|
142
151
|
}
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
var
|
|
146
|
-
let
|
|
147
|
-
class
|
|
148
|
-
id =
|
|
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
|
+
let Er = 1;
|
|
156
|
+
class ye {
|
|
157
|
+
id = Er++;
|
|
149
158
|
/**
|
|
150
159
|
* The current values of any signals that are updated in this batch.
|
|
151
160
|
* Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
|
|
@@ -200,7 +209,7 @@ class ve {
|
|
|
200
209
|
* Deferred effects that are MAYBE_DIRTY
|
|
201
210
|
* @type {Set<Effect>}
|
|
202
211
|
*/
|
|
203
|
-
#
|
|
212
|
+
#a = /* @__PURE__ */ new Set();
|
|
204
213
|
/**
|
|
205
214
|
* A map of branches that still exist, but will be destroyed when this batch
|
|
206
215
|
* is committed — we skip over these during `process`.
|
|
@@ -208,7 +217,7 @@ class ve {
|
|
|
208
217
|
* so they can be rescheduled if the branch survives.
|
|
209
218
|
* @type {Map<Effect, { d: Effect[], m: Effect[] }>}
|
|
210
219
|
*/
|
|
211
|
-
#
|
|
220
|
+
#l = /* @__PURE__ */ new Map();
|
|
212
221
|
is_fork = !1;
|
|
213
222
|
#c = !1;
|
|
214
223
|
/** @type {Set<Batch>} */
|
|
@@ -220,7 +229,7 @@ class ve {
|
|
|
220
229
|
for (const r of this.#f)
|
|
221
230
|
for (const i of r.#r.keys()) {
|
|
222
231
|
for (var t = !1, n = i; n.parent !== null; ) {
|
|
223
|
-
if (this.#
|
|
232
|
+
if (this.#l.has(n)) {
|
|
224
233
|
t = !0;
|
|
225
234
|
break;
|
|
226
235
|
}
|
|
@@ -236,7 +245,7 @@ class ve {
|
|
|
236
245
|
* @param {Effect} effect
|
|
237
246
|
*/
|
|
238
247
|
skip_effect(t) {
|
|
239
|
-
this.#
|
|
248
|
+
this.#l.has(t) || this.#l.set(t, { d: [], m: [] });
|
|
240
249
|
}
|
|
241
250
|
/**
|
|
242
251
|
* Remove an effect from the #skipped_branches map and reschedule
|
|
@@ -244,55 +253,55 @@ class ve {
|
|
|
244
253
|
* @param {Effect} effect
|
|
245
254
|
*/
|
|
246
255
|
unskip_effect(t) {
|
|
247
|
-
var n = this.#
|
|
256
|
+
var n = this.#l.get(t);
|
|
248
257
|
if (n) {
|
|
249
|
-
this.#
|
|
258
|
+
this.#l.delete(t);
|
|
250
259
|
for (var r of n.d)
|
|
251
|
-
|
|
260
|
+
z(r, q), this.schedule(r);
|
|
252
261
|
for (r of n.m)
|
|
253
|
-
|
|
262
|
+
z(r, le), this.schedule(r);
|
|
254
263
|
}
|
|
255
264
|
}
|
|
256
265
|
#v() {
|
|
257
|
-
if (
|
|
258
|
-
for (const
|
|
259
|
-
this.#
|
|
260
|
-
for (const
|
|
261
|
-
|
|
266
|
+
if (Wt++ > 1e3 && (he.delete(this), Tr()), !this.#d()) {
|
|
267
|
+
for (const a of this.#s)
|
|
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);
|
|
262
271
|
}
|
|
263
272
|
const t = this.#n;
|
|
264
273
|
this.#n = [], this.apply();
|
|
265
|
-
var n =
|
|
266
|
-
for (const
|
|
274
|
+
var n = Be = [], r = [], i = ut = [];
|
|
275
|
+
for (const a of t)
|
|
267
276
|
try {
|
|
268
|
-
this.#u(
|
|
269
|
-
} catch (
|
|
270
|
-
throw
|
|
277
|
+
this.#u(a, n, r);
|
|
278
|
+
} catch (f) {
|
|
279
|
+
throw xn(a), f;
|
|
271
280
|
}
|
|
272
|
-
if (
|
|
273
|
-
var s =
|
|
274
|
-
for (const
|
|
275
|
-
s.schedule(
|
|
281
|
+
if (N = null, i.length > 0) {
|
|
282
|
+
var s = ye.ensure();
|
|
283
|
+
for (const a of i)
|
|
284
|
+
s.schedule(a);
|
|
276
285
|
}
|
|
277
|
-
if (
|
|
286
|
+
if (Be = null, ut = null, this.#d() || this.#h()) {
|
|
278
287
|
this.#p(r), this.#p(n);
|
|
279
|
-
for (const [
|
|
280
|
-
|
|
288
|
+
for (const [a, f] of this.#l)
|
|
289
|
+
mn(a, f);
|
|
281
290
|
} else {
|
|
282
|
-
this.#e.size === 0 &&
|
|
283
|
-
for (const
|
|
284
|
-
this.#t.clear(),
|
|
291
|
+
this.#e.size === 0 && he.delete(this), this.#s.clear(), this.#a.clear();
|
|
292
|
+
for (const a of this.#t) a(this);
|
|
293
|
+
this.#t.clear(), Yt(r), Yt(n), this.#i?.resolve();
|
|
285
294
|
}
|
|
286
|
-
var
|
|
295
|
+
var o = (
|
|
287
296
|
/** @type {Batch | null} */
|
|
288
297
|
/** @type {unknown} */
|
|
289
|
-
|
|
298
|
+
N
|
|
290
299
|
);
|
|
291
300
|
if (this.#n.length > 0) {
|
|
292
|
-
const
|
|
293
|
-
|
|
301
|
+
const a = o ??= this;
|
|
302
|
+
a.#n.push(...this.#n.filter((f) => !a.#n.includes(f)));
|
|
294
303
|
}
|
|
295
|
-
|
|
304
|
+
o !== null && (he.add(o), o.#v()), he.has(this) || this.#m();
|
|
296
305
|
}
|
|
297
306
|
/**
|
|
298
307
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -302,14 +311,14 @@ class ve {
|
|
|
302
311
|
* @param {Effect[]} render_effects
|
|
303
312
|
*/
|
|
304
313
|
#u(t, n, r) {
|
|
305
|
-
t.f ^=
|
|
314
|
+
t.f ^= D;
|
|
306
315
|
for (var i = t.first; i !== null; ) {
|
|
307
|
-
var s = i.f,
|
|
308
|
-
if (!
|
|
309
|
-
|
|
310
|
-
var
|
|
311
|
-
if (
|
|
312
|
-
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;
|
|
313
322
|
continue;
|
|
314
323
|
}
|
|
315
324
|
}
|
|
@@ -328,7 +337,7 @@ class ve {
|
|
|
328
337
|
*/
|
|
329
338
|
#p(t) {
|
|
330
339
|
for (var n = 0; n < t.length; n += 1)
|
|
331
|
-
|
|
340
|
+
pn(t[n], this.#s, this.#a);
|
|
332
341
|
}
|
|
333
342
|
/**
|
|
334
343
|
* Associate a change to a given source with the current
|
|
@@ -338,60 +347,60 @@ class ve {
|
|
|
338
347
|
* @param {boolean} [is_derived]
|
|
339
348
|
*/
|
|
340
349
|
capture(t, n, r = !1) {
|
|
341
|
-
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));
|
|
342
351
|
}
|
|
343
352
|
activate() {
|
|
344
|
-
|
|
353
|
+
N = this;
|
|
345
354
|
}
|
|
346
355
|
deactivate() {
|
|
347
|
-
|
|
356
|
+
N = null, re = null;
|
|
348
357
|
}
|
|
349
358
|
flush() {
|
|
350
359
|
try {
|
|
351
|
-
|
|
360
|
+
wt = !0, N = this, this.#v();
|
|
352
361
|
} finally {
|
|
353
|
-
|
|
362
|
+
Wt = 0, kt = null, Be = null, ut = null, wt = !1, N = null, re = null, me.clear();
|
|
354
363
|
}
|
|
355
364
|
}
|
|
356
365
|
discard() {
|
|
357
366
|
for (const t of this.#o) t(this);
|
|
358
|
-
this.#o.clear(),
|
|
367
|
+
this.#o.clear(), he.delete(this);
|
|
359
368
|
}
|
|
360
369
|
#m() {
|
|
361
|
-
for (const
|
|
362
|
-
var t =
|
|
363
|
-
for (const [u, [
|
|
364
|
-
if (
|
|
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)) {
|
|
365
374
|
var r = (
|
|
366
375
|
/** @type {[any, boolean]} */
|
|
367
|
-
|
|
376
|
+
l.current.get(u)[0]
|
|
368
377
|
);
|
|
369
|
-
if (t &&
|
|
370
|
-
|
|
378
|
+
if (t && d !== r)
|
|
379
|
+
l.current.set(u, [d, v]);
|
|
371
380
|
else
|
|
372
381
|
continue;
|
|
373
382
|
}
|
|
374
383
|
n.push(u);
|
|
375
384
|
}
|
|
376
|
-
var i = [...
|
|
385
|
+
var i = [...l.current.keys()].filter((u) => !this.current.has(u));
|
|
377
386
|
if (i.length === 0)
|
|
378
|
-
t &&
|
|
387
|
+
t && l.discard();
|
|
379
388
|
else if (n.length > 0) {
|
|
380
|
-
|
|
381
|
-
var s = /* @__PURE__ */ new Set(),
|
|
382
|
-
for (var
|
|
383
|
-
|
|
384
|
-
if (
|
|
385
|
-
|
|
386
|
-
for (var
|
|
387
|
-
|
|
388
|
-
|
|
389
|
+
l.activate();
|
|
390
|
+
var s = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
391
|
+
for (var a of n)
|
|
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 = [];
|
|
389
398
|
}
|
|
390
|
-
|
|
399
|
+
l.deactivate();
|
|
391
400
|
}
|
|
392
401
|
}
|
|
393
|
-
for (const
|
|
394
|
-
|
|
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()));
|
|
395
404
|
}
|
|
396
405
|
/**
|
|
397
406
|
* @param {boolean} blocking
|
|
@@ -415,7 +424,7 @@ class ve {
|
|
|
415
424
|
let s = this.#r.get(n) ?? 0;
|
|
416
425
|
s === 1 ? this.#r.delete(n) : this.#r.set(n, s - 1);
|
|
417
426
|
}
|
|
418
|
-
this.#c || r || (this.#c = !0,
|
|
427
|
+
this.#c || r || (this.#c = !0, qe(() => {
|
|
419
428
|
this.#c = !1, this.flush();
|
|
420
429
|
}));
|
|
421
430
|
}
|
|
@@ -427,7 +436,7 @@ class ve {
|
|
|
427
436
|
for (const r of t)
|
|
428
437
|
this.#s.add(r);
|
|
429
438
|
for (const r of n)
|
|
430
|
-
this.#
|
|
439
|
+
this.#a.add(r);
|
|
431
440
|
t.clear(), n.clear();
|
|
432
441
|
}
|
|
433
442
|
/** @param {(batch: Batch) => void} fn */
|
|
@@ -439,20 +448,20 @@ class ve {
|
|
|
439
448
|
this.#o.add(t);
|
|
440
449
|
}
|
|
441
450
|
settled() {
|
|
442
|
-
return (this.#i ??=
|
|
451
|
+
return (this.#i ??= on()).promise;
|
|
443
452
|
}
|
|
444
453
|
static ensure() {
|
|
445
|
-
if (
|
|
446
|
-
const t =
|
|
447
|
-
|
|
448
|
-
|
|
454
|
+
if (N === null) {
|
|
455
|
+
const t = N = new ye();
|
|
456
|
+
wt || (he.add(N), qe(() => {
|
|
457
|
+
N === t && t.flush();
|
|
449
458
|
}));
|
|
450
459
|
}
|
|
451
|
-
return
|
|
460
|
+
return N;
|
|
452
461
|
}
|
|
453
462
|
apply() {
|
|
454
463
|
{
|
|
455
|
-
|
|
464
|
+
re = null;
|
|
456
465
|
return;
|
|
457
466
|
}
|
|
458
467
|
}
|
|
@@ -461,80 +470,80 @@ class ve {
|
|
|
461
470
|
* @param {Effect} effect
|
|
462
471
|
*/
|
|
463
472
|
schedule(t) {
|
|
464
|
-
if (
|
|
473
|
+
if (kt = t, t.b?.is_pending && (t.f & (He | gt | fn)) !== 0 && (t.f & De) === 0) {
|
|
465
474
|
t.b.defer_effect(t);
|
|
466
475
|
return;
|
|
467
476
|
}
|
|
468
477
|
for (var n = t; n.parent !== null; ) {
|
|
469
478
|
n = n.parent;
|
|
470
479
|
var r = n.f;
|
|
471
|
-
if (
|
|
480
|
+
if (Be !== null && n === k && (b === null || (b.f & L) === 0))
|
|
472
481
|
return;
|
|
473
|
-
if ((r & (
|
|
474
|
-
if ((r &
|
|
482
|
+
if ((r & (Oe | ae)) !== 0) {
|
|
483
|
+
if ((r & D) === 0)
|
|
475
484
|
return;
|
|
476
|
-
n.f ^=
|
|
485
|
+
n.f ^= D;
|
|
477
486
|
}
|
|
478
487
|
}
|
|
479
488
|
this.#n.push(n);
|
|
480
489
|
}
|
|
481
490
|
}
|
|
482
|
-
function
|
|
491
|
+
function Tr() {
|
|
483
492
|
try {
|
|
484
|
-
|
|
493
|
+
hr();
|
|
485
494
|
} catch (e) {
|
|
486
|
-
|
|
495
|
+
ge(e, kt);
|
|
487
496
|
}
|
|
488
497
|
}
|
|
489
|
-
let
|
|
490
|
-
function
|
|
498
|
+
let fe = null;
|
|
499
|
+
function Yt(e) {
|
|
491
500
|
var t = e.length;
|
|
492
501
|
if (t !== 0) {
|
|
493
502
|
for (var n = 0; n < t; ) {
|
|
494
503
|
var r = e[n++];
|
|
495
|
-
if ((r.f & (
|
|
496
|
-
|
|
497
|
-
for (const i of
|
|
498
|
-
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;
|
|
499
508
|
const s = [i];
|
|
500
|
-
let
|
|
501
|
-
for (;
|
|
502
|
-
|
|
503
|
-
for (let
|
|
504
|
-
const
|
|
505
|
-
(
|
|
509
|
+
let o = i.parent;
|
|
510
|
+
for (; o !== null; )
|
|
511
|
+
fe.has(o) && (fe.delete(o), s.push(o)), o = o.parent;
|
|
512
|
+
for (let a = s.length - 1; a >= 0; a--) {
|
|
513
|
+
const f = s[a];
|
|
514
|
+
(f.f & (se | K)) === 0 && Ye(f);
|
|
506
515
|
}
|
|
507
516
|
}
|
|
508
|
-
|
|
517
|
+
fe.clear();
|
|
509
518
|
}
|
|
510
519
|
}
|
|
511
|
-
|
|
520
|
+
fe = null;
|
|
512
521
|
}
|
|
513
522
|
}
|
|
514
|
-
function
|
|
523
|
+
function gn(e, t, n, r) {
|
|
515
524
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
516
525
|
for (const i of e.reactions) {
|
|
517
526
|
const s = i.f;
|
|
518
|
-
(s &
|
|
527
|
+
(s & L) !== 0 ? gn(
|
|
519
528
|
/** @type {Derived} */
|
|
520
529
|
i,
|
|
521
530
|
t,
|
|
522
531
|
n,
|
|
523
532
|
r
|
|
524
|
-
) : (s & (
|
|
533
|
+
) : (s & (Rt | ke)) !== 0 && (s & q) === 0 && _n(i, t, r) && (z(i, q), Ot(
|
|
525
534
|
/** @type {Effect} */
|
|
526
535
|
i
|
|
527
536
|
));
|
|
528
537
|
}
|
|
529
538
|
}
|
|
530
|
-
function
|
|
539
|
+
function _n(e, t, n) {
|
|
531
540
|
const r = n.get(e);
|
|
532
541
|
if (r !== void 0) return r;
|
|
533
542
|
if (e.deps !== null)
|
|
534
543
|
for (const i of e.deps) {
|
|
535
|
-
if (
|
|
544
|
+
if (Ge.call(t, i))
|
|
536
545
|
return !0;
|
|
537
|
-
if ((i.f &
|
|
546
|
+
if ((i.f & L) !== 0 && _n(
|
|
538
547
|
/** @type {Derived} */
|
|
539
548
|
i,
|
|
540
549
|
t,
|
|
@@ -548,36 +557,36 @@ function Jt(e, t, n) {
|
|
|
548
557
|
}
|
|
549
558
|
return n.set(e, !1), !1;
|
|
550
559
|
}
|
|
551
|
-
function
|
|
552
|
-
|
|
560
|
+
function Ot(e) {
|
|
561
|
+
N.schedule(e);
|
|
553
562
|
}
|
|
554
|
-
function
|
|
555
|
-
if (!((e.f &
|
|
556
|
-
(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);
|
|
557
566
|
for (var n = e.first; n !== null; )
|
|
558
|
-
|
|
567
|
+
mn(n, t), n = n.next;
|
|
559
568
|
}
|
|
560
569
|
}
|
|
561
|
-
function
|
|
562
|
-
|
|
570
|
+
function xn(e) {
|
|
571
|
+
z(e, D);
|
|
563
572
|
for (var t = e.first; t !== null; )
|
|
564
|
-
|
|
573
|
+
xn(t), t = t.next;
|
|
565
574
|
}
|
|
566
|
-
function
|
|
567
|
-
let t = 0, n =
|
|
575
|
+
function Ar(e) {
|
|
576
|
+
let t = 0, n = je(0), r;
|
|
568
577
|
return () => {
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
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));
|
|
572
581
|
});
|
|
573
582
|
})));
|
|
574
583
|
};
|
|
575
584
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
578
|
-
new
|
|
585
|
+
var Sr = be | Xe;
|
|
586
|
+
function Cr(e, t, n, r) {
|
|
587
|
+
new Mr(e, t, n, r);
|
|
579
588
|
}
|
|
580
|
-
class
|
|
589
|
+
class Mr {
|
|
581
590
|
/** @type {Boundary | null} */
|
|
582
591
|
parent;
|
|
583
592
|
is_pending = !1;
|
|
@@ -602,9 +611,9 @@ class ir {
|
|
|
602
611
|
/** @type {Effect | null} */
|
|
603
612
|
#s = null;
|
|
604
613
|
/** @type {Effect | null} */
|
|
605
|
-
#l = null;
|
|
606
|
-
/** @type {DocumentFragment | null} */
|
|
607
614
|
#a = null;
|
|
615
|
+
/** @type {DocumentFragment | null} */
|
|
616
|
+
#l = null;
|
|
608
617
|
#c = 0;
|
|
609
618
|
#f = 0;
|
|
610
619
|
#d = !1;
|
|
@@ -620,7 +629,7 @@ class ir {
|
|
|
620
629
|
* @type {Source<number> | null}
|
|
621
630
|
*/
|
|
622
631
|
#u = null;
|
|
623
|
-
#p =
|
|
632
|
+
#p = Ar(() => (this.#u = je(this.#c), () => {
|
|
624
633
|
this.#u = null;
|
|
625
634
|
}));
|
|
626
635
|
/**
|
|
@@ -631,19 +640,19 @@ class ir {
|
|
|
631
640
|
*/
|
|
632
641
|
constructor(t, n, r, i) {
|
|
633
642
|
this.#t = t, this.#e = n, this.#r = (s) => {
|
|
634
|
-
var
|
|
643
|
+
var o = (
|
|
635
644
|
/** @type {Effect} */
|
|
636
|
-
|
|
645
|
+
k
|
|
637
646
|
);
|
|
638
|
-
|
|
647
|
+
o.b = this, o.f |= bt, r(s);
|
|
639
648
|
}, this.parent = /** @type {Effect} */
|
|
640
|
-
|
|
641
|
-
this.#
|
|
642
|
-
},
|
|
649
|
+
k.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = at(() => {
|
|
650
|
+
this.#x();
|
|
651
|
+
}, Sr);
|
|
643
652
|
}
|
|
644
653
|
#m() {
|
|
645
654
|
try {
|
|
646
|
-
this.#n =
|
|
655
|
+
this.#n = Z(() => this.#r(this.#t));
|
|
647
656
|
} catch (t) {
|
|
648
657
|
this.error(t);
|
|
649
658
|
}
|
|
@@ -651,9 +660,9 @@ class ir {
|
|
|
651
660
|
/**
|
|
652
661
|
* @param {unknown} error The deserialized error from the server's hydration comment
|
|
653
662
|
*/
|
|
654
|
-
#
|
|
663
|
+
#b(t) {
|
|
655
664
|
const n = this.#e.failed;
|
|
656
|
-
n && (this.#
|
|
665
|
+
n && (this.#a = Z(() => {
|
|
657
666
|
n(
|
|
658
667
|
this.#t,
|
|
659
668
|
() => t,
|
|
@@ -664,9 +673,9 @@ class ir {
|
|
|
664
673
|
}
|
|
665
674
|
#y() {
|
|
666
675
|
const t = this.#e.pending;
|
|
667
|
-
t && (this.is_pending = !0, this.#s =
|
|
668
|
-
var n = this.#
|
|
669
|
-
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(
|
|
670
679
|
/** @type {Effect} */
|
|
671
680
|
this.#s,
|
|
672
681
|
() => {
|
|
@@ -674,26 +683,26 @@ class ir {
|
|
|
674
683
|
}
|
|
675
684
|
), this.#g(
|
|
676
685
|
/** @type {Batch} */
|
|
677
|
-
|
|
686
|
+
N
|
|
678
687
|
));
|
|
679
688
|
}));
|
|
680
689
|
}
|
|
681
|
-
#
|
|
690
|
+
#x() {
|
|
682
691
|
try {
|
|
683
|
-
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(() => {
|
|
684
693
|
this.#r(this.#t);
|
|
685
694
|
}), this.#f > 0) {
|
|
686
|
-
var t = this.#
|
|
687
|
-
|
|
695
|
+
var t = this.#l = document.createDocumentFragment();
|
|
696
|
+
Pt(this.#n, t);
|
|
688
697
|
const n = (
|
|
689
698
|
/** @type {(anchor: Node) => void} */
|
|
690
699
|
this.#e.pending
|
|
691
700
|
);
|
|
692
|
-
this.#s =
|
|
701
|
+
this.#s = Z(() => n(this.#t));
|
|
693
702
|
} else
|
|
694
703
|
this.#g(
|
|
695
704
|
/** @type {Batch} */
|
|
696
|
-
|
|
705
|
+
N
|
|
697
706
|
);
|
|
698
707
|
} catch (n) {
|
|
699
708
|
this.error(n);
|
|
@@ -710,7 +719,7 @@ class ir {
|
|
|
710
719
|
* @param {Effect} effect
|
|
711
720
|
*/
|
|
712
721
|
defer_effect(t) {
|
|
713
|
-
|
|
722
|
+
pn(t, this.#h, this.#v);
|
|
714
723
|
}
|
|
715
724
|
/**
|
|
716
725
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -727,14 +736,14 @@ class ir {
|
|
|
727
736
|
* @param {() => T} fn
|
|
728
737
|
*/
|
|
729
738
|
#_(t) {
|
|
730
|
-
var n =
|
|
731
|
-
|
|
739
|
+
var n = k, r = b, i = te;
|
|
740
|
+
oe(this.#i), ne(this.#i), Ve(this.#i.ctx);
|
|
732
741
|
try {
|
|
733
|
-
return
|
|
742
|
+
return ye.ensure(), t();
|
|
734
743
|
} catch (s) {
|
|
735
|
-
return
|
|
744
|
+
return vn(s), null;
|
|
736
745
|
} finally {
|
|
737
|
-
|
|
746
|
+
oe(n), ne(r), Ve(i);
|
|
738
747
|
}
|
|
739
748
|
}
|
|
740
749
|
/**
|
|
@@ -743,14 +752,14 @@ class ir {
|
|
|
743
752
|
* @param {1 | -1} d
|
|
744
753
|
* @param {Batch} batch
|
|
745
754
|
*/
|
|
746
|
-
#
|
|
755
|
+
#w(t, n) {
|
|
747
756
|
if (!this.has_pending_snippet()) {
|
|
748
|
-
this.parent && this.parent.#
|
|
757
|
+
this.parent && this.parent.#w(t, n);
|
|
749
758
|
return;
|
|
750
759
|
}
|
|
751
|
-
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, () => {
|
|
752
761
|
this.#s = null;
|
|
753
|
-
}), this.#
|
|
762
|
+
}), this.#l && (this.#t.before(this.#l), this.#l = null));
|
|
754
763
|
}
|
|
755
764
|
/**
|
|
756
765
|
* Update the source that powers `$effect.pending()` inside this boundary,
|
|
@@ -760,12 +769,12 @@ class ir {
|
|
|
760
769
|
* @param {Batch} batch
|
|
761
770
|
*/
|
|
762
771
|
update_pending_count(t, n) {
|
|
763
|
-
this.#
|
|
764
|
-
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);
|
|
765
774
|
}));
|
|
766
775
|
}
|
|
767
776
|
get_effect_pending() {
|
|
768
|
-
return this.#p(),
|
|
777
|
+
return this.#p(), p(
|
|
769
778
|
/** @type {Source<number>} */
|
|
770
779
|
this.#u
|
|
771
780
|
);
|
|
@@ -776,251 +785,251 @@ class ir {
|
|
|
776
785
|
let r = this.#e.failed;
|
|
777
786
|
if (!n && !r)
|
|
778
787
|
throw t;
|
|
779
|
-
this.#n && (
|
|
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);
|
|
780
789
|
var i = !1, s = !1;
|
|
781
|
-
const
|
|
790
|
+
const o = () => {
|
|
782
791
|
if (i) {
|
|
783
|
-
|
|
792
|
+
xr();
|
|
784
793
|
return;
|
|
785
794
|
}
|
|
786
|
-
i = !0, s &&
|
|
787
|
-
this.#
|
|
795
|
+
i = !0, s && mr(), this.#a !== null && Re(this.#a, () => {
|
|
796
|
+
this.#a = null;
|
|
788
797
|
}), this.#_(() => {
|
|
789
|
-
this.#
|
|
798
|
+
this.#x();
|
|
790
799
|
});
|
|
791
|
-
},
|
|
800
|
+
}, a = (f) => {
|
|
792
801
|
try {
|
|
793
|
-
s = !0, n?.(
|
|
794
|
-
} catch (
|
|
795
|
-
|
|
802
|
+
s = !0, n?.(f, o), s = !1;
|
|
803
|
+
} catch (l) {
|
|
804
|
+
ge(l, this.#i && this.#i.parent);
|
|
796
805
|
}
|
|
797
|
-
r && (this.#
|
|
806
|
+
r && (this.#a = this.#_(() => {
|
|
798
807
|
try {
|
|
799
|
-
return
|
|
800
|
-
var
|
|
808
|
+
return Z(() => {
|
|
809
|
+
var l = (
|
|
801
810
|
/** @type {Effect} */
|
|
802
|
-
|
|
811
|
+
k
|
|
803
812
|
);
|
|
804
|
-
|
|
813
|
+
l.b = this, l.f |= bt, r(
|
|
805
814
|
this.#t,
|
|
806
|
-
() =>
|
|
807
|
-
() =>
|
|
815
|
+
() => f,
|
|
816
|
+
() => o
|
|
808
817
|
);
|
|
809
818
|
});
|
|
810
|
-
} catch (
|
|
811
|
-
return
|
|
812
|
-
|
|
819
|
+
} catch (l) {
|
|
820
|
+
return ge(
|
|
821
|
+
l,
|
|
813
822
|
/** @type {Effect} */
|
|
814
823
|
this.#i.parent
|
|
815
824
|
), null;
|
|
816
825
|
}
|
|
817
826
|
}));
|
|
818
827
|
};
|
|
819
|
-
|
|
820
|
-
var
|
|
828
|
+
qe(() => {
|
|
829
|
+
var f;
|
|
821
830
|
try {
|
|
822
|
-
|
|
823
|
-
} catch (
|
|
824
|
-
|
|
831
|
+
f = this.transform_error(t);
|
|
832
|
+
} catch (l) {
|
|
833
|
+
ge(l, this.#i && this.#i.parent);
|
|
825
834
|
return;
|
|
826
835
|
}
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
836
|
+
f !== null && typeof f == "object" && typeof /** @type {any} */
|
|
837
|
+
f.then == "function" ? f.then(
|
|
838
|
+
a,
|
|
830
839
|
/** @param {unknown} e */
|
|
831
|
-
(
|
|
832
|
-
) :
|
|
840
|
+
(l) => ge(l, this.#i && this.#i.parent)
|
|
841
|
+
) : a(f);
|
|
833
842
|
});
|
|
834
843
|
}
|
|
835
844
|
}
|
|
836
|
-
function
|
|
837
|
-
const i =
|
|
838
|
-
var s = e.filter((
|
|
845
|
+
function Nr(e, t, n, r) {
|
|
846
|
+
const i = Ft;
|
|
847
|
+
var s = e.filter((v) => !v.settled);
|
|
839
848
|
if (n.length === 0 && s.length === 0) {
|
|
840
849
|
r(t.map(i));
|
|
841
850
|
return;
|
|
842
851
|
}
|
|
843
|
-
var
|
|
852
|
+
var o = (
|
|
844
853
|
/** @type {Effect} */
|
|
845
|
-
|
|
846
|
-
),
|
|
847
|
-
function
|
|
848
|
-
|
|
854
|
+
k
|
|
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
|
+
a();
|
|
849
858
|
try {
|
|
850
|
-
r(
|
|
851
|
-
} catch (
|
|
852
|
-
(
|
|
859
|
+
r(v);
|
|
860
|
+
} catch (g) {
|
|
861
|
+
(o.f & se) === 0 && ge(g, o);
|
|
853
862
|
}
|
|
854
|
-
|
|
863
|
+
dt();
|
|
855
864
|
}
|
|
856
865
|
if (n.length === 0) {
|
|
857
|
-
|
|
866
|
+
f.then(() => l(t.map(i)));
|
|
858
867
|
return;
|
|
859
868
|
}
|
|
860
|
-
var u =
|
|
861
|
-
function
|
|
862
|
-
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());
|
|
863
872
|
}
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
}) :
|
|
873
|
+
f ? f.then(() => {
|
|
874
|
+
a(), d(), dt();
|
|
875
|
+
}) : d();
|
|
867
876
|
}
|
|
868
|
-
function
|
|
877
|
+
function Rr() {
|
|
869
878
|
var e = (
|
|
870
879
|
/** @type {Effect} */
|
|
871
|
-
|
|
872
|
-
), t =
|
|
880
|
+
k
|
|
881
|
+
), t = b, n = te, r = (
|
|
873
882
|
/** @type {Batch} */
|
|
874
|
-
|
|
883
|
+
N
|
|
875
884
|
);
|
|
876
885
|
return function(s = !0) {
|
|
877
|
-
|
|
886
|
+
oe(e), ne(t), Ve(n), s && (e.f & se) === 0 && (r?.activate(), r?.apply());
|
|
878
887
|
};
|
|
879
888
|
}
|
|
880
|
-
function
|
|
881
|
-
|
|
889
|
+
function dt(e = !0) {
|
|
890
|
+
oe(null), ne(null), Ve(null), e && N?.deactivate();
|
|
882
891
|
}
|
|
883
|
-
function
|
|
892
|
+
function wn() {
|
|
884
893
|
var e = (
|
|
885
894
|
/** @type {Effect} */
|
|
886
|
-
|
|
895
|
+
k
|
|
887
896
|
), t = (
|
|
888
897
|
/** @type {Boundary} */
|
|
889
898
|
e.b
|
|
890
899
|
), n = (
|
|
891
900
|
/** @type {Batch} */
|
|
892
|
-
|
|
901
|
+
N
|
|
893
902
|
), r = t.is_rendered();
|
|
894
903
|
return t.update_pending_count(1, n), n.increment(r, e), (i = !1) => {
|
|
895
904
|
t.update_pending_count(-1, n), n.decrement(r, e, i);
|
|
896
905
|
};
|
|
897
906
|
}
|
|
898
907
|
// @__NO_SIDE_EFFECTS__
|
|
899
|
-
function
|
|
900
|
-
var t =
|
|
908
|
+
function Ft(e) {
|
|
909
|
+
var t = L | q, n = b !== null && (b.f & L) !== 0 ? (
|
|
901
910
|
/** @type {Derived} */
|
|
902
|
-
|
|
911
|
+
b
|
|
903
912
|
) : null;
|
|
904
|
-
return
|
|
905
|
-
ctx:
|
|
913
|
+
return k !== null && (k.f |= Xe), {
|
|
914
|
+
ctx: te,
|
|
906
915
|
deps: null,
|
|
907
916
|
effects: null,
|
|
908
|
-
equals:
|
|
917
|
+
equals: un,
|
|
909
918
|
f: t,
|
|
910
919
|
fn: e,
|
|
911
920
|
reactions: null,
|
|
912
921
|
rv: 0,
|
|
913
922
|
v: (
|
|
914
923
|
/** @type {V} */
|
|
915
|
-
|
|
924
|
+
P
|
|
916
925
|
),
|
|
917
926
|
wv: 0,
|
|
918
|
-
parent: n ??
|
|
927
|
+
parent: n ?? k,
|
|
919
928
|
ac: null
|
|
920
929
|
};
|
|
921
930
|
}
|
|
922
931
|
// @__NO_SIDE_EFFECTS__
|
|
923
|
-
function
|
|
932
|
+
function Ir(e, t, n) {
|
|
924
933
|
let r = (
|
|
925
934
|
/** @type {Effect | null} */
|
|
926
|
-
|
|
935
|
+
k
|
|
927
936
|
);
|
|
928
|
-
r === null &&
|
|
937
|
+
r === null && fr();
|
|
929
938
|
var i = (
|
|
930
939
|
/** @type {Promise<V>} */
|
|
931
940
|
/** @type {unknown} */
|
|
932
941
|
void 0
|
|
933
|
-
), s =
|
|
942
|
+
), s = je(
|
|
934
943
|
/** @type {V} */
|
|
935
|
-
|
|
936
|
-
),
|
|
937
|
-
return
|
|
938
|
-
var
|
|
944
|
+
P
|
|
945
|
+
), o = !b, a = /* @__PURE__ */ new Map();
|
|
946
|
+
return Wr(() => {
|
|
947
|
+
var f = (
|
|
939
948
|
/** @type {Effect} */
|
|
940
|
-
|
|
941
|
-
),
|
|
942
|
-
i =
|
|
949
|
+
k
|
|
950
|
+
), l = on();
|
|
951
|
+
i = l.promise;
|
|
943
952
|
try {
|
|
944
|
-
Promise.resolve(e()).then(
|
|
945
|
-
} catch (
|
|
946
|
-
|
|
953
|
+
Promise.resolve(e()).then(l.resolve, l.reject).finally(dt);
|
|
954
|
+
} catch (g) {
|
|
955
|
+
l.reject(g), dt();
|
|
947
956
|
}
|
|
948
957
|
var u = (
|
|
949
958
|
/** @type {Batch} */
|
|
950
|
-
|
|
959
|
+
N
|
|
951
960
|
);
|
|
952
|
-
if (
|
|
953
|
-
if ((
|
|
954
|
-
var
|
|
961
|
+
if (o) {
|
|
962
|
+
if ((f.f & De) !== 0)
|
|
963
|
+
var d = wn();
|
|
955
964
|
if (
|
|
956
965
|
/** @type {Boundary} */
|
|
957
966
|
r.b.is_rendered()
|
|
958
967
|
)
|
|
959
|
-
|
|
968
|
+
a.get(u)?.reject(ue), a.delete(u);
|
|
960
969
|
else {
|
|
961
|
-
for (const
|
|
962
|
-
|
|
963
|
-
|
|
970
|
+
for (const g of a.values())
|
|
971
|
+
g.reject(ue);
|
|
972
|
+
a.clear();
|
|
964
973
|
}
|
|
965
|
-
|
|
974
|
+
a.set(u, l);
|
|
966
975
|
}
|
|
967
|
-
const
|
|
968
|
-
if (
|
|
969
|
-
var
|
|
970
|
-
|
|
976
|
+
const v = (g, c = void 0) => {
|
|
977
|
+
if (d) {
|
|
978
|
+
var h = c === ue;
|
|
979
|
+
d(h);
|
|
971
980
|
}
|
|
972
|
-
if (!(c ===
|
|
981
|
+
if (!(c === ue || (f.f & se) !== 0)) {
|
|
973
982
|
if (u.activate(), c)
|
|
974
|
-
s.f |=
|
|
983
|
+
s.f |= _e, Ue(s, c);
|
|
975
984
|
else {
|
|
976
|
-
(s.f &
|
|
977
|
-
for (const [
|
|
978
|
-
if (
|
|
979
|
-
|
|
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);
|
|
980
989
|
}
|
|
981
990
|
}
|
|
982
991
|
u.deactivate();
|
|
983
992
|
}
|
|
984
993
|
};
|
|
985
|
-
|
|
986
|
-
}),
|
|
987
|
-
for (const
|
|
988
|
-
|
|
989
|
-
}), new Promise((
|
|
990
|
-
function
|
|
991
|
-
function
|
|
992
|
-
u === i ?
|
|
994
|
+
l.promise.then(v, (g) => v(null, g || "unknown"));
|
|
995
|
+
}), Hr(() => {
|
|
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);
|
|
993
1002
|
}
|
|
994
|
-
u.then(
|
|
1003
|
+
u.then(d, d);
|
|
995
1004
|
}
|
|
996
|
-
|
|
1005
|
+
l(i);
|
|
997
1006
|
});
|
|
998
1007
|
}
|
|
999
1008
|
// @__NO_SIDE_EFFECTS__
|
|
1000
|
-
function
|
|
1001
|
-
const t = /* @__PURE__ */
|
|
1002
|
-
return
|
|
1009
|
+
function X(e) {
|
|
1010
|
+
const t = /* @__PURE__ */ Ft(e);
|
|
1011
|
+
return Dn(t), t;
|
|
1003
1012
|
}
|
|
1004
1013
|
// @__NO_SIDE_EFFECTS__
|
|
1005
|
-
function
|
|
1006
|
-
const t = /* @__PURE__ */
|
|
1007
|
-
return t.equals =
|
|
1014
|
+
function Or(e) {
|
|
1015
|
+
const t = /* @__PURE__ */ Ft(e);
|
|
1016
|
+
return t.equals = cn, t;
|
|
1008
1017
|
}
|
|
1009
|
-
function
|
|
1018
|
+
function Fr(e) {
|
|
1010
1019
|
var t = e.effects;
|
|
1011
1020
|
if (t !== null) {
|
|
1012
1021
|
e.effects = null;
|
|
1013
1022
|
for (var n = 0; n < t.length; n += 1)
|
|
1014
|
-
|
|
1023
|
+
V(
|
|
1015
1024
|
/** @type {Effect} */
|
|
1016
1025
|
t[n]
|
|
1017
1026
|
);
|
|
1018
1027
|
}
|
|
1019
1028
|
}
|
|
1020
|
-
function
|
|
1029
|
+
function jr(e) {
|
|
1021
1030
|
for (var t = e.parent; t !== null; ) {
|
|
1022
|
-
if ((t.f &
|
|
1023
|
-
return (t.f &
|
|
1031
|
+
if ((t.f & L) === 0)
|
|
1032
|
+
return (t.f & se) === 0 ? (
|
|
1024
1033
|
/** @type {Effect} */
|
|
1025
1034
|
t
|
|
1026
1035
|
) : null;
|
|
@@ -1028,314 +1037,317 @@ function ur(e) {
|
|
|
1028
1037
|
}
|
|
1029
1038
|
return null;
|
|
1030
1039
|
}
|
|
1031
|
-
function
|
|
1032
|
-
var t, n =
|
|
1033
|
-
|
|
1040
|
+
function jt(e) {
|
|
1041
|
+
var t, n = k;
|
|
1042
|
+
oe(jr(e));
|
|
1034
1043
|
try {
|
|
1035
|
-
e.f &= ~
|
|
1044
|
+
e.f &= ~Fe, Fr(e), t = qn(e);
|
|
1036
1045
|
} finally {
|
|
1037
|
-
|
|
1046
|
+
oe(n);
|
|
1038
1047
|
}
|
|
1039
1048
|
return t;
|
|
1040
1049
|
}
|
|
1041
|
-
function
|
|
1042
|
-
var t = e.v, n =
|
|
1043
|
-
if (!e.equals(n) && (e.wv =
|
|
1044
|
-
|
|
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);
|
|
1045
1054
|
return;
|
|
1046
1055
|
}
|
|
1047
|
-
|
|
1056
|
+
ze || (re !== null ? (zt() || N?.is_fork) && re.set(e, n) : It(e));
|
|
1048
1057
|
}
|
|
1049
|
-
function
|
|
1058
|
+
function zr(e) {
|
|
1050
1059
|
if (e.effects !== null)
|
|
1051
1060
|
for (const t of e.effects)
|
|
1052
|
-
(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));
|
|
1053
1062
|
}
|
|
1054
|
-
function
|
|
1063
|
+
function yn(e) {
|
|
1055
1064
|
if (e.effects !== null)
|
|
1056
1065
|
for (const t of e.effects)
|
|
1057
|
-
t.teardown &&
|
|
1066
|
+
t.teardown && Ye(t);
|
|
1058
1067
|
}
|
|
1059
|
-
let
|
|
1060
|
-
const
|
|
1061
|
-
let
|
|
1062
|
-
function
|
|
1068
|
+
let Et = /* @__PURE__ */ new Set();
|
|
1069
|
+
const me = /* @__PURE__ */ new Map();
|
|
1070
|
+
let kn = !1;
|
|
1071
|
+
function je(e, t) {
|
|
1063
1072
|
var n = {
|
|
1064
1073
|
f: 0,
|
|
1065
1074
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1066
1075
|
v: e,
|
|
1067
1076
|
reactions: null,
|
|
1068
|
-
equals:
|
|
1077
|
+
equals: un,
|
|
1069
1078
|
rv: 0,
|
|
1070
1079
|
wv: 0
|
|
1071
1080
|
};
|
|
1072
1081
|
return n;
|
|
1073
1082
|
}
|
|
1074
1083
|
// @__NO_SIDE_EFFECTS__
|
|
1075
|
-
function
|
|
1076
|
-
const n =
|
|
1077
|
-
return
|
|
1084
|
+
function W(e, t) {
|
|
1085
|
+
const n = je(e);
|
|
1086
|
+
return Dn(n), n;
|
|
1078
1087
|
}
|
|
1079
1088
|
// @__NO_SIDE_EFFECTS__
|
|
1080
|
-
function
|
|
1081
|
-
const r =
|
|
1082
|
-
return t || (r.equals =
|
|
1089
|
+
function Dr(e, t = !1, n = !0) {
|
|
1090
|
+
const r = je(e);
|
|
1091
|
+
return t || (r.equals = cn), r;
|
|
1083
1092
|
}
|
|
1084
|
-
function
|
|
1085
|
-
|
|
1093
|
+
function Y(e, t, n = !1) {
|
|
1094
|
+
b !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1086
1095
|
// to ensure we error if state is set inside an inspect effect
|
|
1087
|
-
(!
|
|
1088
|
-
let r = n ?
|
|
1089
|
-
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);
|
|
1090
1099
|
}
|
|
1091
|
-
function
|
|
1100
|
+
function Ue(e, t, n = null) {
|
|
1092
1101
|
if (!e.equals(t)) {
|
|
1093
1102
|
var r = e.v;
|
|
1094
|
-
|
|
1095
|
-
var i =
|
|
1096
|
-
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) {
|
|
1097
1106
|
const s = (
|
|
1098
1107
|
/** @type {Derived} */
|
|
1099
1108
|
e
|
|
1100
1109
|
);
|
|
1101
|
-
(e.f &
|
|
1110
|
+
(e.f & q) !== 0 && jt(s), re === null && It(s);
|
|
1102
1111
|
}
|
|
1103
|
-
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();
|
|
1104
1113
|
}
|
|
1105
1114
|
return t;
|
|
1106
1115
|
}
|
|
1107
|
-
function
|
|
1108
|
-
|
|
1109
|
-
for (const e of
|
|
1110
|
-
(e.f &
|
|
1111
|
-
|
|
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();
|
|
1112
1121
|
}
|
|
1113
|
-
function
|
|
1114
|
-
|
|
1122
|
+
function nt(e) {
|
|
1123
|
+
Y(e, e.v + 1);
|
|
1115
1124
|
}
|
|
1116
|
-
function
|
|
1125
|
+
function En(e, t, n) {
|
|
1117
1126
|
var r = e.reactions;
|
|
1118
1127
|
if (r !== null)
|
|
1119
1128
|
for (var i = r.length, s = 0; s < i; s++) {
|
|
1120
|
-
var
|
|
1121
|
-
if (
|
|
1122
|
-
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 = (
|
|
1123
1132
|
/** @type {Derived} */
|
|
1124
|
-
|
|
1133
|
+
o
|
|
1125
1134
|
);
|
|
1126
|
-
|
|
1127
|
-
} else if (
|
|
1135
|
+
re?.delete(l), (a & Fe) === 0 && (a & $ && (o.f |= Fe), En(l, le, n));
|
|
1136
|
+
} else if (f) {
|
|
1128
1137
|
var u = (
|
|
1129
1138
|
/** @type {Effect} */
|
|
1130
|
-
|
|
1139
|
+
o
|
|
1131
1140
|
);
|
|
1132
|
-
(
|
|
1141
|
+
(a & ke) !== 0 && fe !== null && fe.add(u), n !== null ? n.push(u) : Ot(u);
|
|
1133
1142
|
}
|
|
1134
1143
|
}
|
|
1135
1144
|
}
|
|
1136
|
-
function
|
|
1137
|
-
if (typeof e != "object" || e === null ||
|
|
1145
|
+
function Me(e) {
|
|
1146
|
+
if (typeof e != "object" || e === null || xt in e)
|
|
1138
1147
|
return e;
|
|
1139
|
-
const t =
|
|
1140
|
-
if (t !==
|
|
1148
|
+
const t = ln(e);
|
|
1149
|
+
if (t !== nr && t !== rr)
|
|
1141
1150
|
return e;
|
|
1142
|
-
var n = /* @__PURE__ */ new Map(), r =
|
|
1143
|
-
if (
|
|
1144
|
-
return
|
|
1145
|
-
var
|
|
1146
|
-
|
|
1147
|
-
var u =
|
|
1148
|
-
return
|
|
1151
|
+
var n = /* @__PURE__ */ new Map(), r = an(e), i = /* @__PURE__ */ W(0), s = Ie, o = (a) => {
|
|
1152
|
+
if (Ie === s)
|
|
1153
|
+
return a();
|
|
1154
|
+
var f = b, l = Ie;
|
|
1155
|
+
ne(null), Jt(s);
|
|
1156
|
+
var u = a();
|
|
1157
|
+
return ne(f), Jt(l), u;
|
|
1149
1158
|
};
|
|
1150
|
-
return r && n.set("length", /* @__PURE__ */
|
|
1159
|
+
return r && n.set("length", /* @__PURE__ */ W(
|
|
1151
1160
|
/** @type {any[]} */
|
|
1152
1161
|
e.length
|
|
1153
1162
|
)), new Proxy(
|
|
1154
1163
|
/** @type {any} */
|
|
1155
1164
|
e,
|
|
1156
1165
|
{
|
|
1157
|
-
defineProperty(
|
|
1158
|
-
(!("value" in
|
|
1159
|
-
var u = n.get(
|
|
1160
|
-
return u === void 0 ?
|
|
1161
|
-
var
|
|
1162
|
-
return n.set(
|
|
1163
|
-
}) :
|
|
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
|
+
return u === void 0 ? o(() => {
|
|
1170
|
+
var d = /* @__PURE__ */ W(l.value);
|
|
1171
|
+
return n.set(f, d), d;
|
|
1172
|
+
}) : Y(u, l.value, !0), !0;
|
|
1164
1173
|
},
|
|
1165
|
-
deleteProperty(
|
|
1166
|
-
var
|
|
1167
|
-
if (
|
|
1168
|
-
if (
|
|
1169
|
-
const u =
|
|
1170
|
-
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);
|
|
1171
1180
|
}
|
|
1172
1181
|
} else
|
|
1173
|
-
|
|
1182
|
+
Y(l, P), nt(i);
|
|
1174
1183
|
return !0;
|
|
1175
1184
|
},
|
|
1176
|
-
get(
|
|
1177
|
-
if (
|
|
1185
|
+
get(a, f, l) {
|
|
1186
|
+
if (f === xt)
|
|
1178
1187
|
return e;
|
|
1179
|
-
var u = n.get(
|
|
1180
|
-
if (u === void 0 && (!
|
|
1181
|
-
var
|
|
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);
|
|
1182
1191
|
return c;
|
|
1183
|
-
}), n.set(
|
|
1184
|
-
var
|
|
1185
|
-
return
|
|
1192
|
+
}), n.set(f, u)), u !== void 0) {
|
|
1193
|
+
var v = p(u);
|
|
1194
|
+
return v === P ? void 0 : v;
|
|
1186
1195
|
}
|
|
1187
|
-
return Reflect.get(
|
|
1196
|
+
return Reflect.get(a, f, l);
|
|
1188
1197
|
},
|
|
1189
|
-
getOwnPropertyDescriptor(
|
|
1190
|
-
var
|
|
1191
|
-
if (
|
|
1192
|
-
var u = n.get(
|
|
1193
|
-
u && (
|
|
1194
|
-
} else if (
|
|
1195
|
-
var
|
|
1196
|
-
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)
|
|
1197
1206
|
return {
|
|
1198
1207
|
enumerable: !0,
|
|
1199
1208
|
configurable: !0,
|
|
1200
|
-
value:
|
|
1209
|
+
value: v,
|
|
1201
1210
|
writable: !0
|
|
1202
1211
|
};
|
|
1203
1212
|
}
|
|
1204
|
-
return
|
|
1213
|
+
return l;
|
|
1205
1214
|
},
|
|
1206
|
-
has(
|
|
1207
|
-
if (
|
|
1215
|
+
has(a, f) {
|
|
1216
|
+
if (f === xt)
|
|
1208
1217
|
return !0;
|
|
1209
|
-
var
|
|
1210
|
-
if (
|
|
1211
|
-
|
|
1212
|
-
var
|
|
1213
|
-
return
|
|
1214
|
-
}), n.set(
|
|
1215
|
-
var
|
|
1216
|
-
if (
|
|
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
|
+
return g;
|
|
1223
|
+
}), n.set(f, l));
|
|
1224
|
+
var d = p(l);
|
|
1225
|
+
if (d === P)
|
|
1217
1226
|
return !1;
|
|
1218
1227
|
}
|
|
1219
1228
|
return u;
|
|
1220
1229
|
},
|
|
1221
|
-
set(
|
|
1222
|
-
var
|
|
1223
|
-
if (r &&
|
|
1224
|
-
for (var
|
|
1225
|
-
|
|
1226
|
-
var c = n.get(
|
|
1227
|
-
c !== void 0 ?
|
|
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));
|
|
1228
1237
|
}
|
|
1229
|
-
if (
|
|
1230
|
-
(!
|
|
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));
|
|
1231
1240
|
else {
|
|
1232
|
-
|
|
1233
|
-
var
|
|
1234
|
-
|
|
1241
|
+
v = d.v !== P;
|
|
1242
|
+
var h = o(() => Me(l));
|
|
1243
|
+
Y(d, h);
|
|
1235
1244
|
}
|
|
1236
|
-
var
|
|
1237
|
-
if (
|
|
1238
|
-
if (r && typeof
|
|
1239
|
-
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 = (
|
|
1240
1249
|
/** @type {Source<number>} */
|
|
1241
1250
|
n.get("length")
|
|
1242
|
-
), _ = Number(
|
|
1243
|
-
Number.isInteger(_) && _ >=
|
|
1251
|
+
), _ = Number(f);
|
|
1252
|
+
Number.isInteger(_) && _ >= w.v && Y(w, _ + 1);
|
|
1244
1253
|
}
|
|
1245
|
-
|
|
1254
|
+
nt(i);
|
|
1246
1255
|
}
|
|
1247
1256
|
return !0;
|
|
1248
1257
|
},
|
|
1249
|
-
ownKeys(
|
|
1250
|
-
|
|
1251
|
-
var
|
|
1252
|
-
var
|
|
1253
|
-
return
|
|
1258
|
+
ownKeys(a) {
|
|
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;
|
|
1254
1263
|
});
|
|
1255
|
-
for (var [
|
|
1256
|
-
u.v !==
|
|
1257
|
-
return
|
|
1264
|
+
for (var [l, u] of n)
|
|
1265
|
+
u.v !== P && !(l in a) && f.push(l);
|
|
1266
|
+
return f;
|
|
1258
1267
|
},
|
|
1259
1268
|
setPrototypeOf() {
|
|
1260
|
-
|
|
1269
|
+
gr();
|
|
1261
1270
|
}
|
|
1262
1271
|
}
|
|
1263
1272
|
);
|
|
1264
1273
|
}
|
|
1265
|
-
var
|
|
1266
|
-
function
|
|
1267
|
-
if (
|
|
1268
|
-
|
|
1274
|
+
var Kt, Tn, An, Sn;
|
|
1275
|
+
function Pr() {
|
|
1276
|
+
if (Kt === void 0) {
|
|
1277
|
+
Kt = window, Tn = /Firefox/.test(navigator.userAgent);
|
|
1269
1278
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1270
|
-
|
|
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);
|
|
1271
1280
|
}
|
|
1272
1281
|
}
|
|
1273
|
-
function
|
|
1282
|
+
function xe(e = "") {
|
|
1274
1283
|
return document.createTextNode(e);
|
|
1275
1284
|
}
|
|
1276
1285
|
// @__NO_SIDE_EFFECTS__
|
|
1277
|
-
function
|
|
1286
|
+
function We(e) {
|
|
1278
1287
|
return (
|
|
1279
1288
|
/** @type {TemplateNode | null} */
|
|
1280
|
-
|
|
1289
|
+
An.call(e)
|
|
1281
1290
|
);
|
|
1282
1291
|
}
|
|
1283
1292
|
// @__NO_SIDE_EFFECTS__
|
|
1284
|
-
function
|
|
1293
|
+
function st(e) {
|
|
1285
1294
|
return (
|
|
1286
1295
|
/** @type {TemplateNode | null} */
|
|
1287
|
-
|
|
1296
|
+
Sn.call(e)
|
|
1288
1297
|
);
|
|
1289
1298
|
}
|
|
1290
|
-
function
|
|
1291
|
-
return /* @__PURE__ */
|
|
1299
|
+
function x(e, t) {
|
|
1300
|
+
return /* @__PURE__ */ We(e);
|
|
1292
1301
|
}
|
|
1293
|
-
function
|
|
1302
|
+
function vt(e, t = !1) {
|
|
1294
1303
|
{
|
|
1295
|
-
var n = /* @__PURE__ */
|
|
1296
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
1304
|
+
var n = /* @__PURE__ */ We(e);
|
|
1305
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ st(n) : n;
|
|
1297
1306
|
}
|
|
1298
1307
|
}
|
|
1299
|
-
function
|
|
1308
|
+
function F(e, t = 1, n = !1) {
|
|
1300
1309
|
let r = e;
|
|
1301
1310
|
for (; t--; )
|
|
1302
1311
|
r = /** @type {TemplateNode} */
|
|
1303
|
-
/* @__PURE__ */
|
|
1312
|
+
/* @__PURE__ */ st(r);
|
|
1304
1313
|
return r;
|
|
1305
1314
|
}
|
|
1306
|
-
function
|
|
1315
|
+
function Br(e) {
|
|
1307
1316
|
e.textContent = "";
|
|
1308
1317
|
}
|
|
1309
|
-
function
|
|
1318
|
+
function Cn() {
|
|
1310
1319
|
return !1;
|
|
1311
1320
|
}
|
|
1312
|
-
function
|
|
1321
|
+
function Mn(e, t, n) {
|
|
1313
1322
|
return (
|
|
1314
1323
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1315
|
-
document.createElementNS(
|
|
1324
|
+
document.createElementNS(sn, e, void 0)
|
|
1316
1325
|
);
|
|
1317
1326
|
}
|
|
1318
|
-
function
|
|
1319
|
-
var t =
|
|
1320
|
-
|
|
1327
|
+
function Nn(e) {
|
|
1328
|
+
var t = b, n = k;
|
|
1329
|
+
ne(null), oe(null);
|
|
1321
1330
|
try {
|
|
1322
1331
|
return e();
|
|
1323
1332
|
} finally {
|
|
1324
|
-
|
|
1333
|
+
ne(t), oe(n);
|
|
1325
1334
|
}
|
|
1326
1335
|
}
|
|
1327
|
-
function
|
|
1336
|
+
function qr(e) {
|
|
1337
|
+
k === null && (b === null && vr(), dr()), ze && cr();
|
|
1338
|
+
}
|
|
1339
|
+
function Gr(e, t) {
|
|
1328
1340
|
var n = t.last;
|
|
1329
1341
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1330
1342
|
}
|
|
1331
|
-
function
|
|
1332
|
-
var n =
|
|
1333
|
-
n !== null && (n.f &
|
|
1343
|
+
function de(e, t) {
|
|
1344
|
+
var n = k;
|
|
1345
|
+
n !== null && (n.f & K) !== 0 && (e |= K);
|
|
1334
1346
|
var r = {
|
|
1335
|
-
ctx:
|
|
1347
|
+
ctx: te,
|
|
1336
1348
|
deps: null,
|
|
1337
1349
|
nodes: null,
|
|
1338
|
-
f: e |
|
|
1350
|
+
f: e | q | $,
|
|
1339
1351
|
first: null,
|
|
1340
1352
|
fn: t,
|
|
1341
1353
|
last: null,
|
|
@@ -1347,410 +1359,425 @@ function ie(e, t) {
|
|
|
1347
1359
|
wv: 0,
|
|
1348
1360
|
ac: null
|
|
1349
1361
|
}, i = r;
|
|
1350
|
-
if ((e &
|
|
1351
|
-
|
|
1362
|
+
if ((e & He) !== 0)
|
|
1363
|
+
Be !== null ? Be.push(r) : ye.ensure().schedule(r);
|
|
1352
1364
|
else if (t !== null) {
|
|
1353
1365
|
try {
|
|
1354
|
-
|
|
1355
|
-
} catch (
|
|
1356
|
-
throw
|
|
1366
|
+
Ye(r);
|
|
1367
|
+
} catch (o) {
|
|
1368
|
+
throw V(r), o;
|
|
1357
1369
|
}
|
|
1358
1370
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
1359
|
-
(i.f &
|
|
1371
|
+
(i.f & Xe) === 0 && (i = i.first, (e & ke) !== 0 && (e & be) !== 0 && i !== null && (i.f |= be));
|
|
1360
1372
|
}
|
|
1361
|
-
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)) {
|
|
1362
1374
|
var s = (
|
|
1363
1375
|
/** @type {Derived} */
|
|
1364
|
-
|
|
1376
|
+
b
|
|
1365
1377
|
);
|
|
1366
1378
|
(s.effects ??= []).push(i);
|
|
1367
1379
|
}
|
|
1368
1380
|
return r;
|
|
1369
1381
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return
|
|
1382
|
+
function zt() {
|
|
1383
|
+
return b !== null && !ie;
|
|
1372
1384
|
}
|
|
1373
|
-
function
|
|
1374
|
-
const t =
|
|
1375
|
-
return
|
|
1385
|
+
function Hr(e) {
|
|
1386
|
+
const t = de(gt, null);
|
|
1387
|
+
return z(t, D), t.teardown = e, t;
|
|
1376
1388
|
}
|
|
1377
|
-
function
|
|
1378
|
-
|
|
1389
|
+
function Rn(e) {
|
|
1390
|
+
qr();
|
|
1391
|
+
var t = (
|
|
1392
|
+
/** @type {Effect} */
|
|
1393
|
+
k.f
|
|
1394
|
+
), n = !b && (t & ae) !== 0 && (t & De) === 0;
|
|
1395
|
+
if (n) {
|
|
1396
|
+
var r = (
|
|
1397
|
+
/** @type {ComponentContext} */
|
|
1398
|
+
te
|
|
1399
|
+
);
|
|
1400
|
+
(r.e ??= []).push(e);
|
|
1401
|
+
} else
|
|
1402
|
+
return In(e);
|
|
1379
1403
|
}
|
|
1380
|
-
function
|
|
1381
|
-
|
|
1382
|
-
|
|
1404
|
+
function In(e) {
|
|
1405
|
+
return de(He | lr, e);
|
|
1406
|
+
}
|
|
1407
|
+
function Vr(e) {
|
|
1408
|
+
ye.ensure();
|
|
1409
|
+
const t = de(Oe | Xe, e);
|
|
1383
1410
|
return (n = {}) => new Promise((r) => {
|
|
1384
|
-
n.outro ?
|
|
1385
|
-
|
|
1386
|
-
}) : (
|
|
1411
|
+
n.outro ? Re(t, () => {
|
|
1412
|
+
V(t), r(void 0);
|
|
1413
|
+
}) : (V(t), r(void 0));
|
|
1387
1414
|
});
|
|
1388
1415
|
}
|
|
1389
|
-
function
|
|
1390
|
-
return
|
|
1416
|
+
function Ur(e) {
|
|
1417
|
+
return de(He, e);
|
|
1391
1418
|
}
|
|
1392
|
-
function
|
|
1393
|
-
return
|
|
1419
|
+
function Wr(e) {
|
|
1420
|
+
return de(Rt | Xe, e);
|
|
1394
1421
|
}
|
|
1395
|
-
function
|
|
1396
|
-
return
|
|
1422
|
+
function Yr(e, t = 0) {
|
|
1423
|
+
return de(gt | t, e);
|
|
1397
1424
|
}
|
|
1398
|
-
function
|
|
1399
|
-
|
|
1400
|
-
|
|
1425
|
+
function C(e, t = [], n = [], r = []) {
|
|
1426
|
+
Nr(r, t, n, (i) => {
|
|
1427
|
+
de(gt, () => e(...i.map(p)));
|
|
1401
1428
|
});
|
|
1402
1429
|
}
|
|
1403
|
-
function
|
|
1404
|
-
var n =
|
|
1430
|
+
function at(e, t = 0) {
|
|
1431
|
+
var n = de(ke | t, e);
|
|
1405
1432
|
return n;
|
|
1406
1433
|
}
|
|
1407
|
-
function
|
|
1408
|
-
return
|
|
1434
|
+
function Z(e) {
|
|
1435
|
+
return de(ae | Xe, e);
|
|
1409
1436
|
}
|
|
1410
|
-
function
|
|
1437
|
+
function On(e) {
|
|
1411
1438
|
var t = e.teardown;
|
|
1412
1439
|
if (t !== null) {
|
|
1413
|
-
const n =
|
|
1414
|
-
|
|
1440
|
+
const n = ze, r = b;
|
|
1441
|
+
Xt(!0), ne(null);
|
|
1415
1442
|
try {
|
|
1416
1443
|
t.call(null);
|
|
1417
1444
|
} finally {
|
|
1418
|
-
|
|
1445
|
+
Xt(n), ne(r);
|
|
1419
1446
|
}
|
|
1420
1447
|
}
|
|
1421
1448
|
}
|
|
1422
|
-
function
|
|
1449
|
+
function Dt(e, t = !1) {
|
|
1423
1450
|
var n = e.first;
|
|
1424
1451
|
for (e.first = e.last = null; n !== null; ) {
|
|
1425
1452
|
const i = n.ac;
|
|
1426
|
-
i !== null &&
|
|
1427
|
-
i.abort(
|
|
1453
|
+
i !== null && Nn(() => {
|
|
1454
|
+
i.abort(ue);
|
|
1428
1455
|
});
|
|
1429
1456
|
var r = n.next;
|
|
1430
|
-
(n.f &
|
|
1457
|
+
(n.f & Oe) !== 0 ? n.parent = null : V(n, t), n = r;
|
|
1431
1458
|
}
|
|
1432
1459
|
}
|
|
1433
|
-
function
|
|
1460
|
+
function Kr(e) {
|
|
1434
1461
|
for (var t = e.first; t !== null; ) {
|
|
1435
1462
|
var n = t.next;
|
|
1436
|
-
(t.f &
|
|
1463
|
+
(t.f & ae) === 0 && V(t), t = n;
|
|
1437
1464
|
}
|
|
1438
1465
|
}
|
|
1439
|
-
function
|
|
1466
|
+
function V(e, t = !0) {
|
|
1440
1467
|
var n = !1;
|
|
1441
|
-
(t || (e.f &
|
|
1468
|
+
(t || (e.f & ar) !== 0) && e.nodes !== null && e.nodes.end !== null && (Xr(
|
|
1442
1469
|
e.nodes.start,
|
|
1443
1470
|
/** @type {TemplateNode} */
|
|
1444
1471
|
e.nodes.end
|
|
1445
|
-
), n = !0),
|
|
1472
|
+
), n = !0), z(e, Vt), Dt(e, t && !n), rt(e, 0);
|
|
1446
1473
|
var r = e.nodes && e.nodes.t;
|
|
1447
1474
|
if (r !== null)
|
|
1448
1475
|
for (const s of r)
|
|
1449
1476
|
s.stop();
|
|
1450
|
-
|
|
1477
|
+
On(e), e.f ^= Vt, e.f |= se;
|
|
1451
1478
|
var i = e.parent;
|
|
1452
|
-
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;
|
|
1453
1480
|
}
|
|
1454
|
-
function
|
|
1481
|
+
function Xr(e, t) {
|
|
1455
1482
|
for (; e !== null; ) {
|
|
1456
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1483
|
+
var n = e === t ? null : /* @__PURE__ */ st(e);
|
|
1457
1484
|
e.remove(), e = n;
|
|
1458
1485
|
}
|
|
1459
1486
|
}
|
|
1460
|
-
function
|
|
1487
|
+
function Fn(e) {
|
|
1461
1488
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1462
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));
|
|
1463
1490
|
}
|
|
1464
|
-
function
|
|
1491
|
+
function Re(e, t, n = !0) {
|
|
1465
1492
|
var r = [];
|
|
1466
|
-
|
|
1493
|
+
jn(e, r, !0);
|
|
1467
1494
|
var i = () => {
|
|
1468
|
-
n &&
|
|
1495
|
+
n && V(e), t && t();
|
|
1469
1496
|
}, s = r.length;
|
|
1470
1497
|
if (s > 0) {
|
|
1471
|
-
var
|
|
1472
|
-
for (var
|
|
1473
|
-
|
|
1498
|
+
var o = () => --s || i();
|
|
1499
|
+
for (var a of r)
|
|
1500
|
+
a.out(o);
|
|
1474
1501
|
} else
|
|
1475
1502
|
i();
|
|
1476
1503
|
}
|
|
1477
|
-
function
|
|
1478
|
-
if ((e.f &
|
|
1479
|
-
e.f ^=
|
|
1504
|
+
function jn(e, t, n) {
|
|
1505
|
+
if ((e.f & K) === 0) {
|
|
1506
|
+
e.f ^= K;
|
|
1480
1507
|
var r = e.nodes && e.nodes.t;
|
|
1481
1508
|
if (r !== null)
|
|
1482
|
-
for (const
|
|
1483
|
-
(
|
|
1509
|
+
for (const a of r)
|
|
1510
|
+
(a.is_global || n) && t.push(a);
|
|
1484
1511
|
for (var i = e.first; i !== null; ) {
|
|
1485
|
-
var s = i.next,
|
|
1512
|
+
var s = i.next, o = (i.f & be) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1486
1513
|
// it means the parent block effect was pruned. In that case,
|
|
1487
1514
|
// transparency information was transferred to the branch effect.
|
|
1488
|
-
(i.f &
|
|
1489
|
-
|
|
1515
|
+
(i.f & ae) !== 0 && (e.f & ke) !== 0;
|
|
1516
|
+
jn(i, t, o ? n : !1), i = s;
|
|
1490
1517
|
}
|
|
1491
1518
|
}
|
|
1492
1519
|
}
|
|
1493
|
-
function
|
|
1494
|
-
|
|
1520
|
+
function Lt(e) {
|
|
1521
|
+
zn(e, !0);
|
|
1495
1522
|
}
|
|
1496
|
-
function
|
|
1497
|
-
if ((e.f &
|
|
1498
|
-
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));
|
|
1499
1526
|
for (var n = e.first; n !== null; ) {
|
|
1500
|
-
var r = n.next, i = (n.f &
|
|
1501
|
-
|
|
1527
|
+
var r = n.next, i = (n.f & be) !== 0 || (n.f & ae) !== 0;
|
|
1528
|
+
zn(n, i ? t : !1), n = r;
|
|
1502
1529
|
}
|
|
1503
1530
|
var s = e.nodes && e.nodes.t;
|
|
1504
1531
|
if (s !== null)
|
|
1505
|
-
for (const
|
|
1506
|
-
(
|
|
1532
|
+
for (const o of s)
|
|
1533
|
+
(o.is_global || t) && o.in();
|
|
1507
1534
|
}
|
|
1508
1535
|
}
|
|
1509
|
-
function
|
|
1536
|
+
function Pt(e, t) {
|
|
1510
1537
|
if (e.nodes)
|
|
1511
1538
|
for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
|
|
1512
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1539
|
+
var i = n === r ? null : /* @__PURE__ */ st(n);
|
|
1513
1540
|
t.append(n), n = i;
|
|
1514
1541
|
}
|
|
1515
1542
|
}
|
|
1516
|
-
let
|
|
1517
|
-
function
|
|
1518
|
-
|
|
1543
|
+
let ct = !1, ze = !1;
|
|
1544
|
+
function Xt(e) {
|
|
1545
|
+
ze = e;
|
|
1519
1546
|
}
|
|
1520
|
-
let
|
|
1521
|
-
function
|
|
1522
|
-
|
|
1547
|
+
let b = null, ie = !1;
|
|
1548
|
+
function ne(e) {
|
|
1549
|
+
b = e;
|
|
1523
1550
|
}
|
|
1524
|
-
let
|
|
1525
|
-
function
|
|
1526
|
-
|
|
1551
|
+
let k = null;
|
|
1552
|
+
function oe(e) {
|
|
1553
|
+
k = e;
|
|
1527
1554
|
}
|
|
1528
|
-
let
|
|
1529
|
-
function
|
|
1530
|
-
|
|
1555
|
+
let ee = null;
|
|
1556
|
+
function Dn(e) {
|
|
1557
|
+
b !== null && (ee === null ? ee = [e] : ee.push(e));
|
|
1531
1558
|
}
|
|
1532
|
-
let
|
|
1533
|
-
function
|
|
1534
|
-
|
|
1559
|
+
let H = null, U = 0, J = null;
|
|
1560
|
+
function Jr(e) {
|
|
1561
|
+
J = e;
|
|
1535
1562
|
}
|
|
1536
|
-
let
|
|
1537
|
-
function
|
|
1538
|
-
|
|
1563
|
+
let Ln = 1, Ne = 0, Ie = Ne;
|
|
1564
|
+
function Jt(e) {
|
|
1565
|
+
Ie = e;
|
|
1539
1566
|
}
|
|
1540
|
-
function
|
|
1541
|
-
return ++
|
|
1567
|
+
function Pn() {
|
|
1568
|
+
return ++Ln;
|
|
1542
1569
|
}
|
|
1543
|
-
function
|
|
1570
|
+
function lt(e) {
|
|
1544
1571
|
var t = e.f;
|
|
1545
|
-
if ((t &
|
|
1572
|
+
if ((t & q) !== 0)
|
|
1546
1573
|
return !0;
|
|
1547
|
-
if (t &
|
|
1574
|
+
if (t & L && (e.f &= ~Fe), (t & le) !== 0) {
|
|
1548
1575
|
for (var n = (
|
|
1549
1576
|
/** @type {Value[]} */
|
|
1550
1577
|
e.deps
|
|
1551
1578
|
), r = n.length, i = 0; i < r; i++) {
|
|
1552
1579
|
var s = n[i];
|
|
1553
|
-
if (
|
|
1580
|
+
if (lt(
|
|
1554
1581
|
/** @type {Derived} */
|
|
1555
1582
|
s
|
|
1556
|
-
) &&
|
|
1583
|
+
) && bn(
|
|
1557
1584
|
/** @type {Derived} */
|
|
1558
1585
|
s
|
|
1559
1586
|
), s.wv > e.wv)
|
|
1560
1587
|
return !0;
|
|
1561
1588
|
}
|
|
1562
|
-
(t &
|
|
1589
|
+
(t & $) !== 0 && // During time traveling we don't want to reset the status so that
|
|
1563
1590
|
// traversal of the graph in the other batches still happens
|
|
1564
|
-
|
|
1591
|
+
re === null && z(e, D);
|
|
1565
1592
|
}
|
|
1566
1593
|
return !1;
|
|
1567
1594
|
}
|
|
1568
|
-
function
|
|
1595
|
+
function Bn(e, t, n = !0) {
|
|
1569
1596
|
var r = e.reactions;
|
|
1570
|
-
if (r !== null && !(
|
|
1597
|
+
if (r !== null && !(ee !== null && Ge.call(ee, e)))
|
|
1571
1598
|
for (var i = 0; i < r.length; i++) {
|
|
1572
1599
|
var s = r[i];
|
|
1573
|
-
(s.f &
|
|
1600
|
+
(s.f & L) !== 0 ? Bn(
|
|
1574
1601
|
/** @type {Derived} */
|
|
1575
1602
|
s,
|
|
1576
1603
|
t,
|
|
1577
1604
|
!1
|
|
1578
|
-
) : t === s && (n ?
|
|
1605
|
+
) : t === s && (n ? z(s, q) : (s.f & D) !== 0 && z(s, le), Ot(
|
|
1579
1606
|
/** @type {Effect} */
|
|
1580
1607
|
s
|
|
1581
1608
|
));
|
|
1582
1609
|
}
|
|
1583
1610
|
}
|
|
1584
|
-
function
|
|
1585
|
-
var t =
|
|
1586
|
-
|
|
1587
|
-
null,
|
|
1588
|
-
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);
|
|
1589
1616
|
}), e.ac = null);
|
|
1590
1617
|
try {
|
|
1591
|
-
e.f |=
|
|
1618
|
+
e.f |= yt;
|
|
1592
1619
|
var u = (
|
|
1593
1620
|
/** @type {Function} */
|
|
1594
1621
|
e.fn
|
|
1595
|
-
),
|
|
1596
|
-
e.f |=
|
|
1597
|
-
var
|
|
1598
|
-
if (
|
|
1622
|
+
), d = u();
|
|
1623
|
+
e.f |= De;
|
|
1624
|
+
var v = e.deps, g = N?.is_fork;
|
|
1625
|
+
if (H !== null) {
|
|
1599
1626
|
var c;
|
|
1600
|
-
if (
|
|
1601
|
-
for (
|
|
1602
|
-
|
|
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];
|
|
1603
1630
|
else
|
|
1604
|
-
e.deps =
|
|
1605
|
-
if (
|
|
1606
|
-
for (c =
|
|
1607
|
-
(
|
|
1608
|
-
} else !
|
|
1609
|
-
if (
|
|
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)
|
|
1610
1637
|
for (c = 0; c < /** @type {Source[]} */
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1638
|
+
J.length; c++)
|
|
1639
|
+
Bn(
|
|
1640
|
+
J[c],
|
|
1614
1641
|
/** @type {Effect} */
|
|
1615
1642
|
e
|
|
1616
1643
|
);
|
|
1617
1644
|
if (i !== null && i !== e) {
|
|
1618
|
-
if (
|
|
1619
|
-
for (let
|
|
1620
|
-
i.deps[
|
|
1645
|
+
if (Ne++, i.deps !== null)
|
|
1646
|
+
for (let h = 0; h < n; h += 1)
|
|
1647
|
+
i.deps[h].rv = Ne;
|
|
1621
1648
|
if (t !== null)
|
|
1622
|
-
for (const
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1649
|
+
for (const h of t)
|
|
1650
|
+
h.rv = Ne;
|
|
1651
|
+
J !== null && (r === null ? r = J : r.push(.../** @type {Source[]} */
|
|
1652
|
+
J));
|
|
1626
1653
|
}
|
|
1627
|
-
return (e.f &
|
|
1628
|
-
} catch (
|
|
1629
|
-
return
|
|
1654
|
+
return (e.f & _e) !== 0 && (e.f ^= _e), d;
|
|
1655
|
+
} catch (h) {
|
|
1656
|
+
return vn(h);
|
|
1630
1657
|
} finally {
|
|
1631
|
-
e.f ^=
|
|
1658
|
+
e.f ^= yt, H = t, U = n, J = r, b = i, ee = s, Ve(o), ie = a, Ie = f;
|
|
1632
1659
|
}
|
|
1633
1660
|
}
|
|
1634
|
-
function
|
|
1661
|
+
function Zr(e, t) {
|
|
1635
1662
|
let n = t.reactions;
|
|
1636
1663
|
if (n !== null) {
|
|
1637
|
-
var r =
|
|
1664
|
+
var r = $n.call(n, e);
|
|
1638
1665
|
if (r !== -1) {
|
|
1639
1666
|
var i = n.length - 1;
|
|
1640
1667
|
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1641
1668
|
}
|
|
1642
1669
|
}
|
|
1643
|
-
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
|
|
1644
1671
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1645
1672
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1646
|
-
(
|
|
1673
|
+
(H === null || !Ge.call(H, t))) {
|
|
1647
1674
|
var s = (
|
|
1648
1675
|
/** @type {Derived} */
|
|
1649
1676
|
t
|
|
1650
1677
|
);
|
|
1651
|
-
(s.f &
|
|
1678
|
+
(s.f & $) !== 0 && (s.f ^= $, s.f &= ~Fe), It(s), zr(s), rt(s, 0);
|
|
1652
1679
|
}
|
|
1653
1680
|
}
|
|
1654
|
-
function
|
|
1681
|
+
function rt(e, t) {
|
|
1655
1682
|
var n = e.deps;
|
|
1656
1683
|
if (n !== null)
|
|
1657
1684
|
for (var r = t; r < n.length; r++)
|
|
1658
|
-
|
|
1685
|
+
Zr(e, n[r]);
|
|
1659
1686
|
}
|
|
1660
|
-
function
|
|
1687
|
+
function Ye(e) {
|
|
1661
1688
|
var t = e.f;
|
|
1662
|
-
if ((t &
|
|
1663
|
-
|
|
1664
|
-
var n =
|
|
1665
|
-
|
|
1689
|
+
if ((t & se) === 0) {
|
|
1690
|
+
z(e, D);
|
|
1691
|
+
var n = k, r = ct;
|
|
1692
|
+
k = e, ct = !0;
|
|
1666
1693
|
try {
|
|
1667
|
-
(t & (
|
|
1668
|
-
var i =
|
|
1669
|
-
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;
|
|
1670
1697
|
var s;
|
|
1671
|
-
|
|
1698
|
+
Qn && br && (e.f & q) !== 0 && e.deps;
|
|
1672
1699
|
} finally {
|
|
1673
|
-
|
|
1700
|
+
ct = r, k = n;
|
|
1674
1701
|
}
|
|
1675
1702
|
}
|
|
1676
1703
|
}
|
|
1677
|
-
function
|
|
1678
|
-
var t = e.f, n = (t &
|
|
1679
|
-
if (
|
|
1680
|
-
var r =
|
|
1681
|
-
if (!r && (
|
|
1682
|
-
var i =
|
|
1683
|
-
if ((
|
|
1684
|
-
e.rv <
|
|
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
|
+
var i = b.deps;
|
|
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));
|
|
1685
1712
|
else {
|
|
1686
|
-
(
|
|
1713
|
+
(b.deps ??= []).push(e);
|
|
1687
1714
|
var s = e.reactions;
|
|
1688
|
-
s === null ? e.reactions = [
|
|
1715
|
+
s === null ? e.reactions = [b] : Ge.call(s, b) || s.push(b);
|
|
1689
1716
|
}
|
|
1690
1717
|
}
|
|
1691
1718
|
}
|
|
1692
|
-
if (
|
|
1693
|
-
return
|
|
1719
|
+
if (ze && me.has(e))
|
|
1720
|
+
return me.get(e);
|
|
1694
1721
|
if (n) {
|
|
1695
|
-
var
|
|
1722
|
+
var o = (
|
|
1696
1723
|
/** @type {Derived} */
|
|
1697
1724
|
e
|
|
1698
1725
|
);
|
|
1699
|
-
if (
|
|
1700
|
-
var
|
|
1701
|
-
return ((
|
|
1726
|
+
if (ze) {
|
|
1727
|
+
var a = o.v;
|
|
1728
|
+
return ((o.f & D) === 0 && o.reactions !== null || Hn(o)) && (a = jt(o)), me.set(o, a), a;
|
|
1702
1729
|
}
|
|
1703
|
-
var
|
|
1704
|
-
|
|
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));
|
|
1705
1732
|
}
|
|
1706
|
-
if (
|
|
1707
|
-
return
|
|
1708
|
-
if ((e.f &
|
|
1733
|
+
if (re?.has(e))
|
|
1734
|
+
return re.get(e);
|
|
1735
|
+
if ((e.f & _e) !== 0)
|
|
1709
1736
|
throw e.v;
|
|
1710
1737
|
return e.v;
|
|
1711
1738
|
}
|
|
1712
|
-
function
|
|
1713
|
-
if (e.f |=
|
|
1739
|
+
function Gn(e) {
|
|
1740
|
+
if (e.f |= $, e.deps !== null)
|
|
1714
1741
|
for (const t of e.deps)
|
|
1715
|
-
(t.reactions ??= []).push(e), (t.f &
|
|
1742
|
+
(t.reactions ??= []).push(e), (t.f & L) !== 0 && (t.f & $) === 0 && (yn(
|
|
1716
1743
|
/** @type {Derived} */
|
|
1717
1744
|
t
|
|
1718
|
-
),
|
|
1745
|
+
), Gn(
|
|
1719
1746
|
/** @type {Derived} */
|
|
1720
1747
|
t
|
|
1721
1748
|
));
|
|
1722
1749
|
}
|
|
1723
|
-
function
|
|
1724
|
-
if (e.v ===
|
|
1750
|
+
function Hn(e) {
|
|
1751
|
+
if (e.v === P) return !0;
|
|
1725
1752
|
if (e.deps === null) return !1;
|
|
1726
1753
|
for (const t of e.deps)
|
|
1727
|
-
if (
|
|
1754
|
+
if (me.has(t) || (t.f & L) !== 0 && Hn(
|
|
1728
1755
|
/** @type {Derived} */
|
|
1729
1756
|
t
|
|
1730
1757
|
))
|
|
1731
1758
|
return !0;
|
|
1732
1759
|
return !1;
|
|
1733
1760
|
}
|
|
1734
|
-
function
|
|
1735
|
-
var t =
|
|
1761
|
+
function Qr(e) {
|
|
1762
|
+
var t = ie;
|
|
1736
1763
|
try {
|
|
1737
|
-
return
|
|
1764
|
+
return ie = !0, e();
|
|
1738
1765
|
} finally {
|
|
1739
|
-
|
|
1766
|
+
ie = t;
|
|
1740
1767
|
}
|
|
1741
1768
|
}
|
|
1742
|
-
const
|
|
1743
|
-
function
|
|
1744
|
-
(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;
|
|
1745
1772
|
}
|
|
1746
|
-
function
|
|
1773
|
+
function $r(e) {
|
|
1747
1774
|
for (var t = 0; t < e.length; t++)
|
|
1748
|
-
|
|
1749
|
-
for (var n of
|
|
1775
|
+
Vn.add(e[t]);
|
|
1776
|
+
for (var n of Tt)
|
|
1750
1777
|
n(e);
|
|
1751
1778
|
}
|
|
1752
|
-
let
|
|
1753
|
-
function
|
|
1779
|
+
let Qt = null;
|
|
1780
|
+
function $t(e) {
|
|
1754
1781
|
var t = this, n = (
|
|
1755
1782
|
/** @type {Node} */
|
|
1756
1783
|
t.ownerDocument
|
|
@@ -1758,177 +1785,214 @@ function qt(e) {
|
|
|
1758
1785
|
/** @type {null | Element} */
|
|
1759
1786
|
i[0] || e.target
|
|
1760
1787
|
);
|
|
1761
|
-
|
|
1762
|
-
var
|
|
1763
|
-
if (
|
|
1764
|
-
var
|
|
1765
|
-
if (
|
|
1788
|
+
Qt = e;
|
|
1789
|
+
var o = 0, a = Qt === e && e[$e];
|
|
1790
|
+
if (a) {
|
|
1791
|
+
var f = i.indexOf(a);
|
|
1792
|
+
if (f !== -1 && (t === document || t === /** @type {any} */
|
|
1766
1793
|
window)) {
|
|
1767
|
-
e[
|
|
1794
|
+
e[$e] = t;
|
|
1768
1795
|
return;
|
|
1769
1796
|
}
|
|
1770
|
-
var
|
|
1771
|
-
if (
|
|
1797
|
+
var l = i.indexOf(t);
|
|
1798
|
+
if (l === -1)
|
|
1772
1799
|
return;
|
|
1773
|
-
|
|
1800
|
+
f <= l && (o = f);
|
|
1774
1801
|
}
|
|
1775
1802
|
if (s = /** @type {Element} */
|
|
1776
|
-
i[
|
|
1777
|
-
|
|
1803
|
+
i[o] || e.target, s !== t) {
|
|
1804
|
+
er(e, "currentTarget", {
|
|
1778
1805
|
configurable: !0,
|
|
1779
1806
|
get() {
|
|
1780
1807
|
return s || n;
|
|
1781
1808
|
}
|
|
1782
1809
|
});
|
|
1783
|
-
var u =
|
|
1784
|
-
|
|
1810
|
+
var u = b, d = k;
|
|
1811
|
+
ne(null), oe(null);
|
|
1785
1812
|
try {
|
|
1786
|
-
for (var
|
|
1813
|
+
for (var v, g = []; s !== null; ) {
|
|
1787
1814
|
var c = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
1788
1815
|
s.host || null;
|
|
1789
1816
|
try {
|
|
1790
|
-
var
|
|
1791
|
-
|
|
1817
|
+
var h = s[$e]?.[r];
|
|
1818
|
+
h != null && (!/** @type {any} */
|
|
1792
1819
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1793
1820
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1794
|
-
e.target === s) &&
|
|
1795
|
-
} catch (
|
|
1796
|
-
|
|
1821
|
+
e.target === s) && h.call(s, e);
|
|
1822
|
+
} catch (m) {
|
|
1823
|
+
v ? g.push(m) : v = m;
|
|
1797
1824
|
}
|
|
1798
1825
|
if (e.cancelBubble || c === t || c === null)
|
|
1799
1826
|
break;
|
|
1800
1827
|
s = c;
|
|
1801
1828
|
}
|
|
1802
|
-
if (
|
|
1803
|
-
for (let
|
|
1829
|
+
if (v) {
|
|
1830
|
+
for (let m of g)
|
|
1804
1831
|
queueMicrotask(() => {
|
|
1805
|
-
throw
|
|
1832
|
+
throw m;
|
|
1806
1833
|
});
|
|
1807
|
-
throw
|
|
1834
|
+
throw v;
|
|
1808
1835
|
}
|
|
1809
1836
|
} finally {
|
|
1810
|
-
e[
|
|
1837
|
+
e[$e] = t, delete e.currentTarget, ne(u), oe(d);
|
|
1811
1838
|
}
|
|
1812
1839
|
}
|
|
1813
1840
|
}
|
|
1814
|
-
const
|
|
1841
|
+
const ei = (
|
|
1815
1842
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
1816
1843
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
1817
1844
|
/** @param {string} html */
|
|
1818
1845
|
createHTML: (e) => e
|
|
1819
1846
|
})
|
|
1820
1847
|
);
|
|
1821
|
-
function
|
|
1848
|
+
function ti(e) {
|
|
1822
1849
|
return (
|
|
1823
1850
|
/** @type {string} */
|
|
1824
|
-
|
|
1851
|
+
ei?.createHTML(e) ?? e
|
|
1825
1852
|
);
|
|
1826
1853
|
}
|
|
1827
|
-
function
|
|
1828
|
-
var t =
|
|
1829
|
-
return t.innerHTML =
|
|
1854
|
+
function Un(e) {
|
|
1855
|
+
var t = Mn("template");
|
|
1856
|
+
return t.innerHTML = ti(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1830
1857
|
}
|
|
1831
|
-
function
|
|
1858
|
+
function ht(e, t) {
|
|
1832
1859
|
var n = (
|
|
1833
1860
|
/** @type {Effect} */
|
|
1834
|
-
|
|
1861
|
+
k
|
|
1835
1862
|
);
|
|
1836
1863
|
n.nodes === null && (n.nodes = { start: e, end: t, a: null, t: null });
|
|
1837
1864
|
}
|
|
1838
1865
|
// @__NO_SIDE_EFFECTS__
|
|
1839
|
-
function
|
|
1840
|
-
var n = (t &
|
|
1866
|
+
function E(e, t) {
|
|
1867
|
+
var n = (t & 1) !== 0, r = (t & 2) !== 0, i, s = !e.startsWith("<!>");
|
|
1841
1868
|
return () => {
|
|
1842
|
-
|
|
1843
|
-
/* @__PURE__ */
|
|
1844
|
-
var
|
|
1869
|
+
i === void 0 && (i = Un(s ? e : "<!>" + e), n || (i = /** @type {TemplateNode} */
|
|
1870
|
+
/* @__PURE__ */ We(i)));
|
|
1871
|
+
var o = (
|
|
1872
|
+
/** @type {TemplateNode} */
|
|
1873
|
+
r || Tn ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
1874
|
+
);
|
|
1875
|
+
if (n) {
|
|
1876
|
+
var a = (
|
|
1877
|
+
/** @type {TemplateNode} */
|
|
1878
|
+
/* @__PURE__ */ We(o)
|
|
1879
|
+
), f = (
|
|
1880
|
+
/** @type {TemplateNode} */
|
|
1881
|
+
o.lastChild
|
|
1882
|
+
);
|
|
1883
|
+
ht(a, f);
|
|
1884
|
+
} else
|
|
1885
|
+
ht(o, o);
|
|
1886
|
+
return o;
|
|
1887
|
+
};
|
|
1888
|
+
}
|
|
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 = (
|
|
1845
1905
|
/** @type {TemplateNode} */
|
|
1846
|
-
|
|
1906
|
+
s.cloneNode(!0)
|
|
1847
1907
|
);
|
|
1848
|
-
return
|
|
1908
|
+
return ht(f, f), f;
|
|
1849
1909
|
};
|
|
1850
1910
|
}
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
return e
|
|
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;
|
|
1854
1918
|
}
|
|
1855
|
-
function
|
|
1919
|
+
function y(e, t) {
|
|
1856
1920
|
e !== null && e.before(
|
|
1857
1921
|
/** @type {Node} */
|
|
1858
1922
|
t
|
|
1859
1923
|
);
|
|
1860
1924
|
}
|
|
1861
|
-
const
|
|
1862
|
-
function
|
|
1863
|
-
return
|
|
1925
|
+
const ii = ["touchstart", "touchmove"];
|
|
1926
|
+
function si(e) {
|
|
1927
|
+
return ii.includes(e);
|
|
1864
1928
|
}
|
|
1865
|
-
function
|
|
1929
|
+
function B(e, t) {
|
|
1866
1930
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1867
1931
|
n !== (e.__t ??= e.nodeValue) && (e.__t = n, e.nodeValue = `${n}`);
|
|
1868
1932
|
}
|
|
1869
|
-
function
|
|
1870
|
-
return
|
|
1933
|
+
function ai(e, t) {
|
|
1934
|
+
return li(e, t);
|
|
1871
1935
|
}
|
|
1872
|
-
const
|
|
1873
|
-
function
|
|
1874
|
-
|
|
1875
|
-
var
|
|
1876
|
-
var u = n ?? t.appendChild(
|
|
1877
|
-
|
|
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(
|
|
1878
1942
|
/** @type {TemplateNode} */
|
|
1879
1943
|
u,
|
|
1880
1944
|
{
|
|
1881
1945
|
pending: () => {
|
|
1882
1946
|
}
|
|
1883
1947
|
},
|
|
1884
|
-
(
|
|
1885
|
-
|
|
1948
|
+
(g) => {
|
|
1949
|
+
Ee({});
|
|
1886
1950
|
var c = (
|
|
1887
1951
|
/** @type {ComponentContext} */
|
|
1888
|
-
|
|
1952
|
+
te
|
|
1889
1953
|
);
|
|
1890
|
-
s && (c.c = s), i && (r.$$events = i),
|
|
1954
|
+
s && (c.c = s), i && (r.$$events = i), f = e(g, r) || {}, Te();
|
|
1891
1955
|
},
|
|
1892
|
-
|
|
1956
|
+
a
|
|
1893
1957
|
);
|
|
1894
|
-
var
|
|
1895
|
-
for (var c = 0; c <
|
|
1896
|
-
var
|
|
1897
|
-
if (!
|
|
1898
|
-
|
|
1899
|
-
var
|
|
1900
|
-
for (const
|
|
1901
|
-
var
|
|
1902
|
-
|
|
1903
|
-
var _ =
|
|
1904
|
-
_ === void 0 ? (
|
|
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);
|
|
1905
1969
|
}
|
|
1906
1970
|
}
|
|
1907
1971
|
}
|
|
1908
1972
|
};
|
|
1909
|
-
return
|
|
1910
|
-
for (var
|
|
1911
|
-
for (const
|
|
1973
|
+
return v(pt(Vn)), Tt.add(v), () => {
|
|
1974
|
+
for (var g of d)
|
|
1975
|
+
for (const m of [t, document]) {
|
|
1912
1976
|
var c = (
|
|
1913
1977
|
/** @type {Map<string, number>} */
|
|
1914
|
-
|
|
1915
|
-
),
|
|
1978
|
+
ft.get(m)
|
|
1979
|
+
), h = (
|
|
1916
1980
|
/** @type {number} */
|
|
1917
|
-
c.get(
|
|
1981
|
+
c.get(g)
|
|
1918
1982
|
);
|
|
1919
|
-
--
|
|
1983
|
+
--h == 0 ? (m.removeEventListener(g, $t), c.delete(g), c.size === 0 && ft.delete(m)) : c.set(g, h);
|
|
1920
1984
|
}
|
|
1921
|
-
|
|
1985
|
+
Tt.delete(v), u !== n && u.parentNode?.removeChild(u);
|
|
1922
1986
|
};
|
|
1923
1987
|
});
|
|
1924
|
-
return
|
|
1988
|
+
return At.set(f, l), f;
|
|
1925
1989
|
}
|
|
1926
|
-
let
|
|
1927
|
-
function
|
|
1928
|
-
const n =
|
|
1929
|
-
return n ? (
|
|
1990
|
+
let At = /* @__PURE__ */ new WeakMap();
|
|
1991
|
+
function oi(e, t) {
|
|
1992
|
+
const n = At.get(e);
|
|
1993
|
+
return n ? (At.delete(e), n(t)) : Promise.resolve();
|
|
1930
1994
|
}
|
|
1931
|
-
class
|
|
1995
|
+
class Bt {
|
|
1932
1996
|
/** @type {TemplateNode} */
|
|
1933
1997
|
anchor;
|
|
1934
1998
|
/** @type {Map<Batch, Key>} */
|
|
@@ -1981,28 +2045,28 @@ class kn {
|
|
|
1981
2045
|
this.#t.get(t)
|
|
1982
2046
|
), r = this.#o.get(n);
|
|
1983
2047
|
if (r)
|
|
1984
|
-
|
|
2048
|
+
Lt(r), this.#r.delete(n);
|
|
1985
2049
|
else {
|
|
1986
2050
|
var i = this.#e.get(n);
|
|
1987
2051
|
i && (this.#o.set(n, i.effect), this.#e.delete(n), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), r = i.effect);
|
|
1988
2052
|
}
|
|
1989
|
-
for (const [s,
|
|
2053
|
+
for (const [s, o] of this.#t) {
|
|
1990
2054
|
if (this.#t.delete(s), s === t)
|
|
1991
2055
|
break;
|
|
1992
|
-
const
|
|
1993
|
-
|
|
2056
|
+
const a = this.#e.get(o);
|
|
2057
|
+
a && (V(a.effect), this.#e.delete(o));
|
|
1994
2058
|
}
|
|
1995
|
-
for (const [s,
|
|
2059
|
+
for (const [s, o] of this.#o) {
|
|
1996
2060
|
if (s === n || this.#r.has(s)) continue;
|
|
1997
|
-
const
|
|
2061
|
+
const a = () => {
|
|
1998
2062
|
if (Array.from(this.#t.values()).includes(s)) {
|
|
1999
|
-
var
|
|
2000
|
-
|
|
2063
|
+
var l = document.createDocumentFragment();
|
|
2064
|
+
Pt(o, l), l.append(xe()), this.#e.set(s, { effect: o, fragment: l });
|
|
2001
2065
|
} else
|
|
2002
|
-
|
|
2066
|
+
V(o);
|
|
2003
2067
|
this.#r.delete(s), this.#o.delete(s);
|
|
2004
2068
|
};
|
|
2005
|
-
this.#i || !r ? (this.#r.add(s),
|
|
2069
|
+
this.#i || !r ? (this.#r.add(s), Re(o, a, !1)) : a();
|
|
2006
2070
|
}
|
|
2007
2071
|
}
|
|
2008
2072
|
};
|
|
@@ -2013,7 +2077,7 @@ class kn {
|
|
|
2013
2077
|
this.#t.delete(t);
|
|
2014
2078
|
const n = Array.from(this.#t.values());
|
|
2015
2079
|
for (const [r, i] of this.#e)
|
|
2016
|
-
n.includes(r) || (
|
|
2080
|
+
n.includes(r) || (V(i.effect), this.#e.delete(r));
|
|
2017
2081
|
};
|
|
2018
2082
|
/**
|
|
2019
2083
|
*
|
|
@@ -2023,255 +2087,262 @@ class kn {
|
|
|
2023
2087
|
ensure(t, n) {
|
|
2024
2088
|
var r = (
|
|
2025
2089
|
/** @type {Batch} */
|
|
2026
|
-
|
|
2027
|
-
), i =
|
|
2090
|
+
N
|
|
2091
|
+
), i = Cn();
|
|
2028
2092
|
if (n && !this.#o.has(t) && !this.#e.has(t))
|
|
2029
2093
|
if (i) {
|
|
2030
|
-
var s = document.createDocumentFragment(),
|
|
2031
|
-
s.append(
|
|
2032
|
-
effect:
|
|
2094
|
+
var s = document.createDocumentFragment(), o = xe();
|
|
2095
|
+
s.append(o), this.#e.set(t, {
|
|
2096
|
+
effect: Z(() => n(o)),
|
|
2033
2097
|
fragment: s
|
|
2034
2098
|
});
|
|
2035
2099
|
} else
|
|
2036
2100
|
this.#o.set(
|
|
2037
2101
|
t,
|
|
2038
|
-
|
|
2102
|
+
Z(() => n(this.anchor))
|
|
2039
2103
|
);
|
|
2040
2104
|
if (this.#t.set(r, t), i) {
|
|
2041
|
-
for (const [
|
|
2042
|
-
|
|
2043
|
-
for (const [
|
|
2044
|
-
|
|
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);
|
|
2045
2109
|
r.oncommit(this.#n), r.ondiscard(this.#s);
|
|
2046
2110
|
} else
|
|
2047
2111
|
this.#n(r);
|
|
2048
2112
|
}
|
|
2049
2113
|
}
|
|
2050
|
-
function
|
|
2051
|
-
var r = new
|
|
2052
|
-
|
|
2053
|
-
|
|
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;
|
|
2123
|
+
function s(o, a) {
|
|
2124
|
+
r.ensure(o, a);
|
|
2054
2125
|
}
|
|
2055
|
-
|
|
2056
|
-
var
|
|
2057
|
-
t((
|
|
2058
|
-
|
|
2059
|
-
}),
|
|
2126
|
+
at(() => {
|
|
2127
|
+
var o = !1;
|
|
2128
|
+
t((a, f = 0) => {
|
|
2129
|
+
o = !0, s(f, a);
|
|
2130
|
+
}), o || s(-1, null);
|
|
2060
2131
|
}, i);
|
|
2061
2132
|
}
|
|
2062
|
-
function
|
|
2133
|
+
function it(e, t) {
|
|
2063
2134
|
return t;
|
|
2064
2135
|
}
|
|
2065
|
-
function
|
|
2066
|
-
for (var r = [], i = t.length, s,
|
|
2067
|
-
let
|
|
2068
|
-
|
|
2069
|
-
|
|
2136
|
+
function ui(e, t, n) {
|
|
2137
|
+
for (var r = [], i = t.length, s, o = t.length, a = 0; a < i; a++) {
|
|
2138
|
+
let d = t[a];
|
|
2139
|
+
Re(
|
|
2140
|
+
d,
|
|
2070
2141
|
() => {
|
|
2071
2142
|
if (s) {
|
|
2072
|
-
if (s.pending.delete(
|
|
2073
|
-
var
|
|
2143
|
+
if (s.pending.delete(d), s.done.add(d), s.pending.size === 0) {
|
|
2144
|
+
var v = (
|
|
2074
2145
|
/** @type {Set<EachOutroGroup>} */
|
|
2075
2146
|
e.outrogroups
|
|
2076
2147
|
);
|
|
2077
|
-
|
|
2148
|
+
St(e, pt(s.done)), v.delete(s), v.size === 0 && (e.outrogroups = null);
|
|
2078
2149
|
}
|
|
2079
2150
|
} else
|
|
2080
|
-
|
|
2151
|
+
o -= 1;
|
|
2081
2152
|
},
|
|
2082
2153
|
!1
|
|
2083
2154
|
);
|
|
2084
2155
|
}
|
|
2085
|
-
if (
|
|
2086
|
-
var
|
|
2087
|
-
if (
|
|
2088
|
-
var
|
|
2156
|
+
if (o === 0) {
|
|
2157
|
+
var f = r.length === 0 && n !== null;
|
|
2158
|
+
if (f) {
|
|
2159
|
+
var l = (
|
|
2089
2160
|
/** @type {Element} */
|
|
2090
2161
|
n
|
|
2091
2162
|
), u = (
|
|
2092
2163
|
/** @type {Element} */
|
|
2093
|
-
|
|
2164
|
+
l.parentNode
|
|
2094
2165
|
);
|
|
2095
|
-
|
|
2166
|
+
Br(u), u.append(l), e.items.clear();
|
|
2096
2167
|
}
|
|
2097
|
-
|
|
2168
|
+
St(e, t, !f);
|
|
2098
2169
|
} else
|
|
2099
2170
|
s = {
|
|
2100
2171
|
pending: new Set(t),
|
|
2101
2172
|
done: /* @__PURE__ */ new Set()
|
|
2102
2173
|
}, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(s);
|
|
2103
2174
|
}
|
|
2104
|
-
function
|
|
2175
|
+
function St(e, t, n = !0) {
|
|
2105
2176
|
var r;
|
|
2106
2177
|
if (e.pending.size > 0) {
|
|
2107
2178
|
r = /* @__PURE__ */ new Set();
|
|
2108
|
-
for (const
|
|
2109
|
-
for (const
|
|
2179
|
+
for (const o of e.pending.values())
|
|
2180
|
+
for (const a of o)
|
|
2110
2181
|
r.add(
|
|
2111
2182
|
/** @type {EachItem} */
|
|
2112
|
-
e.items.get(
|
|
2183
|
+
e.items.get(a).e
|
|
2113
2184
|
);
|
|
2114
2185
|
}
|
|
2115
2186
|
for (var i = 0; i < t.length; i++) {
|
|
2116
2187
|
var s = t[i];
|
|
2117
2188
|
if (r?.has(s)) {
|
|
2118
|
-
s.f |=
|
|
2119
|
-
const
|
|
2120
|
-
|
|
2189
|
+
s.f |= ce;
|
|
2190
|
+
const o = document.createDocumentFragment();
|
|
2191
|
+
Pt(s, o);
|
|
2121
2192
|
} else
|
|
2122
|
-
|
|
2193
|
+
V(t[i], n);
|
|
2123
2194
|
}
|
|
2124
2195
|
}
|
|
2125
|
-
var
|
|
2126
|
-
function
|
|
2127
|
-
var
|
|
2196
|
+
var en;
|
|
2197
|
+
function Ke(e, t, n, r, i, s = null) {
|
|
2198
|
+
var o = e, a = /* @__PURE__ */ new Map();
|
|
2128
2199
|
{
|
|
2129
|
-
var
|
|
2200
|
+
var f = (
|
|
2130
2201
|
/** @type {Element} */
|
|
2131
2202
|
e
|
|
2132
2203
|
);
|
|
2133
|
-
|
|
2204
|
+
o = f.appendChild(xe());
|
|
2134
2205
|
}
|
|
2135
|
-
var
|
|
2206
|
+
var l = null, u = /* @__PURE__ */ Or(() => {
|
|
2136
2207
|
var _ = n();
|
|
2137
|
-
return
|
|
2138
|
-
}),
|
|
2208
|
+
return an(_) ? _ : _ == null ? [] : pt(_);
|
|
2209
|
+
}), d, v = /* @__PURE__ */ new Map(), g = !0;
|
|
2139
2210
|
function c(_) {
|
|
2140
|
-
(
|
|
2141
|
-
|
|
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;
|
|
2142
2213
|
})));
|
|
2143
2214
|
}
|
|
2144
|
-
function
|
|
2145
|
-
|
|
2215
|
+
function h(_) {
|
|
2216
|
+
w.pending.delete(_);
|
|
2146
2217
|
}
|
|
2147
|
-
var
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
for (var _ =
|
|
2218
|
+
var m = at(() => {
|
|
2219
|
+
d = /** @type {V[]} */
|
|
2220
|
+
p(u);
|
|
2221
|
+
for (var _ = d.length, A = /* @__PURE__ */ new Set(), I = (
|
|
2151
2222
|
/** @type {Batch} */
|
|
2152
|
-
|
|
2153
|
-
),
|
|
2154
|
-
var
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
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(
|
|
2227
|
+
a,
|
|
2228
|
+
g ? o : en ??= xe(),
|
|
2229
|
+
j,
|
|
2230
|
+
S,
|
|
2231
|
+
T,
|
|
2161
2232
|
i,
|
|
2162
2233
|
t,
|
|
2163
2234
|
n
|
|
2164
|
-
),
|
|
2235
|
+
), g || (O.e.f |= ce), a.set(S, O)), A.add(S);
|
|
2165
2236
|
}
|
|
2166
|
-
if (_ === 0 && s && !
|
|
2167
|
-
if (
|
|
2168
|
-
for (const [
|
|
2169
|
-
|
|
2170
|
-
|
|
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);
|
|
2171
2242
|
} else
|
|
2172
|
-
c(
|
|
2173
|
-
|
|
2174
|
-
}),
|
|
2175
|
-
|
|
2243
|
+
c(I);
|
|
2244
|
+
p(u);
|
|
2245
|
+
}), w = { effect: m, items: a, pending: v, outrogroups: null, fallback: l };
|
|
2246
|
+
g = !1;
|
|
2176
2247
|
}
|
|
2177
|
-
function
|
|
2178
|
-
for (; e !== null && (e.f &
|
|
2248
|
+
function Qe(e) {
|
|
2249
|
+
for (; e !== null && (e.f & ae) === 0; )
|
|
2179
2250
|
e = e.next;
|
|
2180
2251
|
return e;
|
|
2181
2252
|
}
|
|
2182
|
-
function
|
|
2183
|
-
var s = t.length,
|
|
2184
|
-
for (
|
|
2185
|
-
if (
|
|
2186
|
-
|
|
2187
|
-
for (const
|
|
2188
|
-
|
|
2189
|
-
if ((c.f &
|
|
2190
|
-
if (c.f ^=
|
|
2191
|
-
|
|
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);
|
|
2192
2263
|
else {
|
|
2193
|
-
var
|
|
2194
|
-
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);
|
|
2195
2266
|
continue;
|
|
2196
2267
|
}
|
|
2197
|
-
if (c !==
|
|
2198
|
-
if (
|
|
2199
|
-
if (u.length <
|
|
2200
|
-
var
|
|
2201
|
-
|
|
2202
|
-
var
|
|
2268
|
+
if (c !== a) {
|
|
2269
|
+
if (f !== void 0 && f.has(c)) {
|
|
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];
|
|
2203
2274
|
for (_ = 0; _ < u.length; _ += 1)
|
|
2204
|
-
|
|
2205
|
-
for (_ = 0; _ <
|
|
2206
|
-
|
|
2207
|
-
|
|
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 = [];
|
|
2208
2279
|
} else
|
|
2209
|
-
|
|
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;
|
|
2210
2281
|
continue;
|
|
2211
2282
|
}
|
|
2212
|
-
for (u = [],
|
|
2213
|
-
(
|
|
2214
|
-
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)
|
|
2215
2286
|
continue;
|
|
2216
2287
|
}
|
|
2217
|
-
(c.f &
|
|
2288
|
+
(c.f & ce) === 0 && u.push(c), l = c, a = Qe(c.next);
|
|
2218
2289
|
}
|
|
2219
2290
|
if (e.outrogroups !== null) {
|
|
2220
|
-
for (const
|
|
2221
|
-
|
|
2291
|
+
for (const S of e.outrogroups)
|
|
2292
|
+
S.pending.size === 0 && (St(e, pt(S.done)), e.outrogroups?.delete(S));
|
|
2222
2293
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2223
2294
|
}
|
|
2224
|
-
if (
|
|
2225
|
-
var
|
|
2226
|
-
if (
|
|
2227
|
-
for (c of
|
|
2228
|
-
(c.f &
|
|
2229
|
-
for (;
|
|
2230
|
-
(
|
|
2231
|
-
var
|
|
2232
|
-
if (
|
|
2233
|
-
var
|
|
2234
|
-
|
|
2295
|
+
if (a !== null || f !== void 0) {
|
|
2296
|
+
var M = [];
|
|
2297
|
+
if (f !== void 0)
|
|
2298
|
+
for (c of f)
|
|
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);
|
|
2235
2306
|
}
|
|
2236
2307
|
}
|
|
2237
2308
|
}
|
|
2238
|
-
function
|
|
2239
|
-
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;
|
|
2240
2311
|
return {
|
|
2241
|
-
v:
|
|
2242
|
-
i:
|
|
2243
|
-
e:
|
|
2312
|
+
v: f,
|
|
2313
|
+
i: l,
|
|
2314
|
+
e: Z(() => (s(t, f ?? n, l ?? i, a), () => {
|
|
2244
2315
|
e.delete(r);
|
|
2245
2316
|
}))
|
|
2246
2317
|
};
|
|
2247
2318
|
}
|
|
2248
|
-
function
|
|
2319
|
+
function et(e, t, n) {
|
|
2249
2320
|
if (e.nodes)
|
|
2250
|
-
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 ? (
|
|
2251
2322
|
/** @type {EffectNodes} */
|
|
2252
2323
|
t.nodes.start
|
|
2253
2324
|
) : n; r !== null; ) {
|
|
2254
|
-
var
|
|
2325
|
+
var o = (
|
|
2255
2326
|
/** @type {TemplateNode} */
|
|
2256
|
-
/* @__PURE__ */
|
|
2327
|
+
/* @__PURE__ */ st(r)
|
|
2257
2328
|
);
|
|
2258
2329
|
if (s.before(r), r === i)
|
|
2259
2330
|
return;
|
|
2260
|
-
r =
|
|
2331
|
+
r = o;
|
|
2261
2332
|
}
|
|
2262
2333
|
}
|
|
2263
|
-
function
|
|
2334
|
+
function pe(e, t, n) {
|
|
2264
2335
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
2265
2336
|
}
|
|
2266
|
-
function
|
|
2267
|
-
var r = new
|
|
2268
|
-
|
|
2337
|
+
function vi(e, t, n) {
|
|
2338
|
+
var r = new Bt(e);
|
|
2339
|
+
at(() => {
|
|
2269
2340
|
var i = t() ?? null;
|
|
2270
2341
|
r.ensure(i, i && ((s) => n(s, i)));
|
|
2271
|
-
},
|
|
2342
|
+
}, be);
|
|
2272
2343
|
}
|
|
2273
|
-
function
|
|
2274
|
-
|
|
2344
|
+
function Ae(e, t) {
|
|
2345
|
+
Ur(() => {
|
|
2275
2346
|
var n = e.getRootNode(), r = (
|
|
2276
2347
|
/** @type {ShadowRoot} */
|
|
2277
2348
|
n.host ? (
|
|
@@ -2284,370 +2355,658 @@ function Pe(e, t) {
|
|
|
2284
2355
|
)
|
|
2285
2356
|
);
|
|
2286
2357
|
if (!r.querySelector("#" + t.hash)) {
|
|
2287
|
-
const i =
|
|
2358
|
+
const i = Mn("style");
|
|
2288
2359
|
i.id = t.hash, i.textContent = t.code, r.appendChild(i);
|
|
2289
2360
|
}
|
|
2290
2361
|
});
|
|
2291
2362
|
}
|
|
2292
|
-
function
|
|
2363
|
+
function Yn(e) {
|
|
2293
2364
|
var t, n, r = "";
|
|
2294
2365
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
2295
2366
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
2296
2367
|
var i = e.length;
|
|
2297
|
-
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);
|
|
2298
2369
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
2299
2370
|
return r;
|
|
2300
2371
|
}
|
|
2301
|
-
function
|
|
2302
|
-
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);
|
|
2303
2374
|
return r;
|
|
2304
2375
|
}
|
|
2305
|
-
function
|
|
2306
|
-
return typeof e == "object" ?
|
|
2376
|
+
function pi(e) {
|
|
2377
|
+
return typeof e == "object" ? hi(e) : e ?? "";
|
|
2307
2378
|
}
|
|
2308
|
-
const
|
|
2379
|
+
const tn = [...`
|
|
2309
2380
|
\r\f \v\uFEFF`];
|
|
2310
|
-
function
|
|
2381
|
+
function gi(e, t, n) {
|
|
2311
2382
|
var r = e == null ? "" : "" + e;
|
|
2312
2383
|
if (t && (r = r ? r + " " + t : t), n) {
|
|
2313
2384
|
for (var i of Object.keys(n))
|
|
2314
2385
|
if (n[i])
|
|
2315
2386
|
r = r ? r + " " + i : i;
|
|
2316
2387
|
else if (r.length)
|
|
2317
|
-
for (var s = i.length,
|
|
2318
|
-
var
|
|
2319
|
-
(
|
|
2388
|
+
for (var s = i.length, o = 0; (o = r.indexOf(i, o)) >= 0; ) {
|
|
2389
|
+
var a = o + s;
|
|
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;
|
|
2320
2391
|
}
|
|
2321
2392
|
}
|
|
2322
2393
|
return r === "" ? null : r;
|
|
2323
2394
|
}
|
|
2324
|
-
function
|
|
2395
|
+
function _i(e, t) {
|
|
2325
2396
|
return e == null ? null : String(e);
|
|
2326
2397
|
}
|
|
2327
|
-
function
|
|
2328
|
-
var
|
|
2329
|
-
if (
|
|
2330
|
-
var
|
|
2331
|
-
|
|
2398
|
+
function _t(e, t, n, r, i, s) {
|
|
2399
|
+
var o = e.__className;
|
|
2400
|
+
if (o !== n || o === void 0) {
|
|
2401
|
+
var a = gi(n, r, s);
|
|
2402
|
+
a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a), e.__className = n;
|
|
2332
2403
|
} else if (s && i !== s)
|
|
2333
|
-
for (var
|
|
2334
|
-
var
|
|
2335
|
-
(i == null ||
|
|
2404
|
+
for (var f in s) {
|
|
2405
|
+
var l = !!s[f];
|
|
2406
|
+
(i == null || l !== !!i[f]) && e.classList.toggle(f, l);
|
|
2336
2407
|
}
|
|
2337
2408
|
return s;
|
|
2338
2409
|
}
|
|
2339
|
-
function
|
|
2410
|
+
function R(e, t, n, r) {
|
|
2340
2411
|
var i = e.__style;
|
|
2341
2412
|
if (i !== t) {
|
|
2342
|
-
var s =
|
|
2413
|
+
var s = _i(t);
|
|
2343
2414
|
s == null ? e.removeAttribute("style") : e.style.cssText = s, e.__style = t;
|
|
2344
2415
|
}
|
|
2345
2416
|
return r;
|
|
2346
2417
|
}
|
|
2347
|
-
const
|
|
2348
|
-
function
|
|
2349
|
-
var i =
|
|
2350
|
-
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));
|
|
2351
2422
|
}
|
|
2352
|
-
function
|
|
2423
|
+
function wi(e) {
|
|
2353
2424
|
return (
|
|
2354
2425
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2355
2426
|
// @ts-expect-error
|
|
2356
2427
|
e.__attributes ??= {
|
|
2357
|
-
[
|
|
2358
|
-
[
|
|
2428
|
+
[mi]: e.nodeName.includes("-"),
|
|
2429
|
+
[xi]: e.namespaceURI === sn
|
|
2359
2430
|
}
|
|
2360
2431
|
);
|
|
2361
2432
|
}
|
|
2362
|
-
var
|
|
2363
|
-
function
|
|
2364
|
-
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);
|
|
2365
2436
|
if (n) return n;
|
|
2366
|
-
|
|
2437
|
+
nn.set(t, n = []);
|
|
2367
2438
|
for (var r, i = e, s = Element.prototype; s !== i; ) {
|
|
2368
|
-
r =
|
|
2369
|
-
for (var
|
|
2370
|
-
r[
|
|
2371
|
-
i =
|
|
2439
|
+
r = tr(i);
|
|
2440
|
+
for (var o in r)
|
|
2441
|
+
r[o].set && n.push(o);
|
|
2442
|
+
i = ln(i);
|
|
2372
2443
|
}
|
|
2373
2444
|
return n;
|
|
2374
2445
|
}
|
|
2375
|
-
function
|
|
2446
|
+
function Q(e, t, n, r) {
|
|
2376
2447
|
var i = (
|
|
2377
2448
|
/** @type {V} */
|
|
2378
2449
|
r
|
|
2379
|
-
), s = !0,
|
|
2380
|
-
r), i),
|
|
2381
|
-
|
|
2382
|
-
e[t],
|
|
2383
|
-
var
|
|
2384
|
-
return
|
|
2385
|
-
var
|
|
2450
|
+
), s = !0, o = () => (s && (s = !1, i = /** @type {V} */
|
|
2451
|
+
r), i), a;
|
|
2452
|
+
a = /** @type {V} */
|
|
2453
|
+
e[t], a === void 0 && r !== void 0 && (a = o());
|
|
2454
|
+
var f;
|
|
2455
|
+
return f = () => {
|
|
2456
|
+
var l = (
|
|
2386
2457
|
/** @type {V} */
|
|
2387
2458
|
e[t]
|
|
2388
2459
|
);
|
|
2389
|
-
return
|
|
2390
|
-
},
|
|
2460
|
+
return l === void 0 ? o() : (s = !0, l);
|
|
2461
|
+
}, f;
|
|
2391
2462
|
}
|
|
2392
|
-
const
|
|
2393
|
-
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(
|
|
2394
|
-
var
|
|
2395
|
-
const
|
|
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 = {
|
|
2396
2467
|
hash: "svelte-pvxr6w",
|
|
2397
|
-
code: `.banner-
|
|
2398
|
-
.banner-mobile.svelte-pvxr6w {display:block;width:100%;height:auto;object-fit:cover;}.banner-mobile.svelte-pvxr6w {display:none;}
|
|
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;}
|
|
2399
2469
|
|
|
2400
|
-
@
|
|
2401
|
-
}.banner-
|
|
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%;}`
|
|
2402
2472
|
};
|
|
2403
|
-
function
|
|
2404
|
-
|
|
2405
|
-
|
|
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);
|
|
2406
2477
|
{
|
|
2407
|
-
var
|
|
2408
|
-
var
|
|
2409
|
-
|
|
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);
|
|
2410
2507
|
};
|
|
2411
|
-
|
|
2412
|
-
|
|
2508
|
+
G(f, (h) => {
|
|
2509
|
+
p(n) ? h(l) : h(u, -1);
|
|
2413
2510
|
});
|
|
2414
2511
|
}
|
|
2415
|
-
var
|
|
2512
|
+
var d = F(f, 2);
|
|
2416
2513
|
{
|
|
2417
|
-
var
|
|
2418
|
-
var
|
|
2419
|
-
|
|
2514
|
+
var v = (h) => {
|
|
2515
|
+
var m = Si();
|
|
2516
|
+
C(() => R(m, `background: ${t.settings.overlayColor ?? ""};`)), y(h, m);
|
|
2420
2517
|
};
|
|
2421
|
-
|
|
2422
|
-
t.settings.
|
|
2518
|
+
G(d, (h) => {
|
|
2519
|
+
t.settings.overlayColor && t.settings.overlayColor !== "rgba(0,0,0,0)" && h(v);
|
|
2423
2520
|
});
|
|
2424
2521
|
}
|
|
2425
|
-
var
|
|
2522
|
+
var g = F(a, 2);
|
|
2426
2523
|
{
|
|
2427
|
-
var
|
|
2428
|
-
var
|
|
2429
|
-
|
|
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);
|
|
2430
2553
|
};
|
|
2431
|
-
|
|
2432
|
-
|
|
2554
|
+
G(g, (h) => {
|
|
2555
|
+
p(r).length > 0 && h(c);
|
|
2433
2556
|
});
|
|
2434
2557
|
}
|
|
2435
|
-
|
|
2558
|
+
C(() => R(o, `margin-top: ${t.settings.marginTop ?? ""}px;`)), y(e, o), Te();
|
|
2436
2559
|
}
|
|
2437
|
-
var
|
|
2438
|
-
const
|
|
2439
|
-
hash: "svelte-1ym3cq2",
|
|
2440
|
-
code: ".badge-wrapper.svelte-1ym3cq2 {display:flex;max-width:750px;width:100%;margin:0 auto;}.badge.svelte-1ym3cq2 {display:inline-block;font-weight:500;text-transform:uppercase;letter-spacing:0.06em;line-height:1;white-space:nowrap;backdrop-filter:blur(12px);}"
|
|
2441
|
-
};
|
|
2442
|
-
function oi(e, t) {
|
|
2443
|
-
pe(t, !0), Pe(e, ai);
|
|
2444
|
-
const n = { left: "flex-start", center: "center", right: "flex-end" };
|
|
2445
|
-
var r = li(), i = k(r), s = k(i);
|
|
2446
|
-
L(() => {
|
|
2447
|
-
T(r, `justify-content: ${n[t.settings.align] ?? "center" ?? ""}; margin-top: ${t.settings.marginTop ?? ""}px;`), T(i, `
|
|
2448
|
-
background: ${t.settings.backgroundColor ?? ""};
|
|
2449
|
-
color: ${t.settings.textColor ?? ""};
|
|
2450
|
-
border: 0.5px solid ${t.settings.borderColor ?? ""};
|
|
2451
|
-
border-radius: ${t.settings.borderRadius ?? ""}px;
|
|
2452
|
-
padding: ${t.settings.paddingY ?? ""}px ${t.settings.paddingX ?? ""}px;
|
|
2453
|
-
font-size: ${t.settings.fontSize ?? ""}px;
|
|
2454
|
-
`), de(s, t.settings.text);
|
|
2455
|
-
}), N(e, r), ge();
|
|
2456
|
-
}
|
|
2457
|
-
var fi = /* @__PURE__ */ F('<div class="text-wrapper svelte-qvulfy"><p class="text-element svelte-qvulfy"> </p></div>');
|
|
2458
|
-
const ui = {
|
|
2560
|
+
var Oi = /* @__PURE__ */ E('<p class="text-element svelte-qvulfy"> </p>');
|
|
2561
|
+
const Fi = {
|
|
2459
2562
|
hash: "svelte-qvulfy",
|
|
2460
|
-
code: ".text-
|
|
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;}"
|
|
2461
2564
|
};
|
|
2462
|
-
function
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
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 = {
|
|
2477
2582
|
hash: "svelte-1xlikgk",
|
|
2478
|
-
code: ".button-
|
|
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);}"
|
|
2479
2584
|
};
|
|
2480
|
-
function
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
}
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
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;}
|
|
2605
|
+
|
|
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;}
|
|
2613
|
+
}`
|
|
2614
|
+
};
|
|
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
|
+
}`
|
|
2497
2630
|
};
|
|
2498
|
-
function
|
|
2499
|
-
|
|
2500
|
-
let n =
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
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);
|
|
2509
2703
|
{
|
|
2510
|
-
var
|
|
2511
|
-
var
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
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, _);
|
|
2515
2713
|
};
|
|
2516
|
-
|
|
2517
|
-
|
|
2714
|
+
G(h, (w) => {
|
|
2715
|
+
v < t.settings.steps.length - 1 && w(m);
|
|
2518
2716
|
});
|
|
2519
2717
|
}
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2718
|
+
y(u, g);
|
|
2719
|
+
});
|
|
2720
|
+
var f = F(a, 2);
|
|
2721
|
+
{
|
|
2722
|
+
var l = (u) => {
|
|
2723
|
+
var d = Ki(), v = x(d), g = x(v);
|
|
2724
|
+
C(() => B(g, t.settings.footer)), y(u, d);
|
|
2725
|
+
};
|
|
2726
|
+
G(f, (u) => {
|
|
2727
|
+
t.settings.footer && u(l);
|
|
2728
|
+
});
|
|
2729
|
+
}
|
|
2730
|
+
C(() => R(i, `margin-top: ${t.settings.marginTop ?? ""}px;`)), y(e, i), Te();
|
|
2731
|
+
}
|
|
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;}
|
|
2530
2736
|
|
|
2531
|
-
@
|
|
2532
|
-
}.
|
|
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;}
|
|
2533
2739
|
|
|
2534
|
-
@
|
|
2535
|
-
}
|
|
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;}`
|
|
2536
2749
|
};
|
|
2537
|
-
function
|
|
2538
|
-
|
|
2539
|
-
|
|
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);
|
|
2756
|
+
{
|
|
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);
|
|
2765
|
+
});
|
|
2766
|
+
}
|
|
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);
|
|
2770
|
+
},
|
|
2771
|
+
[
|
|
2772
|
+
() => n(p(l).accentColor),
|
|
2773
|
+
() => r(p(l).barColor, p(l).accentColor)
|
|
2774
|
+
]
|
|
2775
|
+
), y(f, u);
|
|
2776
|
+
});
|
|
2777
|
+
var o = F(s, 2);
|
|
2540
2778
|
{
|
|
2541
|
-
var
|
|
2542
|
-
var
|
|
2543
|
-
|
|
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);
|
|
2544
2794
|
};
|
|
2545
|
-
|
|
2546
|
-
t.settings.
|
|
2795
|
+
G(o, (f) => {
|
|
2796
|
+
(t.settings.exampleText || t.settings.exampleLabel) && f(a);
|
|
2547
2797
|
});
|
|
2548
2798
|
}
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
`), Ke(i, "href", t.settings.buttonLink), T(i, `
|
|
2556
|
-
background: ${t.settings.innerBackground ?? ""};
|
|
2557
|
-
border: 0.5px solid ${t.settings.borderColor ?? ""};
|
|
2558
|
-
border-radius: ${t.settings.borderRadius ?? ""}px;
|
|
2559
|
-
`), T(o, `color: ${t.settings.headingColor ?? ""};`), de(a, t.settings.heading), T(u, `color: ${t.settings.descriptionColor ?? ""};`), de(v, t.settings.description), T(d, `background: ${t.settings.buttonBackground ?? ""}; color: ${t.settings.buttonTextColor ?? ""};`), de(h, t.settings.buttonText);
|
|
2560
|
-
}), N(e, n), ge();
|
|
2561
|
-
}
|
|
2562
|
-
const ki = {
|
|
2563
|
-
banner: si,
|
|
2564
|
-
badge: oi,
|
|
2565
|
-
text: ci,
|
|
2566
|
-
button: hi,
|
|
2567
|
-
accordion: wi,
|
|
2568
|
-
ctaCard: Ei
|
|
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;}"
|
|
2569
2805
|
};
|
|
2570
|
-
function
|
|
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
|
|
2897
|
+
};
|
|
2898
|
+
function hs(e) {
|
|
2571
2899
|
return e === null || typeof e != "object" || Array.isArray(e) ? !1 : typeof e.en == "string";
|
|
2572
2900
|
}
|
|
2573
|
-
function
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
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;
|
|
2913
|
+
}
|
|
2914
|
+
function rn(e) {
|
|
2915
|
+
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
2916
|
+
}
|
|
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;
|
|
2587
2930
|
}
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
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;
|
|
2594
2948
|
return [
|
|
2595
|
-
`background: ${
|
|
2596
|
-
`padding-top: ${
|
|
2597
|
-
`padding-bottom: ${
|
|
2598
|
-
`padding-left: ${
|
|
2599
|
-
`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",
|
|
2600
2959
|
i()
|
|
2601
2960
|
].filter(Boolean).join("; ");
|
|
2602
|
-
}), f = /* @__PURE__ */
|
|
2603
|
-
component:
|
|
2604
|
-
settings:
|
|
2605
|
-
name:
|
|
2606
|
-
})).filter((
|
|
2607
|
-
var l =
|
|
2608
|
-
|
|
2609
|
-
let
|
|
2610
|
-
const
|
|
2611
|
-
var h =
|
|
2612
|
-
|
|
2613
|
-
w
|
|
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, {
|
|
2614
2973
|
get settings() {
|
|
2615
|
-
return
|
|
2974
|
+
return g();
|
|
2616
2975
|
}
|
|
2617
2976
|
});
|
|
2618
|
-
}),
|
|
2619
|
-
}),
|
|
2620
|
-
(
|
|
2621
|
-
|
|
2977
|
+
}), y(u, h);
|
|
2978
|
+
}), C(
|
|
2979
|
+
(u) => {
|
|
2980
|
+
_t(l, 1, pi(r())), R(l, u);
|
|
2622
2981
|
},
|
|
2623
|
-
[() =>
|
|
2624
|
-
),
|
|
2982
|
+
[() => p(a)()]
|
|
2983
|
+
), y(e, l), Te();
|
|
2625
2984
|
}
|
|
2626
|
-
function
|
|
2627
|
-
let r = /* @__PURE__ */
|
|
2628
|
-
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, {
|
|
2629
2988
|
target: e,
|
|
2630
2989
|
props: {
|
|
2631
2990
|
get data() {
|
|
2632
|
-
return
|
|
2991
|
+
return p(r);
|
|
2633
2992
|
},
|
|
2634
2993
|
get locale() {
|
|
2635
|
-
return
|
|
2994
|
+
return p(i);
|
|
2636
2995
|
}
|
|
2637
2996
|
}
|
|
2638
2997
|
});
|
|
2639
2998
|
return {
|
|
2640
|
-
update(
|
|
2641
|
-
|
|
2999
|
+
update(o) {
|
|
3000
|
+
Y(r, o, !0);
|
|
2642
3001
|
},
|
|
2643
|
-
setLocale(
|
|
2644
|
-
|
|
3002
|
+
setLocale(o) {
|
|
3003
|
+
Y(i, o, !0);
|
|
2645
3004
|
},
|
|
2646
3005
|
destroy() {
|
|
2647
|
-
|
|
3006
|
+
oi(s);
|
|
2648
3007
|
}
|
|
2649
3008
|
};
|
|
2650
3009
|
}
|
|
2651
3010
|
export {
|
|
2652
|
-
|
|
3011
|
+
xs as createRenderer
|
|
2653
3012
|
};
|