@qualityunit/liveagent-components-editor 0.0.64 → 0.0.65

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 (76) hide show
  1. package/dist/{af.umd-B8xgNcsN.js → af.umd-C3SE_8yW.js} +1 -1
  2. package/dist/{ar.umd-DOrLWJNZ.js → ar.umd-B-m2ySjL.js} +1 -1
  3. package/dist/{ast.umd-CedYaMqk.js → ast.umd-BgQPxfMI.js} +1 -1
  4. package/dist/{az.umd-DyO9Uchq.js → az.umd-B-R2oOhg.js} +1 -1
  5. package/dist/{bg.umd-CVId39GX.js → bg.umd-Djgc7wN3.js} +1 -1
  6. package/dist/{bn.umd-HvRSHBBc.js → bn.umd-CcTo7Hjt.js} +1 -1
  7. package/dist/{bs.umd-D39VUsCW.js → bs.umd-SCFCz1vb.js} +1 -1
  8. package/dist/{ca.umd-CAcMJjVg.js → ca.umd-xU0_eTZq.js} +1 -1
  9. package/dist/ckeditor.js +1 -1
  10. package/dist/{ckeditor5-D7fStb4M.js → ckeditor5-CZglviFn.js} +5284 -5248
  11. package/dist/{cs.umd-CPZ6iWIg.js → cs.umd-CZ389mxS.js} +1 -1
  12. package/dist/{da.umd-CGLlzmrc.js → da.umd-C2Xvq6vN.js} +1 -1
  13. package/dist/{de-ch.umd-D0Dq4XoD.js → de-ch.umd-XL2vafcn.js} +1 -1
  14. package/dist/{de.umd-CKngoVN4.js → de.umd-CFDRJkPA.js} +1 -1
  15. package/dist/editor-lib.js +182 -177
  16. package/dist/{el.umd-CDaVAmdI.js → el.umd-CIi4ahQm.js} +1 -1
  17. package/dist/{en-au.umd-DiRa2LRT.js → en-au.umd-K5O0NtnZ.js} +1 -1
  18. package/dist/{en-gb.umd-Bl1JwfAc.js → en-gb.umd-Djz0ODay.js} +1 -1
  19. package/dist/{en.umd-CqzDS9Ew.js → en.umd--qWRhXvx.js} +1 -1
  20. package/dist/{eo.umd-C_36ZmIS.js → eo.umd-BXjd--Nk.js} +1 -1
  21. package/dist/{es-co.umd-DZmPYe0C.js → es-co.umd-Bng1vUov.js} +1 -1
  22. package/dist/{es.umd-DU02kYat.js → es.umd-CfXWR8ov.js} +1 -1
  23. package/dist/{et.umd-DDO0YmK5.js → et.umd-BRmtjYmJ.js} +1 -1
  24. package/dist/{eu.umd-D0KcLyVa.js → eu.umd-CinysHmE.js} +1 -1
  25. package/dist/{fa.umd-DEddBu7c.js → fa.umd-CrpsJBu5.js} +1 -1
  26. package/dist/{fi.umd-DD3lre9Q.js → fi.umd-B2ThuzZE.js} +1 -1
  27. package/dist/{fr.umd-CNZE3mbe.js → fr.umd-Df23hBXq.js} +1 -1
  28. package/dist/{gl.umd-mTCLDEBN.js → gl.umd-Dbt1j1_e.js} +1 -1
  29. package/dist/{gu.umd-CRtSnqEQ.js → gu.umd-iLdofGxs.js} +1 -1
  30. package/dist/{he.umd-BraxJKxO.js → he.umd-DAXSgf8q.js} +1 -1
  31. package/dist/{hi.umd-CHJSKt8L.js → hi.umd-4m7ArdxH.js} +1 -1
  32. package/dist/{hr.umd-B8K7JPFI.js → hr.umd-CxHsgHir.js} +1 -1
  33. package/dist/{hu.umd-Cg4Z9lLK.js → hu.umd-CEAM7ilp.js} +1 -1
  34. package/dist/{hy.umd-CI73SnSZ.js → hy.umd-Bm-th_O0.js} +1 -1
  35. package/dist/{id.umd-CIa13bgB.js → id.umd-CxVq0nN0.js} +1 -1
  36. package/dist/{it.umd-D-Mc7ZZz.js → it.umd-DNnruPq7.js} +1 -1
  37. package/dist/{ja.umd-koZThu08.js → ja.umd-CE21CTX4.js} +1 -1
  38. package/dist/{jv.umd-Ct0pqTvf.js → jv.umd-B9X1lSr-.js} +1 -1
  39. package/dist/{kk.umd-DPsVCZPw.js → kk.umd-CF0FWkrF.js} +1 -1
  40. package/dist/{km.umd-DJ5rNa7u.js → km.umd-cA5KxS-K.js} +1 -1
  41. package/dist/{kn.umd-DrKuI0qC.js → kn.umd-Bait2iVD.js} +1 -1
  42. package/dist/{ko.umd-D6_FVyxj.js → ko.umd-BMYwVJUL.js} +1 -1
  43. package/dist/{ku.umd-B9R9MGew.js → ku.umd-Cudu2231.js} +1 -1
  44. package/dist/{lt.umd-pCNRM6xf.js → lt.umd-LL2qDiaf.js} +1 -1
  45. package/dist/{lv.umd-CkG6Viuy.js → lv.umd-CmRyTyXt.js} +1 -1
  46. package/dist/{ms.umd-WuzZ6_9N.js → ms.umd-BgY93G86.js} +1 -1
  47. package/dist/{nb.umd-CpBrQtpg.js → nb.umd-CV3IJZdO.js} +1 -1
  48. package/dist/{ne.umd-CuNvvlK_.js → ne.umd-B4RP3sRW.js} +1 -1
  49. package/dist/{nl.umd-D1teOZZk.js → nl.umd-CtBGDrkR.js} +1 -1
  50. package/dist/{no.umd-DUVMBQNT.js → no.umd-Jd8iU94o.js} +1 -1
  51. package/dist/{oc.umd-BfT5RnV6.js → oc.umd-CZ8lJBiJ.js} +1 -1
  52. package/dist/{pl.umd-BymNe-qd.js → pl.umd-Cv_d-kGB.js} +1 -1
  53. package/dist/{pt-br.umd-DQs0cQwo.js → pt-br.umd-CUIkeOwI.js} +1 -1
  54. package/dist/{pt.umd-GS6lVSwc.js → pt.umd-CK49G9ip.js} +1 -1
  55. package/dist/{ro.umd-BEBp00IQ.js → ro.umd-Cr6YMPGk.js} +1 -1
  56. package/dist/{ru.umd-jX7FPHxW.js → ru.umd-BWmC8EV4.js} +1 -1
  57. package/dist/{si.umd-CvFuJStL.js → si.umd-CntLiTcJ.js} +1 -1
  58. package/dist/{sk.umd-BUUbQ9ew.js → sk.umd-RgflOeK6.js} +1 -1
  59. package/dist/{sl.umd-BC1PYuwA.js → sl.umd-DHxoC024.js} +1 -1
  60. package/dist/{sq.umd-ElP4Q1s6.js → sq.umd-ySIcCb8B.js} +1 -1
  61. package/dist/{sr-latn.umd-BIcrAvxM.js → sr-latn.umd-DHtH0gPg.js} +1 -1
  62. package/dist/{sr.umd-lQfQuXIC.js → sr.umd-BxbqIc7C.js} +1 -1
  63. package/dist/{sv.umd-CJHAn4Eb.js → sv.umd-DSHKT3tk.js} +1 -1
  64. package/dist/{th.umd-DOi9nccJ.js → th.umd-B_7scKt9.js} +1 -1
  65. package/dist/{ti.umd-BVFHt0U5.js → ti.umd-D6J9eFOH.js} +1 -1
  66. package/dist/{tk.umd-CISiyzlg.js → tk.umd-CVr-5wpO.js} +1 -1
  67. package/dist/{tr.umd-Nctk-bS1.js → tr.umd-CmHxGI1c.js} +1 -1
  68. package/dist/{tt.umd-CmAl-kJi.js → tt.umd-CA1qY2DU.js} +1 -1
  69. package/dist/{ug.umd-CBNdNEUG.js → ug.umd-DTbpgGPw.js} +1 -1
  70. package/dist/{uk.umd-DPdo-wSD.js → uk.umd-D1d2NpF1.js} +1 -1
  71. package/dist/{ur.umd-BC3p9xPw.js → ur.umd-C5nTXrSr.js} +1 -1
  72. package/dist/{uz.umd-CWOay6L1.js → uz.umd-aKMkjIyz.js} +1 -1
  73. package/dist/{vi.umd-TxGvZysz.js → vi.umd-84BaYyBm.js} +1 -1
  74. package/dist/{zh-cn.umd-KxlyfTGP.js → zh-cn.umd-fGgwohJI.js} +1 -1
  75. package/dist/{zh.umd-Ncp93bAX.js → zh.umd-zRLVtq71.js} +1 -1
  76. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { g as k } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as k } from "./ckeditor5-CZglviFn.js";
2
2
  function m(e, o) {
3
3
  for (var a = 0; a < o.length; a++) {
4
4
  const t = o[a];
@@ -1,4 +1,4 @@
1
- import { g as d } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as d } from "./ckeditor5-CZglviFn.js";
2
2
  function g(e, a) {
3
3
  for (var i = 0; i < a.length; i++) {
4
4
  const t = a[i];
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as c } from "./ckeditor5-CZglviFn.js";
2
2
  function g(e, l) {
3
3
  for (var i = 0; i < l.length; i++) {
4
4
  const t = l[i];
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as c } from "./ckeditor5-CZglviFn.js";
2
2
  function h(e, a) {
3
3
  for (var i = 0; i < a.length; i++) {
4
4
  const t = a[i];
@@ -1,354 +1,359 @@
1
- import { b as Q, h as b, a as W, E as ue, H as $, r as O, s as U, c as N, d as H, e as M, p as Y, f as x, U as ve, i as A, I as V, j, k as Z, l as oe, m as ce, n as _e, o as de, q as he, t as be, u as ge, v as z, w as me, x as Ee, y as ye, z as pe, A as xe, B as Ae, C as Ne, D as Te, F as Ie, G as ke, J as we, K as He, L as ee, M as ae, N as Me, O as k, P as te, Q as q, R as C, S as re, T as D, V as w, W as R, X as K, Y as S, Z as Ce, _ as Re, $ as Se, a0 as De } from "./ckeditor5-D7fStb4M.js";
2
- function Le(e, a, t = !1) {
1
+ import { b as Q, E as fe, r as H, a as M, p as O, U as ve, h as b, c as W, H as $, d as U, s as Y, e as x, f as A, i as T, j as oe, I as V, k as j, l as Z, m as ce, n as _e, o as z, q as de, t as he, u as be, v as ge, w as me, x as Ee, y as ye, z as pe, A as Ae, B as Te, C as xe, D as Ne, F as Ie, G as ke, J as we, K as He, L as ee, M as te, N as Me, O as k, P as re, Q as D, R as q, S as C, T as ae, V as w, W as R, X as K, Y as S, Z as Ce, _ as Re, $ as Se, a0 as De } from "./ckeditor5-CZglviFn.js";
2
+ function Le(e, t, r = !1) {
3
3
  b && W();
4
- var r = e, n = null, i = null, u = ve, d = t ? ue : 0, c = !1;
4
+ var a = e, n = null, i = null, f = ve, _ = r ? fe : 0, c = !1;
5
5
  const h = (v, s = !0) => {
6
6
  c = !0, l(s, v);
7
7
  }, l = (v, s) => {
8
- if (u === (u = v)) return;
9
- let f = !1;
8
+ if (f === (f = v)) return;
9
+ let u = !1;
10
10
  if (b) {
11
11
  const o = (
12
12
  /** @type {Comment} */
13
- r.data === $
13
+ a.data === $
14
14
  );
15
- !!u === o && (r = O(), U(r), N(!1), f = !0);
15
+ !!f === o && (a = U(), Y(a), x(!1), u = !0);
16
16
  }
17
- u ? (n ? H(n) : s && (n = M(() => s(r))), i && Y(i, () => {
17
+ f ? (n ? H(n) : s && (n = M(() => s(a))), i && O(i, () => {
18
18
  i = null;
19
- })) : (i ? H(i) : s && (i = M(() => s(r))), n && Y(n, () => {
19
+ })) : (i ? H(i) : s && (i = M(() => s(a))), n && O(n, () => {
20
20
  n = null;
21
- })), f && N(!0);
21
+ })), u && x(!0);
22
22
  };
23
23
  Q(() => {
24
- c = !1, a(h), c || l(null, null);
25
- }, d), b && (r = x);
24
+ c = !1, t(h), c || l(null, null);
25
+ }, _), b && (a = A);
26
26
  }
27
- function Pe(e, a) {
28
- return a;
27
+ function Pe(e, t) {
28
+ return t;
29
29
  }
30
- function Ve(e, a, t, r) {
31
- for (var n = [], i = a.length, u = 0; u < i; u++)
32
- ce(a[u].e, n, !0);
33
- var d = i > 0 && n.length === 0 && t !== null;
34
- if (d) {
30
+ function Ve(e, t, r, a) {
31
+ for (var n = [], i = t.length, f = 0; f < i; f++)
32
+ be(t[f].e, n, !0);
33
+ var _ = i > 0 && n.length === 0 && r !== null;
34
+ if (_) {
35
35
  var c = (
36
36
  /** @type {Element} */
37
37
  /** @type {Element} */
38
- t.parentNode
38
+ r.parentNode
39
39
  );
40
- _e(c), c.append(
40
+ ge(c), c.append(
41
41
  /** @type {Element} */
42
- t
43
- ), r.clear(), p(e, a[0].prev, a[i - 1].next);
42
+ r
43
+ ), a.clear(), p(e, t[0].prev, t[i - 1].next);
44
44
  }
45
- de(n, () => {
45
+ me(n, () => {
46
46
  for (var h = 0; h < i; h++) {
47
- var l = a[h];
48
- d || (r.delete(l.k), p(e, l.prev, l.next)), he(l.e, !d);
47
+ var l = t[h];
48
+ _ || (a.delete(l.k), p(e, l.prev, l.next)), Ee(l.e, !_);
49
49
  }
50
50
  });
51
51
  }
52
- function qe(e, a, t, r, n, i = null) {
53
- var u = e, d = { flags: a, items: /* @__PURE__ */ new Map(), first: null };
52
+ function qe(e, t, r, a, n, i = null) {
53
+ var f = e, _ = { flags: t, items: /* @__PURE__ */ new Map(), first: null };
54
54
  b && W();
55
- var c = null, h = !1, l = be(() => {
56
- var v = t();
57
- return Ee(v) ? v : v == null ? [] : j(v);
55
+ var c = null, h = !1, l = oe(() => {
56
+ var v = r();
57
+ return de(v) ? v : v == null ? [] : j(v);
58
58
  });
59
59
  Q(() => {
60
- var v = A(l), s = v.length;
60
+ var v = T(l), s = v.length;
61
61
  if (h && s === 0)
62
62
  return;
63
63
  h = s === 0;
64
- let f = !1;
64
+ let u = !1;
65
65
  if (b) {
66
66
  var o = (
67
67
  /** @type {Comment} */
68
- u.data === $
68
+ f.data === $
69
69
  );
70
- o !== (s === 0) && (u = O(), U(u), N(!1), f = !0);
70
+ o !== (s === 0) && (f = U(), Y(f), x(!1), u = !0);
71
71
  }
72
72
  if (b) {
73
- for (var m = null, E, _ = 0; _ < s; _++) {
74
- if (x.nodeType === 8 && /** @type {Comment} */
75
- x.data === ye) {
76
- u = /** @type {Comment} */
77
- x, f = !0, N(!1);
73
+ for (var m = null, E, d = 0; d < s; d++) {
74
+ if (A.nodeType === 8 && /** @type {Comment} */
75
+ A.data === Te) {
76
+ f = /** @type {Comment} */
77
+ A, u = !0, x(!1);
78
78
  break;
79
79
  }
80
- var g = v[_], T = r(g, _);
80
+ var g = v[d], N = a(g, d);
81
81
  E = ne(
82
- x,
83
- d,
82
+ A,
83
+ _,
84
84
  m,
85
85
  null,
86
86
  g,
87
- T,
88
- _,
87
+ N,
88
+ d,
89
89
  n,
90
- a,
91
- t
92
- ), d.items.set(T, E), m = E;
90
+ t,
91
+ r
92
+ ), _.items.set(N, E), m = E;
93
93
  }
94
- s > 0 && U(O());
94
+ s > 0 && Y(U());
95
95
  }
96
- b || Be(v, d, u, n, a, r, t), i !== null && (s === 0 ? c ? H(c) : c = M(() => i(u)) : c !== null && Y(c, () => {
96
+ b || Be(v, _, f, n, t, a, r), i !== null && (s === 0 ? c ? H(c) : c = M(() => i(f)) : c !== null && O(c, () => {
97
97
  c = null;
98
- })), f && N(!0), A(l);
99
- }), b && (u = x);
98
+ })), u && x(!0), T(l);
99
+ }), b && (f = A);
100
100
  }
101
- function Be(e, a, t, r, n, i, u) {
102
- var d = e.length, c = a.items, h = a.first, l = h, v, s = null, f = [], o = [], m, E, _, g;
103
- for (g = 0; g < d; g += 1) {
104
- if (m = e[g], E = i(m, g), _ = c.get(E), _ === void 0) {
105
- var T = l ? (
101
+ function Be(e, t, r, a, n, i, f) {
102
+ var _ = e.length, c = t.items, h = t.first, l = h, v, s = null, u = [], o = [], m, E, d, g;
103
+ for (g = 0; g < _; g += 1) {
104
+ if (m = e[g], E = i(m, g), d = c.get(E), d === void 0) {
105
+ var N = l ? (
106
106
  /** @type {TemplateNode} */
107
107
  l.e.nodes_start
108
- ) : t;
108
+ ) : r;
109
109
  s = ne(
110
- T,
111
- a,
110
+ N,
111
+ t,
112
112
  s,
113
- s === null ? a.first : s.next,
113
+ s === null ? t.first : s.next,
114
114
  m,
115
115
  E,
116
116
  g,
117
- r,
117
+ a,
118
118
  n,
119
- u
120
- ), c.set(E, s), f = [], o = [], l = s.next;
119
+ f
120
+ ), c.set(E, s), u = [], o = [], l = s.next;
121
121
  continue;
122
122
  }
123
- if (Fe(_, m, g), _.e.f & V && H(_.e), _ !== l) {
124
- if (v !== void 0 && v.has(_)) {
125
- if (f.length < o.length) {
123
+ if (Fe(d, m, g), (d.e.f & V) !== 0 && H(d.e), d !== l) {
124
+ if (v !== void 0 && v.has(d)) {
125
+ if (u.length < o.length) {
126
126
  var I = o[0], y;
127
127
  s = I.prev;
128
- var X = f[0], L = f[f.length - 1];
129
- for (y = 0; y < f.length; y += 1)
130
- G(f[y], I, t);
128
+ var X = u[0], L = u[u.length - 1];
129
+ for (y = 0; y < u.length; y += 1)
130
+ G(u[y], I, r);
131
131
  for (y = 0; y < o.length; y += 1)
132
132
  v.delete(o[y]);
133
- p(a, X.prev, L.next), p(a, s, X), p(a, L, I), l = I, s = L, g -= 1, f = [], o = [];
133
+ p(t, X.prev, L.next), p(t, s, X), p(t, L, I), l = I, s = L, g -= 1, u = [], o = [];
134
134
  } else
135
- v.delete(_), G(_, l, t), p(a, _.prev, _.next), p(a, _, s === null ? a.first : s.next), p(a, s, _), s = _;
135
+ v.delete(d), G(d, l, r), p(t, d.prev, d.next), p(t, d, s === null ? t.first : s.next), p(t, s, d), s = d;
136
136
  continue;
137
137
  }
138
- for (f = [], o = []; l !== null && l.k !== E; )
139
- l.e.f & V || (v ?? (v = /* @__PURE__ */ new Set())).add(l), o.push(l), l = l.next;
138
+ for (u = [], o = []; l !== null && l.k !== E; )
139
+ (l.e.f & V) === 0 && (v ?? (v = /* @__PURE__ */ new Set())).add(l), o.push(l), l = l.next;
140
140
  if (l === null)
141
141
  continue;
142
- _ = l;
142
+ d = l;
143
143
  }
144
- f.push(_), s = _, l = _.next;
144
+ u.push(d), s = d, l = d.next;
145
145
  }
146
146
  if (l !== null || v !== void 0) {
147
147
  for (var P = v === void 0 ? [] : j(v); l !== null; )
148
- l.e.f & V || P.push(l), l = l.next;
148
+ (l.e.f & V) === 0 && P.push(l), l = l.next;
149
149
  var ie = P.length;
150
150
  if (ie > 0) {
151
- var fe = null;
152
- Ve(a, P, fe, c);
151
+ var ue = null;
152
+ Ve(t, P, ue, c);
153
153
  }
154
154
  }
155
- Z.first = a.first && a.first.e, Z.last = s && s.e;
155
+ Z.first = t.first && t.first.e, Z.last = s && s.e;
156
156
  }
157
- function Fe(e, a, t, r) {
158
- oe(e.v, a), e.i = t;
157
+ function Fe(e, t, r, a) {
158
+ ce(e.v, t), e.i = r;
159
159
  }
160
- function ne(e, a, t, r, n, i, u, d, c, h) {
161
- var l = (c & pe) !== 0, v = (c & xe) === 0, s = l ? v ? ge(n) : z(n) : n, f = c & me ? z(u) : u, o = {
162
- i: f,
160
+ function ne(e, t, r, a, n, i, f, _, c, h) {
161
+ var l = (c & pe) !== 0, v = (c & Ae) === 0, s = l ? v ? _e(n) : z(n) : n, u = (c & he) === 0 ? f : z(f), o = {
162
+ i: u,
163
163
  v: s,
164
164
  k: i,
165
165
  a: null,
166
166
  // @ts-expect-error
167
167
  e: null,
168
- prev: t,
169
- next: r
168
+ prev: r,
169
+ next: a
170
170
  };
171
171
  try {
172
- return o.e = M(() => d(e, s, f, h), b), o.e.prev = t && t.e, o.e.next = r && r.e, t === null ? a.first = o : (t.next = o, t.e.next = o.e), r !== null && (r.prev = o, r.e.prev = o.e), o;
172
+ return o.e = M(() => _(e, s, u, h), b), o.e.prev = r && r.e, o.e.next = a && a.e, r === null ? t.first = o : (r.next = o, r.e.next = o.e), a !== null && (a.prev = o, a.e.prev = o.e), o;
173
173
  } finally {
174
174
  }
175
175
  }
176
- function G(e, a, t) {
177
- for (var r = e.next ? (
176
+ function G(e, t, r) {
177
+ for (var a = e.next ? (
178
178
  /** @type {TemplateNode} */
179
179
  e.next.e.nodes_start
180
- ) : t, n = a ? (
180
+ ) : r, n = t ? (
181
181
  /** @type {TemplateNode} */
182
- a.e.nodes_start
183
- ) : t, i = (
182
+ t.e.nodes_start
183
+ ) : r, i = (
184
184
  /** @type {TemplateNode} */
185
185
  e.e.nodes_start
186
- ); i !== r; ) {
187
- var u = (
186
+ ); i !== a; ) {
187
+ var f = (
188
188
  /** @type {TemplateNode} */
189
- Ae(i)
189
+ ye(i)
190
190
  );
191
- n.before(i), i = u;
191
+ n.before(i), i = f;
192
192
  }
193
193
  }
194
- function p(e, a, t) {
195
- a === null ? e.first = t : (a.next = t, a.e.next = t && t.e), t !== null && (t.prev = a, t.e.prev = a && a.e);
194
+ function p(e, t, r) {
195
+ t === null ? e.first = r : (t.next = r, t.e.next = r && r.e), r !== null && (r.prev = t, r.e.prev = t && t.e);
196
196
  }
197
197
  function se(e) {
198
- var a, t, r = "";
199
- if (typeof e == "string" || typeof e == "number") r += e;
198
+ var t, r, a = "";
199
+ if (typeof e == "string" || typeof e == "number") a += e;
200
200
  else if (typeof e == "object") if (Array.isArray(e)) {
201
201
  var n = e.length;
202
- for (a = 0; a < n; a++) e[a] && (t = se(e[a])) && (r && (r += " "), r += t);
203
- } else for (t in e) e[t] && (r && (r += " "), r += t);
204
- return r;
202
+ for (t = 0; t < n; t++) e[t] && (r = se(e[t])) && (a && (a += " "), a += r);
203
+ } else for (r in e) e[r] && (a && (a += " "), a += r);
204
+ return a;
205
205
  }
206
206
  function Oe() {
207
- for (var e, a, t = 0, r = "", n = arguments.length; t < n; t++) (e = arguments[t]) && (a = se(e)) && (r && (r += " "), r += a);
208
- return r;
207
+ for (var e, t, r = 0, a = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (t = se(e)) && (a && (a += " "), a += t);
208
+ return a;
209
209
  }
210
210
  function Ue(e) {
211
211
  return typeof e == "object" ? Oe(e) : e ?? "";
212
212
  }
213
- function Ye(e, a, t, r) {
214
- var n = e.__attributes ?? (e.__attributes = {});
215
- b && (n[a] = e.getAttribute(a)), n[a] !== (n[a] = t) && (t == null ? e.removeAttribute(a) : typeof t != "string" && Ke(e).includes(a) ? e[a] = t : e.setAttribute(a, t));
213
+ function Ye(e, t, r) {
214
+ var a = e == null ? "" : "" + e;
215
+ return a === "" ? null : a;
216
216
  }
217
- var J = /* @__PURE__ */ new Map();
218
- function Ke(e) {
219
- var a = J.get(e.nodeName);
220
- if (a) return a;
221
- J.set(e.nodeName, a = []);
222
- for (var t, r = e, n = Element.prototype; n !== r; ) {
223
- t = Te(r);
224
- for (var i in t)
225
- t[i].set && a.push(i);
226
- r = Ne(r);
217
+ function Ke(e, t, r, a, n, i) {
218
+ var f = e.__className;
219
+ if (b || f !== r) {
220
+ var _ = Ye(r);
221
+ (!b || _ !== e.getAttribute("class")) && (_ == null ? e.removeAttribute("class") : e.className = _), e.__className = r;
227
222
  }
228
- return a;
223
+ return i;
229
224
  }
230
- function Xe(e, a, t) {
231
- var r = e.__className, n = Ze(a);
232
- b && e.className === n ? e.__className = n : (r !== n || b && e.className !== n) && (a == null ? e.removeAttribute("class") : e.className = n, e.__className = n);
225
+ function Xe(e, t, r, a) {
226
+ var n = e.__attributes ?? (e.__attributes = {});
227
+ b && (n[t] = e.getAttribute(t)), n[t] !== (n[t] = r) && (r == null ? e.removeAttribute(t) : typeof r != "string" && Ze(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
233
228
  }
234
- function Ze(e, a) {
235
- return (e ?? "") + "";
229
+ var J = /* @__PURE__ */ new Map();
230
+ function Ze(e) {
231
+ var t = J.get(e.nodeName);
232
+ if (t) return t;
233
+ J.set(e.nodeName, t = []);
234
+ for (var r, a = e, n = Element.prototype; n !== a; ) {
235
+ r = Ne(a);
236
+ for (var i in r)
237
+ r[i].set && t.push(i);
238
+ a = xe(a);
239
+ }
240
+ return t;
236
241
  }
237
- function ze(e, a, t = a) {
238
- var r = Ie();
242
+ function ze(e, t, r = t) {
243
+ var a = Ie();
239
244
  ke(e, "input", (n) => {
240
245
  var i = n ? e.defaultValue : e.value;
241
- if (i = B(e) ? F(i) : i, t(i), r && i !== (i = a())) {
242
- var u = e.selectionStart, d = e.selectionEnd;
243
- e.value = i ?? "", d !== null && (e.selectionStart = u, e.selectionEnd = Math.min(d, e.value.length));
246
+ if (i = B(e) ? F(i) : i, r(i), a && i !== (i = t())) {
247
+ var f = e.selectionStart, _ = e.selectionEnd;
248
+ e.value = i ?? "", _ !== null && (e.selectionStart = f, e.selectionEnd = Math.min(_, e.value.length));
244
249
  }
245
250
  }), // If we are hydrating and the value has since changed,
246
251
  // then use the updated value from the input instead.
247
252
  (b && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
248
253
  // TODO Svelte 6: remove input.value check and set to empty string?
249
- we(a) == null && e.value) && t(B(e) ? F(e.value) : e.value), He(() => {
250
- var n = a();
254
+ we(t) == null && e.value) && r(B(e) ? F(e.value) : e.value), He(() => {
255
+ var n = t();
251
256
  B(e) && n === F(e.value) || e.type === "date" && !n && !e.value || n !== e.value && (e.value = n ?? "");
252
257
  });
253
258
  }
254
259
  function B(e) {
255
- var a = e.type;
256
- return a === "number" || a === "range";
260
+ var t = e.type;
261
+ return t === "number" || t === "range";
257
262
  }
258
263
  function F(e) {
259
264
  return e === "" ? null : +e;
260
265
  }
261
266
  var Ge = D("<button> </button>"), Je = D('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
262
- function le(e, a) {
263
- ae(a, !1);
264
- const t = Me();
265
- let r = k(a, "buttons", 28, () => []);
267
+ function le(e, t) {
268
+ te(t, !1);
269
+ const r = Me();
270
+ let a = k(t, "buttons", 28, () => []);
266
271
  function n() {
267
- t("html", {});
272
+ r("html", {});
268
273
  }
269
274
  function i() {
270
- t("plain", {});
275
+ r("plain", {});
271
276
  }
272
- te();
273
- var u = Je(), d = R(u), c = K(d, 2), h = K(c, 2);
274
- return qe(h, 1, r, Pe, (l, v) => {
275
- var s = Ge(), f = R(s, !0);
277
+ re();
278
+ var f = Je(), _ = R(f), c = K(_, 2), h = K(c, 2);
279
+ return qe(h, 1, a, Pe, (l, v) => {
280
+ var s = Ge(), u = R(s, !0);
276
281
  S(s), Ce(() => {
277
- Xe(s, Ue(A(v).style)), Ye(s, "title", A(v).text), Re(f, A(v).text);
282
+ Ke(s, 1, Ue(T(v).style)), Xe(s, "title", T(v).text), Re(u, T(v).text);
278
283
  }), q("click", s, function(...o) {
279
284
  var m;
280
- (m = A(v).handler) == null || m.apply(this, o);
285
+ (m = T(v).handler) == null || m.apply(this, o);
281
286
  }), C(l, s);
282
- }), S(u), q("click", d, n), q("click", c, i), C(e, u), re({
287
+ }), S(f), q("click", _, n), q("click", c, i), C(e, f), ae({
283
288
  get buttons() {
284
- return r();
289
+ return a();
285
290
  },
286
291
  set buttons(l) {
287
- r(l), w();
292
+ a(l), w();
288
293
  }
289
294
  });
290
295
  }
291
296
  ee(le, { buttons: {} }, [], [], !0);
292
297
  var Qe = D("<textarea></textarea>"), We = D('<main><div class="Editor"><!></div> <!></main>');
293
- function $e(e, a) {
294
- ae(a, !1);
295
- let t = k(a, "value", 12, ""), r = k(a, "buttons", 28, () => []), n = k(a, "html", 12, !0);
298
+ function $e(e, t) {
299
+ te(t, !1);
300
+ let r = k(t, "value", 12, ""), a = k(t, "buttons", 28, () => []), n = k(t, "html", 12, !0);
296
301
  function i() {
297
302
  n() || n(!0);
298
303
  }
299
- function u() {
300
- n() && (t(t().replace(/<[^>]*>?/gm, "")), n(!1));
304
+ function f() {
305
+ n() && (r(r().replace(/<[^>]*>?/gm, "")), n(!1));
301
306
  }
302
- te();
303
- var d = We(), c = R(d), h = R(c);
307
+ re();
308
+ var _ = We(), c = R(_), h = R(c);
304
309
  {
305
- var l = (f) => {
306
- Se(f, {
310
+ var l = (u) => {
311
+ Se(u, {
307
312
  get value() {
308
- return t();
313
+ return r();
309
314
  },
310
315
  set value(o) {
311
- t(o);
316
+ r(o);
312
317
  },
313
318
  $$legacy: !0
314
319
  });
315
- }, v = (f) => {
320
+ }, v = (u) => {
316
321
  var o = Qe();
317
- De(o), ze(o, t), C(f, o);
322
+ De(o), ze(o, r), C(u, o);
318
323
  };
319
- Le(h, (f) => {
320
- n() ? f(l) : f(v, !1);
324
+ Le(h, (u) => {
325
+ n() ? u(l) : u(v, !1);
321
326
  });
322
327
  }
323
328
  S(c);
324
329
  var s = K(c, 2);
325
330
  return le(s, {
326
331
  get buttons() {
327
- return r();
332
+ return a();
328
333
  },
329
- set buttons(f) {
330
- r(f);
334
+ set buttons(u) {
335
+ a(u);
331
336
  },
332
- $$events: { html: i, plain: u },
337
+ $$events: { html: i, plain: f },
333
338
  $$legacy: !0
334
- }), S(d), C(e, d), re({
339
+ }), S(_), C(e, _), ae({
335
340
  get value() {
336
- return t();
341
+ return r();
337
342
  },
338
- set value(f) {
339
- t(f), w();
343
+ set value(u) {
344
+ r(u), w();
340
345
  },
341
346
  get buttons() {
342
- return r();
347
+ return a();
343
348
  },
344
- set buttons(f) {
345
- r(f), w();
349
+ set buttons(u) {
350
+ a(u), w();
346
351
  },
347
352
  get html() {
348
353
  return n();
349
354
  },
350
- set html(f) {
351
- n(f), w();
355
+ set html(u) {
356
+ n(u), w();
352
357
  }
353
358
  });
354
359
  }
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as c } from "./ckeditor5-CZglviFn.js";
2
2
  function g(e, l) {
3
3
  for (var a = 0; a < l.length; a++) {
4
4
  const t = l[a];
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as c } from "./ckeditor5-CZglviFn.js";
2
2
  function g(e, l) {
3
3
  for (var a = 0; a < l.length; a++) {
4
4
  const t = l[a];
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as c } from "./ckeditor5-CZglviFn.js";
2
2
  function g(e, l) {
3
3
  for (var a = 0; a < l.length; a++) {
4
4
  const t = l[a];
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as c } from "./ckeditor5-CZglviFn.js";
2
2
  function g(e, l) {
3
3
  for (var a = 0; a < l.length; a++) {
4
4
  const t = l[a];
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as c } from "./ckeditor5-CZglviFn.js";
2
2
  function g(e, l) {
3
3
  for (var a = 0; a < l.length; a++) {
4
4
  const t = l[a];
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as c } from "./ckeditor5-CZglviFn.js";
2
2
  function d(e, l) {
3
3
  for (var a = 0; a < l.length; a++) {
4
4
  const t = l[a];
@@ -1,4 +1,4 @@
1
- import { g as s } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as s } from "./ckeditor5-CZglviFn.js";
2
2
  function d(a, n) {
3
3
  for (var t = 0; t < n.length; t++) {
4
4
  const e = n[t];
@@ -1,4 +1,4 @@
1
- import { g as u } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as u } from "./ckeditor5-CZglviFn.js";
2
2
  function d(a, l) {
3
3
  for (var e = 0; e < l.length; e++) {
4
4
  const i = l[e];
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as c } from "./ckeditor5-CZglviFn.js";
2
2
  function g(e, l) {
3
3
  for (var a = 0; a < l.length; a++) {
4
4
  const t = l[a];
@@ -1,4 +1,4 @@
1
- import { g as c } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as c } from "./ckeditor5-CZglviFn.js";
2
2
  function g(e, l) {
3
3
  for (var a = 0; a < l.length; a++) {
4
4
  const t = l[a];
@@ -1,4 +1,4 @@
1
- import { g as r } from "./ckeditor5-D7fStb4M.js";
1
+ import { g as r } from "./ckeditor5-CZglviFn.js";
2
2
  function u(a, n) {
3
3
  for (var e = 0; e < n.length; e++) {
4
4
  const i = n[e];