@commentkit/comment-kit 2.1.0 → 2.1.1

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 (62) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/npm/chunks/{AgentSend-pA7Ufvye.js → AgentSend-B4rxdY68.js} +3 -3
  3. package/dist/npm/chunks/{Checklist-Cn9skOYK.js → Checklist-Cy68X5qC.js} +8 -8
  4. package/dist/npm/chunks/{Composer-D7H-pzGa.js → Composer-D65l6Jg4.js} +33 -33
  5. package/dist/npm/chunks/{DatePicker-Nta5a1xD.js → DatePicker-BPzzqW3f.js} +3 -3
  6. package/dist/npm/chunks/{Guest-Bi7hlzhs.js → Guest-C-ZhARI0.js} +5 -5
  7. package/dist/npm/chunks/{MarkupEditor-WU3USeTk.js → MarkupEditor-BOb2jFTR.js} +8 -8
  8. package/dist/npm/chunks/{Panel-DhAzbUbC.js → Panel-DgdCgaC-.js} +267 -267
  9. package/dist/npm/chunks/{Settings-BmKqPX40.js → Settings-BbWu2Rd5.js} +18 -18
  10. package/dist/npm/chunks/{Shortcuts-Bl-c0Sez.js → Shortcuts-C5wEx-Mq.js} +4 -4
  11. package/dist/npm/chunks/SignInFirst-BlMbutED.js +36 -0
  12. package/dist/npm/chunks/{StyleEditor-D6fUnlwq.js → StyleEditor-BN2z7mUs.js} +4 -4
  13. package/dist/npm/chunks/{StylePanel-C-Gikxt1.js → StylePanel-BZk-r-kl.js} +3 -3
  14. package/dist/npm/chunks/{TaskFields-CaKi523b.js → TaskFields-B2-YvIwV.js} +21 -21
  15. package/dist/npm/chunks/{ThreadCard-d_3pUB5V.js → ThreadCard-xKy4JbXK.js} +46 -46
  16. package/dist/npm/chunks/{Viewer-BULQsi9-.js → Viewer-DL6M3wAT.js} +3 -3
  17. package/dist/npm/chunks/{agent-DHdhIJ3s.js → agent-D1VQvc14.js} +12 -12
  18. package/dist/npm/chunks/{ar-B5UszrQp.js → ar-DtfC6tHi.js} +2 -0
  19. package/dist/npm/chunks/{card-bits-cV8GdFWX.js → card-bits-B94SwnS9.js} +5 -5
  20. package/dist/npm/chunks/{client-Cv8ddtuM.js → client-CULjcQxz.js} +7 -7
  21. package/dist/npm/chunks/{confetti-B9zlyILU.js → confetti-K_xKxQGa.js} +1 -1
  22. package/dist/npm/chunks/{context-CsHnabaA.js → context-0MfEgoip.js} +1 -1
  23. package/dist/npm/chunks/{de-BE0Aaq8u.js → de-CSyX5Cz-.js} +2 -0
  24. package/dist/npm/chunks/{dpop-CwW9ifkq.js → dpop-DpxIN5kL.js} +1 -1
  25. package/dist/npm/chunks/{entrance-Bn_5M9uO.js → entrance-CO0AzUKy.js} +1 -1
  26. package/dist/npm/chunks/{es-BQviao4d.js → es-D7SAi7fz.js} +2 -0
  27. package/dist/npm/chunks/{extension-DXhz81XD.js → extension-DpfiPOjC.js} +1 -1
  28. package/dist/npm/chunks/{extension-CnQTDC1j.js → extension-faFfCApb.js} +2 -2
  29. package/dist/npm/chunks/{files-DLEr_wmh.js → files-BkHuRlcW.js} +2 -2
  30. package/dist/npm/chunks/{fr-C5gu6A06.js → fr-CIr2nUyu.js} +2 -0
  31. package/dist/npm/chunks/{hi-DXfQ5EvY.js → hi-BTocxOL5.js} +2 -0
  32. package/dist/npm/chunks/{i18n-Mgs9VOuk.js → i18n-CDw_D17c.js} +10 -10
  33. package/dist/npm/chunks/{icons-_C6ZWmBY.js → icons-BJLm_C0M.js} +1 -1
  34. package/dist/npm/chunks/{identify-BnQGJOa0.js → identify-963WDKul.js} +1 -1
  35. package/dist/npm/chunks/{it-BPHt13FV.js → it-DCExRo0r.js} +2 -0
  36. package/dist/npm/chunks/{ja-BkCqyKR0.js → ja-CgWpTdWi.js} +2 -0
  37. package/dist/npm/chunks/{late-words-D4Oo_yhJ.js → late-words-QnNheaDY.js} +2 -0
  38. package/dist/npm/chunks/{live-DXcxj_Af.js → live-BI72WQBA.js} +24 -22
  39. package/dist/npm/chunks/{nl-DZxdLLMU.js → nl-DhTQ8oJ_.js} +2 -0
  40. package/dist/npm/chunks/{page-key-UqAozdZi.js → page-key-CW8Mtf60.js} +1 -1
  41. package/dist/npm/chunks/{pick-C20RVUas.js → pick-BRhngGMq.js} +1 -1
  42. package/dist/npm/chunks/{pkce-BPvWoBrr.js → pkce-BEeLAZhN.js} +1 -1
  43. package/dist/npm/chunks/{pt-BR-lA9mJ05F.js → pt-BR-DrO6LV4n.js} +2 -0
  44. package/dist/npm/chunks/{report-BjUgUNnT.js → report-DAzQvgUh.js} +1 -1
  45. package/dist/npm/chunks/{show-BinoJyED.js → show-Ka3g4eCJ.js} +7 -7
  46. package/dist/npm/chunks/{signin-C2jjsxz9.js → signin-Car5vP1U.js} +3 -3
  47. package/dist/npm/chunks/{source-NuflODx3.js → source-dd_it90W.js} +1 -1
  48. package/dist/npm/chunks/{src-9o2Ocq8d.js → src-fTYV50pw.js} +7 -7
  49. package/dist/npm/chunks/{start-Cbx6rMrr.js → start-CE5eR33Z.js} +461 -449
  50. package/dist/npm/chunks/{upload-C4NpM-jE.js → upload-Dcv9CCly.js} +1 -1
  51. package/dist/npm/chunks/{uploads-CY4bDbaI.js → uploads-CmeoNVO2.js} +196 -196
  52. package/dist/npm/chunks/wrap-B0mzrRhc.js +69 -0
  53. package/dist/npm/chunks/{zh-CN-yqaDHwBx.js → zh-CN-Bb8UzT1V.js} +2 -0
  54. package/dist/npm/element.js +1 -1
  55. package/dist/npm/headless.js +2 -2
  56. package/dist/npm/index.js +2 -2
  57. package/dist/npm/react.js +1 -1
  58. package/dist/npm/svelte.js +1 -1
  59. package/dist/npm/vue.js +1 -1
  60. package/package.json +1 -1
  61. package/dist/npm/chunks/SignInFirst-CmGvSYkQ.js +0 -35
  62. package/dist/npm/chunks/wrap-D-xTKIzj.js +0 -69
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @commentkit/comment-kit
2
2
 
3
+ ## [2.1.1] - 2026-11-21
4
+
5
+ ### Fixed
6
+
7
+ - Pressing Cmd/Ctrl+Shift+K a second time while signed out no longer opens a sign-in window or takes the page away to the CommentKit sign-in page. A short "Sign in to see comments" note appears by the toolbar instead, with "Sign in" and "Not now". After signing in from it the inbox opens, also when sign-in happens in the same tab. Someone whose comment is waiting for its emailed code goes back to that step. The new words are first-draft translations.
8
+
3
9
  ## [2.1.0] - 2026-11-20
4
10
 
5
11
  ### Added
@@ -1,6 +1,6 @@
1
- import { _ as e, a as t, c as n, d as r, f as i, m as a, u as o } from "./i18n-Mgs9VOuk.js";
2
- import { n as s, t as c } from "./agent-DHdhIJ3s.js";
3
- import { M as l, v as u } from "./start-Cbx6rMrr.js";
1
+ import { _ as e, a as t, c as n, d as r, f as i, m as a, u as o } from "./i18n-CDw_D17c.js";
2
+ import { n as s, t as c } from "./agent-D1VQvc14.js";
3
+ import { N as l, y as u } from "./start-CE5eR33Z.js";
4
4
  // src/ui/AgentSend.tsx
5
5
  var d = {
6
6
  cursor: "Cursor",
@@ -1,9 +1,9 @@
1
- import { _ as e, a as t, b as n, c as r, d as i, f as a, m as o, u as s } from "./i18n-Mgs9VOuk.js";
2
- import { n as c, t as l } from "./icons-_C6ZWmBY.js";
3
- import { r as u } from "./context-CsHnabaA.js";
4
- import { c as d, j as f } from "./start-Cbx6rMrr.js";
1
+ import { _ as e, a as t, b as n, c as r, d as i, f as a, m as o, u as s } from "./i18n-CDw_D17c.js";
2
+ import { n as c, t as l } from "./icons-BJLm_C0M.js";
3
+ import { r as u } from "./context-0MfEgoip.js";
4
+ import { M as d, c as f } from "./start-CE5eR33Z.js";
5
5
  // src/ui/art.tsx
6
- d(".ck-art{margin:0 auto 12px;display:block;overflow:visible}.ck-art *{vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}.ck-art-w,.ck-art-a,path.ck-art-m{stroke:var(--ck-text);stroke-width:2px}.ck-art-w{fill:var(--ck-bg)}.ck-art-a{fill:var(--ck-accent)}.ck-art-m{fill:var(--ck-bg-hover)}.ck-art-line{fill:none;stroke:var(--ck-text);stroke-width:2px}.ck-art-bold{stroke-width:4.5px}.ck-art-tick{fill:none;stroke:var(--ck-accent-ink);stroke-width:2.6px}.ck-art-dot{fill:var(--ck-border)}.ck-art-ink{fill:var(--ck-text)}.ck-art-spark{fill:none;stroke:var(--ck-accent);stroke-width:2.4px}.ck-art-ghost{fill:none;stroke:var(--ck-text-muted);stroke-width:2px;stroke-dasharray:5 5}.ck-art-shadow{fill:var(--ck-bg-hover)}");
6
+ f(".ck-art{margin:0 auto 12px;display:block;overflow:visible}.ck-art *{vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}.ck-art-w,.ck-art-a,path.ck-art-m{stroke:var(--ck-text);stroke-width:2px}.ck-art-w{fill:var(--ck-bg)}.ck-art-a{fill:var(--ck-accent)}.ck-art-m{fill:var(--ck-bg-hover)}.ck-art-line{fill:none;stroke:var(--ck-text);stroke-width:2px}.ck-art-bold{stroke-width:4.5px}.ck-art-tick{fill:none;stroke:var(--ck-accent-ink);stroke-width:2.6px}.ck-art-dot{fill:var(--ck-border)}.ck-art-ink{fill:var(--ck-text)}.ck-art-spark{fill:none;stroke:var(--ck-accent);stroke-width:2.4px}.ck-art-ghost{fill:none;stroke:var(--ck-text-muted);stroke-width:2px;stroke-dasharray:5 5}.ck-art-shadow{fill:var(--ck-bg-hover)}");
7
7
  var p = "M31.5 4.8C17.3 4.4 7 15.2 7 29c0 13 8.5 21.2 20.9 23 1.6.2 2.1 1.2 2.1 2.5v6.9c0 1.7 1.2 2.1 2.5.9 5.7-4.9 16-13.6 21.1-22.1 3.5-5.8 4.7-11.8 3.2-18.1C54.3 11.5 44.7 4.6 31.5 4.8Z", m = (e, t, n, r) => /* @__PURE__ */ s("path", {
8
8
  class: r,
9
9
  d: p,
@@ -156,7 +156,7 @@ function g({ name: e }) {
156
156
  });
157
157
  }
158
158
  // src/ui/Checklist.tsx
159
- function _({ thread: t, editable: n, addable: d = !0, start: p = 0, onChange: m }, h) {
159
+ function _({ thread: t, editable: n, addable: f = !0, start: p = 0, onChange: m }, h) {
160
160
  let { client: g, reportError: _ } = u(h), [v, y] = e(!1);
161
161
  i(() => void (p && y(!0)), [p]);
162
162
  let [b, x] = e(""), [S, C] = e(!1), w = o(null), [T, E] = e(0);
@@ -191,7 +191,7 @@ function _({ thread: t, editable: n, addable: d = !0, start: p = 0, onChange: m
191
191
  ]), _(n);
192
192
  });
193
193
  };
194
- return !D.length && !(n && d && v) ? null : /* @__PURE__ */ s("div", {
194
+ return !D.length && !(n && f && v) ? null : /* @__PURE__ */ s("div", {
195
195
  class: "ck-extra",
196
196
  ref: w,
197
197
  children: [D.length ? /* @__PURE__ */ s("div", {
@@ -247,7 +247,7 @@ function _({ thread: t, editable: n, addable: d = !0, start: p = 0, onChange: m
247
247
  value: b,
248
248
  "aria-busy": S || void 0,
249
249
  enterKeyHint: "done",
250
- ref: v && !D.length ? f : void 0,
250
+ ref: v && !D.length ? d : void 0,
251
251
  onInput: (e) => x(e.target.value),
252
252
  onKeyDown: (e) => {
253
253
  e.stopPropagation(), e.key === "Enter" ? (e.preventDefault(), j()) : e.key === "Escape" && !D.length && y(!1);
@@ -1,15 +1,15 @@
1
- import { a as e } from "./src-9o2Ocq8d.js";
2
- import { b as t, o as n, v as r } from "./client-Cv8ddtuM.js";
1
+ import { a as e } from "./src-fTYV50pw.js";
2
+ import { b as t, o as n, v as r } from "./client-CULjcQxz.js";
3
3
  import { a as i, c as a, o, s } from "./privacy-BWUGlHw5.js";
4
4
  import { s as c } from "./anchor-BsQNVkHj.js";
5
- import { _ as l, b as u, c as d, d as f, f as p, m, u as h, v as g } from "./i18n-Mgs9VOuk.js";
6
- import { n as _, t as ee } from "./icons-_C6ZWmBY.js";
7
- import { a as te, c as ne, d as re, f as ie, g as ae, h as oe, i as se, l as ce, m as le, n as ue, o as de, p as v, t as fe } from "./uploads-CY4bDbaI.js";
8
- import { r as pe } from "./files-DLEr_wmh.js";
9
- import { n as me, r as he, t as ge } from "./card-bits-cV8GdFWX.js";
5
+ import { _ as l, b as u, c as d, d as f, f as p, m, u as h, v as g } from "./i18n-CDw_D17c.js";
6
+ import { n as _, t as ee } from "./icons-BJLm_C0M.js";
7
+ import { a as te, c as ne, d as re, f as ie, g as ae, h as oe, i as se, l as ce, m as le, n as ue, o as de, p as v, t as fe } from "./uploads-CmeoNVO2.js";
8
+ import { r as pe } from "./files-BkHuRlcW.js";
9
+ import { n as me, r as he, t as ge } from "./card-bits-B94SwnS9.js";
10
10
  import { i as y } from "./drafts-B0ctr1g9.js";
11
11
  import { t as b } from "./states-DLMCvwes.js";
12
- import { A as _e, C as ve, P as ye, R as be, S as x, b as xe, c as S, d as Se, f as Ce, j as we, l as Te, p as Ee, y as C } from "./start-Cbx6rMrr.js";
12
+ import { C as x, F as _e, M as ve, b as S, c as C, f as ye, j as be, l as xe, m as Se, p as Ce, w as we, x as Te, z as Ee } from "./start-CE5eR33Z.js";
13
13
  // src/capture/context.ts
14
14
  function De() {
15
15
  let e = navigator.userAgent, t = w(e, [
@@ -60,7 +60,7 @@ function Oe() {
60
60
  }
61
61
  async function ke(t = {}) {
62
62
  let n = (t.redact ?? []).filter(s), r = o(t.privacy), i = innerWidth, a = innerHeight, c = null;
63
- e() && (c = await import("./extension-DXhz81XD.js").then((e) => e.captureTab(n, r)).catch(() => null)), c ?? (c = await D(n, r, i, a));
63
+ e() && (c = await import("./extension-DpfiPOjC.js").then((e) => e.captureTab(n, r)).catch(() => null)), c ?? (c = await D(n, r, i, a));
64
64
  let l = c.getContext("2d"), u = c.width / Math.max(1, i);
65
65
  return l && Ae(l, u, t), t.crop && t.region && (c = k(c, u, t.region, i, a)), {
66
66
  blob: await Me(c),
@@ -137,19 +137,19 @@ function Ne(e, t) {
137
137
  return !1;
138
138
  }
139
139
  }
140
- S(b), S(re);
141
- function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent: re, onError: v, share: b = null, onPending: ye }) {
142
- let S = x(e.state, (e) => e.config), w = x(e.state, (e) => e.session?.person ?? null), T = g(() => Ee(e, i.anchor), [i.anchor]), [E, Oe] = l(() => He()), [D, Ae] = l(() => le(T, void 0, Ee(e, i.anchor, n()))), [O, je] = l([]), [k, Me] = l(null), A = e.options.tools ?? {}, Ne = S?.features.screenshots !== !1 && A.screenshots !== !1, Pe = A.attachments !== !1, [j, We] = l(Ne ? "capturing" : "off"), N = x(e.state, (e) => !!e.session?.capabilities.triage), Ge = N && A.checklist !== !1, [P] = l(() => Ue(T)), [Ke, qe] = l(P?.task ?? {}), [F, Je] = l(P?.checklist ?? null), [I, Ye] = l(""), Xe = C(N, () => import("./TaskFields-CaKi523b.js").then((e) => e.TaskDraft), () => void 0), [L, Ze] = l(P?.markup ?? []), [Qe, R] = l(!1), $e = C(Qe, () => import("./MarkupEditor-WU3USeTk.js").then((e) => e.MarkupEditor), (e) => (R(!1), v(e))), z = ue(e, (e) => v(new r(0, "file_rejected", e))), B = g(() => {
140
+ C(b), C(re);
141
+ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent: re, onError: v, share: b = null, onPending: _e }) {
142
+ let C = x(e.state, (e) => e.config), w = x(e.state, (e) => e.session?.person ?? null), T = g(() => Se(e, i.anchor), [i.anchor]), [E, Oe] = l(() => He()), [D, Ae] = l(() => le(T, void 0, Se(e, i.anchor, n()))), [O, je] = l([]), [k, Me] = l(null), A = e.options.tools ?? {}, Ne = C?.features.screenshots !== !1 && A.screenshots !== !1, Pe = A.attachments !== !1, [j, We] = l(Ne ? "capturing" : "off"), N = x(e.state, (e) => !!e.session?.capabilities.triage), Ge = N && A.checklist !== !1, [P] = l(() => Ue(T)), [Ke, qe] = l(P?.task ?? {}), [F, Je] = l(P?.checklist ?? null), [I, Ye] = l(""), Xe = S(N, () => import("./TaskFields-B2-YvIwV.js").then((e) => e.TaskDraft), () => void 0), [L, Ze] = l(P?.markup ?? []), [Qe, R] = l(!1), $e = S(Qe, () => import("./MarkupEditor-BOb2jFTR.js").then((e) => e.MarkupEditor), (e) => (R(!1), v(e))), z = ue(e, (e) => v(new r(0, "file_rejected", e))), B = g(() => {
143
143
  if (!N || A.style === !1 || i.anchor.type !== "element" && i.anchor.type !== "text") return null;
144
144
  let e = c(i.anchor).element;
145
145
  return e instanceof HTMLElement || e instanceof SVGElement ? e : null;
146
- }, [i.anchor, N]), [V, et] = l(P?.styles ?? []), [H, tt] = l(!1), nt = C(H, () => import("./StylePanel-C-Gikxt1.js").then((e) => e.StylePanel), v), U = m(null), W = m(null), rt = () => {
146
+ }, [i.anchor, N]), [V, et] = l(P?.styles ?? []), [H, tt] = l(!1), nt = S(H, () => import("./StylePanel-BZk-r-kl.js").then((e) => e.StylePanel), v), U = m(null), W = m(null), rt = () => {
147
147
  B && (U.current ?? (U.current = de(B)), W.current ?? (W.current = new se(B)), tt(!0));
148
148
  };
149
149
  p(() => {
150
150
  H ? W.current?.apply(V) : W.current?.revert();
151
151
  }, [H, V]), p(() => () => W.current?.revert(), []);
152
- let [G, it] = l(null), at = C(G !== null, () => import("./Viewer-BULQsi9-.js").then((e) => e.Viewer), v), [K, q] = l("idle"), J = K !== "idle", [ot, st] = l(!1);
152
+ let [G, it] = l(null), at = S(G !== null, () => import("./Viewer-DL6M3wAT.js").then((e) => e.Viewer), v), [K, q] = l("idle"), J = K !== "idle", [ot, st] = l(!1);
153
153
  f(() => {
154
154
  if (K !== "sending") return st(!1);
155
155
  let e = setTimeout(() => st(!0), 1e4);
@@ -158,13 +158,13 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
158
158
  let Y = m(null), ct = m(!1), [lt, ut] = l(() => {
159
159
  let e = !!y(Ce);
160
160
  return y(Ce, null), e && a;
161
- }), [dt, ft] = l(!1), pt = !!(S?.features.console_capture || S?.features.network_capture), mt = x(e.state, (e) => !e.session || e.session.role === "guest"), [ht, gt] = l(S?.features.capture_consent_default === !0 && !mt), X = xe(), _t = !a && !b, Z = !a && !!b && !e.auth.pending(), [vt, yt] = l(null), bt = {
161
+ }), [dt, ft] = l(!1), pt = !!(C?.features.console_capture || C?.features.network_capture), mt = x(e.state, (e) => !e.session || e.session.role === "guest"), [ht, gt] = l(C?.features.capture_consent_default === !0 && !mt), X = Te(), _t = !a && !b, Z = !a && !!b && !e.auth.pending(), [vt, yt] = l(null), bt = {
162
162
  name: m(null),
163
163
  email: m(null)
164
164
  }, xt = m(null), Q = m(null), St = m(null);
165
165
  p(() => void (lt && St.current?.focus({ preventScroll: !0 })), []);
166
166
  let Ct = () => {
167
- y(Se, null), y(M, null);
167
+ y(ye, null), y(M, null);
168
168
  };
169
169
  p(() => () => {
170
170
  Y.current?.abort(), ct.current || Ct();
@@ -174,7 +174,7 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
174
174
  }, Tt = m(null);
175
175
  ae(Tt);
176
176
  let Et = m(null), Dt = m(null), [Ot] = l(() => (e) => {
177
- e && !Et.current && we(e), Et.current = e;
177
+ e && !Et.current && ve(e), Et.current = e;
178
178
  }), kt = m(null), At = m(null), jt = m(null), Mt = m(!1);
179
179
  p(() => {
180
180
  j === "off" && Mt.current && jt.current?.focus(), Mt.current = !1;
@@ -191,8 +191,8 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
191
191
  if (!o) {
192
192
  if (o = !0, t) return a(null);
193
193
  ke({
194
- redact: [...S?.privacy.redact_selectors ?? [], ...e.options.redact ?? []],
195
- privacy: Te(S, e.options.privacy),
194
+ redact: [...C?.privacy.redact_selectors ?? [], ...e.options.redact ?? []],
195
+ privacy: xe(C, e.options.privacy),
196
196
  pin: i.region ? null : i.point,
197
197
  region: i.region,
198
198
  crop: !!i.region
@@ -240,7 +240,7 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
240
240
  o.missing && (r ?? (r = "files"));
241
241
  let c = {
242
242
  ...De(),
243
- ...pt && ht ? be() : {},
243
+ ...pt && ht ? Ee() : {},
244
244
  screenshot_id: n,
245
245
  markup: L.length ? L : void 0
246
246
  }, l = N ? Le(Ke) : void 0, u = [...F ?? [], ...F && I.trim() ? [I.trim()] : []], d = B ? te(V) : [];
@@ -268,7 +268,7 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
268
268
  try {
269
269
  let t = !a && !b;
270
270
  if (Z && b) {
271
- let { startGuest: n } = await import("./Guest-Bi7hlzhs.js");
271
+ let { startGuest: n } = await import("./Guest-C-ZhARI0.js");
272
272
  y(Ve, JSON.stringify({
273
273
  name: E.name,
274
274
  email: E.email
@@ -278,7 +278,7 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
278
278
  }) === "popup";
279
279
  }
280
280
  if (t) {
281
- y(Se, JSON.stringify({
281
+ y(ye, JSON.stringify({
282
282
  draft: i,
283
283
  scrollY
284
284
  })), oe(T, D), y(M, JSON.stringify({
@@ -305,11 +305,11 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
305
305
  signal: s.signal
306
306
  });
307
307
  if (n) return;
308
- if (u(), Q.current = null, p.pending_verification) return ye?.(e.auth.pending()?.email ?? E.email);
308
+ if (u(), Q.current = null, p.pending_verification) return _e?.(e.auth.pending()?.email ?? E.email);
309
309
  d(p);
310
310
  } catch (t) {
311
311
  if (n) return;
312
- if (t instanceof r && ["pending_limit", "verification_required"].includes(t.code) && e.auth.pending()) return ye?.(e.auth.pending().email);
312
+ if (t instanceof r && ["pending_limit", "verification_required"].includes(t.code) && e.auth.pending()) return _e?.(e.auth.pending().email);
313
313
  let i = me(t);
314
314
  ft(i ?? !0), i || v(t);
315
315
  } finally {
@@ -318,18 +318,18 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
318
318
  };
319
319
  return /* @__PURE__ */ h(u, { children: [i.region ? /* @__PURE__ */ h("div", {
320
320
  class: "ck-pending-region",
321
- style: _e(i.region.x, i.region.y, i.region.w, i.region.h),
321
+ style: be(i.region.x, i.region.y, i.region.w, i.region.h),
322
322
  "aria-hidden": "true",
323
323
  "data-commentkit-ui": !0
324
324
  }) : i.anchor.type === "page" ? null : /* @__PURE__ */ h("div", {
325
325
  class: "ck-pending-pin",
326
- style: _e(i.point.x, i.point.y),
326
+ style: be(i.point.x, i.point.y),
327
327
  "aria-hidden": "true",
328
328
  "data-commentkit-ui": !0,
329
329
  children: [/* @__PURE__ */ h("svg", {
330
330
  viewBox: "5 3 54 62",
331
331
  children: /* @__PURE__ */ h("path", { d: Ie })
332
- }), w ? /* @__PURE__ */ h(ve, { person: w }) : null]
332
+ }), w ? /* @__PURE__ */ h(we, { person: w }) : null]
333
333
  }), /* @__PURE__ */ h("div", {
334
334
  class: "ck-card ck-composer",
335
335
  ref: Tt,
@@ -382,7 +382,7 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
382
382
  Pe ? /* @__PURE__ */ h(ge, {
383
383
  input: xt,
384
384
  onFiles: Lt,
385
- types: S?.limits?.upload_types
385
+ types: C?.limits?.upload_types
386
386
  }) : null,
387
387
  Ge ? /* @__PURE__ */ h("button", {
388
388
  ref: Dt,
@@ -614,11 +614,11 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
614
614
  rel: "noopener noreferrer",
615
615
  children: d("guestPrivacyLink")
616
616
  }),
617
- ze(S) ? /* @__PURE__ */ h(u, { children: [" · ", /* @__PURE__ */ h("a", {
618
- href: ze(S),
617
+ ze(C) ? /* @__PURE__ */ h(u, { children: [" · ", /* @__PURE__ */ h("a", {
618
+ href: ze(C),
619
619
  target: "_blank",
620
620
  rel: "noopener noreferrer",
621
- children: d("guestPrivacySite", { website: S?.project.name ?? "" })
621
+ children: d("guestPrivacySite", { website: C?.project.name ?? "" })
622
622
  })] }) : null
623
623
  ]
624
624
  })]
@@ -670,7 +670,7 @@ function Pe({ client: e, draft: i, signedIn: a, onSignIn: o, onCancel: s, onSent
670
670
  })] });
671
671
  }
672
672
  function Fe() {
673
- let [e, t] = l(!1), n = e ? j(be()) : [];
673
+ let [e, t] = l(!1), n = e ? j(Ee()) : [];
674
674
  return /* @__PURE__ */ h("details", {
675
675
  class: "ck-diag",
676
676
  onToggle: (e) => t(e.currentTarget.open),
@@ -693,7 +693,7 @@ function Re(e) {
693
693
  }
694
694
  var M = "commentkit:pending-extras";
695
695
  function ze(e) {
696
- let t = ye(e?.privacy?.notice_url);
696
+ let t = _e(e?.privacy?.notice_url);
697
697
  return t?.startsWith("https:") ? t : null;
698
698
  }
699
699
  function Be(e) {
@@ -1,6 +1,6 @@
1
- import { _ as e, c as t, l as n, m as r, n as i, u as a } from "./i18n-Mgs9VOuk.js";
2
- import { n as o } from "./icons-_C6ZWmBY.js";
3
- import { c as s } from "./start-Cbx6rMrr.js";
1
+ import { _ as e, c as t, l as n, m as r, n as i, u as a } from "./i18n-CDw_D17c.js";
2
+ import { n as o } from "./icons-BJLm_C0M.js";
3
+ import { c as s } from "./start-CE5eR33Z.js";
4
4
  // src/ui/DatePicker.tsx
5
5
  s(".ck-date-quick{border-bottom:1px solid var(--ck-hairline);flex-wrap:wrap;gap:4px;margin-bottom:4px;padding-bottom:8px;display:flex}.ck-date-chip{white-space:nowrap;border-radius:var(--ck-radius-sm);background:var(--ck-bg-muted);height:24px;color:var(--ck-text);font-size:var(--ck-fs-sm);transition:background-color var(--ck-fast);border:0;padding:0 5px;font-weight:500}.ck-date-clear{color:var(--ck-text-muted);background:0 0;margin-inline-start:auto;padding:0 4px}.ck-date-head{justify-content:space-between;align-items:center;height:28px;margin:4px 0;display:flex}.ck-date-title{font-size:var(--ck-fs-md);font-weight:600}.ck-root[dir=rtl] .ck-date-step svg{scale:-1 1}.ck-date-grid{gap:2px;display:grid}.ck-date-row{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.ck-date-wd{height:24px;color:var(--ck-text-muted);font-size:var(--ck-fs-xs);place-items:center;font-weight:500;display:grid}.ck-date-wd abbr{text-decoration:none}.ck-date-day{border-radius:var(--ck-radius-sm);width:100%;height:30px;color:var(--ck-text);font-size:var(--ck-fs-md);font-variant-numeric:tabular-nums;transition:background-color var(--ck-fast);background:0 0;border:0;padding:0}.ck-date-day[data-other]{color:var(--ck-text-muted)}.ck-date-day[data-today]{box-shadow:inset 0 0 0 1px var(--ck-control);font-weight:600}.ck-date-day[data-selected]{background:var(--ck-accent);color:var(--ck-accent-ink);box-shadow:none;font-weight:600}.ck-date-day:focus-visible{outline-offset:0}@media (hover:hover){.ck-date-chip:hover,.ck-date-day:not([data-selected]):hover{background:var(--ck-bg-hover)}}@media (pointer:coarse){.ck-date-day{height:40px}.ck-date-chip{height:36px}}@media (forced-colors:active){.ck-date-day[data-selected]{color:highlighttext;background:highlight}}");
6
6
  var c = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, l = (e) => {
@@ -1,8 +1,8 @@
1
- import { b as e, o as t, v as n } from "./client-Cv8ddtuM.js";
2
- import { _ as r, c as i, d as a, f as o, m as s, n as c, u as l } from "./i18n-Mgs9VOuk.js";
3
- import { n as u } from "./icons-_C6ZWmBY.js";
4
- import { r as d } from "./card-bits-cV8GdFWX.js";
5
- import { c as f, h as p } from "./start-Cbx6rMrr.js";
1
+ import { b as e, o as t, v as n } from "./client-CULjcQxz.js";
2
+ import { _ as r, c as i, d as a, f as o, m as s, n as c, u as l } from "./i18n-CDw_D17c.js";
3
+ import { n as u } from "./icons-BJLm_C0M.js";
4
+ import { r as d } from "./card-bits-B94SwnS9.js";
5
+ import { c as f, g as p } from "./start-CE5eR33Z.js";
6
6
  // src/ui/Guest.tsx
7
7
  f(".ck-verify-text{text-wrap:pretty;overflow-wrap:anywhere;margin:0 0 12px;line-height:1.5}.ck-verify .ck-code{height:48px;font-family:var(--ck-mono);font-size:var(--ck-fs-xl);letter-spacing:.32em;text-align:center;font-variant-numeric:tabular-nums;padding-inline-start:calc(12px + .32em);padding-inline-end:12px}.ck-verify .ck-actions .ck-chip{font-variant-numeric:tabular-nums}.ck-verify .ck-chip:disabled{opacity:.5;cursor:default}.ck-verify .ck-note{margin:12px 0 0}@media (hover:hover){.ck-verify .ck-chip:disabled:hover{background:var(--ck-bg);color:var(--ck-text-muted)}}@media (pointer:coarse){.ck-verify .ck-chip{min-height:44px}}");
8
8
  async function m(e, r) {
@@ -1,7 +1,7 @@
1
- import { _ as e, c as t, d as n, f as r, m as i, u as a } from "./i18n-Mgs9VOuk.js";
2
- import { A as o, _ as s, c } from "./start-Cbx6rMrr.js";
1
+ import { _ as e, c as t, d as n, f as r, m as i, u as a } from "./i18n-CDw_D17c.js";
2
+ import { c as o, j as s, v as c } from "./start-CE5eR33Z.js";
3
3
  // src/ui/MarkupEditor.tsx
4
- c(".ck-markup{z-index:calc(var(--ck-z) + 2);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0a0a0c4d;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.ck-markup canvas{border-radius:var(--ck-radius-md);cursor:crosshair;touch-action:none;background:#fff;max-width:min(100%,1100px);max-height:calc(100dvh - 110px);box-shadow:0 0 0 1px #0000000d,0 20px 50px #00000040}.ck-label-box .ck-input{width:200px;font-weight:600}.ck-markup .ck-markup-tools{background:var(--ck-bg);border-radius:var(--ck-radius-pill);max-width:100%;box-shadow:var(--ck-shadow);border:1px solid #0000;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;padding:4px;display:flex}.ck-markup .ck-markup-group{align-items:center;gap:4px;padding:0 4px;display:flex}.ck-markup .ck-markup-group+.ck-markup-group{border-inline-start:1px solid var(--ck-hairline);margin-inline-start:4px;padding-inline-start:8px}.ck-markup .ck-tool{border-radius:var(--ck-radius-pill);width:32px;height:32px;color:var(--ck-text-muted);transition:background-color var(--ck-fast), color var(--ck-fast), scale var(--ck-fast) ease-out;background:0 0;border:0;place-items:center;padding:0;display:grid}.ck-markup .ck-tool[aria-pressed=true]{background:var(--ck-accent-soft);color:var(--ck-accent-text)}.ck-markup .ck-tool:active,.ck-markup .ck-icon-btn:active:not([aria-disabled=true]){scale:.96}.ck-markup .ck-dot{width:16px;height:16px;box-shadow:inset 0 0 0 1px var(--ck-hairline);border-radius:50%;display:block}.ck-markup .ck-tool[aria-pressed=true] .ck-dot{box-shadow:0 0 0 2px var(--ck-bg), 0 0 0 4px currentColor}.ck-markup .ck-width{gap:8px;width:152px}.ck-markup .ck-width input{min-width:0;accent-color:var(--ck-accent);cursor:pointer;flex:1}.ck-markup .ck-width span{width:32px;font-size:var(--ck-fs-sm);color:var(--ck-text-muted);font-variant-numeric:tabular-nums;text-align:end;flex:none}.ck-markup .ck-btn-group{display:inline-flex}.ck-markup .ck-icon-btn{border:1px solid var(--ck-control);background:var(--ck-bg);width:32px;height:32px;color:var(--ck-text);transition:background-color var(--ck-fast), scale var(--ck-fast) ease-out;place-items:center;padding:0;display:grid}.ck-markup .ck-icon-btn+.ck-icon-btn{margin-inline-start:-1px}.ck-markup .ck-icon-btn:first-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:first-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:first-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:first-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:last-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:last-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:last-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:last-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:focus-visible{z-index:1;position:relative}.ck-markup .ck-icon-btn[aria-disabled=true]{opacity:.5;cursor:default}.ck-markup .ck-icon-btn.ck-primary{border-color:var(--ck-accent);background:var(--ck-accent);color:var(--ck-accent-ink);position:relative}.ck-markup .ck-label-box{z-index:1;border-radius:var(--ck-radius-md);background:var(--ck-bg);box-shadow:var(--ck-shadow);border:1px solid #0000;align-items:center;gap:4px;padding:4px;display:flex;position:fixed}.ck-markup .ck-label-box .ck-input{border-radius:var(--ck-radius-sm);height:32px}.ck-markup .ck-label-box .ck-chip{flex:none;height:32px}@media (hover:hover){.ck-markup .ck-icon-btn:hover:not([aria-disabled=true]):not(.ck-primary){background:var(--ck-bg-hover)}.ck-markup .ck-tool:hover{background:var(--ck-bg-hover);color:var(--ck-text)}}@media (forced-colors:active){.ck-markup .ck-tool[aria-pressed=true]{color:highlighttext;background:highlight}}@media (pointer:coarse){.ck-markup .ck-tool,.ck-markup .ck-icon-btn{width:44px;height:44px}}@media (max-width:520px){.ck-markup .ck-markup-tools{border-radius:var(--ck-radius)}}");
4
+ o(".ck-markup{z-index:calc(var(--ck-z) + 2);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0a0a0c4d;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.ck-markup canvas{border-radius:var(--ck-radius-md);cursor:crosshair;touch-action:none;background:#fff;max-width:min(100%,1100px);max-height:calc(100dvh - 110px);box-shadow:0 0 0 1px #0000000d,0 20px 50px #00000040}.ck-label-box .ck-input{width:200px;font-weight:600}.ck-markup .ck-markup-tools{background:var(--ck-bg);border-radius:var(--ck-radius-pill);max-width:100%;box-shadow:var(--ck-shadow);border:1px solid #0000;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;padding:4px;display:flex}.ck-markup .ck-markup-group{align-items:center;gap:4px;padding:0 4px;display:flex}.ck-markup .ck-markup-group+.ck-markup-group{border-inline-start:1px solid var(--ck-hairline);margin-inline-start:4px;padding-inline-start:8px}.ck-markup .ck-tool{border-radius:var(--ck-radius-pill);width:32px;height:32px;color:var(--ck-text-muted);transition:background-color var(--ck-fast), color var(--ck-fast), scale var(--ck-fast) ease-out;background:0 0;border:0;place-items:center;padding:0;display:grid}.ck-markup .ck-tool[aria-pressed=true]{background:var(--ck-accent-soft);color:var(--ck-accent-text)}.ck-markup .ck-tool:active,.ck-markup .ck-icon-btn:active:not([aria-disabled=true]){scale:.96}.ck-markup .ck-dot{width:16px;height:16px;box-shadow:inset 0 0 0 1px var(--ck-hairline);border-radius:50%;display:block}.ck-markup .ck-tool[aria-pressed=true] .ck-dot{box-shadow:0 0 0 2px var(--ck-bg), 0 0 0 4px currentColor}.ck-markup .ck-width{gap:8px;width:152px}.ck-markup .ck-width input{min-width:0;accent-color:var(--ck-accent);cursor:pointer;flex:1}.ck-markup .ck-width span{width:32px;font-size:var(--ck-fs-sm);color:var(--ck-text-muted);font-variant-numeric:tabular-nums;text-align:end;flex:none}.ck-markup .ck-btn-group{display:inline-flex}.ck-markup .ck-icon-btn{border:1px solid var(--ck-control);background:var(--ck-bg);width:32px;height:32px;color:var(--ck-text);transition:background-color var(--ck-fast), scale var(--ck-fast) ease-out;place-items:center;padding:0;display:grid}.ck-markup .ck-icon-btn+.ck-icon-btn{margin-inline-start:-1px}.ck-markup .ck-icon-btn:first-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:first-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:first-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:first-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:last-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:last-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:last-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:last-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:focus-visible{z-index:1;position:relative}.ck-markup .ck-icon-btn[aria-disabled=true]{opacity:.5;cursor:default}.ck-markup .ck-icon-btn.ck-primary{border-color:var(--ck-accent);background:var(--ck-accent);color:var(--ck-accent-ink);position:relative}.ck-markup .ck-label-box{z-index:1;border-radius:var(--ck-radius-md);background:var(--ck-bg);box-shadow:var(--ck-shadow);border:1px solid #0000;align-items:center;gap:4px;padding:4px;display:flex;position:fixed}.ck-markup .ck-label-box .ck-input{border-radius:var(--ck-radius-sm);height:32px}.ck-markup .ck-label-box .ck-chip{flex:none;height:32px}@media (hover:hover){.ck-markup .ck-icon-btn:hover:not([aria-disabled=true]):not(.ck-primary){background:var(--ck-bg-hover)}.ck-markup .ck-tool:hover{background:var(--ck-bg-hover);color:var(--ck-text)}}@media (forced-colors:active){.ck-markup .ck-tool[aria-pressed=true]{color:highlighttext;background:highlight}}@media (pointer:coarse){.ck-markup .ck-tool,.ck-markup .ck-icon-btn{width:44px;height:44px}}@media (max-width:520px){.ck-markup .ck-markup-tools{border-radius:var(--ck-radius)}}");
5
5
  var l = /* @__PURE__ */ new WeakSet(), u = [
6
6
  "pen",
7
7
  "line",
@@ -55,7 +55,7 @@ function h({ d: e }) {
55
55
  children: /* @__PURE__ */ a("path", { d: e })
56
56
  });
57
57
  }
58
- function g({ image: s, onDone: c, onCancel: g }) {
58
+ function g({ image: o, onDone: c, onCancel: g }) {
59
59
  let b = i(null), [x, S] = e(null), [C, w] = e("pen"), [T, E] = e(d[0]), [D, O] = e(3), [k, A] = e({
60
60
  steps: [[]],
61
61
  at: 0
@@ -87,13 +87,13 @@ function g({ image: s, onDone: c, onCancel: g }) {
87
87
  };
88
88
  n(() => {
89
89
  let e = !0, t = null;
90
- return createImageBitmap(s).then((n) => e ? S(t = n) : n.close()), () => {
90
+ return createImageBitmap(o).then((n) => e ? S(t = n) : n.close()), () => {
91
91
  if (e = !1, t) {
92
92
  let e = t;
93
93
  S((t) => t === e ? null : t), l.add(e), e.close();
94
94
  }
95
95
  };
96
- }, [s]), n(() => V(), [x, j]);
96
+ }, [o]), n(() => V(), [x, j]);
97
97
  let V = (e) => {
98
98
  let t = b.current;
99
99
  if (!t || !x || l.has(x)) return;
@@ -272,7 +272,7 @@ function g({ image: s, onDone: c, onCancel: g }) {
272
272
  }),
273
273
  I ? /* @__PURE__ */ a("div", {
274
274
  class: "ck-label-box",
275
- style: o(I.left, I.top),
275
+ style: s(I.left, I.top),
276
276
  children: [/* @__PURE__ */ a("input", {
277
277
  ref: R,
278
278
  class: "ck-input",
@@ -302,7 +302,7 @@ function _(e, t) {
302
302
  let n = e?.getBoundingClientRect().width || e?.width || 1;
303
303
  return Math.max(1, Math.min(64, Math.round(t * ((e?.width ?? n) / n))));
304
304
  }
305
- var v = () => s() ? "⌘" : "Ctrl";
305
+ var v = () => c() ? "⌘" : "Ctrl";
306
306
  function y(e, t, n) {
307
307
  let r = t.points ?? [], i = t.width ?? Math.max(3, Math.round(n.width / 300));
308
308
  e.save(), e.strokeStyle = e.fillStyle = t.color ?? "#ff3b30", e.lineWidth = i, e.lineCap = e.lineJoin = "round";