akpm-knowledge-base-chat 1.0.4 → 1.0.6

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.
Files changed (2) hide show
  1. package/CDN/akb-chat.js +732 -730
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,15 +1,15 @@
1
- /* Version: 1.0.4 */
1
+ /* Version: 1.0.6 */
2
2
  var gi = Object.defineProperty;
3
3
  var ur = (t) => {
4
4
  throw TypeError(t);
5
5
  };
6
6
  var vi = (t, e, n) => e in t ? gi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
7
7
  var $ = (t, e, n) => vi(t, typeof e != "symbol" ? e + "" : e, n), fr = (t, e, n) => e.has(t) || ur("Cannot " + n);
8
- var V = (t, e, n) => (fr(t, e, "read from private field"), n ? n.call(t) : e.get(t)), un = (t, e, n) => e.has(t) ? ur("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), fn = (t, e, n, r) => (fr(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
+ var H = (t, e, n) => (fr(t, e, "read from private field"), n ? n.call(t) : e.get(t)), un = (t, e, n) => e.has(t) ? ur("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), fn = (t, e, n, r) => (fr(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
9
9
  const _i = "5";
10
10
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_i);
11
- const Nn = 1, On = 2, Br = 4, bi = 8, mi = 16, ki = 1, wi = 2, Vr = 4, xi = 8, yi = 16, $i = 4, Si = 1, Ti = 2, Hr = "[", Mn = "[!", Dn = "]", Fe = {}, H = Symbol();
12
- function Ei(t) {
11
+ const On = 1, Nn = 2, Br = 4, bi = 8, mi = 16, ki = 1, wi = 2, Hr = 4, xi = 8, yi = 16, $i = 4, Si = 1, Ei = 2, Ur = "[", Mn = "[!", Dn = "]", qe = {}, U = Symbol();
12
+ function Ti(t) {
13
13
  return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
14
14
  }
15
15
  const Ii = [
@@ -37,10 +37,10 @@ const Ii = [
37
37
  "touchmove",
38
38
  "touchstart"
39
39
  ];
40
- function Ri(t) {
40
+ function Ci(t) {
41
41
  return Ii.includes(t);
42
42
  }
43
- const Ci = {
43
+ const Ri = {
44
44
  // no `class: 'className'` because we handle that separately
45
45
  formnovalidate: "formNoValidate",
46
46
  ismap: "isMap",
@@ -52,14 +52,14 @@ const Ci = {
52
52
  srcobject: "srcObject"
53
53
  };
54
54
  function Ai(t) {
55
- return t = t.toLowerCase(), Ci[t] ?? t;
55
+ return t = t.toLowerCase(), Ri[t] ?? t;
56
56
  }
57
57
  const Pi = ["touchstart", "touchmove"];
58
- function zi(t) {
58
+ function Li(t) {
59
59
  return Pi.includes(t);
60
60
  }
61
61
  const _n = !1;
62
- var Gt = Array.isArray, Li = Array.prototype.indexOf, jn = Array.from, Ct = Object.keys, At = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, Ur = Object.getOwnPropertyDescriptors, Ni = Object.prototype, Oi = Array.prototype, qn = Object.getPrototypeOf;
62
+ var Zt = Array.isArray, zi = Array.prototype.indexOf, Fn = Array.from, Rt = Object.keys, At = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, Gr = Object.getOwnPropertyDescriptors, Oi = Object.prototype, Ni = Array.prototype, jn = Object.getPrototypeOf;
63
63
  function Mi(t) {
64
64
  return typeof t == "function";
65
65
  }
@@ -72,135 +72,135 @@ function Pt(t) {
72
72
  for (var e = 0; e < t.length; e++)
73
73
  t[e]();
74
74
  }
75
- const J = 2, Gr = 4, Wt = 8, Zt = 16, ge = 32, Le = 64, zt = 128, Ne = 256, Lt = 512, F = 1024, we = 2048, Oe = 4096, ae = 8192, Ze = 16384, Wr = 32768, Qt = 65536, ji = 1 << 17, qi = 1 << 19, Zr = 1 << 20, Ae = Symbol("$state"), Qr = Symbol("legacy props"), Fi = Symbol("");
76
- function Jr(t) {
75
+ const Y = 2, Zr = 4, Vt = 8, Qt = 16, ge = 32, ze = 64, Lt = 128, Oe = 256, zt = 512, q = 1024, we = 2048, Ne = 4096, ae = 8192, Qe = 16384, Vr = 32768, Wt = 65536, Fi = 1 << 17, ji = 1 << 19, Qr = 1 << 20, Ae = Symbol("$state"), Wr = Symbol("legacy props"), qi = Symbol("");
76
+ function Yr(t) {
77
77
  return t === this.v;
78
78
  }
79
79
  function Bi(t, e) {
80
80
  return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
81
81
  }
82
- function Fn(t) {
82
+ function qn(t) {
83
83
  return !Bi(t, this.v);
84
84
  }
85
- function Vi(t) {
85
+ function Hi(t) {
86
86
  throw new Error("https://svelte.dev/e/effect_in_teardown");
87
87
  }
88
- function Hi() {
88
+ function Ui() {
89
89
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
90
90
  }
91
- function Ui(t) {
91
+ function Gi(t) {
92
92
  throw new Error("https://svelte.dev/e/effect_orphan");
93
93
  }
94
- function Gi() {
94
+ function Zi() {
95
95
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
96
96
  }
97
- function Wi() {
97
+ function Vi() {
98
98
  throw new Error("https://svelte.dev/e/hydration_failed");
99
99
  }
100
- function Zi(t) {
100
+ function Qi(t) {
101
101
  throw new Error("https://svelte.dev/e/props_invalid_value");
102
102
  }
103
- function Qi() {
103
+ function Wi() {
104
104
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
105
105
  }
106
- function Ji() {
106
+ function Yi() {
107
107
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
108
108
  }
109
- function Yi() {
109
+ function Ji() {
110
110
  throw new Error("https://svelte.dev/e/state_unsafe_local_read");
111
111
  }
112
112
  function Ki() {
113
113
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
114
114
  }
115
- let Qe = !1, Xi = !1;
115
+ let We = !1, Xi = !1;
116
116
  function eo() {
117
- Qe = !0;
117
+ We = !0;
118
118
  }
119
- function U(t, e) {
119
+ function G(t, e) {
120
120
  var n = {
121
121
  f: 0,
122
122
  // TODO ideally we could skip this altogether, but it causes type errors
123
123
  v: t,
124
124
  reactions: null,
125
- equals: Jr,
125
+ equals: Yr,
126
126
  rv: 0,
127
127
  wv: 0
128
128
  };
129
129
  return n;
130
130
  }
131
131
  function ye(t) {
132
- return /* @__PURE__ */ Yr(U(t));
132
+ return /* @__PURE__ */ Jr(G(t));
133
133
  }
134
134
  // @__NO_SIDE_EFFECTS__
135
- function Jt(t, e = !1) {
135
+ function Yt(t, e = !1) {
136
136
  var r;
137
- const n = U(t);
138
- return e || (n.equals = Fn), Qe && P !== null && P.l !== null && ((r = P.l).s ?? (r.s = [])).push(n), n;
137
+ const n = G(t);
138
+ return e || (n.equals = qn), We && P !== null && P.l !== null && ((r = P.l).s ?? (r.s = [])).push(n), n;
139
139
  }
140
140
  function wt(t, e = !1) {
141
- return /* @__PURE__ */ Yr(/* @__PURE__ */ Jt(t, e));
141
+ return /* @__PURE__ */ Jr(/* @__PURE__ */ Yt(t, e));
142
142
  }
143
143
  // @__NO_SIDE_EFFECTS__
144
- function Yr(t) {
145
- return L !== null && L.f & J && (ce === null ? po([t]) : ce.push(t)), t;
144
+ function Jr(t) {
145
+ return z !== null && z.f & Y && (ce === null ? po([t]) : ce.push(t)), t;
146
146
  }
147
147
  function hn(t, e) {
148
- return T(
148
+ return E(
149
149
  t,
150
150
  pe(() => m(t))
151
151
  ), e;
152
152
  }
153
- function T(t, e) {
154
- return L !== null && !Se && _t() && L.f & (J | Zt) && // If the source was created locally within the current derived, then
153
+ function E(t, e) {
154
+ return z !== null && !Se && _t() && z.f & (Y | Qt) && // If the source was created locally within the current derived, then
155
155
  // we allow the mutation.
156
156
  (ce === null || !ce.includes(t)) && Ki(), bn(t, e);
157
157
  }
158
158
  function bn(t, e) {
159
- return t.equals(e) || (t.v, t.v = e, t.wv = _s(), Kr(t, we), _t() && E !== null && E.f & F && !(E.f & (ge | Le)) && (ve === null ? go([t]) : ve.push(t))), e;
159
+ return t.equals(e) || (t.v, t.v = e, t.wv = _s(), Kr(t, we), _t() && T !== null && T.f & q && !(T.f & (ge | ze)) && (ve === null ? go([t]) : ve.push(t))), e;
160
160
  }
161
161
  function Kr(t, e) {
162
162
  var n = t.reactions;
163
163
  if (n !== null)
164
164
  for (var r = _t(), s = n.length, i = 0; i < s; i++) {
165
165
  var o = n[i], l = o.f;
166
- l & we || !r && o === E || (oe(o, e), l & (F | Ne) && (l & J ? Kr(
166
+ l & we || !r && o === T || (oe(o, e), l & (q | Oe) && (l & Y ? Kr(
167
167
  /** @type {Derived} */
168
168
  o,
169
- Oe
169
+ Ne
170
170
  ) : nn(
171
171
  /** @type {Effect} */
172
172
  o
173
173
  )));
174
174
  }
175
175
  }
176
- function Yt(t) {
176
+ function Jt(t) {
177
177
  console.warn("https://svelte.dev/e/hydration_mismatch");
178
178
  }
179
179
  let I = !1;
180
180
  function me(t) {
181
181
  I = t;
182
182
  }
183
- let C;
183
+ let R;
184
184
  function te(t) {
185
185
  if (t === null)
186
- throw Yt(), Fe;
187
- return C = t;
186
+ throw Jt(), qe;
187
+ return R = t;
188
188
  }
189
- function He() {
189
+ function Ue() {
190
190
  return te(
191
191
  /** @type {TemplateNode} */
192
- /* @__PURE__ */ xe(C)
192
+ /* @__PURE__ */ xe(R)
193
193
  );
194
194
  }
195
195
  function M(t) {
196
196
  if (I) {
197
- if (/* @__PURE__ */ xe(C) !== null)
198
- throw Yt(), Fe;
199
- C = t;
197
+ if (/* @__PURE__ */ xe(R) !== null)
198
+ throw Jt(), qe;
199
+ R = t;
200
200
  }
201
201
  }
202
202
  function mn() {
203
- for (var t = 0, e = C; ; ) {
203
+ for (var t = 0, e = R; ; ) {
204
204
  if (e.nodeType === 8) {
205
205
  var n = (
206
206
  /** @type {Comment} */
@@ -209,7 +209,7 @@ function mn() {
209
209
  if (n === Dn) {
210
210
  if (t === 0) return e;
211
211
  t -= 1;
212
- } else (n === Hr || n === Mn) && (t += 1);
212
+ } else (n === Ur || n === Mn) && (t += 1);
213
213
  }
214
214
  var r = (
215
215
  /** @type {TemplateNode} */
@@ -218,14 +218,14 @@ function mn() {
218
218
  e.remove(), e = r;
219
219
  }
220
220
  }
221
- function O(t, e = null, n) {
221
+ function N(t, e = null, n) {
222
222
  if (typeof t != "object" || t === null || Ae in t)
223
223
  return t;
224
- const r = qn(t);
225
- if (r !== Ni && r !== Oi)
224
+ const r = jn(t);
225
+ if (r !== Oi && r !== Ni)
226
226
  return t;
227
- var s = /* @__PURE__ */ new Map(), i = Gt(t), o = U(0);
228
- i && s.set("length", U(
227
+ var s = /* @__PURE__ */ new Map(), i = Zt(t), o = G(0);
228
+ i && s.set("length", G(
229
229
  /** @type {any[]} */
230
230
  t.length
231
231
  ));
@@ -235,23 +235,23 @@ function O(t, e = null, n) {
235
235
  t,
236
236
  {
237
237
  defineProperty(u, a, c) {
238
- (!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && Qi();
238
+ (!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && Wi();
239
239
  var f = s.get(a);
240
- return f === void 0 ? (f = U(c.value), s.set(a, f)) : T(f, O(c.value, l)), !0;
240
+ return f === void 0 ? (f = G(c.value), s.set(a, f)) : E(f, N(c.value, l)), !0;
241
241
  },
242
242
  deleteProperty(u, a) {
243
243
  var c = s.get(a);
244
244
  if (c === void 0)
245
- a in u && s.set(a, U(H));
245
+ a in u && s.set(a, G(U));
246
246
  else {
247
247
  if (i && typeof a == "string") {
248
248
  var f = (
249
249
  /** @type {Source<number>} */
250
250
  s.get("length")
251
251
  ), h = Number(a);
252
- Number.isInteger(h) && h < f.v && T(f, h);
252
+ Number.isInteger(h) && h < f.v && E(f, h);
253
253
  }
254
- T(c, H), hr(o);
254
+ E(c, U), hr(o);
255
255
  }
256
256
  return !0;
257
257
  },
@@ -260,9 +260,9 @@ function O(t, e = null, n) {
260
260
  if (a === Ae)
261
261
  return t;
262
262
  var f = s.get(a), h = a in u;
263
- if (f === void 0 && (!h || (p = Ce(u, a)) != null && p.writable) && (f = U(O(h ? u[a] : H, l)), s.set(a, f)), f !== void 0) {
263
+ if (f === void 0 && (!h || (p = Re(u, a)) != null && p.writable) && (f = G(N(h ? u[a] : U, l)), s.set(a, f)), f !== void 0) {
264
264
  var d = m(f);
265
- return d === H ? void 0 : d;
265
+ return d === U ? void 0 : d;
266
266
  }
267
267
  return Reflect.get(u, a, c);
268
268
  },
@@ -273,7 +273,7 @@ function O(t, e = null, n) {
273
273
  f && (c.value = m(f));
274
274
  } else if (c === void 0) {
275
275
  var h = s.get(a), d = h == null ? void 0 : h.v;
276
- if (h !== void 0 && d !== H)
276
+ if (h !== void 0 && d !== U)
277
277
  return {
278
278
  enumerable: !0,
279
279
  configurable: !0,
@@ -287,11 +287,11 @@ function O(t, e = null, n) {
287
287
  var d;
288
288
  if (a === Ae)
289
289
  return !0;
290
- var c = s.get(a), f = c !== void 0 && c.v !== H || Reflect.has(u, a);
291
- if (c !== void 0 || E !== null && (!f || (d = Ce(u, a)) != null && d.writable)) {
292
- c === void 0 && (c = U(f ? O(u[a], l) : H), s.set(a, c));
290
+ var c = s.get(a), f = c !== void 0 && c.v !== U || Reflect.has(u, a);
291
+ if (c !== void 0 || T !== null && (!f || (d = Re(u, a)) != null && d.writable)) {
292
+ c === void 0 && (c = G(f ? N(u[a], l) : U), s.set(a, c));
293
293
  var h = m(c);
294
- if (h === H)
294
+ if (h === U)
295
295
  return !1;
296
296
  }
297
297
  return f;
@@ -303,9 +303,9 @@ function O(t, e = null, n) {
303
303
  for (var p = c; p < /** @type {Source<number>} */
304
304
  h.v; p += 1) {
305
305
  var g = s.get(p + "");
306
- g !== void 0 ? T(g, H) : p in u && (g = U(H), s.set(p + "", g));
306
+ g !== void 0 ? E(g, U) : p in u && (g = G(U), s.set(p + "", g));
307
307
  }
308
- h === void 0 ? (!d || (k = Ce(u, a)) != null && k.writable) && (h = U(void 0), T(h, O(c, l)), s.set(a, h)) : (d = h.v !== H, T(h, O(c, l)));
308
+ h === void 0 ? (!d || (k = Re(u, a)) != null && k.writable) && (h = G(void 0), E(h, N(c, l)), s.set(a, h)) : (d = h.v !== U, E(h, N(c, l)));
309
309
  var b = Reflect.getOwnPropertyDescriptor(u, a);
310
310
  if (b != null && b.set && b.set.call(f, c), !d) {
311
311
  if (i && typeof a == "string") {
@@ -313,7 +313,7 @@ function O(t, e = null, n) {
313
313
  /** @type {Source<number>} */
314
314
  s.get("length")
315
315
  ), _ = Number(a);
316
- Number.isInteger(_) && _ >= v.v && T(v, _ + 1);
316
+ Number.isInteger(_) && _ >= v.v && E(v, _ + 1);
317
317
  }
318
318
  hr(o);
319
319
  }
@@ -323,34 +323,34 @@ function O(t, e = null, n) {
323
323
  m(o);
324
324
  var a = Reflect.ownKeys(u).filter((h) => {
325
325
  var d = s.get(h);
326
- return d === void 0 || d.v !== H;
326
+ return d === void 0 || d.v !== U;
327
327
  });
328
328
  for (var [c, f] of s)
329
- f.v !== H && !(c in u) && a.push(c);
329
+ f.v !== U && !(c in u) && a.push(c);
330
330
  return a;
331
331
  },
332
332
  setPrototypeOf() {
333
- Ji();
333
+ Yi();
334
334
  }
335
335
  }
336
336
  );
337
337
  }
338
338
  function hr(t, e = 1) {
339
- T(t, t.v + e);
339
+ E(t, t.v + e);
340
340
  }
341
341
  var dr, Xr, es;
342
342
  function kn() {
343
343
  if (dr === void 0) {
344
344
  dr = window;
345
345
  var t = Element.prototype, e = Node.prototype;
346
- Xr = Ce(e, "firstChild").get, es = Ce(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
346
+ Xr = Re(e, "firstChild").get, es = Re(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
347
347
  }
348
348
  }
349
- function Ue(t = "") {
349
+ function Ge(t = "") {
350
350
  return document.createTextNode(t);
351
351
  }
352
352
  // @__NO_SIDE_EFFECTS__
353
- function Q(t) {
353
+ function W(t) {
354
354
  return Xr.call(t);
355
355
  }
356
356
  // @__NO_SIDE_EFFECTS__
@@ -359,15 +359,15 @@ function xe(t) {
359
359
  }
360
360
  function D(t, e) {
361
361
  if (!I)
362
- return /* @__PURE__ */ Q(t);
362
+ return /* @__PURE__ */ W(t);
363
363
  var n = (
364
364
  /** @type {TemplateNode} */
365
- /* @__PURE__ */ Q(C)
365
+ /* @__PURE__ */ W(R)
366
366
  );
367
367
  if (n === null)
368
- n = C.appendChild(Ue());
368
+ n = R.appendChild(Ge());
369
369
  else if (e && n.nodeType !== 3) {
370
- var r = Ue();
370
+ var r = Ge();
371
371
  return n == null || n.before(r), te(r), r;
372
372
  }
373
373
  return te(n), n;
@@ -376,17 +376,17 @@ function wn(t, e) {
376
376
  if (!I) {
377
377
  var n = (
378
378
  /** @type {DocumentFragment} */
379
- /* @__PURE__ */ Q(
379
+ /* @__PURE__ */ W(
380
380
  /** @type {Node} */
381
381
  t
382
382
  )
383
383
  );
384
384
  return n instanceof Comment && n.data === "" ? /* @__PURE__ */ xe(n) : n;
385
385
  }
386
- return C;
386
+ return R;
387
387
  }
388
388
  function ie(t, e = 1, n = !1) {
389
- let r = I ? C : t;
389
+ let r = I ? R : t;
390
390
  for (var s; e--; )
391
391
  s = r, r = /** @type {TemplateNode} */
392
392
  /* @__PURE__ */ xe(r);
@@ -394,7 +394,7 @@ function ie(t, e = 1, n = !1) {
394
394
  return r;
395
395
  var i = r == null ? void 0 : r.nodeType;
396
396
  if (n && i !== 3) {
397
- var o = Ue();
397
+ var o = Ge();
398
398
  return r === null ? s == null || s.after(o) : r.before(o), te(o), o;
399
399
  }
400
400
  return te(r), /** @type {TemplateNode} */
@@ -405,17 +405,17 @@ function ts(t) {
405
405
  }
406
406
  // @__NO_SIDE_EFFECTS__
407
407
  function ut(t) {
408
- var e = J | we;
409
- E === null ? e |= Ne : E.f |= Zr;
410
- var n = L !== null && L.f & J ? (
408
+ var e = Y | we;
409
+ T === null ? e |= Oe : T.f |= Qr;
410
+ var n = z !== null && z.f & Y ? (
411
411
  /** @type {Derived} */
412
- L
412
+ z
413
413
  ) : null;
414
414
  const r = {
415
415
  children: null,
416
416
  ctx: P,
417
417
  deps: null,
418
- equals: Jr,
418
+ equals: Yr,
419
419
  f: e,
420
420
  fn: t,
421
421
  reactions: null,
@@ -425,14 +425,14 @@ function ut(t) {
425
425
  null
426
426
  ),
427
427
  wv: 0,
428
- parent: n ?? E
428
+ parent: n ?? T
429
429
  };
430
430
  return n !== null && (n.children ?? (n.children = [])).push(r), r;
431
431
  }
432
432
  // @__NO_SIDE_EFFECTS__
433
433
  function ns(t) {
434
434
  const e = /* @__PURE__ */ ut(t);
435
- return e.equals = Fn, e;
435
+ return e.equals = qn, e;
436
436
  }
437
437
  function rs(t) {
438
438
  var e = t.children;
@@ -440,7 +440,7 @@ function rs(t) {
440
440
  t.children = null;
441
441
  for (var n = 0; n < e.length; n += 1) {
442
442
  var r = e[n];
443
- r.f & J ? Bn(
443
+ r.f & Y ? Bn(
444
444
  /** @type {Derived} */
445
445
  r
446
446
  ) : he(
@@ -452,7 +452,7 @@ function rs(t) {
452
452
  }
453
453
  function to(t) {
454
454
  for (var e = t.parent; e !== null; ) {
455
- if (!(e.f & J))
455
+ if (!(e.f & Y))
456
456
  return (
457
457
  /** @type {Effect} */
458
458
  e
@@ -462,7 +462,7 @@ function to(t) {
462
462
  return null;
463
463
  }
464
464
  function ss(t) {
465
- var e, n = E;
465
+ var e, n = T;
466
466
  re(to(t));
467
467
  try {
468
468
  rs(t), e = ms(t);
@@ -472,21 +472,21 @@ function ss(t) {
472
472
  return e;
473
473
  }
474
474
  function is(t) {
475
- var e = ss(t), n = (Re || t.f & Ne) && t.deps !== null ? Oe : F;
475
+ var e = ss(t), n = (Ce || t.f & Oe) && t.deps !== null ? Ne : q;
476
476
  oe(t, n), t.equals(e) || (t.v = e, t.wv = _s());
477
477
  }
478
478
  function Bn(t) {
479
- rs(t), pt(t, 0), oe(t, Ze), t.v = t.children = t.deps = t.ctx = t.reactions = null;
479
+ rs(t), pt(t, 0), oe(t, Qe), t.v = t.children = t.deps = t.ctx = t.reactions = null;
480
480
  }
481
481
  function os(t) {
482
- E === null && L === null && Ui(), L !== null && L.f & Ne && Hi(), Un && Vi();
482
+ T === null && z === null && Gi(), z !== null && z.f & Oe && Ui(), Gn && Hi();
483
483
  }
484
484
  function no(t, e) {
485
485
  var n = e.last;
486
486
  n === null ? e.last = e.first = t : (n.next = t, t.prev = n, e.last = t);
487
487
  }
488
- function Je(t, e, n, r = !0) {
489
- var s = (t & Le) !== 0, i = E, o = {
488
+ function Ye(t, e, n, r = !0) {
489
+ var s = (t & ze) !== 0, i = T, o = {
490
490
  ctx: P,
491
491
  deps: null,
492
492
  deriveds: null,
@@ -506,18 +506,18 @@ function Je(t, e, n, r = !0) {
506
506
  if (n) {
507
507
  var l = Be;
508
508
  try {
509
- pr(!0), tn(o), o.f |= Wr;
509
+ pr(!0), tn(o), o.f |= Vr;
510
510
  } catch (c) {
511
511
  throw he(o), c;
512
512
  } finally {
513
513
  pr(l);
514
514
  }
515
515
  } else e !== null && nn(o);
516
- var u = n && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (Zr | zt)) === 0;
517
- if (!u && !s && r && (i !== null && no(o, i), L !== null && L.f & J)) {
516
+ var u = n && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (Qr | Lt)) === 0;
517
+ if (!u && !s && r && (i !== null && no(o, i), z !== null && z.f & Y)) {
518
518
  var a = (
519
519
  /** @type {Derived} */
520
- L
520
+ z
521
521
  );
522
522
  (a.children ?? (a.children = [])).push(o);
523
523
  }
@@ -525,7 +525,7 @@ function Je(t, e, n, r = !0) {
525
525
  }
526
526
  function ft(t) {
527
527
  os();
528
- var e = E !== null && (E.f & ge) !== 0 && P !== null && !P.m;
528
+ var e = T !== null && (T.f & ge) !== 0 && P !== null && !P.m;
529
529
  if (e) {
530
530
  var n = (
531
531
  /** @type {ComponentContext} */
@@ -533,8 +533,8 @@ function ft(t) {
533
533
  );
534
534
  (n.e ?? (n.e = [])).push({
535
535
  fn: t,
536
- effect: E,
537
- reaction: L
536
+ effect: T,
537
+ reaction: z
538
538
  });
539
539
  } else {
540
540
  var r = Kt(t);
@@ -542,32 +542,32 @@ function ft(t) {
542
542
  }
543
543
  }
544
544
  function ro(t) {
545
- return os(), Ye(t);
545
+ return os(), Je(t);
546
546
  }
547
547
  function so(t) {
548
- const e = Je(Le, t, !0);
548
+ const e = Ye(ze, t, !0);
549
549
  return () => {
550
550
  he(e);
551
551
  };
552
552
  }
553
553
  function io(t) {
554
- const e = Je(Le, t, !0);
554
+ const e = Ye(ze, t, !0);
555
555
  return (n = {}) => new Promise((r) => {
556
- n.outro ? Ot(e, () => {
556
+ n.outro ? Nt(e, () => {
557
557
  he(e), r(void 0);
558
558
  }) : (he(e), r(void 0));
559
559
  });
560
560
  }
561
561
  function Kt(t) {
562
- return Je(Gr, t, !1);
562
+ return Ye(Zr, t, !1);
563
563
  }
564
564
  function oo(t, e) {
565
565
  var n = (
566
566
  /** @type {ComponentContextLegacy} */
567
567
  P
568
568
  ), r = { effect: null, ran: !1 };
569
- n.l.r1.push(r), r.effect = Ye(() => {
570
- t(), !r.ran && (r.ran = !0, T(n.l.r2, !0), pe(e));
569
+ n.l.r1.push(r), r.effect = Je(() => {
570
+ t(), !r.ran && (r.ran = !0, E(n.l.r2, !0), pe(e));
571
571
  });
572
572
  }
573
573
  function lo() {
@@ -575,33 +575,33 @@ function lo() {
575
575
  /** @type {ComponentContextLegacy} */
576
576
  P
577
577
  );
578
- Ye(() => {
578
+ Je(() => {
579
579
  if (m(t.l.r2)) {
580
580
  for (var e of t.l.r1) {
581
581
  var n = e.effect;
582
- n.f & F && oe(n, Oe), Xe(n) && tn(n), e.ran = !1;
582
+ n.f & q && oe(n, Ne), Xe(n) && tn(n), e.ran = !1;
583
583
  }
584
584
  t.l.r2.v = !1;
585
585
  }
586
586
  });
587
587
  }
588
- function Ye(t) {
589
- return Je(Wt, t, !0);
588
+ function Je(t) {
589
+ return Ye(Vt, t, !0);
590
590
  }
591
- function Nt(t, e = [], n = ut) {
591
+ function Ot(t, e = [], n = ut) {
592
592
  const r = e.map(n);
593
593
  return Xt(() => t(...r.map(m)));
594
594
  }
595
595
  function Xt(t, e = 0) {
596
- return Je(Wt | Zt | e, t, !0);
596
+ return Ye(Vt | Qt | e, t, !0);
597
597
  }
598
- function Ge(t, e = !0) {
599
- return Je(Wt | ge, t, !0, e);
598
+ function Ze(t, e = !0) {
599
+ return Ye(Vt | ge, t, !0, e);
600
600
  }
601
601
  function ls(t) {
602
602
  var e = t.teardown;
603
603
  if (e !== null) {
604
- const n = Un, r = L;
604
+ const n = Gn, r = z;
605
605
  gr(!0), de(null);
606
606
  try {
607
607
  e.call(null);
@@ -633,7 +633,7 @@ function ao(t) {
633
633
  }
634
634
  function he(t, e = !0) {
635
635
  var n = !1;
636
- if ((e || t.f & qi) && t.nodes_start !== null) {
636
+ if ((e || t.f & ji) && t.nodes_start !== null) {
637
637
  for (var r = t.nodes_start, s = t.nodes_end; r !== null; ) {
638
638
  var i = r === s ? null : (
639
639
  /** @type {TemplateNode} */
@@ -643,7 +643,7 @@ function he(t, e = !0) {
643
643
  }
644
644
  n = !0;
645
645
  }
646
- cs(t, e && !n), as(t), pt(t, 0), oe(t, Ze);
646
+ cs(t, e && !n), as(t), pt(t, 0), oe(t, Qe);
647
647
  var o = t.transitions;
648
648
  if (o !== null)
649
649
  for (const u of o)
@@ -656,9 +656,9 @@ function us(t) {
656
656
  var e = t.parent, n = t.prev, r = t.next;
657
657
  n !== null && (n.next = r), r !== null && (r.prev = n), e !== null && (e.first === t && (e.first = r), e.last === t && (e.last = n));
658
658
  }
659
- function Ot(t, e) {
659
+ function Nt(t, e) {
660
660
  var n = [];
661
- Vn(t, n, !0), fs(n, () => {
661
+ Hn(t, n, !0), fs(n, () => {
662
662
  he(t), e && e();
663
663
  });
664
664
  }
@@ -671,14 +671,14 @@ function fs(t, e) {
671
671
  } else
672
672
  e();
673
673
  }
674
- function Vn(t, e, n) {
674
+ function Hn(t, e, n) {
675
675
  if (!(t.f & ae)) {
676
676
  if (t.f ^= ae, t.transitions !== null)
677
677
  for (const o of t.transitions)
678
678
  (o.is_global || n) && e.push(o);
679
679
  for (var r = t.first; r !== null; ) {
680
- var s = r.next, i = (r.f & Qt) !== 0 || (r.f & ge) !== 0;
681
- Vn(r, e, i ? n : !1), r = s;
680
+ var s = r.next, i = (r.f & Wt) !== 0 || (r.f & ge) !== 0;
681
+ Hn(r, e, i ? n : !1), r = s;
682
682
  }
683
683
  }
684
684
  }
@@ -687,9 +687,9 @@ function Mt(t) {
687
687
  }
688
688
  function hs(t, e) {
689
689
  if (t.f & ae) {
690
- t.f ^= ae, t.f & F || (t.f ^= F), Xe(t) && (oe(t, we), nn(t));
690
+ t.f ^= ae, t.f & q || (t.f ^= q), Xe(t) && (oe(t, we), nn(t));
691
691
  for (var n = t.first; n !== null; ) {
692
- var r = n.next, s = (n.f & Qt) !== 0 || (n.f & ge) !== 0;
692
+ var r = n.next, s = (n.f & Wt) !== 0 || (n.f & ge) !== 0;
693
693
  hs(n, s ? e : !1), n = r;
694
694
  }
695
695
  if (t.transitions !== null)
@@ -698,14 +698,14 @@ function hs(t, e) {
698
698
  }
699
699
  }
700
700
  const co = typeof requestIdleCallback > "u" ? (t) => setTimeout(t, 1) : requestIdleCallback;
701
- let Dt = !1, jt = !1, xn = [], yn = [];
701
+ let Dt = !1, Ft = !1, xn = [], yn = [];
702
702
  function ds() {
703
703
  Dt = !1;
704
704
  const t = xn.slice();
705
705
  xn = [], Pt(t);
706
706
  }
707
707
  function ps() {
708
- jt = !1;
708
+ Ft = !1;
709
709
  const t = yn.slice();
710
710
  yn = [], Pt(t);
711
711
  }
@@ -713,59 +713,59 @@ function Ke(t) {
713
713
  Dt || (Dt = !0, queueMicrotask(ds)), xn.push(t);
714
714
  }
715
715
  function uo(t) {
716
- jt || (jt = !0, co(ps)), yn.push(t);
716
+ Ft || (Ft = !0, co(ps)), yn.push(t);
717
717
  }
718
718
  function fo() {
719
- Dt && ds(), jt && ps();
719
+ Dt && ds(), Ft && ps();
720
720
  }
721
- function Hn(t) {
721
+ function Un(t) {
722
722
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
723
723
  }
724
724
  const gs = 0, ho = 1;
725
- let St = !1, Tt = gs, ht = !1, dt = null, Be = !1, Un = !1;
725
+ let St = !1, Et = gs, ht = !1, dt = null, Be = !1, Gn = !1;
726
726
  function pr(t) {
727
727
  Be = t;
728
728
  }
729
729
  function gr(t) {
730
- Un = t;
730
+ Gn = t;
731
731
  }
732
- let Ie = [], Ve = 0;
733
- let L = null, Se = !1;
732
+ let Ie = [], He = 0;
733
+ let z = null, Se = !1;
734
734
  function de(t) {
735
- L = t;
735
+ z = t;
736
736
  }
737
- let E = null;
737
+ let T = null;
738
738
  function re(t) {
739
- E = t;
739
+ T = t;
740
740
  }
741
741
  let ce = null;
742
742
  function po(t) {
743
743
  ce = t;
744
744
  }
745
- let G = null, Z = 0, ve = null;
745
+ let Z = null, Q = 0, ve = null;
746
746
  function go(t) {
747
747
  ve = t;
748
748
  }
749
- let vs = 1, qt = 0, Re = !1, P = null;
749
+ let vs = 1, jt = 0, Ce = !1, P = null;
750
750
  function _s() {
751
751
  return ++vs;
752
752
  }
753
753
  function _t() {
754
- return !Qe || P !== null && P.l === null;
754
+ return !We || P !== null && P.l === null;
755
755
  }
756
756
  function Xe(t) {
757
757
  var a;
758
758
  var e = t.f;
759
759
  if (e & we)
760
760
  return !0;
761
- if (e & Oe) {
762
- var n = t.deps, r = (e & Ne) !== 0;
761
+ if (e & Ne) {
762
+ var n = t.deps, r = (e & Oe) !== 0;
763
763
  if (n !== null) {
764
- var s, i, o = (e & Lt) !== 0, l = r && E !== null && !Re, u = n.length;
764
+ var s, i, o = (e & zt) !== 0, l = r && T !== null && !Ce, u = n.length;
765
765
  if (o || l) {
766
766
  for (s = 0; s < u; s++)
767
767
  i = n[s], (o || !((a = i == null ? void 0 : i.reactions) != null && a.includes(t))) && (i.reactions ?? (i.reactions = [])).push(t);
768
- o && (t.f ^= Lt);
768
+ o && (t.f ^= zt);
769
769
  }
770
770
  for (s = 0; s < u; s++)
771
771
  if (i = n[s], Xe(
@@ -777,25 +777,25 @@ function Xe(t) {
777
777
  ), i.wv > t.wv)
778
778
  return !0;
779
779
  }
780
- (!r || E !== null && !Re) && oe(t, F);
780
+ (!r || T !== null && !Ce) && oe(t, q);
781
781
  }
782
782
  return !1;
783
783
  }
784
784
  function vo(t, e) {
785
785
  for (var n = e; n !== null; ) {
786
- if (n.f & zt)
786
+ if (n.f & Lt)
787
787
  try {
788
788
  n.fn(t);
789
789
  return;
790
790
  } catch {
791
- n.f ^= zt;
791
+ n.f ^= Lt;
792
792
  }
793
793
  n = n.parent;
794
794
  }
795
795
  throw St = !1, t;
796
796
  }
797
797
  function _o(t) {
798
- return (t.f & Ze) === 0 && (t.parent === null || (t.parent.f & zt) === 0);
798
+ return (t.f & Qe) === 0 && (t.parent === null || (t.parent.f & Lt) === 0);
799
799
  }
800
800
  function en(t, e, n, r) {
801
801
  if (St) {
@@ -814,12 +814,12 @@ function bs(t, e, n = 0) {
814
814
  if (r !== null)
815
815
  for (var s = 0; s < r.length; s++) {
816
816
  var i = r[s];
817
- i.f & J ? bs(
817
+ i.f & Y ? bs(
818
818
  /** @type {Derived} */
819
819
  i,
820
820
  e,
821
821
  n + 1
822
- ) : e === i && (n === 0 ? oe(i, we) : i.f & F && oe(i, Oe), nn(
822
+ ) : e === i && (n === 0 ? oe(i, we) : i.f & q && oe(i, Ne), nn(
823
823
  /** @type {Effect} */
824
824
  i
825
825
  ));
@@ -827,26 +827,26 @@ function bs(t, e, n = 0) {
827
827
  }
828
828
  function ms(t) {
829
829
  var d;
830
- var e = G, n = Z, r = ve, s = L, i = Re, o = ce, l = P, u = Se, a = t.f;
831
- G = /** @type {null | Value[]} */
832
- null, Z = 0, ve = null, L = a & (ge | Le) ? null : t, Re = !Be && (a & Ne) !== 0, ce = null, P = t.ctx, Se = !1, qt++;
830
+ var e = Z, n = Q, r = ve, s = z, i = Ce, o = ce, l = P, u = Se, a = t.f;
831
+ Z = /** @type {null | Value[]} */
832
+ null, Q = 0, ve = null, z = a & (ge | ze) ? null : t, Ce = !Be && (a & Oe) !== 0, ce = null, P = t.ctx, Se = !1, jt++;
833
833
  try {
834
834
  var c = (
835
835
  /** @type {Function} */
836
836
  (0, t.fn)()
837
837
  ), f = t.deps;
838
- if (G !== null) {
838
+ if (Z !== null) {
839
839
  var h;
840
- if (pt(t, Z), f !== null && Z > 0)
841
- for (f.length = Z + G.length, h = 0; h < G.length; h++)
842
- f[Z + h] = G[h];
840
+ if (pt(t, Q), f !== null && Q > 0)
841
+ for (f.length = Q + Z.length, h = 0; h < Z.length; h++)
842
+ f[Q + h] = Z[h];
843
843
  else
844
- t.deps = f = G;
845
- if (!Re)
846
- for (h = Z; h < f.length; h++)
844
+ t.deps = f = Z;
845
+ if (!Ce)
846
+ for (h = Q; h < f.length; h++)
847
847
  ((d = f[h]).reactions ?? (d.reactions = [])).push(t);
848
- } else f !== null && Z < f.length && (pt(t, Z), f.length = Z);
849
- if (_t() && ve !== null && !(t.f & (J | Oe | we)))
848
+ } else f !== null && Q < f.length && (pt(t, Q), f.length = Q);
849
+ if (_t() && ve !== null && !(t.f & (Y | Ne | we)))
850
850
  for (h = 0; h < /** @type {Source[]} */
851
851
  ve.length; h++)
852
852
  bs(
@@ -854,24 +854,24 @@ function ms(t) {
854
854
  /** @type {Effect} */
855
855
  t
856
856
  );
857
- return s !== null && qt++, c;
857
+ return s !== null && jt++, c;
858
858
  } finally {
859
- G = e, Z = n, ve = r, L = s, Re = i, ce = o, P = l, Se = u;
859
+ Z = e, Q = n, ve = r, z = s, Ce = i, ce = o, P = l, Se = u;
860
860
  }
861
861
  }
862
862
  function bo(t, e) {
863
863
  let n = e.reactions;
864
864
  if (n !== null) {
865
- var r = Li.call(n, t);
865
+ var r = zi.call(n, t);
866
866
  if (r !== -1) {
867
867
  var s = n.length - 1;
868
868
  s === 0 ? n = e.reactions = null : (n[r] = n[s], n.pop());
869
869
  }
870
870
  }
871
- n === null && e.f & J && // Destroying a child effect while updating a parent effect can cause a dependency to appear
871
+ n === null && e.f & Y && // Destroying a child effect while updating a parent effect can cause a dependency to appear
872
872
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
873
873
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
874
- (G === null || !G.includes(e)) && (oe(e, Oe), e.f & (Ne | Lt) || (e.f ^= Lt), pt(
874
+ (Z === null || !Z.includes(e)) && (oe(e, Ne), e.f & (Oe | zt) || (e.f ^= zt), pt(
875
875
  /** @type {Derived} **/
876
876
  e,
877
877
  0
@@ -885,12 +885,12 @@ function pt(t, e) {
885
885
  }
886
886
  function tn(t) {
887
887
  var e = t.f;
888
- if (!(e & Ze)) {
889
- oe(t, F);
890
- var n = E, r = P;
891
- E = t;
888
+ if (!(e & Qe)) {
889
+ oe(t, q);
890
+ var n = T, r = P;
891
+ T = t;
892
892
  try {
893
- e & Zt ? ao(t) : cs(t), as(t), ls(t);
893
+ e & Qt ? ao(t) : cs(t), as(t), ls(t);
894
894
  var s = ms(t);
895
895
  t.teardown = typeof s == "function" ? s : null, t.wv = vs;
896
896
  var i = t.deps, o;
@@ -898,15 +898,15 @@ function tn(t) {
898
898
  } catch (l) {
899
899
  en(l, t, n, r || t.ctx);
900
900
  } finally {
901
- E = n;
901
+ T = n;
902
902
  }
903
903
  }
904
904
  }
905
905
  function ks() {
906
- if (Ve > 1e3) {
907
- Ve = 0;
906
+ if (He > 1e3) {
907
+ He = 0;
908
908
  try {
909
- Gi();
909
+ Zi();
910
910
  } catch (t) {
911
911
  if (dt !== null)
912
912
  en(t, dt, null);
@@ -914,7 +914,7 @@ function ks() {
914
914
  throw t;
915
915
  }
916
916
  }
917
- Ve++;
917
+ He++;
918
918
  }
919
919
  function ws(t) {
920
920
  var e = t.length;
@@ -925,7 +925,7 @@ function ws(t) {
925
925
  try {
926
926
  for (var r = 0; r < e; r++) {
927
927
  var s = t[r];
928
- s.f & F || (s.f ^= F);
928
+ s.f & q || (s.f ^= q);
929
929
  var i = [];
930
930
  xs(s, i), mo(i);
931
931
  }
@@ -939,7 +939,7 @@ function mo(t) {
939
939
  if (e !== 0)
940
940
  for (var n = 0; n < e; n++) {
941
941
  var r = t[n];
942
- if (!(r.f & (Ze | ae)))
942
+ if (!(r.f & (Qe | ae)))
943
943
  try {
944
944
  Xe(r) && (tn(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? us(r) : r.fn = null));
945
945
  } catch (s) {
@@ -948,19 +948,19 @@ function mo(t) {
948
948
  }
949
949
  }
950
950
  function ko() {
951
- if (ht = !1, Ve > 1001)
951
+ if (ht = !1, He > 1001)
952
952
  return;
953
953
  const t = Ie;
954
- Ie = [], ws(t), ht || (Ve = 0, dt = null);
954
+ Ie = [], ws(t), ht || (He = 0, dt = null);
955
955
  }
956
956
  function nn(t) {
957
- Tt === gs && (ht || (ht = !0, queueMicrotask(ko))), dt = t;
957
+ Et === gs && (ht || (ht = !0, queueMicrotask(ko))), dt = t;
958
958
  for (var e = t; e.parent !== null; ) {
959
959
  e = e.parent;
960
960
  var n = e.f;
961
- if (n & (Le | ge)) {
962
- if (!(n & F)) return;
963
- e.f ^= F;
961
+ if (n & (ze | ge)) {
962
+ if (!(n & q)) return;
963
+ e.f ^= q;
964
964
  }
965
965
  }
966
966
  Ie.push(e);
@@ -968,11 +968,11 @@ function nn(t) {
968
968
  function xs(t, e) {
969
969
  var n = t.first, r = [];
970
970
  e: for (; n !== null; ) {
971
- var s = n.f, i = (s & ge) !== 0, o = i && (s & F) !== 0, l = n.next;
971
+ var s = n.f, i = (s & ge) !== 0, o = i && (s & q) !== 0, l = n.next;
972
972
  if (!o && !(s & ae))
973
- if (s & Wt) {
973
+ if (s & Vt) {
974
974
  if (i)
975
- n.f ^= F;
975
+ n.f ^= q;
976
976
  else
977
977
  try {
978
978
  Xe(n) && tn(n);
@@ -984,7 +984,7 @@ function xs(t, e) {
984
984
  n = u;
985
985
  continue;
986
986
  }
987
- } else s & Gr && r.push(n);
987
+ } else s & Zr && r.push(n);
988
988
  if (l === null) {
989
989
  let f = n.parent;
990
990
  for (; f !== null; ) {
@@ -1003,25 +1003,25 @@ function xs(t, e) {
1003
1003
  for (var c = 0; c < r.length; c++)
1004
1004
  u = r[c], e.push(u), xs(u, e);
1005
1005
  }
1006
- function W(t) {
1007
- var e = Tt, n = Ie;
1006
+ function V(t) {
1007
+ var e = Et, n = Ie;
1008
1008
  try {
1009
1009
  ks();
1010
1010
  const s = [];
1011
- Tt = ho, Ie = s, ht = !1, ws(n);
1011
+ Et = ho, Ie = s, ht = !1, ws(n);
1012
1012
  var r = t == null ? void 0 : t();
1013
- return fo(), (Ie.length > 0 || s.length > 0) && W(), Ve = 0, dt = null, r;
1013
+ return fo(), (Ie.length > 0 || s.length > 0) && V(), He = 0, dt = null, r;
1014
1014
  } finally {
1015
- Tt = e, Ie = n;
1015
+ Et = e, Ie = n;
1016
1016
  }
1017
1017
  }
1018
1018
  async function wo() {
1019
- await Promise.resolve(), W();
1019
+ await Promise.resolve(), V();
1020
1020
  }
1021
1021
  function m(t) {
1022
1022
  var c;
1023
- var e = t.f, n = (e & J) !== 0;
1024
- if (n && e & Ze) {
1023
+ var e = t.f, n = (e & Y) !== 0;
1024
+ if (n && e & Qe) {
1025
1025
  var r = ss(
1026
1026
  /** @type {Derived} */
1027
1027
  t
@@ -1031,17 +1031,17 @@ function m(t) {
1031
1031
  t
1032
1032
  ), r;
1033
1033
  }
1034
- if (L !== null && !Se) {
1035
- ce !== null && ce.includes(t) && Yi();
1036
- var s = L.deps;
1037
- t.rv < qt && (t.rv = qt, G === null && s !== null && s[Z] === t ? Z++ : G === null ? G = [t] : G.push(t));
1034
+ if (z !== null && !Se) {
1035
+ ce !== null && ce.includes(t) && Ji();
1036
+ var s = z.deps;
1037
+ t.rv < jt && (t.rv = jt, Z === null && s !== null && s[Q] === t ? Q++ : Z === null ? Z = [t] : Z.push(t));
1038
1038
  } else if (n && /** @type {Derived} */
1039
1039
  t.deps === null)
1040
1040
  for (var i = (
1041
1041
  /** @type {Derived} */
1042
1042
  t
1043
1043
  ), o = i.parent, l = i; o !== null; )
1044
- if (o.f & J) {
1044
+ if (o.f & Y) {
1045
1045
  var u = (
1046
1046
  /** @type {Derived} */
1047
1047
  o
@@ -1072,9 +1072,9 @@ function oe(t, e) {
1072
1072
  }
1073
1073
  function $n(t, e = 1) {
1074
1074
  var n = m(t), r = e === 1 ? n++ : n--;
1075
- return T(t, n), r;
1075
+ return E(t, n), r;
1076
1076
  }
1077
- function Te(t, e = !1, n) {
1077
+ function Ee(t, e = !1, n) {
1078
1078
  P = {
1079
1079
  p: P,
1080
1080
  c: null,
@@ -1083,20 +1083,20 @@ function Te(t, e = !1, n) {
1083
1083
  s: t,
1084
1084
  x: null,
1085
1085
  l: null
1086
- }, Qe && !e && (P.l = {
1086
+ }, We && !e && (P.l = {
1087
1087
  s: null,
1088
1088
  u: null,
1089
1089
  r1: [],
1090
- r2: U(!1)
1090
+ r2: G(!1)
1091
1091
  });
1092
1092
  }
1093
- function Ee(t) {
1093
+ function Te(t) {
1094
1094
  const e = P;
1095
1095
  if (e !== null) {
1096
1096
  t !== void 0 && (e.x = t);
1097
1097
  const o = e.e;
1098
1098
  if (o !== null) {
1099
- var n = E, r = L;
1099
+ var n = T, r = z;
1100
1100
  e.e = null;
1101
1101
  try {
1102
1102
  for (var s = 0; s < o.length; s++) {
@@ -1132,9 +1132,9 @@ function Sn(t, e = /* @__PURE__ */ new Set()) {
1132
1132
  Sn(t[r], e);
1133
1133
  } catch {
1134
1134
  }
1135
- const n = qn(t);
1135
+ const n = jn(t);
1136
1136
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1137
- const r = Ur(n);
1137
+ const r = Gr(n);
1138
1138
  for (let s in r) {
1139
1139
  const i = r[s].get;
1140
1140
  if (i)
@@ -1175,7 +1175,7 @@ function $s() {
1175
1175
  ));
1176
1176
  }
1177
1177
  function Ss(t) {
1178
- var e = L, n = E;
1178
+ var e = z, n = T;
1179
1179
  de(null), re(null);
1180
1180
  try {
1181
1181
  return t();
@@ -1190,7 +1190,7 @@ function $o(t, e, n, r = n) {
1190
1190
  s(), r(!0);
1191
1191
  } : t.__on_r = () => r(!0), $s();
1192
1192
  }
1193
- const Ts = /* @__PURE__ */ new Set(), Tn = /* @__PURE__ */ new Set();
1193
+ const Es = /* @__PURE__ */ new Set(), En = /* @__PURE__ */ new Set();
1194
1194
  function So(t, e, n, r) {
1195
1195
  function s(i) {
1196
1196
  if (r.capture || lt.call(e, i), !i.cancelBubble)
@@ -1202,8 +1202,8 @@ function So(t, e, n, r) {
1202
1202
  }
1203
1203
  function bt(t) {
1204
1204
  for (var e = 0; e < t.length; e++)
1205
- Ts.add(t[e]);
1206
- for (var n of Tn)
1205
+ Es.add(t[e]);
1206
+ for (var n of En)
1207
1207
  n(t);
1208
1208
  }
1209
1209
  function lt(t) {
@@ -1235,7 +1235,7 @@ function lt(t) {
1235
1235
  return i || n;
1236
1236
  }
1237
1237
  });
1238
- var c = L, f = E;
1238
+ var c = z, f = T;
1239
1239
  de(null), re(null);
1240
1240
  try {
1241
1241
  for (var h, d = []; i !== null; ) {
@@ -1245,7 +1245,7 @@ function lt(t) {
1245
1245
  var g = i["__" + r];
1246
1246
  if (g !== void 0 && !/** @type {any} */
1247
1247
  i.disabled)
1248
- if (Gt(g)) {
1248
+ if (Zt(g)) {
1249
1249
  var [b, ...v] = g;
1250
1250
  b.apply(i, [t, ...v]);
1251
1251
  } else
@@ -1269,25 +1269,25 @@ function lt(t) {
1269
1269
  }
1270
1270
  }
1271
1271
  }
1272
- function Gn(t) {
1272
+ function Zn(t) {
1273
1273
  var e = document.createElement("template");
1274
1274
  return e.innerHTML = t, e.content;
1275
1275
  }
1276
1276
  function ue(t, e) {
1277
1277
  var n = (
1278
1278
  /** @type {Effect} */
1279
- E
1279
+ T
1280
1280
  );
1281
1281
  n.nodes_start === null && (n.nodes_start = t, n.nodes_end = e);
1282
1282
  }
1283
1283
  // @__NO_SIDE_EFFECTS__
1284
1284
  function se(t, e) {
1285
- var n = (e & Si) !== 0, r = (e & Ti) !== 0, s, i = !t.startsWith("<!>");
1285
+ var n = (e & Si) !== 0, r = (e & Ei) !== 0, s, i = !t.startsWith("<!>");
1286
1286
  return () => {
1287
1287
  if (I)
1288
- return ue(C, null), C;
1289
- s === void 0 && (s = Gn(i ? t : "<!>" + t), n || (s = /** @type {Node} */
1290
- /* @__PURE__ */ Q(s)));
1288
+ return ue(R, null), R;
1289
+ s === void 0 && (s = Zn(i ? t : "<!>" + t), n || (s = /** @type {Node} */
1290
+ /* @__PURE__ */ W(s)));
1291
1291
  var o = (
1292
1292
  /** @type {TemplateNode} */
1293
1293
  r ? document.importNode(s, !0) : s.cloneNode(!0)
@@ -1295,7 +1295,7 @@ function se(t, e) {
1295
1295
  if (n) {
1296
1296
  var l = (
1297
1297
  /** @type {TemplateNode} */
1298
- /* @__PURE__ */ Q(o)
1298
+ /* @__PURE__ */ W(o)
1299
1299
  ), u = (
1300
1300
  /** @type {TemplateNode} */
1301
1301
  o.lastChild
@@ -1307,21 +1307,21 @@ function se(t, e) {
1307
1307
  };
1308
1308
  }
1309
1309
  // @__NO_SIDE_EFFECTS__
1310
- function To(t, e, n = "svg") {
1310
+ function Eo(t, e, n = "svg") {
1311
1311
  var r = !t.startsWith("<!>"), s = `<${n}>${r ? t : "<!>" + t}</${n}>`, i;
1312
1312
  return () => {
1313
1313
  if (I)
1314
- return ue(C, null), C;
1314
+ return ue(R, null), R;
1315
1315
  if (!i) {
1316
1316
  var o = (
1317
1317
  /** @type {DocumentFragment} */
1318
- Gn(s)
1318
+ Zn(s)
1319
1319
  ), l = (
1320
1320
  /** @type {Element} */
1321
- /* @__PURE__ */ Q(o)
1321
+ /* @__PURE__ */ W(o)
1322
1322
  );
1323
1323
  i = /** @type {Element} */
1324
- /* @__PURE__ */ Q(l);
1324
+ /* @__PURE__ */ W(l);
1325
1325
  }
1326
1326
  var u = (
1327
1327
  /** @type {TemplateNode} */
@@ -1332,13 +1332,13 @@ function To(t, e, n = "svg") {
1332
1332
  }
1333
1333
  function _r() {
1334
1334
  if (I)
1335
- return ue(C, null), C;
1336
- var t = document.createDocumentFragment(), e = document.createComment(""), n = Ue();
1335
+ return ue(R, null), R;
1336
+ var t = document.createDocumentFragment(), e = document.createComment(""), n = Ge();
1337
1337
  return t.append(e, n), ue(e, n), t;
1338
1338
  }
1339
- function j(t, e) {
1339
+ function F(t, e) {
1340
1340
  if (I) {
1341
- E.nodes_end = C, He();
1341
+ T.nodes_end = R, Ue();
1342
1342
  return;
1343
1343
  }
1344
1344
  t !== null && t.before(
@@ -1346,46 +1346,46 @@ function j(t, e) {
1346
1346
  e
1347
1347
  );
1348
1348
  }
1349
- let En = !0;
1350
- function Eo(t, e) {
1349
+ let Tn = !0;
1350
+ function To(t, e) {
1351
1351
  var n = e == null ? "" : typeof e == "object" ? e + "" : e;
1352
1352
  n !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = n, t.nodeValue = n == null ? "" : n + "");
1353
1353
  }
1354
- function Es(t, e) {
1354
+ function Ts(t, e) {
1355
1355
  return Is(t, e);
1356
1356
  }
1357
1357
  function Io(t, e) {
1358
1358
  kn(), e.intro = e.intro ?? !1;
1359
- const n = e.target, r = I, s = C;
1359
+ const n = e.target, r = I, s = R;
1360
1360
  try {
1361
1361
  for (var i = (
1362
1362
  /** @type {TemplateNode} */
1363
- /* @__PURE__ */ Q(n)
1363
+ /* @__PURE__ */ W(n)
1364
1364
  ); i && (i.nodeType !== 8 || /** @type {Comment} */
1365
- i.data !== Hr); )
1365
+ i.data !== Ur); )
1366
1366
  i = /** @type {TemplateNode} */
1367
1367
  /* @__PURE__ */ xe(i);
1368
1368
  if (!i)
1369
- throw Fe;
1369
+ throw qe;
1370
1370
  me(!0), te(
1371
1371
  /** @type {Comment} */
1372
1372
  i
1373
- ), He();
1373
+ ), Ue();
1374
1374
  const o = Is(t, { ...e, anchor: i });
1375
- if (C === null || C.nodeType !== 8 || /** @type {Comment} */
1376
- C.data !== Dn)
1377
- throw Yt(), Fe;
1375
+ if (R === null || R.nodeType !== 8 || /** @type {Comment} */
1376
+ R.data !== Dn)
1377
+ throw Jt(), qe;
1378
1378
  return me(!1), /** @type {Exports} */
1379
1379
  o;
1380
1380
  } catch (o) {
1381
- if (o === Fe)
1382
- return e.recover === !1 && Wi(), kn(), ts(n), me(!1), Es(t, e);
1381
+ if (o === qe)
1382
+ return e.recover === !1 && Vi(), kn(), ts(n), me(!1), Ts(t, e);
1383
1383
  throw o;
1384
1384
  } finally {
1385
1385
  me(r), te(s);
1386
1386
  }
1387
1387
  }
1388
- const je = /* @__PURE__ */ new Map();
1388
+ const Fe = /* @__PURE__ */ new Map();
1389
1389
  function Is(t, { target: e, anchor: n, props: r = {}, events: s, context: i, intro: o = !0 }) {
1390
1390
  kn();
1391
1391
  var l = /* @__PURE__ */ new Set(), u = (f) => {
@@ -1393,19 +1393,19 @@ function Is(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
1393
1393
  var d = f[h];
1394
1394
  if (!l.has(d)) {
1395
1395
  l.add(d);
1396
- var p = zi(d);
1396
+ var p = Li(d);
1397
1397
  e.addEventListener(d, lt, { passive: p });
1398
- var g = je.get(d);
1399
- g === void 0 ? (document.addEventListener(d, lt, { passive: p }), je.set(d, 1)) : je.set(d, g + 1);
1398
+ var g = Fe.get(d);
1399
+ g === void 0 ? (document.addEventListener(d, lt, { passive: p }), Fe.set(d, 1)) : Fe.set(d, g + 1);
1400
1400
  }
1401
1401
  }
1402
1402
  };
1403
- u(jn(Ts)), Tn.add(u);
1403
+ u(Fn(Es)), En.add(u);
1404
1404
  var a = void 0, c = io(() => {
1405
- var f = n ?? e.appendChild(Ue());
1406
- return Ge(() => {
1405
+ var f = n ?? e.appendChild(Ge());
1406
+ return Ze(() => {
1407
1407
  if (i) {
1408
- Te({});
1408
+ Ee({});
1409
1409
  var h = (
1410
1410
  /** @type {ComponentContext} */
1411
1411
  P
@@ -1416,30 +1416,30 @@ function Is(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
1416
1416
  /** @type {TemplateNode} */
1417
1417
  f,
1418
1418
  null
1419
- ), En = o, a = t(f, r) || {}, En = !0, I && (E.nodes_end = C), i && Ee();
1419
+ ), Tn = o, a = t(f, r) || {}, Tn = !0, I && (T.nodes_end = R), i && Te();
1420
1420
  }), () => {
1421
1421
  var p;
1422
1422
  for (var h of l) {
1423
1423
  e.removeEventListener(h, lt);
1424
1424
  var d = (
1425
1425
  /** @type {number} */
1426
- je.get(h)
1426
+ Fe.get(h)
1427
1427
  );
1428
- --d === 0 ? (document.removeEventListener(h, lt), je.delete(h)) : je.set(h, d);
1428
+ --d === 0 ? (document.removeEventListener(h, lt), Fe.delete(h)) : Fe.set(h, d);
1429
1429
  }
1430
- Tn.delete(u), f !== n && ((p = f.parentNode) == null || p.removeChild(f));
1430
+ En.delete(u), f !== n && ((p = f.parentNode) == null || p.removeChild(f));
1431
1431
  };
1432
1432
  });
1433
1433
  return In.set(a, c), a;
1434
1434
  }
1435
1435
  let In = /* @__PURE__ */ new WeakMap();
1436
- function Ro(t, e) {
1436
+ function Co(t, e) {
1437
1437
  const n = In.get(t);
1438
1438
  return n ? (In.delete(t), n(e)) : Promise.resolve();
1439
1439
  }
1440
1440
  function gt(t, e, n = !1) {
1441
- I && He();
1442
- var r = t, s = null, i = null, o = H, l = n ? Qt : 0, u = !1;
1441
+ I && Ue();
1442
+ var r = t, s = null, i = null, o = U, l = n ? Wt : 0, u = !1;
1443
1443
  const a = (f, h = !0) => {
1444
1444
  u = !0, c(h, f);
1445
1445
  }, c = (f, h) => {
@@ -1452,22 +1452,22 @@ function gt(t, e, n = !1) {
1452
1452
  );
1453
1453
  !!o === p && (r = mn(), te(r), me(!1), d = !0);
1454
1454
  }
1455
- o ? (s ? Mt(s) : h && (s = Ge(() => h(r))), i && Ot(i, () => {
1455
+ o ? (s ? Mt(s) : h && (s = Ze(() => h(r))), i && Nt(i, () => {
1456
1456
  i = null;
1457
- })) : (i ? Mt(i) : h && (i = Ge(() => h(r))), s && Ot(s, () => {
1457
+ })) : (i ? Mt(i) : h && (i = Ze(() => h(r))), s && Nt(s, () => {
1458
1458
  s = null;
1459
1459
  })), d && me(!0);
1460
1460
  };
1461
1461
  Xt(() => {
1462
1462
  u = !1, e(a), u || c(null, null);
1463
- }, l), I && (r = C);
1463
+ }, l), I && (r = R);
1464
1464
  }
1465
- function Rs(t, e) {
1465
+ function Cs(t, e) {
1466
1466
  return e;
1467
1467
  }
1468
- function Co(t, e, n, r) {
1468
+ function Ro(t, e, n, r) {
1469
1469
  for (var s = [], i = e.length, o = 0; o < i; o++)
1470
- Vn(e[o].e, s, !0);
1470
+ Hn(e[o].e, s, !0);
1471
1471
  var l = i > 0 && s.length === 0 && n !== null;
1472
1472
  if (l) {
1473
1473
  var u = (
@@ -1487,7 +1487,7 @@ function Co(t, e, n, r) {
1487
1487
  }
1488
1488
  });
1489
1489
  }
1490
- function Cs(t, e, n, r, s, i = null) {
1490
+ function Rs(t, e, n, r, s, i = null) {
1491
1491
  var o = t, l = { flags: e, items: /* @__PURE__ */ new Map(), first: null }, u = (e & Br) !== 0;
1492
1492
  if (u) {
1493
1493
  var a = (
@@ -1496,13 +1496,13 @@ function Cs(t, e, n, r, s, i = null) {
1496
1496
  );
1497
1497
  o = I ? te(
1498
1498
  /** @type {Comment | Text} */
1499
- /* @__PURE__ */ Q(a)
1500
- ) : a.appendChild(Ue());
1499
+ /* @__PURE__ */ W(a)
1500
+ ) : a.appendChild(Ge());
1501
1501
  }
1502
- I && He();
1502
+ I && Ue();
1503
1503
  var c = null, f = !1, h = /* @__PURE__ */ ns(() => {
1504
1504
  var d = n();
1505
- return Gt(d) ? d : d == null ? [] : jn(d);
1505
+ return Zt(d) ? d : d == null ? [] : Fn(d);
1506
1506
  });
1507
1507
  Xt(() => {
1508
1508
  var d = m(h), p = d.length;
@@ -1519,15 +1519,15 @@ function Cs(t, e, n, r, s, i = null) {
1519
1519
  }
1520
1520
  if (I) {
1521
1521
  for (var v = null, _, k = 0; k < p; k++) {
1522
- if (C.nodeType === 8 && /** @type {Comment} */
1523
- C.data === Dn) {
1522
+ if (R.nodeType === 8 && /** @type {Comment} */
1523
+ R.data === Dn) {
1524
1524
  o = /** @type {Comment} */
1525
- C, g = !0, me(!1);
1525
+ R, g = !0, me(!1);
1526
1526
  break;
1527
1527
  }
1528
1528
  var x = d[k], y = r(x, k);
1529
1529
  _ = As(
1530
- C,
1530
+ R,
1531
1531
  l,
1532
1532
  v,
1533
1533
  null,
@@ -1543,7 +1543,7 @@ function Cs(t, e, n, r, s, i = null) {
1543
1543
  if (!I) {
1544
1544
  var w = (
1545
1545
  /** @type {Effect} */
1546
- L
1546
+ z
1547
1547
  );
1548
1548
  Ao(
1549
1549
  d,
@@ -1555,25 +1555,25 @@ function Cs(t, e, n, r, s, i = null) {
1555
1555
  r
1556
1556
  );
1557
1557
  }
1558
- i !== null && (p === 0 ? c ? Mt(c) : c = Ge(() => i(o)) : c !== null && Ot(c, () => {
1558
+ i !== null && (p === 0 ? c ? Mt(c) : c = Ze(() => i(o)) : c !== null && Nt(c, () => {
1559
1559
  c = null;
1560
1560
  })), g && me(!0), m(h);
1561
- }), I && (o = C);
1561
+ }), I && (o = R);
1562
1562
  }
1563
1563
  function Ao(t, e, n, r, s, i, o, l) {
1564
1564
  var ir, or, lr, ar;
1565
- var u = (s & bi) !== 0, a = (s & (Nn | On)) !== 0, c = t.length, f = e.items, h = e.first, d = h, p, g = null, b, v = [], _ = [], k, x, y, w;
1565
+ var u = (s & bi) !== 0, a = (s & (On | Nn)) !== 0, c = t.length, f = e.items, h = e.first, d = h, p, g = null, b, v = [], _ = [], k, x, y, w;
1566
1566
  if (u)
1567
1567
  for (w = 0; w < c; w += 1)
1568
1568
  k = t[w], x = o(k, w), y = f.get(x), y !== void 0 && ((ir = y.a) == null || ir.measure(), (b ?? (b = /* @__PURE__ */ new Set())).add(y));
1569
1569
  for (w = 0; w < c; w += 1) {
1570
1570
  if (k = t[w], x = o(k, w), y = f.get(x), y === void 0) {
1571
- var z = d ? (
1571
+ var L = d ? (
1572
1572
  /** @type {TemplateNode} */
1573
1573
  d.e.nodes_start
1574
1574
  ) : n;
1575
1575
  g = As(
1576
- z,
1576
+ L,
1577
1577
  e,
1578
1578
  g,
1579
1579
  g === null ? e.first : g.next,
@@ -1588,13 +1588,13 @@ function Ao(t, e, n, r, s, i, o, l) {
1588
1588
  if (a && Po(y, k, w, s), y.e.f & ae && (Mt(y.e), u && ((or = y.a) == null || or.unfix(), (b ?? (b = /* @__PURE__ */ new Set())).delete(y))), y !== d) {
1589
1589
  if (p !== void 0 && p.has(y)) {
1590
1590
  if (v.length < _.length) {
1591
- var S = _[0], N;
1591
+ var S = _[0], O;
1592
1592
  g = S.prev;
1593
1593
  var B = v[0], an = v[v.length - 1];
1594
- for (N = 0; N < v.length; N += 1)
1595
- br(v[N], S, n);
1596
- for (N = 0; N < _.length; N += 1)
1597
- p.delete(_[N]);
1594
+ for (O = 0; O < v.length; O += 1)
1595
+ br(v[O], S, n);
1596
+ for (O = 0; O < _.length; O += 1)
1597
+ p.delete(_[O]);
1598
1598
  $e(e, B.prev, an.next), $e(e, g, B), $e(e, an, S), d = S, g = an, w -= 1, v = [], _ = [];
1599
1599
  } else
1600
1600
  p.delete(y), br(y, d, n), $e(e, y.prev, y.next), $e(e, y, g === null ? e.first : g.next), $e(e, g, y), g = y;
@@ -1609,7 +1609,7 @@ function Ao(t, e, n, r, s, i, o, l) {
1609
1609
  v.push(y), g = y, d = y.next;
1610
1610
  }
1611
1611
  if (d !== null || p !== void 0) {
1612
- for (var tt = p === void 0 ? [] : jn(p); d !== null; )
1612
+ for (var tt = p === void 0 ? [] : Fn(p); d !== null; )
1613
1613
  (i || !(d.e.f & ae)) && tt.push(d), d = d.next;
1614
1614
  var cn = tt.length;
1615
1615
  if (cn > 0) {
@@ -1620,7 +1620,7 @@ function Ao(t, e, n, r, s, i, o, l) {
1620
1620
  for (w = 0; w < cn; w += 1)
1621
1621
  (ar = tt[w].a) == null || ar.fix();
1622
1622
  }
1623
- Co(e, tt, pi, f);
1623
+ Ro(e, tt, pi, f);
1624
1624
  }
1625
1625
  }
1626
1626
  u && Ke(() => {
@@ -1628,17 +1628,17 @@ function Ao(t, e, n, r, s, i, o, l) {
1628
1628
  if (b !== void 0)
1629
1629
  for (y of b)
1630
1630
  (cr = y.a) == null || cr.apply();
1631
- }), E.first = e.first && e.first.e, E.last = g && g.e;
1631
+ }), T.first = e.first && e.first.e, T.last = g && g.e;
1632
1632
  }
1633
1633
  function Po(t, e, n, r) {
1634
- r & Nn && bn(t.v, e), r & On ? bn(
1634
+ r & On && bn(t.v, e), r & Nn ? bn(
1635
1635
  /** @type {Value<number>} */
1636
1636
  t.i,
1637
1637
  n
1638
1638
  ) : t.i = n;
1639
1639
  }
1640
1640
  function As(t, e, n, r, s, i, o, l, u, a) {
1641
- var c = (u & Nn) !== 0, f = (u & mi) === 0, h = c ? f ? /* @__PURE__ */ Jt(s) : U(s) : s, d = u & On ? U(o) : o, p = {
1641
+ var c = (u & On) !== 0, f = (u & mi) === 0, h = c ? f ? /* @__PURE__ */ Yt(s) : G(s) : s, d = u & Nn ? G(o) : o, p = {
1642
1642
  i: d,
1643
1643
  v: h,
1644
1644
  k: i,
@@ -1649,7 +1649,7 @@ function As(t, e, n, r, s, i, o, l, u, a) {
1649
1649
  next: r
1650
1650
  };
1651
1651
  try {
1652
- return p.e = Ge(() => l(t, h, d), I), p.e.prev = n && n.e, p.e.next = r && r.e, n === null ? e.first = p : (n.next = p, n.e.next = p.e), r !== null && (r.prev = p, r.e.prev = p.e), p;
1652
+ return p.e = Ze(() => l(t, h, d), I), p.e.prev = n && n.e, p.e.next = r && r.e, n === null ? e.first = p : (n.next = p, n.e.next = p.e), r !== null && (r.prev = p, r.e.prev = p.e), p;
1653
1653
  } finally {
1654
1654
  }
1655
1655
  }
@@ -1678,35 +1678,35 @@ function Ps(t, e, n, r, s) {
1678
1678
  var i = t, o = "", l;
1679
1679
  Xt(() => {
1680
1680
  if (o === (o = e() ?? "")) {
1681
- I && He();
1681
+ I && Ue();
1682
1682
  return;
1683
1683
  }
1684
- l !== void 0 && (he(l), l = void 0), o !== "" && (l = Ge(() => {
1684
+ l !== void 0 && (he(l), l = void 0), o !== "" && (l = Ze(() => {
1685
1685
  if (I) {
1686
- C.data;
1687
- for (var u = He(), a = u; u !== null && (u.nodeType !== 8 || /** @type {Comment} */
1686
+ R.data;
1687
+ for (var u = Ue(), a = u; u !== null && (u.nodeType !== 8 || /** @type {Comment} */
1688
1688
  u.data !== ""); )
1689
1689
  a = u, u = /** @type {TemplateNode} */
1690
1690
  /* @__PURE__ */ xe(u);
1691
1691
  if (u === null)
1692
- throw Yt(), Fe;
1693
- ue(C, a), i = te(u);
1692
+ throw Jt(), qe;
1693
+ ue(R, a), i = te(u);
1694
1694
  return;
1695
1695
  }
1696
1696
  var c = o + "";
1697
1697
  n && (c = `<svg>${c}</svg>`);
1698
- var f = Gn(c);
1698
+ var f = Zn(c);
1699
1699
  if ((n || r) && (f = /** @type {Element} */
1700
- /* @__PURE__ */ Q(f)), ue(
1700
+ /* @__PURE__ */ W(f)), ue(
1701
1701
  /** @type {TemplateNode} */
1702
- /* @__PURE__ */ Q(f),
1702
+ /* @__PURE__ */ W(f),
1703
1703
  /** @type {TemplateNode} */
1704
1704
  f.lastChild
1705
1705
  ), n || r)
1706
- for (; /* @__PURE__ */ Q(f); )
1706
+ for (; /* @__PURE__ */ W(f); )
1707
1707
  i.before(
1708
1708
  /** @type {Node} */
1709
- /* @__PURE__ */ Q(f)
1709
+ /* @__PURE__ */ W(f)
1710
1710
  );
1711
1711
  else
1712
1712
  i.before(f);
@@ -1732,52 +1732,52 @@ function mt(t, e) {
1732
1732
  }
1733
1733
  });
1734
1734
  }
1735
- function zs(t) {
1735
+ function Ls(t) {
1736
1736
  var e, n, r = "";
1737
1737
  if (typeof t == "string" || typeof t == "number") r += t;
1738
1738
  else if (typeof t == "object") if (Array.isArray(t)) {
1739
1739
  var s = t.length;
1740
- for (e = 0; e < s; e++) t[e] && (n = zs(t[e])) && (r && (r += " "), r += n);
1740
+ for (e = 0; e < s; e++) t[e] && (n = Ls(t[e])) && (r && (r += " "), r += n);
1741
1741
  } else for (n in t) t[n] && (r && (r += " "), r += n);
1742
1742
  return r;
1743
1743
  }
1744
- function zo() {
1745
- for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = zs(t)) && (r && (r += " "), r += e);
1744
+ function Lo() {
1745
+ for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = Ls(t)) && (r && (r += " "), r += e);
1746
1746
  return r;
1747
1747
  }
1748
- function Ls(t) {
1749
- return typeof t == "object" ? zo(t) : t ?? "";
1748
+ function zs(t) {
1749
+ return typeof t == "object" ? Lo(t) : t ?? "";
1750
1750
  }
1751
- function Lo(t) {
1751
+ function zo(t) {
1752
1752
  if (I) {
1753
1753
  var e = !1, n = () => {
1754
1754
  if (!e) {
1755
1755
  if (e = !0, t.hasAttribute("value")) {
1756
1756
  var r = t.value;
1757
- Ft(t, "value", null), t.value = r;
1757
+ qt(t, "value", null), t.value = r;
1758
1758
  }
1759
1759
  if (t.hasAttribute("checked")) {
1760
1760
  var s = t.checked;
1761
- Ft(t, "checked", null), t.checked = s;
1761
+ qt(t, "checked", null), t.checked = s;
1762
1762
  }
1763
1763
  }
1764
1764
  };
1765
1765
  t.__on_r = n, uo(n), $s();
1766
1766
  }
1767
1767
  }
1768
- function No(t, e) {
1768
+ function Oo(t, e) {
1769
1769
  e ? t.hasAttribute("selected") || t.setAttribute("selected", "") : t.removeAttribute("selected");
1770
1770
  }
1771
- function Ft(t, e, n, r) {
1771
+ function qt(t, e, n, r) {
1772
1772
  var s = t.__attributes ?? (t.__attributes = {});
1773
- I && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Fi] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && Ns(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
1773
+ I && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[qi] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && Os(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
1774
1774
  }
1775
1775
  function mr(t, e, n, r, s = !1, i = !1, o = !1) {
1776
1776
  var l = e || {}, u = t.tagName === "OPTION";
1777
1777
  for (var a in e)
1778
1778
  a in n || (n[a] = null);
1779
- n.class && (n.class = Ls(n.class));
1780
- var c = Ns(t), f = (
1779
+ n.class && (n.class = zs(n.class));
1780
+ var c = Os(t), f = (
1781
1781
  /** @type {Record<string, unknown>} **/
1782
1782
  t.__attributes ?? (t.__attributes = {})
1783
1783
  );
@@ -1795,8 +1795,8 @@ function mr(t, e, n, r, s = !1, i = !1, o = !1) {
1795
1795
  if (d === "on") {
1796
1796
  const k = {}, x = "$$" + v;
1797
1797
  let y = v.slice(2);
1798
- var p = Ri(y);
1799
- if (Ei(y) && (y = y.slice(0, -7), k.capture = !0), !p && h) {
1798
+ var p = Ci(y);
1799
+ if (Ti(y) && (y = y.slice(0, -7), k.capture = !0), !p && h) {
1800
1800
  if (_ != null) continue;
1801
1801
  t.removeEventListener(y, l[x], k), l[x] = null;
1802
1802
  }
@@ -1804,8 +1804,8 @@ function mr(t, e, n, r, s = !1, i = !1, o = !1) {
1804
1804
  if (p)
1805
1805
  t[`__${y}`] = _, bt([y]);
1806
1806
  else {
1807
- let w = function(z) {
1808
- l[v].call(this, z);
1807
+ let w = function(L) {
1808
+ l[v].call(this, L);
1809
1809
  };
1810
1810
  l[x] = So(y, t, w, k);
1811
1811
  }
@@ -1821,7 +1821,7 @@ function mr(t, e, n, r, s = !1, i = !1, o = !1) {
1821
1821
  else if (v === "__value" || v === "value" && _ != null)
1822
1822
  t.value = t[v] = t.__value = _;
1823
1823
  else if (v === "selected" && u)
1824
- No(
1824
+ Oo(
1825
1825
  /** @type {HTMLOptionElement} */
1826
1826
  t,
1827
1827
  _
@@ -1845,7 +1845,7 @@ function mr(t, e, n, r, s = !1, i = !1, o = !1) {
1845
1845
  }
1846
1846
  } else
1847
1847
  t.removeAttribute(v);
1848
- else b || c.includes(g) && (i || typeof _ != "string") ? t[g] = _ : typeof _ != "function" && (I && (g === "src" || g === "href" || g === "srcset") || Ft(t, g, _));
1848
+ else b || c.includes(g) && (i || typeof _ != "string") ? t[g] = _ : typeof _ != "function" && (I && (g === "src" || g === "href" || g === "srcset") || qt(t, g, _));
1849
1849
  }
1850
1850
  v === "style" && "__styles" in t && (t.__styles = {});
1851
1851
  }
@@ -1854,19 +1854,19 @@ function mr(t, e, n, r, s = !1, i = !1, o = !1) {
1854
1854
  return l;
1855
1855
  }
1856
1856
  var kr = /* @__PURE__ */ new Map();
1857
- function Ns(t) {
1857
+ function Os(t) {
1858
1858
  var e = kr.get(t.nodeName);
1859
1859
  if (e) return e;
1860
1860
  kr.set(t.nodeName, e = []);
1861
1861
  for (var n, r = t, s = Element.prototype; s !== r; ) {
1862
- n = Ur(r);
1862
+ n = Gr(r);
1863
1863
  for (var i in n)
1864
1864
  n[i].set && e.push(i);
1865
- r = qn(r);
1865
+ r = jn(r);
1866
1866
  }
1867
1867
  return e;
1868
1868
  }
1869
- function Oo(t, e, n) {
1869
+ function No(t, e, n) {
1870
1870
  var r = t.__className, s = Mo(e, n);
1871
1871
  I && t.className === s ? t.__className = s : (r !== s || I && t.className !== s) && (t.className = s, t.__className = s);
1872
1872
  }
@@ -1884,15 +1884,15 @@ const Do = () => performance.now(), be = {
1884
1884
  now: () => Do(),
1885
1885
  tasks: /* @__PURE__ */ new Set()
1886
1886
  };
1887
- function Os() {
1887
+ function Ns() {
1888
1888
  const t = be.now();
1889
1889
  be.tasks.forEach((e) => {
1890
1890
  e.c(t) || (be.tasks.delete(e), e.f());
1891
- }), be.tasks.size !== 0 && be.tick(Os);
1891
+ }), be.tasks.size !== 0 && be.tick(Ns);
1892
1892
  }
1893
- function jo(t) {
1893
+ function Fo(t) {
1894
1894
  let e;
1895
- return be.tasks.size === 0 && be.tick(Os), {
1895
+ return be.tasks.size === 0 && be.tick(Ns), {
1896
1896
  promise: new Promise((n) => {
1897
1897
  be.tasks.add(e = { c: t, f: n });
1898
1898
  }),
@@ -1904,7 +1904,7 @@ function jo(t) {
1904
1904
  function xt(t, e) {
1905
1905
  t.dispatchEvent(new CustomEvent(e));
1906
1906
  }
1907
- function qo(t) {
1907
+ function jo(t) {
1908
1908
  if (t === "float") return "cssFloat";
1909
1909
  if (t === "offset") return "cssOffset";
1910
1910
  if (t.startsWith("--")) return t;
@@ -1919,16 +1919,16 @@ function wr(t) {
1919
1919
  for (const r of n) {
1920
1920
  const [s, i] = r.split(":");
1921
1921
  if (!s || i === void 0) break;
1922
- const o = qo(s.trim());
1922
+ const o = jo(s.trim());
1923
1923
  e[o] = i.trim();
1924
1924
  }
1925
1925
  return e;
1926
1926
  }
1927
- const Fo = (t) => t;
1927
+ const qo = (t) => t;
1928
1928
  function Ms(t, e, n, r) {
1929
1929
  var s = (t & $i) !== 0, i = "both", o, l = e.inert, u = e.style.overflow, a, c;
1930
1930
  function f() {
1931
- var b = L, v = E;
1931
+ var b = z, v = T;
1932
1932
  de(null), re(null);
1933
1933
  try {
1934
1934
  return o ?? (o = n()(e, (r == null ? void 0 : r()) ?? /** @type {P} */
@@ -1942,12 +1942,12 @@ function Ms(t, e, n, r) {
1942
1942
  var h = {
1943
1943
  is_global: s,
1944
1944
  in() {
1945
- e.inert = l, xt(e, "introstart"), a = Rn(e, f(), c, 1, () => {
1945
+ e.inert = l, xt(e, "introstart"), a = Cn(e, f(), c, 1, () => {
1946
1946
  xt(e, "introend"), a == null || a.abort(), a = o = void 0, e.style.overflow = u;
1947
1947
  });
1948
1948
  },
1949
1949
  out(b) {
1950
- e.inert = !0, xt(e, "outrostart"), c = Rn(e, f(), a, 0, () => {
1950
+ e.inert = !0, xt(e, "outrostart"), c = Cn(e, f(), a, 0, () => {
1951
1951
  xt(e, "outroend"), b == null || b();
1952
1952
  });
1953
1953
  },
@@ -1956,32 +1956,32 @@ function Ms(t, e, n, r) {
1956
1956
  }
1957
1957
  }, d = (
1958
1958
  /** @type {Effect} */
1959
- E
1959
+ T
1960
1960
  );
1961
- if ((d.transitions ?? (d.transitions = [])).push(h), En) {
1961
+ if ((d.transitions ?? (d.transitions = [])).push(h), Tn) {
1962
1962
  var p = s;
1963
1963
  if (!p) {
1964
1964
  for (var g = (
1965
1965
  /** @type {Effect | null} */
1966
1966
  d.parent
1967
- ); g && g.f & Qt; )
1968
- for (; (g = g.parent) && !(g.f & Zt); )
1967
+ ); g && g.f & Wt; )
1968
+ for (; (g = g.parent) && !(g.f & Qt); )
1969
1969
  ;
1970
- p = !g || (g.f & Wr) !== 0;
1970
+ p = !g || (g.f & Vr) !== 0;
1971
1971
  }
1972
1972
  p && Kt(() => {
1973
1973
  pe(() => h.in());
1974
1974
  });
1975
1975
  }
1976
1976
  }
1977
- function Rn(t, e, n, r, s) {
1977
+ function Cn(t, e, n, r, s) {
1978
1978
  var i = r === 1;
1979
1979
  if (Mi(e)) {
1980
1980
  var o, l = !1;
1981
1981
  return Ke(() => {
1982
1982
  if (!l) {
1983
1983
  var b = e({ direction: i ? "in" : "out" });
1984
- o = Rn(t, b, n, r, s);
1984
+ o = Cn(t, b, n, r, s);
1985
1985
  }
1986
1986
  }), {
1987
1987
  abort: () => {
@@ -1999,7 +1999,7 @@ function Rn(t, e, n, r, s) {
1999
1999
  reset: nt,
2000
2000
  t: () => r
2001
2001
  };
2002
- const { delay: u = 0, css: a, tick: c, easing: f = Fo } = e;
2002
+ const { delay: u = 0, css: a, tick: c, easing: f = qo } = e;
2003
2003
  var h = [];
2004
2004
  if (i && n === void 0 && (c && c(0, 1), a)) {
2005
2005
  var d = wr(a(0, 1));
@@ -2017,20 +2017,20 @@ function Rn(t, e, n, r, s) {
2017
2017
  var x = !1;
2018
2018
  if (a)
2019
2019
  for (var y = Math.ceil(_ / 16.666666666666668), w = 0; w <= y; w += 1) {
2020
- var z = b + v * f(w / y), S = wr(a(z, 1 - z));
2020
+ var L = b + v * f(w / y), S = wr(a(L, 1 - L));
2021
2021
  k.push(S), x || (x = S.overflow === "hidden");
2022
2022
  }
2023
2023
  x && (t.style.overflow = "hidden"), p = () => {
2024
- var N = (
2024
+ var O = (
2025
2025
  /** @type {number} */
2026
2026
  /** @type {globalThis.Animation} */
2027
2027
  g.currentTime
2028
2028
  );
2029
- return b + v * f(N / _);
2030
- }, c && jo(() => {
2029
+ return b + v * f(O / _);
2030
+ }, c && Fo(() => {
2031
2031
  if (g.playState !== "running") return !1;
2032
- var N = p();
2033
- return c(N, 1 - N), !0;
2032
+ var O = p();
2033
+ return c(O, 1 - O), !0;
2034
2034
  });
2035
2035
  }
2036
2036
  g = t.animate(k, { duration: _, fill: "forwards" }), g.onfinish = () => {
@@ -2061,7 +2061,7 @@ function Bo(t, e, n = e) {
2061
2061
  // then use the updated value from the input instead.
2062
2062
  (I && t.defaultValue !== t.value || // If defaultValue is set, then value == defaultValue
2063
2063
  // TODO Svelte 6: remove input.value check and set to empty string?
2064
- pe(e) == null && t.value) && n(dn(t) ? pn(t.value) : t.value), Ye(() => {
2064
+ pe(e) == null && t.value) && n(dn(t) ? pn(t.value) : t.value), Je(() => {
2065
2065
  var s = e();
2066
2066
  dn(t) && s === pn(t.value) || t.type === "date" && !s && !t.value || s !== t.value && (t.value = s ?? "");
2067
2067
  });
@@ -2076,10 +2076,10 @@ function pn(t) {
2076
2076
  function xr(t, e) {
2077
2077
  return t === e || (t == null ? void 0 : t[Ae]) === e;
2078
2078
  }
2079
- function Vo(t = {}, e, n, r) {
2079
+ function Ho(t = {}, e, n, r) {
2080
2080
  return Kt(() => {
2081
2081
  var s, i;
2082
- return Ye(() => {
2082
+ return Je(() => {
2083
2083
  s = i, i = [], pe(() => {
2084
2084
  t !== n(...i) && (e(t, ...i), s && xr(n(...s), t) && e(null, ...s));
2085
2085
  });
@@ -2090,7 +2090,7 @@ function Vo(t = {}, e, n, r) {
2090
2090
  };
2091
2091
  }), t;
2092
2092
  }
2093
- function Ho(t = !1) {
2093
+ function Uo(t = !1) {
2094
2094
  const e = (
2095
2095
  /** @type {ComponentContextLegacy} */
2096
2096
  P
@@ -2129,7 +2129,7 @@ function yr(t, e) {
2129
2129
  e();
2130
2130
  }
2131
2131
  function Ds(t) {
2132
- P === null && Hn(), Qe && P.l !== null ? Zo(P).m.push(t) : ft(() => {
2132
+ P === null && Un(), We && P.l !== null ? Qo(P).m.push(t) : ft(() => {
2133
2133
  const e = pe(t);
2134
2134
  if (typeof e == "function") return (
2135
2135
  /** @type {() => void} */
@@ -2137,15 +2137,15 @@ function Ds(t) {
2137
2137
  );
2138
2138
  });
2139
2139
  }
2140
- function Uo(t) {
2141
- P === null && Hn(), Ds(() => () => pe(t));
2140
+ function Go(t) {
2141
+ P === null && Un(), Ds(() => () => pe(t));
2142
2142
  }
2143
- function Go(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2143
+ function Zo(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2144
2144
  return new CustomEvent(t, { detail: e, bubbles: n, cancelable: r });
2145
2145
  }
2146
- function Wo() {
2146
+ function Vo() {
2147
2147
  const t = P;
2148
- return t === null && Hn(), (e, n, r) => {
2148
+ return t === null && Un(), (e, n, r) => {
2149
2149
  var i;
2150
2150
  const s = (
2151
2151
  /** @type {Record<string, Function | Function[]>} */
@@ -2155,7 +2155,7 @@ function Wo() {
2155
2155
  ]
2156
2156
  );
2157
2157
  if (s) {
2158
- const o = Gt(s) ? s.slice() : [s], l = Go(
2158
+ const o = Zt(s) ? s.slice() : [s], l = Zo(
2159
2159
  /** @type {string} */
2160
2160
  e,
2161
2161
  n,
@@ -2168,7 +2168,7 @@ function Wo() {
2168
2168
  return !0;
2169
2169
  };
2170
2170
  }
2171
- function Zo(t) {
2171
+ function Qo(t) {
2172
2172
  var e = (
2173
2173
  /** @type {ComponentContextLegacy} */
2174
2174
  t.l
@@ -2176,7 +2176,7 @@ function Zo(t) {
2176
2176
  return e.u ?? (e.u = { a: [], b: [], m: [] });
2177
2177
  }
2178
2178
  let yt = !1;
2179
- function Qo(t) {
2179
+ function Wo(t) {
2180
2180
  var e = yt;
2181
2181
  try {
2182
2182
  return yt = !1, [t(), yt];
@@ -2184,7 +2184,7 @@ function Qo(t) {
2184
2184
  yt = e;
2185
2185
  }
2186
2186
  }
2187
- const Jo = {
2187
+ const Yo = {
2188
2188
  get(t, e) {
2189
2189
  if (!t.exclude.includes(e))
2190
2190
  return m(t.version), e in t.special ? t.special[e]() : t.props[e];
@@ -2198,7 +2198,7 @@ const Jo = {
2198
2198
  },
2199
2199
  /** @type {string} */
2200
2200
  e,
2201
- Vr
2201
+ Hr
2202
2202
  )), t.special[e](n), $n(t.version), !0;
2203
2203
  },
2204
2204
  getOwnPropertyDescriptor(t, e) {
@@ -2219,11 +2219,11 @@ const Jo = {
2219
2219
  return Reflect.ownKeys(t.props).filter((e) => !t.exclude.includes(e));
2220
2220
  }
2221
2221
  };
2222
- function Yo(t, e) {
2223
- return new Proxy({ props: t, exclude: e, special: {}, version: U(0) }, Jo);
2222
+ function Jo(t, e) {
2223
+ return new Proxy({ props: t, exclude: e, special: {}, version: G(0) }, Yo);
2224
2224
  }
2225
2225
  function $r(t) {
2226
- for (var e = E, n = E; e !== null && !(e.f & (ge | Le)); )
2226
+ for (var e = T, n = T; e !== null && !(e.f & (ge | ze)); )
2227
2227
  e = e.parent;
2228
2228
  try {
2229
2229
  return re(e), t();
@@ -2232,14 +2232,14 @@ function $r(t) {
2232
2232
  }
2233
2233
  }
2234
2234
  function ne(t, e, n, r) {
2235
- var z;
2236
- var s = (n & ki) !== 0, i = !Qe || (n & wi) !== 0, o = (n & xi) !== 0, l = (n & yi) !== 0, u = !1, a;
2237
- o ? [a, u] = Qo(() => (
2235
+ var L;
2236
+ var s = (n & ki) !== 0, i = !We || (n & wi) !== 0, o = (n & xi) !== 0, l = (n & yi) !== 0, u = !1, a;
2237
+ o ? [a, u] = Wo(() => (
2238
2238
  /** @type {V} */
2239
2239
  t[e]
2240
2240
  )) : a = /** @type {V} */
2241
2241
  t[e];
2242
- var c = Ae in t || Qr in t, f = o && (((z = Ce(t, e)) == null ? void 0 : z.set) ?? (c && e in t && ((S) => t[e] = S))) || void 0, h = (
2242
+ var c = Ae in t || Wr in t, f = o && (((L = Re(t, e)) == null ? void 0 : L.set) ?? (c && e in t && ((S) => t[e] = S))) || void 0, h = (
2243
2243
  /** @type {V} */
2244
2244
  r
2245
2245
  ), d = !0, p = !1, g = () => (p = !0, d && (d = !1, l ? h = pe(
@@ -2247,7 +2247,7 @@ function ne(t, e, n, r) {
2247
2247
  r
2248
2248
  ) : h = /** @type {V} */
2249
2249
  r), h);
2250
- a === void 0 && r !== void 0 && (f && i && Zi(), a = g(), f && f(a));
2250
+ a === void 0 && r !== void 0 && (f && i && Qi(), a = g(), f && f(a));
2251
2251
  var b;
2252
2252
  if (i)
2253
2253
  b = () => {
@@ -2264,30 +2264,30 @@ function ne(t, e, n, r) {
2264
2264
  t[e]
2265
2265
  ))
2266
2266
  );
2267
- v.f |= ji, b = () => {
2267
+ v.f |= Fi, b = () => {
2268
2268
  var S = m(v);
2269
2269
  return S !== void 0 && (h = /** @type {V} */
2270
2270
  void 0), S === void 0 ? h : S;
2271
2271
  };
2272
2272
  }
2273
- if (!(n & Vr))
2273
+ if (!(n & Hr))
2274
2274
  return b;
2275
2275
  if (f) {
2276
2276
  var _ = t.$$legacy;
2277
- return function(S, N) {
2278
- return arguments.length > 0 ? ((!i || !N || _ || u) && f(N ? b() : S), S) : b();
2277
+ return function(S, O) {
2278
+ return arguments.length > 0 ? ((!i || !O || _ || u) && f(O ? b() : S), S) : b();
2279
2279
  };
2280
2280
  }
2281
- var k = !1, x = !1, y = /* @__PURE__ */ Jt(a), w = $r(
2281
+ var k = !1, x = !1, y = /* @__PURE__ */ Yt(a), w = $r(
2282
2282
  () => /* @__PURE__ */ ut(() => {
2283
- var S = b(), N = m(y);
2284
- return k ? (k = !1, x = !0, N) : (x = !1, y.v = S);
2283
+ var S = b(), O = m(y);
2284
+ return k ? (k = !1, x = !0, O) : (x = !1, y.v = S);
2285
2285
  })
2286
2286
  );
2287
- return s || (w.equals = Fn), function(S, N) {
2287
+ return s || (w.equals = qn), function(S, O) {
2288
2288
  if (arguments.length > 0) {
2289
- const B = N ? m(w) : i && o ? O(S) : S;
2290
- return w.equals(B) || (k = !0, T(y, B), p && h !== void 0 && (h = B), pe(() => m(w))), S;
2289
+ const B = O ? m(w) : i && o ? N(S) : S;
2290
+ return w.equals(B) || (k = !0, E(y, B), p && h !== void 0 && (h = B), pe(() => m(w))), S;
2291
2291
  }
2292
2292
  return m(w);
2293
2293
  };
@@ -2309,7 +2309,7 @@ class Xo {
2309
2309
  un(this, K);
2310
2310
  var i;
2311
2311
  var n = /* @__PURE__ */ new Map(), r = (o, l) => {
2312
- var u = /* @__PURE__ */ Jt(l);
2312
+ var u = /* @__PURE__ */ Yt(l);
2313
2313
  return n.set(o, u), u;
2314
2314
  };
2315
2315
  const s = new Proxy(
@@ -2319,42 +2319,42 @@ class Xo {
2319
2319
  return m(n.get(l) ?? r(l, Reflect.get(o, l)));
2320
2320
  },
2321
2321
  has(o, l) {
2322
- return l === Qr ? !0 : (m(n.get(l) ?? r(l, Reflect.get(o, l))), Reflect.has(o, l));
2322
+ return l === Wr ? !0 : (m(n.get(l) ?? r(l, Reflect.get(o, l))), Reflect.has(o, l));
2323
2323
  },
2324
2324
  set(o, l, u) {
2325
- return T(n.get(l) ?? r(l, u), u), Reflect.set(o, l, u);
2325
+ return E(n.get(l) ?? r(l, u), u), Reflect.set(o, l, u);
2326
2326
  }
2327
2327
  }
2328
2328
  );
2329
- fn(this, K, (e.hydrate ? Io : Es)(e.component, {
2329
+ fn(this, K, (e.hydrate ? Io : Ts)(e.component, {
2330
2330
  target: e.target,
2331
2331
  anchor: e.anchor,
2332
2332
  props: s,
2333
2333
  context: e.context,
2334
2334
  intro: e.intro ?? !1,
2335
2335
  recover: e.recover
2336
- })), (!((i = e == null ? void 0 : e.props) != null && i.$$host) || e.sync === !1) && W(), fn(this, _e, s.$$events);
2337
- for (const o of Object.keys(V(this, K)))
2336
+ })), (!((i = e == null ? void 0 : e.props) != null && i.$$host) || e.sync === !1) && V(), fn(this, _e, s.$$events);
2337
+ for (const o of Object.keys(H(this, K)))
2338
2338
  o === "$set" || o === "$destroy" || o === "$on" || At(this, o, {
2339
2339
  get() {
2340
- return V(this, K)[o];
2340
+ return H(this, K)[o];
2341
2341
  },
2342
2342
  /** @param {any} value */
2343
2343
  set(l) {
2344
- V(this, K)[o] = l;
2344
+ H(this, K)[o] = l;
2345
2345
  },
2346
2346
  enumerable: !0
2347
2347
  });
2348
- V(this, K).$set = /** @param {Record<string, any>} next */
2348
+ H(this, K).$set = /** @param {Record<string, any>} next */
2349
2349
  (o) => {
2350
2350
  Object.assign(s, o);
2351
- }, V(this, K).$destroy = () => {
2352
- Ro(V(this, K));
2351
+ }, H(this, K).$destroy = () => {
2352
+ Co(H(this, K));
2353
2353
  };
2354
2354
  }
2355
2355
  /** @param {Record<string, any>} props */
2356
2356
  $set(e) {
2357
- V(this, K).$set(e);
2357
+ H(this, K).$set(e);
2358
2358
  }
2359
2359
  /**
2360
2360
  * @param {string} event
@@ -2362,22 +2362,22 @@ class Xo {
2362
2362
  * @returns {any}
2363
2363
  */
2364
2364
  $on(e, n) {
2365
- V(this, _e)[e] = V(this, _e)[e] || [];
2365
+ H(this, _e)[e] = H(this, _e)[e] || [];
2366
2366
  const r = (...s) => n.call(this, ...s);
2367
- return V(this, _e)[e].push(r), () => {
2368
- V(this, _e)[e] = V(this, _e)[e].filter(
2367
+ return H(this, _e)[e].push(r), () => {
2368
+ H(this, _e)[e] = H(this, _e)[e].filter(
2369
2369
  /** @param {any} fn */
2370
2370
  (s) => s !== r
2371
2371
  );
2372
2372
  };
2373
2373
  }
2374
2374
  $destroy() {
2375
- V(this, K).$destroy();
2375
+ H(this, K).$destroy();
2376
2376
  }
2377
2377
  }
2378
2378
  _e = new WeakMap(), K = new WeakMap();
2379
- let js;
2380
- typeof HTMLElement == "function" && (js = class extends HTMLElement {
2379
+ let Fs;
2380
+ typeof HTMLElement == "function" && (Fs = class extends HTMLElement {
2381
2381
  /**
2382
2382
  * @param {*} $$componentCtor
2383
2383
  * @param {*} $$slots
@@ -2435,7 +2435,7 @@ typeof HTMLElement == "function" && (js = class extends HTMLElement {
2435
2435
  let e = function(s) {
2436
2436
  return (i) => {
2437
2437
  const o = document.createElement("slot");
2438
- s !== "default" && (o.name = s), j(i, o);
2438
+ s !== "default" && (o.name = s), F(i, o);
2439
2439
  };
2440
2440
  };
2441
2441
  if (await Promise.resolve(), !this.$$cn || this.$$c)
@@ -2445,7 +2445,7 @@ typeof HTMLElement == "function" && (js = class extends HTMLElement {
2445
2445
  s in r && (s === "default" && !this.$$d.children ? (this.$$d.children = e(s), n.default = !0) : n[s] = e(s));
2446
2446
  for (const s of this.attributes) {
2447
2447
  const i = this.$$g_p(s.name);
2448
- i in this.$$d || (this.$$d[i] = Et(i, s.value, this.$$p_d, "toProp"));
2448
+ i in this.$$d || (this.$$d[i] = Tt(i, s.value, this.$$p_d, "toProp"));
2449
2449
  }
2450
2450
  for (const s in this.$$p_d)
2451
2451
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
@@ -2458,13 +2458,13 @@ typeof HTMLElement == "function" && (js = class extends HTMLElement {
2458
2458
  $$host: this
2459
2459
  }
2460
2460
  }), this.$$me = so(() => {
2461
- Ye(() => {
2461
+ Je(() => {
2462
2462
  var s;
2463
2463
  this.$$r = !0;
2464
- for (const i of Ct(this.$$c)) {
2464
+ for (const i of Rt(this.$$c)) {
2465
2465
  if (!((s = this.$$p_d[i]) != null && s.reflect)) continue;
2466
2466
  this.$$d[i] = this.$$c[i];
2467
- const o = Et(
2467
+ const o = Tt(
2468
2468
  i,
2469
2469
  this.$$d[i],
2470
2470
  this.$$p_d,
@@ -2492,7 +2492,7 @@ typeof HTMLElement == "function" && (js = class extends HTMLElement {
2492
2492
  */
2493
2493
  attributeChangedCallback(e, n, r) {
2494
2494
  var s;
2495
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Et(e, r, this.$$p_d, "toProp"), (s = this.$$c) == null || s.$set({ [e]: this.$$d[e] }));
2495
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Tt(e, r, this.$$p_d, "toProp"), (s = this.$$c) == null || s.$set({ [e]: this.$$d[e] }));
2496
2496
  }
2497
2497
  disconnectedCallback() {
2498
2498
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2503,12 +2503,12 @@ typeof HTMLElement == "function" && (js = class extends HTMLElement {
2503
2503
  * @param {string} attribute_name
2504
2504
  */
2505
2505
  $$g_p(e) {
2506
- return Ct(this.$$p_d).find(
2506
+ return Rt(this.$$p_d).find(
2507
2507
  (n) => this.$$p_d[n].attribute === e || !this.$$p_d[n].attribute && n.toLowerCase() === e
2508
2508
  ) || e;
2509
2509
  }
2510
2510
  });
2511
- function Et(t, e, n, r) {
2511
+ function Tt(t, e, n, r) {
2512
2512
  var i;
2513
2513
  const s = (i = n[t]) == null ? void 0 : i.type;
2514
2514
  if (e = s === "Boolean" && typeof e != "boolean" ? e != null : e, !r || !n[t])
@@ -2548,27 +2548,27 @@ function el(t) {
2548
2548
  }), e;
2549
2549
  }
2550
2550
  function Me(t, e, n, r, s, i) {
2551
- let o = class extends js {
2551
+ let o = class extends Fs {
2552
2552
  constructor() {
2553
2553
  super(t, n, s), this.$$p_d = e;
2554
2554
  }
2555
2555
  static get observedAttributes() {
2556
- return Ct(e).map(
2556
+ return Rt(e).map(
2557
2557
  (l) => (e[l].attribute || l).toLowerCase()
2558
2558
  );
2559
2559
  }
2560
2560
  };
2561
- return Ct(e).forEach((l) => {
2561
+ return Rt(e).forEach((l) => {
2562
2562
  At(o.prototype, l, {
2563
2563
  get() {
2564
2564
  return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
2565
2565
  },
2566
2566
  set(u) {
2567
2567
  var f;
2568
- u = Et(l, u, e), this.$$d[l] = u;
2568
+ u = Tt(l, u, e), this.$$d[l] = u;
2569
2569
  var a = this.$$c;
2570
2570
  if (a) {
2571
- var c = (f = Ce(a, l)) == null ? void 0 : f.get;
2571
+ var c = (f = Re(a, l)) == null ? void 0 : f.get;
2572
2572
  c ? a[l] = u : a.$set({ [l]: u });
2573
2573
  }
2574
2574
  }
@@ -2583,7 +2583,7 @@ function Me(t, e, n, r, s, i) {
2583
2583
  }), t.element = /** @type {any} */
2584
2584
  o, o;
2585
2585
  }
2586
- function qs(t) {
2586
+ function js(t) {
2587
2587
  const e = t - 1;
2588
2588
  return e * e * e + 1;
2589
2589
  }
@@ -2595,7 +2595,7 @@ function Sr(t) {
2595
2595
  "px"
2596
2596
  ];
2597
2597
  }
2598
- function tl(t, { delay: e = 0, duration: n = 400, easing: r = qs, x: s = 0, y: i = 0, opacity: o = 0 } = {}) {
2598
+ function tl(t, { delay: e = 0, duration: n = 400, easing: r = js, x: s = 0, y: i = 0, opacity: o = 0 } = {}) {
2599
2599
  const l = getComputedStyle(t), u = +l.opacity, a = l.transform === "none" ? "" : l.transform, c = u * (1 - o), [f, h] = Sr(s), [d, p] = Sr(i);
2600
2600
  return {
2601
2601
  delay: e,
@@ -2606,7 +2606,7 @@ function tl(t, { delay: e = 0, duration: n = 400, easing: r = qs, x: s = 0, y: i
2606
2606
  opacity: ${u - c * b}`
2607
2607
  };
2608
2608
  }
2609
- function nl(t, { delay: e = 0, duration: n = 400, easing: r = qs, axis: s = "y" } = {}) {
2609
+ function nl(t, { delay: e = 0, duration: n = 400, easing: r = js, axis: s = "y" } = {}) {
2610
2610
  const i = getComputedStyle(t), o = +i.opacity, l = s === "y" ? "height" : "width", u = parseFloat(i[l]), a = s === "y" ? ["top", "bottom"] : ["left", "right"], c = a.map(
2611
2611
  (v) => (
2612
2612
  /** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
@@ -2671,7 +2671,7 @@ class ke {
2671
2671
  }
2672
2672
  }
2673
2673
  eo();
2674
- const Fs = /^[a-z0-9]+(-[a-z0-9]+)*$/, rn = (t, e, n, r = "") => {
2674
+ const qs = /^[a-z0-9]+(-[a-z0-9]+)*$/, rn = (t, e, n, r = "") => {
2675
2675
  const s = t.split(":");
2676
2676
  if (t.slice(0, 1) === "@") {
2677
2677
  if (s.length < 2 || s.length > 3)
@@ -2723,7 +2723,7 @@ const Fs = /^[a-z0-9]+(-[a-z0-9]+)*$/, rn = (t, e, n, r = "") => {
2723
2723
  }), sn = Object.freeze({
2724
2724
  ...Bs,
2725
2725
  ...Bt
2726
- }), Cn = Object.freeze({
2726
+ }), Rn = Object.freeze({
2727
2727
  ...sn,
2728
2728
  body: "",
2729
2729
  hidden: !1
@@ -2734,9 +2734,9 @@ function rl(t, e) {
2734
2734
  const r = ((t.rotate || 0) + (e.rotate || 0)) % 4;
2735
2735
  return r && (n.rotate = r), n;
2736
2736
  }
2737
- function Tr(t, e) {
2737
+ function Er(t, e) {
2738
2738
  const n = rl(t, e);
2739
- for (const r in Cn)
2739
+ for (const r in Rn)
2740
2740
  r in Bt ? r in t && !(r in n) && (n[r] = Bt[r]) : r in e ? n[r] = e[r] : r in t && (n[r] = t[r]);
2741
2741
  return n;
2742
2742
  }
@@ -2758,14 +2758,14 @@ function il(t, e, n) {
2758
2758
  const r = t.icons, s = t.aliases || /* @__PURE__ */ Object.create(null);
2759
2759
  let i = {};
2760
2760
  function o(l) {
2761
- i = Tr(
2761
+ i = Er(
2762
2762
  r[l] || s[l],
2763
2763
  i
2764
2764
  );
2765
2765
  }
2766
- return o(e), n.forEach(o), Tr(t, i);
2766
+ return o(e), n.forEach(o), Er(t, i);
2767
2767
  }
2768
- function Vs(t, e) {
2768
+ function Hs(t, e) {
2769
2769
  const n = [];
2770
2770
  if (typeof t != "object" || typeof t.icons != "object")
2771
2771
  return n;
@@ -2791,7 +2791,7 @@ function gn(t, e) {
2791
2791
  return !1;
2792
2792
  return !0;
2793
2793
  }
2794
- function Hs(t) {
2794
+ function Us(t) {
2795
2795
  if (typeof t != "object" || t === null)
2796
2796
  return null;
2797
2797
  const e = t;
@@ -2806,7 +2806,7 @@ function Hs(t) {
2806
2806
  typeof i.body != "string" || // Check other props
2807
2807
  !gn(
2808
2808
  i,
2809
- Cn
2809
+ Rn
2810
2810
  )
2811
2811
  )
2812
2812
  return null;
@@ -2820,14 +2820,14 @@ function Hs(t) {
2820
2820
  typeof o != "string" || !n[o] && !r[o] || // Check other props
2821
2821
  !gn(
2822
2822
  i,
2823
- Cn
2823
+ Rn
2824
2824
  )
2825
2825
  )
2826
2826
  return null;
2827
2827
  }
2828
2828
  return e;
2829
2829
  }
2830
- const Er = /* @__PURE__ */ Object.create(null);
2830
+ const Tr = /* @__PURE__ */ Object.create(null);
2831
2831
  function ll(t, e) {
2832
2832
  return {
2833
2833
  provider: t,
@@ -2836,12 +2836,12 @@ function ll(t, e) {
2836
2836
  missing: /* @__PURE__ */ new Set()
2837
2837
  };
2838
2838
  }
2839
- function We(t, e) {
2840
- const n = Er[t] || (Er[t] = /* @__PURE__ */ Object.create(null));
2839
+ function Ve(t, e) {
2840
+ const n = Tr[t] || (Tr[t] = /* @__PURE__ */ Object.create(null));
2841
2841
  return n[e] || (n[e] = ll(t, e));
2842
2842
  }
2843
- function Us(t, e) {
2844
- return Hs(e) ? Vs(e, (n, r) => {
2843
+ function Gs(t, e) {
2844
+ return Us(e) ? Hs(e, (n, r) => {
2845
2845
  r ? t.icons[n] = r : t.missing.add(n);
2846
2846
  }) : [];
2847
2847
  }
@@ -2854,13 +2854,13 @@ function al(t, e, n) {
2854
2854
  return !1;
2855
2855
  }
2856
2856
  let vt = !1;
2857
- function Gs(t) {
2857
+ function Zs(t) {
2858
2858
  return typeof t == "boolean" && (vt = t), vt;
2859
2859
  }
2860
2860
  function cl(t) {
2861
2861
  const e = typeof t == "string" ? rn(t, !0, vt) : t;
2862
2862
  if (e) {
2863
- const n = We(e.provider, e.prefix), r = e.name;
2863
+ const n = Ve(e.provider, e.prefix), r = e.name;
2864
2864
  return n.icons[r] || (n.missing.has(r) ? null : void 0);
2865
2865
  }
2866
2866
  }
@@ -2868,7 +2868,7 @@ function ul(t, e) {
2868
2868
  const n = rn(t, !0, vt);
2869
2869
  if (!n)
2870
2870
  return !1;
2871
- const r = We(n.provider, n.prefix);
2871
+ const r = Ve(n.provider, n.prefix);
2872
2872
  return e ? al(r, n.name, e) : (r.missing.add(n.name), !0);
2873
2873
  }
2874
2874
  function fl(t, e) {
@@ -2876,7 +2876,7 @@ function fl(t, e) {
2876
2876
  return !1;
2877
2877
  if (typeof e != "string" && (e = t.provider || ""), vt && !e && !t.prefix) {
2878
2878
  let s = !1;
2879
- return Hs(t) && (t.prefix = "", Vs(t, (i, o) => {
2879
+ return Us(t) && (t.prefix = "", Hs(t, (i, o) => {
2880
2880
  ul(i, o) && (s = !0);
2881
2881
  })), s;
2882
2882
  }
@@ -2887,15 +2887,15 @@ function fl(t, e) {
2887
2887
  name: "a"
2888
2888
  }))
2889
2889
  return !1;
2890
- const r = We(e, n);
2891
- return !!Us(r, t);
2890
+ const r = Ve(e, n);
2891
+ return !!Gs(r, t);
2892
2892
  }
2893
- const Ws = Object.freeze({
2893
+ const Vs = Object.freeze({
2894
2894
  width: null,
2895
2895
  height: null
2896
- }), Zs = Object.freeze({
2896
+ }), Qs = Object.freeze({
2897
2897
  // Dimensions
2898
- ...Ws,
2898
+ ...Vs,
2899
2899
  // Transformations
2900
2900
  ...Bt
2901
2901
  }), hl = /(-?[0-9.]*[0-9]+[0-9.]*)/g, dl = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
@@ -2952,7 +2952,7 @@ function bl(t, e) {
2952
2952
  ...sn,
2953
2953
  ...t
2954
2954
  }, r = {
2955
- ...Zs,
2955
+ ...Qs,
2956
2956
  ...e
2957
2957
  }, s = {
2958
2958
  left: n.left,
@@ -3034,7 +3034,7 @@ function yl(t, e) {
3034
3034
  function Pn(t) {
3035
3035
  return An[t] || An[""];
3036
3036
  }
3037
- function Wn(t) {
3037
+ function Vn(t) {
3038
3038
  let e;
3039
3039
  if (typeof t.resources == "string")
3040
3040
  e = [t.resources];
@@ -3059,21 +3059,21 @@ function Wn(t) {
3059
3059
  dataAfterTimeout: t.dataAfterTimeout !== !1
3060
3060
  };
3061
3061
  }
3062
- const Zn = /* @__PURE__ */ Object.create(null), rt = [
3062
+ const Qn = /* @__PURE__ */ Object.create(null), rt = [
3063
3063
  "https://api.simplesvg.com",
3064
3064
  "https://api.unisvg.com"
3065
- ], Rt = [];
3065
+ ], Ct = [];
3066
3066
  for (; rt.length > 0; )
3067
- rt.length === 1 || Math.random() > 0.5 ? Rt.push(rt.shift()) : Rt.push(rt.pop());
3068
- Zn[""] = Wn({
3069
- resources: ["https://api.iconify.design"].concat(Rt)
3067
+ rt.length === 1 || Math.random() > 0.5 ? Ct.push(rt.shift()) : Ct.push(rt.pop());
3068
+ Qn[""] = Vn({
3069
+ resources: ["https://api.iconify.design"].concat(Ct)
3070
3070
  });
3071
3071
  function $l(t, e) {
3072
- const n = Wn(e);
3073
- return n === null ? !1 : (Zn[t] = n, !0);
3072
+ const n = Vn(e);
3073
+ return n === null ? !1 : (Qn[t] = n, !0);
3074
3074
  }
3075
- function Qn(t) {
3076
- return Zn[t];
3075
+ function Wn(t) {
3076
+ return Qn[t];
3077
3077
  }
3078
3078
  const Sl = () => {
3079
3079
  let t;
@@ -3083,9 +3083,9 @@ const Sl = () => {
3083
3083
  } catch {
3084
3084
  }
3085
3085
  };
3086
- let Rr = Sl();
3087
- function Tl(t, e) {
3088
- const n = Qn(t);
3086
+ let Cr = Sl();
3087
+ function El(t, e) {
3088
+ const n = Wn(t);
3089
3089
  if (!n)
3090
3090
  return 0;
3091
3091
  let r;
@@ -3101,11 +3101,11 @@ function Tl(t, e) {
3101
3101
  }
3102
3102
  return r;
3103
3103
  }
3104
- function El(t) {
3104
+ function Tl(t) {
3105
3105
  return t === 404;
3106
3106
  }
3107
3107
  const Il = (t, e, n) => {
3108
- const r = [], s = Tl(t, e), i = "icons";
3108
+ const r = [], s = El(t, e), i = "icons";
3109
3109
  let o = {
3110
3110
  type: i,
3111
3111
  provider: t,
@@ -3121,20 +3121,20 @@ const Il = (t, e, n) => {
3121
3121
  }, l = u.length), o.icons.push(u);
3122
3122
  }), r.push(o), r;
3123
3123
  };
3124
- function Rl(t) {
3124
+ function Cl(t) {
3125
3125
  if (typeof t == "string") {
3126
- const e = Qn(t);
3126
+ const e = Wn(t);
3127
3127
  if (e)
3128
3128
  return e.path;
3129
3129
  }
3130
3130
  return "/";
3131
3131
  }
3132
- const Cl = (t, e, n) => {
3133
- if (!Rr) {
3132
+ const Rl = (t, e, n) => {
3133
+ if (!Cr) {
3134
3134
  n("abort", 424);
3135
3135
  return;
3136
3136
  }
3137
- let r = Rl(e.provider);
3137
+ let r = Cl(e.provider);
3138
3138
  switch (e.type) {
3139
3139
  case "icons": {
3140
3140
  const i = e.prefix, l = e.icons.join(","), u = new URLSearchParams({
@@ -3153,11 +3153,11 @@ const Cl = (t, e, n) => {
3153
3153
  return;
3154
3154
  }
3155
3155
  let s = 503;
3156
- Rr(t + r).then((i) => {
3156
+ Cr(t + r).then((i) => {
3157
3157
  const o = i.status;
3158
3158
  if (o !== 200) {
3159
3159
  setTimeout(() => {
3160
- n(El(o) ? "abort" : "next", o);
3160
+ n(Tl(o) ? "abort" : "next", o);
3161
3161
  });
3162
3162
  return;
3163
3163
  }
@@ -3177,7 +3177,7 @@ const Cl = (t, e, n) => {
3177
3177
  });
3178
3178
  }, Al = {
3179
3179
  prepare: Il,
3180
- send: Cl
3180
+ send: Rl
3181
3181
  };
3182
3182
  function Pl(t) {
3183
3183
  const e = {
@@ -3195,7 +3195,7 @@ function Pl(t) {
3195
3195
  if (r.name === s.name && r.prefix === s.prefix && r.provider === s.provider)
3196
3196
  return;
3197
3197
  r = s;
3198
- const i = s.provider, o = s.prefix, l = s.name, u = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), a = u[o] || (u[o] = We(i, o));
3198
+ const i = s.provider, o = s.prefix, l = s.name, u = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), a = u[o] || (u[o] = Ve(i, o));
3199
3199
  let c;
3200
3200
  l in a.icons ? c = e.loaded : o === "" || a.missing.has(l) ? c = e.missing : c = e.pending;
3201
3201
  const f = {
@@ -3206,13 +3206,13 @@ function Pl(t) {
3206
3206
  c.push(f);
3207
3207
  }), e;
3208
3208
  }
3209
- function Qs(t, e) {
3209
+ function Ws(t, e) {
3210
3210
  t.forEach((n) => {
3211
3211
  const r = n.loaderCallbacks;
3212
3212
  r && (n.loaderCallbacks = r.filter((s) => s.id !== e));
3213
3213
  });
3214
3214
  }
3215
- function zl(t) {
3215
+ function Ll(t) {
3216
3216
  t.pendingCallbacksFlag || (t.pendingCallbacksFlag = !0, setTimeout(() => {
3217
3217
  t.pendingCallbacksFlag = !1;
3218
3218
  const e = t.loaderCallbacks ? t.loaderCallbacks.slice(0) : [];
@@ -3241,7 +3241,7 @@ function zl(t) {
3241
3241
  else
3242
3242
  return n = !0, !0;
3243
3243
  return !1;
3244
- }), o.pending.length !== l && (n || Qs([t], i.id), i.callback(
3244
+ }), o.pending.length !== l && (n || Ws([t], i.id), i.callback(
3245
3245
  o.loaded.slice(0),
3246
3246
  o.missing.slice(0),
3247
3247
  o.pending.slice(0),
@@ -3250,9 +3250,9 @@ function zl(t) {
3250
3250
  });
3251
3251
  }));
3252
3252
  }
3253
- let Ll = 0;
3254
- function Nl(t, e, n) {
3255
- const r = Ll++, s = Qs.bind(null, n, r);
3253
+ let zl = 0;
3254
+ function Ol(t, e, n) {
3255
+ const r = zl++, s = Ws.bind(null, n, r);
3256
3256
  if (!e.pending.length)
3257
3257
  return s;
3258
3258
  const i = {
@@ -3265,7 +3265,7 @@ function Nl(t, e, n) {
3265
3265
  (o.loaderCallbacks || (o.loaderCallbacks = [])).push(i);
3266
3266
  }), s;
3267
3267
  }
3268
- function Ol(t, e = !0, n = !1) {
3268
+ function Nl(t, e = !0, n = !1) {
3269
3269
  const r = [];
3270
3270
  return t.forEach((s) => {
3271
3271
  const i = typeof s == "string" ? rn(s, e, n) : s;
@@ -3286,8 +3286,8 @@ function Dl(t, e, n, r) {
3286
3286
  if (t.random) {
3287
3287
  let w = t.resources.slice(0);
3288
3288
  for (o = []; w.length > 1; ) {
3289
- const z = Math.floor(Math.random() * w.length);
3290
- o.push(w[z]), w = w.slice(0, z).concat(w.slice(z + 1));
3289
+ const L = Math.floor(Math.random() * w.length);
3290
+ o.push(w[L]), w = w.slice(0, L).concat(w.slice(L + 1));
3291
3291
  }
3292
3292
  o = o.concat(w);
3293
3293
  } else
@@ -3303,8 +3303,8 @@ function Dl(t, e, n, r) {
3303
3303
  w.status === "pending" && (w.status = "aborted");
3304
3304
  }), h = [];
3305
3305
  }
3306
- function b(w, z) {
3307
- z && (d = []), typeof w == "function" && d.push(w);
3306
+ function b(w, L) {
3307
+ L && (d = []), typeof w == "function" && d.push(w);
3308
3308
  }
3309
3309
  function v() {
3310
3310
  return {
@@ -3327,23 +3327,23 @@ function Dl(t, e, n, r) {
3327
3327
  w.status === "pending" && (w.status = "aborted");
3328
3328
  }), h = [];
3329
3329
  }
3330
- function x(w, z, S) {
3331
- const N = z !== "success";
3330
+ function x(w, L, S) {
3331
+ const O = L !== "success";
3332
3332
  switch (h = h.filter((B) => B !== w), u) {
3333
3333
  case "pending":
3334
3334
  break;
3335
3335
  case "failed":
3336
- if (N || !t.dataAfterTimeout)
3336
+ if (O || !t.dataAfterTimeout)
3337
3337
  return;
3338
3338
  break;
3339
3339
  default:
3340
3340
  return;
3341
3341
  }
3342
- if (z === "abort") {
3342
+ if (L === "abort") {
3343
3343
  c = S, _();
3344
3344
  return;
3345
3345
  }
3346
- if (N) {
3346
+ if (O) {
3347
3347
  c = S, h.length || (o.length ? y() : _());
3348
3348
  return;
3349
3349
  }
@@ -3370,18 +3370,18 @@ function Dl(t, e, n, r) {
3370
3370
  _();
3371
3371
  return;
3372
3372
  }
3373
- const z = {
3373
+ const L = {
3374
3374
  status: "pending",
3375
3375
  resource: w,
3376
- callback: (S, N) => {
3377
- x(z, S, N);
3376
+ callback: (S, O) => {
3377
+ x(L, S, O);
3378
3378
  }
3379
3379
  };
3380
- h.push(z), a++, f = setTimeout(y, t.rotate), n(w, e, z.callback);
3380
+ h.push(L), a++, f = setTimeout(y, t.rotate), n(w, e, L.callback);
3381
3381
  }
3382
3382
  return setTimeout(y), v;
3383
3383
  }
3384
- function Js(t) {
3384
+ function Ys(t) {
3385
3385
  const e = {
3386
3386
  ...Ml,
3387
3387
  ...t
@@ -3414,15 +3414,15 @@ function Js(t) {
3414
3414
  cleanup: r
3415
3415
  };
3416
3416
  }
3417
- function Cr() {
3417
+ function Rr() {
3418
3418
  }
3419
3419
  const vn = /* @__PURE__ */ Object.create(null);
3420
- function jl(t) {
3420
+ function Fl(t) {
3421
3421
  if (!vn[t]) {
3422
- const e = Qn(t);
3422
+ const e = Wn(t);
3423
3423
  if (!e)
3424
3424
  return;
3425
- const n = Js(e), r = {
3425
+ const n = Ys(e), r = {
3426
3426
  config: e,
3427
3427
  redundancy: n
3428
3428
  };
@@ -3430,36 +3430,36 @@ function jl(t) {
3430
3430
  }
3431
3431
  return vn[t];
3432
3432
  }
3433
- function ql(t, e, n) {
3433
+ function jl(t, e, n) {
3434
3434
  let r, s;
3435
3435
  if (typeof t == "string") {
3436
3436
  const i = Pn(t);
3437
3437
  if (!i)
3438
- return n(void 0, 424), Cr;
3438
+ return n(void 0, 424), Rr;
3439
3439
  s = i.send;
3440
- const o = jl(t);
3440
+ const o = Fl(t);
3441
3441
  o && (r = o.redundancy);
3442
3442
  } else {
3443
- const i = Wn(t);
3443
+ const i = Vn(t);
3444
3444
  if (i) {
3445
- r = Js(i);
3445
+ r = Ys(i);
3446
3446
  const o = t.resources ? t.resources[0] : "", l = Pn(o);
3447
3447
  l && (s = l.send);
3448
3448
  }
3449
3449
  }
3450
- return !r || !s ? (n(void 0, 424), Cr) : r.query(e, s, n)().abort;
3450
+ return !r || !s ? (n(void 0, 424), Rr) : r.query(e, s, n)().abort;
3451
3451
  }
3452
3452
  function Ar() {
3453
3453
  }
3454
- function Fl(t) {
3454
+ function ql(t) {
3455
3455
  t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
3456
- t.iconsLoaderFlag = !1, zl(t);
3456
+ t.iconsLoaderFlag = !1, Ll(t);
3457
3457
  }));
3458
3458
  }
3459
3459
  function Bl(t) {
3460
3460
  const e = [], n = [];
3461
3461
  return t.forEach((r) => {
3462
- (r.match(Fs) ? e : n).push(r);
3462
+ (r.match(qs) ? e : n).push(r);
3463
3463
  }), {
3464
3464
  valid: e,
3465
3465
  invalid: n
@@ -3474,14 +3474,14 @@ function st(t, e, n) {
3474
3474
  }
3475
3475
  if (n && typeof n == "object")
3476
3476
  try {
3477
- if (!Us(t, n).length) {
3477
+ if (!Gs(t, n).length) {
3478
3478
  r();
3479
3479
  return;
3480
3480
  }
3481
3481
  } catch (s) {
3482
3482
  console.error(s);
3483
3483
  }
3484
- r(), Fl(t);
3484
+ r(), ql(t);
3485
3485
  }
3486
3486
  function Pr(t, e) {
3487
3487
  t instanceof Promise ? t.then((n) => {
@@ -3490,7 +3490,7 @@ function Pr(t, e) {
3490
3490
  e(null);
3491
3491
  }) : e(t);
3492
3492
  }
3493
- function Vl(t, e) {
3493
+ function Hl(t, e) {
3494
3494
  t.iconsToLoad ? t.iconsToLoad = t.iconsToLoad.concat(e).sort() : t.iconsToLoad = e, t.iconsQueueFlag || (t.iconsQueueFlag = !0, setTimeout(() => {
3495
3495
  t.iconsQueueFlag = !1;
3496
3496
  const { provider: n, prefix: r } = t, s = t.iconsToLoad;
@@ -3524,20 +3524,20 @@ function Vl(t, e) {
3524
3524
  const { valid: o, invalid: l } = Bl(s);
3525
3525
  if (l.length && st(t, l, null), !o.length)
3526
3526
  return;
3527
- const u = r.match(Fs) ? Pn(n) : null;
3527
+ const u = r.match(qs) ? Pn(n) : null;
3528
3528
  if (!u) {
3529
3529
  st(t, o, null);
3530
3530
  return;
3531
3531
  }
3532
3532
  u.prepare(n, r, o).forEach((c) => {
3533
- ql(n, c, (f) => {
3533
+ jl(n, c, (f) => {
3534
3534
  st(t, c.icons, f);
3535
3535
  });
3536
3536
  });
3537
3537
  }));
3538
3538
  }
3539
- const Hl = (t, e) => {
3540
- const n = Ol(t, !0, Gs()), r = Pl(n);
3539
+ const Ul = (t, e) => {
3540
+ const n = Nl(t, !0, Zs()), r = Pl(n);
3541
3541
  if (!r.pending.length) {
3542
3542
  let u = !0;
3543
3543
  return e && setTimeout(() => {
@@ -3557,30 +3557,30 @@ const Hl = (t, e) => {
3557
3557
  const { provider: a, prefix: c } = u;
3558
3558
  if (c === l && a === o)
3559
3559
  return;
3560
- o = a, l = c, i.push(We(a, c));
3560
+ o = a, l = c, i.push(Ve(a, c));
3561
3561
  const f = s[a] || (s[a] = /* @__PURE__ */ Object.create(null));
3562
3562
  f[c] || (f[c] = []);
3563
3563
  }), r.pending.forEach((u) => {
3564
- const { provider: a, prefix: c, name: f } = u, h = We(a, c), d = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
3564
+ const { provider: a, prefix: c, name: f } = u, h = Ve(a, c), d = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
3565
3565
  d.has(f) || (d.add(f), s[a][c].push(f));
3566
3566
  }), i.forEach((u) => {
3567
3567
  const a = s[u.provider][u.prefix];
3568
- a.length && Vl(u, a);
3569
- }), e ? Nl(e, r, i) : Ar;
3568
+ a.length && Hl(u, a);
3569
+ }), e ? Ol(e, r, i) : Ar;
3570
3570
  };
3571
- function Ul(t, e) {
3571
+ function Gl(t, e) {
3572
3572
  const n = {
3573
3573
  ...t
3574
3574
  };
3575
3575
  for (const r in e) {
3576
3576
  const s = e[r], i = typeof s;
3577
- r in Ws ? (s === null || s && (i === "string" || i === "number")) && (n[r] = s) : i === typeof n[r] && (n[r] = r === "rotate" ? s % 4 : s);
3577
+ r in Vs ? (s === null || s && (i === "string" || i === "number")) && (n[r] = s) : i === typeof n[r] && (n[r] = r === "rotate" ? s % 4 : s);
3578
3578
  }
3579
3579
  return n;
3580
3580
  }
3581
- const Gl = /[\s,]+/;
3582
- function Wl(t, e) {
3583
- e.split(Gl).forEach((n) => {
3581
+ const Zl = /[\s,]+/;
3582
+ function Vl(t, e) {
3583
+ e.split(Zl).forEach((n) => {
3584
3584
  switch (n.trim()) {
3585
3585
  case "horizontal":
3586
3586
  t.hFlip = !0;
@@ -3591,7 +3591,7 @@ function Wl(t, e) {
3591
3591
  }
3592
3592
  });
3593
3593
  }
3594
- function Zl(t, e = 0) {
3594
+ function Ql(t, e = 0) {
3595
3595
  const n = t.replace(/^-?[0-9.]*/, "");
3596
3596
  function r(s) {
3597
3597
  for (; s < 0; )
@@ -3617,23 +3617,23 @@ function Zl(t, e = 0) {
3617
3617
  }
3618
3618
  return e;
3619
3619
  }
3620
- function Ql(t, e) {
3620
+ function Wl(t, e) {
3621
3621
  let n = t.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
3622
3622
  for (const r in e)
3623
3623
  n += " " + r + '="' + e[r] + '"';
3624
3624
  return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + t + "</svg>";
3625
3625
  }
3626
- function Jl(t) {
3626
+ function Yl(t) {
3627
3627
  return t.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
3628
3628
  }
3629
- function Yl(t) {
3630
- return "data:image/svg+xml," + Jl(t);
3629
+ function Jl(t) {
3630
+ return "data:image/svg+xml," + Yl(t);
3631
3631
  }
3632
3632
  function Kl(t) {
3633
- return 'url("' + Yl(t) + '")';
3633
+ return 'url("' + Jl(t) + '")';
3634
3634
  }
3635
- const zr = {
3636
- ...Zs,
3635
+ const Lr = {
3636
+ ...Qs,
3637
3637
  inline: !1
3638
3638
  }, Xl = {
3639
3639
  xmlns: "http://www.w3.org/2000/svg",
@@ -3642,29 +3642,29 @@ const zr = {
3642
3642
  role: "img"
3643
3643
  }, ea = {
3644
3644
  display: "inline-block"
3645
- }, zn = {
3645
+ }, Ln = {
3646
3646
  "background-color": "currentColor"
3647
- }, Ys = {
3647
+ }, Js = {
3648
3648
  "background-color": "transparent"
3649
- }, Lr = {
3649
+ }, zr = {
3650
3650
  image: "var(--svg)",
3651
3651
  repeat: "no-repeat",
3652
3652
  size: "100% 100%"
3653
- }, Nr = {
3654
- "-webkit-mask": zn,
3655
- mask: zn,
3656
- background: Ys
3653
+ }, Or = {
3654
+ "-webkit-mask": Ln,
3655
+ mask: Ln,
3656
+ background: Js
3657
3657
  };
3658
- for (const t in Nr) {
3659
- const e = Nr[t];
3660
- for (const n in Lr)
3661
- e[t + "-" + n] = Lr[n];
3658
+ for (const t in Or) {
3659
+ const e = Or[t];
3660
+ for (const n in zr)
3661
+ e[t + "-" + n] = zr[n];
3662
3662
  }
3663
3663
  function ta(t) {
3664
3664
  return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
3665
3665
  }
3666
3666
  function na(t, e) {
3667
- const n = Ul(zr, e), r = e.mode || "svg", s = r === "svg" ? { ...Xl } : {};
3667
+ const n = Gl(Lr, e), r = e.mode || "svg", s = r === "svg" ? { ...Xl } : {};
3668
3668
  t.body.indexOf("xlink:") === -1 && delete s["xmlns:xlink"];
3669
3669
  let i = typeof e.style == "string" ? e.style : "";
3670
3670
  for (let v in e) {
@@ -3683,13 +3683,13 @@ function na(t, e) {
3683
3683
  n[v] = _ === !0 || _ === "true" || _ === 1;
3684
3684
  break;
3685
3685
  case "flip":
3686
- typeof _ == "string" && Wl(n, _);
3686
+ typeof _ == "string" && Vl(n, _);
3687
3687
  break;
3688
3688
  case "color":
3689
3689
  i = i + (i.length > 0 && i.trim().slice(-1) !== ";" ? ";" : "") + "color: " + _ + "; ";
3690
3690
  break;
3691
3691
  case "rotate":
3692
- typeof _ == "string" ? n[v] = Zl(_) : typeof _ == "number" && (n[v] = _);
3692
+ typeof _ == "string" ? n[v] = Ql(_) : typeof _ == "number" && (n[v] = _);
3693
3693
  break;
3694
3694
  case "ariaHidden":
3695
3695
  case "aria-hidden":
@@ -3698,7 +3698,7 @@ function na(t, e) {
3698
3698
  default:
3699
3699
  if (v.slice(0, 3) === "on:")
3700
3700
  break;
3701
- zr[v] === void 0 && (s[v] = _);
3701
+ Lr[v] === void 0 && (s[v] = _);
3702
3702
  }
3703
3703
  }
3704
3704
  const o = bl(t, n), l = o.attributes;
@@ -3711,7 +3711,7 @@ function na(t, e) {
3711
3711
  body: xl(o.body, _ ? () => _ + "ID" + v++ : "iconifySvelte")
3712
3712
  };
3713
3713
  }
3714
- const { body: u, width: a, height: c } = t, f = r === "mask" || (r === "bg" ? !1 : u.indexOf("currentColor") !== -1), h = Ql(u, {
3714
+ const { body: u, width: a, height: c } = t, f = r === "mask" || (r === "bg" ? !1 : u.indexOf("currentColor") !== -1), h = Wl(u, {
3715
3715
  ...l,
3716
3716
  width: a + "",
3717
3717
  height: c + ""
@@ -3721,7 +3721,7 @@ function na(t, e) {
3721
3721
  const _ = l[v];
3722
3722
  _ && (p[v] = ta(_));
3723
3723
  };
3724
- g("width"), g("height"), Object.assign(p, ea, f ? zn : Ys);
3724
+ g("width"), g("height"), Object.assign(p, ea, f ? Ln : Js);
3725
3725
  let b = "";
3726
3726
  for (const v in p)
3727
3727
  b += v + ": " + p[v] + ";";
@@ -3730,7 +3730,7 @@ function na(t, e) {
3730
3730
  attributes: s
3731
3731
  };
3732
3732
  }
3733
- Gs(!0);
3733
+ Zs(!0);
3734
3734
  yl("", Al);
3735
3735
  if (typeof document < "u" && typeof window < "u") {
3736
3736
  const t = window;
@@ -3776,28 +3776,28 @@ function ra(t, e, n, r, s) {
3776
3776
  if (!l)
3777
3777
  return n && (!e.loading || e.loading.name !== t) && (i(), e.name = "", e.loading = {
3778
3778
  name: t,
3779
- abort: Hl([o], r)
3779
+ abort: Ul([o], r)
3780
3780
  }), null;
3781
3781
  i(), e.name !== t && (e.name = t, s && !e.destroyed && s(t));
3782
3782
  const u = ["iconify"];
3783
3783
  return o.prefix !== "" && u.push("iconify--" + o.prefix), o.provider !== "" && u.push("iconify--" + o.provider), { data: l, classes: u };
3784
3784
  }
3785
- function Or(t, e) {
3785
+ function Nr(t, e) {
3786
3786
  return t ? na({
3787
3787
  ...sn,
3788
3788
  ...t
3789
3789
  }, e) : null;
3790
3790
  }
3791
- var sa = /* @__PURE__ */ To("<svg><!></svg>"), ia = /* @__PURE__ */ se("<span></span>");
3791
+ var sa = /* @__PURE__ */ Eo("<svg><!></svg>"), ia = /* @__PURE__ */ se("<span></span>");
3792
3792
  function Pe(t, e) {
3793
- const n = Yo(e, [
3793
+ const n = Jo(e, [
3794
3794
  "children",
3795
3795
  "$$slots",
3796
3796
  "$$events",
3797
3797
  "$$legacy",
3798
3798
  "$$host"
3799
3799
  ]);
3800
- Te(e, !1);
3800
+ Ee(e, !1);
3801
3801
  const r = wt({
3802
3802
  // Last icon name
3803
3803
  name: "",
@@ -3808,23 +3808,23 @@ function Pe(t, e) {
3808
3808
  });
3809
3809
  let s = wt(!1), i = wt(0), o = wt();
3810
3810
  const l = (h) => {
3811
- typeof n.onLoad == "function" && n.onLoad(h), Wo()("load", { icon: h });
3811
+ typeof n.onLoad == "function" && n.onLoad(h), Vo()("load", { icon: h });
3812
3812
  };
3813
3813
  function u() {
3814
3814
  $n(i);
3815
3815
  }
3816
3816
  Ds(() => {
3817
- T(s, !0);
3818
- }), Uo(() => {
3817
+ E(s, !0);
3818
+ }), Go(() => {
3819
3819
  hn(r, m(r).destroyed = !0), m(r).loading && (m(r).loading.abort(), hn(r, m(r).loading = null));
3820
3820
  }), oo(
3821
- () => (m(i), ys(n), m(s), m(r), m(o), Or),
3821
+ () => (m(i), ys(n), m(s), m(r), m(o), Nr),
3822
3822
  () => {
3823
3823
  m(i);
3824
3824
  const h = !!n.ssr || m(s), d = ra(n.icon, m(r), h, u, l);
3825
- T(o, d ? Or(d.data, n) : null), m(o) && d.classes && hn(o, m(o).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + d.classes.join(" "));
3825
+ E(o, d ? Nr(d.data, n) : null), m(o) && d.classes && hn(o, m(o).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + d.classes.join(" "));
3826
3826
  }
3827
- ), lo(), Ho();
3827
+ ), lo(), Uo();
3828
3828
  var a = _r(), c = wn(a);
3829
3829
  {
3830
3830
  var f = (h) => {
@@ -3834,23 +3834,23 @@ function Pe(t, e) {
3834
3834
  var _ = sa();
3835
3835
  let k;
3836
3836
  var x = D(_);
3837
- Ps(x, () => m(o).body, !0, !1), M(_), Nt(() => k = mr(_, k, { ...m(o).attributes }, void 0, !0)), j(v, _);
3837
+ Ps(x, () => m(o).body, !0, !1), M(_), Ot(() => k = mr(_, k, { ...m(o).attributes }, void 0, !0)), F(v, _);
3838
3838
  }, b = (v) => {
3839
3839
  var _ = ia();
3840
3840
  let k;
3841
- Nt(() => k = mr(_, k, { ...m(o).attributes })), j(v, _);
3841
+ Ot(() => k = mr(_, k, { ...m(o).attributes })), F(v, _);
3842
3842
  };
3843
3843
  gt(p, (v) => {
3844
3844
  m(o).svg ? v(g) : v(b, !1);
3845
3845
  });
3846
3846
  }
3847
- j(h, d);
3847
+ F(h, d);
3848
3848
  };
3849
3849
  gt(c, (h) => {
3850
3850
  m(o) && h(f);
3851
3851
  });
3852
3852
  }
3853
- j(t, a), Ee();
3853
+ F(t, a), Te();
3854
3854
  }
3855
3855
  Me(Pe, {}, [], [], !0);
3856
3856
  const oa = (t, e) => {
@@ -3869,7 +3869,7 @@ const ua = {
3869
3869
  code: "header.svelte-ee1blh {display:flex;justify-content:center;align-items:center;height:50px;border-radius:30px 30px 0 0;}h1.svelte-ee1blh {font-size:1.5rem;color:#fff;}section.svelte-ee1blh {display:flex;justify-content:space-between;align-items:center;width:100%;padding:10px;}.buttons.svelte-ee1blh {display:flex;gap:10px;}button.svelte-ee1blh {display:flex;justify-content:center;align-items:center;border:none;cursor:pointer;border-radius:30px;transition:200ms;}.new-chat.svelte-ee1blh {width:35px;height:35px;background:#295dcf;color:white;padding:0;}.new-chat.svelte-ee1blh:hover {background:#1e3a8a;}.history-button.svelte-ee1blh {width:35px;height:35px;background:#295dcf;color:white;font-weight:bold;font-size:14px;}.history-button.svelte-ee1blh:hover {background:#1e3a8a;}.close-button.svelte-ee1blh {width:35px;height:35px;background:#295dcf;color:white;}.close-button.svelte-ee1blh:hover {background:red;}"
3870
3870
  };
3871
3871
  function Ks(t, e) {
3872
- Te(e, !0), mt(t, ua);
3872
+ Ee(e, !0), mt(t, ua);
3873
3873
  let n = ne(e, "show", 15, !1), r = ne(e, "showHistory", 15), s = ne(e, "actChat", 15);
3874
3874
  var i = ca(), o = D(i), l = ie(D(o), 2), u = D(l);
3875
3875
  u.__click = [oa, s];
@@ -3894,24 +3894,24 @@ function Ks(t, e) {
3894
3894
  icon: "gg:close",
3895
3895
  width: "20px",
3896
3896
  height: "20px"
3897
- }), M(h), M(l), M(o), M(i), j(t, i), Ee({
3897
+ }), M(h), M(l), M(o), M(i), F(t, i), Te({
3898
3898
  get show() {
3899
3899
  return n();
3900
3900
  },
3901
3901
  set show(p = !1) {
3902
- n(p), W();
3902
+ n(p), V();
3903
3903
  },
3904
3904
  get showHistory() {
3905
3905
  return r();
3906
3906
  },
3907
3907
  set showHistory(p) {
3908
- r(p), W();
3908
+ r(p), V();
3909
3909
  },
3910
3910
  get actChat() {
3911
3911
  return s();
3912
3912
  },
3913
3913
  set actChat(p) {
3914
- s(p), W();
3914
+ s(p), V();
3915
3915
  }
3916
3916
  });
3917
3917
  }
@@ -3925,13 +3925,13 @@ const da = {
3925
3925
  code: ".input.svelte-1xtazuc {display:flex;justify-content:center;align-items:center;padding:10px;background:#f0f0f0;border-radius:15px;margin:10px;}input.svelte-1xtazuc {width:100%;padding:10px;border:none;border-radius:10px;margin-right:10px;}input.svelte-1xtazuc:focus {outline:none;}button.svelte-1xtazuc {display:flex;justify-content:center;align-items:center;background:#295dcf;border:none;color:white;font-size:1rem;cursor:pointer;border-radius:30px;padding:5px 5px 5px 8px;transition:200ms;}button.svelte-1xtazuc:hover {background:#1e4aa8;}"
3926
3926
  };
3927
3927
  function Xs(t, e) {
3928
- Te(e, !0), mt(t, da);
3928
+ Ee(e, !0), mt(t, da);
3929
3929
  let n = ne(e, "sendMessage", 7), r = ye("");
3930
3930
  const s = () => {
3931
- n()(m(r)), T(r, "");
3931
+ n()(m(r)), E(r, "");
3932
3932
  };
3933
3933
  var i = ha(), o = D(i);
3934
- Lo(o), o.__keyup = [fa, s];
3934
+ zo(o), o.__keyup = [fa, s];
3935
3935
  var l = ie(o, 2);
3936
3936
  l.__click = s;
3937
3937
  var u = D(l);
@@ -3939,18 +3939,18 @@ function Xs(t, e) {
3939
3939
  icon: "material-symbols:send-rounded",
3940
3940
  width: "25px",
3941
3941
  height: "25px"
3942
- }), M(l), M(i), Bo(o, () => m(r), (a) => T(r, a)), j(t, i), Ee({
3942
+ }), M(l), M(i), Bo(o, () => m(r), (a) => E(r, a)), F(t, i), Te({
3943
3943
  get sendMessage() {
3944
3944
  return n();
3945
3945
  },
3946
3946
  set sendMessage(a) {
3947
- n(a), W();
3947
+ n(a), V();
3948
3948
  }
3949
3949
  });
3950
3950
  }
3951
3951
  bt(["keyup", "click"]);
3952
3952
  Me(Xs, { sendMessage: {} }, [], [], !0);
3953
- function Jn() {
3953
+ function Yn() {
3954
3954
  return {
3955
3955
  async: !1,
3956
3956
  breaks: !1,
@@ -3964,23 +3964,23 @@ function Jn() {
3964
3964
  walkTokens: null
3965
3965
  };
3966
3966
  }
3967
- let De = Jn();
3967
+ let De = Yn();
3968
3968
  function ei(t) {
3969
3969
  De = t;
3970
3970
  }
3971
3971
  const at = { exec: () => null };
3972
- function R(t, e = "") {
3972
+ function C(t, e = "") {
3973
3973
  let n = typeof t == "string" ? t : t.source;
3974
3974
  const r = {
3975
3975
  replace: (s, i) => {
3976
3976
  let o = typeof i == "string" ? i : i.source;
3977
- return o = o.replace(q.caret, "$1"), n = n.replace(s, o), r;
3977
+ return o = o.replace(j.caret, "$1"), n = n.replace(s, o), r;
3978
3978
  },
3979
3979
  getRegex: () => new RegExp(n, e)
3980
3980
  };
3981
3981
  return r;
3982
3982
  }
3983
- const q = {
3983
+ const j = {
3984
3984
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
3985
3985
  outputLinkReplace: /\\([\[\]])/g,
3986
3986
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -4037,7 +4037,7 @@ const q = {
4037
4037
  fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
4038
4038
  headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
4039
4039
  htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
4040
- }, pa = /^(?:[ \t]*(?:\n|$))+/, ga = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, va = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, kt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, _a = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Yn = /(?:[*+-]|\d{1,9}[.)])/, ti = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ni = R(ti).replace(/bull/g, Yn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ba = R(ti).replace(/bull/g, Yn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Kn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ma = /^[^\n]+/, Xn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, ka = R(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Xn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), wa = R(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Yn).getRegex(), on = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", er = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, xa = R("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", er).replace("tag", on).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ri = R(Kn).replace("hr", kt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), ya = R(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ri).getRegex(), tr = {
4040
+ }, pa = /^(?:[ \t]*(?:\n|$))+/, ga = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, va = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, kt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, _a = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Jn = /(?:[*+-]|\d{1,9}[.)])/, ti = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ni = C(ti).replace(/bull/g, Jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ba = C(ti).replace(/bull/g, Jn).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Kn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ma = /^[^\n]+/, Xn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, ka = C(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Xn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), wa = C(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Jn).getRegex(), on = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", er = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, xa = C("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", er).replace("tag", on).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ri = C(Kn).replace("hr", kt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), ya = C(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ri).getRegex(), tr = {
4041
4041
  blockquote: ya,
4042
4042
  code: ga,
4043
4043
  def: ka,
@@ -4051,98 +4051,98 @@ const q = {
4051
4051
  paragraph: ri,
4052
4052
  table: at,
4053
4053
  text: ma
4054
- }, Mr = R("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", kt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), $a = {
4054
+ }, Mr = C("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", kt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex(), $a = {
4055
4055
  ...tr,
4056
4056
  lheading: ba,
4057
4057
  table: Mr,
4058
- paragraph: R(Kn).replace("hr", kt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Mr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex()
4058
+ paragraph: C(Kn).replace("hr", kt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Mr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", on).getRegex()
4059
4059
  }, Sa = {
4060
4060
  ...tr,
4061
- html: R(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", er).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
4061
+ html: C(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", er).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
4062
4062
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
4063
4063
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
4064
4064
  fences: at,
4065
4065
  // fences not supported
4066
4066
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
4067
- paragraph: R(Kn).replace("hr", kt).replace("heading", ` *#{1,6} *[^
4067
+ paragraph: C(Kn).replace("hr", kt).replace("heading", ` *#{1,6} *[^
4068
4068
  ]`).replace("lheading", ni).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
4069
- }, Ta = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ea = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, si = /^( {2,}|\\)\n(?!\s*$)/, Ia = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ln = /[\p{P}\p{S}]/u, nr = /[\s\p{P}\p{S}]/u, ii = /[^\s\p{P}\p{S}]/u, Ra = R(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, nr).getRegex(), oi = /(?!~)[\p{P}\p{S}]/u, Ca = /(?!~)[\s\p{P}\p{S}]/u, Aa = /(?:[^\s\p{P}\p{S}]|~)/u, Pa = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, li = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, za = R(li, "u").replace(/punct/g, ln).getRegex(), La = R(li, "u").replace(/punct/g, oi).getRegex(), ai = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Na = R(ai, "gu").replace(/notPunctSpace/g, ii).replace(/punctSpace/g, nr).replace(/punct/g, ln).getRegex(), Oa = R(ai, "gu").replace(/notPunctSpace/g, Aa).replace(/punctSpace/g, Ca).replace(/punct/g, oi).getRegex(), Ma = R("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ii).replace(/punctSpace/g, nr).replace(/punct/g, ln).getRegex(), Da = R(/\\(punct)/, "gu").replace(/punct/g, ln).getRegex(), ja = R(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), qa = R(er).replace("(?:-->|$)", "-->").getRegex(), Fa = R("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", qa).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Vt = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ba = R(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Vt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ci = R(/^!?\[(label)\]\[(ref)\]/).replace("label", Vt).replace("ref", Xn).getRegex(), ui = R(/^!?\[(ref)\](?:\[\])?/).replace("ref", Xn).getRegex(), Va = R("reflink|nolink(?!\\()", "g").replace("reflink", ci).replace("nolink", ui).getRegex(), rr = {
4069
+ }, Ea = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ta = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, si = /^( {2,}|\\)\n(?!\s*$)/, Ia = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ln = /[\p{P}\p{S}]/u, nr = /[\s\p{P}\p{S}]/u, ii = /[^\s\p{P}\p{S}]/u, Ca = C(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, nr).getRegex(), oi = /(?!~)[\p{P}\p{S}]/u, Ra = /(?!~)[\s\p{P}\p{S}]/u, Aa = /(?:[^\s\p{P}\p{S}]|~)/u, Pa = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, li = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, La = C(li, "u").replace(/punct/g, ln).getRegex(), za = C(li, "u").replace(/punct/g, oi).getRegex(), ai = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Oa = C(ai, "gu").replace(/notPunctSpace/g, ii).replace(/punctSpace/g, nr).replace(/punct/g, ln).getRegex(), Na = C(ai, "gu").replace(/notPunctSpace/g, Aa).replace(/punctSpace/g, Ra).replace(/punct/g, oi).getRegex(), Ma = C("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ii).replace(/punctSpace/g, nr).replace(/punct/g, ln).getRegex(), Da = C(/\\(punct)/, "gu").replace(/punct/g, ln).getRegex(), Fa = C(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ja = C(er).replace("(?:-->|$)", "-->").getRegex(), qa = C("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ja).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ht = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ba = C(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Ht).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ci = C(/^!?\[(label)\]\[(ref)\]/).replace("label", Ht).replace("ref", Xn).getRegex(), ui = C(/^!?\[(ref)\](?:\[\])?/).replace("ref", Xn).getRegex(), Ha = C("reflink|nolink(?!\\()", "g").replace("reflink", ci).replace("nolink", ui).getRegex(), rr = {
4070
4070
  _backpedal: at,
4071
4071
  // only used for GFM url
4072
4072
  anyPunctuation: Da,
4073
- autolink: ja,
4073
+ autolink: Fa,
4074
4074
  blockSkip: Pa,
4075
4075
  br: si,
4076
- code: Ea,
4076
+ code: Ta,
4077
4077
  del: at,
4078
- emStrongLDelim: za,
4079
- emStrongRDelimAst: Na,
4078
+ emStrongLDelim: La,
4079
+ emStrongRDelimAst: Oa,
4080
4080
  emStrongRDelimUnd: Ma,
4081
- escape: Ta,
4081
+ escape: Ea,
4082
4082
  link: Ba,
4083
4083
  nolink: ui,
4084
- punctuation: Ra,
4084
+ punctuation: Ca,
4085
4085
  reflink: ci,
4086
- reflinkSearch: Va,
4087
- tag: Fa,
4086
+ reflinkSearch: Ha,
4087
+ tag: qa,
4088
4088
  text: Ia,
4089
4089
  url: at
4090
- }, Ha = {
4090
+ }, Ua = {
4091
4091
  ...rr,
4092
- link: R(/^!?\[(label)\]\((.*?)\)/).replace("label", Vt).getRegex(),
4093
- reflink: R(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Vt).getRegex()
4094
- }, Ln = {
4092
+ link: C(/^!?\[(label)\]\((.*?)\)/).replace("label", Ht).getRegex(),
4093
+ reflink: C(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Ht).getRegex()
4094
+ }, zn = {
4095
4095
  ...rr,
4096
- emStrongRDelimAst: Oa,
4097
- emStrongLDelim: La,
4098
- url: R(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
4096
+ emStrongRDelimAst: Na,
4097
+ emStrongLDelim: za,
4098
+ url: C(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
4099
4099
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
4100
4100
  del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
4101
4101
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
4102
- }, Ua = {
4103
- ...Ln,
4104
- br: R(si).replace("{2,}", "*").getRegex(),
4105
- text: R(Ln.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
4102
+ }, Ga = {
4103
+ ...zn,
4104
+ br: C(si).replace("{2,}", "*").getRegex(),
4105
+ text: C(zn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
4106
4106
  }, $t = {
4107
4107
  normal: tr,
4108
4108
  gfm: $a,
4109
4109
  pedantic: Sa
4110
4110
  }, it = {
4111
4111
  normal: rr,
4112
- gfm: Ln,
4113
- breaks: Ua,
4114
- pedantic: Ha
4115
- }, Ga = {
4112
+ gfm: zn,
4113
+ breaks: Ga,
4114
+ pedantic: Ua
4115
+ }, Za = {
4116
4116
  "&": "&amp;",
4117
4117
  "<": "&lt;",
4118
4118
  ">": "&gt;",
4119
4119
  '"': "&quot;",
4120
4120
  "'": "&#39;"
4121
- }, Dr = (t) => Ga[t];
4121
+ }, Dr = (t) => Za[t];
4122
4122
  function le(t, e) {
4123
4123
  if (e) {
4124
- if (q.escapeTest.test(t))
4125
- return t.replace(q.escapeReplace, Dr);
4126
- } else if (q.escapeTestNoEncode.test(t))
4127
- return t.replace(q.escapeReplaceNoEncode, Dr);
4124
+ if (j.escapeTest.test(t))
4125
+ return t.replace(j.escapeReplace, Dr);
4126
+ } else if (j.escapeTestNoEncode.test(t))
4127
+ return t.replace(j.escapeReplaceNoEncode, Dr);
4128
4128
  return t;
4129
4129
  }
4130
- function jr(t) {
4130
+ function Fr(t) {
4131
4131
  try {
4132
- t = encodeURI(t).replace(q.percentDecode, "%");
4132
+ t = encodeURI(t).replace(j.percentDecode, "%");
4133
4133
  } catch {
4134
4134
  return null;
4135
4135
  }
4136
4136
  return t;
4137
4137
  }
4138
- function qr(t, e) {
4138
+ function jr(t, e) {
4139
4139
  var i;
4140
- const n = t.replace(q.findPipe, (o, l, u) => {
4140
+ const n = t.replace(j.findPipe, (o, l, u) => {
4141
4141
  let a = !1, c = l;
4142
4142
  for (; --c >= 0 && u[c] === "\\"; )
4143
4143
  a = !a;
4144
4144
  return a ? "|" : " |";
4145
- }), r = n.split(q.splitPipe);
4145
+ }), r = n.split(j.splitPipe);
4146
4146
  let s = 0;
4147
4147
  if (r[0].trim() || r.shift(), r.length > 0 && !((i = r.at(-1)) != null && i.trim()) && r.pop(), e)
4148
4148
  if (r.length > e)
@@ -4151,7 +4151,7 @@ function qr(t, e) {
4151
4151
  for (; r.length < e; )
4152
4152
  r.push("");
4153
4153
  for (; s < r.length; s++)
4154
- r[s] = r[s].trim().replace(q.slashPipe, "|");
4154
+ r[s] = r[s].trim().replace(j.slashPipe, "|");
4155
4155
  return r;
4156
4156
  }
4157
4157
  function ot(t, e, n) {
@@ -4163,7 +4163,7 @@ function ot(t, e, n) {
4163
4163
  s++;
4164
4164
  return t.slice(0, r - s);
4165
4165
  }
4166
- function Wa(t, e) {
4166
+ function Va(t, e) {
4167
4167
  if (t.indexOf(e[1]) === -1)
4168
4168
  return -1;
4169
4169
  let n = 0;
@@ -4176,7 +4176,7 @@ function Wa(t, e) {
4176
4176
  return r;
4177
4177
  return -1;
4178
4178
  }
4179
- function Fr(t, e, n, r, s) {
4179
+ function qr(t, e, n, r, s) {
4180
4180
  const i = e.href, o = e.title || null, l = t[1].replace(s.other.outputLinkReplace, "$1");
4181
4181
  if (t[0].charAt(0) !== "!") {
4182
4182
  r.state.inLink = !0;
@@ -4198,7 +4198,7 @@ function Fr(t, e, n, r, s) {
4198
4198
  text: l
4199
4199
  };
4200
4200
  }
4201
- function Za(t, e, n) {
4201
+ function Qa(t, e, n) {
4202
4202
  const r = t.match(n.other.indentCodeCompensation);
4203
4203
  if (r === null)
4204
4204
  return e;
@@ -4213,7 +4213,7 @@ function Za(t, e, n) {
4213
4213
  }).join(`
4214
4214
  `);
4215
4215
  }
4216
- class Ht {
4216
+ class Ut {
4217
4217
  // set by the lexer
4218
4218
  constructor(e) {
4219
4219
  $(this, "options");
@@ -4246,7 +4246,7 @@ class Ht {
4246
4246
  fences(e) {
4247
4247
  const n = this.rules.block.fences.exec(e);
4248
4248
  if (n) {
4249
- const r = n[0], s = Za(r, n[3] || "", this.rules);
4249
+ const r = n[0], s = Qa(r, n[3] || "", this.rules);
4250
4250
  return {
4251
4251
  type: "code",
4252
4252
  raw: r,
@@ -4362,10 +4362,10 @@ ${f}` : f;
4362
4362
  `, e = e.substring(d.length + 1), a = !0), !a) {
4363
4363
  const _ = this.rules.other.nextBulletRegex(g), k = this.rules.other.hrRegex(g), x = this.rules.other.fencesBeginRegex(g), y = this.rules.other.headingBeginRegex(g), w = this.rules.other.htmlBeginRegex(g);
4364
4364
  for (; e; ) {
4365
- const z = e.split(`
4365
+ const L = e.split(`
4366
4366
  `, 1)[0];
4367
4367
  let S;
4368
- if (d = z, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), S = d) : S = d.replace(this.rules.other.tabCharGlobal, " "), x.test(d) || y.test(d) || w.test(d) || _.test(d) || k.test(d))
4368
+ if (d = L, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), S = d) : S = d.replace(this.rules.other.tabCharGlobal, " "), x.test(d) || y.test(d) || w.test(d) || _.test(d) || k.test(d))
4369
4369
  break;
4370
4370
  if (S.search(this.rules.other.nonSpaceChar) >= g || !d.trim())
4371
4371
  f += `
@@ -4376,8 +4376,8 @@ ${f}` : f;
4376
4376
  f += `
4377
4377
  ` + d;
4378
4378
  }
4379
- !p && !d.trim() && (p = !0), c += z + `
4380
- `, e = e.substring(z.length + 1), h = S.slice(g);
4379
+ !p && !d.trim() && (p = !0), c += L + `
4380
+ `, e = e.substring(L.length + 1), h = S.slice(g);
4381
4381
  }
4382
4382
  }
4383
4383
  i.loose || (l ? i.loose = !0 : this.rules.other.doubleBlankLine.test(c) && (l = !0));
@@ -4438,7 +4438,7 @@ ${f}` : f;
4438
4438
  const n = this.rules.block.table.exec(e);
4439
4439
  if (!n || !this.rules.other.tableDelimiter.test(n[2]))
4440
4440
  return;
4441
- const r = qr(n[1]), s = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (l = n[3]) != null && l.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split(`
4441
+ const r = jr(n[1]), s = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (l = n[3]) != null && l.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split(`
4442
4442
  `) : [], o = {
4443
4443
  type: "table",
4444
4444
  raw: n[0],
@@ -4457,7 +4457,7 @@ ${f}` : f;
4457
4457
  align: o.align[u]
4458
4458
  });
4459
4459
  for (const u of i)
4460
- o.rows.push(qr(u, o.header.length).map((a, c) => ({
4460
+ o.rows.push(jr(u, o.header.length).map((a, c) => ({
4461
4461
  text: a,
4462
4462
  tokens: this.lexer.inline(a),
4463
4463
  header: !1,
@@ -4532,7 +4532,7 @@ ${f}` : f;
4532
4532
  if ((r.length - o.length) % 2 === 0)
4533
4533
  return;
4534
4534
  } else {
4535
- const o = Wa(n[2], "()");
4535
+ const o = Va(n[2], "()");
4536
4536
  if (o > -1) {
4537
4537
  const u = (n[0].indexOf("!") === 0 ? 5 : 4) + n[1].length + o;
4538
4538
  n[2] = n[2].substring(0, o), n[0] = n[0].substring(0, u).trim(), n[3] = "";
@@ -4544,7 +4544,7 @@ ${f}` : f;
4544
4544
  o && (s = o[1], i = o[3]);
4545
4545
  } else
4546
4546
  i = n[3] ? n[3].slice(1, -1) : "";
4547
- return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(r) ? s = s.slice(1) : s = s.slice(1, -1)), Fr(n, {
4547
+ return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(r) ? s = s.slice(1) : s = s.slice(1, -1)), qr(n, {
4548
4548
  href: s && s.replace(this.rules.inline.anyPunctuation, "$1"),
4549
4549
  title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
4550
4550
  }, n[0], this.lexer, this.rules);
@@ -4562,7 +4562,7 @@ ${f}` : f;
4562
4562
  text: o
4563
4563
  };
4564
4564
  }
4565
- return Fr(r, i, r[0], this.lexer, this.rules);
4565
+ return qr(r, i, r[0], this.lexer, this.rules);
4566
4566
  }
4567
4567
  }
4568
4568
  emStrong(e, n, r = "") {
@@ -4704,13 +4704,13 @@ class X {
4704
4704
  $(this, "state");
4705
4705
  $(this, "tokenizer");
4706
4706
  $(this, "inlineQueue");
4707
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || De, this.options.tokenizer = this.options.tokenizer || new Ht(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
4707
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || De, this.options.tokenizer = this.options.tokenizer || new Ut(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
4708
4708
  inLink: !1,
4709
4709
  inRawBlock: !1,
4710
4710
  top: !0
4711
4711
  };
4712
4712
  const n = {
4713
- other: q,
4713
+ other: j,
4714
4714
  block: $t.normal,
4715
4715
  inline: it.normal
4716
4716
  };
@@ -4741,7 +4741,7 @@ class X {
4741
4741
  * Preprocessing
4742
4742
  */
4743
4743
  lex(e) {
4744
- e = e.replace(q.carriageReturn, `
4744
+ e = e.replace(j.carriageReturn, `
4745
4745
  `), this.blockTokens(e, this.tokens);
4746
4746
  for (let n = 0; n < this.inlineQueue.length; n++) {
4747
4747
  const r = this.inlineQueue[n];
@@ -4751,7 +4751,7 @@ class X {
4751
4751
  }
4752
4752
  blockTokens(e, n = [], r = !1) {
4753
4753
  var s, i, o;
4754
- for (this.options.pedantic && (e = e.replace(q.tabCharGlobal, " ").replace(q.spaceLine, "")); e; ) {
4754
+ for (this.options.pedantic && (e = e.replace(j.tabCharGlobal, " ").replace(j.spaceLine, "")); e; ) {
4755
4755
  let l;
4756
4756
  if ((i = (s = this.options.extensions) == null ? void 0 : s.block) != null && i.some((a) => (l = a.call({ lexer: this }, e, n)) ? (e = e.substring(l.raw.length), n.push(l), !0) : !1))
4757
4757
  continue;
@@ -4942,7 +4942,7 @@ class X {
4942
4942
  return n;
4943
4943
  }
4944
4944
  }
4945
- class Ut {
4945
+ class Gt {
4946
4946
  // set by the parser
4947
4947
  constructor(e) {
4948
4948
  $(this, "options");
@@ -4954,7 +4954,7 @@ class Ut {
4954
4954
  }
4955
4955
  code({ text: e, lang: n, escaped: r }) {
4956
4956
  var o;
4957
- const s = (o = (n || "").match(q.notSpaceStart)) == null ? void 0 : o[0], i = e.replace(q.endingNewline, "") + `
4957
+ const s = (o = (n || "").match(j.notSpaceStart)) == null ? void 0 : o[0], i = e.replace(j.endingNewline, "") + `
4958
4958
  `;
4959
4959
  return s ? '<pre><code class="language-' + le(s) + '">' + (r ? i : le(i, !0)) + `</code></pre>
4960
4960
  ` : "<pre><code>" + (r ? i : le(i, !0)) + `</code></pre>
@@ -5058,7 +5058,7 @@ ${e}</tr>
5058
5058
  return `<del>${this.parser.parseInline(e)}</del>`;
5059
5059
  }
5060
5060
  link({ href: e, title: n, tokens: r }) {
5061
- const s = this.parser.parseInline(r), i = jr(e);
5061
+ const s = this.parser.parseInline(r), i = Fr(e);
5062
5062
  if (i === null)
5063
5063
  return s;
5064
5064
  e = i;
@@ -5066,7 +5066,7 @@ ${e}</tr>
5066
5066
  return n && (o += ' title="' + le(n) + '"'), o += ">" + s + "</a>", o;
5067
5067
  }
5068
5068
  image({ href: e, title: n, text: r }) {
5069
- const s = jr(e);
5069
+ const s = Fr(e);
5070
5070
  if (s === null)
5071
5071
  return le(r);
5072
5072
  e = s;
@@ -5112,7 +5112,7 @@ class ee {
5112
5112
  $(this, "options");
5113
5113
  $(this, "renderer");
5114
5114
  $(this, "textRenderer");
5115
- this.options = e || De, this.options.renderer = this.options.renderer || new Ut(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new sr();
5115
+ this.options = e || De, this.options.renderer = this.options.renderer || new Gt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new sr();
5116
5116
  }
5117
5117
  /**
5118
5118
  * Static Parse Method
@@ -5312,17 +5312,17 @@ $(ct, "passThroughHooks", /* @__PURE__ */ new Set([
5312
5312
  "postprocess",
5313
5313
  "processAllTokens"
5314
5314
  ]));
5315
- class Qa {
5315
+ class Wa {
5316
5316
  constructor(...e) {
5317
- $(this, "defaults", Jn());
5317
+ $(this, "defaults", Yn());
5318
5318
  $(this, "options", this.setOptions);
5319
5319
  $(this, "parse", this.parseMarkdown(!0));
5320
5320
  $(this, "parseInline", this.parseMarkdown(!1));
5321
5321
  $(this, "Parser", ee);
5322
- $(this, "Renderer", Ut);
5322
+ $(this, "Renderer", Gt);
5323
5323
  $(this, "TextRenderer", sr);
5324
5324
  $(this, "Lexer", X);
5325
- $(this, "Tokenizer", Ht);
5325
+ $(this, "Tokenizer", Ut);
5326
5326
  $(this, "Hooks", ct);
5327
5327
  this.use(...e);
5328
5328
  }
@@ -5380,7 +5380,7 @@ class Qa {
5380
5380
  }
5381
5381
  "childTokens" in i && i.childTokens && (n.childTokens[i.name] = i.childTokens);
5382
5382
  }), s.extensions = n), r.renderer) {
5383
- const i = this.defaults.renderer || new Ut(this.defaults);
5383
+ const i = this.defaults.renderer || new Gt(this.defaults);
5384
5384
  for (const o in r.renderer) {
5385
5385
  if (!(o in i))
5386
5386
  throw new Error(`renderer '${o}' does not exist`);
@@ -5395,7 +5395,7 @@ class Qa {
5395
5395
  s.renderer = i;
5396
5396
  }
5397
5397
  if (r.tokenizer) {
5398
- const i = this.defaults.tokenizer || new Ht(this.defaults);
5398
+ const i = this.defaults.tokenizer || new Ut(this.defaults);
5399
5399
  for (const o in r.tokenizer) {
5400
5400
  if (!(o in i))
5401
5401
  throw new Error(`tokenizer '${o}' does not exist`);
@@ -5485,29 +5485,29 @@ Please report this to https://github.com/markedjs/marked.`, e) {
5485
5485
  };
5486
5486
  }
5487
5487
  }
5488
- const ze = new Qa();
5488
+ const Le = new Wa();
5489
5489
  function A(t, e) {
5490
- return ze.parse(t, e);
5490
+ return Le.parse(t, e);
5491
5491
  }
5492
5492
  A.options = A.setOptions = function(t) {
5493
- return ze.setOptions(t), A.defaults = ze.defaults, ei(A.defaults), A;
5493
+ return Le.setOptions(t), A.defaults = Le.defaults, ei(A.defaults), A;
5494
5494
  };
5495
- A.getDefaults = Jn;
5495
+ A.getDefaults = Yn;
5496
5496
  A.defaults = De;
5497
5497
  A.use = function(...t) {
5498
- return ze.use(...t), A.defaults = ze.defaults, ei(A.defaults), A;
5498
+ return Le.use(...t), A.defaults = Le.defaults, ei(A.defaults), A;
5499
5499
  };
5500
5500
  A.walkTokens = function(t, e) {
5501
- return ze.walkTokens(t, e);
5501
+ return Le.walkTokens(t, e);
5502
5502
  };
5503
- A.parseInline = ze.parseInline;
5503
+ A.parseInline = Le.parseInline;
5504
5504
  A.Parser = ee;
5505
5505
  A.parser = ee.parse;
5506
- A.Renderer = Ut;
5506
+ A.Renderer = Gt;
5507
5507
  A.TextRenderer = sr;
5508
5508
  A.Lexer = X;
5509
5509
  A.lexer = X.lex;
5510
- A.Tokenizer = Ht;
5510
+ A.Tokenizer = Ut;
5511
5511
  A.Hooks = ct;
5512
5512
  A.parse = A;
5513
5513
  A.options;
@@ -5517,18 +5517,18 @@ A.walkTokens;
5517
5517
  A.parseInline;
5518
5518
  ee.parse;
5519
5519
  X.lex;
5520
- var Ja = /* @__PURE__ */ se('<div><div class="message-content svelte-qh61y2"><!></div></div>'), Ya = /* @__PURE__ */ se('<div class="loading svelte-qh61y2"><!></div>'), Ka = /* @__PURE__ */ se('<div class="chat-body svelte-qh61y2"><div class="placeholder svelte-qh61y2"></div> <!> <!></div>');
5520
+ var Ya = /* @__PURE__ */ se('<div><div class="message-content svelte-18vniux"><!></div></div>'), Ja = /* @__PURE__ */ se('<div class="loading svelte-18vniux"><!></div>'), Ka = /* @__PURE__ */ se('<div class="chat-body svelte-18vniux"><div class="empty-placeholder svelte-18vniux"></div> <!> <!></div>');
5521
5521
  const Xa = {
5522
- hash: "svelte-qh61y2",
5523
- code: `.placeholder.svelte-qh61y2 {height:100%;}.chat-body.svelte-qh61y2 {display:flex;flex-direction:column;gap:10px;overflow-y:auto;height:100%;padding:10px;}.chat-body.svelte-qh61y2::-webkit-scrollbar {width:8px;}.chat-body.svelte-qh61y2::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-qh61y2::-webkit-scrollbar-thumb {background:rgba(\r
5522
+ hash: "svelte-18vniux",
5523
+ code: `.empty-placeholder.svelte-18vniux {height:100%;}.chat-body.svelte-18vniux {display:flex;flex-direction:column;gap:10px;overflow-y:auto;height:100%;padding:10px;}.chat-body.svelte-18vniux::-webkit-scrollbar {width:8px;}.chat-body.svelte-18vniux::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-18vniux::-webkit-scrollbar-thumb {background:rgba(\r
5524
5524
  255,\r
5525
5525
  255,\r
5526
5526
  255,\r
5527
5527
  0.5\r
5528
- ); /* Colore del "pollice" della scrollbar */border-radius:10px;transition:0.3s;}.chat-body.svelte-qh61y2::-webkit-scrollbar-thumb:hover {background:rgba(255, 255, 255, 0.8); /* Più visibile quando hoverata */}.message-sent.svelte-qh61y2 {display:flex;background:#c8d9ff;border-radius:10px;border-bottom-right-radius:0;width:80%;margin-left:auto;}.message-received.svelte-qh61y2 {background:white;border-radius:10px;border-bottom-left-radius:0;width:80%;}.message-content.svelte-qh61y2 {padding:10px;font-size:15px;}.message-content p {margin:5px 0;}.loading.svelte-qh61y2 {display:flex;justify-content:start;align-items:center;padding-left:10px;}`
5528
+ ); /* Colore del "pollice" della scrollbar */border-radius:10px;transition:0.3s;}.chat-body.svelte-18vniux::-webkit-scrollbar-thumb:hover {background:rgba(255, 255, 255, 0.8); /* Più visibile quando hoverata */}.message-sent.svelte-18vniux {display:flex;background:#c8d9ff;border-radius:10px;border-bottom-right-radius:0;width:80%;margin-left:auto;}.message-received.svelte-18vniux {background:white;border-radius:10px;border-bottom-left-radius:0;width:80%;}.message-content.svelte-18vniux {padding:10px;font-size:15px;margin-bottom:-15px;}.loading.svelte-18vniux {display:flex;justify-content:start;align-items:center;padding-left:10px;}`
5529
5529
  };
5530
5530
  function fi(t, e) {
5531
- Te(e, !0), mt(t, Xa);
5531
+ Ee(e, !0), mt(t, Xa);
5532
5532
  let n = ne(e, "messages", 15), r = ne(e, "loading", 15), s = ye(void 0);
5533
5533
  const i = async () => {
5534
5534
  await wo(), m(s) && (m(s).scrollTop = m(s).scrollHeight);
@@ -5537,52 +5537,52 @@ function fi(t, e) {
5537
5537
  n(), i();
5538
5538
  });
5539
5539
  var o = Ka(), l = ie(D(o), 2);
5540
- Cs(l, 17, n, Rs, (c, f) => {
5541
- var h = Ja(), d = D(h), p = D(d);
5542
- Ps(p, () => A(m(f).content), !1, !1), M(d), M(h), Nt(() => Oo(h, Ls(m(f).sentByUser ? "message-sent" : "message-received"), "svelte-qh61y2")), j(c, h);
5540
+ Rs(l, 17, n, Cs, (c, f) => {
5541
+ var h = Ya(), d = D(h), p = D(d);
5542
+ Ps(p, () => A(m(f).content), !1, !1), M(d), M(h), Ot(() => No(h, zs(m(f).sentByUser ? "message-sent" : "message-received"), "svelte-18vniux")), F(c, h);
5543
5543
  });
5544
5544
  var u = ie(l, 2);
5545
5545
  {
5546
5546
  var a = (c) => {
5547
- var f = Ya(), h = D(f);
5547
+ var f = Ja(), h = D(f);
5548
5548
  Pe(h, {
5549
5549
  icon: "svg-spinners:3-dots-bounce",
5550
5550
  width: "25px",
5551
5551
  height: "25px",
5552
5552
  color: "white"
5553
- }), M(f), j(c, f);
5553
+ }), M(f), F(c, f);
5554
5554
  };
5555
5555
  gt(u, (c) => {
5556
5556
  r() && c(a);
5557
5557
  });
5558
5558
  }
5559
- return M(o), Vo(o, (c) => T(s, c), () => m(s)), j(t, o), Ee({
5559
+ return M(o), Ho(o, (c) => E(s, c), () => m(s)), F(t, o), Te({
5560
5560
  get messages() {
5561
5561
  return n();
5562
5562
  },
5563
5563
  set messages(c) {
5564
- n(c), W();
5564
+ n(c), V();
5565
5565
  },
5566
5566
  get loading() {
5567
5567
  return r();
5568
5568
  },
5569
5569
  set loading(c) {
5570
- r(c), W();
5570
+ r(c), V();
5571
5571
  }
5572
5572
  });
5573
5573
  }
5574
5574
  Me(fi, { messages: {}, loading: {} }, [], [], !0);
5575
5575
  const ec = () => {
5576
- const e = document.cookie.split(";").find((n) => n.includes("token"));
5577
- return e ? e.split("=")[1] : "1uHKG3Do1WKYcM2NERmdwQkhmeGV5d2xXU2ppQzA5LzVrUEJaak9LV0c4SEcrY0x0MmNjMkRiSkFSeitjc1BrOFcvTWhxVloxQlFWN1J3SjR3K3ZLR2NFTVJWVng2SDFDMnVjVTAxQ3EvS1NuTHV3NndndkZjWGJsRUczZDhjblBzWXR6MVA4T08yUUVWaUhT";
5576
+ const e = document.cookie.split(";").find((n) => n.includes("akb-chat-token"));
5577
+ return e ? e.split("=")[1] : "";
5578
5578
  }, tc = () => {
5579
- const e = document.cookie.split(";").find((n) => n.includes("envid"));
5580
- return e ? e.split("=")[1] : "aks_qua";
5581
- }, Y = {
5579
+ const e = document.cookie.split(";").find((n) => n.includes("akb-chat-envid"));
5580
+ return e ? e.split("=")[1] : "";
5581
+ }, J = {
5582
5582
  getToken: ec,
5583
5583
  getEnvironmentId: tc
5584
5584
  }, et = () => {
5585
- switch (Y.getEnvironmentId()) {
5585
+ switch (J.getEnvironmentId()) {
5586
5586
  case "aks_svi":
5587
5587
  return "http://localhost:8080";
5588
5588
  case "aks_qua":
@@ -5595,8 +5595,8 @@ const ec = () => {
5595
5595
  }, nc = async (t) => {
5596
5596
  const e = await fetch(`${et()}/chat/${t}`, {
5597
5597
  headers: {
5598
- akstoken: Y.getToken(),
5599
- envid: Y.getEnvironmentId()
5598
+ akstoken: J.getToken(),
5599
+ envid: J.getEnvironmentId()
5600
5600
  }
5601
5601
  });
5602
5602
  if (!e.ok)
@@ -5606,8 +5606,8 @@ const ec = () => {
5606
5606
  }, rc = async () => {
5607
5607
  const t = await fetch(`${et()}/chat`, {
5608
5608
  headers: {
5609
- akstoken: Y.getToken(),
5610
- envid: Y.getEnvironmentId()
5609
+ akstoken: J.getToken(),
5610
+ envid: J.getEnvironmentId()
5611
5611
  }
5612
5612
  });
5613
5613
  if (!t.ok)
@@ -5617,8 +5617,8 @@ const ec = () => {
5617
5617
  const t = await fetch(`${et()}/chat`, {
5618
5618
  method: "POST",
5619
5619
  headers: {
5620
- akstoken: Y.getToken(),
5621
- envid: Y.getEnvironmentId()
5620
+ akstoken: J.getToken(),
5621
+ envid: J.getEnvironmentId()
5622
5622
  }
5623
5623
  });
5624
5624
  if (!t.ok)
@@ -5630,8 +5630,8 @@ const ec = () => {
5630
5630
  method: "POST",
5631
5631
  headers: {
5632
5632
  "Content-Type": "application/json",
5633
- akstoken: Y.getToken(),
5634
- envid: Y.getEnvironmentId()
5633
+ akstoken: J.getToken(),
5634
+ envid: J.getEnvironmentId()
5635
5635
  },
5636
5636
  body: JSON.stringify({ content: e })
5637
5637
  });
@@ -5644,8 +5644,8 @@ const ec = () => {
5644
5644
  method: "POST",
5645
5645
  headers: {
5646
5646
  "Content-Type": "application/json",
5647
- akstoken: Y.getToken(),
5648
- envid: Y.getEnvironmentId()
5647
+ akstoken: J.getToken(),
5648
+ envid: J.getEnvironmentId()
5649
5649
  },
5650
5650
  body: JSON.stringify({ title: e })
5651
5651
  })).ok)
@@ -5654,12 +5654,12 @@ const ec = () => {
5654
5654
  if (!(await fetch(`${et()}/chat/${t}`, {
5655
5655
  method: "DELETE",
5656
5656
  headers: {
5657
- akstoken: Y.getToken(),
5658
- envid: Y.getEnvironmentId()
5657
+ akstoken: J.getToken(),
5658
+ envid: J.getEnvironmentId()
5659
5659
  }
5660
5660
  })).ok)
5661
5661
  throw new Error("Failed to delete chat");
5662
- }, qe = {
5662
+ }, je = {
5663
5663
  getChat: nc,
5664
5664
  getChats: rc,
5665
5665
  newChat: sc,
@@ -5676,12 +5676,12 @@ const dc = {
5676
5676
  @import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");.svelte-s62nll {font-family:"Montserrat", sans-serif;}.history.svelte-s62nll {position:fixed;bottom:0;right:350px;width:300px;height:600px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:10px;background:#3c4450;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);}.title.svelte-s62nll {font-size:1.5rem;color:#fff;margin:10px;text-align:left;}.chats.svelte-s62nll {display:flex;flex-direction:column;padding:10px;overflow-y:scroll;overflow-x:hidden;height:100%;padding-right:55px;gap:20px;}.chat.svelte-s62nll {background:rgba(255, 255, 255, 0.2);display:flex;justify-content:space-between;align-items:center;border-radius:10px;transition:200ms;width:220px;}.chat.svelte-s62nll > .chat-button:where(.svelte-s62nll) {background:transparent;padding:5px 10px;border-radius:10px;cursor:pointer;transition:200ms;text-align:left;border:none;font-size:15px;}.chat.svelte-s62nll > .chat-delete:where(.svelte-s62nll) {display:flex;justify-content:center;align-items:center;background:transparent;border-radius:100%;cursor:pointer;transition:200ms;border:none;height:35px;width:35px;color:white;margin:3px;}.chat.svelte-s62nll:hover {scale:1.02;}.chat-button.svelte-s62nll:hover {background:rgba(255, 255, 255, 0.2);}.chat-delete.svelte-s62nll:hover {background:rgba(255, 255, 255, 0.2);}.chat.svelte-s62nll > button:where(.svelte-s62nll) > span:where(.svelte-s62nll) {color:white;text-shadow:0 0 5px rgba(0, 0, 0, 0.1);}`
5677
5677
  };
5678
5678
  function hi(t, e) {
5679
- Te(e, !0), mt(t, dc);
5679
+ Ee(e, !0), mt(t, dc);
5680
5680
  let n = ne(e, "showHistory", 15), r = ne(e, "actChat", 15), s = ne(e, "chats", 15);
5681
5681
  const i = (c) => {
5682
5682
  r(c);
5683
5683
  }, o = (c, f) => {
5684
- confirm("Sei sicuro di voler eliminare la chat " + f + "?") && qe.deleteChat(c).then(() => {
5684
+ confirm("Sei sicuro di voler eliminare la chat " + f + "?") && je.deleteChat(c).then(() => {
5685
5685
  s(s().filter((h) => h._id !== c)), r()._id === c && r(new ke("", "", "", "New Chat", [fe.firstMessage()]));
5686
5686
  });
5687
5687
  };
@@ -5689,7 +5689,7 @@ function hi(t, e) {
5689
5689
  {
5690
5690
  var a = (c) => {
5691
5691
  var f = fc(), h = ie(D(f), 2);
5692
- Cs(h, 21, s, Rs, (d, p) => {
5692
+ Rs(h, 21, s, Cs, (d, p) => {
5693
5693
  var g = uc(), b = D(g);
5694
5694
  b.__click = [ac, r, p, i];
5695
5695
  var v = D(b), _ = D(v, !0);
@@ -5701,60 +5701,60 @@ function hi(t, e) {
5701
5701
  icon: "tabler:trash",
5702
5702
  width: "25px",
5703
5703
  height: "25px"
5704
- }), M(k), M(g), Nt(() => {
5705
- Ft(g, "style", r()._id === m(p)._id ? "background: #295dcf; cursor: default;" : ""), Eo(_, m(p).title);
5706
- }), j(d, g);
5707
- }), M(h), M(f), Ms(3, f, () => nl, () => ({ axis: "x", duration: 600 })), j(c, f);
5704
+ }), M(k), M(g), Ot(() => {
5705
+ qt(g, "style", r()._id === m(p)._id ? "background: #295dcf; cursor: default;" : ""), To(_, m(p).title);
5706
+ }), F(d, g);
5707
+ }), M(h), M(f), Ms(3, f, () => nl, () => ({ axis: "x", duration: 600 })), F(c, f);
5708
5708
  };
5709
5709
  gt(u, (c) => {
5710
5710
  n() && c(a);
5711
5711
  });
5712
5712
  }
5713
- return M(l), j(t, l), Ee({
5713
+ return M(l), F(t, l), Te({
5714
5714
  get showHistory() {
5715
5715
  return n();
5716
5716
  },
5717
5717
  set showHistory(c) {
5718
- n(c), W();
5718
+ n(c), V();
5719
5719
  },
5720
5720
  get actChat() {
5721
5721
  return r();
5722
5722
  },
5723
5723
  set actChat(c) {
5724
- r(c), W();
5724
+ r(c), V();
5725
5725
  },
5726
5726
  get chats() {
5727
5727
  return s();
5728
5728
  },
5729
5729
  set chats(c) {
5730
- s(c), W();
5730
+ s(c), V();
5731
5731
  }
5732
5732
  });
5733
5733
  }
5734
5734
  bt(["click"]);
5735
5735
  Me(hi, { showHistory: {}, actChat: {}, chats: {} }, [], [], !0);
5736
- var pc = /* @__PURE__ */ se('<!> <div class="chat svelte-18mfzyz"><!> <!> <!></div>', 1), gc = (t, e) => T(e, !0), vc = /* @__PURE__ */ se('<button class="chat-bottom svelte-18mfzyz">Show Chat</button>'), _c = /* @__PURE__ */ se('<div class="external-div svelte-18mfzyz"><!></div>');
5736
+ var pc = /* @__PURE__ */ se('<!> <div class="chat svelte-18mfzyz"><!> <!> <!></div>', 1), gc = (t, e) => E(e, !0), vc = /* @__PURE__ */ se('<button class="chat-bottom svelte-18mfzyz">Show Chat</button>'), _c = /* @__PURE__ */ se('<div class="external-div svelte-18mfzyz"><!></div>');
5737
5737
  const bc = {
5738
5738
  hash: "svelte-18mfzyz",
5739
5739
  code: `\r
5740
5740
  @import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");.svelte-18mfzyz {font-family:"Montserrat", sans-serif !important;}.chat.svelte-18mfzyz {position:fixed;bottom:0;right:0;width:400px;height:600px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:10px;background:#295dcf;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);}.chat-bottom.svelte-18mfzyz {position:fixed;bottom:0;right:0;background:#295dcf;border:none;color:white;font-size:1rem;cursor:pointer;border-radius:30px;padding:10px;margin:30px;font-weight:bold;font-family:"Montserrat", sans-serif !important;}`
5741
5741
  };
5742
5742
  function di(t, e) {
5743
- Te(e, !0), mt(t, bc);
5744
- let n = ye(!1), r = ye(!1), s = ye(O(new ke("", "", "", "New Chat", [fe.firstMessage()]))), i = ye(O([])), o = ye(O([fe.firstMessage()])), l = ye(!1);
5743
+ Ee(e, !0), mt(t, bc);
5744
+ let n = ye(!1), r = ye(!1), s = ye(N(new ke("", "", "", "New Chat", [fe.firstMessage()]))), i = ye(N([])), o = ye(N([fe.firstMessage()])), l = ye(!1);
5745
5745
  const u = async (d) => {
5746
- if (T(l, !0), T(o, O([
5746
+ if (E(l, !0), E(o, N([
5747
5747
  ...m(o),
5748
5748
  new fe((/* @__PURE__ */ new Date()).getTime(), !0, d)
5749
- ])), m(o).length == 2 && (T(s, O(await qe.newChat())), T(i, O([...m(i), m(s)])), m(s).messages = m(o)), m(s)) {
5750
- let p = await qe.sendMessage(m(s)._id, d);
5751
- m(o).length == 2 && T(s, O(await qe.getChat(m(s)._id))), T(s, O(await qe.getChat(m(s)._id))), T(o, O([...m(o), p]));
5749
+ ])), m(o).length == 2 && (E(s, N(await je.newChat())), E(i, N([...m(i), m(s)])), m(s).messages = m(o)), m(s)) {
5750
+ let p = await je.sendMessage(m(s)._id, d);
5751
+ m(o).length == 2 && E(s, N(await je.getChat(m(s)._id))), E(s, N(await je.getChat(m(s)._id))), E(o, N([...m(o), p]));
5752
5752
  }
5753
- T(l, !1);
5753
+ E(l, !1);
5754
5754
  };
5755
5755
  ft(() => {
5756
- m(s) && T(o, O(m(s).messages)), qe.getChats().then((d) => {
5757
- T(i, O(d));
5756
+ m(s) && E(o, N(m(s).messages)), je.getChats().then((d) => {
5757
+ E(i, N(d));
5758
5758
  });
5759
5759
  });
5760
5760
  var a = _c(), c = D(a);
@@ -5766,19 +5766,19 @@ function di(t, e) {
5766
5766
  return m(r);
5767
5767
  },
5768
5768
  set showHistory(x) {
5769
- T(r, O(x));
5769
+ E(r, N(x));
5770
5770
  },
5771
5771
  get actChat() {
5772
5772
  return m(s);
5773
5773
  },
5774
5774
  set actChat(x) {
5775
- T(s, O(x));
5775
+ E(s, N(x));
5776
5776
  },
5777
5777
  get chats() {
5778
5778
  return m(i);
5779
5779
  },
5780
5780
  set chats(x) {
5781
- T(i, O(x));
5781
+ E(i, N(x));
5782
5782
  }
5783
5783
  });
5784
5784
  var b = ie(g, 2), v = D(b);
@@ -5787,19 +5787,19 @@ function di(t, e) {
5787
5787
  return m(n);
5788
5788
  },
5789
5789
  set show(x) {
5790
- T(n, O(x));
5790
+ E(n, N(x));
5791
5791
  },
5792
5792
  get showHistory() {
5793
5793
  return m(r);
5794
5794
  },
5795
5795
  set showHistory(x) {
5796
- T(r, O(x));
5796
+ E(r, N(x));
5797
5797
  },
5798
5798
  get actChat() {
5799
5799
  return m(s);
5800
5800
  },
5801
5801
  set actChat(x) {
5802
- T(s, O(x));
5802
+ E(s, N(x));
5803
5803
  }
5804
5804
  });
5805
5805
  var _ = ie(v, 2);
@@ -5808,44 +5808,46 @@ function di(t, e) {
5808
5808
  return m(o);
5809
5809
  },
5810
5810
  set messages(x) {
5811
- T(o, O(x));
5811
+ E(o, N(x));
5812
5812
  },
5813
5813
  get loading() {
5814
5814
  return m(l);
5815
5815
  },
5816
5816
  set loading(x) {
5817
- T(l, O(x));
5817
+ E(l, N(x));
5818
5818
  }
5819
5819
  });
5820
5820
  var k = ie(_, 2);
5821
- Xs(k, { sendMessage: u }), M(b), Ms(3, b, () => tl, () => ({ y: 50, duration: 500 })), j(d, p);
5821
+ Xs(k, { sendMessage: u }), M(b), Ms(3, b, () => tl, () => ({ y: 50, duration: 500 })), F(d, p);
5822
5822
  }, h = (d) => {
5823
5823
  var p = vc();
5824
- p.__click = [gc, n], j(d, p);
5824
+ p.__click = [gc, n], F(d, p);
5825
5825
  };
5826
5826
  gt(c, (d) => {
5827
5827
  m(n) ? d(f) : d(h, !1);
5828
5828
  });
5829
5829
  }
5830
- M(a), j(t, a), Ee();
5830
+ M(a), F(t, a), Te();
5831
5831
  }
5832
5832
  bt(["click"]);
5833
5833
  Me(di, {}, [], [], !0);
5834
5834
  function mc(t, e) {
5835
- Te(e, !0);
5836
- let n = ne(e, "envId", 23, () => "aks_qua"), r = ne(e, "token", 23, () => "1uHKG3Do1WKYcM2NERmdwQkhmeGV5d2xXU2ppQzA5LzVrUEJaak9LV0c4SEcrY0x0MmNjMkRiSkFSeitjc1BrOFcvTWhxVloxQlFWN1J3SjR3K3ZLR2NFTVJWVng2SDFDMnVjVTAxQ3EvS1NuTHV3NndndkZjWGJsRUczZDhjblBzWXR6MVA4T08yUUVWaUhT");
5837
- return document.cookie = `envid=${n()}`, document.cookie = `token=${r()}`, di(t, {}), Ee({
5835
+ Ee(e, !0);
5836
+ let n = ne(e, "envId", 23, () => {
5837
+ }), r = ne(e, "token", 23, () => {
5838
+ });
5839
+ return document.cookie = `akb-chat-envid=${n()}`, document.cookie = `akb-chat-token=${r()}`, di(t, {}), Te({
5838
5840
  get envId() {
5839
5841
  return n();
5840
5842
  },
5841
- set envId(s = "aks_qua") {
5842
- n(s), W();
5843
+ set envId(s = void 0) {
5844
+ n(s), V();
5843
5845
  },
5844
5846
  get token() {
5845
5847
  return r();
5846
5848
  },
5847
- set token(s = "1uHKG3Do1WKYcM2NERmdwQkhmeGV5d2xXU2ppQzA5LzVrUEJaak9LV0c4SEcrY0x0MmNjMkRiSkFSeitjc1BrOFcvTWhxVloxQlFWN1J3SjR3K3ZLR2NFTVJWVng2SDFDMnVjVTAxQ3EvS1NuTHV3NndndkZjWGJsRUczZDhjblBzWXR6MVA4T08yUUVWaUhT") {
5848
- r(s), W();
5849
+ set token(s = void 0) {
5850
+ r(s), V();
5849
5851
  }
5850
5852
  });
5851
5853
  }
@@ -5853,12 +5855,12 @@ customElements.define("akb-chat", Me(
5853
5855
  mc,
5854
5856
  {
5855
5857
  token: {
5856
- attribute: "token",
5858
+ attribute: "aks-token",
5857
5859
  reflect: !0,
5858
5860
  type: "String"
5859
5861
  },
5860
5862
  envId: {
5861
- attribute: "envid",
5863
+ attribute: "env-id",
5862
5864
  reflect: !0,
5863
5865
  type: "String"
5864
5866
  }