sykpcomposer 1.20.26 → 1.20.27

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.
@@ -1026,9 +1026,9 @@ function yw(c) {
1026
1026
  return c._pendingDecorators = n, n;
1027
1027
  }
1028
1028
  function Fv(c) {
1029
- return c.read(() => Ln().getTextContent());
1029
+ return c.read(() => Dn().getTextContent());
1030
1030
  }
1031
- function Ln() {
1031
+ function Dn() {
1032
1032
  return bw(Da());
1033
1033
  }
1034
1034
  function bw(c) {
@@ -1157,7 +1157,7 @@ function Hv(c, t, n) {
1157
1157
  return c.toLowerCase() === "a" && cd(t, n);
1158
1158
  }
1159
1159
  function ww() {
1160
- const c = Ln();
1160
+ const c = Dn();
1161
1161
  qr(b0(c.select(0, c.getChildrenSize())));
1162
1162
  }
1163
1163
  function bd(c, t) {
@@ -1729,7 +1729,7 @@ const Ka = Object.freeze({}), uy = 30, dy = [["keydown", function(c, t) {
1729
1729
  if (e) {
1730
1730
  if (Tt(n)) {
1731
1731
  const o = n.anchor, r = o.getNode();
1732
- o.type === "element" && o.offset === 0 && n.isCollapsed() && !Vo(r) && Ln().getChildrenSize() === 1 && r.getTopLevelElementOrThrow().isEmpty() && s !== null && n.is(s) ? (e.removeAllRanges(), n.dirty = !0) : c.detail === 3 && !n.isCollapsed() && r !== n.focus.getNode() && (kt(r) ? r.select(0) : r.getParentOrThrow().select(0));
1732
+ o.type === "element" && o.offset === 0 && n.isCollapsed() && !Vo(r) && Dn().getChildrenSize() === 1 && r.getTopLevelElementOrThrow().isEmpty() && s !== null && n.is(s) ? (e.removeAllRanges(), n.dirty = !0) : c.detail === 3 && !n.isCollapsed() && r !== n.focus.getNode() && (kt(r) ? r.select(0) : r.getParentOrThrow().select(0));
1733
1733
  } else if (c.pointerType === "touch") {
1734
1734
  const o = e.anchorNode;
1735
1735
  if (o !== null) {
@@ -1879,7 +1879,7 @@ function Vv(c, t, n) {
1879
1879
  const l = a.anchor, i = l.getNode();
1880
1880
  if (a.isCollapsed()) {
1881
1881
  c.type === "Range" && c.anchorNode === c.focusNode && (a.dirty = !0);
1882
- const d = Rh(t).event, u = d ? d.timeStamp : performance.now(), [f, p, h, m, g] = Mw, v = Ln(), b = t.isComposing() === !1 && v.getTextContent() === "";
1882
+ const d = Rh(t).event, u = d ? d.timeStamp : performance.now(), [f, p, h, m, g] = Mw, v = Dn(), b = t.isComposing() === !1 && v.getTextContent() === "";
1883
1883
  if (u < g + 200 && l.offset === h && l.key === m)
1884
1884
  a.format = f, a.style = p;
1885
1885
  else if (l.type === "text")
@@ -3230,7 +3230,7 @@ class ol {
3230
3230
  insertParagraph() {
3231
3231
  if (this.anchor.key === "root") {
3232
3232
  const r = Nn();
3233
- return Ln().splice(this.anchor.offset, 0, [r]), r.select(), r;
3233
+ return Dn().splice(this.anchor.offset, 0, [r]), r.select(), r;
3234
3234
  }
3235
3235
  const t = xm(this), n = gm(this.anchor.getNode(), jc);
3236
3236
  kt(n) || fn(136);
@@ -3679,7 +3679,7 @@ function ak(c, t, n, e, s, o, r) {
3679
3679
  }
3680
3680
  function fa(c) {
3681
3681
  let t = At() || il();
3682
- t === null && (t = Ln().selectEnd()), t.insertNodes(c);
3682
+ t === null && (t = Dn().selectEnd()), t.insertNodes(c);
3683
3683
  }
3684
3684
  function xm(c) {
3685
3685
  let t = c;
@@ -3696,7 +3696,7 @@ function sk(c, t) {
3696
3696
  const n = c.getParent();
3697
3697
  if (!n) {
3698
3698
  const s = Nn();
3699
- return Ln().append(s), s.select(), [Ln(), 0];
3699
+ return Dn().append(s), s.select(), [Dn(), 0];
3700
3700
  }
3701
3701
  if (Jt(c)) {
3702
3702
  const s = c.splitText(t);
@@ -4349,7 +4349,7 @@ class mu extends Vr {
4349
4349
  return super.append(...t);
4350
4350
  }
4351
4351
  static importJSON(t) {
4352
- const n = Ln();
4352
+ const n = Dn();
4353
4353
  return n.setFormat(t.format), n.setIndent(t.indent), n.setDirection(t.direction), n;
4354
4354
  }
4355
4355
  exportJSON() {
@@ -4393,7 +4393,7 @@ class $h {
4393
4393
  return n._readOnly = !0, n;
4394
4394
  }
4395
4395
  toJSON() {
4396
- return u1(this, () => ({ root: Vw(Ln()) }));
4396
+ return u1(this, () => ({ root: Vw(Dn()) }));
4397
4397
  }
4398
4398
  }
4399
4399
  class A0 extends Vr {
@@ -4604,7 +4604,7 @@ class fk {
4604
4604
  if (l.isEmpty())
4605
4605
  return;
4606
4606
  if (a === "root")
4607
- return void Ln().markDirty();
4607
+ return void Dn().markDirty();
4608
4608
  const i = l._nodeMap;
4609
4609
  for (const [, d] of i)
4610
4610
  d.markDirty();
@@ -4714,7 +4714,7 @@ class fk {
4714
4714
  focus(t, n = {}) {
4715
4715
  const e = this._rootElement;
4716
4716
  e !== null && (e.setAttribute("autocapitalize", "off"), ji(this, () => {
4717
- const s = At(), o = Ln();
4717
+ const s = At(), o = Dn();
4718
4718
  s !== null ? s.dirty = !0 : o.getChildrenSize() !== 0 && (n.defaultSelection === "rootStart" ? o.selectStart() : o.selectEnd());
4719
4719
  }, { onUpdate: () => {
4720
4720
  e.removeAttribute("autocapitalize"), t && t();
@@ -4747,7 +4747,7 @@ function Hh({ initialConfig: c, children: t }) {
4747
4747
  if (h !== null) {
4748
4748
  if (h === void 0)
4749
4749
  p.update(() => {
4750
- const m = Ln();
4750
+ const m = Dn();
4751
4751
  if (m.isEmpty()) {
4752
4752
  const g = Nn();
4753
4753
  m.append(g);
@@ -4767,7 +4767,7 @@ function Hh({ initialConfig: c, children: t }) {
4767
4767
  break;
4768
4768
  case "function":
4769
4769
  p.update(() => {
4770
- Ln().isEmpty() && h(p);
4770
+ Dn().isEmpty() && h(p);
4771
4771
  }, ep);
4772
4772
  }
4773
4773
  }
@@ -5148,7 +5148,7 @@ function P0(c) {
5148
5148
  }
5149
5149
  const or = (c, t) => {
5150
5150
  let n = c;
5151
- for (; n !== Ln() && n != null; ) {
5151
+ for (; n !== Dn() && n != null; ) {
5152
5152
  if (t(n))
5153
5153
  return n;
5154
5154
  n = n.getParent();
@@ -5205,7 +5205,7 @@ function Cl(c) {
5205
5205
  const e = t.getNodes();
5206
5206
  e[e.length - 1].getTopLevelElementOrThrow().insertAfter(c);
5207
5207
  } else
5208
- Ln().append(c);
5208
+ Dn().append(c);
5209
5209
  const n = Nn();
5210
5210
  c.insertAfter(n), n.select();
5211
5211
  }
@@ -10077,7 +10077,7 @@ class cO {
10077
10077
  l !== r && l.remove();
10078
10078
  });
10079
10079
  }
10080
- }), rp(t, this.table, null), qr(null), t.dispatchCommand(Oa, void 0)) : (n.selectPrevious(), n.remove(), Ln().selectStart());
10080
+ }), rp(t, this.table, null), qr(null), t.dispatchCommand(Oa, void 0)) : (n.selectPrevious(), n.remove(), Dn().selectStart());
10081
10081
  });
10082
10082
  }
10083
10083
  }
@@ -11080,7 +11080,7 @@ class Yh extends $0 {
11080
11080
  function _O(c) {
11081
11081
  return new Yh(c);
11082
11082
  }
11083
- const xO = sr.lazy(() => import("./ImageComponent-405c73d2.js"));
11083
+ const xO = sr.lazy(() => import("./ImageComponent-16bdf7f4.js"));
11084
11084
  function wO(c) {
11085
11085
  const t = c;
11086
11086
  if (t.src.startsWith("file:///"))
@@ -11226,7 +11226,7 @@ function ru({
11226
11226
  function Zh(c) {
11227
11227
  return c instanceof vu;
11228
11228
  }
11229
- const SO = sr.lazy(() => import("./InlineImageComponent-44418223.js"));
11229
+ const SO = sr.lazy(() => import("./InlineImageComponent-c8460d23.js"));
11230
11230
  function EO(c) {
11231
11231
  if (c instanceof HTMLImageElement) {
11232
11232
  const { alt: t, src: n, width: e, height: s } = c;
@@ -11862,7 +11862,7 @@ var QS = { exports: {} };
11862
11862
  };
11863
11863
  }
11864
11864
  function hr(He, rt, Et, Ot) {
11865
- var Ht, sn, dn, _n, un, Wn, Dn, Bn = rt && rt.ownerDocument, Xn = rt ? rt.nodeType : 9;
11865
+ var Ht, sn, dn, _n, un, Wn, Ln, Bn = rt && rt.ownerDocument, Xn = rt ? rt.nodeType : 9;
11866
11866
  if (Et = Et || [], typeof He != "string" || !He || Xn !== 1 && Xn !== 9 && Xn !== 11)
11867
11867
  return Et;
11868
11868
  if (!Ot && (Xi(rt), rt = rt || Ae, Ze)) {
@@ -11883,15 +11883,15 @@ var QS = { exports: {} };
11883
11883
  return be.apply(Et, rt.getElementsByClassName(Ht)), Et;
11884
11884
  }
11885
11885
  if (!Qr[He + " "] && (!ct || !ct.test(He))) {
11886
- if (Dn = He, Bn = rt, Xn === 1 && (An.test(He) || kn.test(He))) {
11886
+ if (Ln = He, Bn = rt, Xn === 1 && (An.test(He) || kn.test(He))) {
11887
11887
  for (Bn = Si.test(He) && nc(rt.parentNode) || rt, (Bn != rt || !h.scope) && ((_n = rt.getAttribute("id")) ? _n = y.escapeSelector(_n) : rt.setAttribute("id", _n = $t)), Wn = dl(He), sn = Wn.length; sn--; )
11888
11888
  Wn[sn] = (_n ? "#" + _n : ":scope") + " " + ea(Wn[sn]);
11889
- Dn = Wn.join(",");
11889
+ Ln = Wn.join(",");
11890
11890
  }
11891
11891
  try {
11892
11892
  return be.apply(
11893
11893
  Et,
11894
- Bn.querySelectorAll(Dn)
11894
+ Bn.querySelectorAll(Ln)
11895
11895
  ), Et;
11896
11896
  } catch {
11897
11897
  Qr(He, !0);
@@ -12103,8 +12103,8 @@ var QS = { exports: {} };
12103
12103
  function(un) {
12104
12104
  return !!un.parentNode;
12105
12105
  }
12106
- ) : function(un, Wn, Dn) {
12107
- var Bn, Xn, On, Sr, xo, ho = sn !== dn ? "nextSibling" : "previousSibling", ui = un.parentNode, di = _n && un.nodeName.toLowerCase(), Ci = !Dn && !_n, wo = !1;
12106
+ ) : function(un, Wn, Ln) {
12107
+ var Bn, Xn, On, Sr, xo, ho = sn !== dn ? "nextSibling" : "previousSibling", ui = un.parentNode, di = _n && un.nodeName.toLowerCase(), Ci = !Ln && !_n, wo = !1;
12108
12108
  if (ui) {
12109
12109
  if (sn) {
12110
12110
  for (; ho; ) {
@@ -12144,8 +12144,8 @@ var QS = { exports: {} };
12144
12144
  not: Ei(function(He) {
12145
12145
  var rt = [], Et = [], Ot = ic(He.replace(L, "$1"));
12146
12146
  return Ot[$t] ? Ei(function(Ht, sn, dn, _n) {
12147
- for (var un, Wn = Ot(Ht, null, _n, []), Dn = Ht.length; Dn--; )
12148
- (un = Wn[Dn]) && (Ht[Dn] = !(sn[Dn] = un));
12147
+ for (var un, Wn = Ot(Ht, null, _n, []), Ln = Ht.length; Ln--; )
12148
+ (un = Wn[Ln]) && (Ht[Ln] = !(sn[Ln] = un));
12149
12149
  }) : function(Ht, sn, dn) {
12150
12150
  return rt[0] = Ht, Ot(rt, null, dn, Et), rt[0] = null, !Et.pop();
12151
12151
  };
@@ -12297,19 +12297,19 @@ var QS = { exports: {} };
12297
12297
  var Ot = rt.dir, Ht = rt.next, sn = Ht || Ot, dn = Et && sn === "parentNode", _n = en++;
12298
12298
  return rt.first ? (
12299
12299
  // Check against closest ancestor/preceding element
12300
- function(un, Wn, Dn) {
12300
+ function(un, Wn, Ln) {
12301
12301
  for (; un = un[Ot]; )
12302
12302
  if (un.nodeType === 1 || dn)
12303
- return He(un, Wn, Dn);
12303
+ return He(un, Wn, Ln);
12304
12304
  return !1;
12305
12305
  }
12306
12306
  ) : (
12307
12307
  // Check against all ancestor/preceding elements
12308
- function(un, Wn, Dn) {
12308
+ function(un, Wn, Ln) {
12309
12309
  var Bn, Xn, On = [St, _n];
12310
- if (Dn) {
12310
+ if (Ln) {
12311
12311
  for (; un = un[Ot]; )
12312
- if ((un.nodeType === 1 || dn) && He(un, Wn, Dn))
12312
+ if ((un.nodeType === 1 || dn) && He(un, Wn, Ln))
12313
12313
  return !0;
12314
12314
  } else
12315
12315
  for (; un = un[Ot]; )
@@ -12319,7 +12319,7 @@ var QS = { exports: {} };
12319
12319
  else {
12320
12320
  if ((Bn = Xn[sn]) && Bn[0] === St && Bn[1] === _n)
12321
12321
  return On[2] = Bn[2];
12322
- if (Xn[sn] = On, On[2] = He(un, Wn, Dn))
12322
+ if (Xn[sn] = On, On[2] = He(un, Wn, Ln))
12323
12323
  return !0;
12324
12324
  }
12325
12325
  return !1;
@@ -12346,7 +12346,7 @@ var QS = { exports: {} };
12346
12346
  }
12347
12347
  function oc(He, rt, Et, Ot, Ht, sn) {
12348
12348
  return Ot && !Ot[$t] && (Ot = oc(Ot)), Ht && !Ht[$t] && (Ht = oc(Ht, sn)), Ei(function(dn, _n, un, Wn) {
12349
- var Dn, Bn, Xn, On, Sr = [], xo = [], ho = _n.length, ui = dn || Au(
12349
+ var Ln, Bn, Xn, On, Sr = [], xo = [], ho = _n.length, ui = dn || Au(
12350
12350
  rt || "*",
12351
12351
  un.nodeType ? [un] : un,
12352
12352
  []
@@ -12358,17 +12358,17 @@ var QS = { exports: {} };
12358
12358
  // ...otherwise use results directly
12359
12359
  _n
12360
12360
  ), Et(di, On, un, Wn)) : On = di, Ot)
12361
- for (Dn = fl(On, xo), Ot(Dn, [], un, Wn), Bn = Dn.length; Bn--; )
12362
- (Xn = Dn[Bn]) && (On[xo[Bn]] = !(di[xo[Bn]] = Xn));
12361
+ for (Ln = fl(On, xo), Ot(Ln, [], un, Wn), Bn = Ln.length; Bn--; )
12362
+ (Xn = Ln[Bn]) && (On[xo[Bn]] = !(di[xo[Bn]] = Xn));
12363
12363
  if (dn) {
12364
12364
  if (Ht || He) {
12365
12365
  if (Ht) {
12366
- for (Dn = [], Bn = On.length; Bn--; )
12367
- (Xn = On[Bn]) && Dn.push(di[Bn] = Xn);
12368
- Ht(null, On = [], Dn, Wn);
12366
+ for (Ln = [], Bn = On.length; Bn--; )
12367
+ (Xn = On[Bn]) && Ln.push(di[Bn] = Xn);
12368
+ Ht(null, On = [], Ln, Wn);
12369
12369
  }
12370
12370
  for (Bn = On.length; Bn--; )
12371
- (Xn = On[Bn]) && (Dn = Ht ? l.call(dn, Xn) : Sr[Bn]) > -1 && (dn[Dn] = !(_n[Dn] = Xn));
12371
+ (Xn = On[Bn]) && (Ln = Ht ? l.call(dn, Xn) : Sr[Bn]) > -1 && (dn[Ln] = !(_n[Ln] = Xn));
12372
12372
  }
12373
12373
  } else
12374
12374
  On = fl(
@@ -12381,18 +12381,18 @@ var QS = { exports: {} };
12381
12381
  return Bn === rt;
12382
12382
  }, dn, !0), Wn = bs(function(Bn) {
12383
12383
  return l.call(rt, Bn) > -1;
12384
- }, dn, !0), Dn = [function(Bn, Xn, On) {
12384
+ }, dn, !0), Ln = [function(Bn, Xn, On) {
12385
12385
  var Sr = !sn && (On || Xn != te) || ((rt = Xn).nodeType ? un(Bn, Xn, On) : Wn(Bn, Xn, On));
12386
12386
  return rt = null, Sr;
12387
12387
  }]; _n < Ht; _n++)
12388
12388
  if (Et = Q.relative[He[_n].type])
12389
- Dn = [bs($a(Dn), Et)];
12389
+ Ln = [bs($a(Ln), Et)];
12390
12390
  else {
12391
12391
  if (Et = Q.filter[He[_n].type].apply(null, He[_n].matches), Et[$t]) {
12392
12392
  for (Ot = ++_n; Ot < Ht && !Q.relative[He[Ot].type]; Ot++)
12393
12393
  ;
12394
12394
  return oc(
12395
- _n > 1 && $a(Dn),
12395
+ _n > 1 && $a(Ln),
12396
12396
  _n > 1 && ea(
12397
12397
  // If the preceding token was a descendant combinator, insert an implicit any-element `*`
12398
12398
  He.slice(0, _n - 1).concat({ value: He[_n - 2].type === " " ? "*" : "" })
@@ -12403,23 +12403,23 @@ var QS = { exports: {} };
12403
12403
  Ot < Ht && ea(He)
12404
12404
  );
12405
12405
  }
12406
- Dn.push(Et);
12406
+ Ln.push(Et);
12407
12407
  }
12408
- return $a(Dn);
12408
+ return $a(Ln);
12409
12409
  }
12410
12410
  function hl(He, rt) {
12411
12411
  var Et = rt.length > 0, Ot = He.length > 0, Ht = function(sn, dn, _n, un, Wn) {
12412
- var Dn, Bn, Xn, On = 0, Sr = "0", xo = sn && [], ho = [], ui = te, di = sn || Ot && Q.find.TAG("*", Wn), Ci = St += ui == null ? 1 : Math.random() || 0.1, wo = di.length;
12413
- for (Wn && (te = dn == Ae || dn || Wn); Sr !== wo && (Dn = di[Sr]) != null; Sr++) {
12414
- if (Ot && Dn) {
12415
- for (Bn = 0, !dn && Dn.ownerDocument != Ae && (Xi(Dn), _n = !Ze); Xn = He[Bn++]; )
12416
- if (Xn(Dn, dn || Ae, _n)) {
12417
- be.call(un, Dn);
12412
+ var Ln, Bn, Xn, On = 0, Sr = "0", xo = sn && [], ho = [], ui = te, di = sn || Ot && Q.find.TAG("*", Wn), Ci = St += ui == null ? 1 : Math.random() || 0.1, wo = di.length;
12413
+ for (Wn && (te = dn == Ae || dn || Wn); Sr !== wo && (Ln = di[Sr]) != null; Sr++) {
12414
+ if (Ot && Ln) {
12415
+ for (Bn = 0, !dn && Ln.ownerDocument != Ae && (Xi(Ln), _n = !Ze); Xn = He[Bn++]; )
12416
+ if (Xn(Ln, dn || Ae, _n)) {
12417
+ be.call(un, Ln);
12418
12418
  break;
12419
12419
  }
12420
12420
  Wn && (St = Ci);
12421
12421
  }
12422
- Et && ((Dn = !Xn && Dn) && On--, sn && xo.push(Dn));
12422
+ Et && ((Ln = !Xn && Ln) && On--, sn && xo.push(Ln));
12423
12423
  }
12424
12424
  if (On += Sr, Et && Sr !== On) {
12425
12425
  for (Bn = 0; Xn = rt[Bn++]; )
@@ -12449,9 +12449,9 @@ var QS = { exports: {} };
12449
12449
  return sn;
12450
12450
  }
12451
12451
  function ju(He, rt, Et, Ot) {
12452
- var Ht, sn, dn, _n, un, Wn = typeof He == "function" && He, Dn = !Ot && dl(He = Wn.selector || He);
12453
- if (Et = Et || [], Dn.length === 1) {
12454
- if (sn = Dn[0] = Dn[0].slice(0), sn.length > 2 && (dn = sn[0]).type === "ID" && rt.nodeType === 9 && Ze && Q.relative[sn[1].type]) {
12452
+ var Ht, sn, dn, _n, un, Wn = typeof He == "function" && He, Ln = !Ot && dl(He = Wn.selector || He);
12453
+ if (Et = Et || [], Ln.length === 1) {
12454
+ if (sn = Ln[0] = Ln[0].slice(0), sn.length > 2 && (dn = sn[0]).type === "ID" && rt.nodeType === 9 && Ze && Q.relative[sn[1].type]) {
12455
12455
  if (rt = (Q.find.ID(
12456
12456
  dn.matches[0].replace(li, Qi),
12457
12457
  rt
@@ -12471,7 +12471,7 @@ var QS = { exports: {} };
12471
12471
  break;
12472
12472
  }
12473
12473
  }
12474
- return (Wn || ic(He, Dn))(
12474
+ return (Wn || ic(He, Ln))(
12475
12475
  Ot,
12476
12476
  rt,
12477
12477
  !Ze,
@@ -15207,7 +15207,7 @@ function AO({ nodeKey: c }) {
15207
15207
  if (Oy(a)) {
15208
15208
  const l = a.getPageNo();
15209
15209
  a.remove(), console.log("Deleted Page Break:", l);
15210
- const d = Ln().getChildren();
15210
+ const d = Dn().getChildren();
15211
15211
  for (const u of d)
15212
15212
  if (Oy(u)) {
15213
15213
  const f = u.getPageNo();
@@ -15353,7 +15353,7 @@ function XS(c) {
15353
15353
  function Oy(c) {
15354
15354
  return c instanceof Il;
15355
15355
  }
15356
- const IO = sr.lazy(() => import("./PollComponent-aa3eac49.js"));
15356
+ const IO = sr.lazy(() => import("./PollComponent-fc5561bb.js"));
15357
15357
  function PO() {
15358
15358
  return Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 5);
15359
15359
  }
@@ -15864,7 +15864,7 @@ function oE() {
15864
15864
  o(s), kt(s) && s.getChildren().forEach((r) => t(r, o));
15865
15865
  }, n = () => {
15866
15866
  c.update(() => {
15867
- const s = Ln(), o = [];
15867
+ const s = Dn(), o = [];
15868
15868
  t(s, (a) => {
15869
15869
  Am(a) && o.push(a);
15870
15870
  });
@@ -15890,7 +15890,7 @@ function oE() {
15890
15890
  }, e = () => {
15891
15891
  c.update(() => {
15892
15892
  var v;
15893
- const s = Ln(), o = At(), r = BO(0);
15893
+ const s = Dn(), o = At(), r = BO(0);
15894
15894
  o && o.insertNodes([r]);
15895
15895
  const a = Nn(), l = ar("[?] ");
15896
15896
  a.append(l), s.append(a), r.setContentKey(a.getKey());
@@ -16475,7 +16475,7 @@ function qO({
16475
16475
  }, [e, o]);
16476
16476
  const f = () => {
16477
16477
  c.update(() => {
16478
- const m = Ln().getChildren().filter(pr);
16478
+ const m = Dn().getChildren().filter(pr);
16479
16479
  if (m.length === 0) {
16480
16480
  console.warn("No tables found in the document!");
16481
16481
  return;
@@ -16504,7 +16504,7 @@ function qO({
16504
16504
  if (n) {
16505
16505
  const m = Nn();
16506
16506
  m.setFormat("left");
16507
- const b = Ln().getChildren().filter(pr).length, _ = ch(a || `Table ${h}`, b), E = new mi(
16507
+ const b = Dn().getChildren().filter(pr).length, _ = ch(a || `Table ${h}`, b), E = new mi(
16508
16508
  `Table ${h}:`,
16509
16509
  "black",
16510
16510
  _
@@ -16538,11 +16538,11 @@ function qO({
16538
16538
  }
16539
16539
  }), c.update(() => {
16540
16540
  if (n) {
16541
- const g = Ln().getChildren().filter(pr);
16541
+ const g = Dn().getChildren().filter(pr);
16542
16542
  let v = 1;
16543
16543
  g.forEach((b) => {
16544
16544
  var C;
16545
- const _ = b.getPreviousSibling(), x = Ln().getChildren().filter(pr).length, y = b.__captionId || ch(`Table ${v}`, x), w = b.getNextSibling();
16545
+ const _ = b.getPreviousSibling(), x = Dn().getChildren().filter(pr).length, y = b.__captionId || ch(`Table ${v}`, x), w = b.getNextSibling();
16546
16546
  if (w && Rr(w) && w.getChildren().forEach((O) => {
16547
16547
  O.getTextContent().startsWith("Table") && O.remove();
16548
16548
  }), _ && Rr(_)) {
@@ -16732,7 +16732,7 @@ function J0({ defaultSelection: c }) {
16732
16732
  }, [c, t]), null;
16733
16733
  }
16734
16734
  function V0() {
16735
- return Ln().getTextContent();
16735
+ return Dn().getTextContent();
16736
16736
  }
16737
16737
  function K0(c, t = !0) {
16738
16738
  if (c)
@@ -16743,7 +16743,7 @@ function K0(c, t = !0) {
16743
16743
  function WO(c) {
16744
16744
  if (!K0(c, !1))
16745
16745
  return !1;
16746
- const t = Ln().getChildren(), n = t.length;
16746
+ const t = Dn().getChildren(), n = t.length;
16747
16747
  if (n > 1)
16748
16748
  return !1;
16749
16749
  for (let e = 0; e < n; e++) {
@@ -16963,7 +16963,7 @@ function Y0(c, t) {
16963
16963
  function pE(c, t) {
16964
16964
  if (typeof document > "u" || typeof window > "u" && global.window === void 0)
16965
16965
  throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");
16966
- const n = document.createElement("div"), e = Ln().getChildren();
16966
+ const n = document.createElement("div"), e = Dn().getChildren();
16967
16967
  for (let s = 0; s < e.length; s++)
16968
16968
  hE(c, e[s], n, t);
16969
16969
  return n.innerHTML;
@@ -17141,7 +17141,7 @@ function vE(c, t, n, e = []) {
17141
17141
  return s;
17142
17142
  }
17143
17143
  function nN(c, t) {
17144
- const n = [], e = Ln().getChildren();
17144
+ const n = [], e = Dn().getChildren();
17145
17145
  for (let s = 0; s < e.length; s++)
17146
17146
  vE(c, t, e[s], n);
17147
17147
  return { namespace: c._config.namespace, nodes: n };
@@ -17445,7 +17445,7 @@ function fN(c) {
17445
17445
  } else if (Tt(n)) {
17446
17446
  if (function(s) {
17447
17447
  const o = s.focus;
17448
- return o.key === "root" && o.offset === Ln().getChildrenSize();
17448
+ return o.key === "root" && o.offset === Dn().getChildrenSize();
17449
17449
  }(n))
17450
17450
  return t.preventDefault(), !0;
17451
17451
  const e = Ad(n.focus, !1);
@@ -17973,7 +17973,7 @@ function e_(c, t, n, e) {
17973
17973
  s.onload = () => {
17974
17974
  const o = s.result, a = { altText: c.name, src: o };
17975
17975
  t.update(() => {
17976
- const u = `Figure ${Ln().getChildren().filter(
17976
+ const u = `Figure ${Dn().getChildren().filter(
17977
17977
  (g) => Jt(g) && g.getTextContent().startsWith("Figure")
17978
17978
  ).length + 1}`, f = ar(u);
17979
17979
  f.setStyle(
@@ -17989,7 +17989,7 @@ function e_(c, t, n, e) {
17989
17989
  ), h.append(f, v);
17990
17990
  }
17991
17991
  fa([h]), so(p.getParentOrThrow()) && yy(p, Nn).selectEnd(), n && t.update(() => {
17992
- const v = Ln().getChildren().filter((_) => Rr(_));
17992
+ const v = Dn().getChildren().filter((_) => Rr(_));
17993
17993
  let b = 1;
17994
17994
  v.forEach((_) => {
17995
17995
  const E = _.getChildren().find(
@@ -18103,7 +18103,7 @@ function NE({
18103
18103
  i.append(l, d), fa([i]), so(l.getParentOrThrow()) && yy(l, Nn).selectEnd();
18104
18104
  }
18105
18105
  return n.update(() => {
18106
- const i = Ln().getChildren().filter(Rr);
18106
+ const i = Dn().getChildren().filter(Rr);
18107
18107
  let d = 1;
18108
18108
  i.forEach((u) => {
18109
18109
  const f = u.getChildren().find((b) => b.getTextContent().startsWith("Figure"));
@@ -18784,7 +18784,7 @@ function tA({
18784
18784
  const A = dO(T);
18785
18785
  A !== null && A.clearHighlight(), N.markDirty(), i(l.getLatest());
18786
18786
  }
18787
- Ln().selectStart();
18787
+ Dn().selectStart();
18788
18788
  });
18789
18789
  }, [r, l]), _ = () => {
18790
18790
  r.update(() => {
@@ -19510,8 +19510,8 @@ function lA(c) {
19510
19510
  let t = 1;
19511
19511
  (() => {
19512
19512
  c.update(() => {
19513
- Ln().getChildren().forEach(() => {
19514
- Ln().getChildren().filter((a) => {
19513
+ Dn().getChildren().forEach(() => {
19514
+ Dn().getChildren().filter((a) => {
19515
19515
  Oy(a) && (t = a.__pageNumber);
19516
19516
  });
19517
19517
  }), console.log("page0", t + 1);
@@ -20011,7 +20011,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
20011
20011
  const [C] = Tn(), O = (B, R) => {
20012
20012
  C.update(() => {
20013
20013
  const L = Nn(), N = ar(`${B}`);
20014
- N.setStyle(R.style), N.setFormat(R.format), L.append(N), C.getRootElement() && B && B.length > 0 && (C.getEditorState().read(() => Ln()), Cl(L));
20014
+ N.setStyle(R.style), N.setFormat(R.format), L.append(N), C.getRootElement() && B && B.length > 0 && (C.getEditorState().read(() => Dn()), Cl(L));
20015
20015
  });
20016
20016
  }, F = () => {
20017
20017
  let B = y(a);
@@ -20057,7 +20057,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
20057
20057
  setTimeout(() => {
20058
20058
  u.update(() => {
20059
20059
  const D = L.src, j = L.textContent, M = ru({ src: D, altText: j });
20060
- Ln(), Cl(M);
20060
+ Dn(), Cl(M);
20061
20061
  });
20062
20062
  }, A);
20063
20063
  });
@@ -20085,7 +20085,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
20085
20085
  const Z = Nn();
20086
20086
  Z.append(U), M.append(Z), D.append(M);
20087
20087
  }), N.append(D);
20088
- }), Ln() && Cl(N);
20088
+ }), Dn() && Cl(N);
20089
20089
  });
20090
20090
  }, L);
20091
20091
  }
@@ -20127,7 +20127,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
20127
20127
  };
20128
20128
  }).map((ee) => ee.style).filter((ee) => ee).map((ee) => ee.split(";").map((oe) => oe.trim()).filter((oe) => !oe.startsWith("font-family")).filter((oe) => !oe.startsWith("font-size")).filter((oe) => !oe.startsWith("border")).filter((oe) => !oe.startsWith("width")).join("; ")).join("; ");
20129
20129
  const Z = b(Y, "font-weight"), X = b(Y, "font-style"), G = b(Y, "text-decoration");
20130
- Y = `${Y}; font-weight: ${Z}`, Y = `${Y}; font-style: ${X}`, Y = `${Y}; color: black`, Y = `${Y}; text-decoration: ${G}`, Y && q.setStyle(Y), I.append(q), K.append(I), Ln(), Cl(K);
20130
+ Y = `${Y}; font-weight: ${Z}`, Y = `${Y}; font-style: ${X}`, Y = `${Y}; color: black`, Y = `${Y}; text-decoration: ${G}`, Y && q.setStyle(Y), I.append(q), K.append(I), Dn(), Cl(K);
20131
20131
  });
20132
20132
  }, V);
20133
20133
  }), B.querySelectorAll("ol").forEach(($) => {
@@ -20145,7 +20145,7 @@ const _A = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
20145
20145
  const Z = b(Y, "font-weight"), X = b(Y, "font-style"), G = b(Y, "text-decoration");
20146
20146
  Y = `${Y}; font-weight: ${Z}`, Y = `${Y}; font-style: ${X}`, Y = `${Y}; color: black`, Y = `${Y}; text-decoration: ${G}`;
20147
20147
  let ee = S(X, Z, G);
20148
- q.setFormat(ee), Y && q.setStyle(Y), I.append(q), K.append(I), Ln(), Cl(K);
20148
+ q.setFormat(ee), Y && q.setStyle(Y), I.append(q), K.append(I), Dn(), Cl(K);
20149
20149
  });
20150
20150
  }, V);
20151
20151
  }), B.querySelectorAll("table").forEach(($) => {
@@ -20997,7 +20997,7 @@ function JE({ onClear: c }) {
20997
20997
  const [t] = Tn();
20998
20998
  return MA(() => t.registerCommand(Ah, (n) => (t.update(() => {
20999
20999
  if (c == null) {
21000
- const e = Ln(), s = At(), o = Nn();
21000
+ const e = Dn(), s = At(), o = Nn();
21001
21001
  e.clear(), e.append(o), s !== null && o.select(), Tt(s) && (s.format = 0);
21002
21002
  } else
21003
21003
  c();
@@ -36207,7 +36207,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
36207
36207
  }
36208
36208
  else
36209
36209
  rr = null;
36210
- hn !== null && Dn(yn, on, hn, rr, !1), En !== null && Pn !== null && Dn(yn, Pn, En, rr, !0);
36210
+ hn !== null && Ln(yn, on, hn, rr, !1), En !== null && Pn !== null && Ln(yn, Pn, En, rr, !0);
36211
36211
  }
36212
36212
  switch ((hn = (on = Ct ? sc(Ct) : window).nodeName && on.nodeName.toLowerCase()) === "select" || hn === "input" && on.type === "file" ? cn = Qi : lr(on) ? bf ? cn = ms : (cn = tc, Qn = hr) : !(hn = on.nodeName) || hn.toLowerCase() !== "input" || on.type !== "checkbox" && on.type !== "radio" || (cn = Ei), (cn = cn && cn(k, Ct)) ? wr(yn, cn, J, Dt) : (Qn && Qn(k, on, Ct), k === "focusout" && (Qn = on._wrapperState) && Qn.controlled && on.type === "number" && ce(on, "number", on.value)), Qn = Ct ? sc(Ct) : window, k) {
36213
36213
  case "focusin":
@@ -36309,7 +36309,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " "));
36309
36309
  ;
36310
36310
  return k || null;
36311
36311
  }
36312
- function Dn(k, P, J, re, ie) {
36312
+ function Ln(k, P, J, re, ie) {
36313
36313
  for (var pe = P._reactName, ve = []; J !== null && J !== re; ) {
36314
36314
  var Fe = J, Me = Fe.alternate, at = Fe.stateNode;
36315
36315
  if (Me !== null && Me === re)
@@ -54608,7 +54608,7 @@ var VA = (c) => {
54608
54608
  var t = {};
54609
54609
  return In.d(t, c), t;
54610
54610
  };
54611
- const Bt = VA({ $addUpdateTag: () => BT, $createNodeSelection: () => Xp, $createParagraphNode: () => Nn, $createRangeSelection: () => hu, $getEditor: () => VT, $getNodeByKey: () => er, $getRoot: () => Ln, $getSelection: () => At, $isDecoratorNode: () => _r, $isElementNode: () => kt, $isLineBreakNode: () => ja, $isNodeSelection: () => io, $isParagraphNode: () => Rr, $isRangeSelection: () => Tt, $isTextNode: () => Jt, $nodesOfType: () => Sw, $setSelection: () => qr, CAN_REDO_COMMAND: () => Jc, CAN_UNDO_COMMAND: () => Vc, CLEAR_EDITOR_COMMAND: () => Ah, COMMAND_PRIORITY_CRITICAL: () => Jo, COMMAND_PRIORITY_EDITOR: () => jn, CUT_COMMAND: () => Xd, DecoratorNode: () => ls, ElementNode: () => Vr, KEY_BACKSPACE_COMMAND: () => tl, KEY_DELETE_COMMAND: () => nl, KEY_ESCAPE_COMMAND: () => Zl, LineBreakNode: () => fu, PASTE_COMMAND: () => el, ParagraphNode: () => al, REDO_COMMAND: () => Gd, RootNode: () => mu, TextNode: () => ao, UNDO_COMMAND: () => Kd, createCommand: () => Ao, createEditor: () => Uh });
54611
+ const Bt = VA({ $addUpdateTag: () => BT, $createNodeSelection: () => Xp, $createParagraphNode: () => Nn, $createRangeSelection: () => hu, $getEditor: () => VT, $getNodeByKey: () => er, $getRoot: () => Dn, $getSelection: () => At, $isDecoratorNode: () => _r, $isElementNode: () => kt, $isLineBreakNode: () => ja, $isNodeSelection: () => io, $isParagraphNode: () => Rr, $isRangeSelection: () => Tt, $isTextNode: () => Jt, $nodesOfType: () => Sw, $setSelection: () => qr, CAN_REDO_COMMAND: () => Jc, CAN_UNDO_COMMAND: () => Vc, CLEAR_EDITOR_COMMAND: () => Ah, COMMAND_PRIORITY_CRITICAL: () => Jo, COMMAND_PRIORITY_EDITOR: () => jn, CUT_COMMAND: () => Xd, DecoratorNode: () => ls, ElementNode: () => Vr, KEY_BACKSPACE_COMMAND: () => tl, KEY_DELETE_COMMAND: () => nl, KEY_ESCAPE_COMMAND: () => Zl, LineBreakNode: () => fu, PASTE_COMMAND: () => el, ParagraphNode: () => al, REDO_COMMAND: () => Gd, RootNode: () => mu, TextNode: () => ao, UNDO_COMMAND: () => Kd, createCommand: () => Ao, createEditor: () => Uh });
54612
54612
  var KA = (c) => {
54613
54613
  var t = {};
54614
54614
  return In.d(t, c), t;
@@ -60032,7 +60032,7 @@ const NC = ({ styleConfig: c }) => {
60032
60032
  }
60033
60033
  const p = () => {
60034
60034
  o.update(() => {
60035
- const h = Ln(), m = [], g = [];
60035
+ const h = Dn(), m = [], g = [];
60036
60036
  f(h, o, m, g, s, /* @__PURE__ */ new Set()), a(g), t(m);
60037
60037
  });
60038
60038
  };
@@ -60225,7 +60225,7 @@ const PC = () => {
60225
60225
  const o = s.getAttribute("id");
60226
60226
  if (o) {
60227
60227
  const r = document.querySelector(`[data-ref-id="ref-${o}"]`), a = (r == null ? void 0 : r.textContent) || "";
60228
- s.textContent !== a && (s.textContent = a);
60228
+ s.textContent !== a && (Dn(), s.textContent = a);
60229
60229
  }
60230
60230
  });
60231
60231
  }, n = c.registerUpdateListener(() => {
@@ -60448,7 +60448,7 @@ function MC() {
60448
60448
  return;
60449
60449
  }
60450
60450
  c.getEditorState().read(() => {
60451
- const C = Ln(), O = m(C), F = [], B = e.toLowerCase();
60451
+ const C = Dn(), O = m(C), F = [], B = e.toLowerCase();
60452
60452
  O.forEach((R) => {
60453
60453
  const N = R.getTextContent().toLowerCase();
60454
60454
  let T = 0;
@@ -60480,7 +60480,7 @@ function MC() {
60480
60480
  C.getChildren && typeof C.getChildren == "function" && C.getChildren().forEach((O) => b(O));
60481
60481
  }, _ = () => {
60482
60482
  c.update(() => {
60483
- const C = Ln();
60483
+ const C = Dn();
60484
60484
  b(C);
60485
60485
  }), setTimeout(() => {
60486
60486
  g();
@@ -66341,7 +66341,7 @@ function t3({ htmlString: c, wpAndTaskId: t }) {
66341
66341
  const [n] = Tn();
66342
66342
  return Ut(() => {
66343
66343
  !c || !t || n.update(() => {
66344
- const s = Ln().getChildren().filter(Rr);
66344
+ const s = Dn().getChildren().filter(Rr);
66345
66345
  s.forEach((o, r) => {
66346
66346
  var h;
66347
66347
  const a = o.getChildren().find(Zh);
@@ -66378,7 +66378,7 @@ function n3({
66378
66378
  const [t] = Tn();
66379
66379
  return Ut(() => {
66380
66380
  c && t.update(() => {
66381
- const e = Ln().getChildren().filter(pr);
66381
+ const e = Dn().getChildren().filter(pr);
66382
66382
  console.log("captionId", e), e.forEach((s, o) => {
66383
66383
  const r = s.getPreviousSibling();
66384
66384
  if (r && Rr(r)) {
@@ -66432,7 +66432,7 @@ function r3({ setEditorEditable: c, htmlString: t, isEditable: n, setIsexistingI
66432
66432
  }
66433
66433
  }
66434
66434
  }
66435
- }), Ln().clear();
66435
+ }), Dn().clear();
66436
66436
  const d = Nn();
66437
66437
  fa(l), fa([d]), s.setEditable(!1), setTimeout(() => {
66438
66438
  s.setEditable(n), c(!0);
@@ -67304,7 +67304,7 @@ function I3({ htmlString: c, wpAndTaskId: t }) {
67304
67304
  const [n] = Tn();
67305
67305
  return Ut(() => {
67306
67306
  !c || !t || n.update(() => {
67307
- const s = Ln().getChildren().filter(Rr);
67307
+ const s = Dn().getChildren().filter(Rr);
67308
67308
  s.forEach((o, r) => {
67309
67309
  var h;
67310
67310
  const a = o.getChildren().find(Zh);
@@ -67341,7 +67341,7 @@ function P3({
67341
67341
  const [t] = Tn();
67342
67342
  return Ut(() => {
67343
67343
  c && t.update(() => {
67344
- const e = Ln().getChildren().filter(pr);
67344
+ const e = Dn().getChildren().filter(pr);
67345
67345
  console.log("captionId", e), e.forEach((s, o) => {
67346
67346
  const r = s.getPreviousSibling();
67347
67347
  if (r && Rr(r)) {
@@ -67502,7 +67502,7 @@ function q3({
67502
67502
  Oe.update(() => {
67503
67503
  const Je = new DOMParser(), ot = UE(c), tt = Je.parseFromString(ot, "text/html");
67504
67504
  let it = Y0(Oe, tt);
67505
- Ln().clear();
67505
+ Dn().clear();
67506
67506
  const We = Nn();
67507
67507
  fa(it), fa([We]), Oe.setEditable(b), setTimeout(() => {
67508
67508
  Oe.setEditable(b), De(!0);
@@ -67712,4 +67712,4 @@ export {
67712
67712
  Xl as y,
67713
67713
  F3 as z
67714
67714
  };
67715
- //# sourceMappingURL=index-a37bf301.js.map
67715
+ //# sourceMappingURL=index-56d5a20d.js.map