@pie-players/pie-tool-annotation-toolbar 0.3.74 → 1.0.0-beta.0

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