@grapesjs/studio-sdk-plugins 1.0.18 → 1.0.19-rc.1

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 (92) hide show
  1. package/dist/accordionComponent/index.cjs.js +2 -2
  2. package/dist/accordionComponent/index.es.js +12 -12
  3. package/dist/accordionComponent/index.umd.js +2 -2
  4. package/dist/accordionComponent/shared.d.ts +3 -0
  5. package/dist/canvasEmptyState/index.cjs.js +1 -1
  6. package/dist/canvasEmptyState/index.es.js +25 -25
  7. package/dist/canvasEmptyState/index.umd.js +1 -1
  8. package/dist/canvasEmptyState/shared.d.ts +3 -0
  9. package/dist/canvasFullSize/index.cjs.js +2 -2
  10. package/dist/canvasFullSize/index.es.js +26 -26
  11. package/dist/canvasFullSize/index.umd.js +2 -2
  12. package/dist/canvasFullSize/shared.d.ts +3 -0
  13. package/dist/canvasGridMode/commands/moveCommand.d.ts +2 -0
  14. package/dist/canvasGridMode/commands/resizeCommand.d.ts +6 -0
  15. package/dist/canvasGridMode/commands/updateCommand.d.ts +2 -0
  16. package/dist/canvasGridMode/index.cjs.d.ts +3 -0
  17. package/dist/canvasGridMode/index.cjs.js +26 -0
  18. package/dist/canvasGridMode/index.d.ts +3 -0
  19. package/dist/canvasGridMode/index.es.d.ts +3 -0
  20. package/dist/canvasGridMode/index.es.js +673 -0
  21. package/dist/canvasGridMode/index.umd.js +26 -0
  22. package/dist/canvasGridMode/shared.d.ts +3 -0
  23. package/dist/canvasGridMode/styleManager.d.ts +3 -0
  24. package/dist/canvasGridMode/types.d.ts +16 -0
  25. package/dist/canvasGridMode/typesSchema.d.ts +36 -0
  26. package/dist/canvasGridMode/utils.d.ts +150 -0
  27. package/dist/flexComponent/index.cjs.js +6 -6
  28. package/dist/flexComponent/index.es.js +40 -40
  29. package/dist/flexComponent/index.umd.js +6 -6
  30. package/dist/flexComponent/shared.d.ts +3 -0
  31. package/dist/fsLightboxComponent/index.cjs.js +2 -2
  32. package/dist/fsLightboxComponent/index.es.js +28 -28
  33. package/dist/fsLightboxComponent/index.umd.js +2 -2
  34. package/dist/fsLightboxComponent/shared.d.ts +3 -0
  35. package/dist/googleFontsAssetProvider/index.cjs.js +1 -1
  36. package/dist/googleFontsAssetProvider/index.es.js +118 -98
  37. package/dist/googleFontsAssetProvider/index.umd.js +1 -1
  38. package/dist/googleFontsAssetProvider/utils.d.ts +1 -1
  39. package/dist/iconifyComponent/index.cjs.js +2 -2
  40. package/dist/iconifyComponent/index.es.js +160 -160
  41. package/dist/iconifyComponent/index.umd.js +2 -2
  42. package/dist/iconifyComponent/shared.d.ts +3 -0
  43. package/dist/index.cjs.d.ts +2 -0
  44. package/dist/index.cjs.js +87 -51
  45. package/dist/index.d.ts +2 -0
  46. package/dist/index.es.d.ts +2 -0
  47. package/dist/index.es.js +5629 -4929
  48. package/dist/index.umd.js +79 -43
  49. package/dist/layoutSidebarButtons/index.cjs.js +1 -1
  50. package/dist/layoutSidebarButtons/index.es.js +81 -81
  51. package/dist/layoutSidebarButtons/index.umd.js +1 -1
  52. package/dist/layoutSidebarButtons/shared.d.ts +3 -0
  53. package/dist/lightGalleryComponent/index.cjs.js +1 -1
  54. package/dist/lightGalleryComponent/index.es.js +45 -45
  55. package/dist/lightGalleryComponent/index.umd.js +1 -1
  56. package/dist/lightGalleryComponent/shared.d.ts +3 -0
  57. package/dist/listPagesComponent/index.cjs.js +3 -3
  58. package/dist/listPagesComponent/index.es.js +63 -62
  59. package/dist/listPagesComponent/index.umd.js +3 -3
  60. package/dist/listPagesComponent/shared.d.ts +3 -0
  61. package/dist/presetPrintable/index.cjs.d.ts +3 -0
  62. package/dist/presetPrintable/index.cjs.js +12 -0
  63. package/dist/presetPrintable/index.d.ts +3 -0
  64. package/dist/presetPrintable/index.es.d.ts +3 -0
  65. package/dist/presetPrintable/index.es.js +215 -0
  66. package/dist/presetPrintable/index.umd.js +12 -0
  67. package/dist/presetPrintable/types.d.ts +17 -0
  68. package/dist/presetPrintable/typesSchema.d.ts +13 -0
  69. package/dist/presetPrintable/utils.d.ts +5 -0
  70. package/dist/prosemirror/index.cjs.js +7 -7
  71. package/dist/prosemirror/index.es.js +437 -436
  72. package/dist/prosemirror/index.umd.js +1 -1
  73. package/dist/prosemirror/shared.d.ts +3 -0
  74. package/dist/rteTinyMce/index.cjs.js +2 -2
  75. package/dist/rteTinyMce/index.es.js +37 -37
  76. package/dist/rteTinyMce/index.umd.js +2 -2
  77. package/dist/rteTinyMce/shared.d.ts +3 -0
  78. package/dist/swiperComponent/index.cjs.js +1 -1
  79. package/dist/swiperComponent/index.es.js +4 -4
  80. package/dist/swiperComponent/index.umd.js +3 -3
  81. package/dist/swiperComponent/shared.d.ts +3 -0
  82. package/dist/tableComponent/index.cjs.js +1 -1
  83. package/dist/tableComponent/index.es.js +95 -94
  84. package/dist/tableComponent/index.umd.js +1 -1
  85. package/dist/tableComponent/shared.d.ts +3 -0
  86. package/dist/types.d.ts +2 -1
  87. package/dist/utils.d.ts +1 -0
  88. package/dist/youtubeAssetProvider/index.cjs.js +1 -1
  89. package/dist/youtubeAssetProvider/index.es.js +29 -28
  90. package/dist/youtubeAssetProvider/index.umd.js +1 -1
  91. package/dist/youtubeAssetProvider/shared.d.ts +3 -0
  92. package/package.json +2 -2
@@ -993,7 +993,7 @@ class Qt {
993
993
  return this.$to.indexAfter(this.depth);
994
994
  }
995
995
  }
996
- const jo = /* @__PURE__ */ Object.create(null);
996
+ const Uo = /* @__PURE__ */ Object.create(null);
997
997
  let Je = class qn {
998
998
  /**
999
999
  @internal
@@ -1112,7 +1112,7 @@ let Je = class qn {
1112
1112
  attributes, and marks.
1113
1113
  */
1114
1114
  hasMarkup(e, t, r) {
1115
- return this.type == e && Xt(this.attrs, t || e.defaultAttrs || jo) && N.sameSet(this.marks, r || N.none);
1115
+ return this.type == e && Xt(this.attrs, t || e.defaultAttrs || Uo) && N.sameSet(this.marks, r || N.none);
1116
1116
  }
1117
1117
  /**
1118
1118
  Create a new node with the same markup as this node, containing
@@ -1407,7 +1407,7 @@ function rs(n, e) {
1407
1407
  e = n[t].type.name + "(" + e + ")";
1408
1408
  return e;
1409
1409
  }
1410
- class Ue {
1410
+ class je {
1411
1411
  /**
1412
1412
  @internal
1413
1413
  */
@@ -1418,9 +1418,9 @@ class Ue {
1418
1418
  @internal
1419
1419
  */
1420
1420
  static parse(e, t) {
1421
- let r = new Uo(e, t);
1421
+ let r = new jo(e, t);
1422
1422
  if (r.next == null)
1423
- return Ue.empty;
1423
+ return je.empty;
1424
1424
  let i = is(r);
1425
1425
  r.next && r.err("Unexpected trailing text");
1426
1426
  let s = el(Qo(i));
@@ -1569,8 +1569,8 @@ class Ue {
1569
1569
  `);
1570
1570
  }
1571
1571
  }
1572
- Ue.empty = new Ue(!0);
1573
- class Uo {
1572
+ je.empty = new je(!0);
1573
+ class jo {
1574
1574
  constructor(e, t) {
1575
1575
  this.string = e, this.nodeTypes = t, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
1576
1576
  }
@@ -1732,7 +1732,7 @@ function el(n) {
1732
1732
  });
1733
1733
  });
1734
1734
  });
1735
- let s = e[r.join(",")] = new Ue(r.indexOf(n.length - 1) > -1);
1735
+ let s = e[r.join(",")] = new je(r.indexOf(n.length - 1) > -1);
1736
1736
  for (let o = 0; o < i.length; o++) {
1737
1737
  let l = i[o][1].sort(ss);
1738
1738
  s.next.push({ type: i[o][0], next: e[l.join(",")] || t(l) });
@@ -1815,7 +1815,7 @@ let Ir = class hs {
1815
1815
  True for node types that allow no content.
1816
1816
  */
1817
1817
  get isLeaf() {
1818
- return this.contentMatch == Ue.empty;
1818
+ return this.contentMatch == je.empty;
1819
1819
  }
1820
1820
  /**
1821
1821
  True when this node is an atom, i.e. when it does not have
@@ -2056,7 +2056,7 @@ class il {
2056
2056
  if (i in this.marks)
2057
2057
  throw new RangeError(i + " can not be both a node and a mark");
2058
2058
  let s = this.nodes[i], o = s.spec.content || "", l = s.spec.marks;
2059
- if (s.contentMatch = r[o] || (r[o] = Ue.parse(o, this.nodes)), s.inlineContent = s.contentMatch.inlineContent, s.spec.linebreakReplacement) {
2059
+ if (s.contentMatch = r[o] || (r[o] = je.parse(o, this.nodes)), s.inlineContent = s.contentMatch.inlineContent, s.spec.linebreakReplacement) {
2060
2060
  if (this.linebreakReplacement)
2061
2061
  throw new RangeError("Multiple linebreak nodes defined");
2062
2062
  if (!s.isInline || !s.isLeaf)
@@ -2821,7 +2821,7 @@ function Hr(n) {
2821
2821
  function ul(n) {
2822
2822
  return (n - (n & ps)) / ms;
2823
2823
  }
2824
- const gs = 1, ys = 2, jt = 4, bs = 8;
2824
+ const gs = 1, ys = 2, Ut = 4, bs = 8;
2825
2825
  class Kn {
2826
2826
  /**
2827
2827
  @internal
@@ -2841,13 +2841,13 @@ class Kn {
2841
2841
  Tells you whether the token before the mapped position was deleted.
2842
2842
  */
2843
2843
  get deletedBefore() {
2844
- return (this.delInfo & (gs | jt)) > 0;
2844
+ return (this.delInfo & (gs | Ut)) > 0;
2845
2845
  }
2846
2846
  /**
2847
2847
  True when the token after the mapped position was deleted.
2848
2848
  */
2849
2849
  get deletedAfter() {
2850
- return (this.delInfo & (ys | jt)) > 0;
2850
+ return (this.delInfo & (ys | Ut)) > 0;
2851
2851
  }
2852
2852
  /**
2853
2853
  Tells whether any of the steps mapped through deletes across the
@@ -2855,7 +2855,7 @@ class Kn {
2855
2855
  position).
2856
2856
  */
2857
2857
  get deletedAcross() {
2858
- return (this.delInfo & jt) > 0;
2858
+ return (this.delInfo & Ut) > 0;
2859
2859
  }
2860
2860
  }
2861
2861
  class G {
@@ -2898,7 +2898,7 @@ class G {
2898
2898
  let d = c ? e == a ? -1 : e == h ? 1 : t : t, u = a + i + (d < 0 ? 0 : f);
2899
2899
  if (r)
2900
2900
  return u;
2901
- let p = e == (t < 0 ? a : h) ? null : dl(l / 3, e - a), m = e == a ? ys : e == h ? gs : jt;
2901
+ let p = e == (t < 0 ? a : h) ? null : dl(l / 3, e - a), m = e == a ? ys : e == h ? gs : Ut;
2902
2902
  return (t < 0 ? e != a : e != h) && (m |= bs), new Kn(u, m, p);
2903
2903
  }
2904
2904
  i += f - c;
@@ -3317,7 +3317,7 @@ class H extends W {
3317
3317
  super(), this.from = e, this.to = t, this.slice = r, this.structure = i;
3318
3318
  }
3319
3319
  apply(e) {
3320
- return this.structure && jn(e, this.from, this.to) ? E.fail("Structure replace would overwrite content") : E.fromReplace(e, this.from, this.to, this.slice);
3320
+ return this.structure && Un(e, this.from, this.to) ? E.fail("Structure replace would overwrite content") : E.fromReplace(e, this.from, this.to, this.slice);
3321
3321
  }
3322
3322
  getMap() {
3323
3323
  return new G([this.from, this.to - this.from, this.slice.size]);
@@ -3366,7 +3366,7 @@ class F extends W {
3366
3366
  super(), this.from = e, this.to = t, this.gapFrom = r, this.gapTo = i, this.slice = s, this.insert = o, this.structure = l;
3367
3367
  }
3368
3368
  apply(e) {
3369
- if (this.structure && (jn(e, this.from, this.gapFrom) || jn(e, this.gapTo, this.to)))
3369
+ if (this.structure && (Un(e, this.from, this.gapFrom) || Un(e, this.gapTo, this.to)))
3370
3370
  return E.fail("Structure gap-replace would overwrite content");
3371
3371
  let t = e.slice(this.gapFrom, this.gapTo);
3372
3372
  if (t.openStart || t.openEnd)
@@ -3413,7 +3413,7 @@ class F extends W {
3413
3413
  }
3414
3414
  }
3415
3415
  W.jsonID("replaceAround", F);
3416
- function jn(n, e, t) {
3416
+ function Un(n, e, t) {
3417
3417
  let r = n.resolve(e), i = t - e, s = r.depth;
3418
3418
  for (; i > 0 && s > 0 && r.indexAfter(s) == r.node(s).childCount; )
3419
3419
  s--, i--;
@@ -4683,7 +4683,7 @@ function qr(n, e, t) {
4683
4683
  o == null && (o = f);
4684
4684
  }), n.setSelection(S.near(n.doc.resolve(o), t));
4685
4685
  }
4686
- const Kr = 1, $t = 2, jr = 4;
4686
+ const Kr = 1, $t = 2, Ur = 4;
4687
4687
  class Vl extends Ns {
4688
4688
  /**
4689
4689
  @internal
@@ -4826,21 +4826,21 @@ class Vl extends Ns {
4826
4826
  when updated to the state produced by this transaction.
4827
4827
  */
4828
4828
  scrollIntoView() {
4829
- return this.updated |= jr, this;
4829
+ return this.updated |= Ur, this;
4830
4830
  }
4831
4831
  /**
4832
4832
  True when this transaction has had `scrollIntoView` called on it.
4833
4833
  */
4834
4834
  get scrolledIntoView() {
4835
- return (this.updated & jr) > 0;
4835
+ return (this.updated & Ur) > 0;
4836
4836
  }
4837
4837
  }
4838
- function Ur(n, e) {
4838
+ function jr(n, e) {
4839
4839
  return !e || !n ? n : n.bind(e);
4840
4840
  }
4841
4841
  class xt {
4842
4842
  constructor(e, t, r) {
4843
- this.name = e, this.init = Ur(t.init, r), this.apply = Ur(t.apply, r);
4843
+ this.name = e, this.init = jr(t.init, r), this.apply = jr(t.apply, r);
4844
4844
  }
4845
4845
  }
4846
4846
  const Fl = [
@@ -5233,7 +5233,7 @@ const vs = (n, e) => {
5233
5233
  a.setSelection(S.near(a.doc.resolve(l), 1)), e(a.scrollIntoView());
5234
5234
  }
5235
5235
  return !0;
5236
- }, jl = (n, e) => {
5236
+ }, Ul = (n, e) => {
5237
5237
  let t = n.selection, { $from: r, $to: i } = t;
5238
5238
  if (t instanceof X || r.parent.inlineContent || i.parent.inlineContent)
5239
5239
  return !1;
@@ -5286,7 +5286,7 @@ function Bs(n) {
5286
5286
  return t && t(f.scrollIntoView()), !0;
5287
5287
  };
5288
5288
  }
5289
- const Ul = Bs(), Ps = (n, e) => (e && e(n.tr.setSelection(new X(n.doc))), !0);
5289
+ const jl = Bs(), Ps = (n, e) => (e && e(n.tr.setSelection(new X(n.doc))), !0);
5290
5290
  function Gl(n, e, t) {
5291
5291
  let r = e.nodeBefore, i = e.nodeAfter, s = e.index();
5292
5292
  return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(s - 1, s) ? (t && t(n.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(s, s + 1) || !(i.isTextblock || mn(n.doc, e.pos)) ? !1 : (t && t(n.tr.join(e.pos).scrollIntoView()), !0);
@@ -5420,7 +5420,7 @@ function Tt(...n) {
5420
5420
  }
5421
5421
  let En = Tt(Es, Hl, $l), Gr = Tt(Es, Jl, ql);
5422
5422
  const ge = {
5423
- Enter: Tt(Kl, jl, zs, Ul),
5423
+ Enter: Tt(Kl, Ul, zs, jl),
5424
5424
  "Mod-Enter": vs,
5425
5425
  Backspace: En,
5426
5426
  "Mod-Backspace": En,
@@ -5686,10 +5686,10 @@ function sa(n, e, t, r) {
5686
5686
  if (t.steps.length == 0)
5687
5687
  return n;
5688
5688
  if (o && o.getMeta(qe))
5689
- return o.getMeta(qe).redo ? new Ce(n.done.addTransform(t, void 0, r, Ut(e)), n.undone, _r(t.mapping.maps), n.prevTime, n.prevComposition) : new Ce(n.done, n.undone.addTransform(t, void 0, r, Ut(e)), null, n.prevTime, n.prevComposition);
5689
+ return o.getMeta(qe).redo ? new Ce(n.done.addTransform(t, void 0, r, jt(e)), n.undone, _r(t.mapping.maps), n.prevTime, n.prevComposition) : new Ce(n.done, n.undone.addTransform(t, void 0, r, jt(e)), null, n.prevTime, n.prevComposition);
5690
5690
  if (t.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
5691
5691
  let l = t.getMeta("composition"), a = n.prevTime == 0 || !o && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !oa(t, n.prevRanges)), c = o ? Rn(n.prevRanges, t.mapping) : _r(t.mapping.maps);
5692
- return new Ce(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, r, Ut(e)), re.empty, c, t.time, l ?? n.prevComposition);
5692
+ return new Ce(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, r, jt(e)), re.empty, c, t.time, l ?? n.prevComposition);
5693
5693
  } else return (s = t.getMeta("rebased")) ? new Ce(n.done.rebased(t, s), n.undone.rebased(t, s), Rn(n.prevRanges, t.mapping), n.prevTime, n.prevComposition) : new Ce(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), Rn(n.prevRanges, t.mapping), n.prevTime, n.prevComposition);
5694
5694
  }
5695
5695
  function oa(n, e) {
@@ -5720,14 +5720,14 @@ function Rn(n, e) {
5720
5720
  return t;
5721
5721
  }
5722
5722
  function la(n, e, t) {
5723
- let r = Ut(e), i = qe.get(e).spec.config, s = (t ? n.undone : n.done).popEvent(e, r);
5723
+ let r = jt(e), i = qe.get(e).spec.config, s = (t ? n.undone : n.done).popEvent(e, r);
5724
5724
  if (!s)
5725
5725
  return null;
5726
5726
  let o = s.selection.resolve(s.transform.doc), l = (t ? n.done : n.undone).addTransform(s.transform, e.selection.getBookmark(), i, r), a = new Ce(t ? l : s.remaining, t ? s.remaining : l, null, 0, -1);
5727
5727
  return s.transform.setSelection(o).setMeta(qe, { redo: t, historyState: a });
5728
5728
  }
5729
5729
  let In = !1, Xr = null;
5730
- function Ut(n) {
5730
+ function jt(n) {
5731
5731
  let e = n.plugins;
5732
5732
  if (Xr != e) {
5733
5733
  In = !1, Xr = e;
@@ -5758,7 +5758,7 @@ function ca(n = {}) {
5758
5758
  props: {
5759
5759
  handleDOMEvents: {
5760
5760
  beforeinput(e, t) {
5761
- let r = t.inputType, i = r == "historyUndo" ? Ws : r == "historyRedo" ? Un : null;
5761
+ let r = t.inputType, i = r == "historyUndo" ? Ws : r == "historyRedo" ? jn : null;
5762
5762
  return i ? (t.preventDefault(), i(e.state, e.dispatch)) : !1;
5763
5763
  }
5764
5764
  }
@@ -5777,7 +5777,7 @@ function $s(n, e) {
5777
5777
  return !0;
5778
5778
  };
5779
5779
  }
5780
- const Ws = $s(!1, !0), Un = $s(!0, !0);
5780
+ const Ws = $s(!1, !0), jn = $s(!0, !0);
5781
5781
  var ve = {
5782
5782
  8: "Backspace",
5783
5783
  9: "Tab",
@@ -6134,9 +6134,9 @@ function Ta(n, e, t) {
6134
6134
  return { node: r.startContainer, offset: Math.min(Q(r.startContainer), r.startOffset) };
6135
6135
  }
6136
6136
  }
6137
- const le = typeof navigator < "u" ? navigator : null, Qr = typeof document < "u" ? document : null, ze = le && le.userAgent || "", Xn = /Edge\/(\d+)/.exec(ze), qs = /MSIE \d/.exec(ze), Yn = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ze), U = !!(qs || Yn || Xn), Ee = qs ? document.documentMode : Yn ? +Yn[1] : Xn ? +Xn[1] : 0, ie = !U && /gecko\/(\d+)/i.test(ze);
6137
+ const le = typeof navigator < "u" ? navigator : null, Qr = typeof document < "u" ? document : null, ze = le && le.userAgent || "", Xn = /Edge\/(\d+)/.exec(ze), qs = /MSIE \d/.exec(ze), Yn = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ze), j = !!(qs || Yn || Xn), Ee = qs ? document.documentMode : Yn ? +Yn[1] : Xn ? +Xn[1] : 0, ie = !j && /gecko\/(\d+)/i.test(ze);
6138
6138
  ie && +(/Firefox\/(\d+)/.exec(ze) || [0, 0])[1];
6139
- const Zn = !U && /Chrome\/(\d+)/.exec(ze), $ = !!Zn, Ks = Zn ? +Zn[1] : 0, J = !U && !!le && /Apple Computer/.test(le.vendor), ht = J && (/Mobile\/\w+/.test(ze) || !!le && le.maxTouchPoints > 2), Z = ht || (le ? /Mac/.test(le.platform) : !1), Aa = le ? /Win/.test(le.platform) : !1, ne = /Android \d/.test(ze), Bt = !!Qr && "webkitFontSmoothing" in Qr.documentElement.style, Da = Bt ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6139
+ const Zn = !j && /Chrome\/(\d+)/.exec(ze), $ = !!Zn, Ks = Zn ? +Zn[1] : 0, J = !j && !!le && /Apple Computer/.test(le.vendor), ht = J && (/Mobile\/\w+/.test(ze) || !!le && le.maxTouchPoints > 2), Z = ht || (le ? /Mac/.test(le.platform) : !1), Aa = le ? /Win/.test(le.platform) : !1, ne = /Android \d/.test(ze), Bt = !!Qr && "webkitFontSmoothing" in Qr.documentElement.style, Da = Bt ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
6140
6140
  function Ea(n) {
6141
6141
  let e = n.defaultView && n.defaultView.visualViewport;
6142
6142
  return e ? {
@@ -6194,9 +6194,9 @@ function Ia(n) {
6194
6194
  break;
6195
6195
  }
6196
6196
  }
6197
- return { refDOM: r, refTop: i, stack: js(n.dom) };
6197
+ return { refDOM: r, refTop: i, stack: Us(n.dom) };
6198
6198
  }
6199
- function js(n) {
6199
+ function Us(n) {
6200
6200
  let e = [], t = n.ownerDocument;
6201
6201
  for (let r = n; r && (e.push({ dom: r, top: r.scrollTop, left: r.scrollLeft }), n != t); r = At(r))
6202
6202
  ;
@@ -6204,9 +6204,9 @@ function js(n) {
6204
6204
  }
6205
6205
  function va({ refDOM: n, refTop: e, stack: t }) {
6206
6206
  let r = n ? n.getBoundingClientRect().top : 0;
6207
- Us(t, r == 0 ? 0 : r - e);
6207
+ js(t, r == 0 ? 0 : r - e);
6208
6208
  }
6209
- function Us(n, e) {
6209
+ function js(n, e) {
6210
6210
  for (let t = 0; t < n.length; t++) {
6211
6211
  let { dom: r, top: i, left: s } = n[t];
6212
6212
  r.scrollTop != i + e && (r.scrollTop = i + e), r.scrollLeft != s && (r.scrollLeft = s);
@@ -6218,12 +6218,12 @@ function za(n) {
6218
6218
  return n.setActive();
6219
6219
  if (Ye)
6220
6220
  return n.focus(Ye);
6221
- let e = js(n);
6221
+ let e = Us(n);
6222
6222
  n.focus(Ye == null ? {
6223
6223
  get preventScroll() {
6224
6224
  return Ye = { preventScroll: !0 }, !0;
6225
6225
  }
6226
- } : void 0), Ye || (Ye = !1, Us(e, 0));
6226
+ } : void 0), Ye || (Ye = !1, js(e, 0));
6227
6227
  }
6228
6228
  function Gs(n, e) {
6229
6229
  let t, r = 2e8, i, s = 0, o = e.top, l = e.top, a, c;
@@ -6925,7 +6925,7 @@ class Re extends Pt {
6925
6925
  } else f || ({ dom: f, contentDOM: h } = Xe.renderSpec(document, t.type.spec.toDOM(t), null, t.attrs));
6926
6926
  !h && !t.isText && f.nodeName != "BR" && (f.hasAttribute("contenteditable") || (f.contentEditable = "false"), t.type.spec.draggable && (f.draggable = !0));
6927
6927
  let d = f;
6928
- return f = no(f, r, t), c ? a = new ja(e, t, r, i, f, h || null, d, c, s, o + 1) : t.isText ? new bn(e, t, r, i, f, d, s) : new Re(e, t, r, i, f, h || null, d, s, o + 1);
6928
+ return f = no(f, r, t), c ? a = new Ua(e, t, r, i, f, h || null, d, c, s, o + 1) : t.isText ? new bn(e, t, r, i, f, d, s) : new Re(e, t, r, i, f, h || null, d, s, o + 1);
6929
6929
  }
6930
6930
  parseRule() {
6931
6931
  if (this.node.type.spec.reparseInView)
@@ -7085,7 +7085,7 @@ class Qs extends Pt {
7085
7085
  return this.dom.nodeName == "IMG";
7086
7086
  }
7087
7087
  }
7088
- class ja extends Re {
7088
+ class Ua extends Re {
7089
7089
  constructor(e, t, r, i, s, o, l, a, c, f) {
7090
7090
  super(e, t, r, i, s, o, l, c, f), this.spec = a;
7091
7091
  }
@@ -7169,11 +7169,11 @@ function to(n, e, t, r) {
7169
7169
  let a;
7170
7170
  l && l.nodeName == o.nodeName && i != n && (a = i.parentNode) && a.nodeName.toLowerCase() == o.nodeName || (a = document.createElement(o.nodeName), a.pmIsDeco = !0, a.appendChild(i), l = Le[0]), i = a;
7171
7171
  }
7172
- Ua(i, l || Le[0], o);
7172
+ ja(i, l || Le[0], o);
7173
7173
  }
7174
7174
  return i;
7175
7175
  }
7176
- function Ua(n, e, t) {
7176
+ function ja(n, e, t) {
7177
7177
  for (let r in e)
7178
7178
  r != "class" && r != "style" && r != "nodeName" && !(r in t) && n.removeAttribute(r);
7179
7179
  for (let r in t)
@@ -7569,7 +7569,7 @@ function tc(n) {
7569
7569
  if (!e)
7570
7570
  return;
7571
7571
  let r = n.cursorWrapper.dom, i = r.nodeName == "IMG";
7572
- i ? t.setStart(r.parentNode, V(r) + 1) : t.setStart(r, 0), t.collapse(!0), e.removeAllRanges(), e.addRange(t), !i && !n.state.selection.visible && U && Ee <= 11 && (r.disabled = !0, r.disabled = !1);
7572
+ i ? t.setStart(r.parentNode, V(r) + 1) : t.setStart(r, 0), t.collapse(!0), e.removeAllRanges(), e.addRange(t), !i && !n.state.selection.visible && j && Ee <= 11 && (r.disabled = !0, r.disabled = !1);
7573
7573
  }
7574
7574
  function io(n, e) {
7575
7575
  if (e instanceof k) {
@@ -8332,7 +8332,7 @@ function vc(n, e) {
8332
8332
  t.parentNode && t.parentNode.removeChild(t), n.focus();
8333
8333
  }, 50);
8334
8334
  }
8335
- const Dt = U && Ee < 15 || ht && Da < 604;
8335
+ const Dt = j && Ee < 15 || ht && Da < 604;
8336
8336
  q.copy = K.cut = (n, e) => {
8337
8337
  let t = e, r = n.state.selection, i = t.type == "cut";
8338
8338
  if (r.empty)
@@ -8483,7 +8483,7 @@ class cn {
8483
8483
  }
8484
8484
  map(e, t, r, i) {
8485
8485
  let { pos: s, deleted: o } = e.mapResult(t.from + i, this.side < 0 ? -1 : 1);
8486
- return o ? null : new j(s - r, s - r, this);
8486
+ return o ? null : new U(s - r, s - r, this);
8487
8487
  }
8488
8488
  valid() {
8489
8489
  return !0;
@@ -8501,7 +8501,7 @@ class Ie {
8501
8501
  }
8502
8502
  map(e, t, r, i) {
8503
8503
  let s = e.map(t.from + i, this.spec.inclusiveStart ? -1 : 1) - r, o = e.map(t.to + i, this.spec.inclusiveEnd ? 1 : -1) - r;
8504
- return s >= o ? null : new j(s, o, this);
8504
+ return s >= o ? null : new U(s, o, this);
8505
8505
  }
8506
8506
  valid(e, t) {
8507
8507
  return t.from < t.to;
@@ -8524,7 +8524,7 @@ class Cr {
8524
8524
  if (s.deleted)
8525
8525
  return null;
8526
8526
  let o = e.mapResult(t.to + i, -1);
8527
- return o.deleted || o.pos <= s.pos ? null : new j(s.pos - r, o.pos - r, this);
8527
+ return o.deleted || o.pos <= s.pos ? null : new U(s.pos - r, o.pos - r, this);
8528
8528
  }
8529
8529
  valid(e, t) {
8530
8530
  let { index: r, offset: i } = e.content.findIndex(t.from), s;
@@ -8536,7 +8536,7 @@ class Cr {
8536
8536
  destroy() {
8537
8537
  }
8538
8538
  }
8539
- class j {
8539
+ class U {
8540
8540
  /**
8541
8541
  @internal
8542
8542
  */
@@ -8547,7 +8547,7 @@ class j {
8547
8547
  @internal
8548
8548
  */
8549
8549
  copy(e, t) {
8550
- return new j(e, t, this.type);
8550
+ return new U(e, t, this.type);
8551
8551
  }
8552
8552
  /**
8553
8553
  @internal
@@ -8570,14 +8570,14 @@ class j {
8570
8570
  widget's current document position.
8571
8571
  */
8572
8572
  static widget(e, t, r) {
8573
- return new j(e, e, new cn(t, r));
8573
+ return new U(e, e, new cn(t, r));
8574
8574
  }
8575
8575
  /**
8576
8576
  Creates an inline decoration, which adds the given attributes to
8577
8577
  each inline node between `from` and `to`.
8578
8578
  */
8579
8579
  static inline(e, t, r, i) {
8580
- return new j(e, t, new Ie(r, i));
8580
+ return new U(e, t, new Ie(r, i));
8581
8581
  }
8582
8582
  /**
8583
8583
  Creates a node decoration. `from` and `to` should point precisely
@@ -8585,7 +8585,7 @@ class j {
8585
8585
  node, will receive the given attributes.
8586
8586
  */
8587
8587
  static node(e, t, r, i) {
8588
- return new j(e, t, new Cr(r, i));
8588
+ return new U(e, t, new Cr(r, i));
8589
8589
  }
8590
8590
  /**
8591
8591
  The spec provided when creating this decoration. Can be useful
@@ -8662,7 +8662,7 @@ class A {
8662
8662
  let a = this.local[l].map(e, r, i);
8663
8663
  a && a.type.valid(t, a) ? (o || (o = [])).push(a) : s.onRemove && s.onRemove(this.local[l].spec);
8664
8664
  }
8665
- return this.children.length ? Pc(this.children, o || [], e, t, r, i, s) : o ? new A(o.sort(je), et) : L;
8665
+ return this.children.length ? Pc(this.children, o || [], e, t, r, i, s) : o ? new A(o.sort(Ue), et) : L;
8666
8666
  }
8667
8667
  /**
8668
8668
  Add the given array of decorations to the ones in the set,
@@ -8686,7 +8686,7 @@ class A {
8686
8686
  let o = Co(s ? Mo(t) : t, -r);
8687
8687
  for (let l = 0; l < o.length; l++)
8688
8688
  o[l].type.valid(e, o[l]) || o.splice(l--, 1);
8689
- return new A(o.length ? this.local.concat(o).sort(je) : this.local, i || this.children);
8689
+ return new A(o.length ? this.local.concat(o).sort(Ue) : this.local, i || this.children);
8690
8690
  }
8691
8691
  /**
8692
8692
  Create a new set that contains the decorations in this set, minus
@@ -8735,7 +8735,7 @@ class A {
8735
8735
  }
8736
8736
  }
8737
8737
  if (i) {
8738
- let l = new A(i.sort(je), et);
8738
+ let l = new A(i.sort(Ue), et);
8739
8739
  return r ? new Oe([l, r]) : l;
8740
8740
  }
8741
8741
  return r || L;
@@ -8821,7 +8821,7 @@ class Oe {
8821
8821
  t.push(s[o]);
8822
8822
  }
8823
8823
  }
8824
- return t ? wr(r ? t : t.sort(je)) : et;
8824
+ return t ? wr(r ? t : t.sort(Ue)) : et;
8825
8825
  }
8826
8826
  // Create a group for the given array of decoration sets, or return
8827
8827
  // a single set when possible.
@@ -8887,7 +8887,7 @@ function Pc(n, e, t, r, i, s, o) {
8887
8887
  l.splice(d, 0, f.children[h], f.children[h + 1], f.children[h + 2]);
8888
8888
  }
8889
8889
  }
8890
- return new A(e.sort(je), l);
8890
+ return new A(e.sort(Ue), l);
8891
8891
  }
8892
8892
  function Co(n, e) {
8893
8893
  if (!e || !n.length)
@@ -8895,7 +8895,7 @@ function Co(n, e) {
8895
8895
  let t = [];
8896
8896
  for (let r = 0; r < n.length; r++) {
8897
8897
  let i = n[r];
8898
- t.push(new j(i.from + e, i.to + e, i.type));
8898
+ t.push(new U(i.from + e, i.to + e, i.type));
8899
8899
  }
8900
8900
  return t;
8901
8901
  }
@@ -8936,12 +8936,12 @@ function fn(n, e, t, r) {
8936
8936
  f != L && i.push(a, a + l.nodeSize, f);
8937
8937
  }
8938
8938
  });
8939
- let o = Co(s ? Mo(n) : n, -t).sort(je);
8939
+ let o = Co(s ? Mo(n) : n, -t).sort(Ue);
8940
8940
  for (let l = 0; l < o.length; l++)
8941
8941
  o[l].type.valid(e, o[l]) || (r.onRemove && r.onRemove(o[l].spec), o.splice(l--, 1));
8942
8942
  return o.length || i.length ? new A(o, i) : L;
8943
8943
  }
8944
- function je(n, e) {
8944
+ function Ue(n, e) {
8945
8945
  return n.from - e.from || n.to - e.to;
8946
8946
  }
8947
8947
  function wr(n) {
@@ -8963,7 +8963,7 @@ function wr(n) {
8963
8963
  return e;
8964
8964
  }
8965
8965
  function ki(n, e, t) {
8966
- for (; e < n.length && je(t, n[e]) > 0; )
8966
+ for (; e < n.length && Ue(t, n[e]) > 0; )
8967
8967
  e++;
8968
8968
  n.splice(e, 0, t);
8969
8969
  }
@@ -8981,7 +8981,7 @@ const Fc = {
8981
8981
  attributes: !0,
8982
8982
  attributeOldValue: !0,
8983
8983
  subtree: !0
8984
- }, Lc = U && Ee <= 11;
8984
+ }, Lc = j && Ee <= 11;
8985
8985
  class Hc {
8986
8986
  constructor() {
8987
8987
  this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
@@ -9001,7 +9001,7 @@ class $c {
9001
9001
  this.view = e, this.handleDOMChange = t, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new Hc(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
9002
9002
  for (let i = 0; i < r.length; i++)
9003
9003
  this.queue.push(r[i]);
9004
- U && Ee <= 11 && r.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
9004
+ j && Ee <= 11 && r.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
9005
9005
  }), Lc && (this.onCharData = (r) => {
9006
9006
  this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
9007
9007
  }), this.onSelectionChange = this.onSelectionChange.bind(this);
@@ -9042,7 +9042,7 @@ class $c {
9042
9042
  if (di(this.view)) {
9043
9043
  if (this.suppressingSelectionUpdates)
9044
9044
  return ye(this.view);
9045
- if (U && Ee <= 11 && !this.view.state.selection.empty) {
9045
+ if (j && Ee <= 11 && !this.view.state.selection.empty) {
9046
9046
  let e = this.view.domSelectionRange();
9047
9047
  if (e.focusNode && Ge(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
9048
9048
  return this.flushSoon();
@@ -9120,7 +9120,7 @@ class $c {
9120
9120
  if (r.contentDOM && r.contentDOM != r.dom && !r.contentDOM.contains(e.target))
9121
9121
  return { from: r.posBefore, to: r.posAfter };
9122
9122
  let i = e.previousSibling, s = e.nextSibling;
9123
- if (U && Ee <= 11 && e.addedNodes.length)
9123
+ if (j && Ee <= 11 && e.addedNodes.length)
9124
9124
  for (let f = 0; f < e.addedNodes.length; f++) {
9125
9125
  let { previousSibling: h, nextSibling: d } = e.addedNodes[f];
9126
9126
  (!h || Array.prototype.indexOf.call(e.addedNodes, h) < 0) && (i = h), (!d || Array.prototype.indexOf.call(e.addedNodes, d) < 0) && (s = d);
@@ -9190,7 +9190,7 @@ function Kc(n, e, t) {
9190
9190
  to: s,
9191
9191
  preserveWhitespace: u.parent.type.whitespace == "pre" ? "full" : !0,
9192
9192
  findPositions: c,
9193
- ruleFromNode: jc,
9193
+ ruleFromNode: Uc,
9194
9194
  context: u
9195
9195
  });
9196
9196
  if (c && c[0].pos != null) {
@@ -9199,7 +9199,7 @@ function Kc(n, e, t) {
9199
9199
  }
9200
9200
  return { doc: m, sel: p, from: o, to: l };
9201
9201
  }
9202
- function jc(n) {
9202
+ function Uc(n) {
9203
9203
  let e = n.pmViewDesc;
9204
9204
  if (e)
9205
9205
  return e.parseRule();
@@ -9213,7 +9213,7 @@ function jc(n) {
9213
9213
  return { ignore: !0 };
9214
9214
  return null;
9215
9215
  }
9216
- const Uc = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
9216
+ const jc = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
9217
9217
  function Gc(n, e, t, r, i) {
9218
9218
  let s = n.input.compositionPendingChanges || (n.composing ? n.input.compositionID : 0);
9219
9219
  if (n.input.compositionPendingChanges = 0, e < 0) {
@@ -9231,7 +9231,7 @@ function Gc(n, e, t, r, i) {
9231
9231
  let a = n.state.selection, c = Kc(n, e, t), f = n.state.doc, h = f.slice(c.from, c.to), d, u;
9232
9232
  n.input.lastKeyCode === 8 && Date.now() - 100 < n.input.lastKeyCodeTime ? (d = n.state.selection.to, u = "end") : (d = n.state.selection.from, u = "start"), n.input.lastKeyCode = null;
9233
9233
  let p = Yc(h.content, c.doc.content, c.from, d, u);
9234
- if (p && n.input.domChangeCount++, (ht && n.input.lastIOSEnter > Date.now() - 225 || ne) && i.some((M) => M.nodeType == 1 && !Uc.test(M.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", (M) => M(n, Ve(13, "Enter")))) {
9234
+ if (p && n.input.domChangeCount++, (ht && n.input.lastIOSEnter > Date.now() - 225 || ne) && i.some((M) => M.nodeType == 1 && !jc.test(M.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", (M) => M(n, Ve(13, "Enter")))) {
9235
9235
  n.input.lastIOSEnter = 0;
9236
9236
  return;
9237
9237
  }
@@ -9248,7 +9248,7 @@ function Gc(n, e, t, r, i) {
9248
9248
  }
9249
9249
  return;
9250
9250
  }
9251
- n.state.selection.from < n.state.selection.to && p.start == p.endB && n.state.selection instanceof C && (p.start > n.state.selection.from && p.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? p.start = n.state.selection.from : p.endA < n.state.selection.to && p.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (p.endB += n.state.selection.to - p.endA, p.endA = n.state.selection.to)), U && Ee <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == "  " && (p.start--, p.endA--, p.endB--);
9251
+ n.state.selection.from < n.state.selection.to && p.start == p.endB && n.state.selection instanceof C && (p.start > n.state.selection.from && p.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? p.start = n.state.selection.from : p.endA < n.state.selection.to && p.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (p.endB += n.state.selection.to - p.endA, p.endA = n.state.selection.to)), j && Ee <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == "  " && (p.start--, p.endA--, p.endB--);
9252
9252
  let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), b = f.resolve(p.start), w = m.sameParent(g) && m.parent.inlineContent && b.end() >= p.endA, O;
9253
9253
  if ((ht && n.input.lastIOSEnter > Date.now() - 225 && (!w || i.some((M) => M.nodeName == "DIV" || M.nodeName == "P")) || !w && m.pos < c.doc.content.size && !m.sameParent(g) && (O = S.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && O.head == g.pos) && n.someProp("handleKeyDown", (M) => M(n, Ve(13, "Enter")))) {
9254
9254
  n.input.lastIOSEnter = 0;
@@ -9266,7 +9266,7 @@ function Gc(n, e, t, r, i) {
9266
9266
  let T = p.start, R = p.endA, I, fe, xe;
9267
9267
  if (w) {
9268
9268
  if (m.pos == g.pos)
9269
- U && Ee <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => ye(n), 20)), I = n.state.tr.delete(T, R), fe = f.resolve(p.start).marksAcross(f.resolve(p.endA));
9269
+ j && Ee <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => ye(n), 20)), I = n.state.tr.delete(T, R), fe = f.resolve(p.start).marksAcross(f.resolve(p.endA));
9270
9270
  else if (
9271
9271
  // Adding or removing a mark
9272
9272
  p.endA == p.endB && (xe = _c(m.parent.content.cut(m.parentOffset, g.parentOffset), b.parent.content.cut(b.parentOffset, p.endA - b.start())))
@@ -9281,7 +9281,7 @@ function Gc(n, e, t, r, i) {
9281
9281
  }
9282
9282
  if (I || (I = n.state.tr.replace(T, R, c.doc.slice(p.start - c.from, p.endB - c.from))), c.sel) {
9283
9283
  let M = Mi(n, I.doc, c.sel);
9284
- M && !($ && ne && n.composing && M.empty && (p.start != p.endB || n.input.lastAndroidDelete < Date.now() - 100) && (M.head == T || M.head == I.mapping.map(R) - 1) || U && M.empty && M.head == T) && I.setSelection(M);
9284
+ M && !($ && ne && n.composing && M.empty && (p.start != p.endB || n.input.lastAndroidDelete < Date.now() - 100) && (M.head == T || M.head == I.mapping.map(R) - 1) || j && M.empty && M.head == T) && I.setSelection(M);
9285
9285
  }
9286
9286
  fe && I.ensureMarks(fe), s && I.setMeta("composition", s), n.dispatch(I.scrollIntoView());
9287
9287
  }
@@ -9435,7 +9435,7 @@ class Zc {
9435
9435
  let d = f == "preserve" && o && this.dom.style.overflowAnchor == null && Ia(this);
9436
9436
  if (o) {
9437
9437
  this.domObserver.stop();
9438
- let u = h && (U || $) && !this.composing && !i.selection.empty && !e.selection.empty && Qc(i.selection, e.selection);
9438
+ let u = h && (j || $) && !this.composing && !i.selection.empty && !e.selection.empty && Qc(i.selection, e.selection);
9439
9439
  if (h) {
9440
9440
  let p = $ ? this.trackWrites = this.domSelectionRange().focusNode : null;
9441
9441
  this.composing && (this.input.compositionNode = Rc(this)), (s || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = oi(e.doc, c, a, this.dom, this)), p && !this.trackWrites && (u = !0);
@@ -9508,7 +9508,7 @@ class Zc {
9508
9508
  Query whether the view has focus.
9509
9509
  */
9510
9510
  hasFocus() {
9511
- if (U) {
9511
+ if (j) {
9512
9512
  let e = this.root.activeElement;
9513
9513
  if (e == this.dom)
9514
9514
  return !0;
@@ -9696,12 +9696,12 @@ function Ni(n) {
9696
9696
  if (typeof t == "function" && (t = t(n.state)), t)
9697
9697
  for (let r in t)
9698
9698
  r == "class" ? e.class += " " + t[r] : r == "style" ? e.style = (e.style ? e.style + ";" : "") + t[r] : !e[r] && r != "contenteditable" && r != "nodeName" && (e[r] = String(t[r]));
9699
- }), e.translate || (e.translate = "no"), [j.node(0, n.state.doc.content.size, e)];
9699
+ }), e.translate || (e.translate = "no"), [U.node(0, n.state.doc.content.size, e)];
9700
9700
  }
9701
9701
  function Ti(n) {
9702
9702
  if (n.markCursor) {
9703
9703
  let e = document.createElement("img");
9704
- e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), n.cursorWrapper = { dom: e, deco: j.widget(n.state.selection.from, e, { raw: !0, marks: n.markCursor }) };
9704
+ e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), n.cursorWrapper = { dom: e, deco: U.widget(n.state.selection.from, e, { raw: !0, marks: n.markCursor }) };
9705
9705
  } else
9706
9706
  n.cursorWrapper = null;
9707
9707
  }
@@ -9735,105 +9735,6 @@ function Ei(n) {
9735
9735
  if (n.spec.state || n.spec.filterTransaction || n.spec.appendTransaction)
9736
9736
  throw new RangeError("Plugins passed directly to the view must not have a state component");
9737
9737
  }
9738
- const Oo = "app.grapesjs.com", No = "app-stage.grapesjs.com", Ri = [
9739
- Oo,
9740
- No,
9741
- "localhost",
9742
- "127.0.0.1",
9743
- ".local-credentialless.webcontainer.io",
9744
- // For stackblitz.com demos
9745
- ".local.webcontainer.io",
9746
- // For stackblitz.com demos
9747
- "-sandpack.codesandbox.io"
9748
- // For Sandpack demos
9749
- ], tf = "license:check:start", nf = "license:check:end", rf = () => typeof window < "u", sf = ({ isDev: n, isStage: e }) => `${n ? "" : `https://${e ? No : Oo}`}/api`, of = () => {
9750
- const n = rf() && window.location.hostname;
9751
- return !!n && (Ri.includes(n) || Ri.some((e) => n.endsWith(e)));
9752
- };
9753
- async function lf({
9754
- path: n,
9755
- baseApiUrl: e,
9756
- method: t = "GET",
9757
- headers: r = {},
9758
- params: i,
9759
- body: s
9760
- }) {
9761
- const l = `${e || sf({ isDev: !1, isStage: !1 })}${n}`, a = {
9762
- method: t,
9763
- headers: {
9764
- "Content-Type": "application/json",
9765
- ...r
9766
- }
9767
- };
9768
- s && (a.body = JSON.stringify(s));
9769
- const c = i ? new URLSearchParams(i).toString() : "", f = c ? `?${c}` : "", h = await fetch(`${l}${f}`, a);
9770
- if (!h.ok)
9771
- throw new Error(`HTTP error! status: ${h.status}`);
9772
- return h.json();
9773
- }
9774
- var nt = /* @__PURE__ */ ((n) => (n.free = "free", n.startup = "startup", n.business = "business", n.enterprise = "enterprise", n))(nt || {}), hn = /* @__PURE__ */ ((n) => (n.toastAdd = "studio:toastAdd", n.dialogOpen = "studio:dialogOpen", n.dialogClose = "studio:dialogClose", n.sidebarLeftSet = "studio:sidebarLeft:set", n.sidebarLeftGet = "studio:sidebarLeft:get", n.sidebarLeftToggle = "studio:sidebarLeft:toggle", n.sidebarRightSet = "studio:sidebarRight:set", n.sidebarRightGet = "studio:sidebarRight:get", n.sidebarRightToggle = "studio:sidebarRight:toggle", n.sidebarTopSet = "studio:sidebarTop:set", n.sidebarTopGet = "studio:sidebarTop:get", n.sidebarTopToggle = "studio:sidebarTop:toggle", n.sidebarBottomSet = "studio:sidebarBottom:set", n.sidebarBottomGet = "studio:sidebarBottom:get", n.sidebarBottomToggle = "studio:sidebarBottom:toggle", n.symbolAdd = "studio:symbolAdd", n.symbolDetach = "studio:symbolDetach", n.symbolOverride = "studio:symbolOverride", n.symbolPropagateStyles = "studio:propagateStyles", n.getPagesConfig = "studio:getPagesConfig", n.setPagesConfig = "studio:setPagesConfig", n.getPageSettings = "studio:getPageSettings", n.setPageSettings = "studio:setPageSettings", n.projectFiles = "studio:projectFiles", n.canvasReload = "studio:canvasReload", n.getBlocksPanel = "studio:getBlocksPanel", n.setBlocksPanel = "studio:setBlocksPanel", n.getStateContextMenu = "studio:getStateContextMenu", n.setStateContextMenu = "studio:setStateContextMenu", n.contextMenuComponent = "studio:contextMenuComponent", n.layoutAdd = "studio:layoutAdd", n.layoutRemove = "studio:layoutRemove", n.layoutToggle = "studio:layoutToggle", n.layoutUpdate = "studio:layoutUpdate", n.layoutGet = "studio:layoutGet", n.layoutConfigGet = "studio:layoutConfigGet", n.layoutConfigSet = "studio:layoutConfigSet", n.getStateTheme = "studio:getStateTheme", n.setStateTheme = "studio:setStateTheme", n.assetProviderGet = "studio:assetProviderGet", n.assetProviderAdd = "studio:assetProviderAdd", n.assetProviderRemove = "studio:assetProviderRemove", n.fontGet = "studio:fontGet", n.fontAdd = "studio:fontAdd", n.fontRemove = "studio:fontRemove", n))(hn || {});
9775
- const Ii = {
9776
- [nt.free]: 0,
9777
- [nt.startup]: 10,
9778
- [nt.business]: 20,
9779
- [nt.enterprise]: 30
9780
- };
9781
- function af(n) {
9782
- const e = n;
9783
- return e.init = (t) => (r) => n(r, t), e;
9784
- }
9785
- const cf = (n) => /* @__PURE__ */ af(n);
9786
- async function ff({
9787
- editor: n,
9788
- plan: e,
9789
- pluginName: t,
9790
- licenseKey: r,
9791
- cleanup: i
9792
- }) {
9793
- let s = "", o = !1;
9794
- const l = of(), a = (f) => {
9795
- console.warn("Cleanup plugin:", t, "Reason:", f), i();
9796
- }, c = (f = {}) => {
9797
- var m;
9798
- const { error: h, sdkLicense: d } = f, u = (m = f.plan) == null ? void 0 : m.category;
9799
- if (!(d || f.license) || h)
9800
- a(h || "Invalid license");
9801
- else if (u) {
9802
- const g = Ii[e], b = Ii[u];
9803
- g > b && a({ pluginRequiredPlan: e, licensePlan: u });
9804
- }
9805
- };
9806
- n.on(tf, (f) => {
9807
- s = f == null ? void 0 : f.baseApiUrl, o = !0;
9808
- }), n.on(nf, (f) => {
9809
- c(f);
9810
- }), setTimeout(async () => {
9811
- if (!o) {
9812
- if (l) return;
9813
- if (r) {
9814
- const f = await hf({ licenseKey: r, pluginName: t, baseApiUrl: s });
9815
- f && c(f);
9816
- } else
9817
- a("The `licenseKey` option not provided");
9818
- }
9819
- }, 2e3);
9820
- }
9821
- async function hf(n) {
9822
- const { licenseKey: e, pluginName: t, baseApiUrl: r } = n;
9823
- try {
9824
- return (await lf({
9825
- baseApiUrl: r,
9826
- path: `/sdk/${e || "na"}`,
9827
- method: "POST",
9828
- params: {
9829
- d: window.location.hostname,
9830
- pn: t
9831
- }
9832
- })).result || {};
9833
- } catch (i) {
9834
- return console.error("Error during SDK license check:", i), !1;
9835
- }
9836
- }
9837
9738
  var sr, or;
9838
9739
  if (typeof WeakMap < "u") {
9839
9740
  let n = /* @__PURE__ */ new WeakMap();
@@ -9928,13 +9829,13 @@ var D = class {
9928
9829
  }
9929
9830
  // Find the table map for the given table node.
9930
9831
  static get(n) {
9931
- return sr(n) || or(n, df(n));
9832
+ return sr(n) || or(n, tf(n));
9932
9833
  }
9933
9834
  };
9934
- function df(n) {
9835
+ function tf(n) {
9935
9836
  if (n.type.spec.tableRole != "table")
9936
9837
  throw new RangeError("Not a table node: " + n.type.name);
9937
- const e = uf(n), t = n.childCount, r = [];
9838
+ const e = nf(n), t = n.childCount, r = [];
9938
9839
  let i = 0, s = null;
9939
9840
  const o = [];
9940
9841
  for (let c = 0, f = e * t; c < f; c++)
@@ -9984,9 +9885,9 @@ function df(n) {
9984
9885
  let a = !1;
9985
9886
  for (let c = 0; !a && c < o.length; c += 2)
9986
9887
  o[c] != null && o[c + 1] < t && (a = !0);
9987
- return a && pf(l, o, n), l;
9888
+ return a && rf(l, o, n), l;
9988
9889
  }
9989
- function uf(n) {
9890
+ function nf(n) {
9990
9891
  let e = -1, t = !1;
9991
9892
  for (let r = 0; r < n.childCount; r++) {
9992
9893
  const i = n.child(r);
@@ -10007,7 +9908,7 @@ function uf(n) {
10007
9908
  }
10008
9909
  return e;
10009
9910
  }
10010
- function pf(n, e, t) {
9911
+ function rf(n, e, t) {
10011
9912
  n.problems || (n.problems = []);
10012
9913
  const r = {};
10013
9914
  for (let i = 0; i < n.map.length; i++) {
@@ -10022,7 +9923,7 @@ function pf(n, e, t) {
10022
9923
  const a = o.attrs;
10023
9924
  for (let c = 0; c < a.colspan; c++) {
10024
9925
  const f = (i + c) % n.width, h = e[f * 2];
10025
- h != null && (!a.colwidth || a.colwidth[c] != h) && ((l || (l = mf(a)))[c] = h);
9926
+ h != null && (!a.colwidth || a.colwidth[c] != h) && ((l || (l = sf(a)))[c] = h);
10026
9927
  }
10027
9928
  l && n.problems.unshift({
10028
9929
  type: "colwidth mismatch",
@@ -10031,7 +9932,7 @@ function pf(n, e, t) {
10031
9932
  });
10032
9933
  }
10033
9934
  }
10034
- function mf(n) {
9935
+ function sf(n) {
10035
9936
  if (n.colwidth)
10036
9937
  return n.colwidth.slice();
10037
9938
  const e = [];
@@ -10039,7 +9940,7 @@ function mf(n) {
10039
9940
  e.push(0);
10040
9941
  return e;
10041
9942
  }
10042
- function vi(n, e) {
9943
+ function Ri(n, e) {
10043
9944
  if (typeof n == "string")
10044
9945
  return {};
10045
9946
  const t = n.getAttribute("data-colwidth"), r = t && /^\d+(,\d+)*$/.test(t) ? t.split(",").map((o) => Number(o)) : null, i = Number(n.getAttribute("colspan") || 1), s = {
@@ -10053,7 +9954,7 @@ function vi(n, e) {
10053
9954
  }
10054
9955
  return s;
10055
9956
  }
10056
- function zi(n, e) {
9957
+ function Ii(n, e) {
10057
9958
  const t = {};
10058
9959
  n.attrs.colspan != 1 && (t.colspan = n.attrs.colspan), n.attrs.rowspan != 1 && (t.rowspan = n.attrs.rowspan), n.attrs.colwidth && (t["data-colwidth"] = n.attrs.colwidth.join(","));
10059
9960
  for (const r in e) {
@@ -10062,7 +9963,7 @@ function zi(n, e) {
10062
9963
  }
10063
9964
  return t;
10064
9965
  }
10065
- function gf(n) {
9966
+ function of(n) {
10066
9967
  const e = n.cellAttributes || {}, t = {
10067
9968
  colspan: { default: 1 },
10068
9969
  rowspan: { default: 1 },
@@ -10095,10 +9996,10 @@ function gf(n) {
10095
9996
  tableRole: "cell",
10096
9997
  isolating: !0,
10097
9998
  parseDOM: [
10098
- { tag: "td", getAttrs: (r) => vi(r, e) }
9999
+ { tag: "td", getAttrs: (r) => Ri(r, e) }
10099
10000
  ],
10100
10001
  toDOM(r) {
10101
- return ["td", zi(r, e), 0];
10002
+ return ["td", Ii(r, e), 0];
10102
10003
  }
10103
10004
  },
10104
10005
  table_header: {
@@ -10107,10 +10008,10 @@ function gf(n) {
10107
10008
  tableRole: "header_cell",
10108
10009
  isolating: !0,
10109
10010
  parseDOM: [
10110
- { tag: "th", getAttrs: (r) => vi(r, e) }
10011
+ { tag: "th", getAttrs: (r) => Ri(r, e) }
10111
10012
  ],
10112
10013
  toDOM(r) {
10113
- return ["th", zi(r, e), 0];
10014
+ return ["th", Ii(r, e), 0];
10114
10015
  }
10115
10016
  }
10116
10017
  };
@@ -10146,12 +10047,12 @@ function Mr(n) {
10146
10047
  return e.$anchorCell.pos > e.$headCell.pos ? e.$anchorCell : e.$headCell;
10147
10048
  if ("node" in e && e.node && e.node.type.spec.tableRole == "cell")
10148
10049
  return e.$anchor;
10149
- const t = Vt(e.$head) || yf(e.$head);
10050
+ const t = Vt(e.$head) || lf(e.$head);
10150
10051
  if (t)
10151
10052
  return t;
10152
10053
  throw new RangeError(`No cell found around position ${e.head}`);
10153
10054
  }
10154
- function yf(n) {
10055
+ function lf(n) {
10155
10056
  for (let e = n.nodeAfter, t = n.pos; e; e = e.firstChild, t++) {
10156
10057
  const r = e.type.spec.tableRole;
10157
10058
  if (r == "cell" || r == "header_cell")
@@ -10166,13 +10067,13 @@ function yf(n) {
10166
10067
  function lr(n) {
10167
10068
  return n.parent.type.spec.tableRole == "row" && !!n.nodeAfter;
10168
10069
  }
10169
- function bf(n) {
10070
+ function af(n) {
10170
10071
  return n.node(0).resolve(n.pos + n.nodeAfter.nodeSize);
10171
10072
  }
10172
10073
  function Or(n, e) {
10173
10074
  return n.depth == e.depth && n.pos >= e.start(-1) && n.pos <= e.end(-1);
10174
10075
  }
10175
- function To(n, e, t) {
10076
+ function Oo(n, e, t) {
10176
10077
  const r = n.node(-1), i = D.get(r), s = n.start(-1), o = i.nextCell(n.pos - s, e, t);
10177
10078
  return o == null ? null : n.node(0).resolve(s + o);
10178
10079
  }
@@ -10344,34 +10245,34 @@ var z = class pe extends S {
10344
10245
  return new pe(e.resolve(t), e.resolve(r));
10345
10246
  }
10346
10247
  getBookmark() {
10347
- return new xf(this.$anchorCell.pos, this.$headCell.pos);
10248
+ return new cf(this.$anchorCell.pos, this.$headCell.pos);
10348
10249
  }
10349
10250
  };
10350
10251
  z.prototype.visible = !1;
10351
10252
  S.jsonID("cell", z);
10352
- var xf = class Ao {
10253
+ var cf = class No {
10353
10254
  constructor(e, t) {
10354
10255
  this.anchor = e, this.head = t;
10355
10256
  }
10356
10257
  map(e) {
10357
- return new Ao(e.map(this.anchor), e.map(this.head));
10258
+ return new No(e.map(this.anchor), e.map(this.head));
10358
10259
  }
10359
10260
  resolve(e) {
10360
10261
  const t = e.resolve(this.anchor), r = e.resolve(this.head);
10361
10262
  return t.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && t.index() < t.parent.childCount && r.index() < r.parent.childCount && Or(t, r) ? new z(t, r) : S.near(r, 1);
10362
10263
  }
10363
10264
  };
10364
- function kf(n) {
10265
+ function ff(n) {
10365
10266
  if (!(n.selection instanceof z))
10366
10267
  return null;
10367
10268
  const e = [];
10368
10269
  return n.selection.forEachCell((t, r) => {
10369
10270
  e.push(
10370
- j.node(r, r + t.nodeSize, { class: "selectedCell" })
10271
+ U.node(r, r + t.nodeSize, { class: "selectedCell" })
10371
10272
  );
10372
10273
  }), A.create(n.doc, e);
10373
10274
  }
10374
- function Sf({ $from: n, $to: e }) {
10275
+ function hf({ $from: n, $to: e }) {
10375
10276
  if (n.pos == e.pos || n.pos < e.pos - 6)
10376
10277
  return !1;
10377
10278
  let t = n.pos, r = e.pos, i = n.depth;
@@ -10381,7 +10282,7 @@ function Sf({ $from: n, $to: e }) {
10381
10282
  ;
10382
10283
  return t == r && /row|table/.test(n.node(i).type.spec.tableRole);
10383
10284
  }
10384
- function Cf({ $from: n, $to: e }) {
10285
+ function df({ $from: n, $to: e }) {
10385
10286
  let t, r;
10386
10287
  for (let i = n.depth; i > 0; i--) {
10387
10288
  const s = n.node(i);
@@ -10399,7 +10300,7 @@ function Cf({ $from: n, $to: e }) {
10399
10300
  }
10400
10301
  return t !== r && e.parentOffset === 0;
10401
10302
  }
10402
- function wf(n, e, t) {
10303
+ function uf(n, e, t) {
10403
10304
  const r = (e || n).selection, i = (e || n).doc;
10404
10305
  let s, o;
10405
10306
  if (r instanceof k && (o = r.node.type.spec.tableRole)) {
@@ -10412,11 +10313,11 @@ function wf(n, e, t) {
10412
10313
  const l = D.get(r.node), a = r.from + 1, c = a + l.map[l.width * l.height - 1];
10413
10314
  s = z.create(i, a + 1, c);
10414
10315
  }
10415
- } else r instanceof C && Sf(r) ? s = C.create(i, r.from) : r instanceof C && Cf(r) && (s = C.create(i, r.$from.start(), r.$from.end()));
10316
+ } else r instanceof C && hf(r) ? s = C.create(i, r.from) : r instanceof C && df(r) && (s = C.create(i, r.$from.start(), r.$from.end()));
10416
10317
  return s && (e || (e = n.tr)).setSelection(s), e;
10417
10318
  }
10418
- var Mf = new vt("fix-tables");
10419
- function Do(n, e, t, r) {
10319
+ var pf = new vt("fix-tables");
10320
+ function To(n, e, t, r) {
10420
10321
  const i = n.childCount, s = e.childCount;
10421
10322
  e:
10422
10323
  for (let o = 0, l = 0; o < s; o++) {
@@ -10426,17 +10327,17 @@ function Do(n, e, t, r) {
10426
10327
  l = c + 1, t += a.nodeSize;
10427
10328
  continue e;
10428
10329
  }
10429
- r(a, t), l < i && n.child(l).sameMarkup(a) ? Do(n.child(l), a, t + 1, r) : a.nodesBetween(0, a.content.size, r, t + 1), t += a.nodeSize;
10330
+ r(a, t), l < i && n.child(l).sameMarkup(a) ? To(n.child(l), a, t + 1, r) : a.nodesBetween(0, a.content.size, r, t + 1), t += a.nodeSize;
10430
10331
  }
10431
10332
  }
10432
- function Of(n, e) {
10333
+ function mf(n, e) {
10433
10334
  let t;
10434
10335
  const r = (i, s) => {
10435
- i.type.spec.tableRole == "table" && (t = Nf(n, i, s, t));
10336
+ i.type.spec.tableRole == "table" && (t = gf(n, i, s, t));
10436
10337
  };
10437
- return e ? e.doc != n.doc && Do(e.doc, n.doc, 0, r) : n.doc.descendants(r), t;
10338
+ return e ? e.doc != n.doc && To(e.doc, n.doc, 0, r) : n.doc.descendants(r), t;
10438
10339
  }
10439
- function Nf(n, e, t, r) {
10340
+ function gf(n, e, t, r) {
10440
10341
  const i = D.get(e);
10441
10342
  if (!i.problems)
10442
10343
  return r;
@@ -10496,21 +10397,21 @@ function Nf(n, e, t, r) {
10496
10397
  }
10497
10398
  c = h;
10498
10399
  }
10499
- return r.setMeta(Mf, { fixTables: !0 });
10400
+ return r.setMeta(pf, { fixTables: !0 });
10500
10401
  }
10501
- function Eo(n) {
10402
+ function Ao(n) {
10502
10403
  const e = n.selection, t = Mr(n), r = t.node(-1), i = t.start(-1), s = D.get(r);
10503
10404
  return { ...e instanceof z ? s.rectBetween(
10504
10405
  e.$anchorCell.pos - i,
10505
10406
  e.$headCell.pos - i
10506
10407
  ) : s.findCell(t.pos - i), tableStart: i, map: s, table: r };
10507
10408
  }
10508
- function Tf(n) {
10409
+ function yf(n) {
10509
10410
  return function(e, t) {
10510
10411
  if (!kn(e))
10511
10412
  return !1;
10512
10413
  if (t) {
10513
- const r = ce(e.schema), i = Eo(e), s = e.tr, o = i.map.cellsInRect(
10414
+ const r = ce(e.schema), i = Ao(e), s = e.tr, o = i.map.cellsInRect(
10514
10415
  n == "column" ? {
10515
10416
  left: i.left,
10516
10417
  top: 0,
@@ -10541,7 +10442,7 @@ function Tf(n) {
10541
10442
  return !0;
10542
10443
  };
10543
10444
  }
10544
- function Bi(n, e, t) {
10445
+ function vi(n, e, t) {
10545
10446
  const r = e.map.cellsInRect({
10546
10447
  left: 0,
10547
10448
  top: 0,
@@ -10556,11 +10457,11 @@ function Bi(n, e, t) {
10556
10457
  return !0;
10557
10458
  }
10558
10459
  function Nr(n, e) {
10559
- return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? Tf(n) : function(t, r) {
10460
+ return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? yf(n) : function(t, r) {
10560
10461
  if (!kn(t))
10561
10462
  return !1;
10562
10463
  if (r) {
10563
- const i = ce(t.schema), s = Eo(t), o = t.tr, l = Bi("row", s, i), a = Bi(
10464
+ const i = ce(t.schema), s = Ao(t), o = t.tr, l = vi("row", s, i), a = vi(
10564
10465
  "column",
10565
10466
  s,
10566
10467
  i
@@ -10592,7 +10493,7 @@ Nr("column", {
10592
10493
  Nr("cell", {
10593
10494
  useDeprecatedLogic: !0
10594
10495
  });
10595
- function Af(n, e) {
10496
+ function bf(n, e) {
10596
10497
  if (e < 0) {
10597
10498
  const t = n.nodeBefore;
10598
10499
  if (t)
@@ -10616,17 +10517,17 @@ function Af(n, e) {
10616
10517
  }
10617
10518
  return null;
10618
10519
  }
10619
- function Pi(n) {
10520
+ function zi(n) {
10620
10521
  return function(e, t) {
10621
10522
  if (!kn(e))
10622
10523
  return !1;
10623
- const r = Af(Mr(e), n);
10524
+ const r = bf(Mr(e), n);
10624
10525
  if (r == null)
10625
10526
  return !1;
10626
10527
  if (t) {
10627
10528
  const i = e.doc.resolve(r);
10628
10529
  t(
10629
- e.tr.setSelection(C.between(i, bf(i))).scrollIntoView()
10530
+ e.tr.setSelection(C.between(i, af(i))).scrollIntoView()
10630
10531
  );
10631
10532
  }
10632
10533
  return !0;
@@ -10648,7 +10549,7 @@ function Wt(n, e) {
10648
10549
  }
10649
10550
  return !0;
10650
10551
  }
10651
- function Df(n) {
10552
+ function xf(n) {
10652
10553
  if (!n.size)
10653
10554
  return null;
10654
10555
  let { content: e, openStart: t, openEnd: r } = n;
@@ -10673,9 +10574,9 @@ function Df(n) {
10673
10574
  );
10674
10575
  else
10675
10576
  return null;
10676
- return Ef(o, l);
10577
+ return kf(o, l);
10677
10578
  }
10678
- function Ef(n, e) {
10579
+ function kf(n, e) {
10679
10580
  const t = [];
10680
10581
  for (let i = 0; i < e.length; i++) {
10681
10582
  const s = e[i];
@@ -10701,7 +10602,7 @@ function ar(n, e) {
10701
10602
  const t = n.createAndFill();
10702
10603
  return new Ns(t).replace(0, t.content.size, e).doc;
10703
10604
  }
10704
- function Rf({ width: n, height: e, rows: t }, r, i) {
10605
+ function Sf({ width: n, height: e, rows: t }, r, i) {
10705
10606
  if (n != r) {
10706
10607
  const s = [], o = [];
10707
10608
  for (let l = 0; l < t.length; l++) {
@@ -10743,7 +10644,7 @@ function Rf({ width: n, height: e, rows: t }, r, i) {
10743
10644
  }
10744
10645
  return { width: n, height: e, rows: t };
10745
10646
  }
10746
- function If(n, e, t, r, i, s, o) {
10647
+ function Cf(n, e, t, r, i, s, o) {
10747
10648
  const l = n.doc.type.schema, a = ce(l);
10748
10649
  let c, f;
10749
10650
  if (i > e.width)
@@ -10772,7 +10673,7 @@ function If(n, e, t, r, i, s, o) {
10772
10673
  }
10773
10674
  return !!(c || f);
10774
10675
  }
10775
- function Vi(n, e, t, r, i, s, o, l) {
10676
+ function Bi(n, e, t, r, i, s, o, l) {
10776
10677
  if (o == 0 || o == e.height)
10777
10678
  return !1;
10778
10679
  let a = !1;
@@ -10795,7 +10696,7 @@ function Vi(n, e, t, r, i, s, o, l) {
10795
10696
  }
10796
10697
  return a;
10797
10698
  }
10798
- function Fi(n, e, t, r, i, s, o, l) {
10699
+ function Pi(n, e, t, r, i, s, o, l) {
10799
10700
  if (o == 0 || o == e.width)
10800
10701
  return !1;
10801
10702
  let a = !1;
@@ -10822,7 +10723,7 @@ function Fi(n, e, t, r, i, s, o, l) {
10822
10723
  }
10823
10724
  return a;
10824
10725
  }
10825
- function Li(n, e, t, r, i) {
10726
+ function Vi(n, e, t, r, i) {
10826
10727
  let s = t ? n.doc.nodeAt(t - 1) : n.doc;
10827
10728
  if (!s)
10828
10729
  throw new Error("No table found");
@@ -10834,7 +10735,7 @@ function Li(n, e, t, r, i) {
10834
10735
  throw new Error("No table found");
10835
10736
  o = D.get(s), d = h.mapping.maps.length;
10836
10737
  }
10837
- If(h, o, s, t, c, f, d) && u(), Vi(h, o, s, t, a, c, l, d) && u(), Vi(h, o, s, t, a, c, f, d) && u(), Fi(h, o, s, t, l, f, a, d) && u(), Fi(h, o, s, t, l, f, c, d) && u();
10738
+ Cf(h, o, s, t, c, f, d) && u(), Bi(h, o, s, t, a, c, l, d) && u(), Bi(h, o, s, t, a, c, f, d) && u(), Pi(h, o, s, t, l, f, a, d) && u(), Pi(h, o, s, t, l, f, c, d) && u();
10838
10739
  for (let p = l; p < f; p++) {
10839
10740
  const m = o.positionAt(p, a, s), g = o.positionAt(p, c, s);
10840
10741
  h.replace(
@@ -10850,7 +10751,7 @@ function Li(n, e, t, r, i) {
10850
10751
  )
10851
10752
  ), e(h);
10852
10753
  }
10853
- var vf = Js({
10754
+ var wf = Js({
10854
10755
  ArrowLeft: Jt("horiz", -1),
10855
10756
  ArrowRight: Jt("horiz", 1),
10856
10757
  ArrowUp: Jt("vert", -1),
@@ -10880,7 +10781,7 @@ function Jt(n, e) {
10880
10781
  );
10881
10782
  if (n != "horiz" && !s.empty)
10882
10783
  return !1;
10883
- const o = Ro(i, n, e);
10784
+ const o = Do(i, n, e);
10884
10785
  if (o == null)
10885
10786
  return !1;
10886
10787
  if (n == "horiz")
@@ -10890,7 +10791,7 @@ function Jt(n, e) {
10890
10791
  S.near(t.doc.resolve(s.head + e), e)
10891
10792
  );
10892
10793
  {
10893
- const l = t.doc.resolve(o), a = To(l, n, e);
10794
+ const l = t.doc.resolve(o), a = Oo(l, n, e);
10894
10795
  let c;
10895
10796
  return a ? c = S.near(a, 1) : e < 0 ? c = S.near(t.doc.resolve(l.before(-1)), -1) : c = S.near(t.doc.resolve(l.after(-1)), 1), Gt(t, r, c);
10896
10797
  }
@@ -10905,12 +10806,12 @@ function qt(n, e) {
10905
10806
  if (s instanceof z)
10906
10807
  o = s;
10907
10808
  else {
10908
- const a = Ro(i, n, e);
10809
+ const a = Do(i, n, e);
10909
10810
  if (a == null)
10910
10811
  return !1;
10911
10812
  o = new z(t.doc.resolve(a));
10912
10813
  }
10913
- const l = To(o.$headCell, n, e);
10814
+ const l = Oo(o.$headCell, n, e);
10914
10815
  return l ? Gt(
10915
10816
  t,
10916
10817
  r,
@@ -10918,14 +10819,14 @@ function qt(n, e) {
10918
10819
  ) : !1;
10919
10820
  };
10920
10821
  }
10921
- function zf(n, e) {
10822
+ function Mf(n, e) {
10922
10823
  const t = n.state.doc, r = Vt(t.resolve(e));
10923
10824
  return r ? (n.dispatch(n.state.tr.setSelection(new z(r))), !0) : !1;
10924
10825
  }
10925
- function Bf(n, e, t) {
10826
+ function Of(n, e, t) {
10926
10827
  if (!kn(n.state))
10927
10828
  return !1;
10928
- let r = Df(t);
10829
+ let r = xf(t);
10929
10830
  const i = n.state.selection;
10930
10831
  if (i instanceof z) {
10931
10832
  r || (r = {
@@ -10941,10 +10842,10 @@ function Bf(n, e, t) {
10941
10842
  i.$anchorCell.pos - o,
10942
10843
  i.$headCell.pos - o
10943
10844
  );
10944
- return r = Rf(r, l.right - l.left, l.bottom - l.top), Li(n.state, n.dispatch, o, l, r), !0;
10845
+ return r = Sf(r, l.right - l.left, l.bottom - l.top), Vi(n.state, n.dispatch, o, l, r), !0;
10945
10846
  } else if (r) {
10946
10847
  const s = Mr(n.state), o = s.start(-1);
10947
- return Li(
10848
+ return Vi(
10948
10849
  n.state,
10949
10850
  n.dispatch,
10950
10851
  o,
@@ -10954,11 +10855,11 @@ function Bf(n, e, t) {
10954
10855
  } else
10955
10856
  return !1;
10956
10857
  }
10957
- function Pf(n, e) {
10858
+ function Nf(n, e) {
10958
10859
  var t;
10959
10860
  if (e.ctrlKey || e.metaKey)
10960
10861
  return;
10961
- const r = Hi(n, e.target);
10862
+ const r = Fi(n, e.target);
10962
10863
  let i;
10963
10864
  if (e.shiftKey && n.state.selection instanceof z)
10964
10865
  s(n.state.selection.$anchorCell, e), e.preventDefault();
@@ -10988,13 +10889,13 @@ function Pf(n, e) {
10988
10889
  let h;
10989
10890
  if (f != null)
10990
10891
  h = n.state.doc.resolve(f);
10991
- else if (Hi(n, c.target) != r && (h = $n(n, e), !h))
10892
+ else if (Fi(n, c.target) != r && (h = $n(n, e), !h))
10992
10893
  return o();
10993
10894
  h && s(h, c);
10994
10895
  }
10995
10896
  n.root.addEventListener("mouseup", o), n.root.addEventListener("dragstart", o), n.root.addEventListener("mousemove", l);
10996
10897
  }
10997
- function Ro(n, e, t) {
10898
+ function Do(n, e, t) {
10998
10899
  if (!(n.state.selection instanceof C))
10999
10900
  return null;
11000
10901
  const { $head: r } = n.state.selection;
@@ -11009,7 +10910,7 @@ function Ro(n, e, t) {
11009
10910
  }
11010
10911
  return null;
11011
10912
  }
11012
- function Hi(n, e) {
10913
+ function Fi(n, e) {
11013
10914
  for (; e && e != n.dom; e = e.parentNode)
11014
10915
  if (e.nodeName == "TD" || e.nodeName == "TH")
11015
10916
  return e;
@@ -11022,7 +10923,7 @@ function $n(n, e) {
11022
10923
  });
11023
10924
  return t && t ? Vt(n.state.doc.resolve(t.pos)) : null;
11024
10925
  }
11025
- var Vf = class {
10926
+ var Tf = class {
11026
10927
  constructor(n, e) {
11027
10928
  this.node = n, this.defaultCellMinWidth = e, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.table.style.setProperty(
11028
10929
  "--default-cell-min-width",
@@ -11068,11 +10969,11 @@ function cr(n, e, t, r, i, s) {
11068
10969
  var _ = new vt(
11069
10970
  "tableColumnResizing"
11070
10971
  );
11071
- function Ff({
10972
+ function Af({
11072
10973
  handleWidth: n = 5,
11073
10974
  cellMinWidth: e = 25,
11074
10975
  defaultCellMinWidth: t = 100,
11075
- View: r = Vf,
10976
+ View: r = Tf,
11076
10977
  lastColumnResizable: i = !0
11077
10978
  } = {}) {
11078
10979
  const s = new It({
@@ -11081,7 +10982,7 @@ function Ff({
11081
10982
  init(o, l) {
11082
10983
  var a, c;
11083
10984
  const f = (c = (a = s.spec) == null ? void 0 : a.props) == null ? void 0 : c.nodeViews, h = ce(l.schema).table.name;
11084
- return r && f && (f[h] = (d, u) => new r(d, t, u)), new Lf(-1, !1);
10985
+ return r && f && (f[h] = (d, u) => new r(d, t, u)), new Df(-1, !1);
11085
10986
  },
11086
10987
  apply(o, l) {
11087
10988
  return l.apply(o);
@@ -11094,26 +10995,26 @@ function Ff({
11094
10995
  },
11095
10996
  handleDOMEvents: {
11096
10997
  mousemove: (o, l) => {
11097
- Hf(o, l, n, i);
10998
+ Ef(o, l, n, i);
11098
10999
  },
11099
11000
  mouseleave: (o) => {
11100
- $f(o);
11001
+ Rf(o);
11101
11002
  },
11102
11003
  mousedown: (o, l) => {
11103
- Wf(o, l, e, t);
11004
+ If(o, l, e, t);
11104
11005
  }
11105
11006
  },
11106
11007
  decorations: (o) => {
11107
11008
  const l = _.getState(o);
11108
11009
  if (l && l.activeHandle > -1)
11109
- return Uf(o, l.activeHandle);
11010
+ return Vf(o, l.activeHandle);
11110
11011
  },
11111
11012
  nodeViews: {}
11112
11013
  }
11113
11014
  });
11114
11015
  return s;
11115
11016
  }
11116
- var Lf = class _t {
11017
+ var Df = class _t {
11117
11018
  constructor(e, t) {
11118
11019
  this.activeHandle = e, this.dragging = t;
11119
11020
  }
@@ -11130,14 +11031,14 @@ var Lf = class _t {
11130
11031
  return t;
11131
11032
  }
11132
11033
  };
11133
- function Hf(n, e, t, r) {
11034
+ function Ef(n, e, t, r) {
11134
11035
  const i = _.getState(n.state);
11135
11036
  if (i && !i.dragging) {
11136
- const s = qf(e.target);
11037
+ const s = zf(e.target);
11137
11038
  let o = -1;
11138
11039
  if (s) {
11139
11040
  const { left: l, right: a } = s.getBoundingClientRect();
11140
- e.clientX - l <= t ? o = $i(n, e, "left", t) : a - e.clientX <= t && (o = $i(n, e, "right", t));
11041
+ e.clientX - l <= t ? o = Li(n, e, "left", t) : a - e.clientX <= t && (o = Li(n, e, "right", t));
11141
11042
  }
11142
11043
  if (o != i.activeHandle) {
11143
11044
  if (!r && o !== -1) {
@@ -11145,20 +11046,20 @@ function Hf(n, e, t, r) {
11145
11046
  if (c.colCount(l.pos - f) + l.nodeAfter.attrs.colspan - 1 == c.width - 1)
11146
11047
  return;
11147
11048
  }
11148
- Io(n, o);
11049
+ Eo(n, o);
11149
11050
  }
11150
11051
  }
11151
11052
  }
11152
- function $f(n) {
11053
+ function Rf(n) {
11153
11054
  const e = _.getState(n.state);
11154
- e && e.activeHandle > -1 && !e.dragging && Io(n, -1);
11055
+ e && e.activeHandle > -1 && !e.dragging && Eo(n, -1);
11155
11056
  }
11156
- function Wf(n, e, t, r) {
11057
+ function If(n, e, t, r) {
11157
11058
  var i;
11158
11059
  const s = (i = n.dom.ownerDocument.defaultView) != null ? i : window, o = _.getState(n.state);
11159
11060
  if (!o || o.activeHandle == -1 || o.dragging)
11160
11061
  return !1;
11161
- const l = n.state.doc.nodeAt(o.activeHandle), a = Jf(n, o.activeHandle, l.attrs);
11062
+ const l = n.state.doc.nodeAt(o.activeHandle), a = vf(n, o.activeHandle, l.attrs);
11162
11063
  n.dispatch(
11163
11064
  n.state.tr.setMeta(_, {
11164
11065
  setDragging: { startX: e.clientX, startWidth: a }
@@ -11167,10 +11068,10 @@ function Wf(n, e, t, r) {
11167
11068
  function c(h) {
11168
11069
  s.removeEventListener("mouseup", c), s.removeEventListener("mousemove", f);
11169
11070
  const d = _.getState(n.state);
11170
- d != null && d.dragging && (Kf(
11071
+ d != null && d.dragging && (Bf(
11171
11072
  n,
11172
11073
  d.activeHandle,
11173
- Wi(d.dragging, h, t)
11074
+ Hi(d.dragging, h, t)
11174
11075
  ), n.dispatch(
11175
11076
  n.state.tr.setMeta(_, { setDragging: null })
11176
11077
  ));
@@ -11180,8 +11081,8 @@ function Wf(n, e, t, r) {
11180
11081
  return c(h);
11181
11082
  const d = _.getState(n.state);
11182
11083
  if (d && d.dragging) {
11183
- const u = Wi(d.dragging, h, t);
11184
- Ji(
11084
+ const u = Hi(d.dragging, h, t);
11085
+ $i(
11185
11086
  n,
11186
11087
  d.activeHandle,
11187
11088
  u,
@@ -11189,14 +11090,14 @@ function Wf(n, e, t, r) {
11189
11090
  );
11190
11091
  }
11191
11092
  }
11192
- return Ji(
11093
+ return $i(
11193
11094
  n,
11194
11095
  o.activeHandle,
11195
11096
  a,
11196
11097
  r
11197
11098
  ), s.addEventListener("mouseup", c), s.addEventListener("mousemove", f), e.preventDefault(), !0;
11198
11099
  }
11199
- function Jf(n, e, { colspan: t, colwidth: r }) {
11100
+ function vf(n, e, { colspan: t, colwidth: r }) {
11200
11101
  const i = r && r[r.length - 1];
11201
11102
  if (i)
11202
11103
  return i;
@@ -11207,12 +11108,12 @@ function Jf(n, e, { colspan: t, colwidth: r }) {
11207
11108
  r[c] && (l -= r[c], a--);
11208
11109
  return l / a;
11209
11110
  }
11210
- function qf(n) {
11111
+ function zf(n) {
11211
11112
  for (; n && n.nodeName != "TD" && n.nodeName != "TH"; )
11212
11113
  n = n.classList && n.classList.contains("ProseMirror") ? null : n.parentNode;
11213
11114
  return n;
11214
11115
  }
11215
- function $i(n, e, t, r) {
11116
+ function Li(n, e, t, r) {
11216
11117
  const i = t == "right" ? -r : r, s = n.posAtCoords({
11217
11118
  left: e.clientX + i,
11218
11119
  top: e.clientY
@@ -11227,16 +11128,16 @@ function $i(n, e, t, r) {
11227
11128
  const a = D.get(l.node(-1)), c = l.start(-1), f = a.map.indexOf(l.pos - c);
11228
11129
  return f % a.width == 0 ? -1 : c + a.map[f - 1];
11229
11130
  }
11230
- function Wi(n, e, t) {
11131
+ function Hi(n, e, t) {
11231
11132
  const r = e.clientX - n.startX;
11232
11133
  return Math.max(t, n.startWidth + r);
11233
11134
  }
11234
- function Io(n, e) {
11135
+ function Eo(n, e) {
11235
11136
  n.dispatch(
11236
11137
  n.state.tr.setMeta(_, { setHandle: e })
11237
11138
  );
11238
11139
  }
11239
- function Kf(n, e, t) {
11140
+ function Bf(n, e, t) {
11240
11141
  const r = n.state.doc.resolve(e), i = r.node(-1), s = D.get(i), o = r.start(-1), l = s.colCount(r.pos - o) + r.nodeAfter.attrs.colspan - 1, a = n.state.tr;
11241
11142
  for (let c = 0; c < s.height; c++) {
11242
11143
  const f = c * s.width + l;
@@ -11245,12 +11146,12 @@ function Kf(n, e, t) {
11245
11146
  const h = s.map[f], d = i.nodeAt(h).attrs, u = d.colspan == 1 ? 0 : l - s.colCount(h);
11246
11147
  if (d.colwidth && d.colwidth[u] == t)
11247
11148
  continue;
11248
- const p = d.colwidth ? d.colwidth.slice() : jf(d.colspan);
11149
+ const p = d.colwidth ? d.colwidth.slice() : Pf(d.colspan);
11249
11150
  p[u] = t, a.setNodeMarkup(o + h, null, { ...d, colwidth: p });
11250
11151
  }
11251
11152
  a.docChanged && n.dispatch(a);
11252
11153
  }
11253
- function Ji(n, e, t, r) {
11154
+ function $i(n, e, t, r) {
11254
11155
  const i = n.state.doc.resolve(e), s = i.node(-1), o = i.start(-1), l = D.get(s).colCount(i.pos - o) + i.nodeAfter.attrs.colspan - 1;
11255
11156
  let a = n.domAtPos(i.start(-1)).node;
11256
11157
  for (; a && a.nodeName != "TABLE"; )
@@ -11264,10 +11165,10 @@ function Ji(n, e, t, r) {
11264
11165
  t
11265
11166
  );
11266
11167
  }
11267
- function jf(n) {
11168
+ function Pf(n) {
11268
11169
  return Array(n).fill(0);
11269
11170
  }
11270
- function Uf(n, e) {
11171
+ function Vf(n, e) {
11271
11172
  var t;
11272
11173
  const r = [], i = n.doc.resolve(e), s = i.node(-1);
11273
11174
  if (!s)
@@ -11278,19 +11179,19 @@ function Uf(n, e) {
11278
11179
  if ((a == o.width - 1 || o.map[f] != o.map[f + 1]) && (c == 0 || o.map[f] != o.map[f - o.width])) {
11279
11180
  const h = o.map[f], d = l + h + s.nodeAt(h).nodeSize - 1, u = document.createElement("div");
11280
11181
  u.className = "column-resize-handle", (t = _.getState(n)) != null && t.dragging && r.push(
11281
- j.node(
11182
+ U.node(
11282
11183
  l + h,
11283
11184
  l + h + s.nodeAt(h).nodeSize,
11284
11185
  {
11285
11186
  class: "column-resize-dragging"
11286
11187
  }
11287
11188
  )
11288
- ), r.push(j.widget(d, u));
11189
+ ), r.push(U.widget(d, u));
11289
11190
  }
11290
11191
  }
11291
11192
  return A.create(n.doc, r);
11292
11193
  }
11293
- function Gf({
11194
+ function Ff({
11294
11195
  allowTableNodeSelection: n = !1
11295
11196
  } = {}) {
11296
11197
  return new It({
@@ -11313,26 +11214,125 @@ function Gf({
11313
11214
  }
11314
11215
  },
11315
11216
  props: {
11316
- decorations: kf,
11217
+ decorations: ff,
11317
11218
  handleDOMEvents: {
11318
- mousedown: Pf
11219
+ mousedown: Nf
11319
11220
  },
11320
11221
  createSelectionBetween(e) {
11321
11222
  return Ne.getState(e.state) != null ? e.state.selection : null;
11322
11223
  },
11323
- handleTripleClick: zf,
11324
- handleKeyDown: vf,
11325
- handlePaste: Bf
11224
+ handleTripleClick: Mf,
11225
+ handleKeyDown: wf,
11226
+ handlePaste: Of
11326
11227
  },
11327
11228
  appendTransaction(e, t, r) {
11328
- return wf(
11229
+ return uf(
11329
11230
  r,
11330
- Of(r, t),
11231
+ mf(r, t),
11331
11232
  n
11332
11233
  );
11333
11234
  }
11334
11235
  });
11335
11236
  }
11237
+ const Ro = "app.grapesjs.com", Io = "app-stage.grapesjs.com", Wi = [
11238
+ Ro,
11239
+ Io,
11240
+ "localhost",
11241
+ "127.0.0.1",
11242
+ ".local-credentialless.webcontainer.io",
11243
+ // For stackblitz.com demos
11244
+ ".local.webcontainer.io",
11245
+ // For stackblitz.com demos
11246
+ "-sandpack.codesandbox.io"
11247
+ // For Sandpack demos
11248
+ ], Lf = "license:check:start", Hf = "license:check:end", $f = () => typeof window < "u", Wf = ({ isDev: n, isStage: e }) => `${n ? "" : `https://${e ? Io : Ro}`}/api`, Jf = () => {
11249
+ const n = $f() && window.location.hostname;
11250
+ return !!n && (Wi.includes(n) || Wi.some((e) => n.endsWith(e)));
11251
+ };
11252
+ async function qf({
11253
+ path: n,
11254
+ baseApiUrl: e,
11255
+ method: t = "GET",
11256
+ headers: r = {},
11257
+ params: i,
11258
+ body: s
11259
+ }) {
11260
+ const l = `${e || Wf({ isDev: !1, isStage: !1 })}${n}`, a = {
11261
+ method: t,
11262
+ headers: {
11263
+ "Content-Type": "application/json",
11264
+ ...r
11265
+ }
11266
+ };
11267
+ s && (a.body = JSON.stringify(s));
11268
+ const c = i ? new URLSearchParams(i).toString() : "", f = c ? `?${c}` : "", h = await fetch(`${l}${f}`, a);
11269
+ if (!h.ok)
11270
+ throw new Error(`HTTP error! status: ${h.status}`);
11271
+ return h.json();
11272
+ }
11273
+ var nt = /* @__PURE__ */ ((n) => (n.free = "free", n.startup = "startup", n.business = "business", n.enterprise = "enterprise", n))(nt || {}), hn = /* @__PURE__ */ ((n) => (n.toastAdd = "studio:toastAdd", n.dialogOpen = "studio:dialogOpen", n.dialogClose = "studio:dialogClose", n.sidebarLeftSet = "studio:sidebarLeft:set", n.sidebarLeftGet = "studio:sidebarLeft:get", n.sidebarLeftToggle = "studio:sidebarLeft:toggle", n.sidebarRightSet = "studio:sidebarRight:set", n.sidebarRightGet = "studio:sidebarRight:get", n.sidebarRightToggle = "studio:sidebarRight:toggle", n.sidebarTopSet = "studio:sidebarTop:set", n.sidebarTopGet = "studio:sidebarTop:get", n.sidebarTopToggle = "studio:sidebarTop:toggle", n.sidebarBottomSet = "studio:sidebarBottom:set", n.sidebarBottomGet = "studio:sidebarBottom:get", n.sidebarBottomToggle = "studio:sidebarBottom:toggle", n.symbolAdd = "studio:symbolAdd", n.symbolDetach = "studio:symbolDetach", n.symbolOverride = "studio:symbolOverride", n.symbolPropagateStyles = "studio:propagateStyles", n.getPagesConfig = "studio:getPagesConfig", n.setPagesConfig = "studio:setPagesConfig", n.getPageSettings = "studio:getPageSettings", n.setPageSettings = "studio:setPageSettings", n.projectFiles = "studio:projectFiles", n.canvasReload = "studio:canvasReload", n.getBlocksPanel = "studio:getBlocksPanel", n.setBlocksPanel = "studio:setBlocksPanel", n.getStateContextMenu = "studio:getStateContextMenu", n.setStateContextMenu = "studio:setStateContextMenu", n.contextMenuComponent = "studio:contextMenuComponent", n.layoutAdd = "studio:layoutAdd", n.layoutRemove = "studio:layoutRemove", n.layoutToggle = "studio:layoutToggle", n.layoutUpdate = "studio:layoutUpdate", n.layoutGet = "studio:layoutGet", n.layoutConfigGet = "studio:layoutConfigGet", n.layoutConfigSet = "studio:layoutConfigSet", n.getStateTheme = "studio:getStateTheme", n.setStateTheme = "studio:setStateTheme", n.assetProviderGet = "studio:assetProviderGet", n.assetProviderAdd = "studio:assetProviderAdd", n.assetProviderRemove = "studio:assetProviderRemove", n.fontGet = "studio:fontGet", n.fontAdd = "studio:fontAdd", n.fontRemove = "studio:fontRemove", n.fontManagerOpen = "studio:fontManagerOpen", n.toggleStateDataSource = "studio:toggleStateDataSource", n.getStateDataSource = "studio:getStateDataSource", n))(hn || {});
11274
+ const Ji = {
11275
+ [nt.free]: 0,
11276
+ [nt.startup]: 10,
11277
+ [nt.business]: 20,
11278
+ [nt.enterprise]: 30
11279
+ };
11280
+ function Kf(n) {
11281
+ const e = n;
11282
+ return e.init = (t) => (r) => n(r, t), e;
11283
+ }
11284
+ const Uf = (n) => /* @__PURE__ */ Kf(n);
11285
+ async function jf({
11286
+ editor: n,
11287
+ plan: e,
11288
+ pluginName: t,
11289
+ licenseKey: r,
11290
+ cleanup: i
11291
+ }) {
11292
+ let s = "", o = !1;
11293
+ const l = Jf(), a = (f) => {
11294
+ console.warn("Cleanup plugin:", t, "Reason:", f), i();
11295
+ }, c = (f = {}) => {
11296
+ var m;
11297
+ const { error: h, sdkLicense: d } = f, u = (m = f.plan) == null ? void 0 : m.category;
11298
+ if (!(d || f.license) || h)
11299
+ a(h || "Invalid license");
11300
+ else if (u) {
11301
+ const g = Ji[e], b = Ji[u];
11302
+ g > b && a({ pluginRequiredPlan: e, licensePlan: u });
11303
+ }
11304
+ };
11305
+ n.on(Lf, (f) => {
11306
+ s = f == null ? void 0 : f.baseApiUrl, o = !0;
11307
+ }), n.on(Hf, (f) => {
11308
+ c(f);
11309
+ }), setTimeout(async () => {
11310
+ if (!o) {
11311
+ if (l) return;
11312
+ if (r) {
11313
+ const f = await Gf({ licenseKey: r, pluginName: t, baseApiUrl: s });
11314
+ f && c(f);
11315
+ } else
11316
+ a("The `licenseKey` option not provided");
11317
+ }
11318
+ }, 2e3);
11319
+ }
11320
+ async function Gf(n) {
11321
+ const { licenseKey: e, pluginName: t, baseApiUrl: r } = n;
11322
+ try {
11323
+ return (await qf({
11324
+ baseApiUrl: r,
11325
+ path: `/sdk/${e || "na"}`,
11326
+ method: "POST",
11327
+ params: {
11328
+ d: window.location.hostname,
11329
+ pn: t
11330
+ }
11331
+ })).result || {};
11332
+ } catch (i) {
11333
+ return console.error("Error during SDK license check:", i), !1;
11334
+ }
11335
+ }
11336
11336
  const Mt = (n) => {
11337
11337
  const e = Object.fromEntries(Array.from(n.attributes).map((t) => [t.name, t.value]));
11338
11338
  return delete e.draggable, e;
@@ -11446,7 +11446,7 @@ const Mt = (n) => {
11446
11446
  return [e ? `h${e}` : "div", n.attrs, 0];
11447
11447
  }
11448
11448
  },
11449
- ...gf({
11449
+ ...of({
11450
11450
  tableGroup: "block",
11451
11451
  cellContent: "block+",
11452
11452
  cellAttributes: {
@@ -11526,14 +11526,14 @@ const Mt = (n) => {
11526
11526
  return e && (t.style = `font-size: ${e}`), ["span", t, 0];
11527
11527
  }
11528
11528
  }
11529
- }, ji = new il({
11529
+ }, Ui = new il({
11530
11530
  nodes: _f,
11531
11531
  marks: Xf
11532
11532
  }), Sn = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakMap(), Yf = (n, e) => {
11533
11533
  Sn.set(n, e), Tr.set(e, n);
11534
11534
  }, Zf = (n, e) => {
11535
11535
  Sn.delete(n), Tr.delete(e);
11536
- }, Wn = (n) => Sn.get(n), Qf = (n) => Tr.get(n), Ui = (n) => {
11536
+ }, Wn = (n) => Sn.get(n), Qf = (n) => Tr.get(n), ji = (n) => {
11537
11537
  var t;
11538
11538
  const e = Qf(n);
11539
11539
  return (t = e == null ? void 0 : e.__gjsv) == null ? void 0 : t.model;
@@ -11763,7 +11763,7 @@ const hh = (n, e) => {
11763
11763
  },
11764
11764
  link: {
11765
11765
  get: () => {
11766
- const s = Ui(n);
11766
+ const s = ji(n);
11767
11767
  if (s != null && s.is("link"))
11768
11768
  return s.getAttributes();
11769
11769
  {
@@ -11774,7 +11774,7 @@ const hh = (n, e) => {
11774
11774
  toggle: () => Pe(i.link)(n.state, t),
11775
11775
  isActive: () => gt(n.state, i.link),
11776
11776
  create: (s) => {
11777
- const o = Ui(n);
11777
+ const o = ji(n);
11778
11778
  o != null && o.is("link") ? (o.addAttributes({ href: s.url, target: s.target }), n.focus()) : lh(n, s.url, s.target);
11779
11779
  }
11780
11780
  },
@@ -11834,7 +11834,132 @@ const hh = (n, e) => {
11834
11834
  toggle: () => Gi(n, r.orderedList)
11835
11835
  }
11836
11836
  };
11837
- }, te = "rte:selectionchange", Y = {
11837
+ };
11838
+ class Be {
11839
+ // :: (RegExp, union<string, (state: EditorState, match: [string], start: number, end: number) → ?Transaction>)
11840
+ /**
11841
+ Create an input rule. The rule applies when the user typed
11842
+ something and the text directly in front of the cursor matches
11843
+ `match`, which should end with `$`.
11844
+
11845
+ The `handler` can be a string, in which case the matched text, or
11846
+ the first matched group in the regexp, is replaced by that
11847
+ string.
11848
+
11849
+ Or a it can be a function, which will be called with the match
11850
+ array produced by
11851
+ [`RegExp.exec`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec),
11852
+ as well as the start and end of the matched range, and which can
11853
+ return a [transaction](https://prosemirror.net/docs/ref/#state.Transaction) that describes the
11854
+ rule's effect, or null to indicate the input was not handled.
11855
+ */
11856
+ constructor(e, t, r = {}) {
11857
+ this.match = e, this.match = e, this.handler = typeof t == "string" ? yh(t) : t, this.undoable = r.undoable !== !1, this.inCode = r.inCode || !1;
11858
+ }
11859
+ }
11860
+ function yh(n) {
11861
+ return function(e, t, r, i) {
11862
+ let s = n;
11863
+ if (t[1]) {
11864
+ let o = t[0].lastIndexOf(t[1]);
11865
+ s += t[0].slice(o + t[1].length), r += o;
11866
+ let l = r - i;
11867
+ l > 0 && (s = t[0].slice(o - l, o) + s, r = i);
11868
+ }
11869
+ return e.tr.insertText(s, r, i);
11870
+ };
11871
+ }
11872
+ const bh = 500;
11873
+ function xh({ rules: n }) {
11874
+ let e = new It({
11875
+ state: {
11876
+ init() {
11877
+ return null;
11878
+ },
11879
+ apply(t, r) {
11880
+ let i = t.getMeta(this);
11881
+ return i || (t.selectionSet || t.docChanged ? null : r);
11882
+ }
11883
+ },
11884
+ props: {
11885
+ handleTextInput(t, r, i, s) {
11886
+ return _i(t, r, i, s, n, e);
11887
+ },
11888
+ handleDOMEvents: {
11889
+ compositionend: (t) => {
11890
+ setTimeout(() => {
11891
+ let { $cursor: r } = t.state.selection;
11892
+ r && _i(t, r.pos, r.pos, "", n, e);
11893
+ });
11894
+ }
11895
+ }
11896
+ },
11897
+ isInputRules: !0
11898
+ });
11899
+ return e;
11900
+ }
11901
+ function _i(n, e, t, r, i, s) {
11902
+ if (n.composing)
11903
+ return !1;
11904
+ let o = n.state, l = o.doc.resolve(e), a = l.parent.textBetween(Math.max(0, l.parentOffset - bh), l.parentOffset, null, "") + r;
11905
+ for (let c = 0; c < i.length; c++) {
11906
+ let f = i[c];
11907
+ if (l.parent.type.spec.code) {
11908
+ if (!f.inCode)
11909
+ continue;
11910
+ } else if (f.inCode === "only")
11911
+ continue;
11912
+ let h = f.match.exec(a), d = h && f.handler(o, h, e - (h[0].length - r.length), t);
11913
+ if (d)
11914
+ return f.undoable && d.setMeta(s, { transform: d, from: e, to: t, text: r }), n.dispatch(d), !0;
11915
+ }
11916
+ return !1;
11917
+ }
11918
+ const kh = new Be(/--$/, "—"), Sh = new Be(/\.\.\.$/, "…"), Ch = new Be(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/, "“"), wh = new Be(/"$/, "”"), Mh = new Be(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/, "‘"), Oh = new Be(/'$/, "’"), Nh = [Ch, wh, Mh, Oh];
11919
+ function Ar(n, e, t = null, r) {
11920
+ return new Be(n, (i, s, o, l) => {
11921
+ let a = t instanceof Function ? t(s) : t, c = i.tr.delete(o, l), f = c.doc.resolve(o), h = f.blockRange(), d = h && xs(h, e, a);
11922
+ if (!d)
11923
+ return null;
11924
+ c.wrap(h, d);
11925
+ let u = c.doc.resolve(o - 1).nodeBefore;
11926
+ return u && u.type == e && mn(c.doc, o - 1) && (!r || r(s, u)) && c.join(o - 1), c;
11927
+ });
11928
+ }
11929
+ function Ho(n, e, t = null) {
11930
+ return new Be(n, (r, i, s, o) => {
11931
+ let l = r.doc.resolve(s), a = t instanceof Function ? t(i) : t;
11932
+ return l.node(-1).canReplaceWith(l.index(-1), l.indexAfter(-1), e) ? r.tr.delete(s, o).setBlockType(s, s, e, a) : null;
11933
+ });
11934
+ }
11935
+ function Th(n) {
11936
+ return Ar(/^\s*>\s$/, n);
11937
+ }
11938
+ function Ah(n) {
11939
+ return Ar(
11940
+ /^(\d+)\.\s$/,
11941
+ n,
11942
+ (e) => ({ order: +e[1] }),
11943
+ (e, t) => t.childCount + t.attrs.order == +e[1]
11944
+ );
11945
+ }
11946
+ function Dh(n) {
11947
+ return Ar(/^\s*([-+*])\s$/, n);
11948
+ }
11949
+ function Eh(n) {
11950
+ return Ho(/^```$/, n);
11951
+ }
11952
+ function Rh(n, e) {
11953
+ return Ho(new RegExp("^(#{1," + e + "})\\s$"), n, (t) => ({
11954
+ level: t[1].length
11955
+ }));
11956
+ }
11957
+ function Ih(n) {
11958
+ const e = Nh.concat(Sh, kh);
11959
+ let t;
11960
+ return (t = n.nodes.blockquote) && e.push(Th(t)), (t = n.nodes.orderedList) && e.push(Ah(t)), (t = n.nodes.bulletList) && e.push(Dh(t)), (t = n.nodes.codeBlock) && e.push(Eh(t)), (t = n.nodes.heading) && e.push(Rh(t, 6)), xh({ rules: e });
11961
+ }
11962
+ const vh = "rteProseMirror", zh = nt.free, te = "rte:selectionchange", Y = {
11838
11963
  bold: '<svg viewBox="0 0 24 24"><path d="M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z" /></svg>',
11839
11964
  italic: '<svg viewBox="0 0 24 24"><path d="M10,4V7H12.21L8.79,15H6V18H14V15H11.79L15.21,7H18V4H10Z" /></svg>',
11840
11965
  underline: '<svg viewBox="0 0 24 24"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z" /></svg>',
@@ -11847,7 +11972,7 @@ const hh = (n, e) => {
11847
11972
  alignTextCenter: '<svg viewBox="0 0 24 24"><path d="M3,3H21V5H3V3M7,7H17V9H7V7M3,11H21V13H3V11M7,15H17V17H7V15M3,19H21V21H3V19Z" /></svg>',
11848
11973
  alignTextRight: '<svg viewBox="0 0 24 24"><path d="M3,3H21V5H3V3M9,7H21V9H9V7M3,11H21V13H3V11M9,15H21V17H9V15M3,19H21V21H3V19Z" /></svg>',
11849
11974
  alignTextJustify: '<svg viewBox="0 0 24 24"><path d="M3,3H21V5H3V3M3,7H21V9H3V7M3,11H21V13H3V11M3,15H21V17H3V15M3,19H21V21H3V19Z" /></svg>'
11850
- }, yh = (n, e) => {
11975
+ }, Bh = (n, e) => {
11851
11976
  var a;
11852
11977
  const { editor: t, el: r } = n, i = Sn.get(r), s = Lo(i, t), o = {
11853
11978
  separator: {
@@ -12112,7 +12237,7 @@ const hh = (n, e) => {
12112
12237
  items: l
12113
12238
  })) || l;
12114
12239
  };
12115
- class bh {
12240
+ class Ph {
12116
12241
  constructor(e, t, r) {
12117
12242
  this.editor = r, this.node = e, this.dom = document.createElement("img"), this.view = t, Object.keys(e.attrs.attrs).forEach((i) => {
12118
12243
  this.dom.setAttribute(i, e.attrs.attrs[i]);
@@ -12134,157 +12259,33 @@ class bh {
12134
12259
  this.dom.style.outline = "";
12135
12260
  }
12136
12261
  }
12137
- class Be {
12138
- // :: (RegExp, union<string, (state: EditorState, match: [string], start: number, end: number) → ?Transaction>)
12139
- /**
12140
- Create an input rule. The rule applies when the user typed
12141
- something and the text directly in front of the cursor matches
12142
- `match`, which should end with `$`.
12143
-
12144
- The `handler` can be a string, in which case the matched text, or
12145
- the first matched group in the regexp, is replaced by that
12146
- string.
12147
-
12148
- Or a it can be a function, which will be called with the match
12149
- array produced by
12150
- [`RegExp.exec`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec),
12151
- as well as the start and end of the matched range, and which can
12152
- return a [transaction](https://prosemirror.net/docs/ref/#state.Transaction) that describes the
12153
- rule's effect, or null to indicate the input was not handled.
12154
- */
12155
- constructor(e, t, r = {}) {
12156
- this.match = e, this.match = e, this.handler = typeof t == "string" ? xh(t) : t, this.undoable = r.undoable !== !1, this.inCode = r.inCode || !1;
12157
- }
12158
- }
12159
- function xh(n) {
12160
- return function(e, t, r, i) {
12161
- let s = n;
12162
- if (t[1]) {
12163
- let o = t[0].lastIndexOf(t[1]);
12164
- s += t[0].slice(o + t[1].length), r += o;
12165
- let l = r - i;
12166
- l > 0 && (s = t[0].slice(o - l, o) + s, r = i);
12167
- }
12168
- return e.tr.insertText(s, r, i);
12169
- };
12170
- }
12171
- const kh = 500;
12172
- function Sh({ rules: n }) {
12173
- let e = new It({
12174
- state: {
12175
- init() {
12176
- return null;
12177
- },
12178
- apply(t, r) {
12179
- let i = t.getMeta(this);
12180
- return i || (t.selectionSet || t.docChanged ? null : r);
12181
- }
12182
- },
12183
- props: {
12184
- handleTextInput(t, r, i, s) {
12185
- return _i(t, r, i, s, n, e);
12186
- },
12187
- handleDOMEvents: {
12188
- compositionend: (t) => {
12189
- setTimeout(() => {
12190
- let { $cursor: r } = t.state.selection;
12191
- r && _i(t, r.pos, r.pos, "", n, e);
12192
- });
12193
- }
12194
- }
12195
- },
12196
- isInputRules: !0
12197
- });
12198
- return e;
12199
- }
12200
- function _i(n, e, t, r, i, s) {
12201
- if (n.composing)
12202
- return !1;
12203
- let o = n.state, l = o.doc.resolve(e), a = l.parent.textBetween(Math.max(0, l.parentOffset - kh), l.parentOffset, null, "") + r;
12204
- for (let c = 0; c < i.length; c++) {
12205
- let f = i[c];
12206
- if (l.parent.type.spec.code) {
12207
- if (!f.inCode)
12208
- continue;
12209
- } else if (f.inCode === "only")
12210
- continue;
12211
- let h = f.match.exec(a), d = h && f.handler(o, h, e - (h[0].length - r.length), t);
12212
- if (d)
12213
- return f.undoable && d.setMeta(s, { transform: d, from: e, to: t, text: r }), n.dispatch(d), !0;
12214
- }
12215
- return !1;
12216
- }
12217
- const Ch = new Be(/--$/, "—"), wh = new Be(/\.\.\.$/, "…"), Mh = new Be(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/, "“"), Oh = new Be(/"$/, "”"), Nh = new Be(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/, "‘"), Th = new Be(/'$/, "’"), Ah = [Mh, Oh, Nh, Th];
12218
- function Ar(n, e, t = null, r) {
12219
- return new Be(n, (i, s, o, l) => {
12220
- let a = t instanceof Function ? t(s) : t, c = i.tr.delete(o, l), f = c.doc.resolve(o), h = f.blockRange(), d = h && xs(h, e, a);
12221
- if (!d)
12222
- return null;
12223
- c.wrap(h, d);
12224
- let u = c.doc.resolve(o - 1).nodeBefore;
12225
- return u && u.type == e && mn(c.doc, o - 1) && (!r || r(s, u)) && c.join(o - 1), c;
12226
- });
12227
- }
12228
- function Ho(n, e, t = null) {
12229
- return new Be(n, (r, i, s, o) => {
12230
- let l = r.doc.resolve(s), a = t instanceof Function ? t(i) : t;
12231
- return l.node(-1).canReplaceWith(l.index(-1), l.indexAfter(-1), e) ? r.tr.delete(s, o).setBlockType(s, s, e, a) : null;
12232
- });
12233
- }
12234
- function Dh(n) {
12235
- return Ar(/^\s*>\s$/, n);
12236
- }
12237
- function Eh(n) {
12238
- return Ar(
12239
- /^(\d+)\.\s$/,
12240
- n,
12241
- (e) => ({ order: +e[1] }),
12242
- (e, t) => t.childCount + t.attrs.order == +e[1]
12243
- );
12244
- }
12245
- function Rh(n) {
12246
- return Ar(/^\s*([-+*])\s$/, n);
12247
- }
12248
- function Ih(n) {
12249
- return Ho(/^```$/, n);
12250
- }
12251
- function vh(n, e) {
12252
- return Ho(new RegExp("^(#{1," + e + "})\\s$"), n, (t) => ({
12253
- level: t[1].length
12254
- }));
12255
- }
12256
- function zh(n) {
12257
- const e = Ah.concat(wh, Ch);
12258
- let t;
12259
- return (t = n.nodes.blockquote) && e.push(Dh(t)), (t = n.nodes.orderedList) && e.push(Eh(t)), (t = n.nodes.bulletList) && e.push(Rh(t)), (t = n.nodes.codeBlock) && e.push(Ih(t)), (t = n.nodes.heading) && e.push(vh(t, 6)), Sh({ rules: e });
12260
- }
12261
- const Bh = "rteProseMirror", Ph = function(n, e = {}) {
12262
+ const Vh = function(n, e = {}) {
12262
12263
  const t = {
12263
12264
  plugins: (o) => o.plugins,
12264
12265
  ...e
12265
12266
  }, r = (o, l) => {
12266
12267
  var p, m;
12267
- const a = ((p = t.schema) == null ? void 0 : p.call(t, { editor: n, schema: ji })) || ji, { nodes: c, marks: f } = a, h = lt.fromSchema(a).parse(o), d = tt.create({
12268
+ const a = ((p = t.schema) == null ? void 0 : p.call(t, { editor: n, schema: Ui })) || Ui, { nodes: c, marks: f } = a, h = lt.fromSchema(a).parse(o), d = tt.create({
12268
12269
  doc: h,
12269
12270
  schema: a,
12270
12271
  plugins: (m = t.plugins) == null ? void 0 : m.call(t, {
12271
12272
  editor: n,
12272
12273
  plugins: [
12274
+ Af(),
12273
12275
  Ff(),
12274
- Gf(),
12275
- zh(a),
12276
+ Ih(a),
12276
12277
  ca(),
12277
12278
  Bn({
12278
- Tab: Pi(1),
12279
- "Shift-Tab": Pi(-1)
12279
+ Tab: zi(1),
12280
+ "Shift-Tab": zi(-1)
12280
12281
  }),
12281
12282
  Bn({
12282
12283
  Enter: Tt(zs, ya(c.listItem), rh),
12283
12284
  "Shift-Enter": Tt(vs, (g, b) => (b && b(g.tr.replaceSelectionWith(c.inlineBreak.create()).scrollIntoView()), !0)),
12284
12285
  "Mod-z": Ws,
12285
- "Mod-y": Un,
12286
+ "Mod-y": jn,
12286
12287
  // On Windows
12287
- "Mod-Shift-z": Un,
12288
+ "Mod-Shift-z": jn,
12288
12289
  // On Mac
12289
12290
  "Mod-b": Pe(f.strong),
12290
12291
  "Mod-i": Pe(f.em),
@@ -12311,11 +12312,11 @@ const Bh = "rteProseMirror", Ph = function(n, e = {}) {
12311
12312
  return o.__rteView = u, u.setProps({
12312
12313
  nodeViews: {
12313
12314
  image(g) {
12314
- return new bh(g, u, n);
12315
+ return new Ph(g, u, n);
12315
12316
  }
12316
12317
  }
12317
12318
  }), u;
12318
- }, i = (o) => yh(o, t);
12319
+ }, i = (o) => Bh(o, t);
12319
12320
  n.setCustomRte({
12320
12321
  // Use Studio SDK toolbar
12321
12322
  toolbar: i,
@@ -12344,16 +12345,16 @@ const Bh = "rteProseMirror", Ph = function(n, e = {}) {
12344
12345
  }
12345
12346
  });
12346
12347
  const s = nh(n, t);
12347
- ff({
12348
+ jf({
12348
12349
  editor: n,
12349
12350
  licenseKey: t.licenseKey,
12350
- plan: nt.free,
12351
- pluginName: Bh,
12351
+ plan: zh,
12352
+ pluginName: vh,
12352
12353
  cleanup: () => {
12353
12354
  n.RichTextEditor.customRte = void 0, s();
12354
12355
  }
12355
12356
  });
12356
- }, Vh = cf(Ph);
12357
+ }, Fh = Uf(Vh);
12357
12358
  export {
12358
- Vh as default
12359
+ Fh as default
12359
12360
  };