golden-logic-ui 1.0.611 → 1.0.612

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.
@@ -792,7 +792,7 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
792
792
  let Qt = m.value.findIndex((Oe) => Oe.id === Kt.id);
793
793
  Qt !== -1 ? m.value.splice(Qt, 1) : m.value.push(Kt), P.value = !1, w.value = m.value.map((Oe) => Oe.id), c("update:modelValue", w.value), c("selected", m.value), c("selectionChanged", m.value);
794
794
  }
795
- function ro() {
795
+ function to() {
796
796
  if (!i.show) {
797
797
  if (P.value) {
798
798
  P.value = !1;
@@ -881,7 +881,7 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
881
881
  Z("div", Ale, [
882
882
  Z("div", {
883
883
  class: "flex flex-wrap gap-2 pr-2 gl-multi-dropdown showOptions",
884
- onClick: Qt[0] || (Qt[0] = (qt) => ro())
884
+ onClick: Qt[0] || (Qt[0] = (qt) => to())
885
885
  }, [
886
886
  (Ce(!0), Ae(Qo, null, Hr(m.value, (qt, rt) => (Ce(), Ae("span", {
887
887
  key: rt,
@@ -911,7 +911,7 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
911
911
  ]))), 128))
912
912
  ]),
913
913
  Z("i", {
914
- onClick: Qt[1] || (Qt[1] = ma((qt) => ro(), ["stop"])),
914
+ onClick: Qt[1] || (Qt[1] = ma((qt) => to(), ["stop"])),
915
915
  class: "absolute text-xl text-gray-500 cursor-pointer fas ltr:right-2 rtl:left-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions",
916
916
  style: { top: "13px" }
917
917
  }, [
@@ -3263,7 +3263,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
3263
3263
  const K = ((rt = De.value) == null ? void 0 : rt.scrollHeight) || 0;
3264
3264
  Y.value.push(...pt), R.value--, await HR(), De.value.scrollTop += De.value.scrollHeight - K;
3265
3265
  }
3266
- F.value || (F.value = Ue.last_page), H.value || (H.value = 1), h.value = ro();
3266
+ F.value || (F.value = Ue.last_page), H.value || (H.value = 1), h.value = to();
3267
3267
  } catch (sn) {
3268
3268
  console.error("Error fetching data:", sn);
3269
3269
  }
@@ -3348,7 +3348,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
3348
3348
  function Q() {
3349
3349
  return i.options.map((Oe, st) => typeof Oe == "object" ? Oe : { id: Oe, name: Oe });
3350
3350
  }
3351
- function ro() {
3351
+ function to() {
3352
3352
  return cn(h.value) ? typeof h.value == "object" ? Y.value.find(
3353
3353
  (Oe) => String(Oe.id) === String(h.value.id)
3354
3354
  ) || {} : Y.value.find(
@@ -3375,13 +3375,13 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
3375
3375
  }), Lu(
3376
3376
  () => i.modelValue,
3377
3377
  (Oe) => {
3378
- Oe ? (h.value = i.modelValue, i.api_url ? Y.value.length === 0 && le("down", h.value) : h.value = ro()) : h.value = {};
3378
+ Oe ? (h.value = i.modelValue, i.api_url && Y.value.length === 0 ? le("down", h.value) : h.value = to()) : h.value = {};
3379
3379
  },
3380
3380
  { immediate: !0, deep: !0 }
3381
3381
  ), Lu(
3382
3382
  () => i.options,
3383
3383
  () => {
3384
- i.api_url || (Y.value = Q()), h.value = ro();
3384
+ i.api_url || (Y.value = Q()), h.value = to();
3385
3385
  },
3386
3386
  { immediate: !0, deep: !0 }
3387
3387
  ), (Oe, st) => {
@@ -3757,7 +3757,7 @@ function rhe() {
3757
3757
  }
3758
3758
  return !1;
3759
3759
  }, kt = () => {
3760
- }, Q = (e, n) => (...s) => e(n.apply(null, s)), ro = (e, n) => (s) => e(n(s)), Lt = (e) => () => e, Kt = (e) => e, Qt = (e, n) => e === n;
3760
+ }, Q = (e, n) => (...s) => e(n.apply(null, s)), to = (e, n) => (s) => e(n(s)), Lt = (e) => () => e, Kt = (e) => e, Qt = (e, n) => e === n;
3761
3761
  function Oe(e, ...n) {
3762
3762
  return (...s) => {
3763
3763
  const a = n.concat(s);
@@ -4483,7 +4483,7 @@ function rhe() {
4483
4483
  if (n == null || n.ownerDocument === null)
4484
4484
  return !1;
4485
4485
  const s = n.ownerDocument;
4486
- return Um(Be.fromDom(n)).fold(() => s.body.contains(n), ro(ru, e0));
4486
+ return Um(Be.fromDom(n)).fold(() => s.body.contains(n), to(ru, e0));
4487
4487
  };
4488
4488
  var Zg = (e, n, s, a, d) => e(s, a) ? K.some(s) : ye(d) && d(s) ? K.none() : n(s, a, d);
4489
4489
  const Qc = (e, n, s) => {
@@ -4625,11 +4625,11 @@ function rhe() {
4625
4625
  }), Fe = $e, Vt = (e) => {
4626
4626
  const n = e.getBoundingClientRect();
4627
4627
  return Fe(n.left, n.top);
4628
- }, to = (e, n) => e !== void 0 ? e : n !== void 0 ? n : 0, Ro = (e) => {
4628
+ }, no = (e, n) => e !== void 0 ? e : n !== void 0 ? n : 0, Ro = (e) => {
4629
4629
  const n = e.dom.ownerDocument, s = n.body, a = n.defaultView, d = n.documentElement;
4630
4630
  if (s === e.dom)
4631
4631
  return Fe(s.offsetLeft, s.offsetTop);
4632
- const p = to(a == null ? void 0 : a.pageYOffset, d.scrollTop), y = to(a == null ? void 0 : a.pageXOffset, d.scrollLeft), C = to(d.clientTop, s.clientTop), $ = to(d.clientLeft, s.clientLeft);
4632
+ const p = no(a == null ? void 0 : a.pageYOffset, d.scrollTop), y = no(a == null ? void 0 : a.pageXOffset, d.scrollLeft), C = no(d.clientTop, s.clientTop), $ = no(d.clientLeft, s.clientLeft);
4633
4633
  return $o(e).translate(y - $, p - C);
4634
4634
  }, $o = (e) => {
4635
4635
  const n = e.dom, a = n.ownerDocument.body;
@@ -8884,7 +8884,7 @@ Required: ` + n.join(", "));
8884
8884
  return;
8885
8885
  }
8886
8886
  e.inline || (co.browser.isOpera() || ue(s), e.getWin().focus()), (co.browser.isFirefox() || e.inline) && (ue(s), ie(e, a)), zt(e);
8887
- }, zt = (e) => e.editorManager.setActive(e), no = (e, n) => {
8887
+ }, zt = (e) => e.editorManager.setActive(e), oo = (e, n) => {
8888
8888
  e.removed || (n ? zt(e) : Mn(e));
8889
8889
  }, Mt = {
8890
8890
  BACKSPACE: 8,
@@ -11835,13 +11835,13 @@ Required: ` + n.join(", "));
11835
11835
  rd && rd(mt), Pu = mt;
11836
11836
  }
11837
11837
  }, ln = Pr({}, ["mi", "mo", "mn", "ms", "mtext"]), on = Pr({}, ["annotation-xml"]), ho = Pr({}, ["title", "style", "font", "a", "script"]), Ms = Pr({}, [...R$, ...M$, ...GV]), Ci = Pr({}, [...B$, ...Y6]), Dm = function(mt) {
11838
- let oo = Ge(mt);
11839
- (!oo || !oo.tagName) && (oo = {
11838
+ let so = Ge(mt);
11839
+ (!so || !so.tagName) && (so = {
11840
11840
  namespaceURI: T1,
11841
11841
  tagName: "template"
11842
11842
  });
11843
- const Yo = nO(mt.tagName), fa = nO(oo.tagName);
11844
- return $O[mt.namespaceURI] ? mt.namespaceURI === C1 ? oo.namespaceURI === Bh ? Yo === "svg" : oo.namespaceURI === EO ? Yo === "svg" && (fa === "annotation-xml" || ln[fa]) : !!Ms[Yo] : mt.namespaceURI === EO ? oo.namespaceURI === Bh ? Yo === "math" : oo.namespaceURI === C1 ? Yo === "math" && on[fa] : !!Ci[Yo] : mt.namespaceURI === Bh ? oo.namespaceURI === C1 && !on[fa] || oo.namespaceURI === EO && !ln[fa] ? !1 : !Ci[Yo] && (ho[Yo] || !Ms[Yo]) : !!(PO === "application/xhtml+xml" && $O[mt.namespaceURI]) : !1;
11843
+ const Yo = nO(mt.tagName), fa = nO(so.tagName);
11844
+ return $O[mt.namespaceURI] ? mt.namespaceURI === C1 ? so.namespaceURI === Bh ? Yo === "svg" : so.namespaceURI === EO ? Yo === "svg" && (fa === "annotation-xml" || ln[fa]) : !!Ms[Yo] : mt.namespaceURI === EO ? so.namespaceURI === Bh ? Yo === "math" : so.namespaceURI === C1 ? Yo === "math" && on[fa] : !!Ci[Yo] : mt.namespaceURI === Bh ? so.namespaceURI === C1 && !on[fa] || so.namespaceURI === EO && !ln[fa] ? !1 : !Ci[Yo] && (ho[Yo] || !Ms[Yo]) : !!(PO === "application/xhtml+xml" && $O[mt.namespaceURI]) : !1;
11845
11845
  }, Bf = function(mt) {
11846
11846
  Ty(n.removed, {
11847
11847
  element: mt
@@ -11851,31 +11851,31 @@ Required: ` + n.join(", "));
11851
11851
  } catch {
11852
11852
  ve(mt);
11853
11853
  }
11854
- }, ZS = function(mt, oo) {
11854
+ }, ZS = function(mt, so) {
11855
11855
  try {
11856
11856
  Ty(n.removed, {
11857
- attribute: oo.getAttributeNode(mt),
11858
- from: oo
11857
+ attribute: so.getAttributeNode(mt),
11858
+ from: so
11859
11859
  });
11860
11860
  } catch {
11861
11861
  Ty(n.removed, {
11862
11862
  attribute: null,
11863
- from: oo
11863
+ from: so
11864
11864
  });
11865
11865
  }
11866
- if (oo.removeAttribute(mt), mt === "is" && !xn[mt])
11866
+ if (so.removeAttribute(mt), mt === "is" && !xn[mt])
11867
11867
  if (ic || $u)
11868
11868
  try {
11869
- Bf(oo);
11869
+ Bf(so);
11870
11870
  } catch {
11871
11871
  }
11872
11872
  else
11873
11873
  try {
11874
- oo.setAttribute(mt, "");
11874
+ so.setAttribute(mt, "");
11875
11875
  } catch {
11876
11876
  }
11877
11877
  }, pR = function(mt) {
11878
- let oo = null, Yo = null;
11878
+ let so = null, Yo = null;
11879
11879
  if (Rf)
11880
11880
  mt = "<remove></remove>" + mt;
11881
11881
  else {
@@ -11886,18 +11886,18 @@ Required: ` + n.join(", "));
11886
11886
  const fa = it ? it.createHTML(mt) : mt;
11887
11887
  if (T1 === Bh)
11888
11888
  try {
11889
- oo = new G().parseFromString(fa, PO);
11889
+ so = new G().parseFromString(fa, PO);
11890
11890
  } catch {
11891
11891
  }
11892
- if (!oo || !oo.documentElement) {
11893
- oo = nn.createDocument(T1, "template", null);
11892
+ if (!so || !so.documentElement) {
11893
+ so = nn.createDocument(T1, "template", null);
11894
11894
  try {
11895
- oo.documentElement.innerHTML = QS ? It : fa;
11895
+ so.documentElement.innerHTML = QS ? It : fa;
11896
11896
  } catch {
11897
11897
  }
11898
11898
  }
11899
- const Au = oo.body || oo.documentElement;
11900
- return mt && Yo && Au.insertBefore(s.createTextNode(Yo), Au.childNodes[0] || null), T1 === Bh ? vt.call(oo, $l ? "html" : "body")[0] : $l ? oo.documentElement : Au;
11899
+ const Au = so.body || so.documentElement;
11900
+ return mt && Yo && Au.insertBefore(s.createTextNode(Yo), Au.childNodes[0] || null), T1 === Bh ? vt.call(so, $l ? "html" : "body")[0] : $l ? so.documentElement : Au;
11901
11901
  }, MQ = function(mt) {
11902
11902
  return _n.call(
11903
11903
  mt.ownerDocument || mt,
@@ -11910,12 +11910,12 @@ Required: ` + n.join(", "));
11910
11910
  return mt instanceof X && (typeof mt.nodeName != "string" || typeof mt.textContent != "string" || typeof mt.removeChild != "function" || !(mt.attributes instanceof W) || typeof mt.removeAttribute != "function" || typeof mt.setAttribute != "function" || typeof mt.namespaceURI != "string" || typeof mt.insertBefore != "function" || typeof mt.hasChildNodes != "function");
11911
11911
  }, VS = function(mt) {
11912
11912
  return typeof C == "function" && mt instanceof C;
11913
- }, Wp = function(mt, oo, Yo) {
11913
+ }, Wp = function(mt, so, Yo) {
11914
11914
  hn[mt] && Cy(hn[mt], (fa) => {
11915
- fa.call(n, oo, Yo, Pu);
11915
+ fa.call(n, so, Yo, Pu);
11916
11916
  });
11917
11917
  }, OR = function(mt) {
11918
- let oo = null;
11918
+ let so = null;
11919
11919
  if (Wp("beforeSanitizeElements", mt, null), bR(mt))
11920
11920
  return Bf(mt), !0;
11921
11921
  const Yo = Fl(mt.nodeName);
@@ -11939,28 +11939,28 @@ Required: ` + n.join(", "));
11939
11939
  }
11940
11940
  return Bf(mt), !0;
11941
11941
  }
11942
- return mt instanceof $ && !Dm(mt) || (Yo === "noscript" || Yo === "noembed" || Yo === "noframes") && id(/<\/no(script|embed|frames)/i, mt.innerHTML) ? (Bf(mt), !0) : (_u && mt.nodeType === Qx.text && (oo = mt.textContent, Cy([Yn, ts, ns], (fa) => {
11943
- oo = Nx(oo, fa, " ");
11944
- }), mt.textContent !== oo && (Ty(n.removed, {
11942
+ return mt instanceof $ && !Dm(mt) || (Yo === "noscript" || Yo === "noembed" || Yo === "noframes") && id(/<\/no(script|embed|frames)/i, mt.innerHTML) ? (Bf(mt), !0) : (_u && mt.nodeType === Qx.text && (so = mt.textContent, Cy([Yn, ts, ns], (fa) => {
11943
+ so = Nx(so, fa, " ");
11944
+ }), mt.textContent !== so && (Ty(n.removed, {
11945
11945
  element: mt.cloneNode()
11946
- }), mt.textContent = oo)), Wp("afterSanitizeElements", mt, null), !1);
11947
- }, BQ = function(mt, oo, Yo) {
11948
- if (Cs && (oo === "id" || oo === "name") && (Yo in s || Yo in FS))
11946
+ }), mt.textContent = so)), Wp("afterSanitizeElements", mt, null), !1);
11947
+ }, BQ = function(mt, so, Yo) {
11948
+ if (Cs && (so === "id" || so === "name") && (Yo in s || Yo in FS))
11949
11949
  return !1;
11950
- if (!(_a && !os[oo] && id(Ys, oo))) {
11951
- if (!(jo && id(ir, oo))) {
11952
- if (!xn[oo] || os[oo]) {
11950
+ if (!(_a && !os[so] && id(Ys, so))) {
11951
+ if (!(jo && id(ir, so))) {
11952
+ if (!xn[so] || os[so]) {
11953
11953
  if (
11954
11954
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
11955
11955
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
11956
11956
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
11957
- !(vR(mt) && (po.tagNameCheck instanceof RegExp && id(po.tagNameCheck, mt) || po.tagNameCheck instanceof Function && po.tagNameCheck(mt)) && (po.attributeNameCheck instanceof RegExp && id(po.attributeNameCheck, oo) || po.attributeNameCheck instanceof Function && po.attributeNameCheck(oo)) || // Alternative, second condition checks if it's an `is`-attribute, AND
11957
+ !(vR(mt) && (po.tagNameCheck instanceof RegExp && id(po.tagNameCheck, mt) || po.tagNameCheck instanceof Function && po.tagNameCheck(mt)) && (po.attributeNameCheck instanceof RegExp && id(po.attributeNameCheck, so) || po.attributeNameCheck instanceof Function && po.attributeNameCheck(so)) || // Alternative, second condition checks if it's an `is`-attribute, AND
11958
11958
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
11959
- oo === "is" && po.allowCustomizedBuiltInElements && (po.tagNameCheck instanceof RegExp && id(po.tagNameCheck, Yo) || po.tagNameCheck instanceof Function && po.tagNameCheck(Yo)))
11959
+ so === "is" && po.allowCustomizedBuiltInElements && (po.tagNameCheck instanceof RegExp && id(po.tagNameCheck, Yo) || po.tagNameCheck instanceof Function && po.tagNameCheck(Yo)))
11960
11960
  ) return !1;
11961
- } else if (!Mf[oo]) {
11961
+ } else if (!Mf[so]) {
11962
11962
  if (!id(un, Nx(Yo, Ql, ""))) {
11963
- if (!((oo === "src" || oo === "xlink:href" || oo === "href") && mt !== "script" && WV(Yo, "data:") === 0 && Mh[mt])) {
11963
+ if (!((so === "src" || so === "xlink:href" || so === "href") && mt !== "script" && WV(Yo, "data:") === 0 && Mh[mt])) {
11964
11964
  if (!(br && !id(Ni, Nx(Yo, Ql, "")))) {
11965
11965
  if (Yo)
11966
11966
  return !1;
@@ -11976,9 +11976,9 @@ Required: ` + n.join(", "));
11976
11976
  }, K_ = function(mt) {
11977
11977
  Wp("beforeSanitizeAttributes", mt, null);
11978
11978
  const {
11979
- attributes: oo
11979
+ attributes: so
11980
11980
  } = mt;
11981
- if (!oo)
11981
+ if (!so)
11982
11982
  return;
11983
11983
  const Yo = {
11984
11984
  attrName: "",
@@ -11986,9 +11986,9 @@ Required: ` + n.join(", "));
11986
11986
  keepAttr: !0,
11987
11987
  allowedAttributes: xn
11988
11988
  };
11989
- let fa = oo.length;
11989
+ let fa = so.length;
11990
11990
  for (; fa--; ) {
11991
- const Au = oo[fa], {
11991
+ const Au = so[fa], {
11992
11992
  name: Ac,
11993
11993
  namespaceURI: ld,
11994
11994
  value: Rm
@@ -12036,14 +12036,14 @@ Required: ` + n.join(", "));
12036
12036
  }
12037
12037
  Wp("afterSanitizeAttributes", mt, null);
12038
12038
  }, PY = function gs(mt) {
12039
- let oo = null;
12039
+ let so = null;
12040
12040
  const Yo = MQ(mt);
12041
- for (Wp("beforeSanitizeShadowDOM", mt, null); oo = Yo.nextNode(); )
12042
- Wp("uponSanitizeShadowNode", oo, null), !OR(oo) && (oo.content instanceof p && gs(oo.content), K_(oo));
12041
+ for (Wp("beforeSanitizeShadowDOM", mt, null); so = Yo.nextNode(); )
12042
+ Wp("uponSanitizeShadowNode", so, null), !OR(so) && (so.content instanceof p && gs(so.content), K_(so));
12043
12043
  Wp("afterSanitizeShadowDOM", mt, null);
12044
12044
  };
12045
12045
  return n.sanitize = function(gs) {
12046
- let mt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, oo = null, Yo = null, fa = null, Au = null;
12046
+ let mt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, so = null, Yo = null, fa = null, Au = null;
12047
12047
  if (QS = !gs, QS && (gs = "<!-->"), typeof gs != "string" && !VS(gs))
12048
12048
  if (typeof gs.toString == "function") {
12049
12049
  if (gs = gs.toString(), typeof gs != "string")
@@ -12059,30 +12059,30 @@ Required: ` + n.join(", "));
12059
12059
  throw Lx("root node is forbidden and cannot be sanitized in-place");
12060
12060
  }
12061
12061
  } else if (gs instanceof C)
12062
- oo = pR("<!---->"), Yo = oo.ownerDocument.importNode(gs, !0), Yo.nodeType === Qx.element && Yo.nodeName === "BODY" || Yo.nodeName === "HTML" ? oo = Yo : oo.appendChild(Yo);
12062
+ so = pR("<!---->"), Yo = so.ownerDocument.importNode(gs, !0), Yo.nodeType === Qx.element && Yo.nodeName === "BODY" || Yo.nodeName === "HTML" ? so = Yo : so.appendChild(Yo);
12063
12063
  else {
12064
12064
  if (!ic && !_u && !$l && // eslint-disable-next-line unicorn/prefer-includes
12065
12065
  gs.indexOf("<") === -1)
12066
12066
  return it && Gn ? it.createHTML(gs) : gs;
12067
- if (oo = pR(gs), !oo)
12067
+ if (so = pR(gs), !so)
12068
12068
  return ic ? null : Gn ? It : "";
12069
12069
  }
12070
- oo && Rf && Bf(oo.firstChild);
12071
- const Ac = MQ(Ea ? gs : oo);
12070
+ so && Rf && Bf(so.firstChild);
12071
+ const Ac = MQ(Ea ? gs : so);
12072
12072
  for (; fa = Ac.nextNode(); )
12073
12073
  OR(fa) || (fa.content instanceof p && PY(fa.content), K_(fa));
12074
12074
  if (Ea)
12075
12075
  return gs;
12076
12076
  if (ic) {
12077
12077
  if ($u)
12078
- for (Au = Ct.call(oo.ownerDocument); oo.firstChild; )
12079
- Au.appendChild(oo.firstChild);
12078
+ for (Au = Ct.call(so.ownerDocument); so.firstChild; )
12079
+ Au.appendChild(so.firstChild);
12080
12080
  else
12081
- Au = oo;
12081
+ Au = so;
12082
12082
  return (xn.shadowroot || xn.shadowrootmode) && (Au = Ft.call(a, Au, !0)), Au;
12083
12083
  }
12084
- let ld = $l ? oo.outerHTML : oo.innerHTML;
12085
- return $l && qn["!doctype"] && oo.ownerDocument && oo.ownerDocument.doctype && oo.ownerDocument.doctype.name && id(n7, oo.ownerDocument.doctype.name) && (ld = "<!DOCTYPE " + oo.ownerDocument.doctype.name + `>
12084
+ let ld = $l ? so.outerHTML : so.innerHTML;
12085
+ return $l && qn["!doctype"] && so.ownerDocument && so.ownerDocument.doctype && so.ownerDocument.doctype.name && id(n7, so.ownerDocument.doctype.name) && (ld = "<!DOCTYPE " + so.ownerDocument.doctype.name + `>
12086
12086
  ` + ld), _u && Cy([Yn, ts, ns], (Rm) => {
12087
12087
  ld = Nx(ld, Rm, " ");
12088
12088
  }), it && Gn ? it.createHTML(ld) : ld;
@@ -12091,10 +12091,10 @@ Required: ` + n.join(", "));
12091
12091
  ft(gs), Eu = !0;
12092
12092
  }, n.clearConfig = function() {
12093
12093
  Pu = null, Eu = !1;
12094
- }, n.isValidAttribute = function(gs, mt, oo) {
12094
+ }, n.isValidAttribute = function(gs, mt, so) {
12095
12095
  Pu || ft({});
12096
12096
  const Yo = Fl(gs), fa = Fl(mt);
12097
- return BQ(Yo, fa, oo);
12097
+ return BQ(Yo, fa, so);
12098
12098
  }, n.addHook = function(gs, mt) {
12099
12099
  typeof mt == "function" && (hn[gs] = hn[gs] || [], Ty(hn[gs], mt));
12100
12100
  }, n.removeHook = function(gs) {
@@ -19303,7 +19303,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
19303
19303
  }), hQ = (e) => K.from(e.selection.getRng()).bind((n) => {
19304
19304
  const s = e.getBody();
19305
19305
  return n.startContainer === s && n.startOffset === 0 ? K.none() : K.from(e.selection.getStart(!0));
19306
- }), fQ = (e, n) => hQ(e).orThunk(Oe(dQ, e)).map(Be.fromDom).filter(Io).bind(n), sR = (e, n) => fQ(e, ro(K.some, n)), mQ = (e, n) => {
19306
+ }), fQ = (e, n) => hQ(e).orThunk(Oe(dQ, e)).map(Be.fromDom).filter(Io).bind(n), sR = (e, n) => fQ(e, to(K.some, n)), mQ = (e, n) => {
19307
19307
  if (/^[0-9.]+$/.test(n)) {
19308
19308
  const s = parseInt(n, 10);
19309
19309
  if (s >= 1 && s <= 7) {
@@ -19490,7 +19490,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = Lt(AL), OS
19490
19490
  e.getWin().print();
19491
19491
  },
19492
19492
  mceFocus: (n, s, a) => {
19493
- no(e, a === !0);
19493
+ oo(e, a === !0);
19494
19494
  },
19495
19495
  mceToggleVisualAid: () => {
19496
19496
  e.hasVisual = !e.hasVisual, e.addVisual();
@@ -20962,7 +20962,7 @@ function ahe() {
20962
20962
  }
20963
20963
  }
20964
20964
  Q.singletonNone = new Q(!1);
20965
- const ro = Array.prototype.slice, Lt = Array.prototype.indexOf, Kt = Array.prototype.push, Qt = (t, r) => Lt.call(t, r), Oe = (t, r) => {
20965
+ const to = Array.prototype.slice, Lt = Array.prototype.indexOf, Kt = Array.prototype.push, Qt = (t, r) => Lt.call(t, r), Oe = (t, r) => {
20966
20966
  const l = Qt(t, r);
20967
20967
  return l === -1 ? Q.none() : Q.some(l);
20968
20968
  }, st = (t, r) => Qt(t, r) > -1, qt = (t, r) => {
@@ -20980,7 +20980,7 @@ function ahe() {
20980
20980
  }, sn = (t, r) => {
20981
20981
  const l = [];
20982
20982
  for (let f = 0; f < t.length; f += r) {
20983
- const b = ro.call(t, f, f + r);
20983
+ const b = to.call(t, f, f + r);
20984
20984
  l.push(b);
20985
20985
  }
20986
20986
  return l;
@@ -21054,7 +21054,7 @@ function ahe() {
21054
21054
  }
21055
21055
  return !0;
21056
21056
  }, vo = (t) => {
21057
- const r = ro.call(t, 0);
21057
+ const r = to.call(t, 0);
21058
21058
  return r.reverse(), r;
21059
21059
  }, yn = (t, r) => Oo(t, (l) => !st(r, l)), Ps = (t, r) => {
21060
21060
  const l = {};
@@ -21064,9 +21064,9 @@ function ahe() {
21064
21064
  }
21065
21065
  return l;
21066
21066
  }, Co = (t) => [t], ur = (t, r) => {
21067
- const l = ro.call(t, 0);
21067
+ const l = to.call(t, 0);
21068
21068
  return l.sort(r), l;
21069
- }, Ko = (t, r) => r >= 0 && r < t.length ? Q.some(t[r]) : Q.none(), Us = (t) => Ko(t, 0), oa = (t) => Ko(t, t.length - 1), Js = xe(Array.from) ? Array.from : (t) => ro.call(t), ss = (t, r) => {
21069
+ }, Ko = (t, r) => r >= 0 && r < t.length ? Q.some(t[r]) : Q.none(), Us = (t) => Ko(t, 0), oa = (t) => Ko(t, t.length - 1), Js = xe(Array.from) ? Array.from : (t) => to.call(t), ss = (t, r) => {
21070
21070
  for (let l = 0; l < t.length; l++) {
21071
21071
  const f = r(t[l], l);
21072
21072
  if (f.isSome())
@@ -21863,7 +21863,7 @@ function ahe() {
21863
21863
  }), M = (t) => ({
21864
21864
  tag: "mergeWithThunk",
21865
21865
  process: t
21866
- }), U = (t) => M(oe(t)), te = (t, r) => t.length > 0 ? fi.svalue(wr(r, vd.apply(void 0, t))) : fi.svalue(r), $e = (t) => Xt(fi.serror, Ke)(t), to = {
21866
+ }), U = (t) => M(oe(t)), te = (t, r) => t.length > 0 ? fi.svalue(wr(r, vd.apply(void 0, t))) : fi.svalue(r), $e = (t) => Xt(fi.serror, Ke)(t), no = {
21867
21867
  consolidateObj: (t, r) => {
21868
21868
  const l = fi.partition(t);
21869
21869
  return l.errors.length > 0 ? $e(l.errors) : te(l.values, r);
@@ -21948,7 +21948,7 @@ function ahe() {
21948
21948
  }), Zc = (t) => ({
21949
21949
  extract: (f, b) => {
21950
21950
  const x = Ue(b, (S, E) => t.extract(f.concat(["[" + E + "]"]), S));
21951
- return to.consolidateArr(x);
21951
+ return no.consolidateArr(x);
21952
21952
  },
21953
21953
  toString: () => "array(" + t.toString() + ")"
21954
21954
  }), Kh = (t, r) => {
@@ -21965,7 +21965,7 @@ function ahe() {
21965
21965
  };
21966
21966
  E.push(L);
21967
21967
  }
21968
- return to.consolidateArr(E);
21968
+ return no.consolidateArr(E);
21969
21969
  },
21970
21970
  toString: () => "oneOf(" + Ue(t, (x) => x.toString()).join(", ") + ")"
21971
21971
  };
@@ -24835,7 +24835,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
24835
24835
  fields: ie,
24836
24836
  name: "highlighting",
24837
24837
  apis: J
24838
- }), Ie = [8], tt = [9], Zt = [13], bn = [27], Yt = [32], tn = [37], Mn = [38], zt = [39], no = [40], Mt = (t, r, l) => {
24838
+ }), Ie = [8], tt = [9], Zt = [13], bn = [27], Yt = [32], tn = [37], Mn = [38], zt = [39], oo = [40], Mt = (t, r, l) => {
24839
24839
  const f = vo(t.slice(0, r)), b = vo(t.slice(r + 1));
24840
24840
  return Ne(f.concat(b), l);
24841
24841
  }, Cn = (t, r, l) => {
@@ -24981,7 +24981,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
24981
24981
  ot("useControlEnter", !1),
24982
24982
  ot("useDown", !1)
24983
24983
  ], rx = (t, r, l) => l.execute(t, r, t.element), uE = (t, r, l, f) => {
24984
- const b = l.useSpace && !X0(t.element) ? Yt : [], x = l.useEnter ? Zt : [], S = l.useDown ? no : [], E = b.concat(x).concat(S);
24984
+ const b = l.useSpace && !X0(t.element) ? Yt : [], x = l.useEnter ? Zt : [], S = l.useDown ? oo : [], E = b.concat(x).concat(S);
24985
24985
  return [ms(Un(E), rx)].concat(l.useControlEnter ? [ms(pr([
24986
24986
  Og,
24987
24987
  Un(Zt)
@@ -25060,7 +25060,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
25060
25060
  ms(Un(tn), eT(IM, QM)),
25061
25061
  ms(Un(zt), hE(IM, QM)),
25062
25062
  ms(Un(Mn), PM(FM)),
25063
- ms(Un(no), AM(ZM)),
25063
+ ms(Un(oo), AM(ZM)),
25064
25064
  ms(pr([
25065
25065
  Jl,
25066
25066
  Un(tt)
@@ -25101,7 +25101,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
25101
25101
  r.focusManager.set(t, f);
25102
25102
  });
25103
25103
  }, HM = (t, r, l) => (l.cycles ? ux : pE)(t, l.selector, r, -1), UM = (t, r, l) => (l.cycles ? ux : pE)(t, l.selector, r, 1), uy = (t) => (r, l, f, b) => t(r, l, f, b).bind(() => f.executeOnMove ? bE(r, l, f) : Q.some(!0)), WM = (t, r, l) => l.onEscape(t, r), jM = (t, r, l, f) => {
25104
- const b = [...l.allowHorizontal ? tn : []].concat(l.allowVertical ? Mn : []), x = [...l.allowHorizontal ? zt : []].concat(l.allowVertical ? no : []);
25104
+ const b = [...l.allowHorizontal ? tn : []].concat(l.allowVertical ? Mn : []), x = [...l.allowHorizontal ? zt : []].concat(l.allowVertical ? oo : []);
25105
25105
  return [
25106
25106
  ms(Un(b), uy(eT(HM, UM))),
25107
25107
  ms(Un(x), uy(hE(HM, UM))),
@@ -25160,7 +25160,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
25160
25160
  ms(Un(tn), eT(s8, r8)),
25161
25161
  ms(Un(zt), hE(s8, r8)),
25162
25162
  ms(Un(Mn), PM(i8)),
25163
- ms(Un(no), AM(yZ)),
25163
+ ms(Un(oo), AM(yZ)),
25164
25164
  ms(Un(Yt.concat(Zt)), o8)
25165
25165
  ]), a8 = oe([ms(Un(Yt), Sm)]);
25166
25166
  var l8 = Bd(OZ, fh.init, wZ, a8, () => Q.some(n8));
@@ -25174,7 +25174,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
25174
25174
  });
25175
25175
  }, d8 = (t, r, l) => ux(t, l.selector, r, -1), h8 = (t, r, l) => ux(t, l.selector, r, 1), f8 = (t, r, l, f) => l.moveOnTab ? cy(d8)(t, r, l, f) : Q.none(), m8 = (t, r, l, f) => l.moveOnTab ? cy(h8)(t, r, l, f) : Q.none(), K0 = oe([
25176
25176
  ms(Un(Mn), cy(d8)),
25177
- ms(Un(no), cy(h8)),
25177
+ ms(Un(oo), cy(h8)),
25178
25178
  ms(pr([
25179
25179
  Jl,
25180
25180
  Un(tt)
@@ -25219,7 +25219,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
25219
25219
  Un(tt)
25220
25220
  ]), l.onTab),
25221
25221
  ms(Un(Mn), l.onUp),
25222
- ms(Un(no), l.onDown),
25222
+ ms(Un(oo), l.onDown),
25223
25223
  ms(Un(tn), l.onLeft),
25224
25224
  ms(Un(zt), l.onRight),
25225
25225
  ms(Un(Yt), l.onSpace)
@@ -41978,7 +41978,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
41978
41978
  "close",
41979
41979
  "block",
41980
41980
  "unblock"
41981
- ], mt = (t) => T(t) && gs.indexOf(t.mceAction) !== -1, oo = (t) => !mt(t) && T(t) && zo(t, "mceAction"), Yo = (t, r, l) => {
41981
+ ], mt = (t) => T(t) && gs.indexOf(t.mceAction) !== -1, so = (t) => !mt(t) && T(t) && zo(t, "mceAction"), Yo = (t, r, l) => {
41982
41982
  switch (l.mceAction) {
41983
41983
  case "insertContent":
41984
41984
  t.insertContent(l.content);
@@ -42021,7 +42021,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
42021
42021
  const He = Kl(Ot.fromDom(window), "message", (ct) => {
42022
42022
  if (j.isSameOrigin(new K_(ct.raw.origin))) {
42023
42023
  const gt = ct.raw.data;
42024
- mt(gt) ? Yo(l, We, gt) : oo(gt) && t.onMessage(We, gt);
42024
+ mt(gt) ? Yo(l, We, gt) : so(gt) && t.onMessage(We, gt);
42025
42025
  }
42026
42026
  });
42027
42027
  ae.set(He);
@@ -42419,7 +42419,7 @@ function lhe() {
42419
42419
  }
42420
42420
  }
42421
42421
  ye.singletonNone = new ye(!1);
42422
- const Kn = Array.prototype.slice, dt = Array.prototype.indexOf, kt = Array.prototype.push, Q = (g, v) => dt.call(g, v), ro = (g, v) => Q(g, v) > -1, Lt = (g, v) => {
42422
+ const Kn = Array.prototype.slice, dt = Array.prototype.indexOf, kt = Array.prototype.push, Q = (g, v) => dt.call(g, v), to = (g, v) => Q(g, v) > -1, Lt = (g, v) => {
42423
42423
  for (let k = 0, _ = g.length; k < _; k++) {
42424
42424
  const N = g[k];
42425
42425
  if (v(N, k))
@@ -42720,7 +42720,7 @@ function lhe() {
42720
42720
  "thead",
42721
42721
  "tbody",
42722
42722
  "colgroup"
42723
- ], Kd = (g) => ro(lc, g), Jr = (g, v) => ({
42723
+ ], Kd = (g) => to(lc, g), Jr = (g, v) => ({
42724
42724
  rows: g,
42725
42725
  columns: v
42726
42726
  }), Al = (g, v) => ({
@@ -42873,7 +42873,7 @@ function lhe() {
42873
42873
  }, hi = (g, v, k = 0) => Pe(g, v).map((_) => parseInt(_, 10)).getOr(k), ia = (g, v) => hi(g, v, 1), Zr = (g) => Ls("col")(g) ? hi(g, "span", 1) > 1 : ia(g, "colspan") > 1, Hi = (g) => ia(g, "rowspan") > 1, Vs = (g, v) => parseInt(ri(g, v), 10), Lc = le(10), Hf = le(10), Vu = (g, v) => Vh(g, v, je), Vh = (g, v, k) => xo(So(g), (_) => Ot(_, v) ? k(_) ? [_] : [] : Vh(_, v, k)), zh = (g, v, k = cn) => {
42874
42874
  if (k(v))
42875
42875
  return ye.none();
42876
- if (ro(g, Ts(v)))
42876
+ if (to(g, Ts(v)))
42877
42877
  return ye.some(v);
42878
42878
  const _ = (N) => Ot(N, "table") || k(N);
42879
42879
  return Br(v, g.join(","), _);
@@ -43192,7 +43192,7 @@ function lhe() {
43192
43192
  let zt = 0;
43193
43193
  for (; v[Wm(ie, zt)] !== void 0; )
43194
43194
  zt++;
43195
- const no = Bo(N, zt.toString()), Mt = cc(Mn.element, Mn.rowspan, Mn.colspan, ie, zt, no);
43195
+ const oo = Bo(N, zt.toString()), Mt = cc(Mn.element, Mn.rowspan, Mn.colspan, ie, zt, oo);
43196
43196
  for (let Cn = 0; Cn < Mn.colspan; Cn++)
43197
43197
  for (let qs = 0; qs < Mn.rowspan; qs++) {
43198
43198
  const Gs = ie + qs, Un = zt + Cn, pr = Wm(Gs, Un);
@@ -43269,7 +43269,7 @@ function lhe() {
43269
43269
  }, te = (g, v) => (k) => $e(k) === "rtl" ? v : g, $e = (g) => ri(g, "direction") === "rtl" ? "rtl" : "ltr", Fe = Gr("height", (g) => {
43270
43270
  const v = g.dom;
43271
43271
  return mo(g) ? v.getBoundingClientRect().height : v.offsetHeight;
43272
- }), Vt = (g) => Fe.get(g), to = (g) => Fe.getOuter(g), Ro = Ui, $o = (g, v) => ({
43272
+ }), Vt = (g) => Fe.get(g), no = (g) => Fe.getOuter(g), Ro = Ui, $o = (g, v) => ({
43273
43273
  left: g,
43274
43274
  top: v,
43275
43275
  translate: (_, N) => $o(g + _, v + N)
@@ -43291,7 +43291,7 @@ function lhe() {
43291
43291
  }), Gf = (g, v) => ({
43292
43292
  col: g,
43293
43293
  x: v
43294
- }), zg = (g) => sl(g).left + Is(g), rl = (g) => sl(g).left, r0 = (g, v) => Gf(g, rl(v)), y2 = (g, v) => Gf(g, zg(v)), V1 = (g) => sl(g).top, Na = (g, v) => s0(g, V1(v)), i0 = (g, v) => s0(g, V1(v) + to(v)), Pi = (g, v, k) => {
43294
+ }), zg = (g) => sl(g).left + Is(g), rl = (g) => sl(g).left, r0 = (g, v) => Gf(g, rl(v)), y2 = (g, v) => Gf(g, zg(v)), V1 = (g) => sl(g).top, Na = (g, v) => s0(g, V1(v)), i0 = (g, v) => s0(g, V1(v) + no(v)), Pi = (g, v, k) => {
43295
43295
  if (k.length === 0)
43296
43296
  return [];
43297
43297
  const _ = Qt(k.slice(1), (z, J) => z.map((ie) => g(J, ie))), N = k[k.length - 1].map((z) => v(k.length - 1, z));
@@ -43521,7 +43521,7 @@ function lhe() {
43521
43521
  })(di, "text"), yl = (g) => Lr.get(g), Wu = (g) => Lr.getOption(g), lh = (g, v) => Lr.set(g, v), Bl = (g) => Ts(g) === "img" ? 1 : Wu(g).fold(() => So(g).length, (v) => v.length), nf = (g) => Wu(g).filter((v) => v.trim().length !== 0 || v.indexOf(Xs) > -1).isSome(), Jf = (g) => jn(g) && vr(g, "contenteditable") === "false", ju = [
43522
43522
  "img",
43523
43523
  "br"
43524
- ], Xu = (g) => nf(g) || ro(ju, Ts(g)) || Jf(g), Gm = (g) => dc(g, Xu), Xg = (g) => qg(g, Xu), qg = (g, v) => {
43524
+ ], Xu = (g) => nf(g) || to(ju, Ts(g)) || Jf(g), Gm = (g) => dc(g, Xu), Xg = (g) => qg(g, Xu), qg = (g, v) => {
43525
43525
  const k = (_) => {
43526
43526
  const N = So(_);
43527
43527
  for (let z = N.length - 1; z >= 0; z--) {
@@ -43555,7 +43555,7 @@ function lhe() {
43555
43555
  return Ks(ie, Ie), Ie;
43556
43556
  }, v);
43557
43557
  }).getOr(v), em = (g, v) => {
43558
- Co(w2, (k, _) => Pe(g, _).filter((N) => ro(k, N)).each((N) => Ws(v, _, N)));
43558
+ Co(w2, (k, _) => Pe(g, _).filter((N) => to(k, N)).each((N) => Ws(v, _, N)));
43559
43559
  }, ch = (g, v, k) => {
43560
43560
  const _ = (J, ie) => {
43561
43561
  Xr(J.element, ie), yr(ie, "height"), J.colspan !== 1 && yr(ie, "width");
@@ -43624,7 +43624,7 @@ function lhe() {
43624
43624
  default: !0
43625
43625
  }), v("table_header_type", {
43626
43626
  processor: (k) => {
43627
- const _ = ro([
43627
+ const _ = to([
43628
43628
  "section",
43629
43629
  "cells",
43630
43630
  "sectionCells",
@@ -43650,7 +43650,7 @@ function lhe() {
43650
43650
  default: { "border-collapse": "collapse" }
43651
43651
  }), v("table_column_resizing", {
43652
43652
  processor: (k) => {
43653
- const _ = ro([
43653
+ const _ = to([
43654
43654
  "preservetable",
43655
43655
  "resizetable"
43656
43656
  ], k);
@@ -43675,7 +43675,7 @@ function lhe() {
43675
43675
  });
43676
43676
  }, h0 = (g) => ye.from(g.options.get("table_clone_elements")), Kg = (g) => {
43677
43677
  const v = g.options.get("object_resizing");
43678
- return ro(v.split(","), "table");
43678
+ return to(v.split(","), "table");
43679
43679
  }, rk = La("table_header_type"), ki = La("table_column_resizing"), x2 = (g) => ki(g) === "preservetable", hh = (g) => ki(g) === "resizetable", Ym = La("table_sizing_mode"), f0 = (g) => Ym(g) === "relative", Gu = (g) => Ym(g) === "fixed", wl = (g) => Ym(g) === "responsive", UO = La("table_resize_bars"), j1 = La("table_style_by_css"), Jg = La("table_merge_content_on_paste"), Ia = (g) => {
43680
43680
  const v = g.options, k = v.get("table_default_attributes");
43681
43681
  return v.isSet("table_default_attributes") ? k : Yg(g, k);
@@ -43766,7 +43766,7 @@ function lhe() {
43766
43766
  "pre",
43767
43767
  "address"
43768
43768
  ], fr = () => {
43769
- const g = (Ie) => Dt.fromDom(Ie.dom.cloneNode(!1)), v = (Ie) => Dn(Ie).dom, k = (Ie) => er(Ie) ? Ts(Ie) === "body" ? !0 : ro(ng, Ts(Ie)) : !1, _ = (Ie) => er(Ie) ? ro([
43769
+ const g = (Ie) => Dt.fromDom(Ie.dom.cloneNode(!1)), v = (Ie) => Dn(Ie).dom, k = (Ie) => er(Ie) ? Ts(Ie) === "body" ? !0 : to(ng, Ts(Ie)) : !1, _ = (Ie) => er(Ie) ? to([
43770
43770
  "br",
43771
43771
  "img",
43772
43772
  "hr",
@@ -43776,7 +43776,7 @@ function lhe() {
43776
43776
  bi(tt, Zt);
43777
43777
  }, ie = (Ie) => {
43778
43778
  const tt = Ts(Ie);
43779
- return ro([
43779
+ return to([
43780
43780
  "script",
43781
43781
  "noscript",
43782
43782
  "iframe",
@@ -44104,11 +44104,11 @@ function lhe() {
44104
44104
  const v = rt(g, (k) => rb(k.element));
44105
44105
  return v.length === 0 ? ye.some("td") : v.length === g.length ? ye.some("th") : ye.none();
44106
44106
  }, mk = (g) => {
44107
- const v = Qt(g, (N) => fk(N).type), k = ro(v, "header"), _ = ro(v, "footer");
44107
+ const v = Qt(g, (N) => fk(N).type), k = to(v, "header"), _ = to(v, "footer");
44108
44108
  if (!k && !_)
44109
44109
  return ye.some("body");
44110
44110
  {
44111
- const N = ro(v, "body");
44111
+ const N = to(v, "body");
44112
44112
  return k && !N && !_ ? ye.some("header") : !k && !N && _ ? ye.some("footer") : ye.none();
44113
44113
  }
44114
44114
  }, ib = (g) => vo(g.all, (v) => {
@@ -44163,8 +44163,8 @@ function lhe() {
44163
44163
  zt.isNew && _.push(zt.element), ph(zt.element, "colspan", zt.colspan, 1), ph(zt.element, "rowspan", zt.rowspan, 1), Ks(Mn, zt.element);
44164
44164
  }), Mn;
44165
44165
  }), z = (Yt) => xo(Yt, (tn) => Qt(tn.cells, (Mn) => (ph(Mn.element, "span", Mn.colspan, 1), Mn.element))), J = (Yt, tn) => {
44166
- const Mn = k0(g, tn), no = (tn === "colgroup" ? z : N)(Yt);
44167
- Jo(Mn, no);
44166
+ const Mn = k0(g, tn), oo = (tn === "colgroup" ? z : N)(Yt);
44167
+ Jo(Mn, oo);
44168
44168
  }, ie = (Yt) => {
44169
44169
  Uo(g, Yt).each(hr);
44170
44170
  }, ue = (Yt, tn) => {
@@ -44415,8 +44415,8 @@ function lhe() {
44415
44415
  continue;
44416
44416
  }
44417
44417
  db(v, Yt, Mn, N) && ub(v, ol(v[Yt], Mn), N, _.cell);
44418
- const zt = Mn - ie - tn, no = Dl(k[Yt - J], zt), Mt = no.element, Cn = _.replace(Mt);
44419
- Eo(v[Yt], Mn, jr(Cn, !0, no.isLocked));
44418
+ const zt = Mn - ie - tn, oo = Dl(k[Yt - J], zt), Mt = oo.element, Cn = _.replace(Mt);
44419
+ Eo(v[Yt], Mn, jr(Cn, !0, oo.isLocked));
44420
44420
  }
44421
44421
  }
44422
44422
  return v;
@@ -44505,7 +44505,7 @@ function lhe() {
44505
44505
  const z = qi(g).rows, J = xo(v, (tt) => mp(z, tt, _)), ie = Qt(z, (tt) => sv(tt.cells)), ue = xk(J, ie), Ie = Ck(k, ie);
44506
44506
  return fp(g, J, _, N, av, Ie, ue);
44507
44507
  }, J4 = (g, v, k, _, N, z, J) => {
44508
- const { cols: ie, rows: ue } = qi(g), Ie = ue[v[0]], tt = xo(v, (zt) => K4(ue, zt, N)), Zt = Qt(Ie.cells, (zt, no) => sv(mp(ue, no, N))), bn = [...ue];
44508
+ const { cols: ie, rows: ue } = qi(g), Ie = ue[v[0]], tt = xo(v, (zt) => K4(ue, zt, N)), Zt = Qt(Ie.cells, (zt, oo) => sv(mp(ue, oo, N))), bn = [...ue];
44509
44509
  Oe(v, (zt) => {
44510
44510
  bn[zt] = J.transformRow(ue[zt], k);
44511
44511
  });
@@ -44549,7 +44549,7 @@ function lhe() {
44549
44549
  if (v.length !== bn.length)
44550
44550
  throw new Error("Wrong number of arguments to match. Expected: " + v.join(",") + `
44551
44551
  Actual: ` + bn.join(","));
44552
- if (!Xo(v, (tn) => ro(bn, tn)))
44552
+ if (!Xo(v, (tn) => to(bn, tn)))
44553
44553
  throw new Error("Not all branches were specified when using match. Specified: " + bn.join(", ") + `
44554
44554
  Required: ` + v.join(", "));
44555
44555
  return Zt[J].apply(null, ue);
@@ -44699,7 +44699,7 @@ Required: ` + v.join(", "));
44699
44699
  "row",
44700
44700
  "col"
44701
44701
  ];
44702
- return Lt(z, (Ie) => Ie !== J && ro(ie, Ie)) ? ye.none() : ye.from(J);
44702
+ return Lt(z, (Ie) => Ie !== J && to(ie, Ie)) ? ye.none() : ye.from(J);
44703
44703
  }
44704
44704
  };
44705
44705
  return yr(_[0], "width"), N().fold(() => Te(_[0], "scope"), (z) => Ws(_[0], "scope", z + "group")), le(_[0]);
@@ -44738,14 +44738,14 @@ Required: ` + v.join(", "));
44738
44738
  "address"
44739
44739
  ], Cd = (g, v) => {
44740
44740
  const k = g.property().name(v);
44741
- return ro([
44741
+ return to([
44742
44742
  "ol",
44743
44743
  "ul"
44744
44744
  ], k);
44745
44745
  }, bp = (g, v) => {
44746
44746
  const k = g.property().name(v);
44747
- return ro(St, k);
44748
- }, r5 = (g, v) => ro([
44747
+ return to(St, k);
44748
+ }, r5 = (g, v) => to([
44749
44749
  "br",
44750
44750
  "img",
44751
44751
  "hr",
@@ -44956,7 +44956,7 @@ Required: ` + v.join(", "));
44956
44956
  effect: pf
44957
44957
  }));
44958
44958
  }) : ye.none();
44959
- }, Zt = tt(K2, N, xe, Va), bn = tt(Y2, z, xe, Va), Yt = tt(d5, je, xe, Va), tn = tt(h5, je, xe, Va), Mn = tt(gv, je, ie, Va), zt = tt(G2, je, ie, Va), no = tt(fm, je, xe, Va), Mt = tt(J2, je, xe, Va), Cn = tt(ew, je, xe, Va), qs = tt(tw, je, xe, Va), Gs = tt(pv, je, xe, Va), Un = tt(jk, je, xe, Va), pr = tt(Wk, je, xe, sw), Jl = tt(Sl, je, xe, Va), Og = tt(Uk, je, xe, Va), Md = tt(Zk, je, xe, Va), ms = tt(Vk, je, xe, Va), rr = tt(zk, je, xe, Va), _l = tt(Hk, je, xe, Va), ka = tt(f5, je, xe, Va);
44959
+ }, Zt = tt(K2, N, xe, Va), bn = tt(Y2, z, xe, Va), Yt = tt(d5, je, xe, Va), tn = tt(h5, je, xe, Va), Mn = tt(gv, je, ie, Va), zt = tt(G2, je, ie, Va), oo = tt(fm, je, xe, Va), Mt = tt(J2, je, xe, Va), Cn = tt(ew, je, xe, Va), qs = tt(tw, je, xe, Va), Gs = tt(pv, je, xe, Va), Un = tt(jk, je, xe, Va), pr = tt(Wk, je, xe, sw), Jl = tt(Sl, je, xe, Va), Og = tt(Uk, je, xe, Va), Md = tt(Zk, je, xe, Va), ms = tt(Vk, je, xe, Va), rr = tt(zk, je, xe, Va), _l = tt(Hk, je, xe, Va), ka = tt(f5, je, xe, Va);
44960
44960
  return {
44961
44961
  deleteRow: Zt,
44962
44962
  deleteColumn: bn,
@@ -44964,7 +44964,7 @@ Required: ` + v.join(", "));
44964
44964
  insertRowsAfter: tn,
44965
44965
  insertColumnsBefore: Mn,
44966
44966
  insertColumnsAfter: zt,
44967
- mergeCells: no,
44967
+ mergeCells: oo,
44968
44968
  unmergeCells: Mt,
44969
44969
  pasteColsBefore: Cn,
44970
44970
  pasteColsAfter: qs,
@@ -45197,57 +45197,57 @@ Required: ` + v.join(", "));
45197
45197
  g.fold(Tv, (v) => tC({ [mw]: v }));
45198
45198
  }, vw = () => gw(mw), Tv = () => pw(mw), Ou = (g) => y0(q1(g), ep(g)).filter(KO), _v = (g) => Ku(q1(g), ep(g)).filter(KO), Ev = (g, v) => {
45199
45199
  const k = ep(g), _ = () => Ou(g).each((zt) => {
45200
- el(zt, k).filter(oe(k)).each((no) => {
45200
+ el(zt, k).filter(oe(k)).each((oo) => {
45201
45201
  const Mt = Dt.fromText("");
45202
- if (vi(no, Mt), hr(no), g.dom.isEmpty(g.getBody()))
45202
+ if (vi(oo, Mt), hr(oo), g.dom.isEmpty(g.getBody()))
45203
45203
  g.setContent(""), g.selection.setCursorLocation();
45204
45204
  else {
45205
45205
  const Cn = g.dom.createRng();
45206
45206
  Cn.setStart(Mt.dom, 0), Cn.setEnd(Mt.dom, 0), g.selection.setRng(Cn), g.nodeChanged();
45207
45207
  }
45208
45208
  });
45209
- }), N = (zt) => Ou(g).each((no) => {
45210
- wl(g) || Gu(g) || f0(g) || el(no, k).each((Cn) => {
45209
+ }), N = (zt) => Ou(g).each((oo) => {
45210
+ wl(g) || Gu(g) || f0(g) || el(oo, k).each((Cn) => {
45211
45211
  zt === "relative" && !yv(Cn) ? gm(Cn) : zt === "fixed" && !wv(Cn) ? dw(Cn) : zt === "responsive" && !xv(Cn) && Gk(Cn), Jm(Cn), Di(g, Cn.dom, Va);
45212
45212
  });
45213
- }), z = (zt) => el(zt, k), J = (zt) => _v(g).bind((no) => z(no).map((Mt) => zt(Mt, no))), ie = (zt, no) => {
45213
+ }), z = (zt) => el(zt, k), J = (zt) => _v(g).bind((oo) => z(oo).map((Mt) => zt(Mt, oo))), ie = (zt, oo) => {
45214
45214
  J((Mt) => {
45215
- g.formatter.toggle("tableclass", { value: no }, Mt.dom), Di(g, Mt.dom, yb);
45215
+ g.formatter.toggle("tableclass", { value: oo }, Mt.dom), Di(g, Mt.dom, yb);
45216
45216
  });
45217
- }, ue = (zt, no) => {
45217
+ }, ue = (zt, oo) => {
45218
45218
  J((Mt) => {
45219
- const Cn = sm(g), Gs = Xo(Cn, (Un) => g.formatter.match("tablecellclass", { value: no }, Un.dom)) ? g.formatter.remove : g.formatter.apply;
45220
- Oe(Cn, (Un) => Gs("tablecellclass", { value: no }, Un.dom)), Di(g, Mt.dom, yb);
45219
+ const Cn = sm(g), Gs = Xo(Cn, (Un) => g.formatter.match("tablecellclass", { value: oo }, Un.dom)) ? g.formatter.remove : g.formatter.apply;
45220
+ Oe(Cn, (Un) => Gs("tablecellclass", { value: oo }, Un.dom)), Di(g, Mt.dom, yb);
45221
45221
  });
45222
45222
  }, Ie = () => {
45223
45223
  Ou(g).each((zt) => {
45224
- el(zt, k).each((no) => {
45225
- Uo(no, "caption").fold(() => {
45224
+ el(zt, k).each((oo) => {
45225
+ Uo(oo, "caption").fold(() => {
45226
45226
  const Mt = Dt.fromTag("caption");
45227
- Ks(Mt, Dt.fromText("Caption")), md(no, Mt, 0), g.selection.setCursorLocation(Mt.dom, 0);
45227
+ Ks(Mt, Dt.fromText("Caption")), md(oo, Mt, 0), g.selection.setCursorLocation(Mt.dom, 0);
45228
45228
  }, (Mt) => {
45229
- Ls("caption")(zt) && Nt("td", no).each((Cn) => g.selection.setCursorLocation(Cn.dom, 0)), hr(Mt);
45230
- }), Di(g, no.dom, Va);
45229
+ Ls("caption")(zt) && Nt("td", oo).each((Cn) => g.selection.setCursorLocation(Cn.dom, 0)), hr(Mt);
45230
+ }), Di(g, oo.dom, Va);
45231
45231
  });
45232
45232
  });
45233
45233
  }, tt = (zt) => {
45234
45234
  g.focus();
45235
- }, Zt = (zt, no = !1) => J((Mt, Cn) => {
45235
+ }, Zt = (zt, oo = !1) => J((Mt, Cn) => {
45236
45236
  const qs = mi(sm(g), Mt, Cn);
45237
- zt(Mt, qs, no).each(tt);
45238
- }), bn = () => J((zt, no) => {
45239
- const Mt = mi(sm(g), zt, no), Cn = ch(xe, Dt.fromDom(g.getDoc()), ye.none());
45237
+ zt(Mt, qs, oo).each(tt);
45238
+ }), bn = () => J((zt, oo) => {
45239
+ const Mt = mi(sm(g), zt, oo), Cn = ch(xe, Dt.fromDom(g.getDoc()), ye.none());
45240
45240
  return Hc(zt, Mt, Cn);
45241
- }), Yt = () => J((zt, no) => {
45242
- const Mt = mi(sm(g), zt, no);
45241
+ }), Yt = () => J((zt, oo) => {
45242
+ const Mt = mi(sm(g), zt, oo);
45243
45243
  return qk(zt, Mt);
45244
- }), tn = (zt, no) => no().each((Mt) => {
45244
+ }), tn = (zt, oo) => oo().each((Mt) => {
45245
45245
  const Cn = Qt(Mt, (qs) => oi(qs));
45246
45246
  J((qs, Gs) => {
45247
45247
  const Un = uh(Dt.fromDom(g.getDoc())), pr = Yr(sm(g), Gs, Cn, Un);
45248
45248
  zt(qs, pr).each(tt);
45249
45249
  });
45250
- }), Mn = (zt) => (no, Mt) => Rr(Mt, "type").each((Cn) => {
45250
+ }), Mn = (zt) => (oo, Mt) => Rr(Mt, "type").each((Cn) => {
45251
45251
  Zt(zt(Cn), Mt.no_events);
45252
45252
  });
45253
45253
  Co({
@@ -45275,7 +45275,7 @@ Required: ` + v.join(", "));
45275
45275
  mceTableCellToggleClass: ue,
45276
45276
  mceTableToggleClass: ie,
45277
45277
  mceTableToggleCaption: Ie,
45278
- mceTableSizingMode: (zt, no) => N(no),
45278
+ mceTableSizingMode: (zt, oo) => N(oo),
45279
45279
  mceTableCellType: Mn((zt) => zt === "th" ? v.makeCellsHeader : v.unmakeCellsHeader),
45280
45280
  mceTableColType: Mn((zt) => zt === "th" ? v.makeColumnsHeader : v.unmakeColumnsHeader),
45281
45281
  mceTableRowType: Mn((zt) => {
@@ -45288,16 +45288,16 @@ Required: ` + v.join(", "));
45288
45288
  return v.makeRowsBody;
45289
45289
  }
45290
45290
  })
45291
- }, (zt, no) => g.addCommand(no, zt)), g.addCommand("mceInsertTable", (zt, no) => {
45292
- _5(g, no.rows, no.columns, no.options);
45293
- }), g.addCommand("mceTableApplyCellStyle", (zt, no) => {
45291
+ }, (zt, oo) => g.addCommand(oo, zt)), g.addCommand("mceInsertTable", (zt, oo) => {
45292
+ _5(g, oo.rows, oo.columns, oo.options);
45293
+ }), g.addCommand("mceTableApplyCellStyle", (zt, oo) => {
45294
45294
  const Mt = (Gs) => "tablecell" + Gs.toLowerCase().replace("-", "");
45295
- if (!w(no))
45295
+ if (!w(oo))
45296
45296
  return;
45297
45297
  const Cn = rt(sm(g), KO);
45298
45298
  if (Cn.length === 0)
45299
45299
  return;
45300
- const qs = Js(no, (Gs, Un) => g.formatter.has(Mt(Un)) && O(Gs));
45300
+ const qs = Js(oo, (Gs, Un) => g.formatter.has(Mt(Un)) && O(Gs));
45301
45301
  Ya(qs) || (Co(qs, (Gs, Un) => {
45302
45302
  const pr = Mt(Un);
45303
45303
  Oe(Cn, (Jl) => {
@@ -45596,8 +45596,8 @@ Required: ` + v.join(", "));
45596
45596
  rf(Zt, bn, k).each((Yt) => {
45597
45597
  const tn = Yt.boxes.getOr([]);
45598
45598
  if (tn.length === 1) {
45599
- const Mn = tn[0], zt = X1(Mn) === "false", no = Oa(nm(tt.target), Mn, Ht);
45600
- zt && no && _.selectRange(v, tn, Mn, Mn);
45599
+ const Mn = tn[0], zt = X1(Mn) === "false", oo = Oa(nm(tt.target), Mn, Ht);
45600
+ zt && oo && _.selectRange(v, tn, Mn, Mn);
45601
45601
  } else tn.length > 1 && (_.selectRange(v, tn, Yt.start, Yt.finish), g.selectContents(bn));
45602
45602
  });
45603
45603
  });
@@ -45685,7 +45685,7 @@ Required: ` + v.join(", "));
45685
45685
  return V5(_, v, k).map((N) => Tb.create(Dt.fromDom(N.startContainer), N.startOffset, Dt.fromDom(N.endContainer), N.endOffset));
45686
45686
  }, V0 = (g, v) => {
45687
45687
  const k = Ts(g);
45688
- return k === "input" ? bc.after(g) : ro([
45688
+ return k === "input" ? bc.after(g) : to([
45689
45689
  "br",
45690
45690
  "img"
45691
45691
  ], k) ? v === 0 ? bc.before(g) : bc.after(g) : bc.on(g, v);
@@ -45756,23 +45756,23 @@ Required: ` + v.join(", "));
45756
45756
  }, MC = (g, v, k) => AC(g, v, k), Tp = (g) => {
45757
45757
  Om(g).each((v) => v.removeAllRanges());
45758
45758
  }, _p = (g) => ({
45759
- elementFromPoint: (zt, no) => Dt.fromPoint(Dt.fromDom(g.document), zt, no),
45759
+ elementFromPoint: (zt, oo) => Dt.fromPoint(Dt.fromDom(g.document), zt, oo),
45760
45760
  getRect: (zt) => zt.dom.getBoundingClientRect(),
45761
- getRangedRect: (zt, no, Mt, Cn) => {
45762
- const qs = Z0.exact(zt, no, Mt, Cn);
45761
+ getRangedRect: (zt, oo, Mt, Cn) => {
45762
+ const qs = Z0.exact(zt, oo, Mt, Cn);
45763
45763
  return SM(g, qs);
45764
45764
  },
45765
45765
  getSelection: () => RC(g).map((zt) => Rv(g, zt)),
45766
45766
  fromSitus: (zt) => {
45767
- const no = Z0.relative(zt.start, zt.finish);
45768
- return Rv(g, no);
45767
+ const oo = Z0.relative(zt.start, zt.finish);
45768
+ return Rv(g, oo);
45769
45769
  },
45770
- situsFromPoint: (zt, no) => MC(g, zt, no).map((Mt) => M0.create(Mt.start, Mt.soffset, Mt.finish, Mt.foffset)),
45770
+ situsFromPoint: (zt, oo) => MC(g, zt, oo).map((Mt) => M0.create(Mt.start, Mt.soffset, Mt.finish, Mt.foffset)),
45771
45771
  clearSelection: () => {
45772
45772
  Tp(g);
45773
45773
  },
45774
45774
  collapseSelection: (zt = !1) => {
45775
- RC(g).each((no) => no.fold((Mt) => Mt.collapse(zt), (Mt, Cn) => {
45775
+ RC(g).each((oo) => oo.fold((Mt) => Mt.collapse(zt), (Mt, Cn) => {
45776
45776
  const qs = zt ? Mt : Cn;
45777
45777
  ff(g, qs, qs);
45778
45778
  }, (Mt, Cn, qs, Gs) => {
@@ -45783,8 +45783,8 @@ Required: ` + v.join(", "));
45783
45783
  setSelection: (zt) => {
45784
45784
  Cp(g, zt.start, zt.soffset, zt.finish, zt.foffset);
45785
45785
  },
45786
- setRelativeSelection: (zt, no) => {
45787
- ff(g, zt, no);
45786
+ setRelativeSelection: (zt, oo) => {
45787
+ ff(g, zt, oo);
45788
45788
  },
45789
45789
  selectNode: (zt) => {
45790
45790
  W5(g, zt, !1);
@@ -45794,8 +45794,8 @@ Required: ` + v.join(", "));
45794
45794
  },
45795
45795
  getInnerHeight: () => g.innerHeight,
45796
45796
  getScrollY: () => wu(Dt.fromDom(g.document)).top,
45797
- scrollBy: (zt, no) => {
45798
- kp(zt, no, Dt.fromDom(g.document));
45797
+ scrollBy: (zt, oo) => {
45798
+ kp(zt, oo, Dt.fromDom(g.document));
45799
45799
  }
45800
45800
  }), Ep = (g, v) => ({
45801
45801
  rows: g,
@@ -45963,8 +45963,8 @@ Required: ` + v.join(", "));
45963
45963
  }, Vw = je, gf = (g, v, k) => ey(g, v, Vw, k), ym = Zw, bg = (g) => !pg(Dt.fromDom(g.target), "ephox-snooker-resizer-bar"), Vb = (g, v) => {
45964
45964
  const k = Fw(() => Dt.fromDom(g.getBody()), () => Ku(q1(g), ep(g)), sp.selectedSelector), _ = (ue, Ie, tt) => {
45965
45965
  el(Ie).each((bn) => {
45966
- const Yt = Qt(ue, (Mt) => Mt.dom), tn = h0(g), Mn = ch(xe, Dt.fromDom(g.getDoc()), tn), zt = sm(g), no = mf(bn, { selection: zt }, Mn).map((Mt) => ur(Mt, (Cn) => Qt(Cn, (qs) => qs.dom))).getOrUndefined();
45967
- Za(g, Yt, Ie.dom, tt.dom, no);
45966
+ const Yt = Qt(ue, (Mt) => Mt.dom), tn = h0(g), Mn = ch(xe, Dt.fromDom(g.getDoc()), tn), zt = sm(g), oo = mf(bn, { selection: zt }, Mn).map((Mt) => ur(Mt, (Cn) => Qt(Cn, (qs) => qs.dom))).getOrUndefined();
45967
+ Za(g, Yt, Ie.dom, tt.dom, oo);
45968
45968
  });
45969
45969
  }, N = () => da(g), z = xu.byAttr(sp, _, N);
45970
45970
  return g.on("init", (ue) => {
@@ -45976,7 +45976,7 @@ Required: ` + v.join(", "));
45976
45976
  ]).fold(() => z.clear(tt), xe);
45977
45977
  }, Yt = kM(Ie, tt, Zt, z), tn = Mw(Ie, tt, Zt, z), Mn = Bw(Ie, tt, Zt, z), zt = (rr) => rr.raw.shiftKey === !0;
45978
45978
  g.on("TableSelectorChange", (rr) => Mn(rr.start, rr.finish));
45979
- const no = (rr, _l) => {
45979
+ const oo = (rr, _l) => {
45980
45980
  zt(rr) && (_l.kill && rr.kill(), _l.selection.each((ka) => {
45981
45981
  const nd = Z0.relative(ka.start, ka.finish), Ll = Cw(Ie, nd);
45982
45982
  g.selection.setRng(Ll);
@@ -45986,7 +45986,7 @@ Required: ` + v.join(", "));
45986
45986
  if (_l.raw.shiftKey && ha(_l.raw.which)) {
45987
45987
  const ka = g.selection.getRng(), nd = Dt.fromDom(ka.startContainer), Ll = Dt.fromDom(ka.endContainer);
45988
45988
  tn.keyup(_l, nd, ka.startOffset, Ll, ka.endOffset).each((Bd) => {
45989
- no(_l, Bd);
45989
+ oo(_l, Bd);
45990
45990
  });
45991
45991
  }
45992
45992
  }, Cn = (rr) => {
@@ -45994,7 +45994,7 @@ Required: ` + v.join(", "));
45994
45994
  v.hide();
45995
45995
  const ka = g.selection.getRng(), nd = Dt.fromDom(ka.startContainer), Ll = Dt.fromDom(ka.endContainer), Bd = te(Rd, Wv)(Dt.fromDom(g.selection.getStart()));
45996
45996
  tn.keydown(_l, nd, ka.startOffset, Ll, ka.endOffset, Bd).each((ec) => {
45997
- no(_l, ec);
45997
+ oo(_l, ec);
45998
45998
  }), v.show();
45999
45999
  }, qs = (rr) => rr.button === 0, Gs = (rr) => rr.buttons === void 0 ? !0 : (rr.buttons & 1) !== 0, Un = (rr) => {
46000
46000
  Yt.clearstate();
@@ -46090,12 +46090,12 @@ Required: ` + v.join(", "));
46090
46090
  throw new Error("You must specify at least one required field.");
46091
46091
  return ZC("required", v), zb(v), (_) => {
46092
46092
  const N = yn(_);
46093
- Xo(v, (ie) => ro(N, ie)) || QC(v, N), g(v, N);
46093
+ Xo(v, (ie) => to(N, ie)) || QC(v, N), g(v, N);
46094
46094
  const J = rt(v, (ie) => !k.validate(_[ie], ie));
46095
46095
  return J.length > 0 && VC(J, k.label), _;
46096
46096
  };
46097
46097
  }, Ec = (g, v) => {
46098
- const k = rt(v, (_) => !ro(g, _));
46098
+ const k = rt(v, (_) => !to(g, _));
46099
46099
  k.length > 0 && FC(k);
46100
46100
  }, Ap = (g) => Tl(Ec, g), wm = Ap([
46101
46101
  "compare",
@@ -46173,8 +46173,8 @@ Required: ` + v.join(", "));
46173
46173
  _ = !0;
46174
46174
  }, Zt = () => {
46175
46175
  _ = !1;
46176
- }, bn = () => _, Yt = (zt) => (...no) => {
46177
- _ && zt.apply(null, no);
46176
+ }, bn = () => _, Yt = (zt) => (...oo) => {
46177
+ _ && zt.apply(null, oo);
46178
46178
  }, tn = v.sink(zw({
46179
46179
  forceDrop: J,
46180
46180
  drop: Yt(J),
@@ -46331,7 +46331,7 @@ Required: ` + v.join(", "));
46331
46331
  const z = sl(k), J = v.isResizable, ie = _.length > 0 ? il.positions(_, k) : [], ue = ie.length > 0 ? xm(g, J) : [], Ie = rt(ie, (Yt, tn) => Lt(ue, (Mn) => tn === Mn));
46332
46332
  TM(v, Ie, z, Is(k));
46333
46333
  const tt = N.length > 0 ? a0.positions(N, k) : [], Zt = tt.length > 0 ? ry(g, J) : [], bn = rt(tt, (Yt, tn) => Lt(Zt, (Mn) => tn === Mn));
46334
- X0(v, bn, z, to(k));
46334
+ X0(v, bn, z, no(k));
46335
46335
  }, Gw = (g, v) => {
46336
46336
  if ($c(g), g.isResizable(v)) {
46337
46337
  const k = es.fromTable(v), _ = M(k), N = Yh(k);
@@ -46362,18 +46362,18 @@ Required: ` + v.join(", "));
46362
46362
  });
46363
46363
  });
46364
46364
  const z = (tn, Mn) => {
46365
- const zt = Vs(tn, Mn), no = hi(tn, "data-initial-" + Mn, 0);
46366
- return zt - no;
46365
+ const zt = Vs(tn, Mn), oo = hi(tn, "data-initial-" + Mn, 0);
46366
+ return zt - oo;
46367
46367
  };
46368
46368
  k.events.stop.bind(() => {
46369
46369
  v.get().each((tn) => {
46370
46370
  _.each((Mn) => {
46371
46371
  N(tn, "data-row").each((zt) => {
46372
- const no = z(tn, "top");
46373
- Te(tn, "data-initial-top"), Yt.trigger.adjustHeight(Mn, no, parseInt(zt, 10));
46372
+ const oo = z(tn, "top");
46373
+ Te(tn, "data-initial-top"), Yt.trigger.adjustHeight(Mn, oo, parseInt(zt, 10));
46374
46374
  }), N(tn, "data-column").each((zt) => {
46375
- const no = z(tn, "left");
46376
- Te(tn, "data-initial-left"), Yt.trigger.adjustWidth(Mn, no, parseInt(zt, 10));
46375
+ const oo = z(tn, "left");
46376
+ Te(tn, "data-initial-left"), Yt.trigger.adjustWidth(Mn, oo, parseInt(zt, 10));
46377
46377
  }), Gw(g, Mn);
46378
46378
  });
46379
46379
  });
@@ -46730,7 +46730,7 @@ function che() {
46730
46730
  let te = U(M[0]);
46731
46731
  const $e = [];
46732
46732
  let Fe = [];
46733
- for (let Vt = 0, to = M.length; Vt < to; Vt++) {
46733
+ for (let Vt = 0, no = M.length; Vt < no; Vt++) {
46734
46734
  const Ro = M[Vt], $o = U(Ro);
46735
46735
  $o !== te && ($e.push(Fe), Fe = []), te = $o, Fe.push(Ro);
46736
46736
  }
@@ -46747,7 +46747,7 @@ function che() {
46747
46747
  break;
46748
46748
  }
46749
46749
  return Xe.none();
46750
- }, ro = (M, U) => Q(M, U, le), Lt = (M) => {
46750
+ }, to = (M, U) => Q(M, U, le), Lt = (M) => {
46751
46751
  const U = [];
46752
46752
  for (let te = 0, $e = M.length; te < $e; ++te) {
46753
46753
  if (!w(M[te]))
@@ -46761,8 +46761,8 @@ function che() {
46761
46761
  }, Oe = (M, U) => U >= 0 && U < M.length ? Xe.some(M[U]) : Xe.none(), st = (M) => Oe(M, 0), qt = (M) => Oe(M, M.length - 1), rt = (M, U) => {
46762
46762
  const te = [], $e = F(U) ? (Fe) => cn(te, (Vt) => U(Vt, Fe)) : (Fe) => rn(te, Fe);
46763
46763
  for (let Fe = 0, Vt = M.length; Fe < Vt; Fe++) {
46764
- const to = M[Fe];
46765
- $e(to) || te.push(to);
46764
+ const no = M[Fe];
46765
+ $e(no) || te.push(no);
46766
46766
  }
46767
46767
  return te;
46768
46768
  }, sn = (M, U, te = xe) => M.exists(($e) => te($e, U)), Ue = (M, U, te = xe) => pt(M, U, te).getOr(M.isNone() && U.isNone()), pt = (M, U, te) => M.isSome() && U.isSome() ? Xe.some(te(M.getOrDie(), U.getOrDie())) : Xe.none(), K = 8, us = 11, Oo = 1, xo = 3, Xo = (M, U) => {
@@ -46889,8 +46889,8 @@ function che() {
46889
46889
  const Dt = (M) => je(M, ke.fromDom), Ot = Object.keys, Re = (M, U) => {
46890
46890
  const te = Ot(M);
46891
46891
  for (let $e = 0, Fe = te.length; $e < Fe; $e++) {
46892
- const Vt = te[$e], to = M[Vt];
46893
- U(to, Vt);
46892
+ const Vt = te[$e], no = M[Vt];
46893
+ U(no, Vt);
46894
46894
  }
46895
46895
  }, Le = (M) => (U, te) => {
46896
46896
  M[te] = U;
@@ -46934,14 +46934,14 @@ function che() {
46934
46934
  default: !0
46935
46935
  });
46936
46936
  }, Ra = oi("lists_indent_on_tab"), Fu = oi("forced_root_block"), lc = oi("forced_root_block_attrs"), Kd = (M, U, te = {}) => {
46937
- const $e = M.dom, Fe = M.schema.getBlockElements(), Vt = $e.createFragment(), to = Fu(M), Ro = lc(M);
46937
+ const $e = M.dom, Fe = M.schema.getBlockElements(), Vt = $e.createFragment(), no = Fu(M), Ro = lc(M);
46938
46938
  let $o, Zn, Tr = !1;
46939
- for (Zn = $e.create(to, {
46939
+ for (Zn = $e.create(no, {
46940
46940
  ...Ro,
46941
46941
  ...te.style ? { style: te.style } : {}
46942
46942
  }), zl(U.firstChild, Fe) || Vt.appendChild(Zn); $o = U.firstChild; ) {
46943
46943
  const Si = $o.nodeName;
46944
- !Tr && (Si !== "SPAN" || $o.getAttribute("data-mce-type") !== "bookmark") && (Tr = !0), zl($o, Fe) ? (Vt.appendChild($o), Zn = null) : (Zn || (Zn = $e.create(to, Ro), Vt.appendChild(Zn)), Zn.appendChild($o));
46944
+ !Tr && (Si !== "SPAN" || $o.getAttribute("data-mce-type") !== "bookmark") && (Tr = !0), zl($o, Fe) ? (Vt.appendChild($o), Zn = null) : (Zn || (Zn = $e.create(no, Ro), Vt.appendChild(Zn)), Zn.appendChild($o));
46945
46945
  }
46946
46946
  return !Tr && Zn && Zn.appendChild($e.create("br", { "data-mce-bogus": "1" })), Vt;
46947
46947
  }, Jr = ar.DOM, Al = (M, U, te) => {
@@ -46950,9 +46950,9 @@ function che() {
46950
46950
  Tr && Ss.each(Fe, (Si) => {
46951
46951
  Tr.insertBefore(Si, te.parentNode);
46952
46952
  }), Jr.remove(Zn);
46953
- }, Fe = Jr.select('span[data-mce-type="bookmark"]', U), Vt = Kd(M, te), to = Jr.createRng();
46954
- to.setStartAfter(te), to.setEndAfter(U);
46955
- const Ro = to.extractContents();
46953
+ }, Fe = Jr.select('span[data-mce-type="bookmark"]', U), Vt = Kd(M, te), no = Jr.createRng();
46954
+ no.setStartAfter(te), no.setEndAfter(U);
46955
+ const Ro = no.extractContents();
46956
46956
  for (let Zn = Ro.firstChild; Zn; Zn = Zn.firstChild)
46957
46957
  if (Zn.nodeName === "LI" && M.dom.isEmpty(Zn)) {
46958
46958
  Jr.remove(Zn);
@@ -47016,7 +47016,7 @@ function che() {
47016
47016
  return te.length > 0 ? te[0] : M.getBody();
47017
47017
  }, mo = (M, U) => !Ho(U) && !Vi(U) && cn(Rc, (te) => M.isValidChild(U.nodeName, te)), is = (M, U) => {
47018
47018
  const te = M.dom.getParents(U, M.dom.isBlock), $e = (Vt) => Vt.nodeName.toLowerCase() !== Fu(M);
47019
- return ro(te, (Vt) => $e(Vt) && mo(M.schema, Vt)).getOr(M.getBody());
47019
+ return to(te, (Vt) => $e(Vt) && mo(M.schema, Vt)).getOr(M.getBody());
47020
47020
  }, q = (M) => Lo(M).exists((U) => Vi(U.dom) && Mr(U).exists((te) => !Ho(te.dom)) && Ei(U).exists((te) => !Ho(te.dom))), ce = (M, U) => {
47021
47021
  const te = M.dom.getParents(U, "ol,ul", is(M, U));
47022
47022
  return qt(te);
@@ -47028,7 +47028,7 @@ function che() {
47028
47028
  return M.dom.getParents(U, "ol,ul", is(M, U));
47029
47029
  }, $n = (M) => {
47030
47030
  const U = Me(M), te = nt(M);
47031
- return ro(te, ($e) => q(ke.fromDom($e))).fold(() => an(M, U), ($e) => [$e]);
47031
+ return to(te, ($e) => q(ke.fromDom($e))).fold(() => an(M, U), ($e) => [$e]);
47032
47032
  }, an = (M, U) => {
47033
47033
  const te = je(U, ($e) => ce(M, $e).getOr($e));
47034
47034
  return rt(te);
@@ -47120,11 +47120,11 @@ function che() {
47120
47120
  return Io($e), Ba($e, te), tr(U, $e), U.concat($e);
47121
47121
  }, Hi = (M, U) => {
47122
47122
  let te = Xe.none();
47123
- const $e = kt(U, (Fe, Vt, to) => nu(Vt) ? to === 0 ? (te = Xe.some(Vt), Fe) : ia(M, Fe, Vt) : Vt.depth > Fe.length ? Zr(M, Fe, Vt) : ia(M, Fe, Vt), []);
47123
+ const $e = kt(U, (Fe, Vt, no) => nu(Vt) ? no === 0 ? (te = Xe.some(Vt), Fe) : ia(M, Fe, Vt) : Vt.depth > Fe.length ? Zr(M, Fe, Vt) : ia(M, Fe, Vt), []);
47124
47124
  return te.each((Fe) => {
47125
47125
  const Vt = ke.fromHtml(`<!--${Fe.content}-->`);
47126
- st($e).each((to) => {
47127
- vr(to.list, Vt);
47126
+ st($e).each((no) => {
47127
+ vr(no.list, Vt);
47128
47128
  });
47129
47129
  }), st($e).map((Fe) => Fe.list);
47130
47130
  }, Vs = (M, U) => {
@@ -47175,14 +47175,14 @@ function che() {
47175
47175
  U.each((Ro) => {
47176
47176
  vo(Ro.end, $e) && te.set(!1);
47177
47177
  });
47178
- const to = Ei($e).filter(lr).map((Ro) => hc(M, U, te, Ro)).getOr([]);
47179
- return Vt.toArray().concat(to);
47178
+ const no = Ei($e).filter(lr).map((Ro) => hc(M, U, te, Ro)).getOr([]);
47179
+ return Vt.toArray().concat(no);
47180
47180
  }, eh = (M, U, te, $e) => Mr($e).filter(lr).fold(() => Jd(M, U, te, $e), (Fe) => {
47181
- const Vt = kt(zo($e), (to, Ro, $o) => {
47181
+ const Vt = kt(zo($e), (no, Ro, $o) => {
47182
47182
  if ($o === 0)
47183
- return to;
47183
+ return no;
47184
47184
  if (Nc(Ro))
47185
- return to.concat(Jd(M, U, te, Ro));
47185
+ return no.concat(Jd(M, U, te, Ro));
47186
47186
  {
47187
47187
  const Zn = {
47188
47188
  isFragment: !0,
@@ -47192,13 +47192,13 @@ function che() {
47192
47192
  dirty: !1,
47193
47193
  parentListType: Rr(Fe)
47194
47194
  };
47195
- return to.concat(Zn);
47195
+ return no.concat(Zn);
47196
47196
  }
47197
47197
  }, []);
47198
47198
  return hc(M, U, te, Fe).concat(Vt);
47199
47199
  }), hc = (M, U, te, $e) => Kt(zo($e), (Fe) => {
47200
- const Vt = lr(Fe) ? hc : eh, to = M + 1;
47201
- return Vt(to, U, te, Fe);
47200
+ const Vt = lr(Fe) ? hc : eh, no = M + 1;
47201
+ return Vt(no, U, te, Fe);
47202
47202
  }), el = (M, U) => {
47203
47203
  const te = zh(!1), $e = 0;
47204
47204
  return je(M, (Fe) => ({
@@ -47218,7 +47218,7 @@ function che() {
47218
47218
  ye(Kn(M, et), (te) => Vs(U, te));
47219
47219
  }, Lg = (M) => {
47220
47220
  const U = je(Tn(M), ke.fromDom);
47221
- return pt(ro(U, Je(wi)), ro(Qt(U), Je(wi)), (te, $e) => ({
47221
+ return pt(to(U, Je(wi)), to(Qt(U), Je(wi)), (te, $e) => ({
47222
47222
  start: te,
47223
47223
  end: $e
47224
47224
  }));
@@ -47227,8 +47227,8 @@ function che() {
47227
47227
  ye($e, (Fe) => {
47228
47228
  Hh(Fe.entries, te);
47229
47229
  const Vt = Qm(M, Fe.entries);
47230
- ye(Vt, (to) => {
47231
- Uo(M, te === "Indent" ? "IndentList" : "OutdentList", to.dom);
47230
+ ye(Vt, (no) => {
47231
+ Uo(M, te === "Indent" ? "IndentList" : "OutdentList", no.dom);
47232
47232
  }), Te(Fe.sourceList, Vt), Wn(Fe.sourceList);
47233
47233
  });
47234
47234
  }, Uh = (M, U) => {
@@ -47245,8 +47245,8 @@ function che() {
47245
47245
  const U = {}, te = ($e) => {
47246
47246
  let Fe = M[$e ? "startContainer" : "endContainer"], Vt = M[$e ? "startOffset" : "endOffset"];
47247
47247
  if (Fo(Fe)) {
47248
- const to = gd.create("span", { "data-mce-type": "bookmark" });
47249
- Fe.hasChildNodes() ? (Vt = Math.min(Vt, Fe.childNodes.length - 1), $e ? Fe.insertBefore(to, Fe.childNodes[Vt]) : gd.insertAfter(to, Fe.childNodes[Vt])) : Fe.appendChild(to), Fe = to, Vt = 0;
47248
+ const no = gd.create("span", { "data-mce-type": "bookmark" });
47249
+ Fe.hasChildNodes() ? (Vt = Math.min(Vt, Fe.childNodes.length - 1), $e ? Fe.insertBefore(no, Fe.childNodes[Vt]) : gd.insertAfter(no, Fe.childNodes[Vt])) : Fe.appendChild(no), Fe = no, Vt = 0;
47250
47250
  }
47251
47251
  U[$e ? "startContainer" : "endContainer"] = Fe, U[$e ? "startOffset" : "endOffset"] = Vt;
47252
47252
  };
@@ -47263,13 +47263,13 @@ function che() {
47263
47263
  }
47264
47264
  return -1;
47265
47265
  };
47266
- let Vt = M[$e ? "startContainer" : "endContainer"], to = M[$e ? "startOffset" : "endOffset"];
47266
+ let Vt = M[$e ? "startContainer" : "endContainer"], no = M[$e ? "startOffset" : "endOffset"];
47267
47267
  if (Vt) {
47268
47268
  if (Fo(Vt) && Vt.parentNode) {
47269
47269
  const Ro = Vt;
47270
- to = Fe(Vt), Vt = Vt.parentNode, gd.remove(Ro), !Vt.hasChildNodes() && gd.isBlock(Vt) && Vt.appendChild(gd.create("br"));
47270
+ no = Fe(Vt), Vt = Vt.parentNode, gd.remove(Ro), !Vt.hasChildNodes() && gd.isBlock(Vt) && Vt.appendChild(gd.create("br"));
47271
47271
  }
47272
- M[$e ? "startContainer" : "endContainer"] = Vt, M[$e ? "startOffset" : "endOffset"] = to;
47272
+ M[$e ? "startContainer" : "endContainer"] = Vt, M[$e ? "startOffset" : "endOffset"] = no;
47273
47273
  }
47274
47274
  };
47275
47275
  U(!0), U();
@@ -47303,13 +47303,13 @@ function che() {
47303
47303
  let Fe = U[te ? "startContainer" : "endContainer"];
47304
47304
  const Vt = U[te ? "startOffset" : "endOffset"];
47305
47305
  Fo(Fe) && (Fe = Fe.childNodes[Math.min(Vt, Fe.childNodes.length - 1)] || Fe), !te && pl(Fe.nextSibling) && (Fe = Fe.nextSibling);
47306
- const to = ($o) => {
47306
+ const no = ($o) => {
47307
47307
  for (; !M.dom.isBlock($o) && $o.parentNode && $e !== $o; )
47308
47308
  $o = $o.parentNode;
47309
47309
  return $o;
47310
47310
  }, Ro = ($o, Zn) => {
47311
47311
  var Tr;
47312
- const Si = new To($o, to($o)), sl = Zn ? "next" : "prev";
47312
+ const Si = new To($o, no($o)), sl = Zn ? "next" : "prev";
47313
47313
  let yd;
47314
47314
  for (; yd = Si[sl](); )
47315
47315
  if (!(hr(M, yd) || nh(yd.textContent) || ((Tr = yd.textContent) === null || Tr === void 0 ? void 0 : Tr.length) === 0))
@@ -47336,10 +47336,10 @@ function che() {
47336
47336
  }
47337
47337
  return Fe;
47338
47338
  }, bd = (M, U, te) => {
47339
- const $e = [], Fe = M.dom, Vt = pd(M, U, !0, te), to = pd(M, U, !1, te);
47339
+ const $e = [], Fe = M.dom, Vt = pd(M, U, !0, te), no = pd(M, U, !1, te);
47340
47340
  let Ro;
47341
47341
  const $o = [];
47342
- for (let Zn = Vt; Zn && ($o.push(Zn), Zn !== to); Zn = Zn.nextSibling)
47342
+ for (let Zn = Vt; Zn && ($o.push(Zn), Zn !== no); Zn = Zn.nextSibling)
47343
47343
  ;
47344
47344
  return Ss.each($o, (Zn) => {
47345
47345
  var Tr;
@@ -47368,15 +47368,15 @@ function che() {
47368
47368
  }, Wf = (M, U, te) => {
47369
47369
  const $e = M.selection.getRng();
47370
47370
  let Fe = "LI";
47371
- const Vt = is(M, fc(M, $e)), to = M.dom;
47372
- if (to.getContentEditable(M.selection.getNode()) === "false")
47371
+ const Vt = is(M, fc(M, $e)), no = M.dom;
47372
+ if (no.getContentEditable(M.selection.getNode()) === "false")
47373
47373
  return;
47374
47374
  U = U.toUpperCase(), U === "DL" && (Fe = "DT");
47375
47375
  const Ro = ks($e), $o = Kn(bd(M, $e, Vt), M.dom.isEditable);
47376
47376
  Ss.each($o, (Zn) => {
47377
47377
  let Tr;
47378
47378
  const Si = Zn.previousSibling, sl = Zn.parentNode;
47379
- Vi(sl) || (Si && Ho(Si) && Si.nodeName === U && Uf(to, Si, te) ? (Tr = Si, Zn = to.rename(Zn, Fe), Si.appendChild(Zn)) : (Tr = to.create(U), sl.insertBefore(Tr, Zn), Tr.appendChild(Zn), Zn = to.rename(Zn, Fe)), Vm(to, Zn, [
47379
+ Vi(sl) || (Si && Ho(Si) && Si.nodeName === U && Uf(no, Si, te) ? (Tr = Si, Zn = no.rename(Zn, Fe), Si.appendChild(Zn)) : (Tr = no.create(U), sl.insertBefore(Tr, Zn), Tr.appendChild(Zn), Zn = no.rename(Zn, Fe)), Vm(no, Zn, [
47380
47380
  "margin",
47381
47381
  "margin-right",
47382
47382
  "margin-bottom",
@@ -47387,7 +47387,7 @@ function che() {
47387
47387
  "padding-bottom",
47388
47388
  "padding-left",
47389
47389
  "padding-top"
47390
- ]), tl(to, Tr, te), sh(M.dom, Tr));
47390
+ ]), tl(no, Tr, te), sh(M.dom, Tr));
47391
47391
  }), M.selection.setRng(qr(Ro));
47392
47392
  }, aa = (M, U) => Ho(M) && M.nodeName === (U == null ? void 0 : U.nodeName), Od = (M, U, te) => {
47393
47393
  const $e = M.getStyle(U, "list-style-type", !0), Fe = M.getStyle(te, "list-style-type", !0);
@@ -47413,8 +47413,8 @@ function che() {
47413
47413
  } else
47414
47414
  tl(M.dom, U, $e), Uo(M, va(te), U);
47415
47415
  }, Hm = (M, U, te, $e) => {
47416
- if (U.classList.forEach((Fe, Vt, to) => {
47417
- Fe.startsWith("tox-") && (to.remove(Fe), to.length === 0 && U.removeAttribute("class"));
47416
+ if (U.classList.forEach((Fe, Vt, no) => {
47417
+ Fe.startsWith("tox-") && (no.remove(Fe), no.length === 0 && U.removeAttribute("class"));
47418
47418
  }), U.nodeName !== te) {
47419
47419
  const Fe = M.dom.rename(U, te);
47420
47420
  tl(M.dom, Fe, $e), Uo(M, va(te), Fe);
@@ -47426,13 +47426,13 @@ function che() {
47426
47426
  Qg(M);
47427
47427
  else {
47428
47428
  Wf(M, $e, Fe);
47429
- const to = ks(M.selection.getRng()), Ro = Vt ? [
47429
+ const no = ks(M.selection.getRng()), Ro = Vt ? [
47430
47430
  U,
47431
47431
  ...te
47432
47432
  ] : te, $o = Vt && ws(U) ? Hm : Z1;
47433
47433
  Ss.each(Ro, (Zn) => {
47434
47434
  $o(M, Zn, $e, Fe);
47435
- }), M.selection.setRng(qr(to));
47435
+ }), M.selection.setRng(qr(no));
47436
47436
  }
47437
47437
  }, Wh = (M) => "list-style-type" in M, Jp = (M, U, te, $e) => {
47438
47438
  if (U !== M.getBody())
@@ -47441,8 +47441,8 @@ function che() {
47441
47441
  Qg(M);
47442
47442
  else {
47443
47443
  const Fe = ks(M.selection.getRng());
47444
- ws(U) && U.classList.forEach((to, Ro, $o) => {
47445
- to.startsWith("tox-") && ($o.remove(to), $o.length === 0 && U.removeAttribute("class"));
47444
+ ws(U) && U.classList.forEach((no, Ro, $o) => {
47445
+ no.startsWith("tox-") && ($o.remove(no), $o.length === 0 && U.removeAttribute("class"));
47446
47446
  }), tl(M.dom, U, $e);
47447
47447
  const Vt = M.dom.rename(U, te);
47448
47448
  sh(M.dom, Vt), M.selection.setRng(qr(Fe)), Wf(M, te, $e), Uo(M, va(te), Vt);
@@ -47475,13 +47475,13 @@ function che() {
47475
47475
  const Vt = U.startOffset;
47476
47476
  if (So(Fe) && (te ? Vt < Fe.data.length : Vt > 0))
47477
47477
  return Fe;
47478
- const to = M.schema.getNonEmptyElements();
47478
+ const no = M.schema.getNonEmptyElements();
47479
47479
  Fo(Fe) && (Fe = ao.getNode(Fe, Vt));
47480
47480
  const Ro = new To(Fe, $e);
47481
47481
  te && tu(M.dom, Fe) && Ro.next();
47482
47482
  const $o = te ? Ro.next.bind(Ro) : Ro.prev2.bind(Ro);
47483
47483
  for (; Fe = $o(); )
47484
- if (Fe.nodeName === "LI" && !Fe.hasChildNodes() || to[Fe.nodeName] || So(Fe) && Fe.data.length > 0)
47484
+ if (Fe.nodeName === "LI" && !Fe.hasChildNodes() || no[Fe.nodeName] || So(Fe) && Fe.data.length > 0)
47485
47485
  return Fe;
47486
47486
  return null;
47487
47487
  }, Zg = (M, U) => {
@@ -47523,17 +47523,17 @@ function che() {
47523
47523
  const Vt = qr(Fe);
47524
47524
  M.selection.setRng(Vt);
47525
47525
  }, In = (M, U) => {
47526
- const te = M.dom, $e = M.selection, Fe = $e.getStart(), Vt = co(M, Fe), to = te.getParent($e.getStart(), "LI", Vt);
47527
- if (to) {
47528
- const Ro = to.parentElement;
47526
+ const te = M.dom, $e = M.selection, Fe = $e.getStart(), Vt = co(M, Fe), no = te.getParent($e.getStart(), "LI", Vt);
47527
+ if (no) {
47528
+ const Ro = no.parentElement;
47529
47529
  if (Ro === M.getBody() && bl(te, Ro))
47530
47530
  return !0;
47531
- const $o = pa($e.getRng()), Zn = te.getParent(ru(M, $o, U, Vt), "LI", Vt), Tr = Zn && (U ? te.isChildOf(to, Zn) : te.isChildOf(Zn, to));
47532
- if (Zn && Zn !== to && !Tr)
47531
+ const $o = pa($e.getRng()), Zn = te.getParent(ru(M, $o, U, Vt), "LI", Vt), Tr = Zn && (U ? te.isChildOf(no, Zn) : te.isChildOf(Zn, no));
47532
+ if (Zn && Zn !== no && !Tr)
47533
47533
  return M.undoManager.transact(() => {
47534
- U ? Xh(M, $o, Zn, to) : eu(to) ? th(M) : Ui(M, $o, to, Zn);
47534
+ U ? Xh(M, $o, Zn, no) : eu(no) ? th(M) : Ui(M, $o, no, Zn);
47535
47535
  }), !0;
47536
- if (Tr && !U && Zn !== to)
47536
+ if (Tr && !U && Zn !== no)
47537
47537
  return M.undoManager.transact(() => {
47538
47538
  if ($o.commonAncestorContainer.parentElement) {
47539
47539
  const Si = ks($o), sl = $o.commonAncestorContainer.parentElement;
@@ -47554,13 +47554,13 @@ function che() {
47554
47554
  }, iu = (M, U) => {
47555
47555
  const te = M.dom, $e = M.selection.getStart(), Fe = co(M, $e), Vt = te.getParent($e, te.isBlock, Fe);
47556
47556
  if (Vt && te.isEmpty(Vt, void 0, { checkRootAsContent: !0 })) {
47557
- const to = pa(M.selection.getRng()), Ro = te.getParent(ru(M, to, U, Fe), "LI", Fe);
47557
+ const no = pa(M.selection.getRng()), Ro = te.getParent(ru(M, no, U, Fe), "LI", Fe);
47558
47558
  if (Ro) {
47559
47559
  const $o = (sl) => rn([
47560
47560
  "td",
47561
47561
  "th",
47562
47562
  "caption"
47563
- ], Rr(sl)), Zn = (sl) => sl.dom === Fe, Tr = di(ke.fromDom(Ro), $o, Zn), Si = di(ke.fromDom(to.startContainer), $o, Zn);
47563
+ ], Rr(sl)), Zn = (sl) => sl.dom === Fe, Tr = di(ke.fromDom(Ro), $o, Zn), Si = di(ke.fromDom(no.startContainer), $o, Zn);
47564
47564
  return Ue(Tr, Si, vo) ? (M.undoManager.transact(() => {
47565
47565
  const sl = Ro.parentNode;
47566
47566
  Vg(te, Vt, Fe), sh(te, sl), M.selection.select(Ro, !0), M.selection.collapse(U);
@@ -47703,8 +47703,8 @@ function che() {
47703
47703
  var au = tinymce.util.Tools.resolve("tinymce.html.Node");
47704
47704
  const lu = (M) => M.type === 3, sr = (M) => M.length === 0, Rl = (M) => {
47705
47705
  const U = (Fe, Vt) => {
47706
- const to = au.create("li");
47707
- ye(Fe, (Ro) => to.append(Ro)), Vt ? M.insert(to, Vt, !0) : M.append(to);
47706
+ const no = au.create("li");
47707
+ ye(Fe, (Ro) => no.append(Ro)), Vt ? M.insert(no, Vt, !0) : M.append(no);
47708
47708
  }, te = (Fe, Vt) => lu(Vt) ? [
47709
47709
  ...Fe,
47710
47710
  Vt
@@ -47891,7 +47891,7 @@ function uhe() {
47891
47891
  for (let wt = 0; wt < se.length; wt++)
47892
47892
  se[wt].each(Ve);
47893
47893
  return Ee;
47894
- }, kt = (se, Ee) => se ? Je.some(Ee) : Je.none(), Q = (se) => (Ee) => Ee.options.get(se), ro = (se) => {
47894
+ }, kt = (se, Ee) => se ? Je.some(Ee) : Je.none(), Q = (se) => (Ee) => Ee.options.get(se), to = (se) => {
47895
47895
  const Ee = se.options.register;
47896
47896
  Ee("link_assume_external_targets", {
47897
47897
  processor: (Ve) => {
@@ -48559,7 +48559,7 @@ function uhe() {
48559
48559
  };
48560
48560
  var Mc = () => {
48561
48561
  u.add("link", (se) => {
48562
- ro(se), Oi(se), Rc(se), vi(se);
48562
+ to(se), Oi(se), Rc(se), vi(se);
48563
48563
  });
48564
48564
  };
48565
48565
  Mc();
@@ -48680,7 +48680,7 @@ function dhe() {
48680
48680
  Kn.apply(ce, q[Me]);
48681
48681
  }
48682
48682
  return ce;
48683
- }, kt = (q, ce) => ce >= 0 && ce < q.length ? Xe.some(q[ce]) : Xe.none(), Q = (q) => kt(q, 0), ro = (q, ce) => {
48683
+ }, kt = (q, ce) => ce >= 0 && ce < q.length ? Xe.some(q[ce]) : Xe.none(), Q = (q) => kt(q, 0), to = (q, ce) => {
48684
48684
  for (let Me = 0; Me < q.length; Me++) {
48685
48685
  const nt = ce(q[Me], Me);
48686
48686
  if (nt.isSome())
@@ -49007,7 +49007,7 @@ function dhe() {
49007
49007
  });
49008
49008
  }
49009
49009
  }), Me;
49010
- }, Ss = (q = lo) => (ce) => ce ? Xe.from(ce).map((Me) => ar(Me, q)) : Xe.none(), Da = (q) => Ss(lo)(q), Zi = (q) => je(q, "items"), So = (q, ce) => ro(q, (Me) => Zi(Me) ? So(Me.items, ce) : Me.value === ce ? Xe.some(Me) : Xe.none()), Ho = {
49010
+ }, Ss = (q = lo) => (ce) => ce ? Xe.from(ce).map((Me) => ar(Me, q)) : Xe.none(), Da = (q) => Ss(lo)(q), Zi = (q) => je(q, "items"), So = (q, ce) => to(q, (Me) => Zi(Me) ? So(Me.items, ce) : Me.value === ce ? Xe.some(Me) : Xe.none()), Ho = {
49011
49011
  sanitizer: Ss,
49012
49012
  sanitize: Da,
49013
49013
  findEntry: (q, ce) => q.bind((Me) => So(Me, ce))
@@ -49570,8 +49570,8 @@ function hhe() {
49570
49570
  });
49571
49571
  }, Xt = le("audio_template_callback"), at = le("video_template_callback"), oe = le("iframe_template_callback"), At = le("media_live_embeds"), rn = le("media_filter_html"), cn = le("media_url_resolver"), je = le("media_alt_source"), ye = le("media_poster"), Kn = le("media_dimensions");
49572
49572
  var dt = tinymce.util.Tools.resolve("tinymce.util.Tools"), kt = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), Q = tinymce.util.Tools.resolve("tinymce.html.DomParser");
49573
- const ro = kt.DOM, Lt = (Pe) => Pe.replace(/px$/, ""), Kt = (Pe) => {
49574
- const Te = Pe.attr("style"), ut = Te ? ro.parseStyle(Te) : {};
49573
+ const to = kt.DOM, Lt = (Pe) => Pe.replace(/px$/, ""), Kt = (Pe) => {
49574
+ const Te = Pe.attr("style"), ut = Te ? to.parseStyle(Te) : {};
49575
49575
  return {
49576
49576
  type: "ephox-embed-iri",
49577
49577
  source: Pe.attr("data-ephox-embed-iri"),
@@ -50328,7 +50328,7 @@ function fhe() {
50328
50328
  return cn(A, (fe, Qe) => {
50329
50329
  ee.push(I(fe, Qe));
50330
50330
  }), ee;
50331
- }, kt = (A) => dt(A, _e), Q = (A) => At(A).length, ro = (A, I) => Lt(A, I) ? oe.from(A[I]) : oe.none(), Lt = (A, I) => rn.call(A, I), Kt = (A, I) => Lt(A, I) && A[I] !== void 0 && A[I] !== null, Qt = (A) => {
50331
+ }, kt = (A) => dt(A, _e), Q = (A) => At(A).length, to = (A, I) => Lt(A, I) ? oe.from(A[I]) : oe.none(), Lt = (A, I) => rn.call(A, I), Kt = (A, I) => Lt(A, I) && A[I] !== void 0 && A[I] !== null, Qt = (A) => {
50332
50332
  for (const I in A)
50333
50333
  if (rn.call(A, I))
50334
50334
  return !1;
@@ -51284,7 +51284,7 @@ function fhe() {
51284
51284
  Rn === "" ? A.formatter.remove(en, { value: null }, I, !0) : A.formatter.apply(en, { value: Rn }, I);
51285
51285
  }
51286
51286
  };
51287
- } }, Fe = $i("th"), Vt = (A, I) => A && I ? "sectionCells" : A ? "section" : "cells", to = (A) => {
51287
+ } }, Fe = $i("th"), Vt = (A, I) => A && I ? "sectionCells" : A ? "section" : "cells", no = (A) => {
51288
51288
  const I = A.section === "thead", ee = md(Ro(A.cells), "th");
51289
51289
  return A.section === "tfoot" ? { type: "footer" } : I || ee ? {
51290
51290
  type: "header",
@@ -51294,7 +51294,7 @@ function fhe() {
51294
51294
  const I = xo(A, (ee) => Fe(ee.element));
51295
51295
  return I.length === 0 ? oe.some("td") : I.length === A.length ? oe.some("th") : oe.none();
51296
51296
  }, $o = (A) => {
51297
- const I = pt(A, (Qe) => to(Qe).type), ee = rt(I, "header"), fe = rt(I, "footer");
51297
+ const I = pt(A, (Qe) => no(Qe).type), ee = rt(I, "header"), fe = rt(I, "footer");
51298
51298
  if (!ee && !fe)
51299
51299
  return oe.some("body");
51300
51300
  {
@@ -51412,9 +51412,9 @@ Required: ` + I.join(", "));
51412
51412
  "bottom"
51413
51413
  ], "valign"), zO = (A, I) => {
51414
51414
  const ee = Zm(A), fe = Ig(A), Qe = () => ({
51415
- borderstyle: ro(ee, "border-style").getOr(""),
51416
- bordercolor: Xm(ro(ee, "border-color").getOr("")),
51417
- backgroundcolor: Xm(ro(ee, "background-color").getOr(""))
51415
+ borderstyle: to(ee, "border-style").getOr(""),
51416
+ bordercolor: Xm(to(ee, "border-color").getOr("")),
51417
+ backgroundcolor: Xm(to(ee, "background-color").getOr(""))
51418
51418
  }), Pt = {
51419
51419
  height: "",
51420
51420
  width: "100%",
@@ -51426,9 +51426,9 @@ Required: ` + I.join(", "));
51426
51426
  border: ""
51427
51427
  }, en = () => {
51428
51428
  const Xs = ee["border-width"];
51429
- return hc(A) && Xs ? { border: Xs } : ro(fe, "border").fold(() => ({}), (Hs) => ({ border: Hs }));
51429
+ return hc(A) && Xs ? { border: Xs } : to(fe, "border").fold(() => ({}), (Hs) => ({ border: Hs }));
51430
51430
  }, Rn = I ? Qe() : {}, ko = () => {
51431
- const Xs = ro(ee, "border-spacing").or(ro(fe, "cellspacing")).fold(() => ({}), (Lr) => ({ cellspacing: Lr })), Hs = ro(ee, "border-padding").or(ro(fe, "cellpadding")).fold(() => ({}), (Lr) => ({ cellpadding: Lr }));
51431
+ const Xs = to(ee, "border-spacing").or(to(fe, "cellspacing")).fold(() => ({}), (Lr) => ({ cellspacing: Lr })), Hs = to(ee, "border-padding").or(to(fe, "cellpadding")).fold(() => ({}), (Lr) => ({ cellpadding: Lr }));
51432
51432
  return {
51433
51433
  ...Xs,
51434
51434
  ...Hs
@@ -52578,16 +52578,16 @@ function ghe() {
52578
52578
  for (; Co = Ps.next(); )
52579
52579
  Co.nodeType === 3 ? yn += Kn(Co.data) : Fn(Co) && yn.length && (vo.push(yn), yn = "");
52580
52580
  return yn.length && vo.push(yn), vo;
52581
- }, Q = (Ne) => Ne.replace(/\u200B/g, ""), ro = (Ne) => Ne.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length, Lt = (Ne, ze) => {
52581
+ }, Q = (Ne) => Ne.replace(/\u200B/g, ""), to = (Ne) => Ne.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length, Lt = (Ne, ze) => {
52582
52582
  const Ke = Q(kt(Ne, ze).join(`
52583
52583
  `));
52584
52584
  return ye(Ke.split(""), c).length;
52585
52585
  }, Kt = (Ne, ze) => {
52586
52586
  const Ke = kt(Ne, ze).join("");
52587
- return ro(Ke);
52587
+ return to(Ke);
52588
52588
  }, Qt = (Ne, ze) => {
52589
52589
  const Ke = kt(Ne, ze).join("").replace(/\s/g, "");
52590
- return ro(Ke);
52590
+ return to(Ke);
52591
52591
  }, Oe = (Ne, ze) => () => ze(Ne.getBody(), Ne.schema), st = (Ne, ze) => () => ze(Ne.selection.getRng().cloneContents(), Ne.schema), qt = (Ne) => Oe(Ne, Lt), rt = (Ne) => ({
52592
52592
  body: {
52593
52593
  getWordCount: qt(Ne),
@@ -52830,7 +52830,7 @@ function phe() {
52830
52830
  cn.apply(be, he[et]);
52831
52831
  }
52832
52832
  return be;
52833
- }, ro = (he, be) => Q(je(he, be)), Lt = (he, be) => be >= 0 && be < he.length ? rn.some(he[be]) : rn.none(), Kt = (he) => Lt(he, 0), Qt = (he, be) => {
52833
+ }, to = (he, be) => Q(je(he, be)), Lt = (he, be) => be >= 0 && be < he.length ? rn.some(he[be]) : rn.none(), Kt = (he) => Lt(he, 0), Qt = (he, be) => {
52834
52834
  for (let et = 0; et < he.length; et++) {
52835
52835
  const Et = be(he[et], et);
52836
52836
  if (Et.isSome())
@@ -53273,7 +53273,7 @@ function phe() {
53273
53273
  const Et = (Ja) => ws(Ja, "*:not(.tox-silver-sink)"), Hn = (Ja) => (Ba) => {
53274
53274
  const yr = ss(Ba, "style"), Xr = yr === void 0 ? "no-styles" : yr.trim();
53275
53275
  Xr !== Ja && (Js(Ba, si, Xr), sa(Ba, he.parseStyle(Ja)));
53276
- }, as = an(be, "*"), Io = ro(as, Et), tr = Uo(et);
53276
+ }, as = an(be, "*"), Io = to(as, Et), tr = Uo(et);
53277
53277
  ye(Io, Hn(Bt)), ye(as, Hn(ra + Zs + tr)), Hn((Br === !0 ? "" : ra) + Zs + tr)(be);
53278
53278
  }, yi = (he) => {
53279
53279
  const be = $n("[" + si + "]");
@@ -53616,7 +53616,7 @@ function Ohe() {
53616
53616
  select: (us) => rn(Oe).exists((xo) => us === xo || pt[xo] === us && !K[us]),
53617
53617
  onSetup: kt(Oe, sn)
53618
53618
  });
53619
- }, ro = (Oe, st, qt, rt, sn, Ue) => {
53619
+ }, to = (Oe, st, qt, rt, sn, Ue) => {
53620
53620
  Oe.ui.registry.addToggleButton(st, {
53621
53621
  active: !1,
53622
53622
  tooltip: qt,
@@ -53625,7 +53625,7 @@ function Ohe() {
53625
53625
  onAction: () => Oe.queryCommandState(rt) || Ue === "" ? Oe.execCommand(rt) : o(Oe, sn, Ue)
53626
53626
  });
53627
53627
  }, Lt = (Oe, st, qt, rt, sn, Ue) => {
53628
- Ue.length > 1 ? Q(Oe, st, qt, rt, sn, Ue) : ro(Oe, st, qt, rt, sn, dt(Ue[0]));
53628
+ Ue.length > 1 ? Q(Oe, st, qt, rt, sn, Ue) : to(Oe, st, qt, rt, sn, dt(Ue[0]));
53629
53629
  }, Kt = (Oe) => {
53630
53630
  Lt(Oe, "numlist", "Numbered list", "InsertOrderedList", "OL", m(Oe)), Lt(Oe, "bullist", "Bullet list", "InsertUnorderedList", "UL", O(Oe));
53631
53631
  };
@@ -53777,7 +53777,7 @@ function vhe() {
53777
53777
  return Nt.sort(Le), Nt;
53778
53778
  }, kt = Object.hasOwnProperty, Q = (Re, Le) => kt.call(Re, Le);
53779
53779
  typeof window < "u" || Function("return this;")();
53780
- const ro = 9, Lt = 11, Kt = 1, Qt = 3, Oe = (Re) => Re.dom.nodeType, qt = ((Re) => (Le) => Oe(Le) === Re)(Qt), rt = (Re, Le, Nt) => {
53780
+ const to = 9, Lt = 11, Kt = 1, Qt = 3, Oe = (Re) => Re.dom.nodeType, qt = ((Re) => (Le) => Oe(Le) === Re)(Qt), rt = (Re, Le, Nt) => {
53781
53781
  if (O(Nt) || T(Nt) || F(Nt))
53782
53782
  Re.setAttribute(Le, Nt + "");
53783
53783
  else
@@ -53807,7 +53807,7 @@ function vhe() {
53807
53807
  fromText: K,
53808
53808
  fromDom: us,
53809
53809
  fromPoint: (Re, Le, Nt) => _e.from(Re.dom.elementFromPoint(Le, Nt)).map(us)
53810
- }, Xo = (Re) => Re.nodeType !== Kt && Re.nodeType !== ro && Re.nodeType !== Lt || Re.childElementCount === 0, _i = (Re, Le) => {
53810
+ }, Xo = (Re) => Re.nodeType !== Kt && Re.nodeType !== to && Re.nodeType !== Lt || Re.childElementCount === 0, _i = (Re, Le) => {
53811
53811
  const Nt = Le === void 0 ? document : Le.dom;
53812
53812
  return Xo(Nt) ? [] : oe(Nt.querySelectorAll(Re), xo.fromDom);
53813
53813
  }, Ne = (Re) => _e.from(Re.dom.parentNode).map(xo.fromDom), ze = (Re) => oe(Re.dom.childNodes, xo.fromDom), Ke = (Re, Le) => ({
@@ -54316,8 +54316,8 @@ function yhe() {
54316
54316
  }, m = c("allow_html_in_named_anchor"), O = "a:not([href])", w = (dt) => !dt, T = (dt) => dt.getAttribute("id") || dt.getAttribute("name") || "", P = (dt) => dt.nodeName.toLowerCase() === "a", R = (dt) => P(dt) && !dt.getAttribute("href") && T(dt) !== "", F = (dt) => R(dt) && !dt.firstChild, H = (dt) => {
54317
54317
  const kt = dt.dom;
54318
54318
  o(kt).walk(dt.selection.getRng(), (Q) => {
54319
- i.each(Q, (ro) => {
54320
- F(ro) && kt.remove(ro, !1);
54319
+ i.each(Q, (to) => {
54320
+ F(to) && kt.remove(to, !1);
54321
54321
  });
54322
54322
  });
54323
54323
  }, Y = (dt) => /^[A-Za-z][A-Za-z0-9\-:._]*$/.test(dt), me = (dt) => dt.dom.getParent(dt.selection.getStart(), O), De = (dt) => {
@@ -54370,8 +54370,8 @@ function yhe() {
54370
54370
  });
54371
54371
  }, at = (dt) => w(dt.attr("href")) && !w(dt.attr("id") || dt.attr("name")), oe = (dt) => at(dt) && !dt.firstChild, At = (dt) => (kt) => {
54372
54372
  for (let Q = 0; Q < kt.length; Q++) {
54373
- const ro = kt[Q];
54374
- oe(ro) && ro.attr("contenteditable", dt);
54373
+ const to = kt[Q];
54374
+ oe(to) && to.attr("contenteditable", dt);
54375
54375
  }
54376
54376
  }, rn = (dt) => {
54377
54377
  dt.on("PreInit", () => {
@@ -54385,7 +54385,7 @@ function yhe() {
54385
54385
  split: !0,
54386
54386
  deep: !0,
54387
54387
  attributes: { id: "%value" },
54388
- onmatch: (kt, Q, ro) => R(kt)
54388
+ onmatch: (kt, Q, to) => R(kt)
54389
54389
  });
54390
54390
  }, je = (dt) => (kt) => {
54391
54391
  const Q = () => {
@@ -54401,9 +54401,9 @@ function yhe() {
54401
54401
  tooltip: "Anchor",
54402
54402
  onAction: kt,
54403
54403
  onSetup: (Q) => {
54404
- const ro = dt.selection.selectorChangedWithUnbind("a:not([href])", Q.setActive).unbind, Lt = je(dt)(Q);
54404
+ const to = dt.selection.selectorChangedWithUnbind("a:not([href])", Q.setActive).unbind, Lt = je(dt)(Q);
54405
54405
  return () => {
54406
- ro(), Lt();
54406
+ to(), Lt();
54407
54407
  };
54408
54408
  }
54409
54409
  }), dt.ui.registry.addMenuItem("anchor", {
@@ -54463,7 +54463,7 @@ function whe() {
54463
54463
  container: Ue,
54464
54464
  offset: pt
54465
54465
  };
54466
- }, ro = (rt, sn) => {
54466
+ }, to = (rt, sn) => {
54467
54467
  var Ue;
54468
54468
  const pt = rt.schema.getVoidElements(), K = h(rt), { dom: us, selection: Oo } = rt;
54469
54469
  if (us.getParent(Oo.getNode(), "a[href]") !== null || rt.mode.isReadOnly())
@@ -54511,10 +54511,10 @@ function whe() {
54511
54511
  }
54512
54512
  pt.moveToBookmark(Oo), rt.nodeChanged();
54513
54513
  }, Kt = (rt) => {
54514
- const sn = ro(rt, -1);
54514
+ const sn = to(rt, -1);
54515
54515
  De(sn) && Lt(rt, sn);
54516
54516
  }, Qt = Kt, Oe = (rt) => {
54517
- const sn = ro(rt, 0);
54517
+ const sn = to(rt, 0);
54518
54518
  De(sn) && Lt(rt, sn);
54519
54519
  }, st = (rt) => {
54520
54520
  rt.on("keydown", (sn) => {
@@ -55839,21 +55839,21 @@ function xhe() {
55839
55839
  ]
55840
55840
  ]
55841
55841
  }
55842
- ], Q = (Ne) => At.grep(Ne, (ze) => Kn(ze) && ze.length === 2), ro = (Ne) => Kn(Ne) ? Q(Ne) : typeof Ne == "function" ? Ne() : [], Lt = (Ne, ze) => {
55842
+ ], Q = (Ne) => At.grep(Ne, (ze) => Kn(ze) && ze.length === 2), to = (Ne) => Kn(Ne) ? Q(Ne) : typeof Ne == "function" ? Ne() : [], Lt = (Ne, ze) => {
55843
55843
  const Ke = je(Ne);
55844
55844
  Ke && (ze = [{
55845
55845
  name: dt,
55846
- characters: ro(Ke)
55846
+ characters: to(Ke)
55847
55847
  }]);
55848
55848
  const ke = ye(Ne);
55849
55849
  if (ke) {
55850
55850
  const Fn = At.grep(ze, (vo) => vo.name === dt);
55851
55851
  return Fn.length ? (Fn[0].characters = [
55852
55852
  ...Fn[0].characters,
55853
- ...ro(ke)
55853
+ ...to(ke)
55854
55854
  ], ze) : ze.concat({
55855
55855
  name: dt,
55856
- characters: ro(ke)
55856
+ characters: to(ke)
55857
55857
  });
55858
55858
  }
55859
55859
  return ze;
@@ -57311,9 +57311,9 @@ class XS {
57311
57311
  */
57312
57312
  extend(o, i = o) {
57313
57313
  if (o <= this.anchor && i >= this.anchor)
57314
- return so.range(o, i);
57314
+ return ro.range(o, i);
57315
57315
  let c = Math.abs(o - this.anchor) > Math.abs(i - this.anchor) ? o : i;
57316
- return so.range(this.anchor, c);
57316
+ return ro.range(this.anchor, c);
57317
57317
  }
57318
57318
  /**
57319
57319
  Compare this range to another range.
@@ -57334,7 +57334,7 @@ class XS {
57334
57334
  static fromJSON(o) {
57335
57335
  if (!o || typeof o.anchor != "number" || typeof o.head != "number")
57336
57336
  throw new RangeError("Invalid JSON representation for SelectionRange");
57337
- return so.range(o.anchor, o.head);
57337
+ return ro.range(o.anchor, o.head);
57338
57338
  }
57339
57339
  /**
57340
57340
  @internal
@@ -57343,7 +57343,7 @@ class XS {
57343
57343
  return new XS(o, i, c);
57344
57344
  }
57345
57345
  }
57346
- class so {
57346
+ class ro {
57347
57347
  constructor(o, i) {
57348
57348
  this.ranges = o, this.mainIndex = i;
57349
57349
  }
@@ -57352,7 +57352,7 @@ class so {
57352
57352
  position for changes.
57353
57353
  */
57354
57354
  map(o, i = -1) {
57355
- return o.empty ? this : so.create(this.ranges.map((c) => c.map(o, i)), this.mainIndex);
57355
+ return o.empty ? this : ro.create(this.ranges.map((c) => c.map(o, i)), this.mainIndex);
57356
57356
  }
57357
57357
  /**
57358
57358
  Compare this selection to another selection. By default, ranges
@@ -57381,13 +57381,13 @@ class so {
57381
57381
  holding only the main range from this selection.
57382
57382
  */
57383
57383
  asSingle() {
57384
- return this.ranges.length == 1 ? this : new so([this.main], 0);
57384
+ return this.ranges.length == 1 ? this : new ro([this.main], 0);
57385
57385
  }
57386
57386
  /**
57387
57387
  Extend this selection with an extra range.
57388
57388
  */
57389
57389
  addRange(o, i = !0) {
57390
- return so.create([o].concat(this.ranges), i ? 0 : this.mainIndex + 1);
57390
+ return ro.create([o].concat(this.ranges), i ? 0 : this.mainIndex + 1);
57391
57391
  }
57392
57392
  /**
57393
57393
  Replace a given range with another range, and then normalize the
@@ -57395,7 +57395,7 @@ class so {
57395
57395
  */
57396
57396
  replaceRange(o, i = this.mainIndex) {
57397
57397
  let c = this.ranges.slice();
57398
- return c[i] = o, so.create(c, this.mainIndex);
57398
+ return c[i] = o, ro.create(c, this.mainIndex);
57399
57399
  }
57400
57400
  /**
57401
57401
  Convert this selection to an object that can be serialized to
@@ -57410,13 +57410,13 @@ class so {
57410
57410
  static fromJSON(o) {
57411
57411
  if (!o || !Array.isArray(o.ranges) || typeof o.main != "number" || o.main >= o.ranges.length)
57412
57412
  throw new RangeError("Invalid JSON representation for EditorSelection");
57413
- return new so(o.ranges.map((i) => XS.fromJSON(i)), o.main);
57413
+ return new ro(o.ranges.map((i) => XS.fromJSON(i)), o.main);
57414
57414
  }
57415
57415
  /**
57416
57416
  Create a selection holding a single range.
57417
57417
  */
57418
57418
  static single(o, i = o) {
57419
- return new so([so.range(o, i)], 0);
57419
+ return new ro([ro.range(o, i)], 0);
57420
57420
  }
57421
57421
  /**
57422
57422
  Sort and merge the given set of ranges, creating a valid
@@ -57428,10 +57428,10 @@ class so {
57428
57428
  for (let c = 0, h = 0; h < o.length; h++) {
57429
57429
  let m = o[h];
57430
57430
  if (m.empty ? m.from <= c : m.from < c)
57431
- return so.normalized(o.slice(), i);
57431
+ return ro.normalized(o.slice(), i);
57432
57432
  c = m.to;
57433
57433
  }
57434
- return new so(o, i);
57434
+ return new ro(o, i);
57435
57435
  }
57436
57436
  /**
57437
57437
  Create a cursor selection range at the given position. You can
@@ -57457,10 +57457,10 @@ class so {
57457
57457
  let m = o[h], O = o[h - 1];
57458
57458
  if (m.empty ? m.from <= O.to : m.from < O.to) {
57459
57459
  let w = O.from, T = Math.max(m.to, O.to);
57460
- h <= i && i--, o.splice(--h, 2, m.anchor > m.head ? so.range(T, w) : so.range(w, T));
57460
+ h <= i && i--, o.splice(--h, 2, m.anchor > m.head ? ro.range(T, w) : ro.range(w, T));
57461
57461
  }
57462
57462
  }
57463
- return new so(o, i);
57463
+ return new ro(o, i);
57464
57464
  }
57465
57465
  }
57466
57466
  function $se(u, o) {
@@ -58008,7 +58008,7 @@ function SK(u, o, i) {
58008
58008
  let c = o.selection, h = u4(o.annotations);
58009
58009
  return o.userEvent && (h = h.concat(hd.userEvent.of(o.userEvent))), {
58010
58010
  changes: o.changes instanceof Bu ? o.changes : Bu.of(o.changes || [], i, u.facet(Dse)),
58011
- selection: c && (c instanceof so ? c : so.single(c.anchor, c.head)),
58011
+ selection: c && (c instanceof ro ? c : ro.single(c.anchor, c.head)),
58012
58012
  effects: u4(o.effects),
58013
58013
  annotations: h,
58014
58014
  scrollIntoView: !!o.scrollIntoView
@@ -58148,7 +58148,7 @@ class Ii {
58148
58148
  replaceSelection(o) {
58149
58149
  return typeof o == "string" && (o = this.toText(o)), this.changeByRange((i) => ({
58150
58150
  changes: { from: i.from, to: i.to, insert: o },
58151
- range: so.cursor(i.from + o.length)
58151
+ range: ro.cursor(i.from + o.length)
58152
58152
  }));
58153
58153
  }
58154
58154
  /**
@@ -58173,7 +58173,7 @@ class Ii {
58173
58173
  }
58174
58174
  return {
58175
58175
  changes: h,
58176
- selection: so.create(m, i.mainIndex),
58176
+ selection: ro.create(m, i.mainIndex),
58177
58177
  effects: O
58178
58178
  };
58179
58179
  }
@@ -58243,7 +58243,7 @@ class Ii {
58243
58243
  }
58244
58244
  return Ii.create({
58245
58245
  doc: o.doc,
58246
- selection: so.fromJSON(o.selection),
58246
+ selection: ro.fromJSON(o.selection),
58247
58247
  extensions: i.extensions ? h.concat([i.extensions]) : h
58248
58248
  });
58249
58249
  }
@@ -58253,7 +58253,7 @@ class Ii {
58253
58253
  transactions.
58254
58254
  */
58255
58255
  static create(o = {}) {
58256
- let i = vF.resolve(o.extensions || [], /* @__PURE__ */ new Map()), c = o.doc instanceof ui ? o.doc : ui.of((o.doc || "").split(i.staticFacet(Ii.lineSeparator) || bK)), h = o.selection ? o.selection instanceof so ? o.selection : so.single(o.selection.anchor, o.selection.head) : so.single(0);
58256
+ let i = vF.resolve(o.extensions || [], /* @__PURE__ */ new Map()), c = o.doc instanceof ui ? o.doc : ui.of((o.doc || "").split(i.staticFacet(Ii.lineSeparator) || bK)), h = o.selection ? o.selection instanceof ro ? o.selection : ro.single(o.selection.anchor, o.selection.head) : ro.single(0);
58257
58257
  return $se(h, c.length), i.staticFacet(xK) || (h = h.asSingle()), new Ii(i, c, h, i.dynamicSlots.map(() => null), (m, O) => O.create(m), null);
58258
58258
  }
58259
58259
  /**
@@ -58358,7 +58358,7 @@ class Ii {
58358
58358
  break;
58359
58359
  w = T;
58360
58360
  }
58361
- return O == w ? null : so.range(O + c, w + c);
58361
+ return O == w ? null : ro.range(O + c, w + c);
58362
58362
  }
58363
58363
  }
58364
58364
  Ii.allowMultipleSelections = xK;
@@ -60710,7 +60710,7 @@ function yfe(u, o, i, c, h) {
60710
60710
  let R = Ih(u.text, O, T.forward(h, i));
60711
60711
  (R < T.from || R > T.to) && (R = P), are = u.text.slice(Math.min(O, R), Math.max(O, R));
60712
60712
  let F = w == (h ? o.length - 1 : 0) ? null : o[w + (h ? 1 : -1)];
60713
- return F && R == P && F.level + (h ? 0 : 1) < T.level ? so.cursor(F.side(!h, i) + u.from, F.forward(h, i) ? 1 : -1, F.level) : so.cursor(R + u.from, T.forward(h, i) ? -1 : 1, T.level);
60713
+ return F && R == P && F.level + (h ? 0 : 1) < T.level ? ro.cursor(F.side(!h, i) + u.from, F.forward(h, i) ? 1 : -1, F.level) : ro.cursor(R + u.from, T.forward(h, i) ? -1 : 1, T.level);
60714
60714
  }
60715
60715
  function wfe(u, o, i) {
60716
60716
  for (let c = o; c < i; c++) {
@@ -60735,7 +60735,7 @@ class h4 {
60735
60735
  return o.empty ? this : new h4(this.range.map(o), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
60736
60736
  }
60737
60737
  clip(o) {
60738
- return this.range.to <= o.doc.length ? this : new h4(so.cursor(o.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
60738
+ return this.range.to <= o.doc.length ? this : new h4(ro.cursor(o.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
60739
60739
  }
60740
60740
  }
60741
60741
  const UQ = /* @__PURE__ */ ga.define({ map: (u, o) => u.map(o) }), pre = /* @__PURE__ */ ga.define();
@@ -61382,7 +61382,7 @@ function Pfe(u, o) {
61382
61382
  function Afe(u, o, i = 1) {
61383
61383
  let c = u.charCategorizer(o), h = u.doc.lineAt(o), m = o - h.from;
61384
61384
  if (h.length == 0)
61385
- return so.cursor(o);
61385
+ return ro.cursor(o);
61386
61386
  m == 0 ? i = 1 : m == h.length && (i = -1);
61387
61387
  let O = m, w = m;
61388
61388
  i < 0 ? O = Ih(h.text, m, !1) : w = Ih(h.text, m);
@@ -61399,7 +61399,7 @@ function Afe(u, o, i = 1) {
61399
61399
  break;
61400
61400
  w = P;
61401
61401
  }
61402
- return so.range(O + h.from, w + h.from);
61402
+ return ro.range(O + h.from, w + h.from);
61403
61403
  }
61404
61404
  function Dfe(u, o) {
61405
61405
  return o.left > u ? o.left - u : Math.max(0, u - o.right);
@@ -61560,9 +61560,9 @@ function Lfe(u, o, i, c) {
61560
61560
  y: (m.top + m.bottom) / 2
61561
61561
  });
61562
61562
  if (T != null)
61563
- return so.cursor(T, i ? -1 : 1);
61563
+ return ro.cursor(T, i ? -1 : 1);
61564
61564
  }
61565
- return so.cursor(i ? h.to : h.from, i ? -1 : 1);
61565
+ return ro.cursor(i ? h.to : h.from, i ? -1 : 1);
61566
61566
  }
61567
61567
  function Bne(u, o, i, c) {
61568
61568
  let h = u.state.doc.lineAt(o.head), m = u.bidiSpans(h), O = u.textDirectionAt(h.from);
@@ -61595,7 +61595,7 @@ function Ife(u, o, i) {
61595
61595
  function Qfe(u, o, i, c) {
61596
61596
  let h = o.head, m = i ? 1 : -1;
61597
61597
  if (h == (i ? u.state.doc.length : 0))
61598
- return so.cursor(h, o.assoc);
61598
+ return ro.cursor(h, o.assoc);
61599
61599
  let O = o.goalColumn, w, T = u.contentDOM.getBoundingClientRect(), P = u.coordsAtPos(h, o.assoc || -1), R = u.documentTop;
61600
61600
  if (P)
61601
61601
  O == null && (O = P.left - T.left), w = m < 0 ? P.top : P.bottom;
@@ -61608,7 +61608,7 @@ function Qfe(u, o, i, c) {
61608
61608
  let me = w + (H + Y) * m, De = xre(u, { x: F, y: me }, !1, m);
61609
61609
  if (me < T.top || me > T.bottom || (m < 0 ? De < h : De > h)) {
61610
61610
  let xe = u.docView.coordsForChar(De), _e = !xe || me < xe.top ? -1 : 1;
61611
- return so.cursor(De, _e, void 0, O);
61611
+ return ro.cursor(De, _e, void 0, O);
61612
61612
  }
61613
61613
  }
61614
61614
  }
@@ -61628,7 +61628,7 @@ function cF(u, o, i) {
61628
61628
  }
61629
61629
  function WY(u, o, i) {
61630
61630
  let c = cF(u.state.facet(wJ).map((h) => h(u)), i.from, o.head > i.from ? -1 : 1);
61631
- return c == i.from ? i : so.cursor(c, c < i.from ? 1 : -1);
61631
+ return c == i.from ? i : ro.cursor(c, c < i.from ? 1 : -1);
61632
61632
  }
61633
61633
  const LR = "￿";
61634
61634
  class Ffe {
@@ -61719,7 +61719,7 @@ class Vfe {
61719
61719
  let F = Math.min(T, P), H = Math.max(T, P), Y = R.from - F, me = R.to - H;
61720
61720
  (Y == 0 || Y == 1 || F == 0) && (me == 0 || me == -1 || H == o.state.doc.length) && (T = 0, P = o.state.doc.length);
61721
61721
  }
61722
- this.newSel = so.single(P, T);
61722
+ this.newSel = ro.single(P, T);
61723
61723
  }
61724
61724
  }
61725
61725
  }
@@ -61737,12 +61737,12 @@ function Sre(u, o) {
61737
61737
  } else c && (!u.hasFocus && u.state.facet(NO) || c.main.eq(h)) && (c = null);
61738
61738
  if (!i && !c)
61739
61739
  return !1;
61740
- if (!i && o.typeOver && !h.empty && c && c.main.empty ? i = { from: h.from, to: h.to, insert: u.state.doc.slice(h.from, h.to) } : (Do.mac || Do.android) && i && i.from == i.to && i.from == h.head - 1 && /^\. ?$/.test(i.insert.toString()) && u.contentDOM.getAttribute("autocorrect") == "off" ? (c && i.insert.length == 2 && (c = so.single(c.main.anchor - 1, c.main.head - 1)), i = { from: i.from, to: i.to, insert: ui.of([i.insert.toString().replace(".", " ")]) }) : i && i.from >= h.from && i.to <= h.to && (i.from != h.from || i.to != h.to) && h.to - h.from - (i.to - i.from) <= 4 ? i = {
61740
+ if (!i && o.typeOver && !h.empty && c && c.main.empty ? i = { from: h.from, to: h.to, insert: u.state.doc.slice(h.from, h.to) } : (Do.mac || Do.android) && i && i.from == i.to && i.from == h.head - 1 && /^\. ?$/.test(i.insert.toString()) && u.contentDOM.getAttribute("autocorrect") == "off" ? (c && i.insert.length == 2 && (c = ro.single(c.main.anchor - 1, c.main.head - 1)), i = { from: i.from, to: i.to, insert: ui.of([i.insert.toString().replace(".", " ")]) }) : i && i.from >= h.from && i.to <= h.to && (i.from != h.from || i.to != h.to) && h.to - h.from - (i.to - i.from) <= 4 ? i = {
61741
61741
  from: h.from,
61742
61742
  to: h.to,
61743
61743
  insert: u.state.doc.slice(h.from, i.from).append(i.insert).append(u.state.doc.slice(i.to, h.to))
61744
61744
  } : Do.chrome && i && i.from == i.to && i.from == h.head && i.insert.toString() == `
61745
- ` && u.lineWrapping && (c && (c = so.single(c.main.anchor - 1, c.main.head - 1)), i = { from: h.from, to: h.to, insert: ui.of([" "]) }), i)
61745
+ ` && u.lineWrapping && (c && (c = ro.single(c.main.anchor - 1, c.main.head - 1)), i = { from: h.from, to: h.to, insert: ui.of([" "]) }), i)
61746
61746
  return SJ(u, i, c, m);
61747
61747
  if (c && !c.main.eq(h)) {
61748
61748
  let O = !1, w = "select";
@@ -61791,7 +61791,7 @@ function zfe(u, o, i) {
61791
61791
  let _e = h.changes({ from: xe, to: De, insert: o.insert }), Je = me.to - m.to;
61792
61792
  return {
61793
61793
  changes: _e,
61794
- range: T ? so.range(Math.max(0, T.anchor + Je), Math.max(0, T.head + Je)) : me.map(_e)
61794
+ range: T ? ro.range(Math.max(0, T.anchor + Je), Math.max(0, T.head + Je)) : me.map(_e)
61795
61795
  };
61796
61796
  });
61797
61797
  } else
@@ -61836,7 +61836,7 @@ function Wfe(u, o) {
61836
61836
  if (u.length == 0)
61837
61837
  return null;
61838
61838
  let i = u[0].pos, c = u.length == 2 ? u[1].pos : i;
61839
- return i > -1 && c > -1 ? so.single(i + o, c + o) : null;
61839
+ return i > -1 && c > -1 ? ro.single(i + o, c + o) : null;
61840
61840
  }
61841
61841
  class jfe {
61842
61842
  setSelectionOrigin(o) {
@@ -61985,14 +61985,14 @@ class Yfe {
61985
61985
  let h = o.ranges[c], m = null;
61986
61986
  if (h.empty) {
61987
61987
  let O = cF(this.atoms, h.from, 0);
61988
- O != h.from && (m = so.cursor(O, -1));
61988
+ O != h.from && (m = ro.cursor(O, -1));
61989
61989
  } else {
61990
61990
  let O = cF(this.atoms, h.from, -1), w = cF(this.atoms, h.to, 1);
61991
- (O != h.from || w != h.to) && (m = so.range(h.from == h.anchor ? O : w, h.from == h.head ? O : w));
61991
+ (O != h.from || w != h.to) && (m = ro.range(h.from == h.anchor ? O : w, h.from == h.head ? O : w));
61992
61992
  }
61993
61993
  m && (i || (i = o.ranges.slice()), i[c] = m);
61994
61994
  }
61995
- return i ? so.create(i, o.mainIndex) : o;
61995
+ return i ? ro.create(i, o.mainIndex) : o;
61996
61996
  }
61997
61997
  select(o) {
61998
61998
  let { view: i } = this, c = this.skipAtoms(this.style.get(o, this.extend, this.multiple));
@@ -62066,14 +62066,14 @@ function _re(u, o) {
62066
62066
  let F = i.toText((O ? m.line(h++).text : o) + i.lineBreak);
62067
62067
  return {
62068
62068
  changes: { from: R.from, insert: F },
62069
- range: so.cursor(P.from + F.length)
62069
+ range: ro.cursor(P.from + F.length)
62070
62070
  };
62071
62071
  });
62072
62072
  } else O ? c = i.changeByRange((T) => {
62073
62073
  let P = m.line(h++);
62074
62074
  return {
62075
62075
  changes: { from: T.from, to: T.to, insert: P.text },
62076
- range: so.cursor(T.from + P.length)
62076
+ range: ro.cursor(T.from + P.length)
62077
62077
  };
62078
62078
  }) : c = i.replaceSelection(m);
62079
62079
  u.dispatch(c, {
@@ -62113,12 +62113,12 @@ qp.mousedown = (u, o) => {
62113
62113
  };
62114
62114
  function Ine(u, o, i, c) {
62115
62115
  if (c == 1)
62116
- return so.cursor(o, i);
62116
+ return ro.cursor(o, i);
62117
62117
  if (c == 2)
62118
62118
  return Afe(u.state, o, i);
62119
62119
  {
62120
62120
  let h = Dc.find(u.docView, o), m = u.state.doc.lineAt(h ? h.posAtEnd : o), O = h ? h.posAtStart : m.from, w = h ? h.posAtEnd : m.to;
62121
- return w < u.state.doc.length && w == m.to && w++, so.range(O, w);
62121
+ return w < u.state.doc.length && w == m.to && w++, ro.range(O, w);
62122
62122
  }
62123
62123
  }
62124
62124
  let Qne = (u, o, i) => o >= i.top && o <= i.bottom && u >= i.left && u <= i.right;
@@ -62159,9 +62159,9 @@ function rme(u, o) {
62159
62159
  let T = Fne(u, m), P, R = Ine(u, T.pos, T.bias, c);
62160
62160
  if (i.pos != T.pos && !O) {
62161
62161
  let F = Ine(u, i.pos, i.bias, c), H = Math.min(F.from, R.from), Y = Math.max(F.to, R.to);
62162
- R = H < R.from ? so.range(H, Y) : so.range(Y, H);
62162
+ R = H < R.from ? ro.range(H, Y) : ro.range(Y, H);
62163
62163
  }
62164
- return O ? h.replaceRange(h.main.extend(R.from, R.to)) : w && c == 1 && h.ranges.length > 1 && (P = ime(h, T.pos)) ? P : w ? h.addRange(R) : so.create([R]);
62164
+ return O ? h.replaceRange(h.main.extend(R.from, R.to)) : w && c == 1 && h.ranges.length > 1 && (P = ime(h, T.pos)) ? P : w ? h.addRange(R) : ro.create([R]);
62165
62165
  }
62166
62166
  };
62167
62167
  }
@@ -62169,7 +62169,7 @@ function ime(u, o) {
62169
62169
  for (let i = 0; i < u.ranges.length; i++) {
62170
62170
  let { from: c, to: h } = u.ranges[i];
62171
62171
  if (c <= o && h >= o)
62172
- return so.create(u.ranges.slice(0, i).concat(u.ranges.slice(i + 1)), u.mainIndex == i ? 0 : u.mainIndex - (u.mainIndex > i ? 1 : 0));
62172
+ return ro.create(u.ranges.slice(0, i).concat(u.ranges.slice(i + 1)), u.mainIndex == i ? 0 : u.mainIndex - (u.mainIndex > i ? 1 : 0));
62173
62173
  }
62174
62174
  return null;
62175
62175
  }
@@ -62179,7 +62179,7 @@ qp.dragstart = (u, o) => {
62179
62179
  let h = u.docView.nearest(o.target);
62180
62180
  if (h && h.isWidget) {
62181
62181
  let m = h.posAtStart, O = m + h.length;
62182
- (m >= i.to || O <= i.from) && (i = so.range(m, O));
62182
+ (m >= i.to || O <= i.from) && (i = ro.range(m, O));
62183
62183
  }
62184
62184
  }
62185
62185
  let { inputState: c } = u;
@@ -62991,7 +62991,7 @@ class qne {
62991
62991
  let xe = wme(o, (_e) => _e.from >= H.from && _e.to <= H.to && Math.abs(_e.from - R) < m && Math.abs(_e.to - F) < m && !De.some((Je) => _e.from < Je && _e.to > Je));
62992
62992
  if (!xe) {
62993
62993
  if (F < H.to && i && c && i.visibleRanges.some((le) => le.from <= F && le.to >= F)) {
62994
- let le = i.moveToLineBoundary(so.cursor(F), !1, !0).head;
62994
+ let le = i.moveToLineBoundary(ro.cursor(F), !1, !0).head;
62995
62995
  le > R && (F = le);
62996
62996
  }
62997
62997
  let _e = this.gapSize(H, R, F, Y), Je = c || _e < 2e6 ? _e : 2e6;
@@ -63704,13 +63704,13 @@ class Tme {
63704
63704
  let P = { from: w, to: T, insert: ui.of(c.text.split(`
63705
63705
  `)) };
63706
63706
  if (P.from == this.from && m < this.from ? P.from = m : P.to == this.to && m > this.to && (P.to = m), P.from == P.to && !P.insert.length) {
63707
- let R = so.single(this.toEditorPos(c.selectionStart), this.toEditorPos(c.selectionEnd));
63707
+ let R = ro.single(this.toEditorPos(c.selectionStart), this.toEditorPos(c.selectionEnd));
63708
63708
  R.main.eq(h) || o.dispatch({ selection: R, userEvent: "select" });
63709
63709
  return;
63710
63710
  }
63711
63711
  if ((Do.mac || Do.android) && P.from == O - 1 && /^\. ?$/.test(c.text) && o.contentDOM.getAttribute("autocorrect") == "off" && (P = { from: w, to: T, insert: ui.of([c.text.replace(".", " ")]) }), this.pendingContextChange = P, !o.state.readOnly) {
63712
63712
  let R = this.to - this.from + (P.to - P.from + P.insert.length);
63713
- SJ(o, P, so.single(this.toEditorPos(c.selectionStart, R), this.toEditorPos(c.selectionEnd, R)));
63713
+ SJ(o, P, ro.single(this.toEditorPos(c.selectionStart, R), this.toEditorPos(c.selectionEnd, R)));
63714
63714
  }
63715
63715
  this.pendingContextChange && (this.revertPending(o.state), this.setSelection(o.state));
63716
63716
  }, this.handlers.characterboundsupdate = (c) => {
@@ -63933,7 +63933,7 @@ class ps {
63933
63933
  for (let H of o) {
63934
63934
  if (F && (F = F.map(H.changes)), H.scrollIntoView) {
63935
63935
  let { main: Y } = H.state.selection;
63936
- F = new h4(Y.empty ? Y : so.cursor(Y.head, Y.head > Y.anchor ? -1 : 1));
63936
+ F = new h4(Y.empty ? Y : ro.cursor(Y.head, Y.head > Y.anchor ? -1 : 1));
63937
63937
  }
63938
63938
  for (let Y of H.effects)
63939
63939
  Y.is(UQ) && (F = Y.value.clip(this.state));
@@ -64271,7 +64271,7 @@ class ps {
64271
64271
  */
64272
64272
  visualLineSide(o, i) {
64273
64273
  let c = this.bidiSpans(o), h = this.textDirectionAt(o.from), m = c[i ? c.length - 1 : 0];
64274
- return so.cursor(m.side(i, h) + o.from, m.forward(!i, h) ? 1 : -1);
64274
+ return ro.cursor(m.side(i, h) + o.from, m.forward(!i, h) ? 1 : -1);
64275
64275
  }
64276
64276
  /**
64277
64277
  Move to the next line boundary in the given direction. If
@@ -64451,7 +64451,7 @@ class ps {
64451
64451
  cause it to scroll the given position or range into view.
64452
64452
  */
64453
64453
  static scrollIntoView(o, i = {}) {
64454
- return UQ.of(new h4(typeof o == "number" ? so.cursor(o) : o, i.y, i.x, i.yMargin, i.xMargin));
64454
+ return UQ.of(new h4(typeof o == "number" ? ro.cursor(o) : o, i.y, i.x, i.yMargin, i.xMargin));
64455
64455
  }
64456
64456
  /**
64457
64457
  Return an effect that resets the editor to its current (at the
@@ -64467,7 +64467,7 @@ class ps {
64467
64467
  */
64468
64468
  scrollSnapshot() {
64469
64469
  let { scrollTop: o, scrollLeft: i } = this.scrollDOM, c = this.viewState.scrollAnchorAt(o);
64470
- return UQ.of(new h4(so.cursor(c.from), "start", "start", c.top - o, i, !0));
64470
+ return UQ.of(new h4(ro.cursor(c.from), "start", "start", c.top - o, i, !0));
64471
64471
  }
64472
64472
  /**
64473
64473
  Enable or disable tab-focus mode, which disables key bindings
@@ -66376,7 +66376,7 @@ function tge(u) {
66376
66376
  return;
66377
66377
  } else
66378
66378
  throw new RangeError(`Unrecognized record size: ${dt}`);
66379
- let ro = T[je], Lt, Kt, Qt = ye - Xt;
66379
+ let to = T[je], Lt, Kt, Qt = ye - Xt;
66380
66380
  if (Kn - ye <= h && (Kt = xe(w.pos - at, rn))) {
66381
66381
  let Oe = new Uint16Array(Kt.size - Kt.skip), st = w.pos - Kt.size, qt = Oe.length;
66382
66382
  for (; w.pos > st; )
@@ -66389,10 +66389,10 @@ function tge(u) {
66389
66389
  for (; w.pos > Oe; )
66390
66390
  rt >= 0 && w.id == rt && w.size >= 0 ? (w.end <= Ue - h && (me(st, qt, ye, sn, w.end, Ue, rt, kt, Q), sn = st.length, Ue = w.end), w.next()) : cn > 2500 ? H(ye, Oe, st, qt) : F(ye, Oe, st, qt, rt, cn + 1);
66391
66391
  if (rt >= 0 && sn > 0 && sn < st.length && me(st, qt, ye, sn, ye, Ue, rt, kt, Q), st.reverse(), qt.reverse(), rt > -1 && sn > 0) {
66392
- let pt = Y(ro, Q);
66393
- Lt = $J(ro, st, qt, 0, st.length, 0, Kn - ye, pt, pt);
66392
+ let pt = Y(to, Q);
66393
+ Lt = $J(to, st, qt, 0, st.length, 0, Kn - ye, pt, pt);
66394
66394
  } else
66395
- Lt = De(ro, st, qt, Kn - ye, kt - Kn, Q);
66395
+ Lt = De(to, st, qt, Kn - ye, kt - Kn, Q);
66396
66396
  }
66397
66397
  oe.push(Lt), At.push(Qt);
66398
66398
  }
@@ -66454,7 +66454,7 @@ function tge(u) {
66454
66454
  let kt = oe.pos - dt;
66455
66455
  if (dt < 0 || kt < Kn || oe.start < je)
66456
66456
  break;
66457
- let Q = oe.id >= O ? 4 : 0, ro = oe.start;
66457
+ let Q = oe.id >= O ? 4 : 0, to = oe.start;
66458
66458
  for (oe.next(); oe.pos > kt; ) {
66459
66459
  if (oe.size < 0)
66460
66460
  if (oe.size == -3)
@@ -66464,7 +66464,7 @@ function tge(u) {
66464
66464
  else oe.id >= O && (Q += 4);
66465
66465
  oe.next();
66466
66466
  }
66467
- rn = ro, At += dt, cn += Q;
66467
+ rn = to, At += dt, cn += Q;
66468
66468
  }
66469
66469
  return (at < 0 || At == Xt) && (ye.size = At, ye.start = rn, ye.skip = cn), ye.size > 4 ? ye : void 0;
66470
66470
  }
@@ -68512,7 +68512,7 @@ function Wge(u, o, i = o.selection.ranges) {
68512
68512
  return null;
68513
68513
  }
68514
68514
  function $4(u, o) {
68515
- return so.create(u.ranges.map(o), u.mainIndex);
68515
+ return ro.create(u.ranges.map(o), u.mainIndex);
68516
68516
  }
68517
68517
  function Q1(u, o) {
68518
68518
  return u.update({ selection: o, scrollIntoView: !0, userEvent: "select" });
@@ -68522,7 +68522,7 @@ function Gp({ state: u, dispatch: o }, i) {
68522
68522
  return c.eq(u.selection, !0) ? !1 : (o(Q1(u, c)), !0);
68523
68523
  }
68524
68524
  function nZ(u, o) {
68525
- return so.cursor(o ? u.to : u.from);
68525
+ return ro.cursor(o ? u.to : u.from);
68526
68526
  }
68527
68527
  function oie(u, o) {
68528
68528
  return Gp(u, (i) => i.empty ? u.moveByChar(i, o) : nZ(i, o));
@@ -68550,7 +68550,7 @@ function oZ(u, o, i) {
68550
68550
  qge(u, P, h) ? c = P : T = i ? P.to : P.from;
68551
68551
  }
68552
68552
  let m = c.type.prop(h), O, w;
68553
- return m && (O = i ? l4(u, c.from, 1) : l4(u, c.to, -1)) && O.matched ? w = i ? O.end.to : O.end.from : w = i ? c.to : c.from, so.cursor(w, i ? -1 : 1);
68553
+ return m && (O = i ? l4(u, c.from, 1) : l4(u, c.to, -1)) && O.matched ? w = i ? O.end.to : O.end.from : w = i ? c.to : c.from, ro.cursor(w, i ? -1 : 1);
68554
68554
  }
68555
68555
  const Gge = (u) => Gp(u, (o) => oZ(u.state, o, !Yd(u))), Yge = (u) => Gp(u, (o) => oZ(u.state, o, Yd(u)));
68556
68556
  function aie(u, o) {
@@ -68595,11 +68595,11 @@ function v2(u, o, i) {
68595
68595
  let c = u.lineBlockAt(o.head), h = u.moveToLineBoundary(o, i);
68596
68596
  if (h.head == o.head && h.head != (i ? c.to : c.from) && (h = u.moveToLineBoundary(o, i, !1)), !i && h.head == c.from && c.length) {
68597
68597
  let m = /^\s*/.exec(u.state.sliceDoc(c.from, Math.min(c.from + 100, c.to)))[0].length;
68598
- m && o.head != c.from + m && (h = so.cursor(c.from + m));
68598
+ m && o.head != c.from + m && (h = ro.cursor(c.from + m));
68599
68599
  }
68600
68600
  return h;
68601
68601
  }
68602
- const Kge = (u) => Gp(u, (o) => v2(u, o, !0)), Jge = (u) => Gp(u, (o) => v2(u, o, !1)), epe = (u) => Gp(u, (o) => v2(u, o, !Yd(u))), tpe = (u) => Gp(u, (o) => v2(u, o, Yd(u))), npe = (u) => Gp(u, (o) => so.cursor(u.lineBlockAt(o.head).from, 1)), ope = (u) => Gp(u, (o) => so.cursor(u.lineBlockAt(o.head).to, -1));
68602
+ const Kge = (u) => Gp(u, (o) => v2(u, o, !0)), Jge = (u) => Gp(u, (o) => v2(u, o, !1)), epe = (u) => Gp(u, (o) => v2(u, o, !Yd(u))), tpe = (u) => Gp(u, (o) => v2(u, o, Yd(u))), npe = (u) => Gp(u, (o) => ro.cursor(u.lineBlockAt(o.head).from, 1)), ope = (u) => Gp(u, (o) => ro.cursor(u.lineBlockAt(o.head).to, -1));
68603
68603
  function spe(u, o, i) {
68604
68604
  let c = !1, h = $4(u.selection, (m) => {
68605
68605
  let O = l4(u, m.head, -1) || l4(u, m.head, 1) || m.head > 0 && l4(u, m.head - 1, 1) || m.head < u.doc.length && l4(u, m.head + 1, -1);
@@ -68607,7 +68607,7 @@ function spe(u, o, i) {
68607
68607
  return m;
68608
68608
  c = !0;
68609
68609
  let w = O.start.from == m.head ? O.end.to : O.end.from;
68610
- return so.cursor(w);
68610
+ return ro.cursor(w);
68611
68611
  });
68612
68612
  return c ? (o(Q1(u, h)), !0) : !1;
68613
68613
  }
@@ -68615,7 +68615,7 @@ const rpe = ({ state: u, dispatch: o }) => spe(u, o);
68615
68615
  function Bg(u, o) {
68616
68616
  let i = $4(u.state.selection, (c) => {
68617
68617
  let h = o(c);
68618
- return so.range(c.anchor, h.head, h.goalColumn, h.bidiLevel || void 0);
68618
+ return ro.range(c.anchor, h.head, h.goalColumn, h.bidiLevel || void 0);
68619
68619
  });
68620
68620
  return i.eq(u.state.selection) ? !1 : (u.dispatch(Q1(u.state, i)), !0);
68621
68621
  }
@@ -68634,9 +68634,9 @@ const bie = (u) => pie(u, !1), Oie = (u) => pie(u, !0);
68634
68634
  function vie(u, o) {
68635
68635
  return Bg(u, (i) => u.moveVertically(i, o, uie(u).height));
68636
68636
  }
68637
- const Toe = (u) => vie(u, !1), _oe = (u) => vie(u, !0), upe = (u) => Bg(u, (o) => v2(u, o, !0)), dpe = (u) => Bg(u, (o) => v2(u, o, !1)), hpe = (u) => Bg(u, (o) => v2(u, o, !Yd(u))), fpe = (u) => Bg(u, (o) => v2(u, o, Yd(u))), mpe = (u) => Bg(u, (o) => so.cursor(u.lineBlockAt(o.head).from)), gpe = (u) => Bg(u, (o) => so.cursor(u.lineBlockAt(o.head).to)), Eoe = ({ state: u, dispatch: o }) => (o(Q1(u, { anchor: 0 })), !0), $oe = ({ state: u, dispatch: o }) => (o(Q1(u, { anchor: u.doc.length })), !0), Poe = ({ state: u, dispatch: o }) => (o(Q1(u, { anchor: u.selection.main.anchor, head: 0 })), !0), Aoe = ({ state: u, dispatch: o }) => (o(Q1(u, { anchor: u.selection.main.anchor, head: u.doc.length })), !0), ppe = ({ state: u, dispatch: o }) => (o(u.update({ selection: { anchor: 0, head: u.doc.length }, userEvent: "select" })), !0), bpe = ({ state: u, dispatch: o }) => {
68638
- let i = sZ(u).map(({ from: c, to: h }) => so.range(c, Math.min(h + 1, u.doc.length)));
68639
- return o(u.update({ selection: so.create(i), userEvent: "select" })), !0;
68637
+ const Toe = (u) => vie(u, !1), _oe = (u) => vie(u, !0), upe = (u) => Bg(u, (o) => v2(u, o, !0)), dpe = (u) => Bg(u, (o) => v2(u, o, !1)), hpe = (u) => Bg(u, (o) => v2(u, o, !Yd(u))), fpe = (u) => Bg(u, (o) => v2(u, o, Yd(u))), mpe = (u) => Bg(u, (o) => ro.cursor(u.lineBlockAt(o.head).from)), gpe = (u) => Bg(u, (o) => ro.cursor(u.lineBlockAt(o.head).to)), Eoe = ({ state: u, dispatch: o }) => (o(Q1(u, { anchor: 0 })), !0), $oe = ({ state: u, dispatch: o }) => (o(Q1(u, { anchor: u.doc.length })), !0), Poe = ({ state: u, dispatch: o }) => (o(Q1(u, { anchor: u.selection.main.anchor, head: 0 })), !0), Aoe = ({ state: u, dispatch: o }) => (o(Q1(u, { anchor: u.selection.main.anchor, head: u.doc.length })), !0), ppe = ({ state: u, dispatch: o }) => (o(u.update({ selection: { anchor: 0, head: u.doc.length }, userEvent: "select" })), !0), bpe = ({ state: u, dispatch: o }) => {
68638
+ let i = sZ(u).map(({ from: c, to: h }) => ro.range(c, Math.min(h + 1, u.doc.length)));
68639
+ return o(u.update({ selection: ro.create(i), userEvent: "select" })), !0;
68640
68640
  }, Ope = ({ state: u, dispatch: o }) => {
68641
68641
  let i = $4(u.selection, (c) => {
68642
68642
  let h = fd(u), m = h.resolveStack(c.from, 1);
@@ -68647,14 +68647,14 @@ const Toe = (u) => vie(u, !1), _oe = (u) => vie(u, !0), upe = (u) => Bg(u, (o) =
68647
68647
  for (let O = m; O; O = O.next) {
68648
68648
  let { node: w } = O;
68649
68649
  if ((w.from < c.from && w.to >= c.to || w.to > c.to && w.from <= c.from) && O.next)
68650
- return so.range(w.to, w.from);
68650
+ return ro.range(w.to, w.from);
68651
68651
  }
68652
68652
  return c;
68653
68653
  });
68654
68654
  return i.eq(u.selection) ? !1 : (o(Q1(u, i)), !0);
68655
68655
  }, vpe = ({ state: u, dispatch: o }) => {
68656
68656
  let i = u.selection, c = null;
68657
- return i.ranges.length > 1 ? c = so.create([i.main]) : i.main.empty || (c = so.create([so.cursor(i.main.head)])), c ? (o(Q1(u, c)), !0) : !1;
68657
+ return i.ranges.length > 1 ? c = ro.create([i.main]) : i.main.empty || (c = ro.create([ro.cursor(i.main.head)])), c ? (o(Q1(u, c)), !0) : !1;
68658
68658
  };
68659
68659
  function rM(u, o) {
68660
68660
  if (u.state.readOnly)
@@ -68666,7 +68666,7 @@ function rM(u, o) {
68666
68666
  T < O ? (i = "delete.backward", T = oF(u, T, !1)) : T > O && (i = "delete.forward", T = oF(u, T, !0)), O = Math.min(O, T), w = Math.max(w, T);
68667
68667
  } else
68668
68668
  O = oF(u, O, !1), w = oF(u, w, !0);
68669
- return O == w ? { range: m } : { changes: { from: O, to: w }, range: so.cursor(O, O < m.head ? -1 : 1) };
68669
+ return O == w ? { range: m } : { changes: { from: O, to: w }, range: ro.cursor(O, O < m.head ? -1 : 1) };
68670
68670
  });
68671
68671
  return h.changes.empty ? !1 : (u.dispatch(c.update(h, {
68672
68672
  scrollIntoView: !0,
@@ -68721,7 +68721,7 @@ const yie = (u, o, i) => rM(u, (c) => {
68721
68721
  return !1;
68722
68722
  let i = u.changeByRange((c) => ({
68723
68723
  changes: { from: c.from, to: c.to, insert: ui.of(["", ""]) },
68724
- range: so.cursor(c.from)
68724
+ range: ro.cursor(c.from)
68725
68725
  }));
68726
68726
  return o(u.update(i, { scrollIntoView: !0, userEvent: "input" })), !0;
68727
68727
  }, Cpe = ({ state: u, dispatch: o }) => {
@@ -68733,7 +68733,7 @@ const yie = (u, o, i) => rM(u, (c) => {
68733
68733
  let h = c.from, m = u.doc.lineAt(h), O = h == m.from ? h - 1 : Ih(m.text, h - m.from, !1) + m.from, w = h == m.to ? h + 1 : Ih(m.text, h - m.from, !0) + m.from;
68734
68734
  return {
68735
68735
  changes: { from: O, to: w, insert: u.doc.slice(h, w).append(u.doc.slice(O, h)) },
68736
- range: so.cursor(w)
68736
+ range: ro.cursor(w)
68737
68737
  };
68738
68738
  });
68739
68739
  return i.changes.empty ? !1 : (o(u.update(i, { scrollIntoView: !0, userEvent: "move.character" })), !0);
@@ -68762,17 +68762,17 @@ function kie(u, o, i) {
68762
68762
  if (i) {
68763
68763
  c.push({ from: m.to, to: O.to }, { from: m.from, insert: O.text + u.lineBreak });
68764
68764
  for (let T of m.ranges)
68765
- h.push(so.range(Math.min(u.doc.length, T.anchor + w), Math.min(u.doc.length, T.head + w)));
68765
+ h.push(ro.range(Math.min(u.doc.length, T.anchor + w), Math.min(u.doc.length, T.head + w)));
68766
68766
  } else {
68767
68767
  c.push({ from: O.from, to: m.from }, { from: m.to, insert: u.lineBreak + O.text });
68768
68768
  for (let T of m.ranges)
68769
- h.push(so.range(T.anchor - w, T.head - w));
68769
+ h.push(ro.range(T.anchor - w, T.head - w));
68770
68770
  }
68771
68771
  }
68772
68772
  return c.length ? (o(u.update({
68773
68773
  changes: c,
68774
68774
  scrollIntoView: !0,
68775
- selection: so.create(h, u.selection.mainIndex),
68775
+ selection: ro.create(h, u.selection.mainIndex),
68776
68776
  userEvent: "move.line"
68777
68777
  })), !0) : !1;
68778
68778
  }
@@ -68819,7 +68819,7 @@ function Tie(u) {
68819
68819
  let F = ["", AF(o, R)];
68820
68820
  return T && F.push(AF(o, P.lineIndent(w.from, -1))), {
68821
68821
  changes: { from: m, to: O, insert: ui.of(F) },
68822
- range: so.cursor(m + 1 + F[1].length)
68822
+ range: ro.cursor(m + 1 + F[1].length)
68823
68823
  };
68824
68824
  });
68825
68825
  return i(o.update(c, { scrollIntoView: !0, userEvent: "input" })), !0;
@@ -68836,7 +68836,7 @@ function NJ(u, o) {
68836
68836
  let m = u.changes(h);
68837
68837
  return {
68838
68838
  changes: h,
68839
- range: so.range(m.mapPos(c.anchor, 1), m.mapPos(c.head, 1))
68839
+ range: ro.range(m.mapPos(c.anchor, 1), m.mapPos(c.head, 1))
68840
68840
  };
68841
68841
  });
68842
68842
  }
@@ -70493,7 +70493,7 @@ function T0e(u, o, i, c) {
70493
70493
  let T = u.toText(o);
70494
70494
  return {
70495
70495
  changes: { from: w.from + m, to: c == h.from ? w.to : w.from + O, insert: T },
70496
- range: so.cursor(w.from + m + T.length)
70496
+ range: ro.cursor(w.from + m + T.length)
70497
70497
  };
70498
70498
  })), { scrollIntoView: !0, userEvent: "input.complete" });
70499
70499
  }
@@ -71439,7 +71439,7 @@ const iM = /* @__PURE__ */ ga.define({
71439
71439
  provide: (u) => ps.decorations.from(u, (o) => o ? o.deco : xc.none)
71440
71440
  });
71441
71441
  function VJ(u, o) {
71442
- return so.create(u.filter((i) => i.field == o).map((i) => so.range(i.from, i.to)));
71442
+ return ro.create(u.filter((i) => i.field == o).map((i) => ro.range(i.from, i.to)));
71443
71443
  }
71444
71444
  function e1e(u) {
71445
71445
  let o = ZJ.parse(u);
@@ -71783,7 +71783,7 @@ const g1e = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(nav
71783
71783
  let Y = F.parent, me = Y.parent;
71784
71784
  if (me && Y.from == R - 2 && ((H = Goe(O.doc, me.firstChild, R)) || ((P = me.firstChild) === null || P === void 0 ? void 0 : P.name) == "JSXFragmentTag")) {
71785
71785
  let De = `${H}>`;
71786
- return { range: so.cursor(R + De.length, -1), changes: { from: R, insert: De } };
71786
+ return { range: ro.cursor(R + De.length, -1), changes: { from: R, insert: De } };
71787
71787
  }
71788
71788
  } else if (c == ">") {
71789
71789
  let Y = m1e(F);
@@ -73935,7 +73935,7 @@ const bse = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command em
73935
73935
  if (me.from == Y - 2 && ((F = xe.lastChild) === null || F === void 0 ? void 0 : F.name) != "CloseTag" && (De = C4(O.doc, xe, Y)) && !bse.has(De)) {
73936
73936
  let _e = Y + (O.doc.sliceString(Y, Y + 1) === ">" ? 1 : 0), Je = `${De}>`;
73937
73937
  return {
73938
- range: so.cursor(Y + Je.length, -1),
73938
+ range: ro.cursor(Y + Je.length, -1),
73939
73939
  changes: { from: Y, to: _e, insert: Je }
73940
73940
  };
73941
73941
  }