@pie-players/pie-section-player-tools-session-debugger 0.3.17 → 0.3.19

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.
@@ -1,147 +1,147 @@
1
- var Ii = Object.defineProperty;
2
- var lr = (e) => {
1
+ var Li = Object.defineProperty;
2
+ var hr = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var ki = (e, t, n) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var N = (e, t, n) => ki(e, typeof t != "symbol" ? t + "" : t, n), Sn = (e, t, n) => t.has(e) || lr("Cannot " + n);
7
- var a = (e, t, n) => (Sn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), b = (e, t, n) => t.has(e) ? lr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), m = (e, t, n, r) => (Sn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), R = (e, t, n) => (Sn(e, t, "access private method"), n);
8
- var yr;
9
- typeof window < "u" && ((yr = window.__svelte ?? (window.__svelte = {})).v ?? (yr.v = /* @__PURE__ */ new Set())).add("5");
10
- const Ti = 1, Ai = 2, $r = "[", xr = "[!", ar = "[?", Er = "]", kt = {}, O = /* @__PURE__ */ Symbol(), Sr = "http://www.w3.org/1999/xhtml", Tn = !1;
11
- var Cr = Array.isArray, Mi = Array.prototype.indexOf, Tt = Array.prototype.includes, Ni = Array.from, an = Object.keys, un = Object.defineProperty, pt = Object.getOwnPropertyDescriptor, Ri = Object.getOwnPropertyDescriptors, Li = Object.prototype, Pi = Array.prototype, Ir = Object.getPrototypeOf, ur = Object.isExtensible;
12
- const nn = () => {
5
+ var zi = (e, t, n) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var N = (e, t, n) => zi(e, typeof t != "symbol" ? t + "" : t, n), Tn = (e, t, n) => t.has(e) || hr("Cannot " + n);
7
+ var a = (e, t, n) => (Tn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), y = (e, t, n) => t.has(e) ? hr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), m = (e, t, n, r) => (Tn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), R = (e, t, n) => (Tn(e, t, "access private method"), n);
8
+ var Ir;
9
+ typeof window < "u" && ((Ir = window.__svelte ?? (window.__svelte = {})).v ?? (Ir.v = /* @__PURE__ */ new Set())).add("5");
10
+ const Di = 1, Oi = 2, kr = "[", Tr = "[!", vr = "[?", Mr = "]", Rt = {}, j = /* @__PURE__ */ Symbol(), Ar = "http://www.w3.org/1999/xhtml", Rn = !1;
11
+ var Nr = Array.isArray, ji = Array.prototype.indexOf, Pt = Array.prototype.includes, Fi = Array.from, cn = Object.keys, dn = Object.defineProperty, bt = Object.getOwnPropertyDescriptor, Hi = Object.getOwnPropertyDescriptors, Yi = Object.prototype, Wi = Array.prototype, Rr = Object.getPrototypeOf, pr = Object.isExtensible;
12
+ const on = () => {
13
13
  };
14
- function Di(e) {
14
+ function Vi(e) {
15
15
  for (var t = 0; t < e.length; t++)
16
16
  e[t]();
17
17
  }
18
- function kr() {
18
+ function Pr() {
19
19
  var e, t, n = new Promise((r, i) => {
20
20
  e = r, t = i;
21
21
  });
22
22
  return { promise: n, resolve: e, reject: t };
23
23
  }
24
- const H = 2, Lt = 4, At = 8, Vn = 1 << 24, Ze = 16, Se = 32, Ke = 64, An = 128, le = 512, z = 1024, F = 2048, pe = 4096, ae = 8192, Le = 16384, ht = 32768, ct = 65536, fr = 1 << 17, ji = 1 << 18, vt = 1 << 19, Oi = 1 << 20, dt = 65536, Mn = 1 << 21, Bn = 1 << 22, Be = 1 << 23, Cn = /* @__PURE__ */ Symbol("$state"), zi = /* @__PURE__ */ Symbol("legacy props"), Fi = /* @__PURE__ */ Symbol(""), et = new class extends Error {
24
+ const W = 2, jt = 4, Lt = 8, Un = 1 << 24, tt = 16, Ce = 32, nt = 64, Pn = 128, ae = 512, H = 1024, Y = 2048, ge = 4096, ue = 8192, Oe = 16384, gt = 32768, pt = 65536, _r = 1 << 17, Bi = 1 << 18, mt = 1 << 19, Xi = 1 << 20, _t = 65536, Ln = 1 << 21, Gn = 1 << 22, Ke = 1 << 23, Mn = /* @__PURE__ */ Symbol("$state"), qi = /* @__PURE__ */ Symbol("legacy props"), Ui = /* @__PURE__ */ Symbol(""), it = new class extends Error {
25
25
  constructor() {
26
26
  super(...arguments);
27
27
  N(this, "name", "StaleReactionError");
28
28
  N(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
29
29
  }
30
- }(), Hi = (
30
+ }(), Gi = (
31
31
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
32
32
  !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
33
- ), _n = 3, pn = 8;
34
- function Xn(e) {
33
+ ), mn = 3, wn = 8;
34
+ function Kn(e) {
35
35
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
36
36
  }
37
- function Yi() {
37
+ function Ki() {
38
38
  throw new Error("https://svelte.dev/e/async_derived_orphan");
39
39
  }
40
- function Wi(e) {
40
+ function Zi(e) {
41
41
  throw new Error("https://svelte.dev/e/effect_in_teardown");
42
42
  }
43
- function Vi() {
43
+ function Ji() {
44
44
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
45
45
  }
46
- function Bi(e) {
46
+ function Qi(e) {
47
47
  throw new Error("https://svelte.dev/e/effect_orphan");
48
48
  }
49
- function Xi() {
49
+ function es() {
50
50
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
51
51
  }
52
- function qi() {
52
+ function ts() {
53
53
  throw new Error("https://svelte.dev/e/hydration_failed");
54
54
  }
55
- function Ui() {
55
+ function ns() {
56
56
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
57
57
  }
58
- function Gi() {
58
+ function rs() {
59
59
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
60
60
  }
61
- function Zi() {
61
+ function is() {
62
62
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
63
63
  }
64
- function Ki() {
64
+ function ss() {
65
65
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
66
66
  }
67
- function gn(e) {
67
+ function yn(e) {
68
68
  console.warn("https://svelte.dev/e/hydration_mismatch");
69
69
  }
70
- function Ji() {
70
+ function os() {
71
71
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
72
72
  }
73
- let I = !1;
74
- function _t(e) {
75
- I = e;
73
+ let M = !1;
74
+ function yt(e) {
75
+ M = e;
76
76
  }
77
- let C;
78
- function ge(e) {
77
+ let I;
78
+ function me(e) {
79
79
  if (e === null)
80
- throw gn(), kt;
81
- return C = e;
80
+ throw yn(), Rt;
81
+ return I = e;
82
82
  }
83
- function qn() {
84
- return ge(/* @__PURE__ */ De(C));
83
+ function Zn() {
84
+ return me(/* @__PURE__ */ Fe(I));
85
85
  }
86
- function ie(e) {
87
- if (I) {
88
- if (/* @__PURE__ */ De(C) !== null)
89
- throw gn(), kt;
90
- C = e;
86
+ function se(e) {
87
+ if (M) {
88
+ if (/* @__PURE__ */ Fe(I) !== null)
89
+ throw yn(), Rt;
90
+ I = e;
91
91
  }
92
92
  }
93
- function Qi(e = 1) {
94
- if (I) {
95
- for (var t = e, n = C; t--; )
93
+ function ls(e = 1) {
94
+ if (M) {
95
+ for (var t = e, n = I; t--; )
96
96
  n = /** @type {TemplateNode} */
97
- /* @__PURE__ */ De(n);
98
- C = n;
97
+ /* @__PURE__ */ Fe(n);
98
+ I = n;
99
99
  }
100
100
  }
101
- function Tr(e = !0) {
102
- for (var t = 0, n = C; ; ) {
103
- if (n.nodeType === pn) {
101
+ function Lr(e = !0) {
102
+ for (var t = 0, n = I; ; ) {
103
+ if (n.nodeType === wn) {
104
104
  var r = (
105
105
  /** @type {Comment} */
106
106
  n.data
107
107
  );
108
- if (r === Er) {
108
+ if (r === Mr) {
109
109
  if (t === 0) return n;
110
110
  t -= 1;
111
- } else (r === $r || r === xr || // "[1", "[2", etc. for if blocks
111
+ } else (r === kr || r === Tr || // "[1", "[2", etc. for if blocks
112
112
  r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
113
113
  }
114
114
  var i = (
115
115
  /** @type {TemplateNode} */
116
- /* @__PURE__ */ De(n)
116
+ /* @__PURE__ */ Fe(n)
117
117
  );
118
118
  e && n.remove(), n = i;
119
119
  }
120
120
  }
121
- function es(e) {
122
- if (!e || e.nodeType !== pn)
123
- throw gn(), kt;
121
+ function as(e) {
122
+ if (!e || e.nodeType !== wn)
123
+ throw yn(), Rt;
124
124
  return (
125
125
  /** @type {Comment} */
126
126
  e.data
127
127
  );
128
128
  }
129
- function Ar(e) {
129
+ function zr(e) {
130
130
  return e === this.v;
131
131
  }
132
- function ts(e, t) {
132
+ function us(e, t) {
133
133
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
134
134
  }
135
- function ns(e) {
136
- return !ts(e, this.v);
135
+ function fs(e) {
136
+ return !us(e, this.v);
137
137
  }
138
- let rs = !1, W = null;
139
- function Mt(e) {
140
- W = e;
138
+ let cs = !1, B = null;
139
+ function zt(e) {
140
+ B = e;
141
141
  }
142
- function Xt(e, t = !1, n) {
143
- W = {
144
- p: W,
142
+ function Kt(e, t = !1, n) {
143
+ B = {
144
+ p: B,
145
145
  i: !1,
146
146
  c: null,
147
147
  e: null,
@@ -150,52 +150,52 @@ function Xt(e, t = !1, n) {
150
150
  l: null
151
151
  };
152
152
  }
153
- function qt(e) {
153
+ function Zt(e) {
154
154
  var t = (
155
155
  /** @type {ComponentContext} */
156
- W
156
+ B
157
157
  ), n = t.e;
158
158
  if (n !== null) {
159
159
  t.e = null;
160
160
  for (var r of n)
161
- Jr(r);
161
+ ri(r);
162
162
  }
163
- return e !== void 0 && (t.x = e), t.i = !0, W = t.p, e ?? /** @type {T} */
163
+ return e !== void 0 && (t.x = e), t.i = !0, B = t.p, e ?? /** @type {T} */
164
164
  {};
165
165
  }
166
- function Mr() {
166
+ function Dr() {
167
167
  return !0;
168
168
  }
169
- let tt = [];
170
- function Nr() {
171
- var e = tt;
172
- tt = [], Di(e);
169
+ let st = [];
170
+ function Or() {
171
+ var e = st;
172
+ st = [], Vi(e);
173
173
  }
174
- function gt(e) {
175
- if (tt.length === 0 && !jt) {
176
- var t = tt;
174
+ function xt(e) {
175
+ if (st.length === 0 && !Ht) {
176
+ var t = st;
177
177
  queueMicrotask(() => {
178
- t === tt && Nr();
178
+ t === st && Or();
179
179
  });
180
180
  }
181
- tt.push(e);
181
+ st.push(e);
182
182
  }
183
- function is() {
184
- for (; tt.length > 0; )
185
- Nr();
183
+ function ds() {
184
+ for (; st.length > 0; )
185
+ Or();
186
186
  }
187
- function Rr(e) {
188
- var t = E;
187
+ function jr(e) {
188
+ var t = S;
189
189
  if (t === null)
190
- return y.f |= Be, e;
191
- if ((t.f & ht) === 0 && (t.f & Lt) === 0)
190
+ return x.f |= Ke, e;
191
+ if ((t.f & gt) === 0 && (t.f & jt) === 0)
192
192
  throw e;
193
- We(e, t);
193
+ Ue(e, t);
194
194
  }
195
- function We(e, t) {
195
+ function Ue(e, t) {
196
196
  for (; t !== null; ) {
197
- if ((t.f & An) !== 0) {
198
- if ((t.f & ht) === 0)
197
+ if ((t.f & Pn) !== 0) {
198
+ if ((t.f & gt) === 0)
199
199
  throw e;
200
200
  try {
201
201
  t.b.error(e);
@@ -208,32 +208,32 @@ function We(e, t) {
208
208
  }
209
209
  throw e;
210
210
  }
211
- const ss = -7169;
212
- function D(e, t) {
213
- e.f = e.f & ss | t;
211
+ const hs = -7169;
212
+ function z(e, t) {
213
+ e.f = e.f & hs | t;
214
214
  }
215
- function Un(e) {
216
- (e.f & le) !== 0 || e.deps === null ? D(e, z) : D(e, pe);
215
+ function Jn(e) {
216
+ (e.f & ae) !== 0 || e.deps === null ? z(e, H) : z(e, ge);
217
217
  }
218
- function Lr(e) {
218
+ function Fr(e) {
219
219
  if (e !== null)
220
220
  for (const t of e)
221
- (t.f & H) === 0 || (t.f & dt) === 0 || (t.f ^= dt, Lr(
221
+ (t.f & W) === 0 || (t.f & _t) === 0 || (t.f ^= _t, Fr(
222
222
  /** @type {Derived} */
223
223
  t.deps
224
224
  ));
225
225
  }
226
- function Pr(e, t, n) {
227
- (e.f & F) !== 0 ? t.add(e) : (e.f & pe) !== 0 && n.add(e), Lr(e.deps), D(e, z);
226
+ function Hr(e, t, n) {
227
+ (e.f & Y) !== 0 ? t.add(e) : (e.f & ge) !== 0 && n.add(e), Fr(e.deps), z(e, H);
228
228
  }
229
- const en = /* @__PURE__ */ new Set();
230
- let L = null, ve = null, B = [], mn = null, jt = !1, Nt = null, os = 1;
231
- var Fe, bt, it, yt, $t, xt, He, we, Et, U, Nn, Rn, Ln, Pn;
232
- const sr = class sr {
229
+ const rn = /* @__PURE__ */ new Set();
230
+ let P = null, pe = null, U = [], bn = null, Ht = !1, Dt = null, vs = 1;
231
+ var Be, Et, at, Ct, It, kt, Xe, ye, Tt, Z, zn, Dn, On, jn;
232
+ const fr = class fr {
233
233
  constructor() {
234
- b(this, U);
234
+ y(this, Z);
235
235
  // for debugging. TODO remove once async is stable
236
- N(this, "id", os++);
236
+ N(this, "id", vs++);
237
237
  /**
238
238
  * The current values of any sources that are updated in this batch
239
239
  * They keys of this map are identical to `this.#previous`
@@ -251,36 +251,36 @@ const sr = class sr {
251
251
  * and append new ones by calling the functions added inside (if/each/key/etc) blocks
252
252
  * @type {Set<(batch: Batch) => void>}
253
253
  */
254
- b(this, Fe, /* @__PURE__ */ new Set());
254
+ y(this, Be, /* @__PURE__ */ new Set());
255
255
  /**
256
256
  * If a fork is discarded, we need to destroy any effects that are no longer needed
257
257
  * @type {Set<(batch: Batch) => void>}
258
258
  */
259
- b(this, bt, /* @__PURE__ */ new Set());
259
+ y(this, Et, /* @__PURE__ */ new Set());
260
260
  /**
261
261
  * The number of async effects that are currently in flight
262
262
  */
263
- b(this, it, 0);
263
+ y(this, at, 0);
264
264
  /**
265
265
  * The number of async effects that are currently in flight, _not_ inside a pending boundary
266
266
  */
267
- b(this, yt, 0);
267
+ y(this, Ct, 0);
268
268
  /**
269
269
  * A deferred that resolves when the batch is committed, used with `settled()`
270
270
  * TODO replace with Promise.withResolvers once supported widely enough
271
271
  * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
272
272
  */
273
- b(this, $t, null);
273
+ y(this, It, null);
274
274
  /**
275
275
  * Deferred effects (which run after async work has completed) that are DIRTY
276
276
  * @type {Set<Effect>}
277
277
  */
278
- b(this, xt, /* @__PURE__ */ new Set());
278
+ y(this, kt, /* @__PURE__ */ new Set());
279
279
  /**
280
280
  * Deferred effects that are MAYBE_DIRTY
281
281
  * @type {Set<Effect>}
282
282
  */
283
- b(this, He, /* @__PURE__ */ new Set());
283
+ y(this, Xe, /* @__PURE__ */ new Set());
284
284
  /**
285
285
  * A map of branches that still exist, but will be destroyed when this batch
286
286
  * is committed — we skip over these during `process`.
@@ -288,16 +288,16 @@ const sr = class sr {
288
288
  * so they can be rescheduled if the branch survives.
289
289
  * @type {Map<Effect, { d: Effect[], m: Effect[] }>}
290
290
  */
291
- b(this, we, /* @__PURE__ */ new Map());
291
+ y(this, ye, /* @__PURE__ */ new Map());
292
292
  N(this, "is_fork", !1);
293
- b(this, Et, !1);
293
+ y(this, Tt, !1);
294
294
  }
295
295
  /**
296
296
  * Add an effect to the #skipped_branches map and reset its children
297
297
  * @param {Effect} effect
298
298
  */
299
299
  skip_effect(t) {
300
- a(this, we).has(t) || a(this, we).set(t, { d: [], m: [] });
300
+ a(this, ye).has(t) || a(this, ye).set(t, { d: [], m: [] });
301
301
  }
302
302
  /**
303
303
  * Remove an effect from the #skipped_branches map and reschedule
@@ -305,13 +305,13 @@ const sr = class sr {
305
305
  * @param {Effect} effect
306
306
  */
307
307
  unskip_effect(t) {
308
- var n = a(this, we).get(t);
308
+ var n = a(this, ye).get(t);
309
309
  if (n) {
310
- a(this, we).delete(t);
310
+ a(this, ye).delete(t);
311
311
  for (var r of n.d)
312
- D(r, F), xe(r);
312
+ z(r, Y), Se(r);
313
313
  for (r of n.m)
314
- D(r, pe), xe(r);
314
+ z(r, ge), Se(r);
315
315
  }
316
316
  }
317
317
  /**
@@ -319,20 +319,20 @@ const sr = class sr {
319
319
  * @param {Effect[]} root_effects
320
320
  */
321
321
  process(t) {
322
- B = [], this.apply();
323
- var n = Nt = [], r = [];
322
+ U = [], this.apply();
323
+ var n = Dt = [], r = [];
324
324
  for (const i of t)
325
- R(this, U, Rn).call(this, i, n, r);
326
- if (Nt = null, R(this, U, Nn).call(this)) {
327
- R(this, U, Ln).call(this, r), R(this, U, Ln).call(this, n);
328
- for (const [i, s] of a(this, we))
329
- zr(i, s);
325
+ R(this, Z, Dn).call(this, i, n, r);
326
+ if (Dt = null, R(this, Z, zn).call(this)) {
327
+ R(this, Z, On).call(this, r), R(this, Z, On).call(this, n);
328
+ for (const [i, s] of a(this, ye))
329
+ Br(i, s);
330
330
  } else {
331
- L = null;
332
- for (const i of a(this, Fe)) i(this);
333
- a(this, Fe).clear(), a(this, it) === 0 && R(this, U, Pn).call(this), cr(r), cr(n), a(this, xt).clear(), a(this, He).clear(), a(this, $t)?.resolve();
331
+ P = null;
332
+ for (const i of a(this, Be)) i(this);
333
+ a(this, Be).clear(), a(this, at) === 0 && R(this, Z, jn).call(this), gr(r), gr(n), a(this, kt).clear(), a(this, Xe).clear(), a(this, It)?.resolve();
334
334
  }
335
- ve = null;
335
+ pe = null;
336
336
  }
337
337
  /**
338
338
  * Associate a change to a given source with the current
@@ -341,75 +341,75 @@ const sr = class sr {
341
341
  * @param {any} value
342
342
  */
343
343
  capture(t, n) {
344
- n !== O && !this.previous.has(t) && this.previous.set(t, n), (t.f & Be) === 0 && (this.current.set(t, t.v), ve?.set(t, t.v));
344
+ n !== j && !this.previous.has(t) && this.previous.set(t, n), (t.f & Ke) === 0 && (this.current.set(t, t.v), pe?.set(t, t.v));
345
345
  }
346
346
  activate() {
347
- L = this, this.apply();
347
+ P = this, this.apply();
348
348
  }
349
349
  deactivate() {
350
- L === this && (L = null, ve = null);
350
+ P === this && (P = null, pe = null);
351
351
  }
352
352
  flush() {
353
- if (B.length > 0)
354
- L = this, Dr();
355
- else if (a(this, it) === 0 && !this.is_fork) {
356
- for (const t of a(this, Fe)) t(this);
357
- a(this, Fe).clear(), R(this, U, Pn).call(this), a(this, $t)?.resolve();
353
+ if (U.length > 0)
354
+ P = this, Yr();
355
+ else if (a(this, at) === 0 && !this.is_fork) {
356
+ for (const t of a(this, Be)) t(this);
357
+ a(this, Be).clear(), R(this, Z, jn).call(this), a(this, It)?.resolve();
358
358
  }
359
359
  this.deactivate();
360
360
  }
361
361
  discard() {
362
- for (const t of a(this, bt)) t(this);
363
- a(this, bt).clear();
362
+ for (const t of a(this, Et)) t(this);
363
+ a(this, Et).clear();
364
364
  }
365
365
  /**
366
366
  *
367
367
  * @param {boolean} blocking
368
368
  */
369
369
  increment(t) {
370
- m(this, it, a(this, it) + 1), t && m(this, yt, a(this, yt) + 1);
370
+ m(this, at, a(this, at) + 1), t && m(this, Ct, a(this, Ct) + 1);
371
371
  }
372
372
  /**
373
373
  *
374
374
  * @param {boolean} blocking
375
375
  */
376
376
  decrement(t) {
377
- m(this, it, a(this, it) - 1), t && m(this, yt, a(this, yt) - 1), !a(this, Et) && (m(this, Et, !0), gt(() => {
378
- m(this, Et, !1), R(this, U, Nn).call(this) ? B.length > 0 && this.flush() : this.revive();
377
+ m(this, at, a(this, at) - 1), t && m(this, Ct, a(this, Ct) - 1), !a(this, Tt) && (m(this, Tt, !0), xt(() => {
378
+ m(this, Tt, !1), R(this, Z, zn).call(this) ? U.length > 0 && this.flush() : this.revive();
379
379
  }));
380
380
  }
381
381
  revive() {
382
- for (const t of a(this, xt))
383
- a(this, He).delete(t), D(t, F), xe(t);
384
- for (const t of a(this, He))
385
- D(t, pe), xe(t);
382
+ for (const t of a(this, kt))
383
+ a(this, Xe).delete(t), z(t, Y), Se(t);
384
+ for (const t of a(this, Xe))
385
+ z(t, ge), Se(t);
386
386
  this.flush();
387
387
  }
388
388
  /** @param {(batch: Batch) => void} fn */
389
389
  oncommit(t) {
390
- a(this, Fe).add(t);
390
+ a(this, Be).add(t);
391
391
  }
392
392
  /** @param {(batch: Batch) => void} fn */
393
393
  ondiscard(t) {
394
- a(this, bt).add(t);
394
+ a(this, Et).add(t);
395
395
  }
396
396
  settled() {
397
- return (a(this, $t) ?? m(this, $t, kr())).promise;
397
+ return (a(this, It) ?? m(this, It, Pr())).promise;
398
398
  }
399
399
  static ensure() {
400
- if (L === null) {
401
- const t = L = new sr();
402
- en.add(L), jt || gt(() => {
403
- L === t && t.flush();
400
+ if (P === null) {
401
+ const t = P = new fr();
402
+ rn.add(P), Ht || xt(() => {
403
+ P === t && t.flush();
404
404
  });
405
405
  }
406
- return L;
406
+ return P;
407
407
  }
408
408
  apply() {
409
409
  }
410
410
  };
411
- Fe = new WeakMap(), bt = new WeakMap(), it = new WeakMap(), yt = new WeakMap(), $t = new WeakMap(), xt = new WeakMap(), He = new WeakMap(), we = new WeakMap(), Et = new WeakMap(), U = new WeakSet(), Nn = function() {
412
- return this.is_fork || a(this, yt) > 0;
411
+ Be = new WeakMap(), Et = new WeakMap(), at = new WeakMap(), Ct = new WeakMap(), It = new WeakMap(), kt = new WeakMap(), Xe = new WeakMap(), ye = new WeakMap(), Tt = new WeakMap(), Z = new WeakSet(), zn = function() {
412
+ return this.is_fork || a(this, Ct) > 0;
413
413
  }, /**
414
414
  * Traverse the effect tree, executing effects or stashing
415
415
  * them for later execution as appropriate
@@ -417,12 +417,12 @@ Fe = new WeakMap(), bt = new WeakMap(), it = new WeakMap(), yt = new WeakMap(),
417
417
  * @param {Effect[]} effects
418
418
  * @param {Effect[]} render_effects
419
419
  */
420
- Rn = function(t, n, r) {
421
- t.f ^= z;
420
+ Dn = function(t, n, r) {
421
+ t.f ^= H;
422
422
  for (var i = t.first; i !== null; ) {
423
- var s = i.f, o = (s & (Se | Ke)) !== 0, u = o && (s & z) !== 0, l = (s & ae) !== 0, f = u || a(this, we).has(i);
423
+ var s = i.f, o = (s & (Ce | nt)) !== 0, u = o && (s & H) !== 0, l = (s & ue) !== 0, f = u || a(this, ye).has(i);
424
424
  if (!f && i.fn !== null) {
425
- o ? l || (i.f ^= z) : (s & Lt) !== 0 ? n.push(i) : (s & (At | Vn)) !== 0 && l ? r.push(i) : Gt(i) && (Rt(i), (s & Ze) !== 0 && (a(this, He).add(i), l && D(i, F)));
425
+ o ? l || (i.f ^= H) : (s & jt) !== 0 ? n.push(i) : (s & (Lt | Un)) !== 0 && l ? r.push(i) : Qt(i) && (Ot(i), (s & tt) !== 0 && (a(this, Xe).add(i), l && z(i, Y)));
426
426
  var d = i.first;
427
427
  if (d !== null) {
428
428
  i = d;
@@ -441,15 +441,15 @@ Rn = function(t, n, r) {
441
441
  }, /**
442
442
  * @param {Effect[]} effects
443
443
  */
444
- Ln = function(t) {
444
+ On = function(t) {
445
445
  for (var n = 0; n < t.length; n += 1)
446
- Pr(t[n], a(this, xt), a(this, He));
447
- }, Pn = function() {
446
+ Hr(t[n], a(this, kt), a(this, Xe));
447
+ }, jn = function() {
448
448
  var s;
449
- if (en.size > 1) {
449
+ if (rn.size > 1) {
450
450
  this.previous.clear();
451
- var t = L, n = ve, r = !0;
452
- for (const o of en) {
451
+ var t = P, n = pe, r = !0;
452
+ for (const o of rn) {
453
453
  if (o === this) {
454
454
  r = !1;
455
455
  continue;
@@ -467,110 +467,110 @@ Ln = function(t) {
467
467
  continue;
468
468
  const l = [...o.current.keys()].filter((f) => !this.current.has(f));
469
469
  if (l.length > 0) {
470
- var i = B;
471
- B = [];
470
+ var i = U;
471
+ U = [];
472
472
  const f = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Map();
473
473
  for (const c of u)
474
- jr(c, l, f, d);
475
- if (B.length > 0) {
476
- L = o, o.apply();
477
- for (const c of B)
478
- R(s = o, U, Rn).call(s, c, [], []);
474
+ Wr(c, l, f, d);
475
+ if (U.length > 0) {
476
+ P = o, o.apply();
477
+ for (const c of U)
478
+ R(s = o, Z, Dn).call(s, c, [], []);
479
479
  o.deactivate();
480
480
  }
481
- B = i;
481
+ U = i;
482
482
  }
483
483
  }
484
- L = t, ve = n;
484
+ P = t, pe = n;
485
485
  }
486
- a(this, we).clear(), en.delete(this);
486
+ a(this, ye).clear(), rn.delete(this);
487
487
  };
488
- let Pe = sr;
489
- function T(e) {
490
- var t = jt;
491
- jt = !0;
488
+ let je = fr;
489
+ function k(e) {
490
+ var t = Ht;
491
+ Ht = !0;
492
492
  try {
493
493
  for (var n; ; ) {
494
- if (is(), B.length === 0 && (L?.flush(), B.length === 0))
495
- return mn = null, /** @type {T} */
494
+ if (ds(), U.length === 0 && (P?.flush(), U.length === 0))
495
+ return bn = null, /** @type {T} */
496
496
  n;
497
- Dr();
497
+ Yr();
498
498
  }
499
499
  } finally {
500
- jt = t;
500
+ Ht = t;
501
501
  }
502
502
  }
503
- function Dr() {
503
+ function Yr() {
504
504
  var e = null;
505
505
  try {
506
- for (var t = 0; B.length > 0; ) {
507
- var n = Pe.ensure();
506
+ for (var t = 0; U.length > 0; ) {
507
+ var n = je.ensure();
508
508
  if (t++ > 1e3) {
509
509
  var r, i;
510
- ls();
510
+ ps();
511
511
  }
512
- n.process(B), Xe.clear();
512
+ n.process(U), Ze.clear();
513
513
  }
514
514
  } finally {
515
- B = [], mn = null, Nt = null;
515
+ U = [], bn = null, Dt = null;
516
516
  }
517
517
  }
518
- function ls() {
518
+ function ps() {
519
519
  try {
520
- Xi();
520
+ es();
521
521
  } catch (e) {
522
- We(e, mn);
522
+ Ue(e, bn);
523
523
  }
524
524
  }
525
- let ke = null;
526
- function cr(e) {
525
+ let Ne = null;
526
+ function gr(e) {
527
527
  var t = e.length;
528
528
  if (t !== 0) {
529
529
  for (var n = 0; n < t; ) {
530
530
  var r = e[n++];
531
- if ((r.f & (Le | ae)) === 0 && Gt(r) && (ke = /* @__PURE__ */ new Set(), Rt(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && ti(r), ke?.size > 0)) {
532
- Xe.clear();
533
- for (const i of ke) {
534
- if ((i.f & (Le | ae)) !== 0) continue;
531
+ if ((r.f & (Oe | ue)) === 0 && Qt(r) && (Ne = /* @__PURE__ */ new Set(), Ot(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && oi(r), Ne?.size > 0)) {
532
+ Ze.clear();
533
+ for (const i of Ne) {
534
+ if ((i.f & (Oe | ue)) !== 0) continue;
535
535
  const s = [i];
536
536
  let o = i.parent;
537
537
  for (; o !== null; )
538
- ke.has(o) && (ke.delete(o), s.push(o)), o = o.parent;
538
+ Ne.has(o) && (Ne.delete(o), s.push(o)), o = o.parent;
539
539
  for (let u = s.length - 1; u >= 0; u--) {
540
540
  const l = s[u];
541
- (l.f & (Le | ae)) === 0 && Rt(l);
541
+ (l.f & (Oe | ue)) === 0 && Ot(l);
542
542
  }
543
543
  }
544
- ke.clear();
544
+ Ne.clear();
545
545
  }
546
546
  }
547
- ke = null;
547
+ Ne = null;
548
548
  }
549
549
  }
550
- function jr(e, t, n, r) {
550
+ function Wr(e, t, n, r) {
551
551
  if (!n.has(e) && (n.add(e), e.reactions !== null))
552
552
  for (const i of e.reactions) {
553
553
  const s = i.f;
554
- (s & H) !== 0 ? jr(
554
+ (s & W) !== 0 ? Wr(
555
555
  /** @type {Derived} */
556
556
  i,
557
557
  t,
558
558
  n,
559
559
  r
560
- ) : (s & (Bn | Ze)) !== 0 && (s & F) === 0 && Or(i, t, r) && (D(i, F), xe(
560
+ ) : (s & (Gn | tt)) !== 0 && (s & Y) === 0 && Vr(i, t, r) && (z(i, Y), Se(
561
561
  /** @type {Effect} */
562
562
  i
563
563
  ));
564
564
  }
565
565
  }
566
- function Or(e, t, n) {
566
+ function Vr(e, t, n) {
567
567
  const r = n.get(e);
568
568
  if (r !== void 0) return r;
569
569
  if (e.deps !== null)
570
570
  for (const i of e.deps) {
571
- if (Tt.call(t, i))
571
+ if (Pt.call(t, i))
572
572
  return !0;
573
- if ((i.f & H) !== 0 && Or(
573
+ if ((i.f & W) !== 0 && Vr(
574
574
  /** @type {Derived} */
575
575
  i,
576
576
  t,
@@ -584,48 +584,48 @@ function Or(e, t, n) {
584
584
  }
585
585
  return n.set(e, !1), !1;
586
586
  }
587
- function xe(e) {
588
- var t = mn = e, n = t.b;
589
- if (n?.is_pending && (e.f & (Lt | At | Vn)) !== 0 && (e.f & ht) === 0) {
587
+ function Se(e) {
588
+ var t = bn = e, n = t.b;
589
+ if (n?.is_pending && (e.f & (jt | Lt | Un)) !== 0 && (e.f & gt) === 0) {
590
590
  n.defer_effect(e);
591
591
  return;
592
592
  }
593
593
  for (; t.parent !== null; ) {
594
594
  t = t.parent;
595
595
  var r = t.f;
596
- if (Nt !== null && t === E && (e.f & At) === 0)
596
+ if (Dt !== null && t === S && (e.f & Lt) === 0)
597
597
  return;
598
- if ((r & (Ke | Se)) !== 0) {
599
- if ((r & z) === 0)
598
+ if ((r & (nt | Ce)) !== 0) {
599
+ if ((r & H) === 0)
600
600
  return;
601
- t.f ^= z;
601
+ t.f ^= H;
602
602
  }
603
603
  }
604
- B.push(t);
604
+ U.push(t);
605
605
  }
606
- function zr(e, t) {
607
- if (!((e.f & Se) !== 0 && (e.f & z) !== 0)) {
608
- (e.f & F) !== 0 ? t.d.push(e) : (e.f & pe) !== 0 && t.m.push(e), D(e, z);
606
+ function Br(e, t) {
607
+ if (!((e.f & Ce) !== 0 && (e.f & H) !== 0)) {
608
+ (e.f & Y) !== 0 ? t.d.push(e) : (e.f & ge) !== 0 && t.m.push(e), z(e, H);
609
609
  for (var n = e.first; n !== null; )
610
- zr(n, t), n = n.next;
610
+ Br(n, t), n = n.next;
611
611
  }
612
612
  }
613
- function as(e) {
614
- let t = 0, n = Ut(0), r;
613
+ function _s(e) {
614
+ let t = 0, n = Jt(0), r;
615
615
  return () => {
616
- er() && (x(n), Qr(() => (t === 0 && (r = mt(() => e(() => zt(n)))), t += 1, () => {
617
- gt(() => {
618
- t -= 1, t === 0 && (r?.(), r = void 0, zt(n));
616
+ ir() && (w(n), ii(() => (t === 0 && (r = $t(() => e(() => Wt(n)))), t += 1, () => {
617
+ xt(() => {
618
+ t -= 1, t === 0 && (r?.(), r = void 0, Wt(n));
619
619
  });
620
620
  })));
621
621
  };
622
622
  }
623
- var us = ct | vt;
624
- function fs(e, t, n, r) {
625
- new cs(e, t, n, r);
623
+ var gs = pt | mt;
624
+ function ms(e, t, n, r) {
625
+ new ws(e, t, n, r);
626
626
  }
627
- var K, Wt, be, st, V, ye, J, de, Ae, ot, Ye, St, Ct, It, Me, hn, P, Fr, Hr, Yr, Dn, rn, sn, jn;
628
- class cs {
627
+ var ee, qt, be, ut, q, xe, te, he, Pe, ft, qe, Mt, At, Nt, Le, _n, L, Xr, qr, Ur, Fn, ln, an, Hn;
628
+ class ws {
629
629
  /**
630
630
  * @param {TemplateNode} node
631
631
  * @param {BoundaryProps} props
@@ -633,7 +633,7 @@ class cs {
633
633
  * @param {((error: unknown) => unknown) | undefined} [transform_error]
634
634
  */
635
635
  constructor(t, n, r, i) {
636
- b(this, P);
636
+ y(this, L);
637
637
  /** @type {Boundary | null} */
638
638
  N(this, "parent");
639
639
  N(this, "is_pending", !1);
@@ -644,30 +644,30 @@ class cs {
644
644
  */
645
645
  N(this, "transform_error");
646
646
  /** @type {TemplateNode} */
647
- b(this, K);
647
+ y(this, ee);
648
648
  /** @type {TemplateNode | null} */
649
- b(this, Wt, I ? C : null);
649
+ y(this, qt, M ? I : null);
650
650
  /** @type {BoundaryProps} */
651
- b(this, be);
651
+ y(this, be);
652
652
  /** @type {((anchor: Node) => void)} */
653
- b(this, st);
653
+ y(this, ut);
654
654
  /** @type {Effect} */
655
- b(this, V);
655
+ y(this, q);
656
656
  /** @type {Effect | null} */
657
- b(this, ye, null);
657
+ y(this, xe, null);
658
658
  /** @type {Effect | null} */
659
- b(this, J, null);
659
+ y(this, te, null);
660
660
  /** @type {Effect | null} */
661
- b(this, de, null);
661
+ y(this, he, null);
662
662
  /** @type {DocumentFragment | null} */
663
- b(this, Ae, null);
664
- b(this, ot, 0);
665
- b(this, Ye, 0);
666
- b(this, St, !1);
663
+ y(this, Pe, null);
664
+ y(this, ft, 0);
665
+ y(this, qe, 0);
666
+ y(this, Mt, !1);
667
667
  /** @type {Set<Effect>} */
668
- b(this, Ct, /* @__PURE__ */ new Set());
668
+ y(this, At, /* @__PURE__ */ new Set());
669
669
  /** @type {Set<Effect>} */
670
- b(this, It, /* @__PURE__ */ new Set());
670
+ y(this, Nt, /* @__PURE__ */ new Set());
671
671
  /**
672
672
  * A source containing the number of pending async deriveds/expressions.
673
673
  * Only created if `$effect.pending()` is used inside the boundary,
@@ -675,39 +675,39 @@ class cs {
675
675
  * calls followed by no-op flushes
676
676
  * @type {Source<number> | null}
677
677
  */
678
- b(this, Me, null);
679
- b(this, hn, as(() => (m(this, Me, Ut(a(this, ot))), () => {
680
- m(this, Me, null);
678
+ y(this, Le, null);
679
+ y(this, _n, _s(() => (m(this, Le, Jt(a(this, ft))), () => {
680
+ m(this, Le, null);
681
681
  })));
682
- m(this, K, t), m(this, be, n), m(this, st, (s) => {
682
+ m(this, ee, t), m(this, be, n), m(this, ut, (s) => {
683
683
  var o = (
684
684
  /** @type {Effect} */
685
- E
685
+ S
686
686
  );
687
- o.b = this, o.f |= An, r(s);
687
+ o.b = this, o.f |= Pn, r(s);
688
688
  }), this.parent = /** @type {Effect} */
689
- E.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), m(this, V, tr(() => {
690
- if (I) {
689
+ S.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), m(this, q, or(() => {
690
+ if (M) {
691
691
  const s = (
692
692
  /** @type {Comment} */
693
- a(this, Wt)
693
+ a(this, qt)
694
694
  );
695
- qn();
696
- const o = s.data === xr;
697
- if (s.data.startsWith(ar)) {
698
- const l = JSON.parse(s.data.slice(ar.length));
699
- R(this, P, Hr).call(this, l);
700
- } else o ? R(this, P, Yr).call(this) : R(this, P, Fr).call(this);
695
+ Zn();
696
+ const o = s.data === Tr;
697
+ if (s.data.startsWith(vr)) {
698
+ const l = JSON.parse(s.data.slice(vr.length));
699
+ R(this, L, qr).call(this, l);
700
+ } else o ? R(this, L, Ur).call(this) : R(this, L, Xr).call(this);
701
701
  } else
702
- R(this, P, Dn).call(this);
703
- }, us)), I && m(this, K, C);
702
+ R(this, L, Fn).call(this);
703
+ }, gs)), M && m(this, ee, I);
704
704
  }
705
705
  /**
706
706
  * Defer an effect inside a pending boundary until the boundary resolves
707
707
  * @param {Effect} effect
708
708
  */
709
709
  defer_effect(t) {
710
- Pr(t, a(this, Ct), a(this, It));
710
+ Hr(t, a(this, At), a(this, Nt));
711
711
  }
712
712
  /**
713
713
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -726,14 +726,14 @@ class cs {
726
726
  * @param {1 | -1} d
727
727
  */
728
728
  update_pending_count(t) {
729
- R(this, P, jn).call(this, t), m(this, ot, a(this, ot) + t), !(!a(this, Me) || a(this, St)) && (m(this, St, !0), gt(() => {
730
- m(this, St, !1), a(this, Me) && fn(a(this, Me), a(this, ot));
729
+ R(this, L, Hn).call(this, t), m(this, ft, a(this, ft) + t), !(!a(this, Le) || a(this, Mt)) && (m(this, Mt, !0), xt(() => {
730
+ m(this, Mt, !1), a(this, Le) && hn(a(this, Le), a(this, ft));
731
731
  }));
732
732
  }
733
733
  get_effect_pending() {
734
- return a(this, hn).call(this), x(
734
+ return a(this, _n).call(this), w(
735
735
  /** @type {Source<number>} */
736
- a(this, Me)
736
+ a(this, Le)
737
737
  );
738
738
  }
739
739
  /** @param {unknown} error */
@@ -742,153 +742,153 @@ class cs {
742
742
  let r = a(this, be).failed;
743
743
  if (!n && !r)
744
744
  throw t;
745
- a(this, ye) && (q(a(this, ye)), m(this, ye, null)), a(this, J) && (q(a(this, J)), m(this, J, null)), a(this, de) && (q(a(this, de)), m(this, de, null)), I && (ge(
745
+ a(this, xe) && (K(a(this, xe)), m(this, xe, null)), a(this, te) && (K(a(this, te)), m(this, te, null)), a(this, he) && (K(a(this, he)), m(this, he, null)), M && (me(
746
746
  /** @type {TemplateNode} */
747
- a(this, Wt)
748
- ), Qi(), ge(Tr()));
747
+ a(this, qt)
748
+ ), ls(), me(Lr()));
749
749
  var i = !1, s = !1;
750
750
  const o = () => {
751
751
  if (i) {
752
- Ji();
752
+ os();
753
753
  return;
754
754
  }
755
- i = !0, s && Ki(), a(this, de) !== null && Ft(a(this, de), () => {
756
- m(this, de, null);
757
- }), R(this, P, sn).call(this, () => {
758
- Pe.ensure(), R(this, P, Dn).call(this);
755
+ i = !0, s && ss(), a(this, he) !== null && Vt(a(this, he), () => {
756
+ m(this, he, null);
757
+ }), R(this, L, an).call(this, () => {
758
+ je.ensure(), R(this, L, Fn).call(this);
759
759
  });
760
760
  }, u = (l) => {
761
761
  try {
762
762
  s = !0, n?.(l, o), s = !1;
763
763
  } catch (f) {
764
- We(f, a(this, V) && a(this, V).parent);
764
+ Ue(f, a(this, q) && a(this, q).parent);
765
765
  }
766
- r && m(this, de, R(this, P, sn).call(this, () => {
767
- Pe.ensure();
766
+ r && m(this, he, R(this, L, an).call(this, () => {
767
+ je.ensure();
768
768
  try {
769
- return Te(() => {
769
+ return Re(() => {
770
770
  var f = (
771
771
  /** @type {Effect} */
772
- E
772
+ S
773
773
  );
774
- f.b = this, f.f |= An, r(
775
- a(this, K),
774
+ f.b = this, f.f |= Pn, r(
775
+ a(this, ee),
776
776
  () => l,
777
777
  () => o
778
778
  );
779
779
  });
780
780
  } catch (f) {
781
- return We(
781
+ return Ue(
782
782
  f,
783
783
  /** @type {Effect} */
784
- a(this, V).parent
784
+ a(this, q).parent
785
785
  ), null;
786
786
  }
787
787
  }));
788
788
  };
789
- gt(() => {
789
+ xt(() => {
790
790
  var l;
791
791
  try {
792
792
  l = this.transform_error(t);
793
793
  } catch (f) {
794
- We(f, a(this, V) && a(this, V).parent);
794
+ Ue(f, a(this, q) && a(this, q).parent);
795
795
  return;
796
796
  }
797
797
  l !== null && typeof l == "object" && typeof /** @type {any} */
798
798
  l.then == "function" ? l.then(
799
799
  u,
800
800
  /** @param {unknown} e */
801
- (f) => We(f, a(this, V) && a(this, V).parent)
801
+ (f) => Ue(f, a(this, q) && a(this, q).parent)
802
802
  ) : u(l);
803
803
  });
804
804
  }
805
805
  }
806
- K = new WeakMap(), Wt = new WeakMap(), be = new WeakMap(), st = new WeakMap(), V = new WeakMap(), ye = new WeakMap(), J = new WeakMap(), de = new WeakMap(), Ae = new WeakMap(), ot = new WeakMap(), Ye = new WeakMap(), St = new WeakMap(), Ct = new WeakMap(), It = new WeakMap(), Me = new WeakMap(), hn = new WeakMap(), P = new WeakSet(), Fr = function() {
806
+ ee = new WeakMap(), qt = new WeakMap(), be = new WeakMap(), ut = new WeakMap(), q = new WeakMap(), xe = new WeakMap(), te = new WeakMap(), he = new WeakMap(), Pe = new WeakMap(), ft = new WeakMap(), qe = new WeakMap(), Mt = new WeakMap(), At = new WeakMap(), Nt = new WeakMap(), Le = new WeakMap(), _n = new WeakMap(), L = new WeakSet(), Xr = function() {
807
807
  try {
808
- m(this, ye, Te(() => a(this, st).call(this, a(this, K))));
808
+ m(this, xe, Re(() => a(this, ut).call(this, a(this, ee))));
809
809
  } catch (t) {
810
810
  this.error(t);
811
811
  }
812
812
  }, /**
813
813
  * @param {unknown} error The deserialized error from the server's hydration comment
814
814
  */
815
- Hr = function(t) {
815
+ qr = function(t) {
816
816
  const n = a(this, be).failed;
817
- n && m(this, de, Te(() => {
817
+ n && m(this, he, Re(() => {
818
818
  n(
819
- a(this, K),
819
+ a(this, ee),
820
820
  () => t,
821
821
  () => () => {
822
822
  }
823
823
  );
824
824
  }));
825
- }, Yr = function() {
825
+ }, Ur = function() {
826
826
  const t = a(this, be).pending;
827
- t && (this.is_pending = !0, m(this, J, Te(() => t(a(this, K)))), gt(() => {
828
- var n = m(this, Ae, document.createDocumentFragment()), r = qe();
829
- n.append(r), m(this, ye, R(this, P, sn).call(this, () => (Pe.ensure(), Te(() => a(this, st).call(this, r))))), a(this, Ye) === 0 && (a(this, K).before(n), m(this, Ae, null), Ft(
827
+ t && (this.is_pending = !0, m(this, te, Re(() => t(a(this, ee)))), xt(() => {
828
+ var n = m(this, Pe, document.createDocumentFragment()), r = Je();
829
+ n.append(r), m(this, xe, R(this, L, an).call(this, () => (je.ensure(), Re(() => a(this, ut).call(this, r))))), a(this, qe) === 0 && (a(this, ee).before(n), m(this, Pe, null), Vt(
830
830
  /** @type {Effect} */
831
- a(this, J),
831
+ a(this, te),
832
832
  () => {
833
- m(this, J, null);
833
+ m(this, te, null);
834
834
  }
835
- ), R(this, P, rn).call(this));
835
+ ), R(this, L, ln).call(this));
836
836
  }));
837
- }, Dn = function() {
837
+ }, Fn = function() {
838
838
  try {
839
- if (this.is_pending = this.has_pending_snippet(), m(this, Ye, 0), m(this, ot, 0), m(this, ye, Te(() => {
840
- a(this, st).call(this, a(this, K));
841
- })), a(this, Ye) > 0) {
842
- var t = m(this, Ae, document.createDocumentFragment());
843
- ii(a(this, ye), t);
839
+ if (this.is_pending = this.has_pending_snippet(), m(this, qe, 0), m(this, ft, 0), m(this, xe, Re(() => {
840
+ a(this, ut).call(this, a(this, ee));
841
+ })), a(this, qe) > 0) {
842
+ var t = m(this, Pe, document.createDocumentFragment());
843
+ ui(a(this, xe), t);
844
844
  const n = (
845
845
  /** @type {(anchor: Node) => void} */
846
846
  a(this, be).pending
847
847
  );
848
- m(this, J, Te(() => n(a(this, K))));
848
+ m(this, te, Re(() => n(a(this, ee))));
849
849
  } else
850
- R(this, P, rn).call(this);
850
+ R(this, L, ln).call(this);
851
851
  } catch (n) {
852
852
  this.error(n);
853
853
  }
854
- }, rn = function() {
854
+ }, ln = function() {
855
855
  this.is_pending = !1;
856
- for (const t of a(this, Ct))
857
- D(t, F), xe(t);
858
- for (const t of a(this, It))
859
- D(t, pe), xe(t);
860
- a(this, Ct).clear(), a(this, It).clear();
856
+ for (const t of a(this, At))
857
+ z(t, Y), Se(t);
858
+ for (const t of a(this, Nt))
859
+ z(t, ge), Se(t);
860
+ a(this, At).clear(), a(this, Nt).clear();
861
861
  }, /**
862
862
  * @template T
863
863
  * @param {() => T} fn
864
864
  */
865
- sn = function(t) {
866
- var n = E, r = y, i = W;
867
- Ee(a(this, V)), fe(a(this, V)), Mt(a(this, V).ctx);
865
+ an = function(t) {
866
+ var n = S, r = x, i = B;
867
+ Ee(a(this, q)), ce(a(this, q)), zt(a(this, q).ctx);
868
868
  try {
869
869
  return t();
870
870
  } catch (s) {
871
- return Rr(s), null;
871
+ return jr(s), null;
872
872
  } finally {
873
- Ee(n), fe(r), Mt(i);
873
+ Ee(n), ce(r), zt(i);
874
874
  }
875
875
  }, /**
876
876
  * Updates the pending count associated with the currently visible pending snippet,
877
877
  * if any, such that we can replace the snippet with content once work is done
878
878
  * @param {1 | -1} d
879
879
  */
880
- jn = function(t) {
880
+ Hn = function(t) {
881
881
  var n;
882
882
  if (!this.has_pending_snippet()) {
883
- this.parent && R(n = this.parent, P, jn).call(n, t);
883
+ this.parent && R(n = this.parent, L, Hn).call(n, t);
884
884
  return;
885
885
  }
886
- m(this, Ye, a(this, Ye) + t), a(this, Ye) === 0 && (R(this, P, rn).call(this), a(this, J) && Ft(a(this, J), () => {
887
- m(this, J, null);
888
- }), a(this, Ae) && (a(this, K).before(a(this, Ae)), m(this, Ae, null)));
886
+ m(this, qe, a(this, qe) + t), a(this, qe) === 0 && (R(this, L, ln).call(this), a(this, te) && Vt(a(this, te), () => {
887
+ m(this, te, null);
888
+ }), a(this, Pe) && (a(this, ee).before(a(this, Pe)), m(this, Pe, null)));
889
889
  };
890
- function ds(e, t, n, r) {
891
- const i = Gn;
890
+ function ys(e, t, n, r) {
891
+ const i = Qn;
892
892
  var s = e.filter((c) => !c.settled);
893
893
  if (n.length === 0 && s.length === 0) {
894
894
  r(t.map(i));
@@ -896,116 +896,116 @@ function ds(e, t, n, r) {
896
896
  }
897
897
  var o = (
898
898
  /** @type {Effect} */
899
- E
900
- ), u = hs(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((c) => c.promise)) : null;
899
+ S
900
+ ), u = bs(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((c) => c.promise)) : null;
901
901
  function f(c) {
902
902
  u();
903
903
  try {
904
904
  r(c);
905
905
  } catch (v) {
906
- (o.f & Le) === 0 && We(v, o);
906
+ (o.f & Oe) === 0 && Ue(v, o);
907
907
  }
908
- On();
908
+ Yn();
909
909
  }
910
910
  if (n.length === 0) {
911
911
  l.then(() => f(t.map(i)));
912
912
  return;
913
913
  }
914
914
  function d() {
915
- u(), Promise.all(n.map((c) => /* @__PURE__ */ _s(c))).then((c) => f([...t.map(i), ...c])).catch((c) => We(c, o));
915
+ u(), Promise.all(n.map((c) => /* @__PURE__ */ $s(c))).then((c) => f([...t.map(i), ...c])).catch((c) => Ue(c, o));
916
916
  }
917
917
  l ? l.then(d) : d();
918
918
  }
919
- function hs() {
920
- var e = E, t = y, n = W, r = L;
919
+ function bs() {
920
+ var e = S, t = x, n = B, r = P;
921
921
  return function(s = !0) {
922
- Ee(e), fe(t), Mt(n), s && r?.activate();
922
+ Ee(e), ce(t), zt(n), s && r?.activate();
923
923
  };
924
924
  }
925
- function On(e = !0) {
926
- Ee(null), fe(null), Mt(null), e && L?.deactivate();
925
+ function Yn(e = !0) {
926
+ Ee(null), ce(null), zt(null), e && P?.deactivate();
927
927
  }
928
- function vs() {
928
+ function xs() {
929
929
  var e = (
930
930
  /** @type {Boundary} */
931
931
  /** @type {Effect} */
932
- E.b
932
+ S.b
933
933
  ), t = (
934
934
  /** @type {Batch} */
935
- L
935
+ P
936
936
  ), n = e.is_rendered();
937
937
  return e.update_pending_count(1), t.increment(n), () => {
938
938
  e.update_pending_count(-1), t.decrement(n);
939
939
  };
940
940
  }
941
941
  // @__NO_SIDE_EFFECTS__
942
- function Gn(e) {
943
- var t = H | F, n = y !== null && (y.f & H) !== 0 ? (
942
+ function Qn(e) {
943
+ var t = W | Y, n = x !== null && (x.f & W) !== 0 ? (
944
944
  /** @type {Derived} */
945
- y
945
+ x
946
946
  ) : null;
947
- return E !== null && (E.f |= vt), {
948
- ctx: W,
947
+ return S !== null && (S.f |= mt), {
948
+ ctx: B,
949
949
  deps: null,
950
950
  effects: null,
951
- equals: Ar,
951
+ equals: zr,
952
952
  f: t,
953
953
  fn: e,
954
954
  reactions: null,
955
955
  rv: 0,
956
956
  v: (
957
957
  /** @type {V} */
958
- O
958
+ j
959
959
  ),
960
960
  wv: 0,
961
- parent: n ?? E,
961
+ parent: n ?? S,
962
962
  ac: null
963
963
  };
964
964
  }
965
965
  // @__NO_SIDE_EFFECTS__
966
- function _s(e, t, n) {
966
+ function $s(e, t, n) {
967
967
  /** @type {Effect | null} */
968
- E === null && Yi();
968
+ S === null && Ki();
969
969
  var i = (
970
970
  /** @type {Promise<V>} */
971
971
  /** @type {unknown} */
972
972
  void 0
973
- ), s = Ut(
973
+ ), s = Jt(
974
974
  /** @type {V} */
975
- O
976
- ), o = !y, u = /* @__PURE__ */ new Map();
977
- return Ts(() => {
978
- var l = kr();
975
+ j
976
+ ), o = !x, u = /* @__PURE__ */ new Map();
977
+ return Ds(() => {
978
+ var l = Pr();
979
979
  i = l.promise;
980
980
  try {
981
- Promise.resolve(e()).then(l.resolve, l.reject).finally(On);
981
+ Promise.resolve(e()).then(l.resolve, l.reject).finally(Yn);
982
982
  } catch (v) {
983
- l.reject(v), On();
983
+ l.reject(v), Yn();
984
984
  }
985
985
  var f = (
986
986
  /** @type {Batch} */
987
- L
987
+ P
988
988
  );
989
989
  if (o) {
990
- var d = vs();
991
- u.get(f)?.reject(et), u.delete(f), u.set(f, l);
990
+ var d = xs();
991
+ u.get(f)?.reject(it), u.delete(f), u.set(f, l);
992
992
  }
993
993
  const c = (v, _ = void 0) => {
994
994
  if (f.activate(), _)
995
- _ !== et && (s.f |= Be, fn(s, _));
995
+ _ !== it && (s.f |= Ke, hn(s, _));
996
996
  else {
997
- (s.f & Be) !== 0 && (s.f ^= Be), fn(s, v);
998
- for (const [h, w] of u) {
997
+ (s.f & Ke) !== 0 && (s.f ^= Ke), hn(s, v);
998
+ for (const [h, b] of u) {
999
999
  if (u.delete(h), h === f) break;
1000
- w.reject(et);
1000
+ b.reject(it);
1001
1001
  }
1002
1002
  }
1003
1003
  d && d();
1004
1004
  };
1005
1005
  l.promise.then(c, (v) => c(null, v || "unknown"));
1006
- }), Ss(() => {
1006
+ }), Rs(() => {
1007
1007
  for (const l of u.values())
1008
- l.reject(et);
1008
+ l.reject(it);
1009
1009
  }), new Promise((l) => {
1010
1010
  function f(d) {
1011
1011
  function c() {
@@ -1017,25 +1017,25 @@ function _s(e, t, n) {
1017
1017
  });
1018
1018
  }
1019
1019
  // @__NO_SIDE_EFFECTS__
1020
- function Ot(e) {
1021
- const t = /* @__PURE__ */ Gn(e);
1022
- return si(t), t;
1020
+ function Yt(e) {
1021
+ const t = /* @__PURE__ */ Qn(e);
1022
+ return fi(t), t;
1023
1023
  }
1024
- function ps(e) {
1024
+ function Ss(e) {
1025
1025
  var t = e.effects;
1026
1026
  if (t !== null) {
1027
1027
  e.effects = null;
1028
1028
  for (var n = 0; n < t.length; n += 1)
1029
- q(
1029
+ K(
1030
1030
  /** @type {Effect} */
1031
1031
  t[n]
1032
1032
  );
1033
1033
  }
1034
1034
  }
1035
- function gs(e) {
1035
+ function Es(e) {
1036
1036
  for (var t = e.parent; t !== null; ) {
1037
- if ((t.f & H) === 0)
1038
- return (t.f & Le) === 0 ? (
1037
+ if ((t.f & W) === 0)
1038
+ return (t.f & Oe) === 0 ? (
1039
1039
  /** @type {Effect} */
1040
1040
  t
1041
1041
  ) : null;
@@ -1043,126 +1043,126 @@ function gs(e) {
1043
1043
  }
1044
1044
  return null;
1045
1045
  }
1046
- function Zn(e) {
1047
- var t, n = E;
1048
- Ee(gs(e));
1046
+ function er(e) {
1047
+ var t, n = S;
1048
+ Ee(Es(e));
1049
1049
  try {
1050
- e.f &= ~dt, ps(e), t = ui(e);
1050
+ e.f &= ~_t, Ss(e), t = vi(e);
1051
1051
  } finally {
1052
1052
  Ee(n);
1053
1053
  }
1054
1054
  return t;
1055
1055
  }
1056
- function Wr(e) {
1057
- var t = Zn(e);
1058
- if (!e.equals(t) && (e.wv = li(), (!L?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
1059
- D(e, z);
1056
+ function Gr(e) {
1057
+ var t = er(e);
1058
+ if (!e.equals(t) && (e.wv = di(), (!P?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
1059
+ z(e, H);
1060
1060
  return;
1061
1061
  }
1062
- Ge || (ve !== null ? (er() || L?.is_fork) && ve.set(e, t) : Un(e));
1062
+ et || (pe !== null ? (ir() || P?.is_fork) && pe.set(e, t) : Jn(e));
1063
1063
  }
1064
- function ms(e) {
1064
+ function Cs(e) {
1065
1065
  if (e.effects !== null)
1066
1066
  for (const t of e.effects)
1067
- (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(et), t.teardown = nn, t.ac = null, Yt(t, 0), nr(t));
1067
+ (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(it), t.teardown = on, t.ac = null, Xt(t, 0), lr(t));
1068
1068
  }
1069
- function Vr(e) {
1069
+ function Kr(e) {
1070
1070
  if (e.effects !== null)
1071
1071
  for (const t of e.effects)
1072
- t.teardown && Rt(t);
1072
+ t.teardown && Ot(t);
1073
1073
  }
1074
- let zn = /* @__PURE__ */ new Set();
1075
- const Xe = /* @__PURE__ */ new Map();
1076
- let Br = !1;
1077
- function Ut(e, t) {
1074
+ let Wn = /* @__PURE__ */ new Set();
1075
+ const Ze = /* @__PURE__ */ new Map();
1076
+ let Zr = !1;
1077
+ function Jt(e, t) {
1078
1078
  var n = {
1079
1079
  f: 0,
1080
1080
  // TODO ideally we could skip this altogether, but it causes type errors
1081
1081
  v: e,
1082
1082
  reactions: null,
1083
- equals: Ar,
1083
+ equals: zr,
1084
1084
  rv: 0,
1085
1085
  wv: 0
1086
1086
  };
1087
1087
  return n;
1088
1088
  }
1089
1089
  // @__NO_SIDE_EFFECTS__
1090
- function Y(e, t) {
1091
- const n = Ut(e);
1092
- return si(n), n;
1090
+ function F(e, t) {
1091
+ const n = Jt(e);
1092
+ return fi(n), n;
1093
1093
  }
1094
1094
  // @__NO_SIDE_EFFECTS__
1095
- function ws(e, t = !1, n = !0) {
1096
- const r = Ut(e);
1097
- return t || (r.equals = ns), r;
1095
+ function Is(e, t = !1, n = !0) {
1096
+ const r = Jt(e);
1097
+ return t || (r.equals = fs), r;
1098
1098
  }
1099
- function A(e, t, n = !1) {
1100
- y !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1099
+ function C(e, t, n = !1) {
1100
+ x !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1101
1101
  // to ensure we error if state is set inside an inspect effect
1102
- (!_e || (y.f & fr) !== 0) && Mr() && (y.f & (H | Ze | Bn | fr)) !== 0 && (ue === null || !Tt.call(ue, e)) && Zi();
1103
- let r = n ? Ve(t) : t;
1104
- return fn(e, r);
1102
+ (!_e || (x.f & _r) !== 0) && Dr() && (x.f & (W | tt | Gn | _r)) !== 0 && (fe === null || !Pt.call(fe, e)) && is();
1103
+ let r = n ? Ge(t) : t;
1104
+ return hn(e, r);
1105
1105
  }
1106
- function fn(e, t) {
1106
+ function hn(e, t) {
1107
1107
  if (!e.equals(t)) {
1108
1108
  var n = e.v;
1109
- Ge ? Xe.set(e, t) : Xe.set(e, n), e.v = t;
1110
- var r = Pe.ensure();
1111
- if (r.capture(e, n), (e.f & H) !== 0) {
1109
+ et ? Ze.set(e, t) : Ze.set(e, n), e.v = t;
1110
+ var r = je.ensure();
1111
+ if (r.capture(e, n), (e.f & W) !== 0) {
1112
1112
  const i = (
1113
1113
  /** @type {Derived} */
1114
1114
  e
1115
1115
  );
1116
- (e.f & F) !== 0 && Zn(i), Un(i);
1116
+ (e.f & Y) !== 0 && er(i), Jn(i);
1117
1117
  }
1118
- e.wv = li(), Xr(e, F), E !== null && (E.f & z) !== 0 && (E.f & (Se | Ke)) === 0 && (ne === null ? Rs([e]) : ne.push(e)), !r.is_fork && zn.size > 0 && !Br && bs();
1118
+ e.wv = di(), Jr(e, Y), S !== null && (S.f & H) !== 0 && (S.f & (Ce | nt)) === 0 && (re === null ? Hs([e]) : re.push(e)), !r.is_fork && Wn.size > 0 && !Zr && ks();
1119
1119
  }
1120
1120
  return t;
1121
1121
  }
1122
- function bs() {
1123
- Br = !1;
1124
- for (const e of zn)
1125
- (e.f & z) !== 0 && D(e, pe), Gt(e) && Rt(e);
1126
- zn.clear();
1122
+ function ks() {
1123
+ Zr = !1;
1124
+ for (const e of Wn)
1125
+ (e.f & H) !== 0 && z(e, ge), Qt(e) && Ot(e);
1126
+ Wn.clear();
1127
1127
  }
1128
- function zt(e) {
1129
- A(e, e.v + 1);
1128
+ function Wt(e) {
1129
+ C(e, e.v + 1);
1130
1130
  }
1131
- function Xr(e, t) {
1131
+ function Jr(e, t) {
1132
1132
  var n = e.reactions;
1133
1133
  if (n !== null)
1134
1134
  for (var r = n.length, i = 0; i < r; i++) {
1135
- var s = n[i], o = s.f, u = (o & F) === 0;
1136
- if (u && D(s, t), (o & H) !== 0) {
1135
+ var s = n[i], o = s.f, u = (o & Y) === 0;
1136
+ if (u && z(s, t), (o & W) !== 0) {
1137
1137
  var l = (
1138
1138
  /** @type {Derived} */
1139
1139
  s
1140
1140
  );
1141
- ve?.delete(l), (o & dt) === 0 && (o & le && (s.f |= dt), Xr(l, pe));
1142
- } else u && ((o & Ze) !== 0 && ke !== null && ke.add(
1141
+ pe?.delete(l), (o & _t) === 0 && (o & ae && (s.f |= _t), Jr(l, ge));
1142
+ } else u && ((o & tt) !== 0 && Ne !== null && Ne.add(
1143
1143
  /** @type {Effect} */
1144
1144
  s
1145
- ), xe(
1145
+ ), Se(
1146
1146
  /** @type {Effect} */
1147
1147
  s
1148
1148
  ));
1149
1149
  }
1150
1150
  }
1151
- function Ve(e) {
1152
- if (typeof e != "object" || e === null || Cn in e)
1151
+ function Ge(e) {
1152
+ if (typeof e != "object" || e === null || Mn in e)
1153
1153
  return e;
1154
- const t = Ir(e);
1155
- if (t !== Li && t !== Pi)
1154
+ const t = Rr(e);
1155
+ if (t !== Yi && t !== Wi)
1156
1156
  return e;
1157
- var n = /* @__PURE__ */ new Map(), r = Cr(e), i = /* @__PURE__ */ Y(0), s = at, o = (u) => {
1158
- if (at === s)
1157
+ var n = /* @__PURE__ */ new Map(), r = Nr(e), i = /* @__PURE__ */ F(0), s = dt, o = (u) => {
1158
+ if (dt === s)
1159
1159
  return u();
1160
- var l = y, f = at;
1161
- fe(null), vr(s);
1160
+ var l = x, f = dt;
1161
+ ce(null), yr(s);
1162
1162
  var d = u();
1163
- return fe(l), vr(f), d;
1163
+ return ce(l), yr(f), d;
1164
1164
  };
1165
- return r && n.set("length", /* @__PURE__ */ Y(
1165
+ return r && n.set("length", /* @__PURE__ */ F(
1166
1166
  /** @type {any[]} */
1167
1167
  e.length
1168
1168
  )), new Proxy(
@@ -1170,34 +1170,34 @@ function Ve(e) {
1170
1170
  e,
1171
1171
  {
1172
1172
  defineProperty(u, l, f) {
1173
- (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Ui();
1173
+ (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && ns();
1174
1174
  var d = n.get(l);
1175
1175
  return d === void 0 ? o(() => {
1176
- var c = /* @__PURE__ */ Y(f.value);
1176
+ var c = /* @__PURE__ */ F(f.value);
1177
1177
  return n.set(l, c), c;
1178
- }) : A(d, f.value, !0), !0;
1178
+ }) : C(d, f.value, !0), !0;
1179
1179
  },
1180
1180
  deleteProperty(u, l) {
1181
1181
  var f = n.get(l);
1182
1182
  if (f === void 0) {
1183
1183
  if (l in u) {
1184
- const d = o(() => /* @__PURE__ */ Y(O));
1185
- n.set(l, d), zt(i);
1184
+ const d = o(() => /* @__PURE__ */ F(j));
1185
+ n.set(l, d), Wt(i);
1186
1186
  }
1187
1187
  } else
1188
- A(f, O), zt(i);
1188
+ C(f, j), Wt(i);
1189
1189
  return !0;
1190
1190
  },
1191
1191
  get(u, l, f) {
1192
- if (l === Cn)
1192
+ if (l === Mn)
1193
1193
  return e;
1194
1194
  var d = n.get(l), c = l in u;
1195
- if (d === void 0 && (!c || pt(u, l)?.writable) && (d = o(() => {
1196
- var _ = Ve(c ? u[l] : O), h = /* @__PURE__ */ Y(_);
1195
+ if (d === void 0 && (!c || bt(u, l)?.writable) && (d = o(() => {
1196
+ var _ = Ge(c ? u[l] : j), h = /* @__PURE__ */ F(_);
1197
1197
  return h;
1198
1198
  }), n.set(l, d)), d !== void 0) {
1199
- var v = x(d);
1200
- return v === O ? void 0 : v;
1199
+ var v = w(d);
1200
+ return v === j ? void 0 : v;
1201
1201
  }
1202
1202
  return Reflect.get(u, l, f);
1203
1203
  },
@@ -1205,10 +1205,10 @@ function Ve(e) {
1205
1205
  var f = Reflect.getOwnPropertyDescriptor(u, l);
1206
1206
  if (f && "value" in f) {
1207
1207
  var d = n.get(l);
1208
- d && (f.value = x(d));
1208
+ d && (f.value = w(d));
1209
1209
  } else if (f === void 0) {
1210
1210
  var c = n.get(l), v = c?.v;
1211
- if (c !== void 0 && v !== O)
1211
+ if (c !== void 0 && v !== j)
1212
1212
  return {
1213
1213
  enumerable: !0,
1214
1214
  configurable: !0,
@@ -1219,16 +1219,16 @@ function Ve(e) {
1219
1219
  return f;
1220
1220
  },
1221
1221
  has(u, l) {
1222
- if (l === Cn)
1222
+ if (l === Mn)
1223
1223
  return !0;
1224
- var f = n.get(l), d = f !== void 0 && f.v !== O || Reflect.has(u, l);
1225
- if (f !== void 0 || E !== null && (!d || pt(u, l)?.writable)) {
1224
+ var f = n.get(l), d = f !== void 0 && f.v !== j || Reflect.has(u, l);
1225
+ if (f !== void 0 || S !== null && (!d || bt(u, l)?.writable)) {
1226
1226
  f === void 0 && (f = o(() => {
1227
- var v = d ? Ve(u[l]) : O, _ = /* @__PURE__ */ Y(v);
1227
+ var v = d ? Ge(u[l]) : j, _ = /* @__PURE__ */ F(v);
1228
1228
  return _;
1229
1229
  }), n.set(l, f));
1230
- var c = x(f);
1231
- if (c === O)
1230
+ var c = w(f);
1231
+ if (c === j)
1232
1232
  return !1;
1233
1233
  }
1234
1234
  return d;
@@ -1239,167 +1239,167 @@ function Ve(e) {
1239
1239
  for (var _ = f; _ < /** @type {Source<number>} */
1240
1240
  c.v; _ += 1) {
1241
1241
  var h = n.get(_ + "");
1242
- h !== void 0 ? A(h, O) : _ in u && (h = o(() => /* @__PURE__ */ Y(O)), n.set(_ + "", h));
1242
+ h !== void 0 ? C(h, j) : _ in u && (h = o(() => /* @__PURE__ */ F(j)), n.set(_ + "", h));
1243
1243
  }
1244
1244
  if (c === void 0)
1245
- (!v || pt(u, l)?.writable) && (c = o(() => /* @__PURE__ */ Y(void 0)), A(c, Ve(f)), n.set(l, c));
1245
+ (!v || bt(u, l)?.writable) && (c = o(() => /* @__PURE__ */ F(void 0)), C(c, Ge(f)), n.set(l, c));
1246
1246
  else {
1247
- v = c.v !== O;
1248
- var w = o(() => Ve(f));
1249
- A(c, w);
1247
+ v = c.v !== j;
1248
+ var b = o(() => Ge(f));
1249
+ C(c, b);
1250
1250
  }
1251
- var p = Reflect.getOwnPropertyDescriptor(u, l);
1252
- if (p?.set && p.set.call(d, f), !v) {
1251
+ var g = Reflect.getOwnPropertyDescriptor(u, l);
1252
+ if (g?.set && g.set.call(d, f), !v) {
1253
1253
  if (r && typeof l == "string") {
1254
- var S = (
1254
+ var E = (
1255
1255
  /** @type {Source<number>} */
1256
1256
  n.get("length")
1257
- ), j = Number(l);
1258
- Number.isInteger(j) && j >= S.v && A(S, j + 1);
1257
+ ), D = Number(l);
1258
+ Number.isInteger(D) && D >= E.v && C(E, D + 1);
1259
1259
  }
1260
- zt(i);
1260
+ Wt(i);
1261
1261
  }
1262
1262
  return !0;
1263
1263
  },
1264
1264
  ownKeys(u) {
1265
- x(i);
1265
+ w(i);
1266
1266
  var l = Reflect.ownKeys(u).filter((c) => {
1267
1267
  var v = n.get(c);
1268
- return v === void 0 || v.v !== O;
1268
+ return v === void 0 || v.v !== j;
1269
1269
  });
1270
1270
  for (var [f, d] of n)
1271
- d.v !== O && !(f in u) && l.push(f);
1271
+ d.v !== j && !(f in u) && l.push(f);
1272
1272
  return l;
1273
1273
  },
1274
1274
  setPrototypeOf() {
1275
- Gi();
1275
+ rs();
1276
1276
  }
1277
1277
  }
1278
1278
  );
1279
1279
  }
1280
- var dr, qr, Ur, Gr;
1281
- function Fn() {
1282
- if (dr === void 0) {
1283
- dr = window, qr = /Firefox/.test(navigator.userAgent);
1280
+ var mr, Qr, ei, ti;
1281
+ function Vn() {
1282
+ if (mr === void 0) {
1283
+ mr = window, Qr = /Firefox/.test(navigator.userAgent);
1284
1284
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
1285
- Ur = pt(t, "firstChild").get, Gr = pt(t, "nextSibling").get, ur(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), ur(n) && (n.__t = void 0);
1285
+ ei = bt(t, "firstChild").get, ti = bt(t, "nextSibling").get, pr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), pr(n) && (n.__t = void 0);
1286
1286
  }
1287
1287
  }
1288
- function qe(e = "") {
1288
+ function Je(e = "") {
1289
1289
  return document.createTextNode(e);
1290
1290
  }
1291
1291
  // @__NO_SIDE_EFFECTS__
1292
- function Ue(e) {
1292
+ function Qe(e) {
1293
1293
  return (
1294
1294
  /** @type {TemplateNode | null} */
1295
- Ur.call(e)
1295
+ ei.call(e)
1296
1296
  );
1297
1297
  }
1298
1298
  // @__NO_SIDE_EFFECTS__
1299
- function De(e) {
1299
+ function Fe(e) {
1300
1300
  return (
1301
1301
  /** @type {TemplateNode | null} */
1302
- Gr.call(e)
1302
+ ti.call(e)
1303
1303
  );
1304
1304
  }
1305
- function se(e, t) {
1306
- if (!I)
1307
- return /* @__PURE__ */ Ue(e);
1308
- var n = /* @__PURE__ */ Ue(C);
1305
+ function oe(e, t) {
1306
+ if (!M)
1307
+ return /* @__PURE__ */ Qe(e);
1308
+ var n = /* @__PURE__ */ Qe(I);
1309
1309
  if (n === null)
1310
- n = C.appendChild(qe());
1311
- else if (t && n.nodeType !== _n) {
1312
- var r = qe();
1313
- return n?.before(r), ge(r), r;
1310
+ n = I.appendChild(Je());
1311
+ else if (t && n.nodeType !== mn) {
1312
+ var r = Je();
1313
+ return n?.before(r), me(r), r;
1314
1314
  }
1315
- return t && Qn(
1315
+ return t && rr(
1316
1316
  /** @type {Text} */
1317
1317
  n
1318
- ), ge(n), n;
1318
+ ), me(n), n;
1319
1319
  }
1320
- function Kn(e, t = !1) {
1321
- if (!I) {
1322
- var n = /* @__PURE__ */ Ue(e);
1323
- return n instanceof Comment && n.data === "" ? /* @__PURE__ */ De(n) : n;
1320
+ function tr(e, t = !1) {
1321
+ if (!M) {
1322
+ var n = /* @__PURE__ */ Qe(e);
1323
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Fe(n) : n;
1324
1324
  }
1325
1325
  if (t) {
1326
- if (C?.nodeType !== _n) {
1327
- var r = qe();
1328
- return C?.before(r), ge(r), r;
1326
+ if (I?.nodeType !== mn) {
1327
+ var r = Je();
1328
+ return I?.before(r), me(r), r;
1329
1329
  }
1330
- Qn(
1330
+ rr(
1331
1331
  /** @type {Text} */
1332
- C
1332
+ I
1333
1333
  );
1334
1334
  }
1335
- return C;
1335
+ return I;
1336
1336
  }
1337
- function Re(e, t = 1, n = !1) {
1338
- let r = I ? C : e;
1337
+ function De(e, t = 1, n = !1) {
1338
+ let r = M ? I : e;
1339
1339
  for (var i; t--; )
1340
1340
  i = r, r = /** @type {TemplateNode} */
1341
- /* @__PURE__ */ De(r);
1342
- if (!I)
1341
+ /* @__PURE__ */ Fe(r);
1342
+ if (!M)
1343
1343
  return r;
1344
1344
  if (n) {
1345
- if (r?.nodeType !== _n) {
1346
- var s = qe();
1347
- return r === null ? i?.after(s) : r.before(s), ge(s), s;
1345
+ if (r?.nodeType !== mn) {
1346
+ var s = Je();
1347
+ return r === null ? i?.after(s) : r.before(s), me(s), s;
1348
1348
  }
1349
- Qn(
1349
+ rr(
1350
1350
  /** @type {Text} */
1351
1351
  r
1352
1352
  );
1353
1353
  }
1354
- return ge(r), r;
1354
+ return me(r), r;
1355
1355
  }
1356
- function ys(e) {
1356
+ function Ts(e) {
1357
1357
  e.textContent = "";
1358
1358
  }
1359
- function $s() {
1359
+ function Ms() {
1360
1360
  return !1;
1361
1361
  }
1362
- function Jn(e, t, n) {
1362
+ function nr(e, t, n) {
1363
1363
  return (
1364
1364
  /** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
1365
- document.createElementNS(Sr, e, void 0)
1365
+ document.createElementNS(Ar, e, void 0)
1366
1366
  );
1367
1367
  }
1368
- function Qn(e) {
1368
+ function rr(e) {
1369
1369
  if (
1370
1370
  /** @type {string} */
1371
1371
  e.nodeValue.length < 65536
1372
1372
  )
1373
1373
  return;
1374
1374
  let t = e.nextSibling;
1375
- for (; t !== null && t.nodeType === _n; )
1375
+ for (; t !== null && t.nodeType === mn; )
1376
1376
  t.remove(), e.nodeValue += /** @type {string} */
1377
1377
  t.nodeValue, t = e.nextSibling;
1378
1378
  }
1379
- function Zr(e) {
1380
- var t = y, n = E;
1381
- fe(null), Ee(null);
1379
+ function ni(e) {
1380
+ var t = x, n = S;
1381
+ ce(null), Ee(null);
1382
1382
  try {
1383
1383
  return e();
1384
1384
  } finally {
1385
- fe(t), Ee(n);
1385
+ ce(t), Ee(n);
1386
1386
  }
1387
1387
  }
1388
- function xs(e) {
1389
- E === null && (y === null && Bi(), Vi()), Ge && Wi();
1388
+ function As(e) {
1389
+ S === null && (x === null && Qi(), Ji()), et && Zi();
1390
1390
  }
1391
- function Es(e, t) {
1391
+ function Ns(e, t) {
1392
1392
  var n = t.last;
1393
1393
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1394
1394
  }
1395
- function Ce(e, t) {
1396
- var n = E;
1397
- n !== null && (n.f & ae) !== 0 && (e |= ae);
1395
+ function Ie(e, t) {
1396
+ var n = S;
1397
+ n !== null && (n.f & ue) !== 0 && (e |= ue);
1398
1398
  var r = {
1399
- ctx: W,
1399
+ ctx: B,
1400
1400
  deps: null,
1401
1401
  nodes: null,
1402
- f: e | F | le,
1402
+ f: e | Y | ae,
1403
1403
  first: null,
1404
1404
  fn: t,
1405
1405
  last: null,
@@ -1411,147 +1411,147 @@ function Ce(e, t) {
1411
1411
  wv: 0,
1412
1412
  ac: null
1413
1413
  }, i = r;
1414
- if ((e & Lt) !== 0)
1415
- Nt !== null ? Nt.push(r) : xe(r);
1414
+ if ((e & jt) !== 0)
1415
+ Dt !== null ? Dt.push(r) : Se(r);
1416
1416
  else if (t !== null) {
1417
1417
  try {
1418
- Rt(r);
1418
+ Ot(r);
1419
1419
  } catch (o) {
1420
- throw q(r), o;
1420
+ throw K(r), o;
1421
1421
  }
1422
1422
  i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
1423
- (i.f & vt) === 0 && (i = i.first, (e & Ze) !== 0 && (e & ct) !== 0 && i !== null && (i.f |= ct));
1423
+ (i.f & mt) === 0 && (i = i.first, (e & tt) !== 0 && (e & pt) !== 0 && i !== null && (i.f |= pt));
1424
1424
  }
1425
- if (i !== null && (i.parent = n, n !== null && Es(i, n), y !== null && (y.f & H) !== 0 && (e & Ke) === 0)) {
1425
+ if (i !== null && (i.parent = n, n !== null && Ns(i, n), x !== null && (x.f & W) !== 0 && (e & nt) === 0)) {
1426
1426
  var s = (
1427
1427
  /** @type {Derived} */
1428
- y
1428
+ x
1429
1429
  );
1430
1430
  (s.effects ?? (s.effects = [])).push(i);
1431
1431
  }
1432
1432
  return r;
1433
1433
  }
1434
- function er() {
1435
- return y !== null && !_e;
1434
+ function ir() {
1435
+ return x !== null && !_e;
1436
1436
  }
1437
- function Ss(e) {
1438
- const t = Ce(At, null);
1439
- return D(t, z), t.teardown = e, t;
1437
+ function Rs(e) {
1438
+ const t = Ie(Lt, null);
1439
+ return z(t, H), t.teardown = e, t;
1440
1440
  }
1441
- function Kr(e) {
1442
- xs();
1441
+ function sr(e) {
1442
+ As();
1443
1443
  var t = (
1444
1444
  /** @type {Effect} */
1445
- E.f
1446
- ), n = !y && (t & Se) !== 0 && (t & ht) === 0;
1445
+ S.f
1446
+ ), n = !x && (t & Ce) !== 0 && (t & gt) === 0;
1447
1447
  if (n) {
1448
1448
  var r = (
1449
1449
  /** @type {ComponentContext} */
1450
- W
1450
+ B
1451
1451
  );
1452
1452
  (r.e ?? (r.e = [])).push(e);
1453
1453
  } else
1454
- return Jr(e);
1454
+ return ri(e);
1455
1455
  }
1456
- function Jr(e) {
1457
- return Ce(Lt | Oi, e);
1456
+ function ri(e) {
1457
+ return Ie(jt | Xi, e);
1458
1458
  }
1459
- function Cs(e) {
1460
- Pe.ensure();
1461
- const t = Ce(Ke | vt, e);
1459
+ function Ps(e) {
1460
+ je.ensure();
1461
+ const t = Ie(nt | mt, e);
1462
1462
  return () => {
1463
- q(t);
1463
+ K(t);
1464
1464
  };
1465
1465
  }
1466
- function Is(e) {
1467
- Pe.ensure();
1468
- const t = Ce(Ke | vt, e);
1466
+ function Ls(e) {
1467
+ je.ensure();
1468
+ const t = Ie(nt | mt, e);
1469
1469
  return (n = {}) => new Promise((r) => {
1470
- n.outro ? Ft(t, () => {
1471
- q(t), r(void 0);
1472
- }) : (q(t), r(void 0));
1470
+ n.outro ? Vt(t, () => {
1471
+ K(t), r(void 0);
1472
+ }) : (K(t), r(void 0));
1473
1473
  });
1474
1474
  }
1475
- function ks(e) {
1476
- return Ce(Lt, e);
1475
+ function zs(e) {
1476
+ return Ie(jt, e);
1477
1477
  }
1478
- function Ts(e) {
1479
- return Ce(Bn | vt, e);
1478
+ function Ds(e) {
1479
+ return Ie(Gn | mt, e);
1480
1480
  }
1481
- function Qr(e, t = 0) {
1482
- return Ce(At | t, e);
1481
+ function ii(e, t = 0) {
1482
+ return Ie(Lt | t, e);
1483
1483
  }
1484
- function Ht(e, t = [], n = [], r = []) {
1485
- ds(r, t, n, (i) => {
1486
- Ce(At, () => e(...i.map(x)));
1484
+ function Bt(e, t = [], n = [], r = []) {
1485
+ ys(r, t, n, (i) => {
1486
+ Ie(Lt, () => e(...i.map(w)));
1487
1487
  });
1488
1488
  }
1489
- function tr(e, t = 0) {
1490
- var n = Ce(Ze | t, e);
1489
+ function or(e, t = 0) {
1490
+ var n = Ie(tt | t, e);
1491
1491
  return n;
1492
1492
  }
1493
- function Te(e) {
1494
- return Ce(Se | vt, e);
1493
+ function Re(e) {
1494
+ return Ie(Ce | mt, e);
1495
1495
  }
1496
- function ei(e) {
1496
+ function si(e) {
1497
1497
  var t = e.teardown;
1498
1498
  if (t !== null) {
1499
- const n = Ge, r = y;
1500
- hr(!0), fe(null);
1499
+ const n = et, r = x;
1500
+ wr(!0), ce(null);
1501
1501
  try {
1502
1502
  t.call(null);
1503
1503
  } finally {
1504
- hr(n), fe(r);
1504
+ wr(n), ce(r);
1505
1505
  }
1506
1506
  }
1507
1507
  }
1508
- function nr(e, t = !1) {
1508
+ function lr(e, t = !1) {
1509
1509
  var n = e.first;
1510
1510
  for (e.first = e.last = null; n !== null; ) {
1511
1511
  const i = n.ac;
1512
- i !== null && Zr(() => {
1513
- i.abort(et);
1512
+ i !== null && ni(() => {
1513
+ i.abort(it);
1514
1514
  });
1515
1515
  var r = n.next;
1516
- (n.f & Ke) !== 0 ? n.parent = null : q(n, t), n = r;
1516
+ (n.f & nt) !== 0 ? n.parent = null : K(n, t), n = r;
1517
1517
  }
1518
1518
  }
1519
- function As(e) {
1519
+ function Os(e) {
1520
1520
  for (var t = e.first; t !== null; ) {
1521
1521
  var n = t.next;
1522
- (t.f & Se) === 0 && q(t), t = n;
1522
+ (t.f & Ce) === 0 && K(t), t = n;
1523
1523
  }
1524
1524
  }
1525
- function q(e, t = !0) {
1525
+ function K(e, t = !0) {
1526
1526
  var n = !1;
1527
- (t || (e.f & ji) !== 0) && e.nodes !== null && e.nodes.end !== null && (Ms(
1527
+ (t || (e.f & Bi) !== 0) && e.nodes !== null && e.nodes.end !== null && (js(
1528
1528
  e.nodes.start,
1529
1529
  /** @type {TemplateNode} */
1530
1530
  e.nodes.end
1531
- ), n = !0), nr(e, t && !n), Yt(e, 0), D(e, Le);
1531
+ ), n = !0), lr(e, t && !n), Xt(e, 0), z(e, Oe);
1532
1532
  var r = e.nodes && e.nodes.t;
1533
1533
  if (r !== null)
1534
1534
  for (const s of r)
1535
1535
  s.stop();
1536
- ei(e);
1536
+ si(e);
1537
1537
  var i = e.parent;
1538
- i !== null && i.first !== null && ti(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1538
+ i !== null && i.first !== null && oi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1539
1539
  }
1540
- function Ms(e, t) {
1540
+ function js(e, t) {
1541
1541
  for (; e !== null; ) {
1542
- var n = e === t ? null : /* @__PURE__ */ De(e);
1542
+ var n = e === t ? null : /* @__PURE__ */ Fe(e);
1543
1543
  e.remove(), e = n;
1544
1544
  }
1545
1545
  }
1546
- function ti(e) {
1546
+ function oi(e) {
1547
1547
  var t = e.parent, n = e.prev, r = e.next;
1548
1548
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1549
1549
  }
1550
- function Ft(e, t, n = !0) {
1550
+ function Vt(e, t, n = !0) {
1551
1551
  var r = [];
1552
- ni(e, r, !0);
1552
+ li(e, r, !0);
1553
1553
  var i = () => {
1554
- n && q(e), t && t();
1554
+ n && K(e), t && t();
1555
1555
  }, s = r.length;
1556
1556
  if (s > 0) {
1557
1557
  var o = () => --s || i();
@@ -1560,31 +1560,31 @@ function Ft(e, t, n = !0) {
1560
1560
  } else
1561
1561
  i();
1562
1562
  }
1563
- function ni(e, t, n) {
1564
- if ((e.f & ae) === 0) {
1565
- e.f ^= ae;
1563
+ function li(e, t, n) {
1564
+ if ((e.f & ue) === 0) {
1565
+ e.f ^= ue;
1566
1566
  var r = e.nodes && e.nodes.t;
1567
1567
  if (r !== null)
1568
1568
  for (const u of r)
1569
1569
  (u.is_global || n) && t.push(u);
1570
1570
  for (var i = e.first; i !== null; ) {
1571
- var s = i.next, o = (i.f & ct) !== 0 || // If this is a branch effect without a block effect parent,
1571
+ var s = i.next, o = (i.f & pt) !== 0 || // If this is a branch effect without a block effect parent,
1572
1572
  // it means the parent block effect was pruned. In that case,
1573
1573
  // transparency information was transferred to the branch effect.
1574
- (i.f & Se) !== 0 && (e.f & Ze) !== 0;
1575
- ni(i, t, o ? n : !1), i = s;
1574
+ (i.f & Ce) !== 0 && (e.f & tt) !== 0;
1575
+ li(i, t, o ? n : !1), i = s;
1576
1576
  }
1577
1577
  }
1578
1578
  }
1579
- function Ns(e) {
1580
- ri(e, !0);
1579
+ function Fs(e) {
1580
+ ai(e, !0);
1581
1581
  }
1582
- function ri(e, t) {
1583
- if ((e.f & ae) !== 0) {
1584
- e.f ^= ae;
1582
+ function ai(e, t) {
1583
+ if ((e.f & ue) !== 0) {
1584
+ e.f ^= ue;
1585
1585
  for (var n = e.first; n !== null; ) {
1586
- var r = n.next, i = (n.f & ct) !== 0 || (n.f & Se) !== 0;
1587
- ri(n, i ? t : !1), n = r;
1586
+ var r = n.next, i = (n.f & pt) !== 0 || (n.f & Ce) !== 0;
1587
+ ai(n, i ? t : !1), n = r;
1588
1588
  }
1589
1589
  var s = e.nodes && e.nodes.t;
1590
1590
  if (s !== null)
@@ -1592,233 +1592,233 @@ function ri(e, t) {
1592
1592
  (o.is_global || t) && o.in();
1593
1593
  }
1594
1594
  }
1595
- function ii(e, t) {
1595
+ function ui(e, t) {
1596
1596
  if (e.nodes)
1597
1597
  for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
1598
- var i = n === r ? null : /* @__PURE__ */ De(n);
1598
+ var i = n === r ? null : /* @__PURE__ */ Fe(n);
1599
1599
  t.append(n), n = i;
1600
1600
  }
1601
1601
  }
1602
- let on = !1, Ge = !1;
1603
- function hr(e) {
1604
- Ge = e;
1602
+ let un = !1, et = !1;
1603
+ function wr(e) {
1604
+ et = e;
1605
1605
  }
1606
- let y = null, _e = !1;
1607
- function fe(e) {
1608
- y = e;
1606
+ let x = null, _e = !1;
1607
+ function ce(e) {
1608
+ x = e;
1609
1609
  }
1610
- let E = null;
1610
+ let S = null;
1611
1611
  function Ee(e) {
1612
- E = e;
1612
+ S = e;
1613
1613
  }
1614
- let ue = null;
1615
- function si(e) {
1616
- y !== null && (ue === null ? ue = [e] : ue.push(e));
1614
+ let fe = null;
1615
+ function fi(e) {
1616
+ x !== null && (fe === null ? fe = [e] : fe.push(e));
1617
1617
  }
1618
- let X = null, Z = 0, ne = null;
1619
- function Rs(e) {
1620
- ne = e;
1618
+ let G = null, Q = 0, re = null;
1619
+ function Hs(e) {
1620
+ re = e;
1621
1621
  }
1622
- let oi = 1, nt = 0, at = nt;
1623
- function vr(e) {
1624
- at = e;
1622
+ let ci = 1, ot = 0, dt = ot;
1623
+ function yr(e) {
1624
+ dt = e;
1625
1625
  }
1626
- function li() {
1627
- return ++oi;
1626
+ function di() {
1627
+ return ++ci;
1628
1628
  }
1629
- function Gt(e) {
1629
+ function Qt(e) {
1630
1630
  var t = e.f;
1631
- if ((t & F) !== 0)
1631
+ if ((t & Y) !== 0)
1632
1632
  return !0;
1633
- if (t & H && (e.f &= ~dt), (t & pe) !== 0) {
1633
+ if (t & W && (e.f &= ~_t), (t & ge) !== 0) {
1634
1634
  for (var n = (
1635
1635
  /** @type {Value[]} */
1636
1636
  e.deps
1637
1637
  ), r = n.length, i = 0; i < r; i++) {
1638
1638
  var s = n[i];
1639
- if (Gt(
1639
+ if (Qt(
1640
1640
  /** @type {Derived} */
1641
1641
  s
1642
- ) && Wr(
1642
+ ) && Gr(
1643
1643
  /** @type {Derived} */
1644
1644
  s
1645
1645
  ), s.wv > e.wv)
1646
1646
  return !0;
1647
1647
  }
1648
- (t & le) !== 0 && // During time traveling we don't want to reset the status so that
1648
+ (t & ae) !== 0 && // During time traveling we don't want to reset the status so that
1649
1649
  // traversal of the graph in the other batches still happens
1650
- ve === null && D(e, z);
1650
+ pe === null && z(e, H);
1651
1651
  }
1652
1652
  return !1;
1653
1653
  }
1654
- function ai(e, t, n = !0) {
1654
+ function hi(e, t, n = !0) {
1655
1655
  var r = e.reactions;
1656
- if (r !== null && !(ue !== null && Tt.call(ue, e)))
1656
+ if (r !== null && !(fe !== null && Pt.call(fe, e)))
1657
1657
  for (var i = 0; i < r.length; i++) {
1658
1658
  var s = r[i];
1659
- (s.f & H) !== 0 ? ai(
1659
+ (s.f & W) !== 0 ? hi(
1660
1660
  /** @type {Derived} */
1661
1661
  s,
1662
1662
  t,
1663
1663
  !1
1664
- ) : t === s && (n ? D(s, F) : (s.f & z) !== 0 && D(s, pe), xe(
1664
+ ) : t === s && (n ? z(s, Y) : (s.f & H) !== 0 && z(s, ge), Se(
1665
1665
  /** @type {Effect} */
1666
1666
  s
1667
1667
  ));
1668
1668
  }
1669
1669
  }
1670
- function ui(e) {
1671
- var w;
1672
- var t = X, n = Z, r = ne, i = y, s = ue, o = W, u = _e, l = at, f = e.f;
1673
- X = /** @type {null | Value[]} */
1674
- null, Z = 0, ne = null, y = (f & (Se | Ke)) === 0 ? e : null, ue = null, Mt(e.ctx), _e = !1, at = ++nt, e.ac !== null && (Zr(() => {
1675
- e.ac.abort(et);
1670
+ function vi(e) {
1671
+ var b;
1672
+ var t = G, n = Q, r = re, i = x, s = fe, o = B, u = _e, l = dt, f = e.f;
1673
+ G = /** @type {null | Value[]} */
1674
+ null, Q = 0, re = null, x = (f & (Ce | nt)) === 0 ? e : null, fe = null, zt(e.ctx), _e = !1, dt = ++ot, e.ac !== null && (ni(() => {
1675
+ e.ac.abort(it);
1676
1676
  }), e.ac = null);
1677
1677
  try {
1678
- e.f |= Mn;
1678
+ e.f |= Ln;
1679
1679
  var d = (
1680
1680
  /** @type {Function} */
1681
1681
  e.fn
1682
1682
  ), c = d();
1683
- e.f |= ht;
1684
- var v = e.deps, _ = L?.is_fork;
1685
- if (X !== null) {
1683
+ e.f |= gt;
1684
+ var v = e.deps, _ = P?.is_fork;
1685
+ if (G !== null) {
1686
1686
  var h;
1687
- if (_ || Yt(e, Z), v !== null && Z > 0)
1688
- for (v.length = Z + X.length, h = 0; h < X.length; h++)
1689
- v[Z + h] = X[h];
1687
+ if (_ || Xt(e, Q), v !== null && Q > 0)
1688
+ for (v.length = Q + G.length, h = 0; h < G.length; h++)
1689
+ v[Q + h] = G[h];
1690
1690
  else
1691
- e.deps = v = X;
1692
- if (er() && (e.f & le) !== 0)
1693
- for (h = Z; h < v.length; h++)
1694
- ((w = v[h]).reactions ?? (w.reactions = [])).push(e);
1695
- } else !_ && v !== null && Z < v.length && (Yt(e, Z), v.length = Z);
1696
- if (Mr() && ne !== null && !_e && v !== null && (e.f & (H | pe | F)) === 0)
1691
+ e.deps = v = G;
1692
+ if (ir() && (e.f & ae) !== 0)
1693
+ for (h = Q; h < v.length; h++)
1694
+ ((b = v[h]).reactions ?? (b.reactions = [])).push(e);
1695
+ } else !_ && v !== null && Q < v.length && (Xt(e, Q), v.length = Q);
1696
+ if (Dr() && re !== null && !_e && v !== null && (e.f & (W | ge | Y)) === 0)
1697
1697
  for (h = 0; h < /** @type {Source[]} */
1698
- ne.length; h++)
1699
- ai(
1700
- ne[h],
1698
+ re.length; h++)
1699
+ hi(
1700
+ re[h],
1701
1701
  /** @type {Effect} */
1702
1702
  e
1703
1703
  );
1704
1704
  if (i !== null && i !== e) {
1705
- if (nt++, i.deps !== null)
1706
- for (let p = 0; p < n; p += 1)
1707
- i.deps[p].rv = nt;
1705
+ if (ot++, i.deps !== null)
1706
+ for (let g = 0; g < n; g += 1)
1707
+ i.deps[g].rv = ot;
1708
1708
  if (t !== null)
1709
- for (const p of t)
1710
- p.rv = nt;
1711
- ne !== null && (r === null ? r = ne : r.push(.../** @type {Source[]} */
1712
- ne));
1709
+ for (const g of t)
1710
+ g.rv = ot;
1711
+ re !== null && (r === null ? r = re : r.push(.../** @type {Source[]} */
1712
+ re));
1713
1713
  }
1714
- return (e.f & Be) !== 0 && (e.f ^= Be), c;
1715
- } catch (p) {
1716
- return Rr(p);
1714
+ return (e.f & Ke) !== 0 && (e.f ^= Ke), c;
1715
+ } catch (g) {
1716
+ return jr(g);
1717
1717
  } finally {
1718
- e.f ^= Mn, X = t, Z = n, ne = r, y = i, ue = s, Mt(o), _e = u, at = l;
1718
+ e.f ^= Ln, G = t, Q = n, re = r, x = i, fe = s, zt(o), _e = u, dt = l;
1719
1719
  }
1720
1720
  }
1721
- function Ls(e, t) {
1721
+ function Ys(e, t) {
1722
1722
  let n = t.reactions;
1723
1723
  if (n !== null) {
1724
- var r = Mi.call(n, e);
1724
+ var r = ji.call(n, e);
1725
1725
  if (r !== -1) {
1726
1726
  var i = n.length - 1;
1727
1727
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
1728
1728
  }
1729
1729
  }
1730
- if (n === null && (t.f & H) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1730
+ if (n === null && (t.f & W) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1731
1731
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1732
1732
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1733
- (X === null || !Tt.call(X, t))) {
1733
+ (G === null || !Pt.call(G, t))) {
1734
1734
  var s = (
1735
1735
  /** @type {Derived} */
1736
1736
  t
1737
1737
  );
1738
- (s.f & le) !== 0 && (s.f ^= le, s.f &= ~dt), Un(s), ms(s), Yt(s, 0);
1738
+ (s.f & ae) !== 0 && (s.f ^= ae, s.f &= ~_t), Jn(s), Cs(s), Xt(s, 0);
1739
1739
  }
1740
1740
  }
1741
- function Yt(e, t) {
1741
+ function Xt(e, t) {
1742
1742
  var n = e.deps;
1743
1743
  if (n !== null)
1744
1744
  for (var r = t; r < n.length; r++)
1745
- Ls(e, n[r]);
1745
+ Ys(e, n[r]);
1746
1746
  }
1747
- function Rt(e) {
1747
+ function Ot(e) {
1748
1748
  var t = e.f;
1749
- if ((t & Le) === 0) {
1750
- D(e, z);
1751
- var n = E, r = on;
1752
- E = e, on = !0;
1749
+ if ((t & Oe) === 0) {
1750
+ z(e, H);
1751
+ var n = S, r = un;
1752
+ S = e, un = !0;
1753
1753
  try {
1754
- (t & (Ze | Vn)) !== 0 ? As(e) : nr(e), ei(e);
1755
- var i = ui(e);
1756
- e.teardown = typeof i == "function" ? i : null, e.wv = oi;
1754
+ (t & (tt | Un)) !== 0 ? Os(e) : lr(e), si(e);
1755
+ var i = vi(e);
1756
+ e.teardown = typeof i == "function" ? i : null, e.wv = ci;
1757
1757
  var s;
1758
- Tn && rs && (e.f & F) !== 0 && e.deps;
1758
+ Rn && cs && (e.f & Y) !== 0 && e.deps;
1759
1759
  } finally {
1760
- on = r, E = n;
1760
+ un = r, S = n;
1761
1761
  }
1762
1762
  }
1763
1763
  }
1764
- function x(e) {
1765
- var t = e.f, n = (t & H) !== 0;
1766
- if (y !== null && !_e) {
1767
- var r = E !== null && (E.f & Le) !== 0;
1768
- if (!r && (ue === null || !Tt.call(ue, e))) {
1769
- var i = y.deps;
1770
- if ((y.f & Mn) !== 0)
1771
- e.rv < nt && (e.rv = nt, X === null && i !== null && i[Z] === e ? Z++ : X === null ? X = [e] : X.push(e));
1764
+ function w(e) {
1765
+ var t = e.f, n = (t & W) !== 0;
1766
+ if (x !== null && !_e) {
1767
+ var r = S !== null && (S.f & Oe) !== 0;
1768
+ if (!r && (fe === null || !Pt.call(fe, e))) {
1769
+ var i = x.deps;
1770
+ if ((x.f & Ln) !== 0)
1771
+ e.rv < ot && (e.rv = ot, G === null && i !== null && i[Q] === e ? Q++ : G === null ? G = [e] : G.push(e));
1772
1772
  else {
1773
- (y.deps ?? (y.deps = [])).push(e);
1773
+ (x.deps ?? (x.deps = [])).push(e);
1774
1774
  var s = e.reactions;
1775
- s === null ? e.reactions = [y] : Tt.call(s, y) || s.push(y);
1775
+ s === null ? e.reactions = [x] : Pt.call(s, x) || s.push(x);
1776
1776
  }
1777
1777
  }
1778
1778
  }
1779
- if (Ge && Xe.has(e))
1780
- return Xe.get(e);
1779
+ if (et && Ze.has(e))
1780
+ return Ze.get(e);
1781
1781
  if (n) {
1782
1782
  var o = (
1783
1783
  /** @type {Derived} */
1784
1784
  e
1785
1785
  );
1786
- if (Ge) {
1786
+ if (et) {
1787
1787
  var u = o.v;
1788
- return ((o.f & z) === 0 && o.reactions !== null || ci(o)) && (u = Zn(o)), Xe.set(o, u), u;
1788
+ return ((o.f & H) === 0 && o.reactions !== null || _i(o)) && (u = er(o)), Ze.set(o, u), u;
1789
1789
  }
1790
- var l = (o.f & le) === 0 && !_e && y !== null && (on || (y.f & le) !== 0), f = (o.f & ht) === 0;
1791
- Gt(o) && (l && (o.f |= le), Wr(o)), l && !f && (Vr(o), fi(o));
1790
+ var l = (o.f & ae) === 0 && !_e && x !== null && (un || (x.f & ae) !== 0), f = (o.f & gt) === 0;
1791
+ Qt(o) && (l && (o.f |= ae), Gr(o)), l && !f && (Kr(o), pi(o));
1792
1792
  }
1793
- if (ve?.has(e))
1794
- return ve.get(e);
1795
- if ((e.f & Be) !== 0)
1793
+ if (pe?.has(e))
1794
+ return pe.get(e);
1795
+ if ((e.f & Ke) !== 0)
1796
1796
  throw e.v;
1797
1797
  return e.v;
1798
1798
  }
1799
- function fi(e) {
1800
- if (e.f |= le, e.deps !== null)
1799
+ function pi(e) {
1800
+ if (e.f |= ae, e.deps !== null)
1801
1801
  for (const t of e.deps)
1802
- (t.reactions ?? (t.reactions = [])).push(e), (t.f & H) !== 0 && (t.f & le) === 0 && (Vr(
1802
+ (t.reactions ?? (t.reactions = [])).push(e), (t.f & W) !== 0 && (t.f & ae) === 0 && (Kr(
1803
1803
  /** @type {Derived} */
1804
1804
  t
1805
- ), fi(
1805
+ ), pi(
1806
1806
  /** @type {Derived} */
1807
1807
  t
1808
1808
  ));
1809
1809
  }
1810
- function ci(e) {
1811
- if (e.v === O) return !0;
1810
+ function _i(e) {
1811
+ if (e.v === j) return !0;
1812
1812
  if (e.deps === null) return !1;
1813
1813
  for (const t of e.deps)
1814
- if (Xe.has(t) || (t.f & H) !== 0 && ci(
1814
+ if (Ze.has(t) || (t.f & W) !== 0 && _i(
1815
1815
  /** @type {Derived} */
1816
1816
  t
1817
1817
  ))
1818
1818
  return !0;
1819
1819
  return !1;
1820
1820
  }
1821
- function mt(e) {
1821
+ function $t(e) {
1822
1822
  var t = _e;
1823
1823
  try {
1824
1824
  return _e = !0, e();
@@ -1826,18 +1826,18 @@ function mt(e) {
1826
1826
  _e = t;
1827
1827
  }
1828
1828
  }
1829
- const rt = /* @__PURE__ */ Symbol("events"), di = /* @__PURE__ */ new Set(), Hn = /* @__PURE__ */ new Set();
1830
- function cn(e, t, n) {
1831
- (t[rt] ?? (t[rt] = {}))[e] = n;
1829
+ const lt = /* @__PURE__ */ Symbol("events"), gi = /* @__PURE__ */ new Set(), Bn = /* @__PURE__ */ new Set();
1830
+ function vn(e, t, n) {
1831
+ (t[lt] ?? (t[lt] = {}))[e] = n;
1832
1832
  }
1833
- function rr(e) {
1833
+ function ar(e) {
1834
1834
  for (var t = 0; t < e.length; t++)
1835
- di.add(e[t]);
1836
- for (var n of Hn)
1835
+ gi.add(e[t]);
1836
+ for (var n of Bn)
1837
1837
  n(e);
1838
1838
  }
1839
- let _r = null;
1840
- function pr(e) {
1839
+ let br = null;
1840
+ function xr(e) {
1841
1841
  var t = this, n = (
1842
1842
  /** @type {Node} */
1843
1843
  t.ownerDocument
@@ -1845,13 +1845,13 @@ function pr(e) {
1845
1845
  /** @type {null | Element} */
1846
1846
  i[0] || e.target
1847
1847
  );
1848
- _r = e;
1849
- var o = 0, u = _r === e && e[rt];
1848
+ br = e;
1849
+ var o = 0, u = br === e && e[lt];
1850
1850
  if (u) {
1851
1851
  var l = i.indexOf(u);
1852
1852
  if (l !== -1 && (t === document || t === /** @type {any} */
1853
1853
  window)) {
1854
- e[rt] = t;
1854
+ e[lt] = t;
1855
1855
  return;
1856
1856
  }
1857
1857
  var f = i.indexOf(t);
@@ -1861,128 +1861,128 @@ function pr(e) {
1861
1861
  }
1862
1862
  if (s = /** @type {Element} */
1863
1863
  i[o] || e.target, s !== t) {
1864
- un(e, "currentTarget", {
1864
+ dn(e, "currentTarget", {
1865
1865
  configurable: !0,
1866
1866
  get() {
1867
1867
  return s || n;
1868
1868
  }
1869
1869
  });
1870
- var d = y, c = E;
1871
- fe(null), Ee(null);
1870
+ var d = x, c = S;
1871
+ ce(null), Ee(null);
1872
1872
  try {
1873
1873
  for (var v, _ = []; s !== null; ) {
1874
1874
  var h = s.assignedSlot || s.parentNode || /** @type {any} */
1875
1875
  s.host || null;
1876
1876
  try {
1877
- var w = s[rt]?.[r];
1878
- w != null && (!/** @type {any} */
1877
+ var b = s[lt]?.[r];
1878
+ b != null && (!/** @type {any} */
1879
1879
  s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1880
1880
  // -> the target could not have been disabled because it emits the event in the first place
1881
- e.target === s) && w.call(s, e);
1882
- } catch (p) {
1883
- v ? _.push(p) : v = p;
1881
+ e.target === s) && b.call(s, e);
1882
+ } catch (g) {
1883
+ v ? _.push(g) : v = g;
1884
1884
  }
1885
1885
  if (e.cancelBubble || h === t || h === null)
1886
1886
  break;
1887
1887
  s = h;
1888
1888
  }
1889
1889
  if (v) {
1890
- for (let p of _)
1890
+ for (let g of _)
1891
1891
  queueMicrotask(() => {
1892
- throw p;
1892
+ throw g;
1893
1893
  });
1894
1894
  throw v;
1895
1895
  }
1896
1896
  } finally {
1897
- e[rt] = t, delete e.currentTarget, fe(d), Ee(c);
1897
+ e[lt] = t, delete e.currentTarget, ce(d), Ee(c);
1898
1898
  }
1899
1899
  }
1900
1900
  }
1901
- const Ps = (
1901
+ const Ws = (
1902
1902
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
1903
1903
  globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
1904
1904
  /** @param {string} html */
1905
1905
  createHTML: (e) => e
1906
1906
  })
1907
1907
  );
1908
- function Ds(e) {
1908
+ function Vs(e) {
1909
1909
  return (
1910
1910
  /** @type {string} */
1911
- Ps?.createHTML(e) ?? e
1911
+ Ws?.createHTML(e) ?? e
1912
1912
  );
1913
1913
  }
1914
- function hi(e) {
1915
- var t = Jn("template");
1916
- return t.innerHTML = Ds(e.replaceAll("<!>", "<!---->")), t.content;
1914
+ function mi(e) {
1915
+ var t = nr("template");
1916
+ return t.innerHTML = Vs(e.replaceAll("<!>", "<!---->")), t.content;
1917
1917
  }
1918
- function wt(e, t) {
1918
+ function St(e, t) {
1919
1919
  var n = (
1920
1920
  /** @type {Effect} */
1921
- E
1921
+ S
1922
1922
  );
1923
1923
  n.nodes === null && (n.nodes = { start: e, end: t, a: null, t: null });
1924
1924
  }
1925
1925
  // @__NO_SIDE_EFFECTS__
1926
- function Je(e, t) {
1927
- var n = (t & Ti) !== 0, r = (t & Ai) !== 0, i, s = !e.startsWith("<!>");
1926
+ function rt(e, t) {
1927
+ var n = (t & Di) !== 0, r = (t & Oi) !== 0, i, s = !e.startsWith("<!>");
1928
1928
  return () => {
1929
- if (I)
1930
- return wt(C, null), C;
1931
- i === void 0 && (i = hi(s ? e : "<!>" + e), n || (i = /** @type {TemplateNode} */
1932
- /* @__PURE__ */ Ue(i)));
1929
+ if (M)
1930
+ return St(I, null), I;
1931
+ i === void 0 && (i = mi(s ? e : "<!>" + e), n || (i = /** @type {TemplateNode} */
1932
+ /* @__PURE__ */ Qe(i)));
1933
1933
  var o = (
1934
1934
  /** @type {TemplateNode} */
1935
- r || qr ? document.importNode(i, !0) : i.cloneNode(!0)
1935
+ r || Qr ? document.importNode(i, !0) : i.cloneNode(!0)
1936
1936
  );
1937
1937
  if (n) {
1938
1938
  var u = (
1939
1939
  /** @type {TemplateNode} */
1940
- /* @__PURE__ */ Ue(o)
1940
+ /* @__PURE__ */ Qe(o)
1941
1941
  ), l = (
1942
1942
  /** @type {TemplateNode} */
1943
1943
  o.lastChild
1944
1944
  );
1945
- wt(u, l);
1945
+ St(u, l);
1946
1946
  } else
1947
- wt(o, o);
1947
+ St(o, o);
1948
1948
  return o;
1949
1949
  };
1950
1950
  }
1951
1951
  // @__NO_SIDE_EFFECTS__
1952
- function js(e, t, n = "svg") {
1952
+ function Bs(e, t, n = "svg") {
1953
1953
  var r = !e.startsWith("<!>"), i = `<${n}>${r ? e : "<!>" + e}</${n}>`, s;
1954
1954
  return () => {
1955
- if (I)
1956
- return wt(C, null), C;
1955
+ if (M)
1956
+ return St(I, null), I;
1957
1957
  if (!s) {
1958
1958
  var o = (
1959
1959
  /** @type {DocumentFragment} */
1960
- hi(i)
1960
+ mi(i)
1961
1961
  ), u = (
1962
1962
  /** @type {Element} */
1963
- /* @__PURE__ */ Ue(o)
1963
+ /* @__PURE__ */ Qe(o)
1964
1964
  );
1965
1965
  s = /** @type {Element} */
1966
- /* @__PURE__ */ Ue(u);
1966
+ /* @__PURE__ */ Qe(u);
1967
1967
  }
1968
1968
  var l = (
1969
1969
  /** @type {TemplateNode} */
1970
1970
  s.cloneNode(!0)
1971
1971
  );
1972
- return wt(l, l), l;
1972
+ return St(l, l), l;
1973
1973
  };
1974
1974
  }
1975
1975
  // @__NO_SIDE_EFFECTS__
1976
- function ir(e, t) {
1977
- return /* @__PURE__ */ js(e, t, "svg");
1976
+ function ur(e, t) {
1977
+ return /* @__PURE__ */ Bs(e, t, "svg");
1978
1978
  }
1979
- function oe(e, t) {
1980
- if (I) {
1979
+ function le(e, t) {
1980
+ if (M) {
1981
1981
  var n = (
1982
1982
  /** @type {Effect & { nodes: EffectNodes }} */
1983
- E
1983
+ S
1984
1984
  );
1985
- ((n.f & ht) === 0 || n.nodes.end === null) && (n.nodes.end = C), qn();
1985
+ ((n.f & gt) === 0 || n.nodes.end === null) && (n.nodes.end = I), Zn();
1986
1986
  return;
1987
1987
  }
1988
1988
  e !== null && e.before(
@@ -1990,48 +1990,48 @@ function oe(e, t) {
1990
1990
  t
1991
1991
  );
1992
1992
  }
1993
- const Os = ["touchstart", "touchmove"];
1994
- function zs(e) {
1995
- return Os.includes(e);
1993
+ const Xs = ["touchstart", "touchmove"];
1994
+ function qs(e) {
1995
+ return Xs.includes(e);
1996
1996
  }
1997
- function vi(e, t) {
1997
+ function wi(e, t) {
1998
1998
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1999
1999
  n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = `${n}`);
2000
2000
  }
2001
- function _i(e, t) {
2002
- return pi(e, t);
2001
+ function yi(e, t) {
2002
+ return bi(e, t);
2003
2003
  }
2004
- function Fs(e, t) {
2005
- Fn(), t.intro = t.intro ?? !1;
2006
- const n = t.target, r = I, i = C;
2004
+ function Us(e, t) {
2005
+ Vn(), t.intro = t.intro ?? !1;
2006
+ const n = t.target, r = M, i = I;
2007
2007
  try {
2008
- for (var s = /* @__PURE__ */ Ue(n); s && (s.nodeType !== pn || /** @type {Comment} */
2009
- s.data !== $r); )
2010
- s = /* @__PURE__ */ De(s);
2008
+ for (var s = /* @__PURE__ */ Qe(n); s && (s.nodeType !== wn || /** @type {Comment} */
2009
+ s.data !== kr); )
2010
+ s = /* @__PURE__ */ Fe(s);
2011
2011
  if (!s)
2012
- throw kt;
2013
- _t(!0), ge(
2012
+ throw Rt;
2013
+ yt(!0), me(
2014
2014
  /** @type {Comment} */
2015
2015
  s
2016
2016
  );
2017
- const o = pi(e, { ...t, anchor: s });
2018
- return _t(!1), /** @type {Exports} */
2017
+ const o = bi(e, { ...t, anchor: s });
2018
+ return yt(!1), /** @type {Exports} */
2019
2019
  o;
2020
2020
  } catch (o) {
2021
2021
  if (o instanceof Error && o.message.split(`
2022
2022
  `).some((u) => u.startsWith("https://svelte.dev/e/")))
2023
2023
  throw o;
2024
- return o !== kt && console.warn("Failed to hydrate: ", o), t.recover === !1 && qi(), Fn(), ys(n), _t(!1), _i(e, t);
2024
+ return o !== Rt && console.warn("Failed to hydrate: ", o), t.recover === !1 && ts(), Vn(), Ts(n), yt(!1), yi(e, t);
2025
2025
  } finally {
2026
- _t(r), ge(i);
2026
+ yt(r), me(i);
2027
2027
  }
2028
2028
  }
2029
- const tn = /* @__PURE__ */ new Map();
2030
- function pi(e, { target: t, anchor: n, props: r = {}, events: i, context: s, intro: o = !0, transformError: u }) {
2031
- Fn();
2032
- var l = void 0, f = Is(() => {
2033
- var d = n ?? t.appendChild(qe());
2034
- fs(
2029
+ const sn = /* @__PURE__ */ new Map();
2030
+ function bi(e, { target: t, anchor: n, props: r = {}, events: i, context: s, intro: o = !0, transformError: u }) {
2031
+ Vn();
2032
+ var l = void 0, f = Ls(() => {
2033
+ var d = n ?? t.appendChild(Je());
2034
+ ms(
2035
2035
  /** @type {TemplateNode} */
2036
2036
  d,
2037
2037
  {
@@ -2039,61 +2039,61 @@ function pi(e, { target: t, anchor: n, props: r = {}, events: i, context: s, int
2039
2039
  }
2040
2040
  },
2041
2041
  (_) => {
2042
- Xt({});
2042
+ Kt({});
2043
2043
  var h = (
2044
2044
  /** @type {ComponentContext} */
2045
- W
2045
+ B
2046
2046
  );
2047
- if (s && (h.c = s), i && (r.$$events = i), I && wt(
2047
+ if (s && (h.c = s), i && (r.$$events = i), M && St(
2048
2048
  /** @type {TemplateNode} */
2049
2049
  _,
2050
2050
  null
2051
- ), l = e(_, r) || {}, I && (E.nodes.end = C, C === null || C.nodeType !== pn || /** @type {Comment} */
2052
- C.data !== Er))
2053
- throw gn(), kt;
2054
- qt();
2051
+ ), l = e(_, r) || {}, M && (S.nodes.end = I, I === null || I.nodeType !== wn || /** @type {Comment} */
2052
+ I.data !== Mr))
2053
+ throw yn(), Rt;
2054
+ Zt();
2055
2055
  },
2056
2056
  u
2057
2057
  );
2058
2058
  var c = /* @__PURE__ */ new Set(), v = (_) => {
2059
2059
  for (var h = 0; h < _.length; h++) {
2060
- var w = _[h];
2061
- if (!c.has(w)) {
2062
- c.add(w);
2063
- var p = zs(w);
2064
- for (const G of [t, document]) {
2065
- var S = tn.get(G);
2066
- S === void 0 && (S = /* @__PURE__ */ new Map(), tn.set(G, S));
2067
- var j = S.get(w);
2068
- j === void 0 ? (G.addEventListener(w, pr, { passive: p }), S.set(w, 1)) : S.set(w, j + 1);
2060
+ var b = _[h];
2061
+ if (!c.has(b)) {
2062
+ c.add(b);
2063
+ var g = qs(b);
2064
+ for (const V of [t, document]) {
2065
+ var E = sn.get(V);
2066
+ E === void 0 && (E = /* @__PURE__ */ new Map(), sn.set(V, E));
2067
+ var D = E.get(b);
2068
+ D === void 0 ? (V.addEventListener(b, xr, { passive: g }), E.set(b, 1)) : E.set(b, D + 1);
2069
2069
  }
2070
2070
  }
2071
2071
  }
2072
2072
  };
2073
- return v(Ni(di)), Hn.add(v), () => {
2073
+ return v(Fi(gi)), Bn.add(v), () => {
2074
2074
  for (var _ of c)
2075
- for (const p of [t, document]) {
2075
+ for (const g of [t, document]) {
2076
2076
  var h = (
2077
2077
  /** @type {Map<string, number>} */
2078
- tn.get(p)
2079
- ), w = (
2078
+ sn.get(g)
2079
+ ), b = (
2080
2080
  /** @type {number} */
2081
2081
  h.get(_)
2082
2082
  );
2083
- --w == 0 ? (p.removeEventListener(_, pr), h.delete(_), h.size === 0 && tn.delete(p)) : h.set(_, w);
2083
+ --b == 0 ? (g.removeEventListener(_, xr), h.delete(_), h.size === 0 && sn.delete(g)) : h.set(_, b);
2084
2084
  }
2085
- Hn.delete(v), d !== n && d.parentNode?.removeChild(d);
2085
+ Bn.delete(v), d !== n && d.parentNode?.removeChild(d);
2086
2086
  };
2087
2087
  });
2088
- return Yn.set(l, f), l;
2088
+ return Xn.set(l, f), l;
2089
2089
  }
2090
- let Yn = /* @__PURE__ */ new WeakMap();
2091
- function Hs(e, t) {
2092
- const n = Yn.get(e);
2093
- return n ? (Yn.delete(e), n(t)) : Promise.resolve();
2090
+ let Xn = /* @__PURE__ */ new WeakMap();
2091
+ function Gs(e, t) {
2092
+ const n = Xn.get(e);
2093
+ return n ? (Xn.delete(e), n(t)) : Promise.resolve();
2094
2094
  }
2095
- var he, $e, Q, lt, Vt, Bt, vn;
2096
- class gi {
2095
+ var ve, $e, ne, ct, Ut, Gt, gn;
2096
+ class xi {
2097
2097
  /**
2098
2098
  * @param {TemplateNode} anchor
2099
2099
  * @param {boolean} transition
@@ -2102,7 +2102,7 @@ class gi {
2102
2102
  /** @type {TemplateNode} */
2103
2103
  N(this, "anchor");
2104
2104
  /** @type {Map<Batch, Key>} */
2105
- b(this, he, /* @__PURE__ */ new Map());
2105
+ y(this, ve, /* @__PURE__ */ new Map());
2106
2106
  /**
2107
2107
  * Map of keys to effects that are currently rendered in the DOM.
2108
2108
  * These effects are visible and actively part of the document tree.
@@ -2117,68 +2117,68 @@ class gi {
2117
2117
  * Can result in the entries `true->Effect` and `false->Effect`
2118
2118
  * @type {Map<Key, Effect>}
2119
2119
  */
2120
- b(this, $e, /* @__PURE__ */ new Map());
2120
+ y(this, $e, /* @__PURE__ */ new Map());
2121
2121
  /**
2122
2122
  * Similar to #onscreen with respect to the keys, but contains branches that are not yet
2123
2123
  * in the DOM, because their insertion is deferred.
2124
2124
  * @type {Map<Key, Branch>}
2125
2125
  */
2126
- b(this, Q, /* @__PURE__ */ new Map());
2126
+ y(this, ne, /* @__PURE__ */ new Map());
2127
2127
  /**
2128
2128
  * Keys of effects that are currently outroing
2129
2129
  * @type {Set<Key>}
2130
2130
  */
2131
- b(this, lt, /* @__PURE__ */ new Set());
2131
+ y(this, ct, /* @__PURE__ */ new Set());
2132
2132
  /**
2133
2133
  * Whether to pause (i.e. outro) on change, or destroy immediately.
2134
2134
  * This is necessary for `<svelte:element>`
2135
2135
  */
2136
- b(this, Vt, !0);
2136
+ y(this, Ut, !0);
2137
2137
  /**
2138
2138
  * @param {Batch} batch
2139
2139
  */
2140
- b(this, Bt, (t) => {
2141
- if (a(this, he).has(t)) {
2140
+ y(this, Gt, (t) => {
2141
+ if (a(this, ve).has(t)) {
2142
2142
  var n = (
2143
2143
  /** @type {Key} */
2144
- a(this, he).get(t)
2144
+ a(this, ve).get(t)
2145
2145
  ), r = a(this, $e).get(n);
2146
2146
  if (r)
2147
- Ns(r), a(this, lt).delete(n);
2147
+ Fs(r), a(this, ct).delete(n);
2148
2148
  else {
2149
- var i = a(this, Q).get(n);
2150
- i && (i.effect.f & ae) === 0 && (a(this, $e).set(n, i.effect), a(this, Q).delete(n), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), r = i.effect);
2149
+ var i = a(this, ne).get(n);
2150
+ i && (i.effect.f & ue) === 0 && (a(this, $e).set(n, i.effect), a(this, ne).delete(n), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), r = i.effect);
2151
2151
  }
2152
- for (const [s, o] of a(this, he)) {
2153
- if (a(this, he).delete(s), s === t)
2152
+ for (const [s, o] of a(this, ve)) {
2153
+ if (a(this, ve).delete(s), s === t)
2154
2154
  break;
2155
- const u = a(this, Q).get(o);
2156
- u && (q(u.effect), a(this, Q).delete(o));
2155
+ const u = a(this, ne).get(o);
2156
+ u && (K(u.effect), a(this, ne).delete(o));
2157
2157
  }
2158
2158
  for (const [s, o] of a(this, $e)) {
2159
- if (s === n || a(this, lt).has(s) || (o.f & ae) !== 0) continue;
2159
+ if (s === n || a(this, ct).has(s) || (o.f & ue) !== 0) continue;
2160
2160
  const u = () => {
2161
- if (Array.from(a(this, he).values()).includes(s)) {
2161
+ if (Array.from(a(this, ve).values()).includes(s)) {
2162
2162
  var f = document.createDocumentFragment();
2163
- ii(o, f), f.append(qe()), a(this, Q).set(s, { effect: o, fragment: f });
2163
+ ui(o, f), f.append(Je()), a(this, ne).set(s, { effect: o, fragment: f });
2164
2164
  } else
2165
- q(o);
2166
- a(this, lt).delete(s), a(this, $e).delete(s);
2165
+ K(o);
2166
+ a(this, ct).delete(s), a(this, $e).delete(s);
2167
2167
  };
2168
- a(this, Vt) || !r ? (a(this, lt).add(s), Ft(o, u, !1)) : u();
2168
+ a(this, Ut) || !r ? (a(this, ct).add(s), Vt(o, u, !1)) : u();
2169
2169
  }
2170
2170
  }
2171
2171
  });
2172
2172
  /**
2173
2173
  * @param {Batch} batch
2174
2174
  */
2175
- b(this, vn, (t) => {
2176
- a(this, he).delete(t);
2177
- const n = Array.from(a(this, he).values());
2178
- for (const [r, i] of a(this, Q))
2179
- n.includes(r) || (q(i.effect), a(this, Q).delete(r));
2175
+ y(this, gn, (t) => {
2176
+ a(this, ve).delete(t);
2177
+ const n = Array.from(a(this, ve).values());
2178
+ for (const [r, i] of a(this, ne))
2179
+ n.includes(r) || (K(i.effect), a(this, ne).delete(r));
2180
2180
  });
2181
- this.anchor = t, m(this, Vt, n);
2181
+ this.anchor = t, m(this, Ut, n);
2182
2182
  }
2183
2183
  /**
2184
2184
  *
@@ -2188,56 +2188,56 @@ class gi {
2188
2188
  ensure(t, n) {
2189
2189
  var r = (
2190
2190
  /** @type {Batch} */
2191
- L
2192
- ), i = $s();
2193
- if (n && !a(this, $e).has(t) && !a(this, Q).has(t))
2191
+ P
2192
+ ), i = Ms();
2193
+ if (n && !a(this, $e).has(t) && !a(this, ne).has(t))
2194
2194
  if (i) {
2195
- var s = document.createDocumentFragment(), o = qe();
2196
- s.append(o), a(this, Q).set(t, {
2197
- effect: Te(() => n(o)),
2195
+ var s = document.createDocumentFragment(), o = Je();
2196
+ s.append(o), a(this, ne).set(t, {
2197
+ effect: Re(() => n(o)),
2198
2198
  fragment: s
2199
2199
  });
2200
2200
  } else
2201
2201
  a(this, $e).set(
2202
2202
  t,
2203
- Te(() => n(this.anchor))
2203
+ Re(() => n(this.anchor))
2204
2204
  );
2205
- if (a(this, he).set(r, t), i) {
2205
+ if (a(this, ve).set(r, t), i) {
2206
2206
  for (const [u, l] of a(this, $e))
2207
2207
  u === t ? r.unskip_effect(l) : r.skip_effect(l);
2208
- for (const [u, l] of a(this, Q))
2208
+ for (const [u, l] of a(this, ne))
2209
2209
  u === t ? r.unskip_effect(l.effect) : r.skip_effect(l.effect);
2210
- r.oncommit(a(this, Bt)), r.ondiscard(a(this, vn));
2210
+ r.oncommit(a(this, Gt)), r.ondiscard(a(this, gn));
2211
2211
  } else
2212
- I && (this.anchor = C), a(this, Bt).call(this, r);
2212
+ M && (this.anchor = I), a(this, Gt).call(this, r);
2213
2213
  }
2214
2214
  }
2215
- he = new WeakMap(), $e = new WeakMap(), Q = new WeakMap(), lt = new WeakMap(), Vt = new WeakMap(), Bt = new WeakMap(), vn = new WeakMap();
2216
- function In(e, t, ...n) {
2217
- var r = new gi(e);
2218
- tr(() => {
2215
+ ve = new WeakMap(), $e = new WeakMap(), ne = new WeakMap(), ct = new WeakMap(), Ut = new WeakMap(), Gt = new WeakMap(), gn = new WeakMap();
2216
+ function An(e, t, ...n) {
2217
+ var r = new xi(e);
2218
+ or(() => {
2219
2219
  const i = t() ?? null;
2220
2220
  r.ensure(i, i && ((s) => i(s, ...n)));
2221
- }, ct);
2221
+ }, pt);
2222
2222
  }
2223
- function mi(e) {
2224
- W === null && Xn(), Kr(() => {
2225
- const t = mt(e);
2223
+ function $i(e) {
2224
+ B === null && Kn(), sr(() => {
2225
+ const t = $t(e);
2226
2226
  if (typeof t == "function") return (
2227
2227
  /** @type {() => void} */
2228
2228
  t
2229
2229
  );
2230
2230
  });
2231
2231
  }
2232
- function Ys(e) {
2233
- W === null && Xn(), mi(() => () => mt(e));
2232
+ function Ks(e) {
2233
+ B === null && Kn(), $i(() => () => $t(e));
2234
2234
  }
2235
- function Ws(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2235
+ function Zs(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2236
2236
  return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
2237
2237
  }
2238
- function Vs() {
2239
- const e = W;
2240
- return e === null && Xn(), (t, n, r) => {
2238
+ function Js() {
2239
+ const e = B;
2240
+ return e === null && Kn(), (t, n, r) => {
2241
2241
  const i = (
2242
2242
  /** @type {Record<string, Function | Function[]>} */
2243
2243
  e.s.$$events?.[
@@ -2246,7 +2246,7 @@ function Vs() {
2246
2246
  ]
2247
2247
  );
2248
2248
  if (i) {
2249
- const s = Cr(i) ? i.slice() : [i], o = Ws(
2249
+ const s = Nr(i) ? i.slice() : [i], o = Zs(
2250
2250
  /** @type {string} */
2251
2251
  t,
2252
2252
  n,
@@ -2259,33 +2259,33 @@ function Vs() {
2259
2259
  return !0;
2260
2260
  };
2261
2261
  }
2262
- function dn(e, t, n = !1) {
2262
+ function pn(e, t, n = !1) {
2263
2263
  var r;
2264
- I && (r = C, qn());
2265
- var i = new gi(e), s = n ? ct : 0;
2264
+ M && (r = I, Zn());
2265
+ var i = new xi(e), s = n ? pt : 0;
2266
2266
  function o(u, l) {
2267
- if (I) {
2268
- var f = es(
2267
+ if (M) {
2268
+ var f = as(
2269
2269
  /** @type {TemplateNode} */
2270
2270
  r
2271
2271
  );
2272
2272
  if (u !== parseInt(f.substring(1))) {
2273
- var d = Tr();
2274
- ge(d), i.anchor = d, _t(!1), i.ensure(u, l), _t(!0);
2273
+ var d = Lr();
2274
+ me(d), i.anchor = d, yt(!1), i.ensure(u, l), yt(!0);
2275
2275
  return;
2276
2276
  }
2277
2277
  }
2278
2278
  i.ensure(u, l);
2279
2279
  }
2280
- tr(() => {
2280
+ or(() => {
2281
2281
  var u = !1;
2282
2282
  t((l, f = 0) => {
2283
2283
  u = !0, o(f, l);
2284
2284
  }), u || o(-1, null);
2285
2285
  }, s);
2286
2286
  }
2287
- function wn(e, t) {
2288
- ks(() => {
2287
+ function xn(e, t) {
2288
+ zs(() => {
2289
2289
  var n = e.getRootNode(), r = (
2290
2290
  /** @type {ShadowRoot} */
2291
2291
  n.host ? (
@@ -2298,79 +2298,79 @@ function wn(e, t) {
2298
2298
  )
2299
2299
  );
2300
2300
  if (!r.querySelector("#" + t.hash)) {
2301
- const i = Jn("style");
2301
+ const i = nr("style");
2302
2302
  i.id = t.hash, i.textContent = t.code, r.appendChild(i);
2303
2303
  }
2304
2304
  });
2305
2305
  }
2306
- function wi(e) {
2306
+ function Si(e) {
2307
2307
  var t, n, r = "";
2308
2308
  if (typeof e == "string" || typeof e == "number") r += e;
2309
2309
  else if (typeof e == "object") if (Array.isArray(e)) {
2310
2310
  var i = e.length;
2311
- for (t = 0; t < i; t++) e[t] && (n = wi(e[t])) && (r && (r += " "), r += n);
2311
+ for (t = 0; t < i; t++) e[t] && (n = Si(e[t])) && (r && (r += " "), r += n);
2312
2312
  } else for (n in e) e[n] && (r && (r += " "), r += n);
2313
2313
  return r;
2314
2314
  }
2315
- function Bs() {
2316
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = wi(e)) && (r && (r += " "), r += t);
2315
+ function Qs() {
2316
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Si(e)) && (r && (r += " "), r += t);
2317
2317
  return r;
2318
2318
  }
2319
- function ut(e) {
2320
- return typeof e == "object" ? Bs(e) : e ?? "";
2319
+ function ht(e) {
2320
+ return typeof e == "object" ? Qs(e) : e ?? "";
2321
2321
  }
2322
- function Xs(e, t, n) {
2322
+ function eo(e, t, n) {
2323
2323
  var r = e == null ? "" : "" + e;
2324
2324
  return t && (r = r ? r + " " + t : t), r === "" ? null : r;
2325
2325
  }
2326
- function qs(e, t) {
2326
+ function to(e, t) {
2327
2327
  return e == null ? null : String(e);
2328
2328
  }
2329
- function ft(e, t, n, r, i, s) {
2329
+ function vt(e, t, n, r, i, s) {
2330
2330
  var o = e.__className;
2331
- if (I || o !== n || o === void 0) {
2332
- var u = Xs(n, r);
2333
- (!I || u !== e.getAttribute("class")) && (u == null ? e.removeAttribute("class") : t ? e.className = u : e.setAttribute("class", u)), e.__className = n;
2331
+ if (M || o !== n || o === void 0) {
2332
+ var u = eo(n, r);
2333
+ (!M || u !== e.getAttribute("class")) && (u == null ? e.removeAttribute("class") : t ? e.className = u : e.setAttribute("class", u)), e.__className = n;
2334
2334
  }
2335
2335
  return s;
2336
2336
  }
2337
- function Us(e, t, n, r) {
2337
+ function no(e, t, n, r) {
2338
2338
  var i = e.__style;
2339
- if (I || i !== t) {
2340
- var s = qs(t);
2341
- (!I || s !== e.getAttribute("style")) && (s == null ? e.removeAttribute("style") : e.style.cssText = s), e.__style = t;
2339
+ if (M || i !== t) {
2340
+ var s = to(t);
2341
+ (!M || s !== e.getAttribute("style")) && (s == null ? e.removeAttribute("style") : e.style.cssText = s), e.__style = t;
2342
2342
  }
2343
2343
  return r;
2344
2344
  }
2345
- const Gs = /* @__PURE__ */ Symbol("is custom element"), Zs = /* @__PURE__ */ Symbol("is html"), Ks = Hi ? "link" : "LINK";
2346
- function Wn(e, t, n, r) {
2347
- var i = Js(e);
2348
- I && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Ks) || i[t] !== (i[t] = n) && (t === "loading" && (e[Fi] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Qs(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2345
+ const ro = /* @__PURE__ */ Symbol("is custom element"), io = /* @__PURE__ */ Symbol("is html"), so = Gi ? "link" : "LINK";
2346
+ function qn(e, t, n, r) {
2347
+ var i = oo(e);
2348
+ M && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === so) || i[t] !== (i[t] = n) && (t === "loading" && (e[Ui] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && lo(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2349
2349
  }
2350
- function Js(e) {
2350
+ function oo(e) {
2351
2351
  return (
2352
2352
  /** @type {Record<string | symbol, unknown>} **/
2353
2353
  // @ts-expect-error
2354
2354
  e.__attributes ?? (e.__attributes = {
2355
- [Gs]: e.nodeName.includes("-"),
2356
- [Zs]: e.namespaceURI === Sr
2355
+ [ro]: e.nodeName.includes("-"),
2356
+ [io]: e.namespaceURI === Ar
2357
2357
  })
2358
2358
  );
2359
2359
  }
2360
- var gr = /* @__PURE__ */ new Map();
2361
- function Qs(e) {
2362
- var t = e.getAttribute("is") || e.nodeName, n = gr.get(t);
2360
+ var $r = /* @__PURE__ */ new Map();
2361
+ function lo(e) {
2362
+ var t = e.getAttribute("is") || e.nodeName, n = $r.get(t);
2363
2363
  if (n) return n;
2364
- gr.set(t, n = []);
2364
+ $r.set(t, n = []);
2365
2365
  for (var r, i = e, s = Element.prototype; s !== i; ) {
2366
- r = Ri(i);
2366
+ r = Hi(i);
2367
2367
  for (var o in r)
2368
2368
  r[o].set && n.push(o);
2369
- i = Ir(i);
2369
+ i = Rr(i);
2370
2370
  }
2371
2371
  return n;
2372
2372
  }
2373
- function M(e, t, n, r) {
2373
+ function T(e, t, n, r) {
2374
2374
  var i = (
2375
2375
  /** @type {V} */
2376
2376
  r
@@ -2386,26 +2386,26 @@ function M(e, t, n, r) {
2386
2386
  );
2387
2387
  return v === void 0 ? o() : (s = !0, v);
2388
2388
  };
2389
- var f = !1, d = /* @__PURE__ */ Gn(() => (f = !1, l())), c = (
2389
+ var f = !1, d = /* @__PURE__ */ Qn(() => (f = !1, l())), c = (
2390
2390
  /** @type {Effect} */
2391
- E
2391
+ S
2392
2392
  );
2393
2393
  return (
2394
2394
  /** @type {() => V} */
2395
2395
  (function(v, _) {
2396
2396
  if (arguments.length > 0) {
2397
- const h = _ ? x(d) : v;
2398
- return A(d, h), f = !0, i !== void 0 && (i = h), v;
2397
+ const h = _ ? w(d) : v;
2398
+ return C(d, h), f = !0, i !== void 0 && (i = h), v;
2399
2399
  }
2400
- return Ge && f || (c.f & Le) !== 0 ? d.v : x(d);
2400
+ return et && f || (c.f & Oe) !== 0 ? d.v : w(d);
2401
2401
  })
2402
2402
  );
2403
2403
  }
2404
- function eo(e) {
2405
- return new to(e);
2404
+ function ao(e) {
2405
+ return new uo(e);
2406
2406
  }
2407
- var Ne, re;
2408
- class to {
2407
+ var ze, ie;
2408
+ class uo {
2409
2409
  /**
2410
2410
  * @param {ComponentConstructorOptions & {
2411
2411
  * component: any;
@@ -2413,28 +2413,28 @@ class to {
2413
2413
  */
2414
2414
  constructor(t) {
2415
2415
  /** @type {any} */
2416
- b(this, Ne);
2416
+ y(this, ze);
2417
2417
  /** @type {Record<string, any>} */
2418
- b(this, re);
2418
+ y(this, ie);
2419
2419
  var n = /* @__PURE__ */ new Map(), r = (s, o) => {
2420
- var u = /* @__PURE__ */ ws(o, !1, !1);
2420
+ var u = /* @__PURE__ */ Is(o, !1, !1);
2421
2421
  return n.set(s, u), u;
2422
2422
  };
2423
2423
  const i = new Proxy(
2424
2424
  { ...t.props || {}, $$events: {} },
2425
2425
  {
2426
2426
  get(s, o) {
2427
- return x(n.get(o) ?? r(o, Reflect.get(s, o)));
2427
+ return w(n.get(o) ?? r(o, Reflect.get(s, o)));
2428
2428
  },
2429
2429
  has(s, o) {
2430
- return o === zi ? !0 : (x(n.get(o) ?? r(o, Reflect.get(s, o))), Reflect.has(s, o));
2430
+ return o === qi ? !0 : (w(n.get(o) ?? r(o, Reflect.get(s, o))), Reflect.has(s, o));
2431
2431
  },
2432
2432
  set(s, o, u) {
2433
- return A(n.get(o) ?? r(o, u), u), Reflect.set(s, o, u);
2433
+ return C(n.get(o) ?? r(o, u), u), Reflect.set(s, o, u);
2434
2434
  }
2435
2435
  }
2436
2436
  );
2437
- m(this, re, (t.hydrate ? Fs : _i)(t.component, {
2437
+ m(this, ie, (t.hydrate ? Us : yi)(t.component, {
2438
2438
  target: t.target,
2439
2439
  anchor: t.anchor,
2440
2440
  props: i,
@@ -2442,28 +2442,28 @@ class to {
2442
2442
  intro: t.intro ?? !1,
2443
2443
  recover: t.recover,
2444
2444
  transformError: t.transformError
2445
- })), (!t?.props?.$$host || t.sync === !1) && T(), m(this, Ne, i.$$events);
2446
- for (const s of Object.keys(a(this, re)))
2447
- s === "$set" || s === "$destroy" || s === "$on" || un(this, s, {
2445
+ })), (!t?.props?.$$host || t.sync === !1) && k(), m(this, ze, i.$$events);
2446
+ for (const s of Object.keys(a(this, ie)))
2447
+ s === "$set" || s === "$destroy" || s === "$on" || dn(this, s, {
2448
2448
  get() {
2449
- return a(this, re)[s];
2449
+ return a(this, ie)[s];
2450
2450
  },
2451
2451
  /** @param {any} value */
2452
2452
  set(o) {
2453
- a(this, re)[s] = o;
2453
+ a(this, ie)[s] = o;
2454
2454
  },
2455
2455
  enumerable: !0
2456
2456
  });
2457
- a(this, re).$set = /** @param {Record<string, any>} next */
2457
+ a(this, ie).$set = /** @param {Record<string, any>} next */
2458
2458
  (s) => {
2459
2459
  Object.assign(i, s);
2460
- }, a(this, re).$destroy = () => {
2461
- Hs(a(this, re));
2460
+ }, a(this, ie).$destroy = () => {
2461
+ Gs(a(this, ie));
2462
2462
  };
2463
2463
  }
2464
2464
  /** @param {Record<string, any>} props */
2465
2465
  $set(t) {
2466
- a(this, re).$set(t);
2466
+ a(this, ie).$set(t);
2467
2467
  }
2468
2468
  /**
2469
2469
  * @param {string} event
@@ -2471,22 +2471,22 @@ class to {
2471
2471
  * @returns {any}
2472
2472
  */
2473
2473
  $on(t, n) {
2474
- a(this, Ne)[t] = a(this, Ne)[t] || [];
2474
+ a(this, ze)[t] = a(this, ze)[t] || [];
2475
2475
  const r = (...i) => n.call(this, ...i);
2476
- return a(this, Ne)[t].push(r), () => {
2477
- a(this, Ne)[t] = a(this, Ne)[t].filter(
2476
+ return a(this, ze)[t].push(r), () => {
2477
+ a(this, ze)[t] = a(this, ze)[t].filter(
2478
2478
  /** @param {any} fn */
2479
2479
  (i) => i !== r
2480
2480
  );
2481
2481
  };
2482
2482
  }
2483
2483
  $destroy() {
2484
- a(this, re).$destroy();
2484
+ a(this, ie).$destroy();
2485
2485
  }
2486
2486
  }
2487
- Ne = new WeakMap(), re = new WeakMap();
2488
- let bi;
2489
- typeof HTMLElement == "function" && (bi = class extends HTMLElement {
2487
+ ze = new WeakMap(), ie = new WeakMap();
2488
+ let Ei;
2489
+ typeof HTMLElement == "function" && (Ei = class extends HTMLElement {
2490
2490
  /**
2491
2491
  * @param {*} $$componentCtor
2492
2492
  * @param {*} $$slots
@@ -2545,22 +2545,22 @@ typeof HTMLElement == "function" && (bi = class extends HTMLElement {
2545
2545
  if (this.$$cn = !0, !this.$$c) {
2546
2546
  let t = function(i) {
2547
2547
  return (s) => {
2548
- const o = Jn("slot");
2549
- i !== "default" && (o.name = i), oe(s, o);
2548
+ const o = nr("slot");
2549
+ i !== "default" && (o.name = i), le(s, o);
2550
2550
  };
2551
2551
  };
2552
2552
  if (await Promise.resolve(), !this.$$cn || this.$$c)
2553
2553
  return;
2554
- const n = {}, r = no(this);
2554
+ const n = {}, r = fo(this);
2555
2555
  for (const i of this.$$s)
2556
2556
  i in r && (i === "default" && !this.$$d.children ? (this.$$d.children = t(i), n.default = !0) : n[i] = t(i));
2557
2557
  for (const i of this.attributes) {
2558
2558
  const s = this.$$g_p(i.name);
2559
- s in this.$$d || (this.$$d[s] = ln(s, i.value, this.$$p_d, "toProp"));
2559
+ s in this.$$d || (this.$$d[s] = fn(s, i.value, this.$$p_d, "toProp"));
2560
2560
  }
2561
2561
  for (const i in this.$$p_d)
2562
2562
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
2563
- this.$$c = eo({
2563
+ this.$$c = ao({
2564
2564
  component: this.$$ctor,
2565
2565
  target: this.$$shadowRoot || this,
2566
2566
  props: {
@@ -2568,13 +2568,13 @@ typeof HTMLElement == "function" && (bi = class extends HTMLElement {
2568
2568
  $$slots: n,
2569
2569
  $$host: this
2570
2570
  }
2571
- }), this.$$me = Cs(() => {
2572
- Qr(() => {
2571
+ }), this.$$me = Ps(() => {
2572
+ ii(() => {
2573
2573
  this.$$r = !0;
2574
- for (const i of an(this.$$c)) {
2574
+ for (const i of cn(this.$$c)) {
2575
2575
  if (!this.$$p_d[i]?.reflect) continue;
2576
2576
  this.$$d[i] = this.$$c[i];
2577
- const s = ln(
2577
+ const s = fn(
2578
2578
  i,
2579
2579
  this.$$d[i],
2580
2580
  this.$$p_d,
@@ -2601,7 +2601,7 @@ typeof HTMLElement == "function" && (bi = class extends HTMLElement {
2601
2601
  * @param {string} newValue
2602
2602
  */
2603
2603
  attributeChangedCallback(t, n, r) {
2604
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ln(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
2604
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = fn(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
2605
2605
  }
2606
2606
  disconnectedCallback() {
2607
2607
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2612,12 +2612,12 @@ typeof HTMLElement == "function" && (bi = class extends HTMLElement {
2612
2612
  * @param {string} attribute_name
2613
2613
  */
2614
2614
  $$g_p(t) {
2615
- return an(this.$$p_d).find(
2615
+ return cn(this.$$p_d).find(
2616
2616
  (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
2617
2617
  ) || t;
2618
2618
  }
2619
2619
  });
2620
- function ln(e, t, n, r) {
2620
+ function fn(e, t, n, r) {
2621
2621
  const i = n[e]?.type;
2622
2622
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
2623
2623
  return t;
@@ -2647,7 +2647,7 @@ function ln(e, t, n, r) {
2647
2647
  return t;
2648
2648
  }
2649
2649
  }
2650
- function no(e) {
2650
+ function fo(e) {
2651
2651
  const t = {};
2652
2652
  return e.childNodes.forEach((n) => {
2653
2653
  t[
@@ -2656,33 +2656,33 @@ function no(e) {
2656
2656
  ] = !0;
2657
2657
  }), t;
2658
2658
  }
2659
- function bn(e, t, n, r, i, s) {
2660
- let o = class extends bi {
2659
+ function $n(e, t, n, r, i, s) {
2660
+ let o = class extends Ei {
2661
2661
  constructor() {
2662
2662
  super(e, n, i), this.$$p_d = t;
2663
2663
  }
2664
2664
  static get observedAttributes() {
2665
- return an(t).map(
2665
+ return cn(t).map(
2666
2666
  (u) => (t[u].attribute || u).toLowerCase()
2667
2667
  );
2668
2668
  }
2669
2669
  };
2670
- return an(t).forEach((u) => {
2671
- un(o.prototype, u, {
2670
+ return cn(t).forEach((u) => {
2671
+ dn(o.prototype, u, {
2672
2672
  get() {
2673
2673
  return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
2674
2674
  },
2675
2675
  set(l) {
2676
- l = ln(u, l, t), this.$$d[u] = l;
2676
+ l = fn(u, l, t), this.$$d[u] = l;
2677
2677
  var f = this.$$c;
2678
2678
  if (f) {
2679
- var d = pt(f, u)?.get;
2679
+ var d = bt(f, u)?.get;
2680
2680
  d ? f[u] = l : f.$set({ [u]: l });
2681
2681
  }
2682
2682
  }
2683
2683
  });
2684
2684
  }), r.forEach((u) => {
2685
- un(o.prototype, u, {
2685
+ dn(o.prototype, u, {
2686
2686
  get() {
2687
2687
  return this.$$c?.[u];
2688
2688
  }
@@ -2690,107 +2690,107 @@ function bn(e, t, n, r, i, s) {
2690
2690
  }), e.element = /** @type {any} */
2691
2691
  o, o;
2692
2692
  }
2693
- var ro = /* @__PURE__ */ Je('<div role="button" tabindex="0" title="Resize window" aria-label="Resize window"><svg viewBox="0 0 16 16" fill="currentColor"><path d="M16 16V14H14V16H16Z"></path><path d="M16 11V9H14V11H16Z"></path><path d="M13 16V14H11V16H13Z"></path></svg></div>');
2694
- const io = {
2693
+ var co = /* @__PURE__ */ rt('<div role="button" tabindex="0" title="Resize window" aria-label="Resize window"><svg viewBox="0 0 16 16" fill="currentColor"><path d="M16 16V14H14V16H16Z"></path><path d="M16 11V9H14V11H16Z"></path><path d="M13 16V14H11V16H13Z"></path></svg></div>');
2694
+ const ho = {
2695
2695
  hash: "svelte-kjvr2a",
2696
2696
  code: ".pie-panel-resize-handle.svelte-kjvr2a {position:absolute;right:0;bottom:0;width:12px;height:12px;display:inline-flex;align-items:center;justify-content:center;cursor:nwse-resize;opacity:0.82;z-index:2;}.pie-panel-resize-handle.svelte-kjvr2a:hover {opacity:1;}.pie-panel-resize-icon.svelte-kjvr2a {width:100%;height:100%;color:color-mix(in srgb, var(--color-base-content, #334155) 30%, transparent);}"
2697
2697
  };
2698
- function yi(e, t) {
2699
- Xt(t, !0), wn(e, io);
2700
- let n = M(t, "onPointerDown"), r = M(t, "handleClass", 7, "pie-panel-resize-handle"), i = M(t, "iconClass", 7, "pie-panel-resize-icon");
2698
+ function Ci(e, t) {
2699
+ Kt(t, !0), xn(e, ho);
2700
+ let n = T(t, "onPointerDown"), r = T(t, "handleClass", 7, "pie-panel-resize-handle"), i = T(t, "iconClass", 7, "pie-panel-resize-icon");
2701
2701
  var s = {
2702
2702
  get onPointerDown() {
2703
2703
  return n();
2704
2704
  },
2705
2705
  set onPointerDown(l) {
2706
- n(l), T();
2706
+ n(l), k();
2707
2707
  },
2708
2708
  get handleClass() {
2709
2709
  return r();
2710
2710
  },
2711
2711
  set handleClass(l = "pie-panel-resize-handle") {
2712
- r(l), T();
2712
+ r(l), k();
2713
2713
  },
2714
2714
  get iconClass() {
2715
2715
  return i();
2716
2716
  },
2717
2717
  set iconClass(l = "pie-panel-resize-icon") {
2718
- i(l), T();
2718
+ i(l), k();
2719
2719
  }
2720
- }, o = ro(), u = se(o);
2721
- return ie(o), Ht(() => {
2722
- ft(o, 1, ut(r()), "svelte-kjvr2a"), ft(u, 0, ut(i()), "svelte-kjvr2a");
2723
- }), cn("mousedown", o, function(...l) {
2720
+ }, o = co(), u = oe(o);
2721
+ return se(o), Bt(() => {
2722
+ vt(o, 1, ht(r()), "svelte-kjvr2a"), vt(u, 0, ht(i()), "svelte-kjvr2a");
2723
+ }), vn("mousedown", o, function(...l) {
2724
2724
  n()?.apply(this, l);
2725
- }), oe(e, o), qt(s);
2725
+ }), le(e, o), Zt(s);
2726
2726
  }
2727
- rr(["mousedown"]);
2728
- bn(yi, { onPointerDown: {}, handleClass: {}, iconClass: {} }, [], [], { mode: "open" });
2729
- var so = /* @__PURE__ */ ir('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"></path></svg>'), oo = /* @__PURE__ */ ir('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>'), lo = /* @__PURE__ */ Je('<button><!></button> <button title="Close" aria-label="Close panel"><svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>', 1);
2730
- const ao = {
2727
+ ar(["mousedown"]);
2728
+ $n(Ci, { onPointerDown: {}, handleClass: {}, iconClass: {} }, [], [], { mode: "open" });
2729
+ var vo = /* @__PURE__ */ ur('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 15l7-7 7 7"></path></svg>'), po = /* @__PURE__ */ ur('<svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>'), _o = /* @__PURE__ */ rt('<button><!></button> <button title="Close" aria-label="Close panel"><svg xmlns="http://www.w3.org/2000/svg" class="pie-window-controls__icon svelte-dx0z4a" width="12" height="12" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>', 1);
2730
+ const go = {
2731
2731
  hash: "svelte-dx0z4a",
2732
2732
  code: ".pie-window-controls__button.svelte-dx0z4a {display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;padding:0;border:1px solid rgba(148, 163, 184, 0.7);border-radius:9999px;background:rgba(255, 255, 255, 0.65);color:#334155;cursor:pointer;}.pie-window-controls__button.svelte-dx0z4a:hover {background:rgba(241, 245, 249, 0.95);}.pie-window-controls__button.svelte-dx0z4a:focus-visible {outline:2px solid #3b82f6;outline-offset:1px;}.pie-window-controls__icon.svelte-dx0z4a {display:block;}"
2733
2733
  };
2734
- function $i(e, t) {
2735
- Xt(t, !0), wn(e, ao);
2736
- let n = M(t, "minimized", 7, !1), r = M(t, "onToggle"), i = M(t, "onClose"), s = M(t, "buttonClass", 7, "");
2737
- const o = /* @__PURE__ */ Ot(() => (s() || "").trim() || "pie-window-controls__button");
2734
+ function Ii(e, t) {
2735
+ Kt(t, !0), xn(e, go);
2736
+ let n = T(t, "minimized", 7, !1), r = T(t, "onToggle"), i = T(t, "onClose"), s = T(t, "buttonClass", 7, "");
2737
+ const o = /* @__PURE__ */ Yt(() => (s() || "").trim() || "pie-window-controls__button");
2738
2738
  var u = {
2739
2739
  get minimized() {
2740
2740
  return n();
2741
2741
  },
2742
2742
  set minimized(h = !1) {
2743
- n(h), T();
2743
+ n(h), k();
2744
2744
  },
2745
2745
  get onToggle() {
2746
2746
  return r();
2747
2747
  },
2748
2748
  set onToggle(h) {
2749
- r(h), T();
2749
+ r(h), k();
2750
2750
  },
2751
2751
  get onClose() {
2752
2752
  return i();
2753
2753
  },
2754
2754
  set onClose(h) {
2755
- i(h), T();
2755
+ i(h), k();
2756
2756
  },
2757
2757
  get buttonClass() {
2758
2758
  return s();
2759
2759
  },
2760
2760
  set buttonClass(h = "") {
2761
- s(h), T();
2761
+ s(h), k();
2762
2762
  }
2763
- }, l = lo(), f = Kn(l), d = se(f);
2763
+ }, l = _o(), f = tr(l), d = oe(f);
2764
2764
  {
2765
2765
  var c = (h) => {
2766
- var w = so();
2767
- oe(h, w);
2766
+ var b = vo();
2767
+ le(h, b);
2768
2768
  }, v = (h) => {
2769
- var w = oo();
2770
- oe(h, w);
2769
+ var b = po();
2770
+ le(h, b);
2771
2771
  };
2772
- dn(d, (h) => {
2772
+ pn(d, (h) => {
2773
2773
  n() ? h(c) : h(v, -1);
2774
2774
  });
2775
2775
  }
2776
- ie(f);
2777
- var _ = Re(f, 2);
2778
- return Ht(() => {
2779
- ft(f, 1, ut(x(o)), "svelte-dx0z4a"), Wn(f, "title", n() ? "Maximize" : "Minimize"), Wn(f, "aria-label", n() ? "Maximize panel" : "Minimize panel"), ft(_, 1, ut(x(o)), "svelte-dx0z4a");
2780
- }), cn("click", f, function(...h) {
2776
+ se(f);
2777
+ var _ = De(f, 2);
2778
+ return Bt(() => {
2779
+ vt(f, 1, ht(w(o)), "svelte-dx0z4a"), qn(f, "title", n() ? "Maximize" : "Minimize"), qn(f, "aria-label", n() ? "Maximize panel" : "Minimize panel"), vt(_, 1, ht(w(o)), "svelte-dx0z4a");
2780
+ }), vn("click", f, function(...h) {
2781
2781
  r()?.apply(this, h);
2782
- }), cn("click", _, function(...h) {
2782
+ }), vn("click", _, function(...h) {
2783
2783
  i()?.apply(this, h);
2784
- }), oe(e, l), qt(u);
2784
+ }), le(e, l), Zt(u);
2785
2785
  }
2786
- rr(["click"]);
2787
- bn($i, { minimized: {}, onToggle: {}, onClose: {}, buttonClass: {} }, [], [], { mode: "open" });
2788
- const uo = 9999, mr = "__pieFloatingPanelZIndex";
2789
- function kn() {
2790
- const e = globalThis, t = e[mr], r = (typeof t == "number" && Number.isFinite(t) ? t : uo) + 1;
2791
- return e[mr] = r, r;
2786
+ ar(["click"]);
2787
+ $n(Ii, { minimized: {}, onToggle: {}, onClose: {}, buttonClass: {} }, [], [], { mode: "open" });
2788
+ const mo = 9999, Sr = "__pieFloatingPanelZIndex";
2789
+ function Nn() {
2790
+ const e = globalThis, t = e[Sr], r = (typeof t == "number" && Number.isFinite(t) ? t : mo) + 1;
2791
+ return e[Sr] = r, r;
2792
2792
  }
2793
- function fo(e, t) {
2793
+ function wo(e, t) {
2794
2794
  const n = (c, v, _) => Math.max(v, Math.min(c, _)), r = n(
2795
2795
  Math.round(e.width * t.widthRatio),
2796
2796
  t.minWidth,
@@ -2802,210 +2802,275 @@ function fo(e, t) {
2802
2802
  ), s = t.paddingX ?? 16, o = t.paddingY ?? 16, u = Math.max(s, e.width - r - s), l = Math.max(o, e.height - i - o), f = t.alignX === "left" ? s : t.alignX === "right" ? u : Math.max(s, Math.round((e.width - r) / 2)), d = t.alignY === "top" ? o : t.alignY === "bottom" ? l : Math.max(o, Math.round((e.height - i) / 2));
2803
2803
  return { x: f, y: d, width: r, height: i };
2804
2804
  }
2805
- function co(e) {
2805
+ function yo(e) {
2806
2806
  const t = e.padding ?? 0;
2807
2807
  let n = !1, r = !1, i = 0, s = 0, o = 0, u = 0, l = 0, f = 0, d = 0, c = 0;
2808
- const v = (p) => {
2808
+ const v = (g) => {
2809
2809
  if (!n) return;
2810
- const S = e.getState(), j = p.clientX - i, G = p.clientY - s, ee = Math.max(t, window.innerWidth - S.width - t), Ie = Math.max(t, window.innerHeight - 100 - t);
2810
+ const E = e.getState(), D = g.clientX - i, V = g.clientY - s, J = Math.max(t, window.innerWidth - E.width - t), ke = Math.max(t, window.innerHeight - 100 - t);
2811
2811
  e.setState({
2812
- ...S,
2813
- x: Math.max(t, Math.min(o + j, ee)),
2814
- y: Math.max(t, Math.min(u + G, Ie))
2812
+ ...E,
2813
+ x: Math.max(t, Math.min(o + D, J)),
2814
+ y: Math.max(t, Math.min(u + V, ke))
2815
2815
  });
2816
- }, _ = (p) => {
2816
+ }, _ = (g) => {
2817
2817
  if (!r) return;
2818
- const S = e.getState(), j = p.clientX - l, G = p.clientY - f, ee = Math.max(
2818
+ const E = e.getState(), D = g.clientX - l, V = g.clientY - f, J = Math.max(
2819
2819
  e.minWidth,
2820
- window.innerWidth - S.x - t
2821
- ), Ie = Math.max(
2820
+ window.innerWidth - E.x - t
2821
+ ), ke = Math.max(
2822
2822
  e.minHeight,
2823
- window.innerHeight - S.y - t
2823
+ window.innerHeight - E.y - t
2824
2824
  );
2825
2825
  e.setState({
2826
- ...S,
2826
+ ...E,
2827
2827
  width: Math.max(
2828
2828
  e.minWidth,
2829
- Math.min(d + j, ee)
2829
+ Math.min(d + D, J)
2830
2830
  ),
2831
2831
  height: Math.max(
2832
2832
  e.minHeight,
2833
- Math.min(c + G, Ie)
2833
+ Math.min(c + V, ke)
2834
2834
  )
2835
2835
  });
2836
2836
  }, h = () => {
2837
2837
  n = !1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", h);
2838
- }, w = () => {
2839
- r = !1, document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", w);
2838
+ }, b = () => {
2839
+ r = !1, document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", b);
2840
2840
  };
2841
2841
  return {
2842
- startDrag(p) {
2843
- e.onFocus?.(), n = !0, i = p.clientX, s = p.clientY;
2844
- const S = e.getState();
2845
- o = S.x, u = S.y, document.addEventListener("mousemove", v), document.addEventListener("mouseup", h);
2842
+ startDrag(g) {
2843
+ e.onFocus?.(), n = !0, i = g.clientX, s = g.clientY;
2844
+ const E = e.getState();
2845
+ o = E.x, u = E.y, document.addEventListener("mousemove", v), document.addEventListener("mouseup", h);
2846
2846
  },
2847
- startResize(p) {
2848
- e.onFocus?.(), r = !0, l = p.clientX, f = p.clientY;
2849
- const S = e.getState();
2850
- d = S.width, c = S.height, document.addEventListener("mousemove", _), document.addEventListener("mouseup", w), p.preventDefault(), p.stopPropagation();
2847
+ startResize(g) {
2848
+ e.onFocus?.(), r = !0, l = g.clientX, f = g.clientY;
2849
+ const E = e.getState();
2850
+ d = E.width, c = E.height, document.addEventListener("mousemove", _), document.addEventListener("mouseup", b), g.preventDefault(), g.stopPropagation();
2851
2851
  },
2852
2852
  stop() {
2853
- h(), w();
2853
+ h(), b();
2854
2854
  }
2855
2855
  };
2856
2856
  }
2857
- var ho = /* @__PURE__ */ Je("<div><!></div> <!>", 1), vo = /* @__PURE__ */ Je('<section><header role="button" tabindex="0"><div class="pie-shared-floating-panel__header-main svelte-tgj5on"><div class="pie-shared-floating-panel__header-title-wrap svelte-tgj5on"><!> <h3 class="pie-shared-floating-panel__title svelte-tgj5on"> </h3></div> <!></div> <div class="pie-shared-floating-panel__header-controls svelte-tgj5on"><!></div></header> <!></section>');
2858
- const _o = {
2857
+ var bo = /* @__PURE__ */ rt("<div><!></div> <!>", 1), xo = /* @__PURE__ */ rt('<section><header role="button" tabindex="0"><div class="pie-shared-floating-panel__header-main svelte-tgj5on"><div class="pie-shared-floating-panel__header-title-wrap svelte-tgj5on"><!> <h3 class="pie-shared-floating-panel__title svelte-tgj5on"> </h3></div> <!></div> <div class="pie-shared-floating-panel__header-controls svelte-tgj5on"><!></div></header> <!></section>');
2858
+ const $o = {
2859
2859
  hash: "svelte-tgj5on",
2860
2860
  code: ".pie-shared-floating-panel.svelte-tgj5on {position:fixed;display:flex;flex-direction:column;background:var(--color-base-100, #fff);color:var(--color-base-content, #1f2937);border:2px solid var(--color-base-300, #d1d5db);border-radius:8px;box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.25);overflow:hidden;font-family:var(--pie-font-family, Inter, system-ui, sans-serif);}.pie-shared-floating-panel__header.svelte-tgj5on {padding:8px 16px;display:flex;align-items:center;justify-content:space-between;background:var(--color-base-200, #f3f4f6);cursor:move;user-select:none;border-bottom:1px solid var(--color-base-300, #d1d5db);}.pie-shared-floating-panel__header-main.svelte-tgj5on {display:flex;align-items:center;gap:8px;min-width:0;flex:1;}.pie-shared-floating-panel__header-title-wrap.svelte-tgj5on {display:flex;align-items:center;gap:8px;min-width:0;}.pie-shared-floating-panel__title.svelte-tgj5on {margin:0;font-size:0.95rem;font-weight:700;}.pie-shared-floating-panel__header-controls.svelte-tgj5on {display:flex;gap:4px;}.pie-shared-floating-panel__body.svelte-tgj5on {flex:1;min-height:0;display:flex;flex-direction:column;}"
2861
2861
  };
2862
- function xi(e, t) {
2863
- Xt(t, !0), wn(e, _o);
2864
- let n = M(t, "title"), r = M(t, "ariaLabel", 7, "Drag panel"), i = M(t, "initialSizing"), s = M(t, "minWidth", 7, 320), o = M(t, "minHeight", 7, 260), u = M(t, "defaultMinimized", 7, !1), l = M(t, "onClose"), f = M(t, "className", 7, ""), d = M(t, "bodyClass", 7, ""), c = M(t, "headerClass", 7, ""), v = M(t, "children"), _ = M(t, "icon"), h = M(t, "headerActions"), w = /* @__PURE__ */ Y(16), p = /* @__PURE__ */ Y(16), S = /* @__PURE__ */ Y(420), j = /* @__PURE__ */ Y(480), G = /* @__PURE__ */ Y(Ve(kn())), ee = /* @__PURE__ */ Y(Ve(mt(() => u())));
2865
- const Ie = co({
2862
+ function ki(e, t) {
2863
+ Kt(t, !0), xn(e, $o);
2864
+ let n = T(t, "title"), r = T(t, "ariaLabel", 7, "Drag panel"), i = T(t, "initialSizing"), s = T(t, "minWidth", 7, 320), o = T(t, "minHeight", 7, 260), u = T(t, "defaultMinimized", 7, !1), l = T(t, "persistenceScope", 7, ""), f = T(t, "persistencePanelId", 7, ""), d = T(t, "onClose"), c = T(t, "className", 7, ""), v = T(t, "bodyClass", 7, ""), _ = T(t, "headerClass", 7, ""), h = T(t, "children"), b = T(t, "icon"), g = T(t, "headerActions"), E = /* @__PURE__ */ F(16), D = /* @__PURE__ */ F(16), V = /* @__PURE__ */ F(420), J = /* @__PURE__ */ F(480), ke = /* @__PURE__ */ F(Ge(Nn())), Te = /* @__PURE__ */ F(Ge($t(() => u()))), $ = /* @__PURE__ */ F(!1);
2865
+ const He = "pie:debug-panels:v1", X = yo({
2866
2866
  getState: () => ({
2867
- x: x(w),
2868
- y: x(p),
2869
- width: x(S),
2870
- height: x(j)
2867
+ x: w(E),
2868
+ y: w(D),
2869
+ width: w(V),
2870
+ height: w(J)
2871
2871
  }),
2872
- setState: (g) => {
2873
- A(w, g.x, !0), A(p, g.y, !0), A(S, g.width, !0), A(j, g.height, !0);
2872
+ setState: (p) => {
2873
+ C(E, p.x, !0), C(D, p.y, !0), C(V, p.width, !0), C(J, p.height, !0);
2874
2874
  },
2875
- minWidth: mt(() => s()),
2876
- minHeight: mt(() => o()),
2875
+ minWidth: $t(() => s()),
2876
+ minHeight: $t(() => o()),
2877
2877
  onFocus: () => {
2878
- A(G, kn(), !0);
2878
+ C(ke, Nn(), !0);
2879
+ }
2880
+ });
2881
+ function A() {
2882
+ C(ke, Nn(), !0);
2883
+ }
2884
+ function Ye() {
2885
+ const p = String(l() || "").trim(), de = String(f() || "").trim();
2886
+ return !p || !de ? null : `${He}:${p}:${de}:layout`;
2887
+ }
2888
+ function Sn(p) {
2889
+ const de = window.innerWidth, O = window.innerHeight, we = Math.max(s(), Math.min(de, p.width)), In = Math.max(o(), Math.min(O, p.height)), kn = Math.max(0, de - we), Pi = Math.max(0, O - 100);
2890
+ return {
2891
+ x: Math.max(0, Math.min(kn, p.x)),
2892
+ y: Math.max(0, Math.min(Pi, p.y)),
2893
+ width: we,
2894
+ height: In,
2895
+ minimized: !!p.minimized
2896
+ };
2897
+ }
2898
+ function We() {
2899
+ const p = Ye();
2900
+ if (!p || typeof localStorage > "u") return !1;
2901
+ try {
2902
+ const de = localStorage.getItem(p);
2903
+ if (!de) return !1;
2904
+ const O = JSON.parse(de);
2905
+ if (typeof O.x != "number" || typeof O.y != "number" || typeof O.width != "number" || typeof O.height != "number")
2906
+ return !1;
2907
+ const we = Sn({
2908
+ x: O.x,
2909
+ y: O.y,
2910
+ width: O.width,
2911
+ height: O.height,
2912
+ minimized: !!O.minimized
2913
+ });
2914
+ return C(E, we.x, !0), C(D, we.y, !0), C(V, we.width, !0), C(J, we.height, !0), C(Te, we.minimized, !0), !0;
2915
+ } catch {
2916
+ return !1;
2917
+ }
2918
+ }
2919
+ $i(() => {
2920
+ if (!We()) {
2921
+ const p = wo({ width: window.innerWidth, height: window.innerHeight }, i());
2922
+ C(E, p.x, !0), C(D, p.y, !0), C(V, p.width, !0), C(J, p.height, !0);
2879
2923
  }
2924
+ C($, !0);
2925
+ }), Ks(() => {
2926
+ X.stop();
2880
2927
  });
2881
- function yn() {
2882
- A(G, kn(), !0);
2883
- }
2884
- mi(() => {
2885
- const g = fo({ width: window.innerWidth, height: window.innerHeight }, i());
2886
- A(w, g.x, !0), A(p, g.y, !0), A(S, g.width, !0), A(j, g.height, !0);
2887
- }), Ys(() => {
2888
- Ie.stop();
2928
+ const wt = /* @__PURE__ */ Yt(() => ["pie-shared-floating-panel", c() || ""].join(" ").trim()), tn = /* @__PURE__ */ Yt(() => ["pie-shared-floating-panel__body", v() || ""].join(" ").trim()), En = /* @__PURE__ */ Yt(() => ["pie-shared-floating-panel__header", _() || ""].join(" ").trim());
2929
+ sr(() => {
2930
+ if (!w($)) return;
2931
+ const p = Ye();
2932
+ if (p && !(typeof localStorage > "u"))
2933
+ try {
2934
+ localStorage.setItem(p, JSON.stringify({
2935
+ x: w(E),
2936
+ y: w(D),
2937
+ width: w(V),
2938
+ height: w(J),
2939
+ minimized: w(Te)
2940
+ }));
2941
+ } catch {
2942
+ }
2889
2943
  });
2890
- const $ = /* @__PURE__ */ Ot(() => ["pie-shared-floating-panel", f() || ""].join(" ").trim()), je = /* @__PURE__ */ Ot(() => ["pie-shared-floating-panel__body", d() || ""].join(" ").trim()), te = /* @__PURE__ */ Ot(() => ["pie-shared-floating-panel__header", c() || ""].join(" ").trim());
2891
- var k = {
2944
+ var Cn = {
2892
2945
  get title() {
2893
2946
  return n();
2894
2947
  },
2895
- set title(g) {
2896
- n(g), T();
2948
+ set title(p) {
2949
+ n(p), k();
2897
2950
  },
2898
2951
  get ariaLabel() {
2899
2952
  return r();
2900
2953
  },
2901
- set ariaLabel(g = "Drag panel") {
2902
- r(g), T();
2954
+ set ariaLabel(p = "Drag panel") {
2955
+ r(p), k();
2903
2956
  },
2904
2957
  get initialSizing() {
2905
2958
  return i();
2906
2959
  },
2907
- set initialSizing(g) {
2908
- i(g), T();
2960
+ set initialSizing(p) {
2961
+ i(p), k();
2909
2962
  },
2910
2963
  get minWidth() {
2911
2964
  return s();
2912
2965
  },
2913
- set minWidth(g = 320) {
2914
- s(g), T();
2966
+ set minWidth(p = 320) {
2967
+ s(p), k();
2915
2968
  },
2916
2969
  get minHeight() {
2917
2970
  return o();
2918
2971
  },
2919
- set minHeight(g = 260) {
2920
- o(g), T();
2972
+ set minHeight(p = 260) {
2973
+ o(p), k();
2921
2974
  },
2922
2975
  get defaultMinimized() {
2923
2976
  return u();
2924
2977
  },
2925
- set defaultMinimized(g = !1) {
2926
- u(g), T();
2978
+ set defaultMinimized(p = !1) {
2979
+ u(p), k();
2927
2980
  },
2928
- get onClose() {
2981
+ get persistenceScope() {
2929
2982
  return l();
2930
2983
  },
2931
- set onClose(g) {
2932
- l(g), T();
2984
+ set persistenceScope(p = "") {
2985
+ l(p), k();
2933
2986
  },
2934
- get className() {
2987
+ get persistencePanelId() {
2935
2988
  return f();
2936
2989
  },
2937
- set className(g = "") {
2938
- f(g), T();
2990
+ set persistencePanelId(p = "") {
2991
+ f(p), k();
2939
2992
  },
2940
- get bodyClass() {
2993
+ get onClose() {
2941
2994
  return d();
2942
2995
  },
2943
- set bodyClass(g = "") {
2944
- d(g), T();
2996
+ set onClose(p) {
2997
+ d(p), k();
2945
2998
  },
2946
- get headerClass() {
2999
+ get className() {
2947
3000
  return c();
2948
3001
  },
2949
- set headerClass(g = "") {
2950
- c(g), T();
3002
+ set className(p = "") {
3003
+ c(p), k();
2951
3004
  },
2952
- get children() {
3005
+ get bodyClass() {
2953
3006
  return v();
2954
3007
  },
2955
- set children(g) {
2956
- v(g), T();
3008
+ set bodyClass(p = "") {
3009
+ v(p), k();
2957
3010
  },
2958
- get icon() {
3011
+ get headerClass() {
2959
3012
  return _();
2960
3013
  },
2961
- set icon(g) {
2962
- _(g), T();
3014
+ set headerClass(p = "") {
3015
+ _(p), k();
2963
3016
  },
2964
- get headerActions() {
3017
+ get children() {
2965
3018
  return h();
2966
3019
  },
2967
- set headerActions(g) {
2968
- h(g), T();
3020
+ set children(p) {
3021
+ h(p), k();
3022
+ },
3023
+ get icon() {
3024
+ return b();
3025
+ },
3026
+ set icon(p) {
3027
+ b(p), k();
3028
+ },
3029
+ get headerActions() {
3030
+ return g();
3031
+ },
3032
+ set headerActions(p) {
3033
+ g(p), k();
2969
3034
  }
2970
- }, ce = vo(), Oe = se(ce), me = se(Oe), ze = se(me), Pt = se(ze);
2971
- In(Pt, () => _() ?? nn);
2972
- var Kt = Re(Pt, 2), $n = se(Kt, !0);
2973
- ie(Kt), ie(ze);
2974
- var Jt = Re(ze, 2);
2975
- In(Jt, () => h() ?? nn), ie(me);
2976
- var Dt = Re(me, 2), xn = se(Dt);
2977
- $i(xn, {
3035
+ }, Ve = xo(), Me = oe(Ve), Ft = oe(Me), Ae = oe(Ft), nn = oe(Ae);
3036
+ An(nn, () => b() ?? on);
3037
+ var cr = De(nn, 2), Ti = oe(cr, !0);
3038
+ se(cr), se(Ae);
3039
+ var Mi = De(Ae, 2);
3040
+ An(Mi, () => g() ?? on), se(Ft);
3041
+ var dr = De(Ft, 2), Ai = oe(dr);
3042
+ Ii(Ai, {
2978
3043
  get minimized() {
2979
- return x(ee);
3044
+ return w(Te);
2980
3045
  },
2981
- onToggle: () => A(ee, !x(ee)),
3046
+ onToggle: () => C(Te, !w(Te)),
2982
3047
  get onClose() {
2983
- return l();
3048
+ return d();
2984
3049
  }
2985
- }), ie(Dt), ie(Oe);
2986
- var Qe = Re(Oe, 2);
3050
+ }), se(dr), se(Me);
3051
+ var Ni = De(Me, 2);
2987
3052
  {
2988
- var En = (g) => {
2989
- var or = ho(), Qt = Kn(or), Ei = se(Qt);
2990
- In(Ei, () => v() ?? nn), ie(Qt);
2991
- var Si = Re(Qt, 2);
2992
- yi(Si, {
2993
- onPointerDown: (Ci) => Ie.startResize(Ci)
2994
- }), Ht(() => ft(Qt, 1, ut(x(je)), "svelte-tgj5on")), oe(g, or);
3053
+ var Ri = (p) => {
3054
+ var de = bo(), O = tr(de), we = oe(O);
3055
+ An(we, () => h() ?? on), se(O);
3056
+ var In = De(O, 2);
3057
+ Ci(In, {
3058
+ onPointerDown: (kn) => X.startResize(kn)
3059
+ }), Bt(() => vt(O, 1, ht(w(tn)), "svelte-tgj5on")), le(p, de);
2995
3060
  };
2996
- dn(Qe, (g) => {
2997
- x(ee) || g(En);
3061
+ pn(Ni, (p) => {
3062
+ w(Te) || p(Ri);
2998
3063
  });
2999
3064
  }
3000
- return ie(ce), Ht(() => {
3001
- ft(ce, 1, ut(x($)), "svelte-tgj5on"), Us(ce, `left: ${x(w)}px; top: ${x(p)}px; width: ${x(S)}px; z-index: ${x(G)}; ${x(ee) ? "height: auto;" : `height: ${x(j)}px;`}`), ft(Oe, 1, ut(x(te)), "svelte-tgj5on"), Wn(Oe, "aria-label", r()), vi($n, n());
3002
- }), cn("mousedown", Oe, (g) => {
3003
- yn(), Ie.startDrag(g);
3004
- }), oe(e, ce), qt(k);
3065
+ return se(Ve), Bt(() => {
3066
+ vt(Ve, 1, ht(w(wt)), "svelte-tgj5on"), no(Ve, `left: ${w(E)}px; top: ${w(D)}px; width: ${w(V)}px; z-index: ${w(ke)}; ${w(Te) ? "height: auto;" : `height: ${w(J)}px;`}`), vt(Me, 1, ht(w(En)), "svelte-tgj5on"), qn(Me, "aria-label", r()), wi(Ti, n());
3067
+ }), vn("mousedown", Me, (p) => {
3068
+ A(), X.startDrag(p);
3069
+ }), le(e, Ve), Zt(Cn);
3005
3070
  }
3006
- rr(["mousedown"]);
3007
- bn(
3008
- xi,
3071
+ ar(["mousedown"]);
3072
+ $n(
3073
+ ki,
3009
3074
  {
3010
3075
  title: {},
3011
3076
  ariaLabel: {},
@@ -3013,6 +3078,8 @@ bn(
3013
3078
  minWidth: {},
3014
3079
  minHeight: {},
3015
3080
  defaultMinimized: {},
3081
+ persistenceScope: {},
3082
+ persistencePanelId: {},
3016
3083
  onClose: {},
3017
3084
  className: {},
3018
3085
  bodyClass: {},
@@ -3025,47 +3092,47 @@ bn(
3025
3092
  [],
3026
3093
  { mode: "open" }
3027
3094
  );
3028
- var po = Object.defineProperty, go = (e, t, n) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, wr = (e, t, n) => go(e, typeof t != "symbol" ? t + "" : t, n), br;
3029
- typeof window < "u" && ((br = window.__svelte ?? (window.__svelte = {})).v ?? (br.v = /* @__PURE__ */ new Set())).add("5");
3095
+ var So = Object.defineProperty, Eo = (e, t, n) => t in e ? So(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Er = (e, t, n) => Eo(e, typeof t != "symbol" ? t + "" : t, n), Cr;
3096
+ typeof window < "u" && ((Cr = window.__svelte ?? (window.__svelte = {})).v ?? (Cr.v = /* @__PURE__ */ new Set())).add("5");
3030
3097
  new class extends Error {
3031
3098
  constructor() {
3032
- super(...arguments), wr(this, "name", "StaleReactionError"), wr(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
3099
+ super(...arguments), Er(this, "name", "StaleReactionError"), Er(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
3033
3100
  }
3034
3101
  }();
3035
- const mo = /* @__PURE__ */ new Set(), wo = /* @__PURE__ */ new Set();
3036
- function Zt(e) {
3102
+ const Co = /* @__PURE__ */ new Set(), Io = /* @__PURE__ */ new Set();
3103
+ function en(e) {
3037
3104
  for (var t = 0; t < e.length; t++)
3038
- mo.add(e[t]);
3039
- for (var n of wo)
3105
+ Co.add(e[t]);
3106
+ for (var n of Io)
3040
3107
  n(e);
3041
3108
  }
3042
- Zt(["click"]);
3043
- Zt(["mousedown"]);
3044
- Zt(["mousedown"]);
3045
- Zt(["click"]);
3046
- Zt(["click"]);
3047
- function bo(e, t) {
3109
+ en(["click"]);
3110
+ en(["mousedown"]);
3111
+ en(["mousedown"]);
3112
+ en(["click"]);
3113
+ en(["click"]);
3114
+ function ko(e, t) {
3048
3115
  return (e || void 0) === (t || void 0);
3049
3116
  }
3050
- function yo(e, t, n) {
3117
+ function To(e, t, n) {
3051
3118
  const r = e?.key?.sectionId || "", i = e?.key?.attemptId || void 0;
3052
- return r !== t ? !1 : bo(i, n);
3119
+ return r !== t ? !1 : ko(i, n);
3053
3120
  }
3054
- function $o(e, t, n) {
3121
+ function Mo(e, t, n) {
3055
3122
  return !e?.getSectionController || !t ? null : e.getSectionController({
3056
3123
  sectionId: t,
3057
3124
  attemptId: n
3058
3125
  }) || null;
3059
3126
  }
3060
- var xo = /* @__PURE__ */ Je('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--warning"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">Section controller not available for this section yet.</span></div>'), Eo = /* @__PURE__ */ Je('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--info"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">No section session data yet. Interact with the questions to see updates.</span></div>'), So = /* @__PURE__ */ Je('<!> <div class="pie-section-player-tools-session-debugger__card"><div class="pie-section-player-tools-session-debugger__card-title">Item Sessions Snapshot</div> <pre class="pie-section-player-tools-session-debugger__card-pre"> </pre></div>', 1), Co = /* @__PURE__ */ Je('<div class="pie-section-player-tools-session-debugger__content"><div class="pie-section-player-tools-session-debugger__section-intro"><div class="pie-section-player-tools-session-debugger__heading">PIE Session Data (Persistent)</div></div> <!></div>'), Io = /* @__PURE__ */ ir('<svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-sm svelte-10oyp9b" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>');
3061
- const ko = {
3127
+ var Ao = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--warning"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01M5.07 19h13.86c1.54 0 2.5-1.67 1.73-3L13.73 4c-.77-1.33-2.69-1.33-3.46 0L3.34 16c-.77 1.33.19 3 1.73 3z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">Section controller not available for this section yet.</span></div>'), No = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__alert pie-section-player-tools-session-debugger__alert--info"><svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-md" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="pie-section-player-tools-session-debugger__text-xs">No section session data yet. Interact with the questions to see updates.</span></div>'), Ro = /* @__PURE__ */ rt('<!> <div class="pie-section-player-tools-session-debugger__card"><div class="pie-section-player-tools-session-debugger__card-title">Item Sessions Snapshot</div> <pre class="pie-section-player-tools-session-debugger__card-pre"> </pre></div>', 1), Po = /* @__PURE__ */ rt('<div class="pie-section-player-tools-session-debugger__content"><div class="pie-section-player-tools-session-debugger__section-intro"><div class="pie-section-player-tools-session-debugger__heading">PIE Session Data (Persistent)</div></div> <!></div>'), Lo = /* @__PURE__ */ ur('<svg xmlns="http://www.w3.org/2000/svg" class="pie-section-player-tools-session-debugger__icon-sm svelte-10oyp9b" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>');
3128
+ const zo = {
3062
3129
  hash: "svelte-10oyp9b",
3063
3130
  code: ".pie-section-player-tools-session-debugger__icon-sm.svelte-10oyp9b {width:1rem;height:1rem;}"
3064
3131
  };
3065
- function To(e, t) {
3066
- Xt(t, !0), wn(e, ko);
3067
- const n = Vs();
3068
- let r = M(t, "toolkitCoordinator", 7, null), i = M(t, "sectionId", 7, ""), s = M(t, "attemptId", 7, void 0), o = /* @__PURE__ */ Y(Ve({
3132
+ function Do(e, t) {
3133
+ Kt(t, !0), xn(e, zo);
3134
+ const n = Js();
3135
+ let r = T(t, "toolkitCoordinator", 7, null), i = T(t, "sectionId", 7, ""), s = T(t, "attemptId", 7, void 0), o = /* @__PURE__ */ F(Ge({
3069
3136
  currentItemIndex: null,
3070
3137
  currentItemId: null,
3071
3138
  visitedItemIdentifiers: [],
@@ -3078,7 +3145,7 @@ function To(e, t) {
3078
3145
  updatedAt: null,
3079
3146
  lastChangedItemId: null,
3080
3147
  itemSessions: {}
3081
- })), u = null, l = null, f = /* @__PURE__ */ Y(!1), d = !1;
3148
+ })), u = null, l = null, f = /* @__PURE__ */ F(!1), d = !1;
3082
3149
  const c = { controller: null, sectionId: "", attemptId: void 0 };
3083
3150
  function v($) {
3084
3151
  try {
@@ -3092,51 +3159,51 @@ function To(e, t) {
3092
3159
  }
3093
3160
  }
3094
3161
  function _() {
3095
- return $o(r(), i(), s()) || void 0;
3162
+ return Mo(r(), i(), s()) || void 0;
3096
3163
  }
3097
- function h($, je) {
3098
- const te = je || _(), k = te?.getRuntimeState?.() || null, ce = te?.getSession?.() || null;
3099
- A(f, !!te, !0), A(
3164
+ function h($, He) {
3165
+ const X = He || _(), A = X?.getRuntimeState?.() || null, Ye = X?.getSession?.() || null;
3166
+ C(f, !!X, !0), C(
3100
3167
  o,
3101
3168
  {
3102
- currentItemIndex: typeof k?.currentItemIndex == "number" && k.currentItemIndex >= 0 ? k.currentItemIndex : null,
3103
- currentItemId: typeof k?.currentItemId == "string" && k.currentItemId ? k.currentItemId : null,
3104
- visitedItemIdentifiers: v(k?.visitedItemIdentifiers || []),
3105
- loadingComplete: k?.loadingComplete === !0,
3106
- totalRegistered: typeof k?.totalRegistered == "number" ? k.totalRegistered : 0,
3107
- totalLoaded: typeof k?.totalLoaded == "number" ? k.totalLoaded : 0,
3108
- itemsComplete: k?.itemsComplete === !0,
3109
- completedCount: typeof k?.completedCount == "number" ? k.completedCount : 0,
3110
- totalItems: typeof k?.totalItems == "number" ? k.totalItems : 0,
3169
+ currentItemIndex: typeof A?.currentItemIndex == "number" && A.currentItemIndex >= 0 ? A.currentItemIndex : null,
3170
+ currentItemId: typeof A?.currentItemId == "string" && A.currentItemId ? A.currentItemId : null,
3171
+ visitedItemIdentifiers: v(A?.visitedItemIdentifiers || []),
3172
+ loadingComplete: A?.loadingComplete === !0,
3173
+ totalRegistered: typeof A?.totalRegistered == "number" ? A.totalRegistered : 0,
3174
+ totalLoaded: typeof A?.totalLoaded == "number" ? A.totalLoaded : 0,
3175
+ itemsComplete: A?.itemsComplete === !0,
3176
+ completedCount: typeof A?.completedCount == "number" ? A.completedCount : 0,
3177
+ totalItems: typeof A?.totalItems == "number" ? A.totalItems : 0,
3111
3178
  updatedAt: $?.updatedAt || Date.now(),
3112
3179
  lastChangedItemId: $?.itemId || null,
3113
- itemSessions: v(k?.itemSessions || ce?.itemSessions || {})
3180
+ itemSessions: v(A?.itemSessions || Ye?.itemSessions || {})
3114
3181
  },
3115
3182
  !0
3116
3183
  );
3117
3184
  }
3118
- function w() {
3185
+ function b() {
3119
3186
  u?.(), u = null, c.controller = null, c.sectionId = "", c.attemptId = void 0;
3120
3187
  }
3121
- function p() {
3188
+ function g() {
3122
3189
  l?.(), l = null;
3123
3190
  }
3124
- function S($) {
3191
+ function E($) {
3125
3192
  h({
3126
3193
  itemId: $?.itemId,
3127
3194
  updatedAt: $?.timestamp || Date.now()
3128
3195
  });
3129
3196
  }
3130
- function j($) {
3131
- S($);
3197
+ function D($) {
3198
+ E($);
3132
3199
  }
3133
- function G($) {
3134
- S($);
3200
+ function V($) {
3201
+ E($);
3135
3202
  }
3136
- function ee() {
3203
+ function J() {
3137
3204
  const $ = _() || null;
3138
3205
  if (!$) {
3139
- w(), A(f, !1), A(
3206
+ b(), C(f, !1), C(
3140
3207
  o,
3141
3208
  {
3142
3209
  currentItemIndex: null,
@@ -3156,59 +3223,59 @@ function To(e, t) {
3156
3223
  );
3157
3224
  return;
3158
3225
  }
3159
- const je = s() || void 0;
3160
- if (c.controller === $ && c.sectionId === i() && c.attemptId === je && u) {
3226
+ const He = s() || void 0;
3227
+ if (c.controller === $ && c.sectionId === i() && c.attemptId === He && u) {
3161
3228
  h(void 0, $);
3162
3229
  return;
3163
3230
  }
3164
- w();
3165
- const k = r()?.subscribeItemEvents?.({
3231
+ b();
3232
+ const A = r()?.subscribeItemEvents?.({
3166
3233
  sectionId: i(),
3167
3234
  attemptId: s(),
3168
- listener: j
3169
- }) || null, ce = r()?.subscribeSectionLifecycleEvents?.({
3235
+ listener: D
3236
+ }) || null, Ye = r()?.subscribeSectionLifecycleEvents?.({
3170
3237
  sectionId: i(),
3171
3238
  attemptId: s(),
3172
- listener: G
3239
+ listener: V
3173
3240
  }) || null;
3174
3241
  u = () => {
3175
- k?.(), ce?.();
3176
- }, c.controller = $, c.sectionId = i(), c.attemptId = je, h(void 0, $);
3242
+ A?.(), Ye?.();
3243
+ }, c.controller = $, c.sectionId = i(), c.attemptId = He, h(void 0, $);
3177
3244
  }
3178
- function Ie() {
3245
+ function ke() {
3179
3246
  d || (d = !0, queueMicrotask(() => {
3180
- d = !1, ee();
3247
+ d = !1, J();
3181
3248
  }));
3182
3249
  }
3183
- Kr(() => {
3250
+ sr(() => {
3184
3251
  if (!(!r() || !i()))
3185
- return ee(), p(), l = r().onSectionControllerLifecycle?.(($) => {
3186
- yo($, i(), s()) && (Ie(), h({ updatedAt: Date.now() }));
3252
+ return J(), g(), l = r().onSectionControllerLifecycle?.(($) => {
3253
+ To($, i(), s()) && (ke(), h({ updatedAt: Date.now() }));
3187
3254
  }) || null, () => {
3188
- w(), p();
3255
+ b(), g();
3189
3256
  };
3190
3257
  });
3191
- var yn = {
3258
+ var Te = {
3192
3259
  get toolkitCoordinator() {
3193
3260
  return r();
3194
3261
  },
3195
3262
  set toolkitCoordinator($ = null) {
3196
- r($), T();
3263
+ r($), k();
3197
3264
  },
3198
3265
  get sectionId() {
3199
3266
  return i();
3200
3267
  },
3201
3268
  set sectionId($ = "") {
3202
- i($), T();
3269
+ i($), k();
3203
3270
  },
3204
3271
  get attemptId() {
3205
3272
  return s();
3206
3273
  },
3207
3274
  set attemptId($ = void 0) {
3208
- s($), T();
3275
+ s($), k();
3209
3276
  }
3210
3277
  };
3211
- return xi(e, {
3278
+ return ki(e, {
3212
3279
  title: "Session Data",
3213
3280
  ariaLabel: "Drag session panel",
3214
3281
  minWidth: 340,
@@ -3228,43 +3295,43 @@ function To(e, t) {
3228
3295
  className: "pie-section-player-tools-session-debugger",
3229
3296
  bodyClass: "pie-section-player-tools-session-debugger__content-shell",
3230
3297
  onClose: () => n("close"),
3231
- children: ($, je) => {
3232
- var te = Co(), k = Re(se(te), 2);
3298
+ children: ($, He) => {
3299
+ var X = Po(), A = De(oe(X), 2);
3233
3300
  {
3234
- var ce = (me) => {
3235
- var ze = xo();
3236
- oe(me, ze);
3237
- }, Oe = (me) => {
3238
- var ze = So(), Pt = Kn(ze);
3301
+ var Ye = (We) => {
3302
+ var wt = Ao();
3303
+ le(We, wt);
3304
+ }, Sn = (We) => {
3305
+ var wt = Ro(), tn = tr(wt);
3239
3306
  {
3240
- var Kt = (Qe) => {
3241
- var En = Eo();
3242
- oe(Qe, En);
3243
- }, $n = /* @__PURE__ */ Ot(() => Object.keys(x(o).itemSessions || {}).length === 0);
3244
- dn(Pt, (Qe) => {
3245
- x($n) && Qe(Kt);
3307
+ var En = (Ae) => {
3308
+ var nn = No();
3309
+ le(Ae, nn);
3310
+ }, Cn = /* @__PURE__ */ Yt(() => Object.keys(w(o).itemSessions || {}).length === 0);
3311
+ pn(tn, (Ae) => {
3312
+ w(Cn) && Ae(En);
3246
3313
  });
3247
3314
  }
3248
- var Jt = Re(Pt, 2), Dt = Re(se(Jt), 2), xn = se(Dt, !0);
3249
- ie(Dt), ie(Jt), Ht((Qe) => vi(xn, Qe), [() => JSON.stringify(x(o), null, 2)]), oe(me, ze);
3315
+ var Ve = De(tn, 2), Me = De(oe(Ve), 2), Ft = oe(Me, !0);
3316
+ se(Me), se(Ve), Bt((Ae) => wi(Ft, Ae), [() => JSON.stringify(w(o), null, 2)]), le(We, wt);
3250
3317
  };
3251
- dn(k, (me) => {
3252
- x(f) ? me(Oe, -1) : me(ce);
3318
+ pn(A, (We) => {
3319
+ w(f) ? We(Sn, -1) : We(Ye);
3253
3320
  });
3254
3321
  }
3255
- ie(te), oe($, te);
3322
+ se(X), le($, X);
3256
3323
  },
3257
3324
  $$slots: {
3258
3325
  default: !0,
3259
- icon: ($, je) => {
3260
- var te = Io();
3261
- oe($, te);
3326
+ icon: ($, He) => {
3327
+ var X = Lo();
3328
+ le($, X);
3262
3329
  }
3263
3330
  }
3264
- }), qt(yn);
3331
+ }), Zt(Te);
3265
3332
  }
3266
- customElements.define("pie-section-player-tools-session-debugger", bn(
3267
- To,
3333
+ customElements.define("pie-section-player-tools-session-debugger", $n(
3334
+ Do,
3268
3335
  {
3269
3336
  sectionId: { attribute: "section-id", type: "String" },
3270
3337
  attemptId: { attribute: "attempt-id", type: "String" },
@@ -3274,5 +3341,5 @@ customElements.define("pie-section-player-tools-session-debugger", bn(
3274
3341
  []
3275
3342
  ));
3276
3343
  export {
3277
- To as default
3344
+ Do as default
3278
3345
  };