@grapesjs/studio-sdk-plugins 1.0.34 → 1.0.35

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 (47) hide show
  1. package/dist/aiChat/clientTools.d.ts +3 -3
  2. package/dist/aiChat/clientToolsProcessors.d.ts +5 -2
  3. package/dist/aiChat/components/AiChatHeader.d.ts +22 -2
  4. package/dist/aiChat/components/AiChatToolGenerateImage.d.ts +7 -0
  5. package/dist/aiChat/components/utils.d.ts +2 -0
  6. package/dist/aiChat/index.cjs.js +88 -99
  7. package/dist/aiChat/index.es.js +12677 -11001
  8. package/dist/aiChat/index.js +88 -99
  9. package/dist/aiChat/index.umd.js +97 -108
  10. package/dist/aiChat/locales/en.d.ts +38 -0
  11. package/dist/aiChat/server/index.cjs.js +91 -237
  12. package/dist/aiChat/server/index.es.js +721 -631
  13. package/dist/aiChat/server/index.js +91 -237
  14. package/dist/aiChat/server/index.umd.js +91 -237
  15. package/dist/aiChat/server/prompts.d.ts +15 -11
  16. package/dist/aiChat/server/tools.d.ts +74 -122
  17. package/dist/aiChat/server/types.d.ts +61 -3
  18. package/dist/aiChat/types.d.ts +69 -11
  19. package/dist/aiChat/typesSchema.d.ts +27 -0
  20. package/dist/googleFontsAssetProvider/index.cjs.js +1 -1
  21. package/dist/googleFontsAssetProvider/index.es.js +11 -11
  22. package/dist/googleFontsAssetProvider/index.umd.js +1 -1
  23. package/dist/iconifyComponent/index.cjs.js +2 -2
  24. package/dist/iconifyComponent/index.es.js +11 -11
  25. package/dist/iconifyComponent/index.umd.js +2 -2
  26. package/dist/index.cjs.js +20 -20
  27. package/dist/index.es.js +208 -208
  28. package/dist/index.umd.js +1 -1
  29. package/dist/layoutSidebarButtons/index.cjs.js +1 -1
  30. package/dist/layoutSidebarButtons/index.es.js +7 -7
  31. package/dist/layoutSidebarButtons/index.umd.js +1 -1
  32. package/dist/presetPrintable/index.cjs.js +2 -2
  33. package/dist/presetPrintable/index.es.js +5 -5
  34. package/dist/presetPrintable/index.umd.js +3 -3
  35. package/dist/prosemirror/index.cjs.js +1 -1
  36. package/dist/prosemirror/index.es.js +1 -1
  37. package/dist/prosemirror/index.umd.js +1 -1
  38. package/dist/rteTinyMce/index.cjs.js +2 -2
  39. package/dist/rteTinyMce/index.es.js +12 -12
  40. package/dist/rteTinyMce/index.umd.js +2 -2
  41. package/dist/tableComponent/index.cjs.js +1 -1
  42. package/dist/tableComponent/index.es.js +83 -83
  43. package/dist/tableComponent/index.umd.js +1 -1
  44. package/dist/youtubeAssetProvider/index.cjs.js +1 -1
  45. package/dist/youtubeAssetProvider/index.es.js +15 -15
  46. package/dist/youtubeAssetProvider/index.umd.js +1 -1
  47. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -38,12 +38,12 @@ const Ra = "app.grapesjs.com", Da = "app-stage.grapesjs.com", Ep = "app2.grapesj
38
38
  }, Np = (n) => {
39
39
  const e = n.map((t) => nr(t));
40
40
  return Promise.allSettled(e);
41
- }, Op = async (n) => {
41
+ }, Ip = async (n) => {
42
42
  const e = window.define;
43
43
  window.define = void 0;
44
44
  const t = await Np(n);
45
45
  return window.define = e, t;
46
- }, Ip = ({
46
+ }, Op = ({
47
47
  isDev: n,
48
48
  isStage: e,
49
49
  isPlatform: t
@@ -62,7 +62,7 @@ async function zp({
62
62
  params: s,
63
63
  body: r
64
64
  }) {
65
- const l = `${e || Ip({ isDev: !1, isStage: !1 })}${n}`, a = {
65
+ const l = `${e || Op({ isDev: !1, isStage: !1 })}${n}`, a = {
66
66
  method: t,
67
67
  headers: {
68
68
  "Content-Type": "application/json",
@@ -75,7 +75,7 @@ async function zp({
75
75
  throw new Error(`HTTP error! status: ${p.status}`);
76
76
  return p.json();
77
77
  }
78
- var H = /* @__PURE__ */ ((n) => (n.free = "free", n.startup = "startup", n.business = "business", n.enterprise = "enterprise", n))(H || {}), La = /* @__PURE__ */ ((n) => (n.Info = "info", n.Error = "error", n.Success = "success", n.Warning = "warning", n))(La || {}), W = /* @__PURE__ */ ((n) => (n.toastAdd = "studio:toastAdd", n.toastRemove = "studio:toastRemove", n.dialogOpen = "studio:dialogOpen", n.dialogClose = "studio:dialogClose", n.dialogExportCode = "studio:dialogExportCode", 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.clearPage = "studio:clearPage", n.projectFiles = "studio:projectFiles", n.validateCode = "studio:validateCode", 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.layoutComponentAdd = "studio:layoutComponentAdd", n.layoutComponentGet = "studio:layoutComponentGet", n.layoutComponentRemove = "studio:layoutComponentRemove", n.layoutComponentRender = "studio:layoutComponentRender", 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.menuFontLoad = "studio:menuFontLoad", n.toggleStateDataSource = "studio:toggleStateDataSource", n.getStateDataSource = "studio:getStateDataSource", n.dataSourceSetGlobalData = "studio:dataSourceSetGlobalData", n.dataSourceSetImporter = "studio:dataSourceSetImporter", n.dataSourceSetExporter = "studio:dataSourceSetExporter", n.setDragAbsolute = "studio:setDragAbsolute", n))(W || {}), $a = /* @__PURE__ */ ((n) => (n.layoutToggleId = "studio:layoutToggle:", n.toggleBlocksPanel = "studio:toggleBlocksPanel", n.pageSettingsUpdate = "studio:pageSettingsUpdate", n.toggleDataSourcesPreview = "studio:toggleDataSourcesPreview", n))($a || {}), za = /* @__PURE__ */ ((n) => (n.dark = "dark", n.light = "light", n.auto = "auto", n))(za || {}), Va = /* @__PURE__ */ ((n) => (n.web = "web", n.email = "email", n.document = "document", n.react = "react", n))(Va || {});
78
+ var H = /* @__PURE__ */ ((n) => (n.free = "free", n.startup = "startup", n.business = "business", n.enterprise = "enterprise", n))(H || {}), La = /* @__PURE__ */ ((n) => (n.Info = "info", n.Error = "error", n.Success = "success", n.Warning = "warning", n))(La || {}), W = /* @__PURE__ */ ((n) => (n.toastAdd = "studio:toastAdd", n.toastRemove = "studio:toastRemove", n.dialogOpen = "studio:dialogOpen", n.dialogClose = "studio:dialogClose", n.dialogExportCode = "studio:dialogExportCode", n.dialogImportCode = "studio:dialogImportCode", 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.clearPage = "studio:clearPage", n.projectFiles = "studio:projectFiles", n.validateCode = "studio:validateCode", 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.layoutComponentAdd = "studio:layoutComponentAdd", n.layoutComponentGet = "studio:layoutComponentGet", n.layoutComponentRemove = "studio:layoutComponentRemove", n.layoutComponentRender = "studio:layoutComponentRender", 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.menuFontLoad = "studio:menuFontLoad", n.toggleStateDataSource = "studio:toggleStateDataSource", n.getStateDataSource = "studio:getStateDataSource", n.dataSourceSetGlobalData = "studio:dataSourceSetGlobalData", n.dataSourceSetImporter = "studio:dataSourceSetImporter", n.dataSourceSetExporter = "studio:dataSourceSetExporter", n.setDragAbsolute = "studio:setDragAbsolute", n))(W || {}), $a = /* @__PURE__ */ ((n) => (n.layoutToggleId = "studio:layoutToggle:", n.toggleBlocksPanel = "studio:toggleBlocksPanel", n.pageSettingsUpdate = "studio:pageSettingsUpdate", n.toggleDataSourcesPreview = "studio:toggleDataSourcesPreview", n))($a || {}), za = /* @__PURE__ */ ((n) => (n.dark = "dark", n.light = "light", n.auto = "auto", n))(za || {}), Va = /* @__PURE__ */ ((n) => (n.web = "web", n.email = "email", n.document = "document", n.react = "react", n))(Va || {});
79
79
  const Ei = {
80
80
  [H.free]: 0,
81
81
  [H.startup]: 10,
@@ -740,7 +740,7 @@ function jn(n, e, t) {
740
740
  }, d;
741
741
  }
742
742
  const su = "tableComponent", ru = H.startup;
743
- var I = /* @__PURE__ */ ((n) => (n.table = "table", n.tableSettings = "tableSettings", n.tableDelete = "tableDelete", n.tableHead = "tableHead", n.tableFoot = "tableFoot", n.tableCellItems = "tableCellItems", n.tableCellProperties = "tableCellProperties", n.tableCellMerge = "tableCellMerge", n.tableCellSplit = "tableCellSplit", n.tableRowItems = "tableRowItems", n.tableRowInsertBefore = "tableRowInsertBefore", n.tableRowInsertAfter = "tableRowInsertAfter", n.tableRowDelete = "tableRowDelete", n.tableRowProperties = "tableRowProperties", n.tableRowCut = "tableRowCut", n.tableRowCopy = "tableRowCopy", n.tableRowPasteBefore = "tableRowPasteBefore", n.tableRowPasteAfter = "tableRowPasteAfter", n.tableColumn = "tableColumn", n.tableColumnItems = "tableColumnItems", n.tableColumnInsertBefore = "tableColumnInsertBefore", n.tableColumnInsertAfter = "tableColumnInsertAfter", n.tableColumnDelete = "tableColumnDelete", n.tableColumnCut = "tableColumnCut", n.tableColumnCopy = "tableColumnCopy", n.tableColumnPasteBefore = "tableColumnPasteBefore", n.tableColumnPasteAfter = "tableColumnPasteAfter", n))(I || {});
743
+ var O = /* @__PURE__ */ ((n) => (n.table = "table", n.tableSettings = "tableSettings", n.tableDelete = "tableDelete", n.tableHead = "tableHead", n.tableFoot = "tableFoot", n.tableCellItems = "tableCellItems", n.tableCellProperties = "tableCellProperties", n.tableCellMerge = "tableCellMerge", n.tableCellSplit = "tableCellSplit", n.tableRowItems = "tableRowItems", n.tableRowInsertBefore = "tableRowInsertBefore", n.tableRowInsertAfter = "tableRowInsertAfter", n.tableRowDelete = "tableRowDelete", n.tableRowProperties = "tableRowProperties", n.tableRowCut = "tableRowCut", n.tableRowCopy = "tableRowCopy", n.tableRowPasteBefore = "tableRowPasteBefore", n.tableRowPasteAfter = "tableRowPasteAfter", n.tableColumn = "tableColumn", n.tableColumnItems = "tableColumnItems", n.tableColumnInsertBefore = "tableColumnInsertBefore", n.tableColumnInsertAfter = "tableColumnInsertAfter", n.tableColumnDelete = "tableColumnDelete", n.tableColumnCut = "tableColumnCut", n.tableColumnCopy = "tableColumnCopy", n.tableColumnPasteBefore = "tableColumnPasteBefore", n.tableColumnPasteAfter = "tableColumnPasteAfter", n))(O || {});
744
744
  const V = {
745
745
  table: '<svg viewBox="0 0 24 24"><path d="M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2m0 4v4h6V8H5m8 0v4h6V8h-6m-8 6v4h6v-4H5m8 0v4h6v-4h-6Z"/></svg>',
746
746
  tableSettings: '<svg viewBox="0 0 24 24"><path d="M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2m0 4v4h6V8H5m8 0v4h6V8h-6m-8 6v4h6v-4H5m8 0v4h6v-4h-6Z"/></svg>',
@@ -818,14 +818,14 @@ const V = {
818
818
  header: { label: Ua }
819
819
  }));
820
820
  }, Ja = (n) => [{
821
- id: I.table,
822
- icon: V[I.table],
821
+ id: O.table,
822
+ icon: V[O.table],
823
823
  label: "Table",
824
824
  items: [
825
825
  {
826
- id: I.tableSettings,
826
+ id: O.tableSettings,
827
827
  label: Ua,
828
- icon: V[I.tableSettings],
828
+ icon: V[O.tableSettings],
829
829
  onClick: ({ event: t }) => du({
830
830
  ...n,
831
831
  // @ts-expect-error workaround for the build
@@ -833,9 +833,9 @@ const V = {
833
833
  })
834
834
  },
835
835
  {
836
- id: I.tableDelete,
836
+ id: O.tableDelete,
837
837
  label: "Delete table",
838
- icon: V[I.tableDelete],
838
+ icon: V[O.tableDelete],
839
839
  onClick: () => cu(n)
840
840
  }
841
841
  ]
@@ -873,51 +873,51 @@ const V = {
873
873
  }, uu = (n) => {
874
874
  const e = Za(n);
875
875
  return [{
876
- id: I.tableColumnItems,
877
- icon: V[I.tableColumn],
876
+ id: O.tableColumnItems,
877
+ icon: V[O.tableColumn],
878
878
  label: "Column",
879
879
  items: [
880
880
  {
881
- id: I.tableColumnInsertBefore,
881
+ id: O.tableColumnInsertBefore,
882
882
  label: "Insert column before",
883
- icon: V[I.tableColumnInsertBefore],
883
+ icon: V[O.tableColumnInsertBefore],
884
884
  onClick: () => Pi(n)
885
885
  },
886
886
  {
887
- id: I.tableColumnInsertAfter,
887
+ id: O.tableColumnInsertAfter,
888
888
  label: "Insert column after",
889
- icon: V[I.tableColumnInsertAfter],
889
+ icon: V[O.tableColumnInsertAfter],
890
890
  onClick: () => Pi({ ...n, after: !0 })
891
891
  },
892
892
  {
893
- id: I.tableColumnDelete,
893
+ id: O.tableColumnDelete,
894
894
  label: "Delete column",
895
- icon: V[I.tableColumnDelete],
895
+ icon: V[O.tableColumnDelete],
896
896
  onClick: () => Ya(n)
897
897
  },
898
898
  {
899
- id: I.tableColumnCut,
899
+ id: O.tableColumnCut,
900
900
  label: "Cut column",
901
- icon: V[I.tableColumnCut],
901
+ icon: V[O.tableColumnCut],
902
902
  onClick: () => pu(n)
903
903
  },
904
904
  {
905
- id: I.tableColumnCopy,
905
+ id: O.tableColumnCopy,
906
906
  label: "Copy column",
907
- icon: V[I.tableColumnCopy],
907
+ icon: V[O.tableColumnCopy],
908
908
  onClick: () => Xa(n)
909
909
  },
910
910
  {
911
- id: I.tableColumnPasteBefore,
911
+ id: O.tableColumnPasteBefore,
912
912
  label: "Paste column before",
913
- icon: V[I.tableColumnPasteBefore],
913
+ icon: V[O.tableColumnPasteBefore],
914
914
  disabled: !e,
915
915
  onClick: () => Ni(n)
916
916
  },
917
917
  {
918
- id: I.tableColumnPasteAfter,
918
+ id: O.tableColumnPasteAfter,
919
919
  label: "Paste column after",
920
- icon: V[I.tableColumnPasteAfter],
920
+ icon: V[O.tableColumnPasteAfter],
921
921
  disabled: !e,
922
922
  onClick: () => Ni({ ...n, after: !0 })
923
923
  }
@@ -927,7 +927,7 @@ const V = {
927
927
  const { component: e } = n, t = e.is(q), o = e.is(be);
928
928
  if (!(!t && !o))
929
929
  return o ? e : e.closestType(be);
930
- }, Oi = (n) => {
930
+ }, Ii = (n) => {
931
931
  const { component: e, editor: t, after: o } = n, s = Sn(n);
932
932
  if (!s) return;
933
933
  const r = s.index() + (o ? 1 : 0), i = s.components().length, l = Array.from(Array(i).keys()).map(() => ({ type: q })), a = s.parent();
@@ -944,7 +944,7 @@ const V = {
944
944
  }, tc = (n) => {
945
945
  const e = Sn(n);
946
946
  e && n.editor.em.set(Qr, [e]);
947
- }, Ii = (n) => {
947
+ }, Oi = (n) => {
948
948
  var l;
949
949
  const { editor: e, after: t } = n, o = Sn(n);
950
950
  if (!o || !nc(n)) return;
@@ -964,32 +964,32 @@ const V = {
964
964
  }, oc = (n) => {
965
965
  const e = nc(n);
966
966
  return [{
967
- id: I.tableRowItems,
968
- icon: V[I.tableRowProperties],
967
+ id: O.tableRowItems,
968
+ icon: V[O.tableRowProperties],
969
969
  label: "Row",
970
970
  items: [
971
971
  {
972
- id: I.tableRowInsertBefore,
972
+ id: O.tableRowInsertBefore,
973
973
  label: "Insert row before",
974
- icon: V[I.tableRowInsertBefore],
975
- onClick: () => Oi(n)
974
+ icon: V[O.tableRowInsertBefore],
975
+ onClick: () => Ii(n)
976
976
  },
977
977
  {
978
- id: I.tableRowInsertAfter,
978
+ id: O.tableRowInsertAfter,
979
979
  label: "Insert row after",
980
- icon: V[I.tableRowInsertAfter],
981
- onClick: () => Oi({ ...n, after: !0 })
980
+ icon: V[O.tableRowInsertAfter],
981
+ onClick: () => Ii({ ...n, after: !0 })
982
982
  },
983
983
  {
984
- id: I.tableRowDelete,
984
+ id: O.tableRowDelete,
985
985
  label: "Delete row",
986
- icon: V[I.tableRowDelete],
986
+ icon: V[O.tableRowDelete],
987
987
  onClick: () => ec(n)
988
988
  },
989
989
  {
990
- id: I.tableRowProperties,
990
+ id: O.tableRowProperties,
991
991
  label: Qa,
992
- icon: V[I.tableRowProperties],
992
+ icon: V[O.tableRowProperties],
993
993
  onClick: ({ event: o }) => mu({
994
994
  ...n,
995
995
  // @ts-expect-error workaround for the build
@@ -997,30 +997,30 @@ const V = {
997
997
  })
998
998
  },
999
999
  {
1000
- id: I.tableRowCut,
1000
+ id: O.tableRowCut,
1001
1001
  label: "Cut row",
1002
- icon: V[I.tableRowCut],
1002
+ icon: V[O.tableRowCut],
1003
1003
  onClick: () => fu(n)
1004
1004
  },
1005
1005
  {
1006
- id: I.tableRowCopy,
1006
+ id: O.tableRowCopy,
1007
1007
  label: "Copy row",
1008
- icon: V[I.tableRowCopy],
1008
+ icon: V[O.tableRowCopy],
1009
1009
  onClick: () => tc(n)
1010
1010
  },
1011
1011
  {
1012
- id: I.tableRowPasteBefore,
1012
+ id: O.tableRowPasteBefore,
1013
1013
  label: "Paste row before",
1014
- icon: V[I.tableRowPasteBefore],
1014
+ icon: V[O.tableRowPasteBefore],
1015
1015
  disabled: !e,
1016
- onClick: () => Ii(n)
1016
+ onClick: () => Oi(n)
1017
1017
  },
1018
1018
  {
1019
- id: I.tableRowPasteAfter,
1019
+ id: O.tableRowPasteAfter,
1020
1020
  label: "Paste row after",
1021
- icon: V[I.tableRowPasteAfter],
1021
+ icon: V[O.tableRowPasteAfter],
1022
1022
  disabled: !e,
1023
- onClick: () => Ii({ ...n, after: !0 })
1023
+ onClick: () => Oi({ ...n, after: !0 })
1024
1024
  }
1025
1025
  ]
1026
1026
  }, ...Ja(n)];
@@ -1179,14 +1179,14 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
1179
1179
  header: { label: ic }
1180
1180
  });
1181
1181
  }, Tu = (n) => [{
1182
- id: I.tableCellItems,
1183
- icon: V[I.tableCellProperties],
1182
+ id: O.tableCellItems,
1183
+ icon: V[O.tableCellProperties],
1184
1184
  label: "Cell",
1185
1185
  items: [
1186
1186
  {
1187
- id: I.tableCellProperties,
1187
+ id: O.tableCellProperties,
1188
1188
  label: ic,
1189
- icon: V[I.tableCellProperties],
1189
+ icon: V[O.tableCellProperties],
1190
1190
  onClick: ({ event: t }) => Eu({
1191
1191
  ...n,
1192
1192
  // @ts-expect-error workaround for the build
@@ -1194,16 +1194,16 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
1194
1194
  })
1195
1195
  },
1196
1196
  {
1197
- id: I.tableCellMerge,
1197
+ id: O.tableCellMerge,
1198
1198
  label: vu,
1199
- icon: V[I.tableCellMerge],
1199
+ icon: V[O.tableCellMerge],
1200
1200
  onClick: () => ku(n),
1201
1201
  disabled: !lc(n)
1202
1202
  },
1203
1203
  {
1204
- id: I.tableCellSplit,
1204
+ id: O.tableCellSplit,
1205
1205
  label: Su,
1206
- icon: V[I.tableCellSplit],
1206
+ icon: V[O.tableCellSplit],
1207
1207
  onClick: () => Cu(n),
1208
1208
  disabled: !wu(n)
1209
1209
  }
@@ -1418,7 +1418,7 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
1418
1418
  n.off("component:select", r), n.Blocks.remove(Ge), iu.forEach((i) => o.removeType(i));
1419
1419
  }
1420
1420
  });
1421
- }, Ob = _(Au), Pu = "listPagesComponent", Nu = H.startup, Ri = "page://", St = "list-pages", jt = "list-pages-item", xt = "list-pages-link", Ou = (n) => n.components().reduce(
1421
+ }, Ib = _(Au), Pu = "listPagesComponent", Nu = H.startup, Ri = "page://", St = "list-pages", jt = "list-pages-item", xt = "list-pages-link", Iu = (n) => n.components().reduce(
1422
1422
  (e, t) => {
1423
1423
  var i;
1424
1424
  const o = t.findFirstType(xt), s = (i = o == null ? void 0 : o.attributes.attributes) == null ? void 0 : i.href, r = s != null && s.startsWith(Ri) ? s.replace(Ri, "") : "";
@@ -1429,7 +1429,7 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
1429
1429
  return e;
1430
1430
  },
1431
1431
  {}
1432
- ), No = "data-type-role", Iu = "page_root", Ru = (n) => (e) => e.is(n), Du = (n) => (e, t) => t.is(n), Ts = (n) => (e) => {
1432
+ ), No = "data-type-role", Ou = "page_root", Ru = (n) => (e) => e.is(n), Du = (n) => (e, t) => t.is(n), Ts = (n) => (e) => {
1433
1433
  var t;
1434
1434
  return ((t = e.getAttribute) == null ? void 0 : t.call(e, No)) === n;
1435
1435
  }, Lu = function(n, e = {}) {
@@ -1447,7 +1447,7 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
1447
1447
  defaults: {
1448
1448
  tagName: "ul",
1449
1449
  name: l,
1450
- [Iu]: "",
1450
+ [Ou]: "",
1451
1451
  classes: d,
1452
1452
  attributes: { [No]: St, role: "navigation" },
1453
1453
  droppable: Ru(jt),
@@ -1464,7 +1464,7 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
1464
1464
  },
1465
1465
  syncPageItems() {
1466
1466
  if (n.Components.getSymbolInfo(this).isInstance) return;
1467
- const f = this.em.Pages.getAll(), m = this.components(), g = Ou(this);
1467
+ const f = this.em.Pages.getAll(), m = this.components(), g = Iu(this);
1468
1468
  f.forEach((b, C) => {
1469
1469
  const y = b.id, v = b.getName(), w = g[y];
1470
1470
  w ? w == null || w.forEach((S) => {
@@ -1527,7 +1527,7 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
1527
1527
  t.remove(St), o.removeType(St);
1528
1528
  }
1529
1529
  });
1530
- }, Ib = _(Lu), $u = "fsLightboxComponent", zu = H.startup, mo = "data-fslightbox", go = "data-type", Vu = "fslightbox-open", qt = "fslightbox", Ut = {
1530
+ }, Ob = _(Lu), $u = "fsLightboxComponent", zu = H.startup, mo = "data-fslightbox", go = "data-type", Vu = "fslightbox-open", qt = "fslightbox", Ut = {
1531
1531
  image: '<svg viewBox="0 0 24 24"><path d="m8.5 13.5 2.5 3 3.5-4.5 4.5 6H5m16 1V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2Z"/></svg>',
1532
1532
  video: '<svg viewBox="0 0 24 24"><path d="M17 10.5V7a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-3.5l4 4v-11l-4 4Z"/></svg>',
1533
1533
  imageLightbox: '<svg viewBox="0 0 24 24"><path d="M4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H16L12,22L8,18H4A2,2 0 0,1 2,16V4A2,2 0 0,1 4,2M19,15V7L15,11L13,9L7,15H19M7,5A2,2 0 0,0 5,7A2,2 0 0,0 7,9A2,2 0 0,0 9,7A2,2 0 0,0 7,5Z" /></svg>',
@@ -1549,10 +1549,10 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
1549
1549
  if ((M = w.fsLightboxInstances) == null || M[k], !w._isEditor) return;
1550
1550
  Array.from(document.querySelectorAll(`[${v}]`)).forEach((P) => {
1551
1551
  const N = P.onclick;
1552
- P.onclick = function(O) {
1553
- O.preventDefault();
1552
+ P.onclick = function(I) {
1553
+ I.preventDefault();
1554
1554
  const R = P;
1555
- !R.__skipLb && (N == null || N(O)), R.__skipLb = !0;
1555
+ !R.__skipLb && (N == null || N(I)), R.__skipLb = !0;
1556
1556
  };
1557
1557
  });
1558
1558
  };
@@ -1699,7 +1699,7 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
1699
1699
  E.props.onOpen = () => {
1700
1700
  N = w.getSpots(), setTimeout(() => w.removeSpots());
1701
1701
  }, E.props.onClose = () => {
1702
- N.forEach((O) => w.addSpot(O.attributes));
1702
+ N.forEach((I) => w.addSpot(I.attributes));
1703
1703
  }, y.click();
1704
1704
  }
1705
1705
  }
@@ -1715,7 +1715,7 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
1715
1715
  });
1716
1716
  }, Rb = _(Bu), Hu = "lightGalleryComponent", Fu = H.startup;
1717
1717
  var Yt = /* @__PURE__ */ ((n) => (n.image = "image", n.video = "video", n.external = "external", n))(Yt || {});
1718
- const Ct = "lightGallery", Di = `${Ct}-item`, Oo = "data-lightgallery", Li = `${Oo}-item`, Ho = "toggle", Tt = {
1718
+ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${Io}-item`, Ho = "toggle", Tt = {
1719
1719
  image: '<svg viewBox="0 0 24 24"><path d="m8.5 13.5 2.5 3 3.5-4.5 4.5 6H5m16 1V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2Z"/></svg>',
1720
1720
  video: '<svg viewBox="0 0 24 24"><path d="M17 10.5V7a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-3.5l4 4v-11l-4 4Z"/></svg>',
1721
1721
  gallery: '<svg viewBox="0 0 24 24"><path d="M4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H16L12,22L8,18H4A2,2 0 0,1 2,16V4A2,2 0 0,1 4,2M19,15V7L15,11L13,9L7,15H19M7,5A2,2 0 0,0 5,7A2,2 0 0,0 7,9A2,2 0 0,0 9,7A2,2 0 0,0 7,5Z" /></svg>',
@@ -2153,7 +2153,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Oo = "data-lightgallery", Li = `${
2153
2153
  cdnStyle: `${Kt}/css/lightgallery-bundle.min.css`,
2154
2154
  ...e
2155
2155
  }, { block: l, toolbarIconOpen: a, defaultSrc: c } = i, d = function(y) {
2156
- const v = this, w = window, { plugins: S, cdnScript: x, cdnStyle: k, inline: E, lgLicenseKey: M, ...P } = y || {}, N = (R) => isNaN(R) ? void 0 : parseInt(R, 10), O = () => {
2156
+ const v = this, w = window, { plugins: S, cdnScript: x, cdnStyle: k, inline: E, lgLicenseKey: M, ...P } = y || {}, N = (R) => isNaN(R) ? void 0 : parseInt(R, 10), I = () => {
2157
2157
  var ie;
2158
2158
  const R = {
2159
2159
  ...P,
@@ -2172,7 +2172,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Oo = "data-lightgallery", Li = `${
2172
2172
  E && F.openGallery();
2173
2173
  };
2174
2174
  if (w.lightGallery)
2175
- O();
2175
+ I();
2176
2176
  else {
2177
2177
  const { head: R } = document, F = Array.isArray(x) ? [...x] : [x], ie = Array.isArray(k) ? [...k] : [k], le = (ve) => {
2178
2178
  if (ve.length) {
@@ -2184,7 +2184,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Oo = "data-lightgallery", Li = `${
2184
2184
  const Ce = document.createElement("script");
2185
2185
  Ce.src = ve.shift(), Ce.onerror = Ce.onload = Ke.bind(null, ve), R.appendChild(Ce);
2186
2186
  } else
2187
- O();
2187
+ I();
2188
2188
  };
2189
2189
  le(ie), Ke(F);
2190
2190
  }
@@ -2208,14 +2208,14 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Oo = "data-lightgallery", Li = `${
2208
2208
  select: !0,
2209
2209
  ...i.block
2210
2210
  },
2211
- isComponent: (y) => Po(y, Oo),
2211
+ isComponent: (y) => Po(y, Io),
2212
2212
  extendFn: ["init", "initToolbar"],
2213
2213
  model: {
2214
2214
  defaults: {
2215
2215
  name: s,
2216
2216
  icon: Tt.gallery,
2217
2217
  draggable: (y, v) => !v.is(Ct),
2218
- attributes: { [Oo]: !0 },
2218
+ attributes: { [Io]: !0 },
2219
2219
  components: { type: Di },
2220
2220
  script: d,
2221
2221
  selector: "",
@@ -2296,7 +2296,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Oo = "data-lightgallery", Li = `${
2296
2296
  });
2297
2297
  const C = Cn(Uu);
2298
2298
  o.addType(Di, {
2299
- isComponent: (y) => Po(y, Li) || y.tagName === "A" && Po(y.parentElement, Oo),
2299
+ isComponent: (y) => Po(y, Li) || y.tagName === "A" && Po(y.parentElement, Io),
2300
2300
  extendFn: ["init", "initToolbar"],
2301
2301
  model: {
2302
2302
  defaults: {
@@ -2349,7 +2349,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Oo = "data-lightgallery", Li = `${
2349
2349
  t.remove(Ct), o.removeType(Ct);
2350
2350
  }
2351
2351
  });
2352
- }, Db = _(Ju), Ie = "swiper", qn = `${Ie}-slide`, sn = `${Ie}-wrapper`, rn = `${Ie}-nav-prev`, _o = `${Ie}-nav-next`, ln = `${Ie}-pagination`, Dn = `${Ie}-scrollbar`, ce = {
2352
+ }, Db = _(Ju), Oe = "swiper", qn = `${Oe}-slide`, sn = `${Oe}-wrapper`, rn = `${Oe}-nav-prev`, _o = `${Oe}-nav-next`, ln = `${Oe}-pagination`, Dn = `${Oe}-scrollbar`, ce = {
2353
2353
  slider: `<svg viewBox="0 0 24 24">
2354
2354
  <path d="M22 7.6c0-1-.5-1.6-1.3-1.6H3.4C2.5 6 2 6.7 2 7.6v9.8c0 1 .5 1.6 1.3 1.6h17.4c.8 0 1.3-.6 1.3-1.6V7.6zM21 18H3V7h18v11z" fill-rule="nonzero"/>
2355
2355
  <path d="M4 12.5L6 14v-3zM20 12.5L18 14v-3z"/>
@@ -2993,16 +2993,16 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Oo = "data-lightgallery", Li = `${
2993
2993
  }
2994
2994
  };
2995
2995
  if (u.tablet) {
2996
- const { tabletBreakpoint: P, tabletSlidesPerView: N } = u, O = S(P);
2997
- E.breakpoints[O] = {
2996
+ const { tabletBreakpoint: P, tabletSlidesPerView: N } = u, I = S(P);
2997
+ E.breakpoints[I] = {
2998
2998
  slidesPerView: isNaN(N) ? N : S(N),
2999
2999
  slidesPerGroup: S(u.tabletSlidesPerGroup),
3000
3000
  spaceBetween: S(u.tabletSpaceBetween)
3001
3001
  };
3002
3002
  }
3003
3003
  if (u.mobile) {
3004
- const { mobileBreakpoint: P, mobileSlidesPerView: N } = u, O = S(P);
3005
- E.breakpoints[O] = {
3004
+ const { mobileBreakpoint: P, mobileSlidesPerView: N } = u, I = S(P);
3005
+ E.breakpoints[I] = {
3006
3006
  slidesPerView: isNaN(N) ? N : S(N),
3007
3007
  slidesPerGroup: S(u.mobileSlidesPerGroup),
3008
3008
  spaceBetween: S(u.mobileSpaceBetween)
@@ -3015,15 +3015,15 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Oo = "data-lightgallery", Li = `${
3015
3015
  if (f.Swiper)
3016
3016
  x();
3017
3017
  else {
3018
- const { head: k } = document, E = Array.isArray(y) ? [...y] : [y], M = Array.isArray(v) ? [...v] : [v], P = (O) => {
3019
- if (O.length) {
3018
+ const { head: k } = document, E = Array.isArray(y) ? [...y] : [y], M = Array.isArray(v) ? [...v] : [v], P = (I) => {
3019
+ if (I.length) {
3020
3020
  const R = document.createElement("link");
3021
- R.href = O.shift(), R.rel = "stylesheet", k.prepend(R), P(O);
3021
+ R.href = I.shift(), R.rel = "stylesheet", k.prepend(R), P(I);
3022
3022
  }
3023
- }, N = (O) => {
3024
- if (O.length) {
3023
+ }, N = (I) => {
3024
+ if (I.length) {
3025
3025
  const R = document.createElement("script");
3026
- R.src = O.shift(), R.onerror = R.onload = N.bind(null, O), k.appendChild(R);
3026
+ R.src = I.shift(), R.onerror = R.onload = N.bind(null, I), k.appendChild(R);
3027
3027
  } else
3028
3028
  x();
3029
3029
  };
@@ -3034,7 +3034,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Oo = "data-lightgallery", Li = `${
3034
3034
  style: { padding: "50px" },
3035
3035
  components: { type: "text", components: { type: "textnode", content: `Slide ${u}` } }
3036
3036
  }), p = t.getType("default").model;
3037
- return t.addType(Ie, {
3037
+ return t.addType(Oe, {
3038
3038
  block: r && {
3039
3039
  label: _i,
3040
3040
  media: ce.slider,
@@ -3048,7 +3048,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Oo = "data-lightgallery", Li = `${
3048
3048
  name: _i,
3049
3049
  icon: ce.slider,
3050
3050
  classes: cr,
3051
- draggable: (u, h) => !h.is(Ie),
3051
+ draggable: (u, h) => !h.is(Oe),
3052
3052
  components: [
3053
3053
  {
3054
3054
  type: sn,
@@ -3110,7 +3110,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Oo = "data-lightgallery", Li = `${
3110
3110
  }
3111
3111
  }
3112
3112
  }), () => {
3113
- t.removeType(Ie), o.remove(Ie);
3113
+ t.removeType(Oe), o.remove(Oe);
3114
3114
  };
3115
3115
  }, Xu = "Nav Prev", Qu = "Nav Next", bo = `${xn}button-prev`, vo = `${xn}button-next`, eh = (n) => {
3116
3116
  const { Components: e } = n, t = (o) => ({
@@ -3254,7 +3254,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Oo = "data-lightgallery", Li = `${
3254
3254
  this.listenTo(o, "add remove", this.updateSlider);
3255
3255
  },
3256
3256
  updateSlider(o) {
3257
- const s = this.closestType(Ie);
3257
+ const s = this.closestType(Oe);
3258
3258
  if (s) {
3259
3259
  const r = s.getView();
3260
3260
  s.reloadSlider(), this.em.once(t.scriptMount, () => {
@@ -3822,7 +3822,7 @@ const Nh = (n, e) => {
3822
3822
  }), () => {
3823
3823
  t.removeType(s);
3824
3824
  };
3825
- }, Oh = (n, e) => {
3825
+ }, Ih = (n, e) => {
3826
3826
  const { Components: t } = n, { typeRow: o, typeColumn: s, extendTypeRow: r } = e, i = `${Me}${o}`, a = !!o && !!t.getType(o) && !r;
3827
3827
  if (!(!o || a || fn(e)))
3828
3828
  return t.addType(o, {
@@ -3892,7 +3892,7 @@ const Nh = (n, e) => {
3892
3892
  }), () => {
3893
3893
  t.removeType(o);
3894
3894
  };
3895
- }, Ih = "flexComponent", Rh = H.startup;
3895
+ }, Oh = "flexComponent", Rh = H.startup;
3896
3896
  class Dh {
3897
3897
  constructor() {
3898
3898
  this.resizableChildTypes = /* @__PURE__ */ new Set(), this.gapAdjustableParentTypes = /* @__PURE__ */ new Set(), this.typeRelationships = /* @__PURE__ */ new Map();
@@ -4063,7 +4063,7 @@ function Bh(n, e) {
4063
4063
  const k = x.clientX, E = x.clientY;
4064
4064
  x.target.setPointerCapture(x.pointerId);
4065
4065
  const M = (N) => {
4066
- const O = n.Canvas.getZoomMultiplier(), R = (N.clientX - k) * O, F = (N.clientY - E) * O, ie = Go(S) ? F : R;
4066
+ const I = n.Canvas.getZoomMultiplier(), R = (N.clientX - k) * I, F = (N.clientY - E) * I, ie = Go(S) ? F : R;
4067
4067
  p.updateResizeByDelta(a, S, ie);
4068
4068
  }, P = () => {
4069
4069
  p.finishResize(a), x.target.releasePointerCapture(x.pointerId), document.removeEventListener("pointermove", M), document.removeEventListener("pointerup", P);
@@ -4078,10 +4078,10 @@ function Bh(n, e) {
4078
4078
  const N = (R) => {
4079
4079
  const F = n.Canvas.getZoomMultiplier(), ie = k ? (R.clientY - P) * F : (R.clientX - M) * F;
4080
4080
  p.updateGapByDelta(x, ie, E, k);
4081
- }, O = () => {
4082
- p.finishGapAdjust(x), S.target.releasePointerCapture(S.pointerId), document.removeEventListener("pointermove", N), document.removeEventListener("pointerup", O);
4081
+ }, I = () => {
4082
+ p.finishGapAdjust(x), S.target.releasePointerCapture(S.pointerId), document.removeEventListener("pointermove", N), document.removeEventListener("pointerup", I);
4083
4083
  };
4084
- document.addEventListener("pointermove", N), document.addEventListener("pointerup", O);
4084
+ document.addEventListener("pointermove", N), document.addEventListener("pointerup", I);
4085
4085
  }, m = (S) => {
4086
4086
  const x = S.component;
4087
4087
  if (!x || !s || (a = x, c = x.parent(), !c)) return;
@@ -4090,13 +4090,13 @@ function Bh(n, e) {
4090
4090
  const E = S.getStyle();
4091
4091
  r && Object.assign(r.style, E);
4092
4092
  const M = Un(k, e), P = xh(M);
4093
- if (Object.values(i).forEach(Ui), P.forEach((O) => {
4094
- if (Th(x, O)) return;
4095
- const R = i[O];
4093
+ if (Object.values(i).forEach(Ui), P.forEach((I) => {
4094
+ if (Th(x, I)) return;
4095
+ const R = i[I];
4096
4096
  Ki(R);
4097
4097
  }), Gt(e).gapHandler.isGapSupported() && l && Mh(x)) {
4098
- const O = gr({ componentRow: k, isVertical: M }, e);
4099
- g(O, M, kh(x));
4098
+ const I = gr({ componentRow: k, isVertical: M }, e);
4099
+ g(I, M, kh(x));
4100
4100
  }
4101
4101
  }, g = (S, x, k = !1) => {
4102
4102
  const E = e.gapHandleSize, M = l.style;
@@ -4137,12 +4137,12 @@ const Hh = function(n, e = {}) {
4137
4137
  snapDivisions: 12,
4138
4138
  minItemPercent: 5,
4139
4139
  ...e
4140
- }, o = [Oh(n, t), Nh(n, t)], s = Bh(n, t), r = Ph(n, t);
4140
+ }, o = [Ih(n, t), Nh(n, t)], s = Bh(n, t), r = Ph(n, t);
4141
4141
  G({
4142
4142
  editor: n,
4143
4143
  licenseKey: t.licenseKey,
4144
4144
  plan: Rh,
4145
- pluginName: Ih,
4145
+ pluginName: Oh,
4146
4146
  cleanup: () => {
4147
4147
  o.forEach((i) => i == null ? void 0 : i()), s(), r == null || r();
4148
4148
  }
@@ -6391,12 +6391,12 @@ function xc(n, e, t, o) {
6391
6391
  } else if (t.content.size)
6392
6392
  if (!t.openStart && !t.openEnd && n.depth == o && e.depth == o) {
6393
6393
  let i = n.parent, l = i.content;
6394
- return It(i, l.cut(0, n.parentOffset).append(t.content).append(l.cut(e.parentOffset)));
6394
+ return Ot(i, l.cut(0, n.parentOffset).append(t.content).append(l.cut(e.parentOffset)));
6395
6395
  } else {
6396
6396
  let { start: i, end: l } = pf(t, n);
6397
- return It(r, Cc(n, i, l, e, o));
6397
+ return Ot(r, Cc(n, i, l, e, o));
6398
6398
  }
6399
- else return It(r, Uo(n, e, o));
6399
+ else return Ot(r, Uo(n, e, o));
6400
6400
  }
6401
6401
  function wc(n, e) {
6402
6402
  if (!e.type.compatibleContent(n.type))
@@ -6406,29 +6406,29 @@ function vr(n, e, t) {
6406
6406
  let o = n.node(t);
6407
6407
  return wc(o, e.node(t)), o;
6408
6408
  }
6409
- function Ot(n, e) {
6409
+ function It(n, e) {
6410
6410
  let t = e.length - 1;
6411
6411
  t >= 0 && n.isText && n.sameMarkup(e[t]) ? e[t] = n.withText(e[t].text + n.text) : e.push(n);
6412
6412
  }
6413
6413
  function zn(n, e, t, o) {
6414
6414
  let s = (e || n).node(t), r = 0, i = e ? e.index(t) : s.childCount;
6415
- n && (r = n.index(t), n.depth > t ? r++ : n.textOffset && (Ot(n.nodeAfter, o), r++));
6415
+ n && (r = n.index(t), n.depth > t ? r++ : n.textOffset && (It(n.nodeAfter, o), r++));
6416
6416
  for (let l = r; l < i; l++)
6417
- Ot(s.child(l), o);
6418
- e && e.depth == t && e.textOffset && Ot(e.nodeBefore, o);
6417
+ It(s.child(l), o);
6418
+ e && e.depth == t && e.textOffset && It(e.nodeBefore, o);
6419
6419
  }
6420
- function It(n, e) {
6420
+ function Ot(n, e) {
6421
6421
  return n.type.checkContent(e), n.copy(e);
6422
6422
  }
6423
6423
  function Cc(n, e, t, o, s) {
6424
6424
  let r = n.depth > s && vr(n, e, s + 1), i = o.depth > s && vr(t, o, s + 1), l = [];
6425
- return zn(null, n, s, l), r && i && e.index(s) == t.index(s) ? (wc(r, i), Ot(It(r, Cc(n, e, t, o, s + 1)), l)) : (r && Ot(It(r, Uo(n, e, s + 1)), l), zn(e, t, s, l), i && Ot(It(i, Uo(t, o, s + 1)), l)), zn(o, null, s, l), new T(l);
6425
+ return zn(null, n, s, l), r && i && e.index(s) == t.index(s) ? (wc(r, i), It(Ot(r, Cc(n, e, t, o, s + 1)), l)) : (r && It(Ot(r, Uo(n, e, s + 1)), l), zn(e, t, s, l), i && It(Ot(i, Uo(t, o, s + 1)), l)), zn(o, null, s, l), new T(l);
6426
6426
  }
6427
6427
  function Uo(n, e, t) {
6428
6428
  let o = [];
6429
6429
  if (zn(null, n, t, o), n.depth > t) {
6430
6430
  let s = vr(n, e, t + 1);
6431
- Ot(It(s, Uo(n, e, t + 1)), o);
6431
+ It(Ot(s, Uo(n, e, t + 1)), o);
6432
6432
  }
6433
6433
  return zn(e, null, t, o), new T(o);
6434
6434
  }
@@ -7532,7 +7532,7 @@ function Nc(n, e) {
7532
7532
  t[o] = new Ef(n, o, e[o]);
7533
7533
  return t;
7534
7534
  }
7535
- let il = class Oc {
7535
+ let il = class Ic {
7536
7536
  /**
7537
7537
  @internal
7538
7538
  */
@@ -7700,7 +7700,7 @@ let il = class Oc {
7700
7700
  */
7701
7701
  static compile(e, t) {
7702
7702
  let o = /* @__PURE__ */ Object.create(null);
7703
- e.forEach((r, i) => o[r] = new Oc(r, t, i));
7703
+ e.forEach((r, i) => o[r] = new Ic(r, t, i));
7704
7704
  let s = t.spec.topNode || "doc";
7705
7705
  if (!o[s])
7706
7706
  throw new RangeError("Schema is missing its top node type ('" + s + "')");
@@ -7934,7 +7934,7 @@ class Bt {
7934
7934
  matchTag(e, t, o) {
7935
7935
  for (let s = o ? this.tags.indexOf(o) + 1 : 0; s < this.tags.length; s++) {
7936
7936
  let r = this.tags[s];
7937
- if (Of(e, r.tag) && (r.namespace === void 0 || e.namespaceURI == r.namespace) && (!r.context || t.matchesContext(r.context))) {
7937
+ if (If(e, r.tag) && (r.namespace === void 0 || e.namespaceURI == r.namespace) && (!r.context || t.matchesContext(r.context))) {
7938
7938
  if (r.getAttrs) {
7939
7939
  let i = r.getAttrs(e);
7940
7940
  if (i === !1)
@@ -8002,7 +8002,7 @@ class Bt {
8002
8002
  return e.cached.domParser || (e.cached.domParser = new Bt(e, Bt.schemaRules(e)));
8003
8003
  }
8004
8004
  }
8005
- const Ic = {
8005
+ const Oc = {
8006
8006
  address: !0,
8007
8007
  article: !0,
8008
8008
  aside: !0,
@@ -8076,7 +8076,7 @@ class wo {
8076
8076
  return !e && this.match && (t = t.append(this.match.fillBefore(T.empty, !0))), this.type ? this.type.create(this.attrs, t, this.marks) : t;
8077
8077
  }
8078
8078
  inlineContext(e) {
8079
- return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Ic.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
8079
+ return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Oc.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
8080
8080
  }
8081
8081
  }
8082
8082
  class cl {
@@ -8119,7 +8119,7 @@ class cl {
8119
8119
  else if (!i || i.skip || i.closeParent) {
8120
8120
  i && i.closeParent ? this.open = Math.max(0, this.open - 1) : i && i.skip.nodeType && (e = i.skip);
8121
8121
  let l, a = this.top, c = this.needsBlock;
8122
- if (Ic.hasOwnProperty(s))
8122
+ if (Oc.hasOwnProperty(s))
8123
8123
  a.content.length && a.content[0].isInline && this.open && (this.open--, a = this.top), l = !0, a.type || (this.needsBlock = !0);
8124
8124
  else if (!e.firstChild) {
8125
8125
  this.leafFallback(e, t);
@@ -8349,7 +8349,7 @@ function Nf(n) {
8349
8349
  o && Rc.hasOwnProperty(o) && t ? (t.appendChild(e), e = t) : o == "li" ? t = e : o && (t = null);
8350
8350
  }
8351
8351
  }
8352
- function Of(n, e) {
8352
+ function If(n, e) {
8353
8353
  return (n.matches || n.msMatchesSelector || n.webkitMatchesSelector || n.mozMatchesSelector).call(n, e);
8354
8354
  }
8355
8355
  function dl(n) {
@@ -8396,7 +8396,7 @@ class Wt {
8396
8396
  nodes.
8397
8397
  */
8398
8398
  serializeFragment(e, t = {}, o) {
8399
- o || (o = Os(t).createDocumentFragment());
8399
+ o || (o = Is(t).createDocumentFragment());
8400
8400
  let s = o, r = [];
8401
8401
  return e.forEach((i) => {
8402
8402
  if (r.length || i.marks.length) {
@@ -8425,7 +8425,7 @@ class Wt {
8425
8425
  @internal
8426
8426
  */
8427
8427
  serializeNodeInner(e, t) {
8428
- let { dom: o, contentDOM: s } = Io(Os(t), this.nodes[e.type.name](e), null, e.attrs);
8428
+ let { dom: o, contentDOM: s } = Oo(Is(t), this.nodes[e.type.name](e), null, e.attrs);
8429
8429
  if (s) {
8430
8430
  if (e.isLeaf)
8431
8431
  throw new RangeError("Content hole not allowed in a leaf node spec");
@@ -8453,10 +8453,10 @@ class Wt {
8453
8453
  */
8454
8454
  serializeMark(e, t, o = {}) {
8455
8455
  let s = this.marks[e.type.name];
8456
- return s && Io(Os(o), s(e, t), null, e.attrs);
8456
+ return s && Oo(Is(o), s(e, t), null, e.attrs);
8457
8457
  }
8458
8458
  static renderSpec(e, t, o = null, s) {
8459
- return Io(e, t, o, s);
8459
+ return Oo(e, t, o, s);
8460
8460
  }
8461
8461
  /**
8462
8462
  Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
@@ -8488,11 +8488,11 @@ function ul(n) {
8488
8488
  }
8489
8489
  return e;
8490
8490
  }
8491
- function Os(n) {
8491
+ function Is(n) {
8492
8492
  return n.document || window.document;
8493
8493
  }
8494
8494
  const hl = /* @__PURE__ */ new WeakMap();
8495
- function If(n) {
8495
+ function Of(n) {
8496
8496
  let e = hl.get(n);
8497
8497
  return e === void 0 && hl.set(n, e = Rf(n)), e;
8498
8498
  }
@@ -8512,7 +8512,7 @@ function Rf(n) {
8512
8512
  }
8513
8513
  return t(n), e;
8514
8514
  }
8515
- function Io(n, e, t, o) {
8515
+ function Oo(n, e, t, o) {
8516
8516
  if (typeof e == "string")
8517
8517
  return { dom: n.createTextNode(e) };
8518
8518
  if (e.nodeType != null)
@@ -8522,7 +8522,7 @@ function Io(n, e, t, o) {
8522
8522
  let s = e[0], r;
8523
8523
  if (typeof s != "string")
8524
8524
  throw new RangeError("Invalid array passed to renderSpec");
8525
- if (o && (r = If(o)) && r.indexOf(e) > -1)
8525
+ if (o && (r = Of(o)) && r.indexOf(e) > -1)
8526
8526
  throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
8527
8527
  let i = s.indexOf(" ");
8528
8528
  i > 0 && (t = s.slice(0, i), s = s.slice(i + 1));
@@ -8542,7 +8542,7 @@ function Io(n, e, t, o) {
8542
8542
  throw new RangeError("Content hole must be the only child of its parent node");
8543
8543
  return { dom: a, contentDOM: a };
8544
8544
  } else {
8545
- let { dom: h, contentDOM: f } = Io(n, u, t, o);
8545
+ let { dom: h, contentDOM: f } = Oo(n, u, t, o);
8546
8546
  if (a.appendChild(h), f) {
8547
8547
  if (l)
8548
8548
  throw new RangeError("Multiple content holes");
@@ -8803,7 +8803,7 @@ class cn {
8803
8803
  return o ? e : new xr(e, s, null);
8804
8804
  }
8805
8805
  }
8806
- const Is = /* @__PURE__ */ Object.create(null);
8806
+ const Os = /* @__PURE__ */ Object.create(null);
8807
8807
  class re {
8808
8808
  /**
8809
8809
  Get the step map that represents the changes made by this step,
@@ -8828,7 +8828,7 @@ class re {
8828
8828
  static fromJSON(e, t) {
8829
8829
  if (!t || !t.stepType)
8830
8830
  throw new RangeError("Invalid input for Step.fromJSON");
8831
- let o = Is[t.stepType];
8831
+ let o = Os[t.stepType];
8832
8832
  if (!o)
8833
8833
  throw new RangeError(`No step type ${t.stepType} defined`);
8834
8834
  return o.fromJSON(e, t);
@@ -8840,9 +8840,9 @@ class re {
8840
8840
  that's unlikely to clash with steps from other modules.
8841
8841
  */
8842
8842
  static jsonID(e, t) {
8843
- if (e in Is)
8843
+ if (e in Os)
8844
8844
  throw new RangeError("Duplicate use of step JSON ID " + e);
8845
- return Is[e] = t, t.prototype.jsonID = e, t;
8845
+ return Os[e] = t, t.prototype.jsonID = e, t;
8846
8846
  }
8847
8847
  }
8848
8848
  class K {
@@ -9526,9 +9526,9 @@ class Xf {
9526
9526
  let { content: e, openStart: t, openEnd: o } = this.unplaced, s = Rs(e, t);
9527
9527
  if (s.childCount <= 1 && t > 0) {
9528
9528
  let r = e.size - t <= t + s.size;
9529
- this.unplaced = new A(On(e, t - 1, 1), t - 1, r ? t - 1 : o);
9529
+ this.unplaced = new A(In(e, t - 1, 1), t - 1, r ? t - 1 : o);
9530
9530
  } else
9531
- this.unplaced = new A(On(e, t, 1), t, o);
9531
+ this.unplaced = new A(In(e, t, 1), t, o);
9532
9532
  }
9533
9533
  // Move content from the unplaced slice at `sliceDepth` to the
9534
9534
  // frontier node at `frontierDepth`. Close that frontier node when
@@ -9553,12 +9553,12 @@ class Xf {
9553
9553
  c++, (c > 1 || a == 0 || m.content.size) && (p = g, d.push(Gc(m.mark(u.allowedMarks(m.marks)), c == 1 ? a : 0, c == l.childCount ? h : -1)));
9554
9554
  }
9555
9555
  let f = c == l.childCount;
9556
- f || (h = -1), this.placed = In(this.placed, t, T.from(d)), this.frontier[t].match = p, f && h < 0 && o && o.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
9556
+ f || (h = -1), this.placed = On(this.placed, t, T.from(d)), this.frontier[t].match = p, f && h < 0 && o && o.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
9557
9557
  for (let m = 0, g = l; m < h; m++) {
9558
9558
  let b = g.lastChild;
9559
9559
  this.frontier.push({ type: b.type, match: b.contentMatchAt(b.childCount) }), g = b.content;
9560
9560
  }
9561
- this.unplaced = f ? e == 0 ? A.empty : new A(On(i.content, e - 1, 1), e - 1, h < 0 ? i.openEnd : e - 1) : new A(On(i.content, e, c), i.openStart, i.openEnd);
9561
+ this.unplaced = f ? e == 0 ? A.empty : new A(In(i.content, e - 1, 1), e - 1, h < 0 ? i.openEnd : e - 1) : new A(In(i.content, e, c), i.openStart, i.openEnd);
9562
9562
  }
9563
9563
  mustMoveInline() {
9564
9564
  if (!this.$to.parent.isTextblock)
@@ -9590,7 +9590,7 @@ class Xf {
9590
9590
  return null;
9591
9591
  for (; this.depth > t.depth; )
9592
9592
  this.closeFrontierNode();
9593
- t.fit.childCount && (this.placed = In(this.placed, t.depth, t.fit)), e = t.move;
9593
+ t.fit.childCount && (this.placed = On(this.placed, t.depth, t.fit)), e = t.move;
9594
9594
  for (let o = t.depth + 1; o <= e.depth; o++) {
9595
9595
  let s = e.node(o), r = s.type.contentMatch.fillBefore(s.content, !0, e.index(o));
9596
9596
  this.openFrontierNode(s.type, s.attrs, r);
@@ -9599,18 +9599,18 @@ class Xf {
9599
9599
  }
9600
9600
  openFrontierNode(e, t = null, o) {
9601
9601
  let s = this.frontier[this.depth];
9602
- s.match = s.match.matchType(e), this.placed = In(this.placed, this.depth, T.from(e.create(t, o))), this.frontier.push({ type: e, match: e.contentMatch });
9602
+ s.match = s.match.matchType(e), this.placed = On(this.placed, this.depth, T.from(e.create(t, o))), this.frontier.push({ type: e, match: e.contentMatch });
9603
9603
  }
9604
9604
  closeFrontierNode() {
9605
9605
  let t = this.frontier.pop().match.fillBefore(T.empty, !0);
9606
- t.childCount && (this.placed = In(this.placed, this.frontier.length, t));
9606
+ t.childCount && (this.placed = On(this.placed, this.frontier.length, t));
9607
9607
  }
9608
9608
  }
9609
- function On(n, e, t) {
9610
- return e == 0 ? n.cutByIndex(t, n.childCount) : n.replaceChild(0, n.firstChild.copy(On(n.firstChild.content, e - 1, t)));
9611
- }
9612
9609
  function In(n, e, t) {
9613
- return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(In(n.lastChild.content, e - 1, t)));
9610
+ return e == 0 ? n.cutByIndex(t, n.childCount) : n.replaceChild(0, n.firstChild.copy(In(n.firstChild.content, e - 1, t)));
9611
+ }
9612
+ function On(n, e, t) {
9613
+ return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(On(n.lastChild.content, e - 1, t)));
9614
9614
  }
9615
9615
  function Rs(n, e) {
9616
9616
  for (let t = 0; t < e; t++)
@@ -11280,7 +11280,7 @@ var Cm = /* @__PURE__ */ function(n) {
11280
11280
  }, e;
11281
11281
  }(Z);
11282
11282
  const km = 500;
11283
- class Oe {
11283
+ class Ie {
11284
11284
  constructor(e, t) {
11285
11285
  this.items = e, this.eventCount = t;
11286
11286
  }
@@ -11310,7 +11310,7 @@ class Oe {
11310
11310
  } else
11311
11311
  i.maybeStep(p.step);
11312
11312
  if (p.selection)
11313
- return l = s ? p.selection.map(s.slice(r)) : p.selection, a = new Oe(this.items.slice(0, o).append(d.reverse().concat(c)), this.eventCount - 1), !1;
11313
+ return l = s ? p.selection.map(s.slice(r)) : p.selection, a = new Ie(this.items.slice(0, o).append(d.reverse().concat(c)), this.eventCount - 1), !1;
11314
11314
  }, this.items.length, 0), { remaining: a, transform: i, selection: l };
11315
11315
  }
11316
11316
  // Create a new branch with the given transform added.
@@ -11321,7 +11321,7 @@ class Oe {
11321
11321
  (h = a && a.merge(u)) && (u = h, d ? r.pop() : l = l.slice(0, l.length - 1)), r.push(u), t && (i++, t = void 0), s || (a = u);
11322
11322
  }
11323
11323
  let c = i - o.depth;
11324
- return c > Tm && (l = Em(l, c), i -= c), new Oe(l.append(r), i);
11324
+ return c > Tm && (l = Em(l, c), i -= c), new Ie(l.append(r), i);
11325
11325
  }
11326
11326
  remapping(e, t) {
11327
11327
  let o = new cn();
@@ -11331,7 +11331,7 @@ class Oe {
11331
11331
  }, e, t), o;
11332
11332
  }
11333
11333
  addMaps(e) {
11334
- return this.eventCount == 0 ? this : new Oe(this.items.append(e.map((t) => new Ve(t))), this.eventCount);
11334
+ return this.eventCount == 0 ? this : new Ie(this.items.append(e.map((t) => new Ve(t))), this.eventCount);
11335
11335
  }
11336
11336
  // When the collab module receives remote changes, the history has
11337
11337
  // to know about those, so that it can adjust the steps that were
@@ -11360,7 +11360,7 @@ class Oe {
11360
11360
  let c = [];
11361
11361
  for (let u = t; u < i; u++)
11362
11362
  c.push(new Ve(r.maps[u]));
11363
- let d = this.items.slice(0, s).append(c).append(o), p = new Oe(d, l);
11363
+ let d = this.items.slice(0, s).append(c).append(o), p = new Ie(d, l);
11364
11364
  return p.emptyItemCount() > km && (p = p.compress(this.items.length - o.length)), p;
11365
11365
  }
11366
11366
  emptyItemCount() {
@@ -11389,10 +11389,10 @@ class Oe {
11389
11389
  (u = s.length && s[h].merge(p)) ? s[h] = u : s.push(p);
11390
11390
  }
11391
11391
  } else i.map && o--;
11392
- }, this.items.length, 0), new Oe(Z.from(s.reverse()), r);
11392
+ }, this.items.length, 0), new Ie(Z.from(s.reverse()), r);
11393
11393
  }
11394
11394
  }
11395
- Oe.empty = new Oe(Z.empty, 0);
11395
+ Ie.empty = new Ie(Z.empty, 0);
11396
11396
  function Em(n, e) {
11397
11397
  let t;
11398
11398
  return n.forEach((o, s) => {
@@ -11430,7 +11430,7 @@ function Mm(n, e, t, o) {
11430
11430
  return i.getMeta(Dt).redo ? new st(n.done.addTransform(t, void 0, o, Do(e)), n.undone, Cl(t.mapping.maps), n.prevTime, n.prevComposition) : new st(n.done, n.undone.addTransform(t, void 0, o, Do(e)), null, n.prevTime, n.prevComposition);
11431
11431
  if (t.getMeta("addToHistory") !== !1 && !(i && i.getMeta("addToHistory") === !1)) {
11432
11432
  let l = t.getMeta("composition"), a = n.prevTime == 0 || !i && n.prevComposition != l && (n.prevTime < (t.time || 0) - o.newGroupDelay || !Am(t, n.prevRanges)), c = i ? Bs(n.prevRanges, t.mapping) : Cl(t.mapping.maps);
11433
- return new st(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, o, Do(e)), Oe.empty, c, t.time, l ?? n.prevComposition);
11433
+ return new st(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, o, Do(e)), Ie.empty, c, t.time, l ?? n.prevComposition);
11434
11434
  } else return (r = t.getMeta("rebased")) ? new st(n.done.rebased(t, r), n.undone.rebased(t, r), Bs(n.prevRanges, t.mapping), n.prevTime, n.prevComposition) : new st(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), Bs(n.prevRanges, t.mapping), n.prevTime, n.prevComposition);
11435
11435
  }
11436
11436
  function Am(n, e) {
@@ -11481,7 +11481,7 @@ function Do(n) {
11481
11481
  return Hs;
11482
11482
  }
11483
11483
  const Dt = new so("history"), Nm = new so("closeHistory");
11484
- function Om(n = {}) {
11484
+ function Im(n = {}) {
11485
11485
  return n = {
11486
11486
  depth: n.depth || 100,
11487
11487
  newGroupDelay: n.newGroupDelay || 500
@@ -11489,7 +11489,7 @@ function Om(n = {}) {
11489
11489
  key: Dt,
11490
11490
  state: {
11491
11491
  init() {
11492
- return new st(Oe.empty, Oe.empty, null, 0, -1);
11492
+ return new st(Ie.empty, Ie.empty, null, 0, -1);
11493
11493
  },
11494
11494
  apply(e, t, o) {
11495
11495
  return Mm(t, o, e, n);
@@ -11597,14 +11597,14 @@ var yt = {
11597
11597
  220: "|",
11598
11598
  221: "}",
11599
11599
  222: '"'
11600
- }, Im = typeof navigator < "u" && /Mac/.test(navigator.platform), Rm = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
11600
+ }, Om = typeof navigator < "u" && /Mac/.test(navigator.platform), Rm = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
11601
11601
  for (var Q = 0; Q < 10; Q++) yt[48 + Q] = yt[96 + Q] = String(Q);
11602
11602
  for (var Q = 1; Q <= 24; Q++) yt[Q + 111] = "F" + Q;
11603
11603
  for (var Q = 65; Q <= 90; Q++)
11604
11604
  yt[Q] = String.fromCharCode(Q + 32), Qo[Q] = String.fromCharCode(Q);
11605
11605
  for (var Fs in yt) Qo.hasOwnProperty(Fs) || (Qo[Fs] = yt[Fs]);
11606
11606
  function Dm(n) {
11607
- var e = Im && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || Rm && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? Qo : yt)[n.keyCode] || n.key || "Unidentified";
11607
+ var e = Om && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || Rm && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? Qo : yt)[n.keyCode] || n.key || "Unidentified";
11608
11608
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
11609
11609
  }
11610
11610
  const Lm = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1;
@@ -12205,9 +12205,9 @@ function pg(n, e, t) {
12205
12205
  return u != null && (l.caretBidiLevel = u), g;
12206
12206
  }) : o.pos == o.start() || o.pos == o.end();
12207
12207
  }
12208
- let Nl = null, Ol = null, Il = !1;
12208
+ let Nl = null, Il = null, Ol = !1;
12209
12209
  function ug(n, e, t) {
12210
- return Nl == e && Ol == t ? Il : (Nl = e, Ol = t, Il = t == "up" || t == "down" ? cg(n, e, t) : pg(n, e, t));
12210
+ return Nl == e && Il == t ? Ol : (Nl = e, Il = t, Ol = t == "up" || t == "down" ? cg(n, e, t) : pg(n, e, t));
12211
12211
  }
12212
12212
  const Te = 0, Rl = 1, At = 2, qe = 3;
12213
12213
  class lo {
@@ -13342,7 +13342,7 @@ function kg(n) {
13342
13342
  let e = n.docView.domFromPos(n.state.selection.anchor, 0), t = n.domSelectionRange();
13343
13343
  return Ht(e.node, e.offset, t.anchorNode, t.anchorOffset);
13344
13344
  }
13345
- function Or(n, e) {
13345
+ function Ir(n, e) {
13346
13346
  let { $anchor: t, $head: o } = n.selection, s = e > 0 ? t.max(o) : t.min(o), r = s.parent.inlineContent ? s.depth ? n.doc.resolve(e > 0 ? s.after() : s.before()) : null : s;
13347
13347
  return r && L.findFrom(r, e);
13348
13348
  }
@@ -13360,7 +13360,7 @@ function Fl(n, e, t) {
13360
13360
  return rt(n, new $(o.$anchor, i));
13361
13361
  } else if (o.empty) {
13362
13362
  if (n.endOfTextblock(e > 0 ? "forward" : "backward")) {
13363
- let s = Or(n.state, e);
13363
+ let s = Ir(n.state, e);
13364
13364
  return s && s instanceof D ? rt(n, s) : !1;
13365
13365
  } else if (!(ke && t.indexOf("m") > -1)) {
13366
13366
  let s = o.$head, r = s.textOffset ? null : e < 0 ? s.nodeBefore : s.nodeAfter, i;
@@ -13374,7 +13374,7 @@ function Fl(n, e, t) {
13374
13374
  if (o instanceof D && o.node.isInline)
13375
13375
  return rt(n, new $(e > 0 ? o.$to : o.$from));
13376
13376
  {
13377
- let s = Or(n.state, e);
13377
+ let s = Ir(n.state, e);
13378
13378
  return s ? rt(n, s) : !1;
13379
13379
  }
13380
13380
  }
@@ -13423,7 +13423,7 @@ function Eg(n) {
13423
13423
  }
13424
13424
  }
13425
13425
  }
13426
- i ? Ir(n, t, o) : s && Ir(n, s, r);
13426
+ i ? Or(n, t, o) : s && Or(n, s, r);
13427
13427
  }
13428
13428
  function Tg(n) {
13429
13429
  let e = n.domSelectionRange(), t = e.focusNode, o = e.focusOffset;
@@ -13455,7 +13455,7 @@ function Tg(n) {
13455
13455
  }
13456
13456
  }
13457
13457
  }
13458
- r && Ir(n, r, i);
13458
+ r && Or(n, r, i);
13459
13459
  }
13460
13460
  function Td(n) {
13461
13461
  let e = n.pmViewDesc;
@@ -13485,7 +13485,7 @@ function Ag(n, e) {
13485
13485
  n = t, e = n.childNodes.length;
13486
13486
  }
13487
13487
  }
13488
- function Ir(n, e, t) {
13488
+ function Or(n, e, t) {
13489
13489
  if (e.nodeType != 3) {
13490
13490
  let r, i;
13491
13491
  (i = Mg(e, t)) ? (e = i, t = 0) : (r = Ag(e, t)) && (e = r, t = r.nodeValue.length);
@@ -13526,7 +13526,7 @@ function Gl(n, e, t) {
13526
13526
  return !1;
13527
13527
  let { $from: s, $to: r } = o;
13528
13528
  if (!s.parent.inlineContent || n.endOfTextblock(e < 0 ? "up" : "down")) {
13529
- let i = Or(n.state, e);
13529
+ let i = Ir(n.state, e);
13530
13530
  if (i && i instanceof D)
13531
13531
  return rt(n, i);
13532
13532
  }
@@ -13570,7 +13570,7 @@ function Ng(n) {
13570
13570
  let e = "";
13571
13571
  return n.ctrlKey && (e += "c"), n.metaKey && (e += "m"), n.altKey && (e += "a"), n.shiftKey && (e += "s"), e;
13572
13572
  }
13573
- function Og(n, e) {
13573
+ function Ig(n, e) {
13574
13574
  let t = e.keyCode, o = Ng(e);
13575
13575
  if (t == 8 || ke && t == 72 && o == "c")
13576
13576
  return Wl(n, -1) || Zt(n, -1);
@@ -13607,7 +13607,7 @@ function Md(n, e) {
13607
13607
  let i = n.someProp("clipboardSerializer") || Wt.fromSchema(n.state.schema), l = Rd(), a = l.createElement("div");
13608
13608
  a.appendChild(i.serializeFragment(o, { document: l }));
13609
13609
  let c = a.firstChild, d, p = 0;
13610
- for (; c && c.nodeType == 1 && (d = Id[c.nodeName.toLowerCase()]); ) {
13610
+ for (; c && c.nodeType == 1 && (d = Od[c.nodeName.toLowerCase()]); ) {
13611
13611
  for (let h = d.length - 1; h >= 0; h--) {
13612
13612
  let f = l.createElement(d[h]);
13613
13613
  for (; a.firstChild; )
@@ -13661,7 +13661,7 @@ function Ad(n, e, t, o, s) {
13661
13661
  preserveWhitespace: !!(a || d),
13662
13662
  context: s,
13663
13663
  ruleFromNode(u) {
13664
- return u.nodeName == "BR" && !u.nextSibling && u.parentNode && !Ig.test(u.parentNode.nodeName) ? { ignore: !0 } : null;
13664
+ return u.nodeName == "BR" && !u.nextSibling && u.parentNode && !Og.test(u.parentNode.nodeName) ? { ignore: !0 } : null;
13665
13665
  }
13666
13666
  })), d)
13667
13667
  l = zg(ql(l, +d[1], +d[2]), d[4]);
@@ -13677,7 +13677,7 @@ function Ad(n, e, t, o, s) {
13677
13677
  l = p(l, n);
13678
13678
  }), l;
13679
13679
  }
13680
- const Ig = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;
13680
+ const Og = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;
13681
13681
  function Rg(n, e) {
13682
13682
  if (n.childCount < 2)
13683
13683
  return n;
@@ -13692,7 +13692,7 @@ function Rg(n, e) {
13692
13692
  if (c = i.length && r.length && Nd(a, r, l, i[i.length - 1], 0))
13693
13693
  i[i.length - 1] = c;
13694
13694
  else {
13695
- i.length && (i[i.length - 1] = Od(i[i.length - 1], r.length));
13695
+ i.length && (i[i.length - 1] = Id(i[i.length - 1], r.length));
13696
13696
  let d = Pd(l, a);
13697
13697
  i.push(d), s = s.matchType(d.type), r = a;
13698
13698
  }
@@ -13715,10 +13715,10 @@ function Nd(n, e, t, o, s) {
13715
13715
  return o.copy(o.content.append(T.from(Pd(t, n, s + 1))));
13716
13716
  }
13717
13717
  }
13718
- function Od(n, e) {
13718
+ function Id(n, e) {
13719
13719
  if (e == 0)
13720
13720
  return n;
13721
- let t = n.content.replaceChild(n.childCount - 1, Od(n.lastChild, e - 1)), o = n.contentMatchAt(n.childCount).fillBefore(T.empty, !0);
13721
+ let t = n.content.replaceChild(n.childCount - 1, Id(n.lastChild, e - 1)), o = n.contentMatchAt(n.childCount).fillBefore(T.empty, !0);
13722
13722
  return n.copy(t.append(o));
13723
13723
  }
13724
13724
  function Rr(n, e, t, o, s, r) {
@@ -13728,7 +13728,7 @@ function Rr(n, e, t, o, s, r) {
13728
13728
  function ql(n, e, t) {
13729
13729
  return e < n.openStart && (n = new A(Rr(n.content, -1, e, n.openStart, 0, n.openEnd), e, n.openEnd)), t < n.openEnd && (n = new A(Rr(n.content, 1, t, n.openEnd, 0, 0), n.openStart, t)), n;
13730
13730
  }
13731
- const Id = {
13731
+ const Od = {
13732
13732
  thead: ["table"],
13733
13733
  tbody: ["table"],
13734
13734
  tfoot: ["table"],
@@ -13752,7 +13752,7 @@ function Lg(n) {
13752
13752
  let e = /^(\s*<meta [^>]*>)*/.exec(n);
13753
13753
  e && (n = n.slice(e[0].length));
13754
13754
  let t = Rd().createElement("div"), o = /<([a-z][^>\s]+)/i.exec(n), s;
13755
- if ((s = o && Id[o[1].toLowerCase()]) && (n = s.map((r) => "<" + r + ">").join("") + n + s.map((r) => "</" + r + ">").reverse().join("")), t.innerHTML = Dg(n), s)
13755
+ if ((s = o && Od[o[1].toLowerCase()]) && (n = s.map((r) => "<" + r + ">").join("") + n + s.map((r) => "</" + r + ">").reverse().join("")), t.innerHTML = Dg(n), s)
13756
13756
  for (let r = 0; r < s.length; r++)
13757
13757
  t = t.querySelector(s[r]) || t;
13758
13758
  return t;
@@ -13839,7 +13839,7 @@ ue.keydown = (n, e) => {
13839
13839
  n.input.lastIOSEnter = o, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
13840
13840
  n.input.lastIOSEnter == o && (n.someProp("handleKeyDown", (s) => s(n, Et(13, "Enter"))), n.input.lastIOSEnter = 0);
13841
13841
  }, 200);
13842
- } else n.someProp("handleKeyDown", (o) => o(n, t)) || Og(n, t) ? t.preventDefault() : pt(n, "key");
13842
+ } else n.someProp("handleKeyDown", (o) => o(n, t)) || Ig(n, t) ? t.preventDefault() : pt(n, "key");
13843
13843
  };
13844
13844
  ue.keyup = (n, e) => {
13845
13845
  e.keyCode == 16 && (n.input.shiftKey = !1);
@@ -16003,7 +16003,7 @@ var N1 = class jd {
16003
16003
  return t.parent.type.spec.tableRole == "row" && o.parent.type.spec.tableRole == "row" && t.index() < t.parent.childCount && o.index() < o.parent.childCount && bi(t, o) ? new Y(t, o) : L.near(o, 1);
16004
16004
  }
16005
16005
  };
16006
- function O1(n) {
16006
+ function I1(n) {
16007
16007
  if (!(n.selection instanceof Y))
16008
16008
  return null;
16009
16009
  const e = [];
@@ -16013,7 +16013,7 @@ function O1(n) {
16013
16013
  );
16014
16014
  }), j.create(n.doc, e);
16015
16015
  }
16016
- function I1({ $from: n, $to: e }) {
16016
+ function O1({ $from: n, $to: e }) {
16017
16017
  if (n.pos == e.pos || n.pos < e.pos - 6)
16018
16018
  return !1;
16019
16019
  let t = n.pos, o = e.pos, s = n.depth;
@@ -16054,7 +16054,7 @@ function D1(n, e, t) {
16054
16054
  const l = U.get(o.node), a = o.from + 1, c = a + l.map[l.width * l.height - 1];
16055
16055
  r = Y.create(s, a + 1, c);
16056
16056
  }
16057
- } else o instanceof $ && I1(o) ? r = $.create(s, o.from) : o instanceof $ && R1(o) && (r = $.create(s, o.$from.start(), o.$from.end()));
16057
+ } else o instanceof $ && O1(o) ? r = $.create(s, o.from) : o instanceof $ && R1(o) && (r = $.create(s, o.$from.start(), o.$from.end()));
16058
16058
  return r && (e || (e = n.tr)).setSelection(r), e;
16059
16059
  }
16060
16060
  var L1 = new so("fix-tables");
@@ -16955,7 +16955,7 @@ function r0({
16955
16955
  }
16956
16956
  },
16957
16957
  props: {
16958
- decorations: O1,
16958
+ decorations: I1,
16959
16959
  handleDOMEvents: {
16960
16960
  mousedown: U1
16961
16961
  },
@@ -17612,8 +17612,8 @@ function N0(n) {
17612
17612
  return e.tr.insertText(r, o, s);
17613
17613
  };
17614
17614
  }
17615
- const O0 = 500;
17616
- function I0({ rules: n }) {
17615
+ const I0 = 500;
17616
+ function O0({ rules: n }) {
17617
17617
  let e = new wn({
17618
17618
  state: {
17619
17619
  init() {
@@ -17644,7 +17644,7 @@ function I0({ rules: n }) {
17644
17644
  function Sa(n, e, t, o, s, r) {
17645
17645
  if (n.composing)
17646
17646
  return !1;
17647
- let i = n.state, l = i.doc.resolve(e), a = l.parent.textBetween(Math.max(0, l.parentOffset - O0), l.parentOffset, null, "") + o;
17647
+ let i = n.state, l = i.doc.resolve(e), a = l.parent.textBetween(Math.max(0, l.parentOffset - I0), l.parentOffset, null, "") + o;
17648
17648
  for (let c = 0; c < s.length; c++) {
17649
17649
  let d = s[c];
17650
17650
  if (l.parent.type.spec.code) {
@@ -17700,7 +17700,7 @@ function W0(n, e) {
17700
17700
  function j0(n) {
17701
17701
  const e = B0.concat(D0, R0);
17702
17702
  let t;
17703
- return (t = n.nodes.blockquote) && e.push(H0(t)), (t = n.nodes.orderedList) && e.push(F0(t)), (t = n.nodes.bulletList) && e.push(_0(t)), (t = n.nodes.codeBlock) && e.push(G0(t)), (t = n.nodes.heading) && e.push(W0(t, 6)), I0({ rules: e });
17703
+ return (t = n.nodes.blockquote) && e.push(H0(t)), (t = n.nodes.orderedList) && e.push(F0(t)), (t = n.nodes.bulletList) && e.push(_0(t)), (t = n.nodes.codeBlock) && e.push(G0(t)), (t = n.nodes.heading) && e.push(W0(t, 6)), O0({ rules: e });
17704
17704
  }
17705
17705
  const q0 = "rteProseMirror", U0 = H.free, ae = "rte:selectionchange", J = {
17706
17706
  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>',
@@ -18130,7 +18130,7 @@ const Z0 = function(n, e = {}) {
18130
18130
  J1(),
18131
18131
  r0(),
18132
18132
  j0(c),
18133
- Om(),
18133
+ Im(),
18134
18134
  Gs({
18135
18135
  Tab: aa(1),
18136
18136
  "Shift-Tab": aa(-1)
@@ -18339,7 +18339,7 @@ const Z0 = function(n, e = {}) {
18339
18339
  [data-gjs-type="mj-body"] { min-height: ${m} !important; }
18340
18340
  `, !Le.contains(ho) && Le.appendChild(ho);
18341
18341
  });
18342
- const N = () => E.style.display = "none", O = () => E.style.display = "", R = () => {
18342
+ const N = () => E.style.display = "none", I = () => E.style.display = "", R = () => {
18343
18343
  var Le;
18344
18344
  if (!u) return;
18345
18345
  const z = t.getZoomMultiplier(), fe = t.getRect().height * z - l * 2;
@@ -18352,7 +18352,7 @@ const Z0 = function(n, e = {}) {
18352
18352
  }), R(), P(), setTimeout(() => {
18353
18353
  var he, fe;
18354
18354
  const { em: z } = n;
18355
- z.destroyed || ((fe = (he = n.getSelected()) == null ? void 0 : he.getEl()) == null || fe.scrollIntoView({ block: "nearest" }), n.refresh({ tools: !0 }), O(), o.isActive(b) ? z.stopDefault() : z.runDefault());
18355
+ z.destroyed || ((fe = (he = n.getSelected()) == null ? void 0 : he.getEl()) == null || fe.scrollIntoView({ block: "nearest" }), n.refresh({ tools: !0 }), I(), o.isActive(b) ? z.stopDefault() : z.runDefault());
18356
18356
  }, S);
18357
18357
  }, 100), ie = (z = {}) => {
18358
18358
  z.options && z.options.from !== "fitViewport" && t.fitViewport({
@@ -18570,7 +18570,7 @@ function hp(n, e) {
18570
18570
  const i = n.parentElement, l = t.getComputedStyle(i), a = parseFloat(l.columnGap) || 0, c = parseFloat(l.rowGap) || 0, d = Ca(l.gridTemplateColumns), p = Ca(l.gridTemplateRows), u = parseFloat(l.paddingLeft) || 0, h = parseFloat(l.paddingTop) || 0, f = i.getBoundingClientRect(), m = n.getBoundingClientRect(), g = (w, S, x, k, E) => {
18571
18571
  let M = 1, P = k + E;
18572
18572
  for (let N = 0; N < S.length; N++) {
18573
- const O = S[N], R = P + O;
18573
+ const I = S[N], R = P + I;
18574
18574
  if (w >= P && w < R)
18575
18575
  return M;
18576
18576
  P = R + x, M++;
@@ -18629,8 +18629,8 @@ function hy(n) {
18629
18629
  const { scroll: g } = up(e), { columns: b, rows: C, gap: y, offset: v, padding: w } = p, { offset: S, margin: x } = i, k = S.top - v.top - w.top - x.top + m - d.top + g.top, E = S.left - v.left - w.left - x.left + f - d.left + g.left, M = Math.min(ut(b, 1, E, y.column, 0.5), b.length), P = Math.min(ut(C, 1, k, y.row, 0.5), C.length), N = Math.min(
18630
18630
  ut(b, M, S.width, y.column) + 1,
18631
18631
  b.length + 1
18632
- ), O = Math.min(ut(C, P, S.height, y.row) + 1, C.length + 1);
18633
- a.style.gridArea = `${P} / ${M} / ${O} / ${N}`, c.style.top = `${k + w.top}px`, c.style.left = `${E + w.left}px`;
18632
+ ), I = Math.min(ut(C, P, S.height, y.row) + 1, C.length + 1);
18633
+ a.style.gridArea = `${P} / ${M} / ${I} / ${N}`, c.style.top = `${k + w.top}px`, c.style.left = `${E + w.left}px`;
18634
18634
  }
18635
18635
  }).start(o.event);
18636
18636
  }
@@ -18953,7 +18953,7 @@ const xy = function(n, e = {}) {
18953
18953
  });
18954
18954
  }, Wb = _(xy), wy = "canvasScreenshot", Cy = H.startup;
18955
18955
  var fp = /* @__PURE__ */ ((n) => (n.screenshot = "studioPlugin:screenshot", n))(fp || {});
18956
- const ky = async (n) => await Op([{ id: "html-to-image", src: n }]), Ey = async (n, e = {}, t = {}) => {
18956
+ const ky = async (n) => await Ip([{ id: "html-to-image", src: n }]), Ey = async (n, e = {}, t = {}) => {
18957
18957
  const { cdnScript: o } = t;
18958
18958
  if (!window.htmlToImage) {
18959
18959
  if (!o) return;
@@ -19293,7 +19293,7 @@ const Ny = (n, e) => {
19293
19293
  height: l ? c : void 0
19294
19294
  };
19295
19295
  }, qr = "page-breaks", Ao = "gjs-page-breaks-spot", er = (n) => n.type === qr;
19296
- function Oy(n) {
19296
+ function Iy(n) {
19297
19297
  const { Devices: e } = n, { height: t, minHeight: o } = e.getSelected().attributes, r = parseFloat(`${t && t !== "auto" ? t : o}`), i = n.getWrapper(), l = i == null ? void 0 : i.getEl(), a = [];
19298
19298
  if (!i || !l)
19299
19299
  return a;
@@ -19305,7 +19305,7 @@ function Oy(n) {
19305
19305
  }
19306
19306
  return a;
19307
19307
  }
19308
- function Iy(n, e) {
19308
+ function Oy(n, e) {
19309
19309
  const { Canvas: t } = n, o = t.events, s = n.events;
19310
19310
  let r;
19311
19311
  const i = () => {
@@ -19352,7 +19352,7 @@ function Iy(n, e) {
19352
19352
  }, p = jn(() => {
19353
19353
  if (n.em.destroyed) return;
19354
19354
  const g = l();
19355
- g && g.set({ pageBreaks: Oy(n), up: (g.attributes.up || 0) + 1 });
19355
+ g && g.set({ pageBreaks: Iy(n), up: (g.attributes.up || 0) + 1 });
19356
19356
  }, 150), u = jn(p, 200), h = () => {
19357
19357
  r = t.getSpotsEl(), l();
19358
19358
  }, f = () => {
@@ -19458,7 +19458,7 @@ const Ly = "presetPrintable", $y = H.free, zy = function(n, e = {}) {
19458
19458
  const u = a && s.get(a) || s.getAll().at(0);
19459
19459
  s.select(u), ["map", "video"].forEach((x) => r.remove(x));
19460
19460
  const f = (x = {}) => {
19461
- const k = "page-rule", { rules: E } = n.Css, { width: M, height: P, minHeight: N } = s.getSelected().attributes, O = P && P !== "auto" ? P : N, R = E.where({ id: k }).pop(), F = R || E.add(
19461
+ const k = "page-rule", { rules: E } = n.Css, { width: M, height: P, minHeight: N } = s.getSelected().attributes, I = P && P !== "auto" ? P : N, R = E.where({ id: k }).pop(), F = R || E.add(
19462
19462
  {
19463
19463
  id: k,
19464
19464
  selectors: [],
@@ -19467,7 +19467,7 @@ const Ly = "presetPrintable", $y = H.free, zy = function(n, e = {}) {
19467
19467
  { at: 0 }
19468
19468
  );
19469
19469
  (x.fromDeviceChange || !R) && F.addStyle({
19470
- size: `${M} ${O}`,
19470
+ size: `${M} ${I}`,
19471
19471
  ...!R && { margin: "0" }
19472
19472
  });
19473
19473
  }, m = (x, k = {}) => {
@@ -19512,7 +19512,7 @@ const Ly = "presetPrintable", $y = H.free, zy = function(n, e = {}) {
19512
19512
  });
19513
19513
  }, b = [[l.projectLoad, g]];
19514
19514
  b.forEach(([x, k]) => n.on(x, k));
19515
- const C = Iy(n, t), y = Ry(n), v = Dy(n, t);
19515
+ const C = Oy(n, t), y = Ry(n), v = Dy(n, t);
19516
19516
  n.onReady(() => {
19517
19517
  n.UndoManager.clear();
19518
19518
  });
@@ -20829,15 +20829,15 @@ function Cp({
20829
20829
  var P, N;
20830
20830
  const { command: o, guidesMatched: s } = t, r = t.component, i = r.getEl(), l = e.Canvas.getCanvasView(), { x: a, y: c } = n ?? { x: 10, y: 10 }, d = o.opts.event, p = d.clientX, u = d.clientY;
20831
20831
  if (!r.__lastSnappedPosition) {
20832
- const O = l.getElBoxRect(i), R = p - O.x, F = u - O.y;
20833
- r.__lastSnappedPosition = { left: O.x, top: O.y }, r.__dragOffset = { x: R, y: F };
20832
+ const I = l.getElBoxRect(i), R = p - I.x, F = u - I.y;
20833
+ r.__lastSnappedPosition = { left: I.x, top: I.y }, r.__dragOffset = { x: R, y: F };
20834
20834
  }
20835
20835
  const h = ((P = r.__dragOffset) == null ? void 0 : P.x) || 0, f = ((N = r.__dragOffset) == null ? void 0 : N.y) || 0, m = r.__lastSnappedPosition, g = p - m.left - h, b = u - m.top - f;
20836
20836
  let C = m.left, y = m.top;
20837
20837
  const v = s == null ? void 0 : s[0], w = (v == null ? void 0 : v.guide.type) === "l", S = (v == null ? void 0 : v.guide.type) === "x", x = (v == null ? void 0 : v.guide.type) === "r", k = (v == null ? void 0 : v.guide.type) === "t", E = (v == null ? void 0 : v.guide.type) === "b", M = (v == null ? void 0 : v.guide.type) === "y";
20838
20838
  if (v) {
20839
- const { x: O, y: R } = Vo({ guideMatched: v, canvasView: l }), F = i.offsetWidth, ie = i.offsetHeight;
20840
- w ? C = O : x ? C = O - F : S ? C = O - F / 2 : k ? y = R : E ? y = R - ie : M && (y = R - ie / 2), r.__lastSnappedGuideMatched = v;
20839
+ const { x: I, y: R } = Vo({ guideMatched: v, canvasView: l }), F = i.offsetWidth, ie = i.offsetHeight;
20840
+ w ? C = I : x ? C = I - F : S ? C = I - F / 2 : k ? y = R : E ? y = R - ie : M && (y = R - ie / 2), r.__lastSnappedGuideMatched = v;
20841
20841
  } else
20842
20842
  Math.abs(g) >= a && (C = Math.round((m.left + g) / a) * a, r.__lastSnappedGuideMatched = null), Math.abs(b) >= c && (y = Math.round((m.top + b) / c) * c, r.__lastSnappedGuideMatched = null);
20843
20843
  return r.addStyle({ left: `${C}px`, top: `${y}px` }, { partial: !0 }), r.__lastSnappedPosition = { left: C, top: y }, { x: C, y, guideMatched: r.__lastSnappedGuideMatched };
@@ -20850,7 +20850,7 @@ function Sb({
20850
20850
  const { x: o, y: s } = Cp({ snapping: n, props: e, editor: t }), r = e.component;
20851
20851
  r.addStyle({ left: `${o}px`, top: `${s}px` }), delete r.__lastSnappedPosition, delete r.__lastSnappedGuideMatched;
20852
20852
  }
20853
- const xb = "core:component-drag", wb = "studio:setDragAbsolute", Cb = "dmode:start", Oa = "dmode:move", Ia = "dmode:end", tr = "dragAbsolute", kb = "select", Eb = "hover", Tb = "spacing", Mb = function(n, e = {}) {
20853
+ const xb = "core:component-drag", wb = "studio:setDragAbsolute", Cb = "dmode:start", Ia = "dmode:move", Oa = "dmode:end", tr = "dragAbsolute", kb = "select", Eb = "hover", Tb = "spacing", Mb = function(n, e = {}) {
20854
20854
  const { Commands: t } = n, o = t.events, s = t.getConfig().defaultOptions ?? {}, r = `${o.runBeforeCommand}tlb-move`;
20855
20855
  s[xb] = {
20856
20856
  run: (x) => ({
@@ -20863,7 +20863,7 @@ const xb = "core:component-drag", wb = "studio:setDragAbsolute", Cb = "dmode:sta
20863
20863
  const c = !!(i != null && i.x || i != null && i.y), d = !!(l != null && l.x || l != null && l.y), { Canvas: p } = n;
20864
20864
  let u = null;
20865
20865
  const h = (x) => {
20866
- const { component: k, guidesMatched: E, command: M } = x, P = k.view, N = n.Canvas.getCanvasView(), O = k.getEl();
20866
+ const { component: k, guidesMatched: E, command: M } = x, P = k.view, N = n.Canvas.getCanvasView(), I = k.getEl();
20867
20867
  let R = E.map((le) => le.matched.componentEl), F = E.map((le) => Vo({ guideMatched: le, canvasView: N }));
20868
20868
  if (c) {
20869
20869
  const { guideMatched: le } = Cp({ snapping: i, props: x, editor: n });
@@ -20884,7 +20884,7 @@ const xb = "core:component-drag", wb = "studio:setDragAbsolute", Cb = "dmode:sta
20884
20884
  type: tr,
20885
20885
  component: k,
20886
20886
  componentView: P,
20887
- originComponent: O,
20887
+ originComponent: I,
20888
20888
  matchedComponents: R,
20889
20889
  originMatchedDistances: F
20890
20890
  };
@@ -20903,11 +20903,11 @@ const xb = "core:component-drag", wb = "studio:setDragAbsolute", Cb = "dmode:sta
20903
20903
  m({ type: tr }), c && Sb({ snapping: i, props: x, editor: n }), f({ enabled: !1 });
20904
20904
  }, S = [
20905
20905
  [Cb, (x) => {
20906
- b(x), n.on(Oa, C);
20906
+ b(x), n.on(Ia, C);
20907
20907
  const k = () => {
20908
- y(x), n.off(Oa, C), n.off(Ia, k);
20908
+ y(x), n.off(Ia, C), n.off(Oa, k);
20909
20909
  };
20910
- n.on(Ia, k);
20910
+ n.on(Oa, k);
20911
20911
  }],
20912
20912
  [r, (x) => {
20913
20913
  if (a) return;
@@ -20942,12 +20942,12 @@ export {
20942
20942
  Nb as iconifyComponent,
20943
20943
  Py as layoutSidebarButtons,
20944
20944
  Db as lightGalleryComponent,
20945
- Ib as listPagesComponent,
20945
+ Ob as listPagesComponent,
20946
20946
  qb as presetPrintable,
20947
20947
  Fb as rteProseMirror,
20948
20948
  Hb as rteTinyMce,
20949
20949
  Bb as shapeDividerComponent,
20950
20950
  Lb as swiperComponent,
20951
- Ob as tableComponent,
20951
+ Ib as tableComponent,
20952
20952
  Jb as youtubeAssetProvider
20953
20953
  };