@commentkit/comment-kit 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/npm/THIRD_PARTY_NOTICES.txt +2 -2
  3. package/dist/npm/chunks/{AgentSend-DjFZSC0S.js → AgentSend-2JPDseOo.js} +4 -5
  4. package/dist/npm/chunks/{Checklist-BEz4IZdT.js → Checklist-BpDXQebo.js} +77 -79
  5. package/dist/npm/chunks/Composer-CAyj-c8e.js +677 -0
  6. package/dist/npm/chunks/Guest-ZdFmTcXI.js +187 -0
  7. package/dist/npm/chunks/{MarkupEditor-CPH4yKx4.js → MarkupEditor-BFplZwFy.js} +3 -5
  8. package/dist/npm/chunks/{Panel-DSoUAlbQ.js → Panel-BhZ4XRDR.js} +300 -302
  9. package/dist/npm/chunks/{Settings-C_qV4n7J.js → Settings-SPG9EHUZ.js} +70 -72
  10. package/dist/npm/chunks/{Shortcuts-ChnaribX.js → Shortcuts-C28HVDw6.js} +3 -5
  11. package/dist/npm/chunks/{StyleEditor-DqZd6C5o.js → StyleEditor-ByZMtq10.js} +4 -5
  12. package/dist/npm/chunks/{StylePanel-DMC3riYK.js → StylePanel-Iwhce2tE.js} +62 -64
  13. package/dist/npm/chunks/{TaskFields-BfjjllMx.js → TaskFields-BsP_fVJg.js} +7 -6
  14. package/dist/npm/chunks/{ThreadCard-DmKAelSL.js → ThreadCard-BzVZdDCb.js} +407 -403
  15. package/dist/npm/chunks/{Viewer-mw69qSI5.js → Viewer-CqtGrdD8.js} +29 -31
  16. package/dist/npm/chunks/{agent-CqDO3JMA.js → agent-BDMQtOzH.js} +14 -15
  17. package/dist/npm/chunks/{anchor-OCQnjp_6.js → anchor-BsradQhn.js} +1 -2
  18. package/dist/npm/chunks/{ar-BQ9K9Oqf.js → ar-8tPch6W4.js} +5 -2
  19. package/dist/npm/chunks/{card-bits-C7bIk5KX.js → card-bits-Bna-g3Py.js} +24 -26
  20. package/dist/npm/chunks/{client-dZeNdizE.js → client-EFTWxHbJ.js} +76 -61
  21. package/dist/npm/chunks/{colors-CAjY4jxf.js → colors-CWAn_swA.js} +1 -2
  22. package/dist/npm/chunks/{confetti-DKeKR7-6.js → confetti-DTKpwF3O.js} +1 -2
  23. package/dist/npm/chunks/{de-CcPi8xdC.js → de-C63897uD.js} +5 -2
  24. package/dist/npm/chunks/{drafts-CpQdHhcK.js → drafts-akdBsOd0.js} +1 -2
  25. package/dist/npm/chunks/{es-DXgkjDCG.js → es-CI2bSpvB.js} +5 -2
  26. package/dist/npm/chunks/{extension-BFkXOmX5.js → extension-BST6LH1q.js} +2 -3
  27. package/dist/npm/chunks/{extension-Gvei3opb.js → extension-D-V3utTm.js} +3 -4
  28. package/dist/npm/chunks/{fr-IjJaUbWh.js → fr-rsVe-Lqk.js} +5 -2
  29. package/dist/npm/chunks/{hi-BhKQK2MU.js → hi-cvwbSaWP.js} +5 -2
  30. package/dist/npm/chunks/{html2canvas-pro.esm-lgs6tb4C.js → html2canvas-pro.esm-B7b8p5Wr.js} +608 -528
  31. package/dist/npm/chunks/{i18n-DAJGndZ2.js → i18n-C4v0M-6z.js} +254 -257
  32. package/dist/npm/chunks/{it-DKiSCkiD.js → it-C8tnV0BF.js} +5 -2
  33. package/dist/npm/chunks/{ja-BI1WagDg.js → ja-BWxDfC2f.js} +5 -2
  34. package/dist/npm/chunks/{live-MvvBdoGd.js → live-BCpJVBeN.js} +2 -3
  35. package/dist/npm/chunks/{lock-C82sC17d.js → lock-B1JLlOhz.js} +0 -1
  36. package/dist/npm/chunks/{nl-CJw3VUQ5.js → nl-DNQ6eCht.js} +5 -2
  37. package/dist/npm/chunks/{pick-dDDLxCDI.js → pick-CLyOdjnD.js} +3 -4
  38. package/dist/npm/chunks/{pt-BR-CjBolC5g.js → pt-BR-CkG7vpU2.js} +5 -2
  39. package/dist/npm/chunks/{realtime-D22tI_AS.js → realtime-DIo-Wth4.js} +2 -3
  40. package/dist/npm/chunks/{report-DoDVi1qT.js → report-BBrT3r89.js} +1 -2
  41. package/dist/npm/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
  42. package/dist/npm/chunks/{source-BQS2_xfB.js → source-CS7C6wJA.js} +2 -3
  43. package/dist/npm/chunks/{src-C_oUnL0i.js → src-C4FsVoUp.js} +22 -24
  44. package/dist/npm/chunks/{start-C5-rebEU.js → start-i9M-r3aH.js} +374 -357
  45. package/dist/npm/chunks/{upload-CzPAjktW.js → upload-DSv7EyBD.js} +2 -3
  46. package/dist/npm/chunks/uploads-I01kdqQF.js +1103 -0
  47. package/dist/npm/chunks/{zh-CN-BrZGx2S0.js → zh-CN-BKuZOLBE.js} +5 -2
  48. package/dist/npm/element.js +2 -3
  49. package/dist/npm/headless.js +2 -2
  50. package/dist/npm/index.js +2 -2
  51. package/dist/npm/react.js +2 -3
  52. package/dist/npm/svelte.js +2 -3
  53. package/dist/npm/types/core/auth.d.ts +14 -0
  54. package/dist/npm/vue.js +2 -3
  55. package/package.json +8 -8
  56. package/dist/npm/chunks/Composer-D1wbmdjF.js +0 -681
  57. package/dist/npm/chunks/Guest-CtyRy8Kz.js +0 -170
  58. package/dist/npm/chunks/uploads-tpLjiJdH.js +0 -541
@@ -1,9 +1,9 @@
1
- //#region node_modules/preact/dist/preact.mjs
2
- var e, t, n, r, i, a, o, s, c, l, u = {}, d = [], f = /^m(i|n|o|s|text|space)$/, p = Array.isArray, m = d.slice, h = Object.assign;
3
- function g(e) {
1
+ // node_modules/preact/dist/preact.mjs
2
+ var e, t, n, r, i, a, o, s, c, l, u = Symbol.for("pv"), d = {}, f = [], p = /^m(i|n|o|s|text|space)$/, m = Array.isArray, h = f.slice, g = Object.assign;
3
+ function _(e) {
4
4
  e && e.parentNode && e.remove();
5
5
  }
6
- function _(n, r, i, a, o) {
6
+ function v(n, r, i, a, o) {
7
7
  var s = {
8
8
  type: n,
9
9
  props: r,
@@ -14,176 +14,173 @@ function _(n, r, i, a, o) {
14
14
  __b: 0,
15
15
  __e: null,
16
16
  __c: null,
17
- constructor: void 0,
17
+ constructor: u,
18
18
  __v: o || ++t,
19
19
  __i: -1,
20
20
  __u: 0
21
21
  };
22
22
  return !o && e.vnode && e.vnode(s), s;
23
23
  }
24
- function v(e) {
24
+ function y(e) {
25
25
  return e.children;
26
26
  }
27
- function y(e, t) {
27
+ function b(e, t) {
28
28
  this.props = e, this.context = t, this.__g = 0;
29
29
  }
30
- function b(e, t) {
31
- if (t == null) return e.__ ? b(e.__, e.__i + 1) : null;
30
+ function x(e, t) {
31
+ if (t == null) return e.__ && x(e.__, e.__i + 1);
32
32
  for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) && n.__e) return n.__e;
33
- return typeof e.type != "function" || e.props.__P ? null : b(e);
33
+ return typeof e.type != "function" || e.props.__P ? null : x(e);
34
34
  }
35
- function x(e) {
35
+ function S(e) {
36
36
  if ((e = e.__) && e.__c && !e.props.__P) return e.__e = null, e.__k.some(function(t) {
37
37
  return t && (e.__e = t.__e);
38
- }), x(e);
38
+ }), S(e);
39
39
  }
40
- function S(t) {
41
- (8 & t.__g || !(t.__g |= 8) || !n.push(t) || i++) && r == e.debounceRendering || ((r = e.debounceRendering) || queueMicrotask)(C);
40
+ function C(t) {
41
+ (8 & t.__g || (t.__g |= 8, n.push(t), i++)) && r == e.debounceRendering || ((r = e.debounceRendering) || queueMicrotask)(w);
42
42
  }
43
- function C() {
44
- var t, r, o, s, c, l, u, d, f;
43
+ function w() {
44
+ var t, o, s, c, l, d, f, p, m;
45
45
  try {
46
- for (r = 1; n.length;) n.length > r && n.sort(a), t = n.shift(), r = n.length, 8 & t.__g && (s = void 0, c = void 0, l = (c = (o = t).__v).__e, u = [], d = [], (f = o.__P) && ((s = h({ constructor: void 0 }, c)).__v = c.__v + 1, e.vnode && e.vnode(s), A(f, s, c, o.__n, f.namespaceURI, 32 & c.__u ? [l] : null, u, l || b(c), 32 & c.__u, d), s.__v = c.__v, s.__.__k[s.__i] = s, j(u, s, d), c.__ = c.__e = null, s.__e != l && x(s)));
46
+ for (o = 1; n.length;) n.length > o && n.sort(a), t = n.shift(), o = n.length, 8 & t.__g && (c = void 0, l = void 0, d = (l = (s = t).__v).__e, f = [], p = [], (m = s.__P) && ((c = g({ constructor: u }, l)).__v = l.__v + 1, e.vnode && e.vnode(c), j(m, c, l, s.__n, m.namespaceURI, 32 & l.__u ? [d] : null, f, d || x(l), 32 & l.__u, p), c.__v = l.__v, c.__.__k[c.__i] = c, N(f, c, p), l.__ = l.__e = null, c.__e != d && S(c)));
47
47
  } finally {
48
- n.length = i = 0;
48
+ (i = n.length) && (r || queueMicrotask)(w);
49
49
  }
50
50
  }
51
- function ee(e, t, n, r, i, a, o, s, c, l, f) {
52
- var p, m, h, g, _, v, y = r.__k || d, b = t.length;
53
- for (c = w(n, t, y, c, b), p = 0; p < b; p++) (h = n.__k[p]) != null && (m = ~h.__i && y[h.__i] || u, h.__i = p, v = A(e, h, m, i, a, o, s, c, l, f), g = h.__e, (m.ref != h.ref || 8 & m.__u) && (m.ref && M(m.ref, null, h, m), h.ref && f.push(h.ref, h.__c || g, h)), _ = _ || g, 4 & h.__u ? (c = T(h, c, e, !m.__v), m.__e && (m.__e = null)) : typeof h.type == "function" && v !== void 0 ? c = v : g && (c = g.nextSibling), h.__u &= -7);
51
+ function ee(e, t, n, r, i, a, o, s, c, l, u) {
52
+ var p, m, h, g, _, v, y = r.__k || f, b = t.length;
53
+ for (c = T(n, t, y, c, b), p = 0; p < b; p++) (h = n.__k[p]) != null && (m = ~h.__i && y[h.__i] || d, h.__i = p, v = j(e, h, m, i, a, o, s, c, l, u), g = h.__e, (m.ref != h.ref || 8 & m.__u) && (m.ref && P(m.ref, null, h, m), h.ref && u.push(h.ref, h.__c || g, h)), _ = _ || g, 4 & h.__u ? (c = E(h, c, e, !m.__v), m.__e && (m.__e = null)) : typeof h.type == "function" && v !== void 0 ? c = v : g && (c = g.nextSibling), h.__u &= -21);
54
54
  return n.__e = _, c;
55
55
  }
56
- function w(e, t, n, r, i) {
57
- var a, o, s, c, l, u, d, f, m, h, g = n.length, y = g, x = 0, S = !1, C = e.__k = Array(i);
58
- for (a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o != "object" || o.constructor == String ? o = C[a] = _(null, o) : p(o) ? o = C[a] = _(v, { children: o }) : o.constructor === void 0 && o.__b ? o = C[a] = _(o.type, o.props, o.key, o.ref, o.__v) : C[a] = o, c = a + x, o.__ = e, o.__b = e.__b + 1, s = null, ~(l = o.__i = E(o, n, c, y)) && (y--, (s = n[l]) && (s.__u |= 2)), s && s.__v ? (o.__u |= 2, l == c - 1 ? x-- : l == c + 1 ? x++ : l != c && (l > c ? x-- : x++, S = !0)) : (~l || (i > g ? x-- : i < g && x++), typeof o.type != "function" && (o.__u |= 4))) : C[a] = null;
56
+ function T(e, t, n, r, i) {
57
+ var a, o, s, c, l, d, f, p, h, g = n.length, _ = g, b = 0, S = 0, C = e.__k = Array(i);
58
+ for (a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o != "object" || o.constructor === String ? o = C[a] = v(null, o) : m(o) ? o = C[a] = v(y, { children: o }) : o.constructor === u && o.__b ? o = C[a] = v(o.type, o.props, o.key, o.ref, o.__v) : C[a] = o, c = a + b, o.__ = e, o.__b = e.__b + 1, s = null, ~(l = o.__i = D(o, n, c, _)) && (_--, (s = n[l]) && (s.__u |= 2)), s && s.__v ? (o.__u |= 16, l == c - 1 ? b-- : l == c + 1 ? b++ : l != c && (l > c ? b-- : b++, S = 1)) : (~l || (i > g ? b-- : i < g && b++), typeof o.type != "function" && (o.__u |= 4))) : C[a] = null;
59
59
  if (S) {
60
- for (u = [], d = [], a = 0; a < i; a++) if ((o = C[a]) && 2 & o.__u) {
61
- for (f = 0, m = u.length; f < m;) u[h = f + m >> 1] < o.__i ? f = h + 1 : m = h;
62
- u[f] = o.__i, d[a] = f + 1;
60
+ for (d = [], f = [], a = 0; a < i; a++) if ((o = C[a]) && 16 & o.__u) {
61
+ for (b = 0, p = d.length; b < p;) d[h = b + p >> 1] < o.__i ? b = h + 1 : p = h;
62
+ d[b] = o.__i, f[a] = b + 1;
63
63
  }
64
- for (x = u.length; a--;) d[a] && (d[a] == x ? x-- : C[a].__u |= 4);
64
+ for (b = d.length; a--;) f[a] && (f[a] == b ? b-- : C[a].__u |= 4);
65
65
  }
66
- if (y) for (a = 0; a < g; a++) !(s = n[a]) || 2 & s.__u || (s.__e == r && (r = b(s)), N(s, s));
66
+ if (_) for (a = 0; a < g; a++) !(s = n[a]) || 2 & s.__u || (s.__e == r && (r = x(s)), F(s, s));
67
67
  return r;
68
68
  }
69
- function T(e, t, n, r) {
70
- var i, a, o;
69
+ function E(e, t, n, r) {
70
+ var i, a, o, s;
71
71
  if (typeof e.type == "function") {
72
72
  if (e.props.__P) return t;
73
- if (i = e.__k) for (a = 0; a < i.length; a++) i[a] && (i[a].__ = e, t = T(i[a], t, n, !1));
73
+ if (i = e.__k) for (a = 0; a < i.length; a++) i[a] && (i[a].__ = e, t = E(i[a], t, n, !1));
74
74
  return t;
75
75
  }
76
- for (t && !t.parentNode && (t = b(e)) && !t.parentNode && (t = null), o = t; o && o.nodeType == 8;) o = o.nextSibling;
77
- for (e.__e != o && (!r && n.moveBefore && e.__e.parentNode ? n.moveBefore(e.__e, t) : n.insertBefore(e.__e, t || null)), t = e.__e; (t = t && t.nextSibling) && t.nodeType == 8;);
76
+ for (t && !t.parentNode && (t = x(e)) && !t.parentNode && (t = null), o = e.__e, s = t; s && s.nodeType == 8;) s = s.nextSibling;
77
+ for (o != s && (!r && n.moveBefore && o.parentNode ? n.moveBefore(o, t) : n.insertBefore(o, t || null)), t = o; (t = t && t.nextSibling) && t.nodeType == 8 && !t.data.startsWith("$s"););
78
78
  return t;
79
79
  }
80
- function E(e, t, n, r) {
81
- var i, a, o, s = e.key, c = e.type, l = t[n], u = l && !(2 & l.__u);
82
- if (l === null && s == null || u && s == l.key && c == l.type) return n;
83
- if (r > +!!u) {
84
- for (i = n - 1, a = n + 1; i >= 0 || a < t.length;) if ((l = t[o = i >= 0 ? i-- : a++]) && !(2 & l.__u) && s == l.key && c == l.type) return o;
80
+ function D(e, t, n, r) {
81
+ var i, a = e.key, o = e.type, s = t[n], c = s && !(2 & s.__u);
82
+ if (s === null && a == null || c && a == s.key && o == s.type) return n;
83
+ if (r > +!!c) {
84
+ for (i = n - 1; i >= 0; i--) if ((s = t[i]) && !(2 & s.__u) && a == s.key && o == s.type) return i;
85
+ for (i = n + 1; i < t.length; i++) if ((s = t[i]) && !(2 & s.__u) && a == s.key && o == s.type) return i;
85
86
  }
86
87
  return -1;
87
88
  }
88
- function D(e, t, n) {
89
+ function O(e, t, n) {
89
90
  n ?? (n = ""), t[0] == "-" ? e.setProperty(t, n) : e[t] = n;
90
91
  }
91
- function O(e, t, n, r, i) {
92
+ function k(e, t, n, r, i) {
92
93
  var a, o;
93
- n: if (t == "style") {
94
+ if (t == "style") {
94
95
  if (typeof n == "string") e.style.cssText = n;
95
96
  else {
96
- if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || D(e.style, t, "");
97
- if (n) for (t in n) r && n[t] == r[t] || D(e.style, t, n[t]);
97
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || O(e.style, t);
98
+ if (n) for (t in n) r && n[t] == r[t] || O(e.style, t, n[t]);
98
99
  }
99
- } else if (t[0] == "o" && t[1] == "n") (e.__e || (e.__e = {}))[t] = n, n && r || (o = l[t] || (l[t] = k(t)), (e.__a || (e.__a = {}))[t] = c, a = t != (t = t.replace(s, "$1")), (t = t.slice(2))[0] < "a" && (t = t.toLowerCase()), n ? e.addEventListener(t, o, a) : e.removeEventListener(t, o, a));
100
+ } else if (t[0] == "o" && t[1] == "n") (e.__e || (e.__e = {}))[t] = n, n && r || (o = l[t] || (l[t] = A(t)), (e.__a || (e.__a = {}))[t] = c, a = t != (t = t.replace(s, "$1")), (t = t.slice(2))[0] < "a" && (t = t.toLowerCase()), n ? e.addEventListener(t, o, a) : e.removeEventListener(t, o, a));
100
101
  else {
101
102
  if (i == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
102
103
  else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
103
104
  e[t] = n ?? "";
104
- break n;
105
+ return;
105
106
  } catch {}
106
- typeof n == "function" || (n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
107
+ if (typeof n == "function") return;
108
+ n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n);
107
109
  }
108
110
  }
109
- function k(t) {
111
+ function A(t) {
110
112
  return function(n) {
111
- if (this.__e) {
112
- var r = this.__e[t];
113
- if (n[o] == null) n[o] = c++;
113
+ var r = this.__e;
114
+ if (r) {
115
+ if (r = r[t], n[o] == null) n[o] = c++;
114
116
  else if (n[o] < this.__a[t]) return;
115
117
  return r(e.event ? e.event(n) : n);
116
118
  }
117
119
  };
118
120
  }
119
- function A(t, n, r, i, a, o, s, c, l, u) {
120
- var f, m, _, x, S, C, w, T, E, D, O, k, A, j, M, P, F, I, L, R, z = n.type;
121
- if (n.constructor !== void 0) return null;
122
- if (128 & r.__u && (l = 32 & r.__u, f = r.__c.__z)) {
123
- if (n.__u |= l, m = o = [], f.nodeType == 8) for (_ = 1, x = f.nextSibling; x; x = x.nextSibling) {
124
- if (x.nodeType == 8) {
125
- if (x.data.startsWith("$s")) _++;
126
- else if (x.data.startsWith("/$s") && !--_) break;
127
- }
128
- o.push(x);
129
- }
130
- else o.push(f);
131
- c = o[0];
132
- }
133
- (f = e.__b) && f(n);
121
+ function j(t, n, r, i, a, o, s, c, l, d) {
122
+ var p, h, v, S, C, w, T, E, D, O, k, A, j, N, P, I, L, R, z = n.type;
123
+ if (n.constructor !== u) return null;
124
+ 128 & r.__u && (l = 32 & r.__u, p = r.__c.__z) && (n.__u |= l, h = o = [], p.nodeType == 8 ? c = M(p, o) : o.push(p), c = o[0] || c), (p = e.__b) && p(n);
134
125
  n: if (typeof z == "function") {
135
- S = s.length;
126
+ v = s.length;
136
127
  try {
137
- if (D = n.props, O = (f = z.prototype) && f.render, k = (f = z.contextType) && i[f.__c], A = f ? k ? k.props.value : f.__ : i, r.__c ? 2 & (C = n.__c = r.__c).__g && (C.__g |= 1) : (O ? n.__c = C = new z(D, A) : (n.__c = C = new y(D, A), C.constructor = z, C.render = re), k && k.sub(C), C.state || (C.state = {}), C.__n = i, C.__g |= 8, C.__h = [], C.__k = []), O && (C.__s || (C.__s = C.state), z.getDerivedStateFromProps && (C.__s == C.state && (C.__s = h({}, C.__s)), h(C.__s, z.getDerivedStateFromProps(D, C.__s)))), w = C.props, T = C.state, C.__v = n, r.__c) {
138
- if (O && !z.getDerivedStateFromProps && D !== w && C.componentWillReceiveProps && C.componentWillReceiveProps(D, A), n.__v == r.__v && !(8 & C.__g) || !(4 & C.__g) && C.shouldComponentUpdate && !1 === C.shouldComponentUpdate(D, C.__s, A)) {
139
- n.__v != r.__v && (C.props = D, C.state = C.__s, C.__g &= -9), n.__e = r.__e, n.__k = r.__k, n.__k.some(function(e) {
128
+ if (E = n.props, D = (p = z.prototype) && p.render, O = (p = z.contextType) && i[p.__c], k = p ? O ? O.props.value : p.__ : i, (S = r.__c) ? (n.__c = S, 2 & S.__g && (S.__g |= 1)) : (D ? n.__c = S = new z(E, k) : (n.__c = S = new b(E, k), S.constructor = z, S.render = re), O && O.sub(S), S.state || (S.state = {}), S.__n = i, S.__g |= 8, S.__h = [], S.__k = []), D && (S.__s || (S.__s = S.state), z.getDerivedStateFromProps && (S.__s == S.state && (S.__s = g({}, S.__s)), g(S.__s, z.getDerivedStateFromProps(E, S.__s)))), C = S.props, w = S.state, S.__v = n, r.__c) {
129
+ if (E !== C && D && !z.getDerivedStateFromProps && S.componentWillReceiveProps && S.componentWillReceiveProps(E, k), n.__v == r.__v && !(8 & S.__g) || !(4 & S.__g) && S.shouldComponentUpdate && !1 === S.shouldComponentUpdate(E, S.__s, k)) {
130
+ n.__v != r.__v && (S.props = E, S.state = S.__s, S.__g &= -9), n.__e = r.__e, n.__k = r.__k, n.__k.some(function(e) {
140
131
  e && (e.__ = n);
141
- }), d.push.apply(C.__h, C.__k), C.__k = [], C.__h.length && s.push(C), c = b(r);
132
+ }), f.push.apply(S.__h, S.__k), S.__k = [], S.__h.length && s.push(S), c = x(r);
142
133
  break n;
143
134
  }
144
- C.componentWillUpdate && C.componentWillUpdate(D, C.__s, A), O && C.componentDidUpdate && C.__h.push(function() {
145
- C.componentDidUpdate(w, T, E);
135
+ S.componentWillUpdate && S.componentWillUpdate(E, S.__s, k), D && S.componentDidUpdate && S.__h.push(function() {
136
+ S.componentDidUpdate(C, w, T);
146
137
  });
147
- } else O && !z.getDerivedStateFromProps && C.componentWillMount && C.componentWillMount(), O && C.componentDidMount && C.__h.push(C.componentDidMount);
148
- if (C.context = A, C.props = D, C.__P = t, C.__g &= -5, j = e.__r, M = 0, O) C.state = C.__s, C.__g &= -9, j && j(n), f = C.render(C.props, C.state, C.context), d.push.apply(C.__h, C.__k), C.__k = [];
138
+ } else D && !z.getDerivedStateFromProps && S.componentWillMount && S.componentWillMount(), D && S.componentDidMount && S.__h.push(S.componentDidMount);
139
+ if (S.context = k, S.props = E, S.__P = t, S.__g &= -5, A = e.__r, j = 0, D) S.state = S.__s, S.__g &= -9, A && A(n), p = S.render(S.props, S.state, S.context), f.push.apply(S.__h, S.__k), S.__k = [];
149
140
  else do
150
- C.__g &= -9, j && j(n), f = C.render(C.props, C.state, C.context), C.state = C.__s;
151
- while (8 & C.__g && ++M < 25);
152
- C.state = C.__s, C.getChildContext && (i = h({}, i, C.getChildContext())), O && r.__c && C.getSnapshotBeforeUpdate && (E = C.getSnapshotBeforeUpdate(w, T)), P = f && f.type === v && f.key == null ? f.props.children : f, D.__P && (f = c, a = (t = D.__P).namespaceURI, l = o = null, r.props && r.props.__P != t && (r.__k.some(function(e) {
153
- e && N(e, e);
154
- }), r.__k = null), c = r.__k ? b(r, 0) : null), c = ee(t, p(P) ? P : [P], n, r, i, a, o, s, c, l, u), D.__P && (n.__e = null, c = f), n.__u &= -161, 128 & r.__u && (C.__z = null), m && m.some(g), C.__h.length && s.push(C), 1 & C.__g && (C.__g &= -4);
141
+ S.__g &= -9, A && A(n), p = S.render(S.props, S.state, S.context), S.state = S.__s;
142
+ while (8 & S.__g && ++j < 25);
143
+ S.state = S.__s, S.getChildContext && (i = g({}, i, S.getChildContext())), D && r.__c && S.getSnapshotBeforeUpdate && (T = S.getSnapshotBeforeUpdate(C, w)), N = p && p.type === y && p.key == null ? p.props.children : p, E.__P && (p = c, a = (t = E.__P).namespaceURI, l = o = null, r.props && r.props.__P != t && (r.__k.some(function(e) {
144
+ e && F(e, e);
145
+ }), r.__k = null), c = r.__k ? x(r, 0) : null), c = ee(t, m(N) ? N : [N], n, r, i, a, o, s, c, l, d), E.__P && (n.__e = null, c = p), n.__u &= -161, h && h.some(_), S.__h.length && s.push(S), 1 & S.__g && (S.__g &= -4);
155
146
  } catch (t) {
156
- if (s.length = S, n.__v = null, l || o) {
147
+ if (s.length = v, n.__v = null, l || o) {
157
148
  if (t.then) {
158
- if (F = 0, n.__u |= l ? 160 : 128, o) {
149
+ if (P = 0, n.__u |= 128 | l, o) {
159
150
  for (~(L = o.indexOf(c || void 0)) || (L = o.length); (R = o[L - 1]) && R.nodeType == 8;) L--;
160
151
  for (; L < o.length; L++) if (R = o[L]) {
161
152
  if (o[L] = null, R.nodeType == 8) {
162
- if (R.data.startsWith("$s")) F++ || (I = R);
163
- else if (F && R.data.startsWith("/$s") && !--F) {
164
- c = R;
165
- break;
166
- }
167
- } else if (!F) break;
153
+ if (R.data.startsWith("$s")) P++ || (I = R);
154
+ else if (P && R.data.startsWith("/$s") && !--P) break;
155
+ } else if (!P) break;
168
156
  }
169
157
  }
170
158
  if (!I) {
171
159
  for (; c && c.nodeType == 8 && c.nextSibling;) c = c.nextSibling;
172
160
  I = c;
173
161
  }
174
- n.__c.__z || (n.__c.__z = I), n.__e = c;
175
- } else o && o.some(g);
162
+ (p = M(I = n.__c.__z || (n.__c.__z = I))) ? (n.__e = I, c = p) : n.__e = c, c = c && c.nextSibling;
163
+ } else o && o.some(_);
176
164
  } else n.__e = r.__e;
177
165
  n.__k || (n.__k = r.__k || []), t.then || te(n), e.__e(t, n, r);
178
166
  }
179
- } else c = n.__e = ne(r.__e, n, r, i, a, o, s, l, u, t);
180
- return (f = e.diffed) && f(n), 128 & n.__u ? void 0 : c;
167
+ } else c = n.__e = ne(r.__e, n, r, i, a, o, s, l, d, t);
168
+ return (p = e.diffed) && p(n), c;
169
+ }
170
+ function M(e, t) {
171
+ if (e && e.nodeType == 8 && e.data.startsWith("$s")) for (var n = 1; e = e.nextSibling;) {
172
+ if (e.nodeType == 8) {
173
+ if (e.data.startsWith("$s")) n++;
174
+ else if (e.data.startsWith("/$s") && !--n) return e;
175
+ }
176
+ t && t.push(e);
177
+ }
181
178
  }
182
179
  function te(e) {
183
180
  e && (e.__c && (e.__c.__g |= 4), e.__k && e.__k.some(te));
184
181
  }
185
- function j(t, n, r) {
186
- for (var i = 0; i < r.length;) M(r[i++], r[i++], r[i++]);
182
+ function N(t, n, r) {
183
+ for (var i = 0; i < r.length;) P(r[i++], r[i++], r[i++]);
187
184
  e.__c && e.__c(n, t), t.some(function(n) {
188
185
  try {
189
186
  t = n.__h, n.__h = [], t.some(function(e) {
@@ -194,36 +191,36 @@ function j(t, n, r) {
194
191
  }
195
192
  });
196
193
  }
197
- function ne(t, n, r, i, a, o, s, c, l, d) {
198
- var h, _, v, y, x, S, C, w, T, E = r.props || u, D = n.props, k = n.type;
199
- if (k == "svg" ? a = "http://www.w3.org/2000/svg" : k == "math" ? a = "http://www.w3.org/1998/Math/MathML" : a || (a = "http://www.w3.org/1999/xhtml"), o) {
200
- for (h = 0; h < o.length; h++) if ((x = o[h]) && (k ? x.localName == k : x.nodeType == 3)) {
201
- t = x, o[h] = null;
194
+ function ne(t, n, r, i, a, o, s, c, l, u) {
195
+ var f, g, v, y, b, S, C, w, T, E = r.props || d, D = n.props, O = n.type;
196
+ if (O == "svg" ? a = "http://www.w3.org/2000/svg" : O == "math" ? a = "http://www.w3.org/1998/Math/MathML" : a || (a = "http://www.w3.org/1999/xhtml"), o) {
197
+ for (f = 0; f < o.length; f++) if ((b = o[f]) && (O ? b.localName == O : b.nodeType == 3)) {
198
+ t = b, o[f] = null;
202
199
  break;
203
200
  }
204
201
  }
205
202
  if (!t) {
206
- if (w = d.ownerDocument || document, !k) return w.createTextNode(D);
207
- t = w.createElementNS(a, k, D.is && D), c && (e.__m && e.__m(n, o), c = !1), o = null;
203
+ if (w = u.ownerDocument || document, !O) return w.createTextNode(D);
204
+ t = w.createElementNS(a, O, D.is && D), c && (e.__m && e.__m(n, o), c = !1), o = null;
208
205
  }
209
- if (k) {
210
- if (d = k == "template" ? t.content : t, o = k == "textarea" && D.defaultValue != null ? null : o && m.call(d.childNodes), !c && o) for (E = {}, h = 0; h < t.attributes.length; h++) E[(x = t.attributes[h]).name] = x.value;
211
- for (h in E) x = E[h], h == "dangerouslySetInnerHTML" ? v = x : h == "children" || h in D || h == "value" && "defaultValue" in D || h == "checked" && "defaultChecked" in D || O(t, h, null, x, a);
212
- for (h in T = 1 & r.__u, D) x = D[h], h == "children" ? y = x : h == "dangerouslySetInnerHTML" ? _ = x : h == "value" ? S = x : h == "checked" ? C = x : c && typeof x != "function" || !(E[h] !== x || T && x != null) || O(t, h, x, E[h], a);
213
- _ ? (c || v && (_.__html == v.__html || _.__html == t.innerHTML) || (t.innerHTML = _.__html), n.__k = []) : (v && (t.textContent = ""), (k == "foreignObject" || a == "http://www.w3.org/1998/Math/MathML" && f.test(k)) && (a = "http://www.w3.org/1999/xhtml"), ee(d, p(y) ? y : [y], n, r, i, a, o, s, o ? o[0] : r.__k && b(r, 0), c, l), o && o.some(g)), c && k != "textarea" || (h = "value", k == "progress" && S == null ? t.removeAttribute(h) : S == null || S === t[h] && (k != "progress" || S) || O(t, h, S, E[h], a), h = "checked", C != null && C != t[h] && O(t, h, C, E[h], a));
206
+ if (O) {
207
+ if (u = O == "template" ? t.content : t, o = O == "textarea" && D.defaultValue != null ? null : o && h.call(u.childNodes), !c && o) for (E = {}, f = 0; f < t.attributes.length; f++) E[(b = t.attributes[f]).name] = b.value;
208
+ for (f in E) b = E[f], f == "dangerouslySetInnerHTML" ? v = b : f == "children" || f in D || f == "value" && "defaultValue" in D || f == "checked" && "defaultChecked" in D || k(t, f, null, b, a);
209
+ for (f in T = 1 & r.__u, D) b = D[f], f == "children" ? y = b : f == "dangerouslySetInnerHTML" ? g = b : f == "value" ? S = b : f == "checked" ? C = b : c && typeof b != "function" || !(E[f] !== b || T && b != null) || k(t, f, b, E[f], a);
210
+ g ? (c || v && (g.__html == v.__html || g.__html == t.innerHTML) || (t.innerHTML = g.__html), n.__k = []) : (v && (t.textContent = ""), (O == "foreignObject" || a == "http://www.w3.org/1998/Math/MathML" && p.test(O)) && (a = "http://www.w3.org/1999/xhtml"), ee(u, m(y) ? y : [y], n, r, i, a, o, s, o ? o[0] : r.__k && x(r, 0), c, l), o && o.some(_)), c && O != "textarea" || (f = "value", O == "progress" && S == null ? t.removeAttribute(f) : S == null || S === t[f] && (O != "progress" || S) || k(t, f, S, E[f], a), f = "checked", C != null && C != t[f] && k(t, f, C, E[f], a));
214
211
  } else E === D || c && t.data == D || (t.data = D);
215
212
  return t;
216
213
  }
217
- function M(t, n, r, i) {
214
+ function P(t, n, r, i) {
218
215
  try {
219
216
  typeof t == "function" ? n ? n.__x = t(n) || 1 : i && (i = i.__c || i.__e) && (n = i.__x) && (i.__x = null, typeof n == "function" ? n() : t(null)) : t.current = n;
220
217
  } catch (t) {
221
218
  e.__e(t, r);
222
219
  }
223
220
  }
224
- function N(t, n, r) {
225
- var i, a;
226
- if (e.unmount && e.unmount(t), !(i = t.ref) || i.current && i.current != t.__e || M(i, null, n, t), i = t.__c) {
221
+ function F(t, n, r) {
222
+ var i, a, o, s;
223
+ if (e.unmount && e.unmount(t), !(i = t.ref) || i.current && i.current != t.__e || P(i, null, n, t), i = t.__c) {
227
224
  if (i.componentWillUnmount) try {
228
225
  i.componentWillUnmount();
229
226
  } catch (t) {
@@ -231,62 +228,61 @@ function N(t, n, r) {
231
228
  }
232
229
  i.__P = i.__n = null;
233
230
  }
234
- if (i = t.__k) for (a = 0; a < i.length; a++) i[a] && N(i[a], n, typeof t.type != "function" || r && !t.props.__P);
235
- (i = t.__e) && (r || g(i), i.__e && (i.__e = null)), t.__e = t.__c = t.__ = null;
231
+ if (i = t.__k) for (s = 0; s < i.length; s++) i[s] && F(i[s], n, typeof t.type != "function" || r && !t.props.__P);
232
+ !r && (i = t.__c) && (i = i.__z) && (a = M(i, o = [])) && (i == t.__e && o.some(_), _(a), _(i)), (i = t.__e) && (r || _(i), i.__e && (i.__e = null)), t.__e = t.__c = t.__ = null;
236
233
  }
237
234
  function re(e, t, n) {
238
235
  return this.constructor(e, n);
239
236
  }
240
- function P(t, n) {
237
+ function I(t, n) {
241
238
  var r, i, a, o;
242
- e.__ && e.__(t, n), n.nodeType == 9 && (n = n.documentElement), i = (r = t && 32 & t.__u) ? null : n.__k, n.__k = _(v, { children: [t] }), a = [], o = [], A(n, n.__k, i || u, u, n.namespaceURI, i ? null : n.firstChild ? m.call(n.childNodes) : null, a, i ? i.__e : n.firstChild, r, o), j(a, n.__k, o), n.__k.props.children = null;
239
+ e.__ && e.__(t, n), n.nodeType == 9 && (n = n.documentElement), i = (r = t && 32 & t.__u) ? null : n.__k, n.__k = v(y, { children: [t] }), a = [], o = [], j(n, n.__k, i || d, d, n.namespaceURI, i ? null : n.firstChild ? h.call(n.childNodes) : null, a, i ? i.__e : n.firstChild, r, o), N(a, n.__k, o), n.__k.props.children = null;
243
240
  }
244
241
  e = { __e: function(e, t, n, r) {
245
242
  for (var a, o, s; t = t.__;) if ((a = t.__c) && !(1 & a.__g)) {
246
243
  a.__g |= 4;
247
244
  try {
248
- if ((o = a.constructor) && o.getDerivedStateFromError && (a.setState(o.getDerivedStateFromError(e)), s = 8 & a.__g), a.componentDidCatch && (a.componentDidCatch(e, r || {}), s = 8 & a.__g), s) return void (a.__g |= 2);
245
+ if ((s = (o = a.constructor) && o.getDerivedStateFromError) && a.setState(o.getDerivedStateFromError(e)), a.componentDidCatch && (a.componentDidCatch(e, r || {}), s = 1), s && 8 & a.__g) return void (a.__g |= 2);
249
246
  } catch (t) {
250
- e = t, s = 0;
247
+ e = t;
251
248
  }
252
249
  }
253
250
  throw i = 0, e;
254
- } }, t = 0, y.prototype.setState = function(e, t) {
251
+ } }, t = 0, b.prototype.setState = function(e, t) {
255
252
  var n = this.__s;
256
- n && n != this.state || (n = this.__s = h({}, this.state)), typeof e == "function" && (e = e(h({}, n), this.props)), e && (h(n, e), this.__v && (t && this.__k.push(t), S(this)));
257
- }, y.prototype.forceUpdate = function(e) {
258
- this.__v && (this.__g |= 4, e && this.__h.push(e), S(this));
259
- }, y.prototype.render = v, n = [], i = 0, a = function(e, t) {
253
+ n && n != this.state || (n = this.__s = g({}, this.state)), typeof e == "function" && (e = e(g({}, n), this.props)), e && (g(n, e), this.__v && (t && this.__k.push(t), C(this)));
254
+ }, b.prototype.forceUpdate = function(e) {
255
+ this.__v && (this.__g |= 4, e && this.__h.push(e), C(this));
256
+ }, b.prototype.render = y, n = [], i = 0, a = function(e, t) {
260
257
  return e.__v.__b - t.__v.__b;
261
258
  }, o = Symbol(), s = /(PointerCapture)$|Capture$/i, c = 0, l = {};
262
- //#endregion
263
- //#region node_modules/preact/hooks/dist/hooks.mjs
264
- var F, I, L, R, z = Object.is, B = 0, ie = [], V = [], H = e, ae = H.__b, oe = H.__r, se = H.diffed, ce = H.__c, le = H.unmount, ue = H.__;
265
- function U(e, t) {
266
- H.__h && H.__h(I, e, B || t), B = 0;
267
- var n = I.__H || (I.__H = {
259
+ // node_modules/preact/hooks/dist/hooks.mjs
260
+ var L, R, z, ie, B = Object.is, V = 0, ae = [], H = [], U = e, oe = U.__b, se = U.__r, ce = U.diffed, le = U.__c, ue = U.unmount, de = U.__;
261
+ function W(e, t) {
262
+ U.__h && U.__h(R, e, V || t), V = 0;
263
+ var n = R.__H || (R.__H = {
268
264
  __: [],
269
265
  __h: []
270
266
  });
271
267
  return e >= n.__.length && n.__.push({}), n.__[e];
272
268
  }
273
- function de(e) {
274
- return B = 1, fe(xe, e);
269
+ function fe(e) {
270
+ return V = 1, pe(Se, e);
275
271
  }
276
- function fe(e, t, n) {
277
- var r = U(F++, 2);
278
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : xe(void 0, t), function(e) {
272
+ function pe(e, t, n) {
273
+ var r = W(L++, 2);
274
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Se(void 0, t), function(e) {
279
275
  var t = r.__N ? r.__N[0] : r.__[0], n = r.t(t, e);
280
- z(t, n) || (r.__N = [n, r.__[1]], r.__c.setState({}));
281
- }], r.__c = I, !I.__f)) {
282
- I.__f = !0;
283
- var i = I.shouldComponentUpdate;
284
- I.shouldComponentUpdate = function(e, t, n) {
276
+ B(t, n) || (r.__N = [n, r.__[1]], r.__c.setState({}));
277
+ }], r.__c = R, !R.__f)) {
278
+ R.__f = !0;
279
+ var i = R.shouldComponentUpdate;
280
+ R.shouldComponentUpdate = function(e, t, n) {
285
281
  var r = this.__H;
286
282
  if (!r) return !0;
287
283
  var a = !1, o = this.props != e;
288
284
  if (r.__.some(function(e) {
289
- e.__N && (a = !0, z(e.__[0], e.__N[0]) || (o = !0));
285
+ e.__N && (a = !0, B(e.__[0], e.__N[0]) || (o = !0));
290
286
  }), i) {
291
287
  var s = i.call(this, e, t, n);
292
288
  return a ? s || o : s;
@@ -296,76 +292,76 @@ function fe(e, t, n) {
296
292
  }
297
293
  return r.__;
298
294
  }
299
- function pe(e, t) {
300
- var n = U(F++, 3);
301
- !H.__s && q(n.__H, t) && (n.__P = !0, n.__ = e, n.u = t, I.__H.__h.push(n));
302
- }
303
295
  function me(e, t) {
304
- var n = U(F++, 4);
305
- !H.__s && q(n.__H, t) && (n.__P = !1, n.__ = e, n.u = t, I.__h.push(n));
296
+ var n = W(L++, 3);
297
+ !U.__s && J(n.__H, t) && (n.__P = !0, n.__ = e, n.u = t, R.__H.__h.push(n));
298
+ }
299
+ function he(e, t) {
300
+ var n = W(L++, 4);
301
+ !U.__s && J(n.__H, t) && (n.__P = !1, n.__ = e, n.u = t, R.__h.push(n));
306
302
  }
307
- function he(e) {
308
- return B = 5, W(function() {
303
+ function ge(e) {
304
+ return V = 5, G(function() {
309
305
  return { current: e };
310
306
  }, []);
311
307
  }
312
- function W(e, t) {
313
- var n = U(F++, 7);
314
- return q(n.__H, t) && (n.__ = e(), n.__H = t), n.__;
308
+ function G(e, t) {
309
+ var n = W(L++, 7);
310
+ return J(n.__H, t) && (n.__ = e(), n.__H = t), n.__;
315
311
  }
316
- function ge(e, t) {
317
- return B = 8, W(function() {
312
+ function _e(e, t) {
313
+ return V = 8, G(function() {
318
314
  return e;
319
315
  }, t);
320
316
  }
321
- function _e() {
317
+ function ve() {
322
318
  var e;
323
319
  do {
324
- for (; e = V.shift();) try {
325
- G(e);
320
+ for (; e = H.shift();) try {
321
+ K(e);
326
322
  } catch (t) {
327
- H.__e(t, { __: (e = e.__P) && e.__v });
323
+ U.__e(t, { __: (e = e.__P) && e.__v });
328
324
  }
329
- for (; e = ie.shift();) {
325
+ for (; e = ae.shift();) {
330
326
  var t = e.__H;
331
327
  if (e.__P && t) try {
332
- t.__h.some(G), t.__h.some(K), t.__h = [];
328
+ t.__h.some(K), t.__h.some(q), t.__h = [];
333
329
  } catch (n) {
334
- t.__h = [], H.__e(n, e.__v);
330
+ t.__h = [], U.__e(n, e.__v);
335
331
  }
336
332
  }
337
- } while (V.length);
338
- }
339
- H.__b = function(e) {
340
- I = null, ae && ae(e);
341
- }, H.__ = function(e, t) {
342
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), ue && ue(e, t);
343
- }, H.__r = function(e) {
344
- oe && oe(e), F = 0;
345
- var t = (I = e.__c).__H;
346
- t && (L == I ? I.__h = [] : (t.__h.some(G), t.__h.some(K), F = 0), t.__h = [], t.__.some(function(e) {
333
+ } while (H.length);
334
+ }
335
+ U.__b = function(e) {
336
+ R = null, oe && oe(e);
337
+ }, U.__ = function(e, t) {
338
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), de && de(e, t);
339
+ }, U.__r = function(e) {
340
+ se && se(e), L = 0;
341
+ var t = (R = e.__c).__H;
342
+ t && (z == R ? R.__h = [] : (t.__h.some(K), t.__h.some(q), L = 0), t.__h = [], t.__.some(function(e) {
347
343
  e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
348
- })), L = I;
349
- }, H.diffed = function(e) {
350
- se && se(e);
344
+ })), z = R;
345
+ }, U.diffed = function(e) {
346
+ ce && ce(e);
351
347
  var t = e.__c;
352
- t && t.__H && (t.__H.__h.length && be(ie.push(t)), t.__H.__.some(function(e) {
348
+ t && t.__H && (t.__H.__h.length && xe(ae.push(t)), t.__H.__.some(function(e) {
353
349
  e.u && (e.__H = e.u);
354
- })), L = I = null;
355
- }, H.__c = function(e, t) {
350
+ })), z = R = null;
351
+ }, U.__c = function(e, t) {
356
352
  t.some(function(e) {
357
353
  try {
358
- e.__h.some(G), e.__h = e.__h.filter(function(e) {
359
- return !e.__ || K(e);
354
+ e.__h.some(K), e.__h = e.__h.filter(function(e) {
355
+ return !e.__ || q(e);
360
356
  });
361
- } catch (n) {
362
- t.some(function(e) {
363
- e.__h && (e.__h = []);
364
- }), t = [], H.__e(n, e.__v);
357
+ } catch (t) {
358
+ e.__h = [function() {
359
+ throw t;
360
+ }];
365
361
  }
366
- }), ce && ce(e, t);
367
- }, H.unmount = function(e) {
368
- le && le(e);
362
+ }), le && le(e, t);
363
+ }, U.unmount = function(e) {
364
+ ue && ue(e);
369
365
  var t, n, r = e.__c;
370
366
  r && r.__H && (r.__H.__.some(function(r) {
371
367
  try {
@@ -374,44 +370,43 @@ H.__b = function(e) {
374
370
  for (n = e.__; n && (!n.__c || !n.__c.__P);) n = n.__;
375
371
  n = n && n.__c;
376
372
  }
377
- r.__P = n, be(V.push(r));
378
- } else G(r);
373
+ r.__P = n, xe(H.push(r));
374
+ } else K(r);
379
375
  } catch (e) {
380
376
  t = e;
381
377
  }
382
- }), r.__H = void 0, t && H.__e(t, r.__v));
378
+ }), r.__H = void 0, t && U.__e(t, r.__v));
383
379
  };
384
- var ve = typeof requestAnimationFrame == "function";
385
- function ye(e) {
380
+ var ye = typeof requestAnimationFrame == "function";
381
+ function be(e) {
386
382
  var t, n = function() {
387
- clearTimeout(r), ve && cancelAnimationFrame(t), setTimeout(e);
383
+ clearTimeout(r), ye && cancelAnimationFrame(t), setTimeout(e);
388
384
  }, r = setTimeout(n, 35);
389
- ve && (t = requestAnimationFrame(n));
385
+ ye && (t = requestAnimationFrame(n));
390
386
  }
391
- function be(e) {
392
- e != 1 && R == H.requestAnimationFrame || ((R = H.requestAnimationFrame) || ye)(_e);
393
- }
394
- function G(e) {
395
- var t = I, n = e.__c;
396
- typeof n == "function" && (e.__c = void 0, n()), I = t;
387
+ function xe(e) {
388
+ e != 1 && ie == U.requestAnimationFrame || ((ie = U.requestAnimationFrame) || be)(ve);
397
389
  }
398
390
  function K(e) {
399
- var t = I;
400
- e.__c = e.__(), I = t;
391
+ var t = R, n = e.__c;
392
+ typeof n == "function" && (e.__c = void 0, n()), R = t;
393
+ }
394
+ function q(e) {
395
+ var t = R;
396
+ e.__c = e.__(), R = t;
401
397
  }
402
- function q(e, t) {
398
+ function J(e, t) {
403
399
  return !e || e.length != t.length || t.some(function(t, n) {
404
- return !z(t, e[n]);
400
+ return !B(t, e[n]);
405
401
  });
406
402
  }
407
- function xe(e, t) {
403
+ function Se(e, t) {
408
404
  return typeof t == "function" ? t(e) : t;
409
405
  }
410
- //#endregion
411
- //#region node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
412
- var Se = 0;
406
+ // node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
407
+ var Ce = Symbol.for("pv"), we = 0;
413
408
  Array.isArray;
414
- function Ce(t, n, r, i, a, o) {
409
+ function Te(t, n, r, i, a, o) {
415
410
  n || (n = {});
416
411
  var s, c, l = n;
417
412
  if ("ref" in l && typeof t != "function") for (c in l = {}, n) c == "ref" ? s = n[c] : l[c] = n[c];
@@ -425,16 +420,15 @@ function Ce(t, n, r, i, a, o) {
425
420
  __b: 0,
426
421
  __e: null,
427
422
  __c: null,
428
- constructor: void 0,
429
- __v: --Se,
423
+ constructor: Ce,
424
+ __v: --we,
430
425
  __i: -1,
431
426
  __u: 0
432
427
  };
433
428
  return (a || o) && (u.__source = a, u.__self = o), e.vnode && e.vnode(u), u;
434
429
  }
435
- //#endregion
436
- //#region src/ui/i18n.ts
437
- var J = {
430
+ // src/ui/i18n.ts
431
+ var Y = {
438
432
  comment: "Comment",
439
433
  commentHint: "Click anything on the page to comment on it",
440
434
  inbox: "Inbox",
@@ -624,6 +618,10 @@ var J = {
624
618
  shareExpired: "This client link has expired. Ask the team for a new one.",
625
619
  verifyTitle: "Check your email",
626
620
  verifyBody: "Enter the 6-digit code to publish your comment. We sent it to {email}.",
621
+ verifyLookFor: "Look for an email from CommentKit: “Your code for {website}”. Check spam if it isn't there.",
622
+ signInLinkTitle: "Welcome back to {project}",
623
+ signInLinkBody: "Continue to see the feedback and reply. We'll email you a 6-digit code to confirm it's you.",
624
+ notNow: "Not now",
627
625
  verifyCode: "6-digit code",
628
626
  verifyPublish: "Publish comment",
629
627
  verifyResend: "Send a new code",
@@ -793,7 +791,7 @@ var J = {
793
791
  stylePrevious: "Previous value for {property}",
794
792
  styleNext: "Next value for {property}",
795
793
  styleEdit: "Edit the suggested style changes"
796
- }, we = [
794
+ }, Ee = [
797
795
  "en",
798
796
  "es",
799
797
  "fr",
@@ -805,81 +803,81 @@ var J = {
805
803
  "zh-CN",
806
804
  "hi",
807
805
  "ar"
808
- ], Te = {
809
- es: () => import("./es-DXgkjDCG.js"),
810
- fr: () => import("./fr-IjJaUbWh.js"),
811
- de: () => import("./de-CcPi8xdC.js"),
812
- "pt-BR": () => import("./pt-BR-CjBolC5g.js"),
813
- it: () => import("./it-DKiSCkiD.js"),
814
- nl: () => import("./nl-CJw3VUQ5.js"),
815
- ja: () => import("./ja-BI1WagDg.js"),
816
- "zh-CN": () => import("./zh-CN-BrZGx2S0.js"),
817
- hi: () => import("./hi-BhKQK2MU.js"),
818
- ar: () => import("./ar-BQ9K9Oqf.js")
819
- }, Y = /^(ar|he|iw|fa|ur|ps|yi|ckb|sd|ug|dv)(-|$)/i, X = "en", Z = J, Q = Promise.resolve();
820
- function Ee(e) {
806
+ ], De = {
807
+ es: () => import("./es-CI2bSpvB.js"),
808
+ fr: () => import("./fr-rsVe-Lqk.js"),
809
+ de: () => import("./de-C63897uD.js"),
810
+ "pt-BR": () => import("./pt-BR-CkG7vpU2.js"),
811
+ it: () => import("./it-C8tnV0BF.js"),
812
+ nl: () => import("./nl-DNQ6eCht.js"),
813
+ ja: () => import("./ja-BWxDfC2f.js"),
814
+ "zh-CN": () => import("./zh-CN-BKuZOLBE.js"),
815
+ hi: () => import("./hi-cvwbSaWP.js"),
816
+ ar: () => import("./ar-8tPch6W4.js")
817
+ }, X = /^(ar|he|iw|fa|ur|ps|yi|ckb|sd|ug|dv)(-|$)/i, Z = "en", Q = Y, $ = Promise.resolve();
818
+ function Oe(e) {
821
819
  let t = (e ?? "").trim().replace(/_/g, "-").toLowerCase();
822
820
  if (!/^[a-z]{2,3}(-[a-z0-9]{1,8})*$/.test(t)) return null;
823
- let n = we.find((e) => e.toLowerCase() === t);
821
+ let n = Ee.find((e) => e.toLowerCase() === t);
824
822
  if (n) return n;
825
823
  let r = t.split("-")[0];
826
- return we.find((e) => e.toLowerCase().split("-")[0] === r) ?? null;
824
+ return Ee.find((e) => e.toLowerCase().split("-")[0] === r) ?? null;
827
825
  }
828
- function De(e) {
826
+ function ke(e) {
829
827
  let t = [e];
830
828
  typeof document < "u" && t.push(document.documentElement.lang), typeof navigator < "u" && t.push(...navigator.languages ?? [], navigator.language);
831
829
  for (let e of t) {
832
- let t = Ee(e);
830
+ let t = Oe(e);
833
831
  if (t) return t;
834
832
  }
835
833
  return "en";
836
834
  }
837
- function Oe(e) {
838
- let t = De(e);
839
- return X = t, t === "en" ? (Z = J, Q = Promise.resolve(), Q) : (Q = Te[t]().then((e) => {
840
- X === t && (Z = e.default);
835
+ function Ae(e) {
836
+ let t = ke(e);
837
+ return Z = t, t === "en" ? (Q = Y, $ = Promise.resolve(), $) : ($ = De[t]().then((e) => {
838
+ Z === t && (Q = e.default);
841
839
  }, () => {
842
- X === t && (X = "en", Z = J);
843
- }), Q);
840
+ Z === t && (Z = "en", Q = Y);
841
+ }), $);
844
842
  }
845
- function ke() {
846
- return X;
843
+ function je() {
844
+ return Z;
847
845
  }
848
- function Ae(e, t) {
849
- let n = Y.test(X);
846
+ function Me(e, t) {
847
+ let n = X.test(Z);
850
848
  return e.replace(/\{(\w+)\}/g, (e, r) => {
851
849
  let i = String(t[r] ?? "");
852
850
  return n && i ? `\u2068${i}\u2069` : i;
853
851
  });
854
852
  }
855
- function $(e, t = {}) {
856
- return Ae(Z[e] ?? J[e], t);
853
+ function Ne(e, t = {}) {
854
+ return Me(Q[e] ?? Y[e], t);
857
855
  }
858
- function je(e, t) {
859
- let [n = "", r = ""] = (Z[e] ?? J[e]).split(`{${t}}`);
856
+ function Pe(e, t) {
857
+ let [n = "", r = ""] = (Q[e] ?? Y[e]).split(`{${t}}`);
860
858
  return [n, r];
861
859
  }
862
- function Me(e, t, n = {}) {
860
+ function Fe(e, t, n = {}) {
863
861
  let r = "other", i = String(t);
864
862
  try {
865
- r = new Intl.PluralRules(X).select(t), i = new Intl.NumberFormat(X).format(t);
863
+ r = new Intl.PluralRules(Z).select(t), i = new Intl.NumberFormat(Z).format(t);
866
864
  } catch {}
867
- let a = J;
868
- return Ae(Z[`${e}_${r}`] ?? Z[e] ?? a[`${e}_${r}`] ?? J[e], {
865
+ let a = Y;
866
+ return Me(Q[`${e}_${r}`] ?? Q[e] ?? a[`${e}_${r}`] ?? Y[e], {
869
867
  ...n,
870
868
  n: i
871
869
  });
872
870
  }
873
- function Ne() {
874
- if (Y.test(X)) return "rtl";
871
+ function Ie() {
872
+ if (X.test(Z)) return "rtl";
875
873
  let e = document.documentElement.dir || document.body?.dir;
876
- return e === "rtl" || e === "ltr" ? e : Y.test(document.documentElement.lang || "") ? "rtl" : "ltr";
874
+ return e === "rtl" || e === "ltr" ? e : X.test(document.documentElement.lang || "") ? "rtl" : "ltr";
877
875
  }
878
- function Pe(e) {
876
+ function Le(e) {
879
877
  let t = e ? new Date(e).getTime() : NaN;
880
878
  if (!Number.isFinite(t)) return "";
881
879
  try {
882
- return new Date(t).toLocaleString(X, {
880
+ return new Date(t).toLocaleString(Z, {
883
881
  dateStyle: "medium",
884
882
  timeStyle: "short"
885
883
  });
@@ -887,18 +885,17 @@ function Pe(e) {
887
885
  return new Date(t).toLocaleString();
888
886
  }
889
887
  }
890
- function Fe(e, t = Date.now()) {
888
+ function Re(e, t = Date.now()) {
891
889
  let n = new Date(e).getTime();
892
890
  if (!Number.isFinite(n)) return "";
893
891
  let r = Math.max(0, (t - n) / 1e3);
894
- if (r < 60) return $("justNow");
895
- if (r >= 2592e3) return new Date(n).toLocaleDateString(X);
892
+ if (r < 60) return Ne("justNow");
893
+ if (r >= 2592e3) return new Date(n).toLocaleDateString(Z);
896
894
  let [i, a] = r < 3600 ? ["minute", 60] : r < 86400 ? ["hour", 3600] : ["day", 86400], o = Math.floor(r / a);
897
895
  try {
898
- return new Intl.RelativeTimeFormat(X, { numeric: "auto" }).format(-o, i);
896
+ return new Intl.RelativeTimeFormat(Z, { numeric: "auto" }).format(-o, i);
899
897
  } catch {
900
898
  return `${o} ${i}`;
901
899
  }
902
900
  }
903
- //#endregion
904
- export { P as _, Fe as a, Ne as c, me as d, he as f, y as g, ge as h, Me as i, Ce as l, de as m, ke as n, Oe as o, W as p, Pe as r, $ as s, je as t, pe as u, v };
901
+ export { y as _, Re as a, Ie as c, he as d, ge as f, I as g, G as h, Fe as i, Te as l, fe as m, je as n, Ae as o, _e as p, Le as r, Ne as s, Pe as t, me as u, b as v };