golden-logic-ui 1.0.236 → 1.0.237

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.
@@ -516,7 +516,7 @@ const mre = /* @__PURE__ */ Ta(_K, [["render", AK]]), OK = { class: "bg-white bo
516
516
  setup(B, { emit: ve }) {
517
517
  const ce = B, Re = ve, ye = Jo(null), Q = Jo([]), De = Jo([]), ee = Jo(0), Ue = Jo(!1), Ct = Jo(""), Gt = Jo("");
518
518
  b1(() => {
519
- Gt.value = $o(), ce.show || (document.body.addEventListener("click", (Ge) => {
519
+ Gt.value = Mo(), ce.show || (document.body.addEventListener("click", (Ge) => {
520
520
  Xn(Ge);
521
521
  }), document.addEventListener("keypress", (Ge) => {
522
522
  Ge.key === "Enter" && Ge.target.form && Ge.preventDefault();
@@ -524,9 +524,9 @@ const mre = /* @__PURE__ */ Ta(_K, [["render", AK]]), OK = { class: "bg-white bo
524
524
  });
525
525
  const Sn = ii(() => wt()), zn = ii(() => Fe()), Uo = ii(() => {
526
526
  const Ge = [], A = new RegExp(Ct.value, "ig");
527
- for (const Jt of Sn.value) {
528
- const nt = String(Jt.name);
529
- (Ct.value.length < 1 || nt.match(A)) && Ge.length < ce.maxItem && Ge.push(Jt);
527
+ for (const Xt of Sn.value) {
528
+ const nt = String(Xt.name);
529
+ (Ct.value.length < 1 || nt.match(A)) && Ge.length < ce.maxItem && Ge.push(Xt);
530
530
  }
531
531
  return Ge;
532
532
  });
@@ -543,13 +543,13 @@ const mre = /* @__PURE__ */ Ta(_K, [["render", AK]]), OK = { class: "bg-white bo
543
543
  os(Ge.key);
544
544
  }
545
545
  }
546
- function $o() {
546
+ function Mo() {
547
547
  let Ge = (/* @__PURE__ */ new Date()).getTime();
548
548
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
549
549
  /[xy]/g,
550
- function(Jt) {
550
+ function(Xt) {
551
551
  const nt = (Ge + Math.random() * 16) % 16 | 0;
552
- return Ge = Math.floor(Ge / 16), (Jt === "x" ? nt : nt & 3 | 8).toString(16);
552
+ return Ge = Math.floor(Ge / 16), (Xt === "x" ? nt : nt & 3 | 8).toString(16);
553
553
  }
554
554
  );
555
555
  }
@@ -569,19 +569,19 @@ const mre = /* @__PURE__ */ Ta(_K, [["render", AK]]), OK = { class: "bg-white bo
569
569
  Q.value = [], Re("update:modelValue", []), Re("selected", []), Re("selectionChanged", []);
570
570
  }
571
571
  function Ea(Ge) {
572
- let A = Q.value.findIndex((Jt) => Jt.id === Ge.id);
573
- A !== -1 && Q.value.splice(A, 1), De.value = Q.value.map((Jt) => Jt.id), Re("update:modelValue", De.value), Re("selected", Q.value), Re("selectionChanged", Q.value);
572
+ let A = Q.value.findIndex((Xt) => Xt.id === Ge.id);
573
+ A !== -1 && Q.value.splice(A, 1), De.value = Q.value.map((Xt) => Xt.id), Re("update:modelValue", De.value), Re("selected", Q.value), Re("selectionChanged", Q.value);
574
574
  }
575
575
  function Xn(Ge) {
576
576
  Ge.target.id != ce.field_name + "search" + Gt.value && Ge.target.id != ce.field_name && !Ge.target.classList.contains("showOptions") && (Jn(), ee.value = 0);
577
577
  }
578
578
  function oe(Ge) {
579
- const A = `${Ge}${Gt.value}`, Jt = document.getElementById(A);
580
- Jt && Jt.scrollIntoView();
579
+ const A = `${Ge}${Gt.value}`, Xt = document.getElementById(A);
580
+ Xt && Xt.scrollIntoView();
581
581
  }
582
582
  function Nn(Ge) {
583
- const A = `${Ge}${Gt.value}`, Jt = document.getElementById(A);
584
- Jt && Jt.click();
583
+ const A = `${Ge}${Gt.value}`, Xt = document.getElementById(A);
584
+ Xt && Xt.click();
585
585
  }
586
586
  function os(Ge) {
587
587
  Ge === "ArrowDown" && ee.value < Uo.value.length && (ee.value++, oe(ee.value)), Ge === "ArrowUp" && ee.value > 1 && (ee.value--, oe(ee.value)), Ge === "Enter" && Nn(ee.value);
@@ -613,10 +613,10 @@ const mre = /* @__PURE__ */ Ta(_K, [["render", AK]]), OK = { class: "bg-white bo
613
613
  }
614
614
  function ie(Ge) {
615
615
  console.log("selectOption", Ge);
616
- let A = Q.value.findIndex((Jt) => Jt.id === Ge.id);
617
- A !== -1 ? Q.value.splice(A, 1) : Q.value.push(Ge), console.log("selectOption selected", Q.value), Ue.value = !1, De.value = Q.value.map((Jt) => Jt.id), Re("update:modelValue", De.value), Re("selected", Q.value), Re("selectionChanged", Q.value);
616
+ let A = Q.value.findIndex((Xt) => Xt.id === Ge.id);
617
+ A !== -1 ? Q.value.splice(A, 1) : Q.value.push(Ge), console.log("selectOption selected", Q.value), Ue.value = !1, De.value = Q.value.map((Xt) => Xt.id), Re("update:modelValue", De.value), Re("selected", Q.value), Re("selectionChanged", Q.value);
618
618
  }
619
- function Mo() {
619
+ function Oo() {
620
620
  ce.show || (Ct.value = "", Ue.value = !0, Oj(() => {
621
621
  var Ge = document.getElementById(
622
622
  `${ce.field_name}search${Gt.value}`
@@ -638,7 +638,7 @@ const mre = /* @__PURE__ */ Ta(_K, [["render", AK]]), OK = { class: "bg-white bo
638
638
  }, [
639
639
  H("h3", $K, Ot(B.label_name), 1),
640
640
  H("p", MK, [
641
- (ke(!0), Te(zo, null, aa(zn.value, (Jt, nt) => (ke(), Te("span", NK, Ot(Jt == null ? void 0 : Jt.name), 1))), 256))
641
+ (ke(!0), Te(zo, null, aa(zn.value, (Xt, nt) => (ke(), Te("span", NK, Ot(Xt == null ? void 0 : Xt.name), 1))), 256))
642
642
  ]),
643
643
  BK
644
644
  ], 2)) : At("", !0),
@@ -646,11 +646,11 @@ const mre = /* @__PURE__ */ Ta(_K, [["render", AK]]), OK = { class: "bg-white bo
646
646
  key: 1,
647
647
  class: bn(B.field_name)
648
648
  }, [
649
- (ke(!0), Te(zo, null, aa(De.value, (Jt, nt) => (ke(), Te("input", {
649
+ (ke(!0), Te(zo, null, aa(De.value, (Xt, nt) => (ke(), Te("input", {
650
650
  type: "hidden",
651
651
  name: B.field_name + "[]",
652
652
  key: nt,
653
- value: Jt
653
+ value: Xt
654
654
  }, null, 8, PK))), 128)),
655
655
  B.options ? (ke(), Te("div", IK, [
656
656
  H("label", {
@@ -679,21 +679,22 @@ const mre = /* @__PURE__ */ Ta(_K, [["render", AK]]), OK = { class: "bg-white bo
679
679
  H("div", FK, [
680
680
  H("div", {
681
681
  class: "flex flex-wrap gap-2 pl-8 pr-2 gl-multi-dropdown showOptions",
682
- onClick: A[0] || (A[0] = (Jt) => Mo())
682
+ onClick: A[0] || (A[0] = (Xt) => Oo())
683
683
  }, [
684
- (ke(!0), Te(zo, null, aa(zn.value, (Jt, nt) => (ke(), Te("span", {
684
+ (ke(!0), Te(zo, null, aa(zn.value, (Xt, nt) => (ke(), Te("span", {
685
685
  key: nt,
686
686
  class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded pointer-events-none dark:bg-blue-900 dark:text-blue-300"
687
687
  }, [
688
- qo(Ot(Jt == null ? void 0 : Jt.name) + " ", 1),
688
+ qo(Ot(Xt == null ? void 0 : Xt.name) + " ", 1),
689
689
  H("i", {
690
- onClick: Uu((No) => Ea(Jt), ["stop"]),
690
+ onClick: Uu((No) => Ea(Xt), ["stop"]),
691
691
  class: "cursor-pointer pointer-events-auto hover:text-red-600 dark:hover:text-red-400 fas fa-times"
692
692
  }, null, 8, HK)
693
693
  ]))), 128))
694
694
  ]),
695
695
  H("i", {
696
- class: bn([Ue.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700"]),
696
+ onClick: A[1] || (A[1] = (Xt) => !Ue.value && Oo()),
697
+ class: bn([Ue.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),
697
698
  style: { top: "11px" }
698
699
  }, null, 2)
699
700
  ]),
@@ -704,11 +705,11 @@ const mre = /* @__PURE__ */ Ta(_K, [["render", AK]]), OK = { class: "bg-white bo
704
705
  ZK,
705
706
  nl(H("input", {
706
707
  type: "search",
707
- "onUpdate:modelValue": A[1] || (A[1] = (Jt) => Ct.value = Jt),
708
+ "onUpdate:modelValue": A[2] || (A[2] = (Xt) => Ct.value = Xt),
708
709
  ref: ye.value,
709
710
  id: `${B.field_name}search${Gt.value}`,
710
711
  onKeydown: ir,
711
- onBlur: A[2] || (A[2] = (Jt) => Jn()),
712
+ onBlur: A[3] || (A[3] = (Xt) => Jn()),
712
713
  autocomplete: "off",
713
714
  class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
714
715
  placeholder: "Search ..."
@@ -718,16 +719,16 @@ const mre = /* @__PURE__ */ Ta(_K, [["render", AK]]), OK = { class: "bg-white bo
718
719
  ])
719
720
  ]),
720
721
  H("div", GK, [
721
- (ke(!0), Te(zo, null, aa(Uo.value, (Jt, nt) => (ke(), Te("div", {
722
+ (ke(!0), Te(zo, null, aa(Uo.value, (Xt, nt) => (ke(), Te("div", {
722
723
  class: bn([
723
724
  "block px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",
724
- nt + 1 == ee.value || dn(Jt.id) ? "bg-gray-100 dark:bg-gray-600" : ""
725
+ nt + 1 == ee.value || dn(Xt.id) ? "bg-gray-100 dark:bg-gray-600" : ""
725
726
  ]),
726
- onClick: (No) => ie(Jt),
727
- onMousedown: (No) => ie(Jt),
727
+ onClick: (No) => ie(Xt),
728
+ onMousedown: (No) => ie(Xt),
728
729
  key: nt,
729
730
  id: `${nt + 1}${Gt.value}`
730
- }, Ot(Jt.name || Jt.id || "-"), 43, qK))), 128))
731
+ }, Ot(Xt.name || Xt.id || "-"), 43, qK))), 128))
731
732
  ])
732
733
  ], 512), [
733
734
  [n5, Ue.value]
@@ -2326,8 +2327,8 @@ const _re = /* @__PURE__ */ Ta(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
2326
2327
  const Gt = ii(() => _t()), Sn = ii(() => Ea()), zn = ii(() => {
2327
2328
  const wt = [], Fe = new RegExp(Ue.value, "ig");
2328
2329
  for (const ie of Gt.value) {
2329
- const Mo = String(ie.name);
2330
- (Ue.value.length < 1 || Mo.match(Fe)) && wt.length < ce.maxItem && wt.push(ie);
2330
+ const Oo = String(ie.name);
2331
+ (Ue.value.length < 1 || Oo.match(Fe)) && wt.length < ce.maxItem && wt.push(ie);
2331
2332
  }
2332
2333
  return wt;
2333
2334
  });
@@ -2349,12 +2350,12 @@ const _re = /* @__PURE__ */ Ta(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
2349
2350
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
2350
2351
  /[xy]/g,
2351
2352
  function(ie) {
2352
- const Mo = (wt + Math.random() * 16) % 16 | 0;
2353
- return wt = Math.floor(wt / 16), (ie === "x" ? Mo : Mo & 3 | 8).toString(16);
2353
+ const Oo = (wt + Math.random() * 16) % 16 | 0;
2354
+ return wt = Math.floor(wt / 16), (ie === "x" ? Oo : Oo & 3 | 8).toString(16);
2354
2355
  }
2355
2356
  );
2356
2357
  }
2357
- function $o(wt) {
2358
+ function Mo(wt) {
2358
2359
  return wt !== null && typeof wt == "object" && Object.keys(wt).length > 0;
2359
2360
  }
2360
2361
  function Mt(wt) {
@@ -2375,7 +2376,7 @@ const _re = /* @__PURE__ */ Ta(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
2375
2376
  return ce.options.map((wt, Fe) => typeof wt == "object" ? wt : { id: wt, name: wt });
2376
2377
  }
2377
2378
  function Ea() {
2378
- if ($o(Q.value))
2379
+ if (Mo(Q.value))
2379
2380
  return typeof Q.value == "object" ? Gt.value.find(
2380
2381
  (wt) => String(wt.id) === String(Q.value.id)
2381
2382
  ) || {} : Gt.value.find(
@@ -2392,12 +2393,18 @@ const _re = /* @__PURE__ */ Ta(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
2392
2393
  Q.value = wt, ee.value = !1, Re("update:modelValue", Q.value.id), Re("selected", Q.value), Re("selectionChanged", Q.value);
2393
2394
  }
2394
2395
  function oe() {
2395
- ce.show || (Ue.value = "", ee.value = !0, Oj(() => {
2396
- var wt = document.getElementById(
2397
- `${ce.field_name}search${Ct.value}`
2398
- );
2399
- wt && wt.focus();
2400
- }));
2396
+ if (!ce.show) {
2397
+ if (ee.value == !0) {
2398
+ ee.value = !1;
2399
+ return;
2400
+ }
2401
+ Ue.value = "", ee.value = !0, Oj(() => {
2402
+ var wt = document.getElementById(
2403
+ `${ce.field_name}search${Ct.value}`
2404
+ );
2405
+ wt && wt.focus();
2406
+ });
2407
+ }
2401
2408
  }
2402
2409
  function Nn() {
2403
2410
  ce.show || (Q.value = {}, Ue.value = "", Re("update:modelValue", ""), oe());
@@ -2408,9 +2415,9 @@ const _re = /* @__PURE__ */ Ta(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
2408
2415
  return ST(Ue, () => {
2409
2416
  zn.value.length === 0 && (Q.value = {});
2410
2417
  }), ST(Q, (wt) => {
2411
- $o(wt) && Re("update:modelValue", wt.id);
2418
+ Mo(wt) && Re("update:modelValue", wt.id);
2412
2419
  }), (wt, Fe) => {
2413
- var ie, Mo, Jn;
2420
+ var ie, Oo, Jn;
2414
2421
  return ke(), Te(zo, null, [
2415
2422
  B.show ? (ke(), Te("div", {
2416
2423
  key: 0,
@@ -2430,7 +2437,7 @@ const _re = /* @__PURE__ */ Ta(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
2430
2437
  type: "hidden",
2431
2438
  name: B.field_name,
2432
2439
  id: B.field_name,
2433
- value: (Mo = Sn.value) == null ? void 0 : Mo.id
2440
+ value: (Oo = Sn.value) == null ? void 0 : Oo.id
2434
2441
  }, null, 8, HJ),
2435
2442
  B.options ? (ke(), Te("div", VJ, [
2436
2443
  B.label_name ? (ke(), Te("label", {
@@ -2460,7 +2467,7 @@ const _re = /* @__PURE__ */ Ta(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
2460
2467
  class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
2461
2468
  style: { top: "13px" }
2462
2469
  }, null, 512), [
2463
- [n5, $o(Sn.value) && B.has_cancel]
2470
+ [n5, Mo(Sn.value) && B.has_cancel]
2464
2471
  ]),
2465
2472
  H("i", {
2466
2473
  onClick: Fe[2] || (Fe[2] = (Ge) => !ee.value && oe()),
@@ -2490,7 +2497,7 @@ const _re = /* @__PURE__ */ Ta(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
2490
2497
  ]),
2491
2498
  H("div", XJ, [
2492
2499
  (ke(!0), Te(zo, null, aa(zn.value, (Ge, A) => {
2493
- var Jt;
2500
+ var Xt;
2494
2501
  return ke(), Te("div", {
2495
2502
  class: bn(["relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white", A + 1 == De.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
2496
2503
  onClick: (nt) => Xn(Ge),
@@ -2499,7 +2506,7 @@ const _re = /* @__PURE__ */ Ta(dX, [["render", hJ], ["__scopeId", "data-v-a94f16
2499
2506
  id: `${A + 1}${Ct.value}`
2500
2507
  }, [
2501
2508
  H("div", QJ, [
2502
- ((Jt = Sn.value) == null ? void 0 : Jt.id) === Ge.id ? (ke(), Te("svg", eQ, nQ)) : At("", !0),
2509
+ ((Xt = Sn.value) == null ? void 0 : Xt.id) === Ge.id ? (ke(), Te("svg", eQ, nQ)) : At("", !0),
2503
2510
  H("span", {
2504
2511
  innerHTML: Ge.name || Ge.id || "-"
2505
2512
  }, null, 8, oQ)
@@ -2695,7 +2702,7 @@ var QG = { exports: {} };
2695
2702
  }, ir = (e) => {
2696
2703
  const n = typeof e;
2697
2704
  return e === null ? "null" : n === "object" && Array.isArray(e) ? "array" : n === "object" && Uo(e, String, (o, r) => r.isPrototypeOf(o)) ? "string" : n;
2698
- }, $o = (e) => (n) => ir(n) === e, Mt = (e) => (n) => typeof n === e, ur = (e) => (n) => e === n, dn = (e, n) => _t(e) && Uo(e, n, (o, r) => zn(o) === r), me = $o("string"), _t = $o("object"), Ea = (e) => dn(e, Object), Xn = $o("array"), oe = ur(null), Nn = Mt("boolean"), os = ur(void 0), wt = (e) => e == null, Fe = (e) => !wt(e), ie = Mt("function"), Mo = Mt("number"), Jn = (e, n) => {
2705
+ }, Mo = (e) => (n) => ir(n) === e, Mt = (e) => (n) => typeof n === e, ur = (e) => (n) => e === n, dn = (e, n) => _t(e) && Uo(e, n, (o, r) => zn(o) === r), me = Mo("string"), _t = Mo("object"), Ea = (e) => dn(e, Object), Xn = Mo("array"), oe = ur(null), Nn = Mt("boolean"), os = ur(void 0), wt = (e) => e == null, Fe = (e) => !wt(e), ie = Mt("function"), Oo = Mt("number"), Jn = (e, n) => {
2699
2706
  if (Xn(e)) {
2700
2707
  for (let o = 0, r = e.length; o < r; ++o)
2701
2708
  if (!n(e[o]))
@@ -2704,7 +2711,7 @@ var QG = { exports: {} };
2704
2711
  }
2705
2712
  return !1;
2706
2713
  }, Ge = () => {
2707
- }, A = (e, n) => (...o) => e(n.apply(null, o)), Jt = (e, n) => (o) => e(n(o)), nt = (e) => () => e, No = (e) => e, mn = (e, n) => e === n;
2714
+ }, A = (e, n) => (...o) => e(n.apply(null, o)), Xt = (e, n) => (o) => e(n(o)), nt = (e) => () => e, No = (e) => e, mn = (e, n) => e === n;
2708
2715
  function ot(e, ...n) {
2709
2716
  return (...o) => {
2710
2717
  const r = n.concat(o);
@@ -3305,11 +3312,11 @@ var QG = { exports: {} };
3305
3312
  if (o == null)
3306
3313
  throw new Error(e + " not available on this browser");
3307
3314
  return o;
3308
- }, Dh = Object.getPrototypeOf, Rh = (e) => Od("HTMLElement", e), Oo = (e) => {
3315
+ }, Dh = Object.getPrototypeOf, Rh = (e) => Od("HTMLElement", e), Do = (e) => {
3309
3316
  const n = hi("ownerDocument.defaultView", e);
3310
3317
  return _t(e) && (Rh(n).prototype.isPrototypeOf(e) || /^HTML\w*Element$/.test(Dh(e).constructor.name));
3311
- }, zl = 8, Ji = 9, wc = 11, rl = 1, wm = 3, co = (e) => e.dom.nodeName.toLowerCase(), Vr = (e) => e.dom.nodeType, da = (e) => (n) => Vr(n) === e, $h = (e) => Vr(e) === zl || co(e) === "#comment", Zs = (e) => Na(e) && Oo(e.dom), Na = da(rl), ma = da(wm), Mh = da(Ji), Sg = da(wc), al = (e) => (n) => Na(n) && co(n) === e, yf = (e, n, o) => {
3312
- if (me(o) || Nn(o) || Mo(o))
3318
+ }, zl = 8, Ji = 9, wc = 11, rl = 1, wm = 3, co = (e) => e.dom.nodeName.toLowerCase(), Vr = (e) => e.dom.nodeType, da = (e) => (n) => Vr(n) === e, $h = (e) => Vr(e) === zl || co(e) === "#comment", Zs = (e) => Na(e) && Do(e.dom), Na = da(rl), ma = da(wm), Mh = da(Ji), Sg = da(wc), al = (e) => (n) => Na(n) && co(n) === e, yf = (e, n, o) => {
3319
+ if (me(o) || Nn(o) || Oo(o))
3313
3320
  e.setAttribute(n, o + "");
3314
3321
  else
3315
3322
  throw console.error("Invalid call to Attribute.set. Key ", n, ":: Value ", o, ":: Element ", e), new Error("Attribute value was not simple");
@@ -3444,7 +3451,7 @@ var QG = { exports: {} };
3444
3451
  if (n == null || n.ownerDocument === null)
3445
3452
  return !1;
3446
3453
  const o = n.ownerDocument;
3447
- return $g(ae.fromDom(n)).fold(() => o.body.contains(n), Jt(Md, Mg));
3454
+ return $g(ae.fromDom(n)).fold(() => o.body.contains(n), Xt(Md, Mg));
3448
3455
  };
3449
3456
  var Ns = (e, n, o, r, c) => e(o, r) ? z.some(o) : ie(c) && c(o) ? z.none() : n(o, r, c);
3450
3457
  const Gs = (e, n, o) => {
@@ -3818,7 +3825,7 @@ var QG = { exports: {} };
3818
3825
  e.nextSibling ? u == null || u.insertBefore(c, e.nextSibling) : u == null || u.appendChild(c);
3819
3826
  }
3820
3827
  return c;
3821
- }, Do = (e) => {
3828
+ }, Ro = (e) => {
3822
3829
  const n = e.container();
3823
3830
  return it(n) ? n.data.charAt(e.offset()) === x || e.isAtStart() && Rt(n.previousSibling) : !1;
3824
3831
  }, Bs = (e) => {
@@ -4804,7 +4811,7 @@ var QG = { exports: {} };
4804
4811
  }, zy = (e, n) => {
4805
4812
  const o = Za(n, "style"), r = e.serialize(e.parse(o), co(n));
4806
4813
  Db(n, Ob, r);
4807
- }, tp = (e, n) => Mo(e) ? fn(r5, n) ? e + "" : e + "px" : e, Rb = (e, n, o) => {
4814
+ }, tp = (e, n) => Oo(e) ? fn(r5, n) ? e + "" : e + "px" : e, Rb = (e, n, o) => {
4808
4815
  const r = Nf(n);
4809
4816
  wt(o) || o === "" ? Ju(e, r) : Fh(e, r, tp(o, r));
4810
4817
  }, oC = (e, n, o) => {
@@ -7145,7 +7152,7 @@ Required: ` + n.join(", "));
7145
7152
  }, sS = (e, n, o) => {
7146
7153
  const r = pC(e, n);
7147
7154
  o(r), e.moveToBookmark(r);
7148
- }, c0 = (e) => Mo(e == null ? void 0 : e.nodeType), W2 = (e) => Wt(e) && !Oi(e) && !Ai(e) && !su(e), UE = (e, n) => {
7155
+ }, c0 = (e) => Oo(e == null ? void 0 : e.nodeType), W2 = (e) => Wt(e) && !Oi(e) && !Ai(e) && !su(e), UE = (e, n) => {
7149
7156
  if (W2(n) && !/^(TD|TH)$/.test(n.nodeName)) {
7150
7157
  const o = e.getAttrib(n, "data-mce-selected"), r = parseInt(o, 10);
7151
7158
  return !isNaN(r) && r > 0;
@@ -7812,7 +7819,7 @@ Required: ` + n.join(", "));
7812
7819
  "foffset"
7813
7820
  ]
7814
7821
  }
7815
- ]), Ro = (e) => Cv.exact(e.start, e.soffset, e.finish, e.foffset), l4 = (e) => e.match({
7822
+ ]), $o = (e) => Cv.exact(e.start, e.soffset, e.finish, e.foffset), l4 = (e) => e.match({
7816
7823
  domRange: (n) => ae.fromDom(n.startContainer),
7817
7824
  relative: (n, o) => Jd.getStart(n),
7818
7825
  exact: (n, o, r, c) => n
@@ -7823,7 +7830,7 @@ Required: ` + n.join(", "));
7823
7830
  domRange: Qm,
7824
7831
  relative: Qd,
7825
7832
  exact: Sv,
7826
- exactFromRange: Ro,
7833
+ exactFromRange: $o,
7827
7834
  getWin: Di,
7828
7835
  range: _v
7829
7836
  }, Hp = (e, n) => {
@@ -7992,7 +7999,7 @@ Required: ` + n.join(", "));
7992
7999
  Z.compareRanges = tf, Z.getCaretRangeFromPoint = Ri, Z.getSelectedNode = jy, Z.getNode = ni;
7993
8000
  const ue = ((e, n) => {
7994
8001
  const o = (b, y) => {
7995
- if (!Mo(y) && !y.match(/^[0-9]+$/))
8002
+ if (!Oo(y) && !y.match(/^[0-9]+$/))
7996
8003
  throw new Error(e + ".set accepts only positive integer values. Value was " + y);
7997
8004
  const k = b.dom;
7998
8005
  xu(k) && (k.style[e] = y + "px");
@@ -8035,7 +8042,7 @@ Required: ` + n.join(", "));
8035
8042
  },
8036
8043
  owner: (e) => ll(e)
8037
8044
  });
8038
- const Xt = (e) => {
8045
+ const Jt = (e) => {
8039
8046
  const n = at(), o = qt(n), r = $t(e, Ye), c = lt(e), u = kr(r, (f, b) => {
8040
8047
  const y = lt(b);
8041
8048
  return {
@@ -8130,7 +8137,7 @@ Required: ` + n.join(", "));
8130
8137
  }, eg = (e, n, o, r, c) => {
8131
8138
  const u = _l(n).dom.innerHeight;
8132
8139
  $i(e, n, o, u, r, c);
8133
- const f = Xt(r.element), b = ea(window);
8140
+ const f = Jt(r.element), b = ea(window);
8134
8141
  f.top < b.y ? _n(r.element, c !== !1) : f.top > b.bottom && _n(r.element, c === !0);
8135
8142
  }, hl = (e, n, o) => gh(e, ri, n, o), iw = (e, n, o) => ds(e, n, ri, o), S0 = (e, n, o) => gh(e, eg, n, o), em = (e, n, o) => ds(e, n, eg, o), Oc = (e, n, o) => {
8136
8143
  (e.inline ? iw : em)(e, n, o);
@@ -8163,7 +8170,7 @@ Required: ` + n.join(", "));
8163
8170
  }, S5 = { isEditorUIElement: (e) => {
8164
8171
  const n = e.className.toString();
8165
8172
  return n.indexOf("tox-") !== -1 || n.indexOf("mce-") !== -1;
8166
- } }, _5 = (e, n) => (Mo(n) || (n = 0), setTimeout(e, n)), k5 = (e, n) => (Mo(n) || (n = 0), setInterval(e, n)), Iu = {
8173
+ } }, _5 = (e, n) => (Oo(n) || (n = 0), setTimeout(e, n)), k5 = (e, n) => (Oo(n) || (n = 0), setInterval(e, n)), Iu = {
8167
8174
  setEditorTimeout: (e, n, o) => _5(() => {
8168
8175
  e.removed || n();
8169
8176
  }, o),
@@ -8887,9 +8894,9 @@ Required: ` + n.join(", "));
8887
8894
  }, nm = (e, n, o) => {
8888
8895
  const r = Zm(n, e), c = Zm(o, e);
8889
8896
  return Fe(r) && r === c;
8890
- }, lI = (e) => Do(e) || Bs(e), wo = (e, n) => {
8897
+ }, lI = (e) => Ro(e) || Bs(e), wo = (e, n) => {
8891
8898
  const o = n.container(), r = n.offset();
8892
- return e ? Rt(o) ? it(o.nextSibling) ? Pe(o.nextSibling, 0) : Pe.after(o) : Do(n) ? Pe(o, r + 1) : n : Rt(o) ? it(o.previousSibling) ? Pe(o.previousSibling, o.previousSibling.data.length) : Pe.before(o) : Bs(n) ? Pe(o, r - 1) : n;
8899
+ return e ? Rt(o) ? it(o.nextSibling) ? Pe(o.nextSibling, 0) : Pe.after(o) : Ro(n) ? Pe(o, r + 1) : n : Rt(o) ? it(o.previousSibling) ? Pe(o.previousSibling, o.previousSibling.data.length) : Pe.before(o) : Bs(n) ? Pe(o, r - 1) : n;
8893
8900
  }, D0 = ot(wo, !0), hw = ot(wo, !1), D4 = (e, n) => {
8894
8901
  const o = (r) => r.stopImmediatePropagation();
8895
8902
  e.on("beforeinput input", o, !0), e.getDoc().execCommand(n), e.off("beforeinput input", o);
@@ -9818,7 +9825,7 @@ Required: ` + n.join(", "));
9818
9825
  hd(o) && r === u.getRoot() && (!o.list_block || !zv(n, o.list_block)) && Ce(yr(n.childNodes), (b) => {
9819
9826
  Km(e, f, b.nodeName.toLowerCase()) ? c ? c.appendChild(b) : (c = S3(u, b, f), u.setAttribs(c, W1(e))) : c = null;
9820
9827
  }), !(pv(o) && !zv(o.inline, n)) && u.remove(n, !0);
9821
- }, Uv = (e, n, o) => Mo(e) ? {
9828
+ }, Uv = (e, n, o) => Oo(e) ? {
9822
9829
  name: n,
9823
9830
  value: null
9824
9831
  } : {
@@ -14329,7 +14336,7 @@ Options:${f}${o.join(f)}` : "";
14329
14336
  return n.setRng(Pe(o.container(), o.offset() + r).toRange()), n.getSel().modify("move", e ? "forward" : "backward", "word"), !0;
14330
14337
  }, pN = (e, n) => {
14331
14338
  const o = n.selection.getRng(), r = e ? Pe.fromRangeEnd(o) : Pe.fromRangeStart(o);
14332
- return ty(n) ? e && Do(r) ? LA(!0, n.selection, r) : !e && Bs(r) ? LA(!1, n.selection, r) : !1 : !1;
14339
+ return ty(n) ? e && Ro(r) ? LA(!0, n.selection, r) : !e && Bs(r) ? LA(!1, n.selection, r) : !1 : !1;
14333
14340
  };
14334
14341
  var lf;
14335
14342
  (function(e) {
@@ -15393,7 +15400,7 @@ Options:${f}${o.join(f)}` : "";
15393
15400
  Input object: ` + CO(e.input), kO = (e, n) => OB(e, mo(n, _O)), UB = nt(FB), hk = (e, n) => SO((o) => {
15394
15401
  const r = typeof o;
15395
15402
  return e(o) ? el.svalue(o) : el.serror(`Expected type: ${n} but got: ${r}`);
15396
- }), WB = hk(Mo, "number"), bx = hk(me, "string"), EV = hk(Nn, "boolean"), TO = hk(ie, "function"), vx = IB, EO = wV, AV = (e) => kV((n) => qe(e, n) ? El.value(n) : El.error(`Unsupported value: "${n}", choose one of "${e.join(", ")}".`)), pk = (e, n) => vx(e, e, MB(), n), ZB = (e) => pk(e, bx), jB = (e) => pk(e, TO), OV = (e, n) => vx(e, e, MB(), zB(n)), bk = (e, n) => vx(e, e, BB(), n), vk = (e) => bk(e, bx), DV = (e) => bk(e, TO), RV = (e, n) => vx(e, e, NB(n), UB()), iy = (e, n, o) => vx(e, e, NB(n), o), GB = (e, n) => iy(e, n, WB), Xa = (e, n) => iy(e, n, bx), mf = (e, n, o) => iy(e, n, AV(o)), AO = (e, n) => iy(e, n, EV), qB = (e, n) => iy(e, n, TO), $V = (e, n, o) => iy(e, n, zB(o)), MV = ZB("type"), NV = jB("fetch"), OO = jB("onAction"), KB = qB("onSetup", () => Ge), uy = vk("text"), dG = vk("icon"), BV = vk("tooltip"), PV = vk("label"), ff = AO("active", !1), IV = AO("enabled", !0), YB = AO("primary", !1), XB = (e) => RV("columns", e), yx = (e) => Xa("type", e), DO = _O([
15403
+ }), WB = hk(Oo, "number"), bx = hk(me, "string"), EV = hk(Nn, "boolean"), TO = hk(ie, "function"), vx = IB, EO = wV, AV = (e) => kV((n) => qe(e, n) ? El.value(n) : El.error(`Unsupported value: "${n}", choose one of "${e.join(", ")}".`)), pk = (e, n) => vx(e, e, MB(), n), ZB = (e) => pk(e, bx), jB = (e) => pk(e, TO), OV = (e, n) => vx(e, e, MB(), zB(n)), bk = (e, n) => vx(e, e, BB(), n), vk = (e) => bk(e, bx), DV = (e) => bk(e, TO), RV = (e, n) => vx(e, e, NB(n), UB()), iy = (e, n, o) => vx(e, e, NB(n), o), GB = (e, n) => iy(e, n, WB), Xa = (e, n) => iy(e, n, bx), mf = (e, n, o) => iy(e, n, AV(o)), AO = (e, n) => iy(e, n, EV), qB = (e, n) => iy(e, n, TO), $V = (e, n, o) => iy(e, n, zB(o)), MV = ZB("type"), NV = jB("fetch"), OO = jB("onAction"), KB = qB("onSetup", () => Ge), uy = vk("text"), dG = vk("icon"), BV = vk("tooltip"), PV = vk("label"), ff = AO("active", !1), IV = AO("enabled", !0), YB = AO("primary", !1), XB = (e) => RV("columns", e), yx = (e) => Xa("type", e), DO = _O([
15397
15404
  MV,
15398
15405
  ZB("trigger"),
15399
15406
  GB("minChars", 1),
@@ -17395,7 +17402,7 @@ Input object: ` + CO(e.input), kO = (e, n) => OB(e, mo(n, _O)), UB = nt(FB), hk
17395
17402
  };
17396
17403
  }, xD = (e, n) => {
17397
17404
  const o = n.slice(), r = o.pop();
17398
- return Mo(r) ? Bo(o, (u, f) => u.bind((b) => z.from(b.childNodes[f])), z.some(e)).bind((u) => it(u) && (r < 0 || r > u.data.length) ? z.none() : z.some({
17405
+ return Oo(r) ? Bo(o, (u, f) => u.bind((b) => z.from(b.childNodes[f])), z.some(e)).bind((u) => it(u) && (r < 0 || r > u.data.length) ? z.none() : z.some({
17399
17406
  node: u,
17400
17407
  offset: r
17401
17408
  })) : z.none();
@@ -18462,7 +18469,7 @@ Input object: ` + CO(e.input), kO = (e, n) => OB(e, mo(n, _O)), UB = nt(FB), hk
18462
18469
  }), xZ = (e) => z.from(e.selection.getRng()).bind((n) => {
18463
18470
  const o = e.getBody();
18464
18471
  return n.startContainer === o && n.startOffset === 0 ? z.none() : z.from(e.selection.getStart(!0));
18465
- }), CZ = (e, n) => xZ(e).orThunk(ot(wZ, e)).map(ae.fromDom).filter(Na).bind(n), sT = (e, n) => CZ(e, Jt(z.some, n)), rT = (e, n) => {
18472
+ }), CZ = (e, n) => xZ(e).orThunk(ot(wZ, e)).map(ae.fromDom).filter(Na).bind(n), sT = (e, n) => CZ(e, Xt(z.some, n)), rT = (e, n) => {
18466
18473
  if (/^[0-9.]+$/.test(n)) {
18467
18474
  const o = parseInt(n, 10);
18468
18475
  if (o >= 1 && o <= 7) {
@@ -18987,7 +18994,7 @@ Input object: ` + CO(e.input), kO = (e, n) => OB(e, mo(n, _O)), UB = nt(FB), hk
18987
18994
  case "function":
18988
18995
  return ie;
18989
18996
  case "number":
18990
- return Mo;
18997
+ return Oo;
18991
18998
  case "object":
18992
18999
  return _t;
18993
19000
  case "string":
@@ -19566,7 +19573,7 @@ Input object: ` + CO(e.input), kO = (e, n) => OB(e, mo(n, _O)), UB = nt(FB), hk
19566
19573
  });
19567
19574
  },
19568
19575
  get(e) {
19569
- return arguments.length === 0 ? Fi.slice(0) : me(e) ? hs(Fi, (n) => n.id === e).getOr(null) : Mo(e) && Fi[e] ? Fi[e] : null;
19576
+ return arguments.length === 0 ? Fi.slice(0) : me(e) ? hs(Fi, (n) => n.id === e).getOr(null) : Oo(e) && Fi[e] ? Fi[e] : null;
19570
19577
  },
19571
19578
  add(e) {
19572
19579
  const n = this, o = n.get(e.id);
@@ -20034,7 +20041,7 @@ tinymce.IconManager.add("default", {
20034
20041
  }, ce = (t) => {
20035
20042
  const s = typeof t;
20036
20043
  return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && ve(t, String, (a, l) => l.isPrototypeOf(a)) ? "string" : s;
20037
- }, Re = (t) => (s) => ce(s) === t, ye = (t) => (s) => typeof s === t, Q = (t) => (s) => t === s, De = (t, s) => Ue(t) && ve(t, s, (a, l) => B(a) === l), ee = Re("string"), Ue = Re("object"), Ct = (t) => De(t, Object), Gt = Re("array"), Sn = Q(null), zn = ye("boolean"), Uo = Q(void 0), ir = (t) => t == null, $o = (t) => !ir(t), Mt = ye("function"), ur = ye("number"), dn = (t, s) => {
20044
+ }, Re = (t) => (s) => ce(s) === t, ye = (t) => (s) => typeof s === t, Q = (t) => (s) => t === s, De = (t, s) => Ue(t) && ve(t, s, (a, l) => B(a) === l), ee = Re("string"), Ue = Re("object"), Ct = (t) => De(t, Object), Gt = Re("array"), Sn = Q(null), zn = ye("boolean"), Uo = Q(void 0), ir = (t) => t == null, Mo = (t) => !ir(t), Mt = ye("function"), ur = ye("number"), dn = (t, s) => {
20038
20045
  if (Gt(t)) {
20039
20046
  for (let a = 0, l = t.length; a < l; ++a)
20040
20047
  if (!s(t[a]))
@@ -20052,7 +20059,7 @@ tinymce.IconManager.add("default", {
20052
20059
  }
20053
20060
  const Fe = (t) => (s) => !t(s), ie = (t) => () => {
20054
20061
  throw new Error(t);
20055
- }, Mo = (t) => t(), Jn = oe(!1), Ge = oe(!0);
20062
+ }, Oo = (t) => t(), Jn = oe(!1), Ge = oe(!0);
20056
20063
  class A {
20057
20064
  constructor(s, a) {
20058
20065
  this.tag = s, this.value = a;
@@ -20105,7 +20112,7 @@ tinymce.IconManager.add("default", {
20105
20112
  throw new Error(s ?? "Called getOrDie on None");
20106
20113
  }
20107
20114
  static from(s) {
20108
- return $o(s) ? A.some(s) : A.none();
20115
+ return Mo(s) ? A.some(s) : A.none();
20109
20116
  }
20110
20117
  getOrNull() {
20111
20118
  return this.tag ? this.value : null;
@@ -20124,7 +20131,7 @@ tinymce.IconManager.add("default", {
20124
20131
  }
20125
20132
  }
20126
20133
  A.singletonNone = new A(!1);
20127
- const Jt = Array.prototype.slice, nt = Array.prototype.indexOf, No = Array.prototype.push, mn = (t, s) => nt.call(t, s), ot = (t, s) => {
20134
+ const Xt = Array.prototype.slice, nt = Array.prototype.indexOf, No = Array.prototype.push, mn = (t, s) => nt.call(t, s), ot = (t, s) => {
20128
20135
  const a = mn(t, s);
20129
20136
  return a === -1 ? A.none() : A.some(a);
20130
20137
  }, Wo = (t, s) => mn(t, s) > -1, dr = (t, s) => {
@@ -20142,7 +20149,7 @@ tinymce.IconManager.add("default", {
20142
20149
  }, pr = (t, s) => {
20143
20150
  const a = [];
20144
20151
  for (let l = 0; l < t.length; l += s) {
20145
- const d = Jt.call(t, l, l + s);
20152
+ const d = Xt.call(t, l, l + s);
20146
20153
  a.push(d);
20147
20154
  }
20148
20155
  return a;
@@ -20216,7 +20223,7 @@ tinymce.IconManager.add("default", {
20216
20223
  }
20217
20224
  return !0;
20218
20225
  }, Zo = (t) => {
20219
- const s = Jt.call(t, 0);
20226
+ const s = Xt.call(t, 0);
20220
20227
  return s.reverse(), s;
20221
20228
  }, Ft = (t, s) => Qn(t, (a) => !Wo(s, a)), kr = (t, s) => {
20222
20229
  const a = {};
@@ -20226,9 +20233,9 @@ tinymce.IconManager.add("default", {
20226
20233
  }
20227
20234
  return a;
20228
20235
  }, Bo = (t) => [t], Va = (t, s) => {
20229
- const a = Jt.call(t, 0);
20236
+ const a = Xt.call(t, 0);
20230
20237
  return a.sort(s), a;
20231
- }, hs = (t, s) => s >= 0 && s < t.length ? A.some(t[s]) : A.none(), br = (t) => hs(t, 0), bl = (t) => hs(t, t.length - 1), vr = Mt(Array.from) ? Array.from : (t) => Jt.call(t), Js = (t, s) => {
20238
+ }, hs = (t, s) => s >= 0 && s < t.length ? A.some(t[s]) : A.none(), br = (t) => hs(t, 0), bl = (t) => hs(t, t.length - 1), vr = Mt(Array.from) ? Array.from : (t) => Xt.call(t), Js = (t, s) => {
20232
20239
  for (let a = 0; a < t.length; a++) {
20233
20240
  const l = s(t[a], a);
20234
20241
  if (l.isSome())
@@ -20382,11 +20389,11 @@ tinymce.IconManager.add("default", {
20382
20389
  }), ju = (t, s) => {
20383
20390
  const a = $a(t);
20384
20391
  return a.length > 0 && s < a.length ? hu(a[s], 0) : hu(t, s);
20385
- }, j = (t) => Hl(t) && $o(t.dom.host), de = Mt(Element.prototype.attachShadow) && Mt(Node.prototype.getRootNode), Se = oe(de), Be = de ? (t) => _e.fromDom(t.dom.getRootNode()) : nr, dt = (t) => j(t) ? t : _e.fromDom(nr(t).dom.body), ln = (t) => Fo(t).isSome(), Fo = (t) => {
20392
+ }, j = (t) => Hl(t) && Mo(t.dom.host), de = Mt(Element.prototype.attachShadow) && Mt(Node.prototype.getRootNode), Se = oe(de), Be = de ? (t) => _e.fromDom(t.dom.getRootNode()) : nr, dt = (t) => j(t) ? t : _e.fromDom(nr(t).dom.body), ln = (t) => Fo(t).isSome(), Fo = (t) => {
20386
20393
  const s = Be(t);
20387
20394
  return j(s) ? A.some(s) : A.none();
20388
20395
  }, rs = (t) => _e.fromDom(t.dom.host), Ho = (t) => {
20389
- if (Se() && $o(t.target)) {
20396
+ if (Se() && Mo(t.target)) {
20390
20397
  const s = _e.fromDom(t.target);
20391
20398
  if (ko(s) && ys(s) && t.composed && t.composedPath) {
20392
20399
  const a = t.composedPath();
@@ -20395,7 +20402,7 @@ tinymce.IconManager.add("default", {
20395
20402
  }
20396
20403
  }
20397
20404
  return A.from(t.target);
20398
- }, ys = (t) => $o(t.dom.shadowRoot), ao = (t) => {
20405
+ }, ys = (t) => Mo(t.dom.shadowRoot), ao = (t) => {
20399
20406
  const s = Xr(t) ? t.dom.parentNode : t.dom;
20400
20407
  if (s == null || s.ownerDocument === null)
20401
20408
  return !1;
@@ -20513,18 +20520,18 @@ tinymce.IconManager.add("default", {
20513
20520
  left: t,
20514
20521
  top: s,
20515
20522
  translate: (l, d) => Rh(t + l, s + d)
20516
- }), Oo = Rh, zl = (t) => {
20523
+ }), Do = Rh, zl = (t) => {
20517
20524
  const s = t.getBoundingClientRect();
20518
- return Oo(s.left, s.top);
20525
+ return Do(s.left, s.top);
20519
20526
  }, Ji = (t, s) => t !== void 0 ? t : s !== void 0 ? s : 0, wc = (t) => {
20520
20527
  const s = t.dom.ownerDocument, a = s.body, l = s.defaultView, d = s.documentElement;
20521
20528
  if (a === t.dom)
20522
- return Oo(a.offsetLeft, a.offsetTop);
20529
+ return Do(a.offsetLeft, a.offsetTop);
20523
20530
  const g = Ji(l == null ? void 0 : l.pageYOffset, d.scrollTop), p = Ji(l == null ? void 0 : l.pageXOffset, d.scrollLeft), w = Ji(d.clientTop, a.clientTop), C = Ji(d.clientLeft, a.clientLeft);
20524
20531
  return rl(t).translate(p - C, g - w);
20525
20532
  }, rl = (t) => {
20526
20533
  const s = t.dom, l = s.ownerDocument.body;
20527
- return l === s ? Oo(l.offsetLeft, l.offsetTop) : ao(t) ? zl(s) : Oo(0, 0);
20534
+ return l === s ? Do(l.offsetLeft, l.offsetTop) : ao(t) ? zl(s) : Do(0, 0);
20528
20535
  }, wm = Ms("width", (t) => t.dom.offsetWidth), co = (t, s) => wm.set(t, s), Vr = (t) => wm.get(t), da = (t) => wm.getOuter(t), $h = (t, s) => {
20529
20536
  const a = [
20530
20537
  "margin-left",
@@ -20810,7 +20817,7 @@ tinymce.IconManager.add("default", {
20810
20817
  s.parentNode !== null && s.parentNode.removeChild(s);
20811
20818
  }, Ga = (t) => {
20812
20819
  const s = t !== void 0 ? t.dom : document, a = s.body.scrollLeft || s.documentElement.scrollLeft, l = s.body.scrollTop || s.documentElement.scrollTop;
20813
- return Oo(a, l);
20820
+ return Do(a, l);
20814
20821
  }, Rg = (t, s, a) => {
20815
20822
  const d = (a !== void 0 ? a.dom : document).defaultView;
20816
20823
  d && d.scrollTo(t, s);
@@ -20858,7 +20865,7 @@ tinymce.IconManager.add("default", {
20858
20865
  left: 0,
20859
20866
  top: 0
20860
20867
  });
20861
- return Oo(p.left + g.left + a.left, p.top + g.top + a.top);
20868
+ return Do(p.left + g.left + a.left, p.top + g.top + a.top);
20862
20869
  });
20863
20870
  }, Tm = (t, s, a) => ({
20864
20871
  point: t,
@@ -20924,8 +20931,8 @@ tinymce.IconManager.add("default", {
20924
20931
  forall: Ge,
20925
20932
  getOr: Nn,
20926
20933
  or: Nn,
20927
- getOrThunk: Mo,
20928
- orThunk: Mo,
20934
+ getOrThunk: Oo,
20935
+ orThunk: Oo,
20929
20936
  getOrDie: ie(String(t)),
20930
20937
  each: me,
20931
20938
  toOptional: A.none
@@ -21078,7 +21085,7 @@ tinymce.IconManager.add("default", {
21078
21085
  }, ha = (t) => ({
21079
21086
  extract: (l, d) => t().extract(l, d),
21080
21087
  toString: () => t().toString()
21081
- }), ky = (t) => ps(Mc(t, $o)), Ts = (t) => {
21088
+ }), ky = (t) => ps(Mc(t, Mo)), Ts = (t) => {
21082
21089
  const s = nn(t), a = ss(t, (d, g) => Qu(g, (p) => Vo(d, { [p]: !0 }), oe(d)), {});
21083
21090
  return {
21084
21091
  extract: (d, g) => {
@@ -21277,7 +21284,7 @@ Required: ` + s.join(", "));
21277
21284
  return gt(t, (a) => {
21278
21285
  s[a.key] = a.value;
21279
21286
  }), s;
21280
- }, mt = (t, s) => q(t, s), Rt = (t, s) => he(t, s), on = (t) => Ze(t), Fn = (t, s) => t.length === 0 ? Ln.value(s) : Ln.value(Vo(s, jl.apply(void 0, t))), rr = (t) => Ln.error(Ke(t)), Do = (t, s) => {
21287
+ }, mt = (t, s) => q(t, s), Rt = (t, s) => he(t, s), on = (t) => Ze(t), Fn = (t, s) => t.length === 0 ? Ln.value(s) : Ln.value(Vo(s, jl.apply(void 0, t))), rr = (t) => Ln.error(Ke(t)), Ro = (t, s) => {
21281
21288
  const a = V(t);
21282
21289
  return a.errors.length > 0 ? rr(a.errors) : Fn(a.values, s);
21283
21290
  }, Bs = (t) => Mt(t) ? t : Jn, dl = (t, s, a) => {
@@ -21598,7 +21605,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(et(s, (a) => a.name),
21598
21605
  const w = ep(p), C = l.length > 1 ? Qn(s[d], (E) => dr(l, (D) => D.name === E)).join(" > ") : l[0].name;
21599
21606
  return Rt(d, NT(w, C));
21600
21607
  }));
21601
- return Do(a, {});
21608
+ return Ro(a, {});
21602
21609
  }, ei = "alloy.base.behaviour", Ab = nn([
21603
21610
  Pa("dom", "dom", vo(), nn([
21604
21611
  tt("tag"),
@@ -21781,7 +21788,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(et(s, (a) => a.name),
21781
21788
  const s = ht(t, "behaviours").getOr({});
21782
21789
  return Ce(ps(s), (a) => {
21783
21790
  const l = s[a];
21784
- return $o(l) ? [l.me] : [];
21791
+ return Mo(l) ? [l.me] : [];
21785
21792
  });
21786
21793
  }, Mb = (t, s) => MT(t, s), Zd = (t) => {
21787
21794
  const s = $b(t);
@@ -22284,7 +22291,7 @@ Receiver: ` + zd(s.element), E, g.data);
22284
22291
  const l = u2(t, a.x, a.y);
22285
22292
  return Ns(l.left, l.top, a.width, a.height);
22286
22293
  })), u2 = (t, s, a) => {
22287
- const l = Oo(s, a), d = () => {
22294
+ const l = Do(s, a), d = () => {
22288
22295
  const g = Ga();
22289
22296
  return l.translate(-g.left, -g.top);
22290
22297
  };
@@ -22513,7 +22520,7 @@ Receiver: ` + zd(s.element), E, g.data);
22513
22520
  const d = t * l, g = s * l, p = (C) => ht(a, C).getOr([]), w = (C, E, D) => {
22514
22521
  const N = Ft($C, D);
22515
22522
  return {
22516
- offset: Oo(C, E),
22523
+ offset: Do(C, E),
22517
22524
  classesOn: Ce(D, p),
22518
22525
  classesOff: Ce(N, p)
22519
22526
  };
@@ -22649,7 +22656,7 @@ Receiver: ` + zd(s.element), E, g.data);
22649
22656
  "scrollTop"
22650
22657
  ]
22651
22658
  }
22652
- ]), gE = (t) => t.fold(Nn, (s, a, l) => s.translate(-a, -l)), hE = (t) => t.fold(Nn, Nn), NC = (t) => Lo(t, (s, a) => s.translate(a.left, a.top), Oo(0, 0)), pE = (t) => {
22659
+ ]), gE = (t) => t.fold(Nn, (s, a, l) => s.translate(-a, -l)), hE = (t) => t.fold(Nn, Nn), NC = (t) => Lo(t, (s, a) => s.translate(a.left, a.top), Do(0, 0)), pE = (t) => {
22653
22660
  const s = et(t, gE);
22654
22661
  return NC(s);
22655
22662
  }, BC = (t) => {
@@ -22665,7 +22672,7 @@ Receiver: ` + zd(s.element), E, g.data);
22665
22672
  const l = ua(t.element), d = Ga(l), g = vE(t, s, a).getOr(d);
22666
22673
  return Yb(g, d.left, d.top);
22667
22674
  }, yp = (t, s, a, l) => {
22668
- const d = bE(Oo(t, s));
22675
+ const d = bE(Do(t, s));
22669
22676
  return A.some(Tm(d, a, l));
22670
22677
  }, w2 = (t, s, a, l, d) => t.map((g) => {
22671
22678
  const p = [
@@ -22991,7 +22998,7 @@ Receiver: ` + zd(s.element), E, g.data);
22991
22998
  jt(C, "visibility", "hidden");
22992
22999
  const N = s.useFixed() ? nv() : $E(t);
22993
23000
  w.placement(t, w, N).each((F) => {
22994
- const W = g.orThunk(() => s.getBounds.map(Mo)), Y = KC(N, F, W, l, E, p.transition);
23001
+ const W = g.orThunk(() => s.getBounds.map(Oo)), Y = KC(N, F, W, l, E, p.transition);
22995
23002
  a.set(l.uid, Y);
22996
23003
  }), D.fold(() => {
22997
23004
  fo(C, "visibility");
@@ -23022,7 +23029,7 @@ Receiver: ` + zd(s.element), E, g.data);
23022
23029
  return Jl({
23023
23030
  readState: () => t,
23024
23031
  clear: (d) => {
23025
- $o(d) ? delete t[d] : t = {};
23032
+ Mo(d) ? delete t[d] : t = {};
23026
23033
  },
23027
23034
  set: (d, g) => {
23028
23035
  t[d] = g;
@@ -23740,7 +23747,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
23740
23747
  yo("onHighlight"),
23741
23748
  yo("onDehighlight")
23742
23749
  ];
23743
- const Ro = xa({
23750
+ const $o = xa({
23744
23751
  fields: Cv,
23745
23752
  name: "highlighting",
23746
23753
  apis: Jd
@@ -23779,13 +23786,13 @@ Components: ` + JSON.stringify(s.components, null, 2));
23779
23786
  }
23780
23787
  };
23781
23788
  }, m = () => {
23782
- const t = (a) => Ro.getHighlighted(a).map((l) => l.element);
23789
+ const t = (a) => $o.getHighlighted(a).map((l) => l.element);
23783
23790
  return {
23784
23791
  get: t,
23785
23792
  set: (a, l) => {
23786
23793
  const d = t(a);
23787
23794
  a.getSystem().getByDom(l).fold(me, (p) => {
23788
- Ro.highlight(a, p);
23795
+ $o.highlight(a, p);
23789
23796
  });
23790
23797
  const g = t(a);
23791
23798
  cw(a, d, g);
@@ -23917,7 +23924,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
23917
23924
  getNumColumns: () => t.get().map((d) => d.numColumns)
23918
23925
  });
23919
23926
  };
23920
- var Xt = /* @__PURE__ */ Object.freeze({
23927
+ var Jt = /* @__PURE__ */ Object.freeze({
23921
23928
  __proto__: null,
23922
23929
  flatgrid: Pt,
23923
23930
  init: (t) => t.state(t)
@@ -24168,7 +24175,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24168
24175
  _7(a) ? a.setGridSize(l, d) : console.error("Layout does not support setGridSize");
24169
24176
  }
24170
24177
  },
24171
- state: Xt
24178
+ state: Jt
24172
24179
  }), Ml = (t, s) => {
24173
24180
  Ht(() => {
24174
24181
  ME(t, s, () => et(s, t.getSystem().build));
@@ -24552,7 +24559,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24552
24559
  tt("components"),
24553
24560
  Oe("eventOrder", {}),
24554
24561
  oa("menuBehaviours", [
24555
- Ro,
24562
+ $o,
24556
24563
  Lt,
24557
24564
  io,
24558
24565
  cn
@@ -24592,7 +24599,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24592
24599
  dom: t.dom,
24593
24600
  markers: t.markers,
24594
24601
  behaviours: Zr(t.menuBehaviours, [
24595
- Ro.config({
24602
+ $o.config({
24596
24603
  highlightClass: t.markers.selectedItem,
24597
24604
  itemClass: t.markers.item,
24598
24605
  onHighlight: t.onHighlight,
@@ -24611,7 +24618,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24611
24618
  Je(X5(), (d, g) => {
24612
24619
  const p = g.event;
24613
24620
  d.getSystem().getByDom(p.target).each((w) => {
24614
- Ro.highlight(d, w), g.stop(), an(d, sR(), {
24621
+ $o.highlight(d, w), g.stop(), an(d, sR(), {
24615
24622
  menu: d,
24616
24623
  item: w
24617
24624
  });
@@ -24619,7 +24626,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24619
24626
  }),
24620
24627
  Je(_4(), (d, g) => {
24621
24628
  const p = g.event.item;
24622
- Ro.highlight(d, p);
24629
+ $o.highlight(d, p);
24623
24630
  }),
24624
24631
  Je(J5(), (d, g) => {
24625
24632
  const { item: p, state: w } = g.event;
@@ -24738,11 +24745,11 @@ Components: ` + JSON.stringify(s.components, null, 2));
24738
24745
  }, p = (Tt) => Lt.getValue(Tt).value, w = (Tt, Yt, An) => Js(Yt, ($n) => {
24739
24746
  if (!$n.getSystem().isConnected())
24740
24747
  return A.none();
24741
- const pn = Ro.getCandidates($n);
24748
+ const pn = $o.getCandidates($n);
24742
24749
  return qe(pn, (In) => p(In) === An);
24743
- }), C = (Tt) => jo(t.data.menus, (Yt, An) => Ce(Yt.items, ($n) => $n.type === "separator" ? [] : [$n.data.value])), E = Ro.highlight, D = (Tt, Yt) => {
24744
- E(Tt, Yt), Ro.getHighlighted(Yt).orThunk(() => Ro.getFirst(Yt)).each((An) => {
24745
- t.fakeFocus ? Ro.highlight(Yt, An) : yb(Tt, An.element, hr());
24750
+ }), C = (Tt) => jo(t.data.menus, (Yt, An) => Ce(Yt.items, ($n) => $n.type === "separator" ? [] : [$n.data.value])), E = $o.highlight, D = (Tt, Yt) => {
24751
+ E(Tt, Yt), $o.getHighlighted(Yt).orThunk(() => $o.getFirst(Yt)).each((An) => {
24752
+ t.fakeFocus ? $o.highlight(Yt, An) : yb(Tt, An.element, hr());
24746
24753
  });
24747
24754
  }, N = (Tt, Yt) => Oa(et(Yt, (An) => Tt.lookupMenu(An).bind(($n) => $n.type === "prepared" ? A.some($n.menu) : A.none()))), F = (Tt, Yt, An) => {
24748
24755
  const $n = N(Yt, Yt.otherMenus(An));
@@ -24790,7 +24797,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24790
24797
  const $n = p(Yt);
24791
24798
  return d.expand($n).bind((pn) => (Y(Tt, pn), A.from(pn[0]).bind((In) => d.lookupMenu(In).bind((_s) => {
24792
24799
  const _o = be(Tt, In, _s);
24793
- return ao(_o.element) || Pn.append(Tt, ki(_o)), t.onOpenSubmenu(Tt, Yt, _o, Zo(pn)), An === $e.HighlightSubmenu ? (Ro.highlightFirst(_o), le(Tt, d, pn)) : (Ro.dehighlightAll(_o), A.some(Yt));
24800
+ return ao(_o.element) || Pn.append(Tt, ki(_o)), t.onOpenSubmenu(Tt, Yt, _o, Zo(pn)), An === $e.HighlightSubmenu ? ($o.highlightFirst(_o), le(Tt, d, pn)) : ($o.dehighlightAll(_o), A.some(Yt));
24794
24801
  }))));
24795
24802
  }
24796
24803
  }, Ae = (Tt, Yt) => {
@@ -24804,7 +24811,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24804
24811
  const An = Yt.event.item;
24805
24812
  d.lookupItem(p(An)).each(() => {
24806
24813
  const $n = Yt.event.menu;
24807
- Ro.highlight(Tt, $n);
24814
+ $o.highlight(Tt, $n);
24808
24815
  const pn = p(Yt.event.item);
24809
24816
  d.refresh(pn).each((In) => F(Tt, d, In));
24810
24817
  });
@@ -24832,7 +24839,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24832
24839
  const An = Yt.event.item;
24833
24840
  ut(Tt, An), ge(Tt, An, $e.HighlightParent), t.onHover(Tt, An);
24834
24841
  })] : []
24835
- ]), zt = (Tt) => Ro.getHighlighted(Tt).bind(Ro.getHighlighted), En = (Tt) => {
24842
+ ]), zt = (Tt) => $o.getHighlighted(Tt).bind($o.getHighlighted), En = (Tt) => {
24836
24843
  zt(Tt).each((Yt) => {
24837
24844
  Ae(Tt, Yt);
24838
24845
  });
@@ -24875,12 +24882,12 @@ Components: ` + JSON.stringify(s.components, null, 2));
24875
24882
  });
24876
24883
  }
24877
24884
  }),
24878
- Ro.config({
24885
+ $o.config({
24879
24886
  highlightClass: t.markers.selectedMenu,
24880
24887
  itemClass: t.markers.menu
24881
24888
  }),
24882
24889
  io.config({
24883
- find: (Tt) => Ro.getHighlighted(Tt)
24890
+ find: (Tt) => $o.getHighlighted(Tt)
24884
24891
  }),
24885
24892
  Pn.config({})
24886
24893
  ]),
@@ -24924,7 +24931,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
24924
24931
  Oe("stayInDom", !1),
24925
24932
  oa("tmenuBehaviours", [
24926
24933
  cn,
24927
- Ro,
24934
+ $o,
24928
24935
  io,
24929
24936
  Pn
24930
24937
  ]),
@@ -26702,7 +26709,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
26702
26709
  if (a.length > 0)
26703
26710
  return Br(Fs(), a);
26704
26711
  const l = wI(t);
26705
- return $o(l) ? A.some(_e.fromDom(l)) : A.none();
26712
+ return Mo(l) ? A.some(_e.fromDom(l)) : A.none();
26706
26713
  }, Pv = (t) => t.inline && PR(t).isSome(), t3 = (t) => PR(t).getOrThunk(() => dt(Be(_e.fromDom(t.getElement())))), n3 = (t) => t.inline && !Bv(t) && !t_(t) && !Tw(t), Ew = (t) => (t.options.get("toolbar_sticky") || t.inline) && !Pv(t) && !n3(t), ng = (t) => !Pv(t) && t.options.get("ui_mode") === "split", IR = (t) => {
26707
26714
  const s = t.options.get("menu");
26708
26715
  return jo(s, (a) => ({
@@ -26774,11 +26781,11 @@ Components: ` + JSON.stringify(s.components, null, 2));
26774
26781
  const LR = "[data-mce-autocompleter]", o3 = (t) => ld(t, LR), CI = (t) => Br(t, LR), SI = { setup: (t, s) => {
26775
26782
  const a = (d, g) => {
26776
26783
  an(d, Au(), { raw: g });
26777
- }, l = () => t.getMenu().bind(Ro.getHighlighted);
26784
+ }, l = () => t.getMenu().bind($o.getHighlighted);
26778
26785
  s.on("keydown", (d) => {
26779
26786
  const g = d.which;
26780
26787
  t.isActive() && (t.isMenuOpen() ? g === 13 ? (l().each(Bm), d.preventDefault()) : g === 40 ? (l().fold(() => {
26781
- t.getMenu().each(Ro.highlightFirst);
26788
+ t.getMenu().each($o.highlightFirst);
26782
26789
  }, (p) => {
26783
26790
  a(p, d);
26784
26791
  }), d.preventDefault(), d.stopImmediatePropagation()) : (g === 37 || g === 38 || g === 39) && l().each((p) => {
@@ -27596,7 +27603,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
27596
27603
  "tox-swatch--remove"
27597
27604
  ],
27598
27605
  innerHtml: D
27599
- } : $o(p) ? {
27606
+ } : Mo(p) ? {
27600
27607
  ...F,
27601
27608
  attributes: {
27602
27609
  ...F.attributes,
@@ -27906,7 +27913,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
27906
27913
  const s = `tinymce-custom-colors-${t}`, a = Kp.getItem(s);
27907
27914
  if (ir(a)) {
27908
27915
  const d = Kp.getItem("tinymce-custom-colors");
27909
- Kp.setItem(s, $o(d) ? d : "[]");
27916
+ Kp.setItem(s, Mo(d) ? d : "[]");
27910
27917
  }
27911
27918
  const l = U3(s, 10);
27912
27919
  return z3[t] = l, l;
@@ -28797,7 +28804,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
28797
28804
  rF(t).each((a) => {
28798
28805
  kT(t, a.element, s.event.eventType, s.event.interactionEvent);
28799
28806
  });
28800
- }, rF = (t) => ho.getState(t).bind(Ro.getHighlighted).bind(Ro.getHighlighted), aF = (t) => na(t.element, r_) ? A.some(t.element) : Br(t.element, "." + r_), uA = (t, s, a) => {
28807
+ }, rF = (t) => ho.getState(t).bind($o.getHighlighted).bind($o.getHighlighted), aF = (t) => na(t.element, r_) ? A.some(t.element) : Br(t.element, "." + r_), uA = (t, s, a) => {
28801
28808
  m3(t).each((l) => {
28802
28809
  g3(l, a), aF(s).each((g) => {
28803
28810
  P(g, "id").each((p) => Bt(l.element, "aria-controls", p));
@@ -28936,7 +28943,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
28936
28943
  node: A.from(ge)
28937
28944
  }
28938
28945
  }, mF(l_("autocompleter-value", !0, be, Ae, { menuType: "normal" }), Ae, zw.ContentFocus, "normal"));
28939
- }), E().each(Ro.highlightFirst);
28946
+ }), E().each($o.highlightFirst);
28940
28947
  }, W = ($e) => {
28941
28948
  const be = N($e);
28942
28949
  be.length > 0 ? (F($e, be), Bt(_e.fromDom(t.getBody()), "aria-owns", a), t.inline || Y()) : C();
@@ -29831,10 +29838,10 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
29831
29838
  const s = t.event.raw;
29832
29839
  if (XF(s)) {
29833
29840
  const a = s;
29834
- return a.touches !== void 0 && a.touches.length === 1 ? A.some(a.touches[0]).map((l) => Oo(l.clientX, l.clientY)) : A.none();
29841
+ return a.touches !== void 0 && a.touches.length === 1 ? A.some(a.touches[0]).map((l) => Do(l.clientX, l.clientY)) : A.none();
29835
29842
  } else {
29836
29843
  const a = s;
29837
- return a.clientX !== void 0 ? A.some(a).map((l) => Oo(l.clientX, l.clientY)) : A.none();
29844
+ return a.clientX !== void 0 ? A.some(a).map((l) => Do(l.clientX, l.clientY)) : A.none();
29838
29845
  }
29839
29846
  }, JF = "top", QF = "right", e9 = "bottom", zM = "left", cm = (t) => t.model.minX, L0 = (t) => t.model.minY, I_ = (t) => t.model.minX - 1, L_ = (t) => t.model.minY - 1, dg = (t) => t.model.maxX, pl = (t) => t.model.maxY, Jv = (t) => t.model.maxX + 1, Yw = (t) => t.model.maxY + 1, UM = (t, s, a) => s(t) - a(t), vA = (t) => UM(t, dg, cm), yA = (t) => UM(t, pl, L0), WM = (t) => vA(t) / 2, wA = (t) => yA(t) / 2, F0 = (t, s) => s ? t.stepSize * t.speedMultiplier : t.stepSize, ZM = (t) => t.snapToGrid, jM = (t) => t.snapStart, xA = (t) => t.rounded, F_ = (t, s) => t[s + "-edge"] !== void 0, CA = (t) => F_(t, zM), SA = (t) => F_(t, QF), _A = (t) => F_(t, JF), GM = (t) => F_(t, e9), _h = (t) => t.model.value.get(), e1 = (t, s) => ({
29840
29847
  x: t,
@@ -30974,14 +30981,14 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
30974
30981
  "." + zA
30975
30982
  ].join(","), Jn), sy = Ut("update-dialog"), fg = Ut("update-title"), Q_ = Ut("update-body"), WA = Ut("update-footer"), ZA = Ut("body-send-message"), ry = Ut("dialog-focus-shifted"), ek = vi().browser, n1 = ek.isSafari(), EN = ek.isFirefox(), jA = n1 || EN, Y9 = ek.isChromium(), X9 = ({ scrollTop: t, scrollHeight: s, clientHeight: a }) => Math.ceil(t) + a >= s, AN = (t, s) => t.scrollTo(0, s === "bottom" ? 99999999 : s), J9 = (t, s) => {
30976
30983
  const a = t.body;
30977
- return A.from(!/^<!DOCTYPE (html|HTML)/.test(s) && (!Y9 && !n1 || $o(a) && (a.scrollTop !== 0 || Math.abs(a.scrollHeight - a.clientHeight) > 1)) ? a : t.documentElement);
30984
+ return A.from(!/^<!DOCTYPE (html|HTML)/.test(s) && (!Y9 && !n1 || Mo(a) && (a.scrollTop !== 0 || Math.abs(a.scrollHeight - a.clientHeight) > 1)) ? a : t.documentElement);
30978
30985
  }, ON = (t, s, a) => {
30979
30986
  const l = t.dom;
30980
30987
  A.from(l.contentDocument).fold(a, (d) => {
30981
30988
  let g = 0;
30982
30989
  const p = J9(d, s).map((C) => (g = C.scrollTop, C)).forall(X9), w = () => {
30983
30990
  const C = l.contentWindow;
30984
- $o(C) && (p ? AN(C, "bottom") : !p && jA && g !== 0 && AN(C, g));
30991
+ Mo(C) && (p ? AN(C, "bottom") : !p && jA && g !== 0 && AN(C, g));
30985
30992
  };
30986
30993
  n1 && l.addEventListener("load", w, { once: !0 }), d.open(), d.write(s), d.close(), n1 || w();
30987
30994
  });
@@ -31267,7 +31274,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
31267
31274
  fakeFocus: t.searchable,
31268
31275
  onHighlightItem: uA,
31269
31276
  onCollapseMenu: (F, W, Y) => {
31270
- Ro.getHighlighted(Y).each((le) => {
31277
+ $o.getHighlighted(Y).each((le) => {
31271
31278
  uA(F, Y, le);
31272
31279
  });
31273
31280
  },
@@ -32445,7 +32452,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
32445
32452
  const Y = Ir.getCoupled(N, "sandbox");
32446
32453
  if (ho.isOpen(Y))
32447
32454
  io.getCurrent(Y).each((le) => {
32448
- Ro.getHighlighted(le).fold(() => {
32455
+ $o.getHighlighted(le).fold(() => {
32449
32456
  W(le);
32450
32457
  }, () => {
32451
32458
  Ay(Y, le.element, "keydown", F);
@@ -32486,14 +32493,14 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
32486
32493
  onStream: (N, F) => {
32487
32494
  const W = Ir.getCoupled(N, "sandbox");
32488
32495
  if (wn.isFocused(N) && Wd(N.element).length >= t.minChars) {
32489
- const le = w(W).bind((be) => Ro.getHighlighted(be).map(Lt.getValue));
32496
+ const le = w(W).bind((be) => $o.getHighlighted(be).map(Lt.getValue));
32490
32497
  t.previewing.set(!0);
32491
32498
  const $e = (be) => {
32492
32499
  w(W).each((ge) => {
32493
32500
  le.fold(() => {
32494
- t.model.selectsOver && Ro.highlightFirst(ge);
32501
+ t.model.selectsOver && $o.highlightFirst(ge);
32495
32502
  }, (Ae) => {
32496
- Ro.highlightBy(ge, (ut) => Lt.getValue(ut).value === Ae.value), Ro.getHighlighted(ge).orThunk(() => (Ro.highlightFirst(ge), A.none()));
32503
+ $o.highlightBy(ge, (ut) => Lt.getValue(ut).value === Ae.value), $o.getHighlighted(ge).orThunk(() => ($o.highlightFirst(ge), A.none()));
32497
32504
  });
32498
32505
  });
32499
32506
  };
@@ -32504,16 +32511,16 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
32504
32511
  }),
32505
32512
  cn.config({
32506
32513
  mode: "special",
32507
- onDown: (N, F) => (d(N, F, Ro.highlightFirst), A.some(!0)),
32514
+ onDown: (N, F) => (d(N, F, $o.highlightFirst), A.some(!0)),
32508
32515
  onEscape: (N) => {
32509
32516
  const F = Ir.getCoupled(N, "sandbox");
32510
32517
  return ho.isOpen(F) ? (ho.close(F), A.some(!0)) : A.none();
32511
32518
  },
32512
- onUp: (N, F) => (d(N, F, Ro.highlightLast), A.some(!0)),
32519
+ onUp: (N, F) => (d(N, F, $o.highlightLast), A.some(!0)),
32513
32520
  onEnter: (N) => {
32514
32521
  const F = Ir.getCoupled(N, "sandbox"), W = ho.isOpen(F);
32515
32522
  if (W && !t.previewing.get())
32516
- return w(F).bind((Y) => Ro.getHighlighted(Y)).map((Y) => (an(N, lk(), { item: Y }), !0));
32523
+ return w(F).bind((Y) => $o.getHighlighted(Y)).map((Y) => (an(N, lk(), { item: Y }), !0));
32517
32524
  {
32518
32525
  const Y = Lt.getValue(N);
32519
32526
  return go(N, gb()), t.onExecute(F, N, Y), W && ho.close(F), A.some(!0);
@@ -32620,7 +32627,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
32620
32627
  onHighlightItem: (s, a, l) => {
32621
32628
  t.previewing.get() ? t.lazyTypeaheadComp.get().each((d) => {
32622
32629
  cB(t.model, d, l).fold(() => {
32623
- t.model.selectsOver ? (Ro.dehighlight(a, l), t.previewing.set(!0)) : t.previewing.set(!1);
32630
+ t.model.selectsOver ? ($o.dehighlight(a, l), t.previewing.set(!0)) : t.previewing.set(!1);
32624
32631
  }, (g) => {
32625
32632
  g(), t.previewing.set(!1);
32626
32633
  });
@@ -33555,7 +33562,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
33555
33562
  const w = g.get() ? [] : l.get(), C = d.get();
33556
33563
  return w.concat(C);
33557
33564
  } };
33558
- }, pV = (t) => $o(t) && t.nodeType === 1, NB = kh.trim, BB = (t) => (s) => !!(pV(s) && (s.contentEditable === t || s.getAttribute("data-mce-contenteditable") === t)), bV = BB("true"), PB = BB("false"), vV = (t, s, a, l, d) => ({
33565
+ }, pV = (t) => Mo(t) && t.nodeType === 1, NB = kh.trim, BB = (t) => (s) => !!(pV(s) && (s.contentEditable === t || s.getAttribute("data-mce-contenteditable") === t)), bV = BB("true"), PB = BB("false"), vV = (t, s, a, l, d) => ({
33559
33566
  type: t,
33560
33567
  title: s,
33561
33568
  url: a,
@@ -33831,7 +33838,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
33831
33838
  const g = yc(l);
33832
33839
  return kl(l), g;
33833
33840
  });
33834
- }), JB = (t) => DO(t).map(wc).getOrThunk(() => Oo(0, 0)), RO = (t, s) => {
33841
+ }), JB = (t) => DO(t).map(wc).getOrThunk(() => Do(0, 0)), RO = (t, s) => {
33835
33842
  const a = t.element;
33836
33843
  Nr(a, s.transitionClass), Qs(a, s.fadeOutClass), Nr(a, s.fadeInClass), s.onShow(t);
33837
33844
  }, QB = (t, s) => {
@@ -33866,10 +33873,10 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
33866
33873
  }
33867
33874
  }), VV = (t, s) => {
33868
33875
  const a = s.optScrollEnv.fold(oe(t.bounds.y), (l) => l.scrollElmTop + (t.bounds.y - l.currentScrollTop));
33869
- return Oo(t.bounds.x, a);
33876
+ return Do(t.bounds.x, a);
33870
33877
  }, mG = (t, s) => {
33871
33878
  const a = s.optScrollEnv.fold(oe(t.y), (l) => t.y + l.currentScrollTop - l.scrollElmTop);
33872
- return Oo(t.x, a);
33879
+ return Do(t.x, a);
33873
33880
  }, BO = (t, s, a) => a.getInitialPos().map((l) => {
33874
33881
  const d = VV(l, s);
33875
33882
  return {
@@ -36470,7 +36477,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
36470
36477
  ]), jU = (t, s, a, l) => {
36471
36478
  const d = (D) => {
36472
36479
  io.getCurrent(D).each((N) => {
36473
- Ro.highlightFirst(N), cn.focusIn(N);
36480
+ $o.highlightFirst(N), cn.focusIn(N);
36474
36481
  });
36475
36482
  }, g = (D) => {
36476
36483
  cA(t, Nn, D, l, d, Nl.HighlightMenuAndItem).get(me);
@@ -36885,12 +36892,12 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
36885
36892
  }, C6 = vi(), Wk = C6.os.isiOS() && C6.os.version.major <= 12, S6 = (t, s) => {
36886
36893
  const { uiMotherships: a } = s, l = t.dom;
36887
36894
  let d = t.getWin();
36888
- const g = t.getDoc().documentElement, p = un(Oo(d.innerWidth, d.innerHeight)), w = un(Oo(g.offsetWidth, g.offsetHeight)), C = () => {
36895
+ const g = t.getDoc().documentElement, p = un(Do(d.innerWidth, d.innerHeight)), w = un(Do(g.offsetWidth, g.offsetHeight)), C = () => {
36889
36896
  const F = p.get();
36890
- (F.left !== d.innerWidth || F.top !== d.innerHeight) && (p.set(Oo(d.innerWidth, d.innerHeight)), y_(t));
36897
+ (F.left !== d.innerWidth || F.top !== d.innerHeight) && (p.set(Do(d.innerWidth, d.innerHeight)), y_(t));
36891
36898
  }, E = () => {
36892
36899
  const F = t.getDoc().documentElement, W = w.get();
36893
- (W.left !== F.offsetWidth || W.top !== F.offsetHeight) && (w.set(Oo(F.offsetWidth, F.offsetHeight)), y_(t));
36900
+ (W.left !== F.offsetWidth || W.top !== F.offsetHeight) && (w.set(Do(F.offsetWidth, F.offsetHeight)), y_(t));
36894
36901
  }, D = (F) => {
36895
36902
  gL(t, F);
36896
36903
  };
@@ -38350,7 +38357,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
38350
38357
  "y"
38351
38358
  ]
38352
38359
  }
38353
- ]), Qk = (t) => (s) => s.translate(-t.left, -t.top), eT = (t) => (s) => s.translate(t.left, t.top), hg = (t) => (s, a) => Lo(t, (l, d) => d(l), Oo(s, a)), Mx = (t, s, a) => t.fold(hg([
38360
+ ]), Qk = (t) => (s) => s.translate(-t.left, -t.top), eT = (t) => (s) => s.translate(t.left, t.top), hg = (t) => (s, a) => Lo(t, (l, d) => d(l), Do(s, a)), Mx = (t, s, a) => t.fold(hg([
38354
38361
  eT(a),
38355
38362
  Qk(s)
38356
38363
  ]), hg([Qk(s)]), hg([])), hy = (t, s, a) => t.fold(hg([eT(a)]), hg([]), hg([eT(s)])), py = (t, s, a) => t.fold(hg([]), hg([Qk(a)]), hg([
@@ -38361,7 +38368,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
38361
38368
  return Math.abs(p.left - w.left) <= a && Math.abs(p.top - w.top) <= l;
38362
38369
  }, rZ = (t, s, a, l, d, g) => {
38363
38370
  const p = hy(t, d, g), w = hy(s, d, g), C = Math.abs(p.left - w.left), E = Math.abs(p.top - w.top);
38364
- return Oo(C, E);
38371
+ return Do(C, E);
38365
38372
  }, tT = (t, s, a) => {
38366
38373
  const l = t.fold((d, g) => ({
38367
38374
  position: A.some("absolute"),
@@ -38392,7 +38399,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
38392
38399
  return Uo(a) ? NaN : parseInt(a, 10);
38393
38400
  }, cZ = (t, s) => {
38394
38401
  const a = t.element, l = i8(a, s.leftAttr), d = i8(a, s.topAttr);
38395
- return isNaN(l) || isNaN(d) ? A.none() : A.some(Oo(l, d));
38402
+ return isNaN(l) || isNaN(d) ? A.none() : A.some(Do(l, d));
38396
38403
  }, lZ = (t, s, a) => {
38397
38404
  const l = t.element;
38398
38405
  Bt(l, s.leftAttr, a.left + "px"), Bt(l, s.topAttr, a.top + "px");
@@ -38564,8 +38571,8 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
38564
38571
  ]);
38565
38572
  var _Z = /* @__PURE__ */ Object.freeze({
38566
38573
  __proto__: null,
38567
- getData: (t) => A.from(Oo(t.x, t.y)),
38568
- getDelta: (t, s) => Oo(s.left - t.left, s.top - t.top)
38574
+ getData: (t) => A.from(Do(t.x, t.y)),
38575
+ getDelta: (t, s) => Do(s.left - t.left, s.top - t.top)
38569
38576
  });
38570
38577
  const h8 = (t, s, a) => [Je(no(), (l, d) => {
38571
38578
  if (d.event.raw.button !== 0)
@@ -38594,7 +38601,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
38594
38601
  })
38595
38602
  ]), EZ = (t) => {
38596
38603
  const s = t[0];
38597
- return A.some(Oo(s.clientX, s.clientY));
38604
+ return A.some(Do(s.clientX, s.clientY));
38598
38605
  };
38599
38606
  var p8 = /* @__PURE__ */ Object.freeze({
38600
38607
  __proto__: null,
@@ -38602,7 +38609,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
38602
38609
  const a = t.raw.touches;
38603
38610
  return a.length === 1 ? EZ(a) : A.none();
38604
38611
  },
38605
- getDelta: (t, s) => Oo(s.left - t.left, s.top - t.top)
38612
+ getDelta: (t, s) => Do(s.left - t.left, s.top - t.top)
38606
38613
  });
38607
38614
  const b8 = (t, s, a) => {
38608
38615
  const l = eo(), d = (g) => {
@@ -38686,14 +38693,14 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
38686
38693
  apis: oT
38687
38694
  }), ID = 40, aT = ID / 2, LD = (t, s, a, l, d, g) => t.fold(() => Q0.snap({
38688
38695
  sensor: l1(a - aT, l - aT),
38689
- range: Oo(d, g),
38696
+ range: Do(d, g),
38690
38697
  output: l1(A.some(a), A.some(l)),
38691
38698
  extra: { td: s }
38692
38699
  }), (p) => {
38693
38700
  const w = a - aT, C = l - aT, E = ID, D = ID, N = p.element.dom.getBoundingClientRect();
38694
38701
  return Q0.snap({
38695
38702
  sensor: l1(w, C),
38696
- range: Oo(E, D),
38703
+ range: Do(E, D),
38697
38704
  output: l1(A.some(a - N.width / 2), A.some(l - N.height / 2)),
38698
38705
  extra: { td: s }
38699
38706
  });
@@ -38865,7 +38872,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
38865
38872
  const s = $R(t);
38866
38873
  return s === !1 ? u1.None : s === "both" ? u1.Both : u1.Vertical;
38867
38874
  }, pg = (t, s, a, l) => {
38868
- const g = Oo(a * 20, l * 20);
38875
+ const g = Do(a * 20, l * 20);
38869
38876
  return v8(t, g, s), A.some(!0);
38870
38877
  }, y8 = (t, s) => {
38871
38878
  const a = IZ(t);
@@ -39885,7 +39892,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
39885
39892
  tt("dom"),
39886
39893
  Oe("clickToDismiss", !1),
39887
39894
  oa("tabbarBehaviours", [
39888
- Ro,
39895
+ $o,
39889
39896
  cn
39890
39897
  ]),
39891
39898
  Ff([
@@ -39898,19 +39905,19 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
39898
39905
  unit: "tab",
39899
39906
  overrides: (t) => {
39900
39907
  const s = (l, d) => {
39901
- Ro.dehighlight(l, d), an(l, vb(), {
39908
+ $o.dehighlight(l, d), an(l, vb(), {
39902
39909
  tabbar: l,
39903
39910
  button: d
39904
39911
  });
39905
39912
  }, a = (l, d) => {
39906
- Ro.highlight(l, d), an(l, Kx(), {
39913
+ $o.highlight(l, d), an(l, Kx(), {
39907
39914
  tabbar: l,
39908
39915
  button: d
39909
39916
  });
39910
39917
  };
39911
39918
  return {
39912
39919
  action: (l) => {
39913
- const d = l.getSystem().getByUid(t.uid).getOrDie(), g = Ro.isHighlighted(d, l);
39920
+ const d = l.getSystem().getByUid(t.uid).getOrDie(), g = $o.isHighlighted(d, l);
39914
39921
  (g && t.clickToDismiss ? s : g ? me : a)(d, l);
39915
39922
  },
39916
39923
  domModification: { classes: [t.markers.tabClass] }
@@ -39923,7 +39930,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
39923
39930
  "debug.sketcher": "Tabbar",
39924
39931
  domModification: { attributes: { role: "tablist" } },
39925
39932
  behaviours: Zr(t.tabbarBehaviours, [
39926
- Ro.config({
39933
+ $o.config({
39927
39934
  highlightClass: t.markers.selectedClass,
39928
39935
  itemClass: t.markers.tabClass,
39929
39936
  onHighlight: (d, g) => {
@@ -39935,7 +39942,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
39935
39942
  }),
39936
39943
  cn.config({
39937
39944
  mode: "flow",
39938
- getInitial: (d) => Ro.getHighlighted(d).map((g) => g.element),
39945
+ getInitial: (d) => $o.getHighlighted(d).map((g) => g.element),
39939
39946
  selector: "." + t.markers.tabClass,
39940
39947
  executeOnMove: !0
39941
39948
  })
@@ -40000,7 +40007,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
40000
40007
  behaviours: Km(t.tabSectionBehaviours),
40001
40008
  events: Es(Ke([
40002
40009
  t.selectFirst ? [xs((p, w) => {
40003
- g(p, Ro.getFirst);
40010
+ g(p, $o.getFirst);
40004
40011
  })] : [],
40005
40012
  [
40006
40013
  Je(Kx(), (p, w) => {
@@ -40017,8 +40024,8 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
40017
40024
  getViewItems: (p) => Cs(p, t, "tabview").map((w) => Pn.contents(w)).getOr([]),
40018
40025
  showTab: (p, w) => {
40019
40026
  g(p, (E) => {
40020
- const D = Ro.getCandidates(E);
40021
- return qe(D, (F) => Lt.getValue(F) === w).filter((F) => !Ro.isHighlighted(E, F));
40027
+ const D = $o.getCandidates(E);
40028
+ return qe(D, (F) => Lt.getValue(F) === w).filter((F) => !$o.isHighlighted(E, F));
40022
40029
  });
40023
40030
  }
40024
40031
  }
@@ -40920,7 +40927,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
40920
40927
  onReceive: (Ae, ut) => {
40921
40928
  Br(Ae.element, "iframe").each((Xe) => {
40922
40929
  const je = Xe.dom.contentWindow;
40923
- $o(je) && je.postMessage(ut, F);
40930
+ Mo(je) && je.postMessage(ut, F);
40924
40931
  });
40925
40932
  }
40926
40933
  }
@@ -41216,7 +41223,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
41216
41223
  }, ce = (i) => {
41217
41224
  const m = typeof i;
41218
41225
  return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && ve(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
41219
- }, Re = (i) => (m) => ce(m) === i, ye = (i) => (m) => typeof m === i, Q = (i) => (m) => i === m, De = Re("string"), ee = Re("object"), Ue = Re("array"), Ct = Q(null), Gt = ye("boolean"), Sn = Q(void 0), zn = (i) => i == null, Uo = (i) => !zn(i), ir = ye("function"), $o = ye("number"), Mt = () => {
41226
+ }, Re = (i) => (m) => ce(m) === i, ye = (i) => (m) => typeof m === i, Q = (i) => (m) => i === m, De = Re("string"), ee = Re("object"), Ue = Re("array"), Ct = Q(null), Gt = ye("boolean"), Sn = Q(void 0), zn = (i) => i == null, Uo = (i) => !zn(i), ir = ye("function"), Mo = ye("number"), Mt = () => {
41220
41227
  }, ur = (i, m) => (...h) => i(m.apply(null, h)), dn = (i, m) => (h) => i(m(h)), me = (i) => () => i, _t = (i) => i, Ea = (i, m) => i === m;
41221
41228
  function Xn(i, ...m) {
41222
41229
  return (...h) => {
@@ -41298,7 +41305,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
41298
41305
  }
41299
41306
  }
41300
41307
  ie.singletonNone = new ie(!1);
41301
- const Mo = Array.prototype.slice, Jn = Array.prototype.indexOf, Ge = Array.prototype.push, A = (i, m) => Jn.call(i, m), Jt = (i, m) => A(i, m) > -1, nt = (i, m) => {
41308
+ const Oo = Array.prototype.slice, Jn = Array.prototype.indexOf, Ge = Array.prototype.push, A = (i, m) => Jn.call(i, m), Xt = (i, m) => A(i, m) > -1, nt = (i, m) => {
41302
41309
  for (let h = 0, v = i.length; h < v; h++) {
41303
41310
  const _ = i[h];
41304
41311
  if (m(_, h))
@@ -41380,7 +41387,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
41380
41387
  }
41381
41388
  return !0;
41382
41389
  }, Wi = (i) => {
41383
- const m = Mo.call(i, 0);
41390
+ const m = Oo.call(i, 0);
41384
41391
  return m.reverse(), m;
41385
41392
  }, qe = (i, m) => {
41386
41393
  const h = {};
@@ -41390,7 +41397,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
41390
41397
  }
41391
41398
  return h;
41392
41399
  }, Et = (i, m) => {
41393
- const h = Mo.call(i, 0);
41400
+ const h = Oo.call(i, 0);
41394
41401
  return h.sort(m), h;
41395
41402
  }, Ke = (i, m) => m >= 0 && m < i.length ? ie.some(i[m]) : ie.none(), Ce = (i) => Ke(i, 0), vn = (i) => Ke(i, i.length - 1), Zo = (i, m) => {
41396
41403
  for (let h = 0; h < i.length; h++) {
@@ -41450,7 +41457,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
41450
41457
  const m = yr("ownerDocument.defaultView", i);
41451
41458
  return ee(i) && (ji(m).prototype.isPrototypeOf(i) || /^HTML\w*Element$/.test(Qo(i).constructor.name));
41452
41459
  }, mo = 8, Tr = 9, Aa = 11, Nc = 1, Oa = 3, es = (i) => i.dom.nodeName.toLowerCase(), ec = (i) => i.dom.nodeType, pc = (i) => (m) => ec(m) === i, Ko = (i) => ec(i) === mo || es(i) === "#comment", fn = (i) => Er(i) && ht(i.dom), Er = pc(Nc), Bc = pc(Oa), Ll = pc(Tr), di = pc(Aa), wr = (i) => (m) => Er(m) && es(m) === i, mr = (i, m, h) => {
41453
- if (De(h) || Gt(h) || $o(h))
41460
+ if (De(h) || Gt(h) || Mo(h))
41454
41461
  i.setAttribute(m, h + "");
41455
41462
  else
41456
41463
  throw console.error("Invalid call to Attribute.set. Key ", m, ":: Value ", h, ":: Element ", i), new Error("Attribute value was not simple");
@@ -41599,7 +41606,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
41599
41606
  "thead",
41600
41607
  "tbody",
41601
41608
  "colgroup"
41602
- ], $a = (i) => Jt(Xi, i), xl = (i, m) => ({
41609
+ ], $a = (i) => Xt(Xi, i), xl = (i, m) => ({
41603
41610
  rows: i,
41604
41611
  columns: m
41605
41612
  }), gi = (i, m) => ({
@@ -41717,7 +41724,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
41717
41724
  for (let v = 0; v < i.length; v++)
41718
41725
  i[v].each(h);
41719
41726
  return m;
41720
- }, Od = (i, m) => i != null ? m(i) : ie.none(), Dh = (i, m) => i ? ie.some(m) : ie.none(), Rh = (i, m, h) => m === "" || i.length >= m.length && i.substr(h, h + m.length) === m, Oo = (i, m, h = 0, v) => {
41727
+ }, Od = (i, m) => i != null ? m(i) : ie.none(), Dh = (i, m) => i ? ie.some(m) : ie.none(), Rh = (i, m, h) => m === "" || i.length >= m.length && i.substr(h, h + m.length) === m, Do = (i, m, h = 0, v) => {
41721
41728
  const _ = i.indexOf(m, h);
41722
41729
  return _ !== -1 ? Sn(v) ? !0 : _ + m.length <= v : !1;
41723
41730
  }, zl = (i, m) => Rh(i, m, 0), Ji = (i, m) => Rh(i, m, i.length - m.length), rl = ((i) => (m) => m.replace(i, ""))(/^\s+|\s+$/g), wm = (i) => i.length > 0, co = (i) => {
@@ -41752,7 +41759,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
41752
41759
  }, ws = (i, m, h = 0) => ca(i, m).map((v) => parseInt(v, 10)).getOr(h), Cl = (i, m) => ws(i, m, 1), Za = (i) => wr("col")(i) ? ws(i, "span", 1) > 1 : Cl(i, "colspan") > 1, pi = (i) => Cl(i, "rowspan") > 1, zr = (i, m) => parseInt(ma(i, m), 10), or = me(10), Sl = me(10), qu = (i, m) => Ku(i, m, Fe), Ku = (i, m, h) => ss(ko(i), (v) => Gr(v, m) ? h(v) ? [v] : [] : Ku(v, m, h)), wf = (i, m, h = wt) => {
41753
41760
  if (h(m))
41754
41761
  return ie.none();
41755
- if (Jt(i, es(m)))
41762
+ if (Xt(i, es(m)))
41756
41763
  return ie.some(m);
41757
41764
  const v = (_) => Gr(_, "table") || h(_);
41758
41765
  return Vl(m, i.join(","), v);
@@ -41847,11 +41854,11 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
41847
41854
  current: h.name,
41848
41855
  version: v
41849
41856
  };
41850
- }), bo = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/, Ba = (i) => (m) => Oo(m, i), vi = [
41857
+ }), bo = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/, Ba = (i) => (m) => Do(m, i), vi = [
41851
41858
  {
41852
41859
  name: "Edge",
41853
41860
  versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
41854
- search: (i) => Oo(i, "edge/") && Oo(i, "chrome") && Oo(i, "safari") && Oo(i, "applewebkit")
41861
+ search: (i) => Do(i, "edge/") && Do(i, "chrome") && Do(i, "safari") && Do(i, "applewebkit")
41855
41862
  },
41856
41863
  {
41857
41864
  name: "Chromium",
@@ -41860,7 +41867,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
41860
41867
  /.*?chrome\/([0-9]+)\.([0-9]+).*/,
41861
41868
  bo
41862
41869
  ],
41863
- search: (i) => Oo(i, "chrome") && !Oo(i, "chromeframe")
41870
+ search: (i) => Do(i, "chrome") && !Do(i, "chromeframe")
41864
41871
  },
41865
41872
  {
41866
41873
  name: "IE",
@@ -41868,7 +41875,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
41868
41875
  /.*?msie\ ?([0-9]+)\.([0-9]+).*/,
41869
41876
  /.*?rv:([0-9]+)\.([0-9]+).*/
41870
41877
  ],
41871
- search: (i) => Oo(i, "msie") || Oo(i, "trident")
41878
+ search: (i) => Do(i, "msie") || Do(i, "trident")
41872
41879
  },
41873
41880
  {
41874
41881
  name: "Opera",
@@ -41889,7 +41896,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
41889
41896
  bo,
41890
41897
  /.*?cpu os ([0-9]+)_([0-9]+).*/
41891
41898
  ],
41892
- search: (i) => (Oo(i, "safari") || Oo(i, "mobile/")) && Oo(i, "applewebkit")
41899
+ search: (i) => (Do(i, "safari") || Do(i, "mobile/")) && Do(i, "applewebkit")
41893
41900
  }
41894
41901
  ], ll = [
41895
41902
  {
@@ -41899,7 +41906,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
41899
41906
  },
41900
41907
  {
41901
41908
  name: "iOS",
41902
- search: (i) => Oo(i, "iphone") || Oo(i, "ipad"),
41909
+ search: (i) => Do(i, "iphone") || Do(i, "ipad"),
41903
41910
  versionRegexes: [
41904
41911
  /.*?version\/\ ?([0-9]+)\.([0-9]+).*/,
41905
41912
  /.*cpu os ([0-9]+)_([0-9]+).*/,
@@ -42002,7 +42009,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
42002
42009
  let Mg = Qi(() => lb.detect(navigator.userAgent, ie.from(navigator.userAgentData), $g));
42003
42010
  const Xu = () => Mg(), Tm = (i, m) => {
42004
42011
  const h = (Z, J) => {
42005
- if (!$o(J) && !J.match(/^[0-9]+$/))
42012
+ if (!Mo(J) && !J.match(/^[0-9]+$/))
42006
42013
  throw new Error(i + ".set accepts only positive integer values. Value was " + J);
42007
42014
  const ue = Z.dom;
42008
42015
  Vr(ue) && (ue.style[i] = J + "px");
@@ -42085,7 +42092,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
42085
42092
  let Ye = 0;
42086
42093
  for (; m[Zl(Z, Ye)] !== void 0; )
42087
42094
  Ye++;
42088
- const Xt = jo(_, Ye.toString()), kn = j(Pt.element, Pt.rowspan, Pt.colspan, Z, Ye, Xt);
42095
+ const Jt = jo(_, Ye.toString()), kn = j(Pt.element, Pt.rowspan, Pt.colspan, Z, Ye, Jt);
42089
42096
  for (let Un = 0; Un < Pt.colspan; Un++)
42090
42097
  for (let js = 0; js < Pt.rowspan; js++) {
42091
42098
  const Sa = Z + js, _r = Ye + Un, $l = Zl(Sa, _r);
@@ -42409,10 +42416,10 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
42409
42416
  O.dom.nodeValue = I;
42410
42417
  }
42411
42418
  };
42412
- })(Bc, "text"), on = (i) => Rt.get(i), Fn = (i) => Rt.getOption(i), rr = (i, m) => Rt.set(i, m), Do = (i) => es(i) === "img" ? 1 : Fn(i).fold(() => ko(i).length, (m) => m.length), Bs = (i) => Fn(i).filter((m) => m.trim().length !== 0 || m.indexOf(Ze) > -1).isSome(), dl = (i) => fn(i) && Hr(i, "contenteditable") === "false", jc = [
42419
+ })(Bc, "text"), on = (i) => Rt.get(i), Fn = (i) => Rt.getOption(i), rr = (i, m) => Rt.set(i, m), Ro = (i) => es(i) === "img" ? 1 : Fn(i).fold(() => ko(i).length, (m) => m.length), Bs = (i) => Fn(i).filter((m) => m.trim().length !== 0 || m.indexOf(Ze) > -1).isSome(), dl = (i) => fn(i) && Hr(i, "contenteditable") === "false", jc = [
42413
42420
  "img",
42414
42421
  "br"
42415
- ], Kl = (i) => Bs(i) || Jt(jc, es(i)) || dl(i), Ld = (i) => xr(i, Kl), cu = (i) => Ug(i, Kl), Ug = (i, m) => {
42422
+ ], Kl = (i) => Bs(i) || Xt(jc, es(i)) || dl(i), Ld = (i) => xr(i, Kl), cu = (i) => Ug(i, Kl), Ug = (i, m) => {
42416
42423
  const h = (v) => {
42417
42424
  const _ = ko(v);
42418
42425
  for (let O = _.length - 1; O >= 0; O--) {
@@ -42446,7 +42453,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
42446
42453
  return ns(Z, ue), ue;
42447
42454
  }, m);
42448
42455
  }).getOr(m), no = (i, m) => {
42449
- Bo(Tf, (h, v) => ca(i, v).filter((_) => Jt(h, _)).each((_) => Us(m, v, _)));
42456
+ Bo(Tf, (h, v) => ca(i, v).filter((_) => Xt(h, _)).each((_) => Us(m, v, _)));
42450
42457
  }, ba = (i, m, h) => {
42451
42458
  const v = (I, Z) => {
42452
42459
  yf(I.element, Z), al(Z, "height"), I.colspan !== 1 && al(Z, "width");
@@ -42515,7 +42522,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
42515
42522
  default: !0
42516
42523
  }), m("table_header_type", {
42517
42524
  processor: (h) => {
42518
- const v = Jt([
42525
+ const v = Xt([
42519
42526
  "section",
42520
42527
  "cells",
42521
42528
  "sectionCells",
@@ -42541,7 +42548,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
42541
42548
  default: { "border-collapse": "collapse" }
42542
42549
  }), m("table_column_resizing", {
42543
42550
  processor: (h) => {
42544
- const v = Jt([
42551
+ const v = Xt([
42545
42552
  "preservetable",
42546
42553
  "resizetable"
42547
42554
  ], h);
@@ -42566,7 +42573,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
42566
42573
  });
42567
42574
  }, Nm = (i) => ie.from(i.options.get("table_clone_elements")), _T = (i) => {
42568
42575
  const m = i.options.get("object_resizing");
42569
- return Jt(m.split(","), "table");
42576
+ return Xt(m.split(","), "table");
42570
42577
  }, jg = ic("table_header_type"), Ty = ic("table_column_resizing"), Gx = (i) => Ty(i) === "preservetable", Mr = (i) => Ty(i) === "resizetable", Zh = ic("table_sizing_mode"), sd = (i) => Zh(i) === "relative", Of = (i) => Zh(i) === "fixed", Gg = (i) => Zh(i) === "responsive", qg = ic("table_resize_bars"), Xl = ic("table_style_by_css"), hr = ic("table_merge_content_on_paste"), rd = (i) => {
42571
42578
  const m = i.options, h = m.get("table_default_attributes");
42572
42579
  return m.isSet("table_default_attributes") ? h : Zg(i, h);
@@ -42648,7 +42655,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
42648
42655
  "pre",
42649
42656
  "address"
42650
42657
  ], Je = () => {
42651
- const i = (ue) => _e.fromDom(ue.dom.cloneNode(!1)), m = (ue) => Ki(ue).dom, h = (ue) => Er(ue) ? es(ue) === "body" ? !0 : Jt(Ry, es(ue)) : !1, v = (ue) => Er(ue) ? Jt([
42658
+ const i = (ue) => _e.fromDom(ue.dom.cloneNode(!1)), m = (ue) => Ki(ue).dom, h = (ue) => Er(ue) ? es(ue) === "body" ? !0 : Xt(Ry, es(ue)) : !1, v = (ue) => Er(ue) ? Xt([
42652
42659
  "br",
42653
42660
  "img",
42654
42661
  "hr",
@@ -42658,7 +42665,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
42658
42665
  bc(Ee, at);
42659
42666
  }, Z = (ue) => {
42660
42667
  const Ee = es(ue);
42661
- return Jt([
42668
+ return Xt([
42662
42669
  "script",
42663
42670
  "noscript",
42664
42671
  "iframe",
@@ -42972,11 +42979,11 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
42972
42979
  const m = ro(i, (h) => Qh(h.element));
42973
42980
  return m.length === 0 ? ie.some("td") : m.length === i.length ? ie.some("th") : ie.none();
42974
42981
  }, PT = (i) => {
42975
- const m = mn(i, (_) => Eb(_).type), h = Jt(m, "header"), v = Jt(m, "footer");
42982
+ const m = mn(i, (_) => Eb(_).type), h = Xt(m, "header"), v = Xt(m, "footer");
42976
42983
  if (!h && !v)
42977
42984
  return ie.some("body");
42978
42985
  {
42979
- const _ = Jt(m, "body");
42986
+ const _ = Xt(m, "body");
42980
42987
  return h && !_ && !v ? ie.some("header") : !h && !_ && v ? ie.some("footer") : ie.none();
42981
42988
  }
42982
42989
  }, M1 = (i) => Zo(i.all, (m) => {
@@ -43031,8 +43038,8 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
43031
43038
  Ye.isNew && v.push(Ye.element), Ud(Ye.element, "colspan", Ye.colspan, 1), Ud(Ye.element, "rowspan", Ye.rowspan, 1), ns(Pt, Ye.element);
43032
43039
  }), Pt;
43033
43040
  }), O = ($t) => ss($t, (Qe) => mn(Qe.cells, (Pt) => (Ud(Pt.element, "span", Pt.colspan, 1), Pt.element))), I = ($t, Qe) => {
43034
- const Pt = tp(i, Qe), Xt = (Qe === "colgroup" ? O : _)($t);
43035
- Or(Pt, Xt);
43041
+ const Pt = tp(i, Qe), Jt = (Qe === "colgroup" ? O : _)($t);
43042
+ Or(Pt, Jt);
43036
43043
  }, Z = ($t) => {
43037
43044
  fo(i, $t).each(nr);
43038
43045
  }, J = ($t, Qe) => {
@@ -43283,8 +43290,8 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
43283
43290
  continue;
43284
43291
  }
43285
43292
  lC(m, $t, Pt, _) && Gc(m, fr(m[$t], Pt), _, v.cell);
43286
- const Ye = Pt - Z - Qe, Xt = ga(h[$t - I], Ye), kn = Xt.element, Un = v.replace(kn);
43287
- Nd(m[$t], Pt, Be(Un, !0, Xt.isLocked));
43293
+ const Ye = Pt - Z - Qe, Jt = ga(h[$t - I], Ye), kn = Jt.element, Un = v.replace(kn);
43294
+ Nd(m[$t], Pt, Be(Un, !0, Jt.isLocked));
43288
43295
  }
43289
43296
  }
43290
43297
  return m;
@@ -43373,7 +43380,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
43373
43380
  const O = Rr(i).rows, I = ss(m, (Ee) => mC(O, Ee, v)), Z = mn(O, (Ee) => Tb(Ee.cells)), J = th(I, Z), ue = nh(h, Z);
43374
43381
  return oh(i, I, v, _, Lf, ue, J);
43375
43382
  }, UT = (i, m, h, v, _, O, I) => {
43376
- const { cols: Z, rows: J } = Rr(i), ue = J[m[0]], Ee = ss(m, (Ye) => zT(J, Ye, _)), at = mn(ue.cells, (Ye, Xt) => Tb(mC(J, Xt, _))), Nt = [...J];
43383
+ const { cols: Z, rows: J } = Rr(i), ue = J[m[0]], Ee = ss(m, (Ye) => zT(J, Ye, _)), at = mn(ue.cells, (Ye, Jt) => Tb(mC(J, Jt, _))), Nt = [...J];
43377
43384
  ot(m, (Ye) => {
43378
43385
  Nt[Ye] = I.transformRow(J[Ye], h);
43379
43386
  });
@@ -43417,7 +43424,7 @@ The conflicting element is` + (ao(N.element) ? " " : " not ") + "already in the
43417
43424
  if (m.length !== Nt.length)
43418
43425
  throw new Error("Wrong number of arguments to match. Expected: " + m.join(",") + `
43419
43426
  Actual: ` + Nt.join(","));
43420
- if (!Lo(m, (Qe) => Jt(Nt, Qe)))
43427
+ if (!Lo(m, (Qe) => Xt(Nt, Qe)))
43421
43428
  throw new Error("Not all branches were specified when using match. Specified: " + Nt.join(", ") + `
43422
43429
  Required: ` + m.join(", "));
43423
43430
  return at[I].apply(null, J);
@@ -43577,7 +43584,7 @@ Required: ` + m.join(", "));
43577
43584
  "row",
43578
43585
  "col"
43579
43586
  ];
43580
- return nt(O, (ue) => ue !== I && Jt(Z, ue)) ? ie.none() : ie.from(I);
43587
+ return nt(O, (ue) => ue !== I && Xt(Z, ue)) ? ie.none() : ie.from(I);
43581
43588
  }
43582
43589
  };
43583
43590
  return al(v[0], "width"), _().fold(() => Is(v[0], "scope"), (O) => Us(v[0], "scope", O + "group")), me(v[0]);
@@ -43616,14 +43623,14 @@ Required: ` + m.join(", "));
43616
43623
  "address"
43617
43624
  ], dp = (i, m) => {
43618
43625
  const h = i.property().name(m);
43619
- return Jt([
43626
+ return Xt([
43620
43627
  "ol",
43621
43628
  "ul"
43622
43629
  ], h);
43623
43630
  }, Ti = (i, m) => {
43624
43631
  const h = i.property().name(m);
43625
- return Jt(F1, h);
43626
- }, Xy = (i, m) => Jt([
43632
+ return Xt(F1, h);
43633
+ }, Xy = (i, m) => Xt([
43627
43634
  "br",
43628
43635
  "img",
43629
43636
  "hr",
@@ -43834,7 +43841,7 @@ Required: ` + m.join(", "));
43834
43841
  effect: em
43835
43842
  }));
43836
43843
  }) : ie.none();
43837
- }, at = Ee(wC, _, Mt, eo), Nt = Ee(Ei, O, Mt, eo), $t = Ee(U1, Fe, Mt, eo), Qe = Ee(qd, Fe, Mt, eo), Pt = Ee($u, Fe, Z, eo), Ye = Ee(Ht, Fe, Z, eo), Xt = Ee(JT, Fe, Mt, eo), kn = Ee(Kc, Fe, Mt, eo), Un = Ee(QT, Fe, Mt, eo), js = Ee(eE, Fe, Mt, eo), Sa = Ee(d2, Fe, Mt, eo), _r = Ee(tE, Fe, Mt, eo), $l = Ee(W1, Fe, Mt, g2), fh = Ee(XT, Fe, Mt, eo), gh = Ee(u2, Fe, Mt, eo), lw = Ee(xC, Fe, Mt, eo), kv = Ee(c2, Fe, Mt, eo), ds = Ee(CC, Fe, Mt, eo), Jc = Ee(l2, Fe, Mt, eo), gc = Ee(i2, Fe, Mt, eo);
43844
+ }, at = Ee(wC, _, Mt, eo), Nt = Ee(Ei, O, Mt, eo), $t = Ee(U1, Fe, Mt, eo), Qe = Ee(qd, Fe, Mt, eo), Pt = Ee($u, Fe, Z, eo), Ye = Ee(Ht, Fe, Z, eo), Jt = Ee(JT, Fe, Mt, eo), kn = Ee(Kc, Fe, Mt, eo), Un = Ee(QT, Fe, Mt, eo), js = Ee(eE, Fe, Mt, eo), Sa = Ee(d2, Fe, Mt, eo), _r = Ee(tE, Fe, Mt, eo), $l = Ee(W1, Fe, Mt, g2), fh = Ee(XT, Fe, Mt, eo), gh = Ee(u2, Fe, Mt, eo), lw = Ee(xC, Fe, Mt, eo), kv = Ee(c2, Fe, Mt, eo), ds = Ee(CC, Fe, Mt, eo), Jc = Ee(l2, Fe, Mt, eo), gc = Ee(i2, Fe, Mt, eo);
43838
43845
  return {
43839
43846
  deleteRow: at,
43840
43847
  deleteColumn: Nt,
@@ -43842,7 +43849,7 @@ Required: ` + m.join(", "));
43842
43849
  insertRowsAfter: Qe,
43843
43850
  insertColumnsBefore: Pt,
43844
43851
  insertColumnsAfter: Ye,
43845
- mergeCells: Xt,
43852
+ mergeCells: Jt,
43846
43853
  unmergeCells: kn,
43847
43854
  pasteColsBefore: Un,
43848
43855
  pasteColsAfter: js,
@@ -44050,7 +44057,7 @@ Required: ` + m.join(", "));
44050
44057
  i.insertContent(J), i.addVisual();
44051
44058
  }), Wa(hb(i), 'table[data-mce-id="__mce"]').map((Z) => (Of(i) ? vp(Z) : Gg(i) ? K1(Z) : (sd(i) || Yb(O.width)) && iu(Z), ad(Z), Is(Z, "data-mce-id"), bE(i, Z), BC(i, Z), Z.dom)).getOrNull();
44052
44059
  }, PC = (i, m, h, v = {}) => {
44053
- const _ = (O) => $o(O) && O > 0;
44060
+ const _ = (O) => Mo(O) && O > 0;
44054
44061
  if (_(m) && _(h)) {
44055
44062
  const O = v.headerRows || 0, I = v.headerColumns || 0;
44056
44063
  return vE(i, h, m, I, O);
@@ -44073,57 +44080,57 @@ Required: ` + m.join(", "));
44073
44080
  i.fold(xE, (m) => IC({ [C2]: m }));
44074
44081
  }, LC = () => S2(C2), xE = () => yE(C2), k2 = (i) => cd(Si(i), Fd(i)).filter(bb), CE = (i) => $1(Si(i), Fd(i)).filter(bb), wp = (i, m) => {
44075
44082
  const h = Fd(i), v = () => k2(i).each((Ye) => {
44076
- oc(Ye, h).filter(oe(h)).each((Xt) => {
44083
+ oc(Ye, h).filter(oe(h)).each((Jt) => {
44077
44084
  const kn = _e.fromText("");
44078
- if (ia(Xt, kn), nr(Xt), i.dom.isEmpty(i.getBody()))
44085
+ if (ia(Jt, kn), nr(Jt), i.dom.isEmpty(i.getBody()))
44079
44086
  i.setContent(""), i.selection.setCursorLocation();
44080
44087
  else {
44081
44088
  const Un = i.dom.createRng();
44082
44089
  Un.setStart(kn.dom, 0), Un.setEnd(kn.dom, 0), i.selection.setRng(Un), i.nodeChanged();
44083
44090
  }
44084
44091
  });
44085
- }), _ = (Ye) => k2(i).each((Xt) => {
44086
- Gg(i) || Of(i) || sd(i) || oc(Xt, h).each((Un) => {
44092
+ }), _ = (Ye) => k2(i).each((Jt) => {
44093
+ Gg(i) || Of(i) || sd(i) || oc(Jt, h).each((Un) => {
44087
44094
  Ye === "relative" && !j1(Un) ? iu(Un) : Ye === "fixed" && !G1(Un) ? vp(Un) : Ye === "responsive" && !qb(Un) && K1(Un), ad(Un), sh(i, Un.dom, eo);
44088
44095
  });
44089
- }), O = (Ye) => oc(Ye, h), I = (Ye) => CE(i).bind((Xt) => O(Xt).map((kn) => Ye(kn, Xt))), Z = (Ye, Xt) => {
44096
+ }), O = (Ye) => oc(Ye, h), I = (Ye) => CE(i).bind((Jt) => O(Jt).map((kn) => Ye(kn, Jt))), Z = (Ye, Jt) => {
44090
44097
  I((kn) => {
44091
- i.formatter.toggle("tableclass", { value: Xt }, kn.dom), sh(i, kn.dom, Wm);
44098
+ i.formatter.toggle("tableclass", { value: Jt }, kn.dom), sh(i, kn.dom, Wm);
44092
44099
  });
44093
- }, J = (Ye, Xt) => {
44100
+ }, J = (Ye, Jt) => {
44094
44101
  I((kn) => {
44095
- const Un = lu(i), Sa = Lo(Un, (_r) => i.formatter.match("tablecellclass", { value: Xt }, _r.dom)) ? i.formatter.remove : i.formatter.apply;
44096
- ot(Un, (_r) => Sa("tablecellclass", { value: Xt }, _r.dom)), sh(i, kn.dom, Wm);
44102
+ const Un = lu(i), Sa = Lo(Un, (_r) => i.formatter.match("tablecellclass", { value: Jt }, _r.dom)) ? i.formatter.remove : i.formatter.apply;
44103
+ ot(Un, (_r) => Sa("tablecellclass", { value: Jt }, _r.dom)), sh(i, kn.dom, Wm);
44097
44104
  });
44098
44105
  }, ue = () => {
44099
44106
  k2(i).each((Ye) => {
44100
- oc(Ye, h).each((Xt) => {
44101
- fo(Xt, "caption").fold(() => {
44107
+ oc(Ye, h).each((Jt) => {
44108
+ fo(Jt, "caption").fold(() => {
44102
44109
  const kn = _e.fromTag("caption");
44103
- ns(kn, _e.fromText("Caption")), Ra(Xt, kn, 0), i.selection.setCursorLocation(kn.dom, 0);
44110
+ ns(kn, _e.fromText("Caption")), Ra(Jt, kn, 0), i.selection.setCursorLocation(kn.dom, 0);
44104
44111
  }, (kn) => {
44105
- wr("caption")(Ye) && qi("td", Xt).each((Un) => i.selection.setCursorLocation(Un.dom, 0)), nr(kn);
44106
- }), sh(i, Xt.dom, eo);
44112
+ wr("caption")(Ye) && qi("td", Jt).each((Un) => i.selection.setCursorLocation(Un.dom, 0)), nr(kn);
44113
+ }), sh(i, Jt.dom, eo);
44107
44114
  });
44108
44115
  });
44109
44116
  }, Ee = (Ye) => {
44110
44117
  i.focus();
44111
- }, at = (Ye, Xt = !1) => I((kn, Un) => {
44118
+ }, at = (Ye, Jt = !1) => I((kn, Un) => {
44112
44119
  const js = Gh(lu(i), kn, Un);
44113
- Ye(kn, js, Xt).each(Ee);
44114
- }), Nt = () => I((Ye, Xt) => {
44115
- const kn = Gh(lu(i), Ye, Xt), Un = ba(Mt, _e.fromDom(i.getDoc()), ie.none());
44120
+ Ye(kn, js, Jt).each(Ee);
44121
+ }), Nt = () => I((Ye, Jt) => {
44122
+ const kn = Gh(lu(i), Ye, Jt), Un = ba(Mt, _e.fromDom(i.getDoc()), ie.none());
44116
44123
  return aE(Ye, kn, Un);
44117
- }), $t = () => I((Ye, Xt) => {
44118
- const kn = Gh(lu(i), Ye, Xt);
44124
+ }), $t = () => I((Ye, Jt) => {
44125
+ const kn = Gh(lu(i), Ye, Jt);
44119
44126
  return rE(Ye, kn);
44120
- }), Qe = (Ye, Xt) => Xt().each((kn) => {
44127
+ }), Qe = (Ye, Jt) => Jt().each((kn) => {
44121
44128
  const Un = mn(kn, (js) => Fc(js));
44122
44129
  I((js, Sa) => {
44123
44130
  const _r = lc(_e.fromDom(i.getDoc())), $l = qh(lu(i), Sa, Un, _r);
44124
44131
  Ye(js, $l).each(Ee);
44125
44132
  });
44126
- }), Pt = (Ye) => (Xt, kn) => Zi(kn, "type").each((Un) => {
44133
+ }), Pt = (Ye) => (Jt, kn) => Zi(kn, "type").each((Un) => {
44127
44134
  at(Ye(Un), kn.no_events);
44128
44135
  });
44129
44136
  Bo({
@@ -44151,7 +44158,7 @@ Required: ` + m.join(", "));
44151
44158
  mceTableCellToggleClass: J,
44152
44159
  mceTableToggleClass: Z,
44153
44160
  mceTableToggleCaption: ue,
44154
- mceTableSizingMode: (Ye, Xt) => _(Xt),
44161
+ mceTableSizingMode: (Ye, Jt) => _(Jt),
44155
44162
  mceTableCellType: Pt((Ye) => Ye === "th" ? m.makeCellsHeader : m.unmakeCellsHeader),
44156
44163
  mceTableColType: Pt((Ye) => Ye === "th" ? m.makeColumnsHeader : m.unmakeColumnsHeader),
44157
44164
  mceTableRowType: Pt((Ye) => {
@@ -44164,16 +44171,16 @@ Required: ` + m.join(", "));
44164
44171
  return m.makeRowsBody;
44165
44172
  }
44166
44173
  })
44167
- }, (Ye, Xt) => i.addCommand(Xt, Ye)), i.addCommand("mceInsertTable", (Ye, Xt) => {
44168
- PC(i, Xt.rows, Xt.columns, Xt.options);
44169
- }), i.addCommand("mceTableApplyCellStyle", (Ye, Xt) => {
44174
+ }, (Ye, Jt) => i.addCommand(Jt, Ye)), i.addCommand("mceInsertTable", (Ye, Jt) => {
44175
+ PC(i, Jt.rows, Jt.columns, Jt.options);
44176
+ }), i.addCommand("mceTableApplyCellStyle", (Ye, Jt) => {
44170
44177
  const kn = (Sa) => "tablecell" + Sa.toLowerCase().replace("-", "");
44171
- if (!ee(Xt))
44178
+ if (!ee(Jt))
44172
44179
  return;
44173
44180
  const Un = ro(lu(i), bb);
44174
44181
  if (Un.length === 0)
44175
44182
  return;
44176
- const js = vr(Xt, (Sa, _r) => i.formatter.has(kn(_r)) && De(Sa));
44183
+ const js = vr(Jt, (Sa, _r) => i.formatter.has(kn(_r)) && De(Sa));
44177
44184
  vl(js) || (Bo(js, (Sa, _r) => {
44178
44185
  const $l = kn(_r);
44179
44186
  ot(Un, (fh) => {
@@ -44307,7 +44314,7 @@ Required: ` + m.join(", "));
44307
44314
  return Cp.create(_e.fromDom(h.startContainer), h.startOffset, _e.fromDom(h.endContainer), h.endOffset);
44308
44315
  }, J1 = ZC.create, ev = (i, m, h, v, _, O, I) => ts(h, _) && v === O ? ie.none() : Ms(h, "td,th", m).bind((Z) => Ms(_, "td,th", m).bind((J) => Sp(i, m, Z, J, I))), Sp = (i, m, h, v, _) => ts(h, v) ? ie.none() : Ou(h, v, m).bind((O) => {
44309
44316
  const I = O.boxes.getOr([]);
44310
- return I.length > 1 ? (_(i, I, O.start, O.finish), ie.some(xp.create(ie.some(J1(h, 0, h, Do(h))), !0))) : ie.none();
44317
+ return I.length > 1 ? (_(i, I, O.start, O.finish), ie.some(xp.create(ie.some(J1(h, 0, h, Ro(h))), !0))) : ie.none();
44311
44318
  }), RE = (i, m, h, v, _) => {
44312
44319
  const O = (I) => (_.clearBeforeUpdate(h), _.selectRange(h, I.boxes, I.start, I.finish), I.boxes);
44313
44320
  return xb(v, i, m, _.firstSelectedSelector, _.lastSelectedSelector).map(O);
@@ -44352,7 +44359,7 @@ Required: ` + m.join(", "));
44352
44359
  return _.right > v.left && _.left < v.right;
44353
44360
  }, $E = (i) => Ms(i, "tr"), Pr = {
44354
44361
  ...Gf,
44355
- verify: (i, m, h, v, _, O, I) => Ms(v, "td,th", I).bind((Z) => Ms(m, "td,th", I).map((J) => ts(Z, J) ? ts(v, Z) && Do(Z) === _ ? O(J) : Gf.none("in same cell") : xs($E, [
44362
+ verify: (i, m, h, v, _, O, I) => Ms(v, "td,th", I).bind((Z) => Ms(m, "td,th", I).map((J) => ts(Z, J) ? ts(v, Z) && Ro(Z) === _ ? O(J) : Gf.none("in same cell") : xs($E, [
44356
44363
  Z,
44357
44364
  J
44358
44365
  ]).fold(() => nv(i, J, Z) ? Gf.success() : O(J), (ue) => O(J)))).getOr(Gf.none("default")),
@@ -44368,7 +44375,7 @@ Required: ` + m.join(", "));
44368
44375
  }), YC = (i, m) => Qa(i, Xn(ts, m)), ov = wr("br"), qf = (i, m, h) => m(i, h).bind((v) => Bc(v) && on(v).trim().length === 0 ? qf(v, m, h) : ie.some(v)), Tc = (i, m, h) => h.traverse(m).orThunk(() => qf(m, h.gather, i)).map(h.relative), Tp = (i, m) => Xr(i, m).filter(ov).orThunk(() => Xr(i, m - 1).filter(ov)), o0 = (i, m, h, v) => Tp(m, h).bind((_) => v.traverse(_).fold(() => qf(_, v.gather, i).map(v.relative), (O) => jm(O).map((I) => qa.on(I.parent, I.index)))), Ep = (i, m, h, v) => (ov(m) ? Tc(i, m, v) : o0(i, m, h, v)).map((O) => ({
44369
44376
  start: O,
44370
44377
  finish: O
44371
- })), I2 = (i) => Pr.cata(i, (m) => ie.none(), () => ie.none(), (m) => ie.some(Yh(m, 0)), (m) => ie.some(Yh(m, Do(m)))), Ap = (i, m) => ({
44378
+ })), I2 = (i) => Pr.cata(i, (m) => ie.none(), () => ie.none(), (m) => ie.some(Yh(m, 0)), (m) => ie.some(Yh(m, Ro(m)))), Ap = (i, m) => ({
44372
44379
  left: i.left,
44373
44380
  top: i.top + m,
44374
44381
  right: i.right,
@@ -44383,12 +44390,12 @@ Required: ` + m.join(", "));
44383
44390
  top: i.top + h,
44384
44391
  right: i.right + m,
44385
44392
  bottom: i.bottom + h
44386
- }), ME = (i) => i.top, NE = (i) => i.bottom, Kf = (i, m, h) => h >= 0 && h < Do(m) ? i.getRangedRect(m, h, m, h + 1) : h > 0 ? i.getRangedRect(m, h - 1, m, h) : ie.none(), Op = (i) => ({
44393
+ }), ME = (i) => i.top, NE = (i) => i.bottom, Kf = (i, m, h) => h >= 0 && h < Ro(m) ? i.getRangedRect(m, h, m, h + 1) : h > 0 ? i.getRangedRect(m, h - 1, m, h) : ie.none(), Op = (i) => ({
44387
44394
  left: i.left,
44388
44395
  top: i.top,
44389
44396
  right: i.right,
44390
44397
  bottom: i.bottom
44391
- }), sv = (i, m) => ie.some(i.getRect(m)), Xd = (i, m, h) => Er(m) ? sv(i, m).map(Op) : Bc(m) ? Kf(i, m, h).map(Op) : ie.none(), L2 = (i, m) => Er(m) ? sv(i, m).map(Op) : Bc(m) ? i.getRangedRect(m, 0, m, Do(m)).map(Op) : ie.none(), Ka = 5, Gm = 100, Mu = ni.generate([
44398
+ }), sv = (i, m) => ie.some(i.getRect(m)), Xd = (i, m, h) => Er(m) ? sv(i, m).map(Op) : Bc(m) ? Kf(i, m, h).map(Op) : ie.none(), L2 = (i, m) => Er(m) ? sv(i, m).map(Op) : Bc(m) ? i.getRangedRect(m, 0, m, Ro(m)).map(Op) : ie.none(), Ka = 5, Gm = 100, Mu = ni.generate([
44392
44399
  { none: [] },
44393
44400
  { retry: ["caret"] }
44394
44401
  ]), Dp = (i, m) => i.left < m.left || Math.abs(m.right - i.left) < 1 || i.left > m.right, Xc = (i, m, h) => Ua(m, Vb).fold(wt, (v) => L2(i, v).exists((_) => Dp(h, _))), Dl = (i, m, h, v, _) => {
@@ -44419,7 +44426,7 @@ Required: ` + m.join(", "));
44419
44426
  return I2(I);
44420
44427
  })), av = (i, m, h, v, _, O) => O === 0 ? ie.none() : IE(i, m, h, v, _).bind((I) => {
44421
44428
  const Z = i.fromSitus(I), J = Pr.verify(i, h, v, Z.finish, Z.foffset, _.failure, m);
44422
- return Pr.cata(J, () => ie.none(), () => ie.some(I), (ue) => ts(h, ue) && v === 0 ? PE(i, h, v, ch, _) : av(i, m, ue, 0, _, O - 1), (ue) => ts(h, ue) && v === Do(ue) ? PE(i, h, v, Ap, _) : av(i, m, ue, Do(ue), _, O - 1));
44429
+ return Pr.cata(J, () => ie.none(), () => ie.some(I), (ue) => ts(h, ue) && v === 0 ? PE(i, h, v, ch, _) : av(i, m, ue, 0, _, O - 1), (ue) => ts(h, ue) && v === Ro(ue) ? PE(i, h, v, Ap, _) : av(i, m, ue, Ro(ue), _, O - 1));
44423
44430
  }), PE = (i, m, h, v, _) => Xd(i, m, h).bind((O) => QC(i, _, v(O, s0.getJumpSize()))), QC = (i, m, h) => {
44424
44431
  const v = Xu().browser;
44425
44432
  return v.isChromium() || v.isSafari() || v.isFirefox() ? m.retry(i, h) : ie.none();
@@ -44433,7 +44440,7 @@ Required: ` + m.join(", "));
44433
44440
  })), ih = (i, m) => Ms(i, "tr", m).bind((h) => Ms(h, "table", m).bind((v) => {
44434
44441
  const _ = $s(v, "tr");
44435
44442
  return ts(h, _[0]) ? n0(v, (O) => cu(O).isSome(), m).map((O) => {
44436
- const I = Do(O);
44443
+ const I = Ro(O);
44437
44444
  return xp.create(ie.some(J1(O, I, O, I)), !0);
44438
44445
  }) : ie.none();
44439
44446
  })), H2 = (i, m) => Ms(i, "tr", m).bind((h) => Ms(h, "table", m).bind((v) => {
@@ -44472,8 +44479,8 @@ Required: ` + m.join(", "));
44472
44479
  Ou(at, Nt, h).each(($t) => {
44473
44480
  const Qe = $t.boxes.getOr([]);
44474
44481
  if (Qe.length === 1) {
44475
- const Pt = Qe[0], Ye = k1(Pt) === "false", Xt = hi(gb(Ee.target), Pt, ts);
44476
- Ye && Xt && (v.selectRange(m, Qe, Pt, Pt), i.selectContents(Pt));
44482
+ const Pt = Qe[0], Ye = k1(Pt) === "false", Jt = hi(gb(Ee.target), Pt, ts);
44483
+ Ye && Jt && (v.selectRange(m, Qe, Pt, Pt), i.selectContents(Pt));
44477
44484
  } else Qe.length > 1 && (v.selectRange(m, Qe, $t.start, $t.finish), i.selectContents(Nt));
44478
44485
  });
44479
44486
  });
@@ -44561,7 +44568,7 @@ Required: ` + m.join(", "));
44561
44568
  return W2(v, m, h).map((_) => Cp.create(_e.fromDom(_.startContainer), _.startOffset, _e.fromDom(_.endContainer), _.endOffset));
44562
44569
  }, l0 = (i, m) => {
44563
44570
  const h = es(i);
44564
- return h === "input" ? qa.after(i) : Jt([
44571
+ return h === "input" ? qa.after(i) : Xt([
44565
44572
  "br",
44566
44573
  "img"
44567
44574
  ], h) ? m === 0 ? qa.before(i) : qa.after(i) : qa.on(i, m);
@@ -44632,23 +44639,23 @@ Required: ` + m.join(", "));
44632
44639
  }, hd = (i, m, h) => UE(i, m, h), hv = (i) => {
44633
44640
  Zr(i).each((m) => m.removeAllRanges());
44634
44641
  }, Bp = (i) => ({
44635
- elementFromPoint: (Ye, Xt) => _e.fromPoint(_e.fromDom(i.document), Ye, Xt),
44642
+ elementFromPoint: (Ye, Jt) => _e.fromPoint(_e.fromDom(i.document), Ye, Jt),
44636
44643
  getRect: (Ye) => Ye.dom.getBoundingClientRect(),
44637
- getRangedRect: (Ye, Xt, kn, Un) => {
44638
- const js = Xf.exact(Ye, Xt, kn, Un);
44644
+ getRangedRect: (Ye, Jt, kn, Un) => {
44645
+ const js = Xf.exact(Ye, Jt, kn, Un);
44639
44646
  return ZE(i, js);
44640
44647
  },
44641
44648
  getSelection: () => j2(i).map((Ye) => D2(i, Ye)),
44642
44649
  fromSitus: (Ye) => {
44643
- const Xt = Xf.relative(Ye.start, Ye.finish);
44644
- return D2(i, Xt);
44650
+ const Jt = Xf.relative(Ye.start, Ye.finish);
44651
+ return D2(i, Jt);
44645
44652
  },
44646
- situsFromPoint: (Ye, Xt) => hd(i, Ye, Xt).map((kn) => ZC.create(kn.start, kn.soffset, kn.finish, kn.foffset)),
44653
+ situsFromPoint: (Ye, Jt) => hd(i, Ye, Jt).map((kn) => ZC.create(kn.start, kn.soffset, kn.finish, kn.foffset)),
44647
44654
  clearSelection: () => {
44648
44655
  hv(i);
44649
44656
  },
44650
44657
  collapseSelection: (Ye = !1) => {
44651
- j2(i).each((Xt) => Xt.fold((kn) => kn.collapse(Ye), (kn, Un) => {
44658
+ j2(i).each((Jt) => Jt.fold((kn) => kn.collapse(Ye), (kn, Un) => {
44652
44659
  const js = Ye ? kn : Un;
44653
44660
  gv(i, js, js);
44654
44661
  }, (kn, Un, js, Sa) => {
@@ -44659,8 +44666,8 @@ Required: ` + m.join(", "));
44659
44666
  setSelection: (Ye) => {
44660
44667
  fv(i, Ye.start, Ye.soffset, Ye.finish, Ye.foffset);
44661
44668
  },
44662
- setRelativeSelection: (Ye, Xt) => {
44663
- gv(i, Ye, Xt);
44669
+ setRelativeSelection: (Ye, Jt) => {
44670
+ gv(i, Ye, Jt);
44664
44671
  },
44665
44672
  selectNode: (Ye) => {
44666
44673
  u0(i, Ye, !1);
@@ -44670,8 +44677,8 @@ Required: ` + m.join(", "));
44670
44677
  },
44671
44678
  getInnerHeight: () => i.innerHeight,
44672
44679
  getScrollY: () => HE(_e.fromDom(i.document)).top,
44673
- scrollBy: (Ye, Xt) => {
44674
- Mp(Ye, Xt, _e.fromDom(i.document));
44680
+ scrollBy: (Ye, Jt) => {
44681
+ Mp(Ye, Jt, _e.fromDom(i.document));
44675
44682
  }
44676
44683
  }), fc = (i, m) => ({
44677
44684
  rows: i,
@@ -44852,7 +44859,7 @@ Required: ` + m.join(", "));
44852
44859
  ]).fold(() => O.clear(Ee), Mt);
44853
44860
  }, $t = Kr(ue, Ee, at, O), Qe = bv(ue, Ee, at, O), Pt = m0(ue, Ee, at, O), Ye = (ds) => ds.raw.shiftKey === !0;
44854
44861
  i.on("TableSelectorChange", (ds) => Pt(ds.start, ds.finish));
44855
- const Xt = (ds, Jc) => {
44862
+ const Jt = (ds, Jc) => {
44856
44863
  Ye(ds) && (Jc.kill && ds.kill(), Jc.selection.each((gc) => {
44857
44864
  const $i = Xf.relative(gc.start, gc.finish), ri = O2(ue, $i);
44858
44865
  i.selection.setRng(ri);
@@ -44862,7 +44869,7 @@ Required: ` + m.join(", "));
44862
44869
  if (Jc.raw.shiftKey && uh(Jc.raw.which)) {
44863
44870
  const gc = i.selection.getRng(), $i = _e.fromDom(gc.startContainer), ri = _e.fromDom(gc.endContainer);
44864
44871
  Qe.keyup(Jc, $i, gc.startOffset, ri, gc.endOffset).each((eg) => {
44865
- Xt(Jc, eg);
44872
+ Jt(Jc, eg);
44866
44873
  });
44867
44874
  }
44868
44875
  }, Un = (ds) => {
@@ -44870,7 +44877,7 @@ Required: ` + m.join(", "));
44870
44877
  m.hide();
44871
44878
  const gc = i.selection.getRng(), $i = _e.fromDom(gc.startContainer), ri = _e.fromDom(gc.endContainer), eg = Vh(FE, nS)(_e.fromDom(i.selection.getStart()));
44872
44879
  Qe.keydown(Jc, $i, gc.startOffset, ri, gc.endOffset, eg).each((hl) => {
44873
- Xt(Jc, hl);
44880
+ Jt(Jc, hl);
44874
44881
  }), m.show();
44875
44882
  }, js = (ds) => ds.button === 0, Sa = (ds) => ds.buttons === void 0 ? !0 : (ds.buttons & 1) !== 0, _r = (ds) => {
44876
44883
  $t.clearstate();
@@ -44966,12 +44973,12 @@ Required: ` + m.join(", "));
44966
44973
  throw new Error("You must specify at least one required field.");
44967
44974
  return Ac("required", m), p5(m), (v) => {
44968
44975
  const _ = Ft(v);
44969
- Lo(m, (Z) => Jt(_, Z)) || KE(m, _), i(m, _);
44976
+ Lo(m, (Z) => Xt(_, Z)) || KE(m, _), i(m, _);
44970
44977
  const I = ro(m, (Z) => !h.validate(v[Z], Z));
44971
44978
  return I.length > 0 && mh(I, h.label), v;
44972
44979
  };
44973
44980
  }, io = (i, m) => {
44974
- const h = ro(m, (v) => !Jt(i, v));
44981
+ const h = ro(m, (v) => !Xt(i, v));
44975
44982
  h.length > 0 && si(h);
44976
44983
  }, tw = (i) => gS(io, i), hS = tw([
44977
44984
  "compare",
@@ -45049,8 +45056,8 @@ Required: ` + m.join(", "));
45049
45056
  v = !0;
45050
45057
  }, at = () => {
45051
45058
  v = !1;
45052
- }, Nt = () => v, $t = (Ye) => (...Xt) => {
45053
- v && Ye.apply(null, Xt);
45059
+ }, Nt = () => v, $t = (Ye) => (...Jt) => {
45060
+ v && Ye.apply(null, Jt);
45054
45061
  }, Qe = m.sink(XE({
45055
45062
  forceDrop: I,
45056
45063
  drop: $t(I),
@@ -45220,7 +45227,7 @@ Required: ` + m.join(", "));
45220
45227
  Jd(i, (m) => {
45221
45228
  Zs(m, "display", "none");
45222
45229
  });
45223
- }, Ro = (i) => {
45230
+ }, $o = (i) => {
45224
45231
  Jd(i, (m) => {
45225
45232
  Zs(m, "display", "block");
45226
45233
  });
@@ -45238,18 +45245,18 @@ Required: ` + m.join(", "));
45238
45245
  });
45239
45246
  });
45240
45247
  const O = (Qe, Pt) => {
45241
- const Ye = zr(Qe, Pt), Xt = ws(Qe, "data-initial-" + Pt, 0);
45242
- return Ye - Xt;
45248
+ const Ye = zr(Qe, Pt), Jt = ws(Qe, "data-initial-" + Pt, 0);
45249
+ return Ye - Jt;
45243
45250
  };
45244
45251
  h.events.stop.bind(() => {
45245
45252
  m.get().each((Qe) => {
45246
45253
  v.each((Pt) => {
45247
45254
  _(Qe, "data-row").each((Ye) => {
45248
- const Xt = O(Qe, "top");
45249
- Is(Qe, "data-initial-top"), $t.trigger.adjustHeight(Pt, Xt, parseInt(Ye, 10));
45255
+ const Jt = O(Qe, "top");
45256
+ Is(Qe, "data-initial-top"), $t.trigger.adjustHeight(Pt, Jt, parseInt(Ye, 10));
45250
45257
  }), _(Qe, "data-column").each((Ye) => {
45251
- const Xt = O(Qe, "left");
45252
- Is(Qe, "data-initial-left"), $t.trigger.adjustWidth(Pt, Xt, parseInt(Ye, 10));
45258
+ const Jt = O(Qe, "left");
45259
+ Is(Qe, "data-initial-left"), $t.trigger.adjustWidth(Pt, Jt, parseInt(Ye, 10));
45253
45260
  }), xv(i, Pt);
45254
45261
  });
45255
45262
  });
@@ -45287,7 +45294,7 @@ Required: ` + m.join(", "));
45287
45294
  on: h.on,
45288
45295
  off: h.off,
45289
45296
  hideBars: Xn(Cv, i),
45290
- showBars: Xn(Ro, i),
45297
+ showBars: Xn($o, i),
45291
45298
  events: $t.registry
45292
45299
  };
45293
45300
  }, _v = { create: (i, m, h) => {
@@ -45370,10 +45377,10 @@ Required: ` + m.join(", "));
45370
45377
  const m = Rp(), h = Rp(), v = Rp();
45371
45378
  let _, O;
45372
45379
  const I = (Qe) => Yc(i, Qe), Z = () => Gx(i) ? Hy() : tC(), J = (Qe) => Jh(Qe).columns, ue = (Qe, Pt, Ye) => {
45373
- const Xt = Ji(Pt, "e");
45380
+ const Jt = Ji(Pt, "e");
45374
45381
  if (O === "" && iu(Qe), Ye !== _ && O !== "") {
45375
45382
  Zs(Qe, "width", O);
45376
- const kn = Z(), Un = I(Qe), js = Gx(i) || Xt ? J(Qe) - 1 : 0;
45383
+ const kn = Z(), Un = I(Qe), js = Gx(i) || Jt ? J(Qe) - 1 : 0;
45377
45384
  I1(Qe, Ye - _, js, kn, Un);
45378
45385
  } else if (pb(O)) {
45379
45386
  const kn = parseFloat(O.replace("%", "")), Un = Ye * kn / _;
@@ -45391,31 +45398,31 @@ Required: ` + m.join(", "));
45391
45398
  const Qe = aw(i, tf);
45392
45399
  if (v.set(Qe), _T(i) && qg(i)) {
45393
45400
  const Pt = Z(), Ye = _v.create(Qe, Pt, I);
45394
- Ye.on(), Ye.events.startDrag.bind((Xt) => {
45401
+ Ye.on(), Ye.events.startDrag.bind((Jt) => {
45395
45402
  m.set(i.selection.getRng());
45396
- }), Ye.events.beforeResize.bind((Xt) => {
45397
- const kn = Xt.table.dom;
45398
- f2(i, kn, Rf(kn), $f(kn), Ri + Xt.type);
45399
- }), Ye.events.afterResize.bind((Xt) => {
45400
- const kn = Xt.table, Un = kn.dom;
45403
+ }), Ye.events.beforeResize.bind((Jt) => {
45404
+ const kn = Jt.table.dom;
45405
+ f2(i, kn, Rf(kn), $f(kn), Ri + Jt.type);
45406
+ }), Ye.events.afterResize.bind((Jt) => {
45407
+ const kn = Jt.table, Un = kn.dom;
45401
45408
  ad(kn), m.on((js) => {
45402
45409
  i.selection.setRng(js), i.focus();
45403
- }), sE(i, Un, Rf(Un), $f(Un), Ri + Xt.type), i.undoManager.add();
45410
+ }), sE(i, Un, Rf(Un), $f(Un), Ri + Jt.type), i.undoManager.add();
45404
45411
  }), h.set(Ye);
45405
45412
  }
45406
45413
  }), i.on("ObjectResizeStart", (Qe) => {
45407
45414
  const Pt = Qe.target;
45408
45415
  if (po(Pt)) {
45409
45416
  const Ye = _e.fromDom(Pt);
45410
- ot(i.dom.select(".mce-clonedresizable"), (Xt) => {
45411
- i.dom.addClass(Xt, "mce-" + Ty(i) + "-columns");
45417
+ ot(i.dom.select(".mce-clonedresizable"), (Jt) => {
45418
+ i.dom.addClass(Jt, "mce-" + Ty(i) + "-columns");
45412
45419
  }), !G1(Ye) && Of(i) ? vp(Ye) : !j1(Ye) && sd(i) && iu(Ye), qb(Ye) && zl(Qe.origin, Ri) && iu(Ye), _ = Qe.width, O = Gg(i) ? "" : qx(i, Pt).getOr("");
45413
45420
  }
45414
45421
  }), i.on("ObjectResized", (Qe) => {
45415
45422
  const Pt = Qe.target;
45416
45423
  if (po(Pt)) {
45417
- const Ye = _e.fromDom(Pt), Xt = Qe.origin;
45418
- zl(Xt, "corner-") && ue(Ye, Xt, Qe.width), ad(Ye), sh(i, Ye.dom, Wm);
45424
+ const Ye = _e.fromDom(Pt), Jt = Qe.origin;
45425
+ zl(Jt, "corner-") && ue(Ye, Jt, Qe.width), ad(Ye), sh(i, Ye.dom, Wm);
45419
45426
  }
45420
45427
  }), i.on("SwitchMode", () => {
45421
45428
  h.on((Qe) => {
@@ -45460,14 +45467,14 @@ Required: ` + m.join(", "));
45460
45467
  const R = typeof S;
45461
45468
  return S === null ? "null" : R === "object" && Array.isArray(S) ? "array" : R === "object" && ve(S, String, (U, re) => re.isPrototypeOf(U)) ? "string" : R;
45462
45469
  }, Re = (S) => (R) => ce(R) === S, ye = (S) => (R) => typeof R === S, Q = Re("string"), De = Re("object"), ee = Re("array"), Ue = ye("boolean"), Ct = (S) => S == null, Gt = (S) => !Ct(S), Sn = ye("function"), zn = ye("number"), Uo = () => {
45463
- }, ir = (S, R) => (U) => S(R(U)), $o = (S) => () => S, Mt = (S, R) => S === R;
45470
+ }, ir = (S, R) => (U) => S(R(U)), Mo = (S) => () => S, Mt = (S, R) => S === R;
45464
45471
  function ur(S, ...R) {
45465
45472
  return (...U) => {
45466
45473
  const re = R.concat(U);
45467
45474
  return S.apply(null, re);
45468
45475
  };
45469
45476
  }
45470
- const dn = (S) => (R) => !S(R), me = $o(!1);
45477
+ const dn = (S) => (R) => !S(R), me = Mo(!1);
45471
45478
  class _t {
45472
45479
  constructor(R, U) {
45473
45480
  this.tag = R, this.value = U;
@@ -45558,7 +45565,7 @@ Required: ` + m.join(", "));
45558
45565
  const fe = S[U];
45559
45566
  R(fe, U);
45560
45567
  }
45561
- }, Mo = (S, R) => {
45568
+ }, Oo = (S, R) => {
45562
45569
  const U = [];
45563
45570
  for (let re = 0, fe = S.length; re < fe; re++) {
45564
45571
  const lt = S[re];
@@ -45589,7 +45596,7 @@ Required: ` + m.join(", "));
45589
45596
  break;
45590
45597
  }
45591
45598
  return _t.none();
45592
- }, Jt = (S, R) => A(S, R, me), nt = (S) => {
45599
+ }, Xt = (S, R) => A(S, R, me), nt = (S) => {
45593
45600
  const R = [];
45594
45601
  for (let U = 0, re = S.length; U < re; ++U) {
45595
45602
  if (!ee(S[U]))
@@ -45691,7 +45698,7 @@ Required: ` + m.join(", "));
45691
45698
  break;
45692
45699
  }
45693
45700
  return _t.none();
45694
- }, Us = (S, R, U) => wr((fe, lt) => lt(fe), mr, S, R, U), bc = (S, R, U) => mr(S, (re) => Zo(re, R), U), Gi = (S, R, U) => wr((fe, lt) => Zo(fe, lt), bc, S, R, U), Hr = (S) => Gi(S, "[contenteditable]"), ca = (S, R = !1) => di(S) ? S.dom.isContentEditable : Hr(S).fold($o(R), (U) => Is(U) === "true"), Is = (S) => S.dom.contentEditable, Ar = (S, R) => {
45701
+ }, Us = (S, R, U) => wr((fe, lt) => lt(fe), mr, S, R, U), bc = (S, R, U) => mr(S, (re) => Zo(re, R), U), Gi = (S, R, U) => wr((fe, lt) => Zo(fe, lt), bc, S, R, U), Hr = (S) => Gi(S, "[contenteditable]"), ca = (S, R = !1) => di(S) ? S.dom.isContentEditable : Hr(S).fold(Mo(R), (U) => Is(U) === "true"), Is = (S) => S.dom.contentEditable, Ar = (S, R) => {
45695
45702
  Tr(S).each((re) => {
45696
45703
  re.dom.insertBefore(R.dom, S.dom);
45697
45704
  });
@@ -45838,9 +45845,9 @@ Required: ` + m.join(", "));
45838
45845
  ], Fs = ao.join(","), Ma = (S, R) => {
45839
45846
  const U = R || S.selection.getStart(!0);
45840
45847
  return S.dom.getParent(U, Fs, Dt(S, U));
45841
- }, pu = (S, R) => Gt(S) && R.length === 1 && R[0] === S, Bt = (S) => Mo(S.querySelectorAll(Fs), Ra), Gu = (S) => {
45848
+ }, pu = (S, R) => Gt(S) && R.length === 1 && R[0] === S, Bt = (S) => Oo(S.querySelectorAll(Fs), Ra), Gu = (S) => {
45842
45849
  const R = Ma(S), U = S.selection.getSelectedBlocks();
45843
- return pu(R, U) ? Bt(R) : Mo(U, (re) => Ra(re) && R !== re);
45850
+ return pu(R, U) ? Bt(R) : Oo(U, (re) => Ra(re) && R !== re);
45844
45851
  }, Ws = (S, R) => {
45845
45852
  const U = la.map(R, (re) => {
45846
45853
  const fe = S.dom.getParent(re, "li,dd,dt", Dt(S, re));
@@ -45849,25 +45856,25 @@ Required: ` + m.join(", "));
45849
45856
  return ro(U);
45850
45857
  }, P = (S) => {
45851
45858
  const R = S.selection.getSelectedBlocks();
45852
- return Mo(Ws(S, R), Or);
45853
- }, K = (S) => Mo(P(S), ua), se = (S, R) => {
45859
+ return Oo(Ws(S, R), Or);
45860
+ }, K = (S) => Oo(P(S), ua), se = (S, R) => {
45854
45861
  const U = S.dom.getParents(R, "TD,TH");
45855
45862
  return U.length > 0 ? U[0] : S.getBody();
45856
45863
  }, Ie = (S, R) => !Ra(R) && !Or(R) && wt(ao, (U) => S.isValidChild(R.nodeName, U)), Dt = (S, R) => {
45857
45864
  const U = S.dom.getParents(R, S.dom.isBlock);
45858
- return Jt(U, (fe) => Ie(S.schema, fe)).getOr(S.getBody());
45865
+ return Xt(U, (fe) => Ie(S.schema, fe)).getOr(S.getBody());
45859
45866
  }, Kn = (S) => Tr(S).exists((R) => Or(R.dom) && ec(R).exists((U) => !Ra(U.dom)) && pc(R).exists((U) => !Ra(U.dom))), jt = (S, R) => {
45860
45867
  const U = S.dom.getParents(R, "ol,ul", Dt(S, R));
45861
45868
  return dr(U);
45862
45869
  }, $s = (S) => {
45863
- const R = jt(S, S.selection.getStart()), U = Mo(S.selection.getSelectedBlocks(), Yi);
45870
+ const R = jt(S, S.selection.getStart()), U = Oo(S.selection.getSelectedBlocks(), Yi);
45864
45871
  return R.toArray().concat(U);
45865
45872
  }, ct = (S) => {
45866
45873
  const R = S.selection.getStart();
45867
45874
  return S.dom.getParents(R, "ol,ul", Dt(S, R));
45868
45875
  }, as = (S) => {
45869
45876
  const R = $s(S), U = ct(S);
45870
- return Jt(U, (re) => Kn(vn.fromDom(re))).fold(() => Ua(S, R), (re) => [re]);
45877
+ return Xt(U, (re) => Kn(vn.fromDom(re))).fold(() => Ua(S, R), (re) => [re]);
45871
45878
  }, Ua = (S, R) => {
45872
45879
  const U = Fe(R, (re) => jt(S, re).getOr(re));
45873
45880
  return ro(U);
@@ -45891,7 +45898,7 @@ Required: ` + m.join(", "));
45891
45898
  }, Vs = (S, R, U) => S.dispatch("ListMutation", {
45892
45899
  action: R,
45893
45900
  element: U
45894
- }), Dh = ((S) => (R) => R.replace(S, ""))(/^\s+|\s+$/g), Rh = (S) => S.length > 0, Oo = (S) => !Rh(S), zl = (S) => S.style !== void 0 && Sn(S.style.getPropertyValue), Ji = (S, R, U) => {
45901
+ }), Dh = ((S) => (R) => R.replace(S, ""))(/^\s+|\s+$/g), Rh = (S) => S.length > 0, Do = (S) => !Rh(S), zl = (S) => S.style !== void 0 && Sn(S.style.getPropertyValue), Ji = (S, R, U) => {
45895
45902
  if (!Q(U))
45896
45903
  throw console.error("Invalid call to CSS.set. Property ", R, ":: Value ", U, ":: Element ", S), new Error("CSS value must be a string: " + U);
45897
45904
  zl(S) && S.style.setProperty(R, U);
@@ -46054,10 +46061,10 @@ Required: ` + m.join(", "));
46054
46061
  const U = Ul(R);
46055
46062
  return wf(S.contentDocument, U).toArray();
46056
46063
  }, Tg = (S, R) => No(Jn(R, Na), (U) => Wo(U).exists(Na) ? kg(S, U) : Qi(S, U)), Eg = (S, R) => {
46057
- ie(Mo(S, ma), (U) => xm(R, U));
46064
+ ie(Oo(S, ma), (U) => xm(R, U));
46058
46065
  }, Yu = (S) => {
46059
46066
  const R = Fe(P(S), vn.fromDom);
46060
- return gt(Jt(R, dn(co)), Jt(mn(R), dn(co)), (U, re) => ({
46067
+ return gt(Xt(R, dn(co)), Xt(mn(R), dn(co)), (U, re) => ({
46061
46068
  start: U,
46062
46069
  end: re
46063
46070
  }));
@@ -46211,7 +46218,7 @@ Required: ` + m.join(", "));
46211
46218
  if (qt.getContentEditable(S.selection.getNode()) === "false")
46212
46219
  return;
46213
46220
  R = R.toUpperCase(), R === "DL" && (fe = "DT");
46214
- const On = _l(re), _n = Mo(wu(S, re, lt), S.dom.isEditable);
46221
+ const On = _l(re), _n = Oo(wu(S, re, lt), S.dom.isEditable);
46215
46222
  la.each(_n, (hn) => {
46216
46223
  let zs;
46217
46224
  const ea = hn.previousSibling, zc = hn.parentNode;
@@ -46444,7 +46451,7 @@ Required: ` + m.join(", "));
46444
46451
  const R = S % 26, U = Math.floor(S / 26), re = Ju(U), fe = String.fromCharCode(65 + R);
46445
46452
  return re + fe;
46446
46453
  }
46447
- }, sr = (S) => /^[A-Z]+$/.test(S), Ur = (S) => /^[a-z]+$/.test(S), Zl = (S) => /^[0-9]+$/.test(S), Qu = (S) => Zl(S) ? 2 : sr(S) ? 0 : Ur(S) ? 1 : Oo(S) ? 3 : 4, Cr = (S) => {
46454
+ }, sr = (S) => /^[A-Z]+$/.test(S), Ur = (S) => /^[a-z]+$/.test(S), Zl = (S) => /^[0-9]+$/.test(S), Qu = (S) => Zl(S) ? 2 : sr(S) ? 0 : Ur(S) ? 1 : Do(S) ? 3 : 4, Cr = (S) => {
46448
46455
  switch (Qu(S)) {
46449
46456
  case 2:
46450
46457
  return _t.some({
@@ -46615,7 +46622,7 @@ Required: ` + m.join(", "));
46615
46622
  return !0;
46616
46623
  }
46617
46624
  return !1;
46618
- }, $o = () => {
46625
+ }, Mo = () => {
46619
46626
  }, Mt = (j) => () => j, ur = (j, de) => j === de;
46620
46627
  class dn {
46621
46628
  constructor(de, Se) {
@@ -46717,14 +46724,14 @@ Required: ` + m.join(", "));
46717
46724
  return Be;
46718
46725
  }
46719
46726
  return dn.none();
46720
- }, Mo = (j, de, Se = ur) => j.exists((Be) => Se(Be, de)), Jn = (j) => {
46727
+ }, Oo = (j, de, Se = ur) => j.exists((Be) => Se(Be, de)), Jn = (j) => {
46721
46728
  const de = [], Se = (Be) => {
46722
46729
  de.push(Be);
46723
46730
  };
46724
46731
  for (let Be = 0; Be < j.length; Be++)
46725
46732
  j[Be].each(Se);
46726
46733
  return de;
46727
- }, Ge = (j, de) => j ? dn.some(de) : dn.none(), A = (j) => (de) => de.options.get(j), Jt = (j) => {
46734
+ }, Ge = (j, de) => j ? dn.some(de) : dn.none(), A = (j) => (de) => de.options.get(j), Xt = (j) => {
46728
46735
  const de = j.options.register;
46729
46736
  de("link_assume_external_targets", {
46730
46737
  processor: (Se) => {
@@ -46813,7 +46820,7 @@ Required: ` + m.join(", "));
46813
46820
  });
46814
46821
  }, Bo = (j, de) => {
46815
46822
  const Se = {};
46816
- return kr(j, de, Ft(Se), $o), Se;
46823
+ return kr(j, de, Ft(Se), Mo), Se;
46817
46824
  }, Va = (j, de) => vn.call(j, de), hs = (j, de) => Va(j, de) && j[de] !== void 0 && j[de] !== null;
46818
46825
  var br = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"), bl = tinymce.util.Tools.resolve("tinymce.util.URI");
46819
46826
  const vr = (j) => zn(j) && j.nodeName.toLowerCase() === "a", Js = (j) => vr(j) && !!us(j), ps = (j, de) => {
@@ -46937,7 +46944,7 @@ Required: ` + m.join(", "));
46937
46944
  value: Fo.value,
46938
46945
  meta: {
46939
46946
  text: ln ? j : Fo.text,
46940
- attach: $o
46947
+ attach: Mo
46941
46948
  }
46942
46949
  },
46943
46950
  text: ln ? j : Fo.text
@@ -47038,7 +47045,7 @@ Required: ` + m.join(", "));
47038
47045
  } }, Ad = { getRels: (j, de) => {
47039
47046
  const Se = ro(j);
47040
47047
  if (Se.length > 0) {
47041
- const Be = Mo(de, "_blank"), dt = gt(j) === !1, ln = (rs) => jo(Ke.getValue(rs), Be);
47048
+ const Be = Oo(de, "_blank"), dt = gt(j) === !1, ln = (rs) => jo(Ke.getValue(rs), Be);
47042
47049
  return (dt ? Ke.sanitizeWith(ln) : Ke.sanitize)(Se);
47043
47050
  }
47044
47051
  return dn.none();
@@ -47087,7 +47094,7 @@ Required: ` + m.join(", "));
47087
47094
  Ll(j), Se.close();
47088
47095
  return;
47089
47096
  }
47090
- const dt = (rs) => dn.from(Be[rs]).filter((Ho) => !Mo(de.anchor[rs], Ho)), ln = {
47097
+ const dt = (rs) => dn.from(Be[rs]).filter((Ho) => !Oo(de.anchor[rs], Ho)), ln = {
47091
47098
  href: Be.url.value,
47092
47099
  text: dt("text"),
47093
47100
  target: dt("target"),
@@ -47096,7 +47103,7 @@ Required: ` + m.join(", "));
47096
47103
  title: dt("title")
47097
47104
  }, Fo = {
47098
47105
  href: Be.url.value,
47099
- attach: Be.url.meta !== void 0 && Be.url.meta.attach ? Be.url.meta.attach : $o
47106
+ attach: Be.url.meta !== void 0 && Be.url.meta.attach ? Be.url.meta.attach : Mo
47100
47107
  };
47101
47108
  Pc.preprocess(j, ln).then((rs) => {
47102
47109
  Bc(j, Fo, rs);
@@ -47284,7 +47291,7 @@ Required: ` + m.join(", "));
47284
47291
  dt.selection.collapse(!1);
47285
47292
  }, Se = (dt) => {
47286
47293
  const ln = j.selection.getNode();
47287
- return dt.setEnabled(bs(j, ln)), $o;
47294
+ return dt.setEnabled(bs(j, ln)), Mo;
47288
47295
  }, Be = (dt) => {
47289
47296
  const ln = Yn(j), Fo = ht(j);
47290
47297
  if (ln.isNone() && Fo) {
@@ -47317,7 +47324,7 @@ Required: ` + m.join(", "));
47317
47324
  const ln = dt.getValue(), Fo = Be(ln);
47318
47325
  Bc(j, {
47319
47326
  href: ln,
47320
- attach: $o
47327
+ attach: Mo
47321
47328
  }, {
47322
47329
  href: ln,
47323
47330
  text: Fo,
@@ -47351,7 +47358,7 @@ Required: ` + m.join(", "));
47351
47358
  };
47352
47359
  var ju = () => {
47353
47360
  B.add("link", (j) => {
47354
- Jt(j), $a(j), xl(j), gi(j), hu(j), vc(j), Hl(j), Xi(j);
47361
+ Xt(j), $a(j), xl(j), gi(j), hu(j), vc(j), Hl(j), Xi(j);
47355
47362
  });
47356
47363
  };
47357
47364
  ju();
@@ -47364,7 +47371,7 @@ Required: ` + m.join(", "));
47364
47371
  }, Re = (P) => {
47365
47372
  const K = typeof P;
47366
47373
  return P === null ? "null" : K === "object" && Array.isArray(P) ? "array" : K === "object" && ce(P, String, (se, Ie) => Ie.isPrototypeOf(se)) ? "string" : K;
47367
- }, ye = (P) => (K) => Re(K) === P, Q = (P) => (K) => typeof K === P, De = (P) => (K) => P === K, ee = (P, K) => Ct(P) && ce(P, K, (se, Ie) => ve(se) === Ie), Ue = ye("string"), Ct = ye("object"), Gt = (P) => ee(P, Object), Sn = ye("array"), zn = De(null), Uo = Q("boolean"), ir = (P) => P == null, $o = (P) => !ir(P), Mt = Q("function"), ur = Q("number"), dn = (P, K) => {
47374
+ }, ye = (P) => (K) => Re(K) === P, Q = (P) => (K) => typeof K === P, De = (P) => (K) => P === K, ee = (P, K) => Ct(P) && ce(P, K, (se, Ie) => ve(se) === Ie), Ue = ye("string"), Ct = ye("object"), Gt = (P) => ee(P, Object), Sn = ye("array"), zn = De(null), Uo = Q("boolean"), ir = (P) => P == null, Mo = (P) => !ir(P), Mt = Q("function"), ur = Q("number"), dn = (P, K) => {
47368
47375
  if (Sn(P)) {
47369
47376
  for (let se = 0, Ie = P.length; se < Ie; ++se)
47370
47377
  if (!K(P[se]))
@@ -47426,7 +47433,7 @@ Required: ` + m.join(", "));
47426
47433
  throw new Error(K ?? "Called getOrDie on None");
47427
47434
  }
47428
47435
  static from(K) {
47429
- return $o(K) ? _t.some(K) : _t.none();
47436
+ return Mo(K) ? _t.some(K) : _t.none();
47430
47437
  }
47431
47438
  getOrNull() {
47432
47439
  return this.tag ? this.value : null;
@@ -47460,15 +47467,15 @@ Required: ` + m.join(", "));
47460
47467
  }, wt = (P, K) => {
47461
47468
  const se = {};
47462
47469
  return os(P, K, Nn(se), me), se;
47463
- }, Fe = (P, K) => Xn.call(P, K), ie = (P, K) => Fe(P, K) && P[K] !== void 0 && P[K] !== null, Mo = Array.prototype.push, Jn = (P) => {
47470
+ }, Fe = (P, K) => Xn.call(P, K), ie = (P, K) => Fe(P, K) && P[K] !== void 0 && P[K] !== null, Oo = Array.prototype.push, Jn = (P) => {
47464
47471
  const K = [];
47465
47472
  for (let se = 0, Ie = P.length; se < Ie; ++se) {
47466
47473
  if (!Sn(P[se]))
47467
47474
  throw new Error("Arr.flatten item " + se + " was not an array, input: " + P);
47468
- Mo.apply(K, P[se]);
47475
+ Oo.apply(K, P[se]);
47469
47476
  }
47470
47477
  return K;
47471
- }, Ge = (P, K) => K >= 0 && K < P.length ? _t.some(P[K]) : _t.none(), A = (P) => Ge(P, 0), Jt = (P, K) => {
47478
+ }, Ge = (P, K) => K >= 0 && K < P.length ? _t.some(P[K]) : _t.none(), A = (P) => Ge(P, 0), Xt = (P, K) => {
47472
47479
  for (let se = 0; se < P.length; se++) {
47473
47480
  const Ie = K(P[se], se);
47474
47481
  if (Ie.isSome())
@@ -47547,7 +47554,7 @@ Required: ` + m.join(", "));
47547
47554
  },
47548
47555
  default: !1
47549
47556
  });
47550
- }, Lo = Qn("image_dimensions"), Wi = Qn("image_advtab"), qe = Qn("image_uploadtab"), Et = Qn("image_prepend_url"), Ke = Qn("image_class_list"), Ce = Qn("image_description"), vn = Qn("image_title"), Zo = Qn("image_caption"), Ft = Qn("image_list"), kr = Qn("a11y_advanced_options"), Bo = Qn("automatic_uploads"), Va = (P) => Qa(P.options.get("images_upload_url")), hs = (P) => $o(P.options.get("images_upload_handler")), br = (P, K) => Math.max(parseInt(P, 10), parseInt(K, 10)), bl = (P) => new Promise((K) => {
47557
+ }, Lo = Qn("image_dimensions"), Wi = Qn("image_advtab"), qe = Qn("image_uploadtab"), Et = Qn("image_prepend_url"), Ke = Qn("image_class_list"), Ce = Qn("image_description"), vn = Qn("image_title"), Zo = Qn("image_caption"), Ft = Qn("image_list"), kr = Qn("a11y_advanced_options"), Bo = Qn("automatic_uploads"), Va = (P) => Qa(P.options.get("images_upload_url")), hs = (P) => Mo(P.options.get("images_upload_handler")), br = (P, K) => Math.max(parseInt(P, 10), parseInt(K, 10)), bl = (P) => new Promise((K) => {
47551
47558
  const se = document.createElement("img"), Ie = (Kn) => {
47552
47559
  se.onload = se.onerror = null, se.parentNode && se.parentNode.removeChild(se), K(Kn);
47553
47560
  };
@@ -47621,7 +47628,7 @@ Required: ` + m.join(", "));
47621
47628
  bs.insertAfter(K, P), K.appendChild(P), K.appendChild(bs.create("figcaption", { contentEditable: "true" }, "Caption")), K.contentEditable = "false";
47622
47629
  }, Tr = (P) => {
47623
47630
  const K = P.parentNode;
47624
- $o(K) && (bs.insertAfter(P, K), bs.remove(K));
47631
+ Mo(K) && (bs.insertAfter(P, K), bs.remove(K));
47625
47632
  }, Aa = (P) => {
47626
47633
  ji(P) ? Tr(P) : mo(P);
47627
47634
  }, Nc = (P, K) => {
@@ -47644,7 +47651,7 @@ Required: ` + m.join(", "));
47644
47651
  }, Er = (P) => {
47645
47652
  var K;
47646
47653
  return (K = P.style.borderStyle) !== null && K !== void 0 ? K : "";
47647
- }, Bc = (P) => $o(P) && P.nodeName === "FIGURE", Ll = (P) => P.nodeName === "IMG", di = (P) => bs.getAttrib(P, "alt").length === 0 && bs.getAttrib(P, "role") === "presentation", wr = (P) => di(P) ? "" : Qo(P, "alt"), mr = () => ({
47654
+ }, Bc = (P) => Mo(P) && P.nodeName === "FIGURE", Ll = (P) => P.nodeName === "IMG", di = (P) => bs.getAttrib(P, "alt").length === 0 && bs.getAttrib(P, "role") === "presentation", wr = (P) => di(P) ? "" : Qo(P, "alt"), mr = () => ({
47648
47655
  src: "",
47649
47656
  alt: "",
47650
47657
  title: "",
@@ -47795,7 +47802,7 @@ Required: ` + m.join(", "));
47795
47802
  });
47796
47803
  }
47797
47804
  }), se;
47798
- }, yl = (P = ks) => (K) => K ? _t.from(K).map((se) => Da(se, P)) : _t.none(), fi = (P) => yl(ks)(P), wl = (P) => Fe(P, "items"), ko = (P, K) => Jt(P, (se) => wl(se) ? ko(se.items, K) : se.value === K ? _t.some(se) : _t.none()), la = {
47805
+ }, yl = (P = ks) => (K) => K ? _t.from(K).map((se) => Da(se, P)) : _t.none(), fi = (P) => yl(ks)(P), wl = (P) => Fe(P, "items"), ko = (P, K) => Xt(P, (se) => wl(se) ? ko(se.items, K) : se.value === K ? _t.some(se) : _t.none()), la = {
47799
47806
  sanitizer: yl,
47800
47807
  sanitize: fi,
47801
47808
  findEntry: (P, K) => P.bind((se) => ko(se, K))
@@ -48178,7 +48185,7 @@ Required: ` + m.join(", "));
48178
48185
  });
48179
48186
  }, Fs = (P) => {
48180
48187
  const K = P.attr("class");
48181
- return $o(K) && /\bimage\b/.test(K);
48188
+ return Mo(K) && /\bimage\b/.test(K);
48182
48189
  }, Ma = (P) => (K) => {
48183
48190
  let se = K.length;
48184
48191
  const Ie = (Dt) => {
@@ -48205,7 +48212,7 @@ Required: ` + m.join(", "));
48205
48212
  tooltip: "Insert/edit image",
48206
48213
  onAction: ys(P).open,
48207
48214
  onSetup: (K) => {
48208
- K.setActive($o(sl(P)));
48215
+ K.setActive(Mo(sl(P)));
48209
48216
  const se = P.selection.selectorChangedWithUnbind("img:not([data-mce-object]):not([data-mce-placeholder]),figure.image", K.setActive).unbind, Ie = Bt(P)(K);
48210
48217
  return () => {
48211
48218
  se(), Ie();
@@ -48234,7 +48241,7 @@ Required: ` + m.join(", "));
48234
48241
  const T = typeof x;
48235
48242
  return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && ve(x, String, (V, q) => q.isPrototypeOf(V)) ? "string" : T;
48236
48243
  }, Re = (x) => (T) => ce(T) === x, ye = (x) => (T) => typeof T === x, Q = (x) => (T) => x === T, De = Re("string"), ee = Re("array"), Ue = ye("boolean"), Ct = Q(void 0), Gt = (x) => x == null, Sn = (x) => !Gt(x), zn = ye("function"), Uo = ye("number"), ir = () => {
48237
- }, $o = (x, T) => (V) => x(T(V)), Mt = (x) => () => x, ur = (x) => x, dn = (x, T) => x === T;
48244
+ }, Mo = (x, T) => (V) => x(T(V)), Mt = (x) => () => x, ur = (x) => x, dn = (x, T) => x === T;
48238
48245
  function me(x, ...T) {
48239
48246
  return (...V) => {
48240
48247
  const q = T.concat(V);
@@ -48327,7 +48334,7 @@ Required: ` + m.join(", "));
48327
48334
  wt(x, (he, Ze) => {
48328
48335
  (T(he, Ze) ? V : q)(he, Ze);
48329
48336
  });
48330
- }, Mo = (x, T) => {
48337
+ }, Oo = (x, T) => {
48331
48338
  const V = {};
48332
48339
  return ie(x, T, Fe(V), ir), V;
48333
48340
  }, Jn = (x, T) => {
@@ -48335,7 +48342,7 @@ Required: ` + m.join(", "));
48335
48342
  return wt(x, (q, he) => {
48336
48343
  V.push(T(q, he));
48337
48344
  }), V;
48338
- }, Ge = (x) => Jn(x, ur), A = (x) => Nn(x).length, Jt = (x, T) => nt(x, T) ? oe.from(x[T]) : oe.none(), nt = (x, T) => os.call(x, T), No = (x, T) => nt(x, T) && x[T] !== void 0 && x[T] !== null, mn = (x) => {
48345
+ }, Ge = (x) => Jn(x, ur), A = (x) => Nn(x).length, Xt = (x, T) => nt(x, T) ? oe.from(x[T]) : oe.none(), nt = (x, T) => os.call(x, T), No = (x, T) => nt(x, T) && x[T] !== void 0 && x[T] !== null, mn = (x) => {
48339
48346
  for (const T in x)
48340
48347
  if (os.call(x, T))
48341
48348
  return !1;
@@ -48497,7 +48504,7 @@ Required: ` + m.join(", "));
48497
48504
  if (T == null || T.ownerDocument === null)
48498
48505
  return !1;
48499
48506
  const V = T.ownerDocument;
48500
- return ca(Yn.fromDom(T)).fold(() => V.body.contains(T), $o(Ar, Is));
48507
+ return ca(Yn.fromDom(T)).fold(() => V.body.contains(T), Mo(Ar, Is));
48501
48508
  };
48502
48509
  var ol = (x, T, V, q, he) => x(V, q) ? oe.some(V) : zn(he) && he(V) ? oe.none() : T(V, q, he);
48503
48510
  const Fl = (x, T, V) => {
@@ -48674,7 +48681,7 @@ Required: ` + m.join(", "));
48674
48681
  jc.push(Ug);
48675
48682
  }), Ze++, V.push(pu(dl.element, jc, dl.section)), Rt++;
48676
48683
  });
48677
- const { columns: rr, colgroups: Do } = Bo(on).map((dl) => {
48684
+ const { columns: rr, colgroups: Ro } = Bo(on).map((dl) => {
48678
48685
  const jc = Ms(dl);
48679
48686
  return {
48680
48687
  colgroups: [Ws(dl.element, Ge(jc))],
@@ -48689,7 +48696,7 @@ Required: ` + m.join(", "));
48689
48696
  access: T,
48690
48697
  all: V,
48691
48698
  columns: rr,
48692
- colgroups: Do
48699
+ colgroups: Ro
48693
48700
  };
48694
48701
  }, zl = {
48695
48702
  fromTable: (x) => {
@@ -48925,8 +48932,8 @@ Required: ` + m.join(", "));
48925
48932
  "hr",
48926
48933
  "input"
48927
48934
  ], ht(Fn)) : !1, he = (Fn) => Nc(Fn) && ia(Fn, "contenteditable") === "false", Ze = (Fn, rr) => Fn.dom.compareDocumentPosition(rr.dom), mt = (Fn, rr) => {
48928
- const Do = Ra(Fn);
48929
- Hl(rr, Do);
48935
+ const Ro = Ra(Fn);
48936
+ Hl(rr, Ro);
48930
48937
  }, Rt = (Fn) => {
48931
48938
  const rr = ht(Fn);
48932
48939
  return ro([
@@ -49344,23 +49351,23 @@ Required: ` + m.join(", "));
49344
49351
  if (Fn !== Rt.length)
49345
49352
  throw new Error("Wrong number of arguments to case " + mt + ". Expected " + Rt.length + " (" + Rt + "), got " + Fn);
49346
49353
  return {
49347
- fold: (...Do) => {
49348
- if (Do.length !== x.length)
49349
- throw new Error("Wrong number of arguments to fold. Expected " + x.length + ", got " + Do.length);
49350
- return Do[he].apply(null, on);
49354
+ fold: (...Ro) => {
49355
+ if (Ro.length !== x.length)
49356
+ throw new Error("Wrong number of arguments to fold. Expected " + x.length + ", got " + Ro.length);
49357
+ return Ro[he].apply(null, on);
49351
49358
  },
49352
- match: (Do) => {
49353
- const Bs = Nn(Do);
49359
+ match: (Ro) => {
49360
+ const Bs = Nn(Ro);
49354
49361
  if (T.length !== Bs.length)
49355
49362
  throw new Error("Wrong number of arguments to match. Expected: " + T.join(",") + `
49356
49363
  Actual: ` + Bs.join(","));
49357
49364
  if (!vn(T, (jc) => ro(Bs, jc)))
49358
49365
  throw new Error("Not all branches were specified when using match. Specified: " + Bs.join(", ") + `
49359
49366
  Required: ` + T.join(", "));
49360
- return Do[mt].apply(null, on);
49367
+ return Ro[mt].apply(null, on);
49361
49368
  },
49362
- log: (Do) => {
49363
- console.log(Do, {
49369
+ log: (Ro) => {
49370
+ console.log(Ro, {
49364
49371
  constructors: T,
49365
49372
  constructor: mt,
49366
49373
  params: on
@@ -49426,9 +49433,9 @@ Required: ` + T.join(", "));
49426
49433
  "bottom"
49427
49434
  ], "valign"), pa = (x, T) => {
49428
49435
  const V = Eg(x), q = Yu(x), he = () => ({
49429
- borderstyle: Jt(V, "border-style").getOr(""),
49430
- bordercolor: ou(Jt(V, "border-color").getOr("")),
49431
- backgroundcolor: ou(Jt(V, "background-color").getOr(""))
49436
+ borderstyle: Xt(V, "border-style").getOr(""),
49437
+ bordercolor: ou(Xt(V, "border-color").getOr("")),
49438
+ backgroundcolor: ou(Xt(V, "background-color").getOr(""))
49432
49439
  }), Ze = {
49433
49440
  height: "",
49434
49441
  width: "100%",
@@ -49440,12 +49447,12 @@ Required: ` + T.join(", "));
49440
49447
  border: ""
49441
49448
  }, mt = () => {
49442
49449
  const rr = V["border-width"];
49443
- return Ul(x) && rr ? { border: rr } : Jt(q, "border").fold(() => ({}), (Do) => ({ border: Do }));
49450
+ return Ul(x) && rr ? { border: rr } : Xt(q, "border").fold(() => ({}), (Ro) => ({ border: Ro }));
49444
49451
  }, Rt = T ? he() : {}, on = () => {
49445
- const rr = Jt(V, "border-spacing").or(Jt(q, "cellspacing")).fold(() => ({}), (Bs) => ({ cellspacing: Bs })), Do = Jt(V, "border-padding").or(Jt(q, "cellpadding")).fold(() => ({}), (Bs) => ({ cellpadding: Bs }));
49452
+ const rr = Xt(V, "border-spacing").or(Xt(q, "cellspacing")).fold(() => ({}), (Bs) => ({ cellspacing: Bs })), Ro = Xt(V, "border-padding").or(Xt(q, "cellpadding")).fold(() => ({}), (Bs) => ({ cellpadding: Bs }));
49446
49453
  return {
49447
49454
  ...rr,
49448
- ...Do
49455
+ ...Ro
49449
49456
  };
49450
49457
  };
49451
49458
  return {
@@ -49518,9 +49525,9 @@ Required: ` + T.join(", "));
49518
49525
  no_events: !0
49519
49526
  });
49520
49527
  }, Vg = (x, T, V, q) => {
49521
- const he = Mo(q, (Ze, mt) => V[mt] !== Ze);
49528
+ const he = Oo(q, (Ze, mt) => V[mt] !== Ze);
49522
49529
  A(he) > 0 && T.length >= 1 && Dt(T[0]).each((Ze) => {
49523
- const mt = Hg(Ze, T), Rt = A(Mo(he, (Fn, rr) => rr !== "scope" && rr !== "celltype")) > 0, on = nt(he, "celltype");
49530
+ const mt = Hg(Ze, T), Rt = A(Oo(he, (Fn, rr) => rr !== "scope" && rr !== "celltype")) > 0, on = nt(he, "celltype");
49524
49531
  (Rt || nt(he, "scope")) && Pd(x, mt, q, me(nt, he)), on && nd(x, q), co(x, Ze.dom, {
49525
49532
  structure: on,
49526
49533
  style: Rt
@@ -49648,7 +49655,7 @@ Required: ` + T.join(", "));
49648
49655
  no_events: !0
49649
49656
  });
49650
49657
  }, ul = (x, T, V, q) => {
49651
- const he = Mo(q, (Ze, mt) => V[mt] !== Ze);
49658
+ const he = Oo(q, (Ze, mt) => V[mt] !== Ze);
49652
49659
  if (A(he) > 0) {
49653
49660
  const Ze = nt(he, "type"), mt = Ze ? A(he) > 1 : !0;
49654
49661
  mt && Uh(x, T, q, me(nt, he)), Ze && tt(x, q), Dt(Yn.fromDom(T[0])).each((Rt) => co(x, Rt.dom, {
@@ -49810,7 +49817,7 @@ Required: ` + T.join(", "));
49810
49817
  ...Ze
49811
49818
  });
49812
49819
  }, w1 = (x, T, V, q) => {
49813
- const he = x.dom, Ze = q.getData(), mt = Mo(Ze, (Rt, on) => V[on] !== Rt);
49820
+ const he = x.dom, Ze = q.getData(), mt = Oo(Ze, (Rt, on) => V[on] !== Rt);
49814
49821
  q.close(), Ze.class === "" && delete Ze.class, x.undoManager.transact(() => {
49815
49822
  if (!T) {
49816
49823
  const Rt = $a(Ze.cols).getOr(1), on = $a(Ze.rows).getOr(1);
@@ -49923,13 +49930,13 @@ Required: ` + T.join(", "));
49923
49930
  };
49924
49931
  }), rr = () => {
49925
49932
  T.set(lt(on)()), q = T.get().bind(Fn), z(V.get(), _t);
49926
- }, Do = (Eo) => (Eo(), V.set(V.get().concat([Eo])), () => {
49933
+ }, Ro = (Eo) => (Eo(), V.set(V.get().concat([Eo])), () => {
49927
49934
  V.set(ss(V.get(), (no) => no !== Eo));
49928
- }), Bs = (Eo, no) => Do(() => T.get().fold(() => {
49935
+ }), Bs = (Eo, no) => Ro(() => T.get().fold(() => {
49929
49936
  Eo.setEnabled(!1);
49930
49937
  }, (ba) => {
49931
49938
  Eo.setEnabled(!no(ba) && x.selection.isEditable());
49932
- })), dl = (Eo, no, ba) => Do(() => T.get().fold(() => {
49939
+ })), dl = (Eo, no, ba) => Ro(() => T.get().fold(() => {
49933
49940
  Eo.setEnabled(!1), Eo.setActive(!1);
49934
49941
  }, (lc) => {
49935
49942
  Eo.setEnabled(!no(lc) && x.selection.isEditable()), Eo.setActive(ba(lc));
@@ -50157,18 +50164,18 @@ Required: ` + T.join(", "));
50157
50164
  x.off("NodeChange", V);
50158
50165
  };
50159
50166
  }, Zc = (x, T) => {
50160
- const V = (Do) => () => x.execCommand(Do), q = (Do, Bs) => x.queryCommandSupported(Bs.command) ? (x.ui.registry.addMenuItem(Do, {
50167
+ const V = (Ro) => () => x.execCommand(Ro), q = (Ro, Bs) => x.queryCommandSupported(Bs.command) ? (x.ui.registry.addMenuItem(Ro, {
50161
50168
  ...Bs,
50162
50169
  onAction: zn(Bs.onAction) ? Bs.onAction : V(Bs.command)
50163
- }), !0) : !1, he = (Do, Bs) => {
50164
- x.queryCommandSupported(Bs.command) && x.ui.registry.addToggleMenuItem(Do, {
50170
+ }), !0) : !1, he = (Ro, Bs) => {
50171
+ x.queryCommandSupported(Bs.command) && x.ui.registry.addToggleMenuItem(Ro, {
50165
50172
  ...Bs,
50166
50173
  onAction: zn(Bs.onAction) ? Bs.onAction : V(Bs.command)
50167
50174
  });
50168
- }, Ze = (Do) => {
50175
+ }, Ze = (Ro) => {
50169
50176
  x.execCommand("mceInsertTable", !1, {
50170
- rows: Do.numRows,
50171
- columns: Do.numColumns
50177
+ rows: Ro.numRows,
50178
+ columns: Ro.numColumns
50172
50179
  });
50173
50180
  }, mt = [
50174
50181
  q("tableinsertrowbefore", {
@@ -50323,20 +50330,20 @@ Required: ` + T.join(", "));
50323
50330
  text: "Cell",
50324
50331
  getSubmenuItems: Mt("tablecellprops tablemergecells tablesplitcells")
50325
50332
  }), x.ui.registry.addContextMenu("table", {
50326
- update: () => (T.resetTargets(), T.targets().fold(Mt(""), (Do) => ht(Do.element) === "caption" ? "tableprops deletetable" : "cell row column | advtablesort | tableprops deletetable"))
50333
+ update: () => (T.resetTargets(), T.targets().fold(Mt(""), (Ro) => ht(Ro.element) === "caption" ? "tableprops deletetable" : "cell row column | advtablesort | tableprops deletetable"))
50327
50334
  });
50328
50335
  const Fn = Cu(_m(x));
50329
50336
  Fn.length !== 0 && x.queryCommandSupported("mceTableToggleClass") && x.ui.registry.addNestedMenuItem("tableclass", {
50330
50337
  icon: "table-classes",
50331
50338
  text: "Table styles",
50332
- getSubmenuItems: () => vo(x, Fn, "tableclass", (Do) => x.execCommand("mceTableToggleClass", !1, Do)),
50339
+ getSubmenuItems: () => vo(x, Fn, "tableclass", (Ro) => x.execCommand("mceTableToggleClass", !1, Ro)),
50333
50340
  onSetup: T.onSetupTable
50334
50341
  });
50335
50342
  const rr = Cu(Sm(x));
50336
50343
  rr.length !== 0 && x.queryCommandSupported("mceTableCellToggleClass") && x.ui.registry.addNestedMenuItem("tablecellclass", {
50337
50344
  icon: "table-cell-classes",
50338
50345
  text: "Cell styles",
50339
- getSubmenuItems: () => vo(x, rr, "tablecellclass", (Do) => x.execCommand("mceTableCellToggleClass", !1, Do)),
50346
+ getSubmenuItems: () => vo(x, rr, "tablecellclass", (Ro) => x.execCommand("mceTableCellToggleClass", !1, Ro)),
50340
50347
  onSetup: T.onSetupCellOrRow
50341
50348
  }), x.queryCommandSupported("mceTableApplyCellStyle") && (x.ui.registry.addNestedMenuItem("tablecellvalign", {
50342
50349
  icon: "vertical-align",
@@ -50510,7 +50517,7 @@ Required: ` + T.join(", "));
50510
50517
  }
50511
50518
  }
50512
50519
  return Et;
50513
- }, $o = (qe) => {
50520
+ }, Mo = (qe) => {
50514
50521
  const Et = {};
50515
50522
  return (Ke) => {
50516
50523
  if (Et[Ke])
@@ -50521,7 +50528,7 @@ Required: ` + T.join(", "));
50521
50528
  }
50522
50529
  };
50523
50530
  }, Mt = (qe) => {
50524
- const Et = $o(ir);
50531
+ const Et = Mo(ir);
50525
50532
  return ye(qe, Et);
50526
50533
  }, ur = (qe, Et) => {
50527
50534
  const Ke = qe[Et], Ce = qe[Et + 1];
@@ -50573,7 +50580,7 @@ Required: ` + T.join(", "));
50573
50580
  };
50574
50581
  const Ce = ye(qe, Et), vn = Mt(Ce);
50575
50582
  return Nn(qe, Ce, vn, Ke);
50576
- }, ie = (qe, Et, Ke) => wt(qe, Et, Ke).words, Mo = (qe) => qe.replace(/\uFEFF/g, "");
50583
+ }, ie = (qe, Et, Ke) => wt(qe, Et, Ke).words, Oo = (qe) => qe.replace(/\uFEFF/g, "");
50577
50584
  var Jn = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker");
50578
50585
  const Ge = (qe, Et) => {
50579
50586
  const Ke = Et.getBlockElements(), Ce = Et.getVoidElements(), vn = (Va) => Ke[Va.nodeName] || Ce[Va.nodeName], Zo = [];
@@ -50581,18 +50588,18 @@ Required: ` + T.join(", "));
50581
50588
  const kr = new Jn(qe, qe);
50582
50589
  let Bo;
50583
50590
  for (; Bo = kr.next(); )
50584
- Bo.nodeType === 3 ? Ft += Mo(Bo.data) : vn(Bo) && Ft.length && (Zo.push(Ft), Ft = "");
50591
+ Bo.nodeType === 3 ? Ft += Oo(Bo.data) : vn(Bo) && Ft.length && (Zo.push(Ft), Ft = "");
50585
50592
  return Ft.length && Zo.push(Ft), Zo;
50586
- }, A = (qe) => qe.replace(/\u200B/g, ""), Jt = (qe) => qe.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length, nt = (qe, Et) => {
50593
+ }, A = (qe) => qe.replace(/\u200B/g, ""), Xt = (qe) => qe.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "_").length, nt = (qe, Et) => {
50587
50594
  const Ke = A(Ge(qe, Et).join(`
50588
50595
  `));
50589
50596
  return ie(Ke.split(""), Re).length;
50590
50597
  }, No = (qe, Et) => {
50591
50598
  const Ke = Ge(qe, Et).join("");
50592
- return Jt(Ke);
50599
+ return Xt(Ke);
50593
50600
  }, mn = (qe, Et) => {
50594
50601
  const Ke = Ge(qe, Et).join("").replace(/\s/g, "");
50595
- return Jt(Ke);
50602
+ return Xt(Ke);
50596
50603
  }, ot = (qe, Et) => () => Et(qe.getBody(), qe.schema), Wo = (qe, Et) => () => Et(qe.selection.getRng().cloneContents(), qe.schema), dr = (qe) => ot(qe, nt), ro = (qe) => ({
50597
50604
  body: {
50598
50605
  getWordCount: dr(qe),