@pie-players/pie-tool-annotation-toolbar 1.0.0-beta.1 → 1.0.0-beta.3

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,18 +1,18 @@
1
- import { coerceBooleanAttributes as ta } from "@pie-players/pie-players-shared/ui/attribute-coercion";
2
- import { HighlightColor as mt, catalogContextHolding as na, composedClosest as ra, composedContains as br, connectToolRegionScopeContext as ia, connectToolRuntimeContext as oa, connectToolShellContext as aa, findShellScopeHost as sa, isShadowRootNode as Nr, isTTSStartFailure as la, reportToolFailure as sr, resolveContentRegion as fa, retargetToTree as ua } from "@pie-players/pie-assessment-toolkit/tools/registration";
3
- import { resolveInterfaceI18n as ca } from "@pie-players/pie-players-shared/i18n/provider";
4
- import { sanitizeSvgIcon as da } from "@pie-players/pie-players-shared/security";
1
+ import { coerceBooleanAttributes as na } from "@pie-players/pie-players-shared/ui/attribute-coercion";
2
+ import { HighlightColor as yt, catalogContextHolding as ra, composedClosest as ia, composedContains as wr, connectToolRegionScopeContext as oa, connectToolRuntimeContext as aa, connectToolShellContext as sa, findShellScopeHost as la, isShadowRootNode as Pr, isTTSStartFailure as fa, reportToolFailure as lr, resolveContentRegion as ua, retargetToTree as ca } from "@pie-players/pie-assessment-toolkit/tools/registration";
3
+ import { resolveInterfaceI18n as da } from "@pie-players/pie-players-shared/i18n/provider";
4
+ import { sanitizeSvgIcon as ha } from "@pie-players/pie-players-shared/security";
5
5
  if (typeof window < "u") {
6
- var oi, ai;
7
- ((oi = (ai = window).__svelte ?? (ai.__svelte = {})).v ?? (oi.v = /* @__PURE__ */ new Set())).add("5");
6
+ var si, li;
7
+ ((si = (li = window).__svelte ?? (li.__svelte = {})).v ?? (si.v = /* @__PURE__ */ new Set())).add("5");
8
8
  }
9
- var dt = {}, B = /* @__PURE__ */ Symbol("uninitialized");
10
- var ha = "http://www.w3.org/2000/svg", va = "http://www.w3.org/1998/Math/MathML", Oi = Array.isArray, _a = Array.prototype.indexOf, Cn = Array.prototype.includes, Gn = Array.from, On = Object.keys, Qt = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, pa = Object.getOwnPropertyDescriptors, ga = Object.prototype, ba = Array.prototype, Li = Object.getPrototypeOf, si = Object.isExtensible, wa = () => {
9
+ var Ve = {}, z = /* @__PURE__ */ Symbol("uninitialized");
10
+ var va = "http://www.w3.org/2000/svg", _a = "http://www.w3.org/1998/Math/MathML", Li = Array.isArray, pa = Array.prototype.indexOf, tn = Array.prototype.includes, Yn = Array.from, Nn = Object.keys, nn = Object.defineProperty, ft = Object.getOwnPropertyDescriptor, ga = Object.getOwnPropertyDescriptors, ba = Object.prototype, wa = Array.prototype, Ni = Object.getPrototypeOf, fi = Object.isExtensible, ma = () => {
11
11
  };
12
- function ma(e) {
12
+ function ya(e) {
13
13
  for (var t = 0; t < e.length; t++) e[t]();
14
14
  }
15
- function Ni() {
15
+ function Pi() {
16
16
  var e, t;
17
17
  return {
18
18
  promise: new Promise((n, r) => {
@@ -22,46 +22,46 @@ function Ni() {
22
22
  reject: t
23
23
  };
24
24
  }
25
- function en(e) {
25
+ function rn(e) {
26
26
  "@babel/helpers - typeof";
27
- return en = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
27
+ return rn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
28
28
  return typeof t;
29
29
  } : function(t) {
30
30
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
31
- }, en(e);
31
+ }, rn(e);
32
32
  }
33
- function ya(e, t) {
34
- if (en(e) != "object" || !e) return e;
33
+ function ka(e, t) {
34
+ if (rn(e) != "object" || !e) return e;
35
35
  var n = e[Symbol.toPrimitive];
36
36
  if (n !== void 0) {
37
37
  var r = n.call(e, t || "default");
38
- if (en(r) != "object") return r;
38
+ if (rn(r) != "object") return r;
39
39
  throw new TypeError("@@toPrimitive must return a primitive value.");
40
40
  }
41
41
  return (t === "string" ? String : Number)(e);
42
42
  }
43
- function ka(e) {
44
- var t = ya(e, "string");
45
- return en(t) == "symbol" ? t : t + "";
43
+ function $a(e) {
44
+ var t = ka(e, "string");
45
+ return rn(t) == "symbol" ? t : t + "";
46
46
  }
47
- function I(e, t, n) {
48
- return (t = ka(t)) in e ? Object.defineProperty(e, t, {
47
+ function q(e, t, n) {
48
+ return (t = $a(t)) in e ? Object.defineProperty(e, t, {
49
49
  value: n,
50
50
  enumerable: !0,
51
51
  configurable: !0,
52
52
  writable: !0
53
53
  }) : e[t] = n, e;
54
54
  }
55
- var ql = 1 << 24, _e = 1024, ce = 2048, _t = 4096, Pr = 8192, $a = 16384, Ir = 32768, li = 1 << 25, qr = 65536, Wl = 1 << 17, Dl = 1 << 18, Ct = 1 << 19, Sa = 1 << 20, Kt = 1 << 25, fi = 1 << 21, Ea = 1 << 22, Ln = 1 << 23, Xt = /* @__PURE__ */ Symbol("$state"), Pi = /* @__PURE__ */ Symbol("component"), Ii = /* @__PURE__ */ Symbol("legacy props"), Ta = /* @__PURE__ */ Symbol(""), Aa = /* @__PURE__ */ Symbol("proxy path"), wr = /* @__PURE__ */ Symbol("attributes"), mr = /* @__PURE__ */ Symbol("class"), yr = /* @__PURE__ */ Symbol("style"), Tn = /* @__PURE__ */ Symbol("text");
56
- var an = new class extends Error {
55
+ var ql = 1 << 24, _e = 1024, ce = 2048, pt = 4096, Ir = 8192, Ii = 16384, qr = 32768, mr = 1 << 25, Wr = 65536, Wl = 1 << 17, Dl = 1 << 18, Lt = 1 << 19, Sa = 1 << 20, Zt = 1 << 25, ui = 1 << 21, Ea = 1 << 22, Pn = 1 << 23, Jt = /* @__PURE__ */ Symbol("$state"), qi = /* @__PURE__ */ Symbol("component"), Wi = /* @__PURE__ */ Symbol("legacy props"), Ta = /* @__PURE__ */ Symbol(""), Aa = /* @__PURE__ */ Symbol("proxy path"), yr = /* @__PURE__ */ Symbol("attributes"), kr = /* @__PURE__ */ Symbol("class"), $r = /* @__PURE__ */ Symbol("style"), Rn = /* @__PURE__ */ Symbol("text");
56
+ var un = new class extends Error {
57
57
  constructor(...t) {
58
- super(...t), I(this, "name", "StaleReactionError"), I(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
58
+ super(...t), q(this, "name", "StaleReactionError"), q(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
59
59
  }
60
60
  }(), xa = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
61
61
  function Ma() {
62
62
  console.warn("https://svelte.dev/e/derived_inert");
63
63
  }
64
- function sn(e) {
64
+ function cn(e) {
65
65
  console.warn("https://svelte.dev/e/hydration_mismatch");
66
66
  }
67
67
  function Ra() {
@@ -74,16 +74,16 @@ function De(e) {
74
74
  var C;
75
75
  function X(e) {
76
76
  if (e === null)
77
- throw sn(), dt;
77
+ throw cn(), Ve;
78
78
  return C = e;
79
79
  }
80
- function At() {
80
+ function Mt() {
81
81
  return X(/* @__PURE__ */ Te(C));
82
82
  }
83
- function Ft(e) {
83
+ function zt(e) {
84
84
  if (M) {
85
85
  if (/* @__PURE__ */ Te(C) !== null)
86
- throw sn(), dt;
86
+ throw cn(), Ve;
87
87
  C = e;
88
88
  }
89
89
  }
@@ -93,7 +93,7 @@ function Ca(e = 1) {
93
93
  C = n;
94
94
  }
95
95
  }
96
- function Nn(e = !0) {
96
+ function In(e = !0) {
97
97
  for (var t = 0, n = C; ; ) {
98
98
  if (n.nodeType === 8) {
99
99
  var r = n.data;
@@ -106,18 +106,18 @@ function Nn(e = !0) {
106
106
  e && n.remove(), n = i;
107
107
  }
108
108
  }
109
- function qi(e) {
109
+ function Dr(e) {
110
110
  if (!e || e.nodeType !== 8)
111
- throw sn(), dt;
111
+ throw cn(), Ve;
112
112
  return e.data;
113
113
  }
114
- function Wi(e) {
114
+ function Di(e) {
115
115
  return e === this.v;
116
116
  }
117
117
  function Oa(e, t) {
118
118
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
119
119
  }
120
- function Di(e) {
120
+ function ji(e) {
121
121
  return !Oa(e, this.v);
122
122
  }
123
123
  function La() {
@@ -156,76 +156,76 @@ function Fa() {
156
156
  function Ba() {
157
157
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
158
158
  }
159
- var Fe = !1, Yn = !1;
160
- function ui(e, t) {
159
+ var Be = !1, Kn = !1;
160
+ function ci(e, t) {
161
161
  return e.label = t, za(e.v, t), e;
162
162
  }
163
163
  function za(e, t) {
164
164
  return e?.[Aa]?.(t), e;
165
165
  }
166
- var V = null;
167
- function xt(e) {
168
- V = e;
166
+ var F = null;
167
+ function Rt(e) {
168
+ F = e;
169
169
  }
170
- function ji(e, t = !1, n) {
171
- V = {
172
- p: V,
170
+ function Hi(e, t = !1, n) {
171
+ F = {
172
+ p: F,
173
173
  i: !1,
174
174
  c: null,
175
175
  e: null,
176
176
  s: e,
177
177
  x: null,
178
- r: x,
179
- l: Yn && !t ? {
178
+ r: A,
179
+ l: Kn && !t ? {
180
180
  s: null,
181
181
  u: null,
182
182
  $: []
183
183
  } : null
184
184
  };
185
185
  }
186
- function Hi(e) {
187
- var t = V, n = t.e;
186
+ function Vi(e) {
187
+ var t = F, n = t.e;
188
188
  if (n !== null) {
189
189
  t.e = null;
190
- for (var r of n) uo(r);
190
+ for (var r of n) co(r);
191
191
  }
192
- return e !== void 0 && (t.x = e), t.i = !0, V = t.p, Wr(e);
192
+ return e !== void 0 && (t.x = e), t.i = !0, F = t.p, jr(e);
193
193
  }
194
- function Wr(e = {}) {
195
- return Qt(e, Pi, { value: !0 }), e;
194
+ function jr(e = {}) {
195
+ return nn(e, qi, { value: !0 }), e;
196
196
  }
197
- function ln() {
198
- return !Yn || V !== null && V.l === null;
197
+ function dn() {
198
+ return !Kn || F !== null && F.l === null;
199
199
  }
200
- var it = [];
201
- function Vi() {
202
- var e = it;
203
- it = [], ma(e);
200
+ var ot = [];
201
+ function Fi() {
202
+ var e = ot;
203
+ ot = [], ya(e);
204
204
  }
205
- function Ze(e) {
206
- if (it.length === 0 && !Zt) {
207
- var t = it;
205
+ function Je(e) {
206
+ if (ot.length === 0 && !Qt) {
207
+ var t = ot;
208
208
  queueMicrotask(() => {
209
- t === it && Vi();
209
+ t === ot && Fi();
210
210
  });
211
211
  }
212
- it.push(e);
212
+ ot.push(e);
213
213
  }
214
214
  function Ua() {
215
- for (; it.length > 0; ) Vi();
215
+ for (; ot.length > 0; ) Fi();
216
216
  }
217
- var Ga = ~(ce | _t | _e);
218
- function D(e, t) {
217
+ var Ga = ~(ce | pt | _e);
218
+ function j(e, t) {
219
219
  e.f = e.f & Ga | t;
220
220
  }
221
- function Dr(e) {
222
- (e.f & 512) !== 0 || e.deps === null ? D(e, _e) : D(e, _t);
221
+ function Hr(e) {
222
+ (e.f & 512) !== 0 || e.deps === null ? j(e, _e) : j(e, pt);
223
223
  }
224
- function Fi(e, t, n) {
225
- (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && n.add(e), D(e, _e);
224
+ function Bi(e, t, n) {
225
+ (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && n.add(e), j(e, _e);
226
226
  }
227
- function Kn(e) {
228
- var t = R, n = x;
227
+ function Xn(e) {
228
+ var t = R, n = A;
229
229
  ge(null), Ne(null);
230
230
  try {
231
231
  return e();
@@ -234,14 +234,14 @@ function Kn(e) {
234
234
  }
235
235
  }
236
236
  function Ya(e, t, n, r) {
237
- const i = ln() ? tn : jr;
237
+ const i = dn() ? on : Vr;
238
238
  var o = e.filter((h) => !h.settled), a = t.map(i);
239
239
  if (n.length === 0 && o.length === 0) {
240
240
  r(a);
241
241
  return;
242
242
  }
243
- var f = x, c = Ka(), _ = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((h) => h.promise)) : null;
244
- function p(h) {
243
+ var f = A, c = Ka(), p = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((h) => h.promise)) : null;
244
+ function _(h) {
245
245
  if ((f.f & 16384) === 0) {
246
246
  c();
247
247
  try {
@@ -249,104 +249,108 @@ function Ya(e, t, n, r) {
249
249
  } catch (b) {
250
250
  Le(b, f);
251
251
  }
252
- Pn();
252
+ qn();
253
253
  }
254
254
  }
255
- var u = Bi();
255
+ var u = zi();
256
256
  if (n.length === 0) {
257
- _.then(() => p([])).finally(u);
257
+ p.then(() => _([])).finally(u);
258
258
  return;
259
259
  }
260
260
  function d() {
261
- Promise.all(n.map((h) => /* @__PURE__ */ Za(h))).then(p).catch((h) => Le(h, f)).finally(u);
261
+ Promise.all(n.map((h) => /* @__PURE__ */ Za(h))).then(_).catch((h) => Le(h, f)).finally(u);
262
262
  }
263
- _ ? _.then(() => {
264
- c(), d(), Pn();
263
+ p ? p.then(() => {
264
+ if ((f.f & 16384) !== 0) {
265
+ u();
266
+ return;
267
+ }
268
+ c(), d(), qn();
265
269
  }) : d();
266
270
  }
267
271
  function Ka() {
268
- var e = x, t = R, n = V, r = A;
272
+ var e = A, t = R, n = F, r = x;
269
273
  if (0) var i;
270
274
  return function(a = !0) {
271
- Ne(e), ge(t), xt(n), a && (e.f & 16384) === 0 && (r?.activate(), r?.apply());
275
+ Ne(e), ge(t), Rt(n), a && (e.f & 16384) === 0 && (r?.activate(), r?.apply());
272
276
  };
273
277
  }
274
278
  var Xa = !1;
275
- function Pn(e = !0) {
276
- Xa = !1, Ne(null), ge(null), xt(null), e && A?.deactivate();
279
+ function qn(e = !0) {
280
+ Xa = !1, Ne(null), ge(null), Rt(null), e && x?.deactivate();
277
281
  }
278
- function Bi() {
279
- var e = x, t = e.b, n = A, r = !!t?.is_rendered();
282
+ function zi() {
283
+ var e = A, t = e.b, n = x, r = !!t?.is_rendered();
280
284
  return t?.update_pending_count(1, n), n.increment(r, e), () => {
281
285
  t?.update_pending_count(-1, n), n.decrement(r, e);
282
286
  };
283
287
  }
284
288
  // @__NO_SIDE_EFFECTS__
285
- function tn(e) {
289
+ function on(e) {
286
290
  var t = 2 | ce;
287
- return x !== null && (x.f |= Ct), {
288
- ctx: V,
291
+ return A !== null && (A.f |= Lt), {
292
+ ctx: F,
289
293
  deps: null,
290
294
  effects: null,
291
- equals: Wi,
295
+ equals: Di,
292
296
  f: t,
293
297
  fn: e,
294
298
  reactions: null,
295
299
  rv: 0,
296
- v: B,
300
+ v: z,
297
301
  wv: 0,
298
- parent: x,
302
+ parent: A,
299
303
  ac: null
300
304
  };
301
305
  }
302
- var Bt = /* @__PURE__ */ Symbol("obsolete");
306
+ var Ut = /* @__PURE__ */ Symbol("obsolete");
303
307
  // @__NO_SIDE_EFFECTS__
304
308
  function Za(e, t, n) {
305
- let r = x;
309
+ let r = A;
306
310
  r === null && La();
307
- var i = void 0, o = vt(B), a = !R, f = /* @__PURE__ */ new Set();
311
+ var i = void 0, o = _t(z), a = !R, f = /* @__PURE__ */ new Set();
308
312
  return _s(() => {
309
- var c = x, _ = Ni();
310
- i = _.promise;
313
+ var c = A, p = Pi();
314
+ i = p.promise;
311
315
  try {
312
- Promise.resolve(e()).then(_.resolve, (h) => {
313
- h !== an && _.reject(h);
314
- }).finally(Pn);
316
+ Promise.resolve(e()).then(p.resolve, (h) => {
317
+ h !== un && p.reject(h);
318
+ }).finally(qn);
315
319
  } catch (h) {
316
- _.reject(h), Pn();
320
+ p.reject(h), qn();
317
321
  }
318
- var p = A;
322
+ var _ = x;
319
323
  if (a) {
320
- if ((c.f & 32768) !== 0) var u = Bi();
321
- if (r.b?.is_rendered()) p.async_deriveds.get(c)?.reject(Bt);
322
- else for (const h of f.values()) h.reject(Bt);
323
- f.add(_), p.async_deriveds.set(c, _);
324
+ if ((c.f & 32768) !== 0) var u = zi();
325
+ if (r.b?.is_rendered()) _.async_deriveds.get(c)?.reject(Ut);
326
+ else for (const h of f.values()) h.reject(Ut);
327
+ f.add(p), _.async_deriveds.set(c, p);
324
328
  }
325
329
  const d = (h, b = void 0) => {
326
- u?.(), f.delete(_), b !== Bt && (p.activate(), b ? (o.f |= Ln, Mt(o, b)) : ((o.f & 8388608) !== 0 && (o.f ^= Ln), Mt(o, h)), p.deactivate());
330
+ u?.(), f.delete(p), b !== Ut && (_.activate(), b ? (o.f |= Pn, Ct(o, b)) : ((o.f & 8388608) !== 0 && (o.f ^= Pn), Ct(o, h)), _.deactivate());
327
331
  };
328
- _.promise.then(d, (h) => d(null, h || "unknown"));
332
+ p.promise.then(d, (h) => d(null, h || "unknown"));
329
333
  }), ds(() => {
330
- for (const c of f) c.reject(Bt);
334
+ for (const c of f) c.reject(Ut);
331
335
  }), new Promise((c) => {
332
- function _(p) {
336
+ function p(_) {
333
337
  function u() {
334
- p === i ? c(o) : _(i);
338
+ _ === i ? c(o) : p(i);
335
339
  }
336
- p.then(u, u);
340
+ _.then(u, u);
337
341
  }
338
- _(i);
342
+ p(i);
339
343
  });
340
344
  }
341
345
  // @__NO_SIDE_EFFECTS__
342
346
  function de(e) {
343
- const t = /* @__PURE__ */ tn(e);
344
- return Fe || bo(t), t;
347
+ const t = /* @__PURE__ */ on(e);
348
+ return Be || wo(t), t;
345
349
  }
346
350
  // @__NO_SIDE_EFFECTS__
347
- function jr(e) {
348
- const t = /* @__PURE__ */ tn(e);
349
- return t.equals = Di, t;
351
+ function Vr(e) {
352
+ const t = /* @__PURE__ */ on(e);
353
+ return t.equals = ji, t;
350
354
  }
351
355
  function Ja(e) {
352
356
  var t = e.effects;
@@ -355,148 +359,148 @@ function Ja(e) {
355
359
  for (var n = 0; n < t.length; n += 1) ne(t[n]);
356
360
  }
357
361
  }
358
- function Hr(e) {
359
- var t, n = x, r = e.parent;
360
- if (!Ve && r !== null && e.v !== B && (r.f & 24576) !== 0)
362
+ function Fr(e) {
363
+ var t, n = A, r = e.parent;
364
+ if (!Fe && r !== null && e.v !== z && (r.f & 24576) !== 0)
361
365
  return Ma(), e.v;
362
366
  Ne(r);
363
367
  try {
364
- Ja(e), t = ko(e);
368
+ Ja(e), t = $o(e);
365
369
  } finally {
366
370
  Ne(n);
367
371
  }
368
372
  return t;
369
373
  }
370
- function zi(e) {
371
- var t = Hr(e);
372
- if (!e.equals(t) && (e.wv = mo(), (!A?.is_fork || e.deps === null) && (A !== null ? (A.capture(e, t, !0), kr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
373
- D(e, _e);
374
+ function Ui(e) {
375
+ var t = Fr(e);
376
+ if (!e.equals(t) && (e.wv = yo(), (!x?.is_fork || e.deps === null) && (x !== null ? (x.capture(e, t, !0), At?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
377
+ j(e, _e);
374
378
  return;
375
379
  }
376
- Ve || (te !== null ? (zr() || A?.is_fork) && te.set(e, t) : Dr(e));
380
+ Fe || (te !== null ? (Gr() || x?.is_fork) && te.set(e, t) : Hr(e));
377
381
  }
378
382
  function Qa(e) {
379
383
  if (e.effects !== null)
380
- for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Kn(() => {
381
- t.ac.abort(an), t.ac = null;
382
- }), t.fn !== null && (t.teardown = wa), rn(t, 0), Yr(t));
384
+ for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Xn(() => {
385
+ t.ac.abort(un), t.ac = null;
386
+ }), t.fn !== null && (t.teardown = ma), ln(t, 0), Xr(t));
383
387
  }
384
- function Ui(e) {
388
+ function Gi(e) {
385
389
  if (e.effects !== null)
386
- for (const t of e.effects) t.teardown && t.fn !== null && Rt(t);
390
+ for (const t of e.effects) t.teardown && t.fn !== null && Ot(t);
387
391
  }
388
- function Gi(e, t) {
392
+ function Yi(e, t) {
389
393
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
390
394
  }
391
- function Vr(e, t) {
392
- Gi(e, t), t.add(e);
393
- }
394
- function S(e, t, n) {
395
- Gi(e, t), t.set(e, n);
395
+ function Br(e, t) {
396
+ Yi(e, t), t.add(e);
396
397
  }
397
398
  function E(e, t, n) {
399
+ Yi(e, t), t.set(e, n);
400
+ }
401
+ function $(e, t, n) {
398
402
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
399
403
  throw new TypeError("Private element is not present on this object");
400
404
  }
401
- function $(e, t, n) {
402
- return e.set(E(e, t), n), n;
405
+ function S(e, t, n) {
406
+ return e.set($(e, t), n), n;
403
407
  }
404
408
  function l(e, t) {
405
- return e.get(E(e, t));
409
+ return e.get($(e, t));
406
410
  }
407
- var Yi, In = null, yt = null, A = null, kr = null, te = null, $r = null, Zt = !1, lr = !1, nn = null, qn = null, Ki = 0;
408
- var es = 1, Wn = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), Dn = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakSet(), pt = class Xi {
411
+ var Ki, Wn = null, kt = null, x = null, At = null, te = null, Sr = null, Qt = !1, fr = !1, an = null, Dn = null, Xi = 0;
412
+ var es = 1, jn = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), $t = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakSet(), gt = class Zi {
409
413
  constructor() {
410
- Vr(this, W), I(this, "id", es++), S(this, Wn, !1), I(this, "linked", !0), S(this, ft, null), S(this, ot, null), I(this, "async_deriveds", /* @__PURE__ */ new Map()), I(this, "current", /* @__PURE__ */ new Map()), I(this, "previous", /* @__PURE__ */ new Map()), S(this, Dn, /* @__PURE__ */ new Set()), S(this, wn, /* @__PURE__ */ new Set()), S(this, kt, 0), S(this, nt, /* @__PURE__ */ new Map()), S(this, zt, null), S(this, me, []), S(this, Sr, []), S(this, ht, /* @__PURE__ */ new Set()), S(this, je, /* @__PURE__ */ new Set()), S(this, Ke, /* @__PURE__ */ new Map()), S(this, An, /* @__PURE__ */ new Set()), I(this, "is_fork", !1), S(this, Ut, !1), yt === null ? In = yt = this : ($(ot, yt, this), $(ft, this, yt)), yt = this;
414
+ Br(this, D), q(this, "id", es++), E(this, jn, !1), q(this, "linked", !0), E(this, ut, null), E(this, at, null), q(this, "async_deriveds", /* @__PURE__ */ new Map()), q(this, "current", /* @__PURE__ */ new Map()), q(this, "previous", /* @__PURE__ */ new Map()), E(this, Hn, /* @__PURE__ */ new Set()), E(this, $n, /* @__PURE__ */ new Set()), E(this, $t, 0), E(this, rt, /* @__PURE__ */ new Map()), E(this, Gt, null), E(this, me, []), E(this, Er, []), E(this, vt, /* @__PURE__ */ new Set()), E(this, je, /* @__PURE__ */ new Set()), E(this, Xe, /* @__PURE__ */ new Map()), E(this, Cn, /* @__PURE__ */ new Set()), q(this, "is_fork", !1), E(this, Yt, !1), kt === null ? Wn = kt = this : (S(at, kt, this), S(ut, this, kt)), kt = this;
411
415
  }
412
416
  skip_effect(t) {
413
- l(Ke, this).has(t) || l(Ke, this).set(t, {
417
+ l(Xe, this).has(t) || l(Xe, this).set(t, {
414
418
  d: [],
415
419
  m: []
416
- }), l(An, this).delete(t);
420
+ }), l(Cn, this).delete(t);
417
421
  }
418
422
  unskip_effect(t, n = (r) => this.schedule(r)) {
419
- var r = l(Ke, this).get(t);
423
+ var r = l(Xe, this).get(t);
420
424
  if (r) {
421
- l(Ke, this).delete(t);
425
+ l(Xe, this).delete(t);
422
426
  for (var i of r.d)
423
- D(i, ce), n(i);
427
+ j(i, ce), n(i);
424
428
  for (i of r.m)
425
- D(i, _t), n(i);
429
+ j(i, pt), n(i);
426
430
  }
427
- l(An, this).add(t);
431
+ l(Cn, this).add(t);
428
432
  }
429
433
  capture(t, n, r = !1) {
430
- t.v !== B && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [n, r]), te?.set(t, n)), this.is_fork || (t.v = n);
434
+ t.v !== z && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [n, r]), te?.set(t, n)), this.is_fork || (t.v = n);
431
435
  }
432
436
  activate() {
433
- A = this;
437
+ x = this;
434
438
  }
435
439
  deactivate() {
436
- A = null, te = null;
440
+ x = null, te = null;
437
441
  }
438
442
  flush() {
439
443
  try {
440
- lr = !0, A = this, E(W, this, jn).call(this);
444
+ fr = !0, x = this, $(D, this, Vn).call(this);
441
445
  } finally {
442
- Ki = 0, $r = null, nn = null, qn = null, lr = !1, A = null, te = null, Oe.clear();
446
+ Xi = 0, Sr = null, an = null, Dn = null, fr = !1, x = null, te = null, Oe.clear();
443
447
  }
444
448
  }
445
449
  discard() {
446
- for (const t of l(wn, this)) t(this);
447
- l(wn, this).clear();
448
- for (const t of this.async_deriveds.values()) t.reject(Bt);
449
- E(W, this, Hn).call(this), l(zt, this)?.resolve();
450
+ for (const t of l($n, this)) t(this);
451
+ l($n, this).clear();
452
+ for (const t of this.async_deriveds.values()) t.reject(Ut);
453
+ $(D, this, Fn).call(this), l(Gt, this)?.resolve();
450
454
  }
451
455
  register_created_effect(t) {
452
- l(Sr, this).push(t);
456
+ l(Er, this).push(t);
453
457
  }
454
458
  increment(t, n) {
455
- if ($(kt, this, l(kt, this) + 1), t) {
456
- let r = l(nt, this).get(n) ?? 0;
457
- l(nt, this).set(n, r + 1);
459
+ if (S($t, this, l($t, this) + 1), t) {
460
+ let r = l(rt, this).get(n) ?? 0;
461
+ l(rt, this).set(n, r + 1);
458
462
  }
459
463
  }
460
464
  decrement(t, n) {
461
- if ($(kt, this, l(kt, this) - 1), t) {
462
- let r = l(nt, this).get(n) ?? 0;
463
- r === 1 ? l(nt, this).delete(n) : l(nt, this).set(n, r - 1);
465
+ if (S($t, this, l($t, this) - 1), t) {
466
+ let r = l(rt, this).get(n) ?? 0;
467
+ r === 1 ? l(rt, this).delete(n) : l(rt, this).set(n, r - 1);
464
468
  }
465
- l(Ut, this) || ($(Ut, this, !0), Ze(() => {
466
- $(Ut, this, !1), this.linked && this.flush();
469
+ l(Yt, this) || (S(Yt, this, !0), Je(() => {
470
+ S(Yt, this, !1), this.linked && this.flush();
467
471
  }));
468
472
  }
469
473
  transfer_effects(t, n) {
470
- for (const r of t) l(ht, this).add(r);
474
+ for (const r of t) l(vt, this).add(r);
471
475
  for (const r of n) l(je, this).add(r);
472
476
  t.clear(), n.clear();
473
477
  }
474
478
  oncommit(t) {
475
- l(Dn, this).add(t);
479
+ l(Hn, this).add(t);
476
480
  }
477
481
  ondiscard(t) {
478
- l(wn, this).add(t);
482
+ l($n, this).add(t);
479
483
  }
480
484
  settled() {
481
- return (l(zt, this) ?? $(zt, this, Ni())).promise;
485
+ return (l(Gt, this) ?? S(Gt, this, Pi())).promise;
482
486
  }
483
487
  static ensure() {
484
- if (A === null) {
485
- const t = A = new Xi();
486
- !lr && !Zt && Ze(() => {
487
- l(Wn, t) || t.flush();
488
+ if (x === null) {
489
+ const t = x = new Zi();
490
+ !fr && !Qt && Je(() => {
491
+ l(jn, t) || t.flush();
488
492
  });
489
493
  }
490
- return A;
494
+ return x;
491
495
  }
492
496
  apply() {
493
- if (!Fe || !this.is_fork && l(ft, this) === null && l(ot, this) === null) {
497
+ if (!Be || !this.is_fork && l(ut, this) === null && l(at, this) === null) {
494
498
  te = null;
495
499
  return;
496
500
  }
497
501
  te = /* @__PURE__ */ new Map();
498
502
  for (const [n, [r]] of this.current) te.set(n, r);
499
- for (let n = In; n !== null; n = l(ot, n))
503
+ for (let n = Wn; n !== null; n = l(at, n))
500
504
  if (!(n === this || n.is_fork)) {
501
505
  var t = !1;
502
506
  if (n.id < this.id) {
@@ -511,19 +515,19 @@ var es = 1, Wn = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap
511
515
  }
512
516
  }
513
517
  schedule(t) {
514
- if ($r = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
518
+ if (Sr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
515
519
  t.b.defer_effect(t);
516
520
  return;
517
521
  }
518
522
  l(me, this).push(t);
519
523
  }
520
524
  };
521
- Yi = pt;
522
- function ci() {
525
+ Ki = gt;
526
+ function di() {
523
527
  if (this.is_fork) return !0;
524
- for (const n of l(nt, this).keys()) {
528
+ for (const n of l(rt, this).keys()) {
525
529
  for (var e = n, t = !1; e.parent !== null; ) {
526
- if (l(Ke, this).has(e)) {
530
+ if (l(Xe, this).has(e)) {
527
531
  t = !0;
528
532
  break;
529
533
  }
@@ -533,7 +537,7 @@ function ci() {
533
537
  }
534
538
  return !1;
535
539
  }
536
- function Zi() {
540
+ function Ji() {
537
541
  var e = [];
538
542
  for (const i of l(me, this))
539
543
  if (!((i.f & 16384) !== 0 || (i.f & 6144) === 0)) {
@@ -550,55 +554,55 @@ function Zi() {
550
554
  }
551
555
  n || e.push(t);
552
556
  }
553
- return $(me, this, []), e;
557
+ return S(me, this, []), e;
554
558
  }
555
- function jn() {
556
- $(Wn, this, !0);
557
- for (const a of l(ht, this))
558
- l(je, this).delete(a), D(a, ce), this.schedule(a);
559
+ function Vn() {
560
+ S(jn, this, !0);
561
+ for (const a of l(vt, this))
562
+ l(je, this).delete(a), j(a, ce), this.schedule(a);
559
563
  for (const a of l(je, this))
560
- D(a, _t), this.schedule(a);
564
+ j(a, pt), this.schedule(a);
561
565
  this.apply();
562
- for (var e = nn = [], t = [], n = qn = []; l(me, this).length > 0; ) {
563
- Ki++ > 1e3 && (E(W, this, Hn).call(this), is());
564
- for (const a of E(W, this, Zi).call(this)) try {
565
- E(W, this, Ji).call(this, a, e, t);
566
+ for (var e = an = [], t = [], n = Dn = []; l(me, this).length > 0; ) {
567
+ Xi++ > 1e3 && ($(D, this, Fn).call(this), is());
568
+ for (const a of $(D, this, Ji).call(this)) try {
569
+ $(D, this, Qi).call(this, a, e, t);
566
570
  } catch (f) {
567
- throw to(a), E(W, this, ci).call(this) || this.discard(), f;
571
+ throw no(a), $(D, this, di).call(this) || this.discard(), f;
568
572
  }
569
573
  }
570
- if (A = null, n.length > 0) {
571
- var r = Yi.ensure();
574
+ if (x = null, n.length > 0) {
575
+ var r = Ki.ensure();
572
576
  for (const a of n) r.schedule(a);
573
577
  }
574
- if (nn = null, qn = null, E(W, this, ci).call(this)) {
575
- E(W, this, Gt).call(this, t), E(W, this, Gt).call(this, e);
576
- for (const [a, f] of l(Ke, this)) eo(a, f);
577
- n.length > 0 && E(W, A, jn).call(A);
578
+ if (an = null, Dn = null, $(D, this, di).call(this)) {
579
+ $(D, this, Kt).call(this, t), $(D, this, Kt).call(this, e);
580
+ for (const [a, f] of l(Xe, this)) to(a, f);
581
+ n.length > 0 && $(D, x, Vn).call(x);
578
582
  return;
579
583
  }
580
- const i = E(W, this, ts).call(this);
584
+ const i = $(D, this, ts).call(this);
581
585
  if (i) {
582
- E(W, this, Gt).call(this, t), E(W, this, Gt).call(this, e), E(W, i, ns).call(i, this);
586
+ $(D, this, Kt).call(this, t), $(D, this, Kt).call(this, e), $(D, i, ns).call(i, this);
583
587
  return;
584
588
  }
585
- l(ht, this).clear(), l(je, this).clear();
586
- for (const a of l(Dn, this)) a(this);
587
- l(Dn, this).clear(), kr = this, di(t), di(e), kr = null, l(zt, this)?.resolve();
588
- var o = A;
589
- if (l(kt, this) === 0 && (l(me, this).length === 0 || o !== null) && (E(W, this, Hn).call(this), Fe && (E(W, this, rs).call(this), A = o)), l(me, this).length > 0)
589
+ l(vt, this).clear(), l(je, this).clear();
590
+ for (const a of l(Hn, this)) a(this);
591
+ l(Hn, this).clear(), At = this, hi(t), hi(e), At = null, l(Gt, this)?.resolve();
592
+ var o = x;
593
+ if (l($t, this) === 0 && (l(me, this).length === 0 || o !== null) && ($(D, this, Fn).call(this), Be && ($(D, this, rs).call(this), x = o)), l(me, this).length > 0)
590
594
  if (o !== null) {
591
595
  for (const a of l(me, this)) l(me, o).push(a);
592
- $(me, this, []);
596
+ S(me, this, []);
593
597
  } else o = this;
594
- o !== null && (Oe.clear(), E(W, o, jn).call(o));
598
+ o !== null && (Oe.clear(), $(D, o, Vn).call(o));
595
599
  }
596
- function Ji(e, t, n) {
600
+ function Qi(e, t, n) {
597
601
  e.f ^= _e;
598
602
  for (var r = e.first; r !== null; ) {
599
603
  var i = r.f, o = (i & 96) !== 0;
600
- if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || l(Ke, this).has(r)) && r.fn !== null) {
601
- o ? r.f ^= _e : (i & 4) !== 0 ? t.push(r) : Fe && (i & 16777224) !== 0 ? n.push(r) : fn(r) && ((i & 16) !== 0 && l(je, this).add(r), Rt(r));
604
+ if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || l(Xe, this).has(r)) && r.fn !== null) {
605
+ o ? r.f ^= _e : (i & 4) !== 0 ? t.push(r) : Be && (i & 16777224) !== 0 ? n.push(r) : hn(r) && ((i & 16) !== 0 && l(je, this).add(r), Ot(r));
602
606
  var a = r.first;
603
607
  if (a !== null) {
604
608
  r = a;
@@ -616,11 +620,11 @@ function Ji(e, t, n) {
616
620
  }
617
621
  }
618
622
  function ts() {
619
- for (var e = l(ft, this); e !== null; ) {
623
+ for (var e = l(ut, this); e !== null; ) {
620
624
  if (!e.is_fork) {
621
625
  for (const [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
622
626
  }
623
- e = l(ft, e);
627
+ e = l(ut, e);
624
628
  }
625
629
  return null;
626
630
  }
@@ -631,7 +635,7 @@ function ns(e) {
631
635
  const i = this.async_deriveds.get(n);
632
636
  i && r.promise.then(i.resolve).catch(i.reject);
633
637
  }
634
- e.async_deriveds.clear(), this.transfer_effects(l(ht, e), l(je, e));
638
+ e.async_deriveds.clear(), this.transfer_effects(l(vt, e), l(je, e));
635
639
  const t = (n) => {
636
640
  var r = n.reactions;
637
641
  if (r !== null && !((n.f & 2) !== 0 && (n.f & 6144) === 0))
@@ -640,97 +644,97 @@ function ns(e) {
640
644
  if ((i & 2) !== 0) t(a);
641
645
  else {
642
646
  var o = a;
643
- i & 4194320 && !this.async_deriveds.has(o) && (l(je, this).delete(o), D(o, ce), this.schedule(o));
647
+ i & 4194320 && !this.async_deriveds.has(o) && (l(je, this).delete(o), j(o, ce), this.schedule(o));
644
648
  }
645
649
  }
646
650
  };
647
651
  for (const n of this.current.keys()) t(n);
648
- this.oncommit(() => e.discard()), E(W, e, Hn).call(e), A = this, E(W, this, jn).call(this);
652
+ this.oncommit(() => e.discard()), $(D, e, Fn).call(e), x = this, $(D, this, Vn).call(this);
649
653
  }
650
- function Gt(e) {
651
- for (var t = 0; t < e.length; t += 1) Fi(e[t], l(ht, this), l(je, this));
654
+ function Kt(e) {
655
+ for (var t = 0; t < e.length; t += 1) Bi(e[t], l(vt, this), l(je, this));
652
656
  }
653
657
  function rs() {
654
- for (let p = In; p !== null; p = l(ot, p)) {
655
- var e = p.id < this.id, t = [];
658
+ for (let _ = Wn; _ !== null; _ = l(at, _)) {
659
+ var e = _.id < this.id, t = [];
656
660
  for (const [u, [d, h]] of this.current) {
657
- if (p.current.has(u)) {
658
- var n = p.current.get(u)[0];
659
- if (e && d !== n) p.current.set(u, [d, h]);
661
+ if (_.current.has(u)) {
662
+ var n = _.current.get(u)[0];
663
+ if (e && d !== n) _.current.set(u, [d, h]);
660
664
  else continue;
661
665
  }
662
666
  t.push(u);
663
667
  }
664
668
  if (e) for (const [u, d] of this.async_deriveds) {
665
- const h = p.async_deriveds.get(u);
669
+ const h = _.async_deriveds.get(u);
666
670
  h && d.promise.then(h.resolve).catch(h.reject);
667
671
  }
668
- var r = [...p.current.keys()].filter((u) => !p.current.get(u)[1]);
669
- if (!(!l(Wn, p) || r.length === 0)) {
672
+ var r = [..._.current.keys()].filter((u) => !_.current.get(u)[1]);
673
+ if (!(!l(jn, _) || r.length === 0)) {
670
674
  var i = r.filter((u) => !this.current.has(u));
671
675
  if (i.length === 0)
672
- e && p.discard();
676
+ e && _.discard();
673
677
  else if (t.length > 0) {
674
- if (e) for (const u of l(An, this)) p.unskip_effect(u, (d) => {
675
- (d.f & 4194320) !== 0 ? p.schedule(d) : E(W, p, Gt).call(p, [d]);
678
+ if (e) for (const u of l(Cn, this)) _.unskip_effect(u, (d) => {
679
+ (d.f & 4194320) !== 0 ? _.schedule(d) : $(D, _, Kt).call(_, [d]);
676
680
  });
677
- p.activate();
681
+ _.activate();
678
682
  var o = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
679
- for (var f of t) Qi(f, i, o, a);
683
+ for (var f of t) eo(f, i, o, a);
680
684
  a = /* @__PURE__ */ new Map();
681
- var c = [...p.current].filter(([u, d]) => {
685
+ var c = [..._.current].filter(([u, d]) => {
682
686
  const h = this.current.get(u);
683
687
  return h ? h[0] !== d[0] || h[1] !== d[1] : !0;
684
688
  }).map(([u]) => u);
685
689
  if (c.length > 0)
686
- for (const u of l(Sr, this)) (u.f & 155648) === 0 && Fr(u, c, a) && ((u.f & 4194320) !== 0 ? (D(u, ce), p.schedule(u)) : l(ht, p).add(u));
687
- if (l(me, p).length > 0 && !l(Ut, p)) {
688
- p.apply();
689
- for (var _ of E(W, p, Zi).call(p)) E(W, p, Ji).call(p, _, [], []);
690
+ for (const u of l(Er, this)) (u.f & 155648) === 0 && zr(u, c, a) && ((u.f & 4194320) !== 0 ? (j(u, ce), _.schedule(u)) : l(vt, _).add(u));
691
+ if (l(me, _).length > 0 && !l(Yt, _)) {
692
+ _.apply();
693
+ for (var p of $(D, _, Ji).call(_)) $(D, _, Qi).call(_, p, [], []);
690
694
  }
691
- p.deactivate();
695
+ _.deactivate();
692
696
  }
693
697
  }
694
698
  }
695
699
  }
696
- function Hn() {
700
+ function Fn() {
697
701
  if (this.linked) {
698
- var e = l(ft, this), t = l(ot, this);
699
- e === null ? In = t : $(ot, e, t), t === null ? yt = e : $(ft, t, e), this.linked = !1;
702
+ var e = l(ut, this), t = l(at, this);
703
+ e === null ? Wn = t : S(at, e, t), t === null ? kt = e : S(ut, t, e), this.linked = !1;
700
704
  }
701
705
  }
702
- function Vn(e) {
703
- var t = Zt;
704
- Zt = !0;
706
+ function sn(e) {
707
+ var t = Qt, n = At;
708
+ At = null, Qt = !0;
705
709
  try {
706
- var n;
707
- for (e && (A !== null && !A.is_fork && A.flush(), n = e()); ; ) {
708
- if (Ua(), A === null) return n;
709
- A.flush();
710
+ var r;
711
+ for (e && (sn(), r = e()); ; ) {
712
+ if (Ua(), x === null) return r;
713
+ x.flush();
710
714
  }
711
715
  } finally {
712
- Zt = t;
716
+ Qt = t, At = n;
713
717
  }
714
718
  }
715
719
  function is() {
716
720
  if (0) {
717
721
  var e;
718
- for (const n of A.current.keys()) for (const [r, i] of n.updated ?? [])
722
+ for (const n of x.current.keys()) for (const [r, i] of n.updated ?? [])
719
723
  var t;
720
724
  }
721
725
  try {
722
726
  Wa();
723
727
  } catch (n) {
724
- Le(n, $r);
728
+ Le(n, Sr);
725
729
  }
726
730
  }
727
731
  var Re = null;
728
- function di(e) {
732
+ function hi(e) {
729
733
  var t = e.length;
730
734
  if (t !== 0) {
731
735
  for (var n = 0; n < t; ) {
732
736
  var r = e[n++];
733
- if ((r.f & 24576) === 0 && fn(r) && (Re = /* @__PURE__ */ new Set(), Rt(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && _o(r), Re?.size > 0)) {
737
+ if ((r.f & 24576) === 0 && hn(r) && (Re = /* @__PURE__ */ new Set(), Ot(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && po(r), Re?.size > 0)) {
734
738
  Oe.clear();
735
739
  for (const i of Re) {
736
740
  if ((i.f & 24576) !== 0) continue;
@@ -740,7 +744,7 @@ function di(e) {
740
744
  Re.has(a) && (Re.delete(a), o.push(a)), a = a.parent;
741
745
  for (let f = o.length - 1; f >= 0; f--) {
742
746
  const c = o[f];
743
- (c.f & 24576) === 0 && Rt(c);
747
+ (c.f & 24576) === 0 && Ot(c);
744
748
  }
745
749
  }
746
750
  Re.clear();
@@ -749,144 +753,144 @@ function di(e) {
749
753
  Re = null;
750
754
  }
751
755
  }
752
- function Qi(e, t, n, r) {
756
+ function eo(e, t, n, r) {
753
757
  if (!n.has(e) && (n.add(e), e.reactions !== null))
754
758
  for (const i of e.reactions) {
755
759
  const o = i.f;
756
- (o & 2) !== 0 ? Qi(i, t, n, r) : (o & 4194320) !== 0 && (o & 2048) === 0 && Fr(i, t, r) && (D(i, ce), Br(i));
760
+ (o & 2) !== 0 ? eo(i, t, n, r) : (o & 4194320) !== 0 && (o & 2048) === 0 && zr(i, t, r) && (j(i, ce), Ur(i));
757
761
  }
758
762
  }
759
- function Fr(e, t, n) {
763
+ function zr(e, t, n) {
760
764
  const r = n.get(e);
761
765
  if (r !== void 0) return r;
762
766
  if (e.deps !== null) for (const i of e.deps) {
763
- if (Cn.call(t, i)) return !0;
764
- if ((i.f & 2) !== 0 && Fr(i, t, n))
767
+ if (tn.call(t, i)) return !0;
768
+ if ((i.f & 2) !== 0 && zr(i, t, n))
765
769
  return n.set(i, !0), !0;
766
770
  }
767
771
  return n.set(e, !1), !1;
768
772
  }
769
- function Br(e) {
770
- A.schedule(e);
773
+ function Ur(e) {
774
+ x.schedule(e);
771
775
  }
772
- function eo(e, t) {
776
+ function to(e, t) {
773
777
  if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
774
- (e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), D(e, _e);
778
+ (e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), j(e, _e);
775
779
  for (var n = e.first; n !== null; )
776
- eo(n, t), n = n.next;
780
+ to(n, t), n = n.next;
777
781
  }
778
782
  }
779
- function to(e) {
780
- D(e, _e);
783
+ function no(e) {
784
+ j(e, _e);
781
785
  for (var t = e.first; t !== null; )
782
- to(t), t = t.next;
786
+ no(t), t = t.next;
783
787
  }
784
- var Fn = /* @__PURE__ */ new Set(), Oe = /* @__PURE__ */ new Map();
785
- var no = !1;
786
- function vt(e, t) {
788
+ var Bn = /* @__PURE__ */ new Set(), Oe = /* @__PURE__ */ new Map();
789
+ var ro = !1;
790
+ function _t(e, t) {
787
791
  var n = {
788
792
  f: 0,
789
793
  v: e,
790
794
  reactions: null,
791
- equals: Wi,
795
+ equals: Di,
792
796
  rv: 0,
793
797
  wv: 0
794
798
  };
795
799
  return n;
796
800
  }
797
801
  // @__NO_SIDE_EFFECTS__
798
- function H(e, t) {
799
- const n = vt(e, t);
800
- return bo(n), n;
802
+ function V(e, t) {
803
+ const n = _t(e, t);
804
+ return wo(n), n;
801
805
  }
802
806
  // @__NO_SIDE_EFFECTS__
803
- function ro(e, t = !1, n = !0) {
804
- const r = vt(e);
805
- if (t || (r.equals = Di), Yn && n && V !== null && V.l !== null) {
807
+ function io(e, t = !1, n = !0) {
808
+ const r = _t(e);
809
+ if (t || (r.equals = ji), Kn && n && F !== null && F.l !== null) {
806
810
  var i;
807
- ((i = V.l).s ?? (i.s = [])).push(r);
811
+ ((i = F.l).s ?? (i.s = [])).push(r);
808
812
  }
809
813
  return r;
810
814
  }
811
815
  function L(e, t, n = !1) {
812
- R !== null && (!ye || (R.f & 131072) !== 0) && ln() && (R.f & 4325394) !== 0 && ($e === null || !$e.has(e)) && Fa();
813
- let r = n ? at(t) : t;
814
- return Mt(e, r, qn);
816
+ R !== null && (!ye || (R.f & 131072) !== 0) && dn() && (R.f & 4325394) !== 0 && ($e === null || !$e.has(e)) && Fa();
817
+ let r = n ? st(t) : t;
818
+ return Ct(e, r, Dn);
815
819
  }
816
- var rt = null, Er = 0;
817
- function Mt(e, t, n = null) {
820
+ var it = null, Tr = 0;
821
+ function Ct(e, t, n = null) {
818
822
  if (!e.equals(t)) {
819
- Ve ? Oe.set(e, t) : Oe.has(e) || Oe.set(e, e.v);
820
- var r = pt.ensure();
823
+ Fe ? Oe.set(e, t) : Oe.has(e) || Oe.set(e, e.v);
824
+ var r = gt.ensure();
821
825
  if (r.capture(e, t), (e.f & 2) !== 0) {
822
826
  const i = e;
823
- (e.f & 2048) !== 0 && Hr(i), te === null && Dr(i);
827
+ (e.f & 2048) !== 0 && Fr(i), te === null && Hr(i);
824
828
  }
825
- e.wv = mo(), rt = null, Er = 0, io(e, ce, n), rt = null, ln() && x !== null && (x.f & 1024) !== 0 && (x.f & 96) === 0 && (ve === null ? bs([e]) : ve.push(e)), !r.is_fork && Fn.size > 0 && !no && os();
829
+ e.wv = yo(), it = null, Tr = 0, oo(e, ce, n), it = null, dn() && A !== null && (A.f & 1024) !== 0 && (A.f & 96) === 0 && (ve === null ? bs([e]) : ve.push(e)), !r.is_fork && Bn.size > 0 && !ro && os();
826
830
  }
827
831
  return t;
828
832
  }
829
833
  function os() {
830
- no = !1;
831
- for (const e of Fn) {
832
- (e.f & 1024) !== 0 && D(e, _t);
834
+ ro = !1;
835
+ for (const e of Bn) {
836
+ (e.f & 1024) !== 0 && j(e, pt);
833
837
  let t;
834
838
  try {
835
- t = fn(e);
839
+ t = hn(e);
836
840
  } catch {
837
841
  t = !0;
838
842
  }
839
- t && Rt(e);
843
+ t && Ot(e);
840
844
  }
841
- Fn.clear();
845
+ Bn.clear();
842
846
  }
843
- function Jt(e) {
847
+ function en(e) {
844
848
  L(e, e.v + 1);
845
849
  }
846
- function io(e, t, n) {
850
+ function oo(e, t, n) {
847
851
  var r = e.reactions;
848
852
  if (r !== null) {
849
- var i = ln(), o = r.length;
850
- if (Er += o, Er > 1e5 && rt === null && (rt = /* @__PURE__ */ new Set()), rt !== null) {
851
- if (rt.has(e)) return;
852
- rt.add(e);
853
+ var i = dn(), o = r.length;
854
+ if (Tr += o, Tr > 1e5 && it === null && (it = /* @__PURE__ */ new Set()), it !== null) {
855
+ if (it.has(e)) return;
856
+ it.add(e);
853
857
  }
854
858
  for (var a = 0; a < o; a++) {
855
859
  var f = r[a], c = f.f;
856
- if (!(!i && f === x)) {
857
- var _ = (c & ce) === 0;
858
- if (_ && D(f, t), (c & 131072) !== 0) Fn.add(f);
860
+ if (!(!i && f === A)) {
861
+ var p = (c & ce) === 0;
862
+ if (p && j(f, t), (c & 131072) !== 0) Bn.add(f);
859
863
  else if ((c & 2) !== 0) {
860
- var p = f;
861
- te?.delete(p), io(p, _t, n);
862
- } else if (_) {
864
+ var _ = f;
865
+ te?.delete(_), oo(_, pt, n);
866
+ } else if (p) {
863
867
  var u = f;
864
- (c & 16) !== 0 && Re !== null && Re.add(u), n !== null ? n.push(u) : Br(u);
868
+ (c & 16) !== 0 && Re !== null && Re.add(u), n !== null ? n.push(u) : Ur(u);
865
869
  }
866
870
  }
867
871
  }
868
872
  }
869
873
  }
870
874
  var as = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
871
- function at(e) {
872
- if (typeof e != "object" || e === null || Xt in e || Pi in e) return e;
873
- const t = Li(e);
874
- if (t !== ga && t !== ba) return e;
875
- var n = /* @__PURE__ */ new Map(), r = Oi(e), i = /* @__PURE__ */ H(0), o = null, a = ut, f = (u) => {
876
- if (ut === a) return u();
877
- var d = R, h = ut;
878
- ge(null), _i(a);
875
+ function st(e) {
876
+ if (typeof e != "object" || e === null || Jt in e || qi in e) return e;
877
+ const t = Ni(e);
878
+ if (t !== ba && t !== wa) return e;
879
+ var n = /* @__PURE__ */ new Map(), r = Li(e), i = /* @__PURE__ */ V(0), o = null, a = ct, f = (u) => {
880
+ if (ct === a) return u();
881
+ var d = R, h = ct;
882
+ ge(null), pi(a);
879
883
  var b = u();
880
- return ge(d), _i(h), b;
884
+ return ge(d), pi(h), b;
881
885
  };
882
- r && n.set("length", /* @__PURE__ */ H(e.length, o));
886
+ r && n.set("length", /* @__PURE__ */ V(e.length, o));
883
887
  var c = "";
884
- let _ = !1;
885
- function p(u) {
886
- if (!_) {
887
- _ = !0, c = u, ui(i, `${c} version`);
888
- for (const [d, h] of n) ui(h, ss(c, d));
889
- _ = !1;
888
+ let p = !1;
889
+ function _(u) {
890
+ if (!p) {
891
+ p = !0, c = u, ci(i, `${c} version`);
892
+ for (const [d, h] of n) ci(h, ss(c, d));
893
+ p = !1;
890
894
  }
891
895
  }
892
896
  return new Proxy(e, {
@@ -894,30 +898,30 @@ function at(e) {
894
898
  (!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) && Ha();
895
899
  var b = n.get(d);
896
900
  return b === void 0 ? f(() => {
897
- var y = /* @__PURE__ */ H(h.value, o);
898
- return n.set(d, y), y;
901
+ var w = /* @__PURE__ */ V(h.value, o);
902
+ return n.set(d, w), w;
899
903
  }) : L(b, h.value, !0), !0;
900
904
  },
901
905
  deleteProperty(u, d) {
902
906
  var h = n.get(d);
903
907
  if (h === void 0) {
904
908
  if (d in u) {
905
- const b = f(() => /* @__PURE__ */ H(B, o));
906
- n.set(d, b), Jt(i);
909
+ const b = f(() => /* @__PURE__ */ V(z, o));
910
+ n.set(d, b), en(i);
907
911
  }
908
912
  } else
909
- L(h, B), Jt(i);
913
+ L(h, z), en(i);
910
914
  return !0;
911
915
  },
912
916
  get(u, d, h) {
913
- if (d === Xt) return e;
914
- var b = n.get(d), y = d in u;
915
- if (b === void 0 && (!y || lt(u, d)?.writable) && (b = f(() => {
916
- var m = at(y ? u[d] : B), N = /* @__PURE__ */ H(m, o);
917
- return N;
917
+ if (d === Jt) return e;
918
+ var b = n.get(d), w = d in u;
919
+ if (b === void 0 && (!w || ft(u, d)?.writable) && (b = f(() => {
920
+ var y = st(w ? u[d] : z), P = /* @__PURE__ */ V(y, o);
921
+ return P;
918
922
  }), n.set(d, b)), b !== void 0) {
919
923
  var g = s(b);
920
- return g === B ? void 0 : g;
924
+ return g === z ? void 0 : g;
921
925
  }
922
926
  return Reflect.get(u, d, h);
923
927
  },
@@ -925,56 +929,56 @@ function at(e) {
925
929
  this.has?.(u, d);
926
930
  var h = Reflect.getOwnPropertyDescriptor(u, d), b = n.get(d);
927
931
  if (b !== void 0) {
928
- var y = s(b);
929
- if (y === B) return;
930
- if (h && "value" in h) h.value = y;
932
+ var w = s(b);
933
+ if (w === z) return;
934
+ if (h && "value" in h) h.value = w;
931
935
  else return {
932
936
  enumerable: !0,
933
937
  configurable: !0,
934
- value: y,
938
+ value: w,
935
939
  writable: !0
936
940
  };
937
941
  }
938
942
  return h;
939
943
  },
940
944
  has(u, d) {
941
- if (d === Xt) return !0;
942
- var h = n.get(d), b = h !== void 0 && h.v !== B || Reflect.has(u, d);
943
- return (h !== void 0 || x !== null && (!b || lt(u, d)?.writable)) && (h === void 0 && (h = f(() => {
944
- var y = b ? at(u[d]) : B, g = /* @__PURE__ */ H(y, o);
945
+ if (d === Jt) return !0;
946
+ var h = n.get(d), b = h !== void 0 && h.v !== z || Reflect.has(u, d);
947
+ return (h !== void 0 || A !== null && (!b || ft(u, d)?.writable)) && (h === void 0 && (h = f(() => {
948
+ var w = b ? st(u[d]) : z, g = /* @__PURE__ */ V(w, o);
945
949
  return g;
946
- }), n.set(d, h)), s(h) === B) ? !1 : b;
950
+ }), n.set(d, h)), s(h) === z) ? !1 : b;
947
951
  },
948
952
  set(u, d, h, b) {
949
- var y = n.get(d), g = d in u;
950
- if (r && d === "length") for (var m = h; m < y.v; m += 1) {
951
- var N = n.get(m + "");
952
- N !== void 0 ? L(N, B) : m in u && (N = f(() => /* @__PURE__ */ H(B, o)), n.set(m + "", N));
953
+ var w = n.get(d), g = d in u;
954
+ if (r && d === "length") for (var y = h; y < w.v; y += 1) {
955
+ var P = n.get(y + "");
956
+ P !== void 0 ? L(P, z) : y in u && (P = f(() => /* @__PURE__ */ V(z, o)), n.set(y + "", P));
953
957
  }
954
- if (y === void 0)
955
- (!g || lt(u, d)?.writable) && (y = f(() => /* @__PURE__ */ H(void 0, o)), L(y, at(h)), n.set(d, y));
958
+ if (w === void 0)
959
+ (!g || ft(u, d)?.writable) && (w = f(() => /* @__PURE__ */ V(void 0, o)), L(w, st(h)), n.set(d, w));
956
960
  else {
957
- g = y.v !== B;
958
- var k = f(() => at(h));
959
- L(y, k);
961
+ g = w.v !== z;
962
+ var k = f(() => st(h));
963
+ L(w, k);
960
964
  }
961
965
  var T = Reflect.getOwnPropertyDescriptor(u, d);
962
966
  if (T?.set && T.set.call(b, h), !g) {
963
967
  if (r && typeof d == "string") {
964
- var G = n.get("length"), j = Number(d);
965
- Number.isInteger(j) && j >= G.v && L(G, j + 1);
968
+ var G = n.get("length"), H = Number(d);
969
+ Number.isInteger(H) && H >= G.v && L(G, H + 1);
966
970
  }
967
- Jt(i);
971
+ en(i);
968
972
  }
969
973
  return !0;
970
974
  },
971
975
  ownKeys(u) {
972
976
  s(i);
973
- var d = Reflect.ownKeys(u).filter((y) => {
974
- var g = n.get(y);
975
- return g === void 0 || g.v !== B;
977
+ var d = Reflect.ownKeys(u).filter((w) => {
978
+ var g = n.get(w);
979
+ return g === void 0 || g.v !== z;
976
980
  });
977
- for (var [h, b] of n) b.v !== B && !(h in u) && d.push(h);
981
+ for (var [h, b] of n) b.v !== z && !(h in u) && d.push(h);
978
982
  return d;
979
983
  },
980
984
  setPrototypeOf() {
@@ -985,38 +989,38 @@ function at(e) {
985
989
  function ss(e, t) {
986
990
  return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : as.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
987
991
  }
988
- var hi, ls, oo, ao, so;
989
- function Tr() {
990
- if (hi === void 0) {
991
- hi = window, ls = document, oo = /Firefox/.test(navigator.userAgent);
992
+ var vi, ls, ao, so, lo;
993
+ function Ar() {
994
+ if (vi === void 0) {
995
+ vi = window, ls = document, ao = /Firefox/.test(navigator.userAgent);
992
996
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
993
- ao = lt(t, "firstChild").get, so = lt(t, "nextSibling").get, si(e) && (e[mr] = void 0, e[wr] = null, e[yr] = void 0, e.__e = void 0), si(n) && (n[Tn] = void 0);
997
+ so = ft(t, "firstChild").get, lo = ft(t, "nextSibling").get, fi(e) && (e[kr] = void 0, e[yr] = null, e[$r] = void 0, e.__e = void 0), fi(n) && (n[Rn] = void 0);
994
998
  }
995
999
  }
996
1000
  function fe(e = "") {
997
1001
  return document.createTextNode(e);
998
1002
  }
999
1003
  // @__NO_SIDE_EFFECTS__
1000
- function se(e) {
1001
- return ao.call(e);
1004
+ function le(e) {
1005
+ return so.call(e);
1002
1006
  }
1003
1007
  // @__NO_SIDE_EFFECTS__
1004
1008
  function Te(e) {
1005
- return so.call(e);
1009
+ return lo.call(e);
1006
1010
  }
1007
- function xn(e, t) {
1008
- if (!M) return /* @__PURE__ */ se(e);
1009
- var n = /* @__PURE__ */ se(C);
1011
+ function On(e, t) {
1012
+ if (!M) return /* @__PURE__ */ le(e);
1013
+ var n = /* @__PURE__ */ le(C);
1010
1014
  if (n === null) n = C.appendChild(fe());
1011
1015
  else if (t && n.nodeType !== 3) {
1012
1016
  var r = fe();
1013
1017
  return n?.before(r), X(r), r;
1014
1018
  }
1015
- return t && Zn(n), X(n), n;
1019
+ return t && Jn(n), X(n), n;
1016
1020
  }
1017
- function mn(e, t = !1) {
1021
+ function Sn(e, t = !1) {
1018
1022
  if (!M) {
1019
- var n = /* @__PURE__ */ se(e);
1023
+ var n = /* @__PURE__ */ le(e);
1020
1024
  return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Te(n) : n;
1021
1025
  }
1022
1026
  if (t) {
@@ -1024,14 +1028,14 @@ function mn(e, t = !1) {
1024
1028
  var r = fe();
1025
1029
  return C?.before(r), X(r), r;
1026
1030
  }
1027
- Zn(C);
1031
+ Jn(C);
1028
1032
  }
1029
1033
  return C;
1030
1034
  }
1031
- function fr(e, t = !1) {
1032
- if (!M) return /* @__PURE__ */ se(e);
1033
- var n = xn(e, t);
1034
- return Ft(e), n;
1035
+ function ur(e, t = !1) {
1036
+ if (!M) return /* @__PURE__ */ le(e);
1037
+ var n = On(e, t);
1038
+ return zt(e), n;
1035
1039
  }
1036
1040
  function xe(e, t = 1, n = !1) {
1037
1041
  let r = M ? C : e;
@@ -1043,34 +1047,35 @@ function xe(e, t = 1, n = !1) {
1043
1047
  var o = fe();
1044
1048
  return r === null ? i?.after(o) : r.before(o), X(o), o;
1045
1049
  }
1046
- Zn(r);
1050
+ Jn(r);
1047
1051
  }
1048
1052
  return X(r), r;
1049
1053
  }
1050
- function lo(e) {
1054
+ function fo(e) {
1051
1055
  e.textContent = "";
1052
1056
  }
1053
- function fo() {
1054
- return !Fe || Re !== null ? !1 : (x.f & Ir) !== 0;
1057
+ function uo() {
1058
+ return !Be || Re !== null ? !1 : (A.f & qr) !== 0;
1055
1059
  }
1056
- function Xn(e, t, n) {
1060
+ function Zn(e, t, n) {
1057
1061
  return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
1058
1062
  }
1059
- function Zn(e) {
1063
+ function Jn(e) {
1060
1064
  if (e.nodeValue.length < 65536) return;
1061
1065
  let t = e.nextSibling;
1062
1066
  for (; t !== null && t.nodeType === 3; )
1063
1067
  t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1064
1068
  }
1065
1069
  function fs(e) {
1066
- var t = x;
1070
+ var t = A;
1067
1071
  if (t === null)
1068
- return R.f |= Ln, e;
1072
+ return R.f |= Pn, e;
1069
1073
  if ((t.f & 32768) === 0 && (t.f & 4) === 0)
1070
1074
  throw e;
1071
1075
  Le(e, t);
1072
1076
  }
1073
1077
  function Le(e, t) {
1078
+ if (e === Ve) throw e;
1074
1079
  if (!(t !== null && (t.f & 16384) !== 0)) {
1075
1080
  for (; t !== null; ) {
1076
1081
  if ((t.f & 128) !== 0 && (t.f & 33570816) === 0) {
@@ -1088,17 +1093,17 @@ function Le(e, t) {
1088
1093
  }
1089
1094
  }
1090
1095
  function us(e) {
1091
- x === null && (R === null && qa(e), Ia()), Ve && Pa(e);
1096
+ A === null && (R === null && qa(e), Ia()), Fe && Pa(e);
1092
1097
  }
1093
1098
  function cs(e, t) {
1094
1099
  var n = t.last;
1095
1100
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1096
1101
  }
1097
1102
  function Pe(e, t) {
1098
- var n = x;
1099
- n !== null && (n.f & 8192) !== 0 && (e |= Pr);
1103
+ var n = A;
1104
+ n !== null && (n.f & 8192) !== 0 && (e |= Ir);
1100
1105
  var r = {
1101
- ctx: V,
1106
+ ctx: F,
1102
1107
  deps: null,
1103
1108
  nodes: null,
1104
1109
  f: e | ce | 512,
@@ -1113,17 +1118,17 @@ function Pe(e, t) {
1113
1118
  wv: 0,
1114
1119
  ac: null
1115
1120
  };
1116
- A?.register_created_effect(r);
1121
+ x?.register_created_effect(r);
1117
1122
  var i = r;
1118
1123
  if ((e & 4) !== 0)
1119
- nn !== null ? nn.push(r) : pt.ensure().schedule(r);
1124
+ an !== null ? an.push(r) : gt.ensure().schedule(r);
1120
1125
  else if (t !== null) {
1121
1126
  try {
1122
- Rt(r);
1127
+ Ot(r);
1123
1128
  } catch (a) {
1124
1129
  throw ne(r), a;
1125
1130
  }
1126
- i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= qr));
1131
+ i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= Wr));
1127
1132
  }
1128
1133
  if (i !== null && (i.parent = n, n !== null && cs(i, n), R !== null && (R.f & 2) !== 0 && (e & 64) === 0)) {
1129
1134
  var o = R;
@@ -1131,47 +1136,47 @@ function Pe(e, t) {
1131
1136
  }
1132
1137
  return r;
1133
1138
  }
1134
- function zr() {
1139
+ function Gr() {
1135
1140
  return R !== null && !ye;
1136
1141
  }
1137
1142
  function ds(e) {
1138
1143
  const t = Pe(8, null);
1139
- return D(t, _e), t.teardown = e, t;
1144
+ return j(t, _e), t.teardown = e, t;
1140
1145
  }
1141
- function jt(e) {
1146
+ function Vt(e) {
1142
1147
  us("$effect");
1143
- var t = x.f;
1144
- if (!R && (t & 32) !== 0 && V !== null && !V.i) {
1145
- var n = V;
1148
+ var t = A.f;
1149
+ if (!R && (t & 32) !== 0 && F !== null && !F.i) {
1150
+ var n = F;
1146
1151
  (n.e ?? (n.e = [])).push(e);
1147
- } else return uo(e);
1152
+ } else return co(e);
1148
1153
  }
1149
- function uo(e) {
1154
+ function co(e) {
1150
1155
  return Pe(4 | Sa, e);
1151
1156
  }
1152
1157
  function hs(e) {
1153
- pt.ensure();
1154
- const t = Pe(64 | Ct, e);
1158
+ gt.ensure();
1159
+ const t = Pe(64 | Lt, e);
1155
1160
  return () => {
1156
1161
  ne(t);
1157
1162
  };
1158
1163
  }
1159
1164
  function vs(e) {
1160
- pt.ensure();
1161
- const t = Pe(64 | Ct, e);
1165
+ gt.ensure();
1166
+ const t = Pe(64 | Lt, e);
1162
1167
  return (n = {}) => new Promise((r) => {
1163
- n.outro ? gt(t, () => {
1168
+ n.outro ? bt(t, () => {
1164
1169
  ne(t), r(void 0);
1165
1170
  }) : (ne(t), r(void 0));
1166
1171
  });
1167
1172
  }
1168
- function co(e) {
1173
+ function ho(e) {
1169
1174
  return Pe(4, e);
1170
1175
  }
1171
1176
  function _s(e) {
1172
- return Pe(Ea | Ct, e);
1177
+ return Pe(Ea | Lt, e);
1173
1178
  }
1174
- function Ur(e, t = 0) {
1179
+ function Yr(e, t = 0) {
1175
1180
  return Pe(8 | t, e);
1176
1181
  }
1177
1182
  function We(e, t = [], n = [], r = []) {
@@ -1181,33 +1186,33 @@ function We(e, t = [], n = [], r = []) {
1181
1186
  });
1182
1187
  });
1183
1188
  }
1184
- function Gr(e, t = 0) {
1189
+ function Kr(e, t = 0) {
1185
1190
  var n = Pe(16 | t, e);
1186
1191
  return n;
1187
1192
  }
1188
1193
  function pe(e) {
1189
- return Pe(32 | Ct, e);
1194
+ return Pe(32 | Lt, e);
1190
1195
  }
1191
- function ho(e) {
1196
+ function vo(e) {
1192
1197
  var t = e.teardown;
1193
1198
  if (t !== null) {
1194
- const n = Ve, r = R;
1195
- vi(!0), ge(null);
1199
+ const n = Fe, r = R;
1200
+ _i(!0), ge(null);
1196
1201
  try {
1197
1202
  t.call(null);
1198
1203
  } catch (i) {
1199
1204
  Le(i, e.parent);
1200
1205
  } finally {
1201
- vi(n), ge(r);
1206
+ _i(n), ge(r);
1202
1207
  }
1203
1208
  }
1204
1209
  }
1205
- function Yr(e, t = !1) {
1210
+ function Xr(e, t = !1) {
1206
1211
  var n = e.first;
1207
1212
  for (e.first = e.last = null; n !== null; ) {
1208
1213
  const i = n.ac;
1209
- i !== null && Kn(() => {
1210
- i.abort(an);
1214
+ i !== null && Xn(() => {
1215
+ i.abort(un);
1211
1216
  });
1212
1217
  var r = n.next;
1213
1218
  (n.f & 64) !== 0 ? n.parent = null : ne(n, t), n = r;
@@ -1221,26 +1226,26 @@ function ps(e) {
1221
1226
  }
1222
1227
  function ne(e, t = !0) {
1223
1228
  var n = !1;
1224
- (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (vo(e.nodes.start, e.nodes.end), n = !0), e.f |= li, Yr(e, t && !n), rn(e, 0);
1229
+ (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (_o(e.nodes.start, e.nodes.end), n = !0), e.f |= mr, Xr(e, t && !n), ln(e, 0);
1225
1230
  var r = e.nodes && e.nodes.t;
1226
1231
  if (r !== null) for (const o of r) o.stop();
1227
- ho(e), e.f ^= li, e.f |= $a;
1232
+ vo(e), e.f ^= mr, e.f |= Ii;
1228
1233
  var i = e.parent;
1229
- i !== null && i.first !== null && _o(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1234
+ i !== null && i.first !== null && po(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1230
1235
  }
1231
- function vo(e, t) {
1236
+ function _o(e, t) {
1232
1237
  for (; e !== null; ) {
1233
1238
  var n = e === t ? null : /* @__PURE__ */ Te(e);
1234
1239
  e.remove(), e = n;
1235
1240
  }
1236
1241
  }
1237
- function _o(e) {
1242
+ function po(e) {
1238
1243
  var t = e.parent, n = e.prev, r = e.next;
1239
1244
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1240
1245
  }
1241
- function gt(e, t, n = !0) {
1246
+ function bt(e, t, n = !0) {
1242
1247
  var r = [];
1243
- e.f |= 256, po(e, r, !0);
1248
+ e.f |= 256, go(e, r, !0);
1244
1249
  var i = () => {
1245
1250
  n && ne(e), t && t();
1246
1251
  }, o = r.length;
@@ -1249,9 +1254,9 @@ function gt(e, t, n = !0) {
1249
1254
  for (var f of r) f.out(a);
1250
1255
  } else i();
1251
1256
  }
1252
- function po(e, t, n) {
1257
+ function go(e, t, n) {
1253
1258
  if ((e.f & 8192) === 0) {
1254
- e.f ^= Pr;
1259
+ e.f ^= Ir;
1255
1260
  var r = e.nodes && e.nodes.t;
1256
1261
  if (r !== null)
1257
1262
  for (const f of r) (f.is_global || n) && t.push(f);
@@ -1259,210 +1264,212 @@ function po(e, t, n) {
1259
1264
  var o = i.next;
1260
1265
  if ((i.f & 64) === 0) {
1261
1266
  var a = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
1262
- po(i, t, a ? n : !1);
1267
+ go(i, t, a ? n : !1);
1263
1268
  }
1264
1269
  i = o;
1265
1270
  }
1266
1271
  }
1267
1272
  }
1268
- function Bn(e) {
1269
- e.f &= -257, go(e, !0);
1273
+ function zn(e) {
1274
+ e.f &= -257, bo(e, !0);
1270
1275
  }
1271
- function go(e, t) {
1276
+ function bo(e, t) {
1272
1277
  if ((e.f & 256) === 0 && (e.f & 8192) !== 0) {
1273
- e.f ^= Pr, (e.f & 1024) === 0 && (D(e, ce), pt.ensure().schedule(e));
1278
+ e.f ^= Ir, (e.f & 1024) === 0 && (j(e, ce), gt.ensure().schedule(e));
1274
1279
  for (var n = e.first; n !== null; ) {
1275
1280
  var r = n.next, i = (n.f & 65536) !== 0 || (n.f & 32) !== 0;
1276
- go(n, i ? t : !1), n = r;
1281
+ bo(n, i ? t : !1), n = r;
1277
1282
  }
1278
1283
  var o = e.nodes && e.nodes.t;
1279
1284
  if (o !== null)
1280
1285
  for (const a of o) (a.is_global || t) && a.in();
1281
1286
  }
1282
1287
  }
1283
- function Kr(e, t) {
1288
+ function Zr(e, t) {
1284
1289
  if (e.nodes)
1285
1290
  for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
1286
1291
  var i = n === r ? null : /* @__PURE__ */ Te(n);
1287
1292
  t.append(n), n = i;
1288
1293
  }
1289
1294
  }
1290
- var gs = null, Mn = !1, Ve = !1;
1291
- function vi(e) {
1292
- Ve = e;
1295
+ var gs = null, Fe = !1;
1296
+ function _i(e) {
1297
+ Fe = e;
1293
1298
  }
1294
1299
  var R = null, ye = !1;
1295
1300
  function ge(e) {
1296
1301
  R = e;
1297
1302
  }
1298
- var x = null;
1303
+ var A = null;
1299
1304
  function Ne(e) {
1300
- x = e;
1305
+ A = e;
1301
1306
  }
1302
1307
  var $e = null;
1303
- function bo(e) {
1304
- R !== null && (!Fe && (R.f & 2097152) !== 0 || (R.f & 2) !== 0) && ($e ?? ($e = /* @__PURE__ */ new Set())).add(e);
1308
+ function wo(e) {
1309
+ R !== null && (!Be && (R.f & 2097152) !== 0 || (R.f & 2) !== 0) && ($e ?? ($e = /* @__PURE__ */ new Set())).add(e);
1305
1310
  }
1306
- var re = null, ae = 0, ve = null;
1311
+ var re = null, se = 0, ve = null;
1307
1312
  function bs(e) {
1308
1313
  ve = e;
1309
1314
  }
1310
- var wo = 1, st = 0, ut = st;
1311
- function _i(e) {
1312
- ut = e;
1315
+ var mo = 1, lt = 0, ct = lt;
1316
+ function pi(e) {
1317
+ ct = e;
1313
1318
  }
1314
- function mo() {
1315
- return ++wo;
1319
+ function yo() {
1320
+ return ++mo;
1316
1321
  }
1317
- function fn(e) {
1322
+ function hn(e) {
1318
1323
  var t = e.f;
1319
1324
  if ((t & 2048) !== 0) return !0;
1320
1325
  if ((t & 4096) !== 0) {
1321
1326
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1322
1327
  var o = n[i];
1323
- if (fn(o) && zi(o), o.wv > e.wv) return !0;
1328
+ if (hn(o) && Ui(o), o.wv > e.wv) return !0;
1324
1329
  }
1325
- (t & 512) !== 0 && te === null && D(e, _e);
1330
+ (t & 512) !== 0 && te === null && j(e, _e);
1326
1331
  }
1327
1332
  return !1;
1328
1333
  }
1329
- function yo(e, t, n = !0) {
1334
+ function ko(e, t, n = !0) {
1330
1335
  var r = e.reactions;
1331
- if (r !== null && !(!Fe && $e !== null && $e.has(e)))
1336
+ if (r !== null && !(!Be && $e !== null && $e.has(e)))
1332
1337
  for (var i = 0; i < r.length; i++) {
1333
1338
  var o = r[i];
1334
- (o.f & 2) !== 0 ? yo(o, t, !1) : t === o && (n ? D(o, ce) : (o.f & 1024) !== 0 && D(o, _t), Br(o));
1339
+ (o.f & 2) !== 0 ? ko(o, t, !1) : t === o && (n ? j(o, ce) : (o.f & 1024) !== 0 && j(o, pt), Ur(o));
1335
1340
  }
1336
1341
  }
1337
- function ko(e) {
1338
- var t = re, n = ae, r = ve, i = R, o = $e, a = V, f = ye, c = ut, _ = e.f;
1339
- re = null, ae = 0, ve = null, R = (_ & 96) === 0 ? e : null, $e = null, xt(e.ctx), ye = !1, ut = ++st, e.ac !== null && (Kn(() => {
1340
- e.ac.abort(an);
1342
+ function $o(e) {
1343
+ var t = re, n = se, r = ve, i = R, o = $e, a = F, f = ye, c = ct, p = e.f;
1344
+ re = null, se = 0, ve = null, R = (p & 96) === 0 ? e : null, $e = null, Rt(e.ctx), ye = !1, ct = ++lt, e.ac !== null && (Xn(() => {
1345
+ e.ac.abort(un);
1341
1346
  }), e.ac = null);
1342
1347
  try {
1343
- e.f |= fi;
1344
- var p = e.fn, u = p();
1345
- e.f |= Ir;
1346
- var d = pi(e);
1347
- if (ln() && ve !== null && !ye && d !== null && (e.f & 6146) === 0) for (var h = 0; h < ve.length; h++) yo(ve[h], e);
1348
+ e.f |= ui;
1349
+ var _ = e.fn, u = _();
1350
+ e.f |= qr;
1351
+ var d = gi(e);
1352
+ if (dn() && ve !== null && !ye && d !== null && (e.f & 6146) === 0) for (var h = 0; h < ve.length; h++) ko(ve[h], e);
1348
1353
  if (i !== null && i !== e) {
1349
- if (st++, i.deps !== null) for (let b = 0; b < n; b += 1) i.deps[b].rv = st;
1350
- if (t !== null) for (const b of t) b.rv = st;
1354
+ if (lt++, i.deps !== null) for (let b = 0; b < n; b += 1) i.deps[b].rv = lt;
1355
+ if (t !== null) for (const b of t) b.rv = lt;
1351
1356
  ve !== null && (r === null ? r = ve : r.push(...ve));
1352
1357
  }
1353
- return (e.f & 8388608) !== 0 && (e.f ^= Ln), u;
1358
+ return (e.f & 8388608) !== 0 && (e.f ^= Pn), u;
1354
1359
  } catch (b) {
1355
- return pi(e), fs(b);
1360
+ return gi(e), fs(b);
1356
1361
  } finally {
1357
- e.f ^= fi, re = t, ae = n, ve = r, R = i, $e = o, xt(a), ye = f, ut = c;
1362
+ e.f ^= ui, re = t, se = n, ve = r, R = i, $e = o, Rt(a), ye = f, ct = c;
1358
1363
  }
1359
1364
  }
1360
- function pi(e) {
1361
- var t = e.deps, n = A?.is_fork;
1365
+ function gi(e) {
1366
+ var t = e.deps, n = x?.is_fork;
1362
1367
  if (re !== null) {
1363
1368
  var r;
1364
- if (n || rn(e, ae), t !== null && ae > 0)
1365
- for (t.length = ae + re.length, r = 0; r < re.length; r++) t[ae + r] = re[r];
1369
+ if (n || ln(e, se), t !== null && se > 0)
1370
+ for (t.length = se + re.length, r = 0; r < re.length; r++) t[se + r] = re[r];
1366
1371
  else e.deps = t = re;
1367
- if (zr() && (e.f & 512) !== 0) for (r = ae; r < t.length; r++) {
1372
+ if (Gr() && (e.f & 512) !== 0) for (r = se; r < t.length; r++) {
1368
1373
  var i;
1369
1374
  ((i = t[r]).reactions ?? (i.reactions = [])).push(e);
1370
1375
  }
1371
- } else !n && t !== null && ae < t.length && (rn(e, ae), t.length = ae);
1376
+ } else !n && t !== null && se < t.length && (ln(e, se), t.length = se);
1372
1377
  return t;
1373
1378
  }
1374
1379
  function ws(e, t) {
1375
1380
  let n = t.reactions;
1376
1381
  if (n !== null) {
1377
- var r = _a.call(n, e);
1382
+ var r = pa.call(n, e);
1378
1383
  if (r !== -1) {
1379
1384
  var i = n.length - 1;
1380
1385
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
1381
1386
  }
1382
1387
  }
1383
- if (n === null && (t.f & 2) !== 0 && (re === null || !Cn.call(re, t))) {
1388
+ if (n === null && (t.f & 2) !== 0 && (re === null || !tn.call(re, t))) {
1384
1389
  var o = t;
1385
- (o.f & 512) !== 0 && (o.f ^= 512), o.v !== B && Dr(o), o.ac !== null && Kn(() => {
1386
- o.ac.abort(an), o.ac = null, D(o, ce);
1387
- }), Qa(o), rn(o, 0);
1390
+ (o.f & 512) !== 0 && (o.f ^= 512), o.v !== z && Hr(o), o.ac !== null && Xn(() => {
1391
+ o.ac.abort(un), o.ac = null, j(o, ce);
1392
+ }), Qa(o), ln(o, 0);
1388
1393
  }
1389
1394
  }
1390
- function rn(e, t) {
1395
+ function ln(e, t) {
1391
1396
  var n = e.deps;
1392
1397
  if (n !== null)
1393
1398
  for (var r = t; r < n.length; r++) ws(e, n[r]);
1394
1399
  }
1395
- function Rt(e) {
1400
+ function Ot(e) {
1396
1401
  var t = e.f;
1397
1402
  if ((t & 16384) === 0) {
1398
- D(e, _e);
1399
- var n = x, r = Mn;
1400
- if (x = e, Mn = (t & 96) === 0, 0)
1401
- var i, o;
1403
+ j(e, _e);
1404
+ var n = A;
1405
+ if (A = e, 0)
1406
+ var r, i;
1402
1407
  try {
1403
- (t & 16777232) !== 0 ? ps(e) : Yr(e), ho(e);
1404
- var a = ko(e);
1405
- if (e.teardown = typeof a == "function" ? a : null, e.wv = wo, 0)
1406
- for (var f of e.deps) ;
1408
+ (t & 16777232) !== 0 ? ps(e) : Xr(e), vo(e);
1409
+ var o = $o(e);
1410
+ if (e.teardown = typeof o == "function" ? o : null, e.wv = mo, 0)
1411
+ for (var a of e.deps) ;
1407
1412
  } finally {
1408
- Mn = r, x = n;
1413
+ A = n;
1409
1414
  }
1410
1415
  }
1411
1416
  }
1412
1417
  async function ms() {
1413
- if (Fe) return new Promise((e) => {
1418
+ if (Be) return new Promise((e) => {
1414
1419
  requestAnimationFrame(() => e()), setTimeout(() => e());
1415
1420
  });
1416
- await Promise.resolve(), Vn();
1421
+ await Promise.resolve(), sn();
1417
1422
  }
1418
1423
  function s(e) {
1419
1424
  var t = (e.f & 2) !== 0;
1420
- if (gs?.add(e), R !== null && !ye && !(x !== null && (x.f & 16384) !== 0) && ($e === null || !$e.has(e))) {
1425
+ if (gs?.add(e), R !== null && !ye && !(A !== null && (A.f & 16384) !== 0) && ($e === null || !$e.has(e))) {
1421
1426
  var n = R.deps;
1422
1427
  if ((R.f & 2097152) !== 0)
1423
- e.rv < st && (e.rv = st, re === null && n !== null && n[ae] === e ? ae++ : re === null ? re = [e] : re.push(e));
1428
+ e.rv < lt && (e.rv = lt, re === null && n !== null && n[se] === e ? se++ : re === null ? re = [e] : re.push(e));
1424
1429
  else {
1425
1430
  var r;
1426
- (r = R).deps ?? (r.deps = []), Cn.call(R.deps, e) || R.deps.push(e);
1431
+ (r = R).deps ?? (r.deps = []), tn.call(R.deps, e) || R.deps.push(e);
1427
1432
  var i = e.reactions;
1428
- i === null ? e.reactions = [R] : Cn.call(i, R) || i.push(R);
1433
+ i === null ? e.reactions = [R] : tn.call(i, R) || i.push(R);
1429
1434
  }
1430
1435
  }
1431
1436
  if (0) {
1432
- if (!ye && reactivity_loss_tracker && A === null && kr === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
1437
+ if (!ye && reactivity_loss_tracker && x === null && At === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
1433
1438
  var o;
1434
1439
  if (tracing_mode_flag && !ye && tracing_expressions !== null && R !== null && tracing_expressions.reaction === R && !e.trace) {
1435
1440
  if (o)
1436
1441
  var a, f;
1437
1442
  }
1438
1443
  }
1439
- if (Ve && Oe.has(e)) return Oe.get(e);
1444
+ if (Fe && Oe.has(e)) return Oe.get(e);
1440
1445
  if (t) {
1441
1446
  var c = e;
1442
- if (Ve) {
1443
- var _ = c.v;
1444
- return ((c.f & 1024) === 0 && c.reactions !== null || So(c)) && (_ = Hr(c)), Oe.set(c, _), _;
1447
+ if (Fe) {
1448
+ var p = c.v;
1449
+ return ((c.f & 1024) === 0 && c.reactions !== null || Eo(c)) && (p = Fr(c)), Oe.set(c, p), p;
1445
1450
  }
1446
- var p = (c.f & 512) === 0 && !ye && R !== null && (Mn || (R.f & 512) !== 0), u = (c.f & Ir) === 0;
1447
- fn(c) && (p && (c.f |= 512), zi(c)), p && !u && (Ui(c), $o(c));
1451
+ var _ = (c.f & 512) === 0 && !ye && R !== null && (R.f & 512) !== 0, u = (c.f & qr) === 0;
1452
+ hn(c) && (_ && (c.f |= 512), Ui(c)), _ && !u && (Gi(c), So(c));
1448
1453
  }
1449
1454
  if (te?.has(e)) return te.get(e);
1450
1455
  if ((e.f & 8388608) !== 0) throw e.v;
1451
1456
  return e.v;
1452
1457
  }
1453
- function $o(e) {
1458
+ function So(e) {
1454
1459
  if (e.f |= 512, e.deps !== null)
1455
- for (const t of e.deps)
1456
- (t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (Ui(t), $o(t));
1460
+ for (const n of e.deps) {
1461
+ var t = n.reactions;
1462
+ t === null ? n.reactions = [e] : tn.call(t, e) || t.push(e), (n.f & 2) !== 0 && (n.f & 512) === 0 && (Gi(n), So(n));
1463
+ }
1457
1464
  }
1458
- function So(e) {
1459
- if (e.v === B) return !0;
1465
+ function Eo(e) {
1466
+ if (e.v === z) return !0;
1460
1467
  if (e.deps === null) return !1;
1461
1468
  for (const t of e.deps)
1462
- if (Oe.has(t) || (t.f & 2) !== 0 && So(t)) return !0;
1469
+ if (Oe.has(t) || (t.f & 2) !== 0 && Eo(t)) return !0;
1463
1470
  return !1;
1464
1471
  }
1465
- function Tt(e) {
1472
+ function xt(e) {
1466
1473
  var t = ye;
1467
1474
  try {
1468
1475
  return ye = !0, e();
@@ -1470,59 +1477,59 @@ function Tt(e) {
1470
1477
  ye = t;
1471
1478
  }
1472
1479
  }
1473
- var Et = /* @__PURE__ */ Symbol("events"), Eo = /* @__PURE__ */ new Set(), Ar = /* @__PURE__ */ new Set();
1474
- function Ue(e, t, n) {
1475
- (t[Et] ?? (t[Et] = {}))[e] = n;
1480
+ var Tt = /* @__PURE__ */ Symbol("events"), To = /* @__PURE__ */ new Set(), xr = /* @__PURE__ */ new Set();
1481
+ function Ge(e, t, n) {
1482
+ (t[Tt] ?? (t[Tt] = {}))[e] = n;
1476
1483
  }
1477
1484
  function ys(e) {
1478
- for (var t = 0; t < e.length; t++) Eo.add(e[t]);
1479
- for (var n of Ar) n(e);
1485
+ for (var t = 0; t < e.length; t++) To.add(e[t]);
1486
+ for (var n of xr) n(e);
1480
1487
  }
1481
- var ur = null, cr = !1;
1482
- function gi(e) {
1488
+ var cr = null, dr = !1;
1489
+ function bi(e) {
1483
1490
  var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], o = i[0] || e.target;
1484
- ur = e, cr || (cr = !0, setTimeout(() => {
1485
- cr = !1, ur = null;
1491
+ cr = e, dr || (dr = !0, setTimeout(() => {
1492
+ dr = !1, cr = null;
1486
1493
  }));
1487
- var a = 0, f = ur === e && e[Et];
1494
+ var a = 0, f = cr === e && e[Tt];
1488
1495
  if (f) {
1489
1496
  var c = i.indexOf(f);
1490
1497
  if (c !== -1 && (t === document || t === window)) {
1491
- e[Et] = t;
1498
+ e[Tt] = t;
1492
1499
  return;
1493
1500
  }
1494
- var _ = i.indexOf(t);
1495
- if (_ === -1) return;
1496
- c <= _ && (a = c);
1501
+ var p = i.indexOf(t);
1502
+ if (p === -1) return;
1503
+ c <= p && (a = c);
1497
1504
  }
1498
1505
  if (o = i[a] || e.target, o !== t) {
1499
- Qt(e, "currentTarget", {
1506
+ nn(e, "currentTarget", {
1500
1507
  configurable: !0,
1501
1508
  get() {
1502
1509
  return o || n;
1503
1510
  }
1504
1511
  });
1505
- var p = R, u = x;
1512
+ var _ = R, u = A;
1506
1513
  ge(null), Ne(null);
1507
1514
  try {
1508
1515
  for (var d, h = []; o !== null && o !== t; ) {
1509
1516
  try {
1510
- var b = o[Et]?.[r];
1517
+ var b = o[Tt]?.[r];
1511
1518
  b != null && (!o.disabled || e.target === o) && b.call(o, e);
1512
- } catch (y) {
1513
- d ? h.push(y) : d = y;
1519
+ } catch (w) {
1520
+ d ? h.push(w) : d = w;
1514
1521
  }
1515
1522
  if (e.cancelBubble) break;
1516
1523
  a++, o = a < i.length ? i[a] : null;
1517
1524
  }
1518
1525
  if (d) {
1519
- for (let y of h) queueMicrotask(() => {
1520
- throw y;
1526
+ for (let w of h) queueMicrotask(() => {
1527
+ throw w;
1521
1528
  });
1522
1529
  throw d;
1523
1530
  }
1524
1531
  } finally {
1525
- e[Et] = t, delete e.currentTarget, ge(p), Ne(u);
1532
+ e[Tt] = t, delete e.currentTarget, ge(_), Ne(u);
1526
1533
  }
1527
1534
  }
1528
1535
  }
@@ -1531,11 +1538,11 @@ function $s(e) {
1531
1538
  return ks?.createHTML(e) ?? e;
1532
1539
  }
1533
1540
  function Ss(e) {
1534
- var t = Xn("template");
1541
+ var t = Zn("template");
1535
1542
  return t.innerHTML = $s(e.replaceAll("<!>", "<!---->")), t.content;
1536
1543
  }
1537
1544
  function He(e, t) {
1538
- var n = x;
1545
+ var n = A;
1539
1546
  n.nodes === null && (n.nodes = {
1540
1547
  start: e,
1541
1548
  end: t,
@@ -1549,10 +1556,10 @@ function Ie(e, t) {
1549
1556
  return () => {
1550
1557
  if (M)
1551
1558
  return He(C, null), C;
1552
- i === void 0 && (i = Ss(o ? e : "<!>" + e), n || (i = /* @__PURE__ */ se(i)));
1553
- var a = r || oo ? document.importNode(i, !0) : i.cloneNode(!0);
1559
+ i === void 0 && (i = Ss(o ? e : "<!>" + e), n || (i = /* @__PURE__ */ le(i)));
1560
+ var a = r || ao ? document.importNode(i, !0) : i.cloneNode(!0);
1554
1561
  if (n) {
1555
- var f = /* @__PURE__ */ se(a), c = a.lastChild;
1562
+ var f = /* @__PURE__ */ le(a), c = a.lastChild;
1556
1563
  He(f, c);
1557
1564
  } else He(a, a);
1558
1565
  return a;
@@ -1564,12 +1571,12 @@ function Es(e = "") {
1564
1571
  return He(t, t), t;
1565
1572
  }
1566
1573
  var n = C;
1567
- return n.nodeType !== 3 ? (n.before(n = fe()), X(n)) : Zn(n), He(n, n), n;
1574
+ return n.nodeType !== 3 ? (n.before(n = fe()), X(n)) : Jn(n), He(n, n), n;
1568
1575
  }
1569
1576
  function he(e, t) {
1570
1577
  if (M) {
1571
- var n = x;
1572
- ((n.f & 32768) === 0 || n.nodes.end === null) && (n.nodes.end = C), At();
1578
+ var n = A;
1579
+ ((n.f & 32768) === 0 || n.nodes.end === null) && (n.nodes.end = C), Mt();
1573
1580
  return;
1574
1581
  }
1575
1582
  e !== null && e.before(t);
@@ -1646,40 +1653,40 @@ var Ms = [
1646
1653
  "$host"
1647
1654
  ];
1648
1655
  function Rs(e) {
1649
- let t = 0, n = vt(0), r;
1656
+ let t = 0, n = _t(0), r;
1650
1657
  return () => {
1651
- zr() && (s(n), Ur(() => (t === 0 && (r = Tt(() => e(() => Jt(n)))), t += 1, () => {
1652
- Ze(() => {
1653
- t -= 1, t === 0 && (r?.(), r = void 0, Jt(n));
1658
+ Gr() && (s(n), Yr(() => (t === 0 && (r = xt(() => e(() => en(n)))), t += 1, () => {
1659
+ Je(() => {
1660
+ t -= 1, t === 0 && (r?.(), r = void 0, en(n));
1654
1661
  });
1655
1662
  })));
1656
1663
  };
1657
1664
  }
1658
- var Cs = qr | Ct;
1665
+ var Cs = Wr | Lt;
1659
1666
  function Os(e, t, n, r) {
1660
1667
  new Ls(e, t, n, r);
1661
1668
  }
1662
- var Se = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), $t = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakSet(), Ls = class {
1669
+ var Se = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakSet(), Ls = class {
1663
1670
  constructor(e, t, n, r) {
1664
- Vr(this, z), I(this, "parent", void 0), I(this, "is_pending", !1), I(this, "transform_error", void 0), S(this, Se, void 0), S(this, xr, M ? C : null), S(this, Ce, void 0), S(this, on, void 0), S(this, le, void 0), S(this, Ee, null), S(this, ue, null), S(this, ke, null), S(this, Xe, null), S(this, $t, 0), S(this, ct, 0), S(this, yn, !1), S(this, Mr, /* @__PURE__ */ new Set()), S(this, Rr, /* @__PURE__ */ new Set()), S(this, Qe, null), S(this, bi, Rs(() => ($(Qe, this, vt(l($t, this))), () => {
1665
- $(Qe, this, null);
1666
- }))), $(Se, this, e), $(Ce, this, t), $(on, this, (i) => {
1667
- var o = x;
1671
+ Br(this, N), q(this, "parent", void 0), q(this, "is_pending", !1), q(this, "transform_error", void 0), E(this, Se, void 0), E(this, Mr, M ? C : null), E(this, Ce, void 0), E(this, fn, void 0), E(this, ie, void 0), E(this, Ee, null), E(this, ue, null), E(this, ke, null), E(this, Ze, null), E(this, St, 0), E(this, dt, 0), E(this, En, !1), E(this, Rr, /* @__PURE__ */ new Set()), E(this, Cr, /* @__PURE__ */ new Set()), E(this, et, null), E(this, wi, Rs(() => (S(et, this, _t(l(St, this))), () => {
1672
+ S(et, this, null);
1673
+ }))), S(Se, this, e), S(Ce, this, t), S(fn, this, (i) => {
1674
+ var o = A;
1668
1675
  o.b = this, o.f |= 128, n(i);
1669
- }), this.parent = x.b, this.transform_error = r ?? this.parent?.transform_error ?? ((i) => i), $(le, this, Gr(() => {
1676
+ }), this.parent = A.b, this.transform_error = r ?? this.parent?.transform_error ?? ((i) => i), S(ie, this, Kr(() => {
1670
1677
  if (M) {
1671
- const i = l(xr, this);
1672
- At();
1673
- const o = i.data === "[!";
1674
- if (i.data.startsWith("[?")) {
1675
- const a = JSON.parse(i.data.slice(2));
1676
- E(z, this, Ps).call(this, a);
1677
- } else o ? E(z, this, Is).call(this) : E(z, this, Ns).call(this);
1678
- } else E(z, this, Ao).call(this);
1679
- }, Cs)), M && $(Se, this, C);
1678
+ const i = Dr(l(Mr, this));
1679
+ Mt();
1680
+ const o = i === "[!";
1681
+ if (i.startsWith("[?")) {
1682
+ const a = JSON.parse(i.slice(2));
1683
+ $(N, this, Ps).call(this, a);
1684
+ } else o ? $(N, this, Is).call(this) : $(N, this, Ns).call(this);
1685
+ } else $(N, this, xo).call(this);
1686
+ }, Cs)), M && S(Se, this, C);
1680
1687
  }
1681
1688
  defer_effect(e) {
1682
- Fi(e, l(Mr, this), l(Rr, this));
1689
+ Bi(e, l(Rr, this), l(Cr, this));
1683
1690
  }
1684
1691
  is_rendered() {
1685
1692
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -1688,162 +1695,173 @@ var Se = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), Ce =
1688
1695
  return !!l(Ce, this).pending;
1689
1696
  }
1690
1697
  update_pending_count(e, t) {
1691
- E(z, this, xo).call(this, e, t), $($t, this, l($t, this) + e), !(!l(Qe, this) || l(yn, this)) && ($(yn, this, !0), Ze(() => {
1692
- $(yn, this, !1), l(Qe, this) && Mt(l(Qe, this), l($t, this));
1698
+ $(N, this, Mo).call(this, e, t), S(St, this, l(St, this) + e), !(!l(et, this) || l(En, this)) && (S(En, this, !0), Je(() => {
1699
+ S(En, this, !1), l(et, this) && Ct(l(et, this), l(St, this));
1693
1700
  }));
1694
1701
  }
1695
1702
  get_effect_pending() {
1696
- return l(bi, this).call(this), s(l(Qe, this));
1703
+ return l(wi, this).call(this), s(l(et, this));
1697
1704
  }
1698
1705
  error(e) {
1699
- if (!l(Ce, this).onerror && !l(Ce, this).failed) throw e;
1700
- A?.is_fork ? (l(Ee, this) && A.skip_effect(l(Ee, this)), l(ue, this) && A.skip_effect(l(ue, this)), l(ke, this) && A.skip_effect(l(ke, this)), A.oncommit(() => {
1701
- E(z, this, wi).call(this, e);
1702
- })) : E(z, this, wi).call(this, e);
1706
+ if (e === Ve || !l(Ce, this).onerror && !l(Ce, this).failed) throw e;
1707
+ x?.is_fork ? (l(Ee, this) && x.skip_effect(l(Ee, this)), l(ue, this) && x.skip_effect(l(ue, this)), l(ke, this) && x.skip_effect(l(ke, this)), x.oncommit(() => {
1708
+ $(N, this, ht).call(this) || $(N, this, mi).call(this, e);
1709
+ })) : $(N, this, mi).call(this, e);
1703
1710
  }
1704
1711
  };
1705
1712
  function Ns() {
1706
1713
  try {
1707
- $(Ee, this, pe(() => l(on, this).call(this, l(Se, this))));
1714
+ S(Ee, this, pe(() => l(fn, this).call(this, l(Se, this))));
1708
1715
  } catch (e) {
1709
1716
  this.error(e);
1710
1717
  }
1711
1718
  }
1712
1719
  function Ps(e) {
1713
- const t = l(Ce, this).failed, { reset: n, invoke_onerror: r } = E(z, this, To).call(this, e);
1714
- Ze(r), t && $(ke, this, pe(() => {
1720
+ const t = l(Ce, this).failed, { reset: n, invoke_onerror: r } = $(N, this, Ao).call(this, e);
1721
+ Je(r), t && S(ke, this, pe(() => {
1715
1722
  t(l(Se, this), () => e, () => n);
1716
1723
  }));
1717
1724
  }
1718
- function To(e) {
1725
+ function Ao(e) {
1719
1726
  var t = !1, n = !1;
1720
1727
  const r = () => {
1721
- if (t) {
1722
- Ra();
1723
- return;
1728
+ if (!$(N, this, ht).call(this)) {
1729
+ if (t) {
1730
+ Ra();
1731
+ return;
1732
+ }
1733
+ t = !0, n && Ba(), l(ke, this) !== null && bt(l(ke, this), () => {
1734
+ S(ke, this, null);
1735
+ }), $(N, this, Jr).call(this, () => {
1736
+ $(N, this, xo).call(this);
1737
+ });
1724
1738
  }
1725
- t = !0, n && Ba(), l(ke, this) !== null && gt(l(ke, this), () => {
1726
- $(ke, this, null);
1727
- }), E(z, this, Xr).call(this, () => {
1728
- E(z, this, Ao).call(this);
1729
- });
1730
1739
  };
1731
1740
  return {
1732
1741
  reset: r,
1733
1742
  invoke_onerror: () => {
1734
- try {
1735
- n = !0, l(Ce, this).onerror?.(e, r), n = !1;
1736
- } catch (o) {
1737
- Le(o, l(le, this) && l(le, this).parent);
1738
- }
1743
+ if (!$(N, this, ht).call(this))
1744
+ try {
1745
+ n = !0, l(Ce, this).onerror?.(e, r), n = !1;
1746
+ } catch (o) {
1747
+ Le(o, l(ie, this) && l(ie, this).parent);
1748
+ }
1739
1749
  }
1740
1750
  };
1741
1751
  }
1752
+ function ht() {
1753
+ return (l(ie, this).f & (Ii | mr)) !== 0;
1754
+ }
1742
1755
  function Is() {
1743
1756
  const e = l(Ce, this).pending;
1744
- e && (this.is_pending = !0, $(ue, this, pe(() => e(l(Se, this)))), Ze(() => {
1745
- var t = $(Xe, this, document.createDocumentFragment()), n = fe(), r = !1;
1746
- if (t.append(n), $(Ee, this, E(z, this, Xr).call(this, () => {
1747
- try {
1748
- return pe(() => l(on, this).call(this, n));
1749
- } catch (i) {
1757
+ e && (this.is_pending = !0, S(ue, this, pe(() => e(l(Se, this)))), Je(() => {
1758
+ if (!$(N, this, ht).call(this)) {
1759
+ var t = S(Ze, this, document.createDocumentFragment()), n = fe(), r = !1;
1760
+ if (t.append(n), S(Ee, this, $(N, this, Jr).call(this, () => {
1750
1761
  try {
1751
- this.error(i), r = !0;
1752
- } catch (o) {
1753
- Le(o, l(le, this).parent);
1762
+ return pe(() => l(fn, this).call(this, n));
1763
+ } catch (i) {
1764
+ try {
1765
+ this.error(i), r = !0;
1766
+ } catch (o) {
1767
+ Le(o, l(ie, this).parent);
1768
+ }
1769
+ return null;
1754
1770
  }
1755
- return null;
1771
+ })), l(Ee, this) === null) {
1772
+ S(Ze, this, null), r && $(N, this, Un).call(this, x);
1773
+ return;
1756
1774
  }
1757
- })), l(Ee, this) === null) {
1758
- $(Xe, this, null), r && E(z, this, zn).call(this, A);
1759
- return;
1775
+ l(dt, this) === 0 && (l(Se, this).before(t), S(Ze, this, null), bt(l(ue, this), () => {
1776
+ S(ue, this, null);
1777
+ }), $(N, this, Un).call(this, x));
1760
1778
  }
1761
- l(ct, this) === 0 && (l(Se, this).before(t), $(Xe, this, null), gt(l(ue, this), () => {
1762
- $(ue, this, null);
1763
- }), E(z, this, zn).call(this, A));
1764
1779
  }));
1765
1780
  }
1766
- function Ao() {
1781
+ function xo() {
1767
1782
  try {
1768
- if (this.is_pending = this.has_pending_snippet(), $(ct, this, 0), $($t, this, 0), $(Ee, this, pe(() => {
1769
- l(on, this).call(this, l(Se, this));
1770
- })), l(ct, this) > 0) {
1771
- var e = $(Xe, this, document.createDocumentFragment());
1772
- Kr(l(Ee, this), e);
1783
+ if (this.is_pending = this.has_pending_snippet(), S(dt, this, 0), S(St, this, 0), S(Ee, this, pe(() => {
1784
+ l(fn, this).call(this, l(Se, this));
1785
+ })), l(dt, this) > 0) {
1786
+ var e = S(Ze, this, document.createDocumentFragment());
1787
+ Zr(l(Ee, this), e);
1773
1788
  const t = l(Ce, this).pending;
1774
- $(ue, this, pe(() => t(l(Se, this))));
1775
- } else E(z, this, zn).call(this, A);
1789
+ S(ue, this, pe(() => t(l(Se, this))));
1790
+ } else $(N, this, Un).call(this, x);
1776
1791
  } catch (t) {
1777
1792
  this.error(t);
1778
1793
  }
1779
1794
  }
1780
- function zn(e) {
1781
- this.is_pending = !1, e.transfer_effects(l(Mr, this), l(Rr, this));
1795
+ function Un(e) {
1796
+ this.is_pending = !1, e.transfer_effects(l(Rr, this), l(Cr, this));
1782
1797
  }
1783
- function Xr(e) {
1784
- var t = x, n = R, r = V;
1785
- Ne(l(le, this)), ge(l(le, this)), xt(l(le, this).ctx);
1798
+ function Jr(e) {
1799
+ var t = A, n = R, r = F;
1800
+ Ne(l(ie, this)), ge(l(ie, this)), Rt(l(ie, this).ctx);
1786
1801
  try {
1787
- return pt.ensure(), e();
1802
+ return gt.ensure(), e();
1788
1803
  } finally {
1789
- Ne(t), ge(n), xt(r);
1804
+ Ne(t), ge(n), Rt(r);
1790
1805
  }
1791
1806
  }
1792
- function xo(e, t) {
1807
+ function Mo(e, t) {
1793
1808
  if (!this.has_pending_snippet()) {
1794
1809
  if (this.parent) {
1795
1810
  var n;
1796
- E(z, n = this.parent, xo).call(n, e, t);
1811
+ $(N, n = this.parent, Mo).call(n, e, t);
1797
1812
  }
1798
1813
  return;
1799
1814
  }
1800
- $(ct, this, l(ct, this) + e), l(ct, this) === 0 && (E(z, this, zn).call(this, t), l(ue, this) && gt(l(ue, this), () => {
1801
- $(ue, this, null);
1802
- }), l(Xe, this) && (l(Se, this).before(l(Xe, this)), $(Xe, this, null)));
1815
+ S(dt, this, l(dt, this) + e), l(dt, this) === 0 && ($(N, this, Un).call(this, t), l(ue, this) && bt(l(ue, this), () => {
1816
+ S(ue, this, null);
1817
+ }), l(Ze, this) && (l(Se, this).before(l(Ze, this)), S(Ze, this, null)));
1803
1818
  }
1804
- function wi(e) {
1805
- l(Ee, this) && (ne(l(Ee, this)), $(Ee, this, null)), l(ue, this) && (ne(l(ue, this)), $(ue, this, null)), l(ke, this) && (ne(l(ke, this)), $(ke, this, null)), M && (X(l(xr, this)), Ca(), X(Nn()));
1819
+ function mi(e) {
1820
+ l(Ee, this) && (ne(l(Ee, this)), S(Ee, this, null)), l(ue, this) && (ne(l(ue, this)), S(ue, this, null)), l(ke, this) && (ne(l(ke, this)), S(ke, this, null)), M && (X(l(Mr, this)), Ca(), X(In()));
1806
1821
  let t = l(Ce, this).failed;
1807
1822
  const n = (r) => {
1808
- const { reset: i, invoke_onerror: o } = E(z, this, To).call(this, r);
1809
- o(), t && $(ke, this, E(z, this, Xr).call(this, () => {
1823
+ if ($(N, this, ht).call(this)) return;
1824
+ const { reset: i, invoke_onerror: o } = $(N, this, Ao).call(this, r);
1825
+ o(), t && !$(N, this, ht).call(this) && S(ke, this, $(N, this, Jr).call(this, () => {
1810
1826
  try {
1811
1827
  return pe(() => {
1812
- var a = x;
1828
+ var a = A;
1813
1829
  a.b = this, a.f |= 128, t(l(Se, this), () => r, () => i);
1814
1830
  });
1815
1831
  } catch (a) {
1816
- return Le(a, l(le, this).parent), null;
1832
+ return Le(a, l(ie, this).parent), null;
1817
1833
  }
1818
1834
  }));
1819
1835
  };
1820
- Ze(() => {
1821
- var r;
1822
- try {
1823
- r = this.transform_error(e);
1824
- } catch (i) {
1825
- Le(i, l(le, this) && l(le, this).parent);
1826
- return;
1836
+ Je(() => {
1837
+ if (!$(N, this, ht).call(this)) {
1838
+ var r;
1839
+ try {
1840
+ r = this.transform_error(e);
1841
+ } catch (i) {
1842
+ Le(i, l(ie, this) && l(ie, this).parent);
1843
+ return;
1844
+ }
1845
+ r !== null && typeof r == "object" && typeof r.then == "function" ? r.then(n, (i) => Le(i, l(ie, this) && l(ie, this).parent)) : n(r);
1827
1846
  }
1828
- r !== null && typeof r == "object" && typeof r.then == "function" ? r.then(n, (i) => Le(i, l(le, this) && l(le, this).parent)) : n(r);
1829
1847
  });
1830
1848
  }
1831
- var mi = !0;
1832
- function kn(e, t) {
1849
+ var yi = !0;
1850
+ function Tn(e, t) {
1833
1851
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1834
- n !== (e[Tn] ?? (e[Tn] = e.nodeValue)) && (e[Tn] = n, e.nodeValue = `${n}`);
1852
+ n !== (e[Rn] ?? (e[Rn] = e.nodeValue)) && (e[Rn] = n, e.nodeValue = `${n}`);
1835
1853
  }
1836
- function Mo(e, t) {
1837
- return Ro(e, t);
1854
+ function Ro(e, t) {
1855
+ return Co(e, t);
1838
1856
  }
1839
1857
  function qs(e, t) {
1840
- Tr(), t.intro = t.intro ?? !1;
1858
+ Ar(), t.intro = t.intro ?? !1;
1841
1859
  const n = t.target, r = M, i = C;
1842
1860
  try {
1843
- for (var o = /* @__PURE__ */ se(n); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Te(o);
1844
- if (!o) throw dt;
1861
+ for (var o = /* @__PURE__ */ le(n); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Te(o);
1862
+ if (!o) throw Ve;
1845
1863
  De(!0), X(o);
1846
- const a = Ro(e, {
1864
+ const a = Co(e, {
1847
1865
  ...t,
1848
1866
  anchor: o
1849
1867
  });
@@ -1851,128 +1869,128 @@ function qs(e, t) {
1851
1869
  } catch (a) {
1852
1870
  if (a instanceof Error && a.message.split(`
1853
1871
  `).some((f) => f.startsWith("https://svelte.dev/e/"))) throw a;
1854
- return a !== dt && console.warn("Failed to hydrate: ", a), t.recover === !1 && Da(), Tr(), lo(n), De(!1), Mo(e, t);
1872
+ return a !== Ve && console.warn("Failed to hydrate: ", a), t.recover === !1 && Da(), Ar(), fo(n), De(!1), Ro(e, t);
1855
1873
  } finally {
1856
1874
  De(r), X(i);
1857
1875
  }
1858
1876
  }
1859
- var $n = /* @__PURE__ */ new Map();
1860
- function Ro(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: a = !0, transformError: f }) {
1861
- Tr();
1862
- var c = void 0, _ = vs(() => {
1863
- var p = n ?? t.appendChild(fe());
1864
- Os(p, { pending: () => {
1877
+ var An = /* @__PURE__ */ new Map();
1878
+ function Co(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: a = !0, transformError: f }) {
1879
+ Ar();
1880
+ var c = void 0, p = vs(() => {
1881
+ var _ = n ?? t.appendChild(fe());
1882
+ Os(_, { pending: () => {
1865
1883
  } }, (h) => {
1866
- ji({});
1867
- var b = V;
1868
- if (o && (b.c = o), i && (r.$$events = i), M && He(h, null), mi = a, c = e(h, r) || Wr(), mi = !0, M && (x.nodes.end = C, C === null || C.nodeType !== 8 || C.data !== "]"))
1869
- throw sn(), dt;
1870
- Hi();
1884
+ Hi({});
1885
+ var b = F;
1886
+ if (o && (b.c = o), i && (r.$$events = i), M && He(h, null), yi = a, c = e(h, r) || jr(), yi = !0, M && (A.nodes.end = C, C === null || C.nodeType !== 8 || C.data !== "]"))
1887
+ throw cn(), Ve;
1888
+ Vi();
1871
1889
  }, f);
1872
1890
  var u = /* @__PURE__ */ new Set(), d = (h) => {
1873
1891
  for (var b = 0; b < h.length; b++) {
1874
- var y = h[b];
1875
- if (!u.has(y)) {
1876
- u.add(y);
1877
- var g = xs(y);
1892
+ var w = h[b];
1893
+ if (!u.has(w)) {
1894
+ u.add(w);
1895
+ var g = xs(w);
1878
1896
  for (const k of [t, document]) {
1879
- var m = $n.get(k);
1880
- m === void 0 && (m = /* @__PURE__ */ new Map(), $n.set(k, m));
1881
- var N = m.get(y);
1882
- N === void 0 ? (k.addEventListener(y, gi, { passive: g }), m.set(y, 1)) : m.set(y, N + 1);
1897
+ var y = An.get(k);
1898
+ y === void 0 && (y = /* @__PURE__ */ new Map(), An.set(k, y));
1899
+ var P = y.get(w);
1900
+ P === void 0 ? (k.addEventListener(w, bi, { passive: g }), y.set(w, 1)) : y.set(w, P + 1);
1883
1901
  }
1884
1902
  }
1885
1903
  }
1886
1904
  };
1887
- return d(Gn(Eo)), Ar.add(d), () => {
1905
+ return d(Yn(To)), xr.add(d), () => {
1888
1906
  for (var h of u) for (const g of [t, document]) {
1889
- var b = $n.get(g), y = b.get(h);
1890
- --y == 0 ? (g.removeEventListener(h, gi), b.delete(h), b.size === 0 && $n.delete(g)) : b.set(h, y);
1907
+ var b = An.get(g), w = b.get(h);
1908
+ --w == 0 ? (g.removeEventListener(h, bi), b.delete(h), b.size === 0 && An.delete(g)) : b.set(h, w);
1891
1909
  }
1892
- Ar.delete(d), p !== n && p.parentNode?.removeChild(p);
1910
+ xr.delete(d), _ !== n && _.parentNode?.removeChild(_);
1893
1911
  };
1894
1912
  });
1895
- return Cr.set(c, _), c;
1913
+ return Or.set(c, p), c;
1896
1914
  }
1897
- var Cr = /* @__PURE__ */ new WeakMap();
1915
+ var Or = /* @__PURE__ */ new WeakMap();
1898
1916
  function Ws(e, t) {
1899
- const n = Cr.get(e);
1900
- return n ? (Cr.delete(e), n(t)) : Promise.resolve();
1917
+ const n = Or.get(e);
1918
+ return n ? (Or.delete(e), n(t)) : Promise.resolve();
1901
1919
  }
1902
- var qe = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), Ds = class {
1920
+ var qe = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), Ds = class {
1903
1921
  constructor(e, t = !0) {
1904
- I(this, "anchor", void 0), S(this, qe, /* @__PURE__ */ new Map()), S(this, Ge, /* @__PURE__ */ new Map()), S(this, we, /* @__PURE__ */ new Map()), S(this, Ht, /* @__PURE__ */ new Set()), S(this, dr, !0), S(this, hr, (n) => {
1922
+ q(this, "anchor", void 0), E(this, qe, /* @__PURE__ */ new Map()), E(this, Ye, /* @__PURE__ */ new Map()), E(this, we, /* @__PURE__ */ new Map()), E(this, Ft, /* @__PURE__ */ new Set()), E(this, hr, !0), E(this, vr, (n) => {
1905
1923
  if (l(qe, this).has(n)) {
1906
- var r = l(qe, this).get(n), i = l(Ge, this).get(r);
1924
+ var r = l(qe, this).get(n), i = l(Ye, this).get(r);
1907
1925
  if (i)
1908
- Bn(i), l(Ht, this).delete(r);
1926
+ zn(i), l(Ft, this).delete(r);
1909
1927
  else {
1910
1928
  var o = l(we, this).get(r);
1911
- o && (Bn(o.effect), l(Ge, this).set(r, o.effect), l(we, this).delete(r), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
1929
+ o && (zn(o.effect), l(Ye, this).set(r, o.effect), l(we, this).delete(r), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
1912
1930
  }
1913
1931
  for (const [a, f] of l(qe, this)) {
1914
1932
  if (l(qe, this).delete(a), a === n) break;
1915
1933
  const c = l(we, this).get(f);
1916
1934
  c && (ne(c.effect), l(we, this).delete(f));
1917
1935
  }
1918
- for (const [a, f] of l(Ge, this)) {
1919
- if (a === r || l(Ht, this).has(a)) continue;
1936
+ for (const [a, f] of l(Ye, this)) {
1937
+ if (a === r || l(Ft, this).has(a)) continue;
1920
1938
  const c = () => {
1921
1939
  if (Array.from(l(qe, this).values()).includes(a)) {
1922
- var _ = document.createDocumentFragment();
1923
- Kr(f, _), _.append(fe()), l(we, this).set(a, {
1940
+ var p = document.createDocumentFragment();
1941
+ Zr(f, p), p.append(fe()), l(we, this).set(a, {
1924
1942
  effect: f,
1925
- fragment: _
1943
+ fragment: p
1926
1944
  });
1927
1945
  } else ne(f);
1928
- l(Ht, this).delete(a), l(Ge, this).delete(a);
1946
+ l(Ft, this).delete(a), l(Ye, this).delete(a);
1929
1947
  };
1930
- l(dr, this) || !i ? (l(Ht, this).add(a), gt(f, c, !1)) : c();
1948
+ l(hr, this) || !i ? (l(Ft, this).add(a), bt(f, c, !1)) : c();
1931
1949
  }
1932
1950
  }
1933
- }), S(this, yi, (n) => {
1951
+ }), E(this, ki, (n) => {
1934
1952
  l(qe, this).delete(n);
1935
1953
  const r = Array.from(l(qe, this).values());
1936
1954
  for (const [i, o] of l(we, this)) r.includes(i) || (ne(o.effect), l(we, this).delete(i));
1937
- }), this.anchor = e, $(dr, this, t);
1955
+ }), this.anchor = e, S(hr, this, t);
1938
1956
  }
1939
1957
  ensure(e, t) {
1940
- var n = A, r = fo();
1941
- if (t && !l(Ge, this).has(e) && !l(we, this).has(e))
1958
+ var n = x, r = uo();
1959
+ if (t && !l(Ye, this).has(e) && !l(we, this).has(e))
1942
1960
  if (r) {
1943
1961
  var i = document.createDocumentFragment(), o = fe();
1944
1962
  i.append(o), l(we, this).set(e, {
1945
1963
  effect: pe(() => t(o)),
1946
1964
  fragment: i
1947
1965
  });
1948
- } else l(Ge, this).set(e, pe(() => t(this.anchor)));
1966
+ } else l(Ye, this).set(e, pe(() => t(this.anchor)));
1949
1967
  if (l(qe, this).set(n, e), r) {
1950
- for (const [a, f] of l(Ge, this)) a === e ? n.unskip_effect(f) : n.skip_effect(f);
1968
+ for (const [a, f] of l(Ye, this)) a === e ? n.unskip_effect(f) : n.skip_effect(f);
1951
1969
  for (const [a, f] of l(we, this)) a === e ? n.unskip_effect(f.effect) : n.skip_effect(f.effect);
1952
- n.oncommit(l(hr, this)), n.ondiscard(l(yi, this));
1970
+ n.oncommit(l(vr, this)), n.ondiscard(l(ki, this));
1953
1971
  } else
1954
- M && (this.anchor = C), l(hr, this).call(this, n);
1972
+ M && (this.anchor = C), l(vr, this).call(this, n);
1955
1973
  }
1956
1974
  };
1957
- function et(e, t, n = !1) {
1975
+ function tt(e, t, n = !1) {
1958
1976
  var r;
1959
- M && (r = C, At());
1960
- var i = new Ds(e), o = n ? qr : 0;
1977
+ M && (r = C, Mt());
1978
+ var i = new Ds(e), o = n ? Wr : 0;
1961
1979
  function a(f, c) {
1962
1980
  if (M) {
1963
- var _ = qi(r);
1964
- if (f !== parseInt(_.substring(1))) {
1965
- var p = Nn();
1966
- X(p), i.anchor = p, De(!1), i.ensure(f, c), De(!0);
1981
+ var p = Dr(r);
1982
+ if (f !== parseInt(p.substring(1))) {
1983
+ var _ = In();
1984
+ X(_), i.anchor = _, De(!1), i.ensure(f, c), De(!0);
1967
1985
  return;
1968
1986
  }
1969
1987
  }
1970
1988
  i.ensure(f, c);
1971
1989
  }
1972
- Gr(() => {
1990
+ Kr(() => {
1973
1991
  var f = !1;
1974
- t((c, _ = 0) => {
1975
- f = !0, a(_, c);
1992
+ t((c, p = 0) => {
1993
+ f = !0, a(p, c);
1976
1994
  }), f || a(-1, null);
1977
1995
  }, o);
1978
1996
  }
@@ -1982,11 +2000,11 @@ function js(e, t) {
1982
2000
  function Hs(e, t, n) {
1983
2001
  for (var r = [], i = t.length, o, a = t.length, f = 0; f < i; f++) {
1984
2002
  let u = t[f];
1985
- gt(u, () => {
2003
+ bt(u, () => {
1986
2004
  if (o) {
1987
2005
  if (o.pending.delete(u), o.done.add(u), o.pending.size === 0) {
1988
2006
  var d = e.outrogroups;
1989
- Or(e, Gn(o.done)), d.delete(o), d.size === 0 && (e.outrogroups = null);
2007
+ Lr(e, Yn(o.done)), d.delete(o), d.size === 0 && (e.outrogroups = null);
1990
2008
  }
1991
2009
  } else a -= 1;
1992
2010
  }, !1);
@@ -1994,17 +2012,17 @@ function Hs(e, t, n) {
1994
2012
  if (a === 0) {
1995
2013
  var c = r.length === 0 && n !== null && e.pending.size === 0;
1996
2014
  if (c) {
1997
- var _ = n, p = _.parentNode;
1998
- lo(p), p.append(_), e.items.clear();
2015
+ var p = n, _ = p.parentNode;
2016
+ fo(_), _.append(p), e.items.clear();
1999
2017
  }
2000
- Or(e, t, !c);
2018
+ Lr(e, t, !c);
2001
2019
  } else
2002
2020
  o = {
2003
2021
  pending: new Set(t),
2004
2022
  done: /* @__PURE__ */ new Set()
2005
2023
  }, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(o);
2006
2024
  }
2007
- function Or(e, t, n = !0) {
2025
+ function Lr(e, t, n = !0) {
2008
2026
  var r;
2009
2027
  if (e.pending.size > 0) {
2010
2028
  r = /* @__PURE__ */ new Set();
@@ -2013,134 +2031,137 @@ function Or(e, t, n = !0) {
2013
2031
  for (var i = 0; i < t.length; i++) {
2014
2032
  var o = t[i];
2015
2033
  if (r?.has(o)) {
2016
- o.f |= Kt;
2034
+ o.f |= Zt;
2017
2035
  const a = document.createDocumentFragment();
2018
- Kr(o, a);
2036
+ Zr(o, a);
2019
2037
  } else ne(t[i], n);
2020
2038
  }
2021
2039
  }
2022
- var Sn;
2023
- function ki(e, t, n, r, i, o = null) {
2040
+ var xn;
2041
+ function $i(e, t, n, r, i, o = null) {
2024
2042
  var a = e, f = /* @__PURE__ */ new Map();
2025
2043
  if ((t & 4) !== 0) {
2026
2044
  var c = e;
2027
- a = M ? X(/* @__PURE__ */ se(c)) : c.appendChild(fe());
2028
- }
2029
- M && At();
2030
- var _ = null, p = /* @__PURE__ */ jr(() => {
2031
- var m = n();
2032
- return Oi(m) ? m : m == null ? [] : Gn(m);
2033
- }), u, d = /* @__PURE__ */ new Map(), h = !0;
2034
- function b(m) {
2035
- (g.effect.f & 16384) === 0 && (g.pending.delete(m), g.fallback = _, Vs(g, u, a, t, r), _ !== null && (u.length === 0 ? (_.f & 33554432) === 0 ? Bn(_) : (_.f ^= Kt, Yt(_, null, a)) : gt(_, () => {
2036
- _ = null;
2037
- })));
2038
- }
2039
- function y(m) {
2040
- g.pending.delete(m);
2041
- }
2042
- var g = {
2043
- effect: Gr(() => {
2044
- u = s(p);
2045
- var m = u.length;
2046
- let N = !1;
2047
- M && qi(a) === "[!" != (m === 0) && (a = Nn(), X(a), De(!1), N = !0);
2048
- for (var k = /* @__PURE__ */ new Set(), T = A, G = fo(), j = 0; j < m; j += 1) {
2049
- M && C.nodeType === 8 && C.data === "]" && (a = C, N = !0, De(!1));
2050
- var Y = u[j], Q = r(Y, j);
2045
+ a = M ? X(/* @__PURE__ */ le(c)) : c.appendChild(fe());
2046
+ }
2047
+ M && Mt();
2048
+ var p = null, _ = /* @__PURE__ */ Vr(() => {
2049
+ var g = n();
2050
+ return Li(g) ? g : g == null ? [] : Yn(g);
2051
+ }), u = /* @__PURE__ */ new Map(), d = !0;
2052
+ function h(g) {
2053
+ if ((w.effect.f & 16384) === 0) {
2054
+ w.pending.delete(g);
2055
+ var y = s(_);
2056
+ w.fallback = p, Vs(w, y, a, t, r), p !== null && (y.length === 0 ? (p.f & 33554432) === 0 ? zn(p) : (p.f ^= Zt, Xt(p, null, a)) : bt(p, () => {
2057
+ p = null;
2058
+ }));
2059
+ }
2060
+ }
2061
+ function b(g) {
2062
+ w.pending.delete(g);
2063
+ }
2064
+ var w = {
2065
+ effect: Kr(() => {
2066
+ var g = s(_), y = g.length;
2067
+ let P = !1;
2068
+ M && Dr(a) === "[!" != (y === 0) && (a = In(), X(a), De(!1), P = !0);
2069
+ for (var k = /* @__PURE__ */ new Set(), T = x, G = uo(), H = 0; H < y; H += 1) {
2070
+ M && C.nodeType === 8 && C.data === "]" && (a = C, P = !0, De(!1));
2071
+ var Y = g[H], Q = r(Y, H);
2051
2072
  if (0)
2052
- var bt;
2053
- var q = h ? null : f.get(Q);
2054
- q ? (q.v && Mt(q.v, Y), q.i && Mt(q.i, j), G && T.unskip_effect(q.e)) : (q = Fs(f, h ? a : Sn ?? (Sn = fe()), Y, Q, j, i, t, n), h || (q.e.f |= Kt), f.set(Q, q)), k.add(Q);
2073
+ var wt;
2074
+ var W = d ? null : f.get(Q);
2075
+ W ? (W.v && Ct(W.v, Y), W.i && Ct(W.i, H), G && T.unskip_effect(W.e)) : (W = Fs(f, d ? a : xn ?? (xn = fe()), Y, Q, H, i, t, n), d || (W.e.f |= Zt), f.set(Q, W)), k.add(Q);
2055
2076
  }
2056
- if (m === 0 && o && !_ && (h ? _ = pe(() => o(a)) : (_ = pe(() => o(Sn ?? (Sn = fe()))), _.f |= Kt)), m > k.size && Na("", "", ""), M && m > 0 && X(Nn()), !h)
2057
- if (d.set(T, k), G) {
2058
- for (const [Be, Ot] of f) k.has(Be) || T.skip_effect(Ot.e);
2059
- T.oncommit(b), T.ondiscard(y);
2060
- } else b(T);
2061
- N && De(!0), s(p);
2077
+ if (y === 0 && o && !p && (d ? p = pe(() => o(a)) : (p = pe(() => o(xn ?? (xn = fe()))), p.f |= Zt)), y > k.size && Na("", "", ""), M && y > 0 && X(In()), !d)
2078
+ if (u.set(T, k), G) {
2079
+ for (const [ze, Nt] of f) k.has(ze) || T.skip_effect(Nt.e);
2080
+ T.oncommit(h), T.ondiscard(b);
2081
+ } else h(T);
2082
+ P && De(!0), s(_);
2062
2083
  }),
2063
2084
  flags: t,
2064
2085
  items: f,
2065
- pending: d,
2086
+ pending: u,
2066
2087
  outrogroups: null,
2067
- fallback: _
2088
+ fallback: p
2068
2089
  };
2069
- h = !1, M && (a = C);
2090
+ d = !1, M && (a = C);
2070
2091
  }
2071
- function Vt(e) {
2092
+ function Bt(e) {
2072
2093
  for (; e !== null && (e.f & 32) === 0; ) e = e.next;
2073
2094
  return e;
2074
2095
  }
2075
2096
  function Vs(e, t, n, r, i) {
2076
- var o = (r & 8) !== 0, a = t.length, f = e.items, c = Vt(e.effect.first), _, p = null, u, d = [], h = [], b, y, g, m;
2077
- if (o) for (m = 0; m < a; m += 1)
2078
- b = t[m], y = i(b, m), g = f.get(y).e, (g.f & 33554432) === 0 && (g.nodes?.a?.measure(), (u ?? (u = /* @__PURE__ */ new Set())).add(g));
2079
- for (m = 0; m < a; m += 1) {
2080
- if (b = t[m], y = i(b, m), g = f.get(y).e, e.outrogroups !== null) for (const q of e.outrogroups)
2081
- q.pending.delete(g), q.done.delete(g);
2082
- if ((g.f & 8192) !== 0 && (Bn(g), o && (g.nodes?.a?.unfix(), (u ?? (u = /* @__PURE__ */ new Set())).delete(g))), (g.f & 33554432) !== 0)
2083
- if (g.f ^= Kt, g === c) Yt(g, null, n);
2097
+ var o = (r & 8) !== 0, a = t.length, f = e.items, c = Bt(e.effect.first), p, _ = null, u, d = [], h = [], b, w, g, y;
2098
+ if (o) for (y = 0; y < a; y += 1)
2099
+ b = t[y], w = i(b, y), g = f.get(w).e, (g.f & 33554432) === 0 && (g.nodes?.a?.measure(), (u ?? (u = /* @__PURE__ */ new Set())).add(g));
2100
+ for (y = 0; y < a; y += 1) {
2101
+ if (b = t[y], w = i(b, y), g = f.get(w).e, e.outrogroups !== null) for (const W of e.outrogroups)
2102
+ W.pending.delete(g), W.done.delete(g);
2103
+ if ((g.f & 8192) !== 0 && (zn(g), o && (g.nodes?.a?.unfix(), (u ?? (u = /* @__PURE__ */ new Set())).delete(g))), (g.f & 33554432) !== 0)
2104
+ if (g.f ^= Zt, g === c) Xt(g, null, n);
2084
2105
  else {
2085
- var N = p ? p.next : c;
2086
- g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev), Ye(e, p, g), Ye(e, g, N), Yt(g, N, n), p = g, d = [], h = [], c = Vt(p.next);
2106
+ var P = _ ? _.next : c;
2107
+ g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev), Ke(e, _, g), Ke(e, g, P), Xt(g, P, n), _ = g, d = [], h = [], c = Bt(_.next);
2087
2108
  continue;
2088
2109
  }
2089
2110
  if (g !== c) {
2090
- if (_ !== void 0 && _.has(g)) {
2111
+ if (p !== void 0 && p.has(g)) {
2091
2112
  if (d.length < h.length) {
2092
2113
  var k = h[0], T;
2093
- p = k.prev;
2094
- var G = d[0], j = d[d.length - 1];
2095
- for (T = 0; T < d.length; T += 1) Yt(d[T], k, n);
2096
- for (T = 0; T < h.length; T += 1) _.delete(h[T]);
2097
- Ye(e, G.prev, j.next), Ye(e, p, G), Ye(e, j, k), c = k, p = j, m -= 1, d = [], h = [];
2114
+ _ = k.prev;
2115
+ var G = d[0], H = d[d.length - 1];
2116
+ for (T = 0; T < d.length; T += 1) Xt(d[T], k, n);
2117
+ for (T = 0; T < h.length; T += 1) p.delete(h[T]);
2118
+ Ke(e, G.prev, H.next), Ke(e, _, G), Ke(e, H, k), c = k, _ = H, y -= 1, d = [], h = [];
2098
2119
  } else
2099
- _.delete(g), Yt(g, c, n), Ye(e, g.prev, g.next), Ye(e, g, p === null ? e.effect.first : p.next), Ye(e, p, g), p = g;
2120
+ p.delete(g), Xt(g, c, n), Ke(e, g.prev, g.next), Ke(e, g, _ === null ? e.effect.first : _.next), Ke(e, _, g), _ = g;
2100
2121
  continue;
2101
2122
  }
2102
2123
  for (d = [], h = []; c !== null && c !== g; )
2103
- (_ ?? (_ = /* @__PURE__ */ new Set())).add(c), h.push(c), c = Vt(c.next);
2124
+ (p ?? (p = /* @__PURE__ */ new Set())).add(c), h.push(c), c = Bt(c.next);
2104
2125
  if (c === null) continue;
2105
2126
  }
2106
- (g.f & 33554432) === 0 && d.push(g), p = g, c = Vt(g.next);
2127
+ (g.f & 33554432) === 0 && d.push(g), _ = g, c = Bt(g.next);
2107
2128
  }
2108
2129
  if (e.outrogroups !== null) {
2109
- for (const q of e.outrogroups) q.pending.size === 0 && (Or(e, Gn(q.done)), e.outrogroups?.delete(q));
2130
+ for (const W of e.outrogroups) W.pending.size === 0 && (Lr(e, Yn(W.done)), e.outrogroups?.delete(W));
2110
2131
  e.outrogroups.size === 0 && (e.outrogroups = null);
2111
2132
  }
2112
- if (c !== null || _ !== void 0) {
2133
+ if (c !== null || p !== void 0) {
2113
2134
  var Y = [];
2114
- if (_ !== void 0)
2115
- for (g of _) (g.f & 8192) === 0 && Y.push(g);
2135
+ if (p !== void 0)
2136
+ for (g of p) (g.f & 8192) === 0 && Y.push(g);
2116
2137
  for (; c !== null; )
2117
- (c.f & 8192) === 0 && c !== e.fallback && Y.push(c), c = Vt(c.next);
2138
+ (c.f & 8192) === 0 && c !== e.fallback && Y.push(c), c = Bt(c.next);
2118
2139
  var Q = Y.length;
2119
2140
  if (Q > 0) {
2120
- var bt = (r & 4) !== 0 && a === 0 ? n : null;
2141
+ var wt = (r & 4) !== 0 && a === 0 ? n : null;
2121
2142
  if (o) {
2122
- for (m = 0; m < Q; m += 1) Y[m].nodes?.a?.measure();
2123
- for (m = 0; m < Q; m += 1) Y[m].nodes?.a?.fix();
2143
+ for (y = 0; y < Q; y += 1) Y[y].nodes?.a?.measure();
2144
+ for (y = 0; y < Q; y += 1) Y[y].nodes?.a?.fix();
2124
2145
  }
2125
- Hs(e, Y, bt);
2146
+ Hs(e, Y, wt);
2126
2147
  }
2127
2148
  }
2128
- o && Ze(() => {
2149
+ o && Je(() => {
2129
2150
  if (u !== void 0)
2130
2151
  for (g of u) g.nodes?.a?.apply();
2131
2152
  });
2132
2153
  }
2133
2154
  function Fs(e, t, n, r, i, o, a, f) {
2134
- var c = (a & 1) !== 0 ? (a & 16) === 0 ? /* @__PURE__ */ ro(n, !1, !1) : vt(n) : null, _ = (a & 2) !== 0 ? vt(i) : null;
2155
+ var c = (a & 1) !== 0 ? (a & 16) === 0 ? /* @__PURE__ */ io(n, !1, !1) : _t(n) : null, p = (a & 2) !== 0 ? _t(i) : null;
2135
2156
  return {
2136
2157
  v: c,
2137
- i: _,
2138
- e: pe(() => (o(t, c ?? n, _ ?? i, f), () => {
2158
+ i: p,
2159
+ e: pe(() => (o(t, c ?? n, p ?? i, f), () => {
2139
2160
  e.delete(r);
2140
2161
  }))
2141
2162
  };
2142
2163
  }
2143
- function Yt(e, t, n) {
2164
+ function Xt(e, t, n) {
2144
2165
  if (e.nodes)
2145
2166
  for (var r = e.nodes.start, i = e.nodes.end, o = t && (t.f & 33554432) === 0 ? t.nodes.start : n; r !== null; ) {
2146
2167
  var a = /* @__PURE__ */ Te(r);
@@ -2148,53 +2169,53 @@ function Yt(e, t, n) {
2148
2169
  r = a;
2149
2170
  }
2150
2171
  }
2151
- function Ye(e, t, n) {
2172
+ function Ke(e, t, n) {
2152
2173
  t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
2153
2174
  }
2154
2175
  function Bs(e, t, n = !1, r = !1, i = !1, o = !1) {
2155
2176
  var a = e, f = "";
2156
2177
  if (n) {
2157
2178
  var c = e;
2158
- M && (a = X(/* @__PURE__ */ se(c)));
2179
+ M && (a = X(/* @__PURE__ */ le(c)));
2159
2180
  }
2160
2181
  We(() => {
2161
- var _ = x;
2182
+ var p = A;
2162
2183
  if (f === (f = t() ?? "")) {
2163
- M && At();
2184
+ M && Mt();
2164
2185
  return;
2165
2186
  }
2166
2187
  if (n && !M) {
2167
- _.nodes = null, c.innerHTML = f, f !== "" && He(/* @__PURE__ */ se(c), c.lastChild);
2188
+ p.nodes = null, c.innerHTML = f, f !== "" && He(/* @__PURE__ */ le(c), c.lastChild);
2168
2189
  return;
2169
2190
  }
2170
- if (_.nodes !== null && (vo(_.nodes.start, _.nodes.end), _.nodes = null), f !== "") {
2191
+ if (p.nodes !== null && (_o(p.nodes.start, p.nodes.end), p.nodes = null), f !== "") {
2171
2192
  if (M) {
2172
- for (var p = C.data, u = At(), d = u; u !== null && (u.nodeType !== 8 || u.data !== ""); )
2193
+ for (var _ = C.data, u = Mt(), d = u; u !== null && (u.nodeType !== 8 || u.data !== ""); )
2173
2194
  d = u, u = /* @__PURE__ */ Te(u);
2174
2195
  if (u === null)
2175
- throw sn(), dt;
2196
+ throw cn(), Ve;
2176
2197
  He(C, d), a = X(u);
2177
2198
  return;
2178
2199
  }
2179
- var h = Xn(r ? "svg" : i ? "math" : "template", r ? ha : i ? va : void 0);
2200
+ var h = Zn(r ? "svg" : i ? "math" : "template", r ? va : i ? _a : void 0);
2180
2201
  h.innerHTML = f;
2181
2202
  var b = r || i ? h : h.content;
2182
- if (He(/* @__PURE__ */ se(b), b.lastChild), r || i) for (; /* @__PURE__ */ se(b); ) a.before(/* @__PURE__ */ se(b));
2203
+ if (He(/* @__PURE__ */ le(b), b.lastChild), r || i) for (; /* @__PURE__ */ le(b); ) a.before(/* @__PURE__ */ le(b));
2183
2204
  else a.before(b);
2184
2205
  }
2185
2206
  });
2186
2207
  }
2187
2208
  function zs(e, t) {
2188
- co(() => {
2189
- e = x?.parent?.nodes?.start ?? e;
2209
+ ho(() => {
2210
+ e = A?.parent?.nodes?.start ?? e;
2190
2211
  var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
2191
2212
  if (!r.querySelector("#" + t.hash)) {
2192
- const i = Xn("style");
2213
+ const i = Zn("style");
2193
2214
  i.id = t.hash, i.textContent = t.code, r.appendChild(i);
2194
2215
  }
2195
2216
  });
2196
2217
  }
2197
- var $i = [...`
2218
+ var Si = [...`
2198
2219
  \r\f \v\uFEFF`];
2199
2220
  function Us(e, t, n) {
2200
2221
  var r = e == null ? "" : "" + e;
@@ -2203,12 +2224,12 @@ function Us(e, t, n) {
2203
2224
  else if (r.length)
2204
2225
  for (var o = i.length, a = 0; (a = r.indexOf(i, a)) >= 0; ) {
2205
2226
  var f = a + o;
2206
- (a === 0 || $i.includes(r[a - 1])) && (f === r.length || $i.includes(r[f])) ? r = (a === 0 ? "" : r.substring(0, a)) + r.substring(f + 1) : a = f;
2227
+ (a === 0 || Si.includes(r[a - 1])) && (f === r.length || Si.includes(r[f])) ? r = (a === 0 ? "" : r.substring(0, a)) + r.substring(f + 1) : a = f;
2207
2228
  }
2208
2229
  }
2209
2230
  return r === "" ? null : r;
2210
2231
  }
2211
- function Si(e, t = !1) {
2232
+ function Ei(e, t = !1) {
2212
2233
  var n = t ? " !important;" : ";", r = "";
2213
2234
  for (var i of Object.keys(e)) {
2214
2235
  var o = e[i];
@@ -2216,7 +2237,7 @@ function Si(e, t = !1) {
2216
2237
  }
2217
2238
  return r;
2218
2239
  }
2219
- function vr(e) {
2240
+ function _r(e) {
2220
2241
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
2221
2242
  }
2222
2243
  function Gs(e, t) {
@@ -2225,54 +2246,54 @@ function Gs(e, t) {
2225
2246
  if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
2226
2247
  e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
2227
2248
  var o = !1, a = 0, f = !1, c = [];
2228
- r && c.push(...Object.keys(r).map(vr)), i && c.push(...Object.keys(i).map(vr));
2229
- var _ = 0, p = -1;
2230
- const y = e.length;
2231
- for (var u = 0; u < y; u++) {
2249
+ r && c.push(...Object.keys(r).map(_r)), i && c.push(...Object.keys(i).map(_r));
2250
+ var p = 0, _ = -1;
2251
+ const w = e.length;
2252
+ for (var u = 0; u < w; u++) {
2232
2253
  var d = e[u];
2233
2254
  if (f ? d === "/" && e[u - 1] === "*" && (f = !1) : o ? o === d && (o = !1) : d === "/" && e[u + 1] === "*" ? f = !0 : d === '"' || d === "'" ? o = d : d === "(" ? a++ : d === ")" && a--, !f && o === !1 && a === 0) {
2234
- if (d === ":" && p === -1) p = u;
2235
- else if (d === ";" || u === y - 1) {
2236
- if (p !== -1) {
2237
- var h = vr(e.substring(_, p).trim());
2255
+ if (d === ":" && _ === -1) _ = u;
2256
+ else if (d === ";" || u === w - 1) {
2257
+ if (_ !== -1) {
2258
+ var h = _r(e.substring(p, _).trim());
2238
2259
  if (!c.includes(h)) {
2239
2260
  d !== ";" && u++;
2240
- var b = e.substring(_, u).trim();
2261
+ var b = e.substring(p, u).trim();
2241
2262
  n += " " + b + ";";
2242
2263
  }
2243
2264
  }
2244
- _ = u + 1, p = -1;
2265
+ p = u + 1, _ = -1;
2245
2266
  }
2246
2267
  }
2247
2268
  }
2248
2269
  }
2249
- return r && (n += Si(r)), i && (n += Si(i, !0)), n = n.trim(), n === "" ? null : n;
2270
+ return r && (n += Ei(r)), i && (n += Ei(i, !0)), n = n.trim(), n === "" ? null : n;
2250
2271
  }
2251
2272
  return e == null ? null : String(e);
2252
2273
  }
2253
2274
  function Ys(e, t, n, r, i, o) {
2254
- var a = e[mr];
2275
+ var a = e[kr];
2255
2276
  if (M || a !== n || a === void 0) {
2256
2277
  var f = Us(n, r, o);
2257
- (!M || f !== e.getAttribute("class")) && (f == null ? e.removeAttribute("class") : t ? e.className = f : e.setAttribute("class", f)), e[mr] = n;
2278
+ (!M || f !== e.getAttribute("class")) && (f == null ? e.removeAttribute("class") : t ? e.className = f : e.setAttribute("class", f)), e[kr] = n;
2258
2279
  } else if (o && i !== o) for (var c in o) {
2259
- var _ = !!o[c];
2260
- (i == null || _ !== !!i[c]) && e.classList.toggle(c, _);
2280
+ var p = !!o[c];
2281
+ (i == null || p !== !!i[c]) && e.classList.toggle(c, p);
2261
2282
  }
2262
2283
  return o;
2263
2284
  }
2264
- function _r(e, t = {}, n, r) {
2285
+ function pr(e, t = {}, n, r) {
2265
2286
  for (var i in n) {
2266
2287
  var o = n[i];
2267
2288
  t[i] !== o && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, r));
2268
2289
  }
2269
2290
  }
2270
- function Ei(e, t, n, r) {
2271
- var i = e[yr];
2291
+ function Ti(e, t, n, r) {
2292
+ var i = e[$r];
2272
2293
  if (M || i !== t) {
2273
2294
  var o = Gs(t, r);
2274
- (!M || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e[yr] = t;
2275
- } else r && (Array.isArray(r) ? (_r(e, n?.[0], r[0]), _r(e, n?.[1], r[1], "important")) : _r(e, n, r));
2295
+ (!M || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e[$r] = t;
2296
+ } else r && (Array.isArray(r) ? (pr(e, n?.[0], r[0]), pr(e, n?.[1], r[1], "important")) : pr(e, n, r));
2276
2297
  return r;
2277
2298
  }
2278
2299
  var Ks = /* @__PURE__ */ Symbol("is custom element"), Xs = /* @__PURE__ */ Symbol("is html"), Zs = xa ? "link" : "LINK";
@@ -2285,119 +2306,119 @@ function U(e, t, n, r) {
2285
2306
  i[t] !== (i[t] = n) && (t === "loading" && (e[Ta] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Qs(e).has(t) ? e[t] = n : e.setAttribute(t, n));
2286
2307
  }
2287
2308
  function Js(e) {
2288
- return e[wr] ?? (e[wr] = {
2309
+ return e[yr] ?? (e[yr] = {
2289
2310
  [Ks]: e.nodeName.includes("-"),
2290
2311
  [Xs]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
2291
2312
  });
2292
2313
  }
2293
- var Ti = /* @__PURE__ */ new Map();
2314
+ var Ai = /* @__PURE__ */ new Map();
2294
2315
  function Qs(e) {
2295
- var t = e.getAttribute("is") || e.nodeName, n = Ti.get(t);
2316
+ var t = e.getAttribute("is") || e.nodeName, n = Ai.get(t);
2296
2317
  if (n) return n;
2297
- Ti.set(t, n = /* @__PURE__ */ new Set());
2318
+ Ai.set(t, n = /* @__PURE__ */ new Set());
2298
2319
  for (var r, i = e, o = Element.prototype; o !== i; ) {
2299
- r = pa(i);
2320
+ r = ga(i);
2300
2321
  for (var a in r) r[a].set && a !== "innerHTML" && a !== "textContent" && a !== "innerText" && n.add(a);
2301
- i = Li(i);
2322
+ i = Ni(i);
2302
2323
  }
2303
2324
  return n;
2304
2325
  }
2305
- var Co, St = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakSet(), Oo = class {
2326
+ var Oo, Et = /* @__PURE__ */ new WeakMap(), Gn = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), xi = /* @__PURE__ */ new WeakSet(), Lo = class {
2306
2327
  constructor(e) {
2307
- Vr(this, Ai), S(this, St, /* @__PURE__ */ new WeakMap()), S(this, Un, void 0), S(this, pr, void 0), $(pr, this, e);
2328
+ Br(this, xi), E(this, Et, /* @__PURE__ */ new WeakMap()), E(this, Gn, void 0), E(this, gr, void 0), S(gr, this, e);
2308
2329
  }
2309
2330
  observe(e, t) {
2310
- var n = l(St, this).get(e) || /* @__PURE__ */ new Set();
2311
- return n.add(t), l(St, this).set(e, n), E(Ai, this, el).call(this).observe(e, l(pr, this)), () => {
2312
- var r = l(St, this).get(e);
2313
- r.delete(t), r.size === 0 && (l(St, this).delete(e), l(Un, this).unobserve(e));
2331
+ var n = l(Et, this).get(e) || /* @__PURE__ */ new Set();
2332
+ return n.add(t), l(Et, this).set(e, n), $(xi, this, el).call(this).observe(e, l(gr, this)), () => {
2333
+ var r = l(Et, this).get(e);
2334
+ r.delete(t), r.size === 0 && (l(Et, this).delete(e), l(Gn, this).unobserve(e));
2314
2335
  };
2315
2336
  }
2316
2337
  };
2317
- Co = Oo;
2338
+ Oo = Lo;
2318
2339
  function el() {
2319
- return l(Un, this) ?? $(Un, this, new ResizeObserver((e) => {
2340
+ return l(Gn, this) ?? S(Gn, this, new ResizeObserver((e) => {
2320
2341
  for (var t of e) {
2321
- Co.entries.set(t.target, t);
2322
- for (var n of l(St, this).get(t.target) || []) n(t);
2342
+ Oo.entries.set(t.target, t);
2343
+ for (var n of l(Et, this).get(t.target) || []) n(t);
2323
2344
  }
2324
2345
  }));
2325
2346
  }
2326
- I(Oo, "entries", /* @__PURE__ */ new WeakMap());
2327
- function gr(e, t) {
2328
- return e === t || e?.[Xt] === t;
2347
+ q(Lo, "entries", /* @__PURE__ */ new WeakMap());
2348
+ function br(e, t) {
2349
+ return e === t || e?.[Jt] === t;
2329
2350
  }
2330
- function xi(e = Wr(), t, n, r) {
2331
- var i = V.r, o = x;
2332
- return co(() => {
2351
+ function Mi(e = jr(), t, n, r) {
2352
+ var i = F.r, o = A;
2353
+ return ho(() => {
2333
2354
  var a, f;
2334
- return Ur(() => {
2335
- a = f, f = r?.() || [], Tt(() => {
2336
- gr(n(...f), e) || (t(e, ...f), a && gr(n(...a), e) && t(null, ...a));
2355
+ return Yr(() => {
2356
+ a = f, f = r?.() || [], xt(() => {
2357
+ br(n(...f), e) || (t(e, ...f), a && br(n(...a), e) && t(null, ...a));
2337
2358
  });
2338
2359
  }), () => {
2339
2360
  let c = o;
2340
2361
  for (; c !== i && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
2341
- const _ = () => {
2342
- f && gr(n(...f), e) && t(null, ...f);
2343
- }, p = c.teardown;
2362
+ const p = () => {
2363
+ f && br(n(...f), e) && t(null, ...f);
2364
+ }, _ = c.teardown;
2344
2365
  c.teardown = () => {
2345
- _(), p?.();
2366
+ p(), _?.();
2346
2367
  };
2347
2368
  };
2348
2369
  }), e;
2349
2370
  }
2350
- var En = !1;
2371
+ var Mn = !1;
2351
2372
  function tl(e) {
2352
- var t = En;
2373
+ var t = Mn;
2353
2374
  try {
2354
- return En = !1, [e(), En];
2375
+ return Mn = !1, [e(), Mn];
2355
2376
  } finally {
2356
- En = t;
2377
+ Mn = t;
2357
2378
  }
2358
2379
  }
2359
- function Mi(e, t, n, r) {
2360
- var i = !Yn || (n & 2) !== 0, o = (n & 8) !== 0, a = (n & 16) !== 0, f = r, c = !0, _ = void 0, p = () => a && i ? (_ ?? (_ = /* @__PURE__ */ tn(r)), s(_)) : (c && (c = !1, f = a ? Tt(r) : r), f);
2380
+ function Ri(e, t, n, r) {
2381
+ var i = !Kn || (n & 2) !== 0, o = (n & 8) !== 0, a = (n & 16) !== 0, f = r, c = !0, p = void 0, _ = () => a && i ? (p ?? (p = /* @__PURE__ */ on(r)), s(p)) : (c && (c = !1, f = a ? xt(r) : r), f);
2361
2382
  let u;
2362
2383
  if (o) {
2363
- var d = Xt in e || Ii in e;
2364
- u = lt(e, t)?.set ?? (d && t in e ? (T) => e[t] = T : void 0);
2384
+ var d = Jt in e || Wi in e;
2385
+ u = ft(e, t)?.set ?? (d && t in e ? (T) => e[t] = T : void 0);
2365
2386
  }
2366
2387
  var h, b = !1;
2367
- o ? [h, b] = tl(() => e[t]) : h = e[t], h === void 0 && r !== void 0 && (h = p(), u && (i && ja(t), u(h)));
2368
- var y;
2369
- if (i ? y = () => {
2388
+ o ? [h, b] = tl(() => e[t]) : h = e[t], h === void 0 && r !== void 0 && (h = _(), u && (i && ja(t), u(h)));
2389
+ var w;
2390
+ if (i ? w = () => {
2370
2391
  var T = e[t];
2371
- return T === void 0 ? p() : (c = !0, T);
2372
- } : y = () => {
2392
+ return T === void 0 ? _() : (c = !0, T);
2393
+ } : w = () => {
2373
2394
  var T = e[t];
2374
2395
  return T !== void 0 && (f = void 0), T === void 0 ? f : T;
2375
- }, i && (n & 4) === 0) return y;
2396
+ }, i && (n & 4) === 0) return w;
2376
2397
  if (u) {
2377
2398
  var g = e.$$legacy;
2378
2399
  return (function(T, G) {
2379
- return arguments.length > 0 ? ((!i || !G || g || b) && u(G ? y() : T), T) : y();
2400
+ return arguments.length > 0 ? ((!i || !G || g || b) && u(G ? w() : T), T) : w();
2380
2401
  });
2381
2402
  }
2382
- var m = !1, N = ((n & 1) !== 0 ? tn : jr)(() => (m = !1, y()));
2383
- o && s(N);
2384
- var k = x;
2403
+ var y = !1, P = ((n & 1) !== 0 ? on : Vr)(() => (y = !1, w()));
2404
+ o && s(P);
2405
+ var k = A;
2385
2406
  return (function(T, G) {
2386
2407
  if (arguments.length > 0) {
2387
- const j = G ? s(N) : i && o ? at(T) : T;
2388
- return L(N, j), m = !0, f !== void 0 && (f = j), T;
2408
+ const H = G ? s(P) : i && o ? st(T) : T;
2409
+ return L(P, H), y = !0, f !== void 0 && (f = H), T;
2389
2410
  }
2390
- return Ve && m || (k.f & 16384) !== 0 ? N.v : s(N);
2411
+ return Fe && y || (k.f & 16384) !== 0 ? P.v : s(P);
2391
2412
  });
2392
2413
  }
2393
2414
  function nl(e) {
2394
2415
  return new rl(e);
2395
2416
  }
2396
- var tt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), rl = class {
2417
+ var nt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), rl = class {
2397
2418
  constructor(e) {
2398
- S(this, tt, void 0), S(this, Me, void 0);
2419
+ E(this, nt, void 0), E(this, Me, void 0);
2399
2420
  var t = /* @__PURE__ */ new Map(), n = (i, o) => {
2400
- var a = /* @__PURE__ */ ro(o, !1, !1);
2421
+ var a = /* @__PURE__ */ io(o, !1, !1);
2401
2422
  return t.set(i, a), a;
2402
2423
  };
2403
2424
  const r = new Proxy({
@@ -2408,13 +2429,13 @@ var tt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), rl =
2408
2429
  return s(t.get(o) ?? n(o, Reflect.get(i, o)));
2409
2430
  },
2410
2431
  has(i, o) {
2411
- return o === Ii ? !0 : (s(t.get(o) ?? n(o, Reflect.get(i, o))), Reflect.has(i, o));
2432
+ return o === Wi ? !0 : (s(t.get(o) ?? n(o, Reflect.get(i, o))), Reflect.has(i, o));
2412
2433
  },
2413
2434
  set(i, o, a) {
2414
2435
  return L(t.get(o) ?? n(o, a), a), Reflect.set(i, o, a);
2415
2436
  }
2416
2437
  });
2417
- $(Me, this, (e.hydrate ? qs : Mo)(e.component, {
2438
+ S(Me, this, (e.hydrate ? qs : Ro)(e.component, {
2418
2439
  target: e.target,
2419
2440
  anchor: e.anchor,
2420
2441
  props: r,
@@ -2422,9 +2443,9 @@ var tt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), rl =
2422
2443
  intro: e.intro ?? !1,
2423
2444
  recover: e.recover,
2424
2445
  transformError: e.transformError
2425
- })), !Fe && (!e?.props?.$$host || e.sync === !1) && Vn(), $(tt, this, r.$$events);
2446
+ })), !Be && (!e?.props?.$$host || e.sync === !1) && sn(), S(nt, this, r.$$events);
2426
2447
  for (const i of Object.keys(l(Me, this)))
2427
- i === "$set" || i === "$destroy" || i === "$on" || Qt(this, i, {
2448
+ i === "$set" || i === "$destroy" || i === "$on" || nn(this, i, {
2428
2449
  get() {
2429
2450
  return l(Me, this)[i];
2430
2451
  },
@@ -2443,19 +2464,19 @@ var tt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), rl =
2443
2464
  l(Me, this).$set(e);
2444
2465
  }
2445
2466
  $on(e, t) {
2446
- l(tt, this)[e] = l(tt, this)[e] || [];
2467
+ l(nt, this)[e] = l(nt, this)[e] || [];
2447
2468
  const n = (...r) => t.call(this, ...r);
2448
- return l(tt, this)[e].push(n), () => {
2449
- l(tt, this)[e] = l(tt, this)[e].filter((r) => r !== n);
2469
+ return l(nt, this)[e].push(n), () => {
2470
+ l(nt, this)[e] = l(nt, this)[e].filter((r) => r !== n);
2450
2471
  };
2451
2472
  }
2452
2473
  $destroy() {
2453
2474
  l(Me, this).$destroy();
2454
2475
  }
2455
- }, Lo;
2456
- typeof HTMLElement == "function" && (Lo = class extends HTMLElement {
2476
+ }, No;
2477
+ typeof HTMLElement == "function" && (No = class extends HTMLElement {
2457
2478
  constructor(e, t, n) {
2458
- super(), I(this, "$$ctor", void 0), I(this, "$$s", void 0), I(this, "$$c", void 0), I(this, "$$cn", !1), I(this, "$$d", {}), I(this, "$$r", !1), I(this, "$$p_d", {}), I(this, "$$l", {}), I(this, "$$l_u", /* @__PURE__ */ new Map()), I(this, "$$me", void 0), I(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, n && (this.$$shadowRoot = this.attachShadow(n));
2479
+ super(), q(this, "$$ctor", void 0), q(this, "$$s", void 0), q(this, "$$c", void 0), q(this, "$$cn", !1), q(this, "$$d", {}), q(this, "$$r", !1), q(this, "$$p_d", {}), q(this, "$$l", {}), q(this, "$$l_u", /* @__PURE__ */ new Map()), q(this, "$$me", void 0), q(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, n && (this.$$shadowRoot = this.attachShadow(n));
2459
2480
  }
2460
2481
  addEventListener(e, t, n) {
2461
2482
  if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
@@ -2474,7 +2495,7 @@ typeof HTMLElement == "function" && (Lo = class extends HTMLElement {
2474
2495
  if (this.$$cn = !0, !this.$$c) {
2475
2496
  let e = function(r) {
2476
2497
  return (i) => {
2477
- const o = Xn("slot");
2498
+ const o = Zn("slot");
2478
2499
  r !== "default" && (o.name = r), he(i, o);
2479
2500
  };
2480
2501
  };
@@ -2483,7 +2504,7 @@ typeof HTMLElement == "function" && (Lo = class extends HTMLElement {
2483
2504
  for (const r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
2484
2505
  for (const r of this.attributes) {
2485
2506
  const i = this.$$g_p(r.name);
2486
- i in this.$$d || (this.$$d[i] = Rn(i, r.value, this.$$p_d, "toProp"));
2507
+ i in this.$$d || (this.$$d[i] = Ln(i, r.value, this.$$p_d, "toProp"));
2487
2508
  }
2488
2509
  for (const r in this.$$p_d) !(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
2489
2510
  this.$$c = nl({
@@ -2495,12 +2516,12 @@ typeof HTMLElement == "function" && (Lo = class extends HTMLElement {
2495
2516
  $$host: this
2496
2517
  }
2497
2518
  }), this.$$me = hs(() => {
2498
- Ur(() => {
2519
+ Yr(() => {
2499
2520
  this.$$r = !0;
2500
- for (const r of On(this.$$c)) {
2521
+ for (const r of Nn(this.$$c)) {
2501
2522
  if (!this.$$p_d[r]?.reflect) continue;
2502
2523
  this.$$d[r] = this.$$c[r];
2503
- const i = Rn(r, this.$$d[r], this.$$p_d, "toAttribute");
2524
+ const i = Ln(r, this.$$d[r], this.$$p_d, "toAttribute");
2504
2525
  i == null ? this.removeAttribute(this.$$p_d[r].attribute || r) : this.setAttribute(this.$$p_d[r].attribute || r, i);
2505
2526
  }
2506
2527
  this.$$r = !1;
@@ -2514,7 +2535,7 @@ typeof HTMLElement == "function" && (Lo = class extends HTMLElement {
2514
2535
  }
2515
2536
  }
2516
2537
  attributeChangedCallback(e, t, n) {
2517
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Rn(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2538
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ln(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2518
2539
  }
2519
2540
  disconnectedCallback() {
2520
2541
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2522,10 +2543,10 @@ typeof HTMLElement == "function" && (Lo = class extends HTMLElement {
2522
2543
  });
2523
2544
  }
2524
2545
  $$g_p(e) {
2525
- return On(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2546
+ return Nn(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2526
2547
  }
2527
2548
  });
2528
- function Rn(e, t, n, r) {
2549
+ function Ln(e, t, n, r) {
2529
2550
  const i = n[e]?.type;
2530
2551
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
2531
2552
  if (r === "toAttribute") switch (i) {
@@ -2558,27 +2579,27 @@ function il(e) {
2558
2579
  }), t;
2559
2580
  }
2560
2581
  function ol(e, t, n, r, i, o) {
2561
- let a = class extends Lo {
2582
+ let a = class extends No {
2562
2583
  constructor() {
2563
2584
  super(e, n, i), this.$$p_d = t;
2564
2585
  }
2565
2586
  static get observedAttributes() {
2566
- return On(t).map((f) => (t[f].attribute || f).toLowerCase());
2587
+ return Nn(t).map((f) => (t[f].attribute || f).toLowerCase());
2567
2588
  }
2568
2589
  };
2569
- return On(t).forEach((f) => {
2570
- Qt(a.prototype, f, {
2590
+ return Nn(t).forEach((f) => {
2591
+ nn(a.prototype, f, {
2571
2592
  get() {
2572
2593
  return this.$$c && f in this.$$c ? this.$$c[f] : this.$$d[f];
2573
2594
  },
2574
2595
  set(c) {
2575
- c = Rn(f, c, t), this.$$d[f] = c;
2576
- var _ = this.$$c;
2577
- _ && (lt(_, f)?.get ? _[f] = c : _.$set({ [f]: c }));
2596
+ c = Ln(f, c, t), this.$$d[f] = c;
2597
+ var p = this.$$c;
2598
+ p && (ft(p, f)?.get ? p[f] = c : p.$set({ [f]: c }));
2578
2599
  }
2579
2600
  });
2580
2601
  }), r.forEach((f) => {
2581
- Qt(a.prototype, f, { get() {
2602
+ nn(a.prototype, f, { get() {
2582
2603
  return this.$$c?.[f];
2583
2604
  } });
2584
2605
  }), o && (a = o(a)), e.element = a, a;
@@ -2588,10 +2609,10 @@ function al(e) {
2588
2609
  }
2589
2610
  function sl({ key: e, activeIndex: t, count: n, direction: r }) {
2590
2611
  if (n <= 0) return null;
2591
- const i = Lr(t, n), o = r === "rtl" ? "ArrowLeft" : "ArrowRight", a = r === "rtl" ? "ArrowRight" : "ArrowLeft";
2612
+ const i = Nr(t, n), o = r === "rtl" ? "ArrowLeft" : "ArrowRight", a = r === "rtl" ? "ArrowRight" : "ArrowLeft";
2592
2613
  return e === o ? (i + 1) % n : e === a ? (i - 1 + n) % n : e === "Home" ? 0 : e === "End" ? n - 1 : null;
2593
2614
  }
2594
- function Lr(e, t) {
2615
+ function Nr(e, t) {
2595
2616
  return t <= 0 || !Number.isFinite(e) || e < 0 ? 0 : Math.min(Math.trunc(e), t - 1);
2596
2617
  }
2597
2618
  function ll(e, t) {
@@ -2609,12 +2630,12 @@ function cl(e, t, n = {
2609
2630
  }, r = 8) {
2610
2631
  const o = e.left + (e.right - e.left) / 2 - n.width / 2, a = e.top - r - n.height, f = a < 4 && e.bottom + r + n.height <= t.height, c = f ? e.bottom + r : a;
2611
2632
  return {
2612
- x: Ri(o, n.width, t.width, 4),
2613
- y: Ri(c, n.height, t.height, 4),
2633
+ x: Ci(o, n.width, t.width, 4),
2634
+ y: Ci(c, n.height, t.height, 4),
2614
2635
  below: f
2615
2636
  };
2616
2637
  }
2617
- function Ri(e, t, n, r) {
2638
+ function Ci(e, t, n, r) {
2618
2639
  const i = n - t - r;
2619
2640
  return i <= r ? r : Math.min(Math.max(e, r), i);
2620
2641
  }
@@ -2660,7 +2681,7 @@ var pl = (e) => {
2660
2681
  const t = [];
2661
2682
  for (const n of e) {
2662
2683
  let r = n?.getRootNode?.();
2663
- for (; Nr(r); )
2684
+ for (; Pr(r); )
2664
2685
  t.includes(r) || t.push(r), r = r.host.getRootNode?.();
2665
2686
  }
2666
2687
  return t;
@@ -2685,9 +2706,9 @@ var pl = (e) => {
2685
2706
  const f = t.getRootNode();
2686
2707
  if (r.getRootNode() === f)
2687
2708
  return a.setEnd(r, i), a;
2688
- const c = ua(r, f);
2709
+ const c = ca(r, f);
2689
2710
  if (c) a.setEndBefore(c);
2690
- else if (Nr(f)) a.setEnd(f, f.childNodes.length);
2711
+ else if (Pr(f)) a.setEnd(f, f.childNodes.length);
2691
2712
  else return null;
2692
2713
  return a;
2693
2714
  } catch {
@@ -2708,11 +2729,11 @@ var pl = (e) => {
2708
2729
  range: r,
2709
2730
  text: n.startContainer.getRootNode() === n.endContainer.getRootNode() ? e.toString() : r.toString()
2710
2731
  };
2711
- }, Ci = (e) => {
2712
- const t = e.startContainer, n = sa(t);
2732
+ }, Oi = (e) => {
2733
+ const t = e.startContainer, n = la(t);
2713
2734
  if (!n) return null;
2714
- const r = fa(n, t);
2715
- return !br(r, t) || !br(r, e.endContainer) ? null : r;
2735
+ const r = ua(n, t);
2736
+ return !wr(r, t) || !wr(r, e.endContainer) ? null : r;
2716
2737
  }, ml = /* @__PURE__ */ Ie('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-1qnnvrt"><span class="pie-sr-only svelte-1qnnvrt"> </span></button>'), yl = /* @__PURE__ */ Ie('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><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), kl = /* @__PURE__ */ Ie('<span class="pie-tool-annotation-toolbar__action-icon svelte-1qnnvrt" aria-hidden="true"></span>'), $l = /* @__PURE__ */ Ie("<button><!></button>"), Sl = /* @__PURE__ */ Ie('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <!>', 1), El = /* @__PURE__ */ Ie('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><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__ */ Ie('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-1qnnvrt"> </button>'), Al = /* @__PURE__ */ Ie('<div class="divider divider-horizontal mx-0 w-px svelte-1qnnvrt"></div> <!> <!>', 1), xl = /* @__PURE__ */ Ie('<div class="pie-tool-annotation-toolbar notranslate svelte-1qnnvrt" role="toolbar" translate="no" tabindex="-1"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-1qnnvrt"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-1qnnvrt"><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>'), Ml = /* @__PURE__ */ Ie('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-1qnnvrt"> </div>', 1), Rl = {
2717
2738
  hash: "svelte-1qnnvrt",
2718
2739
  code: `.pie-tool-annotation-toolbar.svelte-1qnnvrt {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);
@@ -2754,8 +2775,8 @@ var pl = (e) => {
2754
2775
  ones — a strip of mismatched buttons reads as broken. */.pie-tool-annotation-toolbar__action-icon.svelte-1qnnvrt {display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;}.pie-tool-annotation-toolbar__action-icon.svelte-1qnnvrt svg {width:100%;height:100%;}`
2755
2776
  };
2756
2777
  function Cl(e, t) {
2757
- ji(t, !0), zs(e, Rl);
2758
- let n = Mi(t, "enabled", 7, !0), r = Mi(t, "selectionActions", 7, null);
2778
+ Hi(t, !0), zs(e, Rl);
2779
+ let n = Ri(t, "enabled", 7, !0), r = Ri(t, "selectionActions", 7, null);
2759
2780
  const i = typeof window < "u", o = "annotationToolbar", a = 2e3, f = [
2760
2781
  "button",
2761
2782
  "input",
@@ -2767,30 +2788,30 @@ function Cl(e, t) {
2767
2788
  '[role="button"]',
2768
2789
  '[role="textbox"]'
2769
2790
  ], c = 30;
2770
- let _ = /* @__PURE__ */ H(null), p = /* @__PURE__ */ H(null);
2771
- const u = /* @__PURE__ */ de(() => ca(s(p))), d = /* @__PURE__ */ de(() => s(p)?.highlightCoordinator ?? null), h = /* @__PURE__ */ de(() => s(p)?.ttsService ?? null), b = /* @__PURE__ */ de(() => s(p)?.elementToolStateStore ?? null), y = /* @__PURE__ */ de(() => [
2791
+ let p = /* @__PURE__ */ V(null), _ = /* @__PURE__ */ V(null);
2792
+ const u = /* @__PURE__ */ de(() => da(s(_))), d = /* @__PURE__ */ de(() => s(_)?.highlightCoordinator ?? null), h = /* @__PURE__ */ de(() => s(_)?.ttsService ?? null), b = /* @__PURE__ */ de(() => s(_)?.elementToolStateStore ?? null), w = /* @__PURE__ */ de(() => [
2772
2793
  {
2773
- name: mt.YELLOW,
2794
+ name: yt.YELLOW,
2774
2795
  hex: "#fde995",
2775
2796
  label: s(u).t("tools.annotationToolbar.highlightYellowA11y")
2776
2797
  },
2777
2798
  {
2778
- name: mt.PINK,
2799
+ name: yt.PINK,
2779
2800
  hex: "#ff9fae",
2780
2801
  label: s(u).t("tools.annotationToolbar.highlightPinkA11y")
2781
2802
  },
2782
2803
  {
2783
- name: mt.BLUE,
2804
+ name: yt.BLUE,
2784
2805
  hex: "#a7e0f6",
2785
2806
  label: s(u).t("tools.annotationToolbar.highlightBlueA11y")
2786
2807
  },
2787
2808
  {
2788
- name: mt.GREEN,
2809
+ name: yt.GREEN,
2789
2810
  hex: "#a6e1c5",
2790
2811
  label: s(u).t("tools.annotationToolbar.highlightGreenA11y")
2791
2812
  }
2792
2813
  ]);
2793
- let g = /* @__PURE__ */ H(null), m = /* @__PURE__ */ H(null), N = /* @__PURE__ */ H(null), k = /* @__PURE__ */ H(at({
2814
+ let g = /* @__PURE__ */ V(null), y = /* @__PURE__ */ V(null), P = /* @__PURE__ */ V(null), k = /* @__PURE__ */ V(st({
2794
2815
  isVisible: !1,
2795
2816
  selectedText: "",
2796
2817
  selectedRange: null,
@@ -2799,102 +2820,102 @@ function Cl(e, t) {
2799
2820
  y: 0,
2800
2821
  below: !1
2801
2822
  }
2802
- })), T = /* @__PURE__ */ H(!1), G = /* @__PURE__ */ H(!1), j = /* @__PURE__ */ H(""), Y = /* @__PURE__ */ H(0), Q = /* @__PURE__ */ H(null), bt = null, q = null, Be = null, Ot = null, Lt = null, Ae = /* @__PURE__ */ H(0), Nt = null;
2803
- function Pt(v, w) {
2804
- Be !== null && clearTimeout(Be), L(j, v, !0), Be = setTimeout(() => {
2805
- L(j, ""), Be = null;
2806
- }, w);
2823
+ })), T = /* @__PURE__ */ V(!1), G = /* @__PURE__ */ V(!1), H = /* @__PURE__ */ V(""), Y = /* @__PURE__ */ V(0), Q = /* @__PURE__ */ V(null), wt = null, W = null, ze = null, Nt = null, Pt = null, Ae = /* @__PURE__ */ V(0), It = null;
2824
+ function qt(v, m) {
2825
+ ze !== null && clearTimeout(ze), L(H, v, !0), ze = setTimeout(() => {
2826
+ L(H, ""), ze = null;
2827
+ }, m);
2807
2828
  }
2808
- function Jn(v) {
2829
+ function Qn(v) {
2809
2830
  return v.length > c ? v.substring(0, c) + "..." : v;
2810
2831
  }
2811
- let un = /* @__PURE__ */ de(() => (s(k).isVisible, vl(r()))), Qn = /* @__PURE__ */ de(() => (s(k).isVisible, _l(s(h), s(p)?.toolkitCoordinator))), cn = /* @__PURE__ */ de(() => s(Y) > 0), dn = /* @__PURE__ */ de(() => s(Q) !== null), hn = /* @__PURE__ */ de(() => s(N)?.scopeElement || s(m)?.scopeElement || null);
2812
- function er() {
2813
- const v = s(_)?.ownerDocument;
2814
- return s(hn) || v?.documentElement || document.documentElement;
2832
+ let vn = /* @__PURE__ */ de(() => (s(k).isVisible, vl(r()))), er = /* @__PURE__ */ de(() => (s(k).isVisible, _l(s(h), s(_)?.toolkitCoordinator))), _n = /* @__PURE__ */ de(() => s(Y) > 0), pn = /* @__PURE__ */ de(() => s(Q) !== null), gn = /* @__PURE__ */ de(() => s(P)?.scopeElement || s(y)?.scopeElement || null);
2833
+ function tr() {
2834
+ const v = s(p)?.ownerDocument;
2835
+ return s(gn) || v?.documentElement || document.documentElement;
2815
2836
  }
2816
- let tr = /* @__PURE__ */ de(() => {
2817
- const v = s(p)?.assessmentId, w = s(p)?.sectionId;
2818
- return !s(b) || !v || !w ? null : s(b).getGlobalElementId({
2837
+ let nr = /* @__PURE__ */ de(() => {
2838
+ const v = s(_)?.assessmentId, m = s(_)?.sectionId;
2839
+ return !s(b) || !v || !m ? null : s(b).getGlobalElementId({
2819
2840
  assessmentId: v,
2820
- sectionId: w,
2821
- attemptId: s(p)?.attemptId ?? "",
2822
- itemId: s(m)?.canonicalItemId || s(m)?.itemId || "",
2841
+ sectionId: m,
2842
+ attemptId: s(_)?.attemptId ?? "",
2843
+ itemId: s(y)?.canonicalItemId || s(y)?.itemId || "",
2823
2844
  elementId: ""
2824
2845
  });
2825
2846
  });
2826
- function No(v) {
2847
+ function Po(v) {
2827
2848
  if (!s(d)) return null;
2828
- const w = s(d).getAnnotations();
2829
- for (const O of w) {
2849
+ const m = s(d).getAnnotations();
2850
+ for (const O of m) {
2830
2851
  if (v.startContainer.getRootNode() !== O.range.startContainer.getRootNode()) continue;
2831
- const P = v.compareBoundaryPoints(Range.START_TO_START, O.range), ie = v.compareBoundaryPoints(Range.END_TO_END, O.range), It = v.compareBoundaryPoints(Range.START_TO_END, O.range), bn = v.compareBoundaryPoints(Range.END_TO_START, O.range);
2832
- if (P >= 0 && ie <= 0 || P <= 0 && ie >= 0 || It > 0 && bn < 0) return O.id;
2852
+ const I = v.compareBoundaryPoints(Range.START_TO_START, O.range), oe = v.compareBoundaryPoints(Range.END_TO_END, O.range), Wt = v.compareBoundaryPoints(Range.START_TO_END, O.range), kn = v.compareBoundaryPoints(Range.END_TO_START, O.range);
2853
+ if (I >= 0 && oe <= 0 || I <= 0 && oe >= 0 || Wt > 0 && kn < 0) return O.id;
2833
2854
  }
2834
2855
  return null;
2835
2856
  }
2836
- function Po(v) {
2837
- const w = Nr(v) ? v.host : v;
2838
- return w.nodeType !== Node.ELEMENT_NODE && w.nodeType !== Node.TEXT_NODE ? !1 : !f.some((O) => {
2857
+ function Io(v) {
2858
+ const m = Pr(v) ? v.host : v;
2859
+ return m.nodeType !== Node.ELEMENT_NODE && m.nodeType !== Node.TEXT_NODE ? !1 : !f.some((O) => {
2839
2860
  try {
2840
- return ra(w, O) !== null;
2861
+ return ia(m, O) !== null;
2841
2862
  } catch {
2842
2863
  return !1;
2843
2864
  }
2844
2865
  });
2845
2866
  }
2846
- function Io(v) {
2847
- return s(hn) ? br(s(hn), v.commonAncestorContainer) : !0;
2867
+ function qo(v) {
2868
+ return s(gn) ? wr(s(gn), v.commonAncestorContainer) : !0;
2848
2869
  }
2849
- function nr() {
2850
- if (!(!s(d) || !s(b) || !s(tr)))
2870
+ function rr() {
2871
+ if (!(!s(d) || !s(b) || !s(nr)))
2851
2872
  try {
2852
- const v = s(d).exportAnnotations(er());
2853
- s(b).setState(s(tr), o, v);
2873
+ const v = s(d).exportAnnotations(tr());
2874
+ s(b).setState(s(nr), o, v);
2854
2875
  } catch (v) {
2855
- sr(s(p)?.toolkitCoordinator, "annotationToolbar", "tool-state-save", v);
2876
+ lr(s(_)?.toolkitCoordinator, "annotationToolbar", "tool-state-save", v);
2856
2877
  }
2857
2878
  }
2858
- function qo(v) {
2879
+ function Wo(v) {
2859
2880
  if (!(!s(d) || !s(b)))
2860
2881
  try {
2861
- const w = s(b).getState(v, o);
2862
- s(d).clearAnnotations(), Array.isArray(w) && s(d).importAnnotations(w, er()), L(Y, s(d).getAnnotations().length, !0);
2863
- } catch (w) {
2864
- sr(s(p)?.toolkitCoordinator, "annotationToolbar", "tool-state-load", w);
2882
+ const m = s(b).getState(v, o);
2883
+ s(d).clearAnnotations(), Array.isArray(m) && s(d).importAnnotations(m, tr()), L(Y, s(d).getAnnotations().length, !0);
2884
+ } catch (m) {
2885
+ lr(s(_)?.toolkitCoordinator, "annotationToolbar", "tool-state-load", m);
2865
2886
  }
2866
2887
  }
2867
- function rr() {
2868
- !i || q !== null || (q = (typeof requestAnimationFrame == "function" ? requestAnimationFrame : (v) => setTimeout(v, 16))(() => {
2869
- q = null, Zr();
2888
+ function ir() {
2889
+ !i || W !== null || (W = (typeof requestAnimationFrame == "function" ? requestAnimationFrame : (v) => setTimeout(v, 16))(() => {
2890
+ W = null, Qr();
2870
2891
  }));
2871
2892
  }
2872
- function Zr(v = {}) {
2873
- if (!n() || !i || ul(bt, Date.now())) return;
2874
- const w = window.getSelection(), O = w ? wl(w) : null;
2875
- if (!O) return Je();
2876
- const { range: P } = O, ie = O.text.trim();
2877
- if (!ie || !Io(P) || !Ci(P) || !Po(P.commonAncestorContainer)) return Je();
2878
- if (Lt !== null && (v.force || Lt !== ie) && (Lt = null), Lt === ie) return;
2879
- L(Q, No(P), !0);
2880
- const It = s(k).isVisible;
2881
- s(k).isVisible = !0, s(k).selectedText = ie, s(k).selectedRange = P.cloneRange(), ir(P), Ot !== ie && (Ot = ie, Pt(`Annotation toolbar available for "${Jn(ie)}". Press Shift+F10 for annotation tools.`, 4e3)), It || (L(G, !0), setTimeout(() => {
2893
+ function Qr(v = {}) {
2894
+ if (!n() || !i || ul(wt, Date.now())) return;
2895
+ const m = window.getSelection(), O = m ? wl(m) : null;
2896
+ if (!O) return Qe();
2897
+ const { range: I } = O, oe = O.text.trim();
2898
+ if (!oe || !qo(I) || !Oi(I) || !Io(I.commonAncestorContainer)) return Qe();
2899
+ if (Pt !== null && (v.force || Pt !== oe) && (Pt = null), Pt === oe) return;
2900
+ L(Q, Po(I), !0);
2901
+ const Wt = s(k).isVisible;
2902
+ s(k).isVisible = !0, s(k).selectedText = oe, s(k).selectedRange = I.cloneRange(), or(I), Nt !== oe && (Nt = oe, qt(`Annotation toolbar available for "${Qn(oe)}". Press Shift+F10 for annotation tools.`, 4e3)), Wt || (L(G, !0), setTimeout(() => {
2882
2903
  L(G, !1);
2883
2904
  }, 100));
2884
2905
  }
2885
- function ir(v = s(k).selectedRange) {
2906
+ function or(v = s(k).selectedRange) {
2886
2907
  if (!v) return;
2887
- const w = v.getBoundingClientRect(), O = {
2908
+ const m = v.getBoundingClientRect(), O = {
2888
2909
  width: window.innerWidth || 0,
2889
2910
  height: window.innerHeight || 0
2890
2911
  };
2891
- if (ll(w, O)) {
2912
+ if (ll(m, O)) {
2892
2913
  s(k).isVisible = !1;
2893
2914
  return;
2894
2915
  }
2895
- s(k).isVisible = !0, s(k).toolbarPosition = cl(w, O, Wo());
2916
+ s(k).isVisible = !0, s(k).toolbarPosition = cl(m, O, Do());
2896
2917
  }
2897
- function Wo() {
2918
+ function Do() {
2898
2919
  return s(g) ? {
2899
2920
  width: s(g).offsetWidth,
2900
2921
  height: s(g).offsetHeight
@@ -2903,51 +2924,51 @@ function Cl(e, t) {
2903
2924
  height: 0
2904
2925
  };
2905
2926
  }
2906
- function vn() {
2907
- !s(k).isVisible && !s(k).selectedRange || ir();
2927
+ function bn() {
2928
+ !s(k).isVisible && !s(k).selectedRange || or();
2908
2929
  }
2909
- function Jr() {
2910
- bt = Date.now();
2930
+ function ei() {
2931
+ wt = Date.now();
2911
2932
  }
2912
- function _n() {
2913
- bt = null, rr();
2933
+ function wn() {
2934
+ wt = null, ir();
2914
2935
  }
2915
- function pn() {
2916
- Lt = s(k).selectedText || null, Je();
2936
+ function mn() {
2937
+ Pt = s(k).selectedText || null, Qe();
2917
2938
  }
2918
- function Je() {
2919
- s(T) && s(h) && (s(h).stop(), L(T, !1)), Do(), s(k).isVisible = !1, s(k).selectedText = "", s(k).selectedRange = null, Ot = null, L(Ae, 0);
2939
+ function Qe() {
2940
+ s(T) && s(h) && (s(h).stop(), L(T, !1)), jo(), s(k).isVisible = !1, s(k).selectedText = "", s(k).selectedRange = null, Nt = null, L(Ae, 0);
2920
2941
  }
2921
- function Do() {
2922
- const v = Nt;
2923
- Nt = null, !(!v || !Qr()) && typeof v.focus == "function" && v.isConnected && v.focus({ preventScroll: !0 });
2942
+ function jo() {
2943
+ const v = It;
2944
+ It = null, !(!v || !ti()) && typeof v.focus == "function" && v.isConnected && v.focus({ preventScroll: !0 });
2924
2945
  }
2925
- function Qr() {
2946
+ function ti() {
2926
2947
  if (!s(g) || !i) return !1;
2927
2948
  const v = s(g).getRootNode().activeElement;
2928
2949
  return !!v && s(g).contains(v);
2929
2950
  }
2930
- function or() {
2951
+ function ar() {
2931
2952
  return s(g) ? Array.from(s(g).querySelectorAll("button:not([disabled])")) : [];
2932
2953
  }
2933
- function jo() {
2934
- const v = or();
2954
+ function Ho() {
2955
+ const v = ar();
2935
2956
  if (v.length) {
2936
- if (!Qr() && i) {
2937
- const w = s(g)?.getRootNode()?.activeElement;
2938
- Nt = w instanceof HTMLElement ? w : null;
2957
+ if (!ti() && i) {
2958
+ const m = s(g)?.getRootNode()?.activeElement;
2959
+ It = m instanceof HTMLElement ? m : null;
2939
2960
  }
2940
- L(Ae, Lr(s(Ae), v.length), !0), v[s(Ae)]?.focus();
2961
+ L(Ae, Nr(s(Ae), v.length), !0), v[s(Ae)]?.focus();
2941
2962
  }
2942
2963
  }
2943
- function ei(v) {
2964
+ function ni(v) {
2944
2965
  if (!s(k).selectedRange || !s(d)) return;
2945
- const w = s(k).selectedText;
2946
- s(d).addAnnotation(s(k).selectedRange, v), L(Y, s(d).getAnnotations().length, !0), nr();
2947
- const O = v === mt.UNDERLINE ? "underlined" : `highlighted in ${v}`;
2948
- Pt(`"${Jn(w)}" ${O}`, 3e3), pn();
2966
+ const m = s(k).selectedText;
2967
+ s(d).addAnnotation(s(k).selectedRange, v), L(Y, s(d).getAnnotations().length, !0), rr();
2968
+ const O = v === yt.UNDERLINE ? "underlined" : `highlighted in ${v}`;
2969
+ qt(`"${Qn(m)}" ${O}`, 3e3), mn();
2949
2970
  }
2950
- function Ho() {
2971
+ function Vo() {
2951
2972
  if (!s(Q) || !s(d)) {
2952
2973
  console.warn("[AnnotationToolbar] No overlapping annotation to remove");
2953
2974
  return;
@@ -2957,208 +2978,208 @@ function Cl(e, t) {
2957
2978
  console.warn("[AnnotationToolbar] Annotation not found:", s(Q));
2958
2979
  return;
2959
2980
  }
2960
- const w = v.range.toString();
2961
- s(d).removeAnnotation(s(Q)), L(Y, s(d).getAnnotations().length, !0), nr(), Pt(`Removed annotation from "${Jn(w)}"`, 3e3), pn();
2981
+ const m = v.range.toString();
2982
+ s(d).removeAnnotation(s(Q)), L(Y, s(d).getAnnotations().length, !0), rr(), qt(`Removed annotation from "${Qn(m)}"`, 3e3), mn();
2962
2983
  }
2963
- function Vo() {
2984
+ function Fo() {
2964
2985
  const v = s(Y);
2965
- s(d)?.clearAnnotations(), L(Y, 0), nr(), Pt(`${v} annotation${v === 1 ? "" : "s"} cleared`, 3e3), pn();
2966
- }
2967
- function Fo(v) {
2968
- return v.iconSvg ? da(v.iconSvg) : "";
2986
+ s(d)?.clearAnnotations(), L(Y, 0), rr(), qt(`${v} annotation${v === 1 ? "" : "s"} cleared`, 3e3), mn();
2969
2987
  }
2970
2988
  function Bo(v) {
2971
- const w = s(k).selectedText, O = s(k).selectedRange;
2989
+ return v.iconSvg ? ha(v.iconSvg) : "";
2990
+ }
2991
+ function zo(v) {
2992
+ const m = s(k).selectedText, O = s(k).selectedRange;
2972
2993
  try {
2973
2994
  v.run({
2974
- text: w,
2995
+ text: m,
2975
2996
  range: O
2976
2997
  });
2977
- } catch (P) {
2978
- console.error(`[AnnotationToolbar] Selection action "${v.id}" threw:`, P);
2998
+ } catch (I) {
2999
+ console.error(`[AnnotationToolbar] Selection action "${v.id}" threw:`, I);
2979
3000
  }
2980
- pn();
3001
+ mn();
2981
3002
  }
2982
- async function zo() {
2983
- if (!(s(T) || !s(k).selectedRange || !s(h) || !s(Qn))) {
3003
+ async function Uo() {
3004
+ if (!(s(T) || !s(k).selectedRange || !s(h) || !s(er))) {
2984
3005
  L(T, !0);
2985
3006
  try {
2986
3007
  const v = s(k).selectedRange;
2987
3008
  await s(h).speak(v, {
2988
- contentRoot: Ci(v) ?? er(),
2989
- language: s(p)?.contentLanguage,
2990
- catalogContext: na(v.startContainer, s(p))
3009
+ contentRoot: Oi(v) ?? tr(),
3010
+ language: s(_)?.contentLanguage,
3011
+ catalogContext: ra(v.startContainer, s(_))
2991
3012
  });
2992
3013
  } catch (v) {
2993
- la(v) ? Pt(s(u).t("tools.textToSpeech.initFailed"), 5e3) : sr(s(p)?.toolkitCoordinator, "textToSpeech", "tool-playback", v);
3014
+ fa(v) ? qt(s(u).t("tools.textToSpeech.initFailed"), 5e3) : lr(s(_)?.toolkitCoordinator, "textToSpeech", "tool-playback", v);
2994
3015
  } finally {
2995
3016
  L(T, !1);
2996
3017
  }
2997
3018
  }
2998
3019
  }
2999
- function ti(v) {
3020
+ function ri(v) {
3000
3021
  if (v.key === "Escape" && s(k).isVisible) {
3001
- v.preventDefault(), Je();
3022
+ v.preventDefault(), Qe();
3002
3023
  return;
3003
3024
  }
3004
- al(v) && (s(k).isVisible || Zr({ force: !0 }), s(k).isVisible && (v.preventDefault(), ms().then(() => jo())));
3025
+ al(v) && (s(k).isVisible || Qr({ force: !0 }), s(k).isVisible && (v.preventDefault(), ms().then(() => Ho())));
3005
3026
  }
3006
- function Uo(v) {
3027
+ function Go(v) {
3007
3028
  if (v.key === "Escape") {
3008
- v.preventDefault(), Je();
3029
+ v.preventDefault(), Qe();
3009
3030
  return;
3010
3031
  }
3011
- const w = or(), O = sl({
3032
+ const m = ar(), O = sl({
3012
3033
  key: v.key,
3013
3034
  activeIndex: s(Ae),
3014
- count: w.length,
3035
+ count: m.length,
3015
3036
  direction: i && s(g) && getComputedStyle(s(g)).direction === "rtl" ? "rtl" : "ltr"
3016
3037
  });
3017
- O !== null && (v.preventDefault(), L(Ae, O, !0), w[O]?.focus());
3038
+ O !== null && (v.preventDefault(), L(Ae, O, !0), m[O]?.focus());
3018
3039
  }
3019
- function Go(v) {
3020
- const w = v.relatedTarget;
3021
- w instanceof Node && s(g)?.contains(w) || (Nt = null, Je());
3040
+ function Yo(v) {
3041
+ const m = v.relatedTarget;
3042
+ m instanceof Node && s(g)?.contains(m) || (It = null, Qe());
3022
3043
  }
3023
- function gn(v) {
3044
+ function yn(v) {
3024
3045
  if (!s(k).isVisible || s(G) || !s(g)) return;
3025
- const w = (typeof v.composedPath == "function" ? v.composedPath() : []).filter((O) => !!O);
3026
- w.includes(s(g)) || w.length === 0 && s(g).contains(v.target) || (Nt = null, Je());
3046
+ const m = (typeof v.composedPath == "function" ? v.composedPath() : []).filter((O) => !!O);
3047
+ m.includes(s(g)) || m.length === 0 && s(g).contains(v.target) || (It = null, Qe());
3027
3048
  }
3028
- jt(() => {
3049
+ Vt(() => {
3029
3050
  if (!i) return;
3030
- const v = s(tr);
3051
+ const v = s(nr);
3031
3052
  if (!v || !s(d)) return;
3032
- const w = setTimeout(() => Tt(() => qo(v)), a);
3033
- return () => clearTimeout(w);
3034
- }), jt(() => {
3053
+ const m = setTimeout(() => xt(() => Wo(v)), a);
3054
+ return () => clearTimeout(m);
3055
+ }), Vt(() => {
3035
3056
  if (!i) return;
3036
- const v = s(hn) || document;
3037
- return v.addEventListener("click", gn), v.addEventListener("touchstart", gn), document.addEventListener("selectionchange", rr), v.addEventListener("pointerdown", Jr), document.addEventListener("pointerup", _n), document.addEventListener("pointercancel", _n), document.addEventListener("keydown", ti), window.addEventListener("scroll", vn, !0), window.addEventListener("resize", vn), () => {
3038
- Be !== null && clearTimeout(Be), q !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(q), q = null), v.removeEventListener("click", gn), v.removeEventListener("touchstart", gn), document.removeEventListener("selectionchange", rr), v.removeEventListener("pointerdown", Jr), document.removeEventListener("pointerup", _n), document.removeEventListener("pointercancel", _n), document.removeEventListener("keydown", ti), window.removeEventListener("scroll", vn, !0), window.removeEventListener("resize", vn);
3057
+ const v = s(gn) || document;
3058
+ return v.addEventListener("click", yn), v.addEventListener("touchstart", yn), document.addEventListener("selectionchange", ir), v.addEventListener("pointerdown", ei), document.addEventListener("pointerup", wn), document.addEventListener("pointercancel", wn), document.addEventListener("keydown", ri), window.addEventListener("scroll", bn, !0), window.addEventListener("resize", bn), () => {
3059
+ ze !== null && clearTimeout(ze), W !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(W), W = null), v.removeEventListener("click", yn), v.removeEventListener("touchstart", yn), document.removeEventListener("selectionchange", ir), v.removeEventListener("pointerdown", ei), document.removeEventListener("pointerup", wn), document.removeEventListener("pointercancel", wn), document.removeEventListener("keydown", ri), window.removeEventListener("scroll", bn, !0), window.removeEventListener("resize", bn);
3039
3060
  };
3040
- }), jt(() => {
3041
- s(k).isVisible, s(g), s(un), s(dn), s(cn), s(Qn), Tt(() => {
3042
- !s(k).isVisible || !s(g) || ir();
3061
+ }), Vt(() => {
3062
+ s(k).isVisible, s(g), s(vn), s(pn), s(_n), s(er), xt(() => {
3063
+ !s(k).isVisible || !s(g) || or();
3043
3064
  });
3044
- }), jt(() => {
3045
- s(k).isVisible, s(Ae), s(dn), s(cn), s(T), s(un), Tt(() => {
3046
- const v = or();
3065
+ }), Vt(() => {
3066
+ s(k).isVisible, s(Ae), s(pn), s(_n), s(T), s(vn), xt(() => {
3067
+ const v = ar();
3047
3068
  if (v.length === 0) return;
3048
- const w = Lr(s(Ae), v.length);
3049
- w !== s(Ae) && L(Ae, w, !0), v.forEach((O, P) => {
3050
- O.tabIndex = P === w ? 0 : -1;
3069
+ const m = Nr(s(Ae), v.length);
3070
+ m !== s(Ae) && L(Ae, m, !0), v.forEach((O, I) => {
3071
+ O.tabIndex = I === m ? 0 : -1;
3051
3072
  });
3052
3073
  });
3053
- }), jt(() => {
3054
- if (!s(_)) return;
3055
- const v = aa(s(_), (P) => {
3056
- L(m, P, !0);
3057
- }), w = ia(s(_), (P) => {
3058
- L(N, P, !0);
3059
- }), O = oa(s(_), (P) => {
3060
- L(p, P, !0);
3074
+ }), Vt(() => {
3075
+ if (!s(p)) return;
3076
+ const v = sa(s(p), (I) => {
3077
+ L(y, I, !0);
3078
+ }), m = oa(s(p), (I) => {
3079
+ L(P, I, !0);
3080
+ }), O = aa(s(p), (I) => {
3081
+ L(_, I, !0);
3061
3082
  });
3062
3083
  return () => {
3063
- O(), w(), v();
3084
+ O(), m(), v();
3064
3085
  };
3065
3086
  });
3066
- var Yo = {
3087
+ var Ko = {
3067
3088
  get enabled() {
3068
3089
  return n();
3069
3090
  },
3070
3091
  set enabled(v = !0) {
3071
- n(v), Vn();
3092
+ n(v), sn();
3072
3093
  },
3073
3094
  get selectionActions() {
3074
3095
  return r();
3075
3096
  },
3076
3097
  set selectionActions(v = null) {
3077
- r(v), Vn();
3078
- }
3079
- }, ni = Ml(), ri = mn(ni);
3080
- xi(ri, (v) => L(_, v), () => s(_));
3081
- var ii = xe(ri, 2), Ko = (v) => {
3082
- var w = xl(), O = xn(w);
3083
- ki(O, 17, () => s(y), js, (K, Z) => {
3084
- var F = ml(), be = xn(F), ee = fr(be, !0);
3085
- Ft(F), We(() => {
3086
- Ei(F, `background-color: ${s(Z).hex ?? ""};`), U(F, "aria-label", s(Z).label), U(F, "title", s(Z).label), kn(ee, s(Z).label);
3087
- }), Ue("click", F, () => ei(s(Z).name)), he(K, F);
3098
+ r(v), sn();
3099
+ }
3100
+ }, ii = Ml(), oi = Sn(ii);
3101
+ Mi(oi, (v) => L(p, v), () => s(p));
3102
+ var ai = xe(oi, 2), Xo = (v) => {
3103
+ var m = xl(), O = On(m);
3104
+ $i(O, 17, () => s(w), js, (K, Z) => {
3105
+ var B = ml(), be = On(B), ee = ur(be, !0);
3106
+ zt(B), We(() => {
3107
+ Ti(B, `background-color: ${s(Z).hex ?? ""};`), U(B, "aria-label", s(Z).label), U(B, "title", s(Z).label), Tn(ee, s(Z).label);
3108
+ }), Ge("click", B, () => ni(s(Z).name)), he(K, B);
3088
3109
  });
3089
- var P = xe(O, 2), ie = xe(P, 2), It = (K) => {
3090
- var Z = yl(), F = xe(mn(Z), 2);
3110
+ var I = xe(O, 2), oe = xe(I, 2), Wt = (K) => {
3111
+ var Z = yl(), B = xe(Sn(Z), 2);
3091
3112
  We((be, ee) => {
3092
- U(F, "aria-disabled", s(T)), U(F, "aria-label", be), U(F, "title", ee);
3093
- }, [() => s(u).t("tools.annotationToolbar.readAloudA11y"), () => s(u).t("tools.annotationToolbar.readAloud")]), Ue("click", F, zo), he(K, Z);
3113
+ U(B, "aria-disabled", s(T)), U(B, "aria-label", be), U(B, "title", ee);
3114
+ }, [() => s(u).t("tools.annotationToolbar.readAloudA11y"), () => s(u).t("tools.annotationToolbar.readAloud")]), Ge("click", B, Uo), he(K, Z);
3094
3115
  };
3095
- et(ie, (K) => {
3096
- s(Qn) && K(It);
3116
+ tt(oe, (K) => {
3117
+ s(er) && K(Wt);
3097
3118
  });
3098
- var bn = xe(ie, 2), Jo = (K) => {
3099
- var Z = Sl(), F = xe(mn(Z), 2);
3100
- ki(F, 17, () => s(un), (be) => be.id, (be, ee) => {
3101
- const qt = /* @__PURE__ */ de(() => Fo(s(ee)));
3119
+ var kn = xe(oe, 2), Qo = (K) => {
3120
+ var Z = Sl(), B = xe(Sn(Z), 2);
3121
+ $i(B, 17, () => s(vn), (be) => be.id, (be, ee) => {
3122
+ const Dt = /* @__PURE__ */ de(() => Bo(s(ee)));
3102
3123
  var J = $l();
3103
- let oe;
3104
- var Wt = xn(J), Dt = (ze) => {
3105
- var wt = kl();
3106
- Bs(wt, () => s(qt), !0), Ft(wt), he(ze, wt);
3107
- }, ar = (ze) => {
3108
- var wt = Es();
3109
- We(() => kn(wt, s(ee).label)), he(ze, wt);
3124
+ let ae;
3125
+ var jt = On(J), Ht = (Ue) => {
3126
+ var mt = kl();
3127
+ Bs(mt, () => s(Dt), !0), zt(mt), he(Ue, mt);
3128
+ }, sr = (Ue) => {
3129
+ var mt = Es();
3130
+ We(() => Tn(mt, s(ee).label)), he(Ue, mt);
3110
3131
  };
3111
- et(Wt, (ze) => {
3112
- s(qt) ? ze(Dt) : ze(ar, -1);
3113
- }), Ft(J), We(() => {
3114
- oe = Ys(J, 1, "pie-tool-annotation-toolbar__button svelte-1qnnvrt", null, oe, { "pie-tool-annotation-toolbar__button--icon": !!s(qt) }), U(J, "data-pie-selection-action", s(ee).id), U(J, "aria-label", s(ee).label), U(J, "title", s(ee).tooltip || s(ee).label);
3115
- }), Ue("click", J, () => Bo(s(ee))), he(be, J);
3132
+ tt(jt, (Ue) => {
3133
+ s(Dt) ? Ue(Ht) : Ue(sr, -1);
3134
+ }), zt(J), We(() => {
3135
+ ae = Ys(J, 1, "pie-tool-annotation-toolbar__button svelte-1qnnvrt", null, ae, { "pie-tool-annotation-toolbar__button--icon": !!s(Dt) }), U(J, "data-pie-selection-action", s(ee).id), U(J, "aria-label", s(ee).label), U(J, "title", s(ee).tooltip || s(ee).label);
3136
+ }), Ge("click", J, () => zo(s(ee))), he(be, J);
3116
3137
  }), he(K, Z);
3117
3138
  };
3118
- et(bn, (K) => {
3119
- s(un).length > 0 && K(Jo);
3139
+ tt(kn, (K) => {
3140
+ s(vn).length > 0 && K(Qo);
3120
3141
  });
3121
- var Qo = xe(bn, 2), ea = (K) => {
3122
- var Z = Al(), F = xe(mn(Z), 2), be = (J) => {
3123
- var oe = El();
3124
- We((Wt, Dt) => {
3125
- U(oe, "aria-label", Wt), U(oe, "title", Dt);
3126
- }, [() => s(u).t("tools.annotationToolbar.removeA11y"), () => s(u).t("tools.annotationToolbar.remove")]), Ue("click", oe, Ho), he(J, oe);
3142
+ var ea = xe(kn, 2), ta = (K) => {
3143
+ var Z = Al(), B = xe(Sn(Z), 2), be = (J) => {
3144
+ var ae = El();
3145
+ We((jt, Ht) => {
3146
+ U(ae, "aria-label", jt), U(ae, "title", Ht);
3147
+ }, [() => s(u).t("tools.annotationToolbar.removeA11y"), () => s(u).t("tools.annotationToolbar.remove")]), Ge("click", ae, Vo), he(J, ae);
3127
3148
  };
3128
- et(F, (J) => {
3129
- s(dn) && J(be);
3149
+ tt(B, (J) => {
3150
+ s(pn) && J(be);
3130
3151
  });
3131
- var ee = xe(F, 2), qt = (J) => {
3132
- var oe = Tl(), Wt = fr(oe, !0);
3133
- We((Dt, ar, ze) => {
3134
- U(oe, "aria-label", Dt), U(oe, "title", ar), kn(Wt, ze);
3152
+ var ee = xe(B, 2), Dt = (J) => {
3153
+ var ae = Tl(), jt = ur(ae, !0);
3154
+ We((Ht, sr, Ue) => {
3155
+ U(ae, "aria-label", Ht), U(ae, "title", sr), Tn(jt, Ue);
3135
3156
  }, [
3136
3157
  () => s(u).t("tools.annotationToolbar.clearAllA11y"),
3137
3158
  () => s(u).t("tools.annotationToolbar.clearAll"),
3138
3159
  () => s(u).t("tools.annotationToolbar.clearAll")
3139
- ]), Ue("click", oe, Vo), he(J, oe);
3160
+ ]), Ge("click", ae, Fo), he(J, ae);
3140
3161
  };
3141
- et(ee, (J) => {
3142
- s(cn) && J(qt);
3162
+ tt(ee, (J) => {
3163
+ s(_n) && J(Dt);
3143
3164
  }), he(K, Z);
3144
3165
  };
3145
- et(Qo, (K) => {
3146
- (s(dn) || s(cn)) && K(ea);
3147
- }), Ft(w), xi(w, (K) => L(g, K), () => s(g)), We((K, Z, F, be, ee) => {
3148
- U(w, "data-pie-placement", s(k).toolbarPosition.below ? "below" : "above"), Ei(w, `left:${s(k).toolbarPosition.x}px; top:${s(k).toolbarPosition.y}px;`), U(w, "lang", K), U(w, "dir", Z), U(w, "aria-label", F), U(P, "aria-label", be), U(P, "title", ee), w.dir = w.dir;
3166
+ tt(ea, (K) => {
3167
+ (s(pn) || s(_n)) && K(ta);
3168
+ }), zt(m), Mi(m, (K) => L(g, K), () => s(g)), We((K, Z, B, be, ee) => {
3169
+ U(m, "data-pie-placement", s(k).toolbarPosition.below ? "below" : "above"), Ti(m, `left:${s(k).toolbarPosition.x}px; top:${s(k).toolbarPosition.y}px;`), U(m, "lang", K), U(m, "dir", Z), U(m, "aria-label", B), U(I, "aria-label", be), U(I, "title", ee), m.dir = m.dir;
3149
3170
  }, [
3150
3171
  () => s(u).getLocale(),
3151
3172
  () => s(u).getDirection?.() ?? "ltr",
3152
3173
  () => s(u).t("tools.annotationToolbar.toolbarA11y"),
3153
3174
  () => s(u).t("tools.annotationToolbar.underlineA11y"),
3154
3175
  () => s(u).t("tools.annotationToolbar.underline")
3155
- ]), Ue("keydown", w, Uo), Ue("focusout", w, Go), Ue("click", P, () => ei(mt.UNDERLINE)), he(v, w);
3176
+ ]), Ge("keydown", m, Go), Ge("focusout", m, Yo), Ge("click", I, () => ni(yt.UNDERLINE)), he(v, m);
3156
3177
  };
3157
- et(ii, (v) => {
3158
- s(k).isVisible && v(Ko);
3178
+ tt(ai, (v) => {
3179
+ s(k).isVisible && v(Xo);
3159
3180
  });
3160
- var Xo = xe(ii, 2), Zo = fr(Xo, !0);
3161
- return We(() => kn(Zo, s(j))), he(e, ni), Hi(Yo);
3181
+ var Zo = xe(ai, 2), Jo = ur(Zo, !0);
3182
+ return We(() => Tn(Jo, s(H))), he(e, ii), Vi(Ko);
3162
3183
  }
3163
3184
  ys([
3164
3185
  "keydown",
@@ -3171,7 +3192,7 @@ Ol("pie-tool-annotation-toolbar", ol(Cl, {
3171
3192
  type: "Boolean"
3172
3193
  },
3173
3194
  selectionActions: { type: "Object" }
3174
- }, [], [], { mode: "open" }, ta));
3195
+ }, [], [], { mode: "open" }, na));
3175
3196
  function Ol(e, t) {
3176
3197
  customElements.get(e) || customElements.define(e, t);
3177
3198
  }