@templatical/editor 0.0.4 → 0.0.5

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 (108) hide show
  1. package/dist/{AiChatSidebar-CjfhTZwo.js → AiChatSidebar-DwME3f-a.js} +84 -70
  2. package/dist/{AiFeatureMenu-K44aZa_P.js → AiFeatureMenu-DJvWL1GZ.js} +23 -23
  3. package/dist/CloudEditor-Fe0ssRgi.js +1082 -0
  4. package/dist/{CollaboratorBar-BuCEcdbB.js → CollaboratorBar-DTT0EkZn.js} +1 -1
  5. package/dist/{CommentsSidebar-2lcqMfIP.js → CommentsSidebar-DrJhQRXK.js} +131 -131
  6. package/dist/{DesignReferenceSidebar-CNMu4Zrx.js → DesignReferenceSidebar-DdOht5zn.js} +49 -49
  7. package/dist/{ModuleBrowserModal-CvQ0xyQf.js → ModuleBrowserModal-CiV_jOEM.js} +58 -58
  8. package/dist/{ModulePreviewCanvas-Be2B3Y07.js → ModulePreviewCanvas-Bmy6Y1WE.js} +1 -1
  9. package/dist/ParagraphEditor-CoQ3NlS7.js +688 -0
  10. package/dist/{SaveModuleDialog-BaaeH5Xm.js → SaveModuleDialog-CD2ZYq1o.js} +25 -25
  11. package/dist/{SnapshotHistory-BPfjiuu1.js → SnapshotHistory-DltsKvhP.js} +1 -1
  12. package/dist/TemplateScoringPanel-DmnmUE3y.js +254 -0
  13. package/dist/{TestEmailModal-DIAlB3e_.js → TestEmailModal-Dl633j9o.js} +2 -2
  14. package/dist/{TitleEditor-D9DPjQkX.js → TitleEditor-C7fds2Nc.js} +3 -3
  15. package/dist/{TplModal-CmTSvCY-.js → TplModal-C5_CF-qn.js} +1 -1
  16. package/dist/{blockTypeIcons-D1RTWOkx.js → blockTypeIcons-BrKZB10B.js} +1 -1
  17. package/dist/cdn/chunks/AiChatSidebar-X_Bv3Qys.js +2 -0
  18. package/dist/cdn/chunks/{AiFeatureMenu-lxVm1RjH.js → AiFeatureMenu-C5UQmEgV.js} +16 -16
  19. package/dist/cdn/chunks/AiFeatureMenu-C5UQmEgV.js.map +1 -0
  20. package/dist/cdn/chunks/CloudEditor-DeTolKnf.js +1056 -0
  21. package/dist/cdn/chunks/CloudEditor-DeTolKnf.js.map +1 -0
  22. package/dist/cdn/chunks/{CollaboratorBar-D2PKtlOw.js → CollaboratorBar-DO1nxSrr.js} +3 -3
  23. package/dist/cdn/chunks/{CollaboratorBar-D2PKtlOw.js.map → CollaboratorBar-DO1nxSrr.js.map} +1 -1
  24. package/dist/cdn/chunks/CommentsSidebar-4MTw_hue.js +2 -0
  25. package/dist/cdn/chunks/DesignReferenceSidebar-Bswh4Yx4.js +2 -0
  26. package/dist/cdn/chunks/{ModuleBrowserModal-CxDXzkKS.js → ModuleBrowserModal-ChBr3aXj.js} +52 -52
  27. package/dist/cdn/chunks/ModuleBrowserModal-ChBr3aXj.js.map +1 -0
  28. package/dist/cdn/chunks/{ModulePreviewCanvas-DEfHampA.js → ModulePreviewCanvas-DkSvri9H.js} +2 -2
  29. package/dist/cdn/chunks/{ModulePreviewCanvas-DEfHampA.js.map → ModulePreviewCanvas-DkSvri9H.js.map} +1 -1
  30. package/dist/cdn/chunks/ParagraphEditor-DU3oUKA7.js +539 -0
  31. package/dist/cdn/chunks/ParagraphEditor-DU3oUKA7.js.map +1 -0
  32. package/dist/cdn/chunks/{RichTextEditorContent-DWUzizsC.js → RichTextEditorContent-BrsW1p9s.js} +4 -4
  33. package/dist/cdn/chunks/{RichTextEditorContent-DWUzizsC.js.map → RichTextEditorContent-BrsW1p9s.js.map} +1 -1
  34. package/dist/cdn/chunks/{SaveModuleDialog-DVna2xUl.js → SaveModuleDialog-CjqKkTEc.js} +24 -24
  35. package/dist/cdn/chunks/SaveModuleDialog-CjqKkTEc.js.map +1 -0
  36. package/dist/cdn/chunks/SnapshotHistory-KME4xmn_.js +2 -0
  37. package/dist/cdn/chunks/TemplateScoringPanel-DgB3xDN6.js +2 -0
  38. package/dist/cdn/chunks/TestEmailModal-DdpvRbYf.js +2 -0
  39. package/dist/cdn/chunks/{TitleEditor-DDf_OcHS.js → TitleEditor-C8FYbadT.js} +9 -9
  40. package/dist/cdn/chunks/{TitleEditor-DDf_OcHS.js.map → TitleEditor-C8FYbadT.js.map} +1 -1
  41. package/dist/cdn/chunks/{blockTypeIcons-BnobReQm.js → blockTypeIcons-5QwYklNq.js} +3 -3
  42. package/dist/cdn/chunks/{blockTypeIcons-BnobReQm.js.map → blockTypeIcons-5QwYklNq.js.map} +1 -1
  43. package/dist/cdn/chunks/{dist-CJcMnY7o.js → dist-BF5c3Dr-.js} +1 -1
  44. package/dist/cdn/chunks/dist-BGzvIxcJ.js +2 -0
  45. package/dist/cdn/chunks/dist-CFemF8rI.js +2 -0
  46. package/dist/cdn/chunks/dist-Co6uFhFK.js +2 -0
  47. package/dist/cdn/chunks/{dist-BkETaOfw.js → dist-DCikBY9K.js} +1 -1
  48. package/dist/cdn/chunks/dist-DUILafAC.js +2 -0
  49. package/dist/cdn/chunks/dist-DghiKH0A.js +2 -0
  50. package/dist/cdn/chunks/dist-Dw8ckvfK.js +2 -0
  51. package/dist/cdn/chunks/dist-H07p0KAw.js +2 -0
  52. package/dist/cdn/chunks/{dist-B878xb_62.js → dist-KYv9v_1z2.js} +11 -11
  53. package/dist/cdn/chunks/{dist-B878xb_62.js.map → dist-KYv9v_1z2.js.map} +1 -1
  54. package/dist/cdn/chunks/{dist-DLWHlekl.js → dist-MjnKIc0W.js} +1 -1
  55. package/dist/cdn/chunks/{dist-CllLxIMQ.js → dist-odp0vGRv.js} +1 -1
  56. package/dist/cdn/chunks/{extensions-B_kcV0tK.js → extensions-Bj7USRLr.js} +20 -20
  57. package/dist/cdn/chunks/{extensions-B_kcV0tK.js.map → extensions-Bj7USRLr.js.map} +1 -1
  58. package/dist/cdn/chunks/{features-ofOGnSC0.js → features-Ds0XUfte.js} +1235 -1198
  59. package/dist/cdn/chunks/features-Ds0XUfte.js.map +1 -0
  60. package/dist/cdn/chunks/{icons-bIb7PBOE.js → icons-fWsuSvgd.js} +2 -2
  61. package/dist/cdn/chunks/{icons-bIb7PBOE.js.map → icons-fWsuSvgd.js.map} +1 -1
  62. package/dist/cdn/chunks/{media-library-BIYzV2Y2.js → media-library-BGQm_OyC.js} +528 -528
  63. package/dist/cdn/chunks/{media-library-BIYzV2Y2.js.map → media-library-BGQm_OyC.js.map} +1 -1
  64. package/dist/cdn/chunks/{src-BuW9oYtm.js → src-3i8rPuqd.js} +4 -4
  65. package/dist/cdn/chunks/{src-BuW9oYtm.js.map → src-3i8rPuqd.js.map} +1 -1
  66. package/dist/cdn/chunks/{styleConstants-1KwsBMxJ.js → styleConstants-DFe3I4Op.js} +6 -6
  67. package/dist/cdn/chunks/{styleConstants-1KwsBMxJ.js.map → styleConstants-DFe3I4Op.js.map} +1 -1
  68. package/dist/cdn/chunks/{styles-DQFExz-T.js → styles-Dgijy53u.js} +1224 -1096
  69. package/dist/cdn/chunks/styles-Dgijy53u.js.map +1 -0
  70. package/dist/cdn/chunks/{tiptap-DplY-S-k.js → tiptap-BhxaWR8R.js} +2 -2
  71. package/dist/cdn/chunks/{tiptap-DplY-S-k.js.map → tiptap-BhxaWR8R.js.map} +1 -1
  72. package/dist/cdn/editor.css +1 -1
  73. package/dist/cdn/editor.js +110 -139
  74. package/dist/cdn/editor.js.map +1 -1
  75. package/dist/{dist-BkIys9zn.js → dist-Ci5lFuUy.js} +1 -1
  76. package/dist/{extensions-DEjfEFhD.js → extensions-DWx_jj8v.js} +1 -1
  77. package/dist/{styleConstants-D4SOZGBV.js → styleConstants-Cxw88naD.js} +5 -5
  78. package/dist/{styles-CgLaxDfu.js → styles-fdXNRqI3.js} +1341 -1213
  79. package/dist/templatical-editor.css +1 -1
  80. package/dist/templatical-editor.js +99 -129
  81. package/dist/templatical-editor.umd.cjs +55 -64
  82. package/dist/{useEditorCore-CjwRMl7K.js → useEditorCore-DUGD6pq_.js} +1054 -1033
  83. package/package.json +4 -2
  84. package/dist/CloudEditor-DFyuRxUV.js +0 -926
  85. package/dist/ParagraphEditor-CcMPnbDr.js +0 -652
  86. package/dist/TemplateScoringPanel-D58A23Vq.js +0 -249
  87. package/dist/cdn/chunks/AiChatSidebar-CmPTbTFG.js +0 -2
  88. package/dist/cdn/chunks/AiFeatureMenu-lxVm1RjH.js.map +0 -1
  89. package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js +0 -900
  90. package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js.map +0 -1
  91. package/dist/cdn/chunks/CommentsSidebar-BOelj4Ca.js +0 -2
  92. package/dist/cdn/chunks/DesignReferenceSidebar-Bf6rg0A7.js +0 -2
  93. package/dist/cdn/chunks/ModuleBrowserModal-CxDXzkKS.js.map +0 -1
  94. package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js +0 -503
  95. package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js.map +0 -1
  96. package/dist/cdn/chunks/SaveModuleDialog-DVna2xUl.js.map +0 -1
  97. package/dist/cdn/chunks/SnapshotHistory-BFF2SsTN.js +0 -2
  98. package/dist/cdn/chunks/TemplateScoringPanel-gi8wc_m7.js +0 -2
  99. package/dist/cdn/chunks/TestEmailModal-Qtd6aC-6.js +0 -2
  100. package/dist/cdn/chunks/dist-B6AUkMyh.js +0 -2
  101. package/dist/cdn/chunks/dist-Bf1Op9A1.js +0 -2
  102. package/dist/cdn/chunks/dist-CWsl6S1K.js +0 -2
  103. package/dist/cdn/chunks/dist-Cs0wFwdw.js +0 -2
  104. package/dist/cdn/chunks/dist-DS3_HVpX.js +0 -2
  105. package/dist/cdn/chunks/dist-DTXopj1a.js +0 -2
  106. package/dist/cdn/chunks/dist-DnwLoNLm.js +0 -2
  107. package/dist/cdn/chunks/features-ofOGnSC0.js.map +0 -1
  108. package/dist/cdn/chunks/styles-DQFExz-T.js.map +0 -1
@@ -1,45 +1,45 @@
1
1
  import { a as e, c as t, i as n, n as r, o as i, r as a, s as o } from "./dist-CG-vEqSU.js";
2
2
  import { C as s, S as c, T as l, _ as u, a as d, d as f, f as p, g as m, h, i as g, l as _, m as v, n as y, o as b, p as x, s as S, u as C, v as ee, w, y as T } from "./keys-C0MQRs8d.js";
3
3
  import { t as E } from "./useI18n-D6m7ZUgY.js";
4
- import { n as D, t as O } from "./_plugin-vue_export-helper-B1-bu7yR.js";
5
- import { t as te } from "./message-circle-Blgm6V_h.js";
6
- import { t as k } from "./trash-2-OwjZ-guZ.js";
7
- import { t as ne } from "./triangle-alert-DOSRIUYZ.js";
8
- import { t as re } from "./LoadingTrack-vK8W2PJf.js";
9
- import { t as ie } from "./useMergeTag-BZ3X0bNr.js";
10
- import { Fragment as ae, computed as A, createBlock as oe, createCommentVNode as se, createElementBlock as j, createElementVNode as M, createTextVNode as ce, createVNode as N, defineAsyncComponent as le, defineComponent as P, getCurrentScope as ue, inject as F, nextTick as de, normalizeClass as fe, normalizeStyle as I, onBeforeUnmount as pe, onMounted as me, onScopeDispose as he, openBlock as L, provide as R, ref as z, renderList as ge, renderSlot as _e, resolveDynamicComponent as ve, shallowRef as ye, toDisplayString as B, triggerRef as be, unref as V, vShow as xe, watch as Se, withCtx as Ce, withDirectives as we, withKeys as Te, withModifiers as Ee } from "vue";
11
- import { useAutoSave as De, useBlockActions as Oe, useConditionPreview as ke, useDataSourceFetch as Ae, useHistory as je, useHistoryInterceptor as Me } from "@templatical/core";
12
- import { HEADING_LEVEL_FONT_SIZE as Ne, containsMergeTag as Pe, createButtonBlock as Fe, createCountdownBlock as Ie, createCustomBlock as Le, createDividerBlock as Re, createHtmlBlock as ze, createImageBlock as Be, createMenuBlock as Ve, createParagraphBlock as He, createSectionBlock as Ue, createSocialIconsBlock as We, createSpacerBlock as Ge, createTableBlock as Ke, createTitleBlock as qe, createVideoBlock as Je, resolveHtmlLogicMergeTagLabels as Ye, resolveHtmlMergeTagLabels as Xe, resolveSyntax as Ze } from "@templatical/types";
4
+ import { n as D, t as te } from "./_plugin-vue_export-helper-B1-bu7yR.js";
5
+ import { t as ne } from "./message-circle-Blgm6V_h.js";
6
+ import { t as O } from "./trash-2-OwjZ-guZ.js";
7
+ import { t as re } from "./triangle-alert-DOSRIUYZ.js";
8
+ import { t as ie } from "./LoadingTrack-vK8W2PJf.js";
9
+ import { t as ae } from "./useMergeTag-BZ3X0bNr.js";
10
+ import { Fragment as oe, computed as k, createBlock as se, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createTextVNode as ce, createVNode as N, defineAsyncComponent as le, defineComponent as ue, getCurrentScope as de, inject as P, nextTick as fe, normalizeClass as pe, normalizeStyle as F, onBeforeUnmount as me, onMounted as he, onScopeDispose as ge, openBlock as I, provide as L, ref as R, renderList as _e, renderSlot as ve, resolveDynamicComponent as ye, shallowRef as be, toDisplayString as z, triggerRef as xe, unref as B, vShow as Se, watch as Ce, withCtx as we, withDirectives as Te, withKeys as Ee, withModifiers as De } from "vue";
11
+ import { useAutoSave as Oe, useBlockActions as ke, useConditionPreview as Ae, useDataSourceFetch as je, useHistory as Me, useHistoryInterceptor as Ne } from "@templatical/core";
12
+ import { HEADING_LEVEL_FONT_SIZE as Pe, containsMergeTag as Fe, createButtonBlock as Ie, createCountdownBlock as Le, createCustomBlock as Re, createDividerBlock as ze, createHtmlBlock as Be, createImageBlock as Ve, createMenuBlock as He, createParagraphBlock as Ue, createSectionBlock as We, createSocialIconsBlock as Ge, createSpacerBlock as Ke, createTableBlock as qe, createTitleBlock as Je, createVideoBlock as Ye, resolveHtmlLogicMergeTagLabels as Xe, resolveHtmlMergeTagLabels as Ze, resolveSyntax as Qe } from "@templatical/types";
13
13
  //#region \0rolldown/runtime.js
14
- var Qe = Object.create, $e = Object.defineProperty, et = Object.getOwnPropertyDescriptor, tt = Object.getOwnPropertyNames, nt = Object.getPrototypeOf, rt = Object.prototype.hasOwnProperty, it = (e, t) => () => (e && (t = e(e = 0)), t), at = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), ot = (e, t) => {
14
+ var $e = Object.create, et = Object.defineProperty, tt = Object.getOwnPropertyDescriptor, nt = Object.getOwnPropertyNames, rt = Object.getPrototypeOf, it = Object.prototype.hasOwnProperty, at = (e, t) => () => (e && (t = e(e = 0)), t), ot = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), st = (e, t) => {
15
15
  let n = {};
16
- for (var r in e) $e(n, r, {
16
+ for (var r in e) et(n, r, {
17
17
  get: e[r],
18
18
  enumerable: !0
19
19
  });
20
- return t || $e(n, Symbol.toStringTag, { value: "Module" }), n;
21
- }, st = (e, t, n, r) => {
22
- if (t && typeof t == "object" || typeof t == "function") for (var i = tt(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !rt.call(e, s) && s !== n && $e(e, s, {
20
+ return t || et(n, Symbol.toStringTag, { value: "Module" }), n;
21
+ }, ct = (e, t, n, r) => {
22
+ if (t && typeof t == "object" || typeof t == "function") for (var i = nt(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !it.call(e, s) && s !== n && et(e, s, {
23
23
  get: ((e) => t[e]).bind(null, s),
24
- enumerable: !(r = et(t, s)) || r.enumerable
24
+ enumerable: !(r = tt(t, s)) || r.enumerable
25
25
  });
26
26
  return e;
27
- }, ct = (e, t, n) => (n = e == null ? {} : Qe(nt(e)), st(t || !e || !e.__esModule ? $e(n, "default", {
27
+ }, lt = (e, t, n) => (n = e == null ? {} : $e(rt(e)), ct(t || !e || !e.__esModule ? et(n, "default", {
28
28
  value: e,
29
29
  enumerable: !0
30
- }) : n, e)), lt = (e) => rt.call(e, "module.exports") ? e["module.exports"] : st($e({}, "__esModule", { value: !0 }), e), ut = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
30
+ }) : n, e)), ut = (e) => it.call(e, "module.exports") ? e["module.exports"] : ct(et({}, "__esModule", { value: !0 }), e), dt = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
31
31
  if (typeof require < "u") return require.apply(this, arguments);
32
32
  throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
33
33
  });
34
34
  //#endregion
35
35
  //#region src/utils/blockTypeLabels.ts
36
- function dt(e, t) {
36
+ function ft(e, t) {
37
37
  return t.blocks[e] ?? e;
38
38
  }
39
39
  //#endregion
40
40
  //#region src/composables/useKeyboardReorder.ts
41
- function ft(e, t) {
42
- let n = z(null), r = z(""), i = null;
41
+ function pt(e, t) {
42
+ let n = R(null), r = R(""), i = null;
43
43
  function a(t) {
44
44
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
45
45
  if (r !== -1) return {
@@ -65,7 +65,7 @@ function ft(e, t) {
65
65
  let r = a(n);
66
66
  if (!r) return "";
67
67
  let i = (r.sectionId ? s(r.sectionId, r.columnIndex ?? 0) : e.content.value.blocks)?.[r.index];
68
- return i ? dt(i.type, t.t) : "";
68
+ return i ? ft(i.type, t.t) : "";
69
69
  }
70
70
  function s(t, n) {
71
71
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -134,13 +134,13 @@ function ft(e, t) {
134
134
  }
135
135
  //#endregion
136
136
  //#region src/composables/useUiTheme.ts
137
- function pt(e) {
137
+ function mt(e) {
138
138
  let t = n("(prefers-color-scheme: dark)");
139
- return { resolvedTheme: A(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
139
+ return { resolvedTheme: k(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
140
140
  }
141
141
  //#endregion
142
142
  //#region src/composables/useThemeStyles.ts
143
- var mt = {
143
+ var ht = {
144
144
  bg: "--tpl-bg",
145
145
  bgElevated: "--tpl-bg-elevated",
146
146
  bgHover: "--tpl-bg-hover",
@@ -164,10 +164,10 @@ var mt = {
164
164
  dangerLight: "--tpl-danger-light",
165
165
  canvasBg: "--tpl-canvas-bg"
166
166
  };
167
- function ht({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
168
- return { themeStyles: A(() => {
167
+ function gt({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
168
+ return { themeStyles: k(() => {
169
169
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
170
- if (a) for (let [e, t] of Object.entries(mt)) {
170
+ if (a) for (let [e, t] of Object.entries(ht)) {
171
171
  let n = a[e];
172
172
  n && (r[t] = n);
173
173
  }
@@ -175,16 +175,36 @@ function ht({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
175
175
  }) };
176
176
  }
177
177
  //#endregion
178
+ //#region src/utils/logger.ts
179
+ var _t = "[Templatical]";
180
+ function vt() {
181
+ return typeof process < "u" && process.env.NODE_ENV === "production";
182
+ }
183
+ var yt = {
184
+ warn(...e) {
185
+ console.warn(_t, ...e);
186
+ },
187
+ error(...e) {
188
+ console.error(_t, ...e);
189
+ },
190
+ debug(...e) {
191
+ vt() || console.debug(_t, ...e);
192
+ },
193
+ info(...e) {
194
+ vt() || console.info(_t, ...e);
195
+ }
196
+ };
197
+ //#endregion
178
198
  //#region src/composables/useBlockRegistry.ts
179
- function gt() {
180
- let e = ye(/* @__PURE__ */ new Map());
199
+ function bt() {
200
+ let e = be(/* @__PURE__ */ new Map());
181
201
  function t(t, n) {
182
- e.value.set(t, n), be(e);
202
+ e.value.set(t, n), xe(e);
183
203
  }
184
204
  function n(t, n) {
185
205
  let r = `custom:${t.type}`, i = {
186
206
  component: n,
187
- createBlock: () => Le(t),
207
+ createBlock: () => Re(t),
188
208
  sidebarItem: {
189
209
  type: r,
190
210
  label: t.name,
@@ -194,7 +214,7 @@ function gt() {
194
214
  },
195
215
  definition: t
196
216
  };
197
- e.value.set(r, i), be(e);
217
+ e.value.set(r, i), xe(e);
198
218
  }
199
219
  function r(t) {
200
220
  if (t.type === "custom") {
@@ -228,7 +248,7 @@ function gt() {
228
248
  strictFilters: !1
229
249
  }).parseAndRender(t.template, e.fieldValues);
230
250
  } catch (t) {
231
- return console.error(`[BlockRegistry] Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
251
+ return yt.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
232
252
  }
233
253
  }
234
254
  function l(t) {
@@ -247,75 +267,75 @@ function gt() {
247
267
  }
248
268
  //#endregion
249
269
  //#region src/utils/registerBuiltInBlocks.ts
250
- var _t = [
270
+ var xt = [
251
271
  {
252
272
  type: "section",
253
273
  label: "Section",
254
- createBlock: Ue
274
+ createBlock: We
255
275
  },
256
276
  {
257
277
  type: "title",
258
278
  label: "Title",
259
- createBlock: qe
279
+ createBlock: Je
260
280
  },
261
281
  {
262
282
  type: "paragraph",
263
283
  label: "Paragraph",
264
- createBlock: He
284
+ createBlock: Ue
265
285
  },
266
286
  {
267
287
  type: "image",
268
288
  label: "Image",
269
- createBlock: Be
289
+ createBlock: Ve
270
290
  },
271
291
  {
272
292
  type: "button",
273
293
  label: "Button",
274
- createBlock: Fe
294
+ createBlock: Ie
275
295
  },
276
296
  {
277
297
  type: "divider",
278
298
  label: "Divider",
279
- createBlock: Re
299
+ createBlock: ze
280
300
  },
281
301
  {
282
302
  type: "video",
283
303
  label: "Video",
284
- createBlock: Je
304
+ createBlock: Ye
285
305
  },
286
306
  {
287
307
  type: "social",
288
308
  label: "Social",
289
- createBlock: We
309
+ createBlock: Ge
290
310
  },
291
311
  {
292
312
  type: "menu",
293
313
  label: "Menu",
294
- createBlock: Ve
314
+ createBlock: He
295
315
  },
296
316
  {
297
317
  type: "table",
298
318
  label: "Table",
299
- createBlock: Ke
319
+ createBlock: qe
300
320
  },
301
321
  {
302
322
  type: "spacer",
303
323
  label: "Spacer",
304
- createBlock: Ge
324
+ createBlock: Ke
305
325
  },
306
326
  {
307
327
  type: "html",
308
328
  label: "HTML",
309
- createBlock: ze
329
+ createBlock: Be
310
330
  },
311
331
  {
312
332
  type: "countdown",
313
333
  label: "Countdown",
314
- createBlock: Ie
334
+ createBlock: Le
315
335
  }
316
336
  ];
317
- function vt(e, t) {
318
- for (let n of _t) {
337
+ function St(e, t) {
338
+ for (let n of xt) {
319
339
  let r = t[n.type];
320
340
  r && e.registerBuiltIn(n.type, {
321
341
  component: r,
@@ -330,18 +350,18 @@ function vt(e, t) {
330
350
  }
331
351
  //#endregion
332
352
  //#region src/utils/keyboardShortcuts.ts
333
- function yt(e) {
353
+ function Ct(e) {
334
354
  let t = e.target;
335
355
  return t.isContentEditable || t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.tagName === "SELECT";
336
356
  }
337
- function bt(e, t) {
357
+ function wt(e, t) {
338
358
  let n = e.metaKey || e.ctrlKey;
339
359
  if (n && e.key === "s") {
340
360
  e.preventDefault(), t.onSave?.();
341
361
  return;
342
362
  }
343
363
  if (n && e.key.toLowerCase() === "z") {
344
- if (yt(e)) return;
364
+ if (Ct(e)) return;
345
365
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
346
366
  return;
347
367
  }
@@ -349,18 +369,18 @@ function bt(e, t) {
349
369
  t.selectBlock(null);
350
370
  return;
351
371
  }
352
- (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !yt(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
372
+ (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Ct(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
353
373
  }
354
374
  //#endregion
355
375
  //#region src/components/blocks/ButtonBlock.vue?vue&type=script&setup=true&lang.ts
356
- var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
376
+ var Tt = { class: "tpl:text-center" }, Et = ["href"], Dt = /* @__PURE__ */ ue({
357
377
  __name: "ButtonBlock",
358
378
  props: {
359
379
  block: {},
360
380
  viewport: {}
361
381
  },
362
382
  setup(e) {
363
- let t = e, n = A(() => {
383
+ let t = e, n = k(() => {
364
384
  let e = {
365
385
  display: "inline-block",
366
386
  padding: `${t.block.buttonPadding.top}px ${t.block.buttonPadding.right}px ${t.block.buttonPadding.bottom}px ${t.block.buttonPadding.left}px`,
@@ -374,35 +394,35 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
374
394
  };
375
395
  return t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
376
396
  });
377
- return (t, r) => (L(), j("div", xt, [M("a", {
397
+ return (t, r) => (I(), j("div", Tt, [M("a", {
378
398
  href: e.block.url || "#",
379
- style: I(n.value),
399
+ style: F(n.value),
380
400
  class: "tpl:cursor-default",
381
- onClick: r[0] ||= Ee(() => {}, ["prevent"])
382
- }, B(e.block.text), 13, St)]));
401
+ onClick: r[0] ||= De(() => {}, ["prevent"])
402
+ }, z(e.block.text), 13, Et)]));
383
403
  }
384
- }), wt = {
404
+ }), Ot = {
385
405
  key: 0,
386
406
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-8 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
387
- }, Tt = {
407
+ }, kt = {
388
408
  key: 1,
389
409
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-4 tpl:text-xs tpl:text-[var(--tpl-text-dim)] tpl:opacity-50"
390
- }, Et = { class: "tpl:text-center" }, Dt = /* @__PURE__ */ P({
410
+ }, At = { class: "tpl:text-center" }, jt = /* @__PURE__ */ ue({
391
411
  __name: "CountdownBlock",
392
412
  props: {
393
413
  block: {},
394
414
  viewport: {}
395
415
  },
396
416
  setup(e) {
397
- let t = e, { t: n } = E(), r = z(Date.now());
417
+ let t = e, { t: n } = E(), r = R(Date.now());
398
418
  i(() => {
399
419
  r.value = Date.now();
400
420
  }, 1e3);
401
- let a = A(() => {
421
+ let a = k(() => {
402
422
  if (!t.block.targetDate) return null;
403
423
  let e = new Date(t.block.targetDate);
404
424
  return isNaN(e.getTime()) ? null : e.getTime();
405
- }), o = A(() => a.value ? r.value >= a.value : !1), s = A(() => {
425
+ }), o = k(() => a.value ? r.value >= a.value : !1), s = k(() => {
406
426
  if (!a.value || o.value) return {
407
427
  days: 0,
408
428
  hours: 0,
@@ -416,7 +436,7 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
416
436
  minutes: Math.floor(t % 3600 / 60),
417
437
  seconds: t % 60
418
438
  };
419
- }), c = A(() => {
439
+ }), c = k(() => {
420
440
  let e = [];
421
441
  return t.block.showDays && e.push({
422
442
  value: String(s.value.days).padStart(2, "0"),
@@ -431,44 +451,44 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
431
451
  value: String(s.value.seconds).padStart(2, "0"),
432
452
  label: t.block.labelSeconds
433
453
  }), e;
434
- }), l = A(() => ({
454
+ }), l = k(() => ({
435
455
  backgroundColor: t.block.backgroundColor,
436
456
  fontFamily: t.block.fontFamily || "inherit"
437
- })), u = A(() => ({
457
+ })), u = k(() => ({
438
458
  fontSize: `${t.block.digitFontSize}px`,
439
459
  fontWeight: "bold",
440
460
  color: t.block.digitColor,
441
461
  lineHeight: "1.2"
442
- })), d = A(() => ({
462
+ })), d = k(() => ({
443
463
  fontSize: `${t.block.labelFontSize}px`,
444
464
  color: t.block.labelColor,
445
465
  marginTop: "4px"
446
- })), f = A(() => ({
466
+ })), f = k(() => ({
447
467
  fontSize: `${t.block.digitFontSize}px`,
448
468
  color: t.block.digitColor,
449
469
  fontFamily: t.block.fontFamily || "inherit"
450
470
  }));
451
- return (t, r) => e.block.targetDate ? o.value && e.block.hideOnExpiry ? (L(), j("div", Tt, B(V(n).countdown.hidden), 1)) : o.value ? (L(), j("div", {
471
+ return (t, r) => e.block.targetDate ? o.value && e.block.hideOnExpiry ? (I(), j("div", kt, z(B(n).countdown.hidden), 1)) : o.value ? (I(), j("div", {
452
472
  key: 2,
453
- style: I(l.value),
473
+ style: F(l.value),
454
474
  class: "tpl:py-4 tpl:text-center"
455
- }, [M("span", { style: I({
475
+ }, [M("span", { style: F({
456
476
  fontSize: `${e.block.digitFontSize}px`,
457
477
  color: e.block.digitColor
458
- }) }, B(e.block.expiredMessage), 5)], 4)) : (L(), j("div", {
478
+ }) }, z(e.block.expiredMessage), 5)], 4)) : (I(), j("div", {
459
479
  key: 3,
460
- style: I(l.value),
480
+ style: F(l.value),
461
481
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:py-4"
462
- }, [(L(!0), j(ae, null, ge(c.value, (t, n) => (L(), j(ae, { key: t.label }, [n > 0 ? (L(), j("span", {
482
+ }, [(I(!0), j(oe, null, _e(c.value, (t, n) => (I(), j(oe, { key: t.label }, [n > 0 ? (I(), j("span", {
463
483
  key: 0,
464
- style: I(f.value),
484
+ style: F(f.value),
465
485
  class: "tpl:self-start"
466
- }, B(e.block.separator), 5)) : se("", !0), M("div", Et, [M("div", { style: I(u.value) }, B(t.value), 5), M("div", { style: I(d.value) }, B(t.label), 5)])], 64))), 128))], 4)) : (L(), j("div", wt, B(V(n).countdown.setDate), 1));
486
+ }, z(e.block.separator), 5)) : A("", !0), M("div", At, [M("div", { style: F(u.value) }, z(t.value), 5), M("div", { style: F(d.value) }, z(t.label), 5)])], 64))), 128))], 4)) : (I(), j("div", Ot, z(B(n).countdown.setDate), 1));
467
487
  }
468
- }), Ot = D("bookmark", [["path", {
488
+ }), Mt = D("bookmark", [["path", {
469
489
  d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",
470
490
  key: "oz39mx"
471
- }]]), kt = D("box", [
491
+ }]]), Nt = D("box", [
472
492
  ["path", {
473
493
  d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
474
494
  key: "hh9hay"
@@ -481,13 +501,13 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
481
501
  d: "M12 22V12",
482
502
  key: "d0xqtd"
483
503
  }]
484
- ]), At = D("code", [["path", {
504
+ ]), Pt = D("code", [["path", {
485
505
  d: "m16 18 6-6-6-6",
486
506
  key: "eg8j8"
487
507
  }], ["path", {
488
508
  d: "m8 6-6 6 6 6",
489
509
  key: "ppft3o"
490
- }]]), jt = D("copy", [["rect", {
510
+ }]]), Ft = D("copy", [["rect", {
491
511
  width: "14",
492
512
  height: "14",
493
513
  x: "8",
@@ -498,7 +518,7 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
498
518
  }], ["path", {
499
519
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
500
520
  key: "zix9uf"
501
- }]]), Mt = D("eye-off", [
521
+ }]]), It = D("eye-off", [
502
522
  ["path", {
503
523
  d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
504
524
  key: "ct8e1f"
@@ -515,10 +535,10 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
515
535
  d: "m2 2 20 20",
516
536
  key: "1ooewy"
517
537
  }]
518
- ]), Nt = D("funnel", [["path", {
538
+ ]), Lt = D("funnel", [["path", {
519
539
  d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
520
540
  key: "sc7q7i"
521
- }]]), Pt = D("grip-vertical", [
541
+ }]]), Rt = D("grip-vertical", [
522
542
  ["circle", {
523
543
  cx: "9",
524
544
  cy: "12",
@@ -555,7 +575,7 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
555
575
  r: "1",
556
576
  key: "f4zoj3"
557
577
  }]
558
- ]), Ft = D("image", [
578
+ ]), zt = D("image", [
559
579
  ["rect", {
560
580
  width: "18",
561
581
  height: "18",
@@ -575,13 +595,13 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
575
595
  d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
576
596
  key: "1xmnt7"
577
597
  }]
578
- ]), It = D("navigation", [["polygon", {
598
+ ]), Bt = D("navigation", [["polygon", {
579
599
  points: "3 11 22 2 13 21 11 13 3 11",
580
600
  key: "1ltx0t"
581
- }]]), Lt = D("puzzle", [["path", {
601
+ }]]), Vt = D("puzzle", [["path", {
582
602
  d: "M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",
583
603
  key: "w46dr5"
584
- }]]), Rt = D("share-2", [
604
+ }]]), Ht = D("share-2", [
585
605
  ["circle", {
586
606
  cx: "18",
587
607
  cy: "5",
@@ -614,7 +634,7 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
614
634
  y2: "10.49",
615
635
  key: "1n3mei"
616
636
  }]
617
- ]), zt = D("table", [
637
+ ]), Ut = D("table", [
618
638
  ["path", {
619
639
  d: "M12 3v18",
620
640
  key: "108xh3"
@@ -635,7 +655,7 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
635
655
  d: "M3 15h18",
636
656
  key: "5xshup"
637
657
  }]
638
- ]), Bt = D("video", [["path", {
658
+ ]), Wt = D("video", [["path", {
639
659
  d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
640
660
  key: "ftymec"
641
661
  }], ["rect", {
@@ -645,44 +665,44 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
645
665
  height: "12",
646
666
  rx: "2",
647
667
  key: "158x01"
648
- }]]), Vt = ["innerHTML"], Ht = [
668
+ }]]), Gt = ["innerHTML"], Kt = [
649
669
  "src",
650
670
  "width",
651
671
  "height"
652
- ], Ut = /* @__PURE__ */ P({
672
+ ], qt = /* @__PURE__ */ ue({
653
673
  __name: "CustomBlockIcon",
654
674
  props: {
655
675
  icon: {},
656
676
  size: {}
657
677
  },
658
678
  setup(e) {
659
- let t = e, n = A(() => t.size ?? 20), r = A(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = A(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/")));
660
- return (t, a) => r.value ? (L(), j("span", {
679
+ let t = e, n = k(() => t.size ?? 20), r = k(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = k(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/")));
680
+ return (t, a) => r.value ? (I(), j("span", {
661
681
  key: 0,
662
682
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
663
- style: I({
683
+ style: F({
664
684
  width: `${n.value}px`,
665
685
  height: `${n.value}px`
666
686
  }),
667
687
  innerHTML: e.icon
668
- }, null, 12, Vt)) : i.value ? (L(), j("img", {
688
+ }, null, 12, Gt)) : i.value ? (I(), j("img", {
669
689
  key: 1,
670
690
  src: e.icon,
671
691
  width: n.value,
672
692
  height: n.value,
673
693
  class: "tpl:inline-block",
674
694
  alt: ""
675
- }, null, 8, Ht)) : (L(), oe(V(kt), {
695
+ }, null, 8, Kt)) : (I(), se(B(Nt), {
676
696
  key: 2,
677
697
  size: n.value,
678
698
  "stroke-width": 1.5
679
699
  }, null, 8, ["size"]));
680
700
  }
681
- }), Wt = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
682
- function Gt(e, t) {
701
+ }), Jt = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
702
+ function Yt(e, t) {
683
703
  let n = null, r = null;
684
704
  function i() {
685
- return e.value ? Array.from(e.value.querySelectorAll(Wt)).filter((e) => e.offsetParent !== null) : [];
705
+ return e.value ? Array.from(e.value.querySelectorAll(Jt)).filter((e) => e.offsetParent !== null) : [];
686
706
  }
687
707
  function o(e) {
688
708
  if (e.key !== "Tab") return;
@@ -700,18 +720,18 @@ function Gt(e, t) {
700
720
  function c() {
701
721
  r?.(), r = null, n && n.focus && (n.focus(), n = null);
702
722
  }
703
- let l = Se([t, e], ([e, t]) => {
723
+ let l = Ce([t, e], ([e, t]) => {
704
724
  e && t ? s() : c();
705
725
  }, { flush: "post" });
706
- he(() => {
726
+ ge(() => {
707
727
  l(), c();
708
728
  });
709
729
  }
710
730
  //#endregion
711
731
  //#region src/composables/useEmoji.ts
712
- function Kt() {
713
- let [e, n] = t(!1), r = ye([]);
714
- Se(e, async (e) => {
732
+ function Xt() {
733
+ let [e, n] = t(!1), r = be([]);
734
+ Ce(e, async (e) => {
715
735
  if (e && r.value.length === 0) {
716
736
  let { emojiCategories: e } = await import("./emojiData-BfWQS72m.js");
717
737
  r.value = e;
@@ -732,8 +752,8 @@ function Kt() {
732
752
  }
733
753
  //#endregion
734
754
  //#region src/composables/useDragDrop.ts
735
- function qt(e) {
736
- let { onBlockMove: t, onBlockAdd: n } = e, r = z(!1), i = z(null), a = z(null);
755
+ function Zt(e) {
756
+ let { onBlockMove: t, onBlockAdd: n } = e, r = R(!1), i = R(null), a = R(null);
737
757
  function o(e) {
738
758
  r.value = !0, i.value = e;
739
759
  }
@@ -782,7 +802,7 @@ function qt(e) {
782
802
  }
783
803
  //#endregion
784
804
  //#region src/composables/useFonts.ts
785
- var Jt = [
805
+ var Qt = [
786
806
  {
787
807
  value: "Arial",
788
808
  label: "Arial"
@@ -811,7 +831,7 @@ var Jt = [
811
831
  value: "Courier New",
812
832
  label: "Courier New"
813
833
  }
814
- ], Yt = {
834
+ ], $t = {
815
835
  arial: "Arial, sans-serif",
816
836
  helvetica: "Helvetica, sans-serif",
817
837
  georgia: "Georgia, serif",
@@ -819,14 +839,14 @@ var Jt = [
819
839
  verdana: "Verdana, sans-serif",
820
840
  "trebuchet ms": "'Trebuchet MS', sans-serif",
821
841
  "courier new": "'Courier New', monospace"
822
- }, Xt = "Arial, sans-serif";
823
- function Zt(e) {
824
- let t = z(e?.customFonts ?? []), n = z(!0), r = z(!1), i = A(() => e?.defaultFallback ?? Xt);
842
+ }, en = "Arial, sans-serif";
843
+ function tn(e) {
844
+ let t = R(e?.customFonts ?? []), n = R(!0), r = R(!1), i = k(() => e?.defaultFallback ?? en);
825
845
  function a(e) {
826
846
  n.value = e;
827
847
  }
828
- let o = A(() => {
829
- let e = [...Jt];
848
+ let o = k(() => {
849
+ let e = [...Qt];
830
850
  if (!n.value) return e.sort((e, t) => e.label.localeCompare(t.label));
831
851
  let r = t.value.map((e) => ({
832
852
  value: e.name,
@@ -839,19 +859,19 @@ function Zt(e) {
839
859
  return o.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
840
860
  }
841
861
  function c(e) {
842
- return Jt.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
862
+ return Qt.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
843
863
  }
844
864
  function l() {
845
865
  if (e?.defaultFont) {
846
- if (!n.value && !c(e.defaultFont)) return Xt;
866
+ if (!n.value && !c(e.defaultFont)) return en;
847
867
  if (s(e.defaultFont)) {
848
868
  let t = o.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
849
869
  if (t) return t.value;
850
870
  }
851
871
  }
852
- return Xt;
872
+ return en;
853
873
  }
854
- let u = A(() => l());
874
+ let u = k(() => l());
855
875
  function d(e) {
856
876
  if (!e) return i.value;
857
877
  let n = t.value.find((t) => t.name.toLowerCase() === e.toLowerCase());
@@ -859,7 +879,7 @@ function Zt(e) {
859
879
  let e = n.fallback ?? i.value;
860
880
  return `'${n.name}', ${e}`;
861
881
  }
862
- return Yt[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
882
+ return $t[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
863
883
  }
864
884
  let f = [];
865
885
  async function p() {
@@ -875,7 +895,7 @@ function Zt(e) {
875
895
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
876
896
  }), f.push(t);
877
897
  } catch (t) {
878
- console.warn(`Failed to load custom font "${e.name}":`, t);
898
+ yt.warn(`Failed to load custom font "${e.name}":`, t);
879
899
  }
880
900
  });
881
901
  await Promise.allSettled(e), r.value = !0;
@@ -884,7 +904,7 @@ function Zt(e) {
884
904
  for (let e of f) e.remove();
885
905
  f.length = 0;
886
906
  }
887
- return ue() && he(m), {
907
+ return de() && ge(m), {
888
908
  fonts: o,
889
909
  defaultFont: u,
890
910
  defaultFallback: i,
@@ -900,9 +920,9 @@ function Zt(e) {
900
920
  }
901
921
  //#endregion
902
922
  //#region src/composables/useRichTextLinkDialog.ts
903
- function Qt(e) {
904
- let t = z(!1), n = z(""), r = z(null);
905
- Gt(r, t);
923
+ function nn(e) {
924
+ let t = R(!1), n = R(""), r = R(null);
925
+ Yt(r, t);
906
926
  function i() {
907
927
  n.value = e.value?.getAttributes("link").href || "", t.value = !0;
908
928
  }
@@ -935,8 +955,8 @@ function Qt(e) {
935
955
  }
936
956
  //#endregion
937
957
  //#region src/composables/useRichTextEditor.ts
938
- function $t(e) {
939
- let t = F(p, null), { mergeTags: n, isEnabled: r, isRequesting: i, requestMergeTag: s, syntax: c } = ie(), l = ye(null), { showLinkDialog: u, linkUrl: d, linkDialogRef: f, openLinkDialog: m, insertLink: h, removeLink: g, closeLinkDialog: _, handleLinkKeydown: v } = Qt(l), { start: y, stop: b } = o(() => l.value?.commands.focus("end"), 0, { immediate: !1 }), x = ye(null), S = z(!0), C = z(null);
958
+ function rn(e) {
959
+ let t = P(p, null), { mergeTags: n, isEnabled: r, isRequesting: i, requestMergeTag: s, syntax: c } = ae(), l = be(null), { showLinkDialog: u, linkUrl: d, linkDialogRef: f, openLinkDialog: m, insertLink: h, removeLink: g, closeLinkDialog: _, handleLinkKeydown: v } = nn(l), { start: y, stop: b } = o(() => l.value?.commands.focus("end"), 0, { immediate: !1 }), x = be(null), S = R(!0), C = R(null);
940
960
  async function ee() {
941
961
  C.value = null, S.value = !0;
942
962
  try {
@@ -955,14 +975,14 @@ function $t(e) {
955
975
  }
956
976
  }), S.value = !1, y();
957
977
  } catch (t) {
958
- console.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), C.value = t instanceof Error ? t.message : "Failed to load editor", S.value = !1;
978
+ yt.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), C.value = t instanceof Error ? t.message : "Failed to load editor", S.value = !1;
959
979
  }
960
980
  }
961
981
  function w() {
962
982
  l.value?.destroy(), l.value = null, ee();
963
983
  }
964
984
  ee();
965
- let T = Se(() => e.blockContent(), (e) => {
985
+ let T = Ce(() => e.blockContent(), (e) => {
966
986
  l.value && l.value.getHTML() !== e && l.value.commands.setContent(e, { emitUpdate: !1 });
967
987
  });
968
988
  function E(t) {
@@ -970,7 +990,7 @@ function $t(e) {
970
990
  let n = t.target;
971
991
  e.onClickOutsideSideEffect?.(n), !(n.closest(".tpl-text-editor-wrapper") || n.closest(".tpl-text-toolbar") || n.closest(".tpl-link-dialog")) && e.onDone();
972
992
  }
973
- a(document, "mousedown", E), pe(() => {
993
+ a(document, "mousedown", E), me(() => {
974
994
  T(), b(), l.value?.destroy();
975
995
  });
976
996
  async function D() {
@@ -1003,20 +1023,20 @@ function $t(e) {
1003
1023
  }
1004
1024
  //#endregion
1005
1025
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
1006
- var en = { class: "tpl:w-full" }, tn = {
1026
+ var an = { class: "tpl:w-full" }, on = {
1007
1027
  key: 0,
1008
1028
  class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
1009
- }, nn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, rn = {
1029
+ }, sn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, cn = {
1010
1030
  key: 1,
1011
1031
  class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
1012
- }, an = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, on = {
1032
+ }, ln = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, un = {
1013
1033
  key: 2,
1014
1034
  class: "tpl:relative"
1015
- }, sn = ["innerHTML"], cn = {
1035
+ }, dn = ["innerHTML"], fn = {
1016
1036
  key: 0,
1017
1037
  class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
1018
1038
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1019
- }, ln = /* @__PURE__ */ P({
1039
+ }, pn = /* @__PURE__ */ ue({
1020
1040
  __name: "CustomBlock",
1021
1041
  props: {
1022
1042
  block: {},
@@ -1024,9 +1044,9 @@ var en = { class: "tpl:w-full" }, tn = {
1024
1044
  },
1025
1045
  emits: ["fetchData"],
1026
1046
  setup(t, { emit: n }) {
1027
- let r = t, i = n, { t: a } = E(), o = F(b, null), s = z(""), c = z(!1), l = A(() => o?.getDefinition(r.block.customType)), u = A(() => !!l.value), { isFetching: d, fetch: f, needsFetch: p, hasDataSource: m } = Ae({
1047
+ let r = t, i = n, { t: a } = E(), o = P(b, null), s = R(""), c = R(!1), l = k(() => o?.getDefinition(r.block.customType)), u = k(() => !!l.value), { isFetching: d, fetch: f, needsFetch: p, hasDataSource: m } = je({
1028
1048
  definition: l,
1029
- block: A(() => r.block),
1049
+ block: k(() => r.block),
1030
1050
  onUpdate: (e, t) => {
1031
1051
  i("fetchData", {
1032
1052
  fieldValues: e,
@@ -1046,73 +1066,73 @@ var en = { class: "tpl:w-full" }, tn = {
1046
1066
  }
1047
1067
  }
1048
1068
  let g = e(h, 150);
1049
- return me(() => {
1069
+ return he(() => {
1050
1070
  h();
1051
- }), Se(() => r.block.fieldValues, () => {
1071
+ }), Ce(() => r.block.fieldValues, () => {
1052
1072
  g();
1053
- }, { deep: !0 }), (e, t) => (L(), j("div", en, [u.value ? c.value ? (L(), j("div", rn, [N(V(ne), {
1073
+ }, { deep: !0 }), (e, t) => (I(), j("div", an, [u.value ? c.value ? (I(), j("div", cn, [N(B(re), {
1054
1074
  size: 24,
1055
1075
  class: "tpl:text-[var(--tpl-danger)]"
1056
- }), M("span", an, B(V(a).customBlocks.renderError), 1)])) : (L(), j("div", on, [M("div", { innerHTML: s.value }, null, 8, sn), V(m) && V(p) ? (L(), j("div", cn, [V(d) ? (L(), oe(re, {
1076
+ }), M("span", ln, z(B(a).customBlocks.renderError), 1)])) : (I(), j("div", un, [M("div", { innerHTML: s.value }, null, 8, dn), B(m) && B(p) ? (I(), j("div", fn, [B(d) ? (I(), se(ie, {
1057
1077
  key: 1,
1058
1078
  class: "tpl:w-48"
1059
- })) : (L(), j("button", {
1079
+ })) : (I(), j("button", {
1060
1080
  key: 0,
1061
1081
  type: "button",
1062
1082
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-sm tpl:transition-all tpl:duration-150 hover:tpl:border-[var(--tpl-primary)] hover:tpl:shadow-md tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
1063
- onClick: t[0] ||= Ee((...e) => V(f) && V(f)(...e), ["stop"])
1064
- }, [l.value?.icon ? (L(), oe(Ut, {
1083
+ onClick: t[0] ||= De((...e) => B(f) && B(f)(...e), ["stop"])
1084
+ }, [l.value?.icon ? (I(), se(qt, {
1065
1085
  key: 0,
1066
1086
  icon: l.value.icon,
1067
1087
  size: 16
1068
- }, null, 8, ["icon"])) : se("", !0), ce(" " + B(l.value?.dataSource?.label || V(a).customBlocks.dataSource.fetchButton), 1)]))])) : se("", !0)])) : (L(), j("div", tn, [N(V(Lt), {
1088
+ }, null, 8, ["icon"])) : A("", !0), ce(" " + z(l.value?.dataSource?.label || B(a).customBlocks.dataSource.fetchButton), 1)]))])) : A("", !0)])) : (I(), j("div", on, [N(B(Vt), {
1069
1089
  size: 24,
1070
1090
  class: "tpl:text-[var(--tpl-warning)]"
1071
- }), M("span", nn, B(V(a).customBlocks.definitionNotFound), 1)]))]));
1091
+ }), M("span", sn, z(B(a).customBlocks.definitionNotFound), 1)]))]));
1072
1092
  }
1073
- }), un = { class: "tpl:w-full" }, dn = /* @__PURE__ */ P({
1093
+ }), mn = { class: "tpl:w-full" }, hn = /* @__PURE__ */ ue({
1074
1094
  __name: "DividerBlock",
1075
1095
  props: {
1076
1096
  block: {},
1077
1097
  viewport: {}
1078
1098
  },
1079
1099
  setup(e) {
1080
- let t = e, n = A(() => ({
1100
+ let t = e, n = k(() => ({
1081
1101
  borderTop: `${t.block.thickness}px ${t.block.lineStyle} ${t.block.color}`,
1082
1102
  width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
1083
1103
  margin: t.block.width === "full" ? "0" : "0 auto"
1084
1104
  }));
1085
- return (e, t) => (L(), j("div", un, [M("hr", {
1105
+ return (e, t) => (I(), j("div", mn, [M("hr", {
1086
1106
  class: "tpl:m-0 tpl:border-none",
1087
- style: I(n.value)
1107
+ style: F(n.value)
1088
1108
  }, null, 4)]));
1089
1109
  }
1090
- }), fn = { class: "tpl:w-full" }, pn = { class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]" }, mn = {
1110
+ }), gn = { class: "tpl:w-full" }, _n = { class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]" }, vn = {
1091
1111
  key: 0,
1092
1112
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1093
- }, hn = {
1113
+ }, yn = {
1094
1114
  key: 1,
1095
1115
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1096
- }, gn = /* @__PURE__ */ P({
1116
+ }, bn = /* @__PURE__ */ ue({
1097
1117
  __name: "HtmlBlock",
1098
1118
  props: {
1099
1119
  block: {},
1100
1120
  viewport: {}
1101
1121
  },
1102
1122
  setup(e) {
1103
- let t = e, { t: n } = E(), r = A(() => t.block.content.trim().length > 0);
1104
- return (e, t) => (L(), j("div", fn, [M("div", pn, [N(V(At), {
1123
+ let t = e, { t: n } = E(), r = k(() => t.block.content.trim().length > 0);
1124
+ return (e, t) => (I(), j("div", gn, [M("div", _n, [N(B(Pt), {
1105
1125
  size: 24,
1106
1126
  class: "tpl:text-[var(--tpl-text-dim)]"
1107
- }), r.value ? (L(), j("span", mn, B(V(n).html.preview), 1)) : (L(), j("span", hn, B(V(n).html.empty), 1))])]));
1127
+ }), r.value ? (I(), j("span", vn, z(B(n).html.preview), 1)) : (I(), j("span", yn, z(B(n).html.empty), 1))])]));
1108
1128
  }
1109
- }), _n = ["href"], vn = ["src", "alt"], yn = ["src", "alt"], bn = {
1129
+ }), xn = ["href"], Sn = ["src", "alt"], Cn = ["src", "alt"], wn = {
1110
1130
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1111
1131
  style: { opacity: "0.7" }
1112
- }, xn = ["href"], Sn = ["src", "alt"], Cn = ["src", "alt"], wn = {
1132
+ }, Tn = ["href"], En = ["src", "alt"], Dn = ["src", "alt"], On = {
1113
1133
  key: 3,
1114
1134
  class: "tpl:flex tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
1115
- }, Tn = ["aria-label"], En = { key: 1 }, Dn = /* @__PURE__ */ P({
1135
+ }, kn = ["aria-label"], An = { key: 1 }, jn = /* @__PURE__ */ ue({
1116
1136
  __name: "ImageBlock",
1117
1137
  props: {
1118
1138
  block: {},
@@ -1120,7 +1140,7 @@ var en = { class: "tpl:w-full" }, tn = {
1120
1140
  },
1121
1141
  emits: ["update"],
1122
1142
  setup(e, { emit: t }) {
1123
- let n = e, r = t, { t: i } = E(), { syntax: a } = ie(), o = F(ee, null), s = A(() => !!o);
1143
+ let n = e, r = t, { t: i } = E(), { syntax: a } = ae(), o = P(ee, null), s = k(() => !!o);
1124
1144
  async function c() {
1125
1145
  let e = await o?.({ accept: ["images"] });
1126
1146
  if (e) {
@@ -1128,82 +1148,82 @@ var en = { class: "tpl:w-full" }, tn = {
1128
1148
  e.alt && (t.alt = e.alt), r("update", t);
1129
1149
  }
1130
1150
  }
1131
- let l = A(() => ({ textAlign: n.block.align })), u = A(() => ({
1151
+ let l = k(() => ({ textAlign: n.block.align })), u = k(() => ({
1132
1152
  maxWidth: "100%",
1133
1153
  width: n.block.width === "full" ? "100%" : `${n.block.width}px`,
1134
1154
  display: "block",
1135
1155
  margin: n.block.align === "center" ? "0 auto" : void 0,
1136
1156
  marginLeft: n.block.align === "right" ? "auto" : void 0
1137
- })), d = A(() => Pe(n.block.src, a));
1138
- return (t, n) => (L(), j("div", {
1157
+ })), d = k(() => Fe(n.block.src, a));
1158
+ return (t, n) => (I(), j("div", {
1139
1159
  class: "tpl:w-full",
1140
- style: I(l.value)
1141
- }, [e.block.src && d.value && e.block.placeholderUrl ? (L(), j(ae, { key: 0 }, [e.block.linkUrl ? (L(), j("a", {
1160
+ style: F(l.value)
1161
+ }, [e.block.src && d.value && e.block.placeholderUrl ? (I(), j(oe, { key: 0 }, [e.block.linkUrl ? (I(), j("a", {
1142
1162
  key: 0,
1143
1163
  href: e.block.linkUrl,
1144
1164
  target: "_blank",
1145
1165
  rel: "noopener noreferrer",
1146
- onClick: n[0] ||= Ee(() => {}, ["prevent"])
1166
+ onClick: n[0] ||= De(() => {}, ["prevent"])
1147
1167
  }, [M("img", {
1148
1168
  class: "tpl:border-0",
1149
1169
  loading: "lazy",
1150
1170
  src: e.block.placeholderUrl,
1151
- alt: e.block.alt || V(i).image.altTextPlaceholder,
1152
- style: I(u.value)
1153
- }, null, 12, vn)], 8, _n)) : (L(), j("img", {
1171
+ alt: e.block.alt || B(i).image.altTextPlaceholder,
1172
+ style: F(u.value)
1173
+ }, null, 12, Sn)], 8, xn)) : (I(), j("img", {
1154
1174
  key: 1,
1155
1175
  class: "tpl:border-0",
1156
1176
  src: e.block.placeholderUrl,
1157
1177
  alt: e.block.alt,
1158
- style: I(u.value)
1159
- }, null, 12, yn))], 64)) : e.block.src && d.value ? (L(), j("div", {
1178
+ style: F(u.value)
1179
+ }, null, 12, Cn))], 64)) : e.block.src && d.value ? (I(), j("div", {
1160
1180
  key: 1,
1161
1181
  class: "tpl:!flex tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
1162
- style: I([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
1163
- }, [N(V(Ft), {
1182
+ style: F([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
1183
+ }, [N(B(zt), {
1164
1184
  size: 32,
1165
1185
  "stroke-width": 1.5,
1166
1186
  class: "tpl:text-[var(--tpl-primary)]",
1167
1187
  style: { opacity: "0.5" }
1168
- }), M("span", bn, B(e.block.src), 1)], 4)) : e.block.src ? (L(), j(ae, { key: 2 }, [e.block.linkUrl ? (L(), j("a", {
1188
+ }), M("span", wn, z(e.block.src), 1)], 4)) : e.block.src ? (I(), j(oe, { key: 2 }, [e.block.linkUrl ? (I(), j("a", {
1169
1189
  key: 0,
1170
1190
  href: e.block.linkUrl,
1171
1191
  target: "_blank",
1172
1192
  rel: "noopener noreferrer",
1173
- onClick: n[1] ||= Ee(() => {}, ["prevent"])
1193
+ onClick: n[1] ||= De(() => {}, ["prevent"])
1174
1194
  }, [M("img", {
1175
1195
  class: "tpl:border-0",
1176
1196
  loading: "lazy",
1177
1197
  src: e.block.src,
1178
- alt: e.block.alt || V(i).image.altTextPlaceholder,
1179
- style: I(u.value)
1180
- }, null, 12, Sn)], 8, xn)) : (L(), j("img", {
1198
+ alt: e.block.alt || B(i).image.altTextPlaceholder,
1199
+ style: F(u.value)
1200
+ }, null, 12, En)], 8, Tn)) : (I(), j("img", {
1181
1201
  key: 1,
1182
1202
  class: "tpl:border-0",
1183
1203
  src: e.block.src,
1184
1204
  alt: e.block.alt,
1185
- style: I(u.value)
1186
- }, null, 12, Cn))], 64)) : (L(), j("div", wn, [s.value ? (L(), j("button", {
1205
+ style: F(u.value)
1206
+ }, null, 12, Dn))], 64)) : (I(), j("div", On, [s.value ? (I(), j("button", {
1187
1207
  key: 0,
1188
- "aria-label": V(i).image.browseMedia,
1208
+ "aria-label": B(i).image.browseMedia,
1189
1209
  class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
1190
- onClick: Ee(c, ["stop"])
1191
- }, [N(V(Ft), {
1210
+ onClick: De(c, ["stop"])
1211
+ }, [N(B(zt), {
1192
1212
  size: 14,
1193
1213
  "stroke-width": 1.5
1194
- }), ce(" " + B(V(i).image.browseMedia), 1)], 8, Tn)) : (L(), j("span", En, B(V(i).image.clickToAdd), 1))]))], 4));
1214
+ }), ce(" " + z(B(i).image.browseMedia), 1)], 8, kn)) : (I(), j("span", An, z(B(i).image.clickToAdd), 1))]))], 4));
1195
1215
  }
1196
- }), On = { class: "tpl:w-full" }, kn = ["href"], An = {
1216
+ }), Mn = { class: "tpl:w-full" }, Nn = ["href"], Pn = {
1197
1217
  key: 1,
1198
1218
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
1199
- }, jn = /* @__PURE__ */ P({
1219
+ }, Fn = /* @__PURE__ */ ue({
1200
1220
  __name: "MenuBlock",
1201
1221
  props: {
1202
1222
  block: {},
1203
1223
  viewport: {}
1204
1224
  },
1205
1225
  setup(e) {
1206
- let t = e, { t: n } = E(), r = A(() => ({
1226
+ let t = e, { t: n } = E(), r = k(() => ({
1207
1227
  display: "flex",
1208
1228
  flexWrap: "wrap",
1209
1229
  gap: `0 ${t.block.spacing}px`,
@@ -1211,35 +1231,35 @@ var en = { class: "tpl:w-full" }, tn = {
1211
1231
  fontSize: `${t.block.fontSize}px`,
1212
1232
  fontFamily: t.block.fontFamily || "inherit",
1213
1233
  alignItems: "center"
1214
- })), i = A(() => t.block.items.length > 0);
1234
+ })), i = k(() => t.block.items.length > 0);
1215
1235
  function a(e) {
1216
1236
  return e || t.block.linkColor || t.block.color;
1217
1237
  }
1218
- return (t, o) => (L(), j("div", On, [i.value ? (L(), j("div", {
1238
+ return (t, o) => (I(), j("div", Mn, [i.value ? (I(), j("div", {
1219
1239
  key: 0,
1220
- style: I(r.value)
1221
- }, [(L(!0), j(ae, null, ge(e.block.items, (t, n) => (L(), j(ae, { key: t.id }, [M("a", {
1240
+ style: F(r.value)
1241
+ }, [(I(!0), j(oe, null, _e(e.block.items, (t, n) => (I(), j(oe, { key: t.id }, [M("a", {
1222
1242
  href: t.url || "#",
1223
1243
  class: "tpl:cursor-default tpl:no-underline",
1224
- style: I({
1244
+ style: F({
1225
1245
  color: a(t.color),
1226
1246
  fontWeight: t.bold ? "bold" : "normal",
1227
1247
  textDecoration: t.underline ? "underline" : "none"
1228
1248
  }),
1229
- onClick: o[0] ||= Ee(() => {}, ["prevent"])
1230
- }, B(t.text || "..."), 13, kn), n < e.block.items.length - 1 ? (L(), j("span", {
1249
+ onClick: o[0] ||= De(() => {}, ["prevent"])
1250
+ }, z(t.text || "..."), 13, Nn), n < e.block.items.length - 1 ? (I(), j("span", {
1231
1251
  key: 0,
1232
- style: I({
1252
+ style: F({
1233
1253
  color: e.block.separatorColor,
1234
1254
  padding: `0 ${e.block.spacing}px`
1235
1255
  })
1236
- }, B(e.block.separator), 5)) : se("", !0)], 64))), 128))], 4)) : (L(), j("div", An, [N(V(It), { size: 16 }), M("span", null, B(V(n).menu.addLinks), 1)]))]));
1256
+ }, z(e.block.separator), 5)) : A("", !0)], 64))), 128))], 4)) : (I(), j("div", Pn, [N(B(Bt), { size: 16 }), M("span", null, z(B(n).menu.addLinks), 1)]))]));
1237
1257
  }
1238
1258
  });
1239
1259
  //#endregion
1240
1260
  //#region src/composables/useEditableTextBlock.ts
1241
- function Mn(e) {
1242
- let t = F(m, []), { syntax: n } = ie(), i = A(() => Ye(Xe(e(), t), n)), a = z(!1), o = z(null), { top: s, left: c } = r(o), l = A(() => ({
1261
+ function In(e) {
1262
+ let t = P(m, []), { syntax: n } = ae(), i = k(() => Xe(Ze(e(), t), n)), a = R(!1), o = R(null), { top: s, left: c } = r(o), l = k(() => ({
1243
1263
  top: s.value - 8,
1244
1264
  left: c.value
1245
1265
  }));
@@ -1260,45 +1280,45 @@ function Mn(e) {
1260
1280
  }
1261
1281
  //#endregion
1262
1282
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1263
- var Nn = ["innerHTML"], Pn = /* @__PURE__ */ P({
1283
+ var Ln = ["innerHTML"], Rn = /* @__PURE__ */ ue({
1264
1284
  __name: "ParagraphBlock",
1265
1285
  props: {
1266
1286
  block: {},
1267
1287
  viewport: {}
1268
1288
  },
1269
1289
  setup(e) {
1270
- let t = e, n = le(() => import("./ParagraphEditor-CcMPnbDr.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Mn(() => t.block.content);
1271
- return (t, l) => (L(), j("div", {
1290
+ let t = e, n = le(() => import("./ParagraphEditor-CoQ3NlS7.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = In(() => t.block.content);
1291
+ return (t, l) => (I(), j("div", {
1272
1292
  ref_key: "blockRef",
1273
1293
  ref: i,
1274
1294
  class: "tpl:min-h-[1em] tpl:w-full",
1275
- onDblclick: l[0] ||= (...e) => V(s) && V(s)(...e)
1276
- }, [V(r) ? (L(), oe(V(n), {
1295
+ onDblclick: l[0] ||= (...e) => B(s) && B(s)(...e)
1296
+ }, [B(r) ? (I(), se(B(n), {
1277
1297
  key: 0,
1278
1298
  block: e.block,
1279
- "toolbar-position": V(a),
1280
- onDone: V(c)
1299
+ "toolbar-position": B(a),
1300
+ onDone: B(c)
1281
1301
  }, null, 8, [
1282
1302
  "block",
1283
1303
  "toolbar-position",
1284
1304
  "onDone"
1285
- ])) : (L(), j("div", {
1305
+ ])) : (I(), j("div", {
1286
1306
  key: 1,
1287
1307
  class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_li]:tpl:my-1 [&_ol]:tpl:my-2 [&_ol]:tpl:pl-6 [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0 [&_s]:tpl:line-through [&_sub]:tpl:align-sub [&_sub]:tpl:text-[0.75em] [&_sup]:tpl:align-super [&_sup]:tpl:text-[0.75em] [&_ul]:tpl:my-2 [&_ul]:tpl:pl-6",
1288
- innerHTML: V(o)
1289
- }, null, 8, Nn))], 544));
1308
+ innerHTML: B(o)
1309
+ }, null, 8, Ln))], 544));
1290
1310
  }
1291
1311
  });
1292
1312
  //#endregion
1293
1313
  //#region src/utils/blockComponentResolver.ts
1294
- function Fn(e, t, n) {
1314
+ function zn(e, t, n) {
1295
1315
  if (t) {
1296
1316
  let n = t.getComponent(e);
1297
1317
  if (n) return n;
1298
1318
  }
1299
1319
  return n[e.type] ?? null;
1300
1320
  }
1301
- function In(e) {
1321
+ function Bn(e) {
1302
1322
  let { padding: t, margin: n, backgroundColor: r } = e.styles;
1303
1323
  return {
1304
1324
  padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
@@ -1308,20 +1328,20 @@ function In(e) {
1308
1328
  }
1309
1329
  //#endregion
1310
1330
  //#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
1311
- var Ln = ["data-block-id", "data-block-type"], Rn = ["aria-label"], zn = [
1331
+ var Vn = ["data-block-id", "data-block-type"], Hn = ["aria-label"], Un = [
1312
1332
  "aria-label",
1313
1333
  "aria-pressed",
1314
1334
  "title"
1315
- ], Bn = ["aria-label", "title"], Vn = ["aria-label", "title"], Hn = ["aria-label", "title"], Un = {
1335
+ ], Wn = ["aria-label", "title"], Gn = ["aria-label", "title"], Kn = ["aria-label", "title"], qn = {
1316
1336
  key: 1,
1317
1337
  class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
1318
- }, Wn = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, Gn = {
1338
+ }, Jn = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, Yn = {
1319
1339
  key: 2,
1320
1340
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
1321
- }, Kn = ["aria-label", "title"], qn = {
1341
+ }, Xn = ["aria-label", "title"], Zn = {
1322
1342
  key: 3,
1323
1343
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
1324
- }, Jn = ["aria-label"], Yn = /* @__PURE__ */ O(/* @__PURE__ */ P({
1344
+ }, Qn = ["aria-label"], $n = /* @__PURE__ */ te(/* @__PURE__ */ ue({
1325
1345
  __name: "BlockWrapper",
1326
1346
  props: {
1327
1347
  block: {},
@@ -1331,9 +1351,9 @@ var Ln = ["data-block-id", "data-block-type"], Rn = ["aria-label"], zn = [
1331
1351
  },
1332
1352
  emits: ["select"],
1333
1353
  setup(e, { emit: t }) {
1334
- let n = e, r = t, { t: i, format: a } = E(), o = F(h, null), s = z(null), c = A(() => o?.liftedBlockId.value === n.block.id), l = A(() => c.value ? a(i.blockActions.dragLifted, { block: n.block.type }) : i.blockActions.drag);
1354
+ let n = e, r = t, { t: i, format: a } = E(), o = P(h, null), s = R(null), c = k(() => o?.liftedBlockId.value === n.block.id), l = k(() => c.value ? a(i.blockActions.dragLifted, { block: n.block.type }) : i.blockActions.drag);
1335
1355
  async function u() {
1336
- await de(), s.value?.focus();
1356
+ await fe(), s.value?.focus();
1337
1357
  }
1338
1358
  function d(e) {
1339
1359
  if (o) {
@@ -1354,11 +1374,11 @@ var Ln = ["data-block-id", "data-block-type"], Rn = ["aria-label"], zn = [
1354
1374
  }
1355
1375
  }
1356
1376
  }
1357
- let f = A(() => !n.viewport || !n.block.visibility ? !1 : n.block.visibility[n.viewport] === !1), p = A(() => n.viewport ? {
1377
+ let f = k(() => !n.viewport || !n.block.visibility ? !1 : n.block.visibility[n.viewport] === !1), p = k(() => n.viewport ? {
1358
1378
  desktop: i.viewport.desktop,
1359
1379
  tablet: i.viewport.tablet,
1360
1380
  mobile: i.viewport.mobile
1361
- }[n.viewport] ?? n.viewport : ""), m = A(() => !!n.block.displayCondition), v = F(g, null), y = F(_, null), b = F(S, {}), x = A(() => !!b.savedModules), C = A(() => b.comments?.getBlockCount(n.block.id) ?? 0), ee = A(() => In(n.block));
1381
+ }[n.viewport] ?? n.viewport : ""), m = k(() => !!n.block.displayCondition), v = P(g, null), y = P(_, null), b = P(S, {}), x = k(() => !!b.savedModules), C = k(() => b.comments?.getBlockCount(n.block.id) ?? 0), ee = k(() => Bn(n.block));
1362
1382
  function w(e) {
1363
1383
  n.previewMode || (e.stopPropagation(), r("select"));
1364
1384
  }
@@ -1368,28 +1388,28 @@ var Ln = ["data-block-id", "data-block-type"], Rn = ["aria-label"], zn = [
1368
1388
  function D() {
1369
1389
  v?.duplicateBlock(n.block);
1370
1390
  }
1371
- function O() {
1391
+ function te() {
1372
1392
  b.savedModules?.openSaveDialog(n.block.id);
1373
1393
  }
1374
- function ne() {
1394
+ function re() {
1375
1395
  y?.toggleBlock(n.block.id);
1376
1396
  }
1377
- return (t, n) => (L(), j("div", {
1378
- class: fe(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow tpl:duration-150", {
1397
+ return (t, n) => (I(), j("div", {
1398
+ class: pe(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow tpl:duration-150", {
1379
1399
  "tpl-block--selected": e.isSelected,
1380
1400
  "tpl-block--idle": !e.isSelected,
1381
1401
  "tpl-block--lifted": c.value
1382
1402
  }]),
1383
- style: I(ee.value),
1403
+ style: F(ee.value),
1384
1404
  "data-block-id": e.block.id,
1385
1405
  "data-block-type": e.block.type,
1386
1406
  draggable: "false",
1387
1407
  onClick: w
1388
1408
  }, [
1389
- e.isSelected ? (L(), j("div", {
1409
+ e.isSelected ? (I(), j("div", {
1390
1410
  key: 0,
1391
1411
  role: "toolbar",
1392
- "aria-label": V(i).blockActions.drag,
1412
+ "aria-label": B(i).blockActions.drag,
1393
1413
  class: "tpl-block-actions tpl-fade-in tpl:absolute tpl:-right-2 tpl:top-1/2 tpl:z-10 tpl:flex tpl:-translate-y-1/2 tpl:translate-x-full tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:shadow-[var(--tpl-shadow-md)] tpl:border tpl:border-[var(--tpl-border)]"
1394
1414
  }, [
1395
1415
  M("button", {
@@ -1399,108 +1419,108 @@ var Ln = ["data-block-id", "data-block-type"], Rn = ["aria-label"], zn = [
1399
1419
  "aria-label": l.value,
1400
1420
  "aria-pressed": c.value,
1401
1421
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
1402
- title: V(i).blockActions.drag,
1422
+ title: B(i).blockActions.drag,
1403
1423
  onKeydown: d
1404
- }, [N(V(Pt), {
1424
+ }, [N(B(Rt), {
1405
1425
  size: 14,
1406
1426
  "stroke-width": 1.5
1407
- })], 40, zn),
1427
+ })], 40, Un),
1408
1428
  M("button", {
1409
1429
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
1410
- "aria-label": V(i).blockActions.duplicate,
1411
- title: V(i).blockActions.duplicate,
1412
- onClick: Ee(D, ["stop"])
1413
- }, [N(V(jt), {
1430
+ "aria-label": B(i).blockActions.duplicate,
1431
+ title: B(i).blockActions.duplicate,
1432
+ onClick: De(D, ["stop"])
1433
+ }, [N(B(Ft), {
1414
1434
  size: 14,
1415
1435
  "stroke-width": 1.5
1416
- })], 8, Bn),
1417
- x.value ? (L(), j("button", {
1436
+ })], 8, Wn),
1437
+ x.value ? (I(), j("button", {
1418
1438
  key: 0,
1419
1439
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
1420
- "aria-label": V(i).blockActions.saveAsModule,
1421
- title: V(i).blockActions.saveAsModule,
1422
- onClick: Ee(O, ["stop"])
1423
- }, [N(V(Ot), {
1440
+ "aria-label": B(i).blockActions.saveAsModule,
1441
+ title: B(i).blockActions.saveAsModule,
1442
+ onClick: De(te, ["stop"])
1443
+ }, [N(B(Mt), {
1424
1444
  size: 14,
1425
1445
  "stroke-width": 1.5
1426
- })], 8, Vn)) : se("", !0),
1446
+ })], 8, Gn)) : A("", !0),
1427
1447
  M("button", {
1428
1448
  class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
1429
- "aria-label": V(i).blockActions.delete,
1430
- title: V(i).blockActions.delete,
1431
- onClick: Ee(T, ["stop"])
1432
- }, [N(V(k), {
1449
+ "aria-label": B(i).blockActions.delete,
1450
+ title: B(i).blockActions.delete,
1451
+ onClick: De(T, ["stop"])
1452
+ }, [N(B(O), {
1433
1453
  size: 14,
1434
1454
  "stroke-width": 1.5
1435
- })], 8, Hn)
1436
- ], 8, Rn)) : se("", !0),
1437
- f.value ? (L(), j("div", Un, [M("span", Wn, [N(V(Mt), {
1455
+ })], 8, Kn)
1456
+ ], 8, Hn)) : A("", !0),
1457
+ f.value ? (I(), j("div", qn, [M("span", Jn, [N(B(It), {
1438
1458
  size: 12,
1439
1459
  "stroke-width": 1.5
1440
- }), ce(" " + B(V(a)(V(i).blockActions.hiddenOnViewport, { viewport: p.value })), 1)])])) : se("", !0),
1441
- m.value && !f.value ? (L(), j("div", Gn, [M("button", {
1460
+ }), ce(" " + z(B(a)(B(i).blockActions.hiddenOnViewport, { viewport: p.value })), 1)])])) : A("", !0),
1461
+ m.value && !f.value ? (I(), j("div", Yn, [M("button", {
1442
1462
  class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
1443
- "aria-label": V(i).blockActions.conditionToggle,
1463
+ "aria-label": B(i).blockActions.conditionToggle,
1444
1464
  title: e.block.displayCondition?.label,
1445
- onClick: Ee(ne, ["stop"])
1446
- }, [N(V(Nt), {
1465
+ onClick: De(re, ["stop"])
1466
+ }, [N(B(Lt), {
1447
1467
  size: 12,
1448
1468
  "stroke-width": 2
1449
- })], 8, Kn)])) : se("", !0),
1450
- C.value > 0 && !f.value ? (L(), j("div", qn, [M("button", {
1469
+ })], 8, Xn)])) : A("", !0),
1470
+ C.value > 0 && !f.value ? (I(), j("div", Zn, [M("button", {
1451
1471
  class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]",
1452
- "aria-label": V(a)(V(i).blockActions.comments, { count: String(C.value) }),
1453
- onClick: n[0] ||= Ee((t) => V(b).comments?.openForBlock(e.block.id), ["stop"])
1454
- }, [N(V(te), {
1472
+ "aria-label": B(a)(B(i).blockActions.comments, { count: String(C.value) }),
1473
+ onClick: n[0] ||= De((t) => B(b).comments?.openForBlock(e.block.id), ["stop"])
1474
+ }, [N(B(ne), {
1455
1475
  size: 12,
1456
1476
  "stroke-width": 2.5
1457
- }), ce(" " + B(C.value), 1)], 8, Jn)])) : se("", !0),
1458
- _e(t.$slots, "default", {}, void 0, !0)
1459
- ], 14, Ln));
1477
+ }), ce(" " + z(C.value), 1)], 8, Qn)])) : A("", !0),
1478
+ ve(t.$slots, "default", {}, void 0, !0)
1479
+ ], 14, Vn));
1460
1480
  }
1461
- }), [["__scopeId", "data-v-8d0416c4"]]), Xn = ["innerHTML"], Zn = /* @__PURE__ */ P({
1481
+ }), [["__scopeId", "data-v-8d0416c4"]]), er = ["innerHTML"], tr = /* @__PURE__ */ ue({
1462
1482
  __name: "TitleBlock",
1463
1483
  props: {
1464
1484
  block: {},
1465
1485
  viewport: {}
1466
1486
  },
1467
1487
  setup(e) {
1468
- let t = e, n = le(() => import("./TitleEditor-D9DPjQkX.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Mn(() => t.block.content), l = A(() => {
1488
+ let t = e, n = le(() => import("./TitleEditor-C7fds2Nc.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = In(() => t.block.content), l = k(() => {
1469
1489
  let e = {
1470
- fontSize: `${Ne[t.block.level]}px`,
1490
+ fontSize: `${Pe[t.block.level]}px`,
1471
1491
  color: t.block.color,
1472
1492
  textAlign: t.block.textAlign
1473
1493
  };
1474
1494
  return t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
1475
1495
  });
1476
- return (t, u) => (L(), j("div", {
1496
+ return (t, u) => (I(), j("div", {
1477
1497
  ref_key: "blockRef",
1478
1498
  ref: i,
1479
1499
  class: "tpl:min-h-[1em] tpl:w-full",
1480
- style: I(l.value),
1481
- onDblclick: u[0] ||= (...e) => V(s) && V(s)(...e)
1482
- }, [V(r) ? (L(), oe(V(n), {
1500
+ style: F(l.value),
1501
+ onDblclick: u[0] ||= (...e) => B(s) && B(s)(...e)
1502
+ }, [B(r) ? (I(), se(B(n), {
1483
1503
  key: 0,
1484
1504
  block: e.block,
1485
- "toolbar-position": V(a),
1486
- onDone: V(c)
1505
+ "toolbar-position": B(a),
1506
+ onDone: B(c)
1487
1507
  }, null, 8, [
1488
1508
  "block",
1489
1509
  "toolbar-position",
1490
1510
  "onDone"
1491
- ])) : (L(), j("div", {
1511
+ ])) : (I(), j("div", {
1492
1512
  key: 1,
1493
1513
  class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0",
1494
- innerHTML: V(o)
1495
- }, null, 8, Xn))], 36));
1514
+ innerHTML: B(o)
1515
+ }, null, 8, er))], 36));
1496
1516
  }
1497
- }), Qn = /* @__PURE__ */ ot({
1498
- MultiDrag: () => ri,
1499
- Sortable: () => J,
1500
- Swap: () => ti,
1501
- default: () => J
1517
+ }), nr = /* @__PURE__ */ st({
1518
+ MultiDrag: () => si,
1519
+ Sortable: () => q,
1520
+ Swap: () => ai,
1521
+ default: () => q
1502
1522
  });
1503
- function $n(e, t) {
1523
+ function rr(e, t) {
1504
1524
  var n = Object.keys(e);
1505
1525
  if (Object.getOwnPropertySymbols) {
1506
1526
  var r = Object.getOwnPropertySymbols(e);
@@ -1510,26 +1530,26 @@ function $n(e, t) {
1510
1530
  }
1511
1531
  return n;
1512
1532
  }
1513
- function er(e) {
1533
+ function ir(e) {
1514
1534
  for (var t = 1; t < arguments.length; t++) {
1515
1535
  var n = arguments[t] == null ? {} : arguments[t];
1516
- t % 2 ? $n(Object(n), !0).forEach(function(t) {
1517
- nr(e, t, n[t]);
1518
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $n(Object(n)).forEach(function(t) {
1536
+ t % 2 ? rr(Object(n), !0).forEach(function(t) {
1537
+ or(e, t, n[t]);
1538
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rr(Object(n)).forEach(function(t) {
1519
1539
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
1520
1540
  });
1521
1541
  }
1522
1542
  return e;
1523
1543
  }
1524
- function tr(e) {
1544
+ function ar(e) {
1525
1545
  "@babel/helpers - typeof";
1526
- return tr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1546
+ return ar = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1527
1547
  return typeof e;
1528
1548
  } : function(e) {
1529
1549
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1530
- }, tr(e);
1550
+ }, ar(e);
1531
1551
  }
1532
- function nr(e, t, n) {
1552
+ function or(e, t, n) {
1533
1553
  return t in e ? Object.defineProperty(e, t, {
1534
1554
  value: n,
1535
1555
  enumerable: !0,
@@ -1537,65 +1557,65 @@ function nr(e, t, n) {
1537
1557
  writable: !0
1538
1558
  }) : e[t] = n, e;
1539
1559
  }
1540
- function rr() {
1541
- return rr = Object.assign || function(e) {
1560
+ function sr() {
1561
+ return sr = Object.assign || function(e) {
1542
1562
  for (var t = 1; t < arguments.length; t++) {
1543
1563
  var n = arguments[t];
1544
1564
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1545
1565
  }
1546
1566
  return e;
1547
- }, rr.apply(this, arguments);
1567
+ }, sr.apply(this, arguments);
1548
1568
  }
1549
- function ir(e, t) {
1569
+ function cr(e, t) {
1550
1570
  if (e == null) return {};
1551
1571
  var n = {}, r = Object.keys(e), i, a;
1552
1572
  for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
1553
1573
  return n;
1554
1574
  }
1555
- function ar(e, t) {
1575
+ function lr(e, t) {
1556
1576
  if (e == null) return {};
1557
- var n = ir(e, t), r, i;
1577
+ var n = cr(e, t), r, i;
1558
1578
  if (Object.getOwnPropertySymbols) {
1559
1579
  var a = Object.getOwnPropertySymbols(e);
1560
1580
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
1561
1581
  }
1562
1582
  return n;
1563
1583
  }
1564
- function or(e) {
1565
- return sr(e) || cr(e) || lr(e) || dr();
1584
+ function ur(e) {
1585
+ return dr(e) || fr(e) || pr(e) || hr();
1566
1586
  }
1567
- function sr(e) {
1568
- if (Array.isArray(e)) return ur(e);
1587
+ function dr(e) {
1588
+ if (Array.isArray(e)) return mr(e);
1569
1589
  }
1570
- function cr(e) {
1590
+ function fr(e) {
1571
1591
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
1572
1592
  }
1573
- function lr(e, t) {
1593
+ function pr(e, t) {
1574
1594
  if (e) {
1575
- if (typeof e == "string") return ur(e, t);
1595
+ if (typeof e == "string") return mr(e, t);
1576
1596
  var n = Object.prototype.toString.call(e).slice(8, -1);
1577
1597
  if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
1578
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ur(e, t);
1598
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return mr(e, t);
1579
1599
  }
1580
1600
  }
1581
- function ur(e, t) {
1601
+ function mr(e, t) {
1582
1602
  (t == null || t > e.length) && (t = e.length);
1583
1603
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1584
1604
  return r;
1585
1605
  }
1586
- function dr() {
1606
+ function hr() {
1587
1607
  throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1588
1608
  }
1589
- function fr(e) {
1609
+ function gr(e) {
1590
1610
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
1591
1611
  }
1592
- function H(e, t, n) {
1593
- e.addEventListener(t, n, !ci && mi);
1612
+ function V(e, t, n) {
1613
+ e.addEventListener(t, n, !fi && vi);
1594
1614
  }
1595
- function U(e, t, n) {
1596
- e.removeEventListener(t, n, !ci && mi);
1615
+ function H(e, t, n) {
1616
+ e.removeEventListener(t, n, !fi && vi);
1597
1617
  }
1598
- function pr(e, t) {
1618
+ function _r(e, t) {
1599
1619
  if (t) {
1600
1620
  if (t[0] === ">" && (t = t.substring(1)), e) try {
1601
1621
  if (e.matches) return e.matches(t);
@@ -1607,40 +1627,40 @@ function pr(e, t) {
1607
1627
  return !1;
1608
1628
  }
1609
1629
  }
1610
- function mr(e) {
1630
+ function vr(e) {
1611
1631
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
1612
1632
  }
1613
- function hr(e, t, n, r) {
1633
+ function yr(e, t, n, r) {
1614
1634
  if (e) {
1615
1635
  n ||= document;
1616
1636
  do {
1617
- if (t != null && (t[0] === ">" ? e.parentNode === n && pr(e, t) : pr(e, t)) || r && e === n) return e;
1637
+ if (t != null && (t[0] === ">" ? e.parentNode === n && _r(e, t) : _r(e, t)) || r && e === n) return e;
1618
1638
  if (e === n) break;
1619
- } while (e = mr(e));
1639
+ } while (e = vr(e));
1620
1640
  }
1621
1641
  return null;
1622
1642
  }
1623
- function W(e, t, n) {
1624
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(hi, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(hi, " "));
1643
+ function U(e, t, n) {
1644
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(yi, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(yi, " "));
1625
1645
  }
1626
- function G(e, t, n) {
1646
+ function W(e, t, n) {
1627
1647
  var r = e && e.style;
1628
1648
  if (r) {
1629
1649
  if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
1630
1650
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
1631
1651
  }
1632
1652
  }
1633
- function gr(e, t) {
1653
+ function br(e, t) {
1634
1654
  var n = "";
1635
1655
  if (typeof e == "string") n = e;
1636
1656
  else do {
1637
- var r = G(e, "transform");
1657
+ var r = W(e, "transform");
1638
1658
  r && r !== "none" && (n = r + " " + n);
1639
1659
  } while (!t && (e = e.parentNode));
1640
1660
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
1641
1661
  return i && new i(n);
1642
1662
  }
1643
- function _r(e, t, n) {
1663
+ function xr(e, t, n) {
1644
1664
  if (e) {
1645
1665
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
1646
1666
  if (n) for (; i < a; i++) n(r[i], i);
@@ -1648,21 +1668,21 @@ function _r(e, t, n) {
1648
1668
  }
1649
1669
  return [];
1650
1670
  }
1651
- function vr() {
1671
+ function Sr() {
1652
1672
  return document.scrollingElement || document.documentElement;
1653
1673
  }
1654
- function K(e, t, n, r, i) {
1674
+ function G(e, t, n, r, i) {
1655
1675
  if (!(!e.getBoundingClientRect && e !== window)) {
1656
1676
  var a, o, s, c, l, u, d;
1657
- if (e !== window && e.parentNode && e !== vr() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !ci)) do
1658
- if (i && i.getBoundingClientRect && (G(i, "transform") !== "none" || n && G(i, "position") !== "static")) {
1677
+ if (e !== window && e.parentNode && e !== Sr() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !fi)) do
1678
+ if (i && i.getBoundingClientRect && (W(i, "transform") !== "none" || n && W(i, "position") !== "static")) {
1659
1679
  var f = i.getBoundingClientRect();
1660
- o -= f.top + parseInt(G(i, "border-top-width")), s -= f.left + parseInt(G(i, "border-left-width")), c = o + a.height, l = s + a.width;
1680
+ o -= f.top + parseInt(W(i, "border-top-width")), s -= f.left + parseInt(W(i, "border-left-width")), c = o + a.height, l = s + a.width;
1661
1681
  break;
1662
1682
  }
1663
1683
  while (i = i.parentNode);
1664
1684
  if (r && e !== window) {
1665
- var p = gr(i || e), m = p && p.a, h = p && p.d;
1685
+ var p = br(i || e), m = p && p.a, h = p && p.d;
1666
1686
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
1667
1687
  }
1668
1688
  return {
@@ -1675,18 +1695,18 @@ function K(e, t, n, r, i) {
1675
1695
  };
1676
1696
  }
1677
1697
  }
1678
- function yr(e, t, n) {
1679
- for (var r = wr(e, !0), i = K(e)[t]; r;) {
1680
- var a = K(r)[n], o = void 0;
1698
+ function Cr(e, t, n) {
1699
+ for (var r = Or(e, !0), i = G(e)[t]; r;) {
1700
+ var a = G(r)[n], o = void 0;
1681
1701
  if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
1682
- if (r === vr()) break;
1683
- r = wr(r, !1);
1702
+ if (r === Sr()) break;
1703
+ r = Or(r, !1);
1684
1704
  }
1685
1705
  return !1;
1686
1706
  }
1687
- function br(e, t, n, r) {
1707
+ function wr(e, t, n, r) {
1688
1708
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
1689
- if (o[a].style.display !== "none" && o[a] !== J.ghost && (r || o[a] !== J.dragged) && hr(o[a], n.draggable, e, !1)) {
1709
+ if (o[a].style.display !== "none" && o[a] !== q.ghost && (r || o[a] !== q.dragged) && yr(o[a], n.draggable, e, !1)) {
1690
1710
  if (i === t) return o[a];
1691
1711
  i++;
1692
1712
  }
@@ -1694,91 +1714,91 @@ function br(e, t, n, r) {
1694
1714
  }
1695
1715
  return null;
1696
1716
  }
1697
- function xr(e, t) {
1698
- for (var n = e.lastElementChild; n && (n === J.ghost || G(n, "display") === "none" || t && !pr(n, t));) n = n.previousElementSibling;
1717
+ function Tr(e, t) {
1718
+ for (var n = e.lastElementChild; n && (n === q.ghost || W(n, "display") === "none" || t && !_r(n, t));) n = n.previousElementSibling;
1699
1719
  return n || null;
1700
1720
  }
1701
- function q(e, t) {
1721
+ function K(e, t) {
1702
1722
  var n = 0;
1703
1723
  if (!e || !e.parentNode) return -1;
1704
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== J.clone && (!t || pr(e, t)) && n++;
1724
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== q.clone && (!t || _r(e, t)) && n++;
1705
1725
  return n;
1706
1726
  }
1707
- function Sr(e) {
1708
- var t = 0, n = 0, r = vr();
1727
+ function Er(e) {
1728
+ var t = 0, n = 0, r = Sr();
1709
1729
  if (e) do {
1710
- var i = gr(e), a = i.a, o = i.d;
1730
+ var i = br(e), a = i.a, o = i.d;
1711
1731
  t += e.scrollLeft * a, n += e.scrollTop * o;
1712
1732
  } while (e !== r && (e = e.parentNode));
1713
1733
  return [t, n];
1714
1734
  }
1715
- function Cr(e, t) {
1735
+ function Dr(e, t) {
1716
1736
  for (var n in e) if (e.hasOwnProperty(n)) {
1717
1737
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
1718
1738
  }
1719
1739
  return -1;
1720
1740
  }
1721
- function wr(e, t) {
1722
- if (!e || !e.getBoundingClientRect) return vr();
1741
+ function Or(e, t) {
1742
+ if (!e || !e.getBoundingClientRect) return Sr();
1723
1743
  var n = e, r = !1;
1724
1744
  do
1725
1745
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
1726
- var i = G(n);
1746
+ var i = W(n);
1727
1747
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
1728
- if (!n.getBoundingClientRect || n === document.body) return vr();
1748
+ if (!n.getBoundingClientRect || n === document.body) return Sr();
1729
1749
  if (r || t) return n;
1730
1750
  r = !0;
1731
1751
  }
1732
1752
  }
1733
1753
  while (n = n.parentNode);
1734
- return vr();
1754
+ return Sr();
1735
1755
  }
1736
- function Tr(e, t) {
1756
+ function kr(e, t) {
1737
1757
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
1738
1758
  return e;
1739
1759
  }
1740
- function Er(e, t) {
1760
+ function Ar(e, t) {
1741
1761
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
1742
1762
  }
1743
- function Dr(e, t) {
1763
+ function jr(e, t) {
1744
1764
  return function() {
1745
- if (!gi) {
1765
+ if (!bi) {
1746
1766
  var n = arguments, r = this;
1747
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), gi = setTimeout(function() {
1748
- gi = void 0;
1767
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), bi = setTimeout(function() {
1768
+ bi = void 0;
1749
1769
  }, t);
1750
1770
  }
1751
1771
  };
1752
1772
  }
1753
- function Or() {
1754
- clearTimeout(gi), gi = void 0;
1773
+ function Mr() {
1774
+ clearTimeout(bi), bi = void 0;
1755
1775
  }
1756
- function kr(e, t, n) {
1776
+ function Nr(e, t, n) {
1757
1777
  e.scrollLeft += t, e.scrollTop += n;
1758
1778
  }
1759
- function Ar(e) {
1779
+ function Pr(e) {
1760
1780
  var t = window.Polymer, n = window.jQuery || window.Zepto;
1761
1781
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
1762
1782
  }
1763
- function jr(e, t) {
1764
- G(e, "position", "absolute"), G(e, "top", t.top), G(e, "left", t.left), G(e, "width", t.width), G(e, "height", t.height);
1783
+ function Fr(e, t) {
1784
+ W(e, "position", "absolute"), W(e, "top", t.top), W(e, "left", t.left), W(e, "width", t.width), W(e, "height", t.height);
1765
1785
  }
1766
- function Mr(e) {
1767
- G(e, "position", ""), G(e, "top", ""), G(e, "left", ""), G(e, "width", ""), G(e, "height", "");
1786
+ function Ir(e) {
1787
+ W(e, "position", ""), W(e, "top", ""), W(e, "left", ""), W(e, "width", ""), W(e, "height", "");
1768
1788
  }
1769
- function Nr() {
1789
+ function Lr() {
1770
1790
  var e = [], t;
1771
1791
  return {
1772
1792
  captureAnimationState: function() {
1773
1793
  e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
1774
- if (!(G(t, "display") === "none" || t === J.ghost)) {
1794
+ if (!(W(t, "display") === "none" || t === q.ghost)) {
1775
1795
  e.push({
1776
1796
  target: t,
1777
- rect: K(t)
1797
+ rect: G(t)
1778
1798
  });
1779
- var n = er({}, e[e.length - 1].rect);
1799
+ var n = ir({}, e[e.length - 1].rect);
1780
1800
  if (t.thisAnimationDuration) {
1781
- var r = gr(t, !0);
1801
+ var r = br(t, !0);
1782
1802
  r && (n.top -= r.f, n.left -= r.e);
1783
1803
  }
1784
1804
  t.fromRect = n;
@@ -1789,7 +1809,7 @@ function Nr() {
1789
1809
  e.push(t);
1790
1810
  },
1791
1811
  removeAnimationState: function(t) {
1792
- e.splice(Cr(e, { target: t }), 1);
1812
+ e.splice(Dr(e, { target: t }), 1);
1793
1813
  },
1794
1814
  animateAll: function(n) {
1795
1815
  var r = this;
@@ -1799,8 +1819,8 @@ function Nr() {
1799
1819
  }
1800
1820
  var i = !1, a = 0;
1801
1821
  e.forEach(function(e) {
1802
- var t = 0, n = e.target, o = n.fromRect, s = K(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = gr(n, !0);
1803
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Er(c, s) && !Er(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Fr(u, c, l, r.options)), Er(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
1822
+ var t = 0, n = e.target, o = n.fromRect, s = G(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = br(n, !0);
1823
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ar(c, s) && !Ar(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = zr(u, c, l, r.options)), Ar(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
1804
1824
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
1805
1825
  }, t), n.thisAnimationDuration = t);
1806
1826
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -1809,49 +1829,49 @@ function Nr() {
1809
1829
  },
1810
1830
  animate: function(e, t, n, r) {
1811
1831
  if (r) {
1812
- G(e, "transition", ""), G(e, "transform", "");
1813
- var i = gr(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
1814
- e.animatingX = !!s, e.animatingY = !!c, G(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Pr(e), G(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), G(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
1815
- G(e, "transition", ""), G(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
1832
+ W(e, "transition", ""), W(e, "transform", "");
1833
+ var i = br(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
1834
+ e.animatingX = !!s, e.animatingY = !!c, W(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Rr(e), W(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), W(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
1835
+ W(e, "transition", ""), W(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
1816
1836
  }, r);
1817
1837
  }
1818
1838
  }
1819
1839
  };
1820
1840
  }
1821
- function Pr(e) {
1841
+ function Rr(e) {
1822
1842
  return e.offsetWidth;
1823
1843
  }
1824
- function Fr(e, t, n, r) {
1844
+ function zr(e, t, n, r) {
1825
1845
  return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
1826
1846
  }
1827
- function Ir(e) {
1847
+ function Br(e) {
1828
1848
  var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
1829
- if (t ||= n && n[_i], t) {
1849
+ if (t ||= n && n[xi], t) {
1830
1850
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
1831
- window.CustomEvent && !ci && !li ? h = new CustomEvent(r, {
1851
+ window.CustomEvent && !fi && !pi ? h = new CustomEvent(r, {
1832
1852
  bubbles: !0,
1833
1853
  cancelable: !0
1834
1854
  }) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
1835
- var v = er(er({}, m), bi.getEventProperties(r, t));
1855
+ var v = ir(ir({}, m), wi.getEventProperties(r, t));
1836
1856
  for (var y in v) h[y] = v[y];
1837
1857
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
1838
1858
  }
1839
1859
  }
1840
- function Lr(e) {
1841
- Ir(er({
1842
- putSortable: Ni,
1843
- cloneEl: Ei,
1844
- targetEl: Y,
1860
+ function Vr(e) {
1861
+ Br(ir({
1862
+ putSortable: Ii,
1863
+ cloneEl: ki,
1864
+ targetEl: J,
1845
1865
  rootEl: Z,
1846
- oldIndex: Oi,
1847
- oldDraggableIndex: Ai,
1848
- newIndex: ki,
1849
- newDraggableIndex: ji
1866
+ oldIndex: ji,
1867
+ oldDraggableIndex: Ni,
1868
+ newIndex: Mi,
1869
+ newDraggableIndex: Pi
1850
1870
  }, e));
1851
1871
  }
1852
- function J(e, t) {
1872
+ function q(e, t) {
1853
1873
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
1854
- this.el = e, this.options = t = rr({}, t), e[_i] = this;
1874
+ this.el = e, this.options = t = sr({}, t), e[xi] = this;
1855
1875
  var n = {
1856
1876
  group: null,
1857
1877
  sort: !0,
@@ -1864,7 +1884,7 @@ function J(e, t) {
1864
1884
  invertedSwapThreshold: null,
1865
1885
  removeCloneOnHide: !0,
1866
1886
  direction: function() {
1867
- return ia(e, this.options);
1887
+ return sa(e, this.options);
1868
1888
  },
1869
1889
  ghostClass: "sortable-ghost",
1870
1890
  chosenClass: "sortable-chosen",
@@ -1891,68 +1911,68 @@ function J(e, t) {
1891
1911
  x: 0,
1892
1912
  y: 0
1893
1913
  },
1894
- supportPointer: J.supportPointer !== !1 && "PointerEvent" in window && !di,
1914
+ supportPointer: q.supportPointer !== !1 && "PointerEvent" in window && !hi,
1895
1915
  emptyInsertThreshold: 5
1896
1916
  };
1897
- for (var r in bi.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
1898
- for (var i in sa(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
1899
- this.nativeDraggable = t.forceFallback ? !1 : na, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? H(e, "pointerdown", this._onTapStart) : (H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart)), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), Ii.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), rr(this, Nr());
1917
+ for (var r in wi.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
1918
+ for (var i in ua(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
1919
+ this.nativeDraggable = t.forceFallback ? !1 : aa, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? V(e, "pointerdown", this._onTapStart) : (V(e, "mousedown", this._onTapStart), V(e, "touchstart", this._onTapStart)), this.nativeDraggable && (V(e, "dragover", this), V(e, "dragenter", this)), zi.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), sr(this, Lr());
1900
1920
  }
1901
- function Rr(e) {
1921
+ function Hr(e) {
1902
1922
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
1903
1923
  }
1904
- function zr(e, t, n, r, i, a, o, s) {
1905
- var c, l = e[_i], u = l.options.onMove, d;
1906
- return window.CustomEvent && !ci && !li ? c = new CustomEvent("move", {
1924
+ function Ur(e, t, n, r, i, a, o, s) {
1925
+ var c, l = e[xi], u = l.options.onMove, d;
1926
+ return window.CustomEvent && !fi && !pi ? c = new CustomEvent("move", {
1907
1927
  bubbles: !0,
1908
1928
  cancelable: !0
1909
- }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || K(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
1929
+ }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || G(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
1910
1930
  }
1911
- function Br(e) {
1931
+ function Wr(e) {
1912
1932
  e.draggable = !1;
1913
1933
  }
1914
- function Vr() {
1915
- Zi = !1;
1934
+ function Gr() {
1935
+ ea = !1;
1916
1936
  }
1917
- function Hr(e, t, n) {
1918
- var r = K(br(n.el, 0, n.options, !0)), i = 10;
1937
+ function Kr(e, t, n) {
1938
+ var r = G(wr(n.el, 0, n.options, !0)), i = 10;
1919
1939
  return t ? e.clientX < r.left - i || e.clientY < r.top && e.clientX < r.right : e.clientY < r.top - i || e.clientY < r.bottom && e.clientX < r.left;
1920
1940
  }
1921
- function Ur(e, t, n) {
1922
- var r = K(xr(n.el, n.options.draggable)), i = 10;
1941
+ function qr(e, t, n) {
1942
+ var r = G(Tr(n.el, n.options.draggable)), i = 10;
1923
1943
  return t ? e.clientX > r.right + i || e.clientX <= r.right && e.clientY > r.bottom && e.clientX >= r.left : e.clientX > r.right && e.clientY > r.top || e.clientX <= r.right && e.clientY > r.bottom + i;
1924
1944
  }
1925
- function Wr(e, t, n, r, i, a, o, s) {
1945
+ function Jr(e, t, n, r, i, a, o, s) {
1926
1946
  var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
1927
1947
  if (!o) {
1928
- if (s && Ji < l * i) {
1929
- if (!Ki && (Gi === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Ki = !0), Ki) f = !0;
1930
- else if (Gi === 1 ? c < u + Ji : c > d - Ji) return -Gi;
1931
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Gr(t);
1948
+ if (s && Zi < l * i) {
1949
+ if (!Yi && (Ji === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Yi = !0), Yi) f = !0;
1950
+ else if (Ji === 1 ? c < u + Zi : c > d - Zi) return -Ji;
1951
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Yr(t);
1932
1952
  }
1933
1953
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
1934
1954
  }
1935
- function Gr(e) {
1936
- return q(Y) < q(e) ? 1 : -1;
1955
+ function Yr(e) {
1956
+ return K(J) < K(e) ? 1 : -1;
1937
1957
  }
1938
- function Kr(e) {
1958
+ function Xr(e) {
1939
1959
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
1940
1960
  return r.toString(36);
1941
1961
  }
1942
- function qr(e) {
1943
- Qi.length = 0;
1962
+ function Zr(e) {
1963
+ ta.length = 0;
1944
1964
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
1945
1965
  var r = t[n];
1946
- r.checked && Qi.push(r);
1966
+ r.checked && ta.push(r);
1947
1967
  }
1948
1968
  }
1949
- function Jr(e) {
1969
+ function Qr(e) {
1950
1970
  return setTimeout(e, 0);
1951
1971
  }
1952
- function Yr(e) {
1972
+ function $r(e) {
1953
1973
  return clearTimeout(e);
1954
1974
  }
1955
- function Xr() {
1975
+ function ei() {
1956
1976
  function e() {
1957
1977
  for (var e in this.defaults = {
1958
1978
  scroll: !0,
@@ -1965,99 +1985,99 @@ function Xr() {
1965
1985
  return e.prototype = {
1966
1986
  dragStarted: function(e) {
1967
1987
  var t = e.originalEvent;
1968
- this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? H(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? H(document, "touchmove", this._handleFallbackAutoScroll) : H(document, "mousemove", this._handleFallbackAutoScroll);
1988
+ this.sortable.nativeDraggable ? V(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? V(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? V(document, "touchmove", this._handleFallbackAutoScroll) : V(document, "mousemove", this._handleFallbackAutoScroll);
1969
1989
  },
1970
1990
  dragOverCompleted: function(e) {
1971
1991
  var t = e.originalEvent;
1972
1992
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
1973
1993
  },
1974
1994
  drop: function() {
1975
- this.sortable.nativeDraggable ? U(document, "dragover", this._handleAutoScroll) : (U(document, "pointermove", this._handleFallbackAutoScroll), U(document, "touchmove", this._handleFallbackAutoScroll), U(document, "mousemove", this._handleFallbackAutoScroll)), Qr(), Zr(), Or();
1995
+ this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)), ni(), ti(), Mr();
1976
1996
  },
1977
1997
  nulling: function() {
1978
- va = ma = pa = ha = ya = ga = _a = null, fa.length = 0;
1998
+ xa = _a = ga = va = Sa = ya = ba = null, ha.length = 0;
1979
1999
  },
1980
2000
  _handleFallbackAutoScroll: function(e) {
1981
2001
  this._handleAutoScroll(e, !0);
1982
2002
  },
1983
2003
  _handleAutoScroll: function(e, t) {
1984
2004
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
1985
- if (va = e, t || this.options.forceAutoScrollFallback || li || ci || di) {
1986
- ba(e, this.options, a, t);
1987
- var o = wr(a, !0);
1988
- ha && (!ya || r !== ga || i !== _a) && (ya && Qr(), ya = setInterval(function() {
1989
- var a = wr(document.elementFromPoint(r, i), !0);
1990
- a !== o && (o = a, Zr()), ba(e, n.options, a, t);
1991
- }, 10), ga = r, _a = i);
2005
+ if (xa = e, t || this.options.forceAutoScrollFallback || pi || fi || hi) {
2006
+ Ca(e, this.options, a, t);
2007
+ var o = Or(a, !0);
2008
+ va && (!Sa || r !== ya || i !== ba) && (Sa && ni(), Sa = setInterval(function() {
2009
+ var a = Or(document.elementFromPoint(r, i), !0);
2010
+ a !== o && (o = a, ti()), Ca(e, n.options, a, t);
2011
+ }, 10), ya = r, ba = i);
1992
2012
  } else {
1993
- if (!this.options.bubbleScroll || wr(a, !0) === vr()) {
1994
- Zr();
2013
+ if (!this.options.bubbleScroll || Or(a, !0) === Sr()) {
2014
+ ti();
1995
2015
  return;
1996
2016
  }
1997
- ba(e, this.options, wr(a, !1), !1);
2017
+ Ca(e, this.options, Or(a, !1), !1);
1998
2018
  }
1999
2019
  }
2000
- }, rr(e, {
2020
+ }, sr(e, {
2001
2021
  pluginName: "scroll",
2002
2022
  initializeByDefault: !0
2003
2023
  });
2004
2024
  }
2005
- function Zr() {
2006
- fa.forEach(function(e) {
2025
+ function ti() {
2026
+ ha.forEach(function(e) {
2007
2027
  clearInterval(e.pid);
2008
- }), fa = [];
2028
+ }), ha = [];
2009
2029
  }
2010
- function Qr() {
2011
- clearInterval(ya);
2030
+ function ni() {
2031
+ clearInterval(Sa);
2012
2032
  }
2013
- function $r() {}
2014
- function ei() {}
2015
- function ti() {
2033
+ function ri() {}
2034
+ function ii() {}
2035
+ function ai() {
2016
2036
  function e() {
2017
2037
  this.defaults = { swapClass: "sortable-swap-highlight" };
2018
2038
  }
2019
2039
  return e.prototype = {
2020
2040
  dragStart: function(e) {
2021
- Sa = e.dragEl;
2041
+ Ta = e.dragEl;
2022
2042
  },
2023
2043
  dragOverValid: function(e) {
2024
2044
  var t = e.completed, n = e.target, r = e.onMove, i = e.activeSortable, a = e.changed, o = e.cancel;
2025
2045
  if (i.options.swap) {
2026
2046
  var s = this.sortable.el, c = this.options;
2027
2047
  if (n && n !== s) {
2028
- var l = Sa;
2029
- r(n) === !1 ? Sa = null : (W(n, c.swapClass, !0), Sa = n), l && l !== Sa && W(l, c.swapClass, !1);
2048
+ var l = Ta;
2049
+ r(n) === !1 ? Ta = null : (U(n, c.swapClass, !0), Ta = n), l && l !== Ta && U(l, c.swapClass, !1);
2030
2050
  }
2031
2051
  a(), t(!0), o();
2032
2052
  }
2033
2053
  },
2034
2054
  drop: function(e) {
2035
2055
  var t = e.activeSortable, n = e.putSortable, r = e.dragEl, i = n || this.sortable, a = this.options;
2036
- Sa && W(Sa, a.swapClass, !1), Sa && (a.swap || n && n.options.swap) && r !== Sa && (i.captureAnimationState(), i !== t && t.captureAnimationState(), ni(r, Sa), i.animateAll(), i !== t && t.animateAll());
2056
+ Ta && U(Ta, a.swapClass, !1), Ta && (a.swap || n && n.options.swap) && r !== Ta && (i.captureAnimationState(), i !== t && t.captureAnimationState(), oi(r, Ta), i.animateAll(), i !== t && t.animateAll());
2037
2057
  },
2038
2058
  nulling: function() {
2039
- Sa = null;
2059
+ Ta = null;
2040
2060
  }
2041
- }, rr(e, {
2061
+ }, sr(e, {
2042
2062
  pluginName: "swap",
2043
2063
  eventProperties: function() {
2044
- return { swapItem: Sa };
2064
+ return { swapItem: Ta };
2045
2065
  }
2046
2066
  });
2047
2067
  }
2048
- function ni(e, t) {
2068
+ function oi(e, t) {
2049
2069
  var n = e.parentNode, r = t.parentNode, i, a;
2050
- !n || !r || n.isEqualNode(t) || r.isEqualNode(e) || (i = q(e), a = q(t), n.isEqualNode(r) && i < a && a++, n.insertBefore(t, n.children[i]), r.insertBefore(e, r.children[a]));
2070
+ !n || !r || n.isEqualNode(t) || r.isEqualNode(e) || (i = K(e), a = K(t), n.isEqualNode(r) && i < a && a++, n.insertBefore(t, n.children[i]), r.insertBefore(e, r.children[a]));
2051
2071
  }
2052
- function ri() {
2072
+ function si() {
2053
2073
  function e(e) {
2054
2074
  for (var t in this) t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
2055
- e.options.supportPointer ? H(document, "pointerup", this._deselectMultiDrag) : (H(document, "mouseup", this._deselectMultiDrag), H(document, "touchend", this._deselectMultiDrag)), H(document, "keydown", this._checkKeyDown), H(document, "keyup", this._checkKeyUp), this.defaults = {
2075
+ e.options.supportPointer ? V(document, "pointerup", this._deselectMultiDrag) : (V(document, "mouseup", this._deselectMultiDrag), V(document, "touchend", this._deselectMultiDrag)), V(document, "keydown", this._checkKeyDown), V(document, "keyup", this._checkKeyUp), this.defaults = {
2056
2076
  selectedClass: "sortable-selected",
2057
2077
  multiDragKey: null,
2058
2078
  setData: function(t, n) {
2059
2079
  var r = "";
2060
- Q.length && Ta === e ? Q.forEach(function(e, t) {
2080
+ Q.length && Oa === e ? Q.forEach(function(e, t) {
2061
2081
  r += (t ? ", " : "") + e.textContent;
2062
2082
  }) : r = n.textContent, t.setData("Text", r);
2063
2083
  }
@@ -2075,83 +2095,83 @@ function ri() {
2075
2095
  setupClone: function(e) {
2076
2096
  var t = e.sortable, n = e.cancel;
2077
2097
  if (this.isMultiDrag) {
2078
- for (var r = 0; r < Q.length; r++) Ca.push(Ar(Q[r])), Ca[r].sortableIndex = Q[r].sortableIndex, Ca[r].draggable = !1, Ca[r].style["will-change"] = "", W(Ca[r], this.options.selectedClass, !1), Q[r] === $ && W(Ca[r], this.options.chosenClass, !1);
2098
+ for (var r = 0; r < Q.length; r++) Ea.push(Pr(Q[r])), Ea[r].sortableIndex = Q[r].sortableIndex, Ea[r].draggable = !1, Ea[r].style["will-change"] = "", U(Ea[r], this.options.selectedClass, !1), Q[r] === $ && U(Ea[r], this.options.chosenClass, !1);
2079
2099
  t._hideClone(), n();
2080
2100
  }
2081
2101
  },
2082
2102
  clone: function(e) {
2083
2103
  var t = e.sortable, n = e.rootEl, r = e.dispatchSortableEvent, i = e.cancel;
2084
- this.isMultiDrag && (this.options.removeCloneOnHide || Q.length && Ta === t && (ai(!0, n), r("clone"), i()));
2104
+ this.isMultiDrag && (this.options.removeCloneOnHide || Q.length && Oa === t && (li(!0, n), r("clone"), i()));
2085
2105
  },
2086
2106
  showClone: function(e) {
2087
2107
  var t = e.cloneNowShown, n = e.rootEl, r = e.cancel;
2088
- this.isMultiDrag && (ai(!1, n), Ca.forEach(function(e) {
2089
- G(e, "display", "");
2090
- }), t(), Aa = !1, r());
2108
+ this.isMultiDrag && (li(!1, n), Ea.forEach(function(e) {
2109
+ W(e, "display", "");
2110
+ }), t(), Na = !1, r());
2091
2111
  },
2092
2112
  hideClone: function(e) {
2093
2113
  var t = this;
2094
2114
  e.sortable;
2095
2115
  var n = e.cloneNowHidden, r = e.cancel;
2096
- this.isMultiDrag && (Ca.forEach(function(e) {
2097
- G(e, "display", "none"), t.options.removeCloneOnHide && e.parentNode && e.parentNode.removeChild(e);
2098
- }), n(), Aa = !0, r());
2116
+ this.isMultiDrag && (Ea.forEach(function(e) {
2117
+ W(e, "display", "none"), t.options.removeCloneOnHide && e.parentNode && e.parentNode.removeChild(e);
2118
+ }), n(), Na = !0, r());
2099
2119
  },
2100
2120
  dragStartGlobal: function(e) {
2101
- e.sortable, !this.isMultiDrag && Ta && Ta.multiDrag._deselectMultiDrag(), Q.forEach(function(e) {
2102
- e.sortableIndex = q(e);
2121
+ e.sortable, !this.isMultiDrag && Oa && Oa.multiDrag._deselectMultiDrag(), Q.forEach(function(e) {
2122
+ e.sortableIndex = K(e);
2103
2123
  }), Q = Q.sort(function(e, t) {
2104
2124
  return e.sortableIndex - t.sortableIndex;
2105
- }), Oa = !0;
2125
+ }), ja = !0;
2106
2126
  },
2107
2127
  dragStarted: function(e) {
2108
2128
  var t = this, n = e.sortable;
2109
2129
  if (this.isMultiDrag) {
2110
2130
  if (this.options.sort && (n.captureAnimationState(), this.options.animation)) {
2111
2131
  Q.forEach(function(e) {
2112
- e !== $ && G(e, "position", "absolute");
2132
+ e !== $ && W(e, "position", "absolute");
2113
2133
  });
2114
- var r = K($, !1, !0, !0);
2134
+ var r = G($, !1, !0, !0);
2115
2135
  Q.forEach(function(e) {
2116
- e !== $ && jr(e, r);
2117
- }), Da = !0, Ea = !0;
2136
+ e !== $ && Fr(e, r);
2137
+ }), Aa = !0, ka = !0;
2118
2138
  }
2119
2139
  n.animateAll(function() {
2120
- Da = !1, Ea = !1, t.options.animation && Q.forEach(function(e) {
2121
- Mr(e);
2122
- }), t.options.sort && oi();
2140
+ Aa = !1, ka = !1, t.options.animation && Q.forEach(function(e) {
2141
+ Ir(e);
2142
+ }), t.options.sort && ui();
2123
2143
  });
2124
2144
  }
2125
2145
  },
2126
2146
  dragOver: function(e) {
2127
2147
  var t = e.target, n = e.completed, r = e.cancel;
2128
- Da && ~Q.indexOf(t) && (n(!1), r());
2148
+ Aa && ~Q.indexOf(t) && (n(!1), r());
2129
2149
  },
2130
2150
  revert: function(e) {
2131
2151
  var t = e.fromSortable, n = e.rootEl, r = e.sortable, i = e.dragRect;
2132
2152
  Q.length > 1 && (Q.forEach(function(e) {
2133
2153
  r.addAnimationState({
2134
2154
  target: e,
2135
- rect: Da ? K(e) : i
2136
- }), Mr(e), e.fromRect = i, t.removeAnimationState(e);
2137
- }), Da = !1, ii(!this.options.removeCloneOnHide, n));
2155
+ rect: Aa ? G(e) : i
2156
+ }), Ir(e), e.fromRect = i, t.removeAnimationState(e);
2157
+ }), Aa = !1, ci(!this.options.removeCloneOnHide, n));
2138
2158
  },
2139
2159
  dragOverCompleted: function(e) {
2140
2160
  var t = e.sortable, n = e.isOwner, r = e.insertion, i = e.activeSortable, a = e.parentEl, o = e.putSortable, s = this.options;
2141
2161
  if (r) {
2142
- if (n && i._hideClone(), Ea = !1, s.animation && Q.length > 1 && (Da || !n && !i.options.sort && !o)) {
2143
- var c = K($, !1, !0, !0);
2162
+ if (n && i._hideClone(), ka = !1, s.animation && Q.length > 1 && (Aa || !n && !i.options.sort && !o)) {
2163
+ var c = G($, !1, !0, !0);
2144
2164
  Q.forEach(function(e) {
2145
- e !== $ && (jr(e, c), a.appendChild(e));
2146
- }), Da = !0;
2165
+ e !== $ && (Fr(e, c), a.appendChild(e));
2166
+ }), Aa = !0;
2147
2167
  }
2148
- if (!n) if (Da || oi(), Q.length > 1) {
2149
- var l = Aa;
2150
- i._showClone(t), i.options.animation && !Aa && l && Ca.forEach(function(e) {
2168
+ if (!n) if (Aa || ui(), Q.length > 1) {
2169
+ var l = Na;
2170
+ i._showClone(t), i.options.animation && !Na && l && Ea.forEach(function(e) {
2151
2171
  i.addAnimationState({
2152
2172
  target: e,
2153
- rect: ka
2154
- }), e.fromRect = ka, e.thisAnimationDuration = null;
2173
+ rect: Ma
2174
+ }), e.fromRect = Ma, e.thisAnimationDuration = null;
2155
2175
  });
2156
2176
  } else i._showClone(t);
2157
2177
  }
@@ -2161,19 +2181,19 @@ function ri() {
2161
2181
  if (Q.forEach(function(e) {
2162
2182
  e.thisAnimationDuration = null;
2163
2183
  }), r.options.animation && !n && r.multiDrag.isMultiDrag) {
2164
- ka = rr({}, t);
2165
- var i = gr($, !0);
2166
- ka.top -= i.f, ka.left -= i.e;
2184
+ Ma = sr({}, t);
2185
+ var i = br($, !0);
2186
+ Ma.top -= i.f, Ma.left -= i.e;
2167
2187
  }
2168
2188
  },
2169
2189
  dragOverAnimationComplete: function() {
2170
- Da && (Da = !1, oi());
2190
+ Aa && (Aa = !1, ui());
2171
2191
  },
2172
2192
  drop: function(e) {
2173
2193
  var t = e.originalEvent, n = e.rootEl, r = e.parentEl, i = e.sortable, a = e.dispatchSortableEvent, o = e.oldIndex, s = e.putSortable, c = s || this.sortable;
2174
2194
  if (t) {
2175
2195
  var l = this.options, u = r.children;
2176
- if (!Oa) if (l.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), W($, l.selectedClass, !~Q.indexOf($)), ~Q.indexOf($)) Q.splice(Q.indexOf($), 1), wa = null, Ir({
2196
+ if (!ja) if (l.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), U($, l.selectedClass, !~Q.indexOf($)), ~Q.indexOf($)) Q.splice(Q.indexOf($), 1), Da = null, Br({
2177
2197
  sortable: i,
2178
2198
  rootEl: n,
2179
2199
  name: "deselect",
@@ -2181,17 +2201,17 @@ function ri() {
2181
2201
  originalEvt: t
2182
2202
  });
2183
2203
  else {
2184
- if (Q.push($), Ir({
2204
+ if (Q.push($), Br({
2185
2205
  sortable: i,
2186
2206
  rootEl: n,
2187
2207
  name: "select",
2188
2208
  targetEl: $,
2189
2209
  originalEvt: t
2190
- }), t.shiftKey && wa && i.el.contains(wa)) {
2191
- var d = q(wa), f = q($);
2210
+ }), t.shiftKey && Da && i.el.contains(Da)) {
2211
+ var d = K(Da), f = K($);
2192
2212
  if (~d && ~f && d !== f) {
2193
2213
  var p, m;
2194
- for (f > d ? (m = d, p = f) : (m = f, p = d + 1); m < p; m++) ~Q.indexOf(u[m]) || (W(u[m], l.selectedClass, !0), Q.push(u[m]), Ir({
2214
+ for (f > d ? (m = d, p = f) : (m = f, p = d + 1); m < p; m++) ~Q.indexOf(u[m]) || (U(u[m], l.selectedClass, !0), Q.push(u[m]), Br({
2195
2215
  sortable: i,
2196
2216
  rootEl: n,
2197
2217
  name: "select",
@@ -2199,52 +2219,52 @@ function ri() {
2199
2219
  originalEvt: t
2200
2220
  }));
2201
2221
  }
2202
- } else wa = $;
2203
- Ta = c;
2222
+ } else Da = $;
2223
+ Oa = c;
2204
2224
  }
2205
- if (Oa && this.isMultiDrag) {
2206
- if (Da = !1, (r[_i].options.sort || r !== n) && Q.length > 1) {
2207
- var h = K($), g = q($, ":not(." + this.options.selectedClass + ")");
2208
- if (!Ea && l.animation && ($.thisAnimationDuration = null), c.captureAnimationState(), !Ea && (l.animation && ($.fromRect = h, Q.forEach(function(e) {
2225
+ if (ja && this.isMultiDrag) {
2226
+ if (Aa = !1, (r[xi].options.sort || r !== n) && Q.length > 1) {
2227
+ var h = G($), g = K($, ":not(." + this.options.selectedClass + ")");
2228
+ if (!ka && l.animation && ($.thisAnimationDuration = null), c.captureAnimationState(), !ka && (l.animation && ($.fromRect = h, Q.forEach(function(e) {
2209
2229
  if (e.thisAnimationDuration = null, e !== $) {
2210
- var t = Da ? K(e) : h;
2230
+ var t = Aa ? G(e) : h;
2211
2231
  e.fromRect = t, c.addAnimationState({
2212
2232
  target: e,
2213
2233
  rect: t
2214
2234
  });
2215
2235
  }
2216
- })), oi(), Q.forEach(function(e) {
2236
+ })), ui(), Q.forEach(function(e) {
2217
2237
  u[g] ? r.insertBefore(e, u[g]) : r.appendChild(e), g++;
2218
- }), o === q($))) {
2238
+ }), o === K($))) {
2219
2239
  var _ = !1;
2220
2240
  Q.forEach(function(e) {
2221
- if (e.sortableIndex !== q(e)) {
2241
+ if (e.sortableIndex !== K(e)) {
2222
2242
  _ = !0;
2223
2243
  return;
2224
2244
  }
2225
2245
  }), _ && a("update");
2226
2246
  }
2227
2247
  Q.forEach(function(e) {
2228
- Mr(e);
2248
+ Ir(e);
2229
2249
  }), c.animateAll();
2230
2250
  }
2231
- Ta = c;
2251
+ Oa = c;
2232
2252
  }
2233
- (n === r || s && s.lastPutMode !== "clone") && Ca.forEach(function(e) {
2253
+ (n === r || s && s.lastPutMode !== "clone") && Ea.forEach(function(e) {
2234
2254
  e.parentNode && e.parentNode.removeChild(e);
2235
2255
  });
2236
2256
  }
2237
2257
  },
2238
2258
  nullingGlobal: function() {
2239
- this.isMultiDrag = Oa = !1, Ca.length = 0;
2259
+ this.isMultiDrag = ja = !1, Ea.length = 0;
2240
2260
  },
2241
2261
  destroyGlobal: function() {
2242
- this._deselectMultiDrag(), U(document, "pointerup", this._deselectMultiDrag), U(document, "mouseup", this._deselectMultiDrag), U(document, "touchend", this._deselectMultiDrag), U(document, "keydown", this._checkKeyDown), U(document, "keyup", this._checkKeyUp);
2262
+ this._deselectMultiDrag(), H(document, "pointerup", this._deselectMultiDrag), H(document, "mouseup", this._deselectMultiDrag), H(document, "touchend", this._deselectMultiDrag), H(document, "keydown", this._checkKeyDown), H(document, "keyup", this._checkKeyUp);
2243
2263
  },
2244
2264
  _deselectMultiDrag: function(e) {
2245
- if (!(Oa !== void 0 && Oa) && Ta === this.sortable && !(e && hr(e.target, this.options.draggable, this.sortable.el, !1)) && !(e && e.button !== 0)) for (; Q.length;) {
2265
+ if (!(ja !== void 0 && ja) && Oa === this.sortable && !(e && yr(e.target, this.options.draggable, this.sortable.el, !1)) && !(e && e.button !== 0)) for (; Q.length;) {
2246
2266
  var t = Q[0];
2247
- W(t, this.options.selectedClass, !1), Q.shift(), Ir({
2267
+ U(t, this.options.selectedClass, !1), Q.shift(), Br({
2248
2268
  sortable: this.sortable,
2249
2269
  rootEl: this.sortable.el,
2250
2270
  name: "deselect",
@@ -2259,16 +2279,16 @@ function ri() {
2259
2279
  _checkKeyUp: function(e) {
2260
2280
  e.key === this.options.multiDragKey && (this.multiDragKeyDown = !1);
2261
2281
  }
2262
- }, rr(e, {
2282
+ }, sr(e, {
2263
2283
  pluginName: "multiDrag",
2264
2284
  utils: {
2265
2285
  select: function(e) {
2266
- var t = e.parentNode[_i];
2267
- !t || !t.options.multiDrag || ~Q.indexOf(e) || (Ta && Ta !== t && (Ta.multiDrag._deselectMultiDrag(), Ta = t), W(e, t.options.selectedClass, !0), Q.push(e));
2286
+ var t = e.parentNode[xi];
2287
+ !t || !t.options.multiDrag || ~Q.indexOf(e) || (Oa && Oa !== t && (Oa.multiDrag._deselectMultiDrag(), Oa = t), U(e, t.options.selectedClass, !0), Q.push(e));
2268
2288
  },
2269
2289
  deselect: function(e) {
2270
- var t = e.parentNode[_i], n = Q.indexOf(e);
2271
- !t || !t.options.multiDrag || !~n || (W(e, t.options.selectedClass, !1), Q.splice(n, 1));
2290
+ var t = e.parentNode[xi], n = Q.indexOf(e);
2291
+ !t || !t.options.multiDrag || !~n || (U(e, t.options.selectedClass, !1), Q.splice(n, 1));
2272
2292
  }
2273
2293
  },
2274
2294
  eventProperties: function() {
@@ -2278,14 +2298,14 @@ function ri() {
2278
2298
  multiDragElement: r,
2279
2299
  index: r.sortableIndex
2280
2300
  });
2281
- var i = Da && r !== $ ? -1 : Da ? q(r, ":not(." + e.options.selectedClass + ")") : q(r);
2301
+ var i = Aa && r !== $ ? -1 : Aa ? K(r, ":not(." + e.options.selectedClass + ")") : K(r);
2282
2302
  n.push({
2283
2303
  multiDragElement: r,
2284
2304
  index: i
2285
2305
  });
2286
2306
  }), {
2287
- items: or(Q),
2288
- clones: [].concat(Ca),
2307
+ items: ur(Q),
2308
+ clones: [].concat(Ea),
2289
2309
  oldIndicies: t,
2290
2310
  newIndicies: n
2291
2311
  };
@@ -2295,33 +2315,33 @@ function ri() {
2295
2315
  } }
2296
2316
  });
2297
2317
  }
2298
- function ii(e, t) {
2318
+ function ci(e, t) {
2299
2319
  Q.forEach(function(n, r) {
2300
2320
  var i = t.children[n.sortableIndex + (e ? Number(r) : 0)];
2301
2321
  i ? t.insertBefore(n, i) : t.appendChild(n);
2302
2322
  });
2303
2323
  }
2304
- function ai(e, t) {
2305
- Ca.forEach(function(n, r) {
2324
+ function li(e, t) {
2325
+ Ea.forEach(function(n, r) {
2306
2326
  var i = t.children[n.sortableIndex + (e ? Number(r) : 0)];
2307
2327
  i ? t.insertBefore(n, i) : t.appendChild(n);
2308
2328
  });
2309
2329
  }
2310
- function oi() {
2330
+ function ui() {
2311
2331
  Q.forEach(function(e) {
2312
2332
  e !== $ && e.parentNode && e.parentNode.removeChild(e);
2313
2333
  });
2314
2334
  }
2315
- var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z, wi, Ti, Ei, Di, Oi, ki, Ai, ji, Mi, Ni, Pi, Fi, Ii, Li, Ri, zi, Bi, Vi, Hi, Ui, Wi, Gi, Ki, qi, Ji, Yi, Xi, Zi, Qi, $i, ea, ta, na, ra, ia, aa, oa, sa, ca, la, ua, da, fa, pa, ma, ha, ga, _a, va, ya, ba, xa, Sa, Q, Ca, wa, Ta, Ea, Da, Oa, $, ka, Aa, ja = it((() => {
2316
- si = "1.14.0", ci = fr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), li = fr(/Edge/i), ui = fr(/firefox/i), di = fr(/safari/i) && !fr(/chrome/i) && !fr(/android/i), fi = fr(/iP(ad|od|hone)/i), pi = fr(/chrome/i) && fr(/android/i), mi = {
2335
+ var di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Ci, wi, Ti, Ei, J, Y, X, Z, Di, Oi, ki, Ai, ji, Mi, Ni, Pi, Fi, Ii, Li, Ri, zi, Bi, Vi, Hi, Ui, Wi, Gi, Ki, qi, Ji, Yi, Xi, Zi, Qi, $i, ea, ta, na, ra, ia, aa, oa, sa, ca, la, ua, da, fa, pa, ma, ha, ga, _a, va, ya, ba, xa, Sa, Ca, wa, Ta, Q, Ea, Da, Oa, ka, Aa, ja, $, Ma, Na, Pa = at((() => {
2336
+ di = "1.14.0", fi = gr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), pi = gr(/Edge/i), mi = gr(/firefox/i), hi = gr(/safari/i) && !gr(/chrome/i) && !gr(/android/i), gi = gr(/iP(ad|od|hone)/i), _i = gr(/chrome/i) && gr(/android/i), vi = {
2317
2337
  capture: !1,
2318
2338
  passive: !1
2319
- }, hi = /\s+/g, _i = "Sortable" + (/* @__PURE__ */ new Date()).getTime(), vi = [], yi = { initializeByDefault: !0 }, bi = {
2339
+ }, yi = /\s+/g, xi = "Sortable" + (/* @__PURE__ */ new Date()).getTime(), Si = [], Ci = { initializeByDefault: !0 }, wi = {
2320
2340
  mount: function(e) {
2321
- for (var t in yi) yi.hasOwnProperty(t) && !(t in e) && (e[t] = yi[t]);
2322
- vi.forEach(function(t) {
2341
+ for (var t in Ci) Ci.hasOwnProperty(t) && !(t in e) && (e[t] = Ci[t]);
2342
+ Si.forEach(function(t) {
2323
2343
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
2324
- }), vi.push(e);
2344
+ }), Si.push(e);
2325
2345
  },
2326
2346
  pluginEvent: function(e, t, n) {
2327
2347
  var r = this;
@@ -2329,16 +2349,16 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2329
2349
  r.eventCanceled = !0;
2330
2350
  };
2331
2351
  var i = e + "Global";
2332
- vi.forEach(function(r) {
2333
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](er({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](er({ sortable: t }, n)));
2352
+ Si.forEach(function(r) {
2353
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](ir({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](ir({ sortable: t }, n)));
2334
2354
  });
2335
2355
  },
2336
2356
  initializePlugins: function(e, t, n, r) {
2337
- for (var i in vi.forEach(function(r) {
2357
+ for (var i in Si.forEach(function(r) {
2338
2358
  var i = r.pluginName;
2339
2359
  if (!(!e.options[i] && !r.initializeByDefault)) {
2340
2360
  var a = new r(e, t, e.options);
2341
- a.sortable = e, a.options = e.options, e[i] = a, rr(n, a.defaults);
2361
+ a.sortable = e, a.options = e.options, e[i] = a, sr(n, a.defaults);
2342
2362
  }
2343
2363
  }), e.options) if (e.options.hasOwnProperty(i)) {
2344
2364
  var a = this.modifyOption(e, i, e.options[i]);
@@ -2347,79 +2367,79 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2347
2367
  },
2348
2368
  getEventProperties: function(e, t) {
2349
2369
  var n = {};
2350
- return vi.forEach(function(r) {
2351
- typeof r.eventProperties == "function" && rr(n, r.eventProperties.call(t[r.pluginName], e));
2370
+ return Si.forEach(function(r) {
2371
+ typeof r.eventProperties == "function" && sr(n, r.eventProperties.call(t[r.pluginName], e));
2352
2372
  }), n;
2353
2373
  },
2354
2374
  modifyOption: function(e, t, n) {
2355
2375
  var r;
2356
- return vi.forEach(function(i) {
2376
+ return Si.forEach(function(i) {
2357
2377
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
2358
2378
  }), r;
2359
2379
  }
2360
- }, xi = ["evt"], Si = function(e, t) {
2361
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = ar(n, xi);
2362
- bi.pluginEvent.bind(J)(e, t, er({
2363
- dragEl: Y,
2364
- parentEl: Ci,
2380
+ }, Ti = ["evt"], Ei = function(e, t) {
2381
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = lr(n, Ti);
2382
+ wi.pluginEvent.bind(q)(e, t, ir({
2383
+ dragEl: J,
2384
+ parentEl: Y,
2365
2385
  ghostEl: X,
2366
2386
  rootEl: Z,
2367
- nextEl: wi,
2368
- lastDownEl: Ti,
2369
- cloneEl: Ei,
2370
- cloneHidden: Di,
2371
- dragStarted: Ui,
2372
- putSortable: Ni,
2373
- activeSortable: J.active,
2387
+ nextEl: Di,
2388
+ lastDownEl: Oi,
2389
+ cloneEl: ki,
2390
+ cloneHidden: Ai,
2391
+ dragStarted: Ki,
2392
+ putSortable: Ii,
2393
+ activeSortable: q.active,
2374
2394
  originalEvent: r,
2375
- oldIndex: Oi,
2376
- oldDraggableIndex: Ai,
2377
- newIndex: ki,
2378
- newDraggableIndex: ji,
2379
- hideGhostForTarget: ca,
2380
- unhideGhostForTarget: la,
2395
+ oldIndex: ji,
2396
+ oldDraggableIndex: Ni,
2397
+ newIndex: Mi,
2398
+ newDraggableIndex: Pi,
2399
+ hideGhostForTarget: da,
2400
+ unhideGhostForTarget: fa,
2381
2401
  cloneNowHidden: function() {
2382
- Di = !0;
2402
+ Ai = !0;
2383
2403
  },
2384
2404
  cloneNowShown: function() {
2385
- Di = !1;
2405
+ Ai = !1;
2386
2406
  },
2387
2407
  dispatchSortableEvent: function(e) {
2388
- Lr({
2408
+ Vr({
2389
2409
  sortable: t,
2390
2410
  name: e,
2391
2411
  originalEvent: r
2392
2412
  });
2393
2413
  }
2394
2414
  }, i));
2395
- }, Pi = !1, Fi = !1, Ii = [], Ki = !1, qi = !1, Xi = [], Zi = !1, Qi = [], $i = typeof document < "u", ea = fi, ta = li || ci ? "cssFloat" : "float", na = $i && !pi && !fi && "draggable" in document.createElement("div"), ra = function() {
2396
- if ($i) {
2397
- if (ci) return !1;
2415
+ }, Li = !1, Ri = !1, zi = [], Yi = !1, Xi = !1, $i = [], ea = !1, ta = [], na = typeof document < "u", ra = gi, ia = pi || fi ? "cssFloat" : "float", aa = na && !_i && !gi && "draggable" in document.createElement("div"), oa = function() {
2416
+ if (na) {
2417
+ if (fi) return !1;
2398
2418
  var e = document.createElement("x");
2399
2419
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
2400
2420
  }
2401
- }(), ia = function(e, t) {
2402
- var n = G(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = br(e, 0, t), a = br(e, 1, t), o = i && G(i), s = a && G(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + K(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + K(a).width;
2421
+ }(), sa = function(e, t) {
2422
+ var n = W(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = wr(e, 0, t), a = wr(e, 1, t), o = i && W(i), s = a && W(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + G(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + G(a).width;
2403
2423
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
2404
2424
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
2405
2425
  if (i && o.float && o.float !== "none") {
2406
2426
  var u = o.float === "left" ? "left" : "right";
2407
2427
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
2408
2428
  }
2409
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[ta] === "none" || a && n[ta] === "none" && c + l > r) ? "vertical" : "horizontal";
2410
- }, aa = function(e, t, n) {
2429
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[ia] === "none" || a && n[ia] === "none" && c + l > r) ? "vertical" : "horizontal";
2430
+ }, ca = function(e, t, n) {
2411
2431
  var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
2412
2432
  return r === o || i === s || r + a / 2 === o + c / 2;
2413
- }, oa = function(e, t) {
2433
+ }, la = function(e, t) {
2414
2434
  var n;
2415
- return Ii.some(function(r) {
2416
- var i = r[_i].options.emptyInsertThreshold;
2417
- if (!(!i || xr(r))) {
2418
- var a = K(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
2435
+ return zi.some(function(r) {
2436
+ var i = r[xi].options.emptyInsertThreshold;
2437
+ if (!(!i || Tr(r))) {
2438
+ var a = G(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
2419
2439
  if (o && s) return n = r;
2420
2440
  }
2421
2441
  }), n;
2422
- }, sa = function(e) {
2442
+ }, ua = function(e) {
2423
2443
  function t(e, n) {
2424
2444
  return function(r, i, a, o) {
2425
2445
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -2432,92 +2452,92 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2432
2452
  };
2433
2453
  }
2434
2454
  var n = {}, r = e.group;
2435
- (!r || tr(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
2436
- }, ca = function() {
2437
- !ra && X && G(X, "display", "none");
2438
- }, la = function() {
2439
- !ra && X && G(X, "display", "");
2440
- }, $i && document.addEventListener("click", function(e) {
2441
- if (Fi) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Fi = !1, !1;
2442
- }, !0), ua = function(e) {
2443
- if (Y) {
2455
+ (!r || ar(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
2456
+ }, da = function() {
2457
+ !oa && X && W(X, "display", "none");
2458
+ }, fa = function() {
2459
+ !oa && X && W(X, "display", "");
2460
+ }, na && document.addEventListener("click", function(e) {
2461
+ if (Ri) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ri = !1, !1;
2462
+ }, !0), pa = function(e) {
2463
+ if (J) {
2444
2464
  e = e.touches ? e.touches[0] : e;
2445
- var t = oa(e.clientX, e.clientY);
2465
+ var t = la(e.clientX, e.clientY);
2446
2466
  if (t) {
2447
2467
  var n = {};
2448
2468
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
2449
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[_i]._onDragOver(n);
2469
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[xi]._onDragOver(n);
2450
2470
  }
2451
2471
  }
2452
- }, da = function(e) {
2453
- Y && Y.parentNode[_i]._isOutsideThisEl(e.target);
2454
- }, J.prototype = {
2455
- constructor: J,
2472
+ }, ma = function(e) {
2473
+ J && J.parentNode[xi]._isOutsideThisEl(e.target);
2474
+ }, q.prototype = {
2475
+ constructor: q,
2456
2476
  _isOutsideThisEl: function(e) {
2457
- !this.el.contains(e) && e !== this.el && (Wi = null);
2477
+ !this.el.contains(e) && e !== this.el && (qi = null);
2458
2478
  },
2459
2479
  _getDirection: function(e, t) {
2460
- return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, Y) : this.options.direction;
2480
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, J) : this.options.direction;
2461
2481
  },
2462
2482
  _onTapStart: function(e) {
2463
2483
  if (e.cancelable) {
2464
2484
  var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
2465
- if (qr(n), !Y && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && di && s && s.tagName.toUpperCase() === "SELECT") && (s = hr(s, r.draggable, n, !1), !(s && s.animated) && Ti !== s)) {
2466
- if (Oi = q(s), Ai = q(s, r.draggable), typeof l == "function") {
2485
+ if (Zr(n), !J && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && hi && s && s.tagName.toUpperCase() === "SELECT") && (s = yr(s, r.draggable, n, !1), !(s && s.animated) && Oi !== s)) {
2486
+ if (ji = K(s), Ni = K(s, r.draggable), typeof l == "function") {
2467
2487
  if (l.call(this, e, s, this)) {
2468
- Lr({
2488
+ Vr({
2469
2489
  sortable: t,
2470
2490
  rootEl: c,
2471
2491
  name: "filter",
2472
2492
  targetEl: s,
2473
2493
  toEl: n,
2474
2494
  fromEl: n
2475
- }), Si("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
2495
+ }), Ei("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
2476
2496
  return;
2477
2497
  }
2478
2498
  } else if (l && (l = l.split(",").some(function(r) {
2479
- if (r = hr(c, r.trim(), n, !1), r) return Lr({
2499
+ if (r = yr(c, r.trim(), n, !1), r) return Vr({
2480
2500
  sortable: t,
2481
2501
  rootEl: r,
2482
2502
  name: "filter",
2483
2503
  targetEl: s,
2484
2504
  fromEl: n,
2485
2505
  toEl: n
2486
- }), Si("filter", t, { evt: e }), !0;
2506
+ }), Ei("filter", t, { evt: e }), !0;
2487
2507
  }), l)) {
2488
2508
  i && e.cancelable && e.preventDefault();
2489
2509
  return;
2490
2510
  }
2491
- r.handle && !hr(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2511
+ r.handle && !yr(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
2492
2512
  }
2493
2513
  }
2494
2514
  },
2495
2515
  _prepareDragStart: function(e, t, n) {
2496
2516
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
2497
- if (n && !Y && n.parentNode === i) {
2498
- var c = K(n);
2499
- if (Z = i, Y = n, Ci = Y.parentNode, wi = Y.nextSibling, Ti = n, Mi = a.group, J.dragged = Y, Li = {
2500
- target: Y,
2517
+ if (n && !J && n.parentNode === i) {
2518
+ var c = G(n);
2519
+ if (Z = i, J = n, Y = J.parentNode, Di = J.nextSibling, Oi = n, Fi = a.group, q.dragged = J, Bi = {
2520
+ target: J,
2501
2521
  clientX: (t || e).clientX,
2502
2522
  clientY: (t || e).clientY
2503
- }, Vi = Li.clientX - c.left, Hi = Li.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, Y.style["will-change"] = "all", s = function() {
2504
- if (Si("delayEnded", r, { evt: e }), J.eventCanceled) {
2523
+ }, Wi = Bi.clientX - c.left, Gi = Bi.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, J.style["will-change"] = "all", s = function() {
2524
+ if (Ei("delayEnded", r, { evt: e }), q.eventCanceled) {
2505
2525
  r._onDrop();
2506
2526
  return;
2507
2527
  }
2508
- r._disableDelayedDragEvents(), !ui && r.nativeDraggable && (Y.draggable = !0), r._triggerDragStart(e, t), Lr({
2528
+ r._disableDelayedDragEvents(), !mi && r.nativeDraggable && (J.draggable = !0), r._triggerDragStart(e, t), Vr({
2509
2529
  sortable: r,
2510
2530
  name: "choose",
2511
2531
  originalEvent: e
2512
- }), W(Y, a.chosenClass, !0);
2532
+ }), U(J, a.chosenClass, !0);
2513
2533
  }, a.ignore.split(",").forEach(function(e) {
2514
- _r(Y, e.trim(), Br);
2515
- }), H(o, "dragover", ua), H(o, "mousemove", ua), H(o, "touchmove", ua), H(o, "mouseup", r._onDrop), H(o, "touchend", r._onDrop), H(o, "touchcancel", r._onDrop), ui && this.nativeDraggable && (this.options.touchStartThreshold = 4, Y.draggable = !0), Si("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(li || ci))) {
2516
- if (J.eventCanceled) {
2534
+ xr(J, e.trim(), Wr);
2535
+ }), V(o, "dragover", pa), V(o, "mousemove", pa), V(o, "touchmove", pa), V(o, "mouseup", r._onDrop), V(o, "touchend", r._onDrop), V(o, "touchcancel", r._onDrop), mi && this.nativeDraggable && (this.options.touchStartThreshold = 4, J.draggable = !0), Ei("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(pi || fi))) {
2536
+ if (q.eventCanceled) {
2517
2537
  this._onDrop();
2518
2538
  return;
2519
2539
  }
2520
- H(o, "mouseup", r._disableDelayedDrag), H(o, "touchend", r._disableDelayedDrag), H(o, "touchcancel", r._disableDelayedDrag), H(o, "mousemove", r._delayedDragTouchMoveHandler), H(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && H(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
2540
+ V(o, "mouseup", r._disableDelayedDrag), V(o, "touchend", r._disableDelayedDrag), V(o, "touchcancel", r._disableDelayedDrag), V(o, "mousemove", r._delayedDragTouchMoveHandler), V(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && V(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
2521
2541
  } else s();
2522
2542
  }
2523
2543
  },
@@ -2526,25 +2546,25 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2526
2546
  Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2527
2547
  },
2528
2548
  _disableDelayedDrag: function() {
2529
- Y && Br(Y), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2549
+ J && Wr(J), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2530
2550
  },
2531
2551
  _disableDelayedDragEvents: function() {
2532
2552
  var e = this.el.ownerDocument;
2533
- U(e, "mouseup", this._disableDelayedDrag), U(e, "touchend", this._disableDelayedDrag), U(e, "touchcancel", this._disableDelayedDrag), U(e, "mousemove", this._delayedDragTouchMoveHandler), U(e, "touchmove", this._delayedDragTouchMoveHandler), U(e, "pointermove", this._delayedDragTouchMoveHandler);
2553
+ H(e, "mouseup", this._disableDelayedDrag), H(e, "touchend", this._disableDelayedDrag), H(e, "touchcancel", this._disableDelayedDrag), H(e, "mousemove", this._delayedDragTouchMoveHandler), H(e, "touchmove", this._delayedDragTouchMoveHandler), H(e, "pointermove", this._delayedDragTouchMoveHandler);
2534
2554
  },
2535
2555
  _triggerDragStart: function(e, t) {
2536
- t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? H(document, "pointermove", this._onTouchMove) : t ? H(document, "touchmove", this._onTouchMove) : H(document, "mousemove", this._onTouchMove) : (H(Y, "dragend", this), H(Z, "dragstart", this._onDragStart));
2556
+ t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? V(document, "pointermove", this._onTouchMove) : t ? V(document, "touchmove", this._onTouchMove) : V(document, "mousemove", this._onTouchMove) : (V(J, "dragend", this), V(Z, "dragstart", this._onDragStart));
2537
2557
  try {
2538
- document.selection ? Jr(function() {
2558
+ document.selection ? Qr(function() {
2539
2559
  document.selection.empty();
2540
2560
  }) : window.getSelection().removeAllRanges();
2541
2561
  } catch {}
2542
2562
  },
2543
2563
  _dragStarted: function(e, t) {
2544
- if (Pi = !1, Z && Y) {
2545
- Si("dragStarted", this, { evt: t }), this.nativeDraggable && H(document, "dragover", da);
2564
+ if (Li = !1, Z && J) {
2565
+ Ei("dragStarted", this, { evt: t }), this.nativeDraggable && V(document, "dragover", ma);
2546
2566
  var n = this.options;
2547
- !e && W(Y, n.dragClass, !1), W(Y, n.ghostClass, !0), J.active = this, e && this._appendGhost(), Lr({
2567
+ !e && U(J, n.dragClass, !1), U(J, n.ghostClass, !0), q.active = this, e && this._appendGhost(), Vr({
2548
2568
  sortable: this,
2549
2569
  name: "start",
2550
2570
  originalEvent: t
@@ -2552,33 +2572,33 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2552
2572
  } else this._nulling();
2553
2573
  },
2554
2574
  _emulateDragOver: function() {
2555
- if (Ri) {
2556
- this._lastX = Ri.clientX, this._lastY = Ri.clientY, ca();
2557
- for (var e = document.elementFromPoint(Ri.clientX, Ri.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Ri.clientX, Ri.clientY), e !== t);) t = e;
2558
- if (Y.parentNode[_i]._isOutsideThisEl(e), t) do {
2559
- if (t[_i]) {
2575
+ if (Vi) {
2576
+ this._lastX = Vi.clientX, this._lastY = Vi.clientY, da();
2577
+ for (var e = document.elementFromPoint(Vi.clientX, Vi.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Vi.clientX, Vi.clientY), e !== t);) t = e;
2578
+ if (J.parentNode[xi]._isOutsideThisEl(e), t) do {
2579
+ if (t[xi]) {
2560
2580
  var n = void 0;
2561
- if (n = t[_i]._onDragOver({
2562
- clientX: Ri.clientX,
2563
- clientY: Ri.clientY,
2581
+ if (n = t[xi]._onDragOver({
2582
+ clientX: Vi.clientX,
2583
+ clientY: Vi.clientY,
2564
2584
  target: e,
2565
2585
  rootEl: t
2566
2586
  }), n && !this.options.dragoverBubble) break;
2567
2587
  }
2568
2588
  e = t;
2569
2589
  } while (t = t.parentNode);
2570
- la();
2590
+ fa();
2571
2591
  }
2572
2592
  },
2573
2593
  _onTouchMove: function(e) {
2574
- if (Li) {
2575
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = X && gr(X, !0), o = X && a && a.a, s = X && a && a.d, c = ea && Yi && Sr(Yi), l = (i.clientX - Li.clientX + r.x) / (o || 1) + (c ? c[0] - Xi[0] : 0) / (o || 1), u = (i.clientY - Li.clientY + r.y) / (s || 1) + (c ? c[1] - Xi[1] : 0) / (s || 1);
2576
- if (!J.active && !Pi) {
2594
+ if (Bi) {
2595
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = X && br(X, !0), o = X && a && a.a, s = X && a && a.d, c = ra && Qi && Er(Qi), l = (i.clientX - Bi.clientX + r.x) / (o || 1) + (c ? c[0] - $i[0] : 0) / (o || 1), u = (i.clientY - Bi.clientY + r.y) / (s || 1) + (c ? c[1] - $i[1] : 0) / (s || 1);
2596
+ if (!q.active && !Li) {
2577
2597
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
2578
2598
  this._onDragStart(e, !0);
2579
2599
  }
2580
2600
  if (X) {
2581
- a ? (a.e += l - (zi || 0), a.f += u - (Bi || 0)) : a = {
2601
+ a ? (a.e += l - (Hi || 0), a.f += u - (Ui || 0)) : a = {
2582
2602
  a: 1,
2583
2603
  b: 0,
2584
2604
  c: 0,
@@ -2587,39 +2607,39 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2587
2607
  f: u
2588
2608
  };
2589
2609
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
2590
- G(X, "webkitTransform", d), G(X, "mozTransform", d), G(X, "msTransform", d), G(X, "transform", d), zi = l, Bi = u, Ri = i;
2610
+ W(X, "webkitTransform", d), W(X, "mozTransform", d), W(X, "msTransform", d), W(X, "transform", d), Hi = l, Ui = u, Vi = i;
2591
2611
  }
2592
2612
  e.cancelable && e.preventDefault();
2593
2613
  }
2594
2614
  },
2595
2615
  _appendGhost: function() {
2596
2616
  if (!X) {
2597
- var e = this.options.fallbackOnBody ? document.body : Z, t = K(Y, !0, ea, !0, e), n = this.options;
2598
- if (ea) {
2599
- for (Yi = e; G(Yi, "position") === "static" && G(Yi, "transform") === "none" && Yi !== document;) Yi = Yi.parentNode;
2600
- Yi !== document.body && Yi !== document.documentElement ? (Yi === document && (Yi = vr()), t.top += Yi.scrollTop, t.left += Yi.scrollLeft) : Yi = vr(), Xi = Sr(Yi);
2617
+ var e = this.options.fallbackOnBody ? document.body : Z, t = G(J, !0, ra, !0, e), n = this.options;
2618
+ if (ra) {
2619
+ for (Qi = e; W(Qi, "position") === "static" && W(Qi, "transform") === "none" && Qi !== document;) Qi = Qi.parentNode;
2620
+ Qi !== document.body && Qi !== document.documentElement ? (Qi === document && (Qi = Sr()), t.top += Qi.scrollTop, t.left += Qi.scrollLeft) : Qi = Sr(), $i = Er(Qi);
2601
2621
  }
2602
- X = Y.cloneNode(!0), W(X, n.ghostClass, !1), W(X, n.fallbackClass, !0), W(X, n.dragClass, !0), G(X, "transition", ""), G(X, "transform", ""), G(X, "box-sizing", "border-box"), G(X, "margin", 0), G(X, "top", t.top), G(X, "left", t.left), G(X, "width", t.width), G(X, "height", t.height), G(X, "opacity", "0.8"), G(X, "position", ea ? "absolute" : "fixed"), G(X, "zIndex", "100000"), G(X, "pointerEvents", "none"), J.ghost = X, e.appendChild(X), G(X, "transform-origin", Vi / parseInt(X.style.width) * 100 + "% " + Hi / parseInt(X.style.height) * 100 + "%");
2622
+ X = J.cloneNode(!0), U(X, n.ghostClass, !1), U(X, n.fallbackClass, !0), U(X, n.dragClass, !0), W(X, "transition", ""), W(X, "transform", ""), W(X, "box-sizing", "border-box"), W(X, "margin", 0), W(X, "top", t.top), W(X, "left", t.left), W(X, "width", t.width), W(X, "height", t.height), W(X, "opacity", "0.8"), W(X, "position", ra ? "absolute" : "fixed"), W(X, "zIndex", "100000"), W(X, "pointerEvents", "none"), q.ghost = X, e.appendChild(X), W(X, "transform-origin", Wi / parseInt(X.style.width) * 100 + "% " + Gi / parseInt(X.style.height) * 100 + "%");
2603
2623
  }
2604
2624
  },
2605
2625
  _onDragStart: function(e, t) {
2606
2626
  var n = this, r = e.dataTransfer, i = n.options;
2607
- if (Si("dragStart", this, { evt: e }), J.eventCanceled) {
2627
+ if (Ei("dragStart", this, { evt: e }), q.eventCanceled) {
2608
2628
  this._onDrop();
2609
2629
  return;
2610
2630
  }
2611
- Si("setupClone", this), J.eventCanceled || (Ei = Ar(Y), Ei.draggable = !1, Ei.style["will-change"] = "", this._hideClone(), W(Ei, this.options.chosenClass, !1), J.clone = Ei), n.cloneId = Jr(function() {
2612
- Si("clone", n), !J.eventCanceled && (n.options.removeCloneOnHide || Z.insertBefore(Ei, Y), n._hideClone(), Lr({
2631
+ Ei("setupClone", this), q.eventCanceled || (ki = Pr(J), ki.draggable = !1, ki.style["will-change"] = "", this._hideClone(), U(ki, this.options.chosenClass, !1), q.clone = ki), n.cloneId = Qr(function() {
2632
+ Ei("clone", n), !q.eventCanceled && (n.options.removeCloneOnHide || Z.insertBefore(ki, J), n._hideClone(), Vr({
2613
2633
  sortable: n,
2614
2634
  name: "clone"
2615
2635
  }));
2616
- }), !t && W(Y, i.dragClass, !0), t ? (Fi = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (U(document, "mouseup", n._onDrop), U(document, "touchend", n._onDrop), U(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, Y)), H(document, "drop", n), G(Y, "transform", "translateZ(0)")), Pi = !0, n._dragStartId = Jr(n._dragStarted.bind(n, t, e)), H(document, "selectstart", n), Ui = !0, di && G(document.body, "user-select", "none");
2636
+ }), !t && U(J, i.dragClass, !0), t ? (Ri = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (H(document, "mouseup", n._onDrop), H(document, "touchend", n._onDrop), H(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, J)), V(document, "drop", n), W(J, "transform", "translateZ(0)")), Li = !0, n._dragStartId = Qr(n._dragStarted.bind(n, t, e)), V(document, "selectstart", n), Ki = !0, hi && W(document.body, "user-select", "none");
2617
2637
  },
2618
2638
  _onDragOver: function(e) {
2619
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = J.active, l = Mi === s, u = o.sort, d = Ni || c, f, p = this, m = !1;
2620
- if (Zi) return;
2639
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = q.active, l = Fi === s, u = o.sort, d = Ii || c, f, p = this, m = !1;
2640
+ if (ea) return;
2621
2641
  function h(o, s) {
2622
- Si(o, p, er({
2642
+ Ei(o, p, ir({
2623
2643
  evt: e,
2624
2644
  isOwner: l,
2625
2645
  axis: f ? "vertical" : "horizontal",
@@ -2631,7 +2651,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2631
2651
  target: n,
2632
2652
  completed: _,
2633
2653
  onMove: function(n, i) {
2634
- return zr(Z, t, Y, r, n, K(n), e, i);
2654
+ return Ur(Z, t, J, r, n, G(n), e, i);
2635
2655
  },
2636
2656
  changed: v
2637
2657
  }, s));
@@ -2640,119 +2660,119 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2640
2660
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
2641
2661
  }
2642
2662
  function _(r) {
2643
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (W(Y, Ni ? Ni.options.ghostClass : c.options.ghostClass, !1), W(Y, o.ghostClass, !0)), Ni !== p && p !== J.active ? Ni = p : p === J.active && Ni && (Ni = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
2663
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (U(J, Ii ? Ii.options.ghostClass : c.options.ghostClass, !1), U(J, o.ghostClass, !0)), Ii !== p && p !== q.active ? Ii = p : p === q.active && Ii && (Ii = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
2644
2664
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
2645
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === Y && !Y.animated || n === t && !n.animated) && (Wi = null), !o.dragoverBubble && !e.rootEl && n !== document && (Y.parentNode[_i]._isOutsideThisEl(e.target), !r && ua(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
2665
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === J && !J.animated || n === t && !n.animated) && (qi = null), !o.dragoverBubble && !e.rootEl && n !== document && (J.parentNode[xi]._isOutsideThisEl(e.target), !r && pa(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
2646
2666
  }
2647
2667
  function v() {
2648
- ki = q(Y), ji = q(Y, o.draggable), Lr({
2668
+ Mi = K(J), Pi = K(J, o.draggable), Vr({
2649
2669
  sortable: p,
2650
2670
  name: "change",
2651
2671
  toEl: t,
2652
- newIndex: ki,
2653
- newDraggableIndex: ji,
2672
+ newIndex: Mi,
2673
+ newDraggableIndex: Pi,
2654
2674
  originalEvent: e
2655
2675
  });
2656
2676
  }
2657
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = hr(n, o.draggable, t, !0), h("dragOver"), J.eventCanceled) return m;
2658
- if (Y.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
2659
- if (Fi = !1, c && !o.disabled && (l ? u || (a = Ci !== Z) : Ni === this || (this.lastPutMode = Mi.checkPull(this, c, Y, e)) && s.checkPut(this, c, Y, e))) {
2660
- if (f = this._getDirection(e, n) === "vertical", r = K(Y), h("dragOverValid"), J.eventCanceled) return m;
2661
- if (a) return Ci = Z, g(), this._hideClone(), h("revert"), J.eventCanceled || (wi ? Z.insertBefore(Y, wi) : Z.appendChild(Y)), _(!0);
2662
- var y = xr(t, o.draggable);
2663
- if (!y || Ur(e, f, this) && !y.animated) {
2664
- if (y === Y) return _(!1);
2665
- if (y && t === e.target && (n = y), n && (i = K(n)), zr(Z, t, Y, r, n, i, e, !!n) !== !1) return g(), t.appendChild(Y), Ci = t, v(), _(!0);
2666
- } else if (y && Hr(e, f, this)) {
2667
- var b = br(t, 0, o, !0);
2668
- if (b === Y) return _(!1);
2669
- if (n = b, i = K(n), zr(Z, t, Y, r, n, i, e, !1) !== !1) return g(), t.insertBefore(Y, b), Ci = t, v(), _(!0);
2677
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = yr(n, o.draggable, t, !0), h("dragOver"), q.eventCanceled) return m;
2678
+ if (J.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
2679
+ if (Ri = !1, c && !o.disabled && (l ? u || (a = Y !== Z) : Ii === this || (this.lastPutMode = Fi.checkPull(this, c, J, e)) && s.checkPut(this, c, J, e))) {
2680
+ if (f = this._getDirection(e, n) === "vertical", r = G(J), h("dragOverValid"), q.eventCanceled) return m;
2681
+ if (a) return Y = Z, g(), this._hideClone(), h("revert"), q.eventCanceled || (Di ? Z.insertBefore(J, Di) : Z.appendChild(J)), _(!0);
2682
+ var y = Tr(t, o.draggable);
2683
+ if (!y || qr(e, f, this) && !y.animated) {
2684
+ if (y === J) return _(!1);
2685
+ if (y && t === e.target && (n = y), n && (i = G(n)), Ur(Z, t, J, r, n, i, e, !!n) !== !1) return g(), t.appendChild(J), Y = t, v(), _(!0);
2686
+ } else if (y && Kr(e, f, this)) {
2687
+ var b = wr(t, 0, o, !0);
2688
+ if (b === J) return _(!1);
2689
+ if (n = b, i = G(n), Ur(Z, t, J, r, n, i, e, !1) !== !1) return g(), t.insertBefore(J, b), Y = t, v(), _(!0);
2670
2690
  } else if (n.parentNode === t) {
2671
- i = K(n);
2672
- var x = 0, S, C = Y.parentNode !== t, ee = !aa(Y.animated && Y.toRect || r, n.animated && n.toRect || i, f), w = f ? "top" : "left", T = yr(n, "top", "top") || yr(Y, "top", "top"), E = T ? T.scrollTop : void 0;
2673
- Wi !== n && (S = i[w], Ki = !1, qi = !ee && o.invertSwap || C), x = Wr(e, n, i, f, ee ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, qi, Wi === n);
2691
+ i = G(n);
2692
+ var x = 0, S, C = J.parentNode !== t, ee = !ca(J.animated && J.toRect || r, n.animated && n.toRect || i, f), w = f ? "top" : "left", T = Cr(n, "top", "top") || Cr(J, "top", "top"), E = T ? T.scrollTop : void 0;
2693
+ qi !== n && (S = i[w], Yi = !1, Xi = !ee && o.invertSwap || C), x = Jr(e, n, i, f, ee ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Xi, qi === n);
2674
2694
  var D;
2675
2695
  if (x !== 0) {
2676
- var O = q(Y);
2696
+ var te = K(J);
2677
2697
  do
2678
- O -= x, D = Ci.children[O];
2679
- while (D && (G(D, "display") === "none" || D === X));
2698
+ te -= x, D = Y.children[te];
2699
+ while (D && (W(D, "display") === "none" || D === X));
2680
2700
  }
2681
2701
  if (x === 0 || D === n) return _(!1);
2682
- Wi = n, Gi = x;
2683
- var te = n.nextElementSibling, k = !1;
2684
- k = x === 1;
2685
- var ne = zr(Z, t, Y, r, n, i, e, k);
2686
- if (ne !== !1) return (ne === 1 || ne === -1) && (k = ne === 1), Zi = !0, setTimeout(Vr, 30), g(), k && !te ? t.appendChild(Y) : n.parentNode.insertBefore(Y, k ? te : n), T && kr(T, 0, E - T.scrollTop), Ci = Y.parentNode, S !== void 0 && !qi && (Ji = Math.abs(S - K(n)[w])), v(), _(!0);
2702
+ qi = n, Ji = x;
2703
+ var ne = n.nextElementSibling, O = !1;
2704
+ O = x === 1;
2705
+ var re = Ur(Z, t, J, r, n, i, e, O);
2706
+ if (re !== !1) return (re === 1 || re === -1) && (O = re === 1), ea = !0, setTimeout(Gr, 30), g(), O && !ne ? t.appendChild(J) : n.parentNode.insertBefore(J, O ? ne : n), T && Nr(T, 0, E - T.scrollTop), Y = J.parentNode, S !== void 0 && !Xi && (Zi = Math.abs(S - G(n)[w])), v(), _(!0);
2687
2707
  }
2688
- if (t.contains(Y)) return _(!1);
2708
+ if (t.contains(J)) return _(!1);
2689
2709
  }
2690
2710
  return !1;
2691
2711
  },
2692
2712
  _ignoreWhileAnimating: null,
2693
2713
  _offMoveEvents: function() {
2694
- U(document, "mousemove", this._onTouchMove), U(document, "touchmove", this._onTouchMove), U(document, "pointermove", this._onTouchMove), U(document, "dragover", ua), U(document, "mousemove", ua), U(document, "touchmove", ua);
2714
+ H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover", pa), H(document, "mousemove", pa), H(document, "touchmove", pa);
2695
2715
  },
2696
2716
  _offUpEvents: function() {
2697
2717
  var e = this.el.ownerDocument;
2698
- U(e, "mouseup", this._onDrop), U(e, "touchend", this._onDrop), U(e, "pointerup", this._onDrop), U(e, "touchcancel", this._onDrop), U(document, "selectstart", this);
2718
+ H(e, "mouseup", this._onDrop), H(e, "touchend", this._onDrop), H(e, "pointerup", this._onDrop), H(e, "touchcancel", this._onDrop), H(document, "selectstart", this);
2699
2719
  },
2700
2720
  _onDrop: function(e) {
2701
2721
  var t = this.el, n = this.options;
2702
- if (ki = q(Y), ji = q(Y, n.draggable), Si("drop", this, { evt: e }), Ci = Y && Y.parentNode, ki = q(Y), ji = q(Y, n.draggable), J.eventCanceled) {
2722
+ if (Mi = K(J), Pi = K(J, n.draggable), Ei("drop", this, { evt: e }), Y = J && J.parentNode, Mi = K(J), Pi = K(J, n.draggable), q.eventCanceled) {
2703
2723
  this._nulling();
2704
2724
  return;
2705
2725
  }
2706
- Pi = !1, qi = !1, Ki = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yr(this.cloneId), Yr(this._dragStartId), this.nativeDraggable && (U(document, "drop", this), U(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), di && G(document.body, "user-select", ""), G(Y, "transform", ""), e && (Ui && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), X && X.parentNode && X.parentNode.removeChild(X), (Z === Ci || Ni && Ni.lastPutMode !== "clone") && Ei && Ei.parentNode && Ei.parentNode.removeChild(Ei), Y && (this.nativeDraggable && U(Y, "dragend", this), Br(Y), Y.style["will-change"] = "", Ui && !Pi && W(Y, Ni ? Ni.options.ghostClass : this.options.ghostClass, !1), W(Y, this.options.chosenClass, !1), Lr({
2726
+ Li = !1, Xi = !1, Yi = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), $r(this.cloneId), $r(this._dragStartId), this.nativeDraggable && (H(document, "drop", this), H(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), hi && W(document.body, "user-select", ""), W(J, "transform", ""), e && (Ki && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), X && X.parentNode && X.parentNode.removeChild(X), (Z === Y || Ii && Ii.lastPutMode !== "clone") && ki && ki.parentNode && ki.parentNode.removeChild(ki), J && (this.nativeDraggable && H(J, "dragend", this), Wr(J), J.style["will-change"] = "", Ki && !Li && U(J, Ii ? Ii.options.ghostClass : this.options.ghostClass, !1), U(J, this.options.chosenClass, !1), Vr({
2707
2727
  sortable: this,
2708
2728
  name: "unchoose",
2709
- toEl: Ci,
2729
+ toEl: Y,
2710
2730
  newIndex: null,
2711
2731
  newDraggableIndex: null,
2712
2732
  originalEvent: e
2713
- }), Z === Ci ? ki !== Oi && ki >= 0 && (Lr({
2733
+ }), Z === Y ? Mi !== ji && Mi >= 0 && (Vr({
2714
2734
  sortable: this,
2715
2735
  name: "update",
2716
- toEl: Ci,
2736
+ toEl: Y,
2717
2737
  originalEvent: e
2718
- }), Lr({
2738
+ }), Vr({
2719
2739
  sortable: this,
2720
2740
  name: "sort",
2721
- toEl: Ci,
2741
+ toEl: Y,
2722
2742
  originalEvent: e
2723
- })) : (ki >= 0 && (Lr({
2724
- rootEl: Ci,
2743
+ })) : (Mi >= 0 && (Vr({
2744
+ rootEl: Y,
2725
2745
  name: "add",
2726
- toEl: Ci,
2746
+ toEl: Y,
2727
2747
  fromEl: Z,
2728
2748
  originalEvent: e
2729
- }), Lr({
2749
+ }), Vr({
2730
2750
  sortable: this,
2731
2751
  name: "remove",
2732
- toEl: Ci,
2752
+ toEl: Y,
2733
2753
  originalEvent: e
2734
- }), Lr({
2735
- rootEl: Ci,
2754
+ }), Vr({
2755
+ rootEl: Y,
2736
2756
  name: "sort",
2737
- toEl: Ci,
2757
+ toEl: Y,
2738
2758
  fromEl: Z,
2739
2759
  originalEvent: e
2740
- }), Lr({
2760
+ }), Vr({
2741
2761
  sortable: this,
2742
2762
  name: "sort",
2743
- toEl: Ci,
2763
+ toEl: Y,
2744
2764
  originalEvent: e
2745
- })), Ni && Ni.save()), J.active && ((ki == null || ki === -1) && (ki = Oi, ji = Ai), Lr({
2765
+ })), Ii && Ii.save()), q.active && ((Mi == null || Mi === -1) && (Mi = ji, Pi = Ni), Vr({
2746
2766
  sortable: this,
2747
2767
  name: "end",
2748
- toEl: Ci,
2768
+ toEl: Y,
2749
2769
  originalEvent: e
2750
2770
  }), this.save()))), this._nulling();
2751
2771
  },
2752
2772
  _nulling: function() {
2753
- Si("nulling", this), Z = Y = Ci = X = wi = Ei = Ti = Di = Li = Ri = Ui = ki = ji = Oi = Ai = Wi = Gi = Ni = Mi = J.dragged = J.ghost = J.clone = J.active = null, Qi.forEach(function(e) {
2773
+ Ei("nulling", this), Z = J = Y = X = Di = ki = Oi = Ai = Bi = Vi = Ki = Mi = Pi = ji = Ni = qi = Ji = Ii = Fi = q.dragged = q.ghost = q.clone = q.active = null, ta.forEach(function(e) {
2754
2774
  e.checked = !0;
2755
- }), Qi.length = zi = Bi = 0;
2775
+ }), ta.length = Hi = Ui = 0;
2756
2776
  },
2757
2777
  handleEvent: function(e) {
2758
2778
  switch (e.type) {
@@ -2762,7 +2782,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2762
2782
  break;
2763
2783
  case "dragenter":
2764
2784
  case "dragover":
2765
- Y && (this._onDragOver(e), Rr(e));
2785
+ J && (this._onDragOver(e), Hr(e));
2766
2786
  break;
2767
2787
  case "selectstart":
2768
2788
  e.preventDefault();
@@ -2770,14 +2790,14 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2770
2790
  }
2771
2791
  },
2772
2792
  toArray: function() {
2773
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], hr(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Kr(t));
2793
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], yr(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Xr(t));
2774
2794
  return e;
2775
2795
  },
2776
2796
  sort: function(e, t) {
2777
2797
  var n = {}, r = this.el;
2778
2798
  this.toArray().forEach(function(e, t) {
2779
2799
  var i = r.children[t];
2780
- hr(i, this.options.draggable, r, !1) && (n[e] = i);
2800
+ yr(i, this.options.draggable, r, !1) && (n[e] = i);
2781
2801
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
2782
2802
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
2783
2803
  }), t && this.animateAll();
@@ -2787,25 +2807,25 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2787
2807
  e && e.set && e.set(this);
2788
2808
  },
2789
2809
  closest: function(e, t) {
2790
- return hr(e, t || this.options.draggable, this.el, !1);
2810
+ return yr(e, t || this.options.draggable, this.el, !1);
2791
2811
  },
2792
2812
  option: function(e, t) {
2793
2813
  var n = this.options;
2794
2814
  if (t === void 0) return n[e];
2795
- var r = bi.modifyOption(this, e, t);
2796
- r === void 0 ? n[e] = t : n[e] = r, e === "group" && sa(n);
2815
+ var r = wi.modifyOption(this, e, t);
2816
+ r === void 0 ? n[e] = t : n[e] = r, e === "group" && ua(n);
2797
2817
  },
2798
2818
  destroy: function() {
2799
- Si("destroy", this);
2819
+ Ei("destroy", this);
2800
2820
  var e = this.el;
2801
- e[_i] = null, U(e, "mousedown", this._onTapStart), U(e, "touchstart", this._onTapStart), U(e, "pointerdown", this._onTapStart), this.nativeDraggable && (U(e, "dragover", this), U(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
2821
+ e[xi] = null, H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart), H(e, "pointerdown", this._onTapStart), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
2802
2822
  e.removeAttribute("draggable");
2803
- }), this._onDrop(), this._disableDelayedDragEvents(), Ii.splice(Ii.indexOf(this.el), 1), this.el = e = null;
2823
+ }), this._onDrop(), this._disableDelayedDragEvents(), zi.splice(zi.indexOf(this.el), 1), this.el = e = null;
2804
2824
  },
2805
2825
  _hideClone: function() {
2806
- if (!Di) {
2807
- if (Si("hideClone", this), J.eventCanceled) return;
2808
- G(Ei, "display", "none"), this.options.removeCloneOnHide && Ei.parentNode && Ei.parentNode.removeChild(Ei), Di = !0;
2826
+ if (!Ai) {
2827
+ if (Ei("hideClone", this), q.eventCanceled) return;
2828
+ W(ki, "display", "none"), this.options.removeCloneOnHide && ki.parentNode && ki.parentNode.removeChild(ki), Ai = !0;
2809
2829
  }
2810
2830
  },
2811
2831
  _showClone: function(e) {
@@ -2813,60 +2833,60 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2813
2833
  this._hideClone();
2814
2834
  return;
2815
2835
  }
2816
- if (Di) {
2817
- if (Si("showClone", this), J.eventCanceled) return;
2818
- Y.parentNode == Z && !this.options.group.revertClone ? Z.insertBefore(Ei, Y) : wi ? Z.insertBefore(Ei, wi) : Z.appendChild(Ei), this.options.group.revertClone && this.animate(Y, Ei), G(Ei, "display", ""), Di = !1;
2836
+ if (Ai) {
2837
+ if (Ei("showClone", this), q.eventCanceled) return;
2838
+ J.parentNode == Z && !this.options.group.revertClone ? Z.insertBefore(ki, J) : Di ? Z.insertBefore(ki, Di) : Z.appendChild(ki), this.options.group.revertClone && this.animate(J, ki), W(ki, "display", ""), Ai = !1;
2819
2839
  }
2820
2840
  }
2821
- }, $i && H(document, "touchmove", function(e) {
2822
- (J.active || Pi) && e.cancelable && e.preventDefault();
2823
- }), J.utils = {
2824
- on: H,
2825
- off: U,
2826
- css: G,
2827
- find: _r,
2841
+ }, na && V(document, "touchmove", function(e) {
2842
+ (q.active || Li) && e.cancelable && e.preventDefault();
2843
+ }), q.utils = {
2844
+ on: V,
2845
+ off: H,
2846
+ css: W,
2847
+ find: xr,
2828
2848
  is: function(e, t) {
2829
- return !!hr(e, t, e, !1);
2849
+ return !!yr(e, t, e, !1);
2830
2850
  },
2831
- extend: Tr,
2832
- throttle: Dr,
2833
- closest: hr,
2834
- toggleClass: W,
2835
- clone: Ar,
2836
- index: q,
2837
- nextTick: Jr,
2838
- cancelNextTick: Yr,
2839
- detectDirection: ia,
2840
- getChild: br
2841
- }, J.get = function(e) {
2842
- return e[_i];
2843
- }, J.mount = function() {
2851
+ extend: kr,
2852
+ throttle: jr,
2853
+ closest: yr,
2854
+ toggleClass: U,
2855
+ clone: Pr,
2856
+ index: K,
2857
+ nextTick: Qr,
2858
+ cancelNextTick: $r,
2859
+ detectDirection: sa,
2860
+ getChild: wr
2861
+ }, q.get = function(e) {
2862
+ return e[xi];
2863
+ }, q.mount = function() {
2844
2864
  var e = [...arguments];
2845
2865
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
2846
2866
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
2847
- e.utils && (J.utils = er(er({}, J.utils), e.utils)), bi.mount(e);
2867
+ e.utils && (q.utils = ir(ir({}, q.utils), e.utils)), wi.mount(e);
2848
2868
  });
2849
- }, J.create = function(e, t) {
2850
- return new J(e, t);
2851
- }, J.version = si, fa = [], ha = !1, ba = Dr(function(e, t, n, r) {
2869
+ }, q.create = function(e, t) {
2870
+ return new q(e, t);
2871
+ }, q.version = di, ha = [], va = !1, Ca = jr(function(e, t, n, r) {
2852
2872
  if (t.scroll) {
2853
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = vr(), l = !1, u;
2854
- ma !== n && (ma = n, Zr(), pa = t.scroll, u = t.scrollFn, pa === !0 && (pa = wr(n, !0)));
2855
- var d = 0, f = pa;
2873
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Sr(), l = !1, u;
2874
+ _a !== n && (_a = n, ti(), ga = t.scroll, u = t.scrollFn, ga === !0 && (ga = Or(n, !0)));
2875
+ var d = 0, f = ga;
2856
2876
  do {
2857
- var p = f, m = K(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, ee = p.scrollHeight, w = G(p), T = p.scrollLeft, E = p.scrollTop;
2877
+ var p = f, m = G(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, ee = p.scrollHeight, w = W(p), T = p.scrollLeft, E = p.scrollTop;
2858
2878
  p === c ? (x = y < C && (w.overflowX === "auto" || w.overflowX === "scroll" || w.overflowX === "visible"), S = b < ee && (w.overflowY === "auto" || w.overflowY === "scroll" || w.overflowY === "visible")) : (x = y < C && (w.overflowX === "auto" || w.overflowX === "scroll"), S = b < ee && (w.overflowY === "auto" || w.overflowY === "scroll"));
2859
- var D = x && (Math.abs(v - i) <= o && T + y < C) - (Math.abs(_ - i) <= o && !!T), O = S && (Math.abs(g - a) <= o && E + b < ee) - (Math.abs(h - a) <= o && !!E);
2860
- if (!fa[d]) for (var te = 0; te <= d; te++) fa[te] || (fa[te] = {});
2861
- (fa[d].vx != D || fa[d].vy != O || fa[d].el !== p) && (fa[d].el = p, fa[d].vx = D, fa[d].vy = O, clearInterval(fa[d].pid), (D != 0 || O != 0) && (l = !0, fa[d].pid = setInterval(function() {
2862
- r && this.layer === 0 && J.active._onTouchMove(va);
2863
- var t = fa[this.layer].vy ? fa[this.layer].vy * s : 0, n = fa[this.layer].vx ? fa[this.layer].vx * s : 0;
2864
- typeof u == "function" && u.call(J.dragged.parentNode[_i], n, t, e, va, fa[this.layer].el) !== "continue" || kr(fa[this.layer].el, n, t);
2879
+ var D = x && (Math.abs(v - i) <= o && T + y < C) - (Math.abs(_ - i) <= o && !!T), te = S && (Math.abs(g - a) <= o && E + b < ee) - (Math.abs(h - a) <= o && !!E);
2880
+ if (!ha[d]) for (var ne = 0; ne <= d; ne++) ha[ne] || (ha[ne] = {});
2881
+ (ha[d].vx != D || ha[d].vy != te || ha[d].el !== p) && (ha[d].el = p, ha[d].vx = D, ha[d].vy = te, clearInterval(ha[d].pid), (D != 0 || te != 0) && (l = !0, ha[d].pid = setInterval(function() {
2882
+ r && this.layer === 0 && q.active._onTouchMove(xa);
2883
+ var t = ha[this.layer].vy ? ha[this.layer].vy * s : 0, n = ha[this.layer].vx ? ha[this.layer].vx * s : 0;
2884
+ typeof u == "function" && u.call(q.dragged.parentNode[xi], n, t, e, xa, ha[this.layer].el) !== "continue" || Nr(ha[this.layer].el, n, t);
2865
2885
  }.bind({ layer: d }), 24))), d++;
2866
- } while (t.bubbleScroll && f !== c && (f = wr(f, !1)));
2867
- ha = l;
2886
+ } while (t.bubbleScroll && f !== c && (f = Or(f, !1)));
2887
+ va = l;
2868
2888
  }
2869
- }, 30), xa = function(e) {
2889
+ }, 30), wa = function(e) {
2870
2890
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
2871
2891
  if (t) {
2872
2892
  var c = n || i;
@@ -2877,7 +2897,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2877
2897
  putSortable: n
2878
2898
  }));
2879
2899
  }
2880
- }, $r.prototype = {
2900
+ }, ri.prototype = {
2881
2901
  startIndex: null,
2882
2902
  dragStart: function(e) {
2883
2903
  this.startIndex = e.oldDraggableIndex;
@@ -2885,20 +2905,20 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
2885
2905
  onSpill: function(e) {
2886
2906
  var t = e.dragEl, n = e.putSortable;
2887
2907
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
2888
- var r = br(this.sortable.el, this.startIndex, this.options);
2908
+ var r = wr(this.sortable.el, this.startIndex, this.options);
2889
2909
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
2890
2910
  },
2891
- drop: xa
2892
- }, rr($r, { pluginName: "revertOnSpill" }), ei.prototype = {
2911
+ drop: wa
2912
+ }, sr(ri, { pluginName: "revertOnSpill" }), ii.prototype = {
2893
2913
  onSpill: function(e) {
2894
2914
  var t = e.dragEl, n = e.putSortable || this.sortable;
2895
2915
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
2896
2916
  },
2897
- drop: xa
2898
- }, rr(ei, { pluginName: "removeOnSpill" }), Q = [], Ca = [], Ea = !1, Da = !1, Oa = !1, J.mount(new Xr()), J.mount(ei, $r);
2899
- })), Ma = /* @__PURE__ */ at(((e, t) => {
2917
+ drop: wa
2918
+ }, sr(ii, { pluginName: "removeOnSpill" }), Q = [], Ea = [], ka = !1, Aa = !1, ja = !1, q.mount(new ei()), q.mount(ii, ri);
2919
+ })), Fa = /* @__PURE__ */ ot(((e, t) => {
2900
2920
  (function(n, r) {
2901
- typeof e == "object" && typeof t == "object" ? t.exports = r(ut("vue"), (ja(), lt(Qn))) : typeof define == "function" && define.amd ? define([, "sortablejs"], r) : typeof e == "object" ? e.vuedraggable = r(ut("vue"), (ja(), lt(Qn))) : n.vuedraggable = r(n.Vue, n.Sortable);
2921
+ typeof e == "object" && typeof t == "object" ? t.exports = r(dt("vue"), (Pa(), ut(nr))) : typeof define == "function" && define.amd ? define([, "sortablejs"], r) : typeof e == "object" ? e.vuedraggable = r(dt("vue"), (Pa(), ut(nr))) : n.vuedraggable = r(n.Vue, n.Sortable);
2902
2922
  })(typeof self < "u" ? self : e, function(e, t) {
2903
2923
  return (function(e) {
2904
2924
  var t = {};
@@ -3320,14 +3340,14 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
3320
3340
  }
3321
3341
  for (var ee = "", w = 0, T = 0; T < S.length; T++) {
3322
3342
  C = S[T];
3323
- for (var E = String(C[0]), D = d(f(s(C.index), p.length), 0), O = [], te = 1; te < C.length; te++) O.push(g(C[te]));
3324
- var k = C.groups;
3343
+ for (var E = String(C[0]), D = d(f(s(C.index), p.length), 0), te = [], ne = 1; ne < C.length; ne++) te.push(g(C[ne]));
3344
+ var O = C.groups;
3325
3345
  if (m) {
3326
- var ne = [E].concat(O, D, p);
3327
- k !== void 0 && ne.push(k);
3328
- var re = String(r.apply(void 0, ne));
3329
- } else re = b(E, p, D, O, k, r);
3330
- D >= w && (ee += p.slice(w, D) + re, w = D + E.length);
3346
+ var re = [E].concat(te, D, p);
3347
+ O !== void 0 && re.push(O);
3348
+ var ie = String(r.apply(void 0, re));
3349
+ } else ie = b(E, p, D, te, O, r);
3350
+ D >= w && (ee += p.slice(w, D) + ie, w = D + E.length);
3331
3351
  }
3332
3352
  return ee + p.slice(w);
3333
3353
  }];
@@ -3558,20 +3578,20 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
3558
3578
  return function() {
3559
3579
  return new n(this);
3560
3580
  };
3561
- }, ee = t + " Iterator", w = !1, T = e.prototype, E = T[g] || T["@@iterator"] || p && T[p], D = !h && E || C(p), O = t == "Array" && T.entries || E, te, k, ne;
3562
- if (O && (te = a(O.call(new e())), m !== Object.prototype && te.next && (!d && a(te) !== m && (o ? o(te, m) : typeof te[g] != "function" && c(te, g, b)), s(te, ee, !0, !0), d && (f[ee] = b))), p == v && E && E.name !== v && (w = !0, D = function() {
3581
+ }, ee = t + " Iterator", w = !1, T = e.prototype, E = T[g] || T["@@iterator"] || p && T[p], D = !h && E || C(p), te = t == "Array" && T.entries || E, ne, O, re;
3582
+ if (te && (ne = a(te.call(new e())), m !== Object.prototype && ne.next && (!d && a(ne) !== m && (o ? o(ne, m) : typeof ne[g] != "function" && c(ne, g, b)), s(ne, ee, !0, !0), d && (f[ee] = b))), p == v && E && E.name !== v && (w = !0, D = function() {
3563
3583
  return E.call(this);
3564
- }), (!d || S) && T[g] !== D && c(T, g, D), f[t] = D, p) if (k = {
3584
+ }), (!d || S) && T[g] !== D && c(T, g, D), f[t] = D, p) if (O = {
3565
3585
  values: C(v),
3566
3586
  keys: x ? D : C(_),
3567
3587
  entries: C(y)
3568
- }, S) for (ne in k) (h || w || !(ne in T)) && l(T, ne, k[ne]);
3588
+ }, S) for (re in O) (h || w || !(re in T)) && l(T, re, O[re]);
3569
3589
  else r({
3570
3590
  target: t,
3571
3591
  proto: !0,
3572
3592
  forced: h || w
3573
- }, k);
3574
- return k;
3593
+ }, O);
3594
+ return O;
3575
3595
  };
3576
3596
  }),
3577
3597
  "7f9a": (function(e, t, n) {
@@ -3785,83 +3805,83 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
3785
3805
  } });
3786
3806
  }),
3787
3807
  a4d3: (function(e, t, n) {
3788
- var r = n("23e7"), i = n("da84"), a = n("d066"), o = n("c430"), s = n("83ab"), c = n("4930"), l = n("fdbf"), u = n("d039"), d = n("5135"), f = n("e8b5"), p = n("861d"), m = n("825a"), h = n("7b0b"), g = n("fc6a"), _ = n("c04e"), v = n("5c6c"), y = n("7c73"), b = n("df75"), x = n("241c"), S = n("057f"), C = n("7418"), ee = n("06cf"), w = n("9bf2"), T = n("d1e7"), E = n("9112"), D = n("6eeb"), O = n("5692"), te = n("f772"), k = n("d012"), ne = n("90e3"), re = n("b622"), ie = n("e538"), ae = n("746f"), A = n("d44e"), oe = n("69f3"), se = n("b727").forEach, j = te("hidden"), M = "Symbol", ce = "prototype", N = re("toPrimitive"), le = oe.set, P = oe.getterFor(M), ue = Object[ce], F = i.Symbol, de = a("JSON", "stringify"), fe = ee.f, I = w.f, pe = S.f, me = T.f, he = O("symbols"), L = O("op-symbols"), R = O("string-to-symbol-registry"), z = O("symbol-to-string-registry"), ge = O("wks"), _e = i.QObject, ve = !_e || !_e[ce] || !_e[ce].findChild, ye = s && u(function() {
3789
- return y(I({}, "a", { get: function() {
3790
- return I(this, "a", { value: 7 }).a;
3808
+ var r = n("23e7"), i = n("da84"), a = n("d066"), o = n("c430"), s = n("83ab"), c = n("4930"), l = n("fdbf"), u = n("d039"), d = n("5135"), f = n("e8b5"), p = n("861d"), m = n("825a"), h = n("7b0b"), g = n("fc6a"), _ = n("c04e"), v = n("5c6c"), y = n("7c73"), b = n("df75"), x = n("241c"), S = n("057f"), C = n("7418"), ee = n("06cf"), w = n("9bf2"), T = n("d1e7"), E = n("9112"), D = n("6eeb"), te = n("5692"), ne = n("f772"), O = n("d012"), re = n("90e3"), ie = n("b622"), ae = n("e538"), oe = n("746f"), k = n("d44e"), se = n("69f3"), A = n("b727").forEach, j = ne("hidden"), M = "Symbol", ce = "prototype", N = ie("toPrimitive"), le = se.set, ue = se.getterFor(M), de = Object[ce], P = i.Symbol, fe = a("JSON", "stringify"), pe = ee.f, F = w.f, me = S.f, he = T.f, ge = te("symbols"), I = te("op-symbols"), L = te("string-to-symbol-registry"), R = te("symbol-to-string-registry"), _e = te("wks"), ve = i.QObject, ye = !ve || !ve[ce] || !ve[ce].findChild, be = s && u(function() {
3809
+ return y(F({}, "a", { get: function() {
3810
+ return F(this, "a", { value: 7 }).a;
3791
3811
  } })).a != 7;
3792
3812
  }) ? function(e, t, n) {
3793
- var r = fe(ue, t);
3794
- r && delete ue[t], I(e, t, n), r && e !== ue && I(ue, t, r);
3795
- } : I, B = function(e, t) {
3796
- var n = he[e] = y(F[ce]);
3813
+ var r = pe(de, t);
3814
+ r && delete de[t], F(e, t, n), r && e !== de && F(de, t, r);
3815
+ } : F, z = function(e, t) {
3816
+ var n = ge[e] = y(P[ce]);
3797
3817
  return le(n, {
3798
3818
  type: M,
3799
3819
  tag: e,
3800
3820
  description: t
3801
3821
  }), s || (n.description = t), n;
3802
- }, be = l ? function(e) {
3822
+ }, xe = l ? function(e) {
3803
3823
  return typeof e == "symbol";
3804
3824
  } : function(e) {
3805
- return Object(e) instanceof F;
3806
- }, V = function(e, t, n) {
3807
- e === ue && V(L, t, n), m(e);
3825
+ return Object(e) instanceof P;
3826
+ }, B = function(e, t, n) {
3827
+ e === de && B(I, t, n), m(e);
3808
3828
  var r = _(t, !0);
3809
- return m(n), d(he, r) ? (n.enumerable ? (d(e, j) && e[j][r] && (e[j][r] = !1), n = y(n, { enumerable: v(0, !1) })) : (d(e, j) || I(e, j, v(1, {})), e[j][r] = !0), ye(e, r, n)) : I(e, r, n);
3810
- }, xe = function(e, t) {
3829
+ return m(n), d(ge, r) ? (n.enumerable ? (d(e, j) && e[j][r] && (e[j][r] = !1), n = y(n, { enumerable: v(0, !1) })) : (d(e, j) || F(e, j, v(1, {})), e[j][r] = !0), be(e, r, n)) : F(e, r, n);
3830
+ }, Se = function(e, t) {
3811
3831
  m(e);
3812
3832
  var n = g(t);
3813
- return se(b(n).concat(Ee(n)), function(t) {
3814
- (!s || Ce.call(n, t)) && V(e, t, n[t]);
3833
+ return A(b(n).concat(De(n)), function(t) {
3834
+ (!s || we.call(n, t)) && B(e, t, n[t]);
3815
3835
  }), e;
3816
- }, Se = function(e, t) {
3817
- return t === void 0 ? y(e) : xe(y(e), t);
3818
- }, Ce = function(e) {
3819
- var t = _(e, !0), n = me.call(this, t);
3820
- return this === ue && d(he, t) && !d(L, t) ? !1 : n || !d(this, t) || !d(he, t) || d(this, j) && this[j][t] ? n : !0;
3821
- }, we = function(e, t) {
3836
+ }, Ce = function(e, t) {
3837
+ return t === void 0 ? y(e) : Se(y(e), t);
3838
+ }, we = function(e) {
3839
+ var t = _(e, !0), n = he.call(this, t);
3840
+ return this === de && d(ge, t) && !d(I, t) ? !1 : n || !d(this, t) || !d(ge, t) || d(this, j) && this[j][t] ? n : !0;
3841
+ }, Te = function(e, t) {
3822
3842
  var n = g(e), r = _(t, !0);
3823
- if (!(n === ue && d(he, r) && !d(L, r))) {
3824
- var i = fe(n, r);
3825
- return i && d(he, r) && !(d(n, j) && n[j][r]) && (i.enumerable = !0), i;
3843
+ if (!(n === de && d(ge, r) && !d(I, r))) {
3844
+ var i = pe(n, r);
3845
+ return i && d(ge, r) && !(d(n, j) && n[j][r]) && (i.enumerable = !0), i;
3826
3846
  }
3827
- }, Te = function(e) {
3828
- var t = pe(g(e)), n = [];
3829
- return se(t, function(e) {
3830
- !d(he, e) && !d(k, e) && n.push(e);
3831
- }), n;
3832
3847
  }, Ee = function(e) {
3833
- var t = e === ue, n = pe(t ? L : g(e)), r = [];
3834
- return se(n, function(e) {
3835
- d(he, e) && (!t || d(ue, e)) && r.push(he[e]);
3848
+ var t = me(g(e)), n = [];
3849
+ return A(t, function(e) {
3850
+ !d(ge, e) && !d(O, e) && n.push(e);
3851
+ }), n;
3852
+ }, De = function(e) {
3853
+ var t = e === de, n = me(t ? I : g(e)), r = [];
3854
+ return A(n, function(e) {
3855
+ d(ge, e) && (!t || d(de, e)) && r.push(ge[e]);
3836
3856
  }), r;
3837
3857
  };
3838
- c || (F = function() {
3839
- if (this instanceof F) throw TypeError("Symbol is not a constructor");
3840
- var e = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), t = ne(e), n = function(e) {
3841
- this === ue && n.call(L, e), d(this, j) && d(this[j], t) && (this[j][t] = !1), ye(this, t, v(1, e));
3858
+ c || (P = function() {
3859
+ if (this instanceof P) throw TypeError("Symbol is not a constructor");
3860
+ var e = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), t = re(e), n = function(e) {
3861
+ this === de && n.call(I, e), d(this, j) && d(this[j], t) && (this[j][t] = !1), be(this, t, v(1, e));
3842
3862
  };
3843
- return s && ve && ye(ue, t, {
3863
+ return s && ye && be(de, t, {
3844
3864
  configurable: !0,
3845
3865
  set: n
3846
- }), B(t, e);
3847
- }, D(F[ce], "toString", function() {
3848
- return P(this).tag;
3849
- }), D(F, "withoutSetter", function(e) {
3850
- return B(ne(e), e);
3851
- }), T.f = Ce, w.f = V, ee.f = we, x.f = S.f = Te, C.f = Ee, ie.f = function(e) {
3852
- return B(re(e), e);
3853
- }, s && (I(F[ce], "description", {
3866
+ }), z(t, e);
3867
+ }, D(P[ce], "toString", function() {
3868
+ return ue(this).tag;
3869
+ }), D(P, "withoutSetter", function(e) {
3870
+ return z(re(e), e);
3871
+ }), T.f = we, w.f = B, ee.f = Te, x.f = S.f = Ee, C.f = De, ae.f = function(e) {
3872
+ return z(ie(e), e);
3873
+ }, s && (F(P[ce], "description", {
3854
3874
  configurable: !0,
3855
3875
  get: function() {
3856
- return P(this).description;
3876
+ return ue(this).description;
3857
3877
  }
3858
- }), o || D(ue, "propertyIsEnumerable", Ce, { unsafe: !0 }))), r({
3878
+ }), o || D(de, "propertyIsEnumerable", we, { unsafe: !0 }))), r({
3859
3879
  global: !0,
3860
3880
  wrap: !0,
3861
3881
  forced: !c,
3862
3882
  sham: !c
3863
- }, { Symbol: F }), se(b(ge), function(e) {
3864
- ae(e);
3883
+ }, { Symbol: P }), A(b(_e), function(e) {
3884
+ oe(e);
3865
3885
  }), r({
3866
3886
  target: M,
3867
3887
  stat: !0,
@@ -3869,19 +3889,19 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
3869
3889
  }, {
3870
3890
  for: function(e) {
3871
3891
  var t = String(e);
3872
- if (d(R, t)) return R[t];
3873
- var n = F(t);
3874
- return R[t] = n, z[n] = t, n;
3892
+ if (d(L, t)) return L[t];
3893
+ var n = P(t);
3894
+ return L[t] = n, R[n] = t, n;
3875
3895
  },
3876
3896
  keyFor: function(e) {
3877
- if (!be(e)) throw TypeError(e + " is not a symbol");
3878
- if (d(z, e)) return z[e];
3897
+ if (!xe(e)) throw TypeError(e + " is not a symbol");
3898
+ if (d(R, e)) return R[e];
3879
3899
  },
3880
3900
  useSetter: function() {
3881
- ve = !0;
3901
+ ye = !0;
3882
3902
  },
3883
3903
  useSimple: function() {
3884
- ve = !1;
3904
+ ye = !1;
3885
3905
  }
3886
3906
  }), r({
3887
3907
  target: "Object",
@@ -3889,17 +3909,17 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
3889
3909
  forced: !c,
3890
3910
  sham: !s
3891
3911
  }, {
3892
- create: Se,
3893
- defineProperty: V,
3894
- defineProperties: xe,
3895
- getOwnPropertyDescriptor: we
3912
+ create: Ce,
3913
+ defineProperty: B,
3914
+ defineProperties: Se,
3915
+ getOwnPropertyDescriptor: Te
3896
3916
  }), r({
3897
3917
  target: "Object",
3898
3918
  stat: !0,
3899
3919
  forced: !c
3900
3920
  }, {
3901
- getOwnPropertyNames: Te,
3902
- getOwnPropertySymbols: Ee
3921
+ getOwnPropertyNames: Ee,
3922
+ getOwnPropertySymbols: De
3903
3923
  }), r({
3904
3924
  target: "Object",
3905
3925
  stat: !0,
@@ -3908,19 +3928,19 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
3908
3928
  })
3909
3929
  }, { getOwnPropertySymbols: function(e) {
3910
3930
  return C.f(h(e));
3911
- } }), de && r({
3931
+ } }), fe && r({
3912
3932
  target: "JSON",
3913
3933
  stat: !0,
3914
3934
  forced: !c || u(function() {
3915
- var e = F();
3916
- return de([e]) != "[null]" || de({ a: e }) != "{}" || de(Object(e)) != "{}";
3935
+ var e = P();
3936
+ return fe([e]) != "[null]" || fe({ a: e }) != "{}" || fe(Object(e)) != "{}";
3917
3937
  })
3918
3938
  }, { stringify: function(e, t, n) {
3919
3939
  for (var r = [e], i = 1, a; arguments.length > i;) r.push(arguments[i++]);
3920
- if (a = t, !(!p(t) && e === void 0 || be(e))) return f(t) || (t = function(e, t) {
3921
- if (typeof a == "function" && (t = a.call(this, e, t)), !be(t)) return t;
3922
- }), r[1] = t, de.apply(null, r);
3923
- } }), F[ce][N] || E(F[ce], N, F[ce].valueOf), A(F, M), k[j] = !0;
3940
+ if (a = t, !(!p(t) && e === void 0 || xe(e))) return f(t) || (t = function(e, t) {
3941
+ if (typeof a == "function" && (t = a.call(this, e, t)), !xe(t)) return t;
3942
+ }), r[1] = t, fe.apply(null, r);
3943
+ } }), P[ce][N] || E(P[ce], N, P[ce].valueOf), k(P, M), O[j] = !0;
3924
3944
  }),
3925
3945
  a630: (function(e, t, n) {
3926
3946
  var r = n("23e7"), i = n("4df4");
@@ -4607,31 +4627,31 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
4607
4627
  "Sort",
4608
4628
  "Filter",
4609
4629
  "Clone"
4610
- ], O = ["Move"], te = [
4611
- O,
4630
+ ], te = ["Move"], ne = [
4631
+ te,
4612
4632
  E,
4613
4633
  D
4614
4634
  ].flatMap(function(e) {
4615
4635
  return e;
4616
4636
  }).map(function(e) {
4617
4637
  return `on${e}`;
4618
- }), k = {
4619
- manage: O,
4638
+ }), O = {
4639
+ manage: te,
4620
4640
  manageAndEmit: E,
4621
4641
  emit: D
4622
4642
  };
4623
- function ne(e) {
4624
- return te.indexOf(e) !== -1;
4643
+ function re(e) {
4644
+ return ne.indexOf(e) !== -1;
4625
4645
  }
4626
4646
  n("caad"), n("2ca0");
4627
- var re = /* @__PURE__ */ "a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.math.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rb.rp.rt.rtc.ruby.s.samp.script.section.select.slot.small.source.span.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr".split(".");
4628
- function ie(e) {
4629
- return re.includes(e);
4630
- }
4647
+ var ie = /* @__PURE__ */ "a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.math.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rb.rp.rt.rtc.ruby.s.samp.script.section.select.slot.small.source.span.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr".split(".");
4631
4648
  function ae(e) {
4649
+ return ie.includes(e);
4650
+ }
4651
+ function oe(e) {
4632
4652
  return ["transition-group", "TransitionGroup"].includes(e);
4633
4653
  }
4634
- function A(e) {
4654
+ function k(e) {
4635
4655
  return [
4636
4656
  "id",
4637
4657
  "class",
@@ -4639,24 +4659,24 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
4639
4659
  "style"
4640
4660
  ].includes(e) || e.startsWith("data-") || e.startsWith("aria-") || e.startsWith("on");
4641
4661
  }
4642
- function oe(e) {
4662
+ function se(e) {
4643
4663
  return e.reduce(function(e, t) {
4644
4664
  var n = m(t, 2), r = n[0];
4645
4665
  return e[r] = n[1], e;
4646
4666
  }, {});
4647
4667
  }
4648
- function se(e) {
4668
+ function A(e) {
4649
4669
  var t = e.$attrs, n = e.componentData, r = n === void 0 ? {} : n;
4650
- return c(c({}, oe(Object.entries(t).filter(function(e) {
4670
+ return c(c({}, se(Object.entries(t).filter(function(e) {
4651
4671
  var t = m(e, 2), n = t[0];
4652
- return t[1], A(n);
4672
+ return t[1], k(n);
4653
4673
  }))), r);
4654
4674
  }
4655
4675
  function j(e) {
4656
- var t = e.$attrs, n = e.callBackBuilder, r = oe(M(t));
4676
+ var t = e.$attrs, n = e.callBackBuilder, r = se(M(t));
4657
4677
  Object.entries(n).forEach(function(e) {
4658
4678
  var t = m(e, 2), n = t[0], i = t[1];
4659
- k[n].forEach(function(e) {
4679
+ O[n].forEach(function(e) {
4660
4680
  r[`on${e}`] = i(e);
4661
4681
  });
4662
4682
  });
@@ -4666,13 +4686,13 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
4666
4686
  function M(e) {
4667
4687
  return Object.entries(e).filter(function(e) {
4668
4688
  var t = m(e, 2), n = t[0];
4669
- return t[1], !A(n);
4689
+ return t[1], !k(n);
4670
4690
  }).map(function(e) {
4671
4691
  var t = m(e, 2), n = t[0], r = t[1];
4672
4692
  return [T(n), r];
4673
4693
  }).filter(function(e) {
4674
4694
  var t = m(e, 2), n = t[0];
4675
- return t[1], !ne(n);
4695
+ return t[1], !re(n);
4676
4696
  });
4677
4697
  }
4678
4698
  n("c740");
@@ -4688,13 +4708,13 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
4688
4708
  function le(e, t, n) {
4689
4709
  return t && N(e.prototype, t), n && N(e, n), e;
4690
4710
  }
4691
- var P = function(e) {
4711
+ var ue = function(e) {
4692
4712
  return e.el;
4693
- }, ue = function(e, t) {
4713
+ }, de = function(e, t) {
4694
4714
  return e.__draggable_context = t;
4695
- }, F = function(e) {
4715
+ }, P = function(e) {
4696
4716
  return e.__draggable_context;
4697
- }, de = /* @__PURE__ */ function() {
4717
+ }, fe = /* @__PURE__ */ function() {
4698
4718
  function e(t) {
4699
4719
  var n = t.nodes, r = n.header, i = n.default, a = n.footer, o = t.root, s = t.realList;
4700
4720
  ce(this, e), this.defaultNodes = i, this.children = [].concat(v(r), v(i), v(a)), this.externalComponent = o.externalComponent, this.rootTransition = o.transition, this.tag = o.tag, this.realList = s;
@@ -4714,7 +4734,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
4714
4734
  value: function() {
4715
4735
  var e = this.defaultNodes, t = this.realList;
4716
4736
  e.forEach(function(e, n) {
4717
- ue(P(e), {
4737
+ de(ue(e), {
4718
4738
  element: t[n],
4719
4739
  index: n
4720
4740
  });
@@ -4724,7 +4744,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
4724
4744
  {
4725
4745
  key: "getUnderlyingVm",
4726
4746
  value: function(e) {
4727
- return F(e);
4747
+ return P(e);
4728
4748
  }
4729
4749
  },
4730
4750
  {
@@ -4732,10 +4752,10 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
4732
4752
  value: function(e, t) {
4733
4753
  var n = this.defaultNodes, r = n.length, i = t.children, a = i.item(e);
4734
4754
  if (a === null) return r;
4735
- var o = F(a);
4755
+ var o = P(a);
4736
4756
  if (o) return o.index;
4737
4757
  if (r === 0) return 0;
4738
- var s = P(n[0]);
4758
+ var s = ue(n[0]);
4739
4759
  return e < v(i).findIndex(function(e) {
4740
4760
  return e === s;
4741
4761
  }) ? 0 : r;
@@ -4748,14 +4768,14 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
4748
4768
  }
4749
4769
  }
4750
4770
  ]), e;
4751
- }(), fe = n("8bbf");
4752
- function I(e, t) {
4771
+ }(), pe = n("8bbf");
4772
+ function F(e, t) {
4753
4773
  var n = e[t];
4754
4774
  return n ? n() : [];
4755
4775
  }
4756
- function pe(e) {
4776
+ function me(e) {
4757
4777
  var t = e.$slots, n = e.realList, r = e.getKey, i = n || [], a = m(["header", "footer"].map(function(e) {
4758
- return I(t, e);
4778
+ return F(t, e);
4759
4779
  }), 2), o = a[0], s = a[1], l = t.item;
4760
4780
  if (!l) throw Error("draggable element must have an item slot");
4761
4781
  var u = i.flatMap(function(e, t) {
@@ -4773,45 +4793,45 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
4773
4793
  default: u
4774
4794
  };
4775
4795
  }
4776
- function me(e) {
4777
- var t = ae(e), n = !ie(e) && !t;
4796
+ function he(e) {
4797
+ var t = oe(e), n = !ae(e) && !t;
4778
4798
  return {
4779
4799
  transition: t,
4780
4800
  externalComponent: n,
4781
- tag: n ? (0, fe.resolveComponent)(e) : t ? fe.TransitionGroup : e
4801
+ tag: n ? (0, pe.resolveComponent)(e) : t ? pe.TransitionGroup : e
4782
4802
  };
4783
4803
  }
4784
- function he(e) {
4804
+ function ge(e) {
4785
4805
  var t = e.$slots, n = e.tag, r = e.realList, i = e.getKey;
4786
- return new de({
4787
- nodes: pe({
4806
+ return new fe({
4807
+ nodes: me({
4788
4808
  $slots: t,
4789
4809
  realList: r,
4790
4810
  getKey: i
4791
4811
  }),
4792
- root: me(n),
4812
+ root: he(n),
4793
4813
  realList: r
4794
4814
  });
4795
4815
  }
4796
- function L(e, t) {
4816
+ function I(e, t) {
4797
4817
  var n = this;
4798
- (0, fe.nextTick)(function() {
4818
+ (0, pe.nextTick)(function() {
4799
4819
  return n.$emit(e.toLowerCase(), t);
4800
4820
  });
4801
4821
  }
4802
- function R(e) {
4822
+ function L(e) {
4803
4823
  var t = this;
4804
4824
  return function(n, r) {
4805
4825
  if (t.realList !== null) return t[`onDrag${e}`](n, r);
4806
4826
  };
4807
4827
  }
4808
- function z(e) {
4809
- var t = this, n = R.call(this, e);
4828
+ function R(e) {
4829
+ var t = this, n = L.call(this, e);
4810
4830
  return function(r, i) {
4811
- n.call(t, r, i), L.call(t, e, r);
4831
+ n.call(t, r, i), I.call(t, e, r);
4812
4832
  };
4813
4833
  }
4814
- var ge = null, _e = {
4834
+ var _e = null, ve = {
4815
4835
  list: {
4816
4836
  type: Array,
4817
4837
  required: !1,
@@ -4845,34 +4865,34 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
4845
4865
  required: !1,
4846
4866
  default: null
4847
4867
  }
4848
- }, ve = ["update:modelValue", "change"].concat(v([].concat(v(k.manageAndEmit), v(k.emit)).map(function(e) {
4868
+ }, ye = ["update:modelValue", "change"].concat(v([].concat(v(O.manageAndEmit), v(O.emit)).map(function(e) {
4849
4869
  return e.toLowerCase();
4850
4870
  })));
4851
- t.default = (0, fe.defineComponent)({
4871
+ t.default = (0, pe.defineComponent)({
4852
4872
  name: "draggable",
4853
4873
  inheritAttrs: !1,
4854
- props: _e,
4855
- emits: ve,
4874
+ props: ve,
4875
+ emits: ye,
4856
4876
  data: function() {
4857
4877
  return { error: !1 };
4858
4878
  },
4859
4879
  render: function() {
4860
4880
  try {
4861
4881
  this.error = !1;
4862
- var e = this.$slots, t = this.$attrs, n = this.tag, r = this.componentData, i = this.realList, a = this.getKey, o = he({
4882
+ var e = this.$slots, t = this.$attrs, n = this.tag, r = this.componentData, i = this.realList, a = this.getKey, o = ge({
4863
4883
  $slots: e,
4864
4884
  tag: n,
4865
4885
  realList: i,
4866
4886
  getKey: a
4867
4887
  });
4868
4888
  this.componentStructure = o;
4869
- var s = se({
4889
+ var s = A({
4870
4890
  $attrs: t,
4871
4891
  componentData: r
4872
4892
  });
4873
- return o.render(fe.h, s);
4893
+ return o.render(pe.h, s);
4874
4894
  } catch (e) {
4875
- return this.error = !0, (0, fe.h)("pre", { style: { color: "red" } }, e.stack);
4895
+ return this.error = !0, (0, pe.h)("pre", { style: { color: "red" } }, e.stack);
4876
4896
  }
4877
4897
  },
4878
4898
  created: function() {
@@ -4887,13 +4907,13 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
4887
4907
  $attrs: t,
4888
4908
  callBackBuilder: {
4889
4909
  manageAndEmit: function(t) {
4890
- return z.call(e, t);
4910
+ return R.call(e, t);
4891
4911
  },
4892
4912
  emit: function(t) {
4893
- return L.bind(e, t);
4913
+ return I.bind(e, t);
4894
4914
  },
4895
4915
  manage: function(t) {
4896
- return R.call(e, t);
4916
+ return L.call(e, t);
4897
4917
  }
4898
4918
  }
4899
4919
  }), i = n.nodeType === 1 ? n : n.parentElement;
@@ -4936,7 +4956,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
4936
4956
  },
4937
4957
  emitChanges: function(e) {
4938
4958
  var t = this;
4939
- (0, fe.nextTick)(function() {
4959
+ (0, pe.nextTick)(function() {
4940
4960
  return t.$emit("change", e);
4941
4961
  });
4942
4962
  },
@@ -4972,7 +4992,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
4972
4992
  return this.componentStructure.getVmIndexFromDomIndex(e, this.targetDomElement);
4973
4993
  },
4974
4994
  onDragStart: function(e) {
4975
- this.context = this.getUnderlyingVm(e.item), e.item._underlying_vm_ = this.clone(this.context.element), ge = e.item;
4995
+ this.context = this.getUnderlyingVm(e.item), e.item._underlying_vm_ = this.clone(this.context.element), _e = e.item;
4976
4996
  },
4977
4997
  onDragAdd: function(e) {
4978
4998
  var t = e.item._underlying_vm_;
@@ -5016,7 +5036,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5016
5036
  var n = v(t.to.children).filter(function(e) {
5017
5037
  return e.style.display !== "none";
5018
5038
  }), r = n.indexOf(t.related), i = e.component.getVmIndexFromDomIndex(r);
5019
- return n.indexOf(ge) !== -1 || !t.willInsertAfter ? i : i + 1;
5039
+ return n.indexOf(_e) !== -1 || !t.willInsertAfter ? i : i + 1;
5020
5040
  },
5021
5041
  onDragMove: function(e, t) {
5022
5042
  var n = this.move, r = this.realList;
@@ -5028,7 +5048,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5028
5048
  }), t);
5029
5049
  },
5030
5050
  onDragEnd: function() {
5031
- ge = null;
5051
+ _e = null;
5032
5052
  }
5033
5053
  }
5034
5054
  });
@@ -5096,10 +5116,11 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5096
5116
  })
5097
5117
  }).default;
5098
5118
  });
5099
- })), Na = /* @__PURE__ */ ct(Ma(), 1), Pa = { class: "tpl:w-full" }, Fa = { class: "tpl:flex tpl:gap-0" }, Ia = {
5119
+ })), Ia = /* @__PURE__ */ lt(Fa(), 1), La = { class: "tpl:w-full" }, Ra = { class: "tpl:flex tpl:gap-0" }, za = {
5100
5120
  key: 0,
5121
+ "data-testid": "section-drop-hint",
5101
5122
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
5102
- }, La = /* @__PURE__ */ P({
5123
+ }, Ba = /* @__PURE__ */ ue({
5103
5124
  __name: "SectionBlock",
5104
5125
  props: {
5105
5126
  block: {},
@@ -5107,13 +5128,13 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5107
5128
  },
5108
5129
  setup(e) {
5109
5130
  let t = {
5110
- title: Zn,
5111
- paragraph: Pn,
5112
- image: Dn,
5113
- button: Ct,
5114
- divider: dn,
5115
- custom: ln
5116
- }, n = e, { t: r } = E(), i = l(p, "SectionBlock"), a = F(_, null), o = F(b, null), s = A(() => {
5131
+ title: tr,
5132
+ paragraph: Rn,
5133
+ image: jn,
5134
+ button: Dt,
5135
+ divider: hn,
5136
+ custom: pn
5137
+ }, n = e, { t: r } = E(), i = l(p, "SectionBlock"), a = P(_, null), o = P(b, null), s = k(() => {
5117
5138
  switch (n.block.columns) {
5118
5139
  case "2": return ["50%", "50%"];
5119
5140
  case "3": return [
@@ -5125,7 +5146,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5125
5146
  case "2-1": return ["66.67%", "33.33%"];
5126
5147
  default: return ["100%"];
5127
5148
  }
5128
- }), c = A(() => {
5149
+ }), c = k(() => {
5129
5150
  let e = s.value.length, t = [...n.block.children];
5130
5151
  for (; t.length < e;) t.push([]);
5131
5152
  return t.slice(0, e);
@@ -5139,7 +5160,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5139
5160
  r[e] = t, i.updateBlock(n.block.id, { children: r });
5140
5161
  }
5141
5162
  function f(e) {
5142
- return Fn(e, o, t);
5163
+ return zn(e, o, t);
5143
5164
  }
5144
5165
  function m(e, t) {
5145
5166
  e.type === "custom" && i.updateBlock(e.id, {
@@ -5147,11 +5168,11 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5147
5168
  dataSourceFetched: t.dataSourceFetched
5148
5169
  });
5149
5170
  }
5150
- return (t, n) => (L(), j("div", Pa, [M("div", Fa, [(L(!0), j(ae, null, ge(c.value, (t, n) => (L(), j("div", {
5171
+ return (t, n) => (I(), j("div", La, [M("div", Ra, [(I(!0), j(oe, null, _e(c.value, (t, n) => (I(), j("div", {
5151
5172
  key: n,
5152
- class: fe(["tpl:relative tpl:min-h-[60px] tpl:rounded", u(n).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
5153
- style: I({ width: s.value[n] })
5154
- }, [N(V(Na.default), {
5173
+ class: pe(["tpl:relative tpl:min-h-[60px] tpl:rounded", u(n).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
5174
+ style: F({ width: s.value[n] })
5175
+ }, [N(B(Ia.default), {
5155
5176
  "model-value": u(n),
5156
5177
  group: {
5157
5178
  name: "blocks",
@@ -5165,13 +5186,13 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5165
5186
  class: "tpl:min-h-[60px]",
5166
5187
  "onUpdate:modelValue": (e) => d(n, e)
5167
5188
  }, {
5168
- item: Ce(({ element: t }) => [we(M("div", null, [N(Yn, {
5189
+ item: we(({ element: t }) => [Te(M("div", null, [N($n, {
5169
5190
  block: t,
5170
- "is-selected": V(i).state.selectedBlockId === t.id,
5191
+ "is-selected": B(i).state.selectedBlockId === t.id,
5171
5192
  viewport: e.viewport,
5172
- onSelect: (e) => V(i).selectBlock(t.id)
5193
+ onSelect: (e) => B(i).selectBlock(t.id)
5173
5194
  }, {
5174
- default: Ce(() => [(L(), oe(ve(f(t)), {
5195
+ default: we(() => [(I(), se(ye(f(t)), {
5175
5196
  block: t,
5176
5197
  viewport: e.viewport,
5177
5198
  onFetchData: (e) => m(t, e)
@@ -5186,15 +5207,15 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5186
5207
  "is-selected",
5187
5208
  "viewport",
5188
5209
  "onSelect"
5189
- ])], 512), [[xe, !V(a)?.isHidden(t.id)]])]),
5210
+ ])], 512), [[Se, !B(a)?.isHidden(t.id)]])]),
5190
5211
  _: 1
5191
5212
  }, 8, [
5192
5213
  "model-value",
5193
5214
  "group",
5194
5215
  "onUpdate:modelValue"
5195
- ]), u(n).length === 0 ? (L(), j("div", Ia, [M("span", null, B(V(r).section.dropHere), 1)])) : se("", !0)], 6))), 128))])]));
5216
+ ]), u(n).length === 0 ? (I(), j("div", za, [M("span", null, z(B(r).section.dropHere), 1)])) : A("", !0)], 6))), 128))])]));
5196
5217
  }
5197
- }), Ra = {
5218
+ }), Va = {
5198
5219
  facebook: {
5199
5220
  name: "Facebook",
5200
5221
  color: "#1877F2",
@@ -5275,11 +5296,11 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5275
5296
  color: "#1769FF",
5276
5297
  path: "M22 7h-7V5h7v2zm1.726 10c-.442 1.297-2.029 3-5.101 3-3.074 0-5.564-1.729-5.564-5.675 0-3.91 2.325-5.92 5.466-5.92 3.082 0 4.964 1.782 5.375 4.426.078.506.109 1.188.095 2.14H15.97c.13 3.211 3.483 3.312 4.588 2.029h3.168zm-7.686-4h4.965c-.105-1.547-1.136-2.219-2.477-2.219-1.466 0-2.277.768-2.488 2.219zm-9.574 6.988H0V5.021h6.953c5.476.081 5.58 5.444 2.72 6.906 3.461 1.26 3.577 8.061-3.207 8.061zM3 11h3.584c2.508 0 2.906-3-.312-3H3v3zm3.391 3H3v3.016h3.341c3.055 0 2.868-3.016.05-3.016z"
5277
5298
  }
5278
- }, za = {
5299
+ }, Ha = {
5279
5300
  small: 24,
5280
5301
  medium: 32,
5281
5302
  large: 48
5282
- }, Ba = [
5303
+ }, Ua = [
5283
5304
  "facebook",
5284
5305
  "twitter",
5285
5306
  "instagram",
@@ -5296,11 +5317,11 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5296
5317
  "github",
5297
5318
  "dribbble",
5298
5319
  "behance"
5299
- ], Va = [
5320
+ ], Wa = [
5300
5321
  "width",
5301
5322
  "height",
5302
5323
  "fill"
5303
- ], Ha = ["d"], Ua = /* @__PURE__ */ P({
5324
+ ], Ga = ["d"], Ka = /* @__PURE__ */ ue({
5304
5325
  __name: "SocialIconSvg",
5305
5326
  props: {
5306
5327
  platform: {},
@@ -5308,7 +5329,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5308
5329
  iconSize: {}
5309
5330
  },
5310
5331
  setup(e) {
5311
- let t = e, n = A(() => Ra[t.platform]), r = A(() => za[t.iconSize]), i = A(() => {
5332
+ let t = e, n = k(() => Va[t.platform]), r = k(() => Ha[t.iconSize]), i = k(() => {
5312
5333
  let e = {
5313
5334
  display: "inline-flex",
5314
5335
  alignItems: "center",
@@ -5345,40 +5366,40 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5345
5366
  };
5346
5367
  default: return e;
5347
5368
  }
5348
- }), a = A(() => Math.floor(r.value * .6)), o = A(() => t.iconStyle === "outlined" ? n.value.color : "#ffffff");
5349
- return (e, t) => (L(), j("span", { style: I(i.value) }, [(L(), j("svg", {
5369
+ }), a = k(() => Math.floor(r.value * .6)), o = k(() => t.iconStyle === "outlined" ? n.value.color : "#ffffff");
5370
+ return (e, t) => (I(), j("span", { style: F(i.value) }, [(I(), j("svg", {
5350
5371
  width: a.value,
5351
5372
  height: a.value,
5352
5373
  viewBox: "0 0 24 24",
5353
5374
  fill: o.value,
5354
5375
  xmlns: "http://www.w3.org/2000/svg"
5355
- }, [M("path", { d: n.value.path }, null, 8, Ha)], 8, Va))], 4));
5376
+ }, [M("path", { d: n.value.path }, null, 8, Ga)], 8, Wa))], 4));
5356
5377
  }
5357
- }), Wa = { class: "tpl:w-full" }, Ga = ["href"], Ka = {
5378
+ }), qa = { class: "tpl:w-full" }, Ja = ["href"], Ya = {
5358
5379
  key: 1,
5359
5380
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
5360
- }, qa = /* @__PURE__ */ P({
5381
+ }, Xa = /* @__PURE__ */ ue({
5361
5382
  __name: "SocialIconsBlock",
5362
5383
  props: {
5363
5384
  block: {},
5364
5385
  viewport: {}
5365
5386
  },
5366
5387
  setup(e) {
5367
- let t = e, { t: n } = E(), r = A(() => ({
5388
+ let t = e, { t: n } = E(), r = k(() => ({
5368
5389
  display: "flex",
5369
5390
  flexWrap: "wrap",
5370
5391
  gap: `${t.block.spacing}px`,
5371
5392
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
5372
- })), i = A(() => t.block.icons.length > 0);
5373
- return (t, a) => (L(), j("div", Wa, [i.value ? (L(), j("div", {
5393
+ })), i = k(() => t.block.icons.length > 0);
5394
+ return (t, a) => (I(), j("div", qa, [i.value ? (I(), j("div", {
5374
5395
  key: 0,
5375
- style: I(r.value)
5376
- }, [(L(!0), j(ae, null, ge(e.block.icons, (t) => (L(), j("a", {
5396
+ style: F(r.value)
5397
+ }, [(I(!0), j(oe, null, _e(e.block.icons, (t) => (I(), j("a", {
5377
5398
  key: t.id,
5378
5399
  href: t.url || "#",
5379
5400
  class: "tpl:cursor-default",
5380
- onClick: a[0] ||= Ee(() => {}, ["prevent"])
5381
- }, [N(Ua, {
5401
+ onClick: a[0] ||= De(() => {}, ["prevent"])
5402
+ }, [N(Ka, {
5382
5403
  platform: t.platform,
5383
5404
  "icon-style": e.block.iconStyle,
5384
5405
  "icon-size": e.block.iconSize
@@ -5386,68 +5407,68 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5386
5407
  "platform",
5387
5408
  "icon-style",
5388
5409
  "icon-size"
5389
- ])], 8, Ga))), 128))], 4)) : (L(), j("div", Ka, [N(V(Rt), { size: 16 }), M("span", null, B(V(n).social.addIcons), 1)]))]));
5410
+ ])], 8, Ja))), 128))], 4)) : (I(), j("div", Ya, [N(B(Ht), { size: 16 }), M("span", null, z(B(n).social.addIcons), 1)]))]));
5390
5411
  }
5391
- }), Ja = { class: "tpl:w-full" }, Ya = {
5412
+ }), Za = { class: "tpl:w-full" }, Qa = {
5392
5413
  key: 0,
5393
5414
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
5394
5415
  style: {
5395
5416
  "background-color": "var(--tpl-bg-hover)",
5396
5417
  color: "var(--tpl-text-dim)"
5397
5418
  }
5398
- }, Xa = /* @__PURE__ */ P({
5419
+ }, $a = /* @__PURE__ */ ue({
5399
5420
  __name: "SpacerBlock",
5400
5421
  props: {
5401
5422
  block: {},
5402
5423
  viewport: {}
5403
5424
  },
5404
5425
  setup(e) {
5405
- let t = e, n = l(p, "SpacerBlock"), r = A(() => ({
5426
+ let t = e, n = l(p, "SpacerBlock"), r = k(() => ({
5406
5427
  height: `${t.block.height}px`,
5407
5428
  minHeight: `${t.block.height}px`,
5408
5429
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
5409
5430
  }));
5410
- return (t, i) => (L(), j("div", Ja, [M("div", {
5411
- style: I(r.value),
5412
- class: fe(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !V(n).state.previewMode }])
5413
- }, [V(n).state.previewMode ? se("", !0) : (L(), j("span", Ya, B(e.block.height) + "px ", 1))], 6)]));
5431
+ return (t, i) => (I(), j("div", Za, [M("div", {
5432
+ style: F(r.value),
5433
+ class: pe(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !B(n).state.previewMode }])
5434
+ }, [B(n).state.previewMode ? A("", !0) : (I(), j("span", Qa, z(e.block.height) + "px ", 1))], 6)]));
5414
5435
  }
5415
- }), Za = { class: "tpl:w-full" }, Qa = { key: 0 }, $a = [
5436
+ }), eo = { class: "tpl:w-full" }, to = { key: 0 }, no = [
5416
5437
  "aria-label",
5417
5438
  "data-placeholder",
5418
5439
  "onBlur",
5419
5440
  "textContent"
5420
- ], eo = [
5441
+ ], ro = [
5421
5442
  "aria-label",
5422
5443
  "data-placeholder",
5423
5444
  "onBlur",
5424
5445
  "textContent"
5425
- ], to = {
5446
+ ], io = {
5426
5447
  key: 1,
5427
5448
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
5428
- }, no = /* @__PURE__ */ O(/* @__PURE__ */ P({
5449
+ }, ao = /* @__PURE__ */ te(/* @__PURE__ */ ue({
5429
5450
  __name: "TableBlock",
5430
5451
  props: {
5431
5452
  block: {},
5432
5453
  viewport: {}
5433
5454
  },
5434
5455
  setup(e) {
5435
- let t = e, { t: n } = E(), r = l(p, "TableBlock"), i = A(() => t.block.rows.length > 0), a = A(() => ({
5456
+ let t = e, { t: n } = E(), r = l(p, "TableBlock"), i = k(() => t.block.rows.length > 0), a = k(() => ({
5436
5457
  width: "100%",
5437
5458
  borderCollapse: "collapse",
5438
5459
  fontSize: `${t.block.fontSize}px`,
5439
5460
  color: t.block.color,
5440
5461
  textAlign: t.block.textAlign,
5441
5462
  fontFamily: t.block.fontFamily || "inherit"
5442
- })), o = A(() => ({
5463
+ })), o = k(() => ({
5443
5464
  border: `${t.block.borderWidth}px solid ${t.block.borderColor}`,
5444
5465
  padding: `${t.block.cellPadding}px`,
5445
5466
  textAlign: t.block.textAlign
5446
- })), s = A(() => ({
5467
+ })), s = k(() => ({
5447
5468
  ...o.value,
5448
5469
  fontWeight: "bold",
5449
5470
  backgroundColor: t.block.headerBackgroundColor || "transparent"
5450
- })), c = A(() => t.block.hasHeaderRow && t.block.rows.length > 0 ? t.block.rows[0] : null), u = A(() => t.block.hasHeaderRow ? t.block.rows.slice(1) : t.block.rows);
5471
+ })), c = k(() => t.block.hasHeaderRow && t.block.rows.length > 0 ? t.block.rows[0] : null), u = k(() => t.block.hasHeaderRow ? t.block.rows.slice(1) : t.block.rows);
5451
5472
  function d() {
5452
5473
  r.selectBlock(t.block.id);
5453
5474
  }
@@ -5461,40 +5482,40 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5461
5482
  } : t);
5462
5483
  r.updateBlock(t.block.id, { rows: o });
5463
5484
  }
5464
- return (e, t) => (L(), j("div", Za, [i.value ? (L(), j("table", {
5485
+ return (e, t) => (I(), j("div", eo, [i.value ? (I(), j("table", {
5465
5486
  key: 0,
5466
- style: I(a.value),
5487
+ style: F(a.value),
5467
5488
  class: "tpl-table-editable"
5468
- }, [c.value ? (L(), j("thead", Qa, [M("tr", null, [(L(!0), j(ae, null, ge(c.value.cells, (e) => (L(), j("th", {
5489
+ }, [c.value ? (I(), j("thead", to, [M("tr", null, [(I(!0), j(oe, null, _e(c.value.cells, (e) => (I(), j("th", {
5469
5490
  key: e.id,
5470
- style: I(s.value),
5471
- "aria-label": V(n).table.cellPlaceholder,
5491
+ style: F(s.value),
5492
+ "aria-label": B(n).table.cellPlaceholder,
5472
5493
  contenteditable: "true",
5473
- "data-placeholder": V(n).table.cellPlaceholder,
5494
+ "data-placeholder": B(n).table.cellPlaceholder,
5474
5495
  onBlur: (t) => f(c.value.id, e.id, t),
5475
- onKeydown: t[0] ||= Te(Ee((e) => e.target.blur(), ["prevent"]), ["enter"]),
5476
- onClick: Ee(d, ["stop"]),
5477
- textContent: B(e.content)
5478
- }, null, 44, $a))), 128))])])) : se("", !0), M("tbody", null, [(L(!0), j(ae, null, ge(u.value, (e) => (L(), j("tr", { key: e.id }, [(L(!0), j(ae, null, ge(e.cells, (r) => (L(), j("td", {
5496
+ onKeydown: t[0] ||= Ee(De((e) => e.target.blur(), ["prevent"]), ["enter"]),
5497
+ onClick: De(d, ["stop"]),
5498
+ textContent: z(e.content)
5499
+ }, null, 44, no))), 128))])])) : A("", !0), M("tbody", null, [(I(!0), j(oe, null, _e(u.value, (e) => (I(), j("tr", { key: e.id }, [(I(!0), j(oe, null, _e(e.cells, (r) => (I(), j("td", {
5479
5500
  key: r.id,
5480
- style: I(o.value),
5481
- "aria-label": V(n).table.cellPlaceholder,
5501
+ style: F(o.value),
5502
+ "aria-label": B(n).table.cellPlaceholder,
5482
5503
  contenteditable: "true",
5483
- "data-placeholder": V(n).table.cellPlaceholder,
5504
+ "data-placeholder": B(n).table.cellPlaceholder,
5484
5505
  onBlur: (t) => f(e.id, r.id, t),
5485
- onKeydown: t[1] ||= Te(Ee((e) => e.target.blur(), ["prevent"]), ["enter"]),
5486
- onClick: Ee(d, ["stop"]),
5487
- textContent: B(r.content)
5488
- }, null, 44, eo))), 128))]))), 128))])], 4)) : (L(), j("div", to, [N(V(zt), { size: 16 }), M("span", null, B(V(n).table.empty), 1)]))]));
5506
+ onKeydown: t[1] ||= Ee(De((e) => e.target.blur(), ["prevent"]), ["enter"]),
5507
+ onClick: De(d, ["stop"]),
5508
+ textContent: z(r.content)
5509
+ }, null, 44, ro))), 128))]))), 128))])], 4)) : (I(), j("div", io, [N(B(Ut), { size: 16 }), M("span", null, z(B(n).table.empty), 1)]))]));
5489
5510
  }
5490
- }), [["__scopeId", "data-v-dfc60174"]]), ro = /* @__PURE__ */ P({
5511
+ }), [["__scopeId", "data-v-dfc60174"]]), oo = /* @__PURE__ */ ue({
5491
5512
  __name: "VideoPlayButton",
5492
5513
  props: { hoverEffect: {
5493
5514
  type: Boolean,
5494
5515
  default: !1
5495
5516
  } },
5496
5517
  setup(e) {
5497
- return (t, n) => (L(), j("div", { class: fe(["tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/30", e.hoverEffect && "tpl:transition-opacity tpl:group-hover:bg-black/40"]) }, [...n[0] ||= [M("div", { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-white/90 tpl:shadow-lg" }, [M("svg", {
5518
+ return (t, n) => (I(), j("div", { class: pe(["tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/30", e.hoverEffect && "tpl:transition-opacity tpl:group-hover:bg-black/40"]) }, [...n[0] ||= [M("div", { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-white/90 tpl:shadow-lg" }, [M("svg", {
5498
5519
  class: "tpl:ml-1 tpl:text-[var(--tpl-danger)]",
5499
5520
  width: "28",
5500
5521
  height: "28",
@@ -5505,7 +5526,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
5505
5526
  });
5506
5527
  //#endregion
5507
5528
  //#region src/utils/videoThumbnail.ts
5508
- function io(e) {
5529
+ function so(e) {
5509
5530
  if (!e) return {
5510
5531
  platform: "unknown",
5511
5532
  videoId: null,
@@ -5537,130 +5558,130 @@ function io(e) {
5537
5558
  thumbnailUrl: null
5538
5559
  };
5539
5560
  }
5540
- function ao(e, t) {
5541
- return t || io(e).thumbnailUrl;
5561
+ function co(e, t) {
5562
+ return t || so(e).thumbnailUrl;
5542
5563
  }
5543
5564
  //#endregion
5544
5565
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
5545
- var oo = ["src", "alt"], so = {
5566
+ var lo = ["src", "alt"], uo = {
5546
5567
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
5547
5568
  style: { opacity: "0.7" }
5548
- }, co = ["href"], lo = ["src", "alt"], uo = ["src", "alt"], fo = {
5569
+ }, fo = ["href"], po = ["src", "alt"], mo = ["src", "alt"], ho = {
5549
5570
  key: 3,
5550
5571
  class: "tpl:flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
5551
- }, po = /* @__PURE__ */ P({
5572
+ }, go = /* @__PURE__ */ ue({
5552
5573
  __name: "VideoBlock",
5553
5574
  props: {
5554
5575
  block: {},
5555
5576
  viewport: {}
5556
5577
  },
5557
5578
  setup(e) {
5558
- let t = e, { t: n } = E(), { syntax: r } = ie(), i = A(() => Pe(t.block.url, r) || Pe(t.block.thumbnailUrl, r)), a = A(() => i.value ? null : ao(t.block.url, t.block.thumbnailUrl)), o = A(() => ({ textAlign: t.block.align })), s = A(() => ({
5579
+ let t = e, { t: n } = E(), { syntax: r } = ae(), i = k(() => Fe(t.block.url, r) || Fe(t.block.thumbnailUrl, r)), a = k(() => i.value ? null : co(t.block.url, t.block.thumbnailUrl)), o = k(() => ({ textAlign: t.block.align })), s = k(() => ({
5559
5580
  maxWidth: "100%",
5560
5581
  width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
5561
5582
  display: "block",
5562
5583
  margin: t.block.align === "center" ? "0 auto" : void 0,
5563
5584
  marginLeft: t.block.align === "right" ? "auto" : void 0
5564
- })), c = A(() => Pe(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
5565
- return (t, r) => (L(), j("div", {
5585
+ })), c = k(() => Fe(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
5586
+ return (t, r) => (I(), j("div", {
5566
5587
  class: "tpl:w-full",
5567
- style: I(o.value)
5568
- }, [i.value && e.block.placeholderUrl ? (L(), j("div", {
5588
+ style: F(o.value)
5589
+ }, [i.value && e.block.placeholderUrl ? (I(), j("div", {
5569
5590
  key: 0,
5570
5591
  class: "tpl:relative tpl:inline-block",
5571
- style: I(s.value)
5592
+ style: F(s.value)
5572
5593
  }, [M("img", {
5573
5594
  class: "tpl:w-full tpl:border-0",
5574
5595
  src: e.block.placeholderUrl,
5575
5596
  alt: e.block.alt
5576
- }, null, 8, oo), N(ro)], 4)) : i.value ? (L(), j("div", {
5597
+ }, null, 8, lo), N(oo)], 4)) : i.value ? (I(), j("div", {
5577
5598
  key: 1,
5578
5599
  class: "tpl:relative tpl:!flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
5579
- style: I([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, s.value])
5580
- }, [N(V(Bt), {
5600
+ style: F([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, s.value])
5601
+ }, [N(B(Wt), {
5581
5602
  size: 36,
5582
5603
  "stroke-width": 1.5,
5583
5604
  class: "tpl:text-[var(--tpl-primary)]",
5584
5605
  style: { opacity: "0.5" }
5585
- }), M("span", so, B(c.value), 1)], 4)) : a.value ? (L(), j(ae, { key: 2 }, [e.block.url ? (L(), j("a", {
5606
+ }), M("span", uo, z(c.value), 1)], 4)) : a.value ? (I(), j(oe, { key: 2 }, [e.block.url ? (I(), j("a", {
5586
5607
  key: 0,
5587
5608
  href: e.block.url,
5588
5609
  target: "_blank",
5589
5610
  rel: "noopener noreferrer",
5590
5611
  class: "tpl:group tpl:relative tpl:inline-block",
5591
- style: I(s.value),
5592
- onClick: r[0] ||= Ee(() => {}, ["prevent"])
5612
+ style: F(s.value),
5613
+ onClick: r[0] ||= De(() => {}, ["prevent"])
5593
5614
  }, [M("img", {
5594
5615
  class: "tpl:w-full tpl:border-0",
5595
5616
  src: a.value,
5596
5617
  alt: e.block.alt
5597
- }, null, 8, lo), N(ro, { "hover-effect": "" })], 12, co)) : (L(), j("div", {
5618
+ }, null, 8, po), N(oo, { "hover-effect": "" })], 12, fo)) : (I(), j("div", {
5598
5619
  key: 1,
5599
5620
  class: "tpl:relative tpl:inline-block",
5600
- style: I(s.value)
5621
+ style: F(s.value)
5601
5622
  }, [M("img", {
5602
5623
  class: "tpl:w-full tpl:border-0",
5603
5624
  src: a.value,
5604
5625
  alt: e.block.alt
5605
- }, null, 8, uo), N(ro)], 4))], 64)) : (L(), j("div", fo, [N(V(Bt), {
5626
+ }, null, 8, mo), N(oo)], 4))], 64)) : (I(), j("div", ho, [N(B(Wt), {
5606
5627
  size: 40,
5607
5628
  "stroke-width": 1.5,
5608
5629
  class: "tpl:text-[var(--tpl-border-light)]"
5609
- }), M("span", null, B(V(n).video.addVideo), 1)]))], 4));
5630
+ }), M("span", null, z(B(n).video.addVideo), 1)]))], 4));
5610
5631
  }
5611
- }), mo = {
5612
- section: La,
5613
- title: Zn,
5614
- paragraph: Pn,
5615
- image: Dn,
5616
- button: Ct,
5617
- divider: dn,
5618
- video: po,
5619
- social: qa,
5620
- menu: jn,
5621
- table: no,
5622
- spacer: Xa,
5623
- html: gn,
5624
- countdown: Dt
5632
+ }), _o = {
5633
+ section: Ba,
5634
+ title: tr,
5635
+ paragraph: Rn,
5636
+ image: jn,
5637
+ button: Dt,
5638
+ divider: hn,
5639
+ video: go,
5640
+ social: Xa,
5641
+ menu: Fn,
5642
+ table: ao,
5643
+ spacer: $a,
5644
+ html: bn,
5645
+ countdown: jt
5625
5646
  };
5626
- function ho(e) {
5647
+ function vo(e) {
5627
5648
  let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: o, format: l } = E(r);
5628
5649
  t.setUiTheme(n.uiTheme ?? "auto");
5629
- let { resolvedTheme: D } = pt(A(() => t.state.uiTheme)), O = z(n.theme ?? {}), { themeStyles: te } = ht({
5630
- themeOverrides: O,
5650
+ let { resolvedTheme: D } = mt(k(() => t.state.uiTheme)), te = R(n.theme ?? {}), { themeStyles: ne } = gt({
5651
+ themeOverrides: te,
5631
5652
  resolvedTheme: D,
5632
5653
  extraStyles: e.themeExtraStyles
5633
- }), k = je({
5654
+ }), O = Me({
5634
5655
  content: t.content,
5635
5656
  setContent: (e, n) => t.setContent(e, n),
5636
5657
  ...e.historyOptions
5637
5658
  });
5638
- Me(t, k);
5639
- let ne = Oe({
5659
+ Ne(t, O);
5660
+ let re = ke({
5640
5661
  addBlock: t.addBlock,
5641
5662
  removeBlock: t.removeBlock,
5642
5663
  updateBlock: t.updateBlock,
5643
5664
  selectBlock: t.selectBlock,
5644
5665
  blockDefaults: n.blockDefaults
5645
- }), re = ke(t), ie = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? De({
5666
+ }), ie = Ae(t), ae = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? Oe({
5646
5667
  content: t.content,
5647
5668
  isDirty: () => t.state.isDirty,
5648
5669
  ...e.autoSaveOptions
5649
- }) : null, ae = null;
5650
- ie && (ae = Se(k.isNavigating, (e) => {
5651
- e ? ie.pause() : ie.resume();
5670
+ }) : null, oe = null;
5671
+ ae && (oe = Ce(O.isNavigating, (e) => {
5672
+ e ? ae.pause() : ae.resume();
5652
5673
  }));
5653
- let oe = ft(t, {
5674
+ let se = pt(t, {
5654
5675
  t: o,
5655
5676
  format: l
5656
- }), se = gt();
5657
- if (vt(se, mo), n.customBlocks?.length) for (let e of n.customBlocks) se.registerCustom(e, ln);
5677
+ }), A = bt();
5678
+ if (St(A, _o), n.customBlocks?.length) for (let e of n.customBlocks) A.registerCustom(e, pn);
5658
5679
  function j(e) {
5659
- for (let t of e) se.registerCustom(t, ln);
5680
+ for (let t of e) A.registerCustom(t, pn);
5660
5681
  }
5661
5682
  function M(r) {
5662
- bt(r, {
5663
- history: k,
5683
+ wt(r, {
5684
+ history: O,
5664
5685
  selectBlock: (e) => t.selectBlock(e),
5665
5686
  getSelectedBlockId: () => t.state.selectedBlockId,
5666
5687
  removeBlock: (e) => t.removeBlock(e),
@@ -5668,27 +5689,27 @@ function ho(e) {
5668
5689
  onBeforeUndo: e.keyboardOptions?.onBeforeUndo
5669
5690
  });
5670
5691
  }
5671
- a(document, "keydown", M), R(s, r), R(p, t), R(v, k), R(g, ne), R(_, re), R(x, i), R(c, te), R(w, D), R(d, n.blockDefaults), R(b, se), R(C, n.customBlocks ?? []);
5672
- let ce = Ze(n.mergeTags?.syntax);
5673
- R(m, n.mergeTags?.tags ?? []), R(u, ce), R(T, n.mergeTags?.onRequest ?? null), R(ee, n.onRequestMedia ?? null), R(f, n.displayConditions?.conditions ?? []), R(y, n.displayConditions?.allowCustom ?? !1), R(S, e.capabilities ?? {}), R(h, oe);
5692
+ a(document, "keydown", M), L(s, r), L(p, t), L(v, O), L(g, re), L(_, ie), L(x, i), L(c, ne), L(w, D), L(d, n.blockDefaults), L(b, A), L(C, n.customBlocks ?? []);
5693
+ let ce = Qe(n.mergeTags?.syntax);
5694
+ L(m, n.mergeTags?.tags ?? []), L(u, ce), L(T, n.mergeTags?.onRequest ?? null), L(ee, n.onRequestMedia ?? null), L(f, n.displayConditions?.conditions ?? []), L(y, n.displayConditions?.allowCustom ?? !1), L(S, e.capabilities ?? {}), L(h, se);
5674
5695
  function N() {
5675
- ae?.(), ie?.destroy(), k.destroy();
5696
+ oe?.(), ae?.destroy(), O.destroy();
5676
5697
  }
5677
5698
  return {
5678
5699
  t: o,
5679
5700
  format: l,
5680
- history: k,
5681
- blockActions: ne,
5682
- conditionPreview: re,
5683
- autoSave: ie,
5701
+ history: O,
5702
+ blockActions: re,
5703
+ conditionPreview: ie,
5704
+ autoSave: ae,
5684
5705
  resolvedTheme: D,
5685
- themeStyles: te,
5686
- themeOverrides: O,
5687
- registry: se,
5688
- keyboardReorder: oe,
5706
+ themeStyles: ne,
5707
+ themeOverrides: te,
5708
+ registry: A,
5709
+ keyboardReorder: se,
5689
5710
  registerCustomBlocks: j,
5690
5711
  destroy: N
5691
5712
  };
5692
5713
  }
5693
5714
  //#endregion
5694
- export { Mt as A, Kt as C, Rt as D, zt as E, dt as F, ot as I, ct as L, At as M, Dt as N, It as O, Ct as P, qt as S, Ut as T, gn as _, qa as a, $t as b, La as c, Yn as d, In as f, Dn as g, jn as h, Xa as i, jt as j, Ft as k, Ma as l, Pn as m, po as n, Ra as o, Fn as p, no as r, Ba as s, ho as t, Zn as u, dn as v, Gt as w, Zt as x, ln as y };
5715
+ export { It as A, Xt as C, Ht as D, Ut as E, yt as F, ft as I, st as L, Pt as M, jt as N, Bt as O, Dt as P, lt as R, Zt as S, qt as T, bn as _, Xa as a, rn as b, Ba as c, $n as d, Bn as f, jn as g, Fn as h, $a as i, Ft as j, zt as k, Fa as l, Rn as m, go as n, Va as o, zn as p, ao as r, Ua as s, vo as t, tr as u, hn as v, Yt as w, tn as x, pn as y };