golden-logic-ui 1.0.305 → 1.0.307

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.
@@ -514,17 +514,17 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
514
514
  },
515
515
  emits: ["update:modelValue", "selected", "selectionChanged"],
516
516
  setup(R, { emit: me }) {
517
- const se = R, Ee = me, fe = No(null), G = No([]), Ae = No([]), Q = No(0), Pe = No(!1), it = No(""), $t = No("");
517
+ const se = R, Ee = me, fe = No(null), G = No([]), Ae = No([]), Q = No(0), Pe = No(!1), it = No(""), Dt = No("");
518
518
  Oh(() => {
519
- $t.value = Oo(), se.show || (document.body.addEventListener("click", (Ue) => {
519
+ Dt.value = Oo(), se.show || (document.body.addEventListener("click", (Ue) => {
520
520
  Qn(Ue);
521
521
  }), document.addEventListener("keypress", (Ue) => {
522
522
  Ue.key === "Enter" && Ue.target.form && Ue.preventDefault();
523
523
  }));
524
524
  });
525
- const Sn = vc(() => Bn()), jn = vc(() => We()), Vo = vc(() => {
525
+ const Cn = vc(() => Bn()), jn = vc(() => We()), Vo = vc(() => {
526
526
  const Ue = [], A = new RegExp(it.value, "ig");
527
- for (const Gt of Sn.value) {
527
+ for (const Gt of Cn.value) {
528
528
  const nt = String(Gt.name);
529
529
  (it.value.length < 1 || nt.match(A)) && Ue.length < se.maxItem && Ue.push(Gt);
530
530
  }
@@ -573,14 +573,14 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
573
573
  A !== -1 && G.value.splice(A, 1), Ae.value = G.value.map((Gt) => Gt.id), Ee("update:modelValue", Ae.value), Ee("selected", G.value), Ee("selectionChanged", G.value);
574
574
  }
575
575
  function Qn(Ue) {
576
- Ue.target.id != se.field_name + "search" + $t.value && Ue.target.id != se.field_name && !Ue.target.classList.contains("showOptions") && (Pt(), Q.value = 0, Pe.value = !1);
576
+ Ue.target.id != se.field_name + "search" + Dt.value && Ue.target.id != se.field_name && !Ue.target.classList.contains("showOptions") && (Pt(), Q.value = 0, Pe.value = !1);
577
577
  }
578
578
  function oe(Ue) {
579
- const A = `${Ue}${$t.value}`, Gt = document.getElementById(A);
579
+ const A = `${Ue}${Dt.value}`, Gt = document.getElementById(A);
580
580
  Gt && Gt.scrollIntoView();
581
581
  }
582
582
  function Pn(Ue) {
583
- const A = `${Ue}${$t.value}`, Gt = document.getElementById(A);
583
+ const A = `${Ue}${Dt.value}`, Gt = document.getElementById(A);
584
584
  Gt && Gt.click();
585
585
  }
586
586
  function is(Ue) {
@@ -591,21 +591,21 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
591
591
  }
592
592
  function We() {
593
593
  if (Mt(G.value))
594
- return pr(G.value) ? Sn.value.filter(
594
+ return pr(G.value) ? Cn.value.filter(
595
595
  (Ue) => G.value.some(
596
596
  (A) => String(A.id) === String(Ue.id)
597
597
  )
598
- ) || [] : Sn.value.filter(
598
+ ) || [] : Cn.value.filter(
599
599
  (Ue) => G.value.some(
600
600
  (A) => String(A) === String(Ue.id)
601
601
  )
602
602
  ) || [];
603
603
  if (se.modelValue)
604
- return pr(se.modelValue) ? G.value = Sn.value.filter(
604
+ return pr(se.modelValue) ? G.value = Cn.value.filter(
605
605
  (Ue) => se.modelValue.some(
606
606
  (A) => String(A.id) === String(Ue.id)
607
607
  )
608
- ) || [] : G.value = Sn.value.filter(
608
+ ) || [] : G.value = Cn.value.filter(
609
609
  (Ue) => se.modelValue.some(
610
610
  (A) => String(A) === String(Ue.id)
611
611
  )
@@ -623,7 +623,7 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
623
623
  }
624
624
  it.value = "", Pe.value = !0, Dj(() => {
625
625
  var Ue = document.getElementById(
626
- `${se.field_name}search${$t.value}`
626
+ `${se.field_name}search${Dt.value}`
627
627
  );
628
628
  Ue && Ue.focus();
629
629
  });
@@ -711,7 +711,7 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
711
711
  type: "search",
712
712
  "onUpdate:modelValue": A[2] || (A[2] = (Gt) => it.value = Gt),
713
713
  ref: fe.value,
714
- id: `${R.field_name}search${$t.value}`,
714
+ id: `${R.field_name}search${Dt.value}`,
715
715
  onKeydown: Us,
716
716
  onBlur: A[3] || (A[3] = (Gt) => Pt()),
717
717
  autocomplete: "off",
@@ -731,7 +731,7 @@ const Rae = /* @__PURE__ */ Jr(kK, [["render", DK]]), OK = { class: "bg-white bo
731
731
  onClick: (Jn) => ge(Gt),
732
732
  onMousedown: (Jn) => ge(Gt),
733
733
  key: nt,
734
- id: `${nt + 1}${$t.value}`
734
+ id: `${nt + 1}${Dt.value}`
735
735
  }, ft(Gt.name || Gt.id || "-"), 43, KK))), 128))
736
736
  ])
737
737
  ], 512), [
@@ -923,7 +923,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
923
923
  id: R.field_name + "_i18n",
924
924
  ref_key: "input_translate",
925
925
  ref: Ae,
926
- "onUpdate:modelValue": it[0] || (it[0] = ($t) => Pe.inputTranslateValue = $t)
926
+ "onUpdate:modelValue": it[0] || (it[0] = (Dt) => Pe.inputTranslateValue = Dt)
927
927
  }, null, 8, eY), [
928
928
  [vm, Pe.inputTranslateValue]
929
929
  ]),
@@ -965,8 +965,8 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
965
965
  " gl-textarea-form-invalid form-input-translation mt-4 ": R.error_message !== ""
966
966
  }),
967
967
  type: R.type,
968
- onInput: it[1] || (it[1] = ($t) => Pe.$emit("update:modelValue", $t.target.value)),
969
- onKeydown: it[2] || (it[2] = ($t) => Pe.$emit("keydown", $t)),
968
+ onInput: it[1] || (it[1] = (Dt) => Pe.$emit("update:modelValue", Dt.target.value)),
969
+ onKeydown: it[2] || (it[2] = (Dt) => Pe.$emit("keydown", Dt)),
970
970
  ref_key: "input",
971
971
  ref: G,
972
972
  rows: "4"
@@ -1067,7 +1067,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1067
1067
  id: R.field_name + "_i18n",
1068
1068
  ref_key: "input_translate",
1069
1069
  ref: Ae,
1070
- "onUpdate:modelValue": it[0] || (it[0] = ($t) => Pe.inputTranslateValue = $t)
1070
+ "onUpdate:modelValue": it[0] || (it[0] = (Dt) => Pe.inputTranslateValue = Dt)
1071
1071
  }, null, 8, uY), [
1072
1072
  [vm, Pe.inputTranslateValue]
1073
1073
  ]),
@@ -1108,8 +1108,8 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1108
1108
  " gl-textarea-form-invalid form-input-translation mt-4 ": R.error_message !== ""
1109
1109
  }]),
1110
1110
  type: R.type,
1111
- onInput: it[1] || (it[1] = ($t) => Pe.$emit("update:modelValue", $t.target.value)),
1112
- onKeydown: it[2] || (it[2] = ($t) => Pe.$emit("keydown", $t)),
1111
+ onInput: it[1] || (it[1] = (Dt) => Pe.$emit("update:modelValue", Dt.target.value)),
1112
+ onKeydown: it[2] || (it[2] = (Dt) => Pe.$emit("keydown", Dt)),
1113
1113
  ref_key: "input",
1114
1114
  ref: G,
1115
1115
  rows: "4"
@@ -1197,7 +1197,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1197
1197
  name: R.field_name + "_i18n",
1198
1198
  id: R.field_name + "_i18n",
1199
1199
  ref: "input_translate_s",
1200
- "onUpdate:modelValue": it[0] || (it[0] = ($t) => Pe.inputTranslateValue = $t)
1200
+ "onUpdate:modelValue": it[0] || (it[0] = (Dt) => Pe.inputTranslateValue = Dt)
1201
1201
  }, null, 8, wY), [
1202
1202
  [vm, Pe.inputTranslateValue]
1203
1203
  ]),
@@ -1239,8 +1239,8 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1239
1239
  " gl-input-form-invalid form-input-translation mt-2 ": R.error_message !== ""
1240
1240
  }),
1241
1241
  type: R.type,
1242
- onInput: it[1] || (it[1] = ($t) => Pe.$emit("update:modelValue", $t.target.value)),
1243
- onKeydown: it[2] || (it[2] = ($t) => Pe.$emit("keydown", $t)),
1242
+ onInput: it[1] || (it[1] = (Dt) => Pe.$emit("update:modelValue", Dt.target.value)),
1243
+ onKeydown: it[2] || (it[2] = (Dt) => Pe.$emit("keydown", Dt)),
1244
1244
  ref_key: "input",
1245
1245
  ref: G
1246
1246
  }, null, 42, TY),
@@ -1519,10 +1519,10 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1519
1519
  set(it) {
1520
1520
  G.value.end = it, Pe(G.value.start, G.value.end), Ee("update:modelValue", { start: G.value.start, end: G.value.end }), Ee("keydown", { start: G.value.start, end: G.value.end });
1521
1521
  }
1522
- }), Pe = (it, $t) => {
1523
- it && $t && new Date(it) > new Date($t) ? (fe.value = "Start date cannot be after end date.", G.value.start = "", G.value.end = "", Ee("update:modelValue", { start: G.value.start, end: G.value.end }), Ee("keydown", { start: G.value.start, end: G.value.end })) : it && $t && new Date($t) < new Date(it) ? (fe.value = "End date cannot be before start date.", G.value.start = "", G.value.end = "", Ee("update:modelValue", { start: G.value.start, end: G.value.end }), Ee("keydown", { start: G.value.start, end: G.value.end })) : fe.value = "";
1522
+ }), Pe = (it, Dt) => {
1523
+ it && Dt && new Date(it) > new Date(Dt) ? (fe.value = "Start date cannot be after end date.", G.value.start = "", G.value.end = "", Ee("update:modelValue", { start: G.value.start, end: G.value.end }), Ee("keydown", { start: G.value.start, end: G.value.end })) : it && Dt && new Date(Dt) < new Date(it) ? (fe.value = "End date cannot be before start date.", G.value.start = "", G.value.end = "", Ee("update:modelValue", { start: G.value.start, end: G.value.end }), Ee("keydown", { start: G.value.start, end: G.value.end })) : fe.value = "";
1524
1524
  };
1525
- return (it, $t) => (ve(), we(fo, null, [
1525
+ return (it, Dt) => (ve(), we(fo, null, [
1526
1526
  R.show ? (ve(), we("div", {
1527
1527
  key: 0,
1528
1528
  class: rn(R.field_name)
@@ -1553,7 +1553,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1553
1553
  "gl-input-form-invalid": R.error_message !== "" || fe.value !== ""
1554
1554
  }),
1555
1555
  type: "date",
1556
- "onUpdate:modelValue": $t[0] || ($t[0] = (Sn) => Ae.value = Sn),
1556
+ "onUpdate:modelValue": Dt[0] || (Dt[0] = (Cn) => Ae.value = Cn),
1557
1557
  placeholder: R.placeholder
1558
1558
  }, null, 10, XY), [
1559
1559
  [vm, Ae.value]
@@ -1568,7 +1568,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1568
1568
  "gl-input-form-invalid": R.error_message !== "" || fe.value !== ""
1569
1569
  }),
1570
1570
  type: "date",
1571
- "onUpdate:modelValue": $t[1] || ($t[1] = (Sn) => Q.value = Sn),
1571
+ "onUpdate:modelValue": Dt[1] || (Dt[1] = (Cn) => Q.value = Cn),
1572
1572
  placeholder: R.placeholder
1573
1573
  }, null, 10, QY), [
1574
1574
  [vm, Q.value]
@@ -1689,7 +1689,7 @@ const Pae = /* @__PURE__ */ Jr(YK, [["render", JK]]), QK = { class: "font-bold p
1689
1689
  P("ul", mX, [
1690
1690
  (ve(!0), we(fo, null, hr(fe.value, (it) => (ve(), we("li", {
1691
1691
  key: it.title,
1692
- onClick: ($t) => G.value = it.title,
1692
+ onClick: (Dt) => G.value = it.title,
1693
1693
  class: "flex-auto -mb-px text-center"
1694
1694
  }, [
1695
1695
  P("a", {
@@ -1791,8 +1791,8 @@ const Uae = /* @__PURE__ */ Jr(bX, [["render", yX]]), wX = {
1791
1791
  const se = (fe) => {
1792
1792
  me.style.cursor = "grabbing";
1793
1793
  const G = (Q) => {
1794
- const Pe = Q.clientX || Q.touches && Q.touches[0] && Q.touches[0].clientX, it = Q.clientY || Q.touches && Q.touches[0] && Q.touches[0].clientY, $t = Pe - R.initialX, Sn = it - R.initialY;
1795
- Math.abs($t) > Math.abs(Sn) ? (Q.preventDefault(), Math.abs($t) >= 70 && ($t < 0 ? R.next() : R.prev(), R.initialX = Pe)) : me.style.cursor = "grab", Math.abs(Sn) > Math.abs($t) && (me.style.cursor = "grab");
1794
+ const Pe = Q.clientX || Q.touches && Q.touches[0] && Q.touches[0].clientX, it = Q.clientY || Q.touches && Q.touches[0] && Q.touches[0].clientY, Dt = Pe - R.initialX, Cn = it - R.initialY;
1795
+ Math.abs(Dt) > Math.abs(Cn) ? (Q.preventDefault(), Math.abs(Dt) >= 70 && (Dt < 0 ? R.next() : R.prev(), R.initialX = Pe)) : me.style.cursor = "grab", Math.abs(Cn) > Math.abs(Dt) && (me.style.cursor = "grab");
1796
1796
  }, Ae = () => {
1797
1797
  document.removeEventListener("mousemove", G), document.removeEventListener("touchmove", G), document.removeEventListener("mouseup", Ae), document.removeEventListener("touchend", Ae), me.style.cursor = "grab";
1798
1798
  };
@@ -2443,10 +2443,7 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2443
2443
  ], 2))
2444
2444
  ], 64));
2445
2445
  }
2446
- }, oQ = { class: "font-bold ptext-lg dark:text-white" }, sQ = { class: "mt-3 mb-4" }, rQ = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, aQ = /* @__PURE__ */ P("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), lQ = ["name", "id", "value"], cQ = {
2447
- key: 0,
2448
- class: "dropdown"
2449
- }, iQ = { class: "relative focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, uQ = ["value", "placeholder"], dQ = { class: "p-1" }, mQ = /* @__PURE__ */ P("label", {
2446
+ }, oQ = { class: "font-bold ptext-lg dark:text-white" }, sQ = { class: "mt-3 mb-4" }, rQ = { class: "bg-blue-100 text-blue-800 text-sm font-medium mb-2 mt-2 me-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300" }, aQ = /* @__PURE__ */ P("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1), lQ = ["name", "id", "value"], cQ = { class: "relative focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:focus:ring-blue-500 dark:focus:border-blue-500" }, iQ = { class: "relative showOptions" }, uQ = ["value", "placeholder"], dQ = { class: "p-1" }, mQ = /* @__PURE__ */ P("label", {
2450
2447
  for: "default-search",
2451
2448
  class: "mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"
2452
2449
  }, "Search", -1), fQ = { class: "relative" }, gQ = /* @__PURE__ */ P("div", { class: "absolute inset-y-0 flex items-center pointer-events-none start-0 ps-3" }, [
@@ -2540,8 +2537,8 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2540
2537
  },
2541
2538
  emits: ["update:modelValue", "selected", "selectionChanged"],
2542
2539
  setup(R, { emit: me }) {
2543
- const se = R, Ee = me, fe = No(null), G = No({}), Ae = No(0), Q = No(!1), Pe = No(""), it = No(""), $t = No(null), Sn = No(0), jn = () => {
2544
- $t.value && (Sn.value = $t.value.offsetWidth);
2540
+ const se = R, Ee = me, fe = No(null), G = No({}), Ae = No(0), Q = No(!1), Pe = No(""), it = No(""), Dt = No(null), Cn = No(0), jn = () => {
2541
+ console.log("myDivDropDown", Dt.value), Cn.value = Dt.value.offsetWidth, Dt.value && (Cn.value = Dt.value.offsetWidth);
2545
2542
  }, Vo = () => {
2546
2543
  jn();
2547
2544
  };
@@ -2669,7 +2666,12 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2669
2666
  id: R.field_name,
2670
2667
  value: (Gt = Oo.value) == null ? void 0 : Gt.id
2671
2668
  }, null, 8, lQ),
2672
- R.options ? (ve(), we("div", cQ, [
2669
+ R.options ? (ve(), we("div", {
2670
+ key: 0,
2671
+ ref_key: "myDivDropDown",
2672
+ ref: Dt,
2673
+ class: "dropdown"
2674
+ }, [
2673
2675
  R.label_name ? (ve(), we("label", {
2674
2676
  key: 0,
2675
2677
  class: rn({
@@ -2678,12 +2680,8 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2678
2680
  required: R.is_required
2679
2681
  })
2680
2682
  }, ft(R.label_name), 3)) : pt("", !0),
2681
- P("div", iQ, [
2682
- P("div", {
2683
- class: "relative showOptions",
2684
- ref_key: "myDivDropDown",
2685
- ref: $t
2686
- }, [
2683
+ P("div", cQ, [
2684
+ P("div", iQ, [
2687
2685
  P("input", {
2688
2686
  class: rn([{
2689
2687
  "gl-input-form": R.error_message == "",
@@ -2710,7 +2708,7 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2710
2708
  }, null, 2),
2711
2709
  Qa(P("div", {
2712
2710
  class: "text-gray-700 bg-white dark:border-strokedark dark:bg-boxdark dark:text-gray-200 !border-b !border-t-0 !border-r !border-l fixed w-full z-[999999999] rounded-b-lg",
2713
- style: YG({ maxWidth: Sn.value + "px" })
2711
+ style: YG({ maxWidth: Cn.value + "px" })
2714
2712
  }, [
2715
2713
  P("div", dQ, [
2716
2714
  mQ,
@@ -2753,9 +2751,9 @@ const Wae = /* @__PURE__ */ Jr(wX, [["render", _J], ["__scopeId", "data-v-a94f16
2753
2751
  ], 4), [
2754
2752
  [n5, Q.value]
2755
2753
  ])
2756
- ], 512)
2754
+ ])
2757
2755
  ])
2758
- ])) : pt("", !0),
2756
+ ], 512)) : pt("", !0),
2759
2757
  P("span", SQ, ft(R.error_message), 1),
2760
2758
  P("small", _Q, ft(R.description), 1)
2761
2759
  ], 2))
@@ -2915,7 +2913,7 @@ var oq = { exports: {} };
2915
2913
  return fe(Pe(e), function(o) {
2916
2914
  return Ee(o, n);
2917
2915
  });
2918
- }, $t = function(e) {
2916
+ }, Dt = function(e) {
2919
2917
  return G(function(n, o) {
2920
2918
  var r = Object.keys(n), l = Object.keys(o);
2921
2919
  if (!it(Q).eq(r, l))
@@ -2927,11 +2925,11 @@ var oq = { exports: {} };
2927
2925
  }
2928
2926
  return !0;
2929
2927
  });
2930
- }, Sn = G(function(e, n) {
2928
+ }, Cn = G(function(e, n) {
2931
2929
  if (e === n)
2932
2930
  return !0;
2933
2931
  var o = me(e), r = me(n);
2934
- return o !== r ? !1 : se(o) ? e === n : o === "array" ? Pe(Sn).eq(e, n) : o === "object" ? $t(Sn).eq(e, n) : !1;
2932
+ return o !== r ? !1 : se(o) ? e === n : o === "array" ? Pe(Cn).eq(e, n) : o === "object" ? Dt(Cn).eq(e, n) : !1;
2935
2933
  });
2936
2934
  const jn = Object.getPrototypeOf, Vo = (e, n, o) => {
2937
2935
  var r;
@@ -3172,7 +3170,7 @@ var oq = { exports: {} };
3172
3170
  return vt(e, (r, l) => {
3173
3171
  o.push(n(r, l));
3174
3172
  }), o;
3175
- }, bl = (e) => tl(e, Jn), Ko = (e, n) => gn(e, n) ? z.from(e[n]) : z.none(), gn = (e, n) => Gi.call(e, n), Ar = (e, n) => gn(e, n) && e[n] !== void 0 && e[n] !== null, Nl = (e, n, o = Sn) => $t(o).eq(e, n), Hc = (e) => {
3173
+ }, bl = (e) => tl(e, Jn), Ko = (e, n) => gn(e, n) ? z.from(e[n]) : z.none(), gn = (e, n) => Gi.call(e, n), Ar = (e, n) => gn(e, n) && e[n] !== void 0 && e[n] !== null, Nl = (e, n, o = Cn) => Dt(o).eq(e, n), Hc = (e) => {
3176
3174
  const n = {};
3177
3175
  return _e(e, (o) => {
3178
3176
  n[o] = {};
@@ -3503,8 +3501,8 @@ var oq = { exports: {} };
3503
3501
  }
3504
3502
  }
3505
3503
  return e;
3506
- }, Dt = function(e, n, o, r) {
3507
- r = r || this, e && (o && (e = e[o]), Ws(e, (l, u) => n.call(r, l, u, o) === !1 ? !1 : (Dt(l, n, o, r), !0)));
3504
+ }, Ot = function(e, n, o, r) {
3505
+ r = r || this, e && (o && (e = e[o]), Ws(e, (l, u) => n.call(r, l, u, o) === !1 ? !1 : (Ot(l, n, o, r), !0)));
3508
3506
  }, lt = {
3509
3507
  trim: Zs,
3510
3508
  isArray: xr,
@@ -3517,7 +3515,7 @@ var oq = { exports: {} };
3517
3515
  inArray: Vr,
3518
3516
  hasOwn: re,
3519
3517
  extend: Le,
3520
- walk: Dt,
3518
+ walk: Ot,
3521
3519
  resolve: (e, n = window) => {
3522
3520
  const o = e.split(".");
3523
3521
  for (let r = 0, l = o.length; r < l && (n = n[o[r]], !!n); r++)
@@ -4039,7 +4037,7 @@ var oq = { exports: {} };
4039
4037
  n.isBlock(co(e)) && Id(o) && n.isBlock(co(r)) && wo(o);
4040
4038
  });
4041
4039
  });
4042
- }, x = zg, T = au, V = fb, K = (e) => e.insertContent(x, { preserve_zwsp: !0 }), be = Zt, je = ut, gt = (e) => (je(e) && (e = e.parentNode), be(e) && e.hasAttribute("data-mce-caret")), Ot = (e) => je(e) && T(e.data), on = (e) => gt(e) || Ot(e), Hn = (e) => e.firstChild !== e.lastChild || !as(e.firstChild), ar = (e, n) => {
4040
+ }, x = zg, T = au, V = fb, K = (e) => e.insertContent(x, { preserve_zwsp: !0 }), be = Zt, je = ut, gt = (e) => (je(e) && (e = e.parentNode), be(e) && e.hasAttribute("data-mce-caret")), Rt = (e) => je(e) && T(e.data), on = (e) => gt(e) || Rt(e), Hn = (e) => e.firstChild !== e.lastChild || !as(e.firstChild), ar = (e, n) => {
4043
4041
  var o;
4044
4042
  const l = ((o = e.ownerDocument) !== null && o !== void 0 ? o : document).createTextNode(x), u = e.parentNode;
4045
4043
  if (n) {
@@ -4064,10 +4062,10 @@ var oq = { exports: {} };
4064
4062
  return l;
4065
4063
  }, Po = (e) => {
4066
4064
  const n = e.container();
4067
- return ut(n) ? n.data.charAt(e.offset()) === x || e.isAtStart() && Ot(n.previousSibling) : !1;
4065
+ return ut(n) ? n.data.charAt(e.offset()) === x || e.isAtStart() && Rt(n.previousSibling) : !1;
4068
4066
  }, Bs = (e) => {
4069
4067
  const n = e.container();
4070
- return ut(n) ? n.data.charAt(e.offset() - 1) === x || e.isAtEnd() && Ot(n.nextSibling) : !1;
4068
+ return ut(n) ? n.data.charAt(e.offset() - 1) === x || e.isAtEnd() && Rt(n.nextSibling) : !1;
4071
4069
  }, mc = (e, n, o) => {
4072
4070
  var r;
4073
4071
  const u = ((r = n.ownerDocument) !== null && r !== void 0 ? r : document).createElement(e);
@@ -8267,7 +8265,7 @@ Required: ` + n.join(", "));
8267
8265
  }), De = (e) => ie.get(e), at = () => le.fromDom(document), Bt = (e, n) => e.view(n).fold(nt([]), (r) => {
8268
8266
  const l = e.owner(r), u = Bt(e, l);
8269
8267
  return [r].concat(u);
8270
- }), Rt = (e, n) => {
8268
+ }), $t = (e, n) => {
8271
8269
  const o = n.owner(e);
8272
8270
  return Bt(n, o);
8273
8271
  };
@@ -8280,7 +8278,7 @@ Required: ` + n.join(", "));
8280
8278
  owner: (e) => ic(e)
8281
8279
  });
8282
8280
  const Jt = (e) => {
8283
- const n = at(), o = Kt(n), r = Rt(e, Ye), l = ct(e), u = Tr(r, (f, b) => {
8281
+ const n = at(), o = Kt(n), r = $t(e, Ye), l = ct(e), u = Tr(r, (f, b) => {
8284
8282
  const y = ct(b);
8285
8283
  return {
8286
8284
  left: f.left + y.left,
@@ -9133,7 +9131,7 @@ Required: ` + n.join(", "));
9133
9131
  return We(r) && r === l;
9134
9132
  }, cI = (e) => Po(e) || Bs(e), Co = (e, n) => {
9135
9133
  const o = n.container(), r = n.offset();
9136
- return e ? Ot(o) ? ut(o.nextSibling) ? Ie(o.nextSibling, 0) : Ie.after(o) : Po(n) ? Ie(o, r + 1) : n : Ot(o) ? ut(o.previousSibling) ? Ie(o.previousSibling, o.previousSibling.data.length) : Ie.before(o) : Bs(n) ? Ie(o, r - 1) : n;
9134
+ return e ? Rt(o) ? ut(o.nextSibling) ? Ie(o.nextSibling, 0) : Ie.after(o) : Po(n) ? Ie(o, r + 1) : n : Rt(o) ? ut(o.previousSibling) ? Ie(o.previousSibling, o.previousSibling.data.length) : Ie.before(o) : Bs(n) ? Ie(o, r - 1) : n;
9137
9135
  }, O0 = et(Co, !0), bw = et(Co, !1), O4 = (e, n) => {
9138
9136
  const o = (r) => r.stopImmediatePropagation();
9139
9137
  e.on("beforeinput input", o, !0), e.getDoc().execCommand(n), e.off("beforeinput input", o);
@@ -11557,8 +11555,8 @@ Required: ` + n.join(", "));
11557
11555
  namespaceURI: vg,
11558
11556
  tagName: "template"
11559
11557
  });
11560
- const Cn = xh(Ve.tagName), Hr = xh(Qt.tagName);
11561
- return Cy[Ve.namespaceURI] ? Ve.namespaceURI === sb ? Qt.namespaceURI === hm ? Cn === "svg" : Qt.namespaceURI === ob ? Cn === "svg" && (Hr === "annotation-xml" || wg[Hr]) : !!Fe[Cn] : Ve.namespaceURI === ob ? Qt.namespaceURI === hm ? Cn === "math" : Qt.namespaceURI === sb ? Cn === "math" && Sy[Hr] : !!St[Cn] : Ve.namespaceURI === hm ? Qt.namespaceURI === sb && !Sy[Hr] || Qt.namespaceURI === ob && !wg[Hr] ? !1 : !St[Cn] && (Be[Cn] || !Fe[Cn]) : !!(yg === "application/xhtml+xml" && Cy[Ve.namespaceURI]) : !1;
11558
+ const Sn = xh(Ve.tagName), Hr = xh(Qt.tagName);
11559
+ return Cy[Ve.namespaceURI] ? Ve.namespaceURI === sb ? Qt.namespaceURI === hm ? Sn === "svg" : Qt.namespaceURI === ob ? Sn === "svg" && (Hr === "annotation-xml" || wg[Hr]) : !!Fe[Sn] : Ve.namespaceURI === ob ? Qt.namespaceURI === hm ? Sn === "math" : Qt.namespaceURI === sb ? Sn === "math" && Sy[Hr] : !!St[Sn] : Ve.namespaceURI === hm ? Qt.namespaceURI === sb && !Sy[Hr] || Qt.namespaceURI === ob && !wg[Hr] ? !1 : !St[Sn] && (Be[Sn] || !Fe[Sn]) : !!(yg === "application/xhtml+xml" && Cy[Ve.namespaceURI]) : !1;
11562
11560
  }, sn = function(Ve) {
11563
11561
  cg(n.removed, { element: Ve });
11564
11562
  try {
@@ -11590,12 +11588,12 @@ Required: ` + n.join(", "));
11590
11588
  } catch {
11591
11589
  }
11592
11590
  }, nr = function(Ve) {
11593
- let Qt, Cn;
11591
+ let Qt, Sn;
11594
11592
  if (bg)
11595
11593
  Ve = "<remove></remove>" + Ve;
11596
11594
  else {
11597
11595
  const Td = R3(Ve, /^[\r\n\t ]+/);
11598
- Cn = Td && Td[0];
11596
+ Sn = Td && Td[0];
11599
11597
  }
11600
11598
  yg === "application/xhtml+xml" && vg === hm && (Ve = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + Ve + "</body></html>");
11601
11599
  const Hr = Ce ? Ce.createHTML(Ve) : Ve;
@@ -11612,31 +11610,31 @@ Required: ` + n.join(", "));
11612
11610
  }
11613
11611
  }
11614
11612
  const Fc = Qt.body || Qt.documentElement;
11615
- return Ve && Cn && Fc.insertBefore(l.createTextNode(Cn), Fc.childNodes[0] || null), vg === hm ? Ze.call(Qt, Fa ? "html" : "body")[0] : Fa ? Qt.documentElement : Fc;
11613
+ return Ve && Sn && Fc.insertBefore(l.createTextNode(Sn), Fc.childNodes[0] || null), vg === hm ? Ze.call(Qt, Fa ? "html" : "body")[0] : Fa ? Qt.documentElement : Fc;
11616
11614
  }, ui = function(Ve) {
11617
11615
  return wt.call(Ve.ownerDocument || Ve, Ve, k.SHOW_ELEMENT | k.SHOW_COMMENT | k.SHOW_TEXT, null, !1);
11618
11616
  }, Ja = function(Ve) {
11619
11617
  return Ve instanceof B && (typeof Ve.nodeName != "string" || typeof Ve.textContent != "string" || typeof Ve.removeChild != "function" || !(Ve.attributes instanceof M) || typeof Ve.removeAttribute != "function" || typeof Ve.setAttribute != "function" || typeof Ve.namespaceURI != "string" || typeof Ve.insertBefore != "function" || typeof Ve.hasChildNodes != "function");
11620
11618
  }, p1 = function(Ve) {
11621
11619
  return typeof b == "object" ? Ve instanceof b : Ve && typeof Ve == "object" && typeof Ve.nodeType == "number" && typeof Ve.nodeName == "string";
11622
- }, kd = function(Ve, Qt, Cn) {
11620
+ }, kd = function(Ve, Qt, Sn) {
11623
11621
  st[Ve] && cL(st[Ve], (Hr) => {
11624
- Hr.call(n, Qt, Cn, h1);
11622
+ Hr.call(n, Qt, Sn, h1);
11625
11623
  });
11626
11624
  }, qO = function(Ve) {
11627
11625
  let Qt;
11628
11626
  if (kd("beforeSanitizeElements", Ve, null), Ja(Ve))
11629
11627
  return sn(Ve), !0;
11630
- const Cn = nc(Ve.nodeName);
11628
+ const Sn = nc(Ve.nodeName);
11631
11629
  if (kd("uponSanitizeElement", Ve, {
11632
- tagName: Cn,
11630
+ tagName: Sn,
11633
11631
  allowedTags: cs
11634
11632
  }), Ve.hasChildNodes() && !p1(Ve.firstElementChild) && (!p1(Ve.content) || !p1(Ve.content.firstElementChild)) && vd(/<[/\w]/g, Ve.innerHTML) && vd(/<[/\w]/g, Ve.textContent))
11635
11633
  return sn(Ve), !0;
11636
- if (!cs[Cn] || Yt[Cn]) {
11637
- if (!Yt[Cn] && KO(Cn) && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Cn) || so.tagNameCheck instanceof Function && so.tagNameCheck(Cn)))
11634
+ if (!cs[Sn] || Yt[Sn]) {
11635
+ if (!Yt[Sn] && KO(Sn) && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Sn) || so.tagNameCheck instanceof Function && so.tagNameCheck(Sn)))
11638
11636
  return !1;
11639
- if (ir && !g1[Cn]) {
11637
+ if (ir && !g1[Sn]) {
11640
11638
  const Hr = Se(Ve) || Ve.parentNode, Fc = ye(Ve) || Ve.childNodes;
11641
11639
  if (Fc && Hr) {
11642
11640
  const Td = Fc.length;
@@ -11646,19 +11644,19 @@ Required: ` + n.join(", "));
11646
11644
  }
11647
11645
  return sn(Ve), !0;
11648
11646
  }
11649
- return Ve instanceof y && !ht(Ve) || (Cn === "noscript" || Cn === "noembed" || Cn === "noframes") && vd(/<\/no(script|embed|frames)/i, Ve.innerHTML) ? (sn(Ve), !0) : (gs && Ve.nodeType === 3 && (Qt = Ve.textContent, Qt = sm(Qt, jt, " "), Qt = sm(Qt, an, " "), Qt = sm(Qt, Kn, " "), Ve.textContent !== Qt && (cg(n.removed, { element: Ve.cloneNode() }), Ve.textContent = Qt)), kd("afterSanitizeElements", Ve, null), !1);
11650
- }, bT = function(Ve, Qt, Cn) {
11651
- if ($o && (Qt === "id" || Qt === "name") && (Cn in l || Cn in GO))
11647
+ return Ve instanceof y && !ht(Ve) || (Sn === "noscript" || Sn === "noembed" || Sn === "noframes") && vd(/<\/no(script|embed|frames)/i, Ve.innerHTML) ? (sn(Ve), !0) : (gs && Ve.nodeType === 3 && (Qt = Ve.textContent, Qt = sm(Qt, jt, " "), Qt = sm(Qt, an, " "), Qt = sm(Qt, Kn, " "), Ve.textContent !== Qt && (cg(n.removed, { element: Ve.cloneNode() }), Ve.textContent = Qt)), kd("afterSanitizeElements", Ve, null), !1);
11648
+ }, bT = function(Ve, Qt, Sn) {
11649
+ if ($o && (Qt === "id" || Qt === "name") && (Sn in l || Sn in GO))
11652
11650
  return !1;
11653
11651
  if (!(Rn && !On[Qt] && vd(Wn, Qt))) {
11654
11652
  if (!(Ct && vd(fs, Qt))) {
11655
11653
  if (!en[Qt] || On[Qt]) {
11656
- if (!(KO(Ve) && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Ve) || so.tagNameCheck instanceof Function && so.tagNameCheck(Ve)) && (so.attributeNameCheck instanceof RegExp && vd(so.attributeNameCheck, Qt) || so.attributeNameCheck instanceof Function && so.attributeNameCheck(Qt)) || Qt === "is" && so.allowCustomizedBuiltInElements && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Cn) || so.tagNameCheck instanceof Function && so.tagNameCheck(Cn)))) return !1;
11654
+ if (!(KO(Ve) && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Ve) || so.tagNameCheck instanceof Function && so.tagNameCheck(Ve)) && (so.attributeNameCheck instanceof RegExp && vd(so.attributeNameCheck, Qt) || so.attributeNameCheck instanceof Function && so.attributeNameCheck(Qt)) || Qt === "is" && so.allowCustomizedBuiltInElements && (so.tagNameCheck instanceof RegExp && vd(so.tagNameCheck, Sn) || so.tagNameCheck instanceof Function && so.tagNameCheck(Sn)))) return !1;
11657
11655
  } else if (!xy[Qt]) {
11658
- if (!vd($l, sm(Cn, Fr, ""))) {
11659
- if (!((Qt === "src" || Qt === "xlink:href" || Qt === "href") && Ve !== "script" && D$(Cn, "data:") === 0 && nb[Ve])) {
11660
- if (!(So && !vd(Os, sm(Cn, Fr, "")))) {
11661
- if (Cn)
11656
+ if (!vd($l, sm(Sn, Fr, ""))) {
11657
+ if (!((Qt === "src" || Qt === "xlink:href" || Qt === "href") && Ve !== "script" && D$(Sn, "data:") === 0 && nb[Ve])) {
11658
+ if (!(So && !vd(Os, sm(Sn, Fr, "")))) {
11659
+ if (Sn)
11662
11660
  return !1;
11663
11661
  }
11664
11662
  }
@@ -11670,7 +11668,7 @@ Required: ` + n.join(", "));
11670
11668
  }, KO = function(Ve) {
11671
11669
  return Ve.indexOf("-") > 0;
11672
11670
  }, YO = function(Ve) {
11673
- let Qt, Cn, Hr, Fc;
11671
+ let Qt, Sn, Hr, Fc;
11674
11672
  kd("beforeSanitizeAttributes", Ve, null);
11675
11673
  const { attributes: Td } = Ve;
11676
11674
  if (!Td)
@@ -11684,38 +11682,38 @@ Required: ` + n.join(", "));
11684
11682
  for (Fc = Td.length; Fc--; ) {
11685
11683
  Qt = Td[Fc];
11686
11684
  const { name: pm, namespaceURI: vT } = Qt;
11687
- Cn = pm === "value" ? Qt.value : iL(Qt.value);
11688
- const yj = Cn;
11689
- if (Hr = nc(pm), Ha.attrName = Hr, Ha.attrValue = Cn, Ha.keepAttr = !0, Ha.forceKeepAttr = void 0, kd("uponSanitizeAttribute", Ve, Ha), Cn = Ha.attrValue, Ha.forceKeepAttr)
11685
+ Sn = pm === "value" ? Qt.value : iL(Qt.value);
11686
+ const yj = Sn;
11687
+ if (Hr = nc(pm), Ha.attrName = Hr, Ha.attrValue = Sn, Ha.keepAttr = !0, Ha.forceKeepAttr = void 0, kd("uponSanitizeAttribute", Ve, Ha), Sn = Ha.attrValue, Ha.forceKeepAttr)
11690
11688
  continue;
11691
11689
  if (!Ha.keepAttr) {
11692
11690
  ro(pm, Ve);
11693
11691
  continue;
11694
11692
  }
11695
- if (!Ss && vd(/\/>/i, Cn)) {
11693
+ if (!Ss && vd(/\/>/i, Sn)) {
11696
11694
  ro(pm, Ve);
11697
11695
  continue;
11698
11696
  }
11699
- gs && (Cn = sm(Cn, jt, " "), Cn = sm(Cn, an, " "), Cn = sm(Cn, Kn, " "));
11697
+ gs && (Sn = sm(Sn, jt, " "), Sn = sm(Sn, an, " "), Sn = sm(Sn, Kn, " "));
11700
11698
  const XO = nc(Ve.nodeName);
11701
- if (!bT(XO, Hr, Cn)) {
11699
+ if (!bT(XO, Hr, Sn)) {
11702
11700
  ro(pm, Ve);
11703
11701
  continue;
11704
11702
  }
11705
- if (Rs && (Hr === "id" || Hr === "name") && (ro(pm, Ve), Cn = Js + Cn), Ce && typeof J == "object" && typeof J.getAttributeType == "function" && !vT)
11703
+ if (Rs && (Hr === "id" || Hr === "name") && (ro(pm, Ve), Sn = Js + Sn), Ce && typeof J == "object" && typeof J.getAttributeType == "function" && !vT)
11706
11704
  switch (J.getAttributeType(XO, Hr)) {
11707
11705
  case "TrustedHTML": {
11708
- Cn = Ce.createHTML(Cn);
11706
+ Sn = Ce.createHTML(Sn);
11709
11707
  break;
11710
11708
  }
11711
11709
  case "TrustedScriptURL": {
11712
- Cn = Ce.createScriptURL(Cn);
11710
+ Sn = Ce.createScriptURL(Sn);
11713
11711
  break;
11714
11712
  }
11715
11713
  }
11716
- if (Cn !== yj)
11714
+ if (Sn !== yj)
11717
11715
  try {
11718
- vT ? Ve.setAttributeNS(vT, pm, Cn) : Ve.setAttribute(pm, Cn);
11716
+ vT ? Ve.setAttributeNS(vT, pm, Sn) : Ve.setAttribute(pm, Sn);
11719
11717
  } catch {
11720
11718
  ro(pm, Ve);
11721
11719
  }
@@ -11723,13 +11721,13 @@ Required: ` + n.join(", "));
11723
11721
  kd("afterSanitizeAttributes", Ve, null);
11724
11722
  }, vj = function no(Ve) {
11725
11723
  let Qt;
11726
- const Cn = ui(Ve);
11727
- for (kd("beforeSanitizeShadowDOM", Ve, null); Qt = Cn.nextNode(); )
11724
+ const Sn = ui(Ve);
11725
+ for (kd("beforeSanitizeShadowDOM", Ve, null); Qt = Sn.nextNode(); )
11728
11726
  kd("uponSanitizeShadowNode", Qt, null), !qO(Qt) && (Qt.content instanceof u && no(Qt.content), YO(Qt));
11729
11727
  kd("afterSanitizeShadowDOM", Ve, null);
11730
11728
  };
11731
11729
  return n.sanitize = function(no) {
11732
- let Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Qt, Cn, Hr, Fc;
11730
+ let Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Qt, Sn, Hr, Fc;
11733
11731
  if (Hx = !no, Hx && (no = "<!-->"), typeof no != "string" && !p1(no))
11734
11732
  if (typeof no.toString == "function") {
11735
11733
  if (no = no.toString(), typeof no != "string")
@@ -11745,7 +11743,7 @@ Required: ` + n.join(", "));
11745
11743
  throw Gv("root node is forbidden and cannot be sanitized in-place");
11746
11744
  }
11747
11745
  } else if (no instanceof b)
11748
- Qt = nr("<!---->"), Cn = Qt.ownerDocument.importNode(no, !0), Cn.nodeType === 1 && Cn.nodeName === "BODY" || Cn.nodeName === "HTML" ? Qt = Cn : Qt.appendChild(Cn);
11746
+ Qt = nr("<!---->"), Sn = Qt.ownerDocument.importNode(no, !0), Sn.nodeType === 1 && Sn.nodeName === "BODY" || Sn.nodeName === "HTML" ? Qt = Sn : Qt.appendChild(Sn);
11749
11747
  else {
11750
11748
  if (!ii && !gs && !Fa && no.indexOf("<") === -1)
11751
11749
  return Ce && Nn ? Ce.createHTML(no) : no;
@@ -11775,8 +11773,8 @@ Required: ` + n.join(", "));
11775
11773
  h1 = null, gm = !1;
11776
11774
  }, n.isValidAttribute = function(no, Ve, Qt) {
11777
11775
  h1 || Ux({});
11778
- const Cn = nc(no), Hr = nc(Ve);
11779
- return bT(Cn, Hr, Qt);
11776
+ const Sn = nc(no), Hr = nc(Ve);
11777
+ return bT(Sn, Hr, Qt);
11780
11778
  }, n.addHook = function(no, Ve) {
11781
11779
  typeof Ve == "function" && (st[no] = st[no] || [], cg(st[no], Ve));
11782
11780
  }, n.removeHook = function(no) {
@@ -14499,7 +14497,7 @@ Options:${f}${o.join(f)}` : "";
14499
14497
  }
14500
14498
  }, H0 = (e, n) => e ? E9(n) : X_(n), A9 = et(H0, !0), D9 = et(H0, !1), ex = (e, n) => ut(e.container()) ? H0(n, e.container()) : H0(n, e.getNode()), dP = (e, n) => {
14501
14499
  const o = n.get();
14502
- return o && e.container() === o && Ot(o);
14500
+ return o && e.container() === o && Rt(o);
14503
14501
  }, BA = (e, n) => n.fold((o) => {
14504
14502
  _a(e.get());
14505
14503
  const r = A9(o);
@@ -17578,7 +17576,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, go(n, _D)), WB = nt(HB), pk
17578
17576
  if (We(Wn)) {
17579
17577
  if (_p(Wn))
17580
17578
  return B(an, Wn, Ze ? !Kn.isAtEnd() : !1, !1);
17581
- if (Ot(Wn) && io(Wn.nextSibling)) {
17579
+ if (Rt(Wn) && io(Wn.nextSibling)) {
17582
17580
  const Os = o.createRng();
17583
17581
  return Os.setStart(Wn, 0), Os.setEnd(Wn, 0), Os;
17584
17582
  }
@@ -17587,7 +17585,7 @@ Input object: ` + CD(e.input), kD = (e, n) => OB(e, go(n, _D)), WB = nt(HB), pk
17587
17585
  if (We(fs)) {
17588
17586
  if (_p(fs))
17589
17587
  return B(an, fs, Ze ? !1 : !Kn.isAtEnd(), !1);
17590
- if (Ot(fs) && io(fs.previousSibling)) {
17588
+ if (Rt(fs) && io(fs.previousSibling)) {
17591
17589
  const Os = o.createRng();
17592
17590
  return Os.setStart(fs, 1), Os.setEnd(fs, 1), Os;
17593
17591
  }
@@ -20278,8 +20276,8 @@ tinymce.IconManager.add("default", {
20278
20276
  }, se = (t) => {
20279
20277
  const s = typeof t;
20280
20278
  return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && me(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
20281
- }, Ee = (t) => (s) => se(s) === t, fe = (t) => (s) => typeof s === t, G = (t) => (s) => t === s, Ae = (t, s) => Pe(t) && me(t, s, (a, c) => R(a) === c), Q = Ee("string"), Pe = Ee("object"), it = (t) => Ae(t, Object), $t = Ee("array"), Sn = G(null), jn = fe("boolean"), Vo = G(void 0), Us = (t) => t == null, Oo = (t) => !Us(t), Mt = fe("function"), pr = fe("number"), fn = (t, s) => {
20282
- if ($t(t)) {
20279
+ }, Ee = (t) => (s) => se(s) === t, fe = (t) => (s) => typeof s === t, G = (t) => (s) => t === s, Ae = (t, s) => Pe(t) && me(t, s, (a, c) => R(a) === c), Q = Ee("string"), Pe = Ee("object"), it = (t) => Ae(t, Object), Dt = Ee("array"), Cn = G(null), jn = fe("boolean"), Vo = G(void 0), Us = (t) => t == null, Oo = (t) => !Us(t), Mt = fe("function"), pr = fe("number"), fn = (t, s) => {
20280
+ if (Dt(t)) {
20283
20281
  for (let a = 0, c = t.length; a < c; ++a)
20284
20282
  if (!s(t[a]))
20285
20283
  return !1;
@@ -20447,7 +20445,7 @@ tinymce.IconManager.add("default", {
20447
20445
  }, Ke = (t) => {
20448
20446
  const s = [];
20449
20447
  for (let a = 0, c = t.length; a < c; ++a) {
20450
- if (!$t(t[a]))
20448
+ if (!Dt(t[a]))
20451
20449
  throw new Error("Arr.flatten item " + a + " was not an array, input: " + t);
20452
20450
  Jn.apply(s, t[a]);
20453
20451
  }
@@ -20670,7 +20668,7 @@ tinymce.IconManager.add("default", {
20670
20668
  return a && a.hasAttribute ? a.hasAttribute(s) : !1;
20671
20669
  }, re = (t, s) => {
20672
20670
  t.dom.removeAttribute(s);
20673
- }, Le = (t) => zo(t.dom.attributes, (s, a) => (s[a.name] = a.value, s), {}), Dt = (t, s, a) => {
20671
+ }, Le = (t) => zo(t.dom.attributes, (s, a) => (s[a.name] = a.value, s), {}), Ot = (t, s, a) => {
20674
20672
  if (!Q(a))
20675
20673
  throw console.error("Invalid call to CSS.set. Property ", s, ":: Value ", a, ":: Element ", t), new Error("CSS value must be a string: " + a);
20676
20674
  Dr(t) && t.style.setProperty(s, a);
@@ -20678,11 +20676,11 @@ tinymce.IconManager.add("default", {
20678
20676
  Dr(t) && t.style.removeProperty(s);
20679
20677
  }, qt = (t, s, a) => {
20680
20678
  const c = t.dom;
20681
- Dt(c, s, a);
20679
+ Ot(c, s, a);
20682
20680
  }, $s = (t, s) => {
20683
20681
  const a = t.dom;
20684
20682
  us(s, (c, d) => {
20685
- Dt(a, d, c);
20683
+ Ot(a, d, c);
20686
20684
  });
20687
20685
  }, lt = (t, s) => {
20688
20686
  const a = t.dom;
@@ -20690,7 +20688,7 @@ tinymce.IconManager.add("default", {
20690
20688
  c.fold(() => {
20691
20689
  Yn(a, d);
20692
20690
  }, (g) => {
20693
- Dt(a, d, g);
20691
+ Ot(a, d, g);
20694
20692
  });
20695
20693
  });
20696
20694
  }, rs = (t, s) => {
@@ -21426,7 +21424,7 @@ Input object: ` + Lg(t.input), io = (t, s) => ut(t, Go(s, nn)), kf = (t, s) => u
21426
21424
  }
21427
21425
  };
21428
21426
  }, T = { generate: (t) => {
21429
- if (!$t(t))
21427
+ if (!Dt(t))
21430
21428
  throw new Error("cases must be an array");
21431
21429
  if (t.length === 0)
21432
21430
  throw new Error("there must be at least one case");
@@ -21440,7 +21438,7 @@ Input object: ` + Lg(t.input), io = (t, s) => ut(t, Go(s, nn)), kf = (t, s) => u
21440
21438
  throw new Error("duplicate key detected:" + p);
21441
21439
  if (p === "cata")
21442
21440
  throw new Error("cannot have a case named cata (sorry)");
21443
- if (!$t(w))
21441
+ if (!Dt(w))
21444
21442
  throw new Error("case arguments must be an array");
21445
21443
  s.push(p), a[p] = (...C) => {
21446
21444
  const E = C.length;
@@ -21521,7 +21519,7 @@ Required: ` + s.join(", "));
21521
21519
  return bt(t, (a) => {
21522
21520
  s[a.key] = a.value;
21523
21521
  }), s;
21524
- }, gt = (t, s) => K(t, s), Ot = (t, s) => be(t, s), on = (t) => je(t), Hn = (t, s) => t.length === 0 ? Fn.value(s) : Fn.value(Zo(s, qc.apply(void 0, t))), ar = (t) => Fn.error(Ke(t)), Po = (t, s) => {
21522
+ }, gt = (t, s) => K(t, s), Rt = (t, s) => be(t, s), on = (t) => je(t), Hn = (t, s) => t.length === 0 ? Fn.value(s) : Fn.value(Zo(s, qc.apply(void 0, t))), ar = (t) => Fn.error(Ke(t)), Po = (t, s) => {
21525
21523
  const a = V(t);
21526
21524
  return a.errors.length > 0 ? ar(a.errors) : Hn(a.values, s);
21527
21525
  }, Bs = (t) => Mt(t) ? t : Pt, mc = (t, s, a) => {
@@ -21722,7 +21720,7 @@ Check the ` + sd() + " event handlers"), !1) : !0;
21722
21720
  }, Yh = Wt("alloy-premade"), Hm = (t) => (Object.defineProperty(t.element.dom, Yh, {
21723
21721
  value: t.uid,
21724
21722
  writable: !0
21725
- }), Ot(Yh, t)), $T = (t) => go(t.dom, Yh), Xh = (t) => vt(t, Yh), Xg = (t) => Qx((s, ...a) => t(s.getApis(), s, ...a), t), Ru = { init: () => ei({ readState: oe("No State required") }) }, ei = (t) => t, MT = (t, s) => {
21723
+ }), Rt(Yh, t)), $T = (t) => go(t.dom, Yh), Xh = (t) => vt(t, Yh), Xg = (t) => Qx((s, ...a) => t(s.getApis(), s, ...a), t), Ru = { init: () => ei({ readState: oe("No State required") }) }, ei = (t) => t, MT = (t, s) => {
21726
21724
  const a = tt(s, (d) => _l(d.name(), [
21727
21725
  ot("config"),
21728
21726
  Re("state", Ru)
@@ -21840,7 +21838,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(tt(s, (a) => a.name),
21840
21838
  }, Uy = (t, s) => {
21841
21839
  const a = di(t, (c, d) => (c.length === 1 ? Fn.value(c[0].handler) : M1(c, s, d)).map((p) => {
21842
21840
  const w = tp(p), C = c.length > 1 ? eo(s[d], (E) => ur(c, (O) => O.name === E)).join(" > ") : c[0].name;
21843
- return Ot(d, PT(w, C));
21841
+ return Rt(d, PT(w, C));
21844
21842
  }));
21845
21843
  return Po(a, {});
21846
21844
  }, ni = "alloy.base.behaviour", Db = nn([
@@ -24139,8 +24137,8 @@ Components: ` + JSON.stringify(s.components, null, 2));
24139
24137
  d4,
24140
24138
  vo(Qd)
24141
24139
  ]), at)] : []);
24142
- }, Rt = (t, s, a, c) => a.useSpace && !mh(t.element) ? [To(vo(Ri), ie)] : [];
24143
- var Qe = v(De, Ru.init, Bt, Rt, () => A.none());
24140
+ }, $t = (t, s, a, c) => a.useSpace && !mh(t.element) ? [To(vo(Ri), ie)] : [];
24141
+ var Qe = v(De, Ru.init, Bt, $t, () => A.none());
24144
24142
  const It = () => {
24145
24143
  const t = to();
24146
24144
  return ei({
@@ -25138,7 +25136,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
25138
25136
  expansions: a
25139
25137
  }), dR = (t, s) => ({
25140
25138
  primary: t,
25141
- menus: Ot(t, s),
25139
+ menus: Rt(t, s),
25142
25140
  expansions: {}
25143
25141
  }), Y7 = (t) => ({
25144
25142
  value: Wt(q7()),
@@ -26851,7 +26849,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
26851
26849
  processor: "object",
26852
26850
  default: {}
26853
26851
  }), c("toolbar", {
26854
- processor: (p) => jn(p) || Q(p) || $t(p) ? {
26852
+ processor: (p) => jn(p) || Q(p) || Dt(p) ? {
26855
26853
  value: p,
26856
26854
  valid: !0
26857
26855
  } : {
@@ -26930,7 +26928,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
26930
26928
  return wR.baseURL + "/skins/ui/" + a;
26931
26929
  }
26932
26930
  }, t_ = (t) => A.from(t.options.get("skin_url")), NR = (t) => t.options.get("line_height_formats").split(" "), n_ = (t) => {
26933
- const s = KS(t), a = Q(s), c = $t(s) && s.length > 0;
26931
+ const s = KS(t), a = Q(s), c = Dt(s) && s.length > 0;
26934
26932
  return !Aw(t) && (c || a || s === !0);
26935
26933
  }, Q4 = (t) => {
26936
26934
  const s = ao(9, (c) => t.options.get("toolbar" + (c + 1))), a = eo(s, Q);
@@ -31140,10 +31138,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31140
31138
  let a = null, c = null;
31141
31139
  return {
31142
31140
  cancel: () => {
31143
- Sn(a) || (clearTimeout(a), a = null, c = null);
31141
+ Cn(a) || (clearTimeout(a), a = null, c = null);
31144
31142
  },
31145
31143
  throttle: (...p) => {
31146
- c = p, Sn(a) && (a = setTimeout(() => {
31144
+ c = p, Cn(a) && (a = setTimeout(() => {
31147
31145
  const w = c;
31148
31146
  a = null, c = null, t.apply(null, w);
31149
31147
  }, s));
@@ -31153,10 +31151,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31153
31151
  let a = null;
31154
31152
  return {
31155
31153
  cancel: () => {
31156
- Sn(a) || (clearTimeout(a), a = null);
31154
+ Cn(a) || (clearTimeout(a), a = null);
31157
31155
  },
31158
31156
  throttle: (...g) => {
31159
- Sn(a) && (a = setTimeout(() => {
31157
+ Cn(a) && (a = setTimeout(() => {
31160
31158
  a = null, t.apply(null, g);
31161
31159
  }, s));
31162
31160
  }
@@ -31164,7 +31162,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31164
31162
  }, Q_ = (t, s) => {
31165
31163
  let a = null;
31166
31164
  const c = () => {
31167
- Sn(a) || (clearTimeout(a), a = null);
31165
+ Cn(a) || (clearTimeout(a), a = null);
31168
31166
  };
31169
31167
  return {
31170
31168
  cancel: c,
@@ -31571,7 +31569,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31571
31569
  const d = Wt("primary-menu"), g = IP(t, a.shared.providers.menuItems());
31572
31570
  if (g.items.length === 0)
31573
31571
  return A.none();
31574
- const p = uH(c), w = xM(d, g.items, s, a, c.isHorizontalMenu, p), C = dH(c), E = Go(g.menus, (N, H) => xM(H, N, s, a, !1, C)), O = Zo(E, Ot(d, w));
31572
+ const p = uH(c), w = xM(d, g.items, s, a, c.isHorizontalMenu, p), C = dH(c), E = Go(g.menus, (N, H) => xM(H, N, s, a, !1, C)), O = Zo(E, Rt(d, w));
31575
31573
  return A.from(jp.tieredData(d, O, g.expansions));
31576
31574
  }, JA = (t) => !go(t, "items"), LP = "data-value", FP = (t, s, a, c) => tt(a, (d) => JA(d) ? {
31577
31575
  type: "togglemenuitem",
@@ -31656,7 +31654,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
31656
31654
  value: d.value,
31657
31655
  innerHtml: d.text
31658
31656
  }
31659
- })), c = t.data.map((d) => Ot("initialValue", d)).getOr({});
31657
+ })), c = t.data.map((d) => Rt("initialValue", d)).getOr({});
31660
31658
  return {
31661
31659
  uid: t.uid,
31662
31660
  dom: {
@@ -32228,7 +32226,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
32228
32226
  styles: {}
32229
32227
  } : {
32230
32228
  classes: [s.closedClass],
32231
- styles: Ot(s.dimension.property, "0px")
32229
+ styles: Rt(s.dimension.property, "0px")
32232
32230
  });
32233
32231
  },
32234
32232
  events: (t, s) => Es([Hd(jg(), (a, c) => {
@@ -32718,7 +32716,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
32718
32716
  setValue: (N, H) => {
32719
32717
  rp(N.element, t.model.getDisplayText(H));
32720
32718
  },
32721
- ...t.initialData.map((N) => Ot("initialValue", N)).getOr({})
32719
+ ...t.initialData.map((N) => Rt("initialValue", N)).getOr({})
32722
32720
  }
32723
32721
  }),
32724
32722
  Tn.config({
@@ -33825,7 +33823,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
33825
33823
  }, _V = (t) => tt(eo(t, zB), CV), _D = (t) => tt(eo(t, SD), SV), UB = (t) => yV("h1,h2,h3,h4,h5,h6,a:not([href])", t), kV = (t) => BB(t.title).length > 0, TV = { find: (t) => {
33826
33824
  const s = UB(t);
33827
33825
  return eo(_V(s).concat(_D(s)), kV);
33828
- } }, hk = "tinymce-url-history", kD = 5, WB = (t) => Q(t) && /^https?/.test(t), pk = (t) => $t(t) && t.length <= kD && vn(t, WB), ZB = (t) => Pe(t) && Qo(t, (s) => !pk(s)).isNone(), yx = () => {
33826
+ } }, hk = "tinymce-url-history", kD = 5, WB = (t) => Q(t) && /^https?/.test(t), pk = (t) => Dt(t) && t.length <= kD && vn(t, WB), ZB = (t) => Pe(t) && Qo(t, (s) => !pk(s)).isNone(), yx = () => {
33829
33827
  const t = Yp.getItem(hk);
33830
33828
  if (t === null)
33831
33829
  return {};
@@ -37184,7 +37182,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
37184
37182
  const xe = C.element;
37185
37183
  g.mothership.broadcastOn([fd()], { target: xe }), bt(p, (pe) => {
37186
37184
  pe.broadcastOn([fd()], { target: xe });
37187
- }), Sn(Ds.whichView(C)) && (t.focus(), t.nodeChanged(), Ds.refreshToolbar(C));
37185
+ }), Cn(Ds.whichView(C)) && (t.focus(), t.nodeChanged(), Ds.refreshToolbar(C));
37188
37186
  }
37189
37187
  }), t.addQueryValueHandler("ToggleView", () => {
37190
37188
  var ce;
@@ -38537,7 +38535,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
38537
38535
  const w = p.update(a);
38538
38536
  if (Q(w) && ia(Vr(w)))
38539
38537
  return RO(d, w.split(" "));
38540
- if ($t(w) && w.length > 0) {
38538
+ if (Dt(w) && w.length > 0) {
38541
38539
  const C = tt(w, l8);
38542
38540
  return RO(d, C);
38543
38541
  } else
@@ -39945,7 +39943,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
39945
39943
  oa("onCancel", de),
39946
39944
  oa("onClose", de),
39947
39945
  oa("onMessage", de)
39948
- ]), wt = (t) => Ks("dialog", rt, t), Lt = (t) => Pe(t) ? [t].concat(_e(Gi(t), Lt)) : $t(t) ? _e(t, Lt) : [], Ze = (t) => Q(t.type) && Q(t.name), He = {
39946
+ ]), wt = (t) => Ks("dialog", rt, t), Lt = (t) => Pe(t) ? [t].concat(_e(Gi(t), Lt)) : Dt(t) ? _e(t, Lt) : [], Ze = (t) => Q(t.type) && Q(t.name), He = {
39949
39947
  checkbox: E8,
39950
39948
  colorinput: JZ,
39951
39949
  colorpicker: tj,
@@ -40837,7 +40835,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40837
40835
  Ft.setValue(g, p.getData());
40838
40836
  })
40839
40837
  ];
40840
- }, Ve = (t, s) => dk(t, t.type, s), Qt = (t, s, a) => qe(s, (c) => c.name === a).bind((c) => c.memento.getOpt(t)), Cn = (t, s) => {
40838
+ }, Ve = (t, s) => dk(t, t.type, s), Qt = (t, s, a) => qe(s, (c) => c.name === a).bind((c) => c.memento.getOpt(t)), Sn = (t, s) => {
40841
40839
  const a = s.map((w) => w.footerButtons).getOr([]), c = el(a, (w) => w.align === "start"), d = (w, C) => lf.sketch({
40842
40840
  dom: {
40843
40841
  tag: "div",
@@ -40871,7 +40869,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
40871
40869
  channel: `${WA}-${s}`,
40872
40870
  initialData: t,
40873
40871
  updateState: c,
40874
- renderComponents: Cn
40872
+ renderComponents: Sn
40875
40873
  })])
40876
40874
  };
40877
40875
  }, Fc = (t, s, a) => Hr(t, s, a), Td = (t, s, a) => Gr.parts.footer(Hr(t, s, a)), Ha = (t, s) => {
@@ -41460,7 +41458,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41460
41458
  }, se = (i) => {
41461
41459
  const m = typeof i;
41462
41460
  return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && me(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
41463
- }, Ee = (i) => (m) => se(m) === i, fe = (i) => (m) => typeof m === i, G = (i) => (m) => i === m, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), it = G(null), $t = fe("boolean"), Sn = G(void 0), jn = (i) => i == null, Vo = (i) => !jn(i), Us = fe("function"), Oo = fe("number"), Mt = () => {
41461
+ }, Ee = (i) => (m) => se(m) === i, fe = (i) => (m) => typeof m === i, G = (i) => (m) => i === m, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), it = G(null), Dt = fe("boolean"), Cn = G(void 0), jn = (i) => i == null, Vo = (i) => !jn(i), Us = fe("function"), Oo = fe("number"), Mt = () => {
41464
41462
  }, pr = (i, m) => (...h) => i(m.apply(null, h)), fn = (i, m) => (h) => i(m(h)), de = (i) => () => i, kt = (i) => i, ca = (i, m) => i === m;
41465
41463
  function Qn(i, ...m) {
41466
41464
  return (...h) => {
@@ -41694,7 +41692,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41694
41692
  const m = wr("ownerDocument.defaultView", i);
41695
41693
  return Q(i) && (Gi(m).prototype.isPrototypeOf(i) || /^HTML\w*Element$/.test(Qo(i).constructor.name));
41696
41694
  }, go = 8, Er = 9, Aa = 11, Bl = 1, Da = 3, es = (i) => i.dom.nodeName.toLowerCase(), tl = (i) => i.dom.nodeType, bl = (i) => (m) => tl(m) === i, Ko = (i) => tl(i) === go || es(i) === "#comment", gn = (i) => Ar(i) && vt(i.dom), Ar = bl(Bl), Nl = bl(Da), Hc = bl(Er), mi = bl(Aa), xr = (i) => (m) => Ar(m) && es(m) === i, dr = (i, m, h) => {
41697
- if (Ae(h) || $t(h) || Oo(h))
41695
+ if (Ae(h) || Dt(h) || Oo(h))
41698
41696
  i.setAttribute(m, h + "");
41699
41697
  else
41700
41698
  throw console.error("Invalid call to Attribute.set. Key ", m, ":: Value ", h, ":: Element ", i), new Error("Attribute value was not simple");
@@ -41919,10 +41917,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41919
41917
  if (m == null)
41920
41918
  throw new Error("Body is not available yet");
41921
41919
  return Te.fromDom(m);
41922
- }, re = (i, m, h) => ao(xc(i, h), m), Le = (i, m) => ao(Ao(i), m), Dt = (i, m) => {
41920
+ }, re = (i, m, h) => ao(xc(i, h), m), Le = (i, m) => ao(Ao(i), m), Ot = (i, m) => {
41923
41921
  let h = [];
41924
41922
  return et(Ao(i), (v) => {
41925
- m(v) && (h = h.concat([v])), h = h.concat(Dt(v, m));
41923
+ m(v) && (h = h.concat([v])), h = h.concat(Ot(v, m));
41926
41924
  }), h;
41927
41925
  }, Yn = (i, m, h) => re(i, (v) => qr(v, m), h), qt = (i, m) => Le(i, (h) => qr(h, m)), $s = (i, m) => Wu(m, i);
41928
41926
  var lt = (i, m, h, v, _) => i(h, v) ? ge.some(h) : Us(_) && _(h) ? ge.none() : m(h, v, _);
@@ -41963,7 +41961,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
41963
41961
  return m;
41964
41962
  }, Dd = (i, m) => i != null ? m(i) : ge.none(), Rh = (i, m) => i ? ge.some(m) : ge.none(), $h = (i, m, h) => m === "" || i.length >= m.length && i.substr(h, h + m.length) === m, Mo = (i, m, h = 0, v) => {
41965
41963
  const _ = i.indexOf(m, h);
41966
- return _ !== -1 ? Sn(v) ? !0 : _ + m.length <= v : !1;
41964
+ return _ !== -1 ? Cn(v) ? !0 : _ + m.length <= v : !1;
41967
41965
  }, Wc = (i, m) => $h(i, m, 0), Qi = (i, m) => $h(i, m, i.length - m.length), ac = ((i) => (m) => m.replace(i, ""))(/^\s+|\s+$/g), xm = (i) => i.length > 0, co = (i) => {
41968
41966
  const m = parseFloat(i);
41969
41967
  return isNaN(m) ? ge.none() : ge.some(m);
@@ -42317,15 +42315,15 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42317
42315
  }), h += _;
42318
42316
  }), m;
42319
42317
  }, Zo = (i) => {
42320
- const m = {}, h = [], _ = _e(i).map((Rt) => Rt.element).bind(sl).bind(rr).getOr({});
42318
+ const m = {}, h = [], _ = _e(i).map(($t) => $t.element).bind(sl).bind(rr).getOr({});
42321
42319
  let D = 0, L = 0, Z = 0;
42322
42320
  const {
42323
42321
  pass: ee,
42324
42322
  fail: ie
42325
- } = ur(i, (Rt) => Rt.section === "colgroup");
42326
- et(ie, (Rt) => {
42323
+ } = ur(i, ($t) => $t.section === "colgroup");
42324
+ et(ie, ($t) => {
42327
42325
  const Qe = [];
42328
- et(Rt.cells, (It) => {
42326
+ et($t.cells, (It) => {
42329
42327
  let Ye = 0;
42330
42328
  for (; m[Gc(Z, Ye)] !== void 0; )
42331
42329
  Ye++;
@@ -42336,12 +42334,12 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42336
42334
  m[Pc] = kn, L = Math.max(L, kr + 1);
42337
42335
  }
42338
42336
  Qe.push(kn);
42339
- }), D++, h.push(ue(Rt.element, Qe, Rt.section)), Z++;
42337
+ }), D++, h.push(ue($t.element, Qe, $t.section)), Z++;
42340
42338
  });
42341
- const { columns: De, colgroups: at } = vn(ee).map((Rt) => {
42342
- const Qe = Vh(Rt);
42339
+ const { columns: De, colgroups: at } = vn(ee).map(($t) => {
42340
+ const Qe = Vh($t);
42343
42341
  return {
42344
- colgroups: [ss(Rt.element, ps(Qe))],
42342
+ colgroups: [ss($t.element, ps(Qe))],
42345
42343
  columns: Qe
42346
42344
  };
42347
42345
  }).getOrThunk(() => ({
@@ -42606,8 +42604,8 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42606
42604
  return Lo(i.access, (De) => {
42607
42605
  if (ee.push(De), m(De)) {
42608
42606
  ie.push(De);
42609
- const at = De.row, Bt = at + De.rowspan - 1, Rt = De.column, Qe = Rt + De.colspan - 1;
42610
- at < _ ? _ = at : Bt > L && (L = Bt), Rt < D ? D = Rt : Qe > Z && (Z = Qe);
42607
+ const at = De.row, Bt = at + De.rowspan - 1, $t = De.column, Qe = $t + De.colspan - 1;
42608
+ at < _ ? _ = at : Bt > L && (L = Bt), $t < D ? D = $t : Qe > Z && (Z = Qe);
42611
42609
  }
42612
42610
  }), Au(_, D, L, Z, ee, ie);
42613
42611
  }, x = (i, m, h) => {
@@ -42638,7 +42636,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42638
42636
  et(ie, or), T(_, L, Z, h);
42639
42637
  const De = Gn.fromTable(i), at = K(i, De, D, Z);
42640
42638
  return V(v, Z, L, at), v;
42641
- }, je = " ", Ot = ((i, m) => {
42639
+ }, je = " ", Rt = ((i, m) => {
42642
42640
  const h = (D) => {
42643
42641
  if (!i(D))
42644
42642
  throw new Error("Can only get " + m + " value of a " + m + " node");
@@ -42653,7 +42651,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42653
42651
  D.dom.nodeValue = L;
42654
42652
  }
42655
42653
  };
42656
- })(Nl, "text"), on = (i) => Ot.get(i), Hn = (i) => Ot.getOption(i), ar = (i, m) => Ot.set(i, m), Po = (i) => es(i) === "img" ? 1 : Hn(i).fold(() => Ao(i).length, (m) => m.length), Bs = (i) => Hn(i).filter((m) => m.trim().length !== 0 || m.indexOf(je) > -1).isSome(), mc = (i) => gn(i) && Vr(i, "contenteditable") === "false", Gl = [
42654
+ })(Nl, "text"), on = (i) => Rt.get(i), Hn = (i) => Rt.getOption(i), ar = (i, m) => Rt.set(i, m), Po = (i) => es(i) === "img" ? 1 : Hn(i).fold(() => Ao(i).length, (m) => m.length), Bs = (i) => Hn(i).filter((m) => m.trim().length !== 0 || m.indexOf(je) > -1).isSome(), mc = (i) => gn(i) && Vr(i, "contenteditable") === "false", Gl = [
42657
42655
  "img",
42658
42656
  "br"
42659
42657
  ], Xc = (i) => Bs(i) || Gt(Gl, es(i)) || mc(i), Ld = (i) => Cr(i, Xc), cu = (i) => Ug(i, Xc), Ug = (i, m) => {
@@ -42923,7 +42921,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
42923
42921
  }),
42924
42922
  down: de({
42925
42923
  selector: $s,
42926
- predicate: Dt
42924
+ predicate: Ot
42927
42925
  }),
42928
42926
  styles: de({
42929
42927
  get: ga,
@@ -43139,27 +43137,27 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43139
43137
  ], ti);
43140
43138
  }, m = (Z, ee, ie, De) => {
43141
43139
  const at = (100 + ie) / 100, Bt = Math.max(De, (Z[ee] + ie) / at);
43142
- return ln(Z, (Rt, Qe) => (Qe === ee ? Bt : Rt / at) - Rt);
43140
+ return ln(Z, ($t, Qe) => (Qe === ee ? Bt : $t / at) - $t);
43143
43141
  }, h = (Z, ee, ie, De, at, Bt) => Bt ? m(Z, ee, De, at) : i(Z, ee, ie, De, at);
43144
43142
  return {
43145
43143
  resizeTable: (Z, ee) => Z(ee),
43146
43144
  clampTableDelta: Tb,
43147
43145
  calcLeftEdgeDeltas: h,
43148
- calcMiddleDeltas: (Z, ee, ie, De, at, Bt, Rt) => h(Z, ie, De, at, Bt, Rt),
43146
+ calcMiddleDeltas: (Z, ee, ie, De, at, Bt, $t) => h(Z, ie, De, at, Bt, $t),
43149
43147
  calcRightEdgeDeltas: (Z, ee, ie, De, at, Bt) => {
43150
43148
  if (Bt)
43151
43149
  return m(Z, ie, De, at);
43152
43150
  {
43153
- const Rt = Tb(Z, ie, De, at);
43154
- return ti(Z.slice(0, ie)).concat([Rt]);
43151
+ const $t = Tb(Z, ie, De, at);
43152
+ return ti(Z.slice(0, ie)).concat([$t]);
43155
43153
  }
43156
43154
  },
43157
43155
  calcRedestributedWidths: (Z, ee, ie, De) => {
43158
43156
  if (De) {
43159
- const Bt = (ee + ie) / ee, Rt = ln(Z, (Qe) => Qe / Bt);
43157
+ const Bt = (ee + ie) / ee, $t = ln(Z, (Qe) => Qe / Bt);
43160
43158
  return {
43161
43159
  delta: Bt * 100 - 100,
43162
- newSizes: Rt
43160
+ newSizes: $t
43163
43161
  };
43164
43162
  } else
43165
43163
  return {
@@ -43185,7 +43183,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43185
43183
  if (ee >= 0)
43186
43184
  return ee;
43187
43185
  {
43188
- const at = tt(L, (Bt, Rt) => Bt + Rt - ie, 0);
43186
+ const at = tt(L, (Bt, $t) => Bt + $t - ie, 0);
43189
43187
  return Math.max(-at, ee);
43190
43188
  }
43191
43189
  } else
@@ -43268,33 +43266,33 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43268
43266
  });
43269
43267
  return ma(h), h;
43270
43268
  }, $b = (i, m) => {
43271
- const h = [], v = [], _ = (Rt) => ln(Rt, (Qe) => {
43269
+ const h = [], v = [], _ = ($t) => ln($t, (Qe) => {
43272
43270
  Qe.isNew && h.push(Qe.element);
43273
43271
  const It = Qe.element;
43274
43272
  return ma(It), et(Qe.cells, (Ye) => {
43275
43273
  Ye.isNew && v.push(Ye.element), Ud(Ye.element, "colspan", Ye.colspan, 1), Ud(Ye.element, "rowspan", Ye.rowspan, 1), ns(It, Ye.element);
43276
43274
  }), It;
43277
- }), D = (Rt) => os(Rt, (Qe) => ln(Qe.cells, (It) => (Ud(It.element, "span", It.colspan, 1), It.element))), L = (Rt, Qe) => {
43278
- const It = np(i, Qe), Jt = (Qe === "colgroup" ? D : _)(Rt);
43275
+ }), D = ($t) => os($t, (Qe) => ln(Qe.cells, (It) => (Ud(It.element, "span", It.colspan, 1), It.element))), L = ($t, Qe) => {
43276
+ const It = np(i, Qe), Jt = (Qe === "colgroup" ? D : _)($t);
43279
43277
  Or(It, Jt);
43280
- }, Z = (Rt) => {
43281
- ho(i, Rt).each(or);
43282
- }, ee = (Rt, Qe) => {
43283
- Rt.length > 0 ? L(Rt, Qe) : Z(Qe);
43278
+ }, Z = ($t) => {
43279
+ ho(i, $t).each(or);
43280
+ }, ee = ($t, Qe) => {
43281
+ $t.length > 0 ? L($t, Qe) : Z(Qe);
43284
43282
  }, ie = [], De = [], at = [], Bt = [];
43285
- return et(m, (Rt) => {
43286
- switch (Rt.section) {
43283
+ return et(m, ($t) => {
43284
+ switch ($t.section) {
43287
43285
  case "thead":
43288
- ie.push(Rt);
43286
+ ie.push($t);
43289
43287
  break;
43290
43288
  case "tbody":
43291
- De.push(Rt);
43289
+ De.push($t);
43292
43290
  break;
43293
43291
  case "tfoot":
43294
- at.push(Rt);
43292
+ at.push($t);
43295
43293
  break;
43296
43294
  case "colgroup":
43297
- Bt.push(Rt);
43295
+ Bt.push($t);
43298
43296
  break;
43299
43297
  }
43300
43298
  }), ee(Bt, "colgroup"), ee(ie, "thead"), ee(De, "tbody"), ee(at, "tfoot"), {
@@ -43360,7 +43358,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43360
43358
  }, ml = (i, m, h, v, _) => (D, L, Z, ee) => {
43361
43359
  const ie = Gn.fromTable(D), De = ge.from(ee == null ? void 0 : ee.section).getOrThunk(Pf.fallback);
43362
43360
  return m(ie, L).map((Bt) => {
43363
- const Rt = sa(ie, Z), Qe = i(Rt, Bt, ts, _(Z), De), It = Wr(Qe.grid), Ye = lr(Qe.grid);
43361
+ const $t = sa(ie, Z), Qe = i($t, Bt, ts, _(Z), De), It = Wr(Qe.grid), Ye = lr(Qe.grid);
43364
43362
  return {
43365
43363
  info: Bt,
43366
43364
  grid: Ye,
@@ -43368,15 +43366,15 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43368
43366
  lockedColumns: It
43369
43367
  };
43370
43368
  }).bind((Bt) => {
43371
- const Rt = $b(D, Bt.grid), Qe = ge.from(ee == null ? void 0 : ee.sizing).getOrThunk(() => jl.getTableSize(D)), It = ge.from(ee == null ? void 0 : ee.resize).getOrThunk(zy);
43369
+ const $t = $b(D, Bt.grid), Qe = ge.from(ee == null ? void 0 : ee.sizing).getOrThunk(() => jl.getTableSize(D)), It = ge.from(ee == null ? void 0 : ee.resize).getOrThunk(zy);
43372
43370
  return h(D, Bt.grid, Bt.info, {
43373
43371
  sizing: Qe,
43374
43372
  resize: It,
43375
43373
  section: De
43376
43374
  }), v(D), Is(D, Ju), Bt.lockedColumns.length > 0 && Ws(D, Ju, Bt.lockedColumns.join(",")), ge.some({
43377
43375
  cursor: Bt.cursor,
43378
- newRows: Rt.newRows,
43379
- newCells: Rt.newCells
43376
+ newRows: $t.newRows,
43377
+ newCells: $t.newCells
43380
43378
  });
43381
43379
  });
43382
43380
  }, P1 = (i, m) => Cm(m.element).bind((h) => ki(i, h).map((v) => ({
@@ -43519,16 +43517,16 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43519
43517
  return i.length > 1 && zl(L) > 1 && (h > 0 && D(mr(L, h - 1)) || h < L.cells.length - 1 && D(mr(L, h + 1)) || m > 0 && D(mr(i[m - 1], h)) || m < i.length - 1 && D(mr(i[m + 1], h)));
43520
43518
  }, Bb = (i, m, h, v, _, D) => {
43521
43519
  const L = i.row, Z = i.column, ee = h.length, ie = zl(h[0]), De = L + ee, at = Z + ie + D.length, Bt = qe(D, We);
43522
- for (let Rt = L; Rt < De; Rt++) {
43520
+ for (let $t = L; $t < De; $t++) {
43523
43521
  let Qe = 0;
43524
43522
  for (let It = Z; It < at; It++) {
43525
43523
  if (Bt[It]) {
43526
43524
  Qe++;
43527
43525
  continue;
43528
43526
  }
43529
- iC(m, Rt, It, _) && ql(m, mr(m[Rt], It), _, v.cell);
43530
- const Ye = It - Z - Qe, Jt = pa(h[Rt - L], Ye), kn = Jt.element, Un = v.replace(kn);
43531
- Pd(m[Rt], It, Ne(Un, !0, Jt.isLocked));
43527
+ iC(m, $t, It, _) && ql(m, mr(m[$t], It), _, v.cell);
43528
+ const Ye = It - Z - Qe, Jt = pa(h[$t - L], Ye), kn = Jt.element, Un = v.replace(kn);
43529
+ Pd(m[$t], It, Ne(Un, !0, Jt.isLocked));
43532
43530
  }
43533
43531
  }
43534
43532
  return m;
@@ -43544,7 +43542,7 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43544
43542
  const at = {
43545
43543
  ...De,
43546
43544
  colDelta: De.colDelta - ee.length
43547
- }, Bt = ip(m, at, v), Rt = Wr(Bt), Qe = Ti(L, Z, Rt);
43545
+ }, Bt = ip(m, at, v), $t = Wr(Bt), Qe = Ti(L, Z, $t);
43548
43546
  return Bb(L, Bt, Z, v, _, Qe);
43549
43547
  });
43550
43548
  }, Nb = (i, m, h, v, _) => {
@@ -43559,10 +43557,10 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43559
43557
  }, ee = ip(m, Z, v), {
43560
43558
  cols: ie,
43561
43559
  rows: De
43562
- } = $r(ee), at = Wr(ee), Bt = lp(h, m), Rt = {
43560
+ } = $r(ee), at = Wr(ee), Bt = lp(h, m), $t = {
43563
43561
  ...Bt,
43564
43562
  colDelta: Bt.colDelta + at.length
43565
- }, Qe = cC(h, v, at), It = ip(Qe, Rt, v);
43563
+ }, Qe = cC(h, v, at), It = ip(Qe, $t, v);
43566
43564
  return [
43567
43565
  ...ie,
43568
43566
  ...De.slice(0, i),
@@ -43604,8 +43602,8 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43604
43602
  return ln(i, (ee, ie) => Hh(ee, (De, at) => {
43605
43603
  if (Z(De)) {
43606
43604
  const Bt = L(De, ie, at) ? _(De, h, v) : De;
43607
- return D(Bt, ie, at).each((Rt) => {
43608
- qi(Bt.element, { scope: ge.from(Rt) });
43605
+ return D(Bt, ie, at).each(($t) => {
43606
+ qi(Bt.element, { scope: ge.from($t) });
43609
43607
  }), Bt;
43610
43608
  } else
43611
43609
  return De;
@@ -43621,11 +43619,11 @@ The conflicting element is` + (lo(N.element) ? " " : " not ") + "already in the
43621
43619
  et(m, (Ye) => {
43622
43620
  Bt[Ye] = L.transformRow(ee[Ye], h);
43623
43621
  });
43624
- const Rt = [
43622
+ const $t = [
43625
43623
  ...Z,
43626
43624
  ...Bt
43627
43625
  ], Qe = eh(ie, at), It = mC(v, at);
43628
- return oh(Rt, De, _, D, L.transformCell, It, Qe);
43626
+ return oh($t, De, _, D, L.transformCell, It, Qe);
43629
43627
  }, Lb = (i, m, h, v) => {
43630
43628
  const _ = $r(i).rows, D = ln(m, (L) => pa(_[L.row], L.column));
43631
43629
  return oh(i, D, h, v, Lf, ge.none, We);
@@ -43699,7 +43697,7 @@ Required: ` + m.join(", "));
43699
43697
  ]
43700
43698
  }
43701
43699
  ]) }, hC = (i, m) => i.length === 0 ? dp.none() : i.length === 1 ? dp.only(0) : m === 0 ? dp.left(0, 1) : m === i.length - 1 ? dp.right(m - 1, m) : m > 0 && m < i.length - 1 ? dp.middle(m - 1, m, m + 1) : dp.none(), WT = (i, m, h, v, _) => {
43702
- const D = i.slice(0), L = hC(i, m), Z = de(ln(D, de(0))), ee = (Bt) => v.singleColumnWidth(D[Bt], h), ie = (Bt, Rt) => _.calcLeftEdgeDeltas(D, Bt, Rt, h, v.minCellWidth(), v.isRelative), De = (Bt, Rt, Qe) => _.calcMiddleDeltas(D, Bt, Rt, Qe, h, v.minCellWidth(), v.isRelative), at = (Bt, Rt) => _.calcRightEdgeDeltas(D, Bt, Rt, h, v.minCellWidth(), v.isRelative);
43700
+ const D = i.slice(0), L = hC(i, m), Z = de(ln(D, de(0))), ee = (Bt) => v.singleColumnWidth(D[Bt], h), ie = (Bt, $t) => _.calcLeftEdgeDeltas(D, Bt, $t, h, v.minCellWidth(), v.isRelative), De = (Bt, $t, Qe) => _.calcMiddleDeltas(D, Bt, $t, Qe, h, v.minCellWidth(), v.isRelative), at = (Bt, $t) => _.calcRightEdgeDeltas(D, Bt, $t, h, v.minCellWidth(), v.isRelative);
43703
43701
  return L.fold(Z, ee, ie, De, at);
43704
43702
  }, N1 = (i, m, h) => {
43705
43703
  let v = 0;
@@ -43742,7 +43740,7 @@ Required: ` + m.join(", "));
43742
43740
  h.setElementWidth(_.element, _.width);
43743
43741
  });
43744
43742
  }, I1 = (i, m, h, v, _) => {
43745
- const D = Gn.fromTable(i), L = _.getCellDelta(m), Z = _.getWidths(D, _), ee = h === D.grid.columns - 1, ie = v.clampTableDelta(Z, h, L, _.minCellWidth(), ee), De = WT(Z, h, ie, _, v), at = ln(De, (Bt, Rt) => Bt + Z[Rt]);
43743
+ const D = Gn.fromTable(i), L = _.getCellDelta(m), Z = _.getWidths(D, _), ee = h === D.grid.columns - 1, ie = v.clampTableDelta(Z, h, L, _.minCellWidth(), ee), De = WT(Z, h, ie, _, v), at = ln(De, (Bt, $t) => Bt + Z[$t]);
43746
43744
  ls(D, at, _), v.resizeTable(_.adjustTableWidth, ie, ee);
43747
43745
  }, Yy = (i, m, h, v) => {
43748
43746
  const _ = Gn.fromTable(i), D = Re(_, i, v), L = ln(D, (De, at) => h === at ? Math.max(m + De, kc()) : De), Z = xo(_, L), ee = ri(_, L);
@@ -44078,11 +44076,11 @@ Required: ` + m.join(", "));
44078
44076
  effect: em
44079
44077
  }));
44080
44078
  }) : ge.none();
44081
- }, at = De(xC, _, Mt, to), Bt = De(Ai, D, Mt, to), Rt = De(U1, We, Mt, to), Qe = De(qd, We, Mt, to), It = De(Mu, We, Z, to), Ye = De(Vt, We, Z, to), Jt = De(JT, We, Mt, to), kn = De(Yl, We, Mt, to), Un = De(QT, We, Mt, to), Gs = De(eE, We, Mt, to), ka = De(f2, We, Mt, to), kr = De(tE, We, Mt, to), Pc = De(W1, We, Mt, p2), fh = De(XT, We, Mt, to), gh = De(m2, We, Mt, to), uw = De(CC, We, Mt, to), Tv = De(i2, We, Mt, to), ds = De(SC, We, Mt, to), Ql = De(u2, We, Mt, to), hl = De(d2, We, Mt, to);
44079
+ }, at = De(xC, _, Mt, to), Bt = De(Ai, D, Mt, to), $t = De(U1, We, Mt, to), Qe = De(qd, We, Mt, to), It = De(Mu, We, Z, to), Ye = De(Vt, We, Z, to), Jt = De(JT, We, Mt, to), kn = De(Yl, We, Mt, to), Un = De(QT, We, Mt, to), Gs = De(eE, We, Mt, to), ka = De(f2, We, Mt, to), kr = De(tE, We, Mt, to), Pc = De(W1, We, Mt, p2), fh = De(XT, We, Mt, to), gh = De(m2, We, Mt, to), uw = De(CC, We, Mt, to), Tv = De(i2, We, Mt, to), ds = De(SC, We, Mt, to), Ql = De(u2, We, Mt, to), hl = De(d2, We, Mt, to);
44082
44080
  return {
44083
44081
  deleteRow: at,
44084
44082
  deleteColumn: Bt,
44085
- insertRowsBefore: Rt,
44083
+ insertRowsBefore: $t,
44086
44084
  insertRowsAfter: Qe,
44087
44085
  insertColumnsBefore: It,
44088
44086
  insertColumnsAfter: Ye,
@@ -44138,7 +44136,7 @@ Required: ` + m.join(", "));
44138
44136
  const v = Gn.fromTable(i);
44139
44137
  return Bf(v, m).bind((D) => {
44140
44138
  const L = op(v, h, !1), ee = $r(L).rows.slice(D[0].row, D[D.length - 1].row + D[D.length - 1].rowspan), ie = os(ee, (at) => {
44141
- const Bt = ao(at.cells, (Rt) => !Rt.isLocked);
44139
+ const Bt = ao(at.cells, ($t) => !$t.isLocked);
44142
44140
  return Bt.length > 0 ? [{
44143
44141
  ...at,
44144
44142
  cells: Bt
@@ -44259,10 +44257,10 @@ Required: ` + m.join(", "));
44259
44257
  Pa(L, D.styles), vl(L, D.attributes), D.colGroups && ns(L, fE(m));
44260
44258
  const ee = Math.min(i, h);
44261
44259
  if (Z && h > 0) {
44262
- const Rt = Te.fromTag("thead");
44263
- ns(L, Rt);
44260
+ const $t = Te.fromTag("thead");
44261
+ ns(L, $t);
44264
44262
  const It = x2(h, m, _ === "sectionCells" ? ee : 0, v);
44265
- Or(Rt, It);
44263
+ Or($t, It);
44266
44264
  }
44267
44265
  const ie = Te.fromTag("tbody");
44268
44266
  ns(L, ie);
@@ -44358,7 +44356,7 @@ Required: ` + m.join(", "));
44358
44356
  }), Bt = () => L((Ye, Jt) => {
44359
44357
  const kn = qh(iu(i), Ye, Jt), Un = ya(Mt, Te.fromDom(i.getDoc()), ge.none());
44360
44358
  return aE(Ye, kn, Un);
44361
- }), Rt = () => L((Ye, Jt) => {
44359
+ }), $t = () => L((Ye, Jt) => {
44362
44360
  const kn = qh(iu(i), Ye, Jt);
44363
44361
  return rE(Ye, kn);
44364
44362
  }), Qe = (Ye, Jt) => Jt().each((kn) => {
@@ -44379,13 +44377,13 @@ Required: ` + m.join(", "));
44379
44377
  mceTableInsertColAfter: () => at(m.insertColumnsAfter),
44380
44378
  mceTableDeleteCol: () => at(m.deleteColumn),
44381
44379
  mceTableDeleteRow: () => at(m.deleteRow),
44382
- mceTableCutCol: () => Rt().each((Ye) => {
44380
+ mceTableCutCol: () => $t().each((Ye) => {
44383
44381
  T2(Ye), at(m.deleteColumn);
44384
44382
  }),
44385
44383
  mceTableCutRow: () => Bt().each((Ye) => {
44386
44384
  Jb(Ye), at(m.deleteRow);
44387
44385
  }),
44388
- mceTableCopyCol: () => Rt().each((Ye) => T2(Ye)),
44386
+ mceTableCopyCol: () => $t().each((Ye) => T2(Ye)),
44389
44387
  mceTableCopyRow: () => Bt().each((Ye) => Jb(Ye)),
44390
44388
  mceTablePasteColBefore: () => Qe(m.pasteColsBefore, FC),
44391
44389
  mceTablePasteColAfter: () => Qe(m.pasteColsAfter, FC),
@@ -44713,12 +44711,12 @@ Required: ` + m.join(", "));
44713
44711
  const _ = $p(), D = _.clear, L = (De) => {
44714
44712
  _.on((at) => {
44715
44713
  v.clearBeforeUpdate(m), cv(De.target, h).each((Bt) => {
44716
- Ou(at, Bt, h).each((Rt) => {
44717
- const Qe = Rt.boxes.getOr([]);
44714
+ Ou(at, Bt, h).each(($t) => {
44715
+ const Qe = $t.boxes.getOr([]);
44718
44716
  if (Qe.length === 1) {
44719
44717
  const It = Qe[0], Ye = k1(It) === "false", Jt = pi(hb(De.target), It, ts);
44720
44718
  Ye && Jt && (v.selectRange(m, Qe, It, It), i.selectContents(It));
44721
- } else Qe.length > 1 && (v.selectRange(m, Qe, Rt.start, Rt.finish), i.selectContents(Bt));
44719
+ } else Qe.length > 1 && (v.selectRange(m, Qe, $t.start, $t.finish), i.selectContents(Bt));
44722
44720
  });
44723
44721
  });
44724
44722
  });
@@ -44931,25 +44929,25 @@ Required: ` + m.join(", "));
44931
44929
  }, bv = (i) => Ua(i, gn).exists(Of), d0 = (i, m) => bv(i) || bv(m), vv = (i, m, h, v) => {
44932
44930
  const _ = Np(i), D = () => (v.clear(m), ge.none());
44933
44931
  return {
44934
- keydown: (ee, ie, De, at, Bt, Rt) => {
44932
+ keydown: (ee, ie, De, at, Bt, $t) => {
44935
44933
  const Qe = ee.raw, It = Qe.which, Ye = Qe.shiftKey === !0;
44936
44934
  return Lm(m, v.selectedSelector).fold(() => (uh(It) && !Ye && v.clearBeforeUpdate(m), uh(It) && Ye && !d0(ie, at) ? ge.none : dv(It) && Ye ? Qn(nS, _, m, h, iv, at, ie, v.selectRange) : uv(It) && Ye ? Qn(nS, _, m, h, Mp, at, ie, v.selectRange) : dv(It) ? Qn(fd, _, h, iv, at, ie, z2) : uv(It) ? Qn(fd, _, h, Mp, at, ie, ih) : ge.none), (kn) => {
44937
44935
  const Un = (Gs) => () => jo(Gs, (kr) => RE(kr.rows, kr.cols, m, kn, v)).fold(() => Kg(m, v.firstSelectedSelector, v.lastSelectedSelector).map((kr) => {
44938
- const Pc = dv(It) || Rt.isForward(It) ? qa.after : qa.before;
44936
+ const Pc = dv(It) || $t.isForward(It) ? qa.after : qa.before;
44939
44937
  return _.setRelativeSelection(qa.on(kr.first, 0), Pc(kr.table)), v.clear(m), Cp.create(ge.none(), !0);
44940
44938
  }), (kr) => ge.some(Cp.create(ge.none(), !0)));
44941
- return uh(It) && Ye && !d0(ie, at) ? ge.none : dv(It) && Ye ? Un([gl(1, 0)]) : uv(It) && Ye ? Un([gl(-1, 0)]) : Rt.isBackward(It) && Ye ? Un([
44939
+ return uh(It) && Ye && !d0(ie, at) ? ge.none : dv(It) && Ye ? Un([gl(1, 0)]) : uv(It) && Ye ? Un([gl(-1, 0)]) : $t.isBackward(It) && Ye ? Un([
44942
44940
  gl(0, -1),
44943
44941
  gl(-1, 0)
44944
- ]) : Rt.isForward(It) && Ye ? Un([
44942
+ ]) : $t.isForward(It) && Ye ? Un([
44945
44943
  gl(0, 1),
44946
44944
  gl(1, 0)
44947
44945
  ]) : uh(It) && !Ye ? D : ge.none;
44948
44946
  })();
44949
44947
  },
44950
44948
  keyup: (ee, ie, De, at, Bt) => Lm(m, v.selectedSelector).fold(() => {
44951
- const Rt = ee.raw, Qe = Rt.which;
44952
- return Rt.shiftKey === !0 && uh(Qe) && d0(ie, at) ? tv(m, h, ie, De, at, Bt, v.selectRange) : ge.none();
44949
+ const $t = ee.raw, Qe = $t.which;
44950
+ return $t.shiftKey === !0 && uh(Qe) && d0(ie, at) ? tv(m, h, ie, De, at, Bt, v.selectRange) : ge.none();
44953
44951
  }, ge.none)
44954
44952
  };
44955
44953
  }, m0 = (i, m, h, v) => {
@@ -45083,7 +45081,7 @@ Required: ` + m.join(", "));
45083
45081
  }, GE = We, Lp = (i, m, h) => Q2(i, m, GE, h), Fp = X2, tw = (i) => !Mc(Te.fromDom(i.target), "ephox-snooker-resizer-bar"), nw = (i, m) => {
45084
45082
  const h = Y2(() => Te.fromDom(i.getBody()), () => $1(_i(i), Fd(i)), Yg.selectedSelector), v = (ee, ie, De) => {
45085
45083
  sl(ie).each((Bt) => {
45086
- const Rt = Bm(i), Qe = ya(Mt, Te.fromDom(i.getDoc()), Rt), It = iu(i), Ye = Jm(Bt, { selection: It }, Qe);
45084
+ const $t = Bm(i), Qe = ya(Mt, Te.fromDom(i.getDoc()), $t), It = iu(i), Ye = Jm(Bt, { selection: It }, Qe);
45087
45085
  nE(i, ee, ie, De, Ye);
45088
45086
  });
45089
45087
  }, _ = () => oE(i), D = Xm.byAttr(Yg, v, _);
@@ -45094,7 +45092,7 @@ Required: ` + m.join(", "));
45094
45092
  Ql,
45095
45093
  hl
45096
45094
  ]).fold(() => D.clear(De), Mt);
45097
- }, Rt = Yr(ie, De, at, D), Qe = vv(ie, De, at, D), It = m0(ie, De, at, D), Ye = (ds) => ds.raw.shiftKey === !0;
45095
+ }, $t = Yr(ie, De, at, D), Qe = vv(ie, De, at, D), It = m0(ie, De, at, D), Ye = (ds) => ds.raw.shiftKey === !0;
45098
45096
  i.on("TableSelectorChange", (ds) => It(ds.start, ds.finish));
45099
45097
  const Jt = (ds, Ql) => {
45100
45098
  Ye(ds) && (Ql.kill && ds.kill(), Ql.selection.each((hl) => {
@@ -45117,13 +45115,13 @@ Required: ` + m.join(", "));
45117
45115
  Jt(Ql, pc);
45118
45116
  }), m.show();
45119
45117
  }, Gs = (ds) => ds.button === 0, ka = (ds) => ds.buttons === void 0 ? !0 : (ds.buttons & 1) !== 0, kr = (ds) => {
45120
- Rt.clearstate();
45118
+ $t.clearstate();
45121
45119
  }, Pc = (ds) => {
45122
- Gs(ds) && tw(ds) && Rt.mousedown(Fp(ds));
45120
+ Gs(ds) && tw(ds) && $t.mousedown(Fp(ds));
45123
45121
  }, fh = (ds) => {
45124
- ka(ds) && tw(ds) && Rt.mouseover(Fp(ds));
45122
+ ka(ds) && tw(ds) && $t.mouseover(Fp(ds));
45125
45123
  }, gh = (ds) => {
45126
- Gs(ds) && tw(ds) && Rt.mouseup(Fp(ds));
45124
+ Gs(ds) && tw(ds) && $t.mouseup(Fp(ds));
45127
45125
  }, Tv = (() => {
45128
45126
  const ds = a0(Te.fromDom(De)), Ql = a0(0);
45129
45127
  return { touchEnd: (Mi) => {
@@ -45293,13 +45291,13 @@ Required: ` + m.join(", "));
45293
45291
  v = !0;
45294
45292
  }, at = () => {
45295
45293
  v = !1;
45296
- }, Bt = () => v, Rt = (Ye) => (...Jt) => {
45294
+ }, Bt = () => v, $t = (Ye) => (...Jt) => {
45297
45295
  v && Ye.apply(null, Jt);
45298
45296
  }, Qe = m.sink(XE({
45299
45297
  forceDrop: L,
45300
- drop: Rt(L),
45301
- move: Rt(ie),
45302
- delayDrop: Rt(Z.throttle)
45298
+ drop: $t(L),
45299
+ move: $t(ie),
45300
+ delayDrop: $t(Z.throttle)
45303
45301
  }), h), It = () => {
45304
45302
  Qe.destroy();
45305
45303
  };
@@ -45448,9 +45446,9 @@ Required: ` + m.join(", "));
45448
45446
  return mu(L, rw), L;
45449
45447
  });
45450
45448
  }, l4 = (i, m, h, v, _) => {
45451
- const D = Kt(h), L = m.isResizable, Z = v.length > 0 ? Zt.positions(v, h) : [], ee = Z.length > 0 ? s4(i, L) : [], ie = ao(Z, (Rt, Qe) => nt(ee, (It) => Qe === It));
45449
+ const D = Kt(h), L = m.isResizable, Z = v.length > 0 ? Zt.positions(v, h) : [], ee = Z.length > 0 ? s4(i, L) : [], ie = ao(Z, ($t, Qe) => nt(ee, (It) => Qe === It));
45452
45450
  a4(m, ie, D, Ci(h));
45453
- const De = _.length > 0 ? Mr.positions(_, h) : [], at = De.length > 0 ? r4(i, L) : [], Bt = ao(De, (Rt, Qe) => nt(at, (It) => Qe === It));
45451
+ const De = _.length > 0 ? Mr.positions(_, h) : [], at = De.length > 0 ? r4(i, L) : [], Bt = ao(De, ($t, Qe) => nt(at, (It) => Qe === It));
45454
45452
  SS(m, Bt, D, S(h));
45455
45453
  }, Cv = (i, m) => {
45456
45454
  if (Hp(i), i.isResizable(m)) {
@@ -45490,16 +45488,16 @@ Required: ` + m.join(", "));
45490
45488
  v.each((It) => {
45491
45489
  _(Qe, "data-row").each((Ye) => {
45492
45490
  const Jt = D(Qe, "top");
45493
- Is(Qe, "data-initial-top"), Rt.trigger.adjustHeight(It, Jt, parseInt(Ye, 10));
45491
+ Is(Qe, "data-initial-top"), $t.trigger.adjustHeight(It, Jt, parseInt(Ye, 10));
45494
45492
  }), _(Qe, "data-column").each((Ye) => {
45495
45493
  const Jt = D(Qe, "left");
45496
- Is(Qe, "data-initial-left"), Rt.trigger.adjustWidth(It, Jt, parseInt(Ye, 10));
45494
+ Is(Qe, "data-initial-left"), $t.trigger.adjustWidth(It, Jt, parseInt(Ye, 10));
45497
45495
  }), Cv(i, It);
45498
45496
  });
45499
45497
  });
45500
45498
  });
45501
45499
  const L = (Qe, It) => {
45502
- Rt.trigger.startAdjust(), m.assign(Qe), Ws(Qe, "data-initial-" + It, Ur(Qe, It)), mu(Qe, Qd), js(Qe, "opacity", "0.2"), h.go(i.parent());
45500
+ $t.trigger.startAdjust(), m.assign(Qe), Ws(Qe, "data-initial-" + It, Ur(Qe, It)), mu(Qe, Qd), js(Qe, "opacity", "0.2"), h.go(i.parent());
45503
45501
  }, Z = Lp(i.parent(), "mousedown", (Qe) => {
45504
45502
  c4(Qe.target) && L(Qe.target, "top"), ef(Qe.target) && L(Qe.target, "left");
45505
45503
  }), ee = (Qe) => ts(Qe, i.view()), ie = (Qe) => Ms(Qe, "table", ee).filter(Of), De = Lp(i.view(), "mouseover", (Qe) => {
@@ -45512,7 +45510,7 @@ Required: ` + m.join(", "));
45512
45510
  Z.unbind(), De.unbind(), h.destroy(), Hp(i);
45513
45511
  }, Bt = (Qe) => {
45514
45512
  Cv(i, Qe);
45515
- }, Rt = Jf({
45513
+ }, $t = Jf({
45516
45514
  adjustHeight: Iu([
45517
45515
  "table",
45518
45516
  "delta",
@@ -45532,7 +45530,7 @@ Required: ` + m.join(", "));
45532
45530
  off: h.off,
45533
45531
  hideBars: Qn(Sv, i),
45534
45532
  showBars: Qn(Bo, i),
45535
- events: Rt.registry
45533
+ events: $t.registry
45536
45534
  };
45537
45535
  }, kv = { create: (i, m, h) => {
45538
45536
  const v = Zt, _ = Mr, D = _v(i), L = Jf({
@@ -45703,7 +45701,7 @@ Required: ` + m.join(", "));
45703
45701
  }, se = (S) => {
45704
45702
  const $ = typeof S;
45705
45703
  return S === null ? "null" : $ === "object" && Array.isArray(S) ? "array" : $ === "object" && me(S, String, (U, ae) => ae.isPrototypeOf(U)) ? "string" : $;
45706
- }, Ee = (S) => ($) => se($) === S, fe = (S) => ($) => typeof $ === S, G = Ee("string"), Ae = Ee("object"), Q = Ee("array"), Pe = fe("boolean"), it = (S) => S == null, $t = (S) => !it(S), Sn = fe("function"), jn = fe("number"), Vo = () => {
45704
+ }, Ee = (S) => ($) => se($) === S, fe = (S) => ($) => typeof $ === S, G = Ee("string"), Ae = Ee("object"), Q = Ee("array"), Pe = fe("boolean"), it = (S) => S == null, Dt = (S) => !it(S), Cn = fe("function"), jn = fe("number"), Vo = () => {
45707
45705
  }, Us = (S, $) => (U) => S($(U)), Oo = (S) => () => S, Mt = (S, $) => S === $;
45708
45706
  function pr(S, ...$) {
45709
45707
  return (...U) => {
@@ -45764,7 +45762,7 @@ Required: ` + m.join(", "));
45764
45762
  throw new Error($ ?? "Called getOrDie on None");
45765
45763
  }
45766
45764
  static from($) {
45767
- return $t($) ? kt.some($) : kt.none();
45765
+ return Dt($) ? kt.some($) : kt.none();
45768
45766
  }
45769
45767
  getOrNull() {
45770
45768
  return this.tag ? this.value : null;
@@ -45845,7 +45843,7 @@ Required: ` + m.join(", "));
45845
45843
  const $ = ca.call(S, 0);
45846
45844
  return $.reverse(), $;
45847
45845
  }, et = (S, $) => $ >= 0 && $ < S.length ? kt.some(S[$]) : kt.none(), Io = (S) => et(S, 0), ur = (S) => et(S, S.length - 1), ao = (S, $) => {
45848
- const U = [], ae = Sn($) ? (he) => Bn(U, (ct) => $(ct, he)) : (he) => is(U, he);
45846
+ const U = [], ae = Cn($) ? (he) => Bn(U, (ct) => $(ct, he)) : (he) => is(U, he);
45849
45847
  for (let he = 0, ct = S.length; he < ct; he++) {
45850
45848
  const Kt = S[he];
45851
45849
  ae(Kt) || U.push(Kt);
@@ -45912,7 +45910,7 @@ Required: ` + m.join(", "));
45912
45910
  }, us = (S) => S.dom.nodeName.toLowerCase(), Go = (S) => S.dom.nodeType, wc = (S) => ($) => Go($) === S, Xn = (S) => Go(S) === z || us(S) === "#comment", bs = (S) => wr(S) && ji(S.dom), wr = wc(os), Pl = wc(zo), di = wc(el), Qo = wc(eo), Gi = (S) => ($) => wr($) && us($) === S, vt = (S) => vn.fromDom(S.dom.ownerDocument), go = (S) => di(S) ? S : vt(S), Er = (S) => kt.from(S.dom.parentNode).map(vn.fromDom), Aa = (S) => kt.from(S.dom.parentElement).map(vn.fromDom), Bl = (S) => kt.from(S.dom.nextSibling).map(vn.fromDom), Da = (S) => We(S.dom.childNodes, vn.fromDom), es = (S, $) => {
45913
45911
  const U = S.dom.childNodes;
45914
45912
  return kt.from(U[$]).map(vn.fromDom);
45915
- }, tl = (S) => es(S, 0), bl = (S) => es(S, S.dom.childNodes.length - 1), Ko = (S) => Qo(S) && $t(S.dom.host), Ar = Sn(Element.prototype.attachShadow) && Sn(Node.prototype.getRootNode) ? (S) => vn.fromDom(S.dom.getRootNode()) : go, Nl = (S) => {
45913
+ }, tl = (S) => es(S, 0), bl = (S) => es(S, S.dom.childNodes.length - 1), Ko = (S) => Qo(S) && Dt(S.dom.host), Ar = Cn(Element.prototype.attachShadow) && Cn(Node.prototype.getRootNode) ? (S) => vn.fromDom(S.dom.getRootNode()) : go, Nl = (S) => {
45916
45914
  const $ = Ar(S);
45917
45915
  return Ko($) ? kt.some($) : kt.none();
45918
45916
  }, Hc = (S) => vn.fromDom(S.dom.host), mi = (S) => {
@@ -45922,10 +45920,10 @@ Required: ` + m.join(", "));
45922
45920
  const U = $.ownerDocument;
45923
45921
  return Nl(vn.fromDom($)).fold(() => U.body.contains($), Us(mi, Hc));
45924
45922
  };
45925
- var xr = (S, $, U, ae, he) => S(U, ae) ? kt.some(U) : Sn(he) && he(U) ? kt.none() : $(U, ae, he);
45923
+ var xr = (S, $, U, ae, he) => S(U, ae) ? kt.some(U) : Cn(he) && he(U) ? kt.none() : $(U, ae, he);
45926
45924
  const dr = (S, $, U) => {
45927
45925
  let ae = S.dom;
45928
- const he = Sn(U) ? U : de;
45926
+ const he = Cn(U) ? U : de;
45929
45927
  for (; ae.parentNode; ) {
45930
45928
  ae = ae.parentNode;
45931
45929
  const ct = vn.fromDom(ae);
@@ -46007,10 +46005,10 @@ Required: ` + m.join(", "));
46007
46005
  return fi(U, ae), qr(S), U;
46008
46006
  };
46009
46007
  var Qr = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), ua = tinymce.util.Tools.resolve("tinymce.util.Tools");
46010
- const zc = (S) => ($) => $t($) && $.nodeName.toLowerCase() === S, da = (S) => ($) => $t($) && S.test($.nodeName), Ls = (S) => $t(S) && S.nodeType === 3, ns = (S) => $t(S) && S.nodeType === 1, Ra = da(/^(OL|UL|DL)$/), Xi = da(/^(OL|UL)$/), Fo = zc("ol"), Or = da(/^(LI|DT|DD)$/), ma = da(/^(DT|DD)$/), or = da(/^(TH|TD)$/), yl = zc("br"), Fl = (S) => {
46008
+ const zc = (S) => ($) => Dt($) && $.nodeName.toLowerCase() === S, da = (S) => ($) => Dt($) && S.test($.nodeName), Ls = (S) => Dt(S) && S.nodeType === 3, ns = (S) => Dt(S) && S.nodeType === 1, Ra = da(/^(OL|UL|DL)$/), Xi = da(/^(OL|UL)$/), Fo = zc("ol"), Or = da(/^(LI|DT|DD)$/), ma = da(/^(DT|DD)$/), or = da(/^(TH|TD)$/), yl = zc("br"), Fl = (S) => {
46011
46009
  var $;
46012
46010
  return (($ = S.parentNode) === null || $ === void 0 ? void 0 : $.firstChild) === S;
46013
- }, ea = (S, $) => $t($) && $.nodeName in S.schema.getTextBlockElements(), Hl = (S, $) => $t(S) && S.nodeName in $, Vl = (S, $) => $t($) && $.nodeName in S.schema.getVoidElements(), Zu = (S, $) => yl($) ? S.isBlock($.nextSibling) && !yl($.previousSibling) : !1, wl = (S, $, U) => {
46011
+ }, ea = (S, $) => Dt($) && $.nodeName in S.schema.getTextBlockElements(), Hl = (S, $) => Dt(S) && S.nodeName in $, Vl = (S, $) => Dt($) && $.nodeName in S.schema.getVoidElements(), Zu = (S, $) => yl($) ? S.isBlock($.nextSibling) && !yl($.previousSibling) : !1, wl = (S, $, U) => {
46014
46012
  const ae = S.isEmpty($);
46015
46013
  return U && S.select("span[data-mce-type=bookmark]", $).length > 0 ? !1 : ae;
46016
46014
  }, Ji = (S, $) => S.isChildOf($, S.getRoot()), $a = (S) => ($) => $.options.get(S), Sc = (S) => {
@@ -46081,13 +46079,13 @@ Required: ` + m.join(", "));
46081
46079
  "DL"
46082
46080
  ], Fs = lo.join(","), Ma = (S, $) => {
46083
46081
  const U = $ || S.selection.getStart(!0);
46084
- return S.dom.getParent(U, Fs, Dt(S, U));
46085
- }, bu = (S, $) => $t(S) && $.length === 1 && $[0] === S, Nt = (S) => Jo(S.querySelectorAll(Fs), Ra), Gu = (S) => {
46082
+ return S.dom.getParent(U, Fs, Ot(S, U));
46083
+ }, bu = (S, $) => Dt(S) && $.length === 1 && $[0] === S, Nt = (S) => Jo(S.querySelectorAll(Fs), Ra), Gu = (S) => {
46086
46084
  const $ = Ma(S), U = S.selection.getSelectedBlocks();
46087
46085
  return bu($, U) ? Nt($) : Jo(U, (ae) => Ra(ae) && $ !== ae);
46088
46086
  }, Zs = (S, $) => {
46089
46087
  const U = ua.map($, (ae) => {
46090
- const he = S.dom.getParent(ae, "li,dd,dt", Dt(S, ae));
46088
+ const he = S.dom.getParent(ae, "li,dd,dt", Ot(S, ae));
46091
46089
  return he || ae;
46092
46090
  });
46093
46091
  return ao(U);
@@ -46097,18 +46095,18 @@ Required: ` + m.join(", "));
46097
46095
  }, Y = (S) => Jo(I(S), ma), re = (S, $) => {
46098
46096
  const U = S.dom.getParents($, "TD,TH");
46099
46097
  return U.length > 0 ? U[0] : S.getBody();
46100
- }, Le = (S, $) => !Ra($) && !Or($) && Bn(lo, (U) => S.isValidChild($.nodeName, U)), Dt = (S, $) => {
46098
+ }, Le = (S, $) => !Ra($) && !Or($) && Bn(lo, (U) => S.isValidChild($.nodeName, U)), Ot = (S, $) => {
46101
46099
  const U = S.dom.getParents($, S.dom.isBlock);
46102
46100
  return Gt(U, (he) => Le(S.schema, he)).getOr(S.getBody());
46103
46101
  }, Yn = (S) => Er(S).exists(($) => Or($.dom) && tl($).exists((U) => !Ra(U.dom)) && bl($).exists((U) => !Ra(U.dom))), qt = (S, $) => {
46104
- const U = S.dom.getParents($, "ol,ul", Dt(S, $));
46102
+ const U = S.dom.getParents($, "ol,ul", Ot(S, $));
46105
46103
  return ur(U);
46106
46104
  }, $s = (S) => {
46107
46105
  const $ = qt(S, S.selection.getStart()), U = Jo(S.selection.getSelectedBlocks(), Xi);
46108
46106
  return $.toArray().concat(U);
46109
46107
  }, lt = (S) => {
46110
46108
  const $ = S.selection.getStart();
46111
- return S.dom.getParents($, "ol,ul", Dt(S, $));
46109
+ return S.dom.getParents($, "ol,ul", Ot(S, $));
46112
46110
  }, rs = (S) => {
46113
46111
  const $ = $s(S), U = lt(S);
46114
46112
  return Gt(U, (ae) => Yn(vn.fromDom(ae))).fold(() => Ua(S, $), (ae) => [ae]);
@@ -46135,7 +46133,7 @@ Required: ` + m.join(", "));
46135
46133
  }, Vs = (S, $, U) => S.dispatch("ListMutation", {
46136
46134
  action: $,
46137
46135
  element: U
46138
- }), Rh = ((S) => ($) => $.replace(S, ""))(/^\s+|\s+$/g), $h = (S) => S.length > 0, Mo = (S) => !$h(S), Wc = (S) => S.style !== void 0 && Sn(S.style.getPropertyValue), Qi = (S, $, U) => {
46136
+ }), Rh = ((S) => ($) => $.replace(S, ""))(/^\s+|\s+$/g), $h = (S) => S.length > 0, Mo = (S) => !$h(S), Wc = (S) => S.style !== void 0 && Cn(S.style.getPropertyValue), Qi = (S, $, U) => {
46139
46137
  if (!G(U))
46140
46138
  throw console.error("Invalid call to CSS.set. Property ", $, ":: Value ", U, ":: Element ", S), new Error("CSS value must be a string: " + U);
46141
46139
  Wc(S) && S.style.setProperty($, U);
@@ -46382,7 +46380,7 @@ Required: ` + m.join(", "));
46382
46380
  Dg(S, $, U), uc(S, $, U);
46383
46381
  }, Og = (S, $, U) => {
46384
46382
  ua.each(U, (ae) => S.setStyle($, ae, ""));
46385
- }, ja = (S, $) => $t($) && !Hl($, S.schema.getBlockElements()), Rr = (S, $, U, ae) => {
46383
+ }, ja = (S, $) => Dt($) && !Hl($, S.schema.getBlockElements()), Rr = (S, $, U, ae) => {
46386
46384
  let he = $[U ? "startContainer" : "endContainer"];
46387
46385
  const ct = $[U ? "startOffset" : "endOffset"];
46388
46386
  ns(he) && (he = he.childNodes[Math.min(ct, he.childNodes.length - 1)] || he), !U && yl(he.nextSibling) && (he = he.nextSibling);
@@ -46451,7 +46449,7 @@ Required: ` + m.join(", "));
46451
46449
  }, Ga = (S, $, U) => {
46452
46450
  const ae = S.selection.getRng();
46453
46451
  let he = "LI";
46454
- const ct = Dt(S, Ec(S, ae)), Kt = S.dom;
46452
+ const ct = Ot(S, Ec(S, ae)), Kt = S.dom;
46455
46453
  if (Kt.getContentEditable(S.selection.getNode()) === "false")
46456
46454
  return;
46457
46455
  $ = $.toUpperCase(), $ === "DL" && (he = "DT");
@@ -46760,7 +46758,7 @@ Required: ` + m.join(", "));
46760
46758
  });
46761
46759
  }, Zo = (S, $) => () => {
46762
46760
  const U = Ma(S);
46763
- return $t(U) && U.nodeName === $;
46761
+ return Dt(U) && U.nodeName === $;
46764
46762
  }, qc = (S) => {
46765
46763
  S.addCommand("mceListProps", () => {
46766
46764
  Vh(S);
@@ -46851,7 +46849,7 @@ Required: ` + m.join(", "));
46851
46849
  }, se = (j) => {
46852
46850
  const ue = typeof j;
46853
46851
  return j === null ? "null" : ue === "object" && Array.isArray(j) ? "array" : ue === "object" && me(j, String, (ke, Ne) => Ne.isPrototypeOf(ke)) ? "string" : ue;
46854
- }, Ee = (j) => (ue) => se(ue) === j, fe = (j) => (ue) => typeof ue === j, G = (j) => (ue) => j === ue, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), it = G(null), $t = fe("boolean"), Sn = (j) => j == null, jn = (j) => !Sn(j), Vo = fe("function"), Us = (j, ue) => {
46852
+ }, Ee = (j) => (ue) => se(ue) === j, fe = (j) => (ue) => typeof ue === j, G = (j) => (ue) => j === ue, Ae = Ee("string"), Q = Ee("object"), Pe = Ee("array"), it = G(null), Dt = fe("boolean"), Cn = (j) => j == null, jn = (j) => !Cn(j), Vo = fe("function"), Us = (j, ue) => {
46855
46853
  if (Pe(j)) {
46856
46854
  for (let ke = 0, Ne = j.length; ke < Ne; ++ke)
46857
46855
  if (!ue(j[ke]))
@@ -46972,7 +46970,7 @@ Required: ` + m.join(", "));
46972
46970
  const ue = j.options.register;
46973
46971
  ue("link_assume_external_targets", {
46974
46972
  processor: (ke) => {
46975
- const Ne = Ae(ke) || $t(ke);
46973
+ const Ne = Ae(ke) || Dt(ke);
46976
46974
  return Ne ? ke === !0 ? {
46977
46975
  value: 1,
46978
46976
  valid: Ne
@@ -46995,7 +46993,7 @@ Required: ` + m.join(", "));
46995
46993
  processor: "string",
46996
46994
  default: "https"
46997
46995
  }), ue("link_target_list", {
46998
- processor: (ke) => $t(ke) || Us(ke, Q),
46996
+ processor: (ke) => Dt(ke) || Us(ke, Q),
46999
46997
  default: !0
47000
46998
  }), ue("link_rel_list", {
47001
46999
  processor: "object[]",
@@ -47608,8 +47606,8 @@ Required: ` + m.join(", "));
47608
47606
  }, Ee = (I) => {
47609
47607
  const Y = typeof I;
47610
47608
  return I === null ? "null" : Y === "object" && Array.isArray(I) ? "array" : Y === "object" && se(I, String, (re, Le) => Le.isPrototypeOf(re)) ? "string" : Y;
47611
- }, fe = (I) => (Y) => Ee(Y) === I, G = (I) => (Y) => typeof Y === I, Ae = (I) => (Y) => I === Y, Q = (I, Y) => it(I) && se(I, Y, (re, Le) => me(re) === Le), Pe = fe("string"), it = fe("object"), $t = (I) => Q(I, Object), Sn = fe("array"), jn = Ae(null), Vo = G("boolean"), Us = (I) => I == null, Oo = (I) => !Us(I), Mt = G("function"), pr = G("number"), fn = (I, Y) => {
47612
- if (Sn(I)) {
47609
+ }, fe = (I) => (Y) => Ee(Y) === I, G = (I) => (Y) => typeof Y === I, Ae = (I) => (Y) => I === Y, Q = (I, Y) => it(I) && se(I, Y, (re, Le) => me(re) === Le), Pe = fe("string"), it = fe("object"), Dt = (I) => Q(I, Object), Cn = fe("array"), jn = Ae(null), Vo = G("boolean"), Us = (I) => I == null, Oo = (I) => !Us(I), Mt = G("function"), pr = G("number"), fn = (I, Y) => {
47610
+ if (Cn(I)) {
47613
47611
  for (let re = 0, Le = I.length; re < Le; ++re)
47614
47612
  if (!Y(I[re]))
47615
47613
  return !1;
@@ -47691,15 +47689,15 @@ Required: ` + m.join(", "));
47691
47689
  kt.singletonNone = new kt(!1);
47692
47690
  const ca = Object.keys, Qn = Object.hasOwnProperty, oe = (I, Y) => {
47693
47691
  const re = ca(I);
47694
- for (let Le = 0, Dt = re.length; Le < Dt; Le++) {
47692
+ for (let Le = 0, Ot = re.length; Le < Ot; Le++) {
47695
47693
  const Yn = re[Le], qt = I[Yn];
47696
47694
  Y(qt, Yn);
47697
47695
  }
47698
47696
  }, Pn = (I) => (Y, re) => {
47699
47697
  I[re] = Y;
47700
47698
  }, is = (I, Y, re, Le) => {
47701
- oe(I, (Dt, Yn) => {
47702
- (Y(Dt, Yn) ? re : Le)(Dt, Yn);
47699
+ oe(I, (Ot, Yn) => {
47700
+ (Y(Ot, Yn) ? re : Le)(Ot, Yn);
47703
47701
  });
47704
47702
  }, Bn = (I, Y) => {
47705
47703
  const re = {};
@@ -47707,7 +47705,7 @@ Required: ` + m.join(", "));
47707
47705
  }, We = (I, Y) => Qn.call(I, Y), ge = (I, Y) => We(I, Y) && I[Y] !== void 0 && I[Y] !== null, Jo = Array.prototype.push, Pt = (I) => {
47708
47706
  const Y = [];
47709
47707
  for (let re = 0, Le = I.length; re < Le; ++re) {
47710
- if (!Sn(I[re]))
47708
+ if (!Cn(I[re]))
47711
47709
  throw new Error("Arr.flatten item " + re + " was not an array, input: " + I);
47712
47710
  Jo.apply(Y, I[re]);
47713
47711
  }
@@ -47733,8 +47731,8 @@ Required: ` + m.join(", "));
47733
47731
  }, et = (I, Y) => {
47734
47732
  const Le = (Y || document).createElement("div");
47735
47733
  if (Le.innerHTML = I, !Le.hasChildNodes() || Le.childNodes.length > 1) {
47736
- const Dt = "HTML does not have a single root node";
47737
- throw console.error(Dt, I), new Error(Dt);
47734
+ const Ot = "HTML does not have a single root node";
47735
+ throw console.error(Ot, I), new Error(Ot);
47738
47736
  }
47739
47737
  return ao(Le.childNodes[0]);
47740
47738
  }, Io = (I, Y) => {
@@ -47804,8 +47802,8 @@ Required: ` + m.join(", "));
47804
47802
  }, re.onerror = () => {
47805
47803
  Le(Promise.reject(`Failed to get image dimensions for: ${I}`));
47806
47804
  };
47807
- const Dt = re.style;
47808
- Dt.visibility = "hidden", Dt.position = "fixed", Dt.bottom = Dt.left = "0px", Dt.width = Dt.height = "auto", document.body.appendChild(re), re.src = I;
47805
+ const Ot = re.style;
47806
+ Ot.visibility = "hidden", Ot.position = "fixed", Ot.bottom = Ot.left = "0px", Ot.width = Ot.height = "auto", document.body.appendChild(re), re.src = I;
47809
47807
  }), yr = (I) => (I && (I = I.replace(/px$/, "")), I), Qs = (I) => (I.length > 0 && /^[0-9]+$/.test(I) && (I += "px"), I), ps = (I) => {
47810
47808
  if (I.margin) {
47811
47809
  const Y = String(I.margin).split(" ");
@@ -47845,8 +47843,8 @@ Required: ` + m.join(", "));
47845
47843
  Le.onload = () => {
47846
47844
  Y(Le.result);
47847
47845
  }, Le.onerror = () => {
47848
- var Dt;
47849
- re((Dt = Le.error) === null || Dt === void 0 ? void 0 : Dt.message);
47846
+ var Ot;
47847
+ re((Ot = Le.error) === null || Ot === void 0 ? void 0 : Ot.message);
47850
47848
  }, Le.readAsDataURL(I);
47851
47849
  }), wc = (I) => I.nodeName === "IMG" && (I.hasAttribute("data-mce-object") || I.hasAttribute("data-mce-placeholder")), Xn = (I, Y) => {
47852
47850
  const re = I.options.get;
@@ -47871,9 +47869,9 @@ Required: ` + m.join(", "));
47871
47869
  }, Bl = (I, Y) => {
47872
47870
  const re = I.getAttribute("style"), Le = Y(re !== null ? re : "");
47873
47871
  Le.length > 0 ? (I.setAttribute("style", Le), I.setAttribute("data-mce-style", Le)) : I.removeAttribute("style");
47874
- }, Da = (I, Y) => (re, Le, Dt) => {
47872
+ }, Da = (I, Y) => (re, Le, Ot) => {
47875
47873
  const Yn = re.style;
47876
- Yn[Le] ? (Yn[Le] = Qs(Dt), Bl(re, Y)) : vt(re, Le, Dt);
47874
+ Yn[Le] ? (Yn[Le] = Qs(Ot), Bl(re, Y)) : vt(re, Le, Ot);
47877
47875
  }, es = (I, Y) => I.style[Y] ? yr(I.style[Y]) : Qo(I, Y), tl = (I, Y) => {
47878
47876
  const re = Qs(Y);
47879
47877
  I.style.marginLeft = re, I.style.marginRight = re;
@@ -47930,8 +47928,8 @@ Required: ` + m.join(", "));
47930
47928
  border: di(Y),
47931
47929
  borderStyle: Ar(Y),
47932
47930
  isDecorative: mi(Y)
47933
- }), Vr = (I, Y, re, Le, Dt) => {
47934
- re[Le] !== Y[Le] && Dt(I, Le, String(re[Le]));
47931
+ }), Vr = (I, Y, re, Le, Ot) => {
47932
+ re[Le] !== Y[Le] && Ot(I, Le, String(re[Le]));
47935
47933
  }, ia = (I, Y, re) => {
47936
47934
  if (re) {
47937
47935
  bs.setAttrib(I, "role", "presentation");
@@ -47949,31 +47947,31 @@ Required: ` + m.join(", "));
47949
47947
  }
47950
47948
  }, Is = (I, Y, re) => {
47951
47949
  (re.alt !== Y.alt || re.isDecorative !== Y.isDecorative) && ia(I, re.alt, re.isDecorative);
47952
- }, Dr = (I, Y) => (re, Le, Dt) => {
47953
- I(re, Dt), Bl(re, Y);
47950
+ }, Dr = (I, Y) => (re, Le, Ot) => {
47951
+ I(re, Ot), Bl(re, Y);
47954
47952
  }, sc = (I, Y, re) => {
47955
47953
  const Le = qi(I, re);
47956
- Vr(re, Le, Y, "caption", (Dt, Yn, qt) => Aa(Dt)), Vr(re, Le, Y, "src", vt), Vr(re, Le, Y, "title", vt), Vr(re, Le, Y, "width", Da("width", I)), Vr(re, Le, Y, "height", Da("height", I)), Vr(re, Le, Y, "class", vt), Vr(re, Le, Y, "style", Dr((Dt, Yn) => vt(Dt, "style", Yn), I)), Vr(re, Le, Y, "hspace", Dr(tl, I)), Vr(re, Le, Y, "vspace", Dr(bl, I)), Vr(re, Le, Y, "border", Dr(Ko, I)), Vr(re, Le, Y, "borderStyle", Dr(gn, I)), Is(re, Le, Y);
47954
+ Vr(re, Le, Y, "caption", (Ot, Yn, qt) => Aa(Ot)), Vr(re, Le, Y, "src", vt), Vr(re, Le, Y, "title", vt), Vr(re, Le, Y, "width", Da("width", I)), Vr(re, Le, Y, "height", Da("height", I)), Vr(re, Le, Y, "class", vt), Vr(re, Le, Y, "style", Dr((Ot, Yn) => vt(Ot, "style", Yn), I)), Vr(re, Le, Y, "hspace", Dr(tl, I)), Vr(re, Le, Y, "vspace", Dr(bl, I)), Vr(re, Le, Y, "border", Dr(Ko, I)), Vr(re, Le, Y, "borderStyle", Dr(gn, I)), Is(re, Le, Y);
47957
47955
  }, Vc = (I, Y) => {
47958
- const re = I.dom.styles.parse(Y), Le = ps(re), Dt = I.dom.styles.parse(I.dom.styles.serialize(Le));
47959
- return I.dom.styles.serialize(Dt);
47956
+ const re = I.dom.styles.parse(Y), Le = ps(re), Ot = I.dom.styles.parse(I.dom.styles.serialize(Le));
47957
+ return I.dom.styles.serialize(Ot);
47960
47958
  }, rc = (I) => {
47961
47959
  const Y = I.selection.getNode(), re = I.dom.getParent(Y, "figure.image");
47962
47960
  return re ? I.dom.select("img", re)[0] : Y && (Y.nodeName !== "IMG" || wc(Y)) ? null : Y;
47963
47961
  }, Il = (I, Y) => {
47964
47962
  var re;
47965
- const Le = I.dom, Dt = Bn(I.schema.getTextBlockElements(), (qt, $s) => !I.schema.isValidChild($s, "figure")), Yn = Le.getParent(Y.parentNode, (qt) => ge(Dt, qt.nodeName), I.getBody());
47963
+ const Le = I.dom, Ot = Bn(I.schema.getTextBlockElements(), (qt, $s) => !I.schema.isValidChild($s, "figure")), Yn = Le.getParent(Y.parentNode, (qt) => ge(Ot, qt.nodeName), I.getBody());
47966
47964
  return Yn && (re = Le.split(Yn, Y)) !== null && re !== void 0 ? re : Y;
47967
47965
  }, fi = (I) => {
47968
47966
  const Y = rc(I);
47969
47967
  return Y ? qi((re) => Vc(I, re), Y) : dr();
47970
47968
  }, Te = (I, Y) => {
47971
- const re = vl((Dt) => Vc(I, Dt), Y);
47969
+ const re = vl((Ot) => Vc(I, Ot), Y);
47972
47970
  I.dom.setAttrib(re, "data-mce-id", "__mcenew"), I.focus(), I.selection.setContent(re.outerHTML);
47973
47971
  const Le = I.dom.select('*[data-mce-id="__mcenew"]')[0];
47974
47972
  if (I.dom.setAttrib(Le, "data-mce-id", null), Nl(Le)) {
47975
- const Dt = Il(I, Le);
47976
- I.selection.select(Dt);
47973
+ const Ot = Il(I, Le);
47974
+ I.selection.select(Ot);
47977
47975
  } else
47978
47976
  I.selection.select(Le);
47979
47977
  }, qr = (I, Y) => {
@@ -48000,11 +47998,11 @@ Required: ` + m.join(", "));
48000
47998
  }, ts = (I, Y) => {
48001
47999
  const re = rc(I);
48002
48000
  if (re) {
48003
- const Dt = {
48001
+ const Ot = {
48004
48002
  ...qi((qt) => Vc(I, qt), re),
48005
48003
  ...Y
48006
- }, Yn = Ki(I, Dt);
48007
- Dt.src ? Wu(I, Yn) : Ll(I, re);
48004
+ }, Yn = Ki(I, Ot);
48005
+ Ot.src ? Wu(I, Yn) : Ll(I, re);
48008
48006
  } else Y.src && Te(I, {
48009
48007
  ...dr(),
48010
48008
  ...Y
@@ -48014,27 +48012,27 @@ Required: ` + m.join(", "));
48014
48012
  throw new Error("Can't merge zero objects");
48015
48013
  const re = {};
48016
48014
  for (let Le = 0; Le < Y.length; Le++) {
48017
- const Dt = Y[Le];
48018
- for (const Yn in Dt)
48019
- We(Dt, Yn) && (re[Yn] = I(re[Yn], Dt[Yn]));
48015
+ const Ot = Y[Le];
48016
+ for (const Yn in Ot)
48017
+ We(Ot, Yn) && (re[Yn] = I(re[Yn], Ot[Yn]));
48020
48018
  }
48021
48019
  return re;
48022
- })((I, Y) => $t(I) && $t(Y) ? nl(I, Y) : Y);
48020
+ })((I, Y) => Dt(I) && Dt(Y) ? nl(I, Y) : Y);
48023
48021
  var Yi = tinymce.util.Tools.resolve("tinymce.util.ImageUploader"), vs = tinymce.util.Tools.resolve("tinymce.util.Tools");
48024
48022
  const ks = (I) => Pe(I.value) ? I.value : "", za = (I) => Pe(I.text) ? I.text : Pe(I.title) ? I.title : "", Oa = (I, Y) => {
48025
48023
  const re = [];
48026
48024
  return vs.each(I, (Le) => {
48027
- const Dt = za(Le);
48025
+ const Ot = za(Le);
48028
48026
  if (Le.menu !== void 0) {
48029
48027
  const Yn = Oa(Le.menu, Y);
48030
48028
  re.push({
48031
- text: Dt,
48029
+ text: Ot,
48032
48030
  items: Yn
48033
48031
  });
48034
48032
  } else {
48035
48033
  const Yn = Y(Le);
48036
48034
  re.push({
48037
- text: Dt,
48035
+ text: Ot,
48038
48036
  value: Yn
48039
48037
  });
48040
48038
  }
@@ -48132,12 +48130,12 @@ Required: ` + m.join(", "));
48132
48130
  Vs
48133
48131
  ])));
48134
48132
  });
48135
- }), Le = ua.sanitize(Ke(I)), Dt = Zi(I), Yn = qe(I), qt = Va(I), $s = hs(I), lt = fi(I), rs = _e(I), Ua = vn(I), Hs = zo(I), Cr = jo(I), Uc = Tr(I), ho = Lo(I), Wa = kt.some(At(I)).filter((Ms) => Pe(Ms) && Ms.length > 0);
48133
+ }), Le = ua.sanitize(Ke(I)), Ot = Zi(I), Yn = qe(I), qt = Va(I), $s = hs(I), lt = fi(I), rs = _e(I), Ua = vn(I), Hs = zo(I), Cr = jo(I), Uc = Tr(I), ho = Lo(I), Wa = kt.some(At(I)).filter((Ms) => Pe(Ms) && Ms.length > 0);
48136
48134
  return re.then((Ms) => ({
48137
48135
  image: lt,
48138
48136
  imageList: Ms,
48139
48137
  classList: Le,
48140
- hasAdvTab: Dt,
48138
+ hasAdvTab: Ot,
48141
48139
  hasUploadTab: Yn,
48142
48140
  hasUploadUrl: qt,
48143
48141
  hasUploadHandler: $s,
@@ -48166,7 +48164,7 @@ Required: ` + m.join(", "));
48166
48164
  type: "input",
48167
48165
  label: "Alternative description",
48168
48166
  enabled: !(I.hasAccessibilityOptions && I.image.isDecorative)
48169
- }, Dt = {
48167
+ }, Ot = {
48170
48168
  name: "title",
48171
48169
  type: "input",
48172
48170
  label: "Image title"
@@ -48203,7 +48201,7 @@ Required: ` + m.join(", "));
48203
48201
  re.toArray(),
48204
48202
  I.hasAccessibilityOptions && I.hasDescription ? [qt] : [],
48205
48203
  I.hasDescription ? [Le] : [],
48206
- I.hasImageTitle ? [Dt] : [],
48204
+ I.hasImageTitle ? [Ot] : [],
48207
48205
  I.hasDimensions ? [Yn] : [],
48208
48206
  [{
48209
48207
  ...rs(I.classList.isSome() && I.hasImageCaption),
@@ -48283,11 +48281,11 @@ Required: ` + m.join(", "));
48283
48281
  }, Vl = (I, Y) => {
48284
48282
  const re = Y.getData(), Le = re.src.meta;
48285
48283
  if (Le !== void 0) {
48286
- const Dt = nl({}, re);
48287
- Hl(I, Dt, Le), Y.setData(Dt);
48284
+ const Ot = nl({}, re);
48285
+ Hl(I, Ot, Le), Y.setData(Ot);
48288
48286
  }
48289
48287
  }, Zu = (I, Y, re, Le) => {
48290
- const Dt = Le.getData(), Yn = Dt.src.value, qt = Dt.src.meta || {};
48288
+ const Ot = Le.getData(), Yn = Ot.src.value, qt = Ot.src.meta || {};
48291
48289
  !qt.width && !qt.height && Y.hasDimensions && (el(Yn) ? I.imageSize(Yn).then(($s) => {
48292
48290
  re.open && Le.setData({ dimensions: $s });
48293
48291
  }).catch(($s) => console.error($s)) : Le.setData({
@@ -48297,14 +48295,14 @@ Required: ` + m.join(", "));
48297
48295
  }
48298
48296
  }));
48299
48297
  }, wl = (I, Y, re) => {
48300
- const Le = re.getData(), Dt = ua.findEntry(I.imageList, Le.src.value);
48301
- Y.prevImage = Dt, re.setData({ images: Dt.map((Yn) => Yn.value).getOr("") });
48298
+ const Le = re.getData(), Ot = ua.findEntry(I.imageList, Le.src.value);
48299
+ Y.prevImage = Ot, re.setData({ images: Ot.map((Yn) => Yn.value).getOr("") });
48302
48300
  }, Ji = (I, Y, re, Le) => {
48303
48301
  ea(Y, Le), Vl(Y, Le), Zu(I, Y, re, Le), wl(Y, re, Le);
48304
48302
  }, $a = (I, Y, re, Le) => {
48305
- const Dt = Le.getData(), Yn = ua.findEntry(Y.imageList, Dt.images);
48303
+ const Ot = Le.getData(), Yn = ua.findEntry(Y.imageList, Ot.images);
48306
48304
  Yn.each((qt) => {
48307
- Dt.alt === "" || re.prevImage.map((lt) => lt.text === Dt.alt).getOr(!1) ? qt.value === "" ? Le.setData({
48305
+ Ot.alt === "" || re.prevImage.map((lt) => lt.text === Ot.alt).getOr(!1) ? qt.value === "" ? Le.setData({
48308
48306
  src: qt,
48309
48307
  alt: re.prevAlt
48310
48308
  }) : Le.setData({
@@ -48313,8 +48311,8 @@ Required: ` + m.join(", "));
48313
48311
  }) : Le.setData({ src: qt });
48314
48312
  }), re.prevImage = Yn, Ji(I, Y, re, Le);
48315
48313
  }, Sc = (I, Y, re, Le) => {
48316
- const Dt = Le.getData();
48317
- Le.block("Uploading image"), A(Dt.fileinput).fold(() => {
48314
+ const Ot = Le.getData();
48315
+ Le.block("Uploading image"), A(Ot.fileinput).fold(() => {
48318
48316
  Le.unblock();
48319
48317
  }, (Yn) => {
48320
48318
  const qt = URL.createObjectURL(Yn), $s = () => {
@@ -48336,8 +48334,8 @@ Required: ` + m.join(", "));
48336
48334
  }) : (I.addToBlobCache(Ua), lt(Ua.blobUri()), Le.unblock());
48337
48335
  });
48338
48336
  });
48339
- }, hi = (I, Y, re) => (Le, Dt) => {
48340
- Dt.name === "src" ? Ji(I, Y, re, Le) : Dt.name === "images" ? $a(I, Y, re, Le) : Dt.name === "alt" ? re.prevAlt = Le.getData().alt : Dt.name === "fileinput" ? Sc(I, Y, re, Le) : Dt.name === "isDecorative" && Le.setEnabled("alt", !Le.getData().isDecorative);
48337
+ }, hi = (I, Y, re) => (Le, Ot) => {
48338
+ Ot.name === "src" ? Ji(I, Y, re, Le) : Ot.name === "images" ? $a(I, Y, re, Le) : Ot.name === "alt" ? re.prevAlt = Le.getData().alt : Ot.name === "fileinput" ? Sc(I, Y, re, Le) : Ot.name === "isDecorative" && Le.setEnabled("alt", !Le.getData().isDecorative);
48341
48339
  }, pu = (I) => () => {
48342
48340
  I.open = !1;
48343
48341
  }, ju = (I) => I.hasAdvTab || I.hasUploadUrl || I.hasUploadHandler ? {
@@ -48351,9 +48349,9 @@ Required: ` + m.join(", "));
48351
48349
  type: "panel",
48352
48350
  items: Xi.makeItems(I)
48353
48351
  }, j = (I, Y, re) => (Le) => {
48354
- const Dt = nl(or(Y.image), Le.getData()), Yn = {
48355
- ...Dt,
48356
- style: Ws(re.normalizeCss, yl(Dt, !1))
48352
+ const Ot = nl(or(Y.image), Le.getData()), Yn = {
48353
+ ...Ot,
48354
+ style: Ws(re.normalizeCss, yl(Ot, !1))
48357
48355
  };
48358
48356
  I.execCommand("mceUpdateImage", !1, yl(Yn, Y.hasAccessibilityOptions)), I.editorUpload.uploadImagesAuto(), Le.close();
48359
48357
  }, ue = (I) => (Y) => Xn(I, Y) ? yc(I.documentBaseURI.toAbsolute(Y)).then((re) => ({
@@ -48363,11 +48361,11 @@ Required: ` + m.join(", "));
48363
48361
  width: "",
48364
48362
  height: ""
48365
48363
  }), ke = (I) => (Y, re, Le) => {
48366
- var Dt;
48364
+ var Ot;
48367
48365
  return I.editorUpload.blobCache.create({
48368
48366
  blob: Y,
48369
48367
  blobUri: re,
48370
- name: (Dt = Y.name) === null || Dt === void 0 ? void 0 : Dt.replace(/\.[^\.]+$/, ""),
48368
+ name: (Ot = Y.name) === null || Ot === void 0 ? void 0 : Ot.replace(/\.[^\.]+$/, ""),
48371
48369
  filename: Y.name,
48372
48370
  base64: Le.split(",")[1]
48373
48371
  });
@@ -48391,7 +48389,7 @@ Required: ` + m.join(", "));
48391
48389
  };
48392
48390
  return { open: () => {
48393
48391
  Ls(I).then((Le) => {
48394
- const Dt = ma(Le);
48392
+ const Ot = ma(Le);
48395
48393
  return {
48396
48394
  title: "Insert/Edit Image",
48397
48395
  size: "normal",
@@ -48411,8 +48409,8 @@ Required: ` + m.join(", "));
48411
48409
  ],
48412
48410
  initialData: or(Le.image),
48413
48411
  onSubmit: j(I, Le, Y),
48414
- onChange: hi(Y, Le, Dt),
48415
- onClose: pu(Dt)
48412
+ onChange: hi(Y, Le, Ot),
48413
+ onClose: pu(Ot)
48416
48414
  };
48417
48415
  }).then(I.windowManager.open);
48418
48416
  } };
@@ -48425,12 +48423,12 @@ Required: ` + m.join(", "));
48425
48423
  return Oo(Y) && /\bimage\b/.test(Y);
48426
48424
  }, Ma = (I) => (Y) => {
48427
48425
  let re = Y.length;
48428
- const Le = (Dt) => {
48429
- Dt.attr("contenteditable", I ? "true" : null);
48426
+ const Le = (Ot) => {
48427
+ Ot.attr("contenteditable", I ? "true" : null);
48430
48428
  };
48431
48429
  for (; re--; ) {
48432
- const Dt = Y[re];
48433
- Fs(Dt) && (Dt.attr("contenteditable", I ? "false" : null), vs.each(Dt.getAll("figcaption"), Le));
48430
+ const Ot = Y[re];
48431
+ Fs(Ot) && (Ot.attr("contenteditable", I ? "false" : null), vs.each(Ot.getAll("figcaption"), Le));
48434
48432
  }
48435
48433
  }, bu = (I) => {
48436
48434
  I.on("PreInit", () => {
@@ -48477,7 +48475,7 @@ Required: ` + m.join(", "));
48477
48475
  }, se = (x) => {
48478
48476
  const T = typeof x;
48479
48477
  return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && me(x, String, (V, K) => K.isPrototypeOf(V)) ? "string" : T;
48480
- }, Ee = (x) => (T) => se(T) === x, fe = (x) => (T) => typeof T === x, G = (x) => (T) => x === T, Ae = Ee("string"), Q = Ee("array"), Pe = fe("boolean"), it = G(void 0), $t = (x) => x == null, Sn = (x) => !$t(x), jn = fe("function"), Vo = fe("number"), Us = () => {
48478
+ }, Ee = (x) => (T) => se(T) === x, fe = (x) => (T) => typeof T === x, G = (x) => (T) => x === T, Ae = Ee("string"), Q = Ee("array"), Pe = fe("boolean"), it = G(void 0), Dt = (x) => x == null, Cn = (x) => !Dt(x), jn = fe("function"), Vo = fe("number"), Us = () => {
48481
48479
  }, Oo = (x, T) => (V) => x(T(V)), Mt = (x) => () => x, pr = (x) => x, fn = (x, T) => x === T;
48482
48480
  function de(x, ...T) {
48483
48481
  return (...V) => {
@@ -48540,7 +48538,7 @@ Required: ` + m.join(", "));
48540
48538
  throw new Error(T ?? "Called getOrDie on None");
48541
48539
  }
48542
48540
  static from(T) {
48543
- return Sn(T) ? oe.some(T) : oe.none();
48541
+ return Cn(T) ? oe.some(T) : oe.none();
48544
48542
  }
48545
48543
  getOrNull() {
48546
48544
  return this.tag ? this.value : null;
@@ -48733,7 +48731,7 @@ Required: ` + m.join(", "));
48733
48731
  }, Hc = (x) => oe.from(x.dom.previousSibling).map(Xn.fromDom), mi = (x) => oe.from(x.dom.nextSibling).map(Xn.fromDom), xr = (x) => bt(x.dom.childNodes, Xn.fromDom), dr = (x, T) => {
48734
48732
  const V = x.dom.childNodes;
48735
48733
  return oe.from(V[T]).map(Xn.fromDom);
48736
- }, Ws = (x) => dr(x, 0), vl = (x) => tl(x) && Sn(x.dom.host), Vr = jn(Element.prototype.attachShadow) && jn(Node.prototype.getRootNode) ? (x) => Xn.fromDom(x.dom.getRootNode()) : gn, ia = (x) => {
48734
+ }, Ws = (x) => dr(x, 0), vl = (x) => tl(x) && Cn(x.dom.host), Vr = jn(Element.prototype.attachShadow) && jn(Node.prototype.getRootNode) ? (x) => Xn.fromDom(x.dom.getRootNode()) : gn, ia = (x) => {
48737
48735
  const T = Vr(x);
48738
48736
  return vl(T) ? oe.some(T) : oe.none();
48739
48737
  }, Is = (x) => Xn.fromDom(x.dom.host), Dr = (x) => {
@@ -48857,7 +48855,7 @@ Required: ` + m.join(", "));
48857
48855
  }, Y = (x, T) => I([
48858
48856
  "td",
48859
48857
  "th"
48860
- ], x, T), re = (x) => Uo(x, "th,td"), Le = (x) => bs(x, "colgroup") ? Cc(x, "col") : _e(qt(x), (T) => Cc(T, "col")), Dt = (x, T) => Ll(x, "table", T), Yn = (x) => Uo(x, "tr"), qt = (x) => Dt(x).fold(Mt([]), (T) => Cc(T, "colgroup")), $s = (x, T) => bt(x, (V) => {
48858
+ ], x, T), re = (x) => Uo(x, "th,td"), Le = (x) => bs(x, "colgroup") ? Cc(x, "col") : _e(qt(x), (T) => Cc(T, "col")), Ot = (x, T) => Ll(x, "table", T), Yn = (x) => Uo(x, "tr"), qt = (x) => Ot(x).fold(Mt([]), (T) => Cc(T, "colgroup")), $s = (x, T) => bt(x, (V) => {
48861
48859
  if (vt(V) === "colgroup") {
48862
48860
  const K = bt(Le(V), (be) => {
48863
48861
  const je = dn(be, "span", 1);
@@ -48897,8 +48895,8 @@ Required: ` + m.join(", "));
48897
48895
  }), V += be;
48898
48896
  }), T;
48899
48897
  }, pi = (x) => {
48900
- const T = {}, V = [], be = Tr(x).map((mc) => mc.element).bind(Dt).bind(Hs).getOr({});
48901
- let je = 0, gt = 0, Ot = 0;
48898
+ const T = {}, V = [], be = Tr(x).map((mc) => mc.element).bind(Ot).bind(Hs).getOr({});
48899
+ let je = 0, gt = 0, Rt = 0;
48902
48900
  const {
48903
48901
  pass: on,
48904
48902
  fail: Hn
@@ -48907,16 +48905,16 @@ Required: ` + m.join(", "));
48907
48905
  const Gl = [];
48908
48906
  z(mc.cells, (Xc) => {
48909
48907
  let Ld = 0;
48910
- for (; T[Cr(Ot, Ld)] !== void 0; )
48908
+ for (; T[Cr(Rt, Ld)] !== void 0; )
48911
48909
  Ld++;
48912
- const cu = Jn(be, Ld.toString()), Ug = Ma(Xc.element, Xc.rowspan, Xc.colspan, Ot, Ld, cu);
48910
+ const cu = Jn(be, Ld.toString()), Ug = Ma(Xc.element, Xc.rowspan, Xc.colspan, Rt, Ld, cu);
48913
48911
  for (let Tf = 0; Tf < Xc.colspan; Tf++)
48914
48912
  for (let $m = 0; $m < Xc.rowspan; $m++) {
48915
- const Wg = Ot + $m, Zr = Ld + Tf, Jc = Cr(Wg, Zr);
48913
+ const Wg = Rt + $m, Zr = Ld + Tf, Jc = Cr(Wg, Zr);
48916
48914
  T[Jc] = Ug, gt = Math.max(gt, Zr + 1);
48917
48915
  }
48918
48916
  Gl.push(Ug);
48919
- }), je++, V.push(bu(mc.element, Gl, mc.section)), Ot++;
48917
+ }), je++, V.push(bu(mc.element, Gl, mc.section)), Rt++;
48920
48918
  });
48921
48919
  const { columns: ar, colgroups: Po } = Lo(on).map((mc) => {
48922
48920
  const Gl = Ms(mc);
@@ -48973,8 +48971,8 @@ Required: ` + m.join(", "));
48973
48971
  table: T
48974
48972
  });
48975
48973
  }, zr = (x, T) => Sc(x).getOr(T), fa = (x, T, V) => zr(ue(x, T), V), Mh = (x, T, V, K) => {
48976
- const be = fa(x, `padding-${V}`, 0), je = fa(x, `padding-${K}`, 0), gt = fa(x, `border-${V}-width`, 0), Ot = fa(x, `border-${K}-width`, 0);
48977
- return T - be - je - gt - Ot;
48974
+ const be = fa(x, `padding-${V}`, 0), je = fa(x, `padding-${K}`, 0), gt = fa(x, `border-${V}-width`, 0), Rt = fa(x, `border-${K}-width`, 0);
48975
+ return T - be - je - gt - Rt;
48978
48976
  }, js = (x, T) => {
48979
48977
  const V = x.dom, K = V.getBoundingClientRect().width || V.offsetWidth;
48980
48978
  return T === "border-box" ? K : Mh(x, K, "left", "right");
@@ -49171,7 +49169,7 @@ Required: ` + m.join(", "));
49171
49169
  ], vt(Hn)) : !1, be = (Hn) => Bl(Hn) && da(Hn, "contenteditable") === "false", je = (Hn, ar) => Hn.dom.compareDocumentPosition(ar.dom), gt = (Hn, ar) => {
49172
49170
  const Po = Ra(Hn);
49173
49171
  zc(ar, Po);
49174
- }, Ot = (Hn) => {
49172
+ }, Rt = (Hn) => {
49175
49173
  const ar = vt(Hn);
49176
49174
  return ao([
49177
49175
  "script",
@@ -49239,7 +49237,7 @@ Required: ` + m.join(", "));
49239
49237
  isText: Da,
49240
49238
  isComment: Aa,
49241
49239
  isElement: Bl,
49242
- isSpecial: Ot,
49240
+ isSpecial: Rt,
49243
49241
  getLanguage: on,
49244
49242
  getText: wi,
49245
49243
  setText: Og,
@@ -49257,8 +49255,8 @@ Required: ` + m.join(", "));
49257
49255
  }, Rd = (x, T, V) => V.length > 0 ? xu(x, T, V, Ec) : oe.none(), Ec = (x, T, V, K) => {
49258
49256
  const be = T(x, V);
49259
49257
  return zo(K, (je, gt) => {
49260
- const Ot = T(x, gt);
49261
- return Ga(x, je, Ot);
49258
+ const Rt = T(x, gt);
49259
+ return Ga(x, je, Rt);
49262
49260
  }, be);
49263
49261
  }, Ga = (x, T, V) => T.bind((K) => V.filter(de(x.eq, K))), Rg = Rd, Ih = Rr(), Tm = (x, T) => Rg(Ih, (V, K) => x(K), T), xf = (x) => fi(x, "table"), $d = (x, T) => {
49264
49262
  const V = Ao(x, T);
@@ -49271,8 +49269,8 @@ Required: ` + m.join(", "));
49271
49269
  last: be,
49272
49270
  table: je
49273
49271
  })))), Lh = (x, T) => $d(x, T), ib = (x, T, V) => xi(x, T, V).bind((K) => {
49274
- const be = (on) => Qo(x, on), je = "thead,tfoot,tbody,table", gt = fi(K.first, je, be), Ot = fi(K.last, je, be);
49275
- return gt.bind((on) => Ot.bind((Hn) => Qo(on, Hn) ? Ag(K.table, K.first, K.last) : oe.none()));
49272
+ const be = (on) => Qo(x, on), je = "thead,tfoot,tbody,table", gt = fi(K.first, je, be), Rt = fi(K.last, je, be);
49273
+ return gt.bind((on) => Rt.bind((Hn) => Qo(on, Hn) ? Ag(K.table, K.first, K.last) : oe.none()));
49276
49274
  }), $g = (x) => bt(x, Xn.fromDom), Mg = "data-mce-selected", Xu = "td[" + Mg + "],th[" + Mg + "]", Em = "data-mce-first-selected", Md = "td[" + Em + "],th[" + Em + "]", Ps = "data-mce-last-selected", qs = "td[" + Ps + "],th[" + Ps + "]", rl = {
49277
49275
  selected: Mg,
49278
49276
  selectedSelector: Xu,
@@ -49280,12 +49278,12 @@ Required: ` + m.join(", "));
49280
49278
  firstSelectedSelector: Md,
49281
49279
  lastSelected: Ps,
49282
49280
  lastSelectedSelector: qs
49283
- }, Pg = (x) => Dt(x).bind((T) => Lh(T, rl.firstSelectedSelector)).fold(Mt(x), (T) => T[0]), Fh = (x) => (T, V) => {
49281
+ }, Pg = (x) => Ot(x).bind((T) => Lh(T, rl.firstSelectedSelector)).fold(Mt(x), (T) => T[0]), Fh = (x) => (T, V) => {
49284
49282
  const K = vt(T), be = K === "col" || K === "colgroup" ? Pg(T) : T;
49285
49283
  return Ll(be, x, V);
49286
49284
  }, ta = Fh("th,td,caption"), tu = Fh("th,td"), al = (x) => $g(x.model.table.getSelectedCells()), Ci = (x, T) => {
49287
- const V = tu(x), K = V.bind((be) => Dt(be)).map((be) => Yn(be));
49288
- return Or(V, K, (be, je) => os(je, (gt) => br($g(gt.dom.cells), (Ot) => da(Ot, T) === "1" || Qo(Ot, be)))).getOr([]);
49285
+ const V = tu(x), K = V.bind((be) => Ot(be)).map((be) => Yn(be));
49286
+ return Or(V, K, (be, je) => os(je, (gt) => br($g(gt.dom.cells), (Rt) => da(Rt, T) === "1" || Qo(Rt, be)))).getOr([]);
49289
49287
  }, Cf = [
49290
49288
  {
49291
49289
  text: "None",
@@ -49315,8 +49313,8 @@ Required: ` + m.join(", "));
49315
49313
  blue: V,
49316
49314
  alpha: K
49317
49315
  }), Ju = (x, T, V, K) => {
49318
- const be = parseInt(x, 10), je = parseInt(T, 10), gt = parseInt(V, 10), Ot = parseFloat(K);
49319
- return Bd(be, je, gt, Ot);
49316
+ const be = parseInt(x, 10), je = parseInt(T, 10), gt = parseInt(V, 10), Rt = parseFloat(K);
49317
+ return Bd(be, je, gt, Rt);
49320
49318
  }, rr = (x) => {
49321
49319
  if (x === "transparent")
49322
49320
  return oe.some(Bd(0, 0, 0, 0));
@@ -49330,8 +49328,8 @@ Required: ` + m.join(", "));
49330
49328
  T.height = 1, T.width = 1;
49331
49329
  const V = T.getContext("2d");
49332
49330
  V.clearRect(0, 0, T.width, T.height), V.fillStyle = "#FFFFFF", V.fillStyle = x, V.fillRect(0, 0, 1, 1);
49333
- const K = V.getImageData(0, 0, 1, 1).data, be = K[0], je = K[1], gt = K[2], Ot = K[3];
49334
- return mr(Bd(be, je, gt, Ot));
49331
+ const K = V.getImageData(0, 0, 1, 1).data, be = K[0], je = K[1], gt = K[2], Rt = K[3];
49332
+ return mr(Bd(be, je, gt, Rt));
49335
49333
  }), Gc = (x) => rr(x).map(mr).map((T) => "#" + T.value).getOr(x), Qu = (x) => {
49336
49334
  let T = x;
49337
49335
  return {
@@ -49348,14 +49346,14 @@ Required: ` + m.join(", "));
49348
49346
  },
49349
49347
  isSet: () => T.get().isSome(),
49350
49348
  get: () => T.get(),
49351
- set: (Ot) => {
49352
- V(), T.set(oe.some(Ot));
49349
+ set: (Rt) => {
49350
+ V(), T.set(oe.some(Rt));
49353
49351
  }
49354
49352
  };
49355
49353
  }, Bg = () => Sr((x) => x.unbind()), Vh = (x, T, V) => (K) => {
49356
49354
  const be = Bg(), je = Ji(V), gt = () => {
49357
- const Ot = al(x), on = (Hn) => x.formatter.match(T, { value: V }, Hn.dom, je);
49358
- je ? (K.setActive(!br(Ot, on)), be.set(x.formatter.formatChanged(T, (Hn) => K.setActive(!Hn), !0))) : (K.setActive(vn(Ot, on)), be.set(x.formatter.formatChanged(T, K.setActive, !1, { value: V })));
49355
+ const Rt = al(x), on = (Hn) => x.formatter.match(T, { value: V }, Hn.dom, je);
49356
+ je ? (K.setActive(!br(Rt, on)), be.set(x.formatter.formatChanged(T, (Hn) => K.setActive(!Hn), !0))) : (K.setActive(vn(Rt, on)), be.set(x.formatter.formatChanged(T, K.setActive, !1, { value: V })));
49359
49357
  };
49360
49358
  return x.initialized ? gt() : x.on("init", gt), be.clear;
49361
49359
  }, Zo = (x) => Jn(x, "menu"), qc = (x) => bt(x, (T) => {
@@ -49532,14 +49530,14 @@ Required: ` + m.join(", "));
49532
49530
  }, Am = { normal: (x, T) => {
49533
49531
  const V = x.dom;
49534
49532
  return {
49535
- setAttrib: (gt, Ot) => {
49536
- V.setAttrib(T, gt, Ot);
49533
+ setAttrib: (gt, Rt) => {
49534
+ V.setAttrib(T, gt, Rt);
49537
49535
  },
49538
- setStyle: (gt, Ot) => {
49539
- V.setStyle(T, gt, Ot);
49536
+ setStyle: (gt, Rt) => {
49537
+ V.setStyle(T, gt, Rt);
49540
49538
  },
49541
- setFormat: (gt, Ot) => {
49542
- Ot === "" ? x.formatter.remove(gt, { value: null }, T, !0) : x.formatter.apply(gt, { value: Ot }, T);
49539
+ setFormat: (gt, Rt) => {
49540
+ Rt === "" ? x.formatter.remove(gt, { value: null }, T, !0) : x.formatter.apply(gt, { value: Rt }, T);
49543
49541
  }
49544
49542
  };
49545
49543
  } }, S = bl("th"), $ = (x, T) => x && T ? "sectionCells" : x ? "section" : "cells", U = (x) => {
@@ -49576,17 +49574,17 @@ Required: ` + m.join(", "));
49576
49574
  const je = Pn(K);
49577
49575
  if (je.length !== 1)
49578
49576
  throw new Error("one and only one name per case");
49579
- const gt = je[0], Ot = K[gt];
49577
+ const gt = je[0], Rt = K[gt];
49580
49578
  if (V[gt] !== void 0)
49581
49579
  throw new Error("duplicate key detected:" + gt);
49582
49580
  if (gt === "cata")
49583
49581
  throw new Error("cannot have a case named cata (sorry)");
49584
- if (!Q(Ot))
49582
+ if (!Q(Rt))
49585
49583
  throw new Error("case arguments must be an array");
49586
49584
  T.push(gt), V[gt] = (...on) => {
49587
49585
  const Hn = on.length;
49588
- if (Hn !== Ot.length)
49589
- throw new Error("Wrong number of arguments to case " + gt + ". Expected " + Ot.length + " (" + Ot + "), got " + Hn);
49586
+ if (Hn !== Rt.length)
49587
+ throw new Error("Wrong number of arguments to case " + gt + ". Expected " + Rt.length + " (" + Rt + "), got " + Hn);
49590
49588
  return {
49591
49589
  fold: (...Po) => {
49592
49590
  if (Po.length !== x.length)
@@ -49639,7 +49637,7 @@ Required: ` + T.join(", "));
49639
49637
  const Zt = (x, T) => {
49640
49638
  const V = Wc.fromTable(x);
49641
49639
  return zs(V, T).bind((be) => {
49642
- const je = be[be.length - 1], gt = be[0].row, Ot = je.row + je.rowspan, on = V.all.slice(gt, Ot);
49640
+ const je = be[be.length - 1], gt = be[0].row, Rt = je.row + je.rowspan, on = V.all.slice(gt, Rt);
49643
49641
  return he(on);
49644
49642
  }).getOr("");
49645
49643
  }, su = (x) => Hl(x, "rgb") ? Gc(x) : x, ub = (x) => {
@@ -49655,8 +49653,8 @@ Required: ` + T.join(", "));
49655
49653
  return z(V, (K) => {
49656
49654
  z(Pn(T), (be) => {
49657
49655
  Bn(K, (je, gt) => {
49658
- const Ot = T[be];
49659
- Ot !== "" && be === gt && Ot !== je && (T[be] = "");
49656
+ const Rt = T[be];
49657
+ Rt !== "" && be === gt && Rt !== je && (T[be] = "");
49660
49658
  });
49661
49659
  });
49662
49660
  }), T;
@@ -49685,7 +49683,7 @@ Required: ` + T.join(", "));
49685
49683
  }, gt = () => {
49686
49684
  const ar = V["border-width"];
49687
49685
  return Zc(x) && ar ? { border: ar } : Gt(K, "border").fold(() => ({}), (Po) => ({ border: Po }));
49688
- }, Ot = T ? be() : {}, on = () => {
49686
+ }, Rt = T ? be() : {}, on = () => {
49689
49687
  const ar = Gt(V, "border-spacing").or(Gt(K, "cellspacing")).fold(() => ({}), (Bs) => ({ cellspacing: Bs })), Po = Gt(V, "border-padding").or(Gt(K, "cellpadding")).fold(() => ({}), (Bs) => ({ cellpadding: Bs }));
49690
49688
  return {
49691
49689
  ...ar,
@@ -49696,17 +49694,17 @@ Required: ` + T.join(", "));
49696
49694
  ...je,
49697
49695
  ...V,
49698
49696
  ...K,
49699
- ...Ot,
49697
+ ...Rt,
49700
49698
  ...gt(),
49701
49699
  ...on()
49702
49700
  };
49703
- }, ru = (x) => Dt(Xn.fromDom(x)).map((T) => {
49701
+ }, ru = (x) => Ot(Xn.fromDom(x)).map((T) => {
49704
49702
  const V = { selection: $g(x.cells) };
49705
49703
  return Zt(T, V);
49706
49704
  }).getOr(""), Uh = (x, T, V) => {
49707
- const K = (Ot, on) => {
49705
+ const K = (Rt, on) => {
49708
49706
  const Hn = Ne(Xn.fromDom(on), "border-width");
49709
- return Zc(x) && Hn.isSome() ? Hn.getOr("") : Ot.getAttrib(on, "border") || xl(x.dom, on, "border-width") || xl(x.dom, on, "border") || "";
49707
+ return Zc(x) && Hn.isSome() ? Hn.getOr("") : Rt.getAttrib(on, "border") || xl(x.dom, on, "border-width") || xl(x.dom, on, "border") || "";
49710
49708
  }, be = x.dom, je = Zc(x) ? be.getStyle(T, "border-spacing") || be.getAttrib(T, "cellspacing") : be.getAttrib(T, "cellspacing") || be.getStyle(T, "border-spacing"), gt = Zc(x) ? xl(be, T, "padding") || be.getAttrib(T, "cellpadding") : be.getAttrib(T, "cellpadding") || xl(be, T, "padding");
49711
49709
  return {
49712
49710
  width: be.getStyle(T, "width") || be.getAttrib(T, "width"),
@@ -49729,7 +49727,7 @@ Required: ` + T.join(", "));
49729
49727
  ...V ? ub(T) : {}
49730
49728
  };
49731
49729
  }, db = (x, T, V, K) => {
49732
- const be = x.dom, je = K.getOr(T), gt = (Ot, on) => be.getStyle(Ot, on) || be.getAttrib(Ot, on);
49730
+ const be = x.dom, je = K.getOr(T), gt = (Rt, on) => be.getStyle(Rt, on) || be.getAttrib(Rt, on);
49733
49731
  return {
49734
49732
  width: gt(je, "width"),
49735
49733
  height: gt(T, "height"),
@@ -49753,8 +49751,8 @@ Required: ` + T.join(", "));
49753
49751
  }, Nd = (x, T, V, K) => {
49754
49752
  const be = T.length === 1;
49755
49753
  z(T, (je) => {
49756
- const gt = je.element, Ot = be ? Qn : K, on = Am.normal(x, gt), Hn = je.column.map((ar) => Am.normal(x, ar)).getOr(on);
49757
- ut(on, Hn, V, Ot), wf(x) && mb(on, V, Ot), K("halign") && ac(x, gt, V.halign), K("valign") && xm(x, gt, V.valign);
49754
+ const gt = je.element, Rt = be ? Qn : K, on = Am.normal(x, gt), Hn = je.column.map((ar) => Am.normal(x, ar)).getOr(on);
49755
+ ut(on, Hn, V, Rt), wf(x) && mb(on, V, Rt), K("halign") && ac(x, gt, V.halign), K("valign") && xm(x, gt, V.valign);
49758
49756
  });
49759
49757
  }, nd = (x, T) => {
49760
49758
  x.execCommand("mceTableCellType", !1, {
@@ -49763,11 +49761,11 @@ Required: ` + T.join(", "));
49763
49761
  });
49764
49762
  }, Vg = (x, T, V, K) => {
49765
49763
  const be = Jo(K, (je, gt) => V[gt] !== je);
49766
- A(be) > 0 && T.length >= 1 && Dt(T[0]).each((je) => {
49767
- const gt = Hg(je, T), Ot = A(Jo(be, (Hn, ar) => ar !== "scope" && ar !== "celltype")) > 0, on = nt(be, "celltype");
49768
- (Ot || nt(be, "scope")) && Nd(x, gt, K, de(nt, be)), on && nd(x, K), co(x, je.dom, {
49764
+ A(be) > 0 && T.length >= 1 && Ot(T[0]).each((je) => {
49765
+ const gt = Hg(je, T), Rt = A(Jo(be, (Hn, ar) => ar !== "scope" && ar !== "celltype")) > 0, on = nt(be, "celltype");
49766
+ (Rt || nt(be, "scope")) && Nd(x, gt, K, de(nt, be)), on && nd(x, K), co(x, je.dom, {
49769
49767
  structure: on,
49770
- style: Ot
49768
+ style: Rt
49771
49769
  });
49772
49770
  });
49773
49771
  }, Ks = (x, T, V, K) => {
@@ -49776,7 +49774,7 @@ Required: ` + T.join(", "));
49776
49774
  Vg(x, T, V, be), x.focus();
49777
49775
  });
49778
49776
  }, as = (x, T) => {
49779
- const V = Dt(T[0]).map((K) => bt(Hg(K, T), (be) => db(x, be.element, wf(x), be.column)));
49777
+ const V = Ot(T[0]).map((K) => bt(Hg(K, T), (be) => db(x, be.element, wf(x), be.column)));
49780
49778
  return ku(V.getOrDie());
49781
49779
  }, Sl = (x) => {
49782
49780
  const T = al(x);
@@ -49883,8 +49881,8 @@ Required: ` + T.join(", "));
49883
49881
  }, Wh = (x, T, V, K) => {
49884
49882
  const je = T.length === 1 ? Qn : K;
49885
49883
  z(T, (gt) => {
49886
- const Ot = Am.normal(x, gt);
49887
- Na(Ot, V, je), Cm(x) && fr(Ot, V, je), K("align") && ac(x, gt, V.align);
49884
+ const Rt = Am.normal(x, gt);
49885
+ Na(Rt, V, je), Cm(x) && fr(Rt, V, je), K("align") && ac(x, gt, V.align);
49888
49886
  });
49889
49887
  }, ot = (x, T) => {
49890
49888
  x.execCommand("mceTableRowType", !1, {
@@ -49895,7 +49893,7 @@ Required: ` + T.join(", "));
49895
49893
  const be = Jo(K, (je, gt) => V[gt] !== je);
49896
49894
  if (A(be) > 0) {
49897
49895
  const je = nt(be, "type"), gt = je ? A(be) > 1 : !0;
49898
- gt && Wh(x, T, K, de(nt, be)), je && ot(x, K), Dt(Xn.fromDom(T[0])).each((Ot) => co(x, Ot.dom, {
49896
+ gt && Wh(x, T, K, de(nt, be)), je && ot(x, K), Ot(Xn.fromDom(T[0])).each((Rt) => co(x, Rt.dom, {
49899
49897
  structure: je,
49900
49898
  style: gt
49901
49899
  }));
@@ -50021,22 +50019,22 @@ Required: ` + T.join(", "));
50021
50019
  value: "right"
50022
50020
  }
50023
50021
  ]
50024
- }], Ot = T.length > 0 ? [{
50022
+ }], Rt = T.length > 0 ? [{
50025
50023
  type: "listbox",
50026
50024
  name: "class",
50027
50025
  label: "Class",
50028
50026
  items: T
50029
50027
  }] : [];
50030
- return K.concat(be).concat(je).concat(gt).concat(Ot);
50028
+ return K.concat(be).concat(je).concat(gt).concat(Rt);
50031
50029
  }, fb = (x, T, V, K) => {
50032
50030
  if (T.tagName === "TD" || T.tagName === "TH")
50033
- Ae(V) && Sn(K) ? x.setStyle(T, V, K) : x.setStyles(T, V);
50031
+ Ae(V) && Cn(K) ? x.setStyle(T, V, K) : x.setStyles(T, V);
50034
50032
  else if (T.children)
50035
50033
  for (let be = 0; be < T.children.length; be++)
50036
50034
  fb(x, T.children[be], V, K);
50037
50035
  }, lu = (x, T, V, K) => {
50038
- const be = x.dom, je = {}, gt = {}, Ot = Zc(x), on = ol(x);
50039
- if (it(V.class) || (je.class = V.class), gt.height = vs(V.height), Ot ? gt.width = vs(V.width) : be.getAttrib(T, "width") && (je.width = Yi(V.width)), Ot ? (gt["border-width"] = vs(V.border), gt["border-spacing"] = vs(V.cellspacing)) : (je.border = V.border, je.cellpadding = V.cellpadding, je.cellspacing = V.cellspacing), Ot && T.children) {
50036
+ const be = x.dom, je = {}, gt = {}, Rt = Zc(x), on = ol(x);
50037
+ if (it(V.class) || (je.class = V.class), gt.height = vs(V.height), Rt ? gt.width = vs(V.width) : be.getAttrib(T, "width") && (je.width = Yi(V.width)), Rt ? (gt["border-width"] = vs(V.border), gt["border-spacing"] = vs(V.cellspacing)) : (je.border = V.border, je.cellpadding = V.cellpadding, je.cellspacing = V.cellspacing), Rt && T.children) {
50040
50038
  const Hn = {};
50041
50039
  if (K.border && (Hn["border-width"] = vs(V.border)), K.cellpadding && (Hn.padding = vs(V.cellpadding)), on && K.bordercolor && (Hn["border-color"] = V.bordercolor), !ln(Hn))
50042
50040
  for (let ar = 0; ar < T.children.length; ar++)
@@ -50054,29 +50052,29 @@ Required: ` + T.join(", "));
50054
50052
  ...je
50055
50053
  });
50056
50054
  }, w1 = (x, T, V, K) => {
50057
- const be = x.dom, je = K.getData(), gt = Jo(je, (Ot, on) => V[on] !== Ot);
50055
+ const be = x.dom, je = K.getData(), gt = Jo(je, (Rt, on) => V[on] !== Rt);
50058
50056
  K.close(), je.class === "" && delete je.class, x.undoManager.transact(() => {
50059
50057
  if (!T) {
50060
- const Ot = $a(je.cols).getOr(1), on = $a(je.rows).getOr(1);
50058
+ const Rt = $a(je.cols).getOr(1), on = $a(je.rows).getOr(1);
50061
50059
  x.execCommand("mceInsertTable", !1, {
50062
50060
  rows: on,
50063
- columns: Ot
50064
- }), T = tu(ks(x), nl(x)).bind((Hn) => Dt(Hn, nl(x))).map((Hn) => Hn.dom).getOrDie();
50061
+ columns: Rt
50062
+ }), T = tu(ks(x), nl(x)).bind((Hn) => Ot(Hn, nl(x))).map((Hn) => Hn.dom).getOrDie();
50065
50063
  }
50066
50064
  if (A(gt) > 0) {
50067
- const Ot = {
50065
+ const Rt = {
50068
50066
  border: nt(gt, "border"),
50069
50067
  bordercolor: nt(gt, "bordercolor"),
50070
50068
  cellpadding: nt(gt, "cellpadding")
50071
50069
  };
50072
- lu(x, T, je, Ot);
50070
+ lu(x, T, je, Rt);
50073
50071
  const on = be.select("caption", T)[0];
50074
50072
  (on && !je.caption || !on && je.caption) && x.execCommand("mceTableToggleCaption"), ac(x, T, je.align);
50075
50073
  }
50076
50074
  if (x.focus(), x.addVisual(), A(gt) > 0) {
50077
- const Ot = nt(gt, "caption"), on = Ot ? A(gt) > 1 : !0;
50075
+ const Rt = nt(gt, "caption"), on = Rt ? A(gt) > 1 : !0;
50078
50076
  co(x, T, {
50079
- structure: Ot,
50077
+ structure: Rt,
50080
50078
  style: on
50081
50079
  });
50082
50080
  }
@@ -50091,7 +50089,7 @@ Required: ` + T.join(", "));
50091
50089
  type: "grid",
50092
50090
  columns: 2,
50093
50091
  items: au(x, je, T)
50094
- }, Ot = () => ({
50092
+ }, Rt = () => ({
50095
50093
  type: "panel",
50096
50094
  items: [gt]
50097
50095
  }), on = () => ({
@@ -50104,7 +50102,7 @@ Required: ` + T.join(", "));
50104
50102
  },
50105
50103
  _f(x, "table")
50106
50104
  ]
50107
- }), Hn = ol(x) ? on() : Ot();
50105
+ }), Hn = ol(x) ? on() : Rt();
50108
50106
  x.windowManager.open({
50109
50107
  title: "Table Properties",
50110
50108
  size: "normal",
@@ -50154,7 +50152,7 @@ Required: ` + T.join(", "));
50154
50152
  }), Om = (x) => {
50155
50153
  const T = Qu(oe.none()), V = Qu([]);
50156
50154
  let K = oe.none();
50157
- const be = bl("caption"), je = (Ro) => K.forall((oo) => !oo[Ro]), gt = () => ta(ks(x), nl(x)), Ot = () => ta(za(x), nl(x)), on = () => gt().bind((Ro) => ma(Or(Dt(Ro), Ot().bind(Dt), (oo, ya) => Qo(oo, ya) ? be(Ro) ? oe.some(Ia(Ro)) : oe.some(C1(al(x), oo, Ro)) : oe.none()))), Hn = (Ro) => Dt(Ro.element).map((ya) => {
50155
+ const be = bl("caption"), je = (Ro) => K.forall((oo) => !oo[Ro]), gt = () => ta(ks(x), nl(x)), Rt = () => ta(za(x), nl(x)), on = () => gt().bind((Ro) => ma(Or(Ot(Ro), Rt().bind(Ot), (oo, ya) => Qo(oo, ya) ? be(Ro) ? oe.some(Ia(Ro)) : oe.some(C1(al(x), oo, Ro)) : oe.none()))), Hn = (Ro) => Ot(Ro.element).map((ya) => {
50158
50156
  const il = Wc.fromTable(ya), S1 = zs(il, Ro).getOr([]), od = Zi(S1, (ul, Pm) => (Pm.isLocked && (ul.onAny = !0, Pm.column === 0 ? ul.onFirst = !0 : Pm.column + Pm.colspan >= il.grid.columns && (ul.onLast = !0)), ul), {
50159
50157
  onAny: !1,
50160
50158
  onFirst: !1,
@@ -50177,7 +50175,7 @@ Required: ` + T.join(", "));
50177
50175
  Ro.setEnabled(!1), Ro.setActive(!1);
50178
50176
  }, (il) => {
50179
50177
  Ro.setEnabled(!oo(il) && x.selection.isEditable()), Ro.setActive(ya(il));
50180
- })), Gl = (Ro) => K.exists((oo) => oo.locked[Ro]), Xc = (Ro) => Bs(Ro, (oo) => !1), Ld = (Ro) => Bs(Ro, (oo) => be(oo.element)), cu = (Ro) => (oo) => Bs(oo, (ya) => be(ya.element) || Gl(Ro)), Ug = (Ro) => (oo) => Bs(oo, (ya) => be(ya.element) || Ro().isNone()), Tf = (Ro, oo) => (ya) => Bs(ya, (il) => be(il.element) || Ro().isNone() || Gl(oo)), $m = (Ro) => Bs(Ro, (oo) => je("mergeable")), Wg = (Ro) => Bs(Ro, (oo) => je("unmergeable")), Zr = (Ro) => mc(Ro, ca, (oo) => Dt(oo.element, nl(x)).exists((il) => Ac(il, "caption"))), Jc = (Ro, oo) => (ya) => mc(ya, (il) => be(il.element), () => x.queryCommandValue(Ro) === oo), Ef = Jc("mceTableRowType", "header"), Mm = Jc("mceTableColType", "th");
50178
+ })), Gl = (Ro) => K.exists((oo) => oo.locked[Ro]), Xc = (Ro) => Bs(Ro, (oo) => !1), Ld = (Ro) => Bs(Ro, (oo) => be(oo.element)), cu = (Ro) => (oo) => Bs(oo, (ya) => be(ya.element) || Gl(Ro)), Ug = (Ro) => (oo) => Bs(oo, (ya) => be(ya.element) || Ro().isNone()), Tf = (Ro, oo) => (ya) => Bs(ya, (il) => be(il.element) || Ro().isNone() || Gl(oo)), $m = (Ro) => Bs(Ro, (oo) => je("mergeable")), Wg = (Ro) => Bs(Ro, (oo) => je("unmergeable")), Zr = (Ro) => mc(Ro, ca, (oo) => Ot(oo.element, nl(x)).exists((il) => Ac(il, "caption"))), Jc = (Ro, oo) => (ya) => mc(ya, (il) => be(il.element), () => x.queryCommandValue(Ro) === oo), Ef = Jc("mceTableRowType", "header"), Mm = Jc("mceTableColType", "th");
50181
50179
  return x.on("NodeChange ExecCommand TableSelectorChange", ar), {
50182
50180
  onSetupTable: Xc,
50183
50181
  onSetupCellOrRow: Ld,
@@ -50210,15 +50208,15 @@ Required: ` + T.join(", "));
50210
50208
  tooltip: "Table",
50211
50209
  icon: "table",
50212
50210
  onSetup: Zl(x),
50213
- fetch: (Ot) => Ot("inserttable | cell row column | advtablesort | tableprops deletetable")
50211
+ fetch: (Rt) => Rt("inserttable | cell row column | advtablesort | tableprops deletetable")
50214
50212
  });
50215
- const V = (Ot) => () => x.execCommand(Ot), K = (Ot, on) => {
50216
- x.queryCommandSupported(on.command) && x.ui.registry.addButton(Ot, {
50213
+ const V = (Rt) => () => x.execCommand(Rt), K = (Rt, on) => {
50214
+ x.queryCommandSupported(on.command) && x.ui.registry.addButton(Rt, {
50217
50215
  ...on,
50218
50216
  onAction: jn(on.onAction) ? on.onAction : V(on.command)
50219
50217
  });
50220
- }, be = (Ot, on) => {
50221
- x.queryCommandSupported(on.command) && x.ui.registry.addToggleButton(Ot, {
50218
+ }, be = (Rt, on) => {
50219
+ x.queryCommandSupported(on.command) && x.ui.registry.addToggleButton(Rt, {
50222
50220
  ...on,
50223
50221
  onAction: jn(on.onAction) ? on.onAction : V(on.command)
50224
50222
  });
@@ -50333,14 +50331,14 @@ Required: ` + T.join(", "));
50333
50331
  je.length !== 0 && x.queryCommandSupported("mceTableToggleClass") && x.ui.registry.addMenuButton("tableclass", {
50334
50332
  icon: "table-classes",
50335
50333
  tooltip: "Table styles",
50336
- fetch: nu(x, je, "tableclass", (Ot) => x.execCommand("mceTableToggleClass", !1, Ot)),
50334
+ fetch: nu(x, je, "tableclass", (Rt) => x.execCommand("mceTableToggleClass", !1, Rt)),
50337
50335
  onSetup: T.onSetupTable
50338
50336
  });
50339
50337
  const gt = Su(_m(x));
50340
50338
  gt.length !== 0 && x.queryCommandSupported("mceTableCellToggleClass") && x.ui.registry.addMenuButton("tablecellclass", {
50341
50339
  icon: "table-cell-classes",
50342
50340
  tooltip: "Cell styles",
50343
- fetch: nu(x, gt, "tablecellclass", (Ot) => x.execCommand("mceTableCellToggleClass", !1, Ot)),
50341
+ fetch: nu(x, gt, "tablecellclass", (Rt) => x.execCommand("mceTableCellToggleClass", !1, Rt)),
50344
50342
  onSetup: T.onSetupCellOrRow
50345
50343
  }), x.queryCommandSupported("mceTableApplyCellStyle") && (x.ui.registry.addMenuButton("tablecellvalign", {
50346
50344
  icon: "vertical-align",
@@ -50360,12 +50358,12 @@ Required: ` + T.join(", "));
50360
50358
  }), x.ui.registry.addMenuButton("tablecellbackgroundcolor", {
50361
50359
  icon: "cell-background-color",
50362
50360
  tooltip: "Background color",
50363
- fetch: (Ot) => Ot(Gn(x, _g(x), "background-color")),
50361
+ fetch: (Rt) => Rt(Gn(x, _g(x), "background-color")),
50364
50362
  onSetup: T.onSetupCellOrRow
50365
50363
  }), x.ui.registry.addMenuButton("tablecellbordercolor", {
50366
50364
  icon: "cell-border-color",
50367
50365
  tooltip: "Border color",
50368
- fetch: (Ot) => Ot(Gn(x, eu(x), "border-color")),
50366
+ fetch: (Rt) => Rt(Gn(x, eu(x), "border-color")),
50369
50367
  onSetup: T.onSetupCellOrRow
50370
50368
  })), be("tablecaption", {
50371
50369
  tooltip: "Table caption",
@@ -50463,7 +50461,7 @@ Required: ` + T.join(", "));
50463
50461
  command: "mceTablePasteRowAfter",
50464
50462
  onSetup: T.onSetupPasteable(Kc)
50465
50463
  })
50466
- ], Ot = [
50464
+ ], Rt = [
50467
50465
  K("tableinsertcolumnbefore", {
50468
50466
  text: "Insert column before",
50469
50467
  icon: "table-insert-column-before",
@@ -50558,7 +50556,7 @@ Required: ` + T.join(", "));
50558
50556
  type: "nestedmenuitem",
50559
50557
  text: "Row",
50560
50558
  getSubmenuItems: Mt("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")
50561
- }), ao(Ot, !0) && x.ui.registry.addNestedMenuItem("column", {
50559
+ }), ao(Rt, !0) && x.ui.registry.addNestedMenuItem("column", {
50562
50560
  type: "nestedmenuitem",
50563
50561
  text: "Column",
50564
50562
  getSubmenuItems: Mt("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")
@@ -50743,7 +50741,7 @@ Required: ` + T.join(", "));
50743
50741
  new RegExp(Ae.katakana),
50744
50742
  new RegExp(Ae.extendnumlet),
50745
50743
  new RegExp("@")
50746
- ], it = "", $t = new RegExp("^" + Ae.punctuation + "$"), Sn = /^\s+$/, jn = Pe, Vo = Q.OTHER, Us = (qe) => {
50744
+ ], it = "", Dt = new RegExp("^" + Ae.punctuation + "$"), Cn = /^\s+$/, jn = Pe, Vo = Q.OTHER, Us = (qe) => {
50747
50745
  let At = Vo;
50748
50746
  const Ke = jn.length;
50749
50747
  for (let _e = 0; _e < Ke; ++_e) {
@@ -50776,7 +50774,7 @@ Required: ` + T.join(", "));
50776
50774
  return !1;
50777
50775
  const jo = qe[At - 1];
50778
50776
  return (Ke === Q.MIDLETTER || Ke === Q.MIDNUMLET || _e === Q.AT) && _e === Q.ALETTER && jo === Q.ALETTER || (Ke === Q.NUMERIC || Ke === Q.ALETTER) && (_e === Q.NUMERIC || _e === Q.ALETTER) || (Ke === Q.MIDNUM || Ke === Q.MIDNUMLET) && _e === Q.NUMERIC && jo === Q.NUMERIC || Ke === Q.NUMERIC && (_e === Q.MIDNUM || _e === Q.MIDNUMLET) && vn === Q.NUMERIC || (Ke === Q.EXTEND || Ke === Q.FORMAT) && (_e === Q.ALETTER || _e === Q.NUMERIC || _e === Q.KATAKANA || _e === Q.EXTEND || _e === Q.FORMAT) || (_e === Q.EXTEND || _e === Q.FORMAT && (vn === Q.ALETTER || vn === Q.NUMERIC || vn === Q.KATAKANA || vn === Q.EXTEND || vn === Q.FORMAT)) && (Ke === Q.ALETTER || Ke === Q.NUMERIC || Ke === Q.KATAKANA || Ke === Q.EXTEND || Ke === Q.FORMAT) || Ke === Q.CR && _e === Q.LF ? !1 : Ke === Q.NEWLINE || Ke === Q.CR || Ke === Q.LF || _e === Q.NEWLINE || _e === Q.CR || _e === Q.LF ? !0 : !(Ke === Q.KATAKANA && _e === Q.KATAKANA || _e === Q.EXTENDNUMLET && (Ke === Q.ALETTER || Ke === Q.NUMERIC || Ke === Q.KATAKANA || Ke === Q.EXTENDNUMLET) || Ke === Q.EXTENDNUMLET && (_e === Q.ALETTER || _e === Q.NUMERIC || _e === Q.KATAKANA) || Ke === Q.AT);
50779
- }, fn = it, de = Sn, kt = $t, ca = (qe) => qe === "http" || qe === "https", Qn = (qe, At) => {
50777
+ }, fn = it, de = Cn, kt = Dt, ca = (qe) => qe === "http" || qe === "https", Qn = (qe, At) => {
50780
50778
  let Ke;
50781
50779
  for (Ke = At; Ke < qe.length && !de.test(qe[Ke]); Ke++)
50782
50780
  ;
@@ -50993,7 +50991,7 @@ const BQ = { class: "font-bold ptext-lg dark:text-white" }, NQ = ["id"], IQ = /*
50993
50991
  fe("update:modelValue", it);
50994
50992
  }
50995
50993
  });
50996
- return me({ focus: () => G.value.focus() }), (it, $t) => (ve(), we(fo, null, [
50994
+ return me({ focus: () => G.value.focus() }), (it, Dt) => (ve(), we(fo, null, [
50997
50995
  R.show ? (ve(), we("div", {
50998
50996
  key: 0,
50999
50997
  class: rn(R.field_name)
@@ -51025,8 +51023,8 @@ const BQ = { class: "font-bold ptext-lg dark:text-white" }, NQ = ["id"], IQ = /*
51025
51023
  "gl-textarea-form-invalid mt-4": R.error_message !== ""
51026
51024
  }]),
51027
51025
  type: R.type,
51028
- "onUpdate:modelValue": $t[0] || ($t[0] = (Sn) => Pe.value = Sn),
51029
- onKeydown: $t[1] || ($t[1] = (Sn) => it.$emit("keydown", Sn)),
51026
+ "onUpdate:modelValue": Dt[0] || (Dt[0] = (Cn) => Pe.value = Cn),
51027
+ onKeydown: Dt[1] || (Dt[1] = (Cn) => it.$emit("keydown", Cn)),
51030
51028
  ref_key: "input",
51031
51029
  ref: G,
51032
51030
  rows: "4"
@@ -51486,7 +51484,7 @@ function Eee(R, me, se, Ee, fe, G) {
51486
51484
  P("tr", null, [
51487
51485
  (ve(!0), we(fo, null, hr(se.columns, (Pe, it) => (ve(), we("th", {
51488
51486
  key: it,
51489
- onClick: ($t) => G.updateSortColumn(Pe.field_name, Pe.sortable),
51487
+ onClick: (Dt) => G.updateSortColumn(Pe.field_name, Pe.sortable),
51490
51488
  class: "w-full px-4 py-2 lg:w-2/12"
51491
51489
  }, [
51492
51490
  _o(ft(Pe.field_label) + " ", 1),
@@ -51506,26 +51504,26 @@ function Eee(R, me, se, Ee, fe, G) {
51506
51504
  key: it,
51507
51505
  class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
51508
51506
  }, [
51509
- (ve(!0), we(fo, null, hr(se.columns, ($t, Sn) => (ve(), we("td", {
51510
- key: Sn,
51511
- "data-label": $t.field_label,
51507
+ (ve(!0), we(fo, null, hr(se.columns, (Dt, Cn) => (ve(), we("td", {
51508
+ key: Cn,
51509
+ "data-label": Dt.field_label,
51512
51510
  class: rn(["text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border-[0.3px] dark:border-gray-700", {
51513
- "rounded-t-lg lg:rounded-t-none": Sn === 0,
51514
- "rounded-b-lg lg:rounded-b-none": Sn === se.columns.length - 1
51511
+ "rounded-t-lg lg:rounded-t-none": Cn === 0,
51512
+ "rounded-b-lg lg:rounded-b-none": Cn === se.columns.length - 1
51515
51513
  }])
51516
51514
  }, [
51517
51515
  P("div", kee, [
51518
- $t.tdComp ? (ve(), Ty(o5(G.forDynCompIs($t.tdComp)), {
51516
+ Dt.tdComp ? (ve(), Ty(o5(G.forDynCompIs(Dt.tdComp)), {
51519
51517
  key: 0,
51520
51518
  row: Pe,
51521
- field: $t.field_name,
51519
+ field: Dt.field_name,
51522
51520
  xprops: se.xprops,
51523
- tdProps: $t.tdProps,
51521
+ tdProps: Dt.tdProps,
51524
51522
  onDeleteAction: me[3] || (me[3] = (jn) => G.GetItemLists()),
51525
51523
  onEditAction: (jn) => G.editAction(Pe),
51526
51524
  onGeneralAction: (jn) => G.generalAction(Pe)
51527
51525
  }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ve(), we(fo, { key: 1 }, [
51528
- _o(ft(Pe[$t.field_name]), 1)
51526
+ _o(ft(Pe[Dt.field_name]), 1)
51529
51527
  ], 64))
51530
51528
  ])
51531
51529
  ], 10, _ee))), 128))
@@ -51820,12 +51818,12 @@ function vte(R, me, se, Ee, fe, G) {
51820
51818
  key: Pe,
51821
51819
  class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
51822
51820
  }, [
51823
- (ve(!0), we(fo, null, hr(se.columns, (it, $t) => (ve(), we("td", {
51824
- key: $t,
51821
+ (ve(!0), we(fo, null, hr(se.columns, (it, Dt) => (ve(), we("td", {
51822
+ key: Dt,
51825
51823
  "data-label": it.field_label,
51826
51824
  class: rn(["text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border-[0.3px] dark:border-gray-700", {
51827
- "rounded-t-lg lg:rounded-t-none": $t === 0,
51828
- "rounded-b-lg lg:rounded-b-none": $t === se.columns.length - 1
51825
+ "rounded-t-lg lg:rounded-t-none": Dt === 0,
51826
+ "rounded-b-lg lg:rounded-b-none": Dt === se.columns.length - 1
51829
51827
  }])
51830
51828
  }, [
51831
51829
  P("div", Yee, [
@@ -51835,9 +51833,9 @@ function vte(R, me, se, Ee, fe, G) {
51835
51833
  field: it.field_name,
51836
51834
  xprops: se.xprops,
51837
51835
  tdProps: it.tdProps,
51838
- onDeleteAction: me[2] || (me[2] = (Sn) => G.GetItemLists()),
51839
- onEditAction: (Sn) => G.editAction(Q),
51840
- onGeneralAction: (Sn) => G.generalAction(Q)
51836
+ onDeleteAction: me[2] || (me[2] = (Cn) => G.GetItemLists()),
51837
+ onEditAction: (Cn) => G.editAction(Q),
51838
+ onGeneralAction: (Cn) => G.generalAction(Q)
51841
51839
  }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction", "onGeneralAction"])) : (ve(), we(fo, { key: 1 }, [
51842
51840
  _o(ft(Q[it.field_name]), 1)
51843
51841
  ], 64))
@@ -52122,7 +52120,7 @@ function Zte(R, me, se, Ee, fe, G) {
52122
52120
  P("tr", null, [
52123
52121
  (ve(!0), we(fo, null, hr(se.columns, (Pe, it) => (ve(), we("th", {
52124
52122
  key: it,
52125
- onClick: ($t) => G.updateSortColumn(Pe.field_name, Pe.sortable),
52123
+ onClick: (Dt) => G.updateSortColumn(Pe.field_name, Pe.sortable),
52126
52124
  class: "w-full px-4 py-2 lg:w-2/12"
52127
52125
  }, [
52128
52126
  _o(ft(Pe.field_label) + " ", 1),
@@ -52145,8 +52143,8 @@ function Zte(R, me, se, Ee, fe, G) {
52145
52143
  class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-3 lg:px-4 border dark:border-gray-700"
52146
52144
  }, ft(it), 9, Vte)
52147
52145
  ]),
52148
- (ve(!0), we(fo, null, hr(Pe, ($t, Sn) => (ve(), we("tr", {
52149
- key: Sn,
52146
+ (ve(!0), we(fo, null, hr(Pe, (Dt, Cn) => (ve(), we("tr", {
52147
+ key: Cn,
52150
52148
  class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
52151
52149
  }, [
52152
52150
  (ve(!0), we(fo, null, hr(se.columns, (jn, Vo) => (ve(), we("td", {
@@ -52157,14 +52155,14 @@ function Zte(R, me, se, Ee, fe, G) {
52157
52155
  P("div", Ute, [
52158
52156
  jn.tdComp ? (ve(), Ty(o5(G.forDynCompIs(jn.tdComp)), {
52159
52157
  key: 0,
52160
- row: $t,
52158
+ row: Dt,
52161
52159
  field: jn.field_name,
52162
52160
  xprops: se.xprops,
52163
52161
  tdProps: jn.tdProps,
52164
52162
  onDeleteAction: me[3] || (me[3] = (Us) => G.GetItemLists()),
52165
- onEditAction: (Us) => G.editAction($t)
52163
+ onEditAction: (Us) => G.editAction(Dt)
52166
52164
  }, null, 40, ["row", "field", "xprops", "tdProps", "onEditAction"])) : (ve(), we(fo, { key: 1 }, [
52167
- _o(ft($t[jn.field_name]), 1)
52165
+ _o(ft(Dt[jn.field_name]), 1)
52168
52166
  ], 64))
52169
52167
  ])
52170
52168
  ], 8, zte))), 128))
@@ -52385,14 +52383,14 @@ function $ne(R, me, se, Ee, fe, G) {
52385
52383
  key: Pe,
52386
52384
  class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500"
52387
52385
  }, [
52388
- (ve(!0), we(fo, null, hr(se.columns, (it, $t) => (ve(), we("td", {
52389
- key: $t,
52386
+ (ve(!0), we(fo, null, hr(se.columns, (it, Dt) => (ve(), we("td", {
52387
+ key: Dt,
52390
52388
  "data-label": it,
52391
52389
  class: "text-pretty before:content-[attr(data-label)] before:font-bold lg:before:content-none flex md:flex-row flex-col justify-between gap-2 lg:table-cell py-4 px-5 lg:py-2.5 lg:px-4 border dark:border-gray-700"
52392
52390
  }, [
52393
52391
  P("p", {
52394
52392
  class: "text-pretty",
52395
- innerHTML: Q[$t]
52393
+ innerHTML: Q[Dt]
52396
52394
  }, null, 8, une)
52397
52395
  ], 8, ine))), 128))
52398
52396
  ]))), 128))
@@ -52507,11 +52505,11 @@ const tle = /* @__PURE__ */ Jr(Mne, [["render", Pne]]), Bne = {
52507
52505
  const R = No(!1), me = QG("accordionsWrapper"), Ee = (() => {
52508
52506
  var it = (/* @__PURE__ */ new Date()).getTime();
52509
52507
  typeof performance < "u" && typeof performance.now == "function" && (it += performance.now());
52510
- var $t = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(Sn) {
52508
+ var Dt = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(Cn) {
52511
52509
  var jn = (it + Math.random() * 16) % 16 | 0;
52512
- return it = Math.floor(it / 16), (Sn === "x" ? jn : jn & 3 | 8).toString(16);
52510
+ return it = Math.floor(it / 16), (Cn === "x" ? jn : jn & 3 | 8).toString(16);
52513
52511
  });
52514
- return $t;
52512
+ return Dt;
52515
52513
  })(), fe = { isOpen: R, id: Ee }, G = vc(() => me.accordions.value), Ae = vc(() => G.value.length > 0 && G.value[0].id === Ee), Q = vc(() => G.value.length > 0 && G.value[G.value.length - 1].id === Ee);
52516
52514
  return Oh(() => {
52517
52515
  me.registerAccordion(fe);
@@ -52751,26 +52749,26 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
52751
52749
  fe.value = !1;
52752
52750
  }, Pe = () => {
52753
52751
  fe.value = !0;
52754
- }, it = me, $t = () => {
52752
+ }, it = me, Dt = () => {
52755
52753
  axios.delete(`${se.xprops.route}/${se.row.id}`).then(() => {
52756
52754
  Q(), it("deleteAction"), s5.methods.add({
52757
52755
  message: "Item deleted successfully.",
52758
52756
  type: "success",
52759
52757
  duration: 5e3
52760
52758
  });
52761
- }).catch((Sn) => {
52762
- console.log(Sn);
52759
+ }).catch((Cn) => {
52760
+ console.log(Cn);
52763
52761
  });
52764
52762
  };
52765
- return (Sn, jn) => {
52763
+ return (Cn, jn) => {
52766
52764
  const Vo = nq("click-outside");
52767
52765
  return ve(), we(fo, null, [
52768
52766
  cb(Oj, {
52769
52767
  isOpen: fe.value,
52770
- onConfirmDelete: $t,
52768
+ onConfirmDelete: Dt,
52771
52769
  onCancelDelete: Q
52772
52770
  }, null, 8, ["isOpen"]),
52773
- R.row && Sn.can(`edit_${R.xprops.permission} || delete_${R.xprops.permission}`) ? Qa((ve(), we("div", coe, [
52771
+ R.row && Cn.can(`edit_${R.xprops.permission} || delete_${R.xprops.permission}`) ? Qa((ve(), we("div", coe, [
52774
52772
  P("button", {
52775
52773
  onClick: Ae,
52776
52774
  class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
@@ -52778,7 +52776,7 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
52778
52776
  }, uoe),
52779
52777
  Qa(P("div", doe, [
52780
52778
  P("ul", moe, [
52781
- Sn.can(`edit_${R.xprops.permission}`) ? (ve(), we("li", foe, [
52779
+ Cn.can(`edit_${R.xprops.permission}`) ? (ve(), we("li", foe, [
52782
52780
  P("a", {
52783
52781
  href: R.xprops.route + "/" + R.row.id + "/edit",
52784
52782
  class: "block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"
@@ -52787,7 +52785,7 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
52787
52785
  _o(" Edit")
52788
52786
  ], 8, goe)
52789
52787
  ])) : pt("", !0),
52790
- Sn.can(`delete_${R.xprops.permission}`) ? (ve(), we("li", poe, [
52788
+ Cn.can(`delete_${R.xprops.permission}`) ? (ve(), we("li", poe, [
52791
52789
  P("a", {
52792
52790
  href: "#",
52793
52791
  onClick: oc(Pe, ["prevent"]),
@@ -52857,26 +52855,26 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
52857
52855
  fe.value = !1;
52858
52856
  }, Pe = () => {
52859
52857
  fe.value = !0;
52860
- }, it = me, $t = () => {
52858
+ }, it = me, Dt = () => {
52861
52859
  axios.delete(`${se.xprops.route}/${se.row.id}`).then(() => {
52862
52860
  Q(), it("deleteAction"), s5.methods.add({
52863
52861
  message: "Item deleted successfully.",
52864
52862
  type: "success",
52865
52863
  duration: 5e3
52866
52864
  });
52867
- }).catch((Sn) => {
52868
- console.log(Sn);
52865
+ }).catch((Cn) => {
52866
+ console.log(Cn);
52869
52867
  });
52870
52868
  };
52871
- return (Sn, jn) => {
52869
+ return (Cn, jn) => {
52872
52870
  const Vo = nq("click-outside");
52873
52871
  return ve(), we(fo, null, [
52874
52872
  cb(Oj, {
52875
52873
  isOpen: fe.value,
52876
- onConfirmDelete: $t,
52874
+ onConfirmDelete: Dt,
52877
52875
  onCancelDelete: Q
52878
52876
  }, null, 8, ["isOpen"]),
52879
- R.row && Sn.can(`delete_${R.xprops.permission}`) ? Qa((ve(), we("div", voe, [
52877
+ R.row && Cn.can(`delete_${R.xprops.permission}`) ? Qa((ve(), we("div", voe, [
52880
52878
  P("button", {
52881
52879
  onClick: Ae,
52882
52880
  class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
@@ -52884,7 +52882,7 @@ const nle = /* @__PURE__ */ Jr(Bne, [["render", Une]]), Wne = {
52884
52882
  }, woe),
52885
52883
  Qa(P("div", xoe, [
52886
52884
  P("ul", Coe, [
52887
- Sn.can(`delete_${R.xprops.permission}`) ? (ve(), we("li", Soe, [
52885
+ Cn.can(`delete_${R.xprops.permission}`) ? (ve(), we("li", Soe, [
52888
52886
  P("a", {
52889
52887
  href: "#",
52890
52888
  onClick: oc(Pe, ["prevent"]),
@@ -53527,9 +53525,9 @@ const xle = /* @__PURE__ */ Jr(ure, [["render", Cre]]), Sre = {
53527
53525
  setup(R, { expose: me }) {
53528
53526
  const se = No(""), Ee = No(""), fe = No(""), G = No("Cancel"), Ae = No(!1), Q = No(void 0), Pe = No(void 0), it = (jn = {}) => (se.value = jn.title, Ee.value = jn.message, fe.value = jn.okButton, jn.cancelButton && (G.value = jn.cancelButton), Ae.value = !0, new Promise((Vo, Us) => {
53529
53527
  Q.value = Vo, Pe.value = Us;
53530
- })), $t = () => {
53528
+ })), Dt = () => {
53531
53529
  Ae.value = !1, Q.value(!0);
53532
- }, Sn = () => {
53530
+ }, Cn = () => {
53533
53531
  Ae.value = !1, Q.value(!1);
53534
53532
  };
53535
53533
  return me({
@@ -53551,12 +53549,12 @@ const xle = /* @__PURE__ */ Jr(ure, [["render", Cre]]), Sre = {
53551
53549
  ]),
53552
53550
  P("div", Pre, [
53553
53551
  P("button", {
53554
- onClick: $t,
53552
+ onClick: Dt,
53555
53553
  type: "button",
53556
53554
  class: "inline-flex justify-center w-full px-4 py-2 text-base font-medium text-white bg-red-600 border border-transparent rounded-md shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
53557
53555
  }, ft(fe.value), 1),
53558
53556
  P("button", {
53559
- onClick: Sn,
53557
+ onClick: Cn,
53560
53558
  type: "button",
53561
53559
  class: "inline-flex justify-center w-full px-4 py-2 mt-3 text-base font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
53562
53560
  }, ft(G.value), 1)