@editora/core 1.0.22 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/README.md +247 -243
  2. package/dist/{A11yCheckerPlugin.native-qW_njhLY.mjs → A11yCheckerPlugin.native-BBCsR5Ur.mjs} +7 -5
  3. package/dist/{AnchorPlugin.native-Drmxhy98.mjs → AnchorPlugin.native-Dk9R26cF.mjs} +20 -19
  4. package/dist/{ApprovalWorkflowPlugin.native-ZsS_2xmn.mjs → ApprovalWorkflowPlugin.native-AeJsehXM.mjs} +56 -55
  5. package/dist/{BackgroundColorPlugin.native-H3XyYD7_.mjs → BackgroundColorPlugin.native-DCAd94kp.mjs} +103 -98
  6. package/dist/{BlocksLibraryPlugin.native-CownM6Rk.mjs → BlocksLibraryPlugin.native-D9OPcnQV.mjs} +42 -43
  7. package/dist/{CitationsPlugin.native-C_7wWQ-k.mjs → CitationsPlugin.native-BFChgCSV.mjs} +51 -51
  8. package/dist/{CodePlugin.native-CAHk9ecG.mjs → CodePlugin.native-BRBEIqY7.mjs} +167 -113
  9. package/dist/{CodePlugin.native-DZgIez08.mjs → CodePlugin.native-CPfKDrkr.mjs} +1383 -1094
  10. package/dist/{CodeSamplePlugin.native-svbAFWh_.mjs → CodeSamplePlugin.native-Bai8bgl3.mjs} +5 -5
  11. package/dist/{CommentsPlugin.native-DncTHiEe.mjs → CommentsPlugin.native-DHCDUm9f.mjs} +161 -141
  12. package/dist/{ConditionalContentPlugin.native-Bf7XgRSW.mjs → ConditionalContentPlugin.native-B3R6xcqn.mjs} +3 -3
  13. package/dist/{ContentRulesPlugin.native-vPx5nC73.mjs → ContentRulesPlugin.native-BISqhQKJ.mjs} +52 -52
  14. package/dist/{DataBindingPlugin.native-B7lpI_0c.mjs → DataBindingPlugin.native-DbaDeXNp.mjs} +37 -37
  15. package/dist/{DocumentManagerPlugin.native-B8K-Oqom.mjs → DocumentManagerPlugin.native-tZqIa9o5.mjs} +21 -20
  16. package/dist/{EmbedIframePlugin.native-BfZ_HGlV.mjs → EmbedIframePlugin.native-qHMf1Jtg.mjs} +7 -7
  17. package/dist/{EmojisPlugin.native-D92aaOKi.mjs → EmojisPlugin.native-B64efKg5.mjs} +4 -4
  18. package/dist/{FormatPainterPlugin.native-BhjzsiVq.mjs → FormatPainterPlugin.native-CAc1N6xU.mjs} +183 -161
  19. package/dist/{HeadingPlugin.native-DZdvubrQ.mjs → HeadingPlugin.native-C3YiGERx.mjs} +85 -72
  20. package/dist/HistoryPlugin.native-C8GyxsgC.mjs +330 -0
  21. package/dist/{LinkPlugin.native-BsQXYsK6.mjs → LinkPlugin.native-Dt_p6Ukb.mjs} +4 -4
  22. package/dist/ListPlugin.native-UYaoRiub.mjs +239 -0
  23. package/dist/{MathPlugin.native-Byo3WL0f.mjs → MathPlugin.native-Cq9WQ7cq.mjs} +148 -130
  24. package/dist/MediaManagerPlugin.native-BjrEarV6.mjs +1161 -0
  25. package/dist/{MediaManagerPlugin.native-BT1NZIJS.mjs → MediaManagerPlugin.native-CRi24Mrb.mjs} +340 -281
  26. package/dist/{MentionPlugin.native-S_lwGZQO.mjs → MentionPlugin.native-Zb1dwdxU.mjs} +304 -300
  27. package/dist/{MergeTagPlugin.native-7-6F3S1Y.mjs → MergeTagPlugin.native-BXkVPvCo.mjs} +6 -4
  28. package/dist/{PIIRedactionPlugin.native-g7j4jOmm.mjs → PIIRedactionPlugin.native-Cm0bpzQb.mjs} +2 -2
  29. package/dist/{PreviewPlugin.native-Dv5OsffK.mjs → PreviewPlugin.native-CrfiwP2J.mjs} +2 -2
  30. package/dist/{SlashCommandsPlugin.native-BDIIwGNs.mjs → SlashCommandsPlugin.native-BzGTRmMB.mjs} +264 -240
  31. package/dist/{SmartPastePlugin.native-BATLCds5.mjs → SmartPastePlugin.native-DnOJhDsf.mjs} +2 -2
  32. package/dist/{SpecialCharactersPlugin.native-CdZoc1GB.mjs → SpecialCharactersPlugin.native-B0XaCfjZ.mjs} +4 -4
  33. package/dist/{SpellCheckPlugin.native-BGm2qPfn.mjs → SpellCheckPlugin.native-BE7os1Xj.mjs} +302 -265
  34. package/dist/{TablePlugin.native-C1YZ372P.mjs → TablePlugin.native-CWxEFpV8.mjs} +159 -136
  35. package/dist/{TemplatePlugin.native-Dwk8TgxI.mjs → TemplatePlugin.native-OD8Wc1R7.mjs} +6 -4
  36. package/dist/{TextColorPlugin.native-KMZ2uzlq.mjs → TextColorPlugin.native-C2IjioNM.mjs} +75 -71
  37. package/dist/{TranslationWorkflowPlugin.native-CZtG--06.mjs → TranslationWorkflowPlugin.native-BGXVJD9f.mjs} +101 -98
  38. package/dist/{VersionDiffPlugin.native-Ca1fMWUJ.mjs → VersionDiffPlugin.native-DJZIzFSK.mjs} +11 -11
  39. package/dist/anchoredPopover-QN4jNbW1.mjs +134 -0
  40. package/dist/confirmDialog-BP8hZPpX.mjs +112 -0
  41. package/dist/dialogHelpers-Dzn8DHoF.mjs +194 -0
  42. package/dist/{documentManager-BWK_-KJp.mjs → documentManager-8gnG-uG_.mjs} +1728 -1715
  43. package/dist/editora.min.js +21 -21
  44. package/dist/editora.umd.js +10 -10
  45. package/dist/{index-C1sO7DAC.js → index--wO0CZVN.js} +6 -6
  46. package/dist/{index-DGMYWPLx.mjs → index-BICrB5kg.mjs} +397 -326
  47. package/dist/index.cjs.js +1 -1
  48. package/dist/index.esm.js +2 -2
  49. package/dist/katex-DLIObQUm.mjs +11683 -0
  50. package/dist/katex.min--Ws3c9be.mjs +6 -0
  51. package/dist/notify-DCQGpmq-.mjs +60 -0
  52. package/dist/plugin-loader.js +54 -54
  53. package/dist/webcomponent-core.js +305 -234
  54. package/dist/webcomponent-core.min.css +1 -1
  55. package/dist/webcomponent-core.min.js +153 -80
  56. package/dist/webcomponent.cjs.js +1 -1
  57. package/dist/webcomponent.esm.js +1 -1
  58. package/dist/webcomponent.js +631 -560
  59. package/dist/webcomponent.min.css +1 -1
  60. package/dist/webcomponent.min.js +1677 -1328
  61. package/package.json +1 -1
  62. package/dist/HistoryPlugin.native-DPvhks6h.mjs +0 -246
  63. package/dist/ListPlugin.native-Bt0LANbO.mjs +0 -139
  64. package/dist/anchoredPopover-DJFD2oAP.mjs +0 -116
  65. package/dist/dialogHelpers-DBf7WqYH.mjs +0 -40
@@ -579,7 +579,7 @@ class un {
579
579
  return this.isDestroyed;
580
580
  }
581
581
  }
582
- class fn {
582
+ class pn {
583
583
  constructor(t, e, o) {
584
584
  this.overflowUnits = [], this.overflowUnitHomes = /* @__PURE__ */ new WeakMap(), this.expandedOpen = !1, this.onDocumentPointerDownForOverflow = (i) => {
585
585
  var l, c;
@@ -670,58 +670,58 @@ class fn {
670
670
  codeBlock: "insertCodeBlock"
671
671
  };
672
672
  return o.forEach((c) => {
673
- const p = [];
674
- c.split(/\s+/).filter(Boolean).forEach((v) => {
675
- if (v === "direction") {
676
- const w = r.get("setDirectionLTR"), E = r.get("setDirectionRTL");
677
- w && p.push({
673
+ const f = [];
674
+ c.split(/\s+/).filter(Boolean).forEach((g) => {
675
+ if (g === "direction") {
676
+ const w = r.get("setDirectionLTR"), v = r.get("setDirectionRTL");
677
+ w && f.push({
678
678
  id: "directionLTR",
679
679
  label: w.label,
680
680
  command: w.command,
681
681
  icon: w.icon,
682
682
  type: w.type || "button",
683
683
  options: w.options
684
- }), E && p.push({
684
+ }), v && f.push({
685
685
  id: "directionRTL",
686
- label: E.label,
687
- command: E.command,
688
- icon: E.icon,
689
- type: E.type || "button",
690
- options: E.options
686
+ label: v.label,
687
+ command: v.command,
688
+ icon: v.icon,
689
+ type: v.type || "button",
690
+ options: v.options
691
691
  });
692
692
  return;
693
693
  }
694
- if (v === "comments") {
695
- const w = r.get("addComment"), E = r.get("toggleComments");
696
- w && p.push({
694
+ if (g === "comments") {
695
+ const w = r.get("addComment"), v = r.get("toggleComments");
696
+ w && f.push({
697
697
  id: "addComment",
698
698
  label: w.label,
699
699
  command: w.command,
700
700
  icon: w.icon,
701
701
  type: w.type || "button",
702
702
  options: w.options
703
- }), E && p.push({
703
+ }), v && f.push({
704
704
  id: "toggleComments",
705
- label: E.label,
706
- command: E.command,
707
- icon: E.icon,
708
- type: E.type || "button",
709
- options: E.options
705
+ label: v.label,
706
+ command: v.command,
707
+ icon: v.icon,
708
+ type: v.type || "button",
709
+ options: v.options
710
710
  });
711
711
  return;
712
712
  }
713
- const A = l[v] || v;
714
- let C = r.get(A);
715
- C || (C = r.get(v)), C && p.push({
716
- id: v,
717
- label: C.label,
718
- command: C.command,
719
- icon: C.icon,
720
- type: C.type === "separator" ? "separator" : C.type || "button",
721
- options: C.options,
722
- items: C.items
713
+ const T = l[g] || g;
714
+ let k = r.get(T);
715
+ k || (k = r.get(g)), k && f.push({
716
+ id: g,
717
+ label: k.label,
718
+ command: k.command,
719
+ icon: k.icon,
720
+ type: k.type === "separator" ? "separator" : k.type || "button",
721
+ options: k.options,
722
+ items: k.items
723
723
  });
724
- }), p.length > 0 && e.push(p);
724
+ }), f.length > 0 && e.push(f);
725
725
  }), e;
726
726
  }
727
727
  /**
@@ -740,13 +740,13 @@ class fn {
740
740
  const o = this.config.items || this.getDefaultToolbarString(), i = this.parseToolbarString(o);
741
741
  i.forEach((r, l) => {
742
742
  const c = document.createElement("div");
743
- if (c.className = "editora-toolbar-group", r.forEach((p) => {
744
- this.appendToolbarButton(c, p);
743
+ if (c.className = "editora-toolbar-group", r.forEach((f) => {
744
+ this.appendToolbarButton(c, f);
745
745
  const m = c.lastElementChild;
746
746
  m instanceof HTMLElement && (this.overflowUnits.push(m), this.overflowUnitHomes.set(m, c));
747
747
  }), e.appendChild(c), l < i.length - 1) {
748
- const p = document.createElement("div");
749
- p.className = "editora-toolbar-separator", e.appendChild(p);
748
+ const f = document.createElement("div");
749
+ f.className = "editora-toolbar-separator", e.appendChild(f);
750
750
  }
751
751
  }), t.appendChild(e), this.setupOverflow(t);
752
752
  }
@@ -763,23 +763,23 @@ class fn {
763
763
  const r = () => {
764
764
  const c = this.overflowUnits;
765
765
  if (c.length === 0) return;
766
- c.forEach((D) => {
766
+ c.forEach((O) => {
767
767
  var N;
768
- D.parentElement === i && ((N = this.overflowUnitHomes.get(D)) == null || N.appendChild(D));
768
+ O.parentElement === i && ((N = this.overflowUnitHomes.get(O)) == null || N.appendChild(O));
769
769
  });
770
- const p = t.clientWidth, m = 16, v = 40, A = 4, C = Math.max(0, p - m - v - A);
771
- let w = 0, E = 0;
772
- for (const D of c) {
773
- const N = D.getBoundingClientRect().width + A;
774
- if (w + N <= C)
775
- w += N, E++;
770
+ const f = t.clientWidth, m = 16, g = 40, T = 4, k = Math.max(0, f - m - g - T);
771
+ let w = 0, v = 0;
772
+ for (const O of c) {
773
+ const N = O.getBoundingClientRect().width + T;
774
+ if (w + N <= k)
775
+ w += N, v++;
776
776
  else
777
777
  break;
778
778
  }
779
- E = Math.max(1, Math.min(E, c.length));
780
- const K = E < c.length;
781
- o.style.display = K ? "" : "none", o.classList.toggle("active", K && this.expandedOpen), !K && this.expandedOpen && this.setExpandedOpen(!1), c.forEach((D, N) => {
782
- N >= E && i.appendChild(D);
779
+ v = Math.max(1, Math.min(v, c.length));
780
+ const K = v < c.length;
781
+ o.style.display = K ? "" : "none", o.classList.toggle("active", K && this.expandedOpen), !K && this.expandedOpen && this.setExpandedOpen(!1), c.forEach((O, N) => {
782
+ N >= v && i.appendChild(O);
783
783
  });
784
784
  }, l = () => {
785
785
  this.overflowRafId !== void 0 && cancelAnimationFrame(this.overflowRafId), this.overflowRafId = requestAnimationFrame(r);
@@ -859,6 +859,57 @@ class fn {
859
859
  o.preventDefault(), this.commandHandler && t.command && this.commandHandler(t.command);
860
860
  }), e;
861
861
  }
862
+ /**
863
+ * What a toolbar menu needs besides its look, so it can be used without a mouse: the trigger says it opens a menu
864
+ * and whether it is open, the menu and its items have menu roles, and the keyboard works in it. Enter, Space or an
865
+ * arrow key on the trigger opens it and moves the focus to the first (or, with ArrowUp, the last) item; arrows,
866
+ * Home and End move between items; Escape closes it and gives the focus back to the trigger; Tab closes it. A
867
+ * mouse click leaves the focus alone, so the editor keeps its selection.
868
+ */
869
+ makeMenuAccessible(t, e, o, i) {
870
+ e.setAttribute("aria-haspopup", "menu"), e.setAttribute("aria-expanded", "false"), o.setAttribute("role", "menu"), o.setAttribute("aria-label", i), o.querySelectorAll(".editora-toolbar-dropdown-item").forEach((m) => {
871
+ m.setAttribute("role", "menuitem"), m.tabIndex = -1;
872
+ });
873
+ const r = () => Array.from(o.querySelectorAll('[role="menuitem"]')), l = () => o.style.display === "block", c = new MutationObserver(() => {
874
+ e.setAttribute("aria-expanded", l() ? "true" : "false");
875
+ });
876
+ c.observe(o, { attributes: !0, attributeFilter: ["style"] });
877
+ const f = t._cleanupDropdown;
878
+ t._cleanupDropdown = () => {
879
+ c.disconnect(), f == null || f();
880
+ }, e.addEventListener("click", (m) => {
881
+ var g;
882
+ m.detail === 0 && l() && ((g = r()[0]) == null || g.focus());
883
+ }), e.addEventListener("keydown", (m) => {
884
+ var T;
885
+ if (m.key !== "ArrowDown" && m.key !== "ArrowUp") return;
886
+ m.preventDefault(), l() || e.click();
887
+ const g = r();
888
+ (T = m.key === "ArrowUp" ? g[g.length - 1] : g[0]) == null || T.focus();
889
+ }), o.addEventListener("keydown", (m) => {
890
+ const g = r();
891
+ if (g.length === 0) return;
892
+ const T = g.indexOf(document.activeElement), k = (w) => {
893
+ m.preventDefault(), g[(w + g.length) % g.length].focus();
894
+ };
895
+ switch (m.key) {
896
+ case "ArrowDown":
897
+ return k(T + 1);
898
+ case "ArrowUp":
899
+ return k(T < 0 ? g.length - 1 : T - 1);
900
+ case "Home":
901
+ return k(0);
902
+ case "End":
903
+ return k(g.length - 1);
904
+ case "Escape":
905
+ m.preventDefault(), m.stopPropagation(), o.style.display = "none", e.focus();
906
+ return;
907
+ case "Tab":
908
+ o.style.display = "none";
909
+ return;
910
+ }
911
+ });
912
+ }
862
913
  /**
863
914
  * Create a dropdown element
864
915
  */
@@ -869,14 +920,14 @@ class fn {
869
920
  o.className = "editora-toolbar-button editora-toolbar-dropdown-trigger", o.type = "button", o.textContent = t.label;
870
921
  const i = document.createElement("div");
871
922
  i.className = "editora-toolbar-dropdown-menu", i.style.display = "none", t.options && t.options.forEach((c) => {
872
- const p = document.createElement("button");
873
- p.className = "editora-toolbar-dropdown-item", p.type = "button", p.textContent = c.label, p.setAttribute("data-value", c.value), p.addEventListener("click", (m) => {
923
+ const f = document.createElement("button");
924
+ f.className = "editora-toolbar-dropdown-item", f.type = "button", f.textContent = c.label, f.setAttribute("data-value", c.value), f.addEventListener("click", (m) => {
874
925
  m.preventDefault(), this.setLastCommandTrigger(o, t.command), this.commandHandler && t.command && this.commandHandler(t.command, c.value), i.style.display = "none";
875
- }), i.appendChild(p);
926
+ }), i.appendChild(f);
876
927
  }), o.addEventListener("click", (c) => {
877
928
  c.preventDefault(), c.stopPropagation(), this.setLastCommandTrigger(o, t.command);
878
- const p = i.style.display === "block";
879
- i.style.display = p ? "none" : "block";
929
+ const f = i.style.display === "block";
930
+ i.style.display = f ? "none" : "block";
880
931
  });
881
932
  const r = (c) => {
882
933
  e.contains(c.target) || (i.style.display = "none");
@@ -885,7 +936,7 @@ class fn {
885
936
  };
886
937
  return document.addEventListener("mousedown", r, !0), document.addEventListener("keydown", l), e._cleanupDropdown = () => {
887
938
  document.removeEventListener("mousedown", r, !0), document.removeEventListener("keydown", l);
888
- }, e.appendChild(o), e.appendChild(i), e;
939
+ }, e.appendChild(o), e.appendChild(i), this.makeMenuAccessible(e, o, i, t.label), e;
889
940
  }
890
941
  /**
891
942
  * Create an inline menu element (like dropdown but triggered by button click)
@@ -904,18 +955,18 @@ class fn {
904
955
  o.textContent = t.label;
905
956
  const i = document.createElement("div");
906
957
  i.className = "editora-toolbar-dropdown-menu", i.style.display = "none", t.options && t.options.forEach((c) => {
907
- const p = document.createElement("button");
908
- p.className = "editora-toolbar-dropdown-item", p.type = "button", p.textContent = c.label, p.setAttribute("data-value", c.value), p.addEventListener("click", (m) => {
958
+ const f = document.createElement("button");
959
+ f.className = "editora-toolbar-dropdown-item", f.type = "button", f.textContent = c.label, f.setAttribute("data-value", c.value), f.addEventListener("click", (m) => {
909
960
  m.preventDefault(), m.stopPropagation(), this.setLastCommandTrigger(o, t.command), this.commandHandler && t.command && this.commandHandler(t.command, c.value), i.style.display = "none";
910
- }), i.appendChild(p);
961
+ }), i.appendChild(f);
911
962
  }), o.addEventListener("click", (c) => {
912
963
  var m;
913
964
  c.preventDefault(), c.stopPropagation(), this.setLastCommandTrigger(o, t.command);
914
- const p = (m = this.container) == null ? void 0 : m.querySelectorAll(
965
+ const f = (m = this.container) == null ? void 0 : m.querySelectorAll(
915
966
  ".editora-toolbar-dropdown-menu"
916
967
  );
917
- p == null || p.forEach((v) => {
918
- v !== i && (v.style.display = "none");
968
+ f == null || f.forEach((g) => {
969
+ g !== i && (g.style.display = "none");
919
970
  }), i.style.display = i.style.display === "none" ? "block" : "none";
920
971
  });
921
972
  const r = (c) => {
@@ -925,7 +976,7 @@ class fn {
925
976
  };
926
977
  return document.addEventListener("mousedown", r, !0), document.addEventListener("keydown", l), e._cleanupDropdown = () => {
927
978
  document.removeEventListener("mousedown", r, !0), document.removeEventListener("keydown", l);
928
- }, e.appendChild(o), e.appendChild(i), e;
979
+ }, e.appendChild(o), e.appendChild(i), this.makeMenuAccessible(e, o, i, t.label), e;
929
980
  }
930
981
  /**
931
982
  * Get default toolbar string if none provided
@@ -954,7 +1005,7 @@ class fn {
954
1005
  }), this.container.innerHTML = ""), (t = this.resizeObserver) == null || t.disconnect(), this.resizeObserver = void 0, this.overflowRafId !== void 0 && cancelAnimationFrame(this.overflowRafId), document.removeEventListener("mousedown", this.onDocumentPointerDownForOverflow, !0), this.itemsContainer = void 0, this.moreButton = void 0, this.expandedRow = void 0, this.commandHandler = void 0;
955
1006
  }
956
1007
  }
957
- class pn {
1008
+ class fn {
958
1009
  constructor(t) {
959
1010
  this.visible = !1, this.config = t;
960
1011
  }
@@ -1038,14 +1089,14 @@ class hn {
1038
1089
  }), o.forEach((r, l) => {
1039
1090
  const c = document.createElement("span");
1040
1091
  if (c.className = "editora-statusbar-item", c.textContent = r, t.appendChild(c), l < o.length - 1) {
1041
- const p = document.createElement("span");
1042
- p.className = "editora-statusbar-separator", p.textContent = "|", t.appendChild(p);
1092
+ const f = document.createElement("span");
1093
+ f.className = "editora-statusbar-separator", f.textContent = "|", t.appendChild(f);
1043
1094
  }
1044
1095
  }), i.forEach((r, l) => {
1045
1096
  const c = document.createElement("span");
1046
1097
  if (c.className = "editora-statusbar-item", c.textContent = r, e.appendChild(c), l < i.length - 1) {
1047
- const p = document.createElement("span");
1048
- p.className = "editora-statusbar-separator", p.textContent = "|", e.appendChild(p);
1098
+ const f = document.createElement("span");
1099
+ f.className = "editora-statusbar-separator", f.textContent = "|", e.appendChild(f);
1049
1100
  }
1050
1101
  }), this.container.appendChild(t), this.container.appendChild(e);
1051
1102
  }
@@ -1121,14 +1172,14 @@ function vn(s) {
1121
1172
  function wn(s, t) {
1122
1173
  var e = s == null ? null : typeof Symbol != "undefined" && s[Symbol.iterator] || s["@@iterator"];
1123
1174
  if (e != null) {
1124
- var o, i, r, l, c = [], p = !0, m = !1;
1175
+ var o, i, r, l, c = [], f = !0, m = !1;
1125
1176
  try {
1126
- if (r = (e = e.call(s)).next, t !== 0) for (; !(p = (o = r.call(e)).done) && (c.push(o.value), c.length !== t); p = !0) ;
1127
- } catch (v) {
1128
- m = !0, i = v;
1177
+ if (r = (e = e.call(s)).next, t !== 0) for (; !(f = (o = r.call(e)).done) && (c.push(o.value), c.length !== t); f = !0) ;
1178
+ } catch (g) {
1179
+ m = !0, i = g;
1129
1180
  } finally {
1130
1181
  try {
1131
- if (!p && e.return != null && (l = e.return(), Object(l) !== l)) return;
1182
+ if (!f && e.return != null && (l = e.return(), Object(l) !== l)) return;
1132
1183
  } finally {
1133
1184
  if (m) throw i;
1134
1185
  }
@@ -1166,7 +1217,7 @@ Te || (Te = function(t) {
1166
1217
  for (var e = arguments.length, o = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++) o[i - 1] = arguments[i];
1167
1218
  return new t(...o);
1168
1219
  });
1169
- const it = L(Array.prototype.forEach), _n = L(Array.prototype.lastIndexOf), ao = L(Array.prototype.pop), kt = L(Array.prototype.push), Ln = L(Array.prototype.splice), bt = Array.isArray, _t = L(String.prototype.toLowerCase), pe = L(String.prototype.toString), so = L(String.prototype.match), xt = L(String.prototype.replace), lo = L(String.prototype.indexOf), Mn = L(String.prototype.trim), In = L(Number.prototype.toString), On = L(Boolean.prototype.toString), co = typeof BigInt == "undefined" ? null : L(BigInt.prototype.toString), uo = typeof Symbol == "undefined" ? null : L(Symbol.prototype.toString), z = L(Object.prototype.hasOwnProperty), At = L(Object.prototype.toString), O = L(RegExp.prototype.test), X = Dn(TypeError);
1220
+ const it = L(Array.prototype.forEach), _n = L(Array.prototype.lastIndexOf), ao = L(Array.prototype.pop), kt = L(Array.prototype.push), Ln = L(Array.prototype.splice), bt = Array.isArray, _t = L(String.prototype.toLowerCase), fe = L(String.prototype.toString), so = L(String.prototype.match), xt = L(String.prototype.replace), lo = L(String.prototype.indexOf), Mn = L(String.prototype.trim), In = L(Number.prototype.toString), Dn = L(Boolean.prototype.toString), co = typeof BigInt == "undefined" ? null : L(BigInt.prototype.toString), uo = typeof Symbol == "undefined" ? null : L(Symbol.prototype.toString), z = L(Object.prototype.hasOwnProperty), At = L(Object.prototype.toString), D = L(RegExp.prototype.test), X = On(TypeError);
1170
1221
  function L(s) {
1171
1222
  return function(t) {
1172
1223
  t instanceof RegExp && (t.lastIndex = 0);
@@ -1174,13 +1225,13 @@ function L(s) {
1174
1225
  return we(s, t, o);
1175
1226
  };
1176
1227
  }
1177
- function Dn(s) {
1228
+ function On(s) {
1178
1229
  return function() {
1179
1230
  for (var t = arguments.length, e = new Array(t), o = 0; o < t; o++) e[o] = arguments[o];
1180
1231
  return Te(s, e);
1181
1232
  };
1182
1233
  }
1183
- function y(s, t) {
1234
+ function E(s, t) {
1184
1235
  let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _t;
1185
1236
  if (ro && ro(s, null), !bt(t)) return s;
1186
1237
  let o = t.length;
@@ -1198,12 +1249,12 @@ function Rn(s) {
1198
1249
  for (let t = 0; t < s.length; t++) z(s, t) || (s[t] = null);
1199
1250
  return s;
1200
1251
  }
1201
- function H(s) {
1252
+ function F(s) {
1202
1253
  const t = mt(null);
1203
1254
  for (const o of Co(s)) {
1204
1255
  var e = kn(o, 2);
1205
1256
  const i = e[0], r = e[1];
1206
- z(s, i) && (bt(r) ? t[i] = Rn(r) : r && typeof r == "object" && r.constructor === Object ? t[i] = H(r) : t[i] = r);
1257
+ z(s, i) && (bt(r) ? t[i] = Rn(r) : r && typeof r == "object" && r.constructor === Object ? t[i] = F(r) : t[i] = r);
1207
1258
  }
1208
1259
  return t;
1209
1260
  }
@@ -1214,7 +1265,7 @@ function Nn(s) {
1214
1265
  case "number":
1215
1266
  return In(s);
1216
1267
  case "boolean":
1217
- return On(s);
1268
+ return Dn(s);
1218
1269
  case "bigint":
1219
1270
  return co ? co(s) : "0";
1220
1271
  case "symbol":
@@ -1251,12 +1302,12 @@ function j(s, t) {
1251
1302
  }
1252
1303
  function Pn(s) {
1253
1304
  try {
1254
- return O(s, ""), !0;
1305
+ return D(s, ""), !0;
1255
1306
  } catch (t) {
1256
1307
  return !1;
1257
1308
  }
1258
1309
  }
1259
- const fo = M([
1310
+ const po = M([
1260
1311
  "a",
1261
1312
  "abbr",
1262
1313
  "acronym",
@@ -1504,7 +1555,7 @@ const fo = M([
1504
1555
  "munder",
1505
1556
  "munderover",
1506
1557
  "mprescripts"
1507
- ]), Bn = M([
1558
+ ]), Hn = M([
1508
1559
  "maction",
1509
1560
  "maligngroup",
1510
1561
  "malignmark",
@@ -1520,7 +1571,7 @@ const fo = M([
1520
1571
  "annotation-xml",
1521
1572
  "mprescripts",
1522
1573
  "none"
1523
- ]), po = M(["#text"]), ho = M([
1574
+ ]), fo = M(["#text"]), ho = M([
1524
1575
  "accept",
1525
1576
  "action",
1526
1577
  "align",
@@ -1893,7 +1944,7 @@ const fo = M([
1893
1944
  "xlink:title",
1894
1945
  "xml:space",
1895
1946
  "xmlns:xlink"
1896
- ]), Fn = I(/{{[\w\W]*|^[\w\W]*}}/g), Hn = I(/<%[\w\W]*|^[\w\W]*%>/g), Un = I(/\${[\w\W]*/g), jn = I(/^data-[\-\w.\u00B7-\uFFFF]+$/), Wn = I(/^aria-[\-\w]+$/), go = I(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), $n = I(/^(?:\w+script|data):/i), Gn = I(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Kn = I(/^html$/i), Yn = I(/^[a-z][.\w]*(-[.\w]+)+$/i), bo = I(/<[/\w!]/g), yo = I(/<[/\w]/g), qn = I(/<\/no(script|embed|frames)/i), Vn = I(/\/>/i), F = {
1947
+ ]), Bn = I(/{{[\w\W]*|^[\w\W]*}}/g), Fn = I(/<%[\w\W]*|^[\w\W]*%>/g), Un = I(/\${[\w\W]*/g), jn = I(/^data-[\-\w.\u00B7-\uFFFF]+$/), Wn = I(/^aria-[\-\w]+$/), go = I(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), $n = I(/^(?:\w+script|data):/i), Gn = I(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Kn = I(/^html$/i), Yn = I(/^[a-z][.\w]*(-[.\w]+)+$/i), bo = I(/<[/\w!]/g), yo = I(/<[/\w]/g), qn = I(/<\/no(script|embed|frames)/i), Vn = I(/\/>/i), B = {
1897
1948
  element: 1,
1898
1949
  attribute: 2,
1899
1950
  text: 3,
@@ -1915,7 +1966,7 @@ const fo = M([
1915
1966
  "noframes",
1916
1967
  "plaintext",
1917
1968
  "noscript"
1918
- ], Xn = M(y({}, _o)), Zn = (function() {
1969
+ ], Xn = M(E({}, _o)), Zn = (function() {
1919
1970
  const s = {};
1920
1971
  return it(_o, (t) => {
1921
1972
  s[t] = I(new RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
@@ -1953,22 +2004,22 @@ const fo = M([
1953
2004
  uponSanitizeShadowNode: []
1954
2005
  };
1955
2006
  }, Z = function(t, e, o, i) {
1956
- return z(t, e) && bt(t[e]) ? y(i.base ? H(i.base) : {}, t[e], i.transform) : o;
2007
+ return z(t, e) && bt(t[e]) ? E(i.base ? F(i.base) : {}, t[e], i.transform) : o;
1957
2008
  }, ye = function(t, e, o) {
1958
2009
  const i = z(t, e) ? t[e] : void 0;
1959
- return i && typeof i == "object" ? H(i) : o();
2010
+ return i && typeof i == "object" ? F(i) : o();
1960
2011
  };
1961
2012
  function Lo() {
1962
2013
  let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Jn();
1963
2014
  const t = (u) => Lo(u);
1964
- if (t.version = "3.4.16", t.removed = [], !s || !s.document || s.document.nodeType !== F.document || !s.Element)
2015
+ if (t.version = "3.4.16", t.removed = [], !s || !s.document || s.document.nodeType !== B.document || !s.Element)
1965
2016
  return t.isSupported = !1, t;
1966
2017
  let e = s.document;
1967
2018
  const o = e, i = o.currentScript;
1968
2019
  s.DocumentFragment;
1969
- const r = s.HTMLTemplateElement, l = s.Node, c = s.Element, p = s.NodeFilter;
2020
+ const r = s.HTMLTemplateElement, l = s.Node, c = s.Element, f = s.NodeFilter;
1970
2021
  s.NamedNodeMap === void 0 && (s.NamedNodeMap || s.MozNamedAttrMap), s.HTMLFormElement;
1971
- const m = s.DOMParser, v = s.trustedTypes, A = c.prototype, C = j(A, "cloneNode"), w = j(A, "remove"), E = j(A, "removeAttributeNode"), K = j(A, "nextSibling"), D = j(A, "childNodes"), N = j(A, "parentNode"), Ae = j(A, "shadowRoot"), qt = j(A, "attributes"), Q = l && l.prototype ? j(l.prototype, "nodeType") : null, rt = l && l.prototype ? j(l.prototype, "nodeName") : null, Lt = l && l.prototype ? j(l.prototype, "ownerDocument") : null, yt = function(n) {
2022
+ const m = s.DOMParser, g = s.trustedTypes, T = c.prototype, k = j(T, "cloneNode"), w = j(T, "remove"), v = j(T, "removeAttributeNode"), K = j(T, "nextSibling"), O = j(T, "childNodes"), N = j(T, "parentNode"), Ae = j(T, "shadowRoot"), qt = j(T, "attributes"), Q = l && l.prototype ? j(l.prototype, "nodeType") : null, rt = l && l.prototype ? j(l.prototype, "nodeName") : null, Lt = l && l.prototype ? j(l.prototype, "ownerDocument") : null, yt = function(n) {
1972
2023
  return Q ? Q(n) : n.nodeType;
1973
2024
  }, Vt = function(n) {
1974
2025
  return rt ? rt(n) : n.nodeName;
@@ -1987,7 +2038,7 @@ function Lo() {
1987
2038
  } finally {
1988
2039
  Et--;
1989
2040
  }
1990
- }, Do = function(n) {
2041
+ }, Oo = function(n) {
1991
2042
  Se(), Et++;
1992
2043
  try {
1993
2044
  return P.createScriptURL(n);
@@ -1995,21 +2046,21 @@ function Lo() {
1995
2046
  Et--;
1996
2047
  }
1997
2048
  }, Ro = function() {
1998
- return Ce || (Xt = Qn(v, i), Ce = !0), Xt;
2049
+ return Ce || (Xt = Qn(g, i), Ce = !0), Xt;
1999
2050
  }, Mt = e, Zt = Mt.implementation, _e = Mt.createNodeIterator, No = Mt.createDocumentFragment, Po = Mt.getElementsByTagName, zo = o.importNode;
2000
- let T = Eo();
2051
+ let x = Eo();
2001
2052
  t.isSupported = typeof Co == "function" && typeof N == "function" && Zt && Zt.createHTMLDocument !== void 0;
2002
- const Bo = Fn, Fo = Hn, Ho = Un, Uo = jn, jo = Wn, Wo = $n, Le = Gn, $o = Yn;
2003
- let Me = go, k = null;
2004
- const Jt = y({}, [
2005
- ...fo,
2053
+ const Ho = Bn, Bo = Fn, Fo = Un, Uo = jn, jo = Wn, Wo = $n, Le = Gn, $o = Yn;
2054
+ let Me = go, A = null;
2055
+ const Jt = E({}, [
2056
+ ...po,
2006
2057
  ...he,
2007
2058
  ...me,
2008
2059
  ...ge,
2009
- ...po
2060
+ ...fo
2010
2061
  ]);
2011
- let x = null;
2012
- const Qt = y({}, [
2062
+ let C = null;
2063
+ const Qt = E({}, [
2013
2064
  ...ho,
2014
2065
  ...be,
2015
2066
  ...mo,
@@ -2049,10 +2100,10 @@ function Lo() {
2049
2100
  value: null
2050
2101
  }
2051
2102
  }));
2052
- let Oe = !0, te = !0, De = !1, Re = !0, q = !1, et = !0, ot = !1, ee = !1, It = null, Ot = null, oe = !1, st = !1, Dt = !1, Rt = !1, Ne = !0, Pe = !1;
2103
+ let De = !0, te = !0, Oe = !1, Re = !0, q = !1, et = !0, ot = !1, ee = !1, It = null, Dt = null, oe = !1, st = !1, Ot = !1, Rt = !1, Ne = !0, Pe = !1;
2053
2104
  const ze = "user-content-";
2054
2105
  let ne = !0, ie = !1, lt = {}, ct = null;
2055
- const Be = y({}, [
2106
+ const He = E({}, [
2056
2107
  "annotation-xml",
2057
2108
  "audio",
2058
2109
  "colgroup",
@@ -2080,8 +2131,8 @@ function Lo() {
2080
2131
  "video",
2081
2132
  "xmp"
2082
2133
  ]);
2083
- let Fe = null;
2084
- const He = y({}, [
2134
+ let Be = null;
2135
+ const Fe = E({}, [
2085
2136
  "audio",
2086
2137
  "video",
2087
2138
  "img",
@@ -2090,7 +2141,7 @@ function Lo() {
2090
2141
  "track"
2091
2142
  ]);
2092
2143
  let Ue = null;
2093
- const je = y({}, [
2144
+ const je = E({}, [
2094
2145
  "alt",
2095
2146
  "class",
2096
2147
  "for",
@@ -2107,21 +2158,21 @@ function Lo() {
2107
2158
  "xmlns"
2108
2159
  ]), Nt = "http://www.w3.org/1998/Math/MathML", Pt = "http://www.w3.org/2000/svg", $ = "http://www.w3.org/1999/xhtml";
2109
2160
  let dt = $, re = !1, ae = null;
2110
- const Go = y({}, [
2161
+ const Go = E({}, [
2111
2162
  Nt,
2112
2163
  Pt,
2113
2164
  $
2114
- ], pe), We = M([
2165
+ ], fe), We = M([
2115
2166
  "mi",
2116
2167
  "mo",
2117
2168
  "mn",
2118
2169
  "ms",
2119
2170
  "mtext"
2120
2171
  ]);
2121
- let se = y({}, We);
2172
+ let se = E({}, We);
2122
2173
  const $e = M(["annotation-xml"]);
2123
- let le = y({}, $e);
2124
- const Ko = y({}, [
2174
+ let le = E({}, $e);
2175
+ const Ko = E({}, [
2125
2176
  "title",
2126
2177
  "style",
2127
2178
  "font",
@@ -2136,35 +2187,35 @@ function Lo() {
2136
2187
  }, ce = function() {
2137
2188
  let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2138
2189
  if (ut && ut === n) return;
2139
- (!n || typeof n != "object") && (n = {}), n = H(n), wt = Yo.indexOf(n.PARSER_MEDIA_TYPE) === -1 ? qo : n.PARSER_MEDIA_TYPE, _ = wt === "application/xhtml+xml" ? pe : _t, k = Z(n, "ALLOWED_TAGS", Jt, { transform: _ }), x = Z(n, "ALLOWED_ATTR", Qt, { transform: _ }), ae = Z(n, "ALLOWED_NAMESPACES", Go, { transform: pe }), Ue = Z(n, "ADD_URI_SAFE_ATTR", je, {
2190
+ (!n || typeof n != "object") && (n = {}), n = F(n), wt = Yo.indexOf(n.PARSER_MEDIA_TYPE) === -1 ? qo : n.PARSER_MEDIA_TYPE, _ = wt === "application/xhtml+xml" ? fe : _t, A = Z(n, "ALLOWED_TAGS", Jt, { transform: _ }), C = Z(n, "ALLOWED_ATTR", Qt, { transform: _ }), ae = Z(n, "ALLOWED_NAMESPACES", Go, { transform: fe }), Ue = Z(n, "ADD_URI_SAFE_ATTR", je, {
2140
2191
  transform: _,
2141
2192
  base: je
2142
- }), Fe = Z(n, "ADD_DATA_URI_TAGS", He, {
2193
+ }), Be = Z(n, "ADD_DATA_URI_TAGS", Fe, {
2143
2194
  transform: _,
2144
- base: He
2145
- }), ct = Z(n, "FORBID_CONTENTS", Be, { transform: _ }), vt = Z(n, "FORBID_TAGS", H({}), { transform: _ }), Ie = Z(n, "FORBID_ATTR", H({}), { transform: _ }), lt = z(n, "USE_PROFILES") ? n.USE_PROFILES && typeof n.USE_PROFILES == "object" ? H(n.USE_PROFILES) : n.USE_PROFILES : !1, Oe = n.ALLOW_ARIA_ATTR !== !1, te = n.ALLOW_DATA_ATTR !== !1, De = n.ALLOW_UNKNOWN_PROTOCOLS || !1, Re = n.ALLOW_SELF_CLOSE_IN_ATTR !== !1, q = n.SAFE_FOR_TEMPLATES || !1, et = n.SAFE_FOR_XML !== !1, ot = n.WHOLE_DOCUMENT || !1, st = n.RETURN_DOM || !1, Dt = n.RETURN_DOM_FRAGMENT || !1, Rt = n.RETURN_TRUSTED_TYPE || !1, oe = n.FORCE_BODY || !1, Ne = n.SANITIZE_DOM !== !1, Pe = n.SANITIZE_NAMED_PROPS || !1, ne = n.KEEP_CONTENT !== !1, ie = n.IN_PLACE || !1, Me = Pn(n.ALLOWED_URI_REGEXP) ? n.ALLOWED_URI_REGEXP : go, dt = typeof n.NAMESPACE == "string" ? n.NAMESPACE : $, se = ye(n, "MATHML_TEXT_INTEGRATION_POINTS", () => y({}, We)), le = ye(n, "HTML_INTEGRATION_POINTS", () => y({}, $e));
2195
+ base: Fe
2196
+ }), ct = Z(n, "FORBID_CONTENTS", He, { transform: _ }), vt = Z(n, "FORBID_TAGS", F({}), { transform: _ }), Ie = Z(n, "FORBID_ATTR", F({}), { transform: _ }), lt = z(n, "USE_PROFILES") ? n.USE_PROFILES && typeof n.USE_PROFILES == "object" ? F(n.USE_PROFILES) : n.USE_PROFILES : !1, De = n.ALLOW_ARIA_ATTR !== !1, te = n.ALLOW_DATA_ATTR !== !1, Oe = n.ALLOW_UNKNOWN_PROTOCOLS || !1, Re = n.ALLOW_SELF_CLOSE_IN_ATTR !== !1, q = n.SAFE_FOR_TEMPLATES || !1, et = n.SAFE_FOR_XML !== !1, ot = n.WHOLE_DOCUMENT || !1, st = n.RETURN_DOM || !1, Ot = n.RETURN_DOM_FRAGMENT || !1, Rt = n.RETURN_TRUSTED_TYPE || !1, oe = n.FORCE_BODY || !1, Ne = n.SANITIZE_DOM !== !1, Pe = n.SANITIZE_NAMED_PROPS || !1, ne = n.KEEP_CONTENT !== !1, ie = n.IN_PLACE || !1, Me = Pn(n.ALLOWED_URI_REGEXP) ? n.ALLOWED_URI_REGEXP : go, dt = typeof n.NAMESPACE == "string" ? n.NAMESPACE : $, se = ye(n, "MATHML_TEXT_INTEGRATION_POINTS", () => E({}, We)), le = ye(n, "HTML_INTEGRATION_POINTS", () => E({}, $e));
2146
2197
  const a = ye(n, "CUSTOM_ELEMENT_HANDLING", () => mt(null));
2147
- if (W = mt(null), z(a, "tagNameCheck") && Ge(a.tagNameCheck) && (W.tagNameCheck = a.tagNameCheck), z(a, "attributeNameCheck") && Ge(a.attributeNameCheck) && (W.attributeNameCheck = a.attributeNameCheck), z(a, "allowCustomizedBuiltInElements") && typeof a.allowCustomizedBuiltInElements == "boolean" && (W.allowCustomizedBuiltInElements = a.allowCustomizedBuiltInElements), I(W), q && (te = !1), Dt && (st = !0), lt && (k = y({}, po), x = mt(null), lt.html === !0 && (y(k, fo), y(x, ho)), lt.svg === !0 && (y(k, he), y(x, be), y(x, Wt)), lt.svgFilters === !0 && (y(k, me), y(x, be), y(x, Wt)), lt.mathMl === !0 && (y(k, ge), y(x, mo), y(x, Wt))), Y.tagCheck = null, Y.attributeCheck = null, z(n, "ADD_TAGS") && (typeof n.ADD_TAGS == "function" ? Y.tagCheck = n.ADD_TAGS : bt(n.ADD_TAGS) && (k === Jt && (k = H(k)), y(k, n.ADD_TAGS, _))), z(n, "ADD_ATTR") && (typeof n.ADD_ATTR == "function" ? Y.attributeCheck = n.ADD_ATTR : bt(n.ADD_ATTR) && (x === Qt && (x = H(x)), y(x, n.ADD_ATTR, _))), z(n, "ADD_FORBID_CONTENTS") && bt(n.ADD_FORBID_CONTENTS) && (ct === Be && (ct = H(ct)), y(ct, n.ADD_FORBID_CONTENTS, _)), ne && (k["#text"] = !0), ot && y(k, [
2198
+ if (W = mt(null), z(a, "tagNameCheck") && Ge(a.tagNameCheck) && (W.tagNameCheck = a.tagNameCheck), z(a, "attributeNameCheck") && Ge(a.attributeNameCheck) && (W.attributeNameCheck = a.attributeNameCheck), z(a, "allowCustomizedBuiltInElements") && typeof a.allowCustomizedBuiltInElements == "boolean" && (W.allowCustomizedBuiltInElements = a.allowCustomizedBuiltInElements), I(W), q && (te = !1), Ot && (st = !0), lt && (A = E({}, fo), C = mt(null), lt.html === !0 && (E(A, po), E(C, ho)), lt.svg === !0 && (E(A, he), E(C, be), E(C, Wt)), lt.svgFilters === !0 && (E(A, me), E(C, be), E(C, Wt)), lt.mathMl === !0 && (E(A, ge), E(C, mo), E(C, Wt))), Y.tagCheck = null, Y.attributeCheck = null, z(n, "ADD_TAGS") && (typeof n.ADD_TAGS == "function" ? Y.tagCheck = n.ADD_TAGS : bt(n.ADD_TAGS) && (A === Jt && (A = F(A)), E(A, n.ADD_TAGS, _))), z(n, "ADD_ATTR") && (typeof n.ADD_ATTR == "function" ? Y.attributeCheck = n.ADD_ATTR : bt(n.ADD_ATTR) && (C === Qt && (C = F(C)), E(C, n.ADD_ATTR, _))), z(n, "ADD_FORBID_CONTENTS") && bt(n.ADD_FORBID_CONTENTS) && (ct === He && (ct = F(ct)), E(ct, n.ADD_FORBID_CONTENTS, _)), ne && (A["#text"] = !0), ot && E(A, [
2148
2199
  "html",
2149
2200
  "head",
2150
2201
  "body"
2151
- ]), k.table && (y(k, ["tbody"]), delete vt.tbody), n.TRUSTED_TYPES_POLICY) {
2202
+ ]), A.table && (E(A, ["tbody"]), delete vt.tbody), n.TRUSTED_TYPES_POLICY) {
2152
2203
  if (typeof n.TRUSTED_TYPES_POLICY.createHTML != "function") throw X('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2153
2204
  if (typeof n.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw X('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
2154
2205
  const d = P;
2155
2206
  P = n.TRUSTED_TYPES_POLICY;
2156
2207
  try {
2157
2208
  tt = at("");
2158
- } catch (f) {
2159
- throw P = d, f;
2209
+ } catch (p) {
2210
+ throw P = d, p;
2160
2211
  }
2161
2212
  } else n.TRUSTED_TYPES_POLICY === null ? (P = void 0, tt = "") : (P === void 0 && (P = Ro()), P && typeof tt == "string" && (tt = at("")));
2162
2213
  M && M(n), ut = n;
2163
- }, Ke = y({}, [
2214
+ }, Ke = E({}, [
2164
2215
  ...he,
2165
2216
  ...me,
2166
2217
  ...zn
2167
- ]), Ye = y({}, [...ge, ...Bn]), Xo = function(n, a, d) {
2218
+ ]), Ye = E({}, [...ge, ...Hn]), Xo = function(n, a, d) {
2168
2219
  return a.namespaceURI === $ ? n === "svg" : a.namespaceURI === Nt ? n === "svg" && (d === "annotation-xml" || se[d]) : !!Ke[n];
2169
2220
  }, Zo = function(n, a, d) {
2170
2221
  return a.namespaceURI === $ ? n === "math" : a.namespaceURI === Pt ? n === "math" && le[d] : !!Ye[n];
@@ -2176,8 +2227,8 @@ function Lo() {
2176
2227
  namespaceURI: dt,
2177
2228
  tagName: "template"
2178
2229
  });
2179
- const d = _t(n.tagName), f = _t(a.tagName);
2180
- return ae[n.namespaceURI] ? n.namespaceURI === Pt ? Xo(d, a, f) : n.namespaceURI === Nt ? Zo(d, a, f) : n.namespaceURI === $ ? Jo(d, a, f) : !!(wt === "application/xhtml+xml" && ae[n.namespaceURI]) : !1;
2230
+ const d = _t(n.tagName), p = _t(a.tagName);
2231
+ return ae[n.namespaceURI] ? n.namespaceURI === Pt ? Xo(d, a, p) : n.namespaceURI === Nt ? Zo(d, a, p) : n.namespaceURI === $ ? Jo(d, a, p) : !!(wt === "application/xhtml+xml" && ae[n.namespaceURI]) : !1;
2181
2232
  }, V = function(n) {
2182
2233
  kt(t.removed, { element: n });
2183
2234
  try {
@@ -2187,36 +2238,36 @@ function Lo() {
2187
2238
  }
2188
2239
  }, qe = function(n, a, d) {
2189
2240
  try {
2190
- E(n, a);
2191
- } catch (f) {
2241
+ v(n, a);
2242
+ } catch (p) {
2192
2243
  try {
2193
2244
  n.removeAttribute(d);
2194
2245
  } catch (h) {
2195
2246
  }
2196
2247
  }
2197
2248
  }, zt = function(n) {
2198
- Bt(n);
2199
- const a = D(n);
2249
+ Ht(n);
2250
+ const a = O(n);
2200
2251
  if (a) {
2201
- const f = [];
2252
+ const p = [];
2202
2253
  it(a, (h) => {
2203
- kt(f, h);
2204
- }), it(f, (h) => {
2254
+ kt(p, h);
2255
+ }), it(p, (h) => {
2205
2256
  try {
2206
2257
  w(h);
2207
- } catch (g) {
2258
+ } catch (b) {
2208
2259
  }
2209
2260
  });
2210
2261
  }
2211
2262
  const d = qt(n);
2212
- if (d) for (let f = d.length - 1; f >= 0; --f) {
2213
- const h = d[f], g = h && h.name;
2214
- typeof g == "string" && qe(n, h, g);
2263
+ if (d) for (let p = d.length - 1; p >= 0; --p) {
2264
+ const h = d[p], b = h && h.name;
2265
+ typeof b == "string" && qe(n, h, b);
2215
2266
  }
2216
2267
  }, nt = function(n, a, d) {
2217
2268
  if (!d) try {
2218
2269
  d = a.getAttributeNode(n);
2219
- } catch (f) {
2270
+ } catch (p) {
2220
2271
  d = null;
2221
2272
  }
2222
2273
  kt(t.removed, {
@@ -2224,36 +2275,36 @@ function Lo() {
2224
2275
  from: a
2225
2276
  });
2226
2277
  try {
2227
- d ? E(a, d) : a.removeAttribute(n);
2228
- } catch (f) {
2278
+ d ? v(a, d) : a.removeAttribute(n);
2279
+ } catch (p) {
2229
2280
  try {
2230
2281
  a.removeAttribute(n);
2231
2282
  } catch (h) {
2232
2283
  }
2233
2284
  }
2234
2285
  if (n === "is")
2235
- if (st || Dt) try {
2286
+ if (st || Ot) try {
2236
2287
  V(a);
2237
- } catch (f) {
2288
+ } catch (p) {
2238
2289
  }
2239
2290
  else try {
2240
2291
  a.setAttribute(n, "");
2241
- } catch (f) {
2292
+ } catch (p) {
2242
2293
  }
2243
2294
  }, tn = function(n) {
2244
2295
  const a = qt(n);
2245
2296
  if (a)
2246
2297
  for (let d = a.length - 1; d >= 0; --d) {
2247
- const f = a[d], h = f && f.name;
2248
- typeof h != "string" || x[_(h)] || qe(n, f, h);
2298
+ const p = a[d], h = p && p.name;
2299
+ typeof h != "string" || C[_(h)] || qe(n, p, h);
2249
2300
  }
2250
- }, Bt = function(n) {
2301
+ }, Ht = function(n) {
2251
2302
  const a = [n];
2252
2303
  for (; a.length > 0; ) {
2253
2304
  const d = a.pop();
2254
- yt(d) === F.element && tn(d);
2255
- const f = D(d);
2256
- if (f) for (let h = f.length - 1; h >= 0; --h) a.push(f[h]);
2305
+ yt(d) === B.element && tn(d);
2306
+ const p = O(d);
2307
+ if (p) for (let h = p.length - 1; h >= 0; --h) a.push(p[h]);
2257
2308
  }
2258
2309
  }, Ve = function(n, a) {
2259
2310
  return et ? n === "patchsrc" ? !0 : n === "for" && a !== "label" && a !== "output" : !1;
@@ -2261,69 +2312,69 @@ function Lo() {
2261
2312
  if (!et) return;
2262
2313
  const a = [n];
2263
2314
  for (; a.length > 0; ) {
2264
- const d = a.pop(), f = yt(d);
2265
- if (f === F.processingInstruction || f === F.comment && O(yo, d.data)) {
2315
+ const d = a.pop(), p = yt(d);
2316
+ if (p === B.processingInstruction || p === B.comment && D(yo, d.data)) {
2266
2317
  try {
2267
2318
  w(d);
2268
- } catch (g) {
2319
+ } catch (b) {
2269
2320
  }
2270
2321
  continue;
2271
2322
  }
2272
- if (f === F.element) {
2273
- const g = d, b = _(Vt(d));
2323
+ if (p === B.element) {
2324
+ const b = d, y = _(Vt(d));
2274
2325
  try {
2275
- g.hasAttribute && g.hasAttribute("patchsrc") && g.removeAttribute("patchsrc"), g.hasAttribute && g.hasAttribute("for") && Ve("for", b) && g.removeAttribute("for");
2326
+ b.hasAttribute && b.hasAttribute("patchsrc") && b.removeAttribute("patchsrc"), b.hasAttribute && b.hasAttribute("for") && Ve("for", y) && b.removeAttribute("for");
2276
2327
  } catch (S) {
2277
2328
  }
2278
2329
  }
2279
- const h = D(d);
2280
- if (h) for (let g = h.length - 1; g >= 0; --g) a.push(h[g]);
2330
+ const h = O(d);
2331
+ if (h) for (let b = h.length - 1; b >= 0; --b) a.push(h[b]);
2281
2332
  }
2282
2333
  }, Xe = function(n) {
2283
2334
  let a = null, d = null;
2284
2335
  if (oe) n = "<remove></remove>" + n;
2285
2336
  else {
2286
- const g = so(n, /^[\r\n\t ]+/);
2287
- d = g && g[0];
2337
+ const b = so(n, /^[\r\n\t ]+/);
2338
+ d = b && b[0];
2288
2339
  }
2289
2340
  wt === "application/xhtml+xml" && dt === $ && (n = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + n + "</body></html>");
2290
- const f = P ? at(n) : n;
2341
+ const p = P ? at(n) : n;
2291
2342
  if (dt === $) try {
2292
- a = new m().parseFromString(f, wt);
2293
- } catch (g) {
2343
+ a = new m().parseFromString(p, wt);
2344
+ } catch (b) {
2294
2345
  }
2295
2346
  if (!a || !a.documentElement) {
2296
2347
  a = Zt.createDocument(dt, "template", null);
2297
2348
  try {
2298
- a.documentElement.innerHTML = re ? tt : f;
2299
- } catch (g) {
2349
+ a.documentElement.innerHTML = re ? tt : p;
2350
+ } catch (b) {
2300
2351
  }
2301
2352
  }
2302
2353
  const h = a.body || a.documentElement;
2303
2354
  return n && d && h.insertBefore(e.createTextNode(d), h.childNodes[0] || null), dt === $ ? Po.call(a, ot ? "html" : "body")[0] : ot ? a.documentElement : h;
2304
2355
  }, Ze = function(n) {
2305
2356
  const a = Lt ? Lt(n) : n.ownerDocument;
2306
- return _e.call(a || n, n, p.SHOW_ELEMENT | p.SHOW_COMMENT | p.SHOW_TEXT | p.SHOW_PROCESSING_INSTRUCTION | p.SHOW_CDATA_SECTION, null);
2307
- }, Ft = function(n) {
2308
- return n = xt(n, Bo, " "), n = xt(n, Fo, " "), n = xt(n, Ho, " "), n;
2357
+ return _e.call(a || n, n, f.SHOW_ELEMENT | f.SHOW_COMMENT | f.SHOW_TEXT | f.SHOW_PROCESSING_INSTRUCTION | f.SHOW_CDATA_SECTION, null);
2358
+ }, Bt = function(n) {
2359
+ return n = xt(n, Ho, " "), n = xt(n, Bo, " "), n = xt(n, Fo, " "), n;
2309
2360
  }, de = function(n) {
2310
2361
  var a;
2311
2362
  n.normalize();
2312
- const d = Lt ? Lt(n) : n.ownerDocument, f = _e.call(d || n, n, p.SHOW_TEXT | p.SHOW_COMMENT | p.SHOW_CDATA_SECTION | p.SHOW_PROCESSING_INSTRUCTION, null);
2313
- let h = f.nextNode();
2363
+ const d = Lt ? Lt(n) : n.ownerDocument, p = _e.call(d || n, n, f.SHOW_TEXT | f.SHOW_COMMENT | f.SHOW_CDATA_SECTION | f.SHOW_PROCESSING_INSTRUCTION, null);
2364
+ let h = p.nextNode();
2314
2365
  for (; h; )
2315
- h.data = Ft(h.data), h = f.nextNode();
2316
- const g = (a = n.querySelectorAll) === null || a === void 0 ? void 0 : a.call(n, "template");
2317
- g && it(g, (b) => {
2318
- ft(b.content) && de(b.content);
2366
+ h.data = Bt(h.data), h = p.nextNode();
2367
+ const b = (a = n.querySelectorAll) === null || a === void 0 ? void 0 : a.call(n, "template");
2368
+ b && it(b, (y) => {
2369
+ pt(y.content) && de(y.content);
2319
2370
  });
2320
- }, Ht = function(n) {
2371
+ }, Ft = function(n) {
2321
2372
  const a = rt ? rt(n) : null;
2322
- return typeof a != "string" || _(a) !== "form" ? !1 : typeof n.nodeName != "string" || typeof n.textContent != "string" || typeof n.removeChild != "function" || n.attributes !== qt(n) || typeof n.removeAttribute != "function" || typeof n.removeAttributeNode != "function" || typeof n.getAttributeNode != "function" || typeof n.setAttribute != "function" || typeof n.namespaceURI != "string" || typeof n.insertBefore != "function" || typeof n.hasChildNodes != "function" || n.nodeType !== Q(n) || n.childNodes !== D(n);
2323
- }, ft = function(n) {
2373
+ return typeof a != "string" || _(a) !== "form" ? !1 : typeof n.nodeName != "string" || typeof n.textContent != "string" || typeof n.removeChild != "function" || n.attributes !== qt(n) || typeof n.removeAttribute != "function" || typeof n.removeAttributeNode != "function" || typeof n.getAttributeNode != "function" || typeof n.setAttribute != "function" || typeof n.namespaceURI != "string" || typeof n.insertBefore != "function" || typeof n.hasChildNodes != "function" || n.nodeType !== Q(n) || n.childNodes !== O(n);
2374
+ }, pt = function(n) {
2324
2375
  if (!Q || typeof n != "object" || n === null) return !1;
2325
2376
  try {
2326
- return Q(n) === F.documentFragment;
2377
+ return Q(n) === B.documentFragment;
2327
2378
  } catch (a) {
2328
2379
  return !1;
2329
2380
  }
@@ -2341,58 +2392,58 @@ function Lo() {
2341
2392
  });
2342
2393
  }
2343
2394
  const on = function(n, a) {
2344
- return !!(et && n.hasChildNodes() && !Tt(n.firstElementChild) && O(bo, n.textContent) && O(bo, n.innerHTML) || et && n.namespaceURI === $ && Xn[a] && (Tt(n.firstElementChild) || typeof n.textContent == "string" && O(Zn[a], n.textContent)) || n.nodeType === F.processingInstruction || et && n.nodeType === F.comment && O(yo, n.data));
2395
+ return !!(et && n.hasChildNodes() && !Tt(n.firstElementChild) && D(bo, n.textContent) && D(bo, n.innerHTML) || et && n.namespaceURI === $ && Xn[a] && (Tt(n.firstElementChild) || typeof n.textContent == "string" && D(Zn[a], n.textContent)) || n.nodeType === B.processingInstruction || et && n.nodeType === B.comment && D(yo, n.data));
2345
2396
  }, Ut = function(n, a) {
2346
- if (n instanceof RegExp) return O(n, a);
2397
+ if (n instanceof RegExp) return D(n, a);
2347
2398
  if (n instanceof Function) {
2348
- for (var d = arguments.length, f = new Array(d > 2 ? d - 2 : 0), h = 2; h < d; h++) f[h - 2] = arguments[h];
2349
- return !!n(a, ...f);
2399
+ for (var d = arguments.length, p = new Array(d > 2 ? d - 2 : 0), h = 2; h < d; h++) p[h - 2] = arguments[h];
2400
+ return !!n(a, ...p);
2350
2401
  }
2351
2402
  return !1;
2352
2403
  }, nn = function(n, a, d) {
2353
2404
  if (!vt[a] && eo(a) && Ut(W.tagNameCheck, a)) return !1;
2354
2405
  if (ne && !ct[a]) {
2355
- const f = N(n), h = D(n);
2356
- if (h && f) {
2357
- const g = h.length;
2358
- for (let b = g - 1; b >= 0; --b) {
2359
- const S = n === d ? C(h[b], !0) : h[b];
2360
- f.insertBefore(S, K(n));
2406
+ const p = N(n), h = O(n);
2407
+ if (h && p) {
2408
+ const b = h.length;
2409
+ for (let y = b - 1; y >= 0; --y) {
2410
+ const S = n === d ? k(h[y], !0) : h[y];
2411
+ p.insertBefore(S, K(n));
2361
2412
  }
2362
2413
  }
2363
2414
  }
2364
2415
  return V(n), !0;
2365
- }, Je = function(n, a, d, f) {
2366
- return n.length === 0 ? a : a === d || a === f ? H(a) : a;
2367
- }, pt = function(n, a) {
2368
- return n === a || N(n) !== null ? !1 : (ie && Bt(n), !0);
2416
+ }, Je = function(n, a, d, p) {
2417
+ return n.length === 0 ? a : a === d || a === p ? F(a) : a;
2418
+ }, ft = function(n, a) {
2419
+ return n === a || N(n) !== null ? !1 : (ie && Ht(n), !0);
2369
2420
  }, Qe = function(n, a) {
2370
- if (G(T.beforeSanitizeElements, n, null), pt(n, a)) return !0;
2371
- if (Ht(n))
2421
+ if (G(x.beforeSanitizeElements, n, null), ft(n, a)) return !0;
2422
+ if (Ft(n))
2372
2423
  return V(n), !0;
2373
2424
  const d = _(Vt(n));
2374
- if (k = Je(T.uponSanitizeElement, k, Jt, It), G(T.uponSanitizeElement, n, {
2425
+ if (A = Je(x.uponSanitizeElement, A, Jt, It), G(x.uponSanitizeElement, n, {
2375
2426
  tagName: d,
2376
- allowedTags: k
2377
- }), pt(n, a)) return !0;
2427
+ allowedTags: A
2428
+ }), ft(n, a)) return !0;
2378
2429
  if (on(n, d))
2379
2430
  return V(n), !0;
2380
- if (vt[d] || !(Y.tagCheck instanceof Function && Y.tagCheck(d)) && !k[d]) {
2381
- const f = nn(n, d, a);
2382
- return f === !1 && (G(T.afterSanitizeElements, n, null), pt(n, a)) ? !0 : f;
2431
+ if (vt[d] || !(Y.tagCheck instanceof Function && Y.tagCheck(d)) && !A[d]) {
2432
+ const p = nn(n, d, a);
2433
+ return p === !1 && (G(x.afterSanitizeElements, n, null), ft(n, a)) ? !0 : p;
2383
2434
  }
2384
- if (yt(n) === F.element && !Qo(n) || (d === "noscript" || d === "noembed" || d === "noframes") && O(qn, n.innerHTML))
2435
+ if (yt(n) === B.element && !Qo(n) || (d === "noscript" || d === "noembed" || d === "noframes") && D(qn, n.innerHTML))
2385
2436
  return V(n), !0;
2386
- if (q && n.nodeType === F.text) {
2387
- const f = Ft(n.textContent);
2388
- n.textContent !== f && (kt(t.removed, { element: n.cloneNode() }), n.textContent = f);
2437
+ if (q && n.nodeType === B.text) {
2438
+ const p = Bt(n.textContent);
2439
+ n.textContent !== p && (kt(t.removed, { element: n.cloneNode() }), n.textContent = p);
2389
2440
  }
2390
- return G(T.afterSanitizeElements, n, null), pt(n, a);
2441
+ return G(x.afterSanitizeElements, n, null), ft(n, a);
2391
2442
  }, to = function(n, a, d) {
2392
2443
  if (Ie[a] || Ve(a, n) || Ne && (a === "id" || a === "name") && (d in e || d in Vo)) return !1;
2393
- const f = x[a] || Y.attributeCheck instanceof Function && Y.attributeCheck(a, n);
2394
- return te && O(Uo, a) || Oe && O(jo, a) ? !0 : f ? Ue[a] || O(Me, xt(d, Le, "")) || (a === "src" || a === "xlink:href" || a === "href") && n !== "script" && lo(d, "data:") === 0 && Fe[n] || De && !O(Wo, xt(d, Le, "")) ? !0 : !d : eo(n) && Ut(W.tagNameCheck, n) && Ut(W.attributeNameCheck, a, n) || a === "is" && W.allowCustomizedBuiltInElements && Ut(W.tagNameCheck, d);
2395
- }, rn = y({}, [
2444
+ const p = C[a] || Y.attributeCheck instanceof Function && Y.attributeCheck(a, n);
2445
+ return te && D(Uo, a) || De && D(jo, a) ? !0 : p ? Ue[a] || D(Me, xt(d, Le, "")) || (a === "src" || a === "xlink:href" || a === "href") && n !== "script" && lo(d, "data:") === 0 && Be[n] || Oe && !D(Wo, xt(d, Le, "")) ? !0 : !d : eo(n) && Ut(W.tagNameCheck, n) && Ut(W.attributeNameCheck, a, n) || a === "is" && W.allowCustomizedBuiltInElements && Ut(W.tagNameCheck, d);
2446
+ }, rn = E({}, [
2396
2447
  "annotation-xml",
2397
2448
  "color-profile",
2398
2449
  "font-face",
@@ -2402,72 +2453,72 @@ function Lo() {
2402
2453
  "font-face-uri",
2403
2454
  "missing-glyph"
2404
2455
  ]), eo = function(n) {
2405
- return !rn[_t(n)] && O($o, n);
2406
- }, an = function(n, a, d, f) {
2407
- if (P && typeof v == "object" && typeof v.getAttributeType == "function" && !d) switch (v.getAttributeType(n, a)) {
2456
+ return !rn[_t(n)] && D($o, n);
2457
+ }, an = function(n, a, d, p) {
2458
+ if (P && typeof g == "object" && typeof g.getAttributeType == "function" && !d) switch (g.getAttributeType(n, a)) {
2408
2459
  case "TrustedHTML":
2409
- return at(f);
2460
+ return at(p);
2410
2461
  case "TrustedScriptURL":
2411
- return Do(f);
2462
+ return Oo(p);
2412
2463
  }
2413
- return f;
2414
- }, sn = function(n, a, d, f) {
2464
+ return p;
2465
+ }, sn = function(n, a, d, p) {
2415
2466
  try {
2416
- return d ? n.setAttributeNS(d, a, f) : n.setAttribute(a, f), Ht(n) ? (V(n), !1) : !0;
2467
+ return d ? n.setAttributeNS(d, a, p) : n.setAttribute(a, p), Ft(n) ? (V(n), !1) : !0;
2417
2468
  } catch (h) {
2418
2469
  return nt(a, n), !1;
2419
2470
  }
2420
2471
  }, oo = function(n, a) {
2421
- if (G(T.beforeSanitizeAttributes, n, null), pt(n, a)) return;
2472
+ if (G(x.beforeSanitizeAttributes, n, null), ft(n, a)) return;
2422
2473
  const d = n.attributes;
2423
- if (!d || Ht(n)) return;
2424
- x = Je(T.uponSanitizeAttribute, x, Qt, Ot);
2425
- const f = {
2474
+ if (!d || Ft(n)) return;
2475
+ C = Je(x.uponSanitizeAttribute, C, Qt, Dt);
2476
+ const p = {
2426
2477
  attrName: "",
2427
2478
  attrValue: "",
2428
2479
  keepAttr: !0,
2429
- allowedAttributes: x,
2480
+ allowedAttributes: C,
2430
2481
  forceKeepAttr: void 0
2431
2482
  };
2432
2483
  let h = d.length;
2433
- const g = _(n.nodeName);
2484
+ const b = _(n.nodeName);
2434
2485
  for (; h--; ) {
2435
- const b = d[h], S = b.name, U = b.namespaceURI, B = b.value, ht = _(S), fe = B;
2436
- let R = S === "value" ? fe : Mn(fe), no = !1;
2437
- if (f.attrName = ht, f.attrValue = R, f.keepAttr = !0, f.forceKeepAttr = void 0, G(T.uponSanitizeAttribute, n, f), R = f.attrValue, Pe && (ht === "id" || ht === "name") && lo(R, ze) !== 0 && (nt(S, n, b), R = ze + R, no = !0), et && O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, R)) {
2438
- nt(S, n, b);
2486
+ const y = d[h], S = y.name, U = y.namespaceURI, H = y.value, ht = _(S), pe = H;
2487
+ let R = S === "value" ? pe : Mn(pe), no = !1;
2488
+ if (p.attrName = ht, p.attrValue = R, p.keepAttr = !0, p.forceKeepAttr = void 0, G(x.uponSanitizeAttribute, n, p), R = p.attrValue, Pe && (ht === "id" || ht === "name") && lo(R, ze) !== 0 && (nt(S, n, y), R = ze + R, no = !0), et && D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, R)) {
2489
+ nt(S, n, y);
2439
2490
  continue;
2440
2491
  }
2441
2492
  if (ht === "attributename" && so(R, "href")) {
2442
- nt(S, n, b);
2493
+ nt(S, n, y);
2443
2494
  continue;
2444
2495
  }
2445
- if (!f.forceKeepAttr) {
2446
- if (!f.keepAttr) {
2447
- nt(S, n, b);
2496
+ if (!p.forceKeepAttr) {
2497
+ if (!p.keepAttr) {
2498
+ nt(S, n, y);
2448
2499
  continue;
2449
2500
  }
2450
- if (!Re && O(Vn, R)) {
2451
- nt(S, n, b);
2501
+ if (!Re && D(Vn, R)) {
2502
+ nt(S, n, y);
2452
2503
  continue;
2453
2504
  }
2454
- if (q && (R = Ft(R)), !to(g, ht, R)) {
2455
- nt(S, n, b);
2505
+ if (q && (R = Bt(R)), !to(b, ht, R)) {
2506
+ nt(S, n, y);
2456
2507
  continue;
2457
2508
  }
2458
- R = an(g, ht, U, R), R !== fe && sn(n, S, U, R) && no && ao(t.removed);
2509
+ R = an(b, ht, U, R), R !== pe && sn(n, S, U, R) && no && ao(t.removed);
2459
2510
  }
2460
2511
  }
2461
- G(T.afterSanitizeAttributes, n, null), pt(n, a);
2512
+ G(x.afterSanitizeAttributes, n, null), ft(n, a);
2462
2513
  }, jt = function(n) {
2463
2514
  let a = null;
2464
2515
  const d = Ze(n);
2465
- for (G(T.beforeSanitizeShadowDOM, n, null); a = d.nextNode(); )
2466
- if (G(T.uponSanitizeShadowNode, a, null), Qe(a, n), oo(a, n), ft(a.content) && jt(a.content), yt(a) === F.element) {
2467
- const f = Ae(a);
2468
- ft(f) && (ue(f), jt(f));
2516
+ for (G(x.beforeSanitizeShadowDOM, n, null); a = d.nextNode(); )
2517
+ if (G(x.uponSanitizeShadowNode, a, null), Qe(a, n), oo(a, n), pt(a.content) && jt(a.content), yt(a) === B.element) {
2518
+ const p = Ae(a);
2519
+ pt(p) && (ue(p), jt(p));
2469
2520
  }
2470
- G(T.afterSanitizeShadowDOM, n, null);
2521
+ G(x.afterSanitizeShadowDOM, n, null);
2471
2522
  }, ue = function(n) {
2472
2523
  const a = [{
2473
2524
  node: n,
@@ -2479,111 +2530,111 @@ function Lo() {
2479
2530
  jt(d.shadow);
2480
2531
  continue;
2481
2532
  }
2482
- const f = d.node, h = yt(f) === F.element, g = D(f);
2483
- if (g) for (let b = g.length - 1; b >= 0; --b) a.push({
2484
- node: g[b],
2533
+ const p = d.node, h = yt(p) === B.element, b = O(p);
2534
+ if (b) for (let y = b.length - 1; y >= 0; --y) a.push({
2535
+ node: b[y],
2485
2536
  shadow: null
2486
2537
  });
2487
2538
  if (h) {
2488
- const b = rt ? rt(f) : null;
2489
- if (typeof b == "string" && _(b) === "template") {
2490
- const S = f.content;
2491
- ft(S) && a.push({
2539
+ const y = rt ? rt(p) : null;
2540
+ if (typeof y == "string" && _(y) === "template") {
2541
+ const S = p.content;
2542
+ pt(S) && a.push({
2492
2543
  node: S,
2493
2544
  shadow: null
2494
2545
  });
2495
2546
  }
2496
2547
  }
2497
2548
  if (h) {
2498
- const b = Ae(f);
2499
- ft(b) && a.push({
2549
+ const y = Ae(p);
2550
+ pt(y) && a.push({
2500
2551
  node: null,
2501
- shadow: b
2552
+ shadow: y
2502
2553
  }, {
2503
- node: b,
2554
+ node: y,
2504
2555
  shadow: null
2505
2556
  });
2506
2557
  }
2507
2558
  }
2508
2559
  };
2509
2560
  return t.sanitize = function(u) {
2510
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = null, d = null, f = null, h = null;
2561
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = null, d = null, p = null, h = null;
2511
2562
  if (re = !u, re && (u = "<!-->"), typeof u != "string" && !Tt(u) && (u = Nn(u), typeof u != "string"))
2512
2563
  throw X("dirty is not a string, aborting");
2513
2564
  if (!t.isSupported) return u;
2514
- ee ? (k = It, x = Ot) : ce(n), (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && (k = H(k)), T.uponSanitizeAttribute.length > 0 && (x = H(x)), t.removed = [];
2515
- const g = ie && typeof u != "string" && Tt(u);
2516
- if (g) {
2565
+ ee ? (A = It, C = Dt) : ce(n), (x.uponSanitizeElement.length > 0 || x.uponSanitizeAttribute.length > 0) && (A = F(A)), x.uponSanitizeAttribute.length > 0 && (C = F(C)), t.removed = [];
2566
+ const b = ie && typeof u != "string" && Tt(u);
2567
+ if (b) {
2517
2568
  en(u);
2518
2569
  const U = Vt(u);
2519
2570
  if (typeof U == "string") {
2520
- const B = _(U);
2521
- if (!k[B] || vt[B])
2571
+ const H = _(U);
2572
+ if (!A[H] || vt[H])
2522
2573
  throw zt(u), X("root node is forbidden and cannot be sanitized in-place");
2523
2574
  }
2524
- if (Ht(u))
2575
+ if (Ft(u))
2525
2576
  throw zt(u), X("root node is clobbered and cannot be sanitized in-place");
2526
2577
  try {
2527
2578
  ue(u);
2528
- } catch (B) {
2529
- throw zt(u), B;
2579
+ } catch (H) {
2580
+ throw zt(u), H;
2530
2581
  }
2531
2582
  } else if (Tt(u))
2532
- a = Xe("<!---->"), d = a.ownerDocument.importNode(u, !0), d.nodeType === F.element && d.nodeName === "BODY" || d.nodeName === "HTML" ? a = d : a.appendChild(d), ue(a);
2583
+ a = Xe("<!---->"), d = a.ownerDocument.importNode(u, !0), d.nodeType === B.element && d.nodeName === "BODY" || d.nodeName === "HTML" ? a = d : a.appendChild(d), ue(a);
2533
2584
  else {
2534
2585
  if (!st && !q && !ot && u.indexOf("<") === -1) return P && Rt ? at(u) : u;
2535
2586
  if (a = Xe(u), !a) return st ? null : Rt ? tt : "";
2536
2587
  }
2537
2588
  a && oe && V(a.firstChild);
2538
- const b = g ? u : a;
2589
+ const y = b ? u : a;
2539
2590
  try {
2540
- const U = Ze(b);
2541
- for (; f = U.nextNode(); )
2542
- Qe(f, b), oo(f, b), ft(f.content) && jt(f.content);
2591
+ const U = Ze(y);
2592
+ for (; p = U.nextNode(); )
2593
+ Qe(p, y), oo(p, y), pt(p.content) && jt(p.content);
2543
2594
  } catch (U) {
2544
- throw g && (zt(u), it(t.removed, (B) => {
2545
- B.element && Bt(B.element);
2595
+ throw b && (zt(u), it(t.removed, (H) => {
2596
+ H.element && Ht(H.element);
2546
2597
  })), U;
2547
2598
  }
2548
- if (g) {
2599
+ if (b) {
2549
2600
  let U = !1;
2550
- if (it(t.removed, (B) => {
2551
- B.element && (B.element === u && (U = !0), Bt(B.element));
2601
+ if (it(t.removed, (H) => {
2602
+ H.element && (H.element === u && (U = !0), Ht(H.element));
2552
2603
  }), U) throw X("a node selected for removal could not be safely returned; refusing to sanitize in place");
2553
2604
  return q && de(u), u;
2554
2605
  }
2555
2606
  if (st) {
2556
- if (q && de(a), Dt)
2607
+ if (q && de(a), Ot)
2557
2608
  for (h = No.call(a.ownerDocument); a.firstChild; ) h.appendChild(a.firstChild);
2558
2609
  else h = a;
2559
- return (x.shadowroot || x.shadowrootmode) && (h = zo.call(o, h, !0)), h;
2610
+ return (C.shadowroot || C.shadowrootmode) && (h = zo.call(o, h, !0)), h;
2560
2611
  }
2561
2612
  let S = ot ? a.outerHTML : a.innerHTML;
2562
- return ot && k["!doctype"] && a.ownerDocument && a.ownerDocument.doctype && a.ownerDocument.doctype.name && O(Kn, a.ownerDocument.doctype.name) && (S = "<!DOCTYPE " + a.ownerDocument.doctype.name + `>
2563
- ` + S), q && (S = Ft(S)), P && Rt ? at(S) : S;
2613
+ return ot && A["!doctype"] && a.ownerDocument && a.ownerDocument.doctype && a.ownerDocument.doctype.name && D(Kn, a.ownerDocument.doctype.name) && (S = "<!DOCTYPE " + a.ownerDocument.doctype.name + `>
2614
+ ` + S), q && (S = Bt(S)), P && Rt ? at(S) : S;
2564
2615
  }, t.setConfig = function() {
2565
2616
  let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2566
- ce(u), ee = !0, It = k, Ot = x;
2617
+ ce(u), ee = !0, It = A, Dt = C;
2567
2618
  }, t.clearConfig = function() {
2568
- ut = null, ee = !1, It = null, Ot = null, P = Xt, tt = "";
2619
+ ut = null, ee = !1, It = null, Dt = null, P = Xt, tt = "";
2569
2620
  }, t.isValidAttribute = function(u, n, a) {
2570
2621
  ut || ce({});
2571
- const d = _(u), f = _(n);
2572
- return to(d, f, a);
2622
+ const d = _(u), p = _(n);
2623
+ return to(d, p, a);
2573
2624
  }, t.addHook = function(u, n) {
2574
- typeof n == "function" && z(T, u) && kt(T[u], n);
2625
+ typeof n == "function" && z(x, u) && kt(x[u], n);
2575
2626
  }, t.removeHook = function(u, n) {
2576
- if (z(T, u)) {
2627
+ if (z(x, u)) {
2577
2628
  if (n !== void 0) {
2578
- const a = _n(T[u], n);
2579
- return a === -1 ? void 0 : Ln(T[u], a, 1)[0];
2629
+ const a = _n(x[u], n);
2630
+ return a === -1 ? void 0 : Ln(x[u], a, 1)[0];
2580
2631
  }
2581
- return ao(T[u]);
2632
+ return ao(x[u]);
2582
2633
  }
2583
2634
  }, t.removeHooks = function(u) {
2584
- z(T, u) && (T[u] = []);
2635
+ z(x, u) && (x[u] = []);
2585
2636
  }, t.removeAllHooks = function() {
2586
- T = Eo();
2637
+ x = Eo();
2587
2638
  }, t;
2588
2639
  }
2589
2640
  var $t = Lo();
@@ -2663,23 +2714,23 @@ function ni(s) {
2663
2714
  function Mo(s, t, e, o) {
2664
2715
  if ((t == null ? void 0 : t.sanitize) === !1)
2665
2716
  return s;
2666
- const i = t != null && t.allowedTags && t.allowedTags.length > 0 ? t.allowedTags : ti, r = e != null && e.length ? Array.from(/* @__PURE__ */ new Set([...i, ...e])) : i, c = !!(t != null && t.allowedAttributes) && Object.keys(t.allowedAttributes).length > 0 ? t.allowedAttributes : ei, p = /* @__PURE__ */ new Set();
2667
- for (const A of Object.values(c))
2668
- for (const C of A) p.add(C);
2717
+ const i = t != null && t.allowedTags && t.allowedTags.length > 0 ? t.allowedTags : ti, r = e != null && e.length ? Array.from(/* @__PURE__ */ new Set([...i, ...e])) : i, c = !!(t != null && t.allowedAttributes) && Object.keys(t.allowedAttributes).length > 0 ? t.allowedAttributes : ei, f = /* @__PURE__ */ new Set();
2718
+ for (const T of Object.values(c))
2719
+ for (const k of T) f.add(k);
2669
2720
  const m = {
2670
2721
  ALLOWED_TAGS: r,
2671
- ALLOWED_ATTR: Array.from(p)
2722
+ ALLOWED_ATTR: Array.from(f)
2672
2723
  };
2673
2724
  if (!o)
2674
2725
  return $t.sanitize(s, m);
2675
- const v = r.includes("iframe");
2726
+ const g = r.includes("iframe");
2676
2727
  $t.addHook(
2677
2728
  "uponSanitizeElement",
2678
- (A, C) => {
2679
- var E;
2680
- if (C.tagName !== "iframe") return;
2681
- const w = A;
2682
- C.allowedTags.iframe = v || ((E = w.getAttribute) == null ? void 0 : E.call(w, oi)) === "true" && ni(w.getAttribute("src"));
2729
+ (T, k) => {
2730
+ var v;
2731
+ if (k.tagName !== "iframe") return;
2732
+ const w = T;
2733
+ k.allowedTags.iframe = g || ((v = w.getAttribute) == null ? void 0 : v.call(w, oi)) === "true" && ni(w.getAttribute("src"));
2683
2734
  }
2684
2735
  );
2685
2736
  try {
@@ -3052,14 +3103,14 @@ class li {
3052
3103
  }
3053
3104
  const ci = '.editora-editor{display:flex;flex-direction:column;border:1px solid #ddd;border-radius:4px;background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:14px;overflow:hidden}.editora-editor *{box-sizing:border-box}.editora-theme-light{background:#fff;color:#333}.editora-theme-dark{--editora-dark-toolbar-bg-start: #353d48;--editora-dark-toolbar-bg-end: #2d3540;--editora-dark-button-bg-start: #46505f;--editora-dark-button-bg-end: #3b4553;--editora-dark-button-hover-start: #525d6d;--editora-dark-button-hover-end: #465262;--editora-dark-button-active-start: #5eaaf6;--editora-dark-button-active-end: #4a95de;--editora-dark-border: #475263;--editora-dark-border-strong: #566275;--editora-dark-text: #e1e9f5;--editora-dark-text-strong: #f3f7ff;--editora-dark-text-muted: #aeb9cc;--editora-dark-surface: #1d242d;--editora-dark-content: #1f2732;background:linear-gradient(180deg,#1b2330,#1c2430);color:var(--editora-dark-text);border-color:var(--editora-dark-border)}.editora-toolbar{display:flex;align-items:center;gap:4px;padding:8px;background:#f5f5f5;border-bottom:1px solid #ddd;flex-wrap:wrap}.editora-theme-dark .editora-toolbar{background:linear-gradient(180deg,var(--editora-dark-toolbar-bg-start) 0%,var(--editora-dark-toolbar-bg-end) 100%);border-bottom-color:var(--editora-dark-border);box-shadow:inset 0 1px #ffffff0d}.editora-toolbar-sticky{position:sticky;top:0;z-index:100;position:-webkit-sticky}.editora-toolbar-group{display:flex;align-items:center;gap:2px}.editora-toolbar-button{padding:6px 12px;border:1px solid #ccc;background:#fff;cursor:pointer;border-radius:3px;font-weight:600;font-size:14px;height:30px;display:flex;align-items:center;white-space:nowrap}.editora-toolbar-group-button{display:flex;align-items:center}.editora-toolbar-input.font-size{width:40px;padding:.25rem;text-align:center;font-size:14px;background:#fff;border:1px solid var(--rte-color-border-light);border-radius:var(--rte-radius-sm)}.editora-toolbar-group-items{display:flex;align-items:center;border:1px solid #ccc;.editora-toolbar-button{border:none;border-radius:0;&:first-child{border-right:1px solid #ccc;border-top-left-radius:3px;border-bottom-left-radius:3px}&:last-child{border:0px solid #ccc;border-radius:0!important}&:hover{background:#e0e0e0;border-color:#ccc}}}.editora-theme-dark .editora-toolbar-button{background:linear-gradient(180deg,var(--editora-dark-button-bg-start) 0%,var(--editora-dark-button-bg-end) 100%);border-color:var(--editora-dark-border-strong);color:var(--editora-dark-text);box-shadow:inset 0 1px #ffffff14,0 1px 1px #00000059}.editora-theme-dark .editora-toolbar-group-items{border-color:var(--editora-dark-border-strong);background:linear-gradient(180deg,var(--editora-dark-button-bg-start) 0%,var(--editora-dark-button-bg-end) 100%)}.editora-theme-dark .editora-toolbar-group-items .editora-toolbar-button:first-child{border-right-color:#566275}.editora-theme-dark .editora-toolbar-group-items .editora-toolbar-button:last-child{border-left-color:#566275}.editora-theme-dark .editora-toolbar-input.font-size{background-color:#2e3642;color:var(--editora-dark-text-strong);border-color:var(--editora-dark-border-strong);caret-color:var(--editora-dark-text-strong)}.editora-theme-dark .editora-toolbar-input.font-size::placeholder{color:var(--editora-dark-text-strong);opacity:1}.editora-toolbar-button:hover{background:#e0e0e0;border-color:#ccc}.editora-theme-dark .editora-toolbar-button:hover{background:linear-gradient(180deg,var(--editora-dark-button-hover-start) 0%,var(--editora-dark-button-hover-end) 100%);border-color:#66748a;color:var(--editora-dark-text-strong)}.editora-toolbar-button:active,.editora-toolbar-button.active{background:#d0d0d0;border-color:#999}.editora-theme-dark .editora-toolbar-button:active,.editora-theme-dark .editora-toolbar-button.active{background:linear-gradient(180deg,var(--editora-dark-button-active-start) 0%,var(--editora-dark-button-active-end) 100%);border-color:#67adf4;color:#0f1b2a}.editora-theme-dark .editora-toolbar-button:disabled{background:#313946;border-color:#424d5e;color:#7f8ca1}.editora-theme-dark .editora-toolbar-button[data-command=insertTable],.editora-theme-dark .editora-toolbar-button[data-command=print],.editora-theme-dark .editora-toolbar-button[data-command=toggleSpellCheck],.editora-theme-dark .editora-toolbar-button[data-command=toggleA11yChecker],.editora-theme-dark .editora-toolbar-button[data-command=setDirectionLTR],.editora-theme-dark .editora-toolbar-button[data-command=setDirectionRTL]{color:#f1f6ff}.editora-toolbar-button:disabled{opacity:.5;cursor:not-allowed}.editora-toolbar-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;line-height:1}.editora-toolbar-button svg,.editora-toolbar-icon svg{width:20px;height:20px;display:block;color:currentColor}.editora-theme-dark .editora-toolbar-button svg:not([fill=none i]),.editora-theme-dark .editora-toolbar-icon svg:not([fill=none i]){fill:currentColor}.editora-theme-dark .editora-toolbar-icon,.editora-theme-dark .editora-toolbar-icon *{color:inherit}.editora-theme-dark :is(.editora-toolbar-button,.editora-toolbar-icon) svg :is([stroke="#000" i],[stroke="#000000" i],[stroke=black i],[stroke="#0f0f0f" i],[stroke="#111111" i],[style*="stroke:#000" i],[style*="stroke: #000" i],[style*="stroke:black" i],[style*="stroke: black" i],[style*="stroke:#0f0f0f" i],[style*="stroke: #0f0f0f" i]){stroke:currentColor!important}.editora-theme-dark :is(.editora-toolbar-button,.editora-toolbar-icon) svg :is([fill="#000" i],[fill="#000000" i],[fill=black i],[fill="#0f0f0f" i],[fill="#111111" i],[style*="fill:#000" i],[style*="fill: #000" i],[style*="fill:black" i],[style*="fill: black" i],[style*="fill:#0f0f0f" i],[style*="fill: #0f0f0f" i]){fill:currentColor!important}.editora-toolbar-separator{width:1px;height:24px;background:#ddd;margin:0 4px}.editora-theme-dark .editora-toolbar-separator{background:#4d596b}.editora-toolbar-items-container{display:flex;align-items:center;gap:4px;flex:1;min-width:0;overflow:hidden}.editora-toolbar-more-button{display:flex;align-items:center;justify-content:center;width:30px;height:30px;flex-shrink:0;padding:0;border:1px solid #ccc;background:#fff;cursor:pointer;border-radius:3px;font-size:16px}.editora-toolbar-more-button:hover{background:#e0e0e0}.editora-toolbar-more-button.active{background:#d0d0d0;border-color:#999}.editora-theme-dark .editora-toolbar-more-button{background:var(--editora-dark-content);border-color:var(--editora-dark-border);color:var(--editora-dark-text)}.editora-theme-dark .editora-toolbar-more-button:hover,.editora-theme-dark .editora-toolbar-more-button.active{background:#3a4554;border-color:#607088}.editora-toolbar-expanded-row{display:none;flex-wrap:wrap;align-items:center;gap:4px;width:100%;padding:8px;border-top:1px solid #ddd;background:#f5f5f5}.editora-toolbar-expanded-row.show{display:flex}.editora-theme-dark .editora-toolbar-expanded-row{border-top-color:var(--editora-dark-border);background:linear-gradient(180deg,var(--editora-dark-toolbar-bg-start) 0%,var(--editora-dark-toolbar-bg-end) 100%)}.editora-toolbar-dropdown{position:relative}.editora-toolbar-dropdown-menu{position:absolute;top:100%;left:0;min-width:150px;margin-top:4px;padding:4px 0;background:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:0 2px 8px #00000026;z-index:1000}.editora-theme-dark .editora-toolbar-dropdown-menu{background:#29323d;border-color:#4d596b;box-shadow:0 8px 20px #00000073}.editora-toolbar-dropdown-item{display:block;width:100%;padding:8px 12px;border:none;background:transparent;color:#333;text-align:left;cursor:pointer;font-size:13px;transition:background .15s ease}.editora-theme-dark .editora-toolbar-dropdown-item{color:#d7deea}.editora-toolbar-dropdown-item:hover{background:#f5f5f5}.editora-theme-dark .editora-toolbar-dropdown-item:hover{background:#3a4554;color:#f0f6ff}.editora-content{flex:1;min-height:200px;padding:16px;outline:none;overflow-y:auto;line-height:1.6}.editora-theme-dark .editora-content{color:#ecf3ff;background:linear-gradient(180deg,var(--editora-dark-content) 0%,#1c232e 100%)}.editora-content:empty:before{content:attr(data-placeholder);color:#999;pointer-events:none}.editora-theme-dark .editora-content:empty:before{color:#8f9bb0}.editora-content h1{font-size:2em;margin:.67em 0;font-weight:600}.editora-content h2{font-size:1.5em;margin:.75em 0;font-weight:600}.editora-content h3{font-size:1.17em;margin:.83em 0;font-weight:600}.editora-content p{margin:1em 0}.editora-theme-dark .editora-content,.editora-theme-dark .editora-content :is(p,span,div,li,ul,ol,td,th,h1,h2,h3,h4,h5,h6,strong,em,u,s,small,sub,sup,blockquote,code,pre,a){color:#ecf3ff}.editora-content ul,.editora-content ol{margin:1em 0;padding-left:2em}.editora-content a{color:#06c;text-decoration:underline}.editora-theme-dark .editora-content a{color:#ecf3ff}.editora-content code{padding:2px 4px;background:#f5f5f5;border-radius:3px;font-family:Monaco,Menlo,Consolas,monospace;font-size:.9em}.editora-theme-dark .editora-content code{background:#1e1e1e}.editora-content pre{padding:12px;background:#f5f5f5;border-radius:4px;overflow-x:auto;margin:1em 0}.editora-theme-dark .editora-content pre{background:#1e1e1e}.editora-theme-dark .rte-code-block{background:linear-gradient(180deg,#212a36,#1b2430)!important;border-color:#4f5b70!important;color:#e7effc!important}.editora-theme-dark .rte-code-block code{color:#e7effc!important}.editora-theme-dark .rte-code-block:before{background:#111927!important;color:#dce8ff!important}.editora-theme-dark .rte-code-block .rte-code-copy{background:#2b3441!important;border-color:#5a667b!important;color:#dce8ff!important}.editora-content blockquote{margin:1em 0;padding-left:1em;border-left:4px solid #ddd;color:#666}.editora-theme-dark .editora-content blockquote{border-left-color:#3c3c3c;color:#ecf3ff}.editora-floating-toolbar{position:absolute;padding:4px;background:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:0 2px 8px #00000026;z-index:1000}.editora-theme-dark .editora-floating-toolbar{background:#29323d;border-color:#4d596b;box-shadow:0 8px 20px #00000073}.editora-statusbar-container{display:flex;flex-direction:column}.editora-statusbar-left{display:flex;align-items:center;gap:8px}.editora-statusbar-right{display:flex;align-items:center;gap:8px;margin-left:auto}.editora-statusbar{display:flex;align-items:center;gap:12px;padding:6px 12px;background:#f5f5f5;border-top:1px solid #ddd;font-size:12px;color:#666}.editora-theme-dark .editora-statusbar{background:linear-gradient(180deg,#2c3440,#252d37);border-top-color:#3f4a5b;color:#d7deea}.editora-statusbar-item{white-space:nowrap}.editora-statusbar-separator{color:#ddd}.editora-theme-dark .editora-statusbar-separator{color:#566275}.editora-editor[readonly] .editora-content{background:#fafafa;cursor:not-allowed}.editora-theme-dark.editora-editor[readonly] .editora-content{background:#1a1a1a}.editora-editor:focus-within{border-color:#06c;box-shadow:0 0 0 3px #0066cc1a}.editora-theme-dark.editora-editor:focus-within{border-color:#4db8ff;box-shadow:0 0 0 3px #4db8ff1a}.editora-editor[disabled]{opacity:.6;pointer-events:none}@media(max-width:768px){.editora-toolbar{padding:4px}.editora-toolbar-button{min-width:28px;min-height:28px;padding:4px 8px;font-size:12px}.editora-content{padding:12px}}.editora-content ::selection{background:#06c3}.editora-theme-dark .editora-content ::selection{background:#4db8ff33}.editora-content table{border-collapse:collapse;width:100%;margin:1em 0}.editora-content th,.editora-content td{border:1px solid #ddd;padding:8px 12px;text-align:left}.editora-theme-dark .editora-content th,.editora-theme-dark .editora-content td{border-color:#3c3c3c}.editora-content th{background:#f5f5f5;font-weight:600}.editora-theme-dark .editora-content th{background:#252526}.editora-content img{max-width:100%;height:auto;border-radius:4px;display:block}.editora-content video{max-width:100%;height:auto;border-radius:4px;display:block}.editora-editor.loading{opacity:.7;pointer-events:none}.editora-editor.loading:after{content:"";position:absolute;top:50%;left:50%;width:24px;height:24px;margin:-12px 0 0 -12px;border:3px solid #ddd;border-top-color:#06c;border-radius:50%;animation:editora-spin .8s linear infinite}@keyframes editora-spin{to{transform:rotate(360deg)}}.toolbar-container-wrapper{display:flex;align-items:center;background:#fff;border-bottom:1px solid #e0e0e0;padding:0;margin:0;width:100%;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;line-height:1.5;position:relative}.toolbar-container-wrapper[data-toolbar-sticky=true]{position:sticky;top:0;z-index:999;box-shadow:0 2px 4px #0000001a}.toolbar-container-wrapper[data-toolbar-floating=true]{position:fixed;top:0;left:0;right:0;z-index:1000;box-shadow:0 4px 12px #00000026}.toolbar-container-wrapper[data-toolbar-position=bottom]{border-bottom:none;border-top:1px solid #e0e0e0}.toolbar-container-wrapper .toolbar-wrapper{display:flex;width:100%;padding:8px;gap:4px;flex-wrap:wrap;align-items:center}.toolbar-container-wrapper .toolbar{display:flex;width:100%;gap:4px;flex-wrap:wrap;align-items:center}.toolbar-container-wrapper .toolbar-container{display:flex;gap:4px;flex-wrap:wrap;align-items:center;flex:1;position:relative}.toolbar-container-wrapper .toolbar-item{display:flex;align-items:center;gap:2px}.toolbar-container-wrapper .toolbar-button{padding:6px 10px;border:1px solid #d1d5db;background:#fff;border-radius:4px;cursor:pointer;font-size:13px;display:flex;align-items:center;justify-content:center;gap:4px;transition:all .15s ease;min-height:32px;white-space:nowrap}.toolbar-container-wrapper .toolbar-button:hover{background-color:#f3f4f6;border-color:#9ca3af}.toolbar-container-wrapper .toolbar-button:active,.toolbar-container-wrapper .toolbar-button[data-active=true]{background-color:#06c;color:#fff;border-color:#0052a3;box-shadow:inset 0 1px 3px #0000001a}.toolbar-container-wrapper .toolbar-button:disabled{opacity:.5;cursor:not-allowed;background-color:#f9fafb}.toolbar-container-wrapper .toolbar-more-button{padding:6px 8px;font-size:16px;font-weight:500;line-height:1}.toolbar-container-wrapper .toolbar-separator{width:1px;height:24px;background-color:#d1d5db;margin:0 4px}.toolbar-container-wrapper .toolbar-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex-shrink:0}.toolbar-container-wrapper .toolbar-icon svg{width:100%;height:100%}.toolbar-container-wrapper .toolbar-dropdown{position:relative;display:flex;align-items:center}.toolbar-container-wrapper .toolbar-dropdown-arrow{font-size:10px;margin-left:2px;line-height:1}.toolbar-container-wrapper .toolbar-dropdown-menu{position:absolute;top:100%;left:0;background:#fff;border:1px solid #d1d5db;border-radius:6px;box-shadow:0 4px 12px #00000026;z-index:1000;min-width:160px;padding:4px 0;margin-top:4px;display:none}.toolbar-container-wrapper .toolbar-dropdown-menu.show{display:block}.toolbar-container-wrapper .toolbar-dropdown-item{display:block;width:100%;padding:8px 12px;border:none;background:transparent;text-align:left;cursor:pointer;font-size:13px;color:#1f2937;transition:background-color .15s ease;font-family:inherit}.toolbar-container-wrapper .toolbar-dropdown-item:hover{background-color:#f3f4f6}.toolbar-container-wrapper .toolbar-dropdown-item:active{background-color:#e5e7eb}.toolbar-container-wrapper .toolbar-input{padding:6px 8px;border:1px solid #d1d5db;border-radius:4px;font-size:13px;font-family:inherit;background-color:#fff;color:#1f2937;transition:all .15s ease}.toolbar-container-wrapper .toolbar-input:focus{outline:none;border-color:#06c;box-shadow:0 0 0 3px #0066cc1a;background-color:#fff}.toolbar-container-wrapper .toolbar-input::placeholder{color:#9ca3af}.toolbar-overflow-menu{animation:slideDown .2s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.toolbar-overflow-item{transition:background-color .15s ease}.floating-toolbar{user-select:none;-webkit-user-select:none;font-family:system-ui,-apple-system,sans-serif;font-size:14px;animation:fadeInUp .15s ease-out}@keyframes fadeInUp{0%{opacity:0;transform:translate(-50%) translateY(10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.floating-toolbar-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:transparent;border-radius:4px;color:#495057;cursor:pointer;font-size:14px;font-weight:500;transition:all .15s ease;outline:none}.floating-toolbar-btn:hover{background:#f8f9fa;color:#212529}.floating-toolbar-btn:active{background:#e9ecef;transform:scale(.95)}.floating-toolbar-btn.floating-toolbar-toggle{color:#dc3545;font-weight:700}.floating-toolbar-btn.floating-toolbar-toggle:hover{background:#f8d7da;color:#721c24}.floating-toolbar-separator{width:1px;height:20px;background:#e1e5e9;margin:0 2px}@media(max-width:768px){.toolbar-container-wrapper .toolbar-button{padding:5px 8px;font-size:12px;min-height:28px}.toolbar-container-wrapper .toolbar-icon{width:16px;height:16px}.toolbar-container-wrapper .toolbar-dropdown-menu{min-width:140px}.toolbar-container-wrapper .toolbar-dropdown-item{padding:6px 10px;font-size:12px}.floating-toolbar{padding:4px;gap:2px}.floating-toolbar-btn{width:28px;height:28px;font-size:12px}}@media(max-width:480px){.toolbar-container-wrapper{padding:4px}.toolbar-container-wrapper .toolbar-wrapper{padding:4px;gap:2px}.toolbar-container-wrapper .toolbar-button{padding:4px 6px;font-size:11px;min-height:24px}.toolbar-container-wrapper .toolbar-icon{width:14px;height:14px}}.floating-toolbar{pointer-events:auto}.floating-toolbar{max-width:calc(100vw - 20px);overflow-x:auto}@media(prefers-color-scheme:dark){.floating-toolbar{background:#2d3748;border-color:#4a5568;color:#e2e8f0}.floating-toolbar-btn:hover{background:#4a5568;color:#f7fafc}.floating-toolbar-btn:active{background:#718096}.floating-toolbar-separator{background:#4a5568}}';
3054
3105
  let Gt;
3055
- const di = "__editoraCommandEditorRoot", ui = "__editoraLastCommandButton", wo = "editora-editor, [data-editora-editor], .rte-editor, .editora-editor", To = ".rte-content, .editora-content", fi = "Rich text editor", xe = /* @__PURE__ */ new Set();
3106
+ const di = "__editoraCommandEditorRoot", ui = "__editoraLastCommandButton", wo = "editora-editor, [data-editora-editor], .rte-editor, .editora-editor", To = ".rte-content, .editora-content", pi = "Rich text editor", xe = /* @__PURE__ */ new Set();
3056
3107
  let J = null, ko = !1, Ee = null, ve = null;
3057
3108
  function xo(s) {
3058
3109
  if (!(s instanceof HTMLElement)) return !1;
3059
3110
  const t = s;
3060
3111
  return typeof t.execCommand == "function" && (t.tagName.toLowerCase() === "editora-editor" || t.classList.contains("editora-editor") || t.hasAttribute("data-editora-editor"));
3061
3112
  }
3062
- function pi(s) {
3113
+ function fi(s) {
3063
3114
  return s ? s.nodeType === Node.ELEMENT_NODE ? s : s.parentElement : null;
3064
3115
  }
3065
3116
  function St(s) {
@@ -3094,7 +3145,7 @@ function hi() {
3094
3145
  }
3095
3146
  const o = (i = window.getSelection) == null ? void 0 : i.call(window);
3096
3147
  if (o && o.rangeCount > 0) {
3097
- const r = St(pi(o.getRangeAt(0).startContainer));
3148
+ const r = St(fi(o.getRangeAt(0).startContainer));
3098
3149
  if (r) return r;
3099
3150
  }
3100
3151
  if (J && J.isConnected)
@@ -3119,7 +3170,7 @@ function gi() {
3119
3170
  t.id = s, t.textContent = ci, document.head.appendChild(t);
3120
3171
  }
3121
3172
  }
3122
- function Oo() {
3173
+ function Do() {
3123
3174
  if (!Gt) {
3124
3175
  const s = gt.__globalPluginLoader;
3125
3176
  s ? Gt = s : Gt = new li();
@@ -3127,14 +3178,14 @@ function Oo() {
3127
3178
  return Gt;
3128
3179
  }
3129
3180
  function yi(s) {
3130
- const t = Oo();
3181
+ const t = Do();
3131
3182
  Object.entries(s).forEach(([e, o]) => {
3132
3183
  t.register(e, o);
3133
3184
  });
3134
3185
  }
3135
3186
  class gt extends HTMLElement {
3136
3187
  constructor() {
3137
- if (super(), this.pluginLoader = Oo(), this.config = {}, this.isInitialized = !1, this.keyboardShortcutManager = new cn(), this.lastAutosavedContent = "", this.preservedContent = null, this.loadedPlugins = [], this.lastBeforeInputType = null, gi(), !this.hasAttribute("data-initial-content")) {
3188
+ if (super(), this.pluginLoader = Do(), this.config = {}, this.isInitialized = !1, this.keyboardShortcutManager = new cn(), this.lastAutosavedContent = "", this.preservedContent = null, this.loadedPlugins = [], this.lastBeforeInputType = null, this.pendingHistorySnapshot = null, gi(), !this.hasAttribute("data-initial-content")) {
3138
3189
  const t = this.innerHTML.trim();
3139
3190
  t && this.setAttribute("data-initial-content", t);
3140
3191
  }
@@ -3389,7 +3440,7 @@ class gt extends HTMLElement {
3389
3440
  if (t.enableARIA) {
3390
3441
  this.contentElement.setAttribute("role", "textbox"), this.contentElement.setAttribute("aria-multiline", "true"), this.contentElement.setAttribute("aria-disabled", this.config.readonly ? "true" : "false");
3391
3442
  const o = (e = this.getAttribute("aria-label")) == null ? void 0 : e.trim(), i = typeof this.config.placeholder == "string" ? this.config.placeholder.trim() : "";
3392
- this.contentElement.setAttribute("aria-label", o || i || fi);
3443
+ this.contentElement.setAttribute("aria-label", o || i || pi);
3393
3444
  } else
3394
3445
  this.contentElement.removeAttribute("role"), this.contentElement.removeAttribute("aria-multiline"), this.contentElement.removeAttribute("aria-disabled"), this.contentElement.removeAttribute("aria-label");
3395
3446
  this.contentElement.tabIndex = t.keyboardNavigation ? 0 : -1;
@@ -3580,7 +3631,7 @@ class gt extends HTMLElement {
3580
3631
  */
3581
3632
  createUI(t, e) {
3582
3633
  const o = this.querySelector('[slot="toolbar"]'), i = this.querySelector('[slot="statusbar"]');
3583
- this.innerHTML = "", this.config.toolbar !== !1 && !o ? (this.toolbarElement = document.createElement("div"), this.toolbarElement.className = "editora-toolbar-container", this.appendChild(this.toolbarElement), this.toolbar = new fn(
3634
+ this.innerHTML = "", this.config.toolbar !== !1 && !o ? (this.toolbarElement = document.createElement("div"), this.toolbarElement.className = "editora-toolbar-container", this.appendChild(this.toolbarElement), this.toolbar = new pn(
3584
3635
  {
3585
3636
  items: this.resolveToolbarItems(),
3586
3637
  sticky: this.isToolbarStickyEnabled(),
@@ -3593,10 +3644,10 @@ class gt extends HTMLElement {
3593
3644
  var c;
3594
3645
  if (this.contentElement) {
3595
3646
  this.contentElement.focus();
3596
- const p = window.getSelection();
3597
- if (!p || p.rangeCount === 0 || !this.contentElement.contains(p.anchorNode)) {
3598
- const m = document.createRange(), v = this.contentElement.lastChild || this.contentElement;
3599
- v.nodeType === Node.TEXT_NODE ? m.setStart(v, ((c = v.textContent) == null ? void 0 : c.length) || 0) : v.nodeType === Node.ELEMENT_NODE ? (m.selectNodeContents(v), m.collapse(!1)) : m.setStart(this.contentElement, 0), m.collapse(!0), p == null || p.removeAllRanges(), p == null || p.addRange(m);
3647
+ const f = window.getSelection();
3648
+ if (!f || f.rangeCount === 0 || !this.contentElement.contains(f.anchorNode)) {
3649
+ const m = document.createRange(), g = this.contentElement.lastChild || this.contentElement;
3650
+ g.nodeType === Node.TEXT_NODE ? m.setStart(g, ((c = g.textContent) == null ? void 0 : c.length) || 0) : g.nodeType === Node.ELEMENT_NODE ? (m.selectNodeContents(g), m.collapse(!1)) : m.setStart(this.contentElement, 0), m.collapse(!0), f == null || f.removeAllRanges(), f == null || f.addRange(m);
3600
3651
  }
3601
3652
  }
3602
3653
  return this.executeCommand(r, l);
@@ -3610,18 +3661,32 @@ class gt extends HTMLElement {
3610
3661
  const r = document.createElement("div");
3611
3662
  r.innerHTML = e.trim(), !Array.from(r.childNodes).some((c) => {
3612
3663
  if (c.nodeType === Node.ELEMENT_NODE) {
3613
- const p = c.tagName;
3614
- return ["P", "DIV", "H1", "H2", "H3", "H4", "H5", "H6", "UL", "OL", "BLOCKQUOTE", "PRE"].includes(p);
3664
+ const f = c.tagName;
3665
+ return ["P", "DIV", "H1", "H2", "H3", "H4", "H5", "H6", "UL", "OL", "BLOCKQUOTE", "PRE"].includes(f);
3615
3666
  }
3616
3667
  return !1;
3617
3668
  }) && e.trim() ? this.contentElement.innerHTML = `<p>${e.trim()}</p>` : this.contentElement.innerHTML = e;
3618
3669
  } else
3619
3670
  this.config.placeholder ? this.contentElement.innerHTML = "" : this.contentElement.innerHTML = "<p><br></p>";
3620
- this.appendChild(this.contentElement), this.isToolbarFloatingEnabled() && (this.floatingToolbar = new pn({ enabled: !0 }), this.floatingToolbar.create(this)), i ? this.appendChild(i) : this.isStatusbarEnabled() && (this.statusBarElement = document.createElement("div"), this.statusBarElement.className = "editora-statusbar-container", this.appendChild(this.statusBarElement), this.statusBar = new hn({ position: this.getStatusbarPosition() }), this.statusBar.create(this.statusBarElement)), this.config.autofocus && setTimeout(() => {
3671
+ this.appendChild(this.contentElement), this.isToolbarFloatingEnabled() && (this.floatingToolbar = new fn({ enabled: !0 }), this.floatingToolbar.create(this)), i ? this.appendChild(i) : this.isStatusbarEnabled() && (this.statusBarElement = document.createElement("div"), this.statusBarElement.className = "editora-statusbar-container", this.appendChild(this.statusBarElement), this.statusBar = new hn({ position: this.getStatusbarPosition() }), this.statusBar.create(this.statusBarElement)), this.config.autofocus && setTimeout(() => {
3621
3672
  var r;
3622
3673
  return (r = this.contentElement) == null ? void 0 : r.focus();
3623
3674
  }, 0);
3624
3675
  }
3676
+ /**
3677
+ * Hands what a keystroke changed to the history plugin, so Undo takes back typing. Without this the
3678
+ * plugin only knew about changes that plugins reported themselves, and typed text could not be undone.
3679
+ */
3680
+ recordInputHistory(t) {
3681
+ const e = this.pendingHistorySnapshot;
3682
+ if (this.pendingHistorySnapshot = null, !e || !this.contentElement || e.beforeHTML === t) return;
3683
+ const o = window.execEditorCommand;
3684
+ typeof o == "function" && o("recordDomTransaction", this.contentElement, e.beforeHTML, t, {
3685
+ inputType: e.inputType,
3686
+ data: e.data,
3687
+ selectionCollapsed: e.selectionCollapsed
3688
+ });
3689
+ }
3625
3690
  /**
3626
3691
  * Setup event listeners
3627
3692
  */
@@ -3629,43 +3694,49 @@ class gt extends HTMLElement {
3629
3694
  if (!this.contentElement || !this.engine) return;
3630
3695
  const t = this.keyboardShortcutManager;
3631
3696
  this.contentElement.addEventListener("beforeinput", (o) => {
3632
- this.lastBeforeInputType = o.inputType || null;
3697
+ var i, r;
3698
+ this.lastBeforeInputType = o.inputType || null, o.inputType === "historyUndo" || o.inputType === "historyRedo" ? this.pendingHistorySnapshot = null : this.contentElement && (this.pendingHistorySnapshot = {
3699
+ beforeHTML: this.contentElement.innerHTML,
3700
+ inputType: o.inputType || null,
3701
+ data: typeof o.data == "string" ? o.data : null,
3702
+ selectionCollapsed: (r = (i = window.getSelection()) == null ? void 0 : i.isCollapsed) != null ? r : !0
3703
+ });
3633
3704
  }), this.contentElement.addEventListener("input", (o) => {
3634
- var C;
3705
+ var k;
3635
3706
  if (!this.contentElement) return;
3636
3707
  let i = this.contentElement.innerHTML;
3637
- const r = (C = o == null ? void 0 : o.detail) == null ? void 0 : C.allowedTags, l = this.getPerformanceConfig(), c = this.getContentSanitizeConfig(), p = this.getSecurityConfig(), m = this.lastBeforeInputType;
3638
- if (this.lastBeforeInputType = null, p.sanitizeOnInput !== !1 && c.sanitize !== !1 && !m) {
3639
- const w = vo(i, c, p, r);
3708
+ const r = (k = o == null ? void 0 : o.detail) == null ? void 0 : k.allowedTags, l = this.getPerformanceConfig(), c = this.getContentSanitizeConfig(), f = this.getSecurityConfig(), m = this.lastBeforeInputType;
3709
+ if (this.lastBeforeInputType = null, f.sanitizeOnInput !== !1 && c.sanitize !== !1 && !m) {
3710
+ const w = vo(i, c, f, r);
3640
3711
  if (w !== i) {
3641
- const E = window.getSelection(), K = E && E.rangeCount > 0 ? E.getRangeAt(0) : null;
3642
- if (this.contentElement.innerHTML = w, K && E)
3712
+ const v = window.getSelection(), K = v && v.rangeCount > 0 ? v.getRangeAt(0) : null;
3713
+ if (this.contentElement.innerHTML = w, K && v)
3643
3714
  try {
3644
- E.removeAllRanges(), E.addRange(K);
3645
- } catch (D) {
3715
+ v.removeAllRanges(), v.addRange(K);
3716
+ } catch (O) {
3646
3717
  }
3647
3718
  i = w;
3648
3719
  }
3649
3720
  }
3650
- this.contentChangeDebounceTimer && clearTimeout(this.contentChangeDebounceTimer);
3651
- const A = () => {
3721
+ this.recordInputHistory(i), this.contentChangeDebounceTimer && clearTimeout(this.contentChangeDebounceTimer);
3722
+ const T = () => {
3652
3723
  this.dispatchEvent(new CustomEvent("content-change", {
3653
3724
  detail: { html: Io(i) },
3654
3725
  bubbles: !0
3655
3726
  }));
3656
3727
  };
3657
- l.debounceInputMs > 0 ? this.contentChangeDebounceTimer = setTimeout(A, l.debounceInputMs) : A(), this.updateStatusBar();
3728
+ l.debounceInputMs > 0 ? this.contentChangeDebounceTimer = setTimeout(T, l.debounceInputMs) : T(), this.updateStatusBar();
3658
3729
  }), this.contentElement.addEventListener("contextmenu", (o) => {
3659
3730
  const i = this.config.contextMenu;
3660
3731
  (i === !1 || typeof i == "object" && i !== null && i.enabled === !1) && o.preventDefault();
3661
3732
  }), this.contentElement.addEventListener("paste", (o) => {
3662
- var v, A;
3733
+ var g, T;
3663
3734
  if (o.__editoraSmartPasteHandled === !0 || o.defaultPrevented)
3664
3735
  return;
3665
3736
  o.preventDefault();
3666
3737
  const i = this.config.paste || {};
3667
- let r = ((v = o.clipboardData) == null ? void 0 : v.getData("text/html")) || "";
3668
- const l = ((A = o.clipboardData) == null ? void 0 : A.getData("text/plain")) || "", c = this.getContentSanitizeConfig(), p = this.getSecurityConfig(), m = !!r && /class=["'][^"']*Mso|xmlns:w=|urn:schemas-microsoft-com:office/i.test(r);
3738
+ let r = ((g = o.clipboardData) == null ? void 0 : g.getData("text/html")) || "";
3739
+ const l = ((T = o.clipboardData) == null ? void 0 : T.getData("text/plain")) || "", c = this.getContentSanitizeConfig(), f = this.getSecurityConfig(), m = !!r && /class=["'][^"']*Mso|xmlns:w=|urn:schemas-microsoft-com:office/i.test(r);
3669
3740
  if ((i.clean || !i.keepFormatting) && l) {
3670
3741
  document.execCommand("insertText", !1, l);
3671
3742
  return;
@@ -3675,7 +3746,7 @@ class gt extends HTMLElement {
3675
3746
  return;
3676
3747
  }
3677
3748
  if (r) {
3678
- p.sanitizeOnPaste !== !1 && c.sanitize !== !1 && (r = ri(r, c, p)), this.insertHTMLAtSelection(r);
3749
+ f.sanitizeOnPaste !== !1 && c.sanitize !== !1 && (r = ri(r, c, f)), this.insertHTMLAtSelection(r);
3679
3750
  return;
3680
3751
  }
3681
3752
  l && document.execCommand("insertText", !1, l);
@@ -3765,14 +3836,14 @@ class gt extends HTMLElement {
3765
3836
  if (t.viewportOnlyScan && !this.isEditorInViewport() && !e)
3766
3837
  return;
3767
3838
  const o = this.contentElement.textContent || "", { words: i, chars: r } = yn(o), l = bn(this.contentElement);
3768
- let c, p;
3839
+ let c, f;
3769
3840
  const m = this.getSelectionRangeInEditor();
3770
- m && (c = mn(this.contentElement, m), m.collapsed || (p = En(m, c), c = void 0)), this.statusBar.update({
3841
+ m && (c = mn(this.contentElement, m), m.collapsed || (f = En(m, c), c = void 0)), this.statusBar.update({
3771
3842
  wordCount: i,
3772
3843
  charCount: r,
3773
3844
  lineCount: l,
3774
3845
  cursorPosition: c,
3775
- selectionInfo: p
3846
+ selectionInfo: f
3776
3847
  });
3777
3848
  }
3778
3849
  /**
@@ -3922,12 +3993,12 @@ class gt extends HTMLElement {
3922
3993
  export {
3923
3994
  dn as C,
3924
3995
  Kt as E,
3925
- pn as F,
3996
+ fn as F,
3926
3997
  cn as K,
3927
3998
  Ao as P,
3928
3999
  gt as R,
3929
4000
  ln as S,
3930
- fn as T,
4001
+ pn as T,
3931
4002
  un as a,
3932
4003
  ke as b,
3933
4004
  li as c,
@@ -3945,4 +4016,4 @@ export {
3945
4016
  yi as o,
3946
4017
  ii as s
3947
4018
  };
3948
- //# sourceMappingURL=index-DGMYWPLx.mjs.map
4019
+ //# sourceMappingURL=index-BICrB5kg.mjs.map