@pie-players/pie-tool-annotation-toolbar 0.3.25 → 0.3.27

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,15 +1,15 @@
1
1
  import { t as b } from "./defineProperty-CyepwRr5.js";
2
2
  if (typeof window < "u") {
3
- var mn, bn;
4
- ((mn = (bn = window).__svelte ?? (bn.__svelte = {})).v ?? (mn.v = /* @__PURE__ */ new Set())).add("5");
3
+ var yn, wn;
4
+ ((yn = (wn = window).__svelte ?? (wn.__svelte = {})).v ?? (yn.v = /* @__PURE__ */ new Set())).add("5");
5
5
  }
6
- var dt = {}, W = Symbol(), nl = Symbol("filename");
7
- var Qn = Array.isArray, po = Array.prototype.indexOf, ht = Array.prototype.includes, dr = Array.from, ir = Object.keys, or = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, go = Object.getOwnPropertyDescriptors, _o = Object.prototype, mo = Array.prototype, Zn = Object.getPrototypeOf, yn = Object.isExtensible, bo = () => {
6
+ var dt = {}, W = Symbol(), ll = Symbol("filename");
7
+ var ti = Array.isArray, bo = Array.prototype.indexOf, ht = Array.prototype.includes, hr = Array.from, ir = Object.keys, or = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, yo = Object.getOwnPropertyDescriptors, wo = Object.prototype, To = Array.prototype, ri = Object.getPrototypeOf, Tn = Object.isExtensible, So = () => {
8
8
  };
9
- function yo(e) {
9
+ function ko(e) {
10
10
  for (var t = 0; t < e.length; t++) e[t]();
11
11
  }
12
- function ei() {
12
+ function ni() {
13
13
  var e, t;
14
14
  return {
15
15
  promise: new Promise((r, n) => {
@@ -19,81 +19,81 @@ function ei() {
19
19
  reject: t
20
20
  };
21
21
  }
22
- var il = 1 << 24, re = 1024, me = 2048, nt = 4096, Hr = 8192, wo = 16384, qr = 32768, wn = 1 << 25, Gr = 65536, ol = 1 << 17, sl = 1 << 18, mt = 1 << 19, To = 1 << 20, Et = 1 << 25, Mt = 65536, Tn = 1 << 21, So = 1 << 22, sr = 1 << 23, Ot = Symbol("$state"), ti = Symbol("legacy props"), ko = Symbol(""), Ao = Symbol("proxy path"), Ae = new class extends Error {
22
+ var cl = 1 << 24, re = 1024, me = 2048, nt = 4096, Gr = 8192, Ao = 16384, Ur = 32768, Sn = 1 << 25, Kr = 65536, ul = 1 << 17, fl = 1 << 18, mt = 1 << 19, Io = 1 << 20, Et = 1 << 25, xt = 65536, kn = 1 << 21, $o = 1 << 22, sr = 1 << 23, Ot = Symbol("$state"), ii = Symbol("legacy props"), Eo = Symbol(""), Oo = Symbol("proxy path"), Ae = new class extends Error {
23
23
  constructor(...t) {
24
24
  super(...t), b(this, "name", "StaleReactionError"), b(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
25
25
  }
26
- }(), Io = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
27
- function $o() {
26
+ }(), Lo = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
27
+ function Ro() {
28
28
  throw new Error("https://svelte.dev/e/async_derived_orphan");
29
29
  }
30
- function Eo(e, t, r) {
30
+ function Mo(e, t, r) {
31
31
  throw new Error("https://svelte.dev/e/each_key_duplicate");
32
32
  }
33
- function Oo(e) {
33
+ function Po(e) {
34
34
  throw new Error("https://svelte.dev/e/effect_in_teardown");
35
35
  }
36
- function Ro() {
36
+ function Co() {
37
37
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
38
38
  }
39
- function Lo(e) {
39
+ function xo(e) {
40
40
  throw new Error("https://svelte.dev/e/effect_orphan");
41
41
  }
42
- function Po() {
42
+ function No() {
43
43
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
44
44
  }
45
- function Co() {
45
+ function Do() {
46
46
  throw new Error("https://svelte.dev/e/hydration_failed");
47
47
  }
48
- function xo(e) {
48
+ function Vo(e) {
49
49
  throw new Error("https://svelte.dev/e/props_invalid_value");
50
50
  }
51
- function Mo() {
51
+ function jo() {
52
52
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
53
53
  }
54
- function No() {
54
+ function zo() {
55
55
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
56
56
  }
57
- function Do() {
57
+ function Wo() {
58
58
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
59
59
  }
60
- function Vo() {
60
+ function Bo() {
61
61
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
62
62
  }
63
- function hr(e) {
63
+ function vr(e) {
64
64
  console.warn("https://svelte.dev/e/hydration_mismatch");
65
65
  }
66
- function jo() {
66
+ function Ho() {
67
67
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
68
68
  }
69
- var P = !1;
69
+ var M = !1;
70
70
  function Ie(e) {
71
- P = e;
71
+ M = e;
72
72
  }
73
- var R;
73
+ var L;
74
74
  function Y(e) {
75
75
  if (e === null)
76
- throw hr(), dt;
77
- return R = e;
76
+ throw vr(), dt;
77
+ return L = e;
78
78
  }
79
- function vr() {
80
- return Y(/* @__PURE__ */ be(R));
79
+ function pr() {
80
+ return Y(/* @__PURE__ */ be(L));
81
81
  }
82
- function Ft(e) {
83
- if (P) {
84
- if (/* @__PURE__ */ be(R) !== null)
85
- throw hr(), dt;
86
- R = e;
82
+ function Ht(e) {
83
+ if (M) {
84
+ if (/* @__PURE__ */ be(L) !== null)
85
+ throw vr(), dt;
86
+ L = e;
87
87
  }
88
88
  }
89
- function zo(e = 1) {
90
- if (P) {
91
- for (var t = e, r = R; t--; ) r = /* @__PURE__ */ be(r);
92
- R = r;
89
+ function Fo(e = 1) {
90
+ if (M) {
91
+ for (var t = e, r = L; t--; ) r = /* @__PURE__ */ be(r);
92
+ L = r;
93
93
  }
94
94
  }
95
95
  function ar(e = !0) {
96
- for (var t = 0, r = R; ; ) {
96
+ for (var t = 0, r = L; ; ) {
97
97
  if (r.nodeType === 8) {
98
98
  var n = r.data;
99
99
  if (n === "]") {
@@ -105,32 +105,32 @@ function ar(e = !0) {
105
105
  e && r.remove(), r = i;
106
106
  }
107
107
  }
108
- function ri(e) {
108
+ function oi(e) {
109
109
  if (!e || e.nodeType !== 8)
110
- throw hr(), dt;
110
+ throw vr(), dt;
111
111
  return e.data;
112
112
  }
113
- function ni(e) {
113
+ function si(e) {
114
114
  return e === this.v;
115
115
  }
116
- function Wo(e, t) {
116
+ function qo(e, t) {
117
117
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
118
118
  }
119
- function ii(e) {
120
- return !Wo(e, this.v);
119
+ function ai(e) {
120
+ return !qo(e, this.v);
121
121
  }
122
- var je = !1, pr = !1;
123
- function Sn(e, t) {
124
- return e.label = t, Bo(e.v, t), e;
122
+ var je = !1, gr = !1;
123
+ function An(e, t) {
124
+ return e.label = t, Go(e.v, t), e;
125
125
  }
126
- function Bo(e, t) {
127
- return e?.[Ao]?.(t), e;
126
+ function Go(e, t) {
127
+ return e?.[Oo]?.(t), e;
128
128
  }
129
129
  var z = null;
130
130
  function vt(e) {
131
131
  z = e;
132
132
  }
133
- function oi(e, t = !1, r) {
133
+ function li(e, t = !1, r) {
134
134
  z = {
135
135
  p: z,
136
136
  i: !1,
@@ -139,42 +139,42 @@ function oi(e, t = !1, r) {
139
139
  s: e,
140
140
  x: null,
141
141
  r: A,
142
- l: pr && !t ? {
142
+ l: gr && !t ? {
143
143
  s: null,
144
144
  u: null,
145
145
  $: []
146
146
  } : null
147
147
  };
148
148
  }
149
- function si(e) {
149
+ function ci(e) {
150
150
  var t = z, r = t.e;
151
151
  if (r !== null) {
152
152
  t.e = null;
153
- for (var n of r) xi(n);
153
+ for (var n of r) Di(n);
154
154
  }
155
155
  return e !== void 0 && (t.x = e), t.i = !0, z = t.p, e ?? {};
156
156
  }
157
157
  function Nt() {
158
- return !pr || z !== null && z.l === null;
158
+ return !gr || z !== null && z.l === null;
159
159
  }
160
160
  var Ge = [];
161
- function ai() {
161
+ function ui() {
162
162
  var e = Ge;
163
- Ge = [], yo(e);
163
+ Ge = [], ko(e);
164
164
  }
165
165
  function et(e) {
166
- if (Ge.length === 0 && !Rt) {
166
+ if (Ge.length === 0 && !Lt) {
167
167
  var t = Ge;
168
168
  queueMicrotask(() => {
169
- t === Ge && ai();
169
+ t === Ge && ui();
170
170
  });
171
171
  }
172
172
  Ge.push(e);
173
173
  }
174
- function Fo() {
175
- for (; Ge.length > 0; ) ai();
174
+ function Uo() {
175
+ for (; Ge.length > 0; ) ui();
176
176
  }
177
- function li(e) {
177
+ function fi(e) {
178
178
  var t = A;
179
179
  if (t === null)
180
180
  return I.f |= sr, e;
@@ -197,53 +197,53 @@ function Ne(e, t) {
197
197
  }
198
198
  throw e;
199
199
  }
200
- var Ho = ~(me | nt | re);
200
+ var Ko = ~(me | nt | re);
201
201
  function N(e, t) {
202
- e.f = e.f & Ho | t;
202
+ e.f = e.f & Ko | t;
203
203
  }
204
- function Ur(e) {
204
+ function Yr(e) {
205
205
  e.f & 512 || e.deps === null ? N(e, re) : N(e, nt);
206
206
  }
207
- function ci(e) {
207
+ function di(e) {
208
208
  if (e !== null)
209
209
  for (const t of e)
210
- !(t.f & 2) || !(t.f & 65536) || (t.f ^= Mt, ci(t.deps));
210
+ !(t.f & 2) || !(t.f & 65536) || (t.f ^= xt, di(t.deps));
211
211
  }
212
- function ui(e, t, r) {
213
- e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), ci(e.deps), N(e, re);
212
+ function hi(e, t, r) {
213
+ e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), di(e.deps), N(e, re);
214
214
  }
215
- var qo = !1, Ht = !1;
216
- function Go(e) {
217
- var t = Ht;
215
+ var Yo = !1, Ft = !1;
216
+ function Xo(e) {
217
+ var t = Ft;
218
218
  try {
219
- return Ht = !1, [e(), Ht];
219
+ return Ft = !1, [e(), Ft];
220
220
  } finally {
221
- Ht = t;
221
+ Ft = t;
222
222
  }
223
223
  }
224
- function fi(e, t) {
224
+ function vi(e, t) {
225
225
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
226
226
  }
227
- function Kr(e, t) {
228
- fi(e, t), t.add(e);
227
+ function Xr(e, t) {
228
+ vi(e, t), t.add(e);
229
229
  }
230
230
  function k(e, t, r) {
231
- fi(e, t), t.set(e, r);
231
+ vi(e, t), t.set(e, r);
232
232
  }
233
- function x(e, t, r) {
233
+ function C(e, t, r) {
234
234
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
235
235
  throw new TypeError("Private element is not present on this object");
236
236
  }
237
237
  function c(e, t) {
238
- return e.get(x(e, t));
238
+ return e.get(C(e, t));
239
239
  }
240
240
  function T(e, t, r) {
241
- return e.set(x(e, t), r), r;
241
+ return e.set(C(e, t), r), r;
242
242
  }
243
- var di, $e = /* @__PURE__ */ new Set(), L = null, kn = null, K = null, xr = null, Rt = !1, Tr = !1, pt = null, lr = null, hi = 0;
244
- var Uo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakSet(), it = class vi {
243
+ var pi, $e = /* @__PURE__ */ new Set(), R = null, In = null, K = null, Nr = null, Lt = !1, Sr = !1, pt = null, lr = null, gi = 0;
244
+ var Jo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakSet(), it = class _i {
245
245
  constructor() {
246
- Kr(this, pe), b(this, "id", Uo++), b(this, "current", /* @__PURE__ */ new Map()), b(this, "previous", /* @__PURE__ */ new Map()), k(this, cr, /* @__PURE__ */ new Set()), k(this, qt, /* @__PURE__ */ new Set()), k(this, at, 0), k(this, lt, 0), k(this, Qt, null), k(this, le, []), k(this, Pt, /* @__PURE__ */ new Set()), k(this, Xe, /* @__PURE__ */ new Set()), k(this, qe, /* @__PURE__ */ new Map()), b(this, "is_fork", !1), k(this, Gt, !1);
246
+ Xr(this, pe), b(this, "id", Jo++), b(this, "current", /* @__PURE__ */ new Map()), b(this, "previous", /* @__PURE__ */ new Map()), k(this, cr, /* @__PURE__ */ new Set()), k(this, qt, /* @__PURE__ */ new Set()), k(this, at, 0), k(this, lt, 0), k(this, Qt, null), k(this, le, []), k(this, Mt, /* @__PURE__ */ new Set()), k(this, Xe, /* @__PURE__ */ new Set()), k(this, qe, /* @__PURE__ */ new Map()), b(this, "is_fork", !1), k(this, Gt, !1);
247
247
  }
248
248
  skip_effect(t) {
249
249
  c(qe, this).has(t) || c(qe, this).set(t, {
@@ -265,17 +265,17 @@ var Uo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
265
265
  r !== W && !this.previous.has(t) && this.previous.set(t, r), t.f & 8388608 || (this.current.set(t, t.v), K?.set(t, t.v));
266
266
  }
267
267
  activate() {
268
- L = this;
268
+ R = this;
269
269
  }
270
270
  deactivate() {
271
- L = null, K = null;
271
+ R = null, K = null;
272
272
  }
273
273
  flush() {
274
274
  var t = null;
275
275
  try {
276
- Tr = !0, L = this, x(pe, this, pi).call(this);
276
+ Sr = !0, R = this, C(pe, this, mi).call(this);
277
277
  } finally {
278
- hi = 0, xr = null, pt = null, lr = null, Tr = !1, L = null, K = null, Ve.clear();
278
+ gi = 0, Nr = null, pt = null, lr = null, Sr = !1, R = null, K = null, Ve.clear();
279
279
  }
280
280
  }
281
281
  discard() {
@@ -291,7 +291,7 @@ var Uo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
291
291
  }));
292
292
  }
293
293
  transfer_effects(t, r) {
294
- for (const n of t) c(Pt, this).add(n);
294
+ for (const n of t) c(Mt, this).add(n);
295
295
  for (const n of r) c(Xe, this).add(n);
296
296
  t.clear(), r.clear();
297
297
  }
@@ -302,16 +302,16 @@ var Uo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
302
302
  c(qt, this).add(t);
303
303
  }
304
304
  settled() {
305
- return (c(Qt, this) ?? T(Qt, this, ei())).promise;
305
+ return (c(Qt, this) ?? T(Qt, this, ni())).promise;
306
306
  }
307
307
  static ensure() {
308
- if (L === null) {
309
- const t = L = new vi();
310
- Tr || ($e.add(L), Rt || et(() => {
311
- L === t && t.flush();
308
+ if (R === null) {
309
+ const t = R = new _i();
310
+ Sr || ($e.add(R), Lt || et(() => {
311
+ R === t && t.flush();
312
312
  }));
313
313
  }
314
- return L;
314
+ return R;
315
315
  }
316
316
  apply() {
317
317
  if (!je || !this.is_fork && $e.size === 1) {
@@ -324,14 +324,14 @@ var Uo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
324
324
  for (const [r, n] of t.previous) K.has(r) || K.set(r, n);
325
325
  }
326
326
  schedule(t) {
327
- if (xr = t, t.b?.is_pending && t.f & 16777228 && !(t.f & 32768)) {
327
+ if (Nr = t, t.b?.is_pending && t.f & 16777228 && !(t.f & 32768)) {
328
328
  t.b.defer_effect(t);
329
329
  return;
330
330
  }
331
331
  for (var r = t; r.parent !== null; ) {
332
332
  r = r.parent;
333
333
  var n = r.f;
334
- if (pt !== null && r === A && (je || (I === null || !(I.f & 2)) && !qo))
334
+ if (pt !== null && r === A && (je || (I === null || !(I.f & 2)) && !Yo))
335
335
  return;
336
336
  if (n & 96) {
337
337
  if (!(n & 1024)) return;
@@ -341,13 +341,13 @@ var Uo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
341
341
  c(le, this).push(r);
342
342
  }
343
343
  };
344
- di = it;
345
- function An() {
344
+ pi = it;
345
+ function $n() {
346
346
  return this.is_fork || c(lt, this) > 0;
347
347
  }
348
- function pi() {
349
- if (hi++ > 1e3 && ($e.delete(this), Yo()), !x(pe, this, An).call(this)) {
350
- for (const s of c(Pt, this))
348
+ function mi() {
349
+ if (gi++ > 1e3 && ($e.delete(this), Zo()), !C(pe, this, $n).call(this)) {
350
+ for (const s of c(Mt, this))
351
351
  c(Xe, this).delete(s), N(s, me), this.schedule(s);
352
352
  for (const s of c(Xe, this))
353
353
  N(s, nt), this.schedule(s);
@@ -356,30 +356,30 @@ function pi() {
356
356
  T(le, this, []), this.apply();
357
357
  var t = pt = [], r = [], n = lr = [];
358
358
  for (const s of e) try {
359
- x(pe, this, gi).call(this, s, t, r);
359
+ C(pe, this, bi).call(this, s, t, r);
360
360
  } catch (a) {
361
- throw yi(s), a;
361
+ throw Si(s), a;
362
362
  }
363
- if (L = null, n.length > 0) {
364
- var i = di.ensure();
363
+ if (R = null, n.length > 0) {
364
+ var i = pi.ensure();
365
365
  for (const s of n) i.schedule(s);
366
366
  }
367
- if (pt = null, lr = null, x(pe, this, An).call(this)) {
368
- x(pe, this, In).call(this, r), x(pe, this, In).call(this, t);
369
- for (const [s, a] of c(qe, this)) bi(s, a);
367
+ if (pt = null, lr = null, C(pe, this, $n).call(this)) {
368
+ C(pe, this, En).call(this, r), C(pe, this, En).call(this, t);
369
+ for (const [s, a] of c(qe, this)) Ti(s, a);
370
370
  } else {
371
- c(at, this) === 0 && $e.delete(this), c(Pt, this).clear(), c(Xe, this).clear();
371
+ c(at, this) === 0 && $e.delete(this), c(Mt, this).clear(), c(Xe, this).clear();
372
372
  for (const s of c(cr, this)) s(this);
373
- c(cr, this).clear(), kn = this, $n(r), $n(t), kn = null, c(Qt, this)?.resolve();
373
+ c(cr, this).clear(), In = this, On(r), On(t), In = null, c(Qt, this)?.resolve();
374
374
  }
375
- var o = L;
375
+ var o = R;
376
376
  if (c(le, this).length > 0) {
377
377
  const s = o ?? (o = this);
378
378
  c(le, s).push(...c(le, this).filter((a) => !c(le, s).includes(a)));
379
379
  }
380
- o !== null && ($e.add(o), x(pe, o, pi).call(o)), $e.has(this) || x(pe, this, Ko).call(this);
380
+ o !== null && ($e.add(o), C(pe, o, mi).call(o)), $e.has(this) || C(pe, this, Qo).call(this);
381
381
  }
382
- function gi(e, t, r) {
382
+ function bi(e, t, r) {
383
383
  e.f ^= re;
384
384
  for (var n = e.first; n !== null; ) {
385
385
  var i = n.f, o = (i & 96) !== 0;
@@ -401,10 +401,10 @@ function gi(e, t, r) {
401
401
  }
402
402
  }
403
403
  }
404
- function In(e) {
405
- for (var t = 0; t < e.length; t += 1) ui(e[t], c(Pt, this), c(Xe, this));
404
+ function En(e) {
405
+ for (var t = 0; t < e.length; t += 1) hi(e[t], c(Mt, this), c(Xe, this));
406
406
  }
407
- function Ko() {
407
+ function Qo() {
408
408
  for (const a of $e) {
409
409
  var e = a.id < this.id, t = [];
410
410
  for (const [l, u] of this.current) {
@@ -418,10 +418,10 @@ function Ko() {
418
418
  else if (t.length > 0) {
419
419
  a.activate();
420
420
  var n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map();
421
- for (var o of t) _i(o, r, n, i);
421
+ for (var o of t) yi(o, r, n, i);
422
422
  if (c(le, a).length > 0) {
423
423
  a.apply();
424
- for (var s of c(le, a)) x(pe, a, gi).call(a, s, [], []);
424
+ for (var s of c(le, a)) C(pe, a, bi).call(a, s, [], []);
425
425
  T(le, a, []);
426
426
  }
427
427
  a.deactivate();
@@ -429,37 +429,37 @@ function Ko() {
429
429
  }
430
430
  }
431
431
  function Zt(e) {
432
- var t = Rt;
433
- Rt = !0;
432
+ var t = Lt;
433
+ Lt = !0;
434
434
  try {
435
435
  var r;
436
- for (e && (L !== null && !L.is_fork && L.flush(), r = e()); ; ) {
437
- if (Fo(), L === null) return r;
438
- L.flush();
436
+ for (e && (R !== null && !R.is_fork && R.flush(), r = e()); ; ) {
437
+ if (Uo(), R === null) return r;
438
+ R.flush();
439
439
  }
440
440
  } finally {
441
- Rt = t;
441
+ Lt = t;
442
442
  }
443
443
  }
444
- function Yo() {
444
+ function Zo() {
445
445
  if (0) {
446
446
  var e;
447
- for (const r of L.current.keys()) for (const [n, i] of r.updated ?? [])
447
+ for (const r of R.current.keys()) for (const [n, i] of r.updated ?? [])
448
448
  var t;
449
449
  }
450
450
  try {
451
- Po();
451
+ No();
452
452
  } catch (r) {
453
- Ne(r, xr);
453
+ Ne(r, Nr);
454
454
  }
455
455
  }
456
456
  var ge = null;
457
- function $n(e) {
457
+ function On(e) {
458
458
  var t = e.length;
459
459
  if (t !== 0) {
460
460
  for (var r = 0; r < t; ) {
461
461
  var n = e[r++];
462
- if (!(n.f & 24576) && Dt(n) && (ge = /* @__PURE__ */ new Set(), _t(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Di(n), ge?.size > 0)) {
462
+ if (!(n.f & 24576) && Dt(n) && (ge = /* @__PURE__ */ new Set(), _t(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && zi(n), ge?.size > 0)) {
463
463
  Ve.clear();
464
464
  for (const i of ge) {
465
465
  if (i.f & 24576) continue;
@@ -478,103 +478,103 @@ function $n(e) {
478
478
  ge = null;
479
479
  }
480
480
  }
481
- function _i(e, t, r, n) {
481
+ function yi(e, t, r, n) {
482
482
  if (!r.has(e) && (r.add(e), e.reactions !== null))
483
483
  for (const i of e.reactions) {
484
484
  const o = i.f;
485
- o & 2 ? _i(i, t, r, n) : o & 4194320 && !(o & 2048) && mi(i, t, n) && (N(i, me), Yr(i));
485
+ o & 2 ? yi(i, t, r, n) : o & 4194320 && !(o & 2048) && wi(i, t, n) && (N(i, me), Jr(i));
486
486
  }
487
487
  }
488
- function mi(e, t, r) {
488
+ function wi(e, t, r) {
489
489
  const n = r.get(e);
490
490
  if (n !== void 0) return n;
491
491
  if (e.deps !== null) for (const i of e.deps) {
492
492
  if (ht.call(t, i)) return !0;
493
- if (i.f & 2 && mi(i, t, r))
493
+ if (i.f & 2 && wi(i, t, r))
494
494
  return r.set(i, !0), !0;
495
495
  }
496
496
  return r.set(e, !1), !1;
497
497
  }
498
- function Yr(e) {
499
- L.schedule(e);
498
+ function Jr(e) {
499
+ R.schedule(e);
500
500
  }
501
- function bi(e, t) {
501
+ function Ti(e, t) {
502
502
  if (!(e.f & 32 && e.f & 1024)) {
503
503
  e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), N(e, re);
504
504
  for (var r = e.first; r !== null; )
505
- bi(r, t), r = r.next;
505
+ Ti(r, t), r = r.next;
506
506
  }
507
507
  }
508
- function yi(e) {
508
+ function Si(e) {
509
509
  N(e, re);
510
510
  for (var t = e.first; t !== null; )
511
- yi(t), t = t.next;
511
+ Si(t), t = t.next;
512
512
  }
513
- function Xo(e) {
513
+ function es(e) {
514
514
  let t = 0, r = tt(0), n;
515
515
  return () => {
516
- tn() && (_(r), rn(() => (t === 0 && (n = ln(() => e(() => Lt(r)))), t += 1, () => {
516
+ nn() && (_(r), on(() => (t === 0 && (n = un(() => e(() => Rt(r)))), t += 1, () => {
517
517
  et(() => {
518
- t -= 1, t === 0 && (n?.(), n = void 0, Lt(r));
518
+ t -= 1, t === 0 && (n?.(), n = void 0, Rt(r));
519
519
  });
520
520
  })));
521
521
  };
522
522
  }
523
- var Jo = Gr | mt;
524
- function Qo(e, t, r, n) {
525
- new Zo(e, t, r, n);
523
+ var ts = Kr | mt;
524
+ function rs(e, t, r, n) {
525
+ new ns(e, t, r, n);
526
526
  }
527
- var ce = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakSet(), Zo = class {
527
+ var ce = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), Dr = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakSet(), ns = class {
528
528
  constructor(e, t, r, n) {
529
- Kr(this, G), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), k(this, ce, void 0), k(this, Sr, P ? R : null), k(this, Me, void 0), k(this, Ct, void 0), k(this, Z, void 0), k(this, De, null), k(this, ue, null), k(this, ke, null), k(this, Je, null), k(this, ct, 0), k(this, Qe, 0), k(this, Ut, !1), k(this, Mr, /* @__PURE__ */ new Set()), k(this, Nr, /* @__PURE__ */ new Set()), k(this, Fe, null), k(this, En, Xo(() => (T(Fe, this, tt(c(ct, this))), () => {
530
- T(Fe, this, null);
531
- }))), T(ce, this, e), T(Me, this, t), T(Ct, this, (i) => {
529
+ Xr(this, G), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), k(this, ce, void 0), k(this, kr, M ? L : null), k(this, xe, void 0), k(this, Pt, void 0), k(this, Z, void 0), k(this, De, null), k(this, ue, null), k(this, ke, null), k(this, Je, null), k(this, ct, 0), k(this, Qe, 0), k(this, Ut, !1), k(this, Dr, /* @__PURE__ */ new Set()), k(this, Vr, /* @__PURE__ */ new Set()), k(this, He, null), k(this, Ln, es(() => (T(He, this, tt(c(ct, this))), () => {
530
+ T(He, this, null);
531
+ }))), T(ce, this, e), T(xe, this, t), T(Pt, this, (i) => {
532
532
  var o = A;
533
533
  o.b = this, o.f |= 128, r(i);
534
- }), this.parent = A.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), T(Z, this, nn(() => {
535
- if (P) {
536
- const i = c(Sr, this);
537
- vr();
534
+ }), this.parent = A.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), T(Z, this, sn(() => {
535
+ if (M) {
536
+ const i = c(kr, this);
537
+ pr();
538
538
  const o = i.data === "[!";
539
539
  if (i.data.startsWith("[?")) {
540
540
  const s = JSON.parse(i.data.slice(2));
541
- x(G, this, ts).call(this, s);
542
- } else o ? x(G, this, rs).call(this) : x(G, this, es).call(this);
543
- } else x(G, this, On).call(this);
544
- }, Jo)), P && T(ce, this, R);
541
+ C(G, this, os).call(this, s);
542
+ } else o ? C(G, this, ss).call(this) : C(G, this, is).call(this);
543
+ } else C(G, this, Rn).call(this);
544
+ }, ts)), M && T(ce, this, L);
545
545
  }
546
546
  defer_effect(e) {
547
- ui(e, c(Mr, this), c(Nr, this));
547
+ hi(e, c(Dr, this), c(Vr, this));
548
548
  }
549
549
  is_rendered() {
550
550
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
551
551
  }
552
552
  has_pending_snippet() {
553
- return !!c(Me, this).pending;
553
+ return !!c(xe, this).pending;
554
554
  }
555
555
  update_pending_count(e, t) {
556
- x(G, this, wi).call(this, e, t), T(ct, this, c(ct, this) + e), !(!c(Fe, this) || c(Ut, this)) && (T(Ut, this, !0), et(() => {
557
- T(Ut, this, !1), c(Fe, this) && gt(c(Fe, this), c(ct, this));
556
+ C(G, this, ki).call(this, e, t), T(ct, this, c(ct, this) + e), !(!c(He, this) || c(Ut, this)) && (T(Ut, this, !0), et(() => {
557
+ T(Ut, this, !1), c(He, this) && gt(c(He, this), c(ct, this));
558
558
  }));
559
559
  }
560
560
  get_effect_pending() {
561
- return c(En, this).call(this), _(c(Fe, this));
561
+ return c(Ln, this).call(this), _(c(He, this));
562
562
  }
563
563
  error(e) {
564
- var t = c(Me, this).onerror;
565
- let r = c(Me, this).failed;
564
+ var t = c(xe, this).onerror;
565
+ let r = c(xe, this).failed;
566
566
  if (!t && !r) throw e;
567
- c(De, this) && (H(c(De, this)), T(De, this, null)), c(ue, this) && (H(c(ue, this)), T(ue, this, null)), c(ke, this) && (H(c(ke, this)), T(ke, this, null)), P && (Y(c(Sr, this)), zo(), Y(ar()));
567
+ c(De, this) && (F(c(De, this)), T(De, this, null)), c(ue, this) && (F(c(ue, this)), T(ue, this, null)), c(ke, this) && (F(c(ke, this)), T(ke, this, null)), M && (Y(c(kr, this)), Fo(), Y(ar()));
568
568
  var n = !1, i = !1;
569
569
  const o = () => {
570
570
  if (n) {
571
- jo();
571
+ Ho();
572
572
  return;
573
573
  }
574
- n = !0, i && Vo(), c(ke, this) !== null && ot(c(ke, this), () => {
574
+ n = !0, i && Bo(), c(ke, this) !== null && ot(c(ke, this), () => {
575
575
  T(ke, this, null);
576
- }), x(G, this, Dr).call(this, () => {
577
- x(G, this, On).call(this);
576
+ }), C(G, this, jr).call(this, () => {
577
+ C(G, this, Rn).call(this);
578
578
  });
579
579
  }, s = (a) => {
580
580
  try {
@@ -582,7 +582,7 @@ var ce = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Me =
582
582
  } catch (l) {
583
583
  Ne(l, c(Z, this) && c(Z, this).parent);
584
584
  }
585
- r && T(ke, this, x(G, this, Dr).call(this, () => {
585
+ r && T(ke, this, C(G, this, jr).call(this, () => {
586
586
  try {
587
587
  return ne(() => {
588
588
  var l = A;
@@ -605,83 +605,83 @@ var ce = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Me =
605
605
  });
606
606
  }
607
607
  };
608
- function es() {
608
+ function is() {
609
609
  try {
610
- T(De, this, ne(() => c(Ct, this).call(this, c(ce, this))));
610
+ T(De, this, ne(() => c(Pt, this).call(this, c(ce, this))));
611
611
  } catch (e) {
612
612
  this.error(e);
613
613
  }
614
614
  }
615
- function ts(e) {
616
- const t = c(Me, this).failed;
615
+ function os(e) {
616
+ const t = c(xe, this).failed;
617
617
  t && T(ke, this, ne(() => {
618
618
  t(c(ce, this), () => e, () => () => {
619
619
  });
620
620
  }));
621
621
  }
622
- function rs() {
623
- const e = c(Me, this).pending;
622
+ function ss() {
623
+ const e = c(xe, this).pending;
624
624
  e && (this.is_pending = !0, T(ue, this, ne(() => e(c(ce, this)))), et(() => {
625
625
  var t = T(Je, this, document.createDocumentFragment()), r = de();
626
- t.append(r), T(De, this, x(G, this, Dr).call(this, () => ne(() => c(Ct, this).call(this, r)))), c(Qe, this) === 0 && (c(ce, this).before(t), T(Je, this, null), ot(c(ue, this), () => {
626
+ t.append(r), T(De, this, C(G, this, jr).call(this, () => ne(() => c(Pt, this).call(this, r)))), c(Qe, this) === 0 && (c(ce, this).before(t), T(Je, this, null), ot(c(ue, this), () => {
627
627
  T(ue, this, null);
628
- }), x(G, this, Xr).call(this, L));
628
+ }), C(G, this, Qr).call(this, R));
629
629
  }));
630
630
  }
631
- function On() {
631
+ function Rn() {
632
632
  try {
633
633
  if (this.is_pending = this.has_pending_snippet(), T(Qe, this, 0), T(ct, this, 0), T(De, this, ne(() => {
634
- c(Ct, this).call(this, c(ce, this));
634
+ c(Pt, this).call(this, c(ce, this));
635
635
  })), c(Qe, this) > 0) {
636
636
  var e = T(Je, this, document.createDocumentFragment());
637
- an(c(De, this), e);
638
- const t = c(Me, this).pending;
637
+ cn(c(De, this), e);
638
+ const t = c(xe, this).pending;
639
639
  T(ue, this, ne(() => t(c(ce, this))));
640
- } else x(G, this, Xr).call(this, L);
640
+ } else C(G, this, Qr).call(this, R);
641
641
  } catch (t) {
642
642
  this.error(t);
643
643
  }
644
644
  }
645
- function Xr(e) {
646
- this.is_pending = !1, e.transfer_effects(c(Mr, this), c(Nr, this));
645
+ function Qr(e) {
646
+ this.is_pending = !1, e.transfer_effects(c(Dr, this), c(Vr, this));
647
647
  }
648
- function Dr(e) {
648
+ function jr(e) {
649
649
  var t = A, r = I, n = z;
650
650
  _e(c(Z, this)), ie(c(Z, this)), vt(c(Z, this).ctx);
651
651
  try {
652
652
  return it.ensure(), e();
653
653
  } catch (i) {
654
- return li(i), null;
654
+ return fi(i), null;
655
655
  } finally {
656
656
  _e(t), ie(r), vt(n);
657
657
  }
658
658
  }
659
- function wi(e, t) {
659
+ function ki(e, t) {
660
660
  if (!this.has_pending_snippet()) {
661
661
  if (this.parent) {
662
662
  var r;
663
- x(G, r = this.parent, wi).call(r, e, t);
663
+ C(G, r = this.parent, ki).call(r, e, t);
664
664
  }
665
665
  return;
666
666
  }
667
- T(Qe, this, c(Qe, this) + e), c(Qe, this) === 0 && (x(G, this, Xr).call(this, t), c(ue, this) && ot(c(ue, this), () => {
667
+ T(Qe, this, c(Qe, this) + e), c(Qe, this) === 0 && (C(G, this, Qr).call(this, t), c(ue, this) && ot(c(ue, this), () => {
668
668
  T(ue, this, null);
669
669
  }), c(Je, this) && (c(ce, this).before(c(Je, this)), T(Je, this, null)));
670
670
  }
671
- function ns(e, t, r, n) {
672
- const i = Nt() ? gr : Jr;
671
+ function as(e, t, r, n) {
672
+ const i = Nt() ? _r : Zr;
673
673
  var o = e.filter((f) => !f.settled);
674
674
  if (r.length === 0 && o.length === 0) {
675
675
  n(t.map(i));
676
676
  return;
677
677
  }
678
- var s = A, a = is(), l = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((f) => f.promise)) : null;
678
+ var s = A, a = ls(), l = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((f) => f.promise)) : null;
679
679
  function u(f) {
680
680
  a();
681
681
  try {
682
682
  n(f);
683
- } catch (d) {
684
- s.f & 16384 || Ne(d, s);
683
+ } catch (h) {
684
+ s.f & 16384 || Ne(h, s);
685
685
  }
686
686
  ur();
687
687
  }
@@ -689,38 +689,38 @@ function ns(e, t, r, n) {
689
689
  l.then(() => u(t.map(i)));
690
690
  return;
691
691
  }
692
- var p = Ti();
693
- function v() {
694
- Promise.all(r.map((f) => /* @__PURE__ */ os(f))).then((f) => u([...t.map(i), ...f])).catch((f) => Ne(f, s)).finally(() => p());
692
+ var d = Ai();
693
+ function p() {
694
+ Promise.all(r.map((f) => /* @__PURE__ */ cs(f))).then((f) => u([...t.map(i), ...f])).catch((f) => Ne(f, s)).finally(() => d());
695
695
  }
696
696
  l ? l.then(() => {
697
- a(), v(), ur();
698
- }) : v();
697
+ a(), p(), ur();
698
+ }) : p();
699
699
  }
700
- function is() {
701
- var e = A, t = I, r = z, n = L;
700
+ function ls() {
701
+ var e = A, t = I, r = z, n = R;
702
702
  if (0) var i;
703
703
  return function(s = !0) {
704
704
  _e(e), ie(t), vt(r), s && !(e.f & 16384) && (n?.activate(), n?.apply());
705
705
  };
706
706
  }
707
707
  function ur(e = !0) {
708
- _e(null), ie(null), vt(null), e && L?.deactivate();
708
+ _e(null), ie(null), vt(null), e && R?.deactivate();
709
709
  }
710
- function Ti() {
711
- var e = A.b, t = L, r = e.is_rendered();
710
+ function Ai() {
711
+ var e = A.b, t = R, r = e.is_rendered();
712
712
  return e.update_pending_count(1, t), t.increment(r), (n = !1) => {
713
713
  e.update_pending_count(-1, t), t.decrement(r, n);
714
714
  };
715
715
  }
716
716
  // @__NO_SIDE_EFFECTS__
717
- function gr(e) {
717
+ function _r(e) {
718
718
  var t = 2 | me, r = I !== null && I.f & 2 ? I : null;
719
719
  return A !== null && (A.f |= mt), {
720
720
  ctx: z,
721
721
  deps: null,
722
722
  effects: null,
723
- equals: ni,
723
+ equals: si,
724
724
  f: t,
725
725
  fn: e,
726
726
  reactions: null,
@@ -732,117 +732,117 @@ function gr(e) {
732
732
  };
733
733
  }
734
734
  // @__NO_SIDE_EFFECTS__
735
- function os(e, t, r) {
735
+ function cs(e, t, r) {
736
736
  let n = A;
737
- n === null && $o();
737
+ n === null && Ro();
738
738
  var i = void 0, o = tt(W), s = !I, a = /* @__PURE__ */ new Map();
739
- return ms(() => {
740
- var l = A, u = ei();
739
+ return Ts(() => {
740
+ var l = A, u = ni();
741
741
  i = u.promise;
742
742
  try {
743
743
  Promise.resolve(e()).then(u.resolve, u.reject).finally(ur);
744
- } catch (d) {
745
- u.reject(d), ur();
744
+ } catch (h) {
745
+ u.reject(h), ur();
746
746
  }
747
- var p = L;
747
+ var d = R;
748
748
  if (s) {
749
- if (l.f & 32768) var v = Ti();
749
+ if (l.f & 32768) var p = Ai();
750
750
  if (n.b.is_rendered())
751
- a.get(p)?.reject(Ae), a.delete(p);
751
+ a.get(d)?.reject(Ae), a.delete(d);
752
752
  else {
753
- for (const d of a.values()) d.reject(Ae);
753
+ for (const h of a.values()) h.reject(Ae);
754
754
  a.clear();
755
755
  }
756
- a.set(p, u);
756
+ a.set(d, u);
757
757
  }
758
- const f = (d, g = void 0) => {
759
- if (v && v(g === Ae), !(g === Ae || l.f & 16384)) {
760
- if (p.activate(), g)
758
+ const f = (h, g = void 0) => {
759
+ if (p && p(g === Ae), !(g === Ae || l.f & 16384)) {
760
+ if (d.activate(), g)
761
761
  o.f |= sr, gt(o, g);
762
762
  else {
763
- o.f & 8388608 && (o.f ^= sr), gt(o, d);
764
- for (const [w, h] of a) {
765
- if (a.delete(w), w === p) break;
766
- h.reject(Ae);
763
+ o.f & 8388608 && (o.f ^= sr), gt(o, h);
764
+ for (const [w, v] of a) {
765
+ if (a.delete(w), w === d) break;
766
+ v.reject(Ae);
767
767
  }
768
768
  }
769
- p.deactivate();
769
+ d.deactivate();
770
770
  }
771
771
  };
772
- u.promise.then(f, (d) => f(null, d || "unknown"));
773
- }), ps(() => {
772
+ u.promise.then(f, (h) => f(null, h || "unknown"));
773
+ }), bs(() => {
774
774
  for (const l of a.values()) l.reject(Ae);
775
775
  }), new Promise((l) => {
776
- function u(p) {
777
- function v() {
778
- p === i ? l(o) : u(i);
776
+ function u(d) {
777
+ function p() {
778
+ d === i ? l(o) : u(i);
779
779
  }
780
- p.then(v, v);
780
+ d.then(p, p);
781
781
  }
782
782
  u(i);
783
783
  });
784
784
  }
785
785
  // @__NO_SIDE_EFFECTS__
786
- function kr(e) {
787
- const t = /* @__PURE__ */ gr(e);
788
- return je || zi(t), t;
786
+ function Ar(e) {
787
+ const t = /* @__PURE__ */ _r(e);
788
+ return je || Hi(t), t;
789
789
  }
790
790
  // @__NO_SIDE_EFFECTS__
791
- function Jr(e) {
792
- const t = /* @__PURE__ */ gr(e);
793
- return t.equals = ii, t;
791
+ function Zr(e) {
792
+ const t = /* @__PURE__ */ _r(e);
793
+ return t.equals = ai, t;
794
794
  }
795
- function ss(e) {
795
+ function us(e) {
796
796
  var t = e.effects;
797
797
  if (t !== null) {
798
798
  e.effects = null;
799
- for (var r = 0; r < t.length; r += 1) H(t[r]);
799
+ for (var r = 0; r < t.length; r += 1) F(t[r]);
800
800
  }
801
801
  }
802
- function as(e) {
802
+ function fs(e) {
803
803
  for (var t = e.parent; t !== null; ) {
804
804
  if (!(t.f & 2)) return t.f & 16384 ? null : t;
805
805
  t = t.parent;
806
806
  }
807
807
  return null;
808
808
  }
809
- function Qr(e) {
809
+ function en(e) {
810
810
  var t, r = A;
811
- if (_e(as(e)), 0)
811
+ if (_e(fs(e)), 0)
812
812
  try {
813
813
  } finally {
814
814
  }
815
815
  else try {
816
- e.f &= ~Mt, ss(e), t = Hi(e);
816
+ e.f &= ~xt, us(e), t = Ui(e);
817
817
  } finally {
818
818
  _e(r);
819
819
  }
820
820
  return t;
821
821
  }
822
- function Si(e) {
823
- var t = e.v, r = Qr(e);
824
- if (!e.equals(r) && (e.wv = Bi(), (!L?.is_fork || e.deps === null) && (e.v = r, L?.capture(e, t), e.deps === null))) {
822
+ function Ii(e) {
823
+ var t = e.v, r = en(e);
824
+ if (!e.equals(r) && (e.wv = qi(), (!R?.is_fork || e.deps === null) && (e.v = r, R?.capture(e, t), e.deps === null))) {
825
825
  N(e, re);
826
826
  return;
827
827
  }
828
- ze || (K !== null ? (tn() || L?.is_fork) && K.set(e, r) : Ur(e));
828
+ ze || (K !== null ? (nn() || R?.is_fork) && K.set(e, r) : Yr(e));
829
829
  }
830
- function ls(e) {
830
+ function ds(e) {
831
831
  if (e.effects !== null)
832
- for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ae), t.teardown = bo, t.ac = null, xt(t, 0), on(t));
832
+ for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ae), t.teardown = So, t.ac = null, Ct(t, 0), an(t));
833
833
  }
834
- function ki(e) {
834
+ function $i(e) {
835
835
  if (e.effects !== null)
836
836
  for (const t of e.effects) t.teardown && _t(t);
837
837
  }
838
- var Vr = /* @__PURE__ */ new Set(), Ve = /* @__PURE__ */ new Map();
839
- var Ai = !1;
838
+ var zr = /* @__PURE__ */ new Set(), Ve = /* @__PURE__ */ new Map();
839
+ var Ei = !1;
840
840
  function tt(e, t) {
841
841
  var r = {
842
842
  f: 0,
843
843
  v: e,
844
844
  reactions: null,
845
- equals: ni,
845
+ equals: si,
846
846
  rv: 0,
847
847
  wv: 0
848
848
  };
@@ -851,19 +851,19 @@ function tt(e, t) {
851
851
  // @__NO_SIDE_EFFECTS__
852
852
  function j(e, t) {
853
853
  const r = tt(e, t);
854
- return zi(r), r;
854
+ return Hi(r), r;
855
855
  }
856
856
  // @__NO_SIDE_EFFECTS__
857
- function Ii(e, t = !1, r = !0) {
857
+ function Oi(e, t = !1, r = !0) {
858
858
  const n = tt(e);
859
- if (t || (n.equals = ii), pr && r && z !== null && z.l !== null) {
859
+ if (t || (n.equals = ai), gr && r && z !== null && z.l !== null) {
860
860
  var i;
861
861
  ((i = z.l).s ?? (i.s = [])).push(n);
862
862
  }
863
863
  return n;
864
864
  }
865
865
  function E(e, t, r = !1) {
866
- I !== null && (!fe || I.f & 131072) && Nt() && I.f & 4325394 && (te === null || !ht.call(te, e)) && Do();
866
+ I !== null && (!fe || I.f & 131072) && Nt() && I.f & 4325394 && (te === null || !ht.call(te, e)) && Wo();
867
867
  let n = r ? Ue(t) : t;
868
868
  return gt(e, n, lr);
869
869
  }
@@ -874,22 +874,22 @@ function gt(e, t, r = null) {
874
874
  var i = it.ensure();
875
875
  if (i.capture(e, n), e.f & 2) {
876
876
  const o = e;
877
- e.f & 2048 && Qr(o), K === null && Ur(o);
877
+ e.f & 2048 && en(o), K === null && Yr(o);
878
878
  }
879
- e.wv = Bi(), $i(e, me, r), Nt() && A !== null && A.f & 1024 && !(A.f & 96) && (ee === null ? Ts([e]) : ee.push(e)), !i.is_fork && Vr.size > 0 && !Ai && cs();
879
+ e.wv = qi(), Li(e, me, r), Nt() && A !== null && A.f & 1024 && !(A.f & 96) && (ee === null ? Is([e]) : ee.push(e)), !i.is_fork && zr.size > 0 && !Ei && hs();
880
880
  }
881
881
  return t;
882
882
  }
883
- function cs() {
884
- Ai = !1;
885
- for (const e of Vr)
883
+ function hs() {
884
+ Ei = !1;
885
+ for (const e of zr)
886
886
  e.f & 1024 && N(e, nt), Dt(e) && _t(e);
887
- Vr.clear();
887
+ zr.clear();
888
888
  }
889
- function Lt(e) {
889
+ function Rt(e) {
890
890
  E(e, e.v + 1);
891
891
  }
892
- function $i(e, t, r) {
892
+ function Li(e, t, r) {
893
893
  var n = e.reactions;
894
894
  if (n !== null)
895
895
  for (var i = Nt(), o = n.length, s = 0; s < o; s++) {
@@ -897,139 +897,139 @@ function $i(e, t, r) {
897
897
  if (!(!i && a === A)) {
898
898
  var u = (l & me) === 0;
899
899
  if (u && N(a, t), l & 2) {
900
- var p = a;
901
- K?.delete(p), l & 65536 || (l & 512 && (a.f |= Mt), $i(p, nt, r));
900
+ var d = a;
901
+ K?.delete(d), l & 65536 || (l & 512 && (a.f |= xt), Li(d, nt, r));
902
902
  } else if (u) {
903
- var v = a;
904
- l & 16 && ge !== null && ge.add(v), r !== null ? r.push(v) : Yr(v);
903
+ var p = a;
904
+ l & 16 && ge !== null && ge.add(p), r !== null ? r.push(p) : Jr(p);
905
905
  }
906
906
  }
907
907
  }
908
908
  }
909
- var us = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
909
+ var vs = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
910
910
  function Ue(e) {
911
911
  if (typeof e != "object" || e === null || Ot in e) return e;
912
- const t = Zn(e);
913
- if (t !== _o && t !== mo) return e;
914
- var r = /* @__PURE__ */ new Map(), n = Qn(e), i = /* @__PURE__ */ j(0), o = null, s = Ze, a = (v) => {
915
- if (Ze === s) return v();
916
- var f = I, d = Ze;
917
- ie(null), Cn(s);
918
- var g = v();
919
- return ie(f), Cn(d), g;
912
+ const t = ri(e);
913
+ if (t !== wo && t !== To) return e;
914
+ var r = /* @__PURE__ */ new Map(), n = ti(e), i = /* @__PURE__ */ j(0), o = null, s = Ze, a = (p) => {
915
+ if (Ze === s) return p();
916
+ var f = I, h = Ze;
917
+ ie(null), xn(s);
918
+ var g = p();
919
+ return ie(f), xn(h), g;
920
920
  };
921
921
  n && r.set("length", /* @__PURE__ */ j(e.length, o));
922
922
  var l = "";
923
923
  let u = !1;
924
- function p(v) {
924
+ function d(p) {
925
925
  if (!u) {
926
- u = !0, l = v, Sn(i, `${l} version`);
927
- for (const [f, d] of r) Sn(d, fs(l, f));
926
+ u = !0, l = p, An(i, `${l} version`);
927
+ for (const [f, h] of r) An(h, ps(l, f));
928
928
  u = !1;
929
929
  }
930
930
  }
931
931
  return new Proxy(e, {
932
- defineProperty(v, f, d) {
933
- (!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && Mo();
932
+ defineProperty(p, f, h) {
933
+ (!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) && jo();
934
934
  var g = r.get(f);
935
935
  return g === void 0 ? a(() => {
936
- var w = /* @__PURE__ */ j(d.value, o);
936
+ var w = /* @__PURE__ */ j(h.value, o);
937
937
  return r.set(f, w), w;
938
- }) : E(g, d.value, !0), !0;
938
+ }) : E(g, h.value, !0), !0;
939
939
  },
940
- deleteProperty(v, f) {
941
- var d = r.get(f);
942
- if (d === void 0) {
943
- if (f in v) {
940
+ deleteProperty(p, f) {
941
+ var h = r.get(f);
942
+ if (h === void 0) {
943
+ if (f in p) {
944
944
  const g = a(() => /* @__PURE__ */ j(W, o));
945
- r.set(f, g), Lt(i);
945
+ r.set(f, g), Rt(i);
946
946
  }
947
947
  } else
948
- E(d, W), Lt(i);
948
+ E(h, W), Rt(i);
949
949
  return !0;
950
950
  },
951
- get(v, f, d) {
951
+ get(p, f, h) {
952
952
  if (f === Ot) return e;
953
- var g = r.get(f), w = f in v;
954
- if (g === void 0 && (!w || Ye(v, f)?.writable) && (g = a(() => {
955
- var y = /* @__PURE__ */ j(Ue(w ? v[f] : W), o);
953
+ var g = r.get(f), w = f in p;
954
+ if (g === void 0 && (!w || Ye(p, f)?.writable) && (g = a(() => {
955
+ var y = /* @__PURE__ */ j(Ue(w ? p[f] : W), o);
956
956
  return y;
957
957
  }), r.set(f, g)), g !== void 0) {
958
- var h = _(g);
959
- return h === W ? void 0 : h;
958
+ var v = _(g);
959
+ return v === W ? void 0 : v;
960
960
  }
961
- return Reflect.get(v, f, d);
961
+ return Reflect.get(p, f, h);
962
962
  },
963
- getOwnPropertyDescriptor(v, f) {
964
- var d = Reflect.getOwnPropertyDescriptor(v, f);
965
- if (d && "value" in d) {
963
+ getOwnPropertyDescriptor(p, f) {
964
+ var h = Reflect.getOwnPropertyDescriptor(p, f);
965
+ if (h && "value" in h) {
966
966
  var g = r.get(f);
967
- g && (d.value = _(g));
968
- } else if (d === void 0) {
969
- var w = r.get(f), h = w?.v;
970
- if (w !== void 0 && h !== W) return {
967
+ g && (h.value = _(g));
968
+ } else if (h === void 0) {
969
+ var w = r.get(f), v = w?.v;
970
+ if (w !== void 0 && v !== W) return {
971
971
  enumerable: !0,
972
972
  configurable: !0,
973
- value: h,
973
+ value: v,
974
974
  writable: !0
975
975
  };
976
976
  }
977
- return d;
977
+ return h;
978
978
  },
979
- has(v, f) {
979
+ has(p, f) {
980
980
  if (f === Ot) return !0;
981
- var d = r.get(f), g = d !== void 0 && d.v !== W || Reflect.has(v, f);
982
- return (d !== void 0 || A !== null && (!g || Ye(v, f)?.writable)) && (d === void 0 && (d = a(() => {
983
- var w = /* @__PURE__ */ j(g ? Ue(v[f]) : W, o);
981
+ var h = r.get(f), g = h !== void 0 && h.v !== W || Reflect.has(p, f);
982
+ return (h !== void 0 || A !== null && (!g || Ye(p, f)?.writable)) && (h === void 0 && (h = a(() => {
983
+ var w = /* @__PURE__ */ j(g ? Ue(p[f]) : W, o);
984
984
  return w;
985
- }), r.set(f, d)), _(d) === W) ? !1 : g;
985
+ }), r.set(f, h)), _(h) === W) ? !1 : g;
986
986
  },
987
- set(v, f, d, g) {
988
- var w = r.get(f), h = f in v;
989
- if (n && f === "length") for (var y = d; y < w.v; y += 1) {
990
- var M = r.get(y + "");
991
- M !== void 0 ? E(M, W) : y in v && (M = a(() => /* @__PURE__ */ j(W, o)), r.set(y + "", M));
987
+ set(p, f, h, g) {
988
+ var w = r.get(f), v = f in p;
989
+ if (n && f === "length") for (var y = h; y < w.v; y += 1) {
990
+ var x = r.get(y + "");
991
+ x !== void 0 ? E(x, W) : y in p && (x = a(() => /* @__PURE__ */ j(W, o)), r.set(y + "", x));
992
992
  }
993
993
  if (w === void 0)
994
- (!h || Ye(v, f)?.writable) && (w = a(() => /* @__PURE__ */ j(void 0, o)), E(w, Ue(d)), r.set(f, w));
994
+ (!v || Ye(p, f)?.writable) && (w = a(() => /* @__PURE__ */ j(void 0, o)), E(w, Ue(h)), r.set(f, w));
995
995
  else {
996
- h = w.v !== W;
997
- var $ = a(() => Ue(d));
996
+ v = w.v !== W;
997
+ var $ = a(() => Ue(h));
998
998
  E(w, $);
999
999
  }
1000
- var C = Reflect.getOwnPropertyDescriptor(v, f);
1001
- if (C?.set && C.set.call(g, d), !h) {
1000
+ var P = Reflect.getOwnPropertyDescriptor(p, f);
1001
+ if (P?.set && P.set.call(g, h), !v) {
1002
1002
  if (n && typeof f == "string") {
1003
1003
  var B = r.get("length"), D = Number(f);
1004
1004
  Number.isInteger(D) && D >= B.v && E(B, D + 1);
1005
1005
  }
1006
- Lt(i);
1006
+ Rt(i);
1007
1007
  }
1008
1008
  return !0;
1009
1009
  },
1010
- ownKeys(v) {
1010
+ ownKeys(p) {
1011
1011
  _(i);
1012
- var f = Reflect.ownKeys(v).filter((w) => {
1013
- var h = r.get(w);
1014
- return h === void 0 || h.v !== W;
1012
+ var f = Reflect.ownKeys(p).filter((w) => {
1013
+ var v = r.get(w);
1014
+ return v === void 0 || v.v !== W;
1015
1015
  });
1016
- for (var [d, g] of r) g.v !== W && !(d in v) && f.push(d);
1016
+ for (var [h, g] of r) g.v !== W && !(h in p) && f.push(h);
1017
1017
  return f;
1018
1018
  },
1019
1019
  setPrototypeOf() {
1020
- No();
1020
+ zo();
1021
1021
  }
1022
1022
  });
1023
1023
  }
1024
- function fs(e, t) {
1025
- return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : us.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1024
+ function ps(e, t) {
1025
+ return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : vs.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1026
1026
  }
1027
- var Rn, ds, Ei, Oi, Ri;
1028
- function jr() {
1029
- if (Rn === void 0) {
1030
- Rn = window, ds = document, Ei = /Firefox/.test(navigator.userAgent);
1027
+ var Mn, gs, Ri, Mi, Pi;
1028
+ function Wr() {
1029
+ if (Mn === void 0) {
1030
+ Mn = window, gs = document, Ri = /Firefox/.test(navigator.userAgent);
1031
1031
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1032
- Oi = Ye(t, "firstChild").get, Ri = Ye(t, "nextSibling").get, yn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), yn(r) && (r.__t = void 0);
1032
+ Mi = Ye(t, "firstChild").get, Pi = Ye(t, "nextSibling").get, Tn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Tn(r) && (r.__t = void 0);
1033
1033
  }
1034
1034
  }
1035
1035
  function de(e = "") {
@@ -1037,67 +1037,67 @@ function de(e = "") {
1037
1037
  }
1038
1038
  // @__NO_SIDE_EFFECTS__
1039
1039
  function rt(e) {
1040
- return Oi.call(e);
1040
+ return Mi.call(e);
1041
1041
  }
1042
1042
  // @__NO_SIDE_EFFECTS__
1043
1043
  function be(e) {
1044
- return Ri.call(e);
1044
+ return Pi.call(e);
1045
1045
  }
1046
1046
  function Kt(e, t) {
1047
- if (!P) return /* @__PURE__ */ rt(e);
1048
- var r = /* @__PURE__ */ rt(R);
1049
- if (r === null) r = R.appendChild(de());
1047
+ if (!M) return /* @__PURE__ */ rt(e);
1048
+ var r = /* @__PURE__ */ rt(L);
1049
+ if (r === null) r = L.appendChild(de());
1050
1050
  else if (t && r.nodeType !== 3) {
1051
1051
  var n = de();
1052
1052
  return r?.before(n), Y(n), n;
1053
1053
  }
1054
- return t && en(r), Y(r), r;
1054
+ return t && rn(r), Y(r), r;
1055
1055
  }
1056
- function Ar(e, t = !1) {
1057
- if (!P) {
1056
+ function Ir(e, t = !1) {
1057
+ if (!M) {
1058
1058
  var r = /* @__PURE__ */ rt(e);
1059
1059
  return r instanceof Comment && r.data === "" ? /* @__PURE__ */ be(r) : r;
1060
1060
  }
1061
1061
  if (t) {
1062
- if (R?.nodeType !== 3) {
1062
+ if (L?.nodeType !== 3) {
1063
1063
  var n = de();
1064
- return R?.before(n), Y(n), n;
1064
+ return L?.before(n), Y(n), n;
1065
1065
  }
1066
- en(R);
1066
+ rn(L);
1067
1067
  }
1068
- return R;
1068
+ return L;
1069
1069
  }
1070
- function Re(e, t = 1, r = !1) {
1071
- let n = P ? R : e;
1070
+ function Le(e, t = 1, r = !1) {
1071
+ let n = M ? L : e;
1072
1072
  for (var i; t--; )
1073
1073
  i = n, n = /* @__PURE__ */ be(n);
1074
- if (!P) return n;
1074
+ if (!M) return n;
1075
1075
  if (r) {
1076
1076
  if (n?.nodeType !== 3) {
1077
1077
  var o = de();
1078
1078
  return n === null ? i?.after(o) : n.before(o), Y(o), o;
1079
1079
  }
1080
- en(n);
1080
+ rn(n);
1081
1081
  }
1082
1082
  return Y(n), n;
1083
1083
  }
1084
- function Li(e) {
1084
+ function Ci(e) {
1085
1085
  e.textContent = "";
1086
1086
  }
1087
- function Pi() {
1088
- return !je || ge !== null ? !1 : (A.f & qr) !== 0;
1087
+ function xi() {
1088
+ return !je || ge !== null ? !1 : (A.f & Ur) !== 0;
1089
1089
  }
1090
- function Zr(e, t, r) {
1090
+ function tn(e, t, r) {
1091
1091
  let n = r ? { is: r } : void 0;
1092
1092
  return document.createElementNS(t ?? "http://www.w3.org/1999/xhtml", e, n);
1093
1093
  }
1094
- function en(e) {
1094
+ function rn(e) {
1095
1095
  if (e.nodeValue.length < 65536) return;
1096
1096
  let t = e.nextSibling;
1097
1097
  for (; t !== null && t.nodeType === 3; )
1098
1098
  t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1099
1099
  }
1100
- function Ci(e) {
1100
+ function Ni(e) {
1101
1101
  var t = I, r = A;
1102
1102
  ie(null), _e(null);
1103
1103
  try {
@@ -1106,16 +1106,16 @@ function Ci(e) {
1106
1106
  ie(t), _e(r);
1107
1107
  }
1108
1108
  }
1109
- function hs(e) {
1110
- A === null && (I === null && Lo(e), Ro()), ze && Oo(e);
1109
+ function _s(e) {
1110
+ A === null && (I === null && xo(e), Co()), ze && Po(e);
1111
1111
  }
1112
- function vs(e, t) {
1112
+ function ms(e, t) {
1113
1113
  var r = t.last;
1114
1114
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1115
1115
  }
1116
1116
  function ye(e, t) {
1117
1117
  var r = A;
1118
- r !== null && r.f & 8192 && (e |= Hr);
1118
+ r !== null && r.f & 8192 && (e |= Gr);
1119
1119
  var n = {
1120
1120
  ctx: z,
1121
1121
  deps: null,
@@ -1137,166 +1137,166 @@ function ye(e, t) {
1137
1137
  try {
1138
1138
  _t(n);
1139
1139
  } catch (s) {
1140
- throw H(n), s;
1140
+ throw F(n), s;
1141
1141
  }
1142
- i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= Gr));
1142
+ i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= Kr));
1143
1143
  }
1144
- if (i !== null && (i.parent = r, r !== null && vs(i, r), I !== null && I.f & 2 && !(e & 64))) {
1144
+ if (i !== null && (i.parent = r, r !== null && ms(i, r), I !== null && I.f & 2 && !(e & 64))) {
1145
1145
  var o = I;
1146
1146
  (o.effects ?? (o.effects = [])).push(i);
1147
1147
  }
1148
1148
  return n;
1149
1149
  }
1150
- function tn() {
1150
+ function nn() {
1151
1151
  return I !== null && !fe;
1152
1152
  }
1153
- function ps(e) {
1153
+ function bs(e) {
1154
1154
  const t = ye(8, null);
1155
1155
  return N(t, re), t.teardown = e, t;
1156
1156
  }
1157
- function Ln(e) {
1158
- hs("$effect");
1157
+ function Pn(e) {
1158
+ _s("$effect");
1159
1159
  var t = A.f;
1160
1160
  if (!I && t & 32 && !(t & 32768)) {
1161
1161
  var r = z;
1162
1162
  (r.e ?? (r.e = [])).push(e);
1163
- } else return xi(e);
1163
+ } else return Di(e);
1164
1164
  }
1165
- function xi(e) {
1166
- return ye(4 | To, e);
1165
+ function Di(e) {
1166
+ return ye(4 | Io, e);
1167
1167
  }
1168
- function gs(e) {
1168
+ function ys(e) {
1169
1169
  it.ensure();
1170
1170
  const t = ye(64 | mt, e);
1171
1171
  return () => {
1172
- H(t);
1172
+ F(t);
1173
1173
  };
1174
1174
  }
1175
- function _s(e) {
1175
+ function ws(e) {
1176
1176
  it.ensure();
1177
1177
  const t = ye(64 | mt, e);
1178
1178
  return (r = {}) => new Promise((n) => {
1179
1179
  r.outro ? ot(t, () => {
1180
- H(t), n(void 0);
1181
- }) : (H(t), n(void 0));
1180
+ F(t), n(void 0);
1181
+ }) : (F(t), n(void 0));
1182
1182
  });
1183
1183
  }
1184
- function Mi(e) {
1184
+ function Vi(e) {
1185
1185
  return ye(4, e);
1186
1186
  }
1187
- function ms(e) {
1188
- return ye(So | mt, e);
1187
+ function Ts(e) {
1188
+ return ye($o | mt, e);
1189
1189
  }
1190
- function rn(e, t = 0) {
1190
+ function on(e, t = 0) {
1191
1191
  return ye(8 | t, e);
1192
1192
  }
1193
1193
  function Yt(e, t = [], r = [], n = []) {
1194
- ns(n, t, r, (i) => {
1194
+ as(n, t, r, (i) => {
1195
1195
  ye(8, () => e(...i.map(_)));
1196
1196
  });
1197
1197
  }
1198
- function nn(e, t = 0) {
1198
+ function sn(e, t = 0) {
1199
1199
  var r = ye(16 | t, e);
1200
1200
  return r;
1201
1201
  }
1202
1202
  function ne(e) {
1203
1203
  return ye(32 | mt, e);
1204
1204
  }
1205
- function Ni(e) {
1205
+ function ji(e) {
1206
1206
  var t = e.teardown;
1207
1207
  if (t !== null) {
1208
1208
  const r = ze, n = I;
1209
- Pn(!0), ie(null);
1209
+ Cn(!0), ie(null);
1210
1210
  try {
1211
1211
  t.call(null);
1212
1212
  } finally {
1213
- Pn(r), ie(n);
1213
+ Cn(r), ie(n);
1214
1214
  }
1215
1215
  }
1216
1216
  }
1217
- function on(e, t = !1) {
1217
+ function an(e, t = !1) {
1218
1218
  var r = e.first;
1219
1219
  for (e.first = e.last = null; r !== null; ) {
1220
1220
  const i = r.ac;
1221
- i !== null && Ci(() => {
1221
+ i !== null && Ni(() => {
1222
1222
  i.abort(Ae);
1223
1223
  });
1224
1224
  var n = r.next;
1225
- r.f & 64 ? r.parent = null : H(r, t), r = n;
1225
+ r.f & 64 ? r.parent = null : F(r, t), r = n;
1226
1226
  }
1227
1227
  }
1228
- function bs(e) {
1228
+ function Ss(e) {
1229
1229
  for (var t = e.first; t !== null; ) {
1230
1230
  var r = t.next;
1231
- t.f & 32 || H(t), t = r;
1231
+ t.f & 32 || F(t), t = r;
1232
1232
  }
1233
1233
  }
1234
- function H(e, t = !0) {
1234
+ function F(e, t = !0) {
1235
1235
  var r = !1;
1236
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (ys(e.nodes.start, e.nodes.end), r = !0), N(e, wn), on(e, t && !r), xt(e, 0);
1236
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (ks(e.nodes.start, e.nodes.end), r = !0), N(e, Sn), an(e, t && !r), Ct(e, 0);
1237
1237
  var n = e.nodes && e.nodes.t;
1238
1238
  if (n !== null) for (const o of n) o.stop();
1239
- Ni(e), e.f ^= wn, e.f |= wo;
1239
+ ji(e), e.f ^= Sn, e.f |= Ao;
1240
1240
  var i = e.parent;
1241
- i !== null && i.first !== null && Di(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1241
+ i !== null && i.first !== null && zi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1242
1242
  }
1243
- function ys(e, t) {
1243
+ function ks(e, t) {
1244
1244
  for (; e !== null; ) {
1245
1245
  var r = e === t ? null : /* @__PURE__ */ be(e);
1246
1246
  e.remove(), e = r;
1247
1247
  }
1248
1248
  }
1249
- function Di(e) {
1249
+ function zi(e) {
1250
1250
  var t = e.parent, r = e.prev, n = e.next;
1251
1251
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1252
1252
  }
1253
1253
  function ot(e, t, r = !0) {
1254
1254
  var n = [];
1255
- Vi(e, n, !0);
1255
+ Wi(e, n, !0);
1256
1256
  var i = () => {
1257
- r && H(e), t && t();
1257
+ r && F(e), t && t();
1258
1258
  }, o = n.length;
1259
1259
  if (o > 0) {
1260
1260
  var s = () => --o || i();
1261
1261
  for (var a of n) a.out(s);
1262
1262
  } else i();
1263
1263
  }
1264
- function Vi(e, t, r) {
1264
+ function Wi(e, t, r) {
1265
1265
  if (!(e.f & 8192)) {
1266
- e.f ^= Hr;
1266
+ e.f ^= Gr;
1267
1267
  var n = e.nodes && e.nodes.t;
1268
1268
  if (n !== null)
1269
1269
  for (const a of n) (a.is_global || r) && t.push(a);
1270
1270
  for (var i = e.first; i !== null; ) {
1271
1271
  var o = i.next, s = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
1272
- Vi(i, t, s ? r : !1), i = o;
1272
+ Wi(i, t, s ? r : !1), i = o;
1273
1273
  }
1274
1274
  }
1275
1275
  }
1276
- function sn(e) {
1277
- ji(e, !0);
1276
+ function ln(e) {
1277
+ Bi(e, !0);
1278
1278
  }
1279
- function ji(e, t) {
1279
+ function Bi(e, t) {
1280
1280
  if (e.f & 8192) {
1281
- e.f ^= Hr, e.f & 1024 || (N(e, me), it.ensure().schedule(e));
1281
+ e.f ^= Gr, e.f & 1024 || (N(e, me), it.ensure().schedule(e));
1282
1282
  for (var r = e.first; r !== null; ) {
1283
1283
  var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
1284
- ji(r, i ? t : !1), r = n;
1284
+ Bi(r, i ? t : !1), r = n;
1285
1285
  }
1286
1286
  var o = e.nodes && e.nodes.t;
1287
1287
  if (o !== null)
1288
1288
  for (const s of o) (s.is_global || t) && s.in();
1289
1289
  }
1290
1290
  }
1291
- function an(e, t) {
1291
+ function cn(e, t) {
1292
1292
  if (e.nodes)
1293
1293
  for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
1294
1294
  var i = r === n ? null : /* @__PURE__ */ be(r);
1295
1295
  t.append(r), r = i;
1296
1296
  }
1297
1297
  }
1298
- var ws = null, er = !1, ze = !1;
1299
- function Pn(e) {
1298
+ var As = null, er = !1, ze = !1;
1299
+ function Cn(e) {
1300
1300
  ze = e;
1301
1301
  }
1302
1302
  var I = null, fe = !1;
@@ -1308,77 +1308,77 @@ function _e(e) {
1308
1308
  A = e;
1309
1309
  }
1310
1310
  var te = null;
1311
- function zi(e) {
1311
+ function Hi(e) {
1312
1312
  I !== null && (!je || I.f & 2) && (te === null ? te = [e] : te.push(e));
1313
1313
  }
1314
1314
  var U = null, J = 0, ee = null;
1315
- function Ts(e) {
1315
+ function Is(e) {
1316
1316
  ee = e;
1317
1317
  }
1318
- var Wi = 1, Ke = 0, Ze = Ke;
1319
- function Cn(e) {
1318
+ var Fi = 1, Ke = 0, Ze = Ke;
1319
+ function xn(e) {
1320
1320
  Ze = e;
1321
1321
  }
1322
- function Bi() {
1323
- return ++Wi;
1322
+ function qi() {
1323
+ return ++Fi;
1324
1324
  }
1325
1325
  function Dt(e) {
1326
1326
  var t = e.f;
1327
1327
  if (t & 2048) return !0;
1328
- if (t & 2 && (e.f &= ~Mt), t & 4096) {
1328
+ if (t & 2 && (e.f &= ~xt), t & 4096) {
1329
1329
  for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
1330
1330
  var o = r[i];
1331
- if (Dt(o) && Si(o), o.wv > e.wv) return !0;
1331
+ if (Dt(o) && Ii(o), o.wv > e.wv) return !0;
1332
1332
  }
1333
1333
  t & 512 && K === null && N(e, re);
1334
1334
  }
1335
1335
  return !1;
1336
1336
  }
1337
- function Fi(e, t, r = !0) {
1337
+ function Gi(e, t, r = !0) {
1338
1338
  var n = e.reactions;
1339
1339
  if (n !== null && !(!je && te !== null && ht.call(te, e)))
1340
1340
  for (var i = 0; i < n.length; i++) {
1341
1341
  var o = n[i];
1342
- o.f & 2 ? Fi(o, t, !1) : t === o && (r ? N(o, me) : o.f & 1024 && N(o, nt), Yr(o));
1342
+ o.f & 2 ? Gi(o, t, !1) : t === o && (r ? N(o, me) : o.f & 1024 && N(o, nt), Jr(o));
1343
1343
  }
1344
1344
  }
1345
- function Hi(e) {
1345
+ function Ui(e) {
1346
1346
  var t = U, r = J, n = ee, i = I, o = te, s = z, a = fe, l = Ze, u = e.f;
1347
- U = null, J = 0, ee = null, I = u & 96 ? null : e, te = null, vt(e.ctx), fe = !1, Ze = ++Ke, e.ac !== null && (Ci(() => {
1347
+ U = null, J = 0, ee = null, I = u & 96 ? null : e, te = null, vt(e.ctx), fe = !1, Ze = ++Ke, e.ac !== null && (Ni(() => {
1348
1348
  e.ac.abort(Ae);
1349
1349
  }), e.ac = null);
1350
1350
  try {
1351
- e.f |= Tn;
1352
- var p = e.fn, v = p();
1353
- e.f |= qr;
1354
- var f = e.deps, d = L?.is_fork;
1351
+ e.f |= kn;
1352
+ var d = e.fn, p = d();
1353
+ e.f |= Ur;
1354
+ var f = e.deps, h = R?.is_fork;
1355
1355
  if (U !== null) {
1356
1356
  var g;
1357
- if (d || xt(e, J), f !== null && J > 0)
1357
+ if (h || Ct(e, J), f !== null && J > 0)
1358
1358
  for (f.length = J + U.length, g = 0; g < U.length; g++) f[J + g] = U[g];
1359
1359
  else e.deps = f = U;
1360
- if (tn() && e.f & 512) for (g = J; g < f.length; g++) {
1360
+ if (nn() && e.f & 512) for (g = J; g < f.length; g++) {
1361
1361
  var w;
1362
1362
  ((w = f[g]).reactions ?? (w.reactions = [])).push(e);
1363
1363
  }
1364
- } else !d && f !== null && J < f.length && (xt(e, J), f.length = J);
1365
- if (Nt() && ee !== null && !fe && f !== null && !(e.f & 6146)) for (g = 0; g < ee.length; g++) Fi(ee[g], e);
1364
+ } else !h && f !== null && J < f.length && (Ct(e, J), f.length = J);
1365
+ if (Nt() && ee !== null && !fe && f !== null && !(e.f & 6146)) for (g = 0; g < ee.length; g++) Gi(ee[g], e);
1366
1366
  if (i !== null && i !== e) {
1367
- if (Ke++, i.deps !== null) for (let h = 0; h < r; h += 1) i.deps[h].rv = Ke;
1368
- if (t !== null) for (const h of t) h.rv = Ke;
1367
+ if (Ke++, i.deps !== null) for (let v = 0; v < r; v += 1) i.deps[v].rv = Ke;
1368
+ if (t !== null) for (const v of t) v.rv = Ke;
1369
1369
  ee !== null && (n === null ? n = ee : n.push(...ee));
1370
1370
  }
1371
- return e.f & 8388608 && (e.f ^= sr), v;
1372
- } catch (h) {
1373
- return li(h);
1371
+ return e.f & 8388608 && (e.f ^= sr), p;
1372
+ } catch (v) {
1373
+ return fi(v);
1374
1374
  } finally {
1375
- e.f ^= Tn, U = t, J = r, ee = n, I = i, te = o, vt(s), fe = a, Ze = l;
1375
+ e.f ^= kn, U = t, J = r, ee = n, I = i, te = o, vt(s), fe = a, Ze = l;
1376
1376
  }
1377
1377
  }
1378
- function Ss(e, t) {
1378
+ function $s(e, t) {
1379
1379
  let r = t.reactions;
1380
1380
  if (r !== null) {
1381
- var n = po.call(r, e);
1381
+ var n = bo.call(r, e);
1382
1382
  if (n !== -1) {
1383
1383
  var i = r.length - 1;
1384
1384
  i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
@@ -1386,13 +1386,13 @@ function Ss(e, t) {
1386
1386
  }
1387
1387
  if (r === null && t.f & 2 && (U === null || !ht.call(U, t))) {
1388
1388
  var o = t;
1389
- o.f & 512 && (o.f ^= 512, o.f &= ~Mt), Ur(o), ls(o), xt(o, 0);
1389
+ o.f & 512 && (o.f ^= 512, o.f &= ~xt), Yr(o), ds(o), Ct(o, 0);
1390
1390
  }
1391
1391
  }
1392
- function xt(e, t) {
1392
+ function Ct(e, t) {
1393
1393
  var r = e.deps;
1394
1394
  if (r !== null)
1395
- for (var n = t; n < r.length; n++) Ss(e, r[n]);
1395
+ for (var n = t; n < r.length; n++) $s(e, r[n]);
1396
1396
  }
1397
1397
  function _t(e) {
1398
1398
  var t = e.f;
@@ -1402,9 +1402,9 @@ function _t(e) {
1402
1402
  if (A = e, er = !0, 0)
1403
1403
  var i, o;
1404
1404
  try {
1405
- t & 16777232 ? bs(e) : on(e), Ni(e);
1406
- var s = Hi(e);
1407
- if (e.teardown = typeof s == "function" ? s : null, e.wv = Wi, 0)
1405
+ t & 16777232 ? Ss(e) : an(e), ji(e);
1406
+ var s = Ui(e);
1407
+ if (e.teardown = typeof s == "function" ? s : null, e.wv = Fi, 0)
1408
1408
  for (var a of e.deps) ;
1409
1409
  } finally {
1410
1410
  er = n, A = r;
@@ -1413,7 +1413,7 @@ function _t(e) {
1413
1413
  }
1414
1414
  function _(e) {
1415
1415
  var t = (e.f & 2) !== 0;
1416
- if (ws?.add(e), I !== null && !fe && !(A !== null && A.f & 16384) && (te === null || !ht.call(te, e))) {
1416
+ if (As?.add(e), I !== null && !fe && !(A !== null && A.f & 16384) && (te === null || !ht.call(te, e))) {
1417
1417
  var r = I.deps;
1418
1418
  if (I.f & 2097152)
1419
1419
  e.rv < Ke && (e.rv = Ke, U === null && r !== null && r[J] === e ? J++ : U === null ? U = [e] : U.push(e));
@@ -1437,28 +1437,28 @@ function _(e) {
1437
1437
  var l = e;
1438
1438
  if (ze) {
1439
1439
  var u = l.v;
1440
- return (!(l.f & 1024) && l.reactions !== null || Gi(l)) && (u = Qr(l)), Ve.set(l, u), u;
1440
+ return (!(l.f & 1024) && l.reactions !== null || Yi(l)) && (u = en(l)), Ve.set(l, u), u;
1441
1441
  }
1442
- var p = (l.f & 512) === 0 && !fe && I !== null && (er || (I.f & 512) !== 0), v = (l.f & qr) === 0;
1443
- Dt(l) && (p && (l.f |= 512), Si(l)), p && !v && (ki(l), qi(l));
1442
+ var d = (l.f & 512) === 0 && !fe && I !== null && (er || (I.f & 512) !== 0), p = (l.f & Ur) === 0;
1443
+ Dt(l) && (d && (l.f |= 512), Ii(l)), d && !p && ($i(l), Ki(l));
1444
1444
  }
1445
1445
  if (K?.has(e)) return K.get(e);
1446
1446
  if (e.f & 8388608) throw e.v;
1447
1447
  return e.v;
1448
1448
  }
1449
- function qi(e) {
1449
+ function Ki(e) {
1450
1450
  if (e.f |= 512, e.deps !== null)
1451
1451
  for (const t of e.deps)
1452
- (t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (ki(t), qi(t));
1452
+ (t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && ($i(t), Ki(t));
1453
1453
  }
1454
- function Gi(e) {
1454
+ function Yi(e) {
1455
1455
  if (e.v === W) return !0;
1456
1456
  if (e.deps === null) return !1;
1457
1457
  for (const t of e.deps)
1458
- if (Ve.has(t) || t.f & 2 && Gi(t)) return !0;
1458
+ if (Ve.has(t) || t.f & 2 && Yi(t)) return !0;
1459
1459
  return !1;
1460
1460
  }
1461
- function ln(e) {
1461
+ function un(e) {
1462
1462
  var t = fe;
1463
1463
  try {
1464
1464
  return fe = !0, e();
@@ -1466,19 +1466,19 @@ function ln(e) {
1466
1466
  fe = t;
1467
1467
  }
1468
1468
  }
1469
- var ft = Symbol("events"), Ui = /* @__PURE__ */ new Set(), zr = /* @__PURE__ */ new Set();
1469
+ var ft = Symbol("events"), Xi = /* @__PURE__ */ new Set(), Br = /* @__PURE__ */ new Set();
1470
1470
  function Tt(e, t, r) {
1471
1471
  (t[ft] ?? (t[ft] = {}))[e] = r;
1472
1472
  }
1473
- function ks(e) {
1474
- for (var t = 0; t < e.length; t++) Ui.add(e[t]);
1475
- for (var r of zr) r(e);
1473
+ function Es(e) {
1474
+ for (var t = 0; t < e.length; t++) Xi.add(e[t]);
1475
+ for (var r of Br) r(e);
1476
1476
  }
1477
- var xn = null;
1478
- function Mn(e) {
1477
+ var Nn = null;
1478
+ function Dn(e) {
1479
1479
  var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], o = i[0] || e.target;
1480
- xn = e;
1481
- var s = 0, a = xn === e && e[ft];
1480
+ Nn = e;
1481
+ var s = 0, a = Nn === e && e[ft];
1482
1482
  if (a) {
1483
1483
  var l = i.indexOf(a);
1484
1484
  if (l !== -1 && (t === document || t === window)) {
@@ -1496,38 +1496,38 @@ function Mn(e) {
1496
1496
  return o || r;
1497
1497
  }
1498
1498
  });
1499
- var p = I, v = A;
1499
+ var d = I, p = A;
1500
1500
  ie(null), _e(null);
1501
1501
  try {
1502
- for (var f, d = []; o !== null; ) {
1502
+ for (var f, h = []; o !== null; ) {
1503
1503
  var g = o.assignedSlot || o.parentNode || o.host || null;
1504
1504
  try {
1505
1505
  var w = o[ft]?.[n];
1506
1506
  w != null && (!o.disabled || e.target === o) && w.call(o, e);
1507
- } catch (h) {
1508
- f ? d.push(h) : f = h;
1507
+ } catch (v) {
1508
+ f ? h.push(v) : f = v;
1509
1509
  }
1510
1510
  if (e.cancelBubble || g === t || g === null) break;
1511
1511
  o = g;
1512
1512
  }
1513
1513
  if (f) {
1514
- for (let h of d) queueMicrotask(() => {
1515
- throw h;
1514
+ for (let v of h) queueMicrotask(() => {
1515
+ throw v;
1516
1516
  });
1517
1517
  throw f;
1518
1518
  }
1519
1519
  } finally {
1520
- e[ft] = t, delete e.currentTarget, ie(p), _e(v);
1520
+ e[ft] = t, delete e.currentTarget, ie(d), _e(p);
1521
1521
  }
1522
1522
  }
1523
1523
  }
1524
- var As = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1525
- function Is(e) {
1526
- return As?.createHTML(e) ?? e;
1524
+ var Os = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1525
+ function Ls(e) {
1526
+ return Os?.createHTML(e) ?? e;
1527
1527
  }
1528
- function $s(e) {
1529
- var t = Zr("template");
1530
- return t.innerHTML = Is(e.replaceAll("<!>", "<!---->")), t.content;
1528
+ function Rs(e) {
1529
+ var t = tn("template");
1530
+ return t.innerHTML = Ls(e.replaceAll("<!>", "<!---->")), t.content;
1531
1531
  }
1532
1532
  function tr(e, t) {
1533
1533
  var r = A;
@@ -1542,10 +1542,10 @@ function tr(e, t) {
1542
1542
  function st(e, t) {
1543
1543
  var r = (t & 1) !== 0, n = (t & 2) !== 0, i, o = !e.startsWith("<!>");
1544
1544
  return () => {
1545
- if (P)
1546
- return tr(R, null), R;
1547
- i === void 0 && (i = $s(o ? e : "<!>" + e), r || (i = /* @__PURE__ */ rt(i)));
1548
- var s = n || Ei ? document.importNode(i, !0) : i.cloneNode(!0);
1545
+ if (M)
1546
+ return tr(L, null), L;
1547
+ i === void 0 && (i = Rs(o ? e : "<!>" + e), r || (i = /* @__PURE__ */ rt(i)));
1548
+ var s = n || Ri ? document.importNode(i, !0) : i.cloneNode(!0);
1549
1549
  if (r) {
1550
1550
  var a = /* @__PURE__ */ rt(s), l = s.lastChild;
1551
1551
  tr(a, l);
@@ -1553,15 +1553,15 @@ function st(e, t) {
1553
1553
  return s;
1554
1554
  };
1555
1555
  }
1556
- function Ce(e, t) {
1557
- if (P) {
1556
+ function Pe(e, t) {
1557
+ if (M) {
1558
1558
  var r = A;
1559
- (!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = R), vr();
1559
+ (!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = L), pr();
1560
1560
  return;
1561
1561
  }
1562
1562
  e !== null && e.before(t);
1563
1563
  }
1564
- var Es = [
1564
+ var Ms = [
1565
1565
  "allowfullscreen",
1566
1566
  "async",
1567
1567
  "autofocus",
@@ -1590,8 +1590,8 @@ var Es = [
1590
1590
  "defer",
1591
1591
  "disablepictureinpicture",
1592
1592
  "disableremoteplayback"
1593
- ], ll = [
1594
- ...Es,
1593
+ ], hl = [
1594
+ ...Ms,
1595
1595
  "formNoValidate",
1596
1596
  "isMap",
1597
1597
  "noModule",
@@ -1606,17 +1606,17 @@ var Es = [
1606
1606
  "allowFullscreen",
1607
1607
  "disablePictureInPicture",
1608
1608
  "disableRemotePlayback"
1609
- ], Os = ["touchstart", "touchmove"];
1610
- function Rs(e) {
1611
- return Os.includes(e);
1609
+ ], Ps = ["touchstart", "touchmove"];
1610
+ function Cs(e) {
1611
+ return Ps.includes(e);
1612
1612
  }
1613
- var Ls = [
1613
+ var xs = [
1614
1614
  "$state",
1615
1615
  "$state.raw",
1616
1616
  "$derived",
1617
1617
  "$derived.by"
1618
- ], cl = [
1619
- ...Ls,
1618
+ ], vl = [
1619
+ ...xs,
1620
1620
  "$state.eager",
1621
1621
  "$state.snapshot",
1622
1622
  "$props",
@@ -1631,22 +1631,22 @@ var Ls = [
1631
1631
  "$inspect().with",
1632
1632
  "$inspect.trace",
1633
1633
  "$host"
1634
- ], Nn = !0;
1635
- function Dn(e, t) {
1634
+ ], Vn = !0;
1635
+ function jn(e, t) {
1636
1636
  var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
1637
1637
  r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
1638
1638
  }
1639
- function Ki(e, t) {
1640
- return Yi(e, t);
1639
+ function Ji(e, t) {
1640
+ return Qi(e, t);
1641
1641
  }
1642
- function Ps(e, t) {
1643
- jr(), t.intro = t.intro ?? !1;
1644
- const r = t.target, n = P, i = R;
1642
+ function Ns(e, t) {
1643
+ Wr(), t.intro = t.intro ?? !1;
1644
+ const r = t.target, n = M, i = L;
1645
1645
  try {
1646
1646
  for (var o = /* @__PURE__ */ rt(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ be(o);
1647
1647
  if (!o) throw dt;
1648
1648
  Ie(!0), Y(o);
1649
- const s = Yi(e, {
1649
+ const s = Qi(e, {
1650
1650
  ...t,
1651
1651
  anchor: o
1652
1652
  });
@@ -1654,141 +1654,141 @@ function Ps(e, t) {
1654
1654
  } catch (s) {
1655
1655
  if (s instanceof Error && s.message.split(`
1656
1656
  `).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
1657
- return s !== dt && console.warn("Failed to hydrate: ", s), t.recover === !1 && Co(), jr(), Li(r), Ie(!1), Ki(e, t);
1657
+ return s !== dt && console.warn("Failed to hydrate: ", s), t.recover === !1 && Do(), Wr(), Ci(r), Ie(!1), Ji(e, t);
1658
1658
  } finally {
1659
1659
  Ie(n), Y(i);
1660
1660
  }
1661
1661
  }
1662
1662
  var Xt = /* @__PURE__ */ new Map();
1663
- function Yi(e, { target: t, anchor: r, props: n = {}, events: i, context: o, intro: s = !0, transformError: a }) {
1664
- jr();
1665
- var l = void 0, u = _s(() => {
1666
- var p = r ?? t.appendChild(de());
1667
- Qo(p, { pending: () => {
1668
- } }, (d) => {
1669
- oi({});
1663
+ function Qi(e, { target: t, anchor: r, props: n = {}, events: i, context: o, intro: s = !0, transformError: a }) {
1664
+ Wr();
1665
+ var l = void 0, u = ws(() => {
1666
+ var d = r ?? t.appendChild(de());
1667
+ rs(d, { pending: () => {
1668
+ } }, (h) => {
1669
+ li({});
1670
1670
  var g = z;
1671
- if (o && (g.c = o), i && (n.$$events = i), P && tr(d, null), Nn = s, l = e(d, n) || {}, Nn = !0, P && (A.nodes.end = R, R === null || R.nodeType !== 8 || R.data !== "]"))
1672
- throw hr(), dt;
1673
- si();
1671
+ if (o && (g.c = o), i && (n.$$events = i), M && tr(h, null), Vn = s, l = e(h, n) || {}, Vn = !0, M && (A.nodes.end = L, L === null || L.nodeType !== 8 || L.data !== "]"))
1672
+ throw vr(), dt;
1673
+ ci();
1674
1674
  }, a);
1675
- var v = /* @__PURE__ */ new Set(), f = (d) => {
1676
- for (var g = 0; g < d.length; g++) {
1677
- var w = d[g];
1678
- if (!v.has(w)) {
1679
- v.add(w);
1680
- var h = Rs(w);
1675
+ var p = /* @__PURE__ */ new Set(), f = (h) => {
1676
+ for (var g = 0; g < h.length; g++) {
1677
+ var w = h[g];
1678
+ if (!p.has(w)) {
1679
+ p.add(w);
1680
+ var v = Cs(w);
1681
1681
  for (const $ of [t, document]) {
1682
1682
  var y = Xt.get($);
1683
1683
  y === void 0 && (y = /* @__PURE__ */ new Map(), Xt.set($, y));
1684
- var M = y.get(w);
1685
- M === void 0 ? ($.addEventListener(w, Mn, { passive: h }), y.set(w, 1)) : y.set(w, M + 1);
1684
+ var x = y.get(w);
1685
+ x === void 0 ? ($.addEventListener(w, Dn, { passive: v }), y.set(w, 1)) : y.set(w, x + 1);
1686
1686
  }
1687
1687
  }
1688
1688
  }
1689
1689
  };
1690
- return f(dr(Ui)), zr.add(f), () => {
1691
- for (var d of v) for (const h of [t, document]) {
1692
- var g = Xt.get(h), w = g.get(d);
1693
- --w == 0 ? (h.removeEventListener(d, Mn), g.delete(d), g.size === 0 && Xt.delete(h)) : g.set(d, w);
1690
+ return f(hr(Xi)), Br.add(f), () => {
1691
+ for (var h of p) for (const v of [t, document]) {
1692
+ var g = Xt.get(v), w = g.get(h);
1693
+ --w == 0 ? (v.removeEventListener(h, Dn), g.delete(h), g.size === 0 && Xt.delete(v)) : g.set(h, w);
1694
1694
  }
1695
- zr.delete(f), p !== r && p.parentNode?.removeChild(p);
1695
+ Br.delete(f), d !== r && d.parentNode?.removeChild(d);
1696
1696
  };
1697
1697
  });
1698
- return Wr.set(l, u), l;
1698
+ return Hr.set(l, u), l;
1699
1699
  }
1700
- var Wr = /* @__PURE__ */ new WeakMap();
1701
- function Cs(e, t) {
1702
- const r = Wr.get(e);
1703
- return r ? (Wr.delete(e), r(t)) : Promise.resolve();
1700
+ var Hr = /* @__PURE__ */ new WeakMap();
1701
+ function Ds(e, t) {
1702
+ const r = Hr.get(e);
1703
+ return r ? (Hr.delete(e), r(t)) : Promise.resolve();
1704
1704
  }
1705
- var Se = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), xs = class {
1705
+ var Se = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), Vs = class {
1706
1706
  constructor(e, t = !0) {
1707
- b(this, "anchor", void 0), k(this, Se, /* @__PURE__ */ new Map()), k(this, Le, /* @__PURE__ */ new Map()), k(this, ae, /* @__PURE__ */ new Map()), k(this, St, /* @__PURE__ */ new Set()), k(this, Ir, !0), k(this, $r, (r) => {
1707
+ b(this, "anchor", void 0), k(this, Se, /* @__PURE__ */ new Map()), k(this, Re, /* @__PURE__ */ new Map()), k(this, ae, /* @__PURE__ */ new Map()), k(this, St, /* @__PURE__ */ new Set()), k(this, $r, !0), k(this, Er, (r) => {
1708
1708
  if (c(Se, this).has(r)) {
1709
- var n = c(Se, this).get(r), i = c(Le, this).get(n);
1709
+ var n = c(Se, this).get(r), i = c(Re, this).get(n);
1710
1710
  if (i)
1711
- sn(i), c(St, this).delete(n);
1711
+ ln(i), c(St, this).delete(n);
1712
1712
  else {
1713
1713
  var o = c(ae, this).get(n);
1714
- o && (c(Le, this).set(n, o.effect), c(ae, this).delete(n), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
1714
+ o && (c(Re, this).set(n, o.effect), c(ae, this).delete(n), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
1715
1715
  }
1716
1716
  for (const [s, a] of c(Se, this)) {
1717
1717
  if (c(Se, this).delete(s), s === r) break;
1718
1718
  const l = c(ae, this).get(a);
1719
- l && (H(l.effect), c(ae, this).delete(a));
1719
+ l && (F(l.effect), c(ae, this).delete(a));
1720
1720
  }
1721
- for (const [s, a] of c(Le, this)) {
1721
+ for (const [s, a] of c(Re, this)) {
1722
1722
  if (s === n || c(St, this).has(s)) continue;
1723
1723
  const l = () => {
1724
1724
  if (Array.from(c(Se, this).values()).includes(s)) {
1725
1725
  var u = document.createDocumentFragment();
1726
- an(a, u), u.append(de()), c(ae, this).set(s, {
1726
+ cn(a, u), u.append(de()), c(ae, this).set(s, {
1727
1727
  effect: a,
1728
1728
  fragment: u
1729
1729
  });
1730
- } else H(a);
1731
- c(St, this).delete(s), c(Le, this).delete(s);
1730
+ } else F(a);
1731
+ c(St, this).delete(s), c(Re, this).delete(s);
1732
1732
  };
1733
- c(Ir, this) || !i ? (c(St, this).add(s), ot(a, l, !1)) : l();
1733
+ c($r, this) || !i ? (c(St, this).add(s), ot(a, l, !1)) : l();
1734
1734
  }
1735
1735
  }
1736
- }), k(this, Vn, (r) => {
1736
+ }), k(this, zn, (r) => {
1737
1737
  c(Se, this).delete(r);
1738
1738
  const n = Array.from(c(Se, this).values());
1739
- for (const [i, o] of c(ae, this)) n.includes(i) || (H(o.effect), c(ae, this).delete(i));
1740
- }), this.anchor = e, T(Ir, this, t);
1739
+ for (const [i, o] of c(ae, this)) n.includes(i) || (F(o.effect), c(ae, this).delete(i));
1740
+ }), this.anchor = e, T($r, this, t);
1741
1741
  }
1742
1742
  ensure(e, t) {
1743
- var r = L, n = Pi();
1744
- if (t && !c(Le, this).has(e) && !c(ae, this).has(e)) if (n) {
1743
+ var r = R, n = xi();
1744
+ if (t && !c(Re, this).has(e) && !c(ae, this).has(e)) if (n) {
1745
1745
  var i = document.createDocumentFragment(), o = de();
1746
1746
  i.append(o), c(ae, this).set(e, {
1747
1747
  effect: ne(() => t(o)),
1748
1748
  fragment: i
1749
1749
  });
1750
- } else c(Le, this).set(e, ne(() => t(this.anchor)));
1750
+ } else c(Re, this).set(e, ne(() => t(this.anchor)));
1751
1751
  if (c(Se, this).set(r, e), n) {
1752
- for (const [s, a] of c(Le, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
1752
+ for (const [s, a] of c(Re, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
1753
1753
  for (const [s, a] of c(ae, this)) s === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
1754
- r.oncommit(c($r, this)), r.ondiscard(c(Vn, this));
1754
+ r.oncommit(c(Er, this)), r.ondiscard(c(zn, this));
1755
1755
  } else
1756
- P && (this.anchor = R), c($r, this).call(this, r);
1756
+ M && (this.anchor = L), c(Er, this).call(this, r);
1757
1757
  }
1758
1758
  };
1759
1759
  function kt(e, t, r = !1) {
1760
1760
  var n;
1761
- P && (n = R, vr());
1762
- var i = new xs(e), o = r ? Gr : 0;
1761
+ M && (n = L, pr());
1762
+ var i = new Vs(e), o = r ? Kr : 0;
1763
1763
  function s(a, l) {
1764
- if (P) {
1765
- var u = ri(n);
1764
+ if (M) {
1765
+ var u = oi(n);
1766
1766
  if (a !== parseInt(u.substring(1))) {
1767
- var p = ar();
1768
- Y(p), i.anchor = p, Ie(!1), i.ensure(a, l), Ie(!0);
1767
+ var d = ar();
1768
+ Y(d), i.anchor = d, Ie(!1), i.ensure(a, l), Ie(!0);
1769
1769
  return;
1770
1770
  }
1771
1771
  }
1772
1772
  i.ensure(a, l);
1773
1773
  }
1774
- nn(() => {
1774
+ sn(() => {
1775
1775
  var a = !1;
1776
1776
  t((l, u = 0) => {
1777
1777
  a = !0, s(u, l);
1778
1778
  }), a || s(-1, null);
1779
1779
  }, o);
1780
1780
  }
1781
- function Ms(e, t) {
1781
+ function js(e, t) {
1782
1782
  return t;
1783
1783
  }
1784
- function Ns(e, t, r) {
1784
+ function zs(e, t, r) {
1785
1785
  for (var n = [], i = t.length, o, s = t.length, a = 0; a < i; a++) {
1786
- let v = t[a];
1787
- ot(v, () => {
1786
+ let p = t[a];
1787
+ ot(p, () => {
1788
1788
  if (o) {
1789
- if (o.pending.delete(v), o.done.add(v), o.pending.size === 0) {
1789
+ if (o.pending.delete(p), o.done.add(p), o.pending.size === 0) {
1790
1790
  var f = e.outrogroups;
1791
- Br(e, dr(o.done)), f.delete(o), f.size === 0 && (e.outrogroups = null);
1791
+ Fr(e, hr(o.done)), f.delete(o), f.size === 0 && (e.outrogroups = null);
1792
1792
  }
1793
1793
  } else s -= 1;
1794
1794
  }, !1);
@@ -1796,17 +1796,17 @@ function Ns(e, t, r) {
1796
1796
  if (s === 0) {
1797
1797
  var l = n.length === 0 && r !== null;
1798
1798
  if (l) {
1799
- var u = r, p = u.parentNode;
1800
- Li(p), p.append(u), e.items.clear();
1799
+ var u = r, d = u.parentNode;
1800
+ Ci(d), d.append(u), e.items.clear();
1801
1801
  }
1802
- Br(e, t, !l);
1802
+ Fr(e, t, !l);
1803
1803
  } else
1804
1804
  o = {
1805
1805
  pending: new Set(t),
1806
1806
  done: /* @__PURE__ */ new Set()
1807
1807
  }, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(o);
1808
1808
  }
1809
- function Br(e, t, r = !0) {
1809
+ function Fr(e, t, r = !0) {
1810
1810
  var n;
1811
1811
  if (e.pending.size > 0) {
1812
1812
  n = /* @__PURE__ */ new Set();
@@ -1814,49 +1814,49 @@ function Br(e, t, r = !0) {
1814
1814
  }
1815
1815
  for (var i = 0; i < t.length; i++) {
1816
1816
  var o = t[i];
1817
- n?.has(o) ? (o.f |= Et, an(o, document.createDocumentFragment())) : H(t[i], r);
1817
+ n?.has(o) ? (o.f |= Et, cn(o, document.createDocumentFragment())) : F(t[i], r);
1818
1818
  }
1819
1819
  }
1820
1820
  var Jt;
1821
- function Ds(e, t, r, n, i, o = null) {
1821
+ function Ws(e, t, r, n, i, o = null) {
1822
1822
  var s = e, a = /* @__PURE__ */ new Map();
1823
1823
  if (t & 4) {
1824
1824
  var l = e;
1825
- s = P ? Y(/* @__PURE__ */ rt(l)) : l.appendChild(de());
1825
+ s = M ? Y(/* @__PURE__ */ rt(l)) : l.appendChild(de());
1826
1826
  }
1827
- P && vr();
1828
- var u = null, p = /* @__PURE__ */ Jr(() => {
1827
+ M && pr();
1828
+ var u = null, d = /* @__PURE__ */ Zr(() => {
1829
1829
  var y = r();
1830
- return Qn(y) ? y : y == null ? [] : dr(y);
1831
- }), v, f = /* @__PURE__ */ new Map(), d = !0;
1830
+ return ti(y) ? y : y == null ? [] : hr(y);
1831
+ }), p, f = /* @__PURE__ */ new Map(), h = !0;
1832
1832
  function g(y) {
1833
- h.effect.f & 16384 || (h.pending.delete(y), h.fallback = u, Vs(h, v, s, t, n), u !== null && (v.length === 0 ? u.f & 33554432 ? (u.f ^= Et, $t(u, null, s)) : sn(u) : ot(u, () => {
1833
+ v.effect.f & 16384 || (v.pending.delete(y), v.fallback = u, Bs(v, p, s, t, n), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= Et, $t(u, null, s)) : ln(u) : ot(u, () => {
1834
1834
  u = null;
1835
1835
  })));
1836
1836
  }
1837
1837
  function w(y) {
1838
- h.pending.delete(y);
1839
- }
1840
- var h = {
1841
- effect: nn(() => {
1842
- v = _(p);
1843
- var y = v.length;
1844
- let M = !1;
1845
- P && ri(s) === "[!" != (y === 0) && (s = ar(), Y(s), Ie(!1), M = !0);
1846
- for (var $ = /* @__PURE__ */ new Set(), C = L, B = Pi(), D = 0; D < y; D += 1) {
1847
- P && R.nodeType === 8 && R.data === "]" && (s = R, M = !0, Ie(!1));
1848
- var q = v[D], he = n(q, D);
1838
+ v.pending.delete(y);
1839
+ }
1840
+ var v = {
1841
+ effect: sn(() => {
1842
+ p = _(d);
1843
+ var y = p.length;
1844
+ let x = !1;
1845
+ M && oi(s) === "[!" != (y === 0) && (s = ar(), Y(s), Ie(!1), x = !0);
1846
+ for (var $ = /* @__PURE__ */ new Set(), P = R, B = xi(), D = 0; D < y; D += 1) {
1847
+ M && L.nodeType === 8 && L.data === "]" && (s = L, x = !0, Ie(!1));
1848
+ var q = p[D], he = n(q, D);
1849
1849
  if (0)
1850
1850
  var Vt;
1851
- var V = d ? null : a.get(he);
1852
- V ? (V.v && gt(V.v, q), V.i && gt(V.i, D), B && C.unskip_effect(V.e)) : (V = js(a, d ? s : Jt ?? (Jt = de()), q, he, D, i, t, r), d || (V.e.f |= Et), a.set(he, V)), $.add(he);
1851
+ var V = h ? null : a.get(he);
1852
+ V ? (V.v && gt(V.v, q), V.i && gt(V.i, D), B && P.unskip_effect(V.e)) : (V = Hs(a, h ? s : Jt ?? (Jt = de()), q, he, D, i, t, r), h || (V.e.f |= Et), a.set(he, V)), $.add(he);
1853
1853
  }
1854
- if (y === 0 && o && !u && (d ? u = ne(() => o(s)) : (u = ne(() => o(Jt ?? (Jt = de()))), u.f |= Et)), y > $.size && Eo("", "", ""), P && y > 0 && Y(ar()), !d)
1855
- if (f.set(C, $), B) {
1856
- for (const [jt, yr] of a) $.has(jt) || C.skip_effect(yr.e);
1857
- C.oncommit(g), C.ondiscard(w);
1858
- } else g(C);
1859
- M && Ie(!0), _(p);
1854
+ if (y === 0 && o && !u && (h ? u = ne(() => o(s)) : (u = ne(() => o(Jt ?? (Jt = de()))), u.f |= Et)), y > $.size && Mo("", "", ""), M && y > 0 && Y(ar()), !h)
1855
+ if (f.set(P, $), B) {
1856
+ for (const [jt, wr] of a) $.has(jt) || P.skip_effect(wr.e);
1857
+ P.oncommit(g), P.ondiscard(w);
1858
+ } else g(P);
1859
+ x && Ie(!0), _(d);
1860
1860
  }),
1861
1861
  flags: t,
1862
1862
  items: a,
@@ -1864,53 +1864,53 @@ function Ds(e, t, r, n, i, o = null) {
1864
1864
  outrogroups: null,
1865
1865
  fallback: u
1866
1866
  };
1867
- d = !1, P && (s = R);
1867
+ h = !1, M && (s = L);
1868
1868
  }
1869
1869
  function At(e) {
1870
1870
  for (; e !== null && !(e.f & 32); ) e = e.next;
1871
1871
  return e;
1872
1872
  }
1873
- function Vs(e, t, r, n, i) {
1874
- var o = (n & 8) !== 0, s = t.length, a = e.items, l = At(e.effect.first), u, p = null, v, f = [], d = [], g, w, h, y;
1873
+ function Bs(e, t, r, n, i) {
1874
+ var o = (n & 8) !== 0, s = t.length, a = e.items, l = At(e.effect.first), u, d = null, p, f = [], h = [], g, w, v, y;
1875
1875
  if (o) for (y = 0; y < s; y += 1)
1876
- g = t[y], w = i(g, y), h = a.get(w).e, h.f & 33554432 || (h.nodes?.a?.measure(), (v ?? (v = /* @__PURE__ */ new Set())).add(h));
1876
+ g = t[y], w = i(g, y), v = a.get(w).e, v.f & 33554432 || (v.nodes?.a?.measure(), (p ?? (p = /* @__PURE__ */ new Set())).add(v));
1877
1877
  for (y = 0; y < s; y += 1) {
1878
- if (g = t[y], w = i(g, y), h = a.get(w).e, e.outrogroups !== null) for (const V of e.outrogroups)
1879
- V.pending.delete(h), V.done.delete(h);
1880
- if (h.f & 8192 && (sn(h), o && (h.nodes?.a?.unfix(), (v ?? (v = /* @__PURE__ */ new Set())).delete(h))), h.f & 33554432)
1881
- if (h.f ^= Et, h === l) $t(h, null, r);
1878
+ if (g = t[y], w = i(g, y), v = a.get(w).e, e.outrogroups !== null) for (const V of e.outrogroups)
1879
+ V.pending.delete(v), V.done.delete(v);
1880
+ if (v.f & 8192 && (ln(v), o && (v.nodes?.a?.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(v))), v.f & 33554432)
1881
+ if (v.f ^= Et, v === l) $t(v, null, r);
1882
1882
  else {
1883
- var M = p ? p.next : l;
1884
- h === e.effect.last && (e.effect.last = h.prev), h.prev && (h.prev.next = h.next), h.next && (h.next.prev = h.prev), Pe(e, p, h), Pe(e, h, M), $t(h, M, r), p = h, f = [], d = [], l = At(p.next);
1883
+ var x = d ? d.next : l;
1884
+ v === e.effect.last && (e.effect.last = v.prev), v.prev && (v.prev.next = v.next), v.next && (v.next.prev = v.prev), Me(e, d, v), Me(e, v, x), $t(v, x, r), d = v, f = [], h = [], l = At(d.next);
1885
1885
  continue;
1886
1886
  }
1887
- if (h !== l) {
1888
- if (u !== void 0 && u.has(h)) {
1889
- if (f.length < d.length) {
1890
- var $ = d[0], C;
1891
- p = $.prev;
1887
+ if (v !== l) {
1888
+ if (u !== void 0 && u.has(v)) {
1889
+ if (f.length < h.length) {
1890
+ var $ = h[0], P;
1891
+ d = $.prev;
1892
1892
  var B = f[0], D = f[f.length - 1];
1893
- for (C = 0; C < f.length; C += 1) $t(f[C], $, r);
1894
- for (C = 0; C < d.length; C += 1) u.delete(d[C]);
1895
- Pe(e, B.prev, D.next), Pe(e, p, B), Pe(e, D, $), l = $, p = D, y -= 1, f = [], d = [];
1893
+ for (P = 0; P < f.length; P += 1) $t(f[P], $, r);
1894
+ for (P = 0; P < h.length; P += 1) u.delete(h[P]);
1895
+ Me(e, B.prev, D.next), Me(e, d, B), Me(e, D, $), l = $, d = D, y -= 1, f = [], h = [];
1896
1896
  } else
1897
- u.delete(h), $t(h, l, r), Pe(e, h.prev, h.next), Pe(e, h, p === null ? e.effect.first : p.next), Pe(e, p, h), p = h;
1897
+ u.delete(v), $t(v, l, r), Me(e, v.prev, v.next), Me(e, v, d === null ? e.effect.first : d.next), Me(e, d, v), d = v;
1898
1898
  continue;
1899
1899
  }
1900
- for (f = [], d = []; l !== null && l !== h; )
1901
- (u ?? (u = /* @__PURE__ */ new Set())).add(l), d.push(l), l = At(l.next);
1900
+ for (f = [], h = []; l !== null && l !== v; )
1901
+ (u ?? (u = /* @__PURE__ */ new Set())).add(l), h.push(l), l = At(l.next);
1902
1902
  if (l === null) continue;
1903
1903
  }
1904
- h.f & 33554432 || f.push(h), p = h, l = At(h.next);
1904
+ v.f & 33554432 || f.push(v), d = v, l = At(v.next);
1905
1905
  }
1906
1906
  if (e.outrogroups !== null) {
1907
- for (const V of e.outrogroups) V.pending.size === 0 && (Br(e, dr(V.done)), e.outrogroups?.delete(V));
1907
+ for (const V of e.outrogroups) V.pending.size === 0 && (Fr(e, hr(V.done)), e.outrogroups?.delete(V));
1908
1908
  e.outrogroups.size === 0 && (e.outrogroups = null);
1909
1909
  }
1910
1910
  if (l !== null || u !== void 0) {
1911
1911
  var q = [];
1912
1912
  if (u !== void 0)
1913
- for (h of u) h.f & 8192 || q.push(h);
1913
+ for (v of u) v.f & 8192 || q.push(v);
1914
1914
  for (; l !== null; )
1915
1915
  !(l.f & 8192) && l !== e.fallback && q.push(l), l = At(l.next);
1916
1916
  var he = q.length;
@@ -1920,16 +1920,16 @@ function Vs(e, t, r, n, i) {
1920
1920
  for (y = 0; y < he; y += 1) q[y].nodes?.a?.measure();
1921
1921
  for (y = 0; y < he; y += 1) q[y].nodes?.a?.fix();
1922
1922
  }
1923
- Ns(e, q, Vt);
1923
+ zs(e, q, Vt);
1924
1924
  }
1925
1925
  }
1926
1926
  o && et(() => {
1927
- if (v !== void 0)
1928
- for (h of v) h.nodes?.a?.apply();
1927
+ if (p !== void 0)
1928
+ for (v of p) v.nodes?.a?.apply();
1929
1929
  });
1930
1930
  }
1931
- function js(e, t, r, n, i, o, s, a) {
1932
- var l = s & 1 ? s & 16 ? tt(r) : /* @__PURE__ */ Ii(r, !1, !1) : null, u = s & 2 ? tt(i) : null;
1931
+ function Hs(e, t, r, n, i, o, s, a) {
1932
+ var l = s & 1 ? s & 16 ? tt(r) : /* @__PURE__ */ Oi(r, !1, !1) : null, u = s & 2 ? tt(i) : null;
1933
1933
  return {
1934
1934
  v: l,
1935
1935
  i: u,
@@ -1946,21 +1946,21 @@ function $t(e, t, r) {
1946
1946
  n = s;
1947
1947
  }
1948
1948
  }
1949
- function Pe(e, t, r) {
1949
+ function Me(e, t, r) {
1950
1950
  t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
1951
1951
  }
1952
- function zs(e, t) {
1953
- Mi(() => {
1952
+ function Fs(e, t) {
1953
+ Vi(() => {
1954
1954
  var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
1955
1955
  if (!n.querySelector("#" + t.hash)) {
1956
- const i = Zr("style");
1956
+ const i = tn("style");
1957
1957
  i.id = t.hash, i.textContent = t.code, n.appendChild(i);
1958
1958
  }
1959
1959
  });
1960
1960
  }
1961
- var ul = [...`
1961
+ var pl = [...`
1962
1962
  \r\f \v\uFEFF`];
1963
- function jn(e, t = !1) {
1963
+ function Wn(e, t = !1) {
1964
1964
  var r = t ? " !important;" : ";", n = "";
1965
1965
  for (var i of Object.keys(e)) {
1966
1966
  var o = e[i];
@@ -1968,135 +1968,135 @@ function jn(e, t = !1) {
1968
1968
  }
1969
1969
  return n;
1970
1970
  }
1971
- function Er(e) {
1971
+ function Or(e) {
1972
1972
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
1973
1973
  }
1974
- function Ws(e, t) {
1974
+ function qs(e, t) {
1975
1975
  if (t) {
1976
1976
  var r = "", n, i;
1977
1977
  if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
1978
1978
  e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
1979
1979
  var o = !1, s = 0, a = !1, l = [];
1980
- n && l.push(...Object.keys(n).map(Er)), i && l.push(...Object.keys(i).map(Er));
1981
- var u = 0, p = -1;
1980
+ n && l.push(...Object.keys(n).map(Or)), i && l.push(...Object.keys(i).map(Or));
1981
+ var u = 0, d = -1;
1982
1982
  const w = e.length;
1983
- for (var v = 0; v < w; v++) {
1984
- var f = e[v];
1985
- if (a ? f === "/" && e[v - 1] === "*" && (a = !1) : o ? o === f && (o = !1) : f === "/" && e[v + 1] === "*" ? a = !0 : f === '"' || f === "'" ? o = f : f === "(" ? s++ : f === ")" && s--, !a && o === !1 && s === 0) {
1986
- if (f === ":" && p === -1) p = v;
1987
- else if (f === ";" || v === w - 1) {
1988
- if (p !== -1) {
1989
- var d = Er(e.substring(u, p).trim());
1990
- if (!l.includes(d)) {
1991
- f !== ";" && v++;
1992
- var g = e.substring(u, v).trim();
1983
+ for (var p = 0; p < w; p++) {
1984
+ var f = e[p];
1985
+ if (a ? f === "/" && e[p - 1] === "*" && (a = !1) : o ? o === f && (o = !1) : f === "/" && e[p + 1] === "*" ? a = !0 : f === '"' || f === "'" ? o = f : f === "(" ? s++ : f === ")" && s--, !a && o === !1 && s === 0) {
1986
+ if (f === ":" && d === -1) d = p;
1987
+ else if (f === ";" || p === w - 1) {
1988
+ if (d !== -1) {
1989
+ var h = Or(e.substring(u, d).trim());
1990
+ if (!l.includes(h)) {
1991
+ f !== ";" && p++;
1992
+ var g = e.substring(u, p).trim();
1993
1993
  r += " " + g + ";";
1994
1994
  }
1995
1995
  }
1996
- u = v + 1, p = -1;
1996
+ u = p + 1, d = -1;
1997
1997
  }
1998
1998
  }
1999
1999
  }
2000
2000
  }
2001
- return n && (r += jn(n)), i && (r += jn(i, !0)), r = r.trim(), r === "" ? null : r;
2001
+ return n && (r += Wn(n)), i && (r += Wn(i, !0)), r = r.trim(), r === "" ? null : r;
2002
2002
  }
2003
2003
  return e == null ? null : String(e);
2004
2004
  }
2005
- function Or(e, t = {}, r, n) {
2005
+ function Lr(e, t = {}, r, n) {
2006
2006
  for (var i in r) {
2007
2007
  var o = r[i];
2008
2008
  t[i] !== o && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, n));
2009
2009
  }
2010
2010
  }
2011
- function zn(e, t, r, n) {
2011
+ function Bn(e, t, r, n) {
2012
2012
  var i = e.__style;
2013
- if (P || i !== t) {
2014
- var o = Ws(t, n);
2015
- (!P || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
2016
- } else n && (Array.isArray(n) ? (Or(e, r?.[0], n[0]), Or(e, r?.[1], n[1], "important")) : Or(e, r, n));
2013
+ if (M || i !== t) {
2014
+ var o = qs(t, n);
2015
+ (!M || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
2016
+ } else n && (Array.isArray(n) ? (Lr(e, r?.[0], n[0]), Lr(e, r?.[1], n[1], "important")) : Lr(e, r, n));
2017
2017
  return n;
2018
2018
  }
2019
- var Bs = Symbol("is custom element"), Fs = Symbol("is html"), Hs = Io ? "link" : "LINK";
2020
- function Wn(e, t, r, n) {
2021
- var i = qs(e);
2022
- if (P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Hs)) {
2019
+ var Gs = Symbol("is custom element"), Us = Symbol("is html"), Ks = Lo ? "link" : "LINK";
2020
+ function Hn(e, t, r, n) {
2021
+ var i = Ys(e);
2022
+ if (M && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Ks)) {
2023
2023
  n || void 0;
2024
2024
  return;
2025
2025
  }
2026
- i[t] !== (i[t] = r) && (t === "loading" && (e[ko] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Gs(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
2026
+ i[t] !== (i[t] = r) && (t === "loading" && (e[Eo] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Xs(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
2027
2027
  }
2028
- function qs(e) {
2028
+ function Ys(e) {
2029
2029
  return e.__attributes ?? (e.__attributes = {
2030
- [Bs]: e.nodeName.includes("-"),
2031
- [Fs]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
2030
+ [Gs]: e.nodeName.includes("-"),
2031
+ [Us]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
2032
2032
  });
2033
2033
  }
2034
- var Bn = /* @__PURE__ */ new Map();
2035
- function Gs(e) {
2036
- var t = e.getAttribute("is") || e.nodeName, r = Bn.get(t);
2034
+ var Fn = /* @__PURE__ */ new Map();
2035
+ function Xs(e) {
2036
+ var t = e.getAttribute("is") || e.nodeName, r = Fn.get(t);
2037
2037
  if (r) return r;
2038
- Bn.set(t, r = []);
2038
+ Fn.set(t, r = []);
2039
2039
  for (var n, i = e, o = Element.prototype; o !== i; ) {
2040
- n = go(i);
2040
+ n = yo(i);
2041
2041
  for (var s in n) n[s].set && r.push(s);
2042
- i = Zn(i);
2042
+ i = ri(i);
2043
2043
  }
2044
2044
  return r;
2045
2045
  }
2046
- var Xi, ut = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakSet(), Ji = class {
2046
+ var Zi, ut = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakSet(), eo = class {
2047
2047
  constructor(e) {
2048
- Kr(this, Fn), k(this, ut, /* @__PURE__ */ new WeakMap()), k(this, fr, void 0), k(this, Rr, void 0), T(Rr, this, e);
2048
+ Xr(this, qn), k(this, ut, /* @__PURE__ */ new WeakMap()), k(this, fr, void 0), k(this, Rr, void 0), T(Rr, this, e);
2049
2049
  }
2050
2050
  observe(e, t) {
2051
2051
  var r = c(ut, this).get(e) || /* @__PURE__ */ new Set();
2052
- return r.add(t), c(ut, this).set(e, r), x(Fn, this, Us).call(this).observe(e, c(Rr, this)), () => {
2052
+ return r.add(t), c(ut, this).set(e, r), C(qn, this, Js).call(this).observe(e, c(Rr, this)), () => {
2053
2053
  var n = c(ut, this).get(e);
2054
2054
  n.delete(t), n.size === 0 && (c(ut, this).delete(e), c(fr, this).unobserve(e));
2055
2055
  };
2056
2056
  }
2057
2057
  };
2058
- Xi = Ji;
2059
- function Us() {
2058
+ Zi = eo;
2059
+ function Js() {
2060
2060
  return c(fr, this) ?? T(fr, this, new ResizeObserver((e) => {
2061
2061
  for (var t of e) {
2062
- Xi.entries.set(t.target, t);
2062
+ Zi.entries.set(t.target, t);
2063
2063
  for (var r of c(ut, this).get(t.target) || []) r(t);
2064
2064
  }
2065
2065
  }));
2066
2066
  }
2067
- b(Ji, "entries", /* @__PURE__ */ new WeakMap());
2068
- function Hn(e, t) {
2067
+ b(eo, "entries", /* @__PURE__ */ new WeakMap());
2068
+ function Gn(e, t) {
2069
2069
  return e === t || e?.[Ot] === t;
2070
2070
  }
2071
- function qn(e = {}, t, r, n) {
2071
+ function Un(e = {}, t, r, n) {
2072
2072
  var i = z.r, o = A;
2073
- return Mi(() => {
2073
+ return Vi(() => {
2074
2074
  var s, a;
2075
- return rn(() => {
2076
- s = a, a = n?.() || [], ln(() => {
2077
- e !== r(...a) && (t(e, ...a), s && Hn(r(...s), e) && t(null, ...s));
2075
+ return on(() => {
2076
+ s = a, a = n?.() || [], un(() => {
2077
+ e !== r(...a) && (t(e, ...a), s && Gn(r(...s), e) && t(null, ...s));
2078
2078
  });
2079
2079
  }), () => {
2080
2080
  let l = o;
2081
2081
  for (; l !== i && l.parent !== null && l.parent.f & 33554432; ) l = l.parent;
2082
2082
  const u = () => {
2083
- a && Hn(r(...a), e) && t(null, ...a);
2084
- }, p = l.teardown;
2083
+ a && Gn(r(...a), e) && t(null, ...a);
2084
+ }, d = l.teardown;
2085
2085
  l.teardown = () => {
2086
- u(), p?.();
2086
+ u(), d?.();
2087
2087
  };
2088
2088
  };
2089
2089
  }), e;
2090
2090
  }
2091
- function Lr(e, t, r, n) {
2092
- var i = !pr || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = n, l = !0, u = () => (l && (l = !1, a = s ? ln(n) : n), a);
2093
- let p;
2091
+ function Mr(e, t, r, n) {
2092
+ var i = !gr || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = n, l = !0, u = () => (l && (l = !1, a = s ? un(n) : n), a);
2093
+ let d;
2094
2094
  if (o) {
2095
- var v = Ot in e || ti in e;
2096
- p = Ye(e, t)?.set ?? (v && t in e ? ($) => e[t] = $ : void 0);
2095
+ var p = Ot in e || ii in e;
2096
+ d = Ye(e, t)?.set ?? (p && t in e ? ($) => e[t] = $ : void 0);
2097
2097
  }
2098
- var f, d = !1;
2099
- o ? [f, d] = Go(() => e[t]) : f = e[t], f === void 0 && n !== void 0 && (f = u(), p && (i && xo(t), p(f)));
2098
+ var f, h = !1;
2099
+ o ? [f, h] = Xo(() => e[t]) : f = e[t], f === void 0 && n !== void 0 && (f = u(), d && (i && Vo(t), d(f)));
2100
2100
  var g;
2101
2101
  if (i ? g = () => {
2102
2102
  var $ = e[t];
@@ -2105,31 +2105,31 @@ function Lr(e, t, r, n) {
2105
2105
  var $ = e[t];
2106
2106
  return $ !== void 0 && (a = void 0), $ === void 0 ? a : $;
2107
2107
  }, i && !(r & 4)) return g;
2108
- if (p) {
2108
+ if (d) {
2109
2109
  var w = e.$$legacy;
2110
- return function($, C) {
2111
- return arguments.length > 0 ? ((!i || !C || w || d) && p(C ? g() : $), $) : g();
2110
+ return function($, P) {
2111
+ return arguments.length > 0 ? ((!i || !P || w || h) && d(P ? g() : $), $) : g();
2112
2112
  };
2113
2113
  }
2114
- var h = !1, y = (r & 1 ? gr : Jr)(() => (h = !1, g()));
2114
+ var v = !1, y = (r & 1 ? _r : Zr)(() => (v = !1, g()));
2115
2115
  o && _(y);
2116
- var M = A;
2117
- return function($, C) {
2116
+ var x = A;
2117
+ return function($, P) {
2118
2118
  if (arguments.length > 0) {
2119
- const B = C ? _(y) : i && o ? Ue($) : $;
2120
- return E(y, B), h = !0, a !== void 0 && (a = B), $;
2119
+ const B = P ? _(y) : i && o ? Ue($) : $;
2120
+ return E(y, B), v = !0, a !== void 0 && (a = B), $;
2121
2121
  }
2122
- return ze && h || M.f & 16384 ? y.v : _(y);
2122
+ return ze && v || x.f & 16384 ? y.v : _(y);
2123
2123
  };
2124
2124
  }
2125
- function Ks(e) {
2126
- return new Ys(e);
2125
+ function Qs(e) {
2126
+ return new Zs(e);
2127
2127
  }
2128
- var He = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ys = class {
2128
+ var Fe = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Zs = class {
2129
2129
  constructor(e) {
2130
- k(this, He, void 0), k(this, ve, void 0);
2130
+ k(this, Fe, void 0), k(this, ve, void 0);
2131
2131
  var t = /* @__PURE__ */ new Map(), r = (i, o) => {
2132
- var s = /* @__PURE__ */ Ii(o, !1, !1);
2132
+ var s = /* @__PURE__ */ Oi(o, !1, !1);
2133
2133
  return t.set(i, s), s;
2134
2134
  };
2135
2135
  const n = new Proxy({
@@ -2140,13 +2140,13 @@ var He = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ys =
2140
2140
  return _(t.get(o) ?? r(o, Reflect.get(i, o)));
2141
2141
  },
2142
2142
  has(i, o) {
2143
- return o === ti ? !0 : (_(t.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
2143
+ return o === ii ? !0 : (_(t.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
2144
2144
  },
2145
2145
  set(i, o, s) {
2146
2146
  return E(t.get(o) ?? r(o, s), s), Reflect.set(i, o, s);
2147
2147
  }
2148
2148
  });
2149
- T(ve, this, (e.hydrate ? Ps : Ki)(e.component, {
2149
+ T(ve, this, (e.hydrate ? Ns : Ji)(e.component, {
2150
2150
  target: e.target,
2151
2151
  anchor: e.anchor,
2152
2152
  props: n,
@@ -2154,7 +2154,7 @@ var He = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ys =
2154
2154
  intro: e.intro ?? !1,
2155
2155
  recover: e.recover,
2156
2156
  transformError: e.transformError
2157
- })), !je && (!e?.props?.$$host || e.sync === !1) && Zt(), T(He, this, n.$$events);
2157
+ })), !je && (!e?.props?.$$host || e.sync === !1) && Zt(), T(Fe, this, n.$$events);
2158
2158
  for (const i of Object.keys(c(ve, this)))
2159
2159
  i === "$set" || i === "$destroy" || i === "$on" || or(this, i, {
2160
2160
  get() {
@@ -2168,24 +2168,24 @@ var He = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ys =
2168
2168
  c(ve, this).$set = (i) => {
2169
2169
  Object.assign(n, i);
2170
2170
  }, c(ve, this).$destroy = () => {
2171
- Cs(c(ve, this));
2171
+ Ds(c(ve, this));
2172
2172
  };
2173
2173
  }
2174
2174
  $set(e) {
2175
2175
  c(ve, this).$set(e);
2176
2176
  }
2177
2177
  $on(e, t) {
2178
- c(He, this)[e] = c(He, this)[e] || [];
2178
+ c(Fe, this)[e] = c(Fe, this)[e] || [];
2179
2179
  const r = (...n) => t.call(this, ...n);
2180
- return c(He, this)[e].push(r), () => {
2181
- c(He, this)[e] = c(He, this)[e].filter((n) => n !== r);
2180
+ return c(Fe, this)[e].push(r), () => {
2181
+ c(Fe, this)[e] = c(Fe, this)[e].filter((n) => n !== r);
2182
2182
  };
2183
2183
  }
2184
2184
  $destroy() {
2185
2185
  c(ve, this).$destroy();
2186
2186
  }
2187
- }, Qi;
2188
- typeof HTMLElement == "function" && (Qi = class extends HTMLElement {
2187
+ }, to;
2188
+ typeof HTMLElement == "function" && (to = class extends HTMLElement {
2189
2189
  constructor(e, t, r) {
2190
2190
  super(), b(this, "$$ctor", void 0), b(this, "$$s", void 0), b(this, "$$c", void 0), b(this, "$$cn", !1), b(this, "$$d", {}), b(this, "$$r", !1), b(this, "$$p_d", {}), b(this, "$$l", {}), b(this, "$$l_u", /* @__PURE__ */ new Map()), b(this, "$$me", void 0), b(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
2191
2191
  }
@@ -2206,19 +2206,19 @@ typeof HTMLElement == "function" && (Qi = class extends HTMLElement {
2206
2206
  if (this.$$cn = !0, !this.$$c) {
2207
2207
  let e = function(n) {
2208
2208
  return (i) => {
2209
- const o = Zr("slot");
2210
- n !== "default" && (o.name = n), Ce(i, o);
2209
+ const o = tn("slot");
2210
+ n !== "default" && (o.name = n), Pe(i, o);
2211
2211
  };
2212
2212
  };
2213
2213
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2214
- const t = {}, r = Xs(this);
2214
+ const t = {}, r = ea(this);
2215
2215
  for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
2216
2216
  for (const n of this.attributes) {
2217
2217
  const i = this.$$g_p(n.name);
2218
2218
  i in this.$$d || (this.$$d[i] = rr(i, n.value, this.$$p_d, "toProp"));
2219
2219
  }
2220
2220
  for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2221
- this.$$c = Ks({
2221
+ this.$$c = Qs({
2222
2222
  component: this.$$ctor,
2223
2223
  target: this.$$shadowRoot || this,
2224
2224
  props: {
@@ -2226,8 +2226,8 @@ typeof HTMLElement == "function" && (Qi = class extends HTMLElement {
2226
2226
  $$slots: t,
2227
2227
  $$host: this
2228
2228
  }
2229
- }), this.$$me = gs(() => {
2230
- rn(() => {
2229
+ }), this.$$me = ys(() => {
2230
+ on(() => {
2231
2231
  this.$$r = !0;
2232
2232
  for (const n of ir(this.$$c)) {
2233
2233
  if (!this.$$p_d[n]?.reflect) continue;
@@ -2283,14 +2283,14 @@ function rr(e, t, r, n) {
2283
2283
  return t;
2284
2284
  }
2285
2285
  }
2286
- function Xs(e) {
2286
+ function ea(e) {
2287
2287
  const t = {};
2288
2288
  return e.childNodes.forEach((r) => {
2289
2289
  t[r.slot || "default"] = !0;
2290
2290
  }), t;
2291
2291
  }
2292
- function Js(e, t, r, n, i, o) {
2293
- let s = class extends Qi {
2292
+ function ta(e, t, r, n, i, o) {
2293
+ let s = class extends to {
2294
2294
  constructor() {
2295
2295
  super(e, r, i), this.$$p_d = t;
2296
2296
  }
@@ -2315,14 +2315,14 @@ function Js(e, t, r, n, i, o) {
2315
2315
  } });
2316
2316
  }), o && (s = o(s)), e.element = s, s;
2317
2317
  }
2318
- var Qs = class extends Event {
2318
+ var ra = class extends Event {
2319
2319
  constructor(e, t, r, n) {
2320
2320
  super("context-request", {
2321
2321
  bubbles: !0,
2322
2322
  composed: !0
2323
2323
  }), b(this, "context", void 0), b(this, "contextTarget", void 0), b(this, "callback", void 0), b(this, "subscribe", void 0), this.context = e, this.contextTarget = t, this.callback = r, this.subscribe = n ?? !1;
2324
2324
  }
2325
- }, Zs = class {
2325
+ }, na = class {
2326
2326
  constructor(e, t) {
2327
2327
  b(this, "host", void 0), b(this, "context", void 0), b(this, "subscribe", void 0), b(this, "onValue", void 0), b(this, "isConnected", !1), b(this, "unsubscribe", void 0), b(this, "currentValue", void 0), b(this, "handleValue", (r, n) => {
2328
2328
  n !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = n), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
@@ -2338,12 +2338,12 @@ var Qs = class extends Event {
2338
2338
  return this.currentValue;
2339
2339
  }
2340
2340
  requestValue() {
2341
- this.host.dispatchEvent(new Qs(this.context, this.host, this.handleValue, this.subscribe));
2341
+ this.host.dispatchEvent(new ra(this.context, this.host, this.handleValue, this.subscribe));
2342
2342
  }
2343
- }, _r = (e) => e, fl = _r(Symbol.for("pie.assessmentToolkit.runtimeContext")), dl = _r(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), ea = _r(Symbol.for("pie.assessmentToolkit.shellContext")), ta = _r(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2344
- function Zi(e, t, r) {
2343
+ }, mr = (e) => e, gl = mr(Symbol.for("pie.assessmentToolkit.runtimeContext")), _l = mr(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), ia = mr(Symbol.for("pie.assessmentToolkit.shellContext")), oa = mr(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2344
+ function ro(e, t, r) {
2345
2345
  let n = !1;
2346
- const i = new Zs(e, {
2346
+ const i = new na(e, {
2347
2347
  context: t,
2348
2348
  subscribe: !0,
2349
2349
  onValue: (u) => {
@@ -2367,42 +2367,42 @@ function Zi(e, t, r) {
2367
2367
  globalThis.clearInterval(l), e.removeEventListener("context-provider", o), i.disconnect();
2368
2368
  };
2369
2369
  }
2370
- function ra(e, t) {
2371
- return Zi(e, ea, t);
2370
+ function sa(e, t) {
2371
+ return ro(e, ia, t);
2372
2372
  }
2373
- function na(e, t) {
2374
- return Zi(e, ta, t);
2373
+ function aa(e, t) {
2374
+ return ro(e, oa, t);
2375
2375
  }
2376
- var Gn;
2376
+ var Kn;
2377
2377
  (function(e) {
2378
2378
  e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
2379
- })(Gn || (Gn = {}));
2380
- var xe;
2379
+ })(Kn || (Kn = {}));
2380
+ var Ce;
2381
2381
  (function(e) {
2382
2382
  e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
2383
- })(xe || (xe = {}));
2384
- function eo(e) {
2383
+ })(Ce || (Ce = {}));
2384
+ function no(e) {
2385
2385
  return (...t) => {
2386
2386
  console.debug(`[${e}]`, ...t);
2387
2387
  };
2388
2388
  }
2389
- var hl = eo("I18nService"), Pr = {
2389
+ var ml = no("I18nService"), Pr = {
2390
2390
  assessment: [],
2391
2391
  section: [],
2392
2392
  item: [],
2393
2393
  passage: [],
2394
2394
  rubric: [],
2395
2395
  element: []
2396
- }, vl = {
2396
+ }, bl = {
2397
2397
  section: [...Pr.section],
2398
2398
  item: [...Pr.item],
2399
2399
  passage: [...Pr.passage]
2400
2400
  };
2401
- function ia(e) {
2401
+ function la(e) {
2402
2402
  const t = e.trim();
2403
2403
  return t || "";
2404
2404
  }
2405
- var oa = [
2405
+ var ca = [
2406
2406
  "assessment",
2407
2407
  "section",
2408
2408
  "item",
@@ -2413,10 +2413,10 @@ var oa = [
2413
2413
  function nr(e, t) {
2414
2414
  if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
2415
2415
  }
2416
- function Un(e) {
2416
+ function Yn(e) {
2417
2417
  if (nr(e.toolId, "toolId"), nr(e.name, "name"), nr(e.description, "description"), typeof e.icon != "string" && typeof e.icon != "function") throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
2418
2418
  if (!Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
2419
- const t = e.supportedLevels.find((r) => !oa.includes(r));
2419
+ const t = e.supportedLevels.find((r) => !ca.includes(r));
2420
2420
  if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
2421
2421
  if (e.activation !== void 0 && e.activation !== "toolbar-toggle" && e.activation !== "selection-gateway") throw new Error(`Invalid tool registration "${e.toolId}": unsupported activation "${String(e.activation)}".`);
2422
2422
  if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
@@ -2425,23 +2425,23 @@ function Un(e) {
2425
2425
  if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
2426
2426
  if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
2427
2427
  }
2428
- var sa = class {
2428
+ var ua = class {
2429
2429
  constructor() {
2430
2430
  b(this, "tools", /* @__PURE__ */ new Map()), b(this, "pnpIndex", /* @__PURE__ */ new Map()), b(this, "componentOverrides", {}), b(this, "moduleLoaders", /* @__PURE__ */ new Map()), b(this, "loadedToolModules", /* @__PURE__ */ new Set()), b(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
2431
2431
  }
2432
2432
  normalizeToolId(e) {
2433
- return ia(e);
2433
+ return la(e);
2434
2434
  }
2435
2435
  normalizeToolIds(e) {
2436
2436
  return e.map((t) => this.normalizeToolId(t));
2437
2437
  }
2438
2438
  register(e) {
2439
- if (Un(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
2439
+ if (Yn(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
2440
2440
  if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
2441
2441
  this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
2442
2442
  }
2443
2443
  override(e) {
2444
- if (Un(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
2444
+ if (Yn(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
2445
2445
  const t = this.tools.get(e.toolId);
2446
2446
  if (t.pnpSupportIds) for (const r of t.pnpSupportIds) this.pnpIndex.get(r)?.delete(e.toolId);
2447
2447
  if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const r of e.pnpSupportIds)
@@ -2568,20 +2568,20 @@ var sa = class {
2568
2568
  return n.renderToolbar(t, i);
2569
2569
  }
2570
2570
  };
2571
- function to(e) {
2571
+ function io(e) {
2572
2572
  return e.level === "item";
2573
2573
  }
2574
- function aa(e) {
2574
+ function fa(e) {
2575
2575
  return e.level === "passage";
2576
2576
  }
2577
- function la(e) {
2577
+ function da(e) {
2578
2578
  return e.level === "rubric";
2579
2579
  }
2580
- function ro(e) {
2580
+ function oo(e) {
2581
2581
  return e.level === "element";
2582
2582
  }
2583
- function cn(e) {
2584
- if (ro(e)) {
2583
+ function fn(e) {
2584
+ if (oo(e)) {
2585
2585
  const t = e.item.config;
2586
2586
  if (!t) return "";
2587
2587
  const r = [], n = (a) => a.replace(/<[^>]*>/g, " ").trim(), i = t.elements?.[e.elementId];
@@ -2596,7 +2596,7 @@ function cn(e) {
2596
2596
  }
2597
2597
  return r.filter(Boolean).join(" ").trim();
2598
2598
  }
2599
- if (to(e)) {
2599
+ if (io(e)) {
2600
2600
  const t = e.item;
2601
2601
  if (!t?.config) return "";
2602
2602
  const r = t.config, n = [], i = (l) => l.replace(/<[^>]*>/g, " ").trim();
@@ -2609,13 +2609,13 @@ function cn(e) {
2609
2609
  if (!(!l || typeof l != "object")) {
2610
2610
  for (const u of Object.values(l))
2611
2611
  if (typeof u == "string" && n.push(i(u)), Array.isArray(u)) {
2612
- for (const p of u) if (p && typeof p == "object")
2613
- for (const v of Object.values(p)) typeof v == "string" && n.push(i(v));
2612
+ for (const d of u) if (d && typeof d == "object")
2613
+ for (const p of Object.values(d)) typeof p == "string" && n.push(i(p));
2614
2614
  }
2615
2615
  }
2616
2616
  return n.filter(Boolean).join(" ").trim();
2617
2617
  }
2618
- if (aa(e)) {
2618
+ if (fa(e)) {
2619
2619
  const t = e.passage;
2620
2620
  if (!t?.config) return "";
2621
2621
  const r = t.config, n = [], i = (l) => l.replace(/<[^>]*>/g, " ").trim();
@@ -2628,20 +2628,20 @@ function cn(e) {
2628
2628
  if (!(!l || typeof l != "object")) {
2629
2629
  for (const u of Object.values(l))
2630
2630
  if (typeof u == "string" && n.push(i(u)), Array.isArray(u)) {
2631
- for (const p of u) if (p && typeof p == "object")
2632
- for (const v of Object.values(p)) typeof v == "string" && n.push(i(v));
2631
+ for (const d of u) if (d && typeof d == "object")
2632
+ for (const p of Object.values(d)) typeof p == "string" && n.push(i(p));
2633
2633
  }
2634
2634
  }
2635
2635
  return n.filter(Boolean).join(" ").trim();
2636
2636
  }
2637
- if (la(e)) {
2637
+ if (da(e)) {
2638
2638
  const t = e.rubricBlock;
2639
2639
  return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
2640
2640
  }
2641
2641
  return "";
2642
2642
  }
2643
- function mr(e) {
2644
- const t = cn(e);
2643
+ function br(e) {
2644
+ const t = fn(e);
2645
2645
  return [
2646
2646
  /<math[>\s]/i,
2647
2647
  /\\\[([^\]]+)\\\]/,
@@ -2651,7 +2651,7 @@ function mr(e) {
2651
2651
  /\d+\s*[+\-*/=]\s*\d+/
2652
2652
  ].some((r) => r.test(t));
2653
2653
  }
2654
- function ca(e) {
2654
+ function ha(e) {
2655
2655
  const t = [
2656
2656
  "pie-multiple-choice",
2657
2657
  "pie-inline-choice",
@@ -2660,7 +2660,7 @@ function ca(e) {
2660
2660
  "inline-choice",
2661
2661
  "select-text"
2662
2662
  ];
2663
- if (ro(e)) {
2663
+ if (oo(e)) {
2664
2664
  const r = e.item.config;
2665
2665
  if (!r?.models) return !1;
2666
2666
  const n = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
@@ -2668,7 +2668,7 @@ function ca(e) {
2668
2668
  const i = n.element || "";
2669
2669
  return t.includes(i);
2670
2670
  }
2671
- if (to(e)) {
2671
+ if (io(e)) {
2672
2672
  const r = e.item.config?.models;
2673
2673
  return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((n) => {
2674
2674
  if (!n || typeof n != "object") return !1;
@@ -2678,11 +2678,11 @@ function ca(e) {
2678
2678
  }
2679
2679
  return !1;
2680
2680
  }
2681
- function br(e) {
2682
- return cn(e).trim().length >= 10;
2681
+ function yr(e) {
2682
+ return fn(e).trim().length >= 10;
2683
2683
  }
2684
- function ua(e) {
2685
- const t = cn(e);
2684
+ function va(e) {
2685
+ const t = fn(e);
2686
2686
  return [
2687
2687
  /chemistry|chemical|element|atom|molecule|compound/i,
2688
2688
  /periodic\s+table/i,
@@ -2692,23 +2692,23 @@ function ua(e) {
2692
2692
  /physics|force|energy|velocity|acceleration/i
2693
2693
  ].some((r) => r.test(t));
2694
2694
  }
2695
- var fa = [
2695
+ var pa = [
2696
2696
  "assessment",
2697
2697
  "section",
2698
2698
  "item",
2699
2699
  "passage",
2700
2700
  "rubric"
2701
- ], da = new Set(fa);
2702
- function ha(e) {
2703
- return da.has(e);
2701
+ ], ga = new Set(pa);
2702
+ function _a(e) {
2703
+ return ga.has(e);
2704
2704
  }
2705
- function un(e, t, r) {
2705
+ function dn(e, t, r) {
2706
2706
  const n = e.trim(), i = r.trim();
2707
2707
  if (!n || !i) throw new Error("Tool instance ids require non-empty tool and scope ids");
2708
- if (!ha(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
2708
+ if (!_a(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
2709
2709
  return `${n}:${t}:${i}`;
2710
2710
  }
2711
- var va = class {
2711
+ var ma = class {
2712
2712
  constructor() {
2713
2713
  b(this, "providerId", "desmos-calculator"), b(this, "providerName", "Desmos Calculator"), b(this, "category", "calculator"), b(this, "version", "1.10"), b(this, "requiresAuth", !0), b(this, "desmosProvider", null), b(this, "config", null);
2714
2714
  }
@@ -2783,7 +2783,7 @@ var va = class {
2783
2783
  destroy() {
2784
2784
  this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
2785
2785
  }
2786
- }, pa = (e, t) => {
2786
+ }, ba = (e, t) => {
2787
2787
  const r = t?.useSentenceSegmenter !== !1;
2788
2788
  try {
2789
2789
  if (!r) throw new Error("Segmenter disabled by policy");
@@ -2810,14 +2810,14 @@ var va = class {
2810
2810
  text: e,
2811
2811
  offset: 0
2812
2812
  }];
2813
- }, ga = class {
2813
+ }, ya = class {
2814
2814
  constructor() {
2815
2815
  b(this, "providerId", "browser"), b(this, "providerName", "Browser Speech Synthesis"), b(this, "version", "1.0.0");
2816
2816
  }
2817
2817
  async initialize(e) {
2818
2818
  if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
2819
2819
  if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
2820
- return new _a(e);
2820
+ return new wa(e);
2821
2821
  }
2822
2822
  supportsFeature(e) {
2823
2823
  return !0;
@@ -2834,7 +2834,7 @@ var va = class {
2834
2834
  }
2835
2835
  destroy() {
2836
2836
  }
2837
- }, _a = class {
2837
+ }, wa = class {
2838
2838
  constructor(e) {
2839
2839
  b(this, "utterance", null), b(this, "config", null), b(this, "_isPlaying", !1), b(this, "_isPaused", !1), b(this, "speakRunId", 0), b(this, "onWordBoundary", void 0), this.config = e;
2840
2840
  }
@@ -2877,8 +2877,8 @@ var va = class {
2877
2877
  i = a, o = u;
2878
2878
  continue;
2879
2879
  }
2880
- const p = `${i} ${a}`;
2881
- p.length <= 260 ? i = p : (n.push({
2880
+ const d = `${i} ${a}`;
2881
+ d.length <= 260 ? i = d : (n.push({
2882
2882
  text: i,
2883
2883
  offset: o
2884
2884
  }), i = a, o = u);
@@ -2904,7 +2904,7 @@ var va = class {
2904
2904
  }
2905
2905
  segmentSentences(e) {
2906
2906
  const t = this.getSegmentationPolicy();
2907
- return pa(e, {
2907
+ return ba(e, {
2908
2908
  locale: t.locale,
2909
2909
  useSentenceSegmenter: t.useSentenceSegmenter
2910
2910
  });
@@ -2947,8 +2947,8 @@ var va = class {
2947
2947
  r === this.speakRunId && (this._isPaused = !1);
2948
2948
  }, this.utterance.onboundary = (o) => {
2949
2949
  if (r !== this.speakRunId || (console.log("[BrowserProvider] Boundary event:", o.name, "charIndex:", o.charIndex, "charLength:", o.charLength), o.name !== "word" || !this.onWordBoundary) || this.getHighlightMode() === "sentence") return;
2950
- const s = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), a = Number(o.charLength || 0), l = this.inferWordLength(e, s), u = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= e.length ? a : l, p = e.substring(s, Math.min(e.length, s + u)).trim(), v = t + s;
2951
- console.log("[BrowserProvider] Calling onWordBoundary with word:", p, "at position:", v), this.onWordBoundary(p, v, u);
2950
+ const s = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), a = Number(o.charLength || 0), l = this.inferWordLength(e, s), u = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= e.length ? a : l, d = e.substring(s, Math.min(e.length, s + u)).trim(), p = t + s;
2951
+ console.log("[BrowserProvider] Calling onWordBoundary with word:", d, "at position:", p), this.onWordBoundary(d, p, u);
2952
2952
  }, speechSynthesis.speak(this.utterance);
2953
2953
  });
2954
2954
  }
@@ -2973,7 +2973,7 @@ var va = class {
2973
2973
  ...e.providerOptions || {}
2974
2974
  });
2975
2975
  }
2976
- }, ma = class {
2976
+ }, Ta = class {
2977
2977
  async emitTelemetry(e, t) {
2978
2978
  try {
2979
2979
  await this.config?.onTelemetry?.(e, t);
@@ -3005,7 +3005,7 @@ var va = class {
3005
3005
  }
3006
3006
  async _initializeBrowserTTS(e) {
3007
3007
  if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
3008
- this.ttsProvider = new ga(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
3008
+ this.ttsProvider = new ya(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
3009
3009
  }
3010
3010
  async _initializeServerTTS(e) {
3011
3011
  if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
@@ -3061,7 +3061,7 @@ var va = class {
3061
3061
  destroy() {
3062
3062
  this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
3063
3063
  }
3064
- }, ba = /* @__PURE__ */ new Set([
3064
+ }, Sa = /* @__PURE__ */ new Set([
3065
3065
  "annotation-xml",
3066
3066
  "color-profile",
3067
3067
  "font-face",
@@ -3070,16 +3070,16 @@ var va = class {
3070
3070
  "font-face-format",
3071
3071
  "font-face-name",
3072
3072
  "missing-glyph"
3073
- ]), ya = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, wa = (e, t = "custom element tag") => {
3073
+ ]), ka = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, Aa = (e, t = "custom element tag") => {
3074
3074
  if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
3075
3075
  const r = e.trim();
3076
3076
  if (!r) throw new Error(`Invalid ${t}: tag is empty`);
3077
3077
  if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
3078
3078
  if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
3079
- if (ba.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
3080
- if (!ya.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
3079
+ if (Sa.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
3080
+ if (!ka.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
3081
3081
  return r;
3082
- }, no = {
3082
+ }, so = {
3083
3083
  calculator: "pie-tool-calculator",
3084
3084
  textToSpeech: "pie-tool-text-to-speech",
3085
3085
  ruler: "pie-tool-ruler",
@@ -3092,22 +3092,22 @@ var va = class {
3092
3092
  annotationToolbar: "pie-tool-annotation-toolbar",
3093
3093
  graph: "pie-tool-graph",
3094
3094
  periodicTable: "pie-tool-periodic-table"
3095
- }, Ta = (e, t) => wa(t?.toolTagMap?.[e] ?? no[e] ?? e, `tool component tag for "${e}"`), Sa = (e) => document.createElement(e), we = (e, t, r, n) => {
3096
- const i = Ta(e, n), o = n?.toolComponentFactories?.[e] ?? n?.toolComponentFactory;
3095
+ }, Ia = (e, t) => Aa(t?.toolTagMap?.[e] ?? so[e] ?? e, `tool component tag for "${e}"`), $a = (e) => document.createElement(e), we = (e, t, r, n) => {
3096
+ const i = Ia(e, n), o = n?.toolComponentFactories?.[e] ?? n?.toolComponentFactory;
3097
3097
  return o ? o({
3098
3098
  toolId: e,
3099
3099
  tagName: i,
3100
3100
  context: t,
3101
3101
  toolbarContext: r
3102
- }) : Sa(i);
3103
- }, ka = {
3102
+ }) : $a(i);
3103
+ }, Ea = {
3104
3104
  toolId: "calculator",
3105
3105
  name: "Calculator",
3106
3106
  description: "Multi-type calculator (basic, scientific, graphing)",
3107
3107
  icon: "calculator",
3108
3108
  provider: {
3109
3109
  getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
3110
- createProvider: () => new va(),
3110
+ createProvider: () => new ma(),
3111
3111
  getInitConfig: (e) => e?.provider?.init ?? {},
3112
3112
  getAuthFetcher: (e) => {
3113
3113
  const t = e?.provider?.runtime?.authFetcher;
@@ -3130,10 +3130,10 @@ var va = class {
3130
3130
  "scientificCalculator"
3131
3131
  ],
3132
3132
  isVisibleInContext(e) {
3133
- return mr(e);
3133
+ return br(e);
3134
3134
  },
3135
3135
  renderToolbar(e, t) {
3136
- const r = un(this.toolId, t.scope.level, t.scope.scopeId), n = t.componentOverrides, i = we(this.toolId, e, t, n);
3136
+ const r = dn(this.toolId, t.scope.level, t.scope.scopeId), n = t.componentOverrides, i = we(this.toolId, e, t, n);
3137
3137
  i.setAttribute("tool-id", r), i.toolkitCoordinator = t.toolkitCoordinator;
3138
3138
  const o = {
3139
3139
  toolId: this.toolId,
@@ -3173,37 +3173,55 @@ var va = class {
3173
3173
  }
3174
3174
  };
3175
3175
  }
3176
- }, Kn = (e) => e && typeof e == "object" ? e : {}, Aa = (e) => e === "polly" || e === "google" || e === "server", Q = (e, t) => e === void 0 ? t : e, Ia = (e) => {
3177
- const t = e.backend || "browser";
3178
- if (!Aa(t)) return e;
3179
- const r = {
3176
+ }, Oa = /* @__PURE__ */ new Set([
3177
+ "reserved-row",
3178
+ "expanding-row",
3179
+ "floating-overlay",
3180
+ "left-aligned"
3181
+ ]), Xn = (e) => e && typeof e == "object" ? e : {}, La = (e) => e === "polly" || e === "google" || e === "server", Q = (e, t) => e === void 0 ? t : e, dr = (e, t = "left-aligned") => typeof e == "string" && Oa.has(e) ? e : t, Jn = Object.freeze([0.8, 1.25]), Cr = (e) => {
3182
+ if (!Array.isArray(e)) return [...Jn];
3183
+ if (e.length === 0) return [];
3184
+ const t = /* @__PURE__ */ new Set();
3185
+ for (const r of e) {
3186
+ if (typeof r != "number" || !Number.isFinite(r) || r <= 0) continue;
3187
+ const n = Math.round(r * 100) / 100;
3188
+ n !== 1 && t.add(n);
3189
+ }
3190
+ return t.size ? Array.from(t) : [...Jn];
3191
+ }, Ra = (e) => {
3192
+ const t = {
3180
3193
  ...e,
3181
- apiEndpoint: Q(e.apiEndpoint, "/api/tts"),
3182
- transportMode: Q(e.transportMode, "pie"),
3183
- endpointValidationMode: Q(e.endpointValidationMode, "voices"),
3184
- validateEndpoint: Q(e.validateEndpoint, !0),
3185
- includeAuthOnAssetFetch: Q(e.includeAuthOnAssetFetch, !1),
3186
- rate: Q(e.rate, 1),
3187
- language: Q(e.language, "en-US")
3194
+ layoutMode: dr(e.layoutMode)
3195
+ }, r = e.backend || "browser";
3196
+ if (!La(r)) return t;
3197
+ const n = {
3198
+ ...t,
3199
+ apiEndpoint: Q(t.apiEndpoint, "/api/tts"),
3200
+ transportMode: Q(t.transportMode, "pie"),
3201
+ endpointValidationMode: Q(t.endpointValidationMode, "voices"),
3202
+ validateEndpoint: Q(t.validateEndpoint, !0),
3203
+ includeAuthOnAssetFetch: Q(t.includeAuthOnAssetFetch, !1),
3204
+ rate: Q(t.rate, 1),
3205
+ language: Q(t.language, "en-US")
3188
3206
  };
3189
- return t === "polly" ? {
3190
- ...r,
3191
- defaultVoice: Q(r.defaultVoice, "Joanna"),
3192
- engine: Q(r.engine, "neural"),
3193
- format: Q(r.format, "mp3"),
3194
- speechMarksMode: Q(r.speechMarksMode, "word+sentence")
3195
- } : t === "google" ? {
3196
- ...r,
3197
- defaultVoice: Q(r.defaultVoice, "en-US-Wavenet-A")
3198
- } : r;
3199
- }, Cr = (e) => {
3200
- const t = Kn(e), r = Kn(e?.settings);
3201
- return Ia({
3207
+ return r === "polly" ? {
3208
+ ...n,
3209
+ defaultVoice: Q(n.defaultVoice, "Joanna"),
3210
+ engine: Q(n.engine, "neural"),
3211
+ format: Q(n.format, "mp3"),
3212
+ speechMarksMode: Q(n.speechMarksMode, "word+sentence")
3213
+ } : r === "google" ? {
3214
+ ...n,
3215
+ defaultVoice: Q(n.defaultVoice, "en-US-Wavenet-A")
3216
+ } : n;
3217
+ }, xr = (e) => {
3218
+ const t = Xn(e), r = Xn(e?.settings);
3219
+ return Ra({
3202
3220
  ...t,
3203
3221
  ...r
3204
3222
  });
3205
- }, Fr = (e) => e.backend || "browser", io = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, oo = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), $a = (e) => {
3206
- const t = Fr(e), r = io(e, t), n = oo(e, r);
3223
+ }, qr = (e) => e.backend || "browser", ao = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, lo = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), Ma = (e) => {
3224
+ const t = qr(e), r = ao(e, t), n = lo(e, r);
3207
3225
  return {
3208
3226
  voice: e.defaultVoice,
3209
3227
  rate: e.rate,
@@ -3227,37 +3245,60 @@ var va = class {
3227
3245
  includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
3228
3246
  validateEndpoint: e.validateEndpoint
3229
3247
  };
3230
- }, It = /* @__PURE__ */ new Map(), Ea = "__pieToolElementUnmount", Yn = Object.freeze([1.5, 2]), Oa = (e) => {
3231
- if (!Array.isArray(e)) return [...Yn];
3232
- if (e.length === 0) return [];
3233
- const t = /* @__PURE__ */ new Set();
3234
- for (const r of e) {
3235
- if (typeof r != "number" || !Number.isFinite(r) || r <= 0) continue;
3236
- const n = Math.round(r * 100) / 100;
3237
- n !== 1 && t.add(n);
3248
+ }, co = (e) => dr(e.layoutMode), Pa = (e) => {
3249
+ switch (co(e)) {
3250
+ case "reserved-row":
3251
+ return {
3252
+ mount: "before-buttons",
3253
+ controlsRow: {
3254
+ reserveSpace: !0,
3255
+ expandWhenToolActive: !1
3256
+ }
3257
+ };
3258
+ case "expanding-row":
3259
+ return {
3260
+ mount: "before-buttons",
3261
+ controlsRow: {
3262
+ reserveSpace: !1,
3263
+ expandWhenToolActive: !0
3264
+ }
3265
+ };
3266
+ default:
3267
+ return {
3268
+ mount: "before-buttons",
3269
+ controlsRow: {
3270
+ reserveSpace: !1,
3271
+ expandWhenToolActive: !1
3272
+ }
3273
+ };
3238
3274
  }
3239
- return t.size ? Array.from(t) : [...Yn];
3240
- }, Ra = {
3275
+ }, It = /* @__PURE__ */ new Map(), Ca = "__pieToolElementUnmount", Qn = "pie-tool-active-change", xa = {
3241
3276
  toolId: "textToSpeech",
3242
3277
  name: "Text to Speech",
3243
3278
  description: "Read content aloud",
3244
3279
  icon: "volume-up",
3245
3280
  provider: {
3246
3281
  getProviderId: () => "tts",
3247
- createProvider: (e) => new ma(Fr(Cr(e))),
3282
+ createProvider: (e) => new Ta(qr(xr(e))),
3248
3283
  getInitConfig: (e) => {
3249
- const t = Cr(e), r = Fr(t), n = io(t, r);
3284
+ const t = xr(e), r = qr(t), n = ao(t, r);
3250
3285
  return {
3251
3286
  backend: r,
3252
3287
  serverProvider: n,
3253
- transportMode: oo(t, n),
3254
- ...$a(t)
3288
+ transportMode: lo(t, n),
3289
+ ...Ma(t)
3255
3290
  };
3256
3291
  },
3257
3292
  getAuthFetcher: (e) => {
3258
3293
  const t = e?.provider?.runtime?.authFetcher;
3259
3294
  return typeof t == "function" ? t : void 0;
3260
3295
  },
3296
+ sanitizeConfig: (e) => {
3297
+ const t = e.settings && typeof e.settings == "object" ? { ...e.settings } : void 0;
3298
+ t && "layoutMode" in t && (t.layoutMode = dr(t.layoutMode)), t && "speedOptions" in t && (t.speedOptions = Cr(t.speedOptions));
3299
+ const r = { ...e };
3300
+ return "layoutMode" in r && (r.layoutMode = dr(r.layoutMode)), "speedOptions" in r && (r.speedOptions = Cr(r.speedOptions)), t && (r.settings = t), r;
3301
+ },
3261
3302
  lazy: !0
3262
3303
  },
3263
3304
  supportedLevels: [
@@ -3273,34 +3314,47 @@ var va = class {
3273
3314
  "speechOutput"
3274
3315
  ],
3275
3316
  isVisibleInContext(e) {
3276
- return br(e);
3317
+ return yr(e);
3277
3318
  },
3278
3319
  renderToolbar(e, t) {
3279
- const r = () => Oa(Cr(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0).speedOptions), n = un(this.toolId, t.scope.level, t.scope.scopeId), i = () => {
3280
- const s = t.ui?.size;
3281
- return s === "sm" || s === "lg" ? s : "md";
3282
- }, o = () => {
3283
- let s = It.get(n);
3284
- return s && typeof s.isConnected == "boolean" && !s.isConnected && (It.delete(n), s = void 0), s || (s = document.createElement("pie-tool-tts-inline"), s[Ea] = () => {
3285
- It.get(n) === s && It.delete(n);
3286
- }, It.set(n, s)), s.setAttribute("tool-id", n), s.setAttribute("catalog-id", t.catalogId || t.itemId), s.setAttribute("language", t.language || "en-US"), s.setAttribute("size", i()), s.speedOptions = r(), s;
3287
- };
3320
+ const r = () => xr(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => Cr(r().speedOptions), i = () => co(r()), o = () => Pa(r()), s = dn(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
3321
+ const d = t.ui?.size;
3322
+ return d === "sm" || d === "lg" ? d : "md";
3323
+ }, l = () => {
3324
+ let d = It.get(s);
3325
+ return d && typeof d.isConnected == "boolean" && !d.isConnected && (It.delete(s), d = void 0), d || (d = document.createElement("pie-tool-tts-inline"), d[Ca] = () => {
3326
+ It.get(s) === d && It.delete(s);
3327
+ }, It.set(s, d)), d.setAttribute("tool-id", s), d.setAttribute("catalog-id", t.catalogId || t.itemId), d.setAttribute("language", t.language || "en-US"), d.setAttribute("size", a()), d.setAttribute("layout-mode", i()), d.speedOptions = n(), d;
3328
+ }, u = o();
3288
3329
  return {
3289
3330
  toolId: this.toolId,
3290
3331
  button: null,
3291
3332
  elements: [{
3292
- element: o(),
3293
- mount: "before-buttons"
3333
+ element: l(),
3334
+ mount: u.mount,
3335
+ layoutHints: { controlsRow: {
3336
+ reserveSpace: u.controlsRow.reserveSpace,
3337
+ showWhenToolActive: u.controlsRow.expandWhenToolActive
3338
+ } }
3294
3339
  }],
3340
+ subscribeActive: (d) => {
3341
+ const p = l(), f = (h) => {
3342
+ const g = h.detail;
3343
+ d(g?.active === !0);
3344
+ };
3345
+ return p.addEventListener(Qn, f), () => {
3346
+ p.removeEventListener(Qn, f);
3347
+ };
3348
+ },
3295
3349
  sync: () => {
3296
- const s = o();
3297
- s.setAttribute("tool-id", n), s.setAttribute("catalog-id", t.catalogId || t.itemId), s.setAttribute("language", t.language || "en-US"), s.setAttribute("size", i()), s.speedOptions = r();
3350
+ const d = l();
3351
+ d.setAttribute("tool-id", s), d.setAttribute("catalog-id", t.catalogId || t.itemId), d.setAttribute("language", t.language || "en-US"), d.setAttribute("size", a()), d.setAttribute("layout-mode", i()), d.speedOptions = n();
3298
3352
  }
3299
3353
  };
3300
3354
  }
3301
3355
  };
3302
3356
  function Ee(e, t) {
3303
- const r = un(e, t.scope.level, t.scope.scopeId);
3357
+ const r = dn(e, t.scope.level, t.scope.scopeId);
3304
3358
  return {
3305
3359
  fullToolId: r,
3306
3360
  isActive: () => t.isToolVisible(r),
@@ -3314,18 +3368,22 @@ function Oe(e) {
3314
3368
  const t = e.isActive();
3315
3369
  e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
3316
3370
  }
3317
- function fn(e, t) {
3371
+ function hn(e, t) {
3318
3372
  e.setAttribute("data-pie-tool-surface", t);
3319
3373
  }
3320
- var La = {
3374
+ var Na = {
3321
3375
  toolId: "ruler",
3322
3376
  name: "Ruler",
3323
3377
  description: "On-screen ruler for measurements",
3324
3378
  icon: "ruler",
3325
- supportedLevels: ["item", "element"],
3379
+ supportedLevels: [
3380
+ "section",
3381
+ "item",
3382
+ "element"
3383
+ ],
3326
3384
  pnpSupportIds: ["ruler", "measurement"],
3327
3385
  isVisibleInContext(e) {
3328
- return mr(e);
3386
+ return br(e);
3329
3387
  },
3330
3388
  renderToolbar(e, t) {
3331
3389
  const r = Ee(this.toolId, t), n = {
@@ -3338,7 +3396,7 @@ var La = {
3338
3396
  onClick: () => t.toggleTool(this.toolId),
3339
3397
  active: r.isActive()
3340
3398
  }, i = t.componentOverrides ?? {}, o = we(this.toolId, e, t, i);
3341
- return o.setAttribute("tool-id", r.fullToolId), fn(o, "frameless"), {
3399
+ return o.setAttribute("tool-id", r.fullToolId), hn(o, "frameless"), {
3342
3400
  toolId: this.toolId,
3343
3401
  button: n,
3344
3402
  elements: [{
@@ -3355,15 +3413,19 @@ var La = {
3355
3413
  subscribeActive: r.subscribeActive
3356
3414
  };
3357
3415
  }
3358
- }, Pa = {
3416
+ }, Da = {
3359
3417
  toolId: "protractor",
3360
3418
  name: "Protractor",
3361
3419
  description: "On-screen protractor for angle measurements",
3362
3420
  icon: "protractor",
3363
- supportedLevels: ["item", "element"],
3421
+ supportedLevels: [
3422
+ "section",
3423
+ "item",
3424
+ "element"
3425
+ ],
3364
3426
  pnpSupportIds: ["protractor", "angleMeasurement"],
3365
3427
  isVisibleInContext(e) {
3366
- return mr(e);
3428
+ return br(e);
3367
3429
  },
3368
3430
  renderToolbar(e, t) {
3369
3431
  const r = Ee(this.toolId, t), n = {
@@ -3376,7 +3438,7 @@ var La = {
3376
3438
  onClick: () => t.toggleTool(this.toolId),
3377
3439
  active: r.isActive()
3378
3440
  }, i = t.componentOverrides ?? {}, o = we(this.toolId, e, t, i);
3379
- return o.setAttribute("tool-id", r.fullToolId), fn(o, "frameless"), {
3441
+ return o.setAttribute("tool-id", r.fullToolId), hn(o, "frameless"), {
3380
3442
  toolId: this.toolId,
3381
3443
  button: n,
3382
3444
  elements: [{
@@ -3393,7 +3455,7 @@ var La = {
3393
3455
  subscribeActive: r.subscribeActive
3394
3456
  };
3395
3457
  }
3396
- }, Ca = {
3458
+ }, Va = {
3397
3459
  toolId: "answerEliminator",
3398
3460
  name: "Answer Eliminator",
3399
3461
  description: "Strike through answer choices",
@@ -3406,7 +3468,7 @@ var La = {
3406
3468
  "choiceMasking"
3407
3469
  ],
3408
3470
  isVisibleInContext(e) {
3409
- return ca(e);
3471
+ return ha(e);
3410
3472
  },
3411
3473
  renderToolbar(e, t) {
3412
3474
  const r = Ee(this.toolId, t), n = t.componentOverrides ?? {}, i = we(this.toolId, e, t, n);
@@ -3440,7 +3502,7 @@ var La = {
3440
3502
  subscribeActive: r.subscribeActive
3441
3503
  };
3442
3504
  }
3443
- }, xa = {
3505
+ }, ja = {
3444
3506
  toolId: "highlighter",
3445
3507
  name: "Highlighter",
3446
3508
  description: "Highlight text",
@@ -3458,7 +3520,7 @@ var La = {
3458
3520
  "annotation"
3459
3521
  ],
3460
3522
  isVisibleInContext(e) {
3461
- return br(e);
3523
+ return yr(e);
3462
3524
  },
3463
3525
  renderToolbar(e, t) {
3464
3526
  const r = Ee(this.toolId, t), n = {
@@ -3491,12 +3553,13 @@ var La = {
3491
3553
  subscribeActive: r.subscribeActive
3492
3554
  };
3493
3555
  }
3494
- }, Ma = {
3556
+ }, za = {
3495
3557
  toolId: "lineReader",
3496
3558
  name: "Line Reader",
3497
3559
  description: "Reading guide overlay",
3498
3560
  icon: "bars-3",
3499
3561
  supportedLevels: [
3562
+ "section",
3500
3563
  "passage",
3501
3564
  "rubric",
3502
3565
  "item"
@@ -3509,7 +3572,7 @@ var La = {
3509
3572
  "trackingGuide"
3510
3573
  ],
3511
3574
  isVisibleInContext(e) {
3512
- return br(e);
3575
+ return yr(e);
3513
3576
  },
3514
3577
  renderToolbar(e, t) {
3515
3578
  const r = Ee(this.toolId, t), n = {
@@ -3522,7 +3585,7 @@ var La = {
3522
3585
  onClick: () => t.toggleTool(this.toolId),
3523
3586
  active: r.isActive()
3524
3587
  }, i = t.componentOverrides ?? {}, o = we(this.toolId, e, t, i);
3525
- return o.setAttribute("tool-id", r.fullToolId), fn(o, "frameless"), {
3588
+ return o.setAttribute("tool-id", r.fullToolId), hn(o, "frameless"), {
3526
3589
  toolId: this.toolId,
3527
3590
  button: n,
3528
3591
  elements: [{
@@ -3539,7 +3602,7 @@ var La = {
3539
3602
  subscribeActive: r.subscribeActive
3540
3603
  };
3541
3604
  }
3542
- }, Na = {
3605
+ }, Wa = {
3543
3606
  toolId: "theme",
3544
3607
  name: "Theme",
3545
3608
  description: "Accessible themes and contrast",
@@ -3595,7 +3658,7 @@ var La = {
3595
3658
  subscribeActive: r.subscribeActive
3596
3659
  };
3597
3660
  }
3598
- }, Da = {
3661
+ }, Ba = {
3599
3662
  toolId: "annotationToolbar",
3600
3663
  name: "Highlighter",
3601
3664
  description: "Highlight and annotate text",
@@ -3616,7 +3679,7 @@ var La = {
3616
3679
  "annotation"
3617
3680
  ],
3618
3681
  isVisibleInContext(e) {
3619
- return br(e);
3682
+ return yr(e);
3620
3683
  },
3621
3684
  renderToolbar(e, t) {
3622
3685
  const r = Ee(this.toolId, t), n = {
@@ -3646,7 +3709,7 @@ var La = {
3646
3709
  subscribeActive: r.subscribeActive
3647
3710
  };
3648
3711
  }
3649
- }, Va = {
3712
+ }, Ha = {
3650
3713
  toolId: "graph",
3651
3714
  name: "Graph",
3652
3715
  description: "Graphing calculator and coordinate plane",
@@ -3659,7 +3722,7 @@ var La = {
3659
3722
  "graphingTool"
3660
3723
  ],
3661
3724
  isVisibleInContext(e) {
3662
- return mr(e);
3725
+ return br(e);
3663
3726
  },
3664
3727
  renderToolbar(e, t) {
3665
3728
  const r = Ee(this.toolId, t), n = {
@@ -3699,7 +3762,7 @@ var La = {
3699
3762
  subscribeActive: r.subscribeActive
3700
3763
  };
3701
3764
  }
3702
- }, ja = {
3765
+ }, Fa = {
3703
3766
  toolId: "periodicTable",
3704
3767
  name: "Periodic Table",
3705
3768
  description: "Chemistry periodic table reference",
@@ -3711,7 +3774,7 @@ var La = {
3711
3774
  "elementReference"
3712
3775
  ],
3713
3776
  isVisibleInContext(e) {
3714
- return ua(e);
3777
+ return va(e);
3715
3778
  },
3716
3779
  renderToolbar(e, t) {
3717
3780
  const r = Ee(this.toolId, t), n = {
@@ -3751,54 +3814,54 @@ var La = {
3751
3814
  subscribeActive: r.subscribeActive
3752
3815
  };
3753
3816
  }
3754
- }, za = [
3755
- ka,
3756
- Ra,
3757
- La,
3758
- Pa,
3759
- Ca,
3817
+ }, qa = [
3818
+ Ea,
3760
3819
  xa,
3761
- Ma,
3762
3820
  Na,
3763
3821
  Da,
3764
3822
  Va,
3765
- ja
3823
+ ja,
3824
+ za,
3825
+ Wa,
3826
+ Ba,
3827
+ Ha,
3828
+ Fa
3766
3829
  ];
3767
- function Wa(e = {}) {
3768
- const t = new sa(), r = {
3830
+ function Ga(e = {}) {
3831
+ const t = new ua(), r = {
3769
3832
  toolTagMap: {
3770
- ...no,
3833
+ ...so,
3771
3834
  ...e.toolTagMap || {}
3772
3835
  },
3773
3836
  toolComponentFactory: e.toolComponentFactory,
3774
3837
  toolComponentFactories: e.toolComponentFactories
3775
3838
  }, n = (i) => e.overrides?.[i.toolId] || i;
3776
- return e.includePackagedTools && Ba(t, {
3839
+ return e.includePackagedTools && Ua(t, {
3777
3840
  toolIds: e.toolIds,
3778
3841
  applyOverrides: n
3779
3842
  }), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
3780
3843
  }
3781
- function Ba(e, t = {}) {
3844
+ function Ua(e, t = {}) {
3782
3845
  const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, n = t.applyOverrides || ((i) => i);
3783
- for (const i of za)
3846
+ for (const i of qa)
3784
3847
  r && !r.has(i.toolId) || e.register(n(i));
3785
3848
  }
3786
- function Fa(e = {}) {
3787
- return Wa({
3849
+ function Ka(e = {}) {
3850
+ return Ga({
3788
3851
  ...e,
3789
3852
  includePackagedTools: !0
3790
3853
  });
3791
3854
  }
3792
- function Ha() {
3793
- const e = Fa(), t = /* @__PURE__ */ new Set();
3855
+ function Ya() {
3856
+ const e = Ka(), t = /* @__PURE__ */ new Set();
3794
3857
  for (const r of e.getAllTools()) for (const n of r.pnpSupportIds || []) t.add(n);
3795
3858
  return [...t].sort();
3796
3859
  }
3797
- var qa = Ha(), pl = {
3798
- supports: [...qa],
3860
+ var Xa = Ya(), yl = {
3861
+ supports: [...Xa],
3799
3862
  prohibitedSupports: [],
3800
3863
  activateAtInit: []
3801
- }, Ga = {
3864
+ }, Ja = {
3802
3865
  visual: {
3803
3866
  magnification: "magnification",
3804
3867
  screenMagnifier: "screenMagnifier",
@@ -3911,15 +3974,15 @@ var qa = Ha(), pl = {
3911
3974
  itemGlossary: "itemGlossary",
3912
3975
  tutorialAvailable: "tutorialAvailable"
3913
3976
  }
3914
- }, gl = Object.values(Ga).flatMap((e) => Object.values(e)), _l = eo("ToolCoordinator"), Xn;
3977
+ }, wl = Object.values(Ja).flatMap((e) => Object.values(e)), Tl = no("ToolCoordinator"), Zn;
3915
3978
  (function(e) {
3916
3979
  e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
3917
- })(Xn || (Xn = {}));
3918
- var Jn;
3980
+ })(Zn || (Zn = {}));
3981
+ var ei;
3919
3982
  (function(e) {
3920
3983
  e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
3921
- })(Jn || (Jn = {}));
3922
- var Ua = /* @__PURE__ */ st('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), Ka = /* @__PURE__ */ st('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Read selected text aloud" title="Read Aloud"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), Ya = /* @__PURE__ */ st('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-g8qu62" aria-label="Remove this annotation" title="Remove"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), Xa = /* @__PURE__ */ st('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-g8qu62" aria-label="Clear all annotations from document" title="Clear All">Clear All</button>'), Ja = /* @__PURE__ */ st('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), Qa = /* @__PURE__ */ st('<div class="pie-tool-annotation-toolbar notranslate svelte-g8qu62" role="toolbar" aria-label="Text annotation toolbar" translate="no"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Underline selected text" title="Underline"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!></div>'), Za = /* @__PURE__ */ st('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-g8qu62"> </div>', 1), el = {
3984
+ })(ei || (ei = {}));
3985
+ var Qa = /* @__PURE__ */ st('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), Za = /* @__PURE__ */ st('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Read selected text aloud" title="Read Aloud"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), el = /* @__PURE__ */ st('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-g8qu62" aria-label="Remove this annotation" title="Remove"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), tl = /* @__PURE__ */ st('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-g8qu62" aria-label="Clear all annotations from document" title="Clear All">Clear All</button>'), rl = /* @__PURE__ */ st('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), nl = /* @__PURE__ */ st('<div class="pie-tool-annotation-toolbar notranslate svelte-g8qu62" role="toolbar" aria-label="Text annotation toolbar" translate="no"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Underline selected text" title="Underline"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!></div>'), il = /* @__PURE__ */ st('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-g8qu62"> </div>', 1), ol = {
3923
3986
  hash: "svelte-g8qu62",
3924
3987
  code: `.pie-tool-annotation-toolbar.svelte-g8qu62 {position:fixed;z-index:4200;display:flex;gap:0.25rem;padding:0.5rem;border-radius:0.5rem;background:var(--pie-background, #fff);color:var(--pie-text, #111827);border:1px solid var(--pie-border, #d1d5db);box-shadow:0 10px 25px -8px rgb(0 0 0 / 0.3);user-select:none;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62 {width:2.5rem;height:2rem;border:2px solid color-mix(in srgb, var(--pie-border-dark, #111827) 20%, transparent);border-radius:0.375rem;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;padding:0;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:hover {transform:scale(1.1);border-color:color-mix(in srgb, var(--pie-border-dark, #111827) 45%, transparent);box-shadow:0 2px 8px rgb(0 0 0 / 0.15);}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar.svelte-g8qu62 .divider-horizontal:where(.svelte-g8qu62) {height:auto;width:1px;background-color:color-mix(in srgb, var(--pie-border, #d1d5db) 70%, transparent);}
3925
3988
 
@@ -3927,27 +3990,27 @@ var Ua = /* @__PURE__ */ st('<button class="pie-tool-annotation-toolbar__highlig
3927
3990
 
3928
3991
  /* Button styling */.pie-tool-annotation-toolbar__button.svelte-g8qu62 {display:inline-flex;align-items:center;justify-content:center;gap:0.35rem;padding:0.4rem 0.55rem;border:1px solid var(--pie-button-border, #d1d5db);border-radius:0.4rem;background:var(--pie-button-bg, #fff);color:var(--pie-button-color, var(--pie-text, #111827));cursor:pointer;}.pie-tool-annotation-toolbar__button--icon.svelte-g8qu62 {min-width:2rem;min-height:2rem;padding:0.45rem;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:hover {background:var(--pie-button-hover-bg, #f9fafb);color:var(--pie-button-hover-color, var(--pie-text, #111827));border-color:var(--pie-button-hover-border, #9ca3af);}.pie-tool-annotation-toolbar__button.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:disabled {opacity:0.6;cursor:not-allowed;}.pie-tool-annotation-toolbar__button--warning.svelte-g8qu62 {color:var(--pie-missing-icon, #92400e);}.pie-tool-annotation-toolbar__button--danger.svelte-g8qu62 {color:var(--pie-incorrect-icon, #b91c1c);}.pie-tool-annotation-toolbar__button.svelte-g8qu62 svg:where(.svelte-g8qu62) {width:18px;height:18px;}`
3929
3992
  };
3930
- function tl(e, t) {
3931
- oi(t, !0), zs(e, el);
3932
- let r = Lr(t, "enabled", 7, !0), n = Lr(t, "highlightCoordinator", 7, null), i = Lr(t, "ttsService", 7, null);
3993
+ function sl(e, t) {
3994
+ li(t, !0), Fs(e, ol);
3995
+ let r = Mr(t, "enabled", 7, !0), n = Mr(t, "highlightCoordinator", 7, null), i = Mr(t, "ttsService", 7, null);
3933
3996
  const o = typeof window < "u", s = "pie-annotations", a = [
3934
3997
  {
3935
- name: xe.YELLOW,
3998
+ name: Ce.YELLOW,
3936
3999
  hex: "#fde995",
3937
4000
  label: "Yellow highlight"
3938
4001
  },
3939
4002
  {
3940
- name: xe.PINK,
4003
+ name: Ce.PINK,
3941
4004
  hex: "#ff9fae",
3942
4005
  label: "Pink highlight"
3943
4006
  },
3944
4007
  {
3945
- name: xe.BLUE,
4008
+ name: Ce.BLUE,
3946
4009
  hex: "#a7e0f6",
3947
4010
  label: "Blue highlight"
3948
4011
  },
3949
4012
  {
3950
- name: xe.GREEN,
4013
+ name: Ce.GREEN,
3951
4014
  hex: "#a6e1c5",
3952
4015
  label: "Green highlight"
3953
4016
  }
@@ -3962,7 +4025,7 @@ function tl(e, t) {
3962
4025
  '[role="button"]',
3963
4026
  '[role="textbox"]'
3964
4027
  ];
3965
- let u = /* @__PURE__ */ j(null), p = /* @__PURE__ */ j(null), v = /* @__PURE__ */ j(null), f = /* @__PURE__ */ j(null), d = /* @__PURE__ */ j(Ue({
4028
+ let u = /* @__PURE__ */ j(null), d = /* @__PURE__ */ j(null), p = /* @__PURE__ */ j(null), f = /* @__PURE__ */ j(null), h = /* @__PURE__ */ j(Ue({
3966
4029
  isVisible: !1,
3967
4030
  selectedText: "",
3968
4031
  selectedRange: null,
@@ -3970,20 +4033,20 @@ function tl(e, t) {
3970
4033
  x: 0,
3971
4034
  y: 0
3972
4035
  }
3973
- })), g = /* @__PURE__ */ j(!1), w = /* @__PURE__ */ j(!1), h = /* @__PURE__ */ j(""), y = /* @__PURE__ */ j(0), M = /* @__PURE__ */ j(null), $ = /* @__PURE__ */ kr(() => _(y) > 0), C = /* @__PURE__ */ kr(() => _(M) !== null), B = /* @__PURE__ */ kr(() => _(f)?.scopeElement || _(v)?.scopeElement || null);
4036
+ })), g = /* @__PURE__ */ j(!1), w = /* @__PURE__ */ j(!1), v = /* @__PURE__ */ j(""), y = /* @__PURE__ */ j(0), x = /* @__PURE__ */ j(null), $ = /* @__PURE__ */ Ar(() => _(y) > 0), P = /* @__PURE__ */ Ar(() => _(x) !== null), B = /* @__PURE__ */ Ar(() => _(f)?.scopeElement || _(p)?.scopeElement || null);
3974
4037
  function D() {
3975
4038
  const m = _(u)?.ownerDocument;
3976
4039
  return _(B) || m?.documentElement || document.documentElement;
3977
4040
  }
3978
4041
  function q() {
3979
- return `${s}:${_(v)?.canonicalItemId || _(v)?.itemId || "global"}`;
4042
+ return `${s}:${_(p)?.canonicalItemId || _(p)?.itemId || "global"}`;
3980
4043
  }
3981
4044
  function he(m) {
3982
4045
  if (!n()) return null;
3983
4046
  const S = n().getAnnotations();
3984
4047
  for (const O of S) {
3985
- const F = m.compareBoundaryPoints(Range.START_TO_START, O.range), We = m.compareBoundaryPoints(Range.END_TO_END, O.range), bt = m.compareBoundaryPoints(Range.START_TO_END, O.range), yt = m.compareBoundaryPoints(Range.END_TO_START, O.range);
3986
- if (F >= 0 && We <= 0 || F <= 0 && We >= 0 || bt > 0 && yt < 0) return O.id;
4048
+ const H = m.compareBoundaryPoints(Range.START_TO_START, O.range), We = m.compareBoundaryPoints(Range.END_TO_END, O.range), bt = m.compareBoundaryPoints(Range.START_TO_END, O.range), yt = m.compareBoundaryPoints(Range.END_TO_START, O.range);
4049
+ if (H >= 0 && We <= 0 || H <= 0 && We >= 0 || bt > 0 && yt < 0) return O.id;
3987
4050
  }
3988
4051
  return null;
3989
4052
  }
@@ -4012,13 +4075,13 @@ function tl(e, t) {
4012
4075
  console.error("[AnnotationToolbar] Failed to save annotations:", m);
4013
4076
  }
4014
4077
  }
4015
- function yr() {
4078
+ function wr() {
4016
4079
  if (!(!o || !n()))
4017
4080
  try {
4018
4081
  const m = sessionStorage.getItem(q());
4019
4082
  if (!m) return;
4020
- const S = JSON.parse(m), O = D(), F = n().importAnnotations(S, O);
4021
- console.log(`[AnnotationToolbar] Restored ${F} annotations`), E(y, n().getAnnotations().length, !0);
4083
+ const S = JSON.parse(m), O = D(), H = n().importAnnotations(S, O);
4084
+ console.log(`[AnnotationToolbar] Restored ${H} annotations`), E(y, n().getAnnotations().length, !0);
4022
4085
  } catch (m) {
4023
4086
  console.error("[AnnotationToolbar] Failed to load annotations:", m);
4024
4087
  }
@@ -4029,61 +4092,61 @@ function tl(e, t) {
4029
4092
  if (!m || m.rangeCount === 0) return Te();
4030
4093
  const S = m.getRangeAt(0), O = m.toString().trim();
4031
4094
  if (!O || !V(S) || !Vt(S.commonAncestorContainer)) return Te();
4032
- const F = S.getBoundingClientRect(), We = F.left + F.width / 2, bt = F.top - 8;
4033
- E(M, he(S), !0), _(d).isVisible = !0, _(d).selectedText = O, _(d).selectedRange = S.cloneRange(), _(d).toolbarPosition = {
4095
+ const H = S.getBoundingClientRect(), We = H.left + H.width / 2, bt = H.top - 8;
4096
+ E(x, he(S), !0), _(h).isVisible = !0, _(h).selectedText = O, _(h).selectedRange = S.cloneRange(), _(h).toolbarPosition = {
4034
4097
  x: We,
4035
4098
  y: bt
4036
4099
  };
4037
4100
  const yt = O.length > 30 ? O.substring(0, 30) + "..." : O;
4038
- E(h, `Annotation toolbar opened for "${yt}"`), setTimeout(() => {
4039
- E(h, "");
4101
+ E(v, `Annotation toolbar opened for "${yt}"`), setTimeout(() => {
4102
+ E(v, "");
4040
4103
  }, 2e3), E(w, !0), setTimeout(() => {
4041
4104
  E(w, !1);
4042
4105
  }, 100);
4043
4106
  }
4044
4107
  function Te() {
4045
- _(g) && i() && (i().stop(), E(g, !1)), _(d).isVisible = !1, _(d).selectedText = "", _(d).selectedRange = null;
4046
- }
4047
- function dn(m) {
4048
- if (!_(d).selectedRange || !n()) return;
4049
- const S = _(d).selectedText;
4050
- n().addAnnotation(_(d).selectedRange, m), E(y, n().getAnnotations().length, !0), jt();
4051
- const O = m === xe.UNDERLINE ? "underlined" : `highlighted in ${m}`, F = S.length > 30 ? S.substring(0, 30) + "..." : S;
4052
- E(h, `"${F}" ${O}`), setTimeout(() => {
4053
- E(h, "");
4108
+ _(g) && i() && (i().stop(), E(g, !1)), _(h).isVisible = !1, _(h).selectedText = "", _(h).selectedRange = null;
4109
+ }
4110
+ function vn(m) {
4111
+ if (!_(h).selectedRange || !n()) return;
4112
+ const S = _(h).selectedText;
4113
+ n().addAnnotation(_(h).selectedRange, m), E(y, n().getAnnotations().length, !0), jt();
4114
+ const O = m === Ce.UNDERLINE ? "underlined" : `highlighted in ${m}`, H = S.length > 30 ? S.substring(0, 30) + "..." : S;
4115
+ E(v, `"${H}" ${O}`), setTimeout(() => {
4116
+ E(v, "");
4054
4117
  }, 3e3), Te();
4055
4118
  }
4056
- function so() {
4057
- if (!_(M) || !n()) {
4119
+ function uo() {
4120
+ if (!_(x) || !n()) {
4058
4121
  console.warn("[AnnotationToolbar] No overlapping annotation to remove");
4059
4122
  return;
4060
4123
  }
4061
- console.log("[AnnotationToolbar] Removing annotation:", _(M));
4062
- const m = n().getAnnotation(_(M));
4124
+ console.log("[AnnotationToolbar] Removing annotation:", _(x));
4125
+ const m = n().getAnnotation(_(x));
4063
4126
  if (!m) {
4064
- console.warn("[AnnotationToolbar] Annotation not found:", _(M));
4127
+ console.warn("[AnnotationToolbar] Annotation not found:", _(x));
4065
4128
  return;
4066
4129
  }
4067
4130
  const S = m.range.toString();
4068
- n().removeAnnotation(_(M));
4131
+ n().removeAnnotation(_(x));
4069
4132
  const O = n().getAnnotations().length;
4070
4133
  E(y, O, !0), console.log("[AnnotationToolbar] Annotations remaining:", O), jt();
4071
- const F = S.length > 30 ? S.substring(0, 30) + "..." : S;
4072
- E(h, `Removed annotation from "${F}"`), setTimeout(() => {
4073
- E(h, "");
4134
+ const H = S.length > 30 ? S.substring(0, 30) + "..." : S;
4135
+ E(v, `Removed annotation from "${H}"`), setTimeout(() => {
4136
+ E(v, "");
4074
4137
  }, 3e3), Te();
4075
4138
  }
4076
- function ao() {
4139
+ function fo() {
4077
4140
  const m = _(y);
4078
- n()?.clearAnnotations(), E(y, 0), sessionStorage.removeItem(q()), E(h, `${m} annotation${m === 1 ? "" : "s"} cleared`), setTimeout(() => {
4079
- E(h, "");
4141
+ n()?.clearAnnotations(), E(y, 0), sessionStorage.removeItem(q()), E(v, `${m} annotation${m === 1 ? "" : "s"} cleared`), setTimeout(() => {
4142
+ E(v, "");
4080
4143
  }, 3e3), Te();
4081
4144
  }
4082
- async function lo() {
4083
- if (!(!_(d).selectedRange || !i())) {
4145
+ async function ho() {
4146
+ if (!(!_(h).selectedRange || !i())) {
4084
4147
  E(g, !0);
4085
4148
  try {
4086
- console.log("[AnnotationToolbar] Speaking range:", _(d).selectedRange.toString().substring(0, 50)), await i().speakRange(_(d).selectedRange, { contentRoot: D() }), console.log("[AnnotationToolbar] TTS completed successfully");
4149
+ console.log("[AnnotationToolbar] Speaking range:", _(h).selectedRange.toString().substring(0, 50)), await i().speakRange(_(h).selectedRange, { contentRoot: D() }), console.log("[AnnotationToolbar] TTS completed successfully");
4087
4150
  } catch (m) {
4088
4151
  console.error("[AnnotationToolbar] TTS error:", m), alert(`TTS failed: ${m instanceof Error ? m.message : String(m)}`);
4089
4152
  } finally {
@@ -4091,32 +4154,32 @@ function tl(e, t) {
4091
4154
  }
4092
4155
  }
4093
4156
  }
4094
- function hn(m) {
4095
- m.key === "Escape" && _(d).isVisible && (m.preventDefault(), Te());
4157
+ function pn(m) {
4158
+ m.key === "Escape" && _(h).isVisible && (m.preventDefault(), Te());
4096
4159
  }
4097
4160
  function Wt(m) {
4098
- !_(d).isVisible || _(w) || _(p) && !_(p).contains(m.target) && Te();
4161
+ !_(h).isVisible || _(w) || _(d) && !_(d).contains(m.target) && Te();
4099
4162
  }
4100
- Ln(() => {
4163
+ Pn(() => {
4101
4164
  if (!o) return;
4102
4165
  const m = setTimeout(() => {
4103
- yr();
4166
+ wr();
4104
4167
  }, 2e3), S = _(B) || document;
4105
- return S.addEventListener("mouseup", zt), S.addEventListener("click", Wt), S.addEventListener("touchend", zt), S.addEventListener("touchstart", Wt), document.addEventListener("keydown", hn), window.addEventListener("scroll", Te, !0), () => {
4106
- clearTimeout(m), S.removeEventListener("mouseup", zt), S.removeEventListener("click", Wt), S.removeEventListener("touchend", zt), S.removeEventListener("touchstart", Wt), document.removeEventListener("keydown", hn), window.removeEventListener("scroll", Te, !0);
4168
+ return S.addEventListener("mouseup", zt), S.addEventListener("click", Wt), S.addEventListener("touchend", zt), S.addEventListener("touchstart", Wt), document.addEventListener("keydown", pn), window.addEventListener("scroll", Te, !0), () => {
4169
+ clearTimeout(m), S.removeEventListener("mouseup", zt), S.removeEventListener("click", Wt), S.removeEventListener("touchend", zt), S.removeEventListener("touchstart", Wt), document.removeEventListener("keydown", pn), window.removeEventListener("scroll", Te, !0);
4107
4170
  };
4108
- }), Ln(() => {
4171
+ }), Pn(() => {
4109
4172
  if (!_(u)) return;
4110
- const m = ra(_(u), (O) => {
4111
- E(v, O, !0);
4112
- }), S = na(_(u), (O) => {
4173
+ const m = sa(_(u), (O) => {
4174
+ E(p, O, !0);
4175
+ }), S = aa(_(u), (O) => {
4113
4176
  E(f, O, !0);
4114
4177
  });
4115
4178
  return () => {
4116
4179
  S(), m();
4117
4180
  };
4118
4181
  });
4119
- var co = {
4182
+ var vo = {
4120
4183
  get enabled() {
4121
4184
  return r();
4122
4185
  },
@@ -4135,51 +4198,51 @@ function tl(e, t) {
4135
4198
  set ttsService(m = null) {
4136
4199
  i(m), Zt();
4137
4200
  }
4138
- }, vn = Za(), pn = Ar(vn);
4139
- qn(pn, (m) => E(u, m), () => _(u));
4140
- var gn = Re(pn, 2), uo = (m) => {
4141
- var S = Qa(), O = Kt(S);
4142
- Ds(O, 17, () => a, Ms, (oe, se) => {
4143
- var X = Ua(), Bt = Kt(X), wr = Kt(Bt, !0);
4144
- Ft(Bt), Ft(X), Yt(() => {
4145
- zn(X, `background-color: ${_(se).hex ?? ""};`), Wn(X, "aria-label", _(se).label), Wn(X, "title", _(se).label), Dn(wr, _(se).label);
4146
- }), Tt("click", X, () => dn(_(se).name)), Ce(oe, X);
4201
+ }, gn = il(), _n = Ir(gn);
4202
+ Un(_n, (m) => E(u, m), () => _(u));
4203
+ var mn = Le(_n, 2), po = (m) => {
4204
+ var S = nl(), O = Kt(S);
4205
+ Ws(O, 17, () => a, js, (oe, se) => {
4206
+ var X = Qa(), Bt = Kt(X), Tr = Kt(Bt, !0);
4207
+ Ht(Bt), Ht(X), Yt(() => {
4208
+ Bn(X, `background-color: ${_(se).hex ?? ""};`), Hn(X, "aria-label", _(se).label), Hn(X, "title", _(se).label), jn(Tr, _(se).label);
4209
+ }), Tt("click", X, () => vn(_(se).name)), Pe(oe, X);
4147
4210
  });
4148
- var F = Re(O, 2), We = Re(F, 2), bt = (oe) => {
4149
- var se = Ka(), X = Re(Ar(se), 2);
4150
- Yt(() => X.disabled = _(g)), Tt("click", X, lo), Ce(oe, se);
4211
+ var H = Le(O, 2), We = Le(H, 2), bt = (oe) => {
4212
+ var se = Za(), X = Le(Ir(se), 2);
4213
+ Yt(() => X.disabled = _(g)), Tt("click", X, ho), Pe(oe, se);
4151
4214
  };
4152
4215
  kt(We, (oe) => {
4153
4216
  i() && oe(bt);
4154
4217
  });
4155
- var yt = Re(We, 2), ho = (oe) => {
4156
- var se = Ja(), X = Re(Ar(se), 2), Bt = (Be) => {
4157
- var wt = Ya();
4158
- Tt("click", wt, so), Ce(Be, wt);
4218
+ var yt = Le(We, 2), _o = (oe) => {
4219
+ var se = rl(), X = Le(Ir(se), 2), Bt = (Be) => {
4220
+ var wt = el();
4221
+ Tt("click", wt, uo), Pe(Be, wt);
4159
4222
  };
4160
4223
  kt(X, (Be) => {
4161
- _(C) && Be(Bt);
4224
+ _(P) && Be(Bt);
4162
4225
  });
4163
- var wr = Re(X, 2), vo = (Be) => {
4164
- var wt = Xa();
4165
- Tt("click", wt, ao), Ce(Be, wt);
4226
+ var Tr = Le(X, 2), mo = (Be) => {
4227
+ var wt = tl();
4228
+ Tt("click", wt, fo), Pe(Be, wt);
4166
4229
  };
4167
- kt(wr, (Be) => {
4168
- _($) && Be(vo);
4169
- }), Ce(oe, se);
4230
+ kt(Tr, (Be) => {
4231
+ _($) && Be(mo);
4232
+ }), Pe(oe, se);
4170
4233
  };
4171
4234
  kt(yt, (oe) => {
4172
- (_(C) || _($)) && oe(ho);
4173
- }), Ft(S), qn(S, (oe) => E(p, oe), () => _(p)), Yt(() => zn(S, `left:${_(d).toolbarPosition.x}px; top:${_(d).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), Tt("click", F, () => dn(xe.UNDERLINE)), Ce(m, S);
4235
+ (_(P) || _($)) && oe(_o);
4236
+ }), Ht(S), Un(S, (oe) => E(d, oe), () => _(d)), Yt(() => Bn(S, `left:${_(h).toolbarPosition.x}px; top:${_(h).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), Tt("click", H, () => vn(Ce.UNDERLINE)), Pe(m, S);
4174
4237
  };
4175
- kt(gn, (m) => {
4176
- _(d).isVisible && m(uo);
4238
+ kt(mn, (m) => {
4239
+ _(h).isVisible && m(po);
4177
4240
  });
4178
- var _n = Re(gn, 2), fo = Kt(_n, !0);
4179
- return Ft(_n), Yt(() => Dn(fo, _(h))), Ce(e, vn), si(co);
4241
+ var bn = Le(mn, 2), go = Kt(bn, !0);
4242
+ return Ht(bn), Yt(() => jn(go, _(v))), Pe(e, gn), ci(vo);
4180
4243
  }
4181
- ks(["click"]);
4182
- customElements.define("pie-tool-annotation-toolbar", Js(tl, {
4244
+ Es(["click"]);
4245
+ customElements.define("pie-tool-annotation-toolbar", ta(sl, {
4183
4246
  enabled: {
4184
4247
  attribute: "enabled",
4185
4248
  type: "Boolean"
@@ -4188,5 +4251,5 @@ customElements.define("pie-tool-annotation-toolbar", Js(tl, {
4188
4251
  ttsService: { type: "Object" }
4189
4252
  }, [], [], { mode: "open" }));
4190
4253
  export {
4191
- tl as default
4254
+ sl as default
4192
4255
  };